@notis_ai/cli 0.2.29 → 0.2.31
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 +26 -8
- package/dist/agent-hooks/notis-agent-hook.mjs +38399 -10883
- package/dist/base-skills/notis-cli/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-cli/SKILL.md +11 -0
- package/dist/base-skills/notis-cli/references/native-databases.md +1 -1
- package/dist/base-skills/notis-query/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-query/references/query.md +6 -4
- package/dist/base-skills/notis-spaces/.notis-base-skill.json +1 -1
- package/dist/base-skills/notis-spaces/SKILL.md +8 -3
- package/dist/base-skills/notis-spaces/references/architecture.md +4 -1
- package/dist/base-skills/notis-spaces/references/design.md +7 -1
- package/dist/base-skills/notis-spaces/references/fixtures.md +27 -2
- package/dist/base-skills/notis-spaces/references/release.md +6 -5
- package/dist/base-skills/notis-spaces/references/sdk.md +172 -48
- package/dist/base-skills/notis-spaces/references/troubleshooting.md +3 -0
- package/dist/base-skills/notis-spaces/references/views.md +20 -0
- package/dist/sdk/src/hooks/useNativeDocuments.ts +50 -12
- package/dist/sdk/src/hooks/useThreadItem.ts +56 -0
- package/dist/sdk/src/index.ts +7 -2
- package/dist/sdk/src/runtime.ts +8 -1
- package/dist/sdk/src/space.ts +233 -1
- package/dist/sdk/src/tailwind.ts +53 -3
- package/dist/sdk/src/ui/icons.tsx +1 -0
- package/dist/sdk/src/words/types.ts +28 -0
- package/dist/skill-sync/index.js +10 -90
- package/dist/skill-sync-worker.mjs +232 -120
- package/dist/space-harness/host.js +309 -96
- package/dist/space-sdk/dist/chunk-3DFOGU26.js +3 -0
- package/dist/space-sdk/dist/index.js +4 -2
- package/dist/space-sdk/dist/ui.js +19 -14
- package/dist/space-sdk/src/hooks/useNativeDocuments.d.ts +23 -0
- package/dist/space-sdk/src/hooks/useThreadItem.d.ts +28 -0
- package/dist/space-sdk/src/index.d.ts +4 -2
- package/dist/space-sdk/src/runtime.d.ts +8 -1
- package/dist/space-sdk/src/space.ts +233 -1
- package/dist/space-sdk/src/tailwind-candidates.d.ts +765 -16
- package/dist/space-sdk/src/tailwind.ts +53 -3
- package/dist/space-sdk/src/ui/actions/useToast.d.ts +2 -0
- package/dist/space-sdk/src/ui/blocks/DataTable.d.ts +19 -4
- package/dist/space-sdk/src/ui/blocks/Meter.d.ts +12 -3
- package/dist/space-sdk/src/ui/blocks/Tabs.d.ts +7 -1
- package/dist/space-sdk/src/ui/blocks/index.d.ts +1 -1
- package/dist/space-sdk/src/ui/charts/CalendarHeatmap.d.ts +69 -0
- package/dist/space-sdk/src/ui/charts/Chart.d.ts +18 -3
- package/dist/space-sdk/src/ui/charts/chartData.d.ts +19 -0
- package/dist/space-sdk/src/ui/charts/heatmapData.d.ts +81 -0
- package/dist/space-sdk/src/ui/comments/CommentPane.d.ts +56 -10
- package/dist/space-sdk/src/ui/comments/PassageComments.d.ts +16 -7
- package/dist/space-sdk/src/ui/comments/agentRuntime.d.ts +59 -0
- package/dist/space-sdk/src/ui/comments/commentFiles.d.ts +5 -2
- package/dist/space-sdk/src/ui/comments/commentModel.d.ts +103 -8
- package/dist/space-sdk/src/ui/comments/commentWords.d.ts +82 -0
- package/dist/space-sdk/src/ui/comments/hostComments.d.ts +37 -0
- package/dist/space-sdk/src/ui/comments/index.d.ts +4 -0
- package/dist/space-sdk/src/ui/comments/paneParts.d.ts +119 -0
- package/dist/space-sdk/src/ui/comments/useCommentRouting.d.ts +75 -0
- package/dist/space-sdk/src/ui/comments/useComments.d.ts +147 -15
- package/dist/space-sdk/src/ui/comments/usePassageComments.d.ts +24 -8
- package/dist/space-sdk/src/ui/index.d.ts +6 -3
- package/dist/space-sdk/src/ui/layout/SidePane.d.ts +6 -1
- package/dist/space-sdk/src/ui/list/Row.d.ts +11 -1
- package/dist/space-sdk/src/ui/overlay/Tooltip.d.ts +8 -2
- package/dist/space-sdk/src/ui/period/dateFormat.d.ts +2 -0
- package/dist/space-sdk/src/ui/period/dateWords.d.ts +9 -0
- package/dist/space-sdk/src/ui/period/periods.d.ts +15 -2
- package/dist/space-sdk/src/ui/styles.d.ts +27 -5
- package/dist/space-sdk/src/words/types.ts +28 -0
- package/dist/view-renderer/dist/host.js +379 -166
- package/dist/view-renderer/src/dom.js +3 -2
- package/dist/view-renderer/src/errors.js +9 -0
- package/dist/view-renderer/src/host.tsx +18 -8
- package/dist/view-renderer/src/remote-broker.js +3 -1
- package/dist/view-renderer/src/renderer.js +87 -17
- package/dist/view-renderer/src/skeleton.js +70 -18
- package/package.json +5 -4
- package/skills/notis-cli/AGENT_INSTRUCTIONS.md +2 -1
- package/skills/notis-query/cli.md +3 -0
- package/skills/notis-spaces/cli.md +8 -8
- package/src/cli.js +10 -2
- package/src/command-specs/computer.js +21 -1
- package/src/command-specs/profile.js +12 -5
- package/src/command-specs/spaces.js +101 -31
- package/src/command-specs/tools.js +3 -0
- package/src/runtime/agent-identity.js +187 -0
- package/src/runtime/api-hosts.generated.js +35 -0
- package/src/runtime/api-hosts.js +109 -0
- package/src/runtime/app-platform.js +68 -24
- package/src/runtime/channel.js +3 -7
- package/src/runtime/http-agent.js +53 -0
- package/src/runtime/native-record-files.js +11 -0
- package/src/runtime/oauth.js +97 -5
- package/src/runtime/profiles.js +200 -41
- package/src/runtime/skill-sync/cloud-client.ts +0 -10
- package/src/runtime/skill-sync/index.ts +13 -15
- package/src/runtime/skill-sync/local-scanner.ts +0 -67
- package/src/runtime/skill-sync/types.ts +1 -0
- package/src/runtime/skill-sync/write-cloud-skill.ts +7 -23
- package/src/runtime/skill-sync-service.js +4 -5
- package/src/runtime/space-dependencies.js +66 -0
- package/src/runtime/space-fixture-broker.js +23 -8
- package/src/runtime/space-platform.js +49 -3
- package/src/runtime/space-source.js +76 -2
- package/src/runtime/space-test-server.js +125 -10
- package/src/runtime/space-verification.js +106 -42
- package/src/runtime/space-view-manifest.js +38 -5
- package/src/runtime/telemetry.js +14 -1
- package/src/runtime/transport.js +31 -4
- package/src/runtime/upsell.js +3 -6
- package/src/runtime/view-render.js +6 -1
- package/src/skill-sync-worker.js +13 -2
- package/src/space-harness-host.ts +6 -3
- package/template/tailwind.config.ts +2 -35
- package/dist/space-sdk/dist/chunk-BFGB6XXC.js +0 -5
package/README.md
CHANGED
|
@@ -64,6 +64,23 @@ The CLI defaults to `json` output in agent or non-TTY contexts and `table` outpu
|
|
|
64
64
|
- `--timeout-ms <n>` — Time limit in milliseconds for each call, automatic retries included
|
|
65
65
|
- `--idempotency-key <key>` — Override the generated idempotency key for mutating commands
|
|
66
66
|
- `--no-retry` (or `NOTIS_NO_RETRY=1`): turn off automatic retries. By default the CLI retries an interrupted tool call (network error, timeout, 502, 503 or 504) when repeating it is safe: a read, or a write with an idempotency key. It makes up to 3 attempts within `--timeout-ms` and reports the count in `meta.attempts`, or `error.details.attempts` on a failure.
|
|
67
|
+
- `--agent-name <name>`, `--agent-id <id>`, `--agent-thread <thread>` (or `NOTIS_AGENT_NAME`, `NOTIS_AGENT_ID`, `NOTIS_AGENT_THREAD`): the agent making the call. See Agents declare themselves.
|
|
68
|
+
|
|
69
|
+
## Agents declare themselves
|
|
70
|
+
|
|
71
|
+
An agent using the CLI (Claude Code or Codex on your computer, a script, a session on your Cloud Computer) says who it is on every call, so what it writes is its own and not yours: a comment's Author is its name, the comment never counts as yours, and it never wakes the agent that wrote it. Set the variables once for the agent's session, or pass the flags on a call (a flag wins over its variable):
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
export NOTIS_AGENT_NAME="fred-and-the-machine" # a fresh lowercase band name, shown as "Fred And The Machine"
|
|
75
|
+
export NOTIS_AGENT_THREAD="<notis thread id or link>" # optional: where replies go
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- The name is a fresh lowercase imaginary rock-band name: lowercase letters and digits in at least two words joined by hyphens, 3 to 60 characters, such as `fred-and-the-machine`. Anything else stops the command before it is sent (`usage_error`; the server answers `invalid_agent_identity`).
|
|
79
|
+
- The name is only a name; an id decides which comments are the agent's own. The first time a name is used on a computer, the CLI generates a random id for it and keeps it in `agents.json` next to the CLI config file, then sends it with that name on every call. Two agents with the same name on two computers are two agents. `NOTIS_AGENT_ID` (or `--agent-id`) overrides it: up to 128 letters, digits and `. _ : @ / + -`.
|
|
80
|
+
- The name is required whenever an id or a thread is set. The thread is an id or link of up to 512 characters without spaces. A Notis thread of yours named in `NOTIS_AGENT_THREAD` gets the replies to the agent's comments. A Notis thread you do not own is ignored; any other value (another tool's session id or link) is kept as a label.
|
|
81
|
+
- The declaration names the writer; it never grants access, and Notis records it as declared. A Notis agent's own Cloud Computer command already carries a signed identity, which wins over a declaration.
|
|
82
|
+
- Declarations take effect on accounts with unified comments on (being rolled out). On other accounts Notis ignores them and every write counts as yours, as before; only a badly formed name still stops the command locally.
|
|
83
|
+
- With unified comments on, comments written through the CLI always need a name, even when you type the command yourself: without one the comment is refused with `agent_name_required`, and a declaration without an id with `agent_id_required`. Other writes made with your own sign-in and no declaration count as yours. The Notis assistant itself never writes comments: it starts a sub-agent, whose comments carry the sub-agent's name.
|
|
67
84
|
|
|
68
85
|
## Authentication
|
|
69
86
|
|
|
@@ -470,8 +487,8 @@ Render one frozen Space with offline fixtures and validate its current action au
|
|
|
470
487
|
When to use: Check immutable build bytes and authoring compatibility without executing actions or publishing.
|
|
471
488
|
|
|
472
489
|
Options:
|
|
473
|
-
- `--space <key>` — Exact source key from the workspace index.
|
|
474
|
-
- `--space-id <id>` — Exact existing destination Space.
|
|
490
|
+
- `--space <key>` — Exact source key from the workspace index. Optional when the workspace holds one Space.
|
|
491
|
+
- `--space-id <id>` — Exact existing destination Space. Optional in a pulled workspace: the Space it was pulled from.
|
|
475
492
|
- `--reuse-grants <json>` — Explicit action-key to saved-grant-ID map. Otherwise your own connections are used.
|
|
476
493
|
- `--reuse-grants-only` — Never authorize new actions. Reuse only the supplied saved grants; other declarations remain unavailable. Requires existing bound databases.
|
|
477
494
|
|
|
@@ -485,8 +502,8 @@ Seal a checked unpublished revision of the same Space and return its authenticat
|
|
|
485
502
|
When to use: Review a checked candidate using current Editor access without changing live source or cloning the Space.
|
|
486
503
|
|
|
487
504
|
Options:
|
|
488
|
-
- `--space <key>` — Exact source key from the workspace index.
|
|
489
|
-
- `--space-id <id>` — Exact existing destination Space.
|
|
505
|
+
- `--space <key>` — Exact source key from the workspace index. Optional when the workspace holds one Space.
|
|
506
|
+
- `--space-id <id>` — Exact existing destination Space. Optional in a pulled workspace: the Space it was pulled from.
|
|
490
507
|
- `--reuse-grants <json>` — Explicit action-key to saved-grant-ID map. Otherwise your own connections are used.
|
|
491
508
|
- `--reuse-grants-only` — Never authorize new actions. Reuse only the supplied saved grants; other declarations remain unavailable. Requires existing bound databases.
|
|
492
509
|
- `--request-id <key>` — Stable intent key. Reuse after timeouts or lost replies.
|
|
@@ -502,8 +519,8 @@ Publish one built Space with a retry-safe, independent source revision.
|
|
|
502
519
|
When to use: Update only the selected existing Space; this does not publish to the Store or change siblings.
|
|
503
520
|
|
|
504
521
|
Options:
|
|
505
|
-
- `--space <key>` — Exact source key from the workspace index.
|
|
506
|
-
- `--space-id <id>` — Exact existing destination Space.
|
|
522
|
+
- `--space <key>` — Exact source key from the workspace index. Optional when the workspace holds one Space.
|
|
523
|
+
- `--space-id <id>` — Exact existing destination Space. Optional in a pulled workspace: the Space it was pulled from.
|
|
507
524
|
- `--reuse-grants <json>` — Explicit action-key to saved-grant-ID map. Otherwise your own connections are used.
|
|
508
525
|
- `--reuse-grants-only` — Never authorize new actions. Reuse only the supplied saved grants; other declarations remain unavailable. Requires existing bound databases.
|
|
509
526
|
- `--request-id <key>` — Stable intent key. Reuse after timeouts or lost replies.
|
|
@@ -737,7 +754,7 @@ Build one independent Space and save its frozen source/artifact snapshot.
|
|
|
737
754
|
When to use: Prepare a selected Space for verification without publishing it or changing siblings.
|
|
738
755
|
|
|
739
756
|
Options:
|
|
740
|
-
- `--space <key>` — Exact source key from the workspace Space index.
|
|
757
|
+
- `--space <key>` — Exact source key from the workspace Space index. Optional when the workspace holds one Space.
|
|
741
758
|
|
|
742
759
|
Examples:
|
|
743
760
|
- `npx --package @notis_ai/cli@latest -- notis spaces build . --space overview`
|
|
@@ -749,7 +766,7 @@ Inspect one local Space definition and its declared capabilities.
|
|
|
749
766
|
When to use: Read the selected source definition without loading sibling definitions or account resources.
|
|
750
767
|
|
|
751
768
|
Options:
|
|
752
|
-
- `--space <key>` — Exact source key from the workspace Space index.
|
|
769
|
+
- `--space <key>` — Exact source key from the workspace Space index. Optional when the workspace holds one Space.
|
|
753
770
|
|
|
754
771
|
Examples:
|
|
755
772
|
- `npx --package @notis_ai/cli@latest -- notis spaces inspect . --space overview`
|
|
@@ -1025,6 +1042,7 @@ Options:
|
|
|
1025
1042
|
|
|
1026
1043
|
Examples:
|
|
1027
1044
|
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_QUERY --arguments '{"database_slug":"tasks","query":{}}'`
|
|
1045
|
+
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_QUERY --arguments '{"protocol":1,"target":{"database_id":"<database id>"},"input":{"mode":"rows"}}'`
|
|
1028
1046
|
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_GET_DATABASE --arguments '{"database_slug":"tasks"}'`
|
|
1029
1047
|
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_QUERY --get-schema`
|
|
1030
1048
|
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_QUERY --dry-run --arguments '{"database_slug":"tasks","query":{}}'`
|