@oddington/sdk 0.1.28 → 0.1.30
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 +28 -2
- package/dist/browser.js +274 -173
- package/dist/index.js +9 -9
- package/dist/types/packages/sdk/src/data-schema-types.d.ts +186 -0
- package/dist/types/packages/sdk/src/public.d.ts +11 -1
- package/dist/types/packages/sdk/src/routine-definition-types.d.ts +3 -1
- package/dist/types/shared/routine-deployment-contract.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -255,8 +255,9 @@ contract map is needed. Descriptions combine safe structure with live readiness
|
|
|
255
255
|
and connection availability. Starts validate the current definition and input;
|
|
256
256
|
retained reads and publication recheck complete saved member/source/capability
|
|
257
257
|
scope. No installation is needed. Bindings accept no endpoint, credential,
|
|
258
|
-
command, path or configuration selector.
|
|
259
|
-
|
|
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
|
|
260
261
|
`AppRoutineError.reason`: `authority_unavailable`, `execution_unavailable`, or
|
|
261
262
|
`invalid_input`. Starts and publications are not automatically retried. A
|
|
262
263
|
disconnected watch ends and requires `current()`. History returns at most 20
|
|
@@ -326,6 +327,9 @@ from the repository. This checks Node runtime exports and declarations, all publ
|
|
|
326
327
|
text for leaks, and the named browser imports in a realm without Node globals or
|
|
327
328
|
a module loader. It rejects bundler warnings, external dependencies, Node/shim
|
|
328
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>`.
|
|
329
333
|
The newer Local Host app imports are bundled and exercised separately under the
|
|
330
334
|
same strict compatibility audit, so they cannot weaken or inflate the hosted
|
|
331
335
|
Data/Files size comparison.
|
|
@@ -504,6 +508,28 @@ replacement; repeat its options and links while omitting unrelated collections.
|
|
|
504
508
|
There is no automatic retry or separate version fetch.
|
|
505
509
|
Collection schemas omit Markdown storage hints.
|
|
506
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
|
+
The declaration contains no package import: the worktree root needs no package
|
|
518
|
+
installation, and each consuming project resolves its own compatible SDK
|
|
519
|
+
dependency. Unrelated documentation symlinks are ignored without traversal;
|
|
520
|
+
linked or escaping integration paths are refused before authentication or writes
|
|
521
|
+
with a path-specific diagnostic. A successful refresh atomically upgrades exact
|
|
522
|
+
unedited first-release generated output and preserves every other alias; edited
|
|
523
|
+
or malformed generated files remain protected.
|
|
524
|
+
|
|
525
|
+
Known repository literals then constrain collection/field/link names and query
|
|
526
|
+
operands and infer projected `select`, `pages` and `all` values from normalized
|
|
527
|
+
schemas. Multiple aliases share the root declaration. Refresh explicitly with
|
|
528
|
+
the same CLI command after publishing schema changes; app builds and launches
|
|
529
|
+
never refresh it. Missing metadata and dynamic repository strings retain generic
|
|
530
|
+
types. Read/search/history and change payloads remain generic. Committed or stale
|
|
531
|
+
types grant no runtime authority and never replace authoritative Data validation.
|
|
532
|
+
|
|
507
533
|
Iterate matching Records on demand or collect them with an explicit total ceiling:
|
|
508
534
|
|
|
509
535
|
```ts
|