@nodetool-ai/cli-execution 0.8.14 → 0.8.16
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
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @nodetool-ai/cli-execution
|
|
2
|
+
|
|
3
|
+
The in-process execution layer behind `nodetool run`, `validate`, `debug` and
|
|
4
|
+
`node run`. It registers no commands. The command features in
|
|
5
|
+
[`cli-workflow`](../cli-workflow/README.md) and `cli-harness` call it.
|
|
6
|
+
|
|
7
|
+
The package root exports `configureCliPackHost`, `registerCliPacks`,
|
|
8
|
+
`getCliPackSource` and `installLocalModelInterfaces`. Everything else is a
|
|
9
|
+
subpath import.
|
|
10
|
+
|
|
11
|
+
| Module | What it provides |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `packs/host` | Configures the pack host and registers installed packs into a node registry for a CLI run. |
|
|
14
|
+
| `local-model-interfaces` | `installLocalModelInterfaces()` gives local runs asset and timeline-sequence persistence against the database that `setupDb()` opens. Every command that runs a graph installs it, so `debug` and `workflows run` behave the same. |
|
|
15
|
+
| `node-registry` | `buildFullRegistry()` and the built-in pack policies for CLI and DSL runs. |
|
|
16
|
+
| `run-dsl`, `run-dsl-supervised` | Load and run a TypeScript DSL workflow file, optionally under a supervisor agent. |
|
|
17
|
+
| `supervisor` | The supervisor flags (`addSupervisorOptions`, `parseSupervisorFlags`) and handle. The default model is `DEFAULT_SUPERVISOR_MODEL`. |
|
|
18
|
+
| `run-budget` | The cost and time bounds one agent run shares, with `--cost-cap` and `--timeout` overrides, and the stop reason and summary line. |
|
|
19
|
+
| `run-json` | The JSON form of a run result for `--json` output. |
|
|
20
|
+
| `validate` | `runValidate`, the static graph check behind `nodetool validate`. |
|
|
21
|
+
| `node/run-node` | `runSingleNode`, behind `nodetool node run`. |
|
|
22
|
+
| `debug/` | The debug harness: `runDebug`, the server and browser runners, the verdict, and the Markdown report. See [`nodetool debug`](../../docs/harnesses.md#nodetool-debug-workflow-debug-harness). |
|
|
23
|
+
| `sandbox-catalog` | Installs the sandbox module catalog and discovers pack type declarations. |
|
|
24
|
+
|
|
25
|
+
Run its tests with `npm run test --workspace=packages/cli-execution`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-11-
|
|
1
|
+
2026-11-26T14:09:35.697Z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-model-interfaces.d.ts","sourceRoot":"","sources":["../src/local-model-interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAG7E,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,gCAAgC,CAAC,
|
|
1
|
+
{"version":3,"file":"local-model-interfaces.d.ts","sourceRoot":"","sources":["../src/local-model-interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAG7E,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,gCAAgC,CAAC,CAiCtF;AAID,oDAAoD;AACpD,wBAAgB,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC,CAO3D"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { setDefaultModelInterfaces } from "@nodetool-ai/runtime";
|
|
17
17
|
export async function localModelInterfaces() {
|
|
18
|
-
const { createAssetModelInterface, updateAssetBytesModelInterface } = await import("@nodetool-ai/asset-services");
|
|
18
|
+
const { createAssetModelInterface, updateAssetBytesModelInterface, textDocumentModelInterfaces } = await import("@nodetool-ai/asset-services");
|
|
19
19
|
// `createAsset` saves a file into the run's project folder. Loading the
|
|
20
20
|
// folder service installs the resolver asset services reach it through.
|
|
21
21
|
await import("@nodetool-ai/execution/service");
|
|
@@ -30,7 +30,12 @@ export async function localModelInterfaces() {
|
|
|
30
30
|
return {
|
|
31
31
|
createAsset: createAssetModelInterface,
|
|
32
32
|
updateAssetBytes: updateAssetBytesModelInterface,
|
|
33
|
-
...
|
|
33
|
+
...textDocumentModelInterfaces(),
|
|
34
|
+
...documentModelInterfaces(),
|
|
35
|
+
convertDocumentToMarkdown: async (args) => {
|
|
36
|
+
const { convertDocumentBytesToMarkdown } = await import("@nodetool-ai/agents/text-document-transfer");
|
|
37
|
+
return convertDocumentBytesToMarkdown(args);
|
|
38
|
+
}
|
|
34
39
|
};
|
|
35
40
|
}
|
|
36
41
|
let installed = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-model-interfaces.js","sourceRoot":"","sources":["../src/local-model-interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,MAAM,
|
|
1
|
+
{"version":3,"file":"local-model-interfaces.js","sourceRoot":"","sources":["../src/local-model-interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,MAAM,EACJ,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC5B,GAAG,MAAM,MAAM,CAAC,6BAA6B,CAAC,CAAC;IAChD,wEAAwE;IACxE,wEAAwE;IACxE,MAAM,MAAM,CAAC,gCAAgC,CAAC,CAAC;IAC/C,yEAAyE;IACzE,2EAA2E;IAC3E,MAAM,EAAE,wBAAwB,EAAE,GAAG,MAAM,MAAM,CAC/C,mDAAmD,CACpD,CAAC;IACF,wBAAwB,EAAE,CAAC;IAC3B,wEAAwE;IACxE,4EAA4E;IAC5E,qDAAqD;IACrD,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,MAAM,CAC9C,gCAAgC,CACjC,CAAC;IACF,OAAO;QACL,WAAW,EAAE,yBAAyB;QACtC,gBAAgB,EAAE,8BAA8B;QAChD,GAAG,2BAA2B,EAAE;QAChC,GAAG,uBAAuB,EAAE;QAC5B,yBAAyB,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACxC,MAAM,EAAE,8BAA8B,EAAE,GAAG,MAAM,MAAM,CACrD,4CAA4C,CAC7C,CAAC;YACF,OAAO,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC;KACF,CAAC;AACJ,CAAC;AAED,IAAI,SAAS,GAAyB,IAAI,CAAC;AAE3C,oDAAoD;AACpD,MAAM,UAAU,2BAA2B;IACzC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,SAAS,GAAG,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE;YACrD,yBAAyB,CAAC,UAAU,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodetool-ai/cli-execution",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.16",
|
|
4
4
|
"description": "Shared NodeTool execution host helpers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -28,28 +28,28 @@
|
|
|
28
28
|
"lint": "node ../../scripts/run-tsc.mjs --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nodetool-ai/agents": "0.8.
|
|
32
|
-
"@nodetool-ai/cli-common": "0.8.
|
|
33
|
-
"@nodetool-ai/cli-local": "0.8.
|
|
34
|
-
"@nodetool-ai/cli-providers": "0.8.
|
|
35
|
-
"@nodetool-ai/config": "0.8.
|
|
36
|
-
"@nodetool-ai/dsl": "0.8.
|
|
37
|
-
"@nodetool-ai/execution": "0.8.
|
|
38
|
-
"@nodetool-ai/kernel": "0.8.
|
|
39
|
-
"@nodetool-ai/models": "0.8.
|
|
40
|
-
"@nodetool-ai/node-catalog": "0.8.
|
|
41
|
-
"@nodetool-ai/node-sdk": "0.8.
|
|
42
|
-
"@nodetool-ai/pack-manager": "0.8.
|
|
43
|
-
"@nodetool-ai/protocol": "0.8.
|
|
44
|
-
"@nodetool-ai/runtime": "0.8.
|
|
45
|
-
"@nodetool-ai/sandbox-compiler": "0.8.
|
|
46
|
-
"@nodetool-ai/storage": "0.8.
|
|
31
|
+
"@nodetool-ai/agents": "0.8.16",
|
|
32
|
+
"@nodetool-ai/cli-common": "0.8.16",
|
|
33
|
+
"@nodetool-ai/cli-local": "0.8.16",
|
|
34
|
+
"@nodetool-ai/cli-providers": "0.8.16",
|
|
35
|
+
"@nodetool-ai/config": "0.8.16",
|
|
36
|
+
"@nodetool-ai/dsl": "0.8.16",
|
|
37
|
+
"@nodetool-ai/execution": "0.8.16",
|
|
38
|
+
"@nodetool-ai/kernel": "0.8.16",
|
|
39
|
+
"@nodetool-ai/models": "0.8.16",
|
|
40
|
+
"@nodetool-ai/node-catalog": "0.8.16",
|
|
41
|
+
"@nodetool-ai/node-sdk": "0.8.16",
|
|
42
|
+
"@nodetool-ai/pack-manager": "0.8.16",
|
|
43
|
+
"@nodetool-ai/protocol": "0.8.16",
|
|
44
|
+
"@nodetool-ai/runtime": "0.8.16",
|
|
45
|
+
"@nodetool-ai/sandbox-compiler": "0.8.16",
|
|
46
|
+
"@nodetool-ai/storage": "0.8.16",
|
|
47
47
|
"commander": "^12.1.0",
|
|
48
48
|
"zod": "^4.0.0",
|
|
49
|
-
"@nodetool-ai/asset-services": "0.8.
|
|
49
|
+
"@nodetool-ai/asset-services": "0.8.16",
|
|
50
50
|
"tsx": "^4.19.2",
|
|
51
|
-
"@nodetool-ai/pack-host": "0.8.
|
|
52
|
-
"@nodetool-ai/document-services": "0.8.
|
|
51
|
+
"@nodetool-ai/pack-host": "0.8.16",
|
|
52
|
+
"@nodetool-ai/document-services": "0.8.16"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^22.0.0",
|