@oddington/sdk 0.1.30 → 0.1.31
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 +0 -20
- package/dist/browser.js +150 -195
- package/dist/index.js +3 -62
- package/dist/types/packages/sdk/src/public.d.ts +1 -13
- package/dist/types/shared/files-contract.d.ts +6 -36
- package/dist/types/shared/inbox-contract.d.ts +0 -13
- package/dist/types/shared/inbox-files.d.ts +5 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -293,26 +293,6 @@ without relaunching or durable history.
|
|
|
293
293
|
Supplied File inputs currently reject `execution_unavailable` before launch;
|
|
294
294
|
File-use transfer and a local browser Files adapter are separate work.
|
|
295
295
|
|
|
296
|
-
The fixed child imports `appRun` from the same package and shares the app's
|
|
297
|
-
customer-owned input/result/step types:
|
|
298
|
-
|
|
299
|
-
```ts
|
|
300
|
-
import { appRun } from '@oddington/sdk';
|
|
301
|
-
import type { Input, Result, Steps } from './contract.ts';
|
|
302
|
-
|
|
303
|
-
const context = appRun.current<Input, Result, Steps>();
|
|
304
|
-
if (context) {
|
|
305
|
-
await context.step('read');
|
|
306
|
-
await context.step('write', { changed: 1 });
|
|
307
|
-
await context.finish({ processed: context.input.limit });
|
|
308
|
-
}
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
`appRun.current()` is absent in ordinary Node and browser execution. Child
|
|
312
|
-
input is deeply immutable; declared reports await host acceptance. Success
|
|
313
|
-
requires accepted finish and zero exit. Cancellation or later failure does not
|
|
314
|
-
undo already confirmed shared effects.
|
|
315
|
-
|
|
316
296
|
Browser bundlers select the standard `browser` condition at the package root.
|
|
317
297
|
Named imports retain the selected browser capabilities without Node built-ins,
|
|
318
298
|
compatibility shims or unused routine, filesystem, Inbox and connection code.
|