@oddington/cli 0.1.83 → 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.
- package/README.md +8 -5
- package/dist/os.js +158 -158
- 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
|
|
631
|
-
|
|
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
|
|
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(
|
|
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
|
|