@agent-api/cli 0.4.3 → 0.4.5
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 +14 -1
- package/dist/index.js +8 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agent API CLI
|
|
2
2
|
|
|
3
|
-
First-class command line interface for Agent API. The CLI shell is built on `@agent-api/app-engine`, which wraps `@agent-api/sdk@^1.
|
|
3
|
+
First-class command line interface for Agent API. The CLI shell is built on `@agent-api/app-engine`, which wraps `@agent-api/sdk@^1.4.0` behind a renderer-neutral application core. Commander handles command routing, and Ink renders the current terminal UI.
|
|
4
4
|
|
|
5
5
|
This repository publishes two packages:
|
|
6
6
|
|
|
@@ -89,6 +89,17 @@ agent-tui /absolute/path/to/my-workdir
|
|
|
89
89
|
|
|
90
90
|
The workdir argument must point to an existing directory. When provided, the
|
|
91
91
|
workbench automatically turns on local workdir and shell tools in approval mode.
|
|
92
|
+
CLI chat runs can also expose local `SKILL.md` directories and opt into memory:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
agent-api agent chat "Review this workspace" --workdir . --local-skill ./skills/review
|
|
96
|
+
agent-api agent chat "What did we decide last time?" --memory --memory-read
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Local skills are discovered automatically from the workdir when local tools are
|
|
100
|
+
enabled. Use `--no-local-skills` to disable discovery, `--workspace-skills` to
|
|
101
|
+
let model-facing skill discovery search workspace skills, and
|
|
102
|
+
`--memory-tenant-search` to allow workspace-scoped memory search.
|
|
92
103
|
|
|
93
104
|
The workbench opens with auth as the first gate. If the active profile is valid,
|
|
94
105
|
it enters the conversation UI automatically. If not, it shows an in-terminal
|
|
@@ -103,6 +114,8 @@ Inside the workbench, configure the agent run dynamically:
|
|
|
103
114
|
/switch-profile switch/sign in with a different profile
|
|
104
115
|
/delete-profile delete current saved profile and return to auth
|
|
105
116
|
/config show current run configuration
|
|
117
|
+
/memory toggle memory options for agent turns
|
|
118
|
+
/skills toggle local or workspace skill discovery
|
|
106
119
|
/preset <name> set preset; /preset none clears it
|
|
107
120
|
/model <name> set explicit model; /model auto clears it
|
|
108
121
|
/access full allow local workdir actions without approval
|
package/dist/index.js
CHANGED
|
@@ -205,6 +205,14 @@ function agentChatCommand() {
|
|
|
205
205
|
.option("--context-query <text>", "include local search matches in context")
|
|
206
206
|
.option("--max-context-files <n>", "local context file limit")
|
|
207
207
|
.option("--max-context-bytes <n>", "local context byte limit")
|
|
208
|
+
.option("--local-skill <path...>", "load one or more local skill directories")
|
|
209
|
+
.option("--no-local-skills", "disable automatic local SKILL.md discovery for workdir runs")
|
|
210
|
+
.option("--workspace-skills", "allow model-facing skill discovery to search workspace skills")
|
|
211
|
+
.option("--memory", "enable memory using API defaults")
|
|
212
|
+
.option("--memory-read", "enable memory read/prefetch")
|
|
213
|
+
.option("--memory-write", "enable memory writes")
|
|
214
|
+
.option("--memory-tenant-search", "allow memory search across the workspace/user scope")
|
|
215
|
+
.option("--automatic-continuation-limit <n>", "pause automatic agent continuations after this many calls; use unlimited to disable")
|
|
208
216
|
.option("--access <mode>", "local tool access mode: off, approval, or full")
|
|
209
217
|
.option("--restart", "start the conversation from a fresh response")
|
|
210
218
|
.addOption(new Option("--no-stream", "wait for final response instead of streaming"))
|
package/dist/runtime.d.ts
CHANGED
package/dist/runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-api/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "First-class command line interface for Agent API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/scalebox-dev/agent-tui#readme",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "npm run sync-version && npm run build && npm run smoke -w @agent-api/app-engine && node --test test/*.test.mjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agent-api/app-engine": "^0.1.
|
|
38
|
+
"@agent-api/app-engine": "^0.1.5",
|
|
39
39
|
"commander": "^14.0.3",
|
|
40
40
|
"ink": "^6.8.0",
|
|
41
41
|
"react": "^19.2.7"
|