@notis_ai/cli 0.2.0-beta.159.1 → 0.2.0-beta.160.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 CHANGED
@@ -327,6 +327,100 @@ Examples:
327
327
  - `npx --package @notis_ai/cli@latest -- notis apps doctor ./my-app`
328
328
 
329
329
 
330
+ ## Reports
331
+
332
+ Reports save independent SDK documents into app-owned database records. They do not deploy an app or change shared app routes.
333
+
334
+ Choose the owning database first 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.
335
+
336
+ 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`; add `--attach` only to replace the body of an existing non-view record. Read back the saved record and inspect its native URL. See the product `notis-reports` skill for the full authoring contract.
337
+
338
+ ### `npx --package @notis_ai/cli@latest -- notis reports init <name> [dir]`
339
+
340
+ Init a record-owned SDK report locally.
341
+
342
+ When to use: Author an independent report without deploying its owning app.
343
+
344
+ Options:
345
+ - `--from <slug>` — Start from a published Store app listed by `notis apps scaffolds list`. Downloads its source from the public app registry.
346
+
347
+ Examples:
348
+ - `npx --package @notis_ai/cli@latest -- notis apps scaffolds list`
349
+ - `npx --package @notis_ai/cli@latest -- notis reports init "Mind the Flo"`
350
+ - `npx --package @notis_ai/cli@latest -- notis reports init "My CRM" --from databases`
351
+ - `npx --package @notis_ai/cli@latest -- notis reports init "My App" ~/code/my-app`
352
+
353
+ ### `npx --package @notis_ai/cli@latest -- notis reports build [dir]`
354
+
355
+ Build a record-owned SDK report locally.
356
+
357
+ When to use: Author an independent report without deploying its owning app.
358
+
359
+ Examples:
360
+ - `npx --package @notis_ai/cli@latest -- notis reports build`
361
+ - `npx --package @notis_ai/cli@latest -- notis reports build ./my-app`
362
+
363
+ ### `npx --package @notis_ai/cli@latest -- notis reports verify [dir]`
364
+
365
+ Verify a record-owned SDK report locally.
366
+
367
+ When to use: Author an independent report without deploying its owning app.
368
+
369
+ Options:
370
+ - `--routes <slugs>` — Comma-separated route slugs. Default: every route in manifest.
371
+ - `--port <n>` — Loopback port. Default: auto-pick.
372
+ - `--skip-build` — Skip notis apps build; reuse existing .notis/output/.
373
+ - `--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.
374
+ - `--listing` — Ignored for reports; saving a report does not publish a Store listing.
375
+ - `--no-browser` — Start the harness server and print URLs; do not drive agent-browser.
376
+ - `--keep-open` — Leave server + browser session running after report (for manual triage).
377
+
378
+ Examples:
379
+ - `npx --package @notis_ai/cli@latest -- notis reports verify`
380
+ - `npx --package @notis_ai/cli@latest -- notis reports verify --routes notes`
381
+ - `npx --package @notis_ai/cli@latest -- notis reports verify --mode live`
382
+ - `npx --package @notis_ai/cli@latest -- notis reports verify --no-browser # start the harness, drive agent-browser yourself`
383
+
384
+ ### `npx --package @notis_ai/cli@latest -- notis reports preview [dir]`
385
+
386
+ Preview a record-owned SDK report locally. Keeps the preview server and browser session open.
387
+
388
+ When to use: Author an independent report without deploying its owning app.
389
+
390
+ Options:
391
+ - `--routes <slugs>` — Comma-separated route slugs. Default: every route in manifest.
392
+ - `--port <n>` — Loopback port. Default: auto-pick.
393
+ - `--skip-build` — Skip notis apps build; reuse existing .notis/output/.
394
+ - `--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.
395
+ - `--listing` — Ignored for reports; saving a report does not publish a Store listing.
396
+ - `--no-browser` — Start the harness server and print URLs; do not drive agent-browser.
397
+ - `--keep-open` — Leave server + browser session running after report (for manual triage).
398
+
399
+ Examples:
400
+ - `npx --package @notis_ai/cli@latest -- notis reports preview`
401
+ - `npx --package @notis_ai/cli@latest -- notis reports preview --routes notes`
402
+ - `npx --package @notis_ai/cli@latest -- notis reports preview --mode live`
403
+ - `npx --package @notis_ai/cli@latest -- notis reports preview --no-browser # start the harness, drive agent-browser yourself`
404
+
405
+ ### `npx --package @notis_ai/cli@latest -- notis reports save [dir]`
406
+
407
+ Build, verify and save a report into an app-owned database record.
408
+
409
+ When to use: Persist an independently authored report, not an app release.
410
+
411
+ Options:
412
+ - `--database-id <id>` — Required. Owning app database.
413
+ - `--document-id <id>` — Existing record to update or attach to.
414
+ - `--attach` — Attach to an existing non-view record.
415
+ - `--expected-revision <revision>` — Fresh view revision (0 for a record without a view).
416
+ - `--title <title>` — Required, including updates. Record title.
417
+ - `--context-file <file>` — Required. UTF-8 readable report content and structure.
418
+ - `--properties-file <file>` — JSON database property values keyed by name.
419
+
420
+ Examples:
421
+ - `npx --package @notis_ai/cli@latest -- notis reports save ./weekly-report --database-id <id> --title "Weekly review" --context-file ./context.md`
422
+
423
+
330
424
  ## Hand-over
331
425
 
332
426
  Give the branch you are on to a Notis agent, which continues the work in a git worktree on the Notis cloud computer. `--route` picks the agent: the hosted Notis agent, or the user's own Codex/Claude Code in the cloud sandbox or on their Mac. `--branch-mode same` makes the agent commit onto your branch; the default cuts a new branch from it.