@notis_ai/cli 0.2.0-beta.175.1 → 0.2.0-beta.178.1
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 +25 -39
- package/dist/agent-hooks/notis-agent-hook.mjs +197 -155
- package/{template/packages → dist}/sdk/src/config.ts +4 -0
- package/{template/packages → dist}/sdk/src/hooks/useNotis.ts +3 -1
- package/{template/packages → dist}/sdk/src/index.ts +1 -0
- package/{template/packages → dist}/sdk/src/runtime.ts +13 -0
- package/{template/packages → dist}/sdk/src/styles.css +72 -74
- package/package.json +1 -1
- package/skills/notis-apps/cli.md +23 -37
- package/src/command-specs/apps.js +18 -14
- package/src/command-specs/diagnostics.js +15 -14
- package/src/command-specs/reports.js +61 -50
- package/src/runtime/agent-browser.js +10 -5
- package/src/runtime/app-platform.js +27 -3
- package/src/runtime/app-test-server.js +2 -1
- package/template/.harness/index.html.tmpl +12 -4
- package/template/packages/sdk/tsconfig.json +0 -16
- /package/{template/packages → dist}/sdk/package.json +0 -0
- /package/{template/packages → dist}/sdk/src/agentContext.ts +0 -0
- /package/{template/packages → dist}/sdk/src/components/Dialog.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/DocumentEditor.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/Markdown.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/MarkdownEditor.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/MultiSelectActionBar.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/MultiSelectCheckbox.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/MultiSelectDragOverlay.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/NotisCommentBoundary.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/NotisSelectionBoundary.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/ShortcutHints.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/components/Skeleton.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/documents.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useActiveResource.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useAgentContext.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useBackend.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useCloudComputer.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useCollectionInteractions.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useDatabaseSchema.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useDatabaseSubscription.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useDocument.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useDocuments.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useHandover.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useLongPressSelection.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useMultiSelect.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useNotisNavigation.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useQuery.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useTool.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useToolQuery.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useTools.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useTopBarSearch.ts +0 -0
- /package/{template/packages → dist}/sdk/src/hooks/useUpsertDocument.ts +0 -0
- /package/{template/packages → dist}/sdk/src/interactions/actions.ts +0 -0
- /package/{template/packages → dist}/sdk/src/interactions/shortcuts.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/interactions/visibility.ts +0 -0
- /package/{template/packages → dist}/sdk/src/interactions.ts +0 -0
- /package/{template/packages → dist}/sdk/src/provider.tsx +0 -0
- /package/{template/packages → dist}/sdk/src/queryCache.ts +0 -0
- /package/{template/packages → dist}/sdk/src/tailwind.ts +0 -0
- /package/{template/packages → dist}/sdk/src/ui.ts +0 -0
- /package/{template/packages → dist}/sdk/src/vite.ts +0 -0
package/README.md
CHANGED
|
@@ -331,96 +331,82 @@ Examples:
|
|
|
331
331
|
|
|
332
332
|
## Reports
|
|
333
333
|
|
|
334
|
-
Reports save
|
|
334
|
+
Reports save standalone live SDK documents without an app or database. They do not deploy an app or change shared app routes.
|
|
335
335
|
|
|
336
|
-
|
|
336
|
+
Use the standalone report build profile and author exactly one SDK route. Keep readable content in a separate context file. Build, verify, inspect the preview, then save. Save rebuilds and stub-verifies a frozen artifact before persistence; local verification does not prove that live data loaded in the saved report.
|
|
337
337
|
|
|
338
|
-
To revise, read the current document and recover its source from the short-lived `report_source_url`. Pass `--document-id` and the freshly read `--expected-revision
|
|
338
|
+
To revise, read the current document and recover its source from the short-lived `report_source_url`. Pass `--document-id` and the freshly read `--expected-revision`. Read back the saved record and inspect its native URL. See the product `notis-reports` skill for the full authoring contract.
|
|
339
339
|
|
|
340
340
|
### `npx --package @notis_ai/cli@latest -- notis reports init <name> [dir]`
|
|
341
341
|
|
|
342
|
-
Init a
|
|
342
|
+
Init a standalone live SDK report.
|
|
343
343
|
|
|
344
|
-
When to use: Author
|
|
345
|
-
|
|
346
|
-
Options:
|
|
347
|
-
- `--from <slug>` — Start from a published Store app listed by `notis apps scaffolds list`. Downloads its source from the public app registry.
|
|
344
|
+
When to use: Author a private standalone document using the shared view runtime; no app or database is required.
|
|
348
345
|
|
|
349
346
|
Examples:
|
|
350
|
-
- `npx --package @notis_ai/cli@latest -- notis
|
|
351
|
-
- `npx --package @notis_ai/cli@latest -- notis reports init "Mind the Flo"`
|
|
352
|
-
- `npx --package @notis_ai/cli@latest -- notis reports init "My CRM" --from databases`
|
|
353
|
-
- `npx --package @notis_ai/cli@latest -- notis reports init "My App" ~/code/my-app`
|
|
347
|
+
- `npx --package @notis_ai/cli@latest -- notis reports init "Weekly report" ./weekly-report`
|
|
354
348
|
|
|
355
349
|
### `npx --package @notis_ai/cli@latest -- notis reports build [dir]`
|
|
356
350
|
|
|
357
|
-
Build a
|
|
351
|
+
Build a standalone live SDK report.
|
|
358
352
|
|
|
359
|
-
When to use: Author
|
|
353
|
+
When to use: Author a private standalone document using the shared view runtime; no app or database is required.
|
|
360
354
|
|
|
361
355
|
Examples:
|
|
362
|
-
- `npx --package @notis_ai/cli@latest -- notis reports build`
|
|
363
|
-
- `npx --package @notis_ai/cli@latest -- notis reports build ./my-app`
|
|
356
|
+
- `npx --package @notis_ai/cli@latest -- notis reports build ./weekly-report`
|
|
364
357
|
|
|
365
358
|
### `npx --package @notis_ai/cli@latest -- notis reports verify [dir]`
|
|
366
359
|
|
|
367
|
-
Verify a
|
|
360
|
+
Verify a standalone live SDK report.
|
|
368
361
|
|
|
369
|
-
When to use: Author
|
|
362
|
+
When to use: Author a private standalone document using the shared view runtime; no app or database is required.
|
|
370
363
|
|
|
371
364
|
Options:
|
|
372
365
|
- `--routes <slugs>` — Comma-separated route slugs. Default: every route in manifest.
|
|
373
366
|
- `--port <n>` — Loopback port. Default: auto-pick.
|
|
374
367
|
- `--skip-build` — Skip notis apps build; reuse existing .notis/output/.
|
|
375
368
|
- `--mode <mode>` — stub | live. Default stub. Live posts to /portal_views/runtime_query with the CLI JWT and fails routes whose runtime calls all errored.
|
|
376
|
-
- `--listing` — Ignored for reports; saving a report does not publish a Store listing.
|
|
377
369
|
- `--no-browser` — Start the harness server and print URLs; do not drive agent-browser.
|
|
378
370
|
- `--keep-open` — Leave server + browser session running after report (for manual triage).
|
|
371
|
+
- `--document-id <id>` — Saved report for live verification.
|
|
372
|
+
- `--expected-revision <revision>` — Saved report revision for live verification.
|
|
379
373
|
|
|
380
374
|
Examples:
|
|
381
|
-
- `npx --package @notis_ai/cli@latest -- notis reports verify`
|
|
382
|
-
- `npx --package @notis_ai/cli@latest -- notis reports verify --routes notes`
|
|
383
|
-
- `npx --package @notis_ai/cli@latest -- notis reports verify --mode live`
|
|
384
|
-
- `npx --package @notis_ai/cli@latest -- notis reports verify --no-browser # start the harness, drive agent-browser yourself`
|
|
375
|
+
- `npx --package @notis_ai/cli@latest -- notis reports verify ./weekly-report`
|
|
385
376
|
|
|
386
377
|
### `npx --package @notis_ai/cli@latest -- notis reports preview [dir]`
|
|
387
378
|
|
|
388
|
-
Preview a
|
|
379
|
+
Preview a standalone live SDK report.
|
|
389
380
|
|
|
390
|
-
When to use: Author
|
|
381
|
+
When to use: Author a private standalone document using the shared view runtime; no app or database is required.
|
|
391
382
|
|
|
392
383
|
Options:
|
|
393
384
|
- `--routes <slugs>` — Comma-separated route slugs. Default: every route in manifest.
|
|
394
385
|
- `--port <n>` — Loopback port. Default: auto-pick.
|
|
395
386
|
- `--skip-build` — Skip notis apps build; reuse existing .notis/output/.
|
|
396
387
|
- `--mode <mode>` — stub | live. Default stub. Live posts to /portal_views/runtime_query with the CLI JWT and fails routes whose runtime calls all errored.
|
|
397
|
-
- `--listing` — Ignored for reports; saving a report does not publish a Store listing.
|
|
398
388
|
- `--no-browser` — Start the harness server and print URLs; do not drive agent-browser.
|
|
399
389
|
- `--keep-open` — Leave server + browser session running after report (for manual triage).
|
|
390
|
+
- `--document-id <id>` — Saved report for live verification.
|
|
391
|
+
- `--expected-revision <revision>` — Saved report revision for live verification.
|
|
400
392
|
|
|
401
393
|
Examples:
|
|
402
|
-
- `npx --package @notis_ai/cli@latest -- notis reports preview`
|
|
403
|
-
- `npx --package @notis_ai/cli@latest -- notis reports preview --routes notes`
|
|
404
|
-
- `npx --package @notis_ai/cli@latest -- notis reports preview --mode live`
|
|
405
|
-
- `npx --package @notis_ai/cli@latest -- notis reports preview --no-browser # start the harness, drive agent-browser yourself`
|
|
394
|
+
- `npx --package @notis_ai/cli@latest -- notis reports preview ./weekly-report`
|
|
406
395
|
|
|
407
396
|
### `npx --package @notis_ai/cli@latest -- notis reports save [dir]`
|
|
408
397
|
|
|
409
|
-
Build, verify and save a
|
|
398
|
+
Build, verify and save a standalone live report document.
|
|
410
399
|
|
|
411
|
-
When to use: Persist an independently
|
|
400
|
+
When to use: Persist an independently owned report, not an app release.
|
|
412
401
|
|
|
413
402
|
Options:
|
|
414
|
-
- `--
|
|
415
|
-
- `--
|
|
416
|
-
- `--
|
|
417
|
-
- `--expected-revision <revision>` — Fresh view revision (0 for a record without a view).
|
|
418
|
-
- `--title <title>` — Required, including updates. Record title.
|
|
403
|
+
- `--document-id <id>` — Existing report document to update.
|
|
404
|
+
- `--expected-revision <revision>` — Current saved report revision; required for updates.
|
|
405
|
+
- `--title <title>` — Required, including updates. Document title.
|
|
419
406
|
- `--context-file <file>` — Required. UTF-8 readable report content and structure.
|
|
420
|
-
- `--properties-file <file>` — JSON database property values keyed by name.
|
|
421
407
|
|
|
422
408
|
Examples:
|
|
423
|
-
- `npx --package @notis_ai/cli@latest -- notis reports save ./weekly-report --
|
|
409
|
+
- `npx --package @notis_ai/cli@latest -- notis reports save ./weekly-report --title "Weekly review" --context-file ./context.md`
|
|
424
410
|
|
|
425
411
|
|
|
426
412
|
## Hand-over
|