From f989dee85b6b4247fbe6109cd1c528a454482008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Fri, 5 Jun 2026 23:48:53 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20bootstrap=20=E2=80=94=20remind=20to=20re?= =?UTF-8?q?start=20session=20after=20skill=20install/update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Step 3 (fresh install): warn skills not active until new session - Step 2 (upgrade): same reminder after regenerating skills - Step 3 (upgrade): add v0.2.1 migration note for enum → const Refs #123 --- packages/cli/src/commands/prompt.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/cli/src/commands/prompt.ts b/packages/cli/src/commands/prompt.ts index 33bf1a3..46379f7 100644 --- a/packages/cli/src/commands/prompt.ts +++ b/packages/cli/src/commands/prompt.ts @@ -201,6 +201,8 @@ Each command outputs a complete SKILL.md with YAML frontmatter. Use your agent f Verify skills are installed by listing them (e.g. \`skills_list()\`) and confirming all three appear. +**⚠ After saving all skills, start a new session** so the agent loads the updated skill content. Skills saved in the current session are not active until the next session. + ### Step 4 — Verify end-to-end Create a minimal workflow file to test your setup: @@ -277,6 +279,8 @@ uwf prompt workflow-authoring # → update skill "uwf-workflow-authoring" uwf prompt adapter-developing # → update skill "uwf-adapter-developing" \`\`\` +**⚠ After updating skills, start a new session** to load the new skill content. + ### Step 3 — Migrate workflow YAML files (if needed) Check the changelog for breaking changes. Known migrations: @@ -295,6 +299,17 @@ Check the changelog for breaking changes. Known migrations: Update all \`.workflow/\` and \`.workflows/\` YAML files in your projects. \`uwf workflow add\` will reject files with the old \`_\` syntax. +- **v0.2.1**: \`$status: { enum: [value] }\` → \`$status: { const: "value" }\`. The validator no longer accepts \`enum\` for \`$status\`. Update all workflow YAML files: + \`\`\`yaml + # Before (v0.2.0) + $status: { enum: [done] } + $status: { type: string, enum: ["ready", "failed"] } + + # After (v0.2.1+) + $status: { const: "done" } + # For multi-exit, use oneOf with const (unchanged) + \`\`\` + ### Step 4 — Verify \`\`\`bash -- 2.43.0