@agentworkforce/workload-router 0.15.0 → 0.16.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/CHANGELOG.md +8 -0
- package/README.md +8 -2
- package/dist/generated/personas.d.ts +2 -1034
- package/dist/generated/personas.d.ts.map +1 -1
- package/dist/generated/personas.js +2 -850
- package/dist/generated/personas.js.map +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -34
- package/dist/index.js.map +1 -1
- package/dist/index.test.js +129 -444
- package/dist/index.test.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.16.0] - 2026-05-08
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Add --dry-run flag to agentworkforce agent**
|
|
15
|
+
|
|
16
|
+
## [0.15.1] - 2026-05-08
|
|
17
|
+
|
|
10
18
|
### Added
|
|
11
19
|
|
|
12
20
|
- Personas can declare prompt-visible runtime `inputs`, which are parsed,
|
package/README.md
CHANGED
|
@@ -18,6 +18,12 @@ resolved persona and grouped install metadata. Nothing is installed,
|
|
|
18
18
|
spawned, or written to disk — run `install.commandString` yourself when
|
|
19
19
|
you are ready to materialize the persona's skills.
|
|
20
20
|
|
|
21
|
+
`usePersona` resolves only the internal built-in catalog (`persona-maker` /
|
|
22
|
+
`persona-authoring`). Optional personas such as `code-reviewer` and
|
|
23
|
+
`frontend-implementer` are distributed through installable persona packs and
|
|
24
|
+
should be loaded through the CLI/source cascade, then passed to `useSelection`
|
|
25
|
+
or `materializeSkillsFor`.
|
|
26
|
+
|
|
21
27
|
```ts
|
|
22
28
|
import { usePersona } from '@agentworkforce/workload-router';
|
|
23
29
|
```
|
|
@@ -25,7 +31,7 @@ import { usePersona } from '@agentworkforce/workload-router';
|
|
|
25
31
|
#### Return shape
|
|
26
32
|
|
|
27
33
|
```ts
|
|
28
|
-
const { selection, install } = usePersona('
|
|
34
|
+
const { selection, install } = usePersona('persona-authoring');
|
|
29
35
|
```
|
|
30
36
|
|
|
31
37
|
- `selection`: the resolved persona choice for the given intent/profile. Includes `personaId`, `tier`, `runtime`, `skills`, `inputs`, `mount`, and `rationale`.
|
|
@@ -41,7 +47,7 @@ const { selection, install } = usePersona('npm-provenance');
|
|
|
41
47
|
import { spawnSync } from 'node:child_process';
|
|
42
48
|
import { usePersona } from '@agentworkforce/workload-router';
|
|
43
49
|
|
|
44
|
-
const { selection, install } = usePersona('
|
|
50
|
+
const { selection, install } = usePersona('persona-authoring');
|
|
45
51
|
|
|
46
52
|
spawnSync(install.commandString, { shell: true, stdio: 'inherit' });
|
|
47
53
|
// hand `selection` to your harness launcher of choice.
|