@united-workforce/cli 0.2.0 → 0.2.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,12 +58,22 @@ describe("prompt commands", () => {
58
58
  test("prompt bootstrap returns framework-agnostic setup instructions", () => {
59
59
  const result = cmdPromptBootstrap();
60
60
  expect(typeof result).toBe("string");
61
+ // Skills installation
61
62
  expect(result).toContain("uwf prompt usage");
62
63
  expect(result).toContain("uwf prompt workflow-authoring");
63
64
  expect(result).toContain("uwf prompt adapter-developing");
64
65
  expect(result).toContain("uwf-usage");
65
66
  expect(result).toContain("uwf-workflow-authoring");
66
67
  expect(result).toContain("uwf-adapter-developing");
68
+ // Fresh install scenario
69
+ expect(result).toContain("Fresh Install");
70
+ expect(result).toContain("uwf setup");
71
+ expect(result).toContain("--provider");
72
+ expect(result).toContain("--api-key");
73
+ expect(result).toContain("agent adapter");
74
+ // Upgrade scenario
75
+ expect(result).toContain("Upgrade");
76
+ expect(result).toContain("Migrate");
67
77
  // Should NOT contain Hermes-specific paths
68
78
  expect(result).not.toContain("~/.hermes/skills/");
69
79
  expect(result).not.toContain("> ~/.hermes/");
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.test.js","sourceRoot":"","sources":["../../src/__tests__/prompt.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1D,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,0B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0BAA0B,GACjE,CAAC;AAQF,wBAAgB,aAAa,IAAI,aAAa,CAAC,MAAM,CAAC,CAErD;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAsC3C"}
1
+ {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/commands/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,sBAAsB,EACtB,kCAAkC,EAEnC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,kCAAkC,IAAI,0BAA0B,EAChE,sBAAsB,IAAI,cAAc,EACxC,kCAAkC,IAAI,0BAA0B,GACjE,CAAC;AAQF,wBAAgB,aAAa,IAAI,aAAa,CAAC,MAAM,CAAC,CAErD;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAoI3C"}
@@ -9,33 +9,126 @@ export function cmdPromptList() {
9
9
  return PROMPT_ENTRIES.map((e) => e.name);
10
10
  }
11
11
  export function cmdPromptBootstrap() {
12
- return `# uwf Skill Bootstrap
12
+ return `# uwf Bootstrap
13
13
 
14
- Install or update the uwf (United Workforce) skills for your agent.
14
+ Set up or upgrade uwf (United Workforce) from zero to running your first workflow.
15
15
 
16
- ## Steps
16
+ ## Scenario A: Fresh Install
17
17
 
18
- 1. **Check if uwf CLI is installed:**
19
- \`\`\`bash
20
- uwf --help
21
- \`\`\`
22
- If not installed: \`npm install -g @united-workforce/cli\`
23
- Current version: ${VERSION}
18
+ ### Step 1 Install CLI and agent adapter
24
19
 
25
- 2. **Install the skills** by running each command below and creating a skill from its output:
26
- - Run \`uwf prompt usage\` → create a skill named \`uwf-usage\`
27
- - Run \`uwf prompt workflow-authoring\` create a skill named \`uwf-workflow-authoring\`
28
- - Run \`uwf prompt adapter-developing\` → create a skill named \`uwf-adapter-developing\`
20
+ \`\`\`bash
21
+ npm install -g @united-workforce/cli
22
+ uwf --version # should print ${VERSION}
23
+ \`\`\`
24
+
25
+ Install an agent adapter (at least one is required):
26
+
27
+ | Adapter | Install | When to use |
28
+ |---------|---------|-------------|
29
+ | uwf-hermes | \`npm install -g @united-workforce/agent-hermes\` | When your agent framework is Hermes Agent |
30
+ | uwf-claude-code | \`npm install -g @united-workforce/agent-claude-code\` | When using Claude Code CLI directly |
31
+ | uwf-builtin | \`npm install -g @united-workforce/agent-builtin\` | Lightweight built-in agent (no external dependency) |
32
+
33
+ Verify the adapter is installed: \`uwf-hermes --version\` (or whichever you chose).
34
+
35
+ ### Step 2 — Configure provider and model
36
+
37
+ uwf needs an LLM provider to run agents. **Ask the user** for their provider, API key, and model, then run:
38
+
39
+ \`\`\`bash
40
+ uwf setup --provider <name> --base-url <url> --api-key <key> --model <model> [--agent <adapter>]
41
+ \`\`\`
42
+
43
+ Preset providers (base-url is auto-filled when using a preset name):
44
+ openai, xai, openrouter, venice, dashscope, deepseek, siliconflow, volcengine, kimi, glm, stepfun, minimax, ollama
45
+
46
+ Example:
47
+ \`\`\`bash
48
+ uwf setup --provider openrouter --api-key sk-or-... --model anthropic/claude-sonnet-4 --agent uwf-hermes
49
+ \`\`\`
50
+
51
+ If the user doesn't know what to choose, suggest \`openrouter\` with \`anthropic/claude-sonnet-4\` as a sensible default.
52
+
53
+ Config is saved to \`~/.uwf/config.yaml\`. Verify with \`cat ~/.uwf/config.yaml\`.
54
+
55
+ ### Step 3 — Install skills
56
+
57
+ Run each command and create a skill from its output:
29
58
 
30
- Each command outputs a complete SKILL.md with YAML frontmatter — use your agent framework's skill creation API to save them.
59
+ \`\`\`bash
60
+ uwf prompt usage # → save as skill "uwf-usage"
61
+ uwf prompt workflow-authoring # → save as skill "uwf-workflow-authoring"
62
+ uwf prompt adapter-developing # → save as skill "uwf-adapter-developing"
63
+ \`\`\`
64
+
65
+ Each command outputs a complete SKILL.md with YAML frontmatter. Use your agent framework's skill creation API to save them (e.g. \`skill_manage(action='create', name='uwf-usage', content=<output>)\`).
31
66
 
32
- 3. **Verify** the skills are loadable by your agent framework.
67
+ Verify skills are installed by listing them (e.g. \`skills_list()\`) and confirming all three appear.
33
68
 
34
- ## Updating
69
+ ### Step 4 — Verify end-to-end
70
+
71
+ Run a quick smoke test with the built-in eval workflow:
72
+
73
+ \`\`\`bash
74
+ # Start a thread with the example workflow
75
+ uwf thread start examples/eval-simple.yaml -p "Hello, test run"
35
76
 
36
- When \`uwf\` is upgraded, re-run \`uwf prompt bootstrap\` and follow the steps again.
37
- The skill content is bundled with the CLI — always use \`uwf prompt <name>\` to get
38
- content matching your installed version.
77
+ # Execute one step
78
+ uwf thread exec <thread-id>
79
+
80
+ # Check result
81
+ uwf thread show <thread-id>
82
+ \`\`\`
83
+
84
+ If the thread reaches \`$END\` or produces output, the setup is working.
85
+
86
+ ## Scenario B: Upgrade from Previous Version
87
+
88
+ ### Step 1 — Update packages
89
+
90
+ \`\`\`bash
91
+ npm install -g @united-workforce/cli@latest
92
+ uwf --version # should print ${VERSION}
93
+
94
+ # Also update your adapter(s)
95
+ npm install -g @united-workforce/agent-hermes@latest
96
+ \`\`\`
97
+
98
+ ### Step 2 — Regenerate skills
99
+
100
+ Skill content is bundled with the CLI — always regenerate after upgrading:
101
+
102
+ \`\`\`bash
103
+ uwf prompt usage # → update skill "uwf-usage"
104
+ uwf prompt workflow-authoring # → update skill "uwf-workflow-authoring"
105
+ uwf prompt adapter-developing # → update skill "uwf-adapter-developing"
106
+ \`\`\`
107
+
108
+ ### Step 3 — Migrate workflow YAML files (if needed)
109
+
110
+ Check the changelog for breaking changes. Known migrations:
111
+
112
+ - **v0.2.0**: \`$START._\` → \`$START.new\` + \`$START.resume\`. All workflow YAML files must be updated:
113
+ \`\`\`yaml
114
+ # Before (v0.1.x)
115
+ $START:
116
+ _: { role: planner, prompt: "..." }
117
+
118
+ # After (v0.2.0+)
119
+ $START:
120
+ new: { role: planner, prompt: "..." }
121
+ resume: { role: planner, prompt: "Review previous run and continue." }
122
+ \`\`\`
123
+
124
+ Update all \`.workflow/\` and \`.workflows/\` YAML files in your projects. \`uwf workflow add\` will reject files with the old \`_\` syntax.
125
+
126
+ ### Step 4 — Verify
127
+
128
+ \`\`\`bash
129
+ uwf thread start <your-workflow> -p "upgrade test"
130
+ uwf thread exec <thread-id>
131
+ \`\`\`
39
132
 
40
133
  ## Available prompts
41
134
 
@@ -44,6 +137,7 @@ uwf prompt list # list available prompt names
44
137
  uwf prompt usage # CLI usage guide
45
138
  uwf prompt workflow-authoring # workflow YAML design guide
46
139
  uwf prompt adapter-developing # building agent adapters
140
+ uwf prompt bootstrap # this guide
47
141
  \`\`\`
48
142
  `;
49
143
  }
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/commands/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,sBAAsB,EACtB,kCAAkC,EAClC,OAAO,GACR,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,kCAAkC,IAAI,0BAA0B,EAChE,sBAAsB,IAAI,cAAc,EACxC,kCAAkC,IAAI,0BAA0B,GACjE,CAAC;AAEF,MAAM,cAAc,GAA4D;IAC9E,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE;IACnD,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kCAAkC,EAAE;IAC5E,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kCAAkC,EAAE;CAC7E,CAAC;AAEF,MAAM,UAAU,aAAa;IAC3B,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO;;;;;;;;;;;sBAWa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;CAyB5B,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../src/commands/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,sBAAsB,EACtB,kCAAkC,EAClC,OAAO,GACR,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,kCAAkC,IAAI,0BAA0B,EAChE,sBAAsB,IAAI,cAAc,EACxC,kCAAkC,IAAI,0BAA0B,GACjE,CAAC;AAEF,MAAM,cAAc,GAA4D;IAC9E,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE;IACnD,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kCAAkC,EAAE;IAC5E,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,kCAAkC,EAAE;CAC7E,CAAC;AAEF,MAAM,UAAU,aAAa;IAC3B,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO;;;;;;;;;;iCAUwB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAsEP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDvC,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@united-workforce/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-rc.0",
4
4
  "files": [
5
5
  "src",
6
6
  "dist",
@@ -17,9 +17,9 @@
17
17
  "dotenv": "^16.6.1",
18
18
  "mustache": "^4.2.0",
19
19
  "yaml": "^2.8.4",
20
- "@united-workforce/protocol": "^0.1.0",
20
+ "@united-workforce/util": "^0.1.2",
21
21
  "@united-workforce/util-agent": "^0.1.0",
22
- "@united-workforce/util": "^0.1.2"
22
+ "@united-workforce/protocol": "^0.1.0"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"
@@ -71,12 +71,22 @@ describe("prompt commands", () => {
71
71
  test("prompt bootstrap returns framework-agnostic setup instructions", () => {
72
72
  const result = cmdPromptBootstrap();
73
73
  expect(typeof result).toBe("string");
74
+ // Skills installation
74
75
  expect(result).toContain("uwf prompt usage");
75
76
  expect(result).toContain("uwf prompt workflow-authoring");
76
77
  expect(result).toContain("uwf prompt adapter-developing");
77
78
  expect(result).toContain("uwf-usage");
78
79
  expect(result).toContain("uwf-workflow-authoring");
79
80
  expect(result).toContain("uwf-adapter-developing");
81
+ // Fresh install scenario
82
+ expect(result).toContain("Fresh Install");
83
+ expect(result).toContain("uwf setup");
84
+ expect(result).toContain("--provider");
85
+ expect(result).toContain("--api-key");
86
+ expect(result).toContain("agent adapter");
87
+ // Upgrade scenario
88
+ expect(result).toContain("Upgrade");
89
+ expect(result).toContain("Migrate");
80
90
  // Should NOT contain Hermes-specific paths
81
91
  expect(result).not.toContain("~/.hermes/skills/");
82
92
  expect(result).not.toContain("> ~/.hermes/");
@@ -22,33 +22,126 @@ export function cmdPromptList(): ReadonlyArray<string> {
22
22
  }
23
23
 
24
24
  export function cmdPromptBootstrap(): string {
25
- return `# uwf Skill Bootstrap
25
+ return `# uwf Bootstrap
26
26
 
27
- Install or update the uwf (United Workforce) skills for your agent.
27
+ Set up or upgrade uwf (United Workforce) from zero to running your first workflow.
28
28
 
29
- ## Steps
29
+ ## Scenario A: Fresh Install
30
30
 
31
- 1. **Check if uwf CLI is installed:**
32
- \`\`\`bash
33
- uwf --help
34
- \`\`\`
35
- If not installed: \`npm install -g @united-workforce/cli\`
36
- Current version: ${VERSION}
31
+ ### Step 1 Install CLI and agent adapter
37
32
 
38
- 2. **Install the skills** by running each command below and creating a skill from its output:
39
- - Run \`uwf prompt usage\` → create a skill named \`uwf-usage\`
40
- - Run \`uwf prompt workflow-authoring\` create a skill named \`uwf-workflow-authoring\`
41
- - Run \`uwf prompt adapter-developing\` → create a skill named \`uwf-adapter-developing\`
33
+ \`\`\`bash
34
+ npm install -g @united-workforce/cli
35
+ uwf --version # should print ${VERSION}
36
+ \`\`\`
37
+
38
+ Install an agent adapter (at least one is required):
39
+
40
+ | Adapter | Install | When to use |
41
+ |---------|---------|-------------|
42
+ | uwf-hermes | \`npm install -g @united-workforce/agent-hermes\` | When your agent framework is Hermes Agent |
43
+ | uwf-claude-code | \`npm install -g @united-workforce/agent-claude-code\` | When using Claude Code CLI directly |
44
+ | uwf-builtin | \`npm install -g @united-workforce/agent-builtin\` | Lightweight built-in agent (no external dependency) |
45
+
46
+ Verify the adapter is installed: \`uwf-hermes --version\` (or whichever you chose).
47
+
48
+ ### Step 2 — Configure provider and model
49
+
50
+ uwf needs an LLM provider to run agents. **Ask the user** for their provider, API key, and model, then run:
51
+
52
+ \`\`\`bash
53
+ uwf setup --provider <name> --base-url <url> --api-key <key> --model <model> [--agent <adapter>]
54
+ \`\`\`
55
+
56
+ Preset providers (base-url is auto-filled when using a preset name):
57
+ openai, xai, openrouter, venice, dashscope, deepseek, siliconflow, volcengine, kimi, glm, stepfun, minimax, ollama
58
+
59
+ Example:
60
+ \`\`\`bash
61
+ uwf setup --provider openrouter --api-key sk-or-... --model anthropic/claude-sonnet-4 --agent uwf-hermes
62
+ \`\`\`
63
+
64
+ If the user doesn't know what to choose, suggest \`openrouter\` with \`anthropic/claude-sonnet-4\` as a sensible default.
65
+
66
+ Config is saved to \`~/.uwf/config.yaml\`. Verify with \`cat ~/.uwf/config.yaml\`.
67
+
68
+ ### Step 3 — Install skills
69
+
70
+ Run each command and create a skill from its output:
42
71
 
43
- Each command outputs a complete SKILL.md with YAML frontmatter — use your agent framework's skill creation API to save them.
72
+ \`\`\`bash
73
+ uwf prompt usage # → save as skill "uwf-usage"
74
+ uwf prompt workflow-authoring # → save as skill "uwf-workflow-authoring"
75
+ uwf prompt adapter-developing # → save as skill "uwf-adapter-developing"
76
+ \`\`\`
77
+
78
+ Each command outputs a complete SKILL.md with YAML frontmatter. Use your agent framework's skill creation API to save them (e.g. \`skill_manage(action='create', name='uwf-usage', content=<output>)\`).
44
79
 
45
- 3. **Verify** the skills are loadable by your agent framework.
80
+ Verify skills are installed by listing them (e.g. \`skills_list()\`) and confirming all three appear.
46
81
 
47
- ## Updating
82
+ ### Step 4 — Verify end-to-end
83
+
84
+ Run a quick smoke test with the built-in eval workflow:
85
+
86
+ \`\`\`bash
87
+ # Start a thread with the example workflow
88
+ uwf thread start examples/eval-simple.yaml -p "Hello, test run"
48
89
 
49
- When \`uwf\` is upgraded, re-run \`uwf prompt bootstrap\` and follow the steps again.
50
- The skill content is bundled with the CLI — always use \`uwf prompt <name>\` to get
51
- content matching your installed version.
90
+ # Execute one step
91
+ uwf thread exec <thread-id>
92
+
93
+ # Check result
94
+ uwf thread show <thread-id>
95
+ \`\`\`
96
+
97
+ If the thread reaches \`$END\` or produces output, the setup is working.
98
+
99
+ ## Scenario B: Upgrade from Previous Version
100
+
101
+ ### Step 1 — Update packages
102
+
103
+ \`\`\`bash
104
+ npm install -g @united-workforce/cli@latest
105
+ uwf --version # should print ${VERSION}
106
+
107
+ # Also update your adapter(s)
108
+ npm install -g @united-workforce/agent-hermes@latest
109
+ \`\`\`
110
+
111
+ ### Step 2 — Regenerate skills
112
+
113
+ Skill content is bundled with the CLI — always regenerate after upgrading:
114
+
115
+ \`\`\`bash
116
+ uwf prompt usage # → update skill "uwf-usage"
117
+ uwf prompt workflow-authoring # → update skill "uwf-workflow-authoring"
118
+ uwf prompt adapter-developing # → update skill "uwf-adapter-developing"
119
+ \`\`\`
120
+
121
+ ### Step 3 — Migrate workflow YAML files (if needed)
122
+
123
+ Check the changelog for breaking changes. Known migrations:
124
+
125
+ - **v0.2.0**: \`$START._\` → \`$START.new\` + \`$START.resume\`. All workflow YAML files must be updated:
126
+ \`\`\`yaml
127
+ # Before (v0.1.x)
128
+ $START:
129
+ _: { role: planner, prompt: "..." }
130
+
131
+ # After (v0.2.0+)
132
+ $START:
133
+ new: { role: planner, prompt: "..." }
134
+ resume: { role: planner, prompt: "Review previous run and continue." }
135
+ \`\`\`
136
+
137
+ Update all \`.workflow/\` and \`.workflows/\` YAML files in your projects. \`uwf workflow add\` will reject files with the old \`_\` syntax.
138
+
139
+ ### Step 4 — Verify
140
+
141
+ \`\`\`bash
142
+ uwf thread start <your-workflow> -p "upgrade test"
143
+ uwf thread exec <thread-id>
144
+ \`\`\`
52
145
 
53
146
  ## Available prompts
54
147
 
@@ -57,6 +150,7 @@ uwf prompt list # list available prompt names
57
150
  uwf prompt usage # CLI usage guide
58
151
  uwf prompt workflow-authoring # workflow YAML design guide
59
152
  uwf prompt adapter-developing # building agent adapters
153
+ uwf prompt bootstrap # this guide
60
154
  \`\`\`
61
155
  `;
62
156
  }