agentera 0.0.0 → 0.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/README.md +2 -2
- package/lib/exec.mjs +3 -4
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -41,8 +41,8 @@ npx agentera@0.0.0 --version
|
|
|
41
41
|
## Development
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
node packages/cli/bin/agentera.mjs --version
|
|
45
|
-
node packages/cli/bin/agentera.mjs --help
|
|
44
|
+
node packages/cli/shim/bin/agentera.mjs --version
|
|
45
|
+
node packages/cli/shim/bin/agentera.mjs --help
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
Suite version pin lives in `package.json` under `agentera.suiteVersion` / `agentera.gitRef`; npm `version` stays on the `0.0.x` line until 3.0.
|
package/lib/exec.mjs
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
|
-
import path from "node:path";
|
|
3
2
|
|
|
4
3
|
import { resolveBackend } from "./resolve.mjs";
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* @param {import('./resolve.mjs').ResolveResult} backend
|
|
8
7
|
* @param {string[]} args
|
|
9
|
-
* @param {{ gitRef?: string; gitRepo?: string }} [meta]
|
|
8
|
+
* @param {{ gitRef?: string; gitRepo?: string; cwd?: string }} [meta]
|
|
10
9
|
* @returns {number}
|
|
11
10
|
*/
|
|
12
11
|
export function runBackend(backend, args, meta = {}) {
|
|
13
12
|
if (backend.kind === "app-home" && backend.scriptPath) {
|
|
14
|
-
const appRoot = path.dirname(path.dirname(backend.scriptPath));
|
|
15
13
|
return spawnChecked("uv", ["run", backend.scriptPath, ...args], {
|
|
16
|
-
cwd:
|
|
14
|
+
cwd: meta.cwd,
|
|
17
15
|
});
|
|
18
16
|
}
|
|
19
17
|
|
|
@@ -87,6 +85,7 @@ export function dispatch(argv, options = {}) {
|
|
|
87
85
|
return runBackend(backend, userArgs, {
|
|
88
86
|
gitRef: options.gitRef,
|
|
89
87
|
gitRepo: options.gitRepo,
|
|
88
|
+
cwd: options.cwd,
|
|
90
89
|
});
|
|
91
90
|
}
|
|
92
91
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentera",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "npm shim for Agentera — delegates to the Python CLI until the 3.0 TypeScript release",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
],
|
|
32
32
|
"agentera": {
|
|
33
33
|
"suiteVersion": "2.7.6",
|
|
34
|
-
"gitRef": "
|
|
34
|
+
"gitRef": "77e9f27f0a2d1c50a881363364291316fbf45c21"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "pnpm -C .. test test/shim/",
|
|
38
|
+
"publish:stable": "node ./scripts/publish-stable.mjs"
|
|
35
39
|
}
|
|
36
40
|
}
|