@oddington/cli 0.1.82 → 0.1.84

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.
Files changed (3) hide show
  1. package/README.md +8 -5
  2. package/dist/os.js +445 -445
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -627,19 +627,22 @@ as a member supplies `routinePublicationClient({ workspace, request })`
627
627
  with its authorized member transport. CLI publication commands supply the CLI's
628
628
  signed-in request themselves. Response modules export a `handlers` array and
629
629
  perform no publishing on import. Accepted answers durably queue managed handlers
630
- without a browser start request. Handlers use preserved View inputs and guarded
631
- shared record capabilities. Digests have personal Mark as read receipts.
630
+ without a browser start request. Handlers use the same Data API as routines,
631
+ with current hosted reads and direct field updates. Digests have personal
632
+ Mark as read receipts.
632
633
 
633
- Routines read Records through Data and prepare guarded Changes:
634
+ Routines and handlers can assign known fields without reading first:
634
635
 
635
636
  ```ts
636
637
  const repository = data.repository('general');
637
- const records = await repository.records.read(selectedRefs);
638
638
  const changes = repository.changes();
639
- changes.update(records[0], { status: 'ready' });
639
+ changes.update('invoices/one', { status: 'ready' });
640
640
  await changes.apply();
641
641
  ```
642
642
 
643
+ Read through `repository.records.read(refs)` when business logic needs current
644
+ values. Handlers use `await changes.publish()` to confirm shared changes in Git.
645
+
643
646
  Local Runs read current checkout Records and leave completed Data writes as
644
647
  ordinary uncommitted files for review. Hosted effects complete during the call.
645
648