@ted-galago/wave-cli 0.1.15 → 0.1.17
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 +32 -18
- package/dist/index.cjs +174 -93
- package/dist/index.js +174 -93
- package/package.json +1 -1
- package/scripts/verify-dev-api.mjs +88 -68
package/README.md
CHANGED
|
@@ -127,10 +127,11 @@ wave osmd agent init "projects/Wave Tools"
|
|
|
127
127
|
wave osmd agent status "projects/Wave Tools" notes.md
|
|
128
128
|
wave osmd agent read "projects/Wave Tools" notes.md
|
|
129
129
|
wave osmd agent create "projects/Wave Tools" notes.md --content "Working notes"
|
|
130
|
-
wave osmd agent append "projects/Wave Tools" log.md --content "Investigated project context"
|
|
131
130
|
wave osmd wiki read index.md
|
|
131
|
+
wave osmd wiki read log.md
|
|
132
132
|
wave osmd wiki create index.md --content "# Agent Wiki"
|
|
133
133
|
wave osmd wiki update "Agent Wiki/index.md" --file ./agent-wiki-index.md
|
|
134
|
+
wave osmd wiki append-log --content "Observed durable event"
|
|
134
135
|
wave find "Ted"
|
|
135
136
|
wave open "Ted Martinez"
|
|
136
137
|
wave ls --path "directory/Members/Ted Martinez"
|
|
@@ -300,7 +301,7 @@ Backend error codes are surfaced explicitly from GraphQL `errors[].extensions.co
|
|
|
300
301
|
|
|
301
302
|
## OSMD Agent Markdown
|
|
302
303
|
|
|
303
|
-
The `osmd` command group is the write-capable agent interface for
|
|
304
|
+
The `osmd` command group is the write-capable agent interface for canonical OSMD, `.agent` overlays, and Agent Wiki files. Canonical OSMD files are read-only. Agents must write either entity-specific `.agent` overlay memory attached to a canonical OSMD parent, or broad Agent Wiki knowledge.
|
|
304
305
|
|
|
305
306
|
Commands:
|
|
306
307
|
|
|
@@ -308,18 +309,17 @@ Commands:
|
|
|
308
309
|
- `wave osmd read <path> [--parent-ref <canonicalPath>]`
|
|
309
310
|
- `wave osmd children [path] [--parent-ref <canonicalPath>] [--source canonical_osmd|agent_overlay|agent_wiki]`
|
|
310
311
|
- `wave osmd status <path> [--parent-ref <canonicalPath>]`
|
|
311
|
-
- `wave osmd agent status <parent-ref>
|
|
312
|
+
- `wave osmd agent status <parent-ref> notes.md`
|
|
312
313
|
- `wave osmd agent init <parent-ref>`
|
|
313
|
-
- `wave osmd agent read <parent-ref>
|
|
314
|
-
- `wave osmd agent create <parent-ref>
|
|
315
|
-
- `wave osmd agent update <parent-ref>
|
|
316
|
-
- `wave osmd agent append <parent-ref> <notes.md|log.md> (--content <markdown> | --file <path> | stdin)`
|
|
314
|
+
- `wave osmd agent read <parent-ref> notes.md`
|
|
315
|
+
- `wave osmd agent create <parent-ref> notes.md (--content <markdown> | --file <path> | stdin)`
|
|
316
|
+
- `wave osmd agent update <parent-ref> notes.md (--content <markdown> | --file <path> | stdin)`
|
|
317
317
|
- `wave osmd wiki status <path>`
|
|
318
318
|
- `wave osmd wiki read <path>`
|
|
319
319
|
- `wave osmd wiki children [path]`
|
|
320
320
|
- `wave osmd wiki create <path> (--content <markdown> | --file <path> | stdin)`
|
|
321
321
|
- `wave osmd wiki update <path> (--content <markdown> | --file <path> | stdin)`
|
|
322
|
-
- `wave osmd wiki append
|
|
322
|
+
- `wave osmd wiki append-log [log.md] (--content <markdown> | --file <path> | stdin)`
|
|
323
323
|
|
|
324
324
|
GraphQL mapping:
|
|
325
325
|
|
|
@@ -329,22 +329,28 @@ GraphQL mapping:
|
|
|
329
329
|
- `osmd agent init` -> `initAgentMarkdown`
|
|
330
330
|
- `osmd agent create` / `osmd wiki create` -> `createAgentMarkdownFile`
|
|
331
331
|
- `osmd agent update` / `osmd wiki update` -> `updateAgentMarkdownFile`
|
|
332
|
-
- `osmd
|
|
332
|
+
- `osmd wiki append-log` -> `recordAgentMarkdownLog`
|
|
333
333
|
|
|
334
334
|
Path and permission rules:
|
|
335
335
|
|
|
336
336
|
- Canonical OSMD reads use backend `path` values from tree/status/file responses.
|
|
337
337
|
- Canonical OSMD writes are blocked before mutation when status reports `source: "canonical_osmd"` or `access: "read_only"`.
|
|
338
338
|
- `.agent` commands require a canonical `parent-ref`; the CLI passes it as `parentRef` and never derives storage paths.
|
|
339
|
-
- `.agent` first slice supports only `notes.md
|
|
339
|
+
- `.agent` first slice supports only `notes.md`.
|
|
340
340
|
- `osmd agent init <parent-ref>` is idempotent for default `.agent` files.
|
|
341
|
-
- Agent Wiki
|
|
342
|
-
- Agent Wiki
|
|
341
|
+
- Agent Wiki index paths may be `index.md` or `Agent Wiki/index.md`; the CLI normalizes these to `Agent Wiki/index.md`.
|
|
342
|
+
- Agent Wiki log paths may be `log.md` or `Agent Wiki/log.md`; the CLI normalizes these to `Agent Wiki/log.md`.
|
|
343
|
+
- Agent Wiki first-slice agents should use `index.md` for broad writable wiki memory and `log.md` for append-only event memory.
|
|
344
|
+
- Agent Wiki `create` and `update` support only `index.md`; `log.md` cannot be overwritten.
|
|
345
|
+
- Agent Wiki `append-log` supports only `log.md` and calls status first before appending.
|
|
346
|
+
- The CLI uses backend GraphQL metadata directly and does not derive S3 paths, SHA paths, or backend storage conventions.
|
|
347
|
+
- Atlas should inspect `path`, `source`, `access`, `owner`, `parentRef`, `exists`, `canCreate`, `canUpdate`, `canAppend`, `suggestedAction`, and `errorCode`.
|
|
343
348
|
- Reads never create files.
|
|
344
|
-
- Create/update/append flows call status first and inspect `exists`, `canCreate`, `canUpdate`, `canAppend`, `suggestedAction`, and `errorCode`.
|
|
349
|
+
- Create/update/append-log flows call status first and inspect `exists`, `canCreate`, `canUpdate`, `canAppend`, `suggestedAction`, and `errorCode`.
|
|
345
350
|
- `create` fails when `exists` is true.
|
|
346
351
|
- `update` fails when `exists` is false.
|
|
347
|
-
- `append`
|
|
352
|
+
- `append-log` fails unless status reports `exists: true`, `access: "append_only"`, and `canAppend: true`.
|
|
353
|
+
- Missing `Agent Wiki/index.md` is create-ready when status returns `exists: false`, `canCreate: true`, `canUpdate: false`, and `suggestedAction: "create"`.
|
|
348
354
|
|
|
349
355
|
OSMD command envelopes keep the global CLI envelope and put the file metadata directly in `data`:
|
|
350
356
|
|
|
@@ -359,6 +365,9 @@ OSMD command envelopes keep the global CLI envelope and put the file metadata di
|
|
|
359
365
|
"access": "read_write",
|
|
360
366
|
"owner": "atlas",
|
|
361
367
|
"exists": true,
|
|
368
|
+
"canCreate": false,
|
|
369
|
+
"canUpdate": true,
|
|
370
|
+
"canAppend": false,
|
|
362
371
|
"parentRef": "projects/Wave Tools",
|
|
363
372
|
"content": "..."
|
|
364
373
|
},
|
|
@@ -372,19 +381,24 @@ On write preflight errors, `data` contains the status metadata and `error.sugges
|
|
|
372
381
|
```json
|
|
373
382
|
{
|
|
374
383
|
"ok": false,
|
|
375
|
-
"command": "osmd.
|
|
384
|
+
"command": "osmd.wiki.update",
|
|
376
385
|
"status": 404,
|
|
377
386
|
"data": {
|
|
378
|
-
"path": "
|
|
387
|
+
"path": "Agent Wiki/index.md",
|
|
388
|
+
"source": "agent_wiki",
|
|
389
|
+
"access": "read_write",
|
|
390
|
+
"owner": "atlas",
|
|
379
391
|
"exists": false,
|
|
380
392
|
"canCreate": true,
|
|
381
393
|
"canUpdate": false,
|
|
382
394
|
"canAppend": false,
|
|
383
|
-
"
|
|
395
|
+
"parentRef": null,
|
|
396
|
+
"suggestedAction": "create",
|
|
397
|
+
"errorCode": null
|
|
384
398
|
},
|
|
385
399
|
"error": {
|
|
386
400
|
"code": "agent_file_not_found",
|
|
387
|
-
"message": "Agent markdown file does not exist:
|
|
401
|
+
"message": "Agent markdown file does not exist: Agent Wiki/index.md",
|
|
388
402
|
"suggestedAction": "create",
|
|
389
403
|
"details": {}
|
|
390
404
|
},
|