@nodetool-ai/cli 0.8.8 → 0.8.9-beta.2
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 +61 -109
- package/dist/.nodetool-build-stamp +1 -1
- package/dist/chat.d.ts +3 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.js +8 -0
- package/dist/chat.js.map +1 -0
- package/dist/index.d.ts +1 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -231
- package/dist/index.js.map +1 -1
- package/dist/lean/commandFeatures.d.ts +3 -0
- package/dist/lean/commandFeatures.d.ts.map +1 -0
- package/dist/lean/commandFeatures.js +21 -0
- package/dist/lean/commandFeatures.js.map +1 -0
- package/dist/lean/errors.d.ts +19 -0
- package/dist/lean/errors.d.ts.map +1 -0
- package/dist/lean/errors.js +20 -0
- package/dist/lean/errors.js.map +1 -0
- package/dist/lean/program.d.ts +12 -0
- package/dist/lean/program.d.ts.map +1 -0
- package/dist/lean/program.js +398 -0
- package/dist/lean/program.js.map +1 -0
- package/dist/nodetool.js +6 -29
- package/dist/nodetool.js.map +1 -1
- package/package.json +14 -67
- package/dist/ExecutionTree.d.ts +0 -20
- package/dist/ExecutionTree.d.ts.map +0 -1
- package/dist/ExecutionTree.js +0 -100
- package/dist/ExecutionTree.js.map +0 -1
- package/dist/affected/affected.d.ts +0 -48
- package/dist/affected/affected.d.ts.map +0 -1
- package/dist/affected/affected.js +0 -167
- package/dist/affected/affected.js.map +0 -1
- package/dist/agent-toolbelt.d.ts +0 -15
- package/dist/agent-toolbelt.d.ts.map +0 -1
- package/dist/agent-toolbelt.js +0 -28
- package/dist/agent-toolbelt.js.map +0 -1
- package/dist/api-client.d.ts +0 -12
- package/dist/api-client.d.ts.map +0 -1
- package/dist/api-client.js +0 -21
- package/dist/api-client.js.map +0 -1
- package/dist/app-build/bundle.d.ts +0 -15
- package/dist/app-build/bundle.d.ts.map +0 -1
- package/dist/app-build/bundle.js +0 -45
- package/dist/app-build/bundle.js.map +0 -1
- package/dist/app-build/watch.d.ts +0 -13
- package/dist/app-build/watch.d.ts.map +0 -1
- package/dist/app-build/watch.js +0 -25
- package/dist/app-build/watch.js.map +0 -1
- package/dist/app-debug/app-target.d.ts +0 -14
- package/dist/app-debug/app-target.d.ts.map +0 -1
- package/dist/app-debug/app-target.js +0 -120
- package/dist/app-debug/app-target.js.map +0 -1
- package/dist/app-debug/harness.d.ts +0 -29
- package/dist/app-debug/harness.d.ts.map +0 -1
- package/dist/app-debug/harness.js +0 -116
- package/dist/app-debug/harness.js.map +0 -1
- package/dist/app-debug/index.d.ts +0 -12
- package/dist/app-debug/index.d.ts.map +0 -1
- package/dist/app-debug/index.js +0 -9
- package/dist/app-debug/index.js.map +0 -1
- package/dist/app.d.ts +0 -40
- package/dist/app.d.ts.map +0 -1
- package/dist/app.js +0 -1070
- package/dist/app.js.map +0 -1
- package/dist/bash-tool.d.ts +0 -13
- package/dist/bash-tool.d.ts.map +0 -1
- package/dist/bash-tool.js +0 -85
- package/dist/bash-tool.js.map +0 -1
- package/dist/chat-codeact.d.ts +0 -93
- package/dist/chat-codeact.d.ts.map +0 -1
- package/dist/chat-codeact.js +0 -179
- package/dist/chat-codeact.js.map +0 -1
- package/dist/chat-context.d.ts +0 -18
- package/dist/chat-context.d.ts.map +0 -1
- package/dist/chat-context.js +0 -32
- package/dist/chat-context.js.map +0 -1
- package/dist/chat-media.d.ts +0 -3
- package/dist/chat-media.d.ts.map +0 -1
- package/dist/chat-media.js +0 -46
- package/dist/chat-media.js.map +0 -1
- package/dist/chat-prompts.d.ts +0 -20
- package/dist/chat-prompts.d.ts.map +0 -1
- package/dist/chat-prompts.js +0 -42
- package/dist/chat-prompts.js.map +0 -1
- package/dist/chat-sessions.d.ts +0 -25
- package/dist/chat-sessions.d.ts.map +0 -1
- package/dist/chat-sessions.js +0 -153
- package/dist/chat-sessions.js.map +0 -1
- package/dist/child-exit.d.ts +0 -3
- package/dist/child-exit.d.ts.map +0 -1
- package/dist/child-exit.js +0 -17
- package/dist/child-exit.js.map +0 -1
- package/dist/command-errors.d.ts +0 -8
- package/dist/command-errors.d.ts.map +0 -1
- package/dist/command-errors.js +0 -49
- package/dist/command-errors.js.map +0 -1
- package/dist/commands/__tests__/jtbd.test.d.ts +0 -2
- package/dist/commands/__tests__/jtbd.test.d.ts.map +0 -1
- package/dist/commands/__tests__/jtbd.test.js +0 -120
- package/dist/commands/__tests__/jtbd.test.js.map +0 -1
- package/dist/commands/__tests__/runtime.test.d.ts +0 -2
- package/dist/commands/__tests__/runtime.test.d.ts.map +0 -1
- package/dist/commands/__tests__/runtime.test.js +0 -129
- package/dist/commands/__tests__/runtime.test.js.map +0 -1
- package/dist/commands/__tests__/timeline-render-audio.test.d.ts +0 -2
- package/dist/commands/__tests__/timeline-render-audio.test.d.ts.map +0 -1
- package/dist/commands/__tests__/timeline-render-audio.test.js +0 -53
- package/dist/commands/__tests__/timeline-render-audio.test.js.map +0 -1
- package/dist/commands/__tests__/timeline-render-completeness.test.d.ts +0 -2
- package/dist/commands/__tests__/timeline-render-completeness.test.d.ts.map +0 -1
- package/dist/commands/__tests__/timeline-render-completeness.test.js +0 -117
- package/dist/commands/__tests__/timeline-render-completeness.test.js.map +0 -1
- package/dist/commands/__tests__/timeline-render.test.d.ts +0 -2
- package/dist/commands/__tests__/timeline-render.test.d.ts.map +0 -1
- package/dist/commands/__tests__/timeline-render.test.js +0 -115
- package/dist/commands/__tests__/timeline-render.test.js.map +0 -1
- package/dist/commands/__tests__/timeline-score.test.d.ts +0 -2
- package/dist/commands/__tests__/timeline-score.test.d.ts.map +0 -1
- package/dist/commands/__tests__/timeline-score.test.js +0 -100
- package/dist/commands/__tests__/timeline-score.test.js.map +0 -1
- package/dist/commands/affected.d.ts +0 -9
- package/dist/commands/affected.d.ts.map +0 -1
- package/dist/commands/affected.js +0 -127
- package/dist/commands/affected.js.map +0 -1
- package/dist/commands/agent.d.ts +0 -33
- package/dist/commands/agent.d.ts.map +0 -1
- package/dist/commands/agent.js +0 -514
- package/dist/commands/agent.js.map +0 -1
- package/dist/commands/app.d.ts +0 -3
- package/dist/commands/app.d.ts.map +0 -1
- package/dist/commands/app.js +0 -406
- package/dist/commands/app.js.map +0 -1
- package/dist/commands/apps.d.ts +0 -15
- package/dist/commands/apps.d.ts.map +0 -1
- package/dist/commands/apps.js +0 -274
- package/dist/commands/apps.js.map +0 -1
- package/dist/commands/auth.d.ts +0 -12
- package/dist/commands/auth.d.ts.map +0 -1
- package/dist/commands/auth.js +0 -154
- package/dist/commands/auth.js.map +0 -1
- package/dist/commands/authorized-pack-install.d.ts +0 -7
- package/dist/commands/authorized-pack-install.d.ts.map +0 -1
- package/dist/commands/authorized-pack-install.js +0 -20
- package/dist/commands/authorized-pack-install.js.map +0 -1
- package/dist/commands/collections.d.ts +0 -10
- package/dist/commands/collections.d.ts.map +0 -1
- package/dist/commands/collections.js +0 -257
- package/dist/commands/collections.js.map +0 -1
- package/dist/commands/costs.d.ts +0 -15
- package/dist/commands/costs.d.ts.map +0 -1
- package/dist/commands/costs.js +0 -201
- package/dist/commands/costs.js.map +0 -1
- package/dist/commands/db.d.ts +0 -3
- package/dist/commands/db.d.ts.map +0 -1
- package/dist/commands/db.js +0 -176
- package/dist/commands/db.js.map +0 -1
- package/dist/commands/debug-summary-output.d.ts +0 -22
- package/dist/commands/debug-summary-output.d.ts.map +0 -1
- package/dist/commands/debug-summary-output.js +0 -28
- package/dist/commands/debug-summary-output.js.map +0 -1
- package/dist/commands/debug.d.ts +0 -13
- package/dist/commands/debug.d.ts.map +0 -1
- package/dist/commands/debug.js +0 -150
- package/dist/commands/debug.js.map +0 -1
- package/dist/commands/deploy-helpers.d.ts +0 -85
- package/dist/commands/deploy-helpers.d.ts.map +0 -1
- package/dist/commands/deploy-helpers.js +0 -217
- package/dist/commands/deploy-helpers.js.map +0 -1
- package/dist/commands/deploy.d.ts +0 -7
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -449
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/errors.d.ts +0 -11
- package/dist/commands/errors.d.ts.map +0 -1
- package/dist/commands/errors.js +0 -177
- package/dist/commands/errors.js.map +0 -1
- package/dist/commands/eval.d.ts +0 -152
- package/dist/commands/eval.d.ts.map +0 -1
- package/dist/commands/eval.js +0 -693
- package/dist/commands/eval.js.map +0 -1
- package/dist/commands/extension.d.ts +0 -12
- package/dist/commands/extension.d.ts.map +0 -1
- package/dist/commands/extension.js +0 -30
- package/dist/commands/extension.js.map +0 -1
- package/dist/commands/game-benchmark.d.ts +0 -48
- package/dist/commands/game-benchmark.d.ts.map +0 -1
- package/dist/commands/game-benchmark.js +0 -108
- package/dist/commands/game-benchmark.js.map +0 -1
- package/dist/commands/game-smoke.d.ts +0 -3
- package/dist/commands/game-smoke.d.ts.map +0 -1
- package/dist/commands/game-smoke.js +0 -23
- package/dist/commands/game-smoke.js.map +0 -1
- package/dist/commands/game.d.ts +0 -4
- package/dist/commands/game.d.ts.map +0 -1
- package/dist/commands/game.js +0 -856
- package/dist/commands/game.js.map +0 -1
- package/dist/commands/generate.d.ts +0 -17
- package/dist/commands/generate.d.ts.map +0 -1
- package/dist/commands/generate.js +0 -326
- package/dist/commands/generate.js.map +0 -1
- package/dist/commands/generations.d.ts +0 -17
- package/dist/commands/generations.d.ts.map +0 -1
- package/dist/commands/generations.js +0 -408
- package/dist/commands/generations.js.map +0 -1
- package/dist/commands/harness.d.ts +0 -90
- package/dist/commands/harness.d.ts.map +0 -1
- package/dist/commands/harness.js +0 -892
- package/dist/commands/harness.js.map +0 -1
- package/dist/commands/install-missing-packs.d.ts +0 -21
- package/dist/commands/install-missing-packs.d.ts.map +0 -1
- package/dist/commands/install-missing-packs.js +0 -48
- package/dist/commands/install-missing-packs.js.map +0 -1
- package/dist/commands/js-script-validation-output.d.ts +0 -7
- package/dist/commands/js-script-validation-output.d.ts.map +0 -1
- package/dist/commands/js-script-validation-output.js +0 -5
- package/dist/commands/js-script-validation-output.js.map +0 -1
- package/dist/commands/js-script-versions.d.ts +0 -53
- package/dist/commands/js-script-versions.d.ts.map +0 -1
- package/dist/commands/js-script-versions.js +0 -89
- package/dist/commands/js-script-versions.js.map +0 -1
- package/dist/commands/js-script.d.ts +0 -29
- package/dist/commands/js-script.d.ts.map +0 -1
- package/dist/commands/js-script.js +0 -240
- package/dist/commands/js-script.js.map +0 -1
- package/dist/commands/jtbd.d.ts +0 -38
- package/dist/commands/jtbd.d.ts.map +0 -1
- package/dist/commands/jtbd.js +0 -261
- package/dist/commands/jtbd.js.map +0 -1
- package/dist/commands/local-db.d.ts +0 -16
- package/dist/commands/local-db.d.ts.map +0 -1
- package/dist/commands/local-db.js +0 -33
- package/dist/commands/local-db.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -21
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -166
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/migrate-code-inputs.d.ts +0 -24
- package/dist/commands/migrate-code-inputs.d.ts.map +0 -1
- package/dist/commands/migrate-code-inputs.js +0 -120
- package/dist/commands/migrate-code-inputs.js.map +0 -1
- package/dist/commands/models-hf.d.ts +0 -9
- package/dist/commands/models-hf.d.ts.map +0 -1
- package/dist/commands/models-hf.js +0 -235
- package/dist/commands/models-hf.js.map +0 -1
- package/dist/commands/models-recommended.d.ts +0 -10
- package/dist/commands/models-recommended.d.ts.map +0 -1
- package/dist/commands/models-recommended.js +0 -120
- package/dist/commands/models-recommended.js.map +0 -1
- package/dist/commands/node.d.ts +0 -10
- package/dist/commands/node.d.ts.map +0 -1
- package/dist/commands/node.js +0 -130
- package/dist/commands/node.js.map +0 -1
- package/dist/commands/output.d.ts +0 -32
- package/dist/commands/output.d.ts.map +0 -1
- package/dist/commands/output.js +0 -150
- package/dist/commands/output.js.map +0 -1
- package/dist/commands/pack-install-authorization.d.ts +0 -40
- package/dist/commands/pack-install-authorization.d.ts.map +0 -1
- package/dist/commands/pack-install-authorization.js +0 -131
- package/dist/commands/pack-install-authorization.js.map +0 -1
- package/dist/commands/pack-management.d.ts +0 -26
- package/dist/commands/pack-management.d.ts.map +0 -1
- package/dist/commands/pack-management.js +0 -74
- package/dist/commands/pack-management.js.map +0 -1
- package/dist/commands/package-helpers.d.ts +0 -8
- package/dist/commands/package-helpers.d.ts.map +0 -1
- package/dist/commands/package-helpers.js +0 -53
- package/dist/commands/package-helpers.js.map +0 -1
- package/dist/commands/package.d.ts +0 -3
- package/dist/commands/package.d.ts.map +0 -1
- package/dist/commands/package.js +0 -258
- package/dist/commands/package.js.map +0 -1
- package/dist/commands/packs.d.ts +0 -14
- package/dist/commands/packs.d.ts.map +0 -1
- package/dist/commands/packs.js +0 -65
- package/dist/commands/packs.js.map +0 -1
- package/dist/commands/projects.d.ts +0 -11
- package/dist/commands/projects.d.ts.map +0 -1
- package/dist/commands/projects.js +0 -145
- package/dist/commands/projects.js.map +0 -1
- package/dist/commands/reliability.d.ts +0 -14
- package/dist/commands/reliability.d.ts.map +0 -1
- package/dist/commands/reliability.js +0 -81
- package/dist/commands/reliability.js.map +0 -1
- package/dist/commands/resource-read.d.ts +0 -28
- package/dist/commands/resource-read.d.ts.map +0 -1
- package/dist/commands/resource-read.js +0 -314
- package/dist/commands/resource-read.js.map +0 -1
- package/dist/commands/runs.d.ts +0 -7
- package/dist/commands/runs.d.ts.map +0 -1
- package/dist/commands/runs.js +0 -302
- package/dist/commands/runs.js.map +0 -1
- package/dist/commands/runtime.d.ts +0 -3
- package/dist/commands/runtime.d.ts.map +0 -1
- package/dist/commands/runtime.js +0 -169
- package/dist/commands/runtime.js.map +0 -1
- package/dist/commands/sketch-render.d.ts +0 -46
- package/dist/commands/sketch-render.d.ts.map +0 -1
- package/dist/commands/sketch-render.js +0 -131
- package/dist/commands/sketch-render.js.map +0 -1
- package/dist/commands/sketch-validation-output.d.ts +0 -7
- package/dist/commands/sketch-validation-output.d.ts.map +0 -1
- package/dist/commands/sketch-validation-output.js +0 -5
- package/dist/commands/sketch-validation-output.js.map +0 -1
- package/dist/commands/sketch-versions.d.ts +0 -66
- package/dist/commands/sketch-versions.d.ts.map +0 -1
- package/dist/commands/sketch-versions.js +0 -108
- package/dist/commands/sketch-versions.js.map +0 -1
- package/dist/commands/sketch.d.ts +0 -22
- package/dist/commands/sketch.d.ts.map +0 -1
- package/dist/commands/sketch.js +0 -101
- package/dist/commands/sketch.js.map +0 -1
- package/dist/commands/storage.d.ts +0 -24
- package/dist/commands/storage.d.ts.map +0 -1
- package/dist/commands/storage.js +0 -112
- package/dist/commands/storage.js.map +0 -1
- package/dist/commands/telegram.d.ts +0 -11
- package/dist/commands/telegram.d.ts.map +0 -1
- package/dist/commands/telegram.js +0 -66
- package/dist/commands/telegram.js.map +0 -1
- package/dist/commands/telemetry.d.ts +0 -24
- package/dist/commands/telemetry.d.ts.map +0 -1
- package/dist/commands/telemetry.js +0 -116
- package/dist/commands/telemetry.js.map +0 -1
- package/dist/commands/timeline-render.d.ts +0 -75
- package/dist/commands/timeline-render.d.ts.map +0 -1
- package/dist/commands/timeline-render.js +0 -465
- package/dist/commands/timeline-render.js.map +0 -1
- package/dist/commands/timeline-score.d.ts +0 -16
- package/dist/commands/timeline-score.d.ts.map +0 -1
- package/dist/commands/timeline-score.js +0 -89
- package/dist/commands/timeline-score.js.map +0 -1
- package/dist/commands/timeline-validation-output.d.ts +0 -7
- package/dist/commands/timeline-validation-output.d.ts.map +0 -1
- package/dist/commands/timeline-validation-output.js +0 -9
- package/dist/commands/timeline-validation-output.js.map +0 -1
- package/dist/commands/timeline-versions.d.ts +0 -72
- package/dist/commands/timeline-versions.d.ts.map +0 -1
- package/dist/commands/timeline-versions.js +0 -108
- package/dist/commands/timeline-versions.js.map +0 -1
- package/dist/commands/timeline.d.ts +0 -22
- package/dist/commands/timeline.d.ts.map +0 -1
- package/dist/commands/timeline.js +0 -103
- package/dist/commands/timeline.js.map +0 -1
- package/dist/commands/tools.d.ts +0 -11
- package/dist/commands/tools.d.ts.map +0 -1
- package/dist/commands/tools.js +0 -206
- package/dist/commands/tools.js.map +0 -1
- package/dist/commands/validate.d.ts +0 -24
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/validate.js +0 -132
- package/dist/commands/validate.js.map +0 -1
- package/dist/commands/validation-output.d.ts +0 -25
- package/dist/commands/validation-output.d.ts.map +0 -1
- package/dist/commands/validation-output.js +0 -29
- package/dist/commands/validation-output.js.map +0 -1
- package/dist/commands/version-commands.d.ts +0 -91
- package/dist/commands/version-commands.d.ts.map +0 -1
- package/dist/commands/version-commands.js +0 -222
- package/dist/commands/version-commands.js.map +0 -1
- package/dist/commands/worker-models.d.ts +0 -13
- package/dist/commands/worker-models.d.ts.map +0 -1
- package/dist/commands/worker-models.js +0 -207
- package/dist/commands/worker-models.js.map +0 -1
- package/dist/commands/worker.d.ts +0 -23
- package/dist/commands/worker.d.ts.map +0 -1
- package/dist/commands/worker.js +0 -374
- package/dist/commands/worker.js.map +0 -1
- package/dist/debug/browser-runner.d.ts +0 -21
- package/dist/debug/browser-runner.d.ts.map +0 -1
- package/dist/debug/browser-runner.js +0 -196
- package/dist/debug/browser-runner.js.map +0 -1
- package/dist/debug/collector.d.ts +0 -9
- package/dist/debug/collector.d.ts.map +0 -1
- package/dist/debug/collector.js +0 -9
- package/dist/debug/collector.js.map +0 -1
- package/dist/debug/diff.d.ts +0 -48
- package/dist/debug/diff.d.ts.map +0 -1
- package/dist/debug/diff.js +0 -68
- package/dist/debug/diff.js.map +0 -1
- package/dist/debug/harness.d.ts +0 -11
- package/dist/debug/harness.d.ts.map +0 -1
- package/dist/debug/harness.js +0 -103
- package/dist/debug/harness.js.map +0 -1
- package/dist/debug/index.d.ts +0 -17
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug/index.js +0 -16
- package/dist/debug/index.js.map +0 -1
- package/dist/debug/markdown.d.ts +0 -3
- package/dist/debug/markdown.d.ts.map +0 -1
- package/dist/debug/markdown.js +0 -127
- package/dist/debug/markdown.js.map +0 -1
- package/dist/debug/server-runner.d.ts +0 -24
- package/dist/debug/server-runner.d.ts.map +0 -1
- package/dist/debug/server-runner.js +0 -211
- package/dist/debug/server-runner.js.map +0 -1
- package/dist/debug/target.d.ts +0 -34
- package/dist/debug/target.d.ts.map +0 -1
- package/dist/debug/target.js +0 -95
- package/dist/debug/target.js.map +0 -1
- package/dist/debug/trace.d.ts +0 -30
- package/dist/debug/trace.d.ts.map +0 -1
- package/dist/debug/trace.js +0 -87
- package/dist/debug/trace.js.map +0 -1
- package/dist/debug/types.d.ts +0 -82
- package/dist/debug/types.d.ts.map +0 -1
- package/dist/debug/types.js +0 -13
- package/dist/debug/types.js.map +0 -1
- package/dist/debug/verdict.d.ts +0 -3
- package/dist/debug/verdict.d.ts.map +0 -1
- package/dist/debug/verdict.js +0 -78
- package/dist/debug/verdict.js.map +0 -1
- package/dist/debug/watch.d.ts +0 -23
- package/dist/debug/watch.d.ts.map +0 -1
- package/dist/debug/watch.js +0 -68
- package/dist/debug/watch.js.map +0 -1
- package/dist/debug-bundle.d.ts +0 -12
- package/dist/debug-bundle.d.ts.map +0 -1
- package/dist/debug-bundle.js +0 -23
- package/dist/debug-bundle.js.map +0 -1
- package/dist/diagnose.d.ts +0 -139
- package/dist/diagnose.d.ts.map +0 -1
- package/dist/diagnose.js +0 -418
- package/dist/diagnose.js.map +0 -1
- package/dist/document-json.d.ts +0 -11
- package/dist/document-json.d.ts.map +0 -1
- package/dist/document-json.js +0 -27
- package/dist/document-json.js.map +0 -1
- package/dist/evals/graph-runner.d.ts +0 -8
- package/dist/evals/graph-runner.d.ts.map +0 -1
- package/dist/evals/graph-runner.js +0 -136
- package/dist/evals/graph-runner.js.map +0 -1
- package/dist/harness/capability-coverage.d.ts +0 -163
- package/dist/harness/capability-coverage.d.ts.map +0 -1
- package/dist/harness/capability-coverage.js +0 -295
- package/dist/harness/capability-coverage.js.map +0 -1
- package/dist/harness/capability-table.d.ts +0 -17
- package/dist/harness/capability-table.d.ts.map +0 -1
- package/dist/harness/capability-table.js +0 -3925
- package/dist/harness/capability-table.js.map +0 -1
- package/dist/harness/changed-files.d.ts +0 -20
- package/dist/harness/changed-files.d.ts.map +0 -1
- package/dist/harness/changed-files.js +0 -90
- package/dist/harness/changed-files.js.map +0 -1
- package/dist/harness/declared-capabilities.d.ts +0 -12
- package/dist/harness/declared-capabilities.d.ts.map +0 -1
- package/dist/harness/declared-capabilities.js +0 -21
- package/dist/harness/declared-capabilities.js.map +0 -1
- package/dist/harness/registry.d.ts +0 -190
- package/dist/harness/registry.d.ts.map +0 -1
- package/dist/harness/registry.js +0 -2341
- package/dist/harness/registry.js.map +0 -1
- package/dist/install-lock.d.ts +0 -12
- package/dist/install-lock.d.ts.map +0 -1
- package/dist/install-lock.js +0 -139
- package/dist/install-lock.js.map +0 -1
- package/dist/interaction-script.d.ts +0 -40
- package/dist/interaction-script.d.ts.map +0 -1
- package/dist/interaction-script.js +0 -104
- package/dist/interaction-script.js.map +0 -1
- package/dist/js-script-debug/harness.d.ts +0 -146
- package/dist/js-script-debug/harness.d.ts.map +0 -1
- package/dist/js-script-debug/harness.js +0 -220
- package/dist/js-script-debug/harness.js.map +0 -1
- package/dist/js-script-debug/index.d.ts +0 -9
- package/dist/js-script-debug/index.d.ts.map +0 -1
- package/dist/js-script-debug/index.js +0 -9
- package/dist/js-script-debug/index.js.map +0 -1
- package/dist/js-script-debug/interactions.d.ts +0 -19
- package/dist/js-script-debug/interactions.d.ts.map +0 -1
- package/dist/js-script-debug/interactions.js +0 -17
- package/dist/js-script-debug/interactions.js.map +0 -1
- package/dist/js-script-debug/target.d.ts +0 -20
- package/dist/js-script-debug/target.d.ts.map +0 -1
- package/dist/js-script-debug/target.js +0 -55
- package/dist/js-script-debug/target.js.map +0 -1
- package/dist/local-model-interfaces.d.ts +0 -20
- package/dist/local-model-interfaces.d.ts.map +0 -1
- package/dist/local-model-interfaces.js +0 -41
- package/dist/local-model-interfaces.js.map +0 -1
- package/dist/local-secrets.d.ts +0 -3
- package/dist/local-secrets.d.ts.map +0 -1
- package/dist/local-secrets.js +0 -16
- package/dist/local-secrets.js.map +0 -1
- package/dist/markdown.d.ts +0 -9
- package/dist/markdown.d.ts.map +0 -1
- package/dist/markdown.js +0 -53
- package/dist/markdown.js.map +0 -1
- package/dist/node/run-node.d.ts +0 -31
- package/dist/node/run-node.d.ts.map +0 -1
- package/dist/node/run-node.js +0 -92
- package/dist/node/run-node.js.map +0 -1
- package/dist/node-registry.d.ts +0 -29
- package/dist/node-registry.d.ts.map +0 -1
- package/dist/node-registry.js +0 -38
- package/dist/node-registry.js.map +0 -1
- package/dist/nodetool-main.d.ts +0 -15
- package/dist/nodetool-main.d.ts.map +0 -1
- package/dist/nodetool-main.js +0 -1456
- package/dist/nodetool-main.js.map +0 -1
- package/dist/npm-runner.d.ts +0 -23
- package/dist/npm-runner.d.ts.map +0 -1
- package/dist/npm-runner.js +0 -160
- package/dist/npm-runner.js.map +0 -1
- package/dist/numeric-options.d.ts +0 -22
- package/dist/numeric-options.d.ts.map +0 -1
- package/dist/numeric-options.js +0 -45
- package/dist/numeric-options.js.map +0 -1
- package/dist/optional-node-root.d.ts +0 -10
- package/dist/optional-node-root.d.ts.map +0 -1
- package/dist/optional-node-root.js +0 -26
- package/dist/optional-node-root.js.map +0 -1
- package/dist/package-assets.d.ts +0 -8
- package/dist/package-assets.d.ts.map +0 -1
- package/dist/package-assets.js +0 -21
- package/dist/package-assets.js.map +0 -1
- package/dist/packs/command-service.d.ts +0 -14
- package/dist/packs/command-service.d.ts.map +0 -1
- package/dist/packs/command-service.js +0 -195
- package/dist/packs/command-service.js.map +0 -1
- package/dist/packs/doctor-lock.d.ts +0 -8
- package/dist/packs/doctor-lock.d.ts.map +0 -1
- package/dist/packs/doctor-lock.js +0 -50
- package/dist/packs/doctor-lock.js.map +0 -1
- package/dist/packs/doctor.d.ts +0 -25
- package/dist/packs/doctor.d.ts.map +0 -1
- package/dist/packs/doctor.js +0 -12
- package/dist/packs/doctor.js.map +0 -1
- package/dist/packs/global-bootstrap.d.ts +0 -11
- package/dist/packs/global-bootstrap.d.ts.map +0 -1
- package/dist/packs/global-bootstrap.js +0 -72
- package/dist/packs/global-bootstrap.js.map +0 -1
- package/dist/packs/host.d.ts +0 -17
- package/dist/packs/host.d.ts.map +0 -1
- package/dist/packs/host.js +0 -79
- package/dist/packs/host.js.map +0 -1
- package/dist/packs/install-manifests.d.ts +0 -2
- package/dist/packs/install-manifests.d.ts.map +0 -1
- package/dist/packs/install-manifests.js +0 -30
- package/dist/packs/install-manifests.js.map +0 -1
- package/dist/packs/install-process.d.ts +0 -4
- package/dist/packs/install-process.d.ts.map +0 -1
- package/dist/packs/install-process.js +0 -11
- package/dist/packs/install-process.js.map +0 -1
- package/dist/packs/install-selection.d.ts +0 -39
- package/dist/packs/install-selection.d.ts.map +0 -1
- package/dist/packs/install-selection.js +0 -67
- package/dist/packs/install-selection.js.map +0 -1
- package/dist/packs/install-state.d.ts +0 -21
- package/dist/packs/install-state.d.ts.map +0 -1
- package/dist/packs/install-state.js +0 -44
- package/dist/packs/install-state.js.map +0 -1
- package/dist/packs/install-tree.d.ts +0 -35
- package/dist/packs/install-tree.d.ts.map +0 -1
- package/dist/packs/install-tree.js +0 -253
- package/dist/packs/install-tree.js.map +0 -1
- package/dist/packs/install-verification.d.ts +0 -12
- package/dist/packs/install-verification.d.ts.map +0 -1
- package/dist/packs/install-verification.js +0 -76
- package/dist/packs/install-verification.js.map +0 -1
- package/dist/packs/installed.d.ts +0 -36
- package/dist/packs/installed.d.ts.map +0 -1
- package/dist/packs/installed.js +0 -87
- package/dist/packs/installed.js.map +0 -1
- package/dist/packs/installer-load-check.d.ts +0 -4
- package/dist/packs/installer-load-check.d.ts.map +0 -1
- package/dist/packs/installer-load-check.js +0 -52
- package/dist/packs/installer-load-check.js.map +0 -1
- package/dist/packs/installer.d.ts +0 -16
- package/dist/packs/installer.d.ts.map +0 -1
- package/dist/packs/installer.js +0 -142
- package/dist/packs/installer.js.map +0 -1
- package/dist/packs/management.d.ts +0 -51
- package/dist/packs/management.d.ts.map +0 -1
- package/dist/packs/management.js +0 -81
- package/dist/packs/management.js.map +0 -1
- package/dist/packs/mode.d.ts +0 -42
- package/dist/packs/mode.d.ts.map +0 -1
- package/dist/packs/mode.js +0 -215
- package/dist/packs/mode.js.map +0 -1
- package/dist/packs/owned-replay-plan.d.ts +0 -5
- package/dist/packs/owned-replay-plan.d.ts.map +0 -1
- package/dist/packs/owned-replay-plan.js +0 -68
- package/dist/packs/owned-replay-plan.js.map +0 -1
- package/dist/packs/removal-selection.d.ts +0 -12
- package/dist/packs/removal-selection.d.ts.map +0 -1
- package/dist/packs/removal-selection.js +0 -169
- package/dist/packs/removal-selection.js.map +0 -1
- package/dist/packs/removal.d.ts +0 -12
- package/dist/packs/removal.d.ts.map +0 -1
- package/dist/packs/removal.js +0 -138
- package/dist/packs/removal.js.map +0 -1
- package/dist/packs/repair.d.ts +0 -2
- package/dist/packs/repair.d.ts.map +0 -1
- package/dist/packs/repair.js +0 -2
- package/dist/packs/repair.js.map +0 -1
- package/dist/packs/serve.d.ts +0 -2
- package/dist/packs/serve.d.ts.map +0 -1
- package/dist/packs/serve.js +0 -14
- package/dist/packs/serve.js.map +0 -1
- package/dist/permission-gate.d.ts +0 -55
- package/dist/permission-gate.d.ts.map +0 -1
- package/dist/permission-gate.js +0 -118
- package/dist/permission-gate.js.map +0 -1
- package/dist/predicates.d.ts +0 -6
- package/dist/predicates.d.ts.map +0 -1
- package/dist/predicates.js +0 -6
- package/dist/predicates.js.map +0 -1
- package/dist/providers.d.ts +0 -117
- package/dist/providers.d.ts.map +0 -1
- package/dist/providers.js +0 -491
- package/dist/providers.js.map +0 -1
- package/dist/readline-input.d.ts +0 -23
- package/dist/readline-input.d.ts.map +0 -1
- package/dist/readline-input.js +0 -210
- package/dist/readline-input.js.map +0 -1
- package/dist/run-budget.d.ts +0 -40
- package/dist/run-budget.d.ts.map +0 -1
- package/dist/run-budget.js +0 -119
- package/dist/run-budget.js.map +0 -1
- package/dist/run-dsl-supervised.d.ts +0 -11
- package/dist/run-dsl-supervised.d.ts.map +0 -1
- package/dist/run-dsl-supervised.js +0 -89
- package/dist/run-dsl-supervised.js.map +0 -1
- package/dist/run-dsl.d.ts +0 -40
- package/dist/run-dsl.d.ts.map +0 -1
- package/dist/run-dsl.js +0 -65
- package/dist/run-dsl.js.map +0 -1
- package/dist/run-json.d.ts +0 -24
- package/dist/run-json.d.ts.map +0 -1
- package/dist/run-json.js +0 -132
- package/dist/run-json.js.map +0 -1
- package/dist/runtime-env.d.ts +0 -4
- package/dist/runtime-env.d.ts.map +0 -1
- package/dist/runtime-env.js +0 -31
- package/dist/runtime-env.js.map +0 -1
- package/dist/sandbox-catalog.d.ts +0 -26
- package/dist/sandbox-catalog.d.ts.map +0 -1
- package/dist/sandbox-catalog.js +0 -83
- package/dist/sandbox-catalog.js.map +0 -1
- package/dist/settings.d.ts +0 -19
- package/dist/settings.d.ts.map +0 -1
- package/dist/settings.js +0 -146
- package/dist/settings.js.map +0 -1
- package/dist/sketch-debug/harness.d.ts +0 -101
- package/dist/sketch-debug/harness.d.ts.map +0 -1
- package/dist/sketch-debug/harness.js +0 -118
- package/dist/sketch-debug/harness.js.map +0 -1
- package/dist/sketch-debug/index.d.ts +0 -9
- package/dist/sketch-debug/index.d.ts.map +0 -1
- package/dist/sketch-debug/index.js +0 -9
- package/dist/sketch-debug/index.js.map +0 -1
- package/dist/sketch-debug/interactions.d.ts +0 -19
- package/dist/sketch-debug/interactions.d.ts.map +0 -1
- package/dist/sketch-debug/interactions.js +0 -17
- package/dist/sketch-debug/interactions.js.map +0 -1
- package/dist/sketch-debug/target.d.ts +0 -48
- package/dist/sketch-debug/target.d.ts.map +0 -1
- package/dist/sketch-debug/target.js +0 -115
- package/dist/sketch-debug/target.js.map +0 -1
- package/dist/stdin.d.ts +0 -52
- package/dist/stdin.d.ts.map +0 -1
- package/dist/stdin.js +0 -363
- package/dist/stdin.js.map +0 -1
- package/dist/supervisor.d.ts +0 -97
- package/dist/supervisor.d.ts.map +0 -1
- package/dist/supervisor.js +0 -194
- package/dist/supervisor.js.map +0 -1
- package/dist/telemetry.d.ts +0 -38
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/telemetry.js +0 -158
- package/dist/telemetry.js.map +0 -1
- package/dist/terminal-clipboard.d.ts +0 -3
- package/dist/terminal-clipboard.d.ts.map +0 -1
- package/dist/terminal-clipboard.js +0 -24
- package/dist/terminal-clipboard.js.map +0 -1
- package/dist/terminal-mouse.d.ts +0 -24
- package/dist/terminal-mouse.d.ts.map +0 -1
- package/dist/terminal-mouse.js +0 -84
- package/dist/terminal-mouse.js.map +0 -1
- package/dist/terminal-screen.d.ts +0 -41
- package/dist/terminal-screen.d.ts.map +0 -1
- package/dist/terminal-screen.js +0 -228
- package/dist/terminal-screen.js.map +0 -1
- package/dist/timeline-debug/harness.d.ts +0 -93
- package/dist/timeline-debug/harness.d.ts.map +0 -1
- package/dist/timeline-debug/harness.js +0 -100
- package/dist/timeline-debug/harness.js.map +0 -1
- package/dist/timeline-debug/index.d.ts +0 -9
- package/dist/timeline-debug/index.d.ts.map +0 -1
- package/dist/timeline-debug/index.js +0 -9
- package/dist/timeline-debug/index.js.map +0 -1
- package/dist/timeline-debug/interactions.d.ts +0 -19
- package/dist/timeline-debug/interactions.d.ts.map +0 -1
- package/dist/timeline-debug/interactions.js +0 -17
- package/dist/timeline-debug/interactions.js.map +0 -1
- package/dist/timeline-debug/target.d.ts +0 -34
- package/dist/timeline-debug/target.d.ts.map +0 -1
- package/dist/timeline-debug/target.js +0 -109
- package/dist/timeline-debug/target.js.map +0 -1
- package/dist/tool-format.d.ts +0 -54
- package/dist/tool-format.d.ts.map +0 -1
- package/dist/tool-format.js +0 -360
- package/dist/tool-format.js.map +0 -1
- package/dist/useExecutionState.d.ts +0 -44
- package/dist/useExecutionState.d.ts.map +0 -1
- package/dist/useExecutionState.js +0 -285
- package/dist/useExecutionState.js.map +0 -1
- package/dist/validate/index.d.ts +0 -29
- package/dist/validate/index.d.ts.map +0 -1
- package/dist/validate/index.js +0 -79
- package/dist/validate/index.js.map +0 -1
- package/dist/websocket-client.d.ts +0 -163
- package/dist/websocket-client.d.ts.map +0 -1
- package/dist/websocket-client.js +0 -677
- package/dist/websocket-client.js.map +0 -1
- package/dist/workflow-file.d.ts +0 -3
- package/dist/workflow-file.d.ts.map +0 -1
- package/dist/workflow-file.js +0 -176
- package/dist/workflow-file.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,135 +1,87 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NodeTool execution CLI
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
The default CLI runs JSON workflows, starts the authenticated execution server,
|
|
4
|
+
and manages workflows, jobs, binary assets, encrypted secrets and remote text
|
|
5
|
+
models. Interactive chat, MCP, DSL compilation, media, games and deployment
|
|
6
|
+
commands require an explicitly installed feature.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
You need Node.js 22 or later.
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
npx -y --package=@nodetool-ai/cli nodetool mcp install
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
The command finds Claude Code, Codex, and OpenCode on the machine, starts the
|
|
17
|
-
server once to check that it lists its tools, and writes a `nodetool` entry
|
|
18
|
-
into each client's config. The entry starts `nodetool mcp serve` over stdio.
|
|
19
|
-
Restart the client, then ask it to use NodeTool.
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
nodetool mcp install --claude # One client only (also --codex, --opencode)
|
|
23
|
-
nodetool mcp install --http # Connect to a running NodeTool server at http://127.0.0.1:7777/mcp
|
|
24
|
-
nodetool mcp status --check # Start each registered server and list its tools
|
|
25
|
-
nodetool mcp config # Print an mcpServers block for Cursor, Claude Desktop, or another client
|
|
26
|
-
nodetool mcp uninstall
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Generation tools need provider keys. Store one with
|
|
30
|
-
`nodetool secrets store FAL_API_KEY`, or set the environment variable of the
|
|
31
|
-
same name. See [NodeTool as an MCP Server](https://docs.nodetool.ai/mcp-server)
|
|
32
|
-
for what each client's config gets and what the agent can call.
|
|
33
|
-
|
|
34
|
-
The package also ships `nodetool` for workflows, jobs, assets, models,
|
|
35
|
-
secrets, and servers, and `nodetool-chat` for a terminal chat with the
|
|
36
|
-
NodeTool agent.
|
|
37
|
-
|
|
38
|
-
## Install
|
|
8
|
+
Use the Node version pinned in [`.nvmrc`](../../.nvmrc).
|
|
39
9
|
|
|
40
10
|
```bash
|
|
41
11
|
npm install -g @nodetool-ai/cli
|
|
12
|
+
nodetool --help
|
|
13
|
+
nodetool --version
|
|
14
|
+
nodetool packs list
|
|
42
15
|
```
|
|
43
16
|
|
|
44
|
-
##
|
|
17
|
+
## Start an authenticated server
|
|
45
18
|
|
|
46
|
-
|
|
47
|
-
|
|
19
|
+
Generate credentials once, keep them in your secret manager, and reuse the
|
|
20
|
+
master key when restarting against the same database.
|
|
48
21
|
|
|
49
22
|
```bash
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
# Run a workflow file and print its outputs as JSON
|
|
57
|
-
OPENAI_API_KEY=sk-... npx -y -p @nodetool-ai/cli nodetool \
|
|
58
|
-
workflows run workflow.json --params '{"prompt":"hello"}' --json
|
|
23
|
+
export SECRETS_MASTER_KEY="$(openssl rand -base64 32)"
|
|
24
|
+
export NODETOOL_API_TOKEN="$(openssl rand -hex 32)"
|
|
25
|
+
export NODETOOL_USER_ID=local
|
|
26
|
+
export NODETOOL_TOKENS="$(node -e 'process.stdout.write(JSON.stringify({[process.env.NODETOOL_API_TOKEN]:process.env.NODETOOL_USER_ID}))')"
|
|
27
|
+
nodetool serve --host 127.0.0.1 --port 7777
|
|
59
28
|
```
|
|
60
29
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
a D-Bus session) the encrypted secret store stays locked. The API server, the
|
|
66
|
-
MCP server, and workflow runs still start, and stored secrets are unavailable.
|
|
67
|
-
To store secrets there, set `SECRETS_MASTER_KEY` to a base64
|
|
68
|
-
32-byte key, for example from `openssl rand -base64 32`, and keep the same
|
|
69
|
-
value for every run.
|
|
30
|
+
`NODETOOL_DATA_DIR` selects the SQLite, assets and workspace directory. It
|
|
31
|
+
defaults to `./nodetool-data`. Client commands use `NODETOOL_API_URL` and
|
|
32
|
+
`NODETOOL_API_TOKEN`, or the global `--api-url` and `--token` options. The
|
|
33
|
+
server accepts only explicitly configured bearer tokens.
|
|
70
34
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
| Command | Description |
|
|
74
|
-
|---|---|
|
|
75
|
-
| `nodetool` | Management CLI — serve, run workflows, jobs, assets, models, secrets, settings, MCP install |
|
|
76
|
-
| `nodetool-chat` | Interactive terminal chat across providers |
|
|
77
|
-
|
|
78
|
-
## `nodetool`
|
|
35
|
+
Use the same environment in another terminal:
|
|
79
36
|
|
|
80
37
|
```bash
|
|
81
|
-
nodetool info # System and environment info, API-key status
|
|
82
|
-
nodetool serve --host 0.0.0.0 --port 7777 # Start the WebSocket + HTTP server
|
|
83
|
-
nodetool run workflow.ts # Run a TypeScript/JavaScript DSL workflow file
|
|
84
|
-
|
|
85
|
-
# Workflows (id-based commands read the local database; --api-url for a remote server)
|
|
86
38
|
nodetool workflows list
|
|
39
|
+
nodetool workflows create workflow.json
|
|
87
40
|
nodetool workflows get <id>
|
|
88
|
-
nodetool workflows run <id
|
|
89
|
-
nodetool
|
|
90
|
-
nodetool
|
|
91
|
-
nodetool
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
nodetool
|
|
95
|
-
nodetool
|
|
96
|
-
nodetool assets list --query "photo" --content-type image/png
|
|
97
|
-
|
|
98
|
-
# Models
|
|
99
|
-
nodetool models list
|
|
100
|
-
nodetool models providers
|
|
101
|
-
nodetool models by-provider anthropic --kind llm
|
|
102
|
-
|
|
103
|
-
# Secrets (encrypted local store)
|
|
104
|
-
nodetool secrets list
|
|
105
|
-
nodetool secrets store OPENAI_API_KEY
|
|
106
|
-
nodetool secrets get OPENAI_API_KEY
|
|
107
|
-
|
|
108
|
-
# Settings
|
|
109
|
-
nodetool settings show
|
|
41
|
+
nodetool workflows run <id> --params '{"prompt":"hello"}'
|
|
42
|
+
nodetool jobs get <job-id>
|
|
43
|
+
nodetool jobs cancel <job-id>
|
|
44
|
+
nodetool assets upload input.bin
|
|
45
|
+
nodetool assets download <asset-id> output.bin
|
|
46
|
+
printf '%s' "$OPENAI_API_KEY" | nodetool secrets store OPENAI_API_KEY
|
|
47
|
+
nodetool models list --provider openai
|
|
48
|
+
nodetool text 'Hello' --model <model-id>
|
|
110
49
|
```
|
|
111
50
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
51
|
+
Secret values are read from stdin and encrypted for the authenticated user.
|
|
52
|
+
Local text calls use `NODETOOL_USER_ID`, the same data directory and master
|
|
53
|
+
key. `OPENAI_BASE_URL` selects a public HTTPS OpenAI-compatible endpoint.
|
|
115
54
|
|
|
116
55
|
```bash
|
|
117
|
-
nodetool
|
|
118
|
-
nodetool
|
|
119
|
-
nodetool-chat --workspace /path/to/dir # Set the workspace for file tools
|
|
120
|
-
nodetool-chat --url ws://localhost:7777/ws # Connect to a running server
|
|
121
|
-
echo "research 5 AI topics" | nodetool-chat # Piped, non-interactive
|
|
56
|
+
nodetool validate workflow.json
|
|
57
|
+
nodetool run workflow.json --params '{"prompt":"hello"}'
|
|
122
58
|
```
|
|
123
59
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
Providers include anthropic, openai, gemini, xai, groq, mistral, deepseek, ollama, lmstudio, and other registry providers.
|
|
127
|
-
|
|
128
|
-
## Tracing
|
|
60
|
+
## Install selected command features
|
|
129
61
|
|
|
130
|
-
|
|
62
|
+
Use `nodetool packs list` to inspect the command features available for this
|
|
63
|
+
installation. Install the feature named by a command's `FEATURE_NOT_INSTALLED`
|
|
64
|
+
error through the existing pinned pack installer:
|
|
131
65
|
|
|
132
|
-
|
|
66
|
+
```bash
|
|
67
|
+
nodetool packs add cli-chat --yes
|
|
68
|
+
nodetool chat
|
|
69
|
+
nodetool packs add cli-workflow --yes
|
|
70
|
+
nodetool feature cli-workflow run workflow.ts --json
|
|
71
|
+
```
|
|
133
72
|
|
|
134
|
-
|
|
135
|
-
|
|
73
|
+
Commands do not install missing features automatically. Authored JavaScript and
|
|
74
|
+
TypeScript workflows, chat, provider SDKs, media and development tools select
|
|
75
|
+
their own command features. Installing one feature does not activate unrelated
|
|
76
|
+
command groups. `nodetool feature <feature-id> <command...>` selects one
|
|
77
|
+
installed feature explicitly when its command overlaps a native operation.
|
|
78
|
+
For example, `nodetool feature cli-workflow validate workflow.json --json`
|
|
79
|
+
uses the workflow authoring feature while `nodetool validate workflow.json`
|
|
80
|
+
uses the native validator.
|
|
81
|
+
|
|
82
|
+
MCP commands require `cli-mcp`. The classic server command is selected with
|
|
83
|
+
`nodetool server serve` after installing `cli-server`. The default `nodetool
|
|
84
|
+
serve` continues to start the minimal execution server.
|
|
85
|
+
|
|
86
|
+
See the [command reference](../../docs/cli.md) and
|
|
87
|
+
[minimal server](../server-minimal/README.md).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-10-
|
|
1
|
+
2026-10-31T10:34:20.055Z
|
package/dist/chat.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../src/chat.ts"],"names":[],"mappings":""}
|
package/dist/chat.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { formatCliError } from "./lean/errors.js";
|
|
3
|
+
import { loadInstalledCommandFeature } from "@nodetool-ai/pack-manager";
|
|
4
|
+
void loadInstalledCommandFeature(import.meta.url, "cli-chat").then(feature => feature.run(["chat", ...process.argv.slice(2)])).catch((error) => {
|
|
5
|
+
process.stderr.write(`${formatCliError(error)}\n`);
|
|
6
|
+
process.exitCode = 1;
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=chat.js.map
|
package/dist/chat.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../src/chat.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,KAAK,2BAA2B,CAAC,OAAO,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IACtJ,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* nodetool-chat — Entry point.
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* nodetool-chat # use saved/auto-detected settings
|
|
7
|
-
* nodetool-chat --provider anthropic # override provider
|
|
8
|
-
* nodetool-chat --model claude-opus-4-6 # override model
|
|
9
|
-
* nodetool-chat --agent # start in agent mode
|
|
10
|
-
* nodetool-chat --workspace /path/to/dir # set workspace directory
|
|
11
|
-
*/
|
|
12
|
-
export {};
|
|
1
|
+
export { createProgram, runCli, type CliOptions } from "./lean/program.js";
|
|
13
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,232 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* nodetool-chat — Entry point.
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* nodetool-chat # use saved/auto-detected settings
|
|
7
|
-
* nodetool-chat --provider anthropic # override provider
|
|
8
|
-
* nodetool-chat --model claude-opus-4-6 # override model
|
|
9
|
-
* nodetool-chat --agent # start in agent mode
|
|
10
|
-
* nodetool-chat --workspace /path/to/dir # set workspace directory
|
|
11
|
-
*/
|
|
12
|
-
import { initTelemetry, shutdownTelemetry } from "@nodetool-ai/runtime";
|
|
13
|
-
import { program } from "commander";
|
|
14
|
-
import { render } from "ink";
|
|
15
|
-
import React from "react";
|
|
16
|
-
import { App } from "./app.js";
|
|
17
|
-
import { enterTerminalScreen } from "./terminal-screen.js";
|
|
18
|
-
import { MouseInput } from "./terminal-mouse.js";
|
|
19
|
-
import { loadSettings } from "./settings.js";
|
|
20
|
-
import { installLocalModelInterfaces } from "./local-model-interfaces.js";
|
|
21
|
-
import { runStdinMode } from "./stdin.js";
|
|
22
|
-
import { parsePermissionMode, PERMISSION_MODE_NAMES } from "./permission-gate.js";
|
|
23
|
-
import { buildConfiguredProviders, DEFAULT_MODELS, KNOWN_PROVIDERS } from "./providers.js";
|
|
24
|
-
import { initDb, migrateSqliteDb } from "@nodetool-ai/models";
|
|
25
|
-
import { initMasterKey } from "@nodetool-ai/security";
|
|
26
|
-
import { getDefaultDbPath, configureLogging } from "@nodetool-ai/config";
|
|
27
|
-
import { buildFullRegistry } from "./node-registry.js";
|
|
28
|
-
import { initializeCliRuntime } from "./runtime-env.js";
|
|
29
|
-
import { configureCliPackHost } from "./packs/host.js";
|
|
30
|
-
// Configure logging: in interactive mode, suppress non-error logs to a file
|
|
31
|
-
// so they don't interfere with the Ink TUI. Env vars can still override.
|
|
32
|
-
import { join } from "node:path";
|
|
33
|
-
import { homedir } from "node:os";
|
|
34
|
-
import { mkdirSync } from "node:fs";
|
|
35
|
-
import { isString } from "./predicates.js";
|
|
36
|
-
if (!process.env["NODETOOL_LOG_LEVEL"]) {
|
|
37
|
-
process.env["NODETOOL_LOG_LEVEL"] = "error";
|
|
38
|
-
}
|
|
39
|
-
if (!process.env["NODETOOL_LOG_FILE"]) {
|
|
40
|
-
const logDir = join(homedir(), ".nodetool");
|
|
41
|
-
mkdirSync(logDir, { recursive: true });
|
|
42
|
-
process.env["NODETOOL_LOG_FILE"] = join(logDir, "chat.log");
|
|
43
|
-
}
|
|
44
|
-
configureLogging();
|
|
45
|
-
// Optional imports fall back to the root `nodetool runtime add` installs into.
|
|
46
|
-
initializeCliRuntime(import.meta.url);
|
|
47
|
-
configureCliPackHost(import.meta.url);
|
|
48
|
-
program
|
|
49
|
-
.name("nodetool-chat")
|
|
50
|
-
.description("NodeTool interactive chat CLI with multi-provider LLM support and agent mode")
|
|
51
|
-
.option("-p, --provider <provider>", `LLM provider (${KNOWN_PROVIDERS.join(", ")})`)
|
|
52
|
-
.option("-m, --model <model>", "Model ID")
|
|
53
|
-
.option("--resume [id]", "Resume a saved session in this workspace (latest when no id is given)")
|
|
54
|
-
.option("-a, --agent [mode]", "[deprecated] No-op — every chat session runs the unified loop")
|
|
55
|
-
.option("--no-agent", "[deprecated] No-op")
|
|
56
|
-
.option("-w, --workspace <path>", "Workspace directory (default: current directory)")
|
|
57
|
-
.option("--tools <tools>", "Comma-separated list of enabled tools")
|
|
58
|
-
.option("-u, --url <url>", "NodeTool server WebSocket URL (e.g. ws://localhost:7777/ws)")
|
|
59
|
-
.option("--no-read-only-search", "Disable the read-only run_search fan-out primitive (on by default)")
|
|
60
|
-
.option("--permission-mode <mode>", `Permission mode (${PERMISSION_MODE_NAMES.join(" | ")}); interactive defaults to default, piped input to auto`)
|
|
61
|
-
.option("--cost-cap <usd>", "Ceiling on provider spend for one turn, shared by every loop it starts; " +
|
|
62
|
-
"0 lifts it (default: NODETOOL_AGENT_TURN_COST_CAP_USD)")
|
|
63
|
-
.option("--timeout <s>", "Wall-clock bound on one turn in seconds; 0 leaves it no time at all " +
|
|
64
|
-
"(default: NODETOOL_AGENT_TURN_DEADLINE_MS)")
|
|
65
|
-
.option("--trace-file <path>", "Append every LLM/agent/workflow span as JSONL to <path> (analyzer-friendly)")
|
|
66
|
-
.option("--trace-stdout [format]", "Stream spans to stdout: 'pretty' (default, human-readable) or 'json' (JSONL)")
|
|
67
|
-
.option("--no-trace-stdout", "Disable stdout span output (overrides NODETOOL_TRACE_STDOUT)")
|
|
68
|
-
.helpOption("-h, --help", "Show help")
|
|
69
|
-
.version("0.1.0")
|
|
70
|
-
.parse();
|
|
71
|
-
const opts = program.opts();
|
|
72
|
-
// Refused before anything starts: a mode nobody recognizes must not fall back
|
|
73
|
-
// to a default the user did not ask for.
|
|
74
|
-
let permissionMode;
|
|
75
|
-
try {
|
|
76
|
-
permissionMode = parsePermissionMode(opts.permissionMode);
|
|
77
|
-
}
|
|
78
|
-
catch (err) {
|
|
79
|
-
process.stderr.write(`${err instanceof Error ? err.message : String(err)}\n`);
|
|
80
|
-
process.exit(1);
|
|
81
|
-
}
|
|
82
|
-
const traceStdout = opts.traceStdout ?? process.env["NODETOOL_TRACE_STDOUT"];
|
|
83
|
-
if (process.stdin.isTTY && traceStdout !== undefined && parseTraceStdout(traceStdout)) {
|
|
84
|
-
process.stderr.write("Fullscreen chat uses stdout for its screen. Use --trace-file <path> and --no-trace-stdout for tracing.\n");
|
|
85
|
-
process.exit(1);
|
|
86
|
-
}
|
|
87
|
-
// Initialize OpenLLMetry before any LLM SDK calls are made. Honors CLI flags
|
|
88
|
-
// and env vars (TRACELOOP_API_KEY, OTEL_EXPORTER_OTLP_ENDPOINT,
|
|
89
|
-
// NODETOOL_TRACE_FILE, NODETOOL_TRACE_STDOUT). Registered run recording is always on.
|
|
90
|
-
await initTelemetry({
|
|
91
|
-
...(opts.traceFile && { traceFile: opts.traceFile }),
|
|
92
|
-
...(opts.traceStdout !== undefined && {
|
|
93
|
-
stdout: parseTraceStdout(opts.traceStdout)
|
|
94
|
-
})
|
|
95
|
-
});
|
|
96
|
-
function parseTraceStdout(v) {
|
|
97
|
-
if (v === false)
|
|
98
|
-
return false;
|
|
99
|
-
if (v === true)
|
|
100
|
-
return "pretty";
|
|
101
|
-
if (isString(v)) {
|
|
102
|
-
const lower = v.toLowerCase();
|
|
103
|
-
if (lower === "false" || lower === "0" || lower === "no")
|
|
104
|
-
return false;
|
|
105
|
-
if (lower === "json")
|
|
106
|
-
return "json";
|
|
107
|
-
if (lower === "pretty" || lower === "true" || lower === "1")
|
|
108
|
-
return "pretty";
|
|
109
|
-
}
|
|
110
|
-
throw new Error(`--trace-stdout must be 'pretty' or 'json' (got ${JSON.stringify(v)})`);
|
|
111
|
-
}
|
|
112
|
-
try {
|
|
113
|
-
const dbPath = getDefaultDbPath();
|
|
114
|
-
await migrateSqliteDb(dbPath);
|
|
115
|
-
initDb(dbPath);
|
|
116
|
-
}
|
|
117
|
-
catch {
|
|
118
|
-
// DB unavailable — secret lookups will fall back to env vars
|
|
119
|
-
}
|
|
120
|
-
// Resolve the master encryption key NOW (before Ink takes over the terminal)
|
|
121
|
-
// so any first-time keychain prompt is visible to the user, and so that the
|
|
122
|
-
// first secret lookup during a chat message doesn't race against keychain
|
|
123
|
-
// initialization. Failures are surfaced clearly to stderr — silently falling
|
|
124
|
-
// back to env-only would mask DB-stored secrets and produce confusing
|
|
125
|
-
// "API_KEY is not configured" errors deep in provider construction.
|
|
126
|
-
try {
|
|
127
|
-
await initMasterKey();
|
|
128
|
-
}
|
|
129
|
-
catch (err) {
|
|
130
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
131
|
-
process.stderr.write(`[chat-cli] Could not unlock the secret store: ${msg}\n` +
|
|
132
|
-
`[chat-cli] Falling back to environment variables for API keys.\n` +
|
|
133
|
-
`[chat-cli] Tip: set SECRETS_MASTER_KEY or grant keychain access to enable DB-stored secrets.\n`);
|
|
134
|
-
}
|
|
135
|
-
// The same persistence a local workflow run gets, for every context this
|
|
136
|
-
// process builds (chat turns build their own on top; a sub-agent's does not).
|
|
137
|
-
await installLocalModelInterfaces();
|
|
138
|
-
// Load persisted settings and merge with CLI flags
|
|
139
|
-
const settings = await loadSettings();
|
|
140
|
-
const provider = opts.provider ?? settings.provider;
|
|
141
|
-
const model = opts.model ??
|
|
142
|
-
(opts.provider
|
|
143
|
-
? (DEFAULT_MODELS[opts.provider] ?? settings.model)
|
|
144
|
-
: settings.model);
|
|
145
|
-
// `--agent` and the persisted `agentMode` setting are deprecated no-ops —
|
|
146
|
-
// every chat session now runs the unified LLM-with-tools loop, and the
|
|
147
|
-
// agent decides for itself whether to decompose via `run_subtask`. The flag
|
|
148
|
-
// is still accepted for backwards compatibility; a warning is emitted when
|
|
149
|
-
// it is used.
|
|
150
|
-
if (opts.agent !== undefined) {
|
|
151
|
-
// eslint-disable-next-line no-console
|
|
152
|
-
console.error("Warning: --agent is deprecated and has no effect — the unified chat agent always runs.");
|
|
153
|
-
}
|
|
154
|
-
const workspace = opts.workspace ?? process.cwd();
|
|
155
|
-
// `--tools` narrows the belt to the names given. Without it the chat offers the
|
|
156
|
-
// full belt, as a server chat turn does.
|
|
157
|
-
const enabledTools = opts.tools
|
|
158
|
-
? opts.tools.split(",").map((t) => t.trim())
|
|
159
|
-
: undefined;
|
|
160
|
-
// The full node registry, which also installs the sandbox pack catalog. Only
|
|
161
|
-
// when running locally (no --url): the server has its own.
|
|
162
|
-
const cliRegistry = opts.url
|
|
163
|
-
? undefined
|
|
164
|
-
: await buildFullRegistry();
|
|
165
|
-
// Build configured providers unconditionally so `find_model` and the
|
|
166
|
-
// media-generation tools (generate_image, generate_speech, etc.) are
|
|
167
|
-
// available to ANY agent loop — multi-task or graph — even without a
|
|
168
|
-
// registry.
|
|
169
|
-
const cliAgentProviders = await buildConfiguredProviders();
|
|
170
|
-
// Stdin mode: activated when stdin is piped (not a TTY)
|
|
171
|
-
if (!process.stdin.isTTY) {
|
|
172
|
-
let exitCode = 1;
|
|
173
|
-
try {
|
|
174
|
-
exitCode = await runStdinMode({
|
|
175
|
-
provider,
|
|
176
|
-
model,
|
|
177
|
-
workspaceDir: workspace,
|
|
178
|
-
wsUrl: opts.url,
|
|
179
|
-
registry: cliRegistry,
|
|
180
|
-
agentProviders: cliAgentProviders,
|
|
181
|
-
enableReadOnlySearch: opts.readOnlySearch !== false,
|
|
182
|
-
...(permissionMode !== undefined && { permissionMode }),
|
|
183
|
-
...(opts.costCap !== undefined && { costCap: opts.costCap }),
|
|
184
|
-
...(opts.timeout !== undefined && { timeout: opts.timeout })
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
finally {
|
|
188
|
-
await shutdownTelemetry();
|
|
189
|
-
}
|
|
190
|
-
process.exit(exitCode);
|
|
191
|
-
}
|
|
192
|
-
const restoreScreen = enterTerminalScreen(process.stdout);
|
|
193
|
-
const mouseInput = new MouseInput(process.stdin);
|
|
194
|
-
process.once("exit", restoreScreen);
|
|
195
|
-
const terminate = () => {
|
|
196
|
-
restoreScreen();
|
|
197
|
-
process.exit(143);
|
|
198
|
-
};
|
|
199
|
-
process.once("SIGTERM", terminate);
|
|
200
|
-
try {
|
|
201
|
-
const { waitUntilExit } = render(React.createElement(App, {
|
|
202
|
-
initialProvider: provider,
|
|
203
|
-
initialModel: model,
|
|
204
|
-
enabledTools,
|
|
205
|
-
workspaceDir: workspace,
|
|
206
|
-
wsUrl: opts.url,
|
|
207
|
-
registry: cliRegistry,
|
|
208
|
-
agentProviders: cliAgentProviders,
|
|
209
|
-
permissionMode,
|
|
210
|
-
enableReadOnlySearch: opts.readOnlySearch !== false,
|
|
211
|
-
resume: opts.resume,
|
|
212
|
-
mouseEvents: mouseInput.events,
|
|
213
|
-
...(opts.costCap !== undefined && { costCap: opts.costCap }),
|
|
214
|
-
...(opts.timeout !== undefined && { timeout: opts.timeout })
|
|
215
|
-
}), {
|
|
216
|
-
// Ink requires ReadStream, while this forwarding stream supplies its TTY methods.
|
|
217
|
-
// oxlint-disable-next-line anti-slop/no-chained-type-assertions
|
|
218
|
-
stdin: mouseInput,
|
|
219
|
-
exitOnCtrlC: false,
|
|
220
|
-
kittyKeyboard: { mode: "auto" }
|
|
221
|
-
});
|
|
222
|
-
await waitUntilExit();
|
|
223
|
-
}
|
|
224
|
-
finally {
|
|
225
|
-
restoreScreen();
|
|
226
|
-
mouseInput.close();
|
|
227
|
-
process.off("exit", restoreScreen);
|
|
228
|
-
process.off("SIGTERM", terminate);
|
|
229
|
-
await shutdownTelemetry();
|
|
230
|
-
}
|
|
231
|
-
process.exit(0);
|
|
1
|
+
export { createProgram, runCli } from "./lean/program.js";
|
|
232
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAmB,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandFeatures.d.ts","sourceRoot":"","sources":["../../src/lean/commandFeatures.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAkB7D,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Command ownership for independently installed CLI features. */
|
|
2
|
+
export const COMMAND_FEATURES = {
|
|
3
|
+
chat: "cli-chat", agent: "cli-chat", tools: "cli-chat",
|
|
4
|
+
models: "cli-models", providers: "cli-models",
|
|
5
|
+
run: "cli-workflow", validate: "cli-workflow", workflows: "cli-workflow",
|
|
6
|
+
jobs: "cli-workflow", assets: "cli-workflow", secrets: "cli-workflow",
|
|
7
|
+
debug: "cli-workflow", node: "cli-workflow", settings: "cli-workflow",
|
|
8
|
+
runs: "cli-workflow", generate: "cli-workflow", generations: "cli-workflow",
|
|
9
|
+
projects: "cli-workflow", collections: "cli-workflow", read: "cli-workflow",
|
|
10
|
+
errors: "cli-workflow", costs: "cli-workflow",
|
|
11
|
+
"export-script": "cli-workflow", "export-dsl": "cli-workflow",
|
|
12
|
+
"export-example": "cli-workflow", "export-bundle": "cli-workflow", "import-bundle": "cli-workflow",
|
|
13
|
+
harness: "cli-harness", affected: "cli-harness", eval: "cli-harness", jtbd: "cli-harness", reliability: "cli-harness",
|
|
14
|
+
deploy: "cli-admin", worker: "cli-admin", db: "cli-admin", auth: "cli-admin",
|
|
15
|
+
package: "cli-admin", packs: "cli-admin", runtime: "cli-admin", extension: "cli-admin", extensions: "cli-admin",
|
|
16
|
+
storage: "cli-admin", telemetry: "cli-admin", telegram: "cli-admin",
|
|
17
|
+
"migrate-keys": "cli-admin", "migrate-code-inputs": "cli-admin",
|
|
18
|
+
mcp: "cli-mcp", server: "cli-server", app: "cli-apps", apps: "cli-apps",
|
|
19
|
+
game: "cli-game", timeline: "cli-timeline", sketch: "cli-sketch", jsscript: "cli-script"
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=commandFeatures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandFeatures.js","sourceRoot":"","sources":["../../src/lean/commandFeatures.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,CAAC,MAAM,gBAAgB,GAAqC;IAChE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;IACtD,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY;IAC7C,GAAG,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc;IACxE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc;IACrE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc;IACrE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc;IAC3E,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc;IAC3E,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc;IAC7C,eAAe,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc;IAC7D,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc;IAClG,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa;IACrH,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW;IAC5E,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW;IAC/G,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW;IACnE,cAAc,EAAE,WAAW,EAAE,qBAAqB,EAAE,WAAW;IAC/D,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU;IACvE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY;CACzF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Preserve actionable feature identifiers at the process boundary. */
|
|
3
|
+
export declare function formatCliError(error: unknown): string;
|
|
4
|
+
export declare const cliFailureSchema: z.ZodObject<{
|
|
5
|
+
code: z.ZodString;
|
|
6
|
+
featureIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
recovery: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
featureId: z.ZodString;
|
|
9
|
+
packId: z.ZodNullable<z.ZodString>;
|
|
10
|
+
packageName: z.ZodString;
|
|
11
|
+
installCommand: z.ZodString;
|
|
12
|
+
adapterInstallCommand: z.ZodOptional<z.ZodString>;
|
|
13
|
+
configuration: z.ZodString;
|
|
14
|
+
restart: z.ZodString;
|
|
15
|
+
authorizationRequired: z.ZodLiteral<true>;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/lean/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAKrD;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;iBAQzB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Preserve actionable feature identifiers at the process boundary. */
|
|
3
|
+
export function formatCliError(error) {
|
|
4
|
+
const message = error instanceof Error ? error.message : "Command failed";
|
|
5
|
+
const structured = cliFailureSchema.safeParse(error);
|
|
6
|
+
if (structured.success) {
|
|
7
|
+
return JSON.stringify({ ...structured.data, message });
|
|
8
|
+
}
|
|
9
|
+
return message;
|
|
10
|
+
}
|
|
11
|
+
export const cliFailureSchema = z.object({
|
|
12
|
+
code: z.string(),
|
|
13
|
+
featureIds: z.array(z.string()).optional(),
|
|
14
|
+
recovery: z.array(z.object({
|
|
15
|
+
featureId: z.string(), packId: z.string().nullable(), packageName: z.string(),
|
|
16
|
+
installCommand: z.string(), adapterInstallCommand: z.string().optional(), configuration: z.string(), restart: z.string(), authorizationRequired: z.literal(true)
|
|
17
|
+
})).optional(),
|
|
18
|
+
validation_issues: z.array(z.record(z.string(), z.unknown())).optional()
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/lean/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uEAAuE;AACvE,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAC1E,MAAM,UAAU,GAAG,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACrD,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;QAAC,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAAC,CAAC;IACnF,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QAC7E,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;KACjK,CAAC,CAAC,CAAC,QAAQ,EAAE;IACd,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
export interface CliOptions {
|
|
3
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
4
|
+
readonly argv?: readonly string[];
|
|
5
|
+
readonly stdout?: (value: string) => void;
|
|
6
|
+
readonly fetch?: typeof fetch;
|
|
7
|
+
}
|
|
8
|
+
/** Build the separately installable execution CLI command tree. */
|
|
9
|
+
export declare function createProgram(options?: CliOptions): Command;
|
|
10
|
+
/** Dispatch native commands or one explicitly installed command feature. */
|
|
11
|
+
export declare function runCli(argv?: readonly string[]): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=program.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../src/lean/program.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CAC/B;AAKD,mEAAmE;AACnE,wBAAgB,aAAa,CAAC,OAAO,GAAE,UAAe,GAAG,OAAO,CAuP/D;AACD,4EAA4E;AAC5E,wBAAsB,MAAM,CAAC,IAAI,GAAE,SAAS,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoDlF"}
|