@notis_ai/cli 0.2.30 → 0.2.32
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 +15 -0
- package/config/notis_app_design_rules.json +22 -0
- package/dist/agent-hooks/notis-agent-hook.mjs +38244 -10823
- package/dist/base-skills/notis-cli/.notis-base-skill.json +1 -1
- 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 +12 -4
- 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 +29 -2
- package/dist/base-skills/notis-spaces/references/reading.md +3 -1
- package/dist/base-skills/notis-spaces/references/release.md +3 -1
- package/dist/base-skills/notis-spaces/references/sdk.md +112 -33
- 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/index.ts +1 -1
- package/dist/sdk/src/space.ts +3 -1
- package/dist/sdk/src/tailwind.ts +53 -3
- package/dist/sdk/src/ui/icons.tsx +18 -1
- package/dist/sdk/src/words/types.ts +28 -0
- package/dist/skill-sync/index.js +10 -90
- package/dist/skill-sync-worker.mjs +50 -93
- package/dist/space-harness/host.js +155 -82
- package/dist/space-sdk/dist/chunk-I4Z4UFGB.js +3 -0
- package/dist/space-sdk/dist/index.js +2 -2
- package/dist/space-sdk/dist/ui.js +12 -12
- package/dist/space-sdk/src/hooks/useNativeDocuments.d.ts +23 -0
- package/dist/space-sdk/src/index.d.ts +1 -1
- package/dist/space-sdk/src/space.ts +3 -1
- package/dist/space-sdk/src/tailwind-candidates.d.ts +315 -2
- package/dist/space-sdk/src/tailwind.ts +53 -3
- 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/blocks.d.ts +18 -0
- package/dist/space-sdk/src/ui/blocks/index.d.ts +3 -3
- 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/icons.d.ts +6 -0
- package/dist/space-sdk/src/ui/index.d.ts +5 -3
- package/dist/space-sdk/src/ui/list/ListReader.d.ts +8 -0
- package/dist/space-sdk/src/ui/list/Row.d.ts +11 -1
- 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/words/types.ts +28 -0
- package/dist/view-renderer/dist/host.js +224 -151
- 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 +12 -5
- package/dist/view-renderer/src/remote-broker.js +3 -1
- package/dist/view-renderer/src/renderer.js +63 -16
- package/dist/view-renderer/src/skeleton.js +70 -18
- package/package.json +5 -4
- package/skills/notis-query/cli.md +3 -0
- package/skills/notis-spaces/cli.md +14 -0
- package/src/command-specs/spaces.js +138 -15
- package/src/command-specs/tools.js +3 -0
- package/src/runtime/api-hosts.generated.js +35 -0
- package/src/runtime/api-hosts.js +27 -10
- package/src/runtime/app-boundary-validator.js +248 -3
- package/src/runtime/app-data-literals.js +32 -23
- package/src/runtime/app-platform.js +68 -24
- package/src/runtime/http-agent.js +53 -0
- package/src/runtime/native-record-files.js +11 -0
- package/src/runtime/oauth.js +2 -1
- 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/space-dependencies.js +66 -0
- package/src/runtime/space-fixture-broker.js +23 -8
- package/src/runtime/space-platform.js +47 -3
- package/src/runtime/space-source.js +10 -1
- package/src/runtime/space-test-server.js +124 -6
- package/src/runtime/space-verification.js +103 -43
- package/src/runtime/space-view-manifest.js +38 -5
- package/src/runtime/transport.js +19 -4
- package/src/runtime/view-render.js +4 -1
- package/template/tailwind.config.ts +2 -35
- package/dist/space-sdk/dist/chunk-6GJ2BS7B.js +0 -3
package/README.md
CHANGED
|
@@ -407,6 +407,20 @@ When to use: Find a link binding and its revision before removing it, including
|
|
|
407
407
|
Examples:
|
|
408
408
|
- `npx --package @notis_ai/cli@latest -- notis spaces links list <space-id>`
|
|
409
409
|
|
|
410
|
+
### `npx --package @notis_ai/cli@latest -- notis spaces records <space-id> <binding>`
|
|
411
|
+
|
|
412
|
+
List the records of one database linked into a Space you edit: record key and title, oldest first, one page at a time.
|
|
413
|
+
|
|
414
|
+
When to use: Find the record keys and titles of a linked database, for example to write fixtures or link to one record. Editors only; anyone else reads through the Space's declared actions.
|
|
415
|
+
|
|
416
|
+
Options:
|
|
417
|
+
- `--limit <number>` — Records per page, 1 to 100; defaults to 20.
|
|
418
|
+
- `--offset <number>` — Zero-based start; pass next_offset from the previous page.
|
|
419
|
+
- `--record <record-key>` — Fixed record context, when this is a record-scoped Space.
|
|
420
|
+
|
|
421
|
+
Examples:
|
|
422
|
+
- `npx --package @notis_ai/cli@latest -- notis spaces records <space-id> tasks --limit 20`
|
|
423
|
+
|
|
410
424
|
### `npx --package @notis_ai/cli@latest -- notis spaces links remove <space-id> <binding-id>`
|
|
411
425
|
|
|
412
426
|
Remove one database, Skill or automation link from a Space by its binding.
|
|
@@ -1042,6 +1056,7 @@ Options:
|
|
|
1042
1056
|
|
|
1043
1057
|
Examples:
|
|
1044
1058
|
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_QUERY --arguments '{"database_slug":"tasks","query":{}}'`
|
|
1059
|
+
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_QUERY --arguments '{"protocol":1,"target":{"database_id":"<database id>"},"input":{"mode":"rows"}}'`
|
|
1045
1060
|
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_GET_DATABASE --arguments '{"database_slug":"tasks"}'`
|
|
1046
1061
|
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_QUERY --get-schema`
|
|
1047
1062
|
- `npx --package @notis_ai/cli@latest -- notis tools exec LOCAL_NOTIS_DATABASE_QUERY --dry-run --arguments '{"database_slug":"tasks","query":{}}'`
|
|
@@ -20,6 +20,28 @@
|
|
|
20
20
|
},
|
|
21
21
|
"toolkit_live_pieces": [],
|
|
22
22
|
"toolkit_note": "Rules with a toolkit_piece point at a hand-rolled pattern the live Notis toolkit replaces. They stay warnings until that piece name is added to toolkit_live_pieces, then they refuse like any error.",
|
|
23
|
+
"icons": {
|
|
24
|
+
"id": "space-unknown-icon",
|
|
25
|
+
"profiles": ["space"],
|
|
26
|
+
"description": "Every name the toolkit's Icon draws (SHAPES in packages/sdk/src/ui/icons.tsx, exported as ICON_NAMES; packages/sdk/src/ui/icons.test.tsx fails when this list drifts from it). A kebab-case string literal handed to a toolkit icon input must be one of them: name on Icon and icon on any other component imported from @notis/sdk (aliases and namespaces resolved), and an icon field of an object that also has a label (reader actions, menu items, tabs). Only whole literal values are read, never text inside strings or comments; Phosphor stored names (phosphor:x), emoji, URLs and the Space config files (whose icon is a phosphor:<name> the deploy checks) are not checked. {name} and {suggestions} fill the message.",
|
|
27
|
+
"message": "Unknown icon \"{name}\": the toolkit has no icon by that name, so it draws nothing. Closest names: {suggestions}. Use a name from the toolkit set (every name is listed in the notis-spaces SDK reference) or pass a @phosphor-icons/react element as the icon.",
|
|
28
|
+
"suggestions": 3,
|
|
29
|
+
"exclude": ["**/space.config.*", "**/notis.config.*"],
|
|
30
|
+
"names": [
|
|
31
|
+
"archive", "arrow-bend-up-right", "arrow-clockwise", "arrow-counter-clockwise", "arrow-left", "arrow-square-out",
|
|
32
|
+
"arrows-clockwise", "arrows-left-right", "arrows-out", "caret-down", "caret-left", "caret-right",
|
|
33
|
+
"caret-up", "chart-line-up", "chat-circle-text", "chats", "check", "check-circle",
|
|
34
|
+
"check-circle-fill", "circle", "circle-dashed", "circle-half", "circle-three-quarter", "clipboard-text",
|
|
35
|
+
"clock", "clock-countdown", "copy", "corners-out", "dots-three", "download-simple",
|
|
36
|
+
"envelope-open", "envelope-simple", "file", "file-audio", "file-image", "file-text",
|
|
37
|
+
"file-video", "flask", "fork-knife", "funnel-simple", "hourglass", "info",
|
|
38
|
+
"kanban", "link", "magnifying-glass-minus", "magnifying-glass-plus", "minus-circle", "paper-plane-right",
|
|
39
|
+
"paper-plane-tilt", "paperclip", "pause", "pencil-simple", "play", "plus",
|
|
40
|
+
"rocket-launch", "sidebar-simple", "sparkle", "square-center", "star", "star-fill",
|
|
41
|
+
"toggle-left", "toggle-right", "trash", "tray-arrow-up", "user-plus", "x",
|
|
42
|
+
"x-circle-fill"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
23
45
|
"rules": [
|
|
24
46
|
{
|
|
25
47
|
"id": "no-side-bar",
|