@oddington/sdk 0.1.21 → 0.1.22
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 +12 -5
- package/dist/browser.js +194 -187
- package/dist/index.js +5 -5
- package/dist/types/packages/sdk/src/routine-definition-types.d.ts +2 -8
- package/dist/types/shared/inbox-member-contract.d.ts +2 -2
- package/dist/types/shared/inbox-member-types.d.ts +15 -17
- package/dist/types/shared/routine-definition-contract.d.ts +33 -0
- package/dist/types/shared/routine-deployment-contract.d.ts +47 -0
- package/dist/types/shared/routine-deployment-path.d.ts +6 -0
- package/dist/types/shared/routine-source-provenance.d.ts +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -675,7 +675,12 @@ connection effects occur immediately, including before a later failure.
|
|
|
675
675
|
No-change success retains Run evidence without requiring publish. `--json`
|
|
676
676
|
returns typed Run state/counts/result, or confirmed publish receipts/links.
|
|
677
677
|
The former `prepare`, `run --local`, command/argv and authority-selection
|
|
678
|
-
flags are rejected.
|
|
678
|
+
flags are rejected. `os routine deploy <canonical-id>` explicitly delivers the
|
|
679
|
+
complete definition, including its response handlers; `--yes` provides automation
|
|
680
|
+
consent. `os routine run <canonical-id> --remote` runs the current successful
|
|
681
|
+
deployment with the same input/defaults, ordered steps and result validation.
|
|
682
|
+
Remote handles expose `current()`, `watch()` and `step(id)`; `runs.list()` and
|
|
683
|
+
`runs.get(id)` read retained bounded history. Remote summaries omit publication.
|
|
679
684
|
Checkout-backed app children retain immediate publication.
|
|
680
685
|
|
|
681
686
|
Retain evidence with `inbox.files.add({ path: 'evidence.txt' })`. Paths stay within
|
|
@@ -702,17 +707,19 @@ The CLI consumes the same SDK and supplies its signed-in member transport to CLI
|
|
|
702
707
|
commands. The former `@oddington/cli/inbox` subpath is removed; routines import
|
|
703
708
|
this package root.
|
|
704
709
|
|
|
705
|
-
The managed response runner supplies the SDK to
|
|
710
|
+
The managed response runner supplies the SDK to the deployed definition's handlers:
|
|
706
711
|
|
|
707
712
|
```ts
|
|
708
|
-
|
|
713
|
+
const review = defineHandler({
|
|
709
714
|
id: 'review',
|
|
710
715
|
run: async () => resolveAsk({ outcome: 'Reviewed' }),
|
|
711
|
-
})
|
|
716
|
+
});
|
|
717
|
+
// Include review in defineRoutine({ ..., responses: [review] }).
|
|
712
718
|
```
|
|
713
719
|
|
|
714
720
|
A self-contained module importing only the SDK needs no customer dependency
|
|
715
721
|
installation. Customer manifests cannot replace the runner-owned SDK. The runner
|
|
716
|
-
selects
|
|
722
|
+
selects current code when an answer is accepted, retains that unit for invocation,
|
|
723
|
+
and supplies only scoped capability
|
|
717
724
|
transport. The package contains public runtime code, declarations, this README and
|
|
718
725
|
its license; it has no executable, operator/server code or infrastructure credentials.
|