@uru-intelligence/cli 0.6.4 → 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 +133 -2
- package/README.md +84 -28
- package/dist/library.mjs +5029 -64
- package/dist/uru.mjs +15435 -7023
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ bun src/index.ts --workspace <workspace-id> whoami
|
|
|
16
16
|
|
|
17
17
|
The CLI is registry-backed. Dedicated Gem/Library/Dataset/Automation commands
|
|
18
18
|
are thin adapters over the same platform tools used by MCP and the web UI;
|
|
19
|
-
broader workspace,
|
|
19
|
+
broader workspace, persona, sharing, web/file, and
|
|
20
20
|
secret/env operations remain exposed through the generated operation
|
|
21
21
|
registry while dedicated UX commands continue to mature. The `deploy` aliases
|
|
22
22
|
call the same saved Version and Release operations as the web UI. A requested
|
|
@@ -27,11 +27,24 @@ readiness, access, and the final published state.
|
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
29
|
# Discover visible skill packages and read an exact version.
|
|
30
|
-
bun src/index.ts skills list --source
|
|
30
|
+
bun src/index.ts skills list --source built_in --json
|
|
31
|
+
bun src/index.ts skills list --source library --json
|
|
31
32
|
bun src/index.ts skills read uru-gems --version <version-from-list>
|
|
32
33
|
bun src/index.ts skills read uru-gems --version <version-from-list> --path references/example.md --json
|
|
33
34
|
bun src/index.ts skills list --source gem --gem-id <gem-id> --version <ready-version-id>
|
|
34
35
|
bun src/index.ts skills read <name> --source gem --gem-id <gem-id> --version <ready-version-id>
|
|
36
|
+
bun src/index.ts skills settings weekly-client-update --in-my-chats off
|
|
37
|
+
|
|
38
|
+
# Work on a Library skill in a folder, then save it as a new version.
|
|
39
|
+
bun src/index.ts skills pull weekly-client-update ./weekly-client-update
|
|
40
|
+
bun src/index.ts skills push ./weekly-client-update --diff
|
|
41
|
+
bun src/index.ts skills push ./weekly-client-update
|
|
42
|
+
bun src/index.ts skills history weekly-client-update
|
|
43
|
+
bun src/index.ts skills restore weekly-client-update 2
|
|
44
|
+
bun src/index.ts skills export weekly-client-update weekly-client-update.zip
|
|
45
|
+
bun src/index.ts library import weekly-client-update.zip --folder Clients --dry-run
|
|
46
|
+
bun src/index.ts library import weekly-client-update.zip --folder Clients
|
|
47
|
+
bun src/index.ts skills from-file 'Clients/House style.md' --name house-style
|
|
35
48
|
|
|
36
49
|
# Link the current directory to a server-side Gem. Writes only .uru/project.json.
|
|
37
50
|
bun src/index.ts link --workspace <workspace-id> --path 'library/Golden Gems/My Gem.gem'
|
|
@@ -71,35 +84,35 @@ bun src/index.ts gems write 'library/Golden Gems/My Gem.gem' main.html --file ./
|
|
|
71
84
|
bun src/index.ts library ls library
|
|
72
85
|
bun src/index.ts library search revenue
|
|
73
86
|
bun src/index.ts library mkdir 'library/Golden Gems'
|
|
74
|
-
bun src/index.ts library read 'library/
|
|
75
|
-
bun src/index.ts library write 'library/
|
|
76
|
-
bun src/index.ts library write 'library/
|
|
77
|
-
bun src/index.ts library patch-preview 'library/
|
|
78
|
-
bun src/index.ts library favorite 'library/
|
|
87
|
+
bun src/index.ts library read 'library/Clients/Acme/Brief.md'
|
|
88
|
+
bun src/index.ts library write 'library/Clients/Acme/Brief.md' --file ./brief.md --create
|
|
89
|
+
bun src/index.ts library write 'library/Notes/Sales Email.md' --content "Draft the follow-up." --create --folder-id <folder-id>
|
|
90
|
+
bun src/index.ts library patch-preview 'library/Notes/Sales Email.md' --content "*** Begin Patch\n..."
|
|
91
|
+
bun src/index.ts library favorite 'library/Clients/Acme/Brief.md'
|
|
79
92
|
bun src/index.ts library upload 'library/Assets/logo.png' --file ./logo.png
|
|
80
93
|
bun src/index.ts library upload complete --upload-id <id> --bucket <bucket> --object-path <path> --filename logo.png --size-bytes 1024
|
|
81
|
-
bun src/index.ts library patch 'library/
|
|
94
|
+
bun src/index.ts library patch 'library/Notes/Sales Email.md' --stdin
|
|
82
95
|
bun src/index.ts library cp 'library/Notes/Brief.md' 'library/Archive/Brief.md'
|
|
83
96
|
bun src/index.ts library mv 'library/Notes/Draft.md' 'library/Notes/Final.md'
|
|
84
97
|
bun src/index.ts library rm 'library/Notes/Old.md'
|
|
85
98
|
bun src/index.ts library restore 'library/Notes/Old.md'
|
|
86
99
|
bun src/index.ts datasets ls --limit 50 --json
|
|
87
100
|
bun src/index.ts datasets query revenue_rows --limit 50 --response-format concise --json
|
|
88
|
-
# Registry-family commands send --
|
|
101
|
+
# Registry-family commands send --data fields exactly as the tool's input
|
|
89
102
|
# schema spells them. Read that schema with --get-schema or `uru operations inspect <id>`.
|
|
90
103
|
bun src/index.ts datasets get revenue-rows
|
|
91
104
|
bun src/index.ts datasets history revenue-rows --limit 20
|
|
92
105
|
bun src/index.ts datasets jobs revenue-rows --limit 20
|
|
93
|
-
bun src/index.ts datasets rows --
|
|
94
|
-
bun src/index.ts datasets create --
|
|
95
|
-
bun src/index.ts datasets sql --
|
|
96
|
-
bun src/index.ts
|
|
106
|
+
bun src/index.ts datasets rows --data '{"op":"upsert","dataset_id":"revenue-rows","rows":[{"row_id":null,"fields":{"name":"Acme"}}]}'
|
|
107
|
+
bun src/index.ts datasets create --data '{"title":"Revenue Rows","properties":[{"clientKey":"name","name":"Name","type":"title","required":true,"nullable":false,"position":0,"config":{}}]}'
|
|
108
|
+
bun src/index.ts datasets sql --data '{"sql":"SELECT 1"}'
|
|
109
|
+
bun src/index.ts bundles create --name "Client pack" --item 'library/Board.pdf'
|
|
97
110
|
bun src/index.ts shares create 'library/Client pack' --email ana@example.com
|
|
98
111
|
bun src/index.ts distribution items --not-opened
|
|
99
112
|
bun src/index.ts contacts list --opened last-7-days
|
|
100
113
|
|
|
101
114
|
# Automation helpers over the platform tool surface.
|
|
102
|
-
bun src/index.ts automations
|
|
115
|
+
bun src/index.ts automations list --limit 100
|
|
103
116
|
bun src/index.ts automations get <automation-id>
|
|
104
117
|
bun src/index.ts automations create "Daily revenue digest" --status draft
|
|
105
118
|
bun src/index.ts automations update <automation-id> --description "Nightly digest"
|
|
@@ -107,10 +120,11 @@ bun src/index.ts automations enable <automation-id>
|
|
|
107
120
|
bun src/index.ts automations validate <automation-id> --mode structural --graph-json '{}'
|
|
108
121
|
bun src/index.ts automations graph-patch <automation-id> --patch-json '{"ops":[]}'
|
|
109
122
|
bun src/index.ts automations triggers list <automation-id>
|
|
123
|
+
bun src/index.ts automations triggers create <automation-id> --data '{"type":"schedule","config":{"cron":"0 9 * * 1"},"base_version":3}'
|
|
110
124
|
bun src/index.ts automations connections list
|
|
111
125
|
bun src/index.ts automations delete <automation-id> --yes
|
|
112
|
-
bun src/index.ts automations
|
|
113
|
-
bun src/index.ts automations runs
|
|
126
|
+
bun src/index.ts automations run <automation-id> --mode real --input-message "Run now"
|
|
127
|
+
bun src/index.ts automations runs list <automation-id> --limit 20
|
|
114
128
|
bun src/index.ts automations runs tail <run-id> --level warn
|
|
115
129
|
bun src/index.ts automations runs cancel <run-id> <automation-id> --yes
|
|
116
130
|
|
|
@@ -119,12 +133,12 @@ bun src/index.ts tools ls
|
|
|
119
133
|
bun src/index.ts tools search "gem inspect" --limit 50 --json
|
|
120
134
|
bun src/index.ts tools schema <address-from-search> --json
|
|
121
135
|
bun src/index.ts tools output <result-ref> --json
|
|
122
|
-
bun src/index.ts tools run <address-from-search> --
|
|
136
|
+
bun src/index.ts tools run <address-from-search> --data '{"path":"library/Golden Gems/My Gem.gem"}'
|
|
123
137
|
|
|
124
138
|
# Show and execute the generated operation registry.
|
|
125
139
|
bun src/index.ts operations ls
|
|
126
140
|
bun src/index.ts operations ls --family automations
|
|
127
|
-
bun src/index.ts operations run
|
|
141
|
+
bun src/index.ts operations run gems.inspect --data '{"path":"library/Golden Gems/My Gem.gem"}'
|
|
128
142
|
bun src/index.ts library search "client brief"
|
|
129
143
|
bun src/index.ts docs library_fs
|
|
130
144
|
bun src/index.ts docs search library_fs
|
|
@@ -149,11 +163,32 @@ bun src/index.ts complete powershell
|
|
|
149
163
|
```
|
|
150
164
|
|
|
151
165
|
`skills` uses the same authorized, versioned reader as the public MCP `skills`
|
|
152
|
-
tool.
|
|
153
|
-
|
|
166
|
+
tool. It reads built-in skills, the Library skills you can open and Gem
|
|
167
|
+
skills; with no `--source`, `list` and `read` cover built-in and Library
|
|
168
|
+
skills. Built-in and Library skills use the version returned by
|
|
169
|
+
`skills list`. Gem skills require an exact ready Version ID. Each read checks current access on the
|
|
154
170
|
server. `--path` names a file inside the selected skill package; it never reads
|
|
155
171
|
a local file. Text reads print the file content. `--json` includes its metadata
|
|
156
172
|
and content. `skills list` supports `--offset` and `--limit` for paging.
|
|
173
|
+
`skills settings <name>` changes where a Library skill loads by itself. A
|
|
174
|
+
change is made at once; inside an Uru chat, the chat's approval setting
|
|
175
|
+
applies.
|
|
176
|
+
|
|
177
|
+
`skills pull <name> [folder]` writes the current version of a Library skill to
|
|
178
|
+
a new or empty folder (default `./<name>`) and records the version in
|
|
179
|
+
`.uru/skill.json`. `skills push [folder]` saves the folder as a new version: it
|
|
180
|
+
sends only the files you changed, added or deleted. When someone saved the
|
|
181
|
+
skill after your pull, push refuses and saves nothing; `--diff` shows what
|
|
182
|
+
changed in Uru and in your folder. There is no force flag. `skills history`
|
|
183
|
+
lists versions and settings changes, and `skills restore <name> <version>`
|
|
184
|
+
makes a new version with the files of that version. `skills export` writes one
|
|
185
|
+
version to a zip and never replaces a file; `library import` makes a new skill
|
|
186
|
+
from a zip or a folder (`--dry-run` prints the report and changes nothing).
|
|
187
|
+
`skills from-file <file> --name <name>` turns a Markdown or plain text file into
|
|
188
|
+
a skill, and `skills inventory` lists every skill of the workspace for a
|
|
189
|
+
workspace owner or admin. Skills hold text files only: a file that is not text,
|
|
190
|
+
or a zip path outside the skill, is refused by name, and nothing is written
|
|
191
|
+
outside the target folder.
|
|
157
192
|
|
|
158
193
|
`docs` searches the local operation reference. It does not read skill files.
|
|
159
194
|
`uru --json docs gem` returns `{ "query": "gem", "text": "..." }`.
|
|
@@ -169,7 +204,7 @@ for another server. Generated configs do not use a local `npx` or stdio bridge.
|
|
|
169
204
|
|
|
170
205
|
By default the entry has no API key, so the client signs in with OAuth. The
|
|
171
206
|
Cursor entry also names Cursor's public OAuth client, as in the
|
|
172
|
-
[MCP guide](
|
|
207
|
+
[MCP guide](../web/content/docs/guides/mcp.mdx). For a headless client, pass
|
|
173
208
|
`--api-key-env URU_API_KEY`. The entry then gets an `Authorization` header that
|
|
174
209
|
references that environment variable (`${URU_API_KEY}` for Claude Code,
|
|
175
210
|
`${env:URU_API_KEY}` for Cursor). The CLI never writes a key value. It refuses
|
|
@@ -207,7 +242,8 @@ operation calls do not take an `op` argument; the server sets that value.
|
|
|
207
242
|
program result, the command reads the complete redacted JSON through the same
|
|
208
243
|
route as `uru tools output`, then prints the action value from it.
|
|
209
244
|
|
|
210
|
-
|
|
245
|
+
`uru tools run` calls every action, platform, connector, Gem and proxy, through
|
|
246
|
+
the fixed MCP `execute` tool. Schema reads for a proxy action use
|
|
211
247
|
`tools.search.describe({ paths: [path] })` and read the first returned item:
|
|
212
248
|
the path, the whole description and the TypeScript signature, with no raw JSON
|
|
213
249
|
Schemas.
|
|
@@ -221,11 +257,18 @@ none. As in Executor v2, the action's text, media and provider `_meta` are not
|
|
|
221
257
|
added to the program output, so the command does not print them. It never
|
|
222
258
|
prints the Executor `execute` wrapper. When Executor keeps a large program
|
|
223
259
|
result behind a retained handle, the command reads the complete stored result
|
|
224
|
-
through the same route as `uru tools output` and prints it.
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
one
|
|
260
|
+
through the same route as `uru tools output` and prints it.
|
|
261
|
+
|
|
262
|
+
`uru tools run` uses `--mcp-url`, then `URU_PROXY_URL`, then the MCP URL of the
|
|
263
|
+
API host (production, development, staging, a review slot or localhost). It
|
|
264
|
+
waits up to 5.5 minutes for one call, because an Executor program can run for
|
|
265
|
+
5 minutes. When the wait ends first, the call fails with
|
|
266
|
+
`tool_outcome_unknown`: the action can still complete, so check the saved run
|
|
267
|
+
before you repeat it. A refusal for bad input (`invalid_input` or
|
|
268
|
+
`invalid_tool_arguments`) prints Uru's sentence, which names the field. In a
|
|
269
|
+
chat sandbox, an action that needs approval does not run and makes no approval
|
|
270
|
+
card: the error is `approval_required`. Call the action as a tool in the chat
|
|
271
|
+
instead.
|
|
229
272
|
|
|
230
273
|
`tools run --parallel` accepts a JSON array of input objects. Calls run in order.
|
|
231
274
|
If one fails, the command prints completed results and the failed input index.
|
|
@@ -281,7 +324,7 @@ explicit token/API-key paths:
|
|
|
281
324
|
- no credentials are written to `.uru/project.json`
|
|
282
325
|
- `uru auth status` reports logged-in / workspace / storage / expiry and never prints a JWT. `uru whoami` stays a server identity call.
|
|
283
326
|
- `uru link` binds this directory to one Gem. Each call takes its workspace from `--workspace`, then `URU_WORKSPACE_ID`, then `.uru/project.json`. Login stores identity only. Workspace API keys stay bound to their workspace.
|
|
284
|
-
-
|
|
327
|
+
- `uru agents list|get|create|update --data {...}` reads and changes Agents; `uru library write` and `uru library patch` no longer change an Agent.
|
|
285
328
|
- Gem secrets use `uru secrets put|ls|rm`; values are write-only
|
|
286
329
|
- `uru env pull` writes a metadata-only template, never downloads remote secret
|
|
287
330
|
values, and clamps the output file to `0600` even when overwriting an existing
|
|
@@ -303,6 +346,19 @@ uru --no-input whoami --json
|
|
|
303
346
|
|
|
304
347
|
`--no-input` exits instead of opening a browser. `auth status` and `doctor` warn if the token lives in `--insecure-storage` and do not print the token. `env pull` writes names only; it does not download secret values.
|
|
305
348
|
|
|
349
|
+
Exit codes:
|
|
350
|
+
|
|
351
|
+
| Code | Meaning |
|
|
352
|
+
|---|---|
|
|
353
|
+
| 0 | Done |
|
|
354
|
+
| 1 | Failed (also needs_connection, needs_person, rate_limited, internal) |
|
|
355
|
+
| 2 | Cancelled |
|
|
356
|
+
| 3 | conflict: another change came first, or a retry key was used with another input |
|
|
357
|
+
| 4 | auth_required: sign in again |
|
|
358
|
+
| 5 | not_found: no such item, or you cannot see it |
|
|
359
|
+
| 6 | forbidden or blocked_by_rule: you may not do this, or a tool rule refused the call (also gem_shared_with_you: a Gem shared with you that this call cannot reach; do the step in `details.next_step`) |
|
|
360
|
+
| 7 | invalid_input: a field is wrong or missing, or a flag, an argument or `--data` JSON is wrong |
|
|
361
|
+
|
|
306
362
|
## Install shape
|
|
307
363
|
|
|
308
364
|
The package name is `@uru-intelligence/cli`; the installed binary is still `uru`:
|