@oddington/sdk 0.1.47 → 0.1.49

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
@@ -710,7 +710,7 @@ operands and infer projected `query`, `pages` and `all` values from normalized
710
710
  schemas. Multiple aliases share the root declaration. Refresh explicitly with
711
711
  the same CLI command after publishing schema changes; app builds and launches
712
712
  never refresh it. Missing metadata and dynamic repository strings retain generic
713
- types. Read/search/history and change payloads remain generic. Committed or stale
713
+ types. Read/search and change payloads remain generic. Committed or stale
714
714
  types grant no runtime authority and never replace authoritative Data validation.
715
715
 
716
716
  Iterate matching Records on demand or collect them with an explicit total ceiling:
@@ -734,7 +734,7 @@ Both helpers preserve literal collection arrays and selected-link inference.
734
734
  prefetches after a consumer stops. Independent collection cursors continue live positions; versions and requested
735
735
  counts may change between pages. Completed collections yield empty arrays on later pages and retain
736
736
  requested counts. Empty matches yield one versioned page. Helpers own continuation;
737
- use `query` for a manual `after` cursor or explicit historical query.
737
+ use `query` for a manual `after` cursor.
738
738
 
739
739
  `all` sends one bounded collection operation. Selected hosted execution uses one
740
740
  ordinary database transaction, and local execution reads one captured in-memory
@@ -753,6 +753,7 @@ Read known stable refs directly, including refs from different collections:
753
753
 
754
754
  ```ts
755
755
  const invoice = await general.records.read('invoices/one'); // complete Record or null
756
+ const invoiceWithBody = await general.records.read('invoices/one', { body: true });
756
757
  const batch = await general.records.read(['invoices/one', 'suppliers/acme']);
757
758
  // batch.$meta.version identifies one repository snapshot.
758
759
  // batch.records has one Record-or-null slot per input, in the same order.
@@ -762,38 +763,12 @@ An array accepts 1–100 distinct valid refs; a one-element array keeps the batc
762
763
  shape, and all-missing batches still carry their version. Both forms send one
763
764
  bounded operation through the same app/routine authority and snapshot as `query`.
764
765
  Records include `$ref`, `$version` and all canonical structured fields; links
765
- remain refs, omitted and null fields stay distinct, and Markdown bodies and
766
- `$filing` are excluded. Invalid refs, exceeded bounds, denied access and service
767
- failures reject the entire call; only a missing Record returns null. No options,
768
- projection, expansion or historical version argument is accepted.
769
-
770
- Read published History through the same inert repository handle:
771
-
772
- ```ts
773
- const versions = await general.history.list({ limit: 50 });
774
- const older = versions.length
775
- ? await general.history.list({ before: versions.at(-1)!.version }) : [];
776
- const close = await general.history.at('2026-10-09T16:30:00Z');
777
- ```
778
-
779
- List returns an entry array in descending published sequence, with an exclusive
780
- visible `before` and a default limit of 50 (integer 1–100). Cutoff accepts a real
781
- RFC 3339 instant with an explicit offset and returns the greatest visible sequence
782
- published at or before it, or null. Entries contain exactly `version`, `publishedAt`,
783
- `author`, `authoredAt`, `committer`, `committedAt`, `message`, `created`, `updated`,
784
- and `deleted`. Git identities and complete messages are repository facts; changed
785
- refs are lexical. Versions are opaque published identities, never Git expressions.
786
- Each operation captures input before resolving authority and makes one request.
787
- Incomplete selected metadata fails the whole result retryably with `unavailable`;
788
- current Records remain independent. Hosted routines retain their captured ceiling
789
- until their own authoritative publication advances it. History is served through
790
- the member/run Data transport. Local apps and local routines use the same calls;
791
- their OS parent may acquire one bounded page or cutoff result, retain it against
792
- the exact repository target and published ceiling, and serve an identical warm
793
- request without another hosted call. Authority loss, expiry, target replacement
794
- or published-version replacement invalidates that retained result. Prepared local
795
- changes do not appear in published History.
796
- Historical Record selection and `history.changes` are not exposed by this slice.
766
+ remain refs, and omitted and null fields stay distinct. Markdown bodies and
767
+ `$filing` are excluded by default. An exact read may request `{ body: true }` to
768
+ include the Markdown body as `$body`; query, search and pagination remain
769
+ body-free. Invalid refs, exceeded bounds, denied access and service failures
770
+ reject the entire call; only a missing Record returns null. No projection,
771
+ expansion or version argument is accepted.
797
772
 
798
773
  Use bounded plain-text lookup to find full Records and guards:
799
774
 
@@ -822,7 +797,7 @@ hosted routines search their admitted hosted version. Local routines search the
822
797
  schema-governed Markdown currently in the checkout, including staged, modified
823
798
  and untracked Records. Each call refreshes its operation-local view; a later call
824
799
  sees completed Changes writes and external edits. Search Records supply captured
825
- versions for subsequent Changes. Explicit History keeps its hosted contract.
800
+ versions for subsequent Changes.
826
801
 
827
802
  `where` combines field conditions with AND. Alongside exact scalar/null equality
828
803
  and `$in`, declared one-valued `integer`, `number`, `date` and `datetime` fields accept
@@ -982,7 +957,7 @@ also keeps that identity. Concurrent `apply()` calls coalesce, confirmed calls
982
957
  replay the result, and changed intent requires a new change set. Updates are
983
958
  bounded with creates and deletions to 10,000 total operations, with one operation
984
959
  per ref. The complete serialized change request is limited to 32 MiB for local
985
- file changes and 256 KiB for hosted writes. Search and history are outside this
960
+ file changes and 256 KiB for hosted writes. Search is outside this
986
961
  Changes slice. Source Records use ordinary schema rules. Files checks access
987
962
  when a consumer reads the referenced content.
988
963
 
@@ -1043,6 +1018,23 @@ completed Data writes as ordinary uncommitted files for review, even after later
1043
1018
  failure. Inbox publication has no Record methods;
1044
1019
  managed Response handlers retain their separately injected repository capability.
1045
1020
 
1021
+ Record presentation uses qualified current identities:
1022
+
1023
+ ```ts
1024
+ body: [
1025
+ recordBlock({ label: 'Transaction', record: { repository: 'general', ref: 'transactions/one' } }),
1026
+ recordsBlock({ label: 'Accounts', records: [
1027
+ { repository: 'general', ref: 'accounts/one' },
1028
+ { repository: 'general', ref: 'accounts/two' },
1029
+ ] }),
1030
+ ]
1031
+ ```
1032
+
1033
+ Inbox reads current values and schemas through its authorized member boundary.
1034
+ Blocks cannot supply copied fields, titles, versions or registered common View
1035
+ names. Missing Records stay unavailable without disabling the Ask. Handler write
1036
+ guards remain private handler input; immutable review evidence uses prose or Files.
1037
+
1046
1038
  Hosts publishing as a member supply the existing `request` option:
1047
1039
 
1048
1040
  ```ts