@agentworkforce/workload-router 0.1.4 → 0.3.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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const HARNESS_VALUES: readonly ["opencode", "codex", "claude"];
2
2
  export declare const PERSONA_TIERS: readonly ["best", "best-value", "minimum"];
3
- export declare const PERSONA_INTENTS: readonly ["implement-frontend", "review", "architecture-plan", "requirements-analysis", "debugging", "security-review", "documentation", "verification", "test-strategy", "tdd-enforcement", "flake-investigation", "opencode-workflow-correctness", "npm-provenance", "cloud-sandbox-infra"];
3
+ export declare const PERSONA_INTENTS: readonly ["implement-frontend", "review", "architecture-plan", "requirements-analysis", "debugging", "security-review", "documentation", "verification", "test-strategy", "tdd-enforcement", "flake-investigation", "opencode-workflow-correctness", "npm-provenance", "cloud-sandbox-infra", "sage-slack-egress-migration", "sage-proactive-rewire", "cloud-slack-proxy-guard", "sage-cloud-e2e-conduction", "capability-discovery"];
4
4
  export type Harness = (typeof HARNESS_VALUES)[number];
5
5
  export type PersonaTier = (typeof PERSONA_TIERS)[number];
6
6
  export type PersonaIntent = (typeof PERSONA_INTENTS)[number];
@@ -47,7 +47,7 @@ export interface PersonaSelection {
47
47
  skills: PersonaSkill[];
48
48
  rationale: string;
49
49
  }
50
- export declare const SKILL_SOURCE_KINDS: readonly ["prpm"];
50
+ export declare const SKILL_SOURCE_KINDS: readonly ["prpm", "skill.sh"];
51
51
  export type SkillSourceKind = (typeof SKILL_SOURCE_KINDS)[number];
52
52
  /** Per-harness rules for where skills land on disk and how to ask prpm for them. */
53
53
  export interface HarnessSkillTarget {
@@ -62,7 +62,7 @@ export interface SkillInstall {
62
62
  /** Original `source` string from the persona JSON. */
63
63
  source: string;
64
64
  sourceKind: SkillSourceKind;
65
- /** Normalized package reference used by prpm (e.g. `prpm/npm-trusted-publishing`). */
65
+ /** Normalized package reference (e.g. `@prpm/npm-trusted-publishing`, `vercel-labs/skills#find-skills`). */
66
66
  packageRef: string;
67
67
  harness: Harness;
68
68
  /** argv-style command — safer than a shell string for execFile/spawn callers. */
@@ -71,19 +71,45 @@ export interface SkillInstall {
71
71
  installedDir: string;
72
72
  /** Path to the installed SKILL.md manifest (for prompt injection fallback). */
73
73
  installedManifest: string;
74
+ /**
75
+ * Paths the installer scatters outside of a durable lockfile — safe to
76
+ * `rm -rf` once the persona run has read what it needs from them. The
77
+ * provider's lockfile (`prpm.lock`, `skills-lock.json`, etc.) is deliberately
78
+ * omitted so repeat runs can stay fast and reproducible.
79
+ */
80
+ cleanupPaths: readonly string[];
74
81
  }
75
82
  export interface SkillMaterializationPlan {
76
83
  harness: Harness;
77
84
  installs: SkillInstall[];
78
85
  }
86
+ export interface PersonaInstallContext {
87
+ /** Pure install plan for the persona's skills. Describes what would be installed and where, with no side effects. */
88
+ readonly plan: SkillMaterializationPlan;
89
+ /** Full install command in argv form, suitable for `execFile`/`spawn` without shell escaping concerns. */
90
+ readonly command: readonly string[];
91
+ /** Shell-escaped form of the full install command, convenient for `spawn(..., { shell: true })`. */
92
+ readonly commandString: string;
93
+ /**
94
+ * Post-run cleanup command (argv form) that removes the ephemeral artifact
95
+ * paths the provider scatters during install, leaving the provider lockfile
96
+ * in place. Callers running the install themselves (Mode B) should run this
97
+ * **after** the agent step consumes the skills, never before. For empty
98
+ * plans this is a shell no-op (`:`). `sendMessage()` wires this into a
99
+ * post-agent workflow step automatically in Mode A.
100
+ */
101
+ readonly cleanupCommand: readonly string[];
102
+ /** Shell-escaped form of {@link cleanupCommand}. */
103
+ readonly cleanupCommandString: string;
104
+ }
79
105
  /**
80
- * Options for {@link PersonaContext.execute}. All fields are optional —
81
- * calling `execute(task)` with no options is the common case.
106
+ * Options for {@link PersonaContext.sendMessage}. All fields are optional —
107
+ * calling `sendMessage(task)` with no options is the common case.
82
108
  *
83
109
  * Pass `installSkills: false` when you have already pre-staged the persona's
84
- * skills via {@link PersonaContext.installCommandString} (e.g. in a Dockerfile
85
- * or a CI bootstrap step) and do not want `execute()` to re-install them.
86
- * Leaving `installSkills` unset means `execute()` installs skills itself as
110
+ * skills via `usePersona(...).install.commandString` (e.g. in a Dockerfile or
111
+ * a CI bootstrap step) and do not want `sendMessage()` to re-install them.
112
+ * Leaving `installSkills` unset means `sendMessage()` installs skills itself as
87
113
  * the first step of the ad-hoc workflow — this is the default.
88
114
  */
89
115
  export interface ExecuteOptions {
@@ -108,7 +134,7 @@ export interface ExecuteOptions {
108
134
  }) => void;
109
135
  }
110
136
  /**
111
- * Final result of a {@link PersonaContext.execute} call.
137
+ * Final result of a {@link PersonaContext.sendMessage} call.
112
138
  *
113
139
  * **Only `status: 'completed'` is returned as a resolved promise.** Any
114
140
  * other outcome is delivered as a thrown error with a typed `.result`
@@ -130,7 +156,7 @@ export interface ExecuteOptions {
130
156
  *
131
157
  * ```ts
132
158
  * try {
133
- * const result = await execute(task, opts);
159
+ * const result = await sendMessage(task, opts);
134
160
  * // result.status is guaranteed to be 'completed' here.
135
161
  * } catch (err) {
136
162
  * // err.result.status is 'failed' | 'cancelled' | 'timeout'.
@@ -149,7 +175,7 @@ export interface ExecuteResult {
149
175
  stepName: string;
150
176
  }
151
177
  /**
152
- * Handle returned by {@link PersonaContext.execute}. It *is* a `Promise<ExecuteResult>`
178
+ * Handle returned by {@link PersonaContext.sendMessage}. It *is* a `Promise<ExecuteResult>`
153
179
  * (awaitable directly), with two extra members bolted on:
154
180
  *
155
181
  * - `cancel(reason?)` — request cancellation of the running workflow. Equivalent
@@ -159,7 +185,7 @@ export interface ExecuteResult {
159
185
  * - `runId` — a `Promise<string>` that resolves to the workflow run id
160
186
  * once the persona's agent step has actually spawned. This is deliberately
161
187
  * a promise (not `string | undefined`) because the id is not known at the
162
- * moment `execute()` returns — the workflow hasn't started yet. The
188
+ * moment `sendMessage()` returns — the workflow hasn't started yet. The
163
189
  * resolution timing contract is:
164
190
  *
165
191
  * 1. If the agent subprocess emits any stdout/stderr, `runId` resolves
@@ -173,7 +199,7 @@ export interface ExecuteResult {
173
199
  * Practical consequence: `await run.runId` is *not* instantaneous — do not
174
200
  * block on it in a tight synchronous path expecting a cached value.
175
201
  *
176
- * Error mirroring: if `execute()` fails before the workflow has started
202
+ * Error mirroring: if `sendMessage()` fails before the workflow has started
177
203
  * (e.g. the dynamic `@agent-relay/sdk/workflows` import throws, or the
178
204
  * `WorkflowRunner` constructor throws), `runId` rejects with the same
179
205
  * error as the main promise. Awaiting `runId` is therefore safe to
@@ -188,26 +214,27 @@ export interface PersonaExecution extends Promise<ExecuteResult> {
188
214
  }
189
215
  /**
190
216
  * Return value of {@link usePersona}. A side-effect-free bundle of
191
- * "what this persona is" plus an `execute()` closure for running it.
217
+ * "what this persona is" plus grouped install metadata and a
218
+ * `sendMessage()` closure for running it.
192
219
  *
193
220
  * There are two ways to use the fields, and they are **alternatives**,
194
221
  * not sequential steps:
195
222
  *
196
- * **Mode A — let `execute()` handle install (recommended default):**
223
+ * **Mode A — let `sendMessage()` handle install (recommended default):**
197
224
  * ```ts
198
- * const { execute } = usePersona('npm-provenance');
199
- * const result = await execute('Your task', { workingDirectory: '.' });
225
+ * const { sendMessage } = usePersona('npm-provenance');
226
+ * const result = await sendMessage('Your task', { workingDirectory: '.' });
200
227
  * ```
201
- * `execute()` installs the persona's skills as the first step of its
228
+ * `sendMessage()` installs the persona's skills as the first step of its
202
229
  * ad-hoc workflow, then runs the agent task. No manual install needed.
203
230
  *
204
- * **Mode B — pre-stage install yourself, then `execute()` without re-install:**
231
+ * **Mode B — pre-stage install yourself, then `sendMessage()` without re-install:**
205
232
  * ```ts
206
- * const { installCommandString, execute } = usePersona('npm-provenance');
233
+ * const { install, sendMessage } = usePersona('npm-provenance');
207
234
  * // e.g. inside a Dockerfile RUN, or a CI bootstrap step:
208
- * spawnSync(installCommandString, { shell: true, stdio: 'inherit' });
235
+ * spawnSync(install.commandString, { shell: true, stdio: 'inherit' });
209
236
  * // then, at runtime:
210
- * const result = await execute('Your task', {
237
+ * const result = await sendMessage('Your task', {
211
238
  * workingDirectory: '.',
212
239
  * installSkills: false, // skip re-install; skills are already staged
213
240
  * });
@@ -217,39 +244,35 @@ export interface PersonaExecution extends Promise<ExecuteResult> {
217
244
  * when you want to wrap the install with your own process management
218
245
  * (custom timeout, logging, retry, alternative runner, etc.).
219
246
  *
220
- * In both modes, the `await execute(...)` call above **only resolves
247
+ * In both modes, the `await sendMessage(...)` call above **only resolves
221
248
  * when `status === 'completed'`**. Non-zero exits / timeouts throw a
222
249
  * {@link PersonaExecutionError}, and cancellation throws an `AbortError`;
223
250
  * both carry a typed `.result` for inspection. See {@link ExecuteResult}
224
251
  * for the full outcome contract.
225
252
  *
226
253
  * ⚠️ **Do not combine the two modes without `installSkills: false`.**
227
- * Running `spawnSync(installCommandString, ...)` *and then* calling
228
- * `execute(task)` without passing `installSkills: false` will install
254
+ * Running `spawnSync(install.commandString, ...)` *and then* calling
255
+ * `sendMessage(task)` without passing `installSkills: false` will install
229
256
  * the persona's skills twice. The default value of `installSkills` is
230
257
  * `true` (see {@link ExecuteOptions}).
231
258
  *
232
259
  * A third usage is install-only: if all you want is to materialize
233
260
  * the persona's skills into the repo (for a human or another tool
234
- * to use), run `installCommandString` and never call `execute()`.
261
+ * to use), run `install.commandString` and never call `sendMessage()`.
235
262
  */
236
263
  export interface PersonaContext {
237
- /** Resolved persona: id, tier, runtime (harness + model), and skills. */
264
+ /** Resolved persona choice for this intent/profile: identity, tier, runtime, skills, and routing rationale. */
238
265
  readonly selection: PersonaSelection;
239
- /** Pure plan of what would be installed and where (no side effects). */
240
- readonly installPlan: SkillMaterializationPlan;
241
- /** argv form of the install command — safer for `execFile`/`spawn` callers. */
242
- readonly installCommand: readonly string[];
243
- /** Shell-escaped form of the install command — convenient for `spawn(..., { shell: true })`. */
244
- readonly installCommandString: string;
266
+ /** Grouped install metadata for the resolved persona's skills. */
267
+ readonly install: PersonaInstallContext;
245
268
  /**
246
- * Run the persona against `task`. Builds an ad-hoc agent-relay workflow,
247
- * optionally runs `prpm install` as its first step (see
269
+ * Run the resolved persona against `task`. Builds an ad-hoc agent-relay
270
+ * workflow, optionally runs `prpm install` as its first step (see
248
271
  * {@link ExecuteOptions.installSkills}, default `true`), then invokes the
249
272
  * persona's harness agent with the task. Returns a {@link PersonaExecution}
250
273
  * (an awaitable promise with `cancel()` and `runId` attached).
251
274
  */
252
- execute(task: string, options?: ExecuteOptions): PersonaExecution;
275
+ sendMessage(task: string, options?: ExecuteOptions): PersonaExecution;
253
276
  }
254
277
  export declare class PersonaExecutionError extends Error {
255
278
  readonly result: ExecuteResult;
@@ -258,8 +281,9 @@ export declare class PersonaExecutionError extends Error {
258
281
  }
259
282
  /**
260
283
  * Given a set of persona skills and the harness the persona will run under,
261
- * produce the concrete install plan: which `prpm install` invocations to run
262
- * and where the skill will land on disk once installed.
284
+ * produce the concrete install plan: which install invocations to run, where
285
+ * the skill will land on disk, and which artifact paths should be cleaned up
286
+ * after the persona run to keep the workspace tidy.
263
287
  *
264
288
  * Pure function — does not execute commands or touch the filesystem.
265
289
  */
@@ -282,28 +306,28 @@ export declare function resolvePersona(intent: PersonaIntent, profile?: RoutingP
282
306
  export declare function resolvePersonaByTier(intent: PersonaIntent, tier?: PersonaTier): PersonaSelection;
283
307
  /**
284
308
  * Resolve a persona for `intent` and return a {@link PersonaContext}
285
- * bundling the resolved persona, its skill install plan, and an
286
- * `execute()` closure for running the persona against a task.
309
+ * bundling the resolved persona, grouped install metadata, and a
310
+ * `sendMessage()` closure for running the persona against a task.
287
311
  *
288
312
  * **This is not a React hook.** The `use*` prefix is unfortunate — it is
289
313
  * a plain synchronous factory with no implicit state, no side effects,
290
314
  * and no rules-of-hooks constraints. Calling `usePersona(intent)` does
291
315
  * nothing but resolve routing config and pre-compute the install plan.
292
316
  * Nothing is installed, spawned, or written to disk until you call
293
- * `execute()` (or run the install command yourself).
317
+ * `sendMessage()` (or run the install command yourself).
294
318
  *
295
- * See {@link PersonaContext} for the two usage modes (let `execute()`
319
+ * See {@link PersonaContext} for the two usage modes (let `sendMessage()`
296
320
  * handle install vs. pre-stage install and pass `installSkills: false`)
297
321
  * and the double-install caveat.
298
322
  *
299
323
  * @example
300
- * // Mode A — let execute() install skills and run the agent in one call.
324
+ * // Mode A — let sendMessage() install skills and run the agent in one call.
301
325
  * // Only `status: 'completed'` resolves; non-zero exits / timeouts throw
302
326
  * // PersonaExecutionError and cancellation throws AbortError, both with
303
327
  * // the typed ExecuteResult attached as `err.result`.
304
- * const { execute } = usePersona('npm-provenance');
328
+ * const { sendMessage } = usePersona('npm-provenance');
305
329
  * try {
306
- * const result = await execute('Set up npm trusted publishing for this repo', {
330
+ * const result = await sendMessage('Set up npm trusted publishing for this repo', {
307
331
  * workingDirectory: '.',
308
332
  * timeoutSeconds: 600,
309
333
  * });
@@ -316,11 +340,11 @@ export declare function resolvePersonaByTier(intent: PersonaIntent, tier?: Perso
316
340
  * @example
317
341
  * // Mode B — pre-stage install out-of-band (e.g. in a Dockerfile), then
318
342
  * // run at runtime without re-installing:
319
- * const { installCommandString, execute } = usePersona('npm-provenance');
343
+ * const { install, sendMessage } = usePersona('npm-provenance');
320
344
  * // build/CI step:
321
- * spawnSync(installCommandString, { shell: true, stdio: 'inherit' });
345
+ * spawnSync(install.commandString, { shell: true, stdio: 'inherit' });
322
346
  * // runtime step:
323
- * const result = await execute('Your task', {
347
+ * const result = await sendMessage('Your task', {
324
348
  * workingDirectory: '.',
325
349
  * installSkills: false,
326
350
  * });
@@ -330,7 +354,7 @@ export declare function resolvePersonaByTier(intent: PersonaIntent, tier?: Perso
330
354
  * // throw an AbortError with `err.result.status === 'cancelled'`, so
331
355
  * // wrap in try/catch if you plan to abort.
332
356
  * const abort = new AbortController();
333
- * const run = usePersona('npm-provenance').execute('Your task', {
357
+ * const run = usePersona('npm-provenance').sendMessage('Your task', {
334
358
  * signal: abort.signal,
335
359
  * onProgress: ({ stream, text }) => process[stream].write(text),
336
360
  * });
@@ -1 +1 @@
1
- {"version":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