@notis_ai/cli 0.2.0-beta.177.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 CHANGED
@@ -331,96 +331,82 @@ Examples:
331
331
 
332
332
  ## Reports
333
333
 
334
- Reports save independent SDK documents into app-owned database records. They do not deploy an app or change shared app routes.
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
- 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.
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`; 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.
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 record-owned SDK report locally.
342
+ Init a standalone live SDK report.
343
343
 
344
- When to use: Author an independent report without deploying its owning app.
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 apps scaffolds list`
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 record-owned SDK report locally.
351
+ Build a standalone live SDK report.
358
352
 
359
- When to use: Author an independent report without deploying its owning app.
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 record-owned SDK report locally.
360
+ Verify a standalone live SDK report.
368
361
 
369
- When to use: Author an independent report without deploying its owning app.
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 record-owned SDK report locally. Keeps the preview server and browser session open.
379
+ Preview a standalone live SDK report.
389
380
 
390
- When to use: Author an independent report without deploying its owning app.
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 report into an app-owned database record.
398
+ Build, verify and save a standalone live report document.
410
399
 
411
- When to use: Persist an independently authored report, not an app release.
400
+ When to use: Persist an independently owned report, not an app release.
412
401
 
413
402
  Options:
414
- - `--database-id <id>` — Required. Owning app database.
415
- - `--document-id <id>` — Existing record to update or attach to.
416
- - `--attach` — Attach to an existing non-view record.
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 --database-id <id> --title "Weekly review" --context-file ./context.md`
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