@agentworkforce/cli 0.18.0 → 2.0.1
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.
- package/CHANGELOG.md +20 -0
- package/dist/cli.d.ts +43 -6
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1056 -59
- package/dist/cli.js.map +1 -1
- package/dist/cli.test.js +303 -1
- package/dist/cli.test.js.map +1 -1
- package/dist/launch-metadata.d.ts +8 -1
- package/dist/launch-metadata.d.ts.map +1 -1
- package/dist/launch-metadata.js +6 -2
- package/dist/launch-metadata.js.map +1 -1
- package/dist/local-personas.d.ts +8 -1
- package/dist/local-personas.d.ts.map +1 -1
- package/dist/local-personas.js +11 -4
- package/dist/local-personas.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.0.1] - 2026-05-11
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Migrate workforce CLI to consume persona-kit directly (#67)
|
|
15
|
+
- Move persona-shape code from harness-kit + workload-router into persona-kit (#65)
|
|
16
|
+
- Delete @agentworkforce/harness-kit from the monorepo (#65)
|
|
17
|
+
- Shrink workload-router: drop persona-domain re-exports (1.0.0) (#68)
|
|
18
|
+
- RunPersonaImprover: restore config files in try/finally
|
|
19
|
+
- RunPersonaImprover: escalate to SIGKILL after SIGTERM grace
|
|
20
|
+
|
|
21
|
+
## [0.19.0] - 2026-05-08
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- Address PR feedback on auto-improve flow
|
|
26
|
+
- Handle Ctrl-C during sandbox mount setup
|
|
27
|
+
- Make CLI launch spinners actually animate (#104)
|
|
28
|
+
- Offer auto-improve persona prompt at session end
|
|
29
|
+
|
|
10
30
|
## [0.18.0] - 2026-05-08
|
|
11
31
|
|
|
12
32
|
### Changed
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { type Harness, type PersonaMount, type PersonaSelection, type SidecarMdMode } from '@agentworkforce/
|
|
2
|
+
import { type Harness, type PersonaMount, type PersonaSelection, type SidecarMdMode } from '@agentworkforce/persona-kit';
|
|
3
3
|
import { type PickCandidate } from './persona-picker.js';
|
|
4
4
|
export declare const CLI_VERSION: string;
|
|
5
5
|
export declare const CREATE_SELECTOR = "persona-maker@best";
|
|
@@ -22,11 +22,11 @@ export declare function resolveSystemPromptPlaceholders(prompt: string, harness:
|
|
|
22
22
|
* launching opencode without a persona-specific agent selection.
|
|
23
23
|
*
|
|
24
24
|
* Strips all occurrences rather than just the first — the current producer
|
|
25
|
-
* (
|
|
26
|
-
* are equivalent today, but "remove all" is idempotent and safer if
|
|
27
|
-
* caller ever appends a second `--agent` for any reason. A trailing
|
|
28
|
-
* with no following value is preserved so the malformed argv
|
|
29
|
-
* harness rather than getting silently swallowed here.
|
|
25
|
+
* (the opencode branch in persona-kit) emits exactly one pair, so both
|
|
26
|
+
* behaviors are equivalent today, but "remove all" is idempotent and safer if
|
|
27
|
+
* a future caller ever appends a second `--agent` for any reason. A trailing
|
|
28
|
+
* `--agent` with no following value is preserved so the malformed argv
|
|
29
|
+
* surfaces at the harness rather than getting silently swallowed here.
|
|
30
30
|
*/
|
|
31
31
|
export declare function stripAgentFlag(args: readonly string[]): string[];
|
|
32
32
|
/**
|
|
@@ -143,6 +143,43 @@ export interface PersonaInstallArgs {
|
|
|
143
143
|
overwrite: boolean;
|
|
144
144
|
}
|
|
145
145
|
export declare function parseInstallArgs(args: readonly string[]): PersonaInstallArgs;
|
|
146
|
+
export interface ImproverPatch {
|
|
147
|
+
path: string;
|
|
148
|
+
op: 'set' | 'append';
|
|
149
|
+
value: unknown;
|
|
150
|
+
}
|
|
151
|
+
export interface ImproverProposal {
|
|
152
|
+
id: string;
|
|
153
|
+
summary: string;
|
|
154
|
+
rationale: string;
|
|
155
|
+
patches: ImproverPatch[];
|
|
156
|
+
}
|
|
157
|
+
export interface ImproverProposalsFile {
|
|
158
|
+
personaId: string;
|
|
159
|
+
personaFilePath: string;
|
|
160
|
+
transcriptPath: string;
|
|
161
|
+
proposals: ImproverProposal[];
|
|
162
|
+
}
|
|
163
|
+
export declare function parseProposals(raw: string): ImproverProposalsFile;
|
|
164
|
+
/**
|
|
165
|
+
* Read a single-character choice from stdin synchronously, looping on
|
|
166
|
+
* invalid input. Empty Enter (no character) returns the first option in
|
|
167
|
+
* `valid` — callers should put the safe / default-no answer first.
|
|
168
|
+
*
|
|
169
|
+
* Test seam: callers can inject `read` so the prompt is exercisable
|
|
170
|
+
* without a real TTY (mirrors `promptYesNoSync`).
|
|
171
|
+
*/
|
|
172
|
+
export declare function readSingleCharChoice(prompt: string, valid: readonly string[], opts?: {
|
|
173
|
+
write?: (chunk: string) => void;
|
|
174
|
+
read?: () => string | undefined;
|
|
175
|
+
}): string;
|
|
176
|
+
/**
|
|
177
|
+
* Apply accepted patches to the persona JSON on disk. Reads, mutates the
|
|
178
|
+
* parsed object, writes back with two-space indent + trailing newline
|
|
179
|
+
* (matches existing /personas style). Throws on unwriteable file or
|
|
180
|
+
* unsupported patch op/path resolution.
|
|
181
|
+
*/
|
|
182
|
+
export declare function applyAcceptedPatches(personaFilePath: string, accepted: readonly ImproverProposal[]): void;
|
|
146
183
|
/**
|
|
147
184
|
* Enumerate persona candidates for the picker. Local overrides win over the
|
|
148
185
|
* built-in catalog when ids collide; the picker only needs the projection
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAsBA,OAAO,EAiBL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