@oddington/sdk 0.1.27 → 0.1.29

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
@@ -75,8 +75,9 @@ runtime contains `run.id`, `data`, `files`, `connections`, `inbox`, and `step`.
75
75
  Accepted input and saved values are immutable snapshots. Access declarations set
76
76
  maximum named capabilities and grant no authority; the trusted host checks current
77
77
  authority. Response handler IDs are local to the routine and must be unique. A
78
- declared `review` handler crosses the Inbox publication seam as
79
- `invoice-import/review`, without deploying or executing that handler.
78
+ declared `review` handler crosses the Inbox publication seam as `review`; Inbox
79
+ retains the canonical `invoice-import` routine identity separately, without
80
+ deploying or executing that handler.
80
81
 
81
82
  The bounded grammar supports closed objects with required properties, arrays with
82
83
  an explicit `maxItems` from 1 to 64, booleans, strings (at most 4096 code points),
@@ -254,8 +255,9 @@ contract map is needed. Descriptions combine safe structure with live readiness
254
255
  and connection availability. Starts validate the current definition and input;
255
256
  retained reads and publication recheck complete saved member/source/capability
256
257
  scope. No installation is needed. Bindings accept no endpoint, credential,
257
- command, path or configuration selector. Hosted declarations stay visible and
258
- unavailable until hosted execution exists. Operations reject with
258
+ command, path or configuration selector. A local app uses its live Local Host;
259
+ a hosted app uses its existing member session and workspace context to reach
260
+ the current remote Run owner through the same bindings. Operations reject with
259
261
  `AppRoutineError.reason`: `authority_unavailable`, `execution_unavailable`, or
260
262
  `invalid_input`. Starts and publications are not automatically retried. A
261
263
  disconnected watch ends and requires `current()`. History returns at most 20
@@ -325,6 +327,9 @@ from the repository. This checks Node runtime exports and declarations, all publ
325
327
  text for leaks, and the named browser imports in a realm without Node globals or
326
328
  a module loader. It rejects bundler warnings, external dependencies, Node/shim
327
329
  code, unused implementations and increases beyond the reviewed SDK byte ceiling.
330
+ During diagnosis, list the independently runnable phases with
331
+ `bun --no-env-file run packages/sdk/scripts/verify-package.ts --list-phases`
332
+ and rerun only the failed `artifact` or `browser` phase with `--phase <name>`.
328
333
  The newer Local Host app imports are bundled and exercised separately under the
329
334
  same strict compatibility audit, so they cannot weaken or inflate the hosted
330
335
  Data/Files size comparison.
@@ -503,6 +508,21 @@ replacement; repeat its options and links while omitting unrelated collections.
503
508
  There is no automatic retry or separate version fetch.
504
509
  Collection schemas omit Markdown storage hints.
505
510
 
511
+ For schema-aware authoring, sign in with the OS CLI and run
512
+ `os data schema general` inside the consuming TypeScript Git worktree. It writes
513
+ one `os-data.generated.d.ts` and integrates that shared declaration into the
514
+ worktree's TypeScript projects. Review and commit the declaration and changed
515
+ project files so a fresh clone needs no credentials or regeneration. Customer
516
+ source continues to import only from `@oddington/sdk`.
517
+
518
+ Known repository literals then constrain collection/field/link names and query
519
+ operands and infer projected `select`, `pages` and `all` values from normalized
520
+ schemas. Multiple aliases share the root declaration. Refresh explicitly with
521
+ the same CLI command after publishing schema changes; app builds and launches
522
+ never refresh it. Missing metadata and dynamic repository strings retain generic
523
+ types. Read/search/history and change payloads remain generic. Committed or stale
524
+ types grant no runtime authority and never replace authoritative Data validation.
525
+
506
526
  Iterate matching Records on demand or collect them with an explicit total ceiling:
507
527
 
508
528
  ```ts