@ekairos/story 1.21.29-beta.0 → 1.21.32-beta.0
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 +174 -0
- package/dist/agent.builder.d.ts +52 -0
- package/dist/agent.builder.d.ts.map +1 -0
- package/dist/agent.builder.js +110 -0
- package/dist/agent.builder.js.map +1 -0
- package/dist/agent.d.ts +2 -119
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.engine.d.ts +75 -0
- package/dist/agent.engine.d.ts.map +1 -0
- package/dist/agent.engine.js +455 -0
- package/dist/agent.engine.js.map +1 -0
- package/dist/agent.js +8 -607
- package/dist/agent.js.map +1 -1
- package/dist/ekairos.config.d.ts +21 -0
- package/dist/ekairos.config.d.ts.map +1 -0
- package/dist/ekairos.config.js +26 -0
- package/dist/ekairos.config.js.map +1 -0
- package/dist/events.d.ts +11 -7
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +37 -210
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -25
- package/dist/index.js.map +1 -1
- package/dist/legacy.story.d.ts +5 -0
- package/dist/legacy.story.d.ts.map +1 -0
- package/dist/legacy.story.js +15 -0
- package/dist/legacy.story.js.map +1 -0
- package/dist/runtime.d.ts +12 -0
- package/dist/runtime.js +12 -0
- package/dist/schema-document.d.ts +0 -1
- package/dist/schema-document.js +14 -18
- package/dist/schema-document.js.map +1 -1
- package/dist/schema.d.ts +0 -1
- package/dist/schema.js +22 -26
- package/dist/schema.js.map +1 -1
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +2 -1
- package/dist/service.js.map +1 -1
- package/dist/steps/do-story-stream-step.d.ts +29 -0
- package/dist/steps/do-story-stream-step.d.ts.map +1 -0
- package/dist/steps/do-story-stream-step.js +89 -0
- package/dist/steps/do-story-stream-step.js.map +1 -0
- package/dist/steps/index.d.ts +1 -3
- package/dist/steps/index.d.ts.map +1 -1
- package/dist/steps/index.js +3 -17
- package/dist/steps/index.js.map +1 -1
- package/dist/steps/store.steps.d.ts +43 -0
- package/dist/steps/store.steps.d.ts.map +1 -0
- package/dist/steps/store.steps.js +123 -0
- package/dist/steps/store.steps.js.map +1 -0
- package/dist/steps/story.steps.d.ts +35 -0
- package/dist/steps/story.steps.d.ts.map +1 -0
- package/dist/steps/story.steps.js +59 -0
- package/dist/steps/story.steps.js.map +1 -0
- package/dist/steps/stream.steps.d.ts +28 -0
- package/dist/steps/stream.steps.d.ts.map +1 -0
- package/dist/steps/stream.steps.js +75 -0
- package/dist/steps/stream.steps.js.map +1 -0
- package/dist/stores/instant.document-parser.d.ts +5 -0
- package/dist/stores/instant.document-parser.d.ts.map +1 -0
- package/dist/stores/instant.document-parser.js +116 -0
- package/dist/stores/instant.document-parser.js.map +1 -0
- package/dist/stores/instant.documents.d.ts +16 -0
- package/dist/stores/instant.documents.js +108 -0
- package/dist/stores/instant.store.d.ts +40 -0
- package/dist/stores/instant.store.d.ts.map +1 -0
- package/dist/stores/instant.store.js +207 -0
- package/dist/stores/instant.store.js.map +1 -0
- package/dist/story.builder.d.ts +116 -0
- package/dist/story.builder.d.ts.map +1 -0
- package/dist/story.builder.js +130 -0
- package/dist/story.builder.js.map +1 -0
- package/dist/story.config.d.ts +43 -0
- package/dist/story.config.d.ts.map +1 -0
- package/dist/story.config.js +57 -0
- package/dist/story.config.js.map +1 -0
- package/dist/story.d.ts +2 -50
- package/dist/story.d.ts.map +1 -1
- package/dist/story.engine.d.ts +174 -0
- package/dist/story.engine.d.ts.map +1 -0
- package/dist/story.engine.js +283 -0
- package/dist/story.engine.js.map +1 -0
- package/dist/story.js +6 -55
- package/dist/story.js.map +1 -1
- package/dist/story.legacy.d.ts +12 -0
- package/dist/story.legacy.d.ts.map +1 -0
- package/dist/story.legacy.js +15 -0
- package/dist/story.legacy.js.map +1 -0
- package/dist/story.registry.d.ts +21 -0
- package/dist/story.registry.d.ts.map +1 -0
- package/dist/story.registry.js +30 -0
- package/dist/story.registry.js.map +1 -0
- package/dist/story.store.d.ts +59 -0
- package/dist/story.store.d.ts.map +1 -0
- package/dist/story.store.js +1 -0
- package/dist/story.store.js.map +1 -0
- package/dist/story.streams.d.ts +55 -0
- package/dist/story.streams.d.ts.map +1 -0
- package/dist/story.streams.js +99 -0
- package/dist/story.streams.js.map +1 -0
- package/dist/story.toolcalls.d.ts +60 -0
- package/dist/story.toolcalls.d.ts.map +1 -0
- package/dist/story.toolcalls.js +73 -0
- package/dist/story.toolcalls.js.map +1 -0
- package/dist/tools-to-model-tools.d.ts +19 -0
- package/dist/tools-to-model-tools.js +21 -0
- package/dist/workflow.d.ts +20 -0
- package/dist/workflow.js +27 -0
- package/package.json +15 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow DevKit interop helper.
|
|
3
|
+
*
|
|
4
|
+
* In some environments / TS setups, the `workflow` package is typed/exported as a default export,
|
|
5
|
+
* even though runtime usage expects `getWritable()` to exist.
|
|
6
|
+
*
|
|
7
|
+
* We centralize that interop here so the rest of the codebase can just do:
|
|
8
|
+
* `import { getWritable } from "./workflow"`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getWritable<W = any>(): WritableStream<W>;
|
|
11
|
+
/**
|
|
12
|
+
* Typed wrapper around Workflow DevKit's `getWritable()`.
|
|
13
|
+
*
|
|
14
|
+
* Why:
|
|
15
|
+
* - The `workflow` package typing in some environments is surfaced as a default export,
|
|
16
|
+
* which makes `import { getWritable } from "workflow"` fail typechecking.
|
|
17
|
+
* - `@ekairos/story` wants to call `getWritable()` inside `"use step"` functions without
|
|
18
|
+
* leaking import quirks across the codebase.
|
|
19
|
+
*/
|
|
20
|
+
export declare const getWritable: <W = any>() => WritableStream<W>;
|
package/dist/workflow.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import workflow from "workflow";
|
|
2
|
+
/**
|
|
3
|
+
* Workflow DevKit interop helper.
|
|
4
|
+
*
|
|
5
|
+
* In some environments / TS setups, the `workflow` package is typed/exported as a default export,
|
|
6
|
+
* even though runtime usage expects `getWritable()` to exist.
|
|
7
|
+
*
|
|
8
|
+
* We centralize that interop here so the rest of the codebase can just do:
|
|
9
|
+
* `import { getWritable } from "./workflow"`.
|
|
10
|
+
*/
|
|
11
|
+
export function getWritable() {
|
|
12
|
+
const fn = workflow.getWritable ?? workflow.default?.getWritable;
|
|
13
|
+
if (typeof fn !== "function") {
|
|
14
|
+
throw new Error("workflow.getWritable is not available in this runtime");
|
|
15
|
+
}
|
|
16
|
+
return fn();
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Typed wrapper around Workflow DevKit's `getWritable()`.
|
|
20
|
+
*
|
|
21
|
+
* Why:
|
|
22
|
+
* - The `workflow` package typing in some environments is surfaced as a default export,
|
|
23
|
+
* which makes `import { getWritable } from "workflow"` fail typechecking.
|
|
24
|
+
* - `@ekairos/story` wants to call `getWritable()` inside `"use step"` functions without
|
|
25
|
+
* leaking import quirks across the codebase.
|
|
26
|
+
*/
|
|
27
|
+
export const getWritable = workflow.getWritable;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekairos/story",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.32-beta.0",
|
|
4
4
|
"description": "Pulzar Story - Workflow-based AI Stories",
|
|
5
|
-
"type": "
|
|
5
|
+
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
@@ -20,8 +20,18 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
|
-
"
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
24
|
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./runtime": {
|
|
27
|
+
"types": "./dist/runtime.d.ts",
|
|
28
|
+
"import": "./dist/runtime.js",
|
|
29
|
+
"default": "./dist/runtime.js"
|
|
30
|
+
},
|
|
31
|
+
"./instant": {
|
|
32
|
+
"types": "./dist/stores/instant.store.d.ts",
|
|
33
|
+
"import": "./dist/stores/instant.store.js",
|
|
34
|
+
"default": "./dist/stores/instant.store.js"
|
|
25
35
|
}
|
|
26
36
|
},
|
|
27
37
|
"scripts": {
|
|
@@ -33,7 +43,7 @@
|
|
|
33
43
|
},
|
|
34
44
|
"dependencies": {
|
|
35
45
|
"@ai-sdk/openai": "^2.0.52",
|
|
36
|
-
"@ekairos/domain": "^1.21.
|
|
46
|
+
"@ekairos/domain": "^1.21.32-beta.0",
|
|
37
47
|
"@instantdb/admin": "^0.22.13",
|
|
38
48
|
"@instantdb/core": "^0.22.13",
|
|
39
49
|
"@vercel/sandbox": "^0.0.23",
|
|
@@ -41,6 +51,7 @@
|
|
|
41
51
|
"ajv": "^8.17.1",
|
|
42
52
|
"braintrust": "^0.3.7",
|
|
43
53
|
"llamaindex": "^0.12.0",
|
|
54
|
+
"workflow": "4.0.1-beta.13",
|
|
44
55
|
"xmlbuilder2": "^3.1.1",
|
|
45
56
|
"zod": "^4.1.8"
|
|
46
57
|
},
|