agentworkforce 0.6.1 → 0.8.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 +18 -0
- package/README.md +2 -0
- package/bin/agentworkforce.js +22 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `agentworkforce create` now opens `persona-maker@best`, supports target
|
|
13
|
+
selection, and passes `TARGET_DIR` / `CREATE_MODE` persona inputs.
|
|
14
|
+
- `agentworkforce --version` now prints the installed package version.
|
|
15
|
+
|
|
16
|
+
## [0.8.0] - 2026-05-07
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- **Add persona create mode**
|
|
21
|
+
|
|
22
|
+
## [0.7.0] - 2026-05-07
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Add agentworkforce version flag
|
|
27
|
+
|
|
10
28
|
## [0.6.0] - 2026-05-06
|
|
11
29
|
|
|
12
30
|
### Added
|
package/README.md
CHANGED
|
@@ -9,11 +9,13 @@ npm i -g agentworkforce
|
|
|
9
9
|
Then:
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
+
agentworkforce create [--to <target>] [--save-default]
|
|
12
13
|
agentworkforce agent <persona>[@<tier>]
|
|
13
14
|
agentworkforce list [flags]
|
|
14
15
|
agentworkforce show <persona>
|
|
15
16
|
agentworkforce sources <list|add|remove>
|
|
16
17
|
agentworkforce harness check
|
|
18
|
+
agentworkforce --version
|
|
17
19
|
```
|
|
18
20
|
|
|
19
21
|
This package is a thin wrapper around [`@agentworkforce/cli`](https://www.npmjs.com/package/@agentworkforce/cli).
|
package/bin/agentworkforce.js
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
|
|
4
|
+
// Top-level wrapper. Delegates to the @agentworkforce/cli entry point under the
|
|
3
5
|
// shorter `agentworkforce` bin name so users can `npm i -g agentworkforce` and
|
|
4
6
|
// run `agentworkforce agent <persona>`. The CLI derives its help-text bin name
|
|
5
7
|
// from process.argv[1], so this file's basename (sans extension) is what
|
|
6
8
|
// shows up in usage strings.
|
|
7
|
-
|
|
9
|
+
function readPackageVersion() {
|
|
10
|
+
const pkg = JSON.parse(
|
|
11
|
+
readFileSync(new URL('../package.json', import.meta.url), 'utf8')
|
|
12
|
+
);
|
|
13
|
+
if (typeof pkg.version !== 'string' || !pkg.version) {
|
|
14
|
+
throw new Error('Could not read agentworkforce package version.');
|
|
15
|
+
}
|
|
16
|
+
return pkg.version;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
try {
|
|
20
|
+
if (process.argv[2] === '-v' || process.argv[2] === '--version') {
|
|
21
|
+
process.stdout.write(`${readPackageVersion()}\n`);
|
|
22
|
+
process.exit(0);
|
|
23
|
+
}
|
|
8
24
|
|
|
9
|
-
main(
|
|
25
|
+
const { main } = await import('@agentworkforce/cli/dist/cli.js');
|
|
26
|
+
await main();
|
|
27
|
+
} catch (err) {
|
|
10
28
|
process.stderr.write(`${err?.stack ?? String(err)}\n`);
|
|
11
29
|
process.exit(1);
|
|
12
|
-
}
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentworkforce",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Top-level installer for the Agent Workforce CLI (installs the `agentworkforce` command). Wraps @agentworkforce/cli.",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"node": ">=22"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@agentworkforce/cli": "0.
|
|
20
|
+
"@agentworkforce/cli": "0.8.0"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"dev": "chmod +x bin/agentworkforce.js",
|
|
33
33
|
"typecheck": "node --check bin/agentworkforce.js",
|
|
34
34
|
"lint": "node --check bin/agentworkforce.js",
|
|
35
|
-
"test": "node --check bin/agentworkforce.js"
|
|
35
|
+
"test": "node --check bin/agentworkforce.js && node --test test/*.test.js"
|
|
36
36
|
}
|
|
37
37
|
}
|