@ekairos/story 1.6.2 → 1.8.2

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/dist/index.d.ts CHANGED
@@ -9,6 +9,4 @@ export * from "./agent";
9
9
  export * from "./events";
10
10
  export * from "./document-parser";
11
11
  export * as Steps from "./steps";
12
- export * as Workflows from "./workflows";
13
- export * from "./workflows/sampleWorkflow";
14
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,cAAc,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA"}
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Workflows = exports.Steps = void 0;
39
+ exports.Steps = void 0;
40
40
  __exportStar(require("./story"), exports);
41
41
  __exportStar(require("./storyEngine"), exports);
42
42
  __exportStar(require("./storyRunner"), exports);
@@ -48,6 +48,4 @@ __exportStar(require("./agent"), exports);
48
48
  __exportStar(require("./events"), exports);
49
49
  __exportStar(require("./document-parser"), exports);
50
50
  exports.Steps = __importStar(require("./steps"));
51
- exports.Workflows = __importStar(require("./workflows"));
52
- __exportStar(require("./workflows/sampleWorkflow"), exports);
53
51
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,gDAA6B;AAC7B,gDAA6B;AAC7B,2CAAwB;AACxB,2CAAwB;AACxB,4CAAyB;AACzB,kDAA+B;AAC/B,0CAAuB;AACvB,2CAAwB;AACxB,oDAAiC;AACjC,iDAAgC;AAChC,yDAAwC;AACxC,6DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,gDAA6B;AAC7B,gDAA6B;AAC7B,2CAAwB;AACxB,2CAAwB;AACxB,4CAAyB;AACzB,kDAA+B;AAC/B,0CAAuB;AACvB,2CAAwB;AACxB,oDAAiC;AACjC,iDAAgC"}
@@ -1,5 +1,4 @@
1
1
  export * from "./registry";
2
2
  export * from "./ai";
3
3
  export * from "./base";
4
- export * from "./sampleStep";
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/steps/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,MAAM,CAAA;AACpB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/steps/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,MAAM,CAAA;AACpB,cAAc,QAAQ,CAAA"}
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./registry"), exports);
18
18
  __exportStar(require("./ai"), exports);
19
19
  __exportStar(require("./base"), exports);
20
- __exportStar(require("./sampleStep"), exports);
21
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/steps/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,uCAAoB;AACpB,yCAAsB;AACtB,+CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/steps/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,uCAAoB;AACpB,yCAAsB"}
@@ -1 +1 @@
1
- {"version":3,"file":"sampleStep.d.ts","sourceRoot":"","sources":["../../src/steps/sampleStep.ts"],"names":[],"mappings":"AAEA,wBAAsB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAiB/D"}
1
+ {"version":3,"file":"sampleStep.d.ts","sourceRoot":"","sources":["../../src/steps/sampleStep.ts"],"names":[],"mappings":"AACA,wBAAsB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAe/D"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
- "use step";
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.sampleStep = sampleStep;
5
4
  async function sampleStep(input) {
5
+ "use step";
6
6
  if (input == null) {
7
7
  throw new Error("input is required");
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sampleStep.js","sourceRoot":"","sources":["../../src/steps/sampleStep.ts"],"names":[],"mappings":";AAAA,UAAU,CAAC;;AAEX,gCAiBC;AAjBM,KAAK,UAAU,UAAU,CAAC,KAAa;IAE5C,IAAI,KAAK,IAAI,IAAI,EACjB,CAAC;QACC,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAE7B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EACxB,CAAC;QACC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAErC,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"sampleStep.js","sourceRoot":"","sources":["../../src/steps/sampleStep.ts"],"names":[],"mappings":";;AACA,gCAeC;AAfM,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,UAAU,CAAC;IACX,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAE7B,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnD,CAAC;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAErC,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -2,7 +2,11 @@ export interface SampleWorkflowInput {
2
2
  text: string;
3
3
  }
4
4
  export interface SampleWorkflowOutput {
5
- uppercase: string;
5
+ ok: boolean;
6
+ workflow: string;
7
+ echo: string;
8
+ upper: string;
9
+ stepProcessed: boolean;
6
10
  }
7
11
  export declare function sampleWorkflow(input: SampleWorkflowInput): Promise<SampleWorkflowOutput>;
8
12
  //# sourceMappingURL=sampleWorkflow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sampleWorkflow.d.ts","sourceRoot":"","sources":["../../src/workflows/sampleWorkflow.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAElC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IAEnC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAmB9F"}
1
+ {"version":3,"file":"sampleWorkflow.d.ts","sourceRoot":"","sources":["../../src/workflows/sampleWorkflow.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,OAAO,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,wBAAsB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAqB9F"}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- "use workflow";
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.sampleWorkflow = sampleWorkflow;
5
4
  const sampleStep_1 = require("../steps/sampleStep");
6
5
  async function sampleWorkflow(input) {
6
+ "use workflow";
7
7
  if (input == null) {
8
8
  throw new Error("input is required");
9
9
  }
@@ -13,7 +13,11 @@ async function sampleWorkflow(input) {
13
13
  }
14
14
  const uppercase = await (0, sampleStep_1.sampleStep)(text);
15
15
  return {
16
- uppercase,
16
+ ok: true,
17
+ workflow: 'library:workbench',
18
+ echo: text,
19
+ upper: `[STEP-PROCESSED] ${uppercase}`,
20
+ stepProcessed: true,
17
21
  };
18
22
  }
19
23
  //# sourceMappingURL=sampleWorkflow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sampleWorkflow.js","sourceRoot":"","sources":["../../src/workflows/sampleWorkflow.ts"],"names":[],"mappings":";AAAA,cAAc,CAAC;;AAcf,wCAmBC;AA/BD,oDAAiD;AAY1C,KAAK,UAAU,cAAc,CAAC,KAA0B;IAE7D,IAAI,KAAK,IAAI,IAAI,EACjB,CAAC;QACC,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,IAAI,IAAI,IAAI,IAAI,EAChB,CAAC;QACC,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,IAAA,uBAAU,EAAC,IAAI,CAAC,CAAC;IAEzC,OAAO;QACL,SAAS;KACV,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"sampleWorkflow.js","sourceRoot":"","sources":["../../src/workflows/sampleWorkflow.ts"],"names":[],"mappings":";;AAcA,wCAqBC;AAnCD,oDAAiD;AAc1C,KAAK,UAAU,cAAc,CAAC,KAA0B;IAC7D,cAAc,CAAC;IACf,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEvB,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,IAAA,uBAAU,EAAC,IAAI,CAAC,CAAC;IAEzC,OAAO;QACL,EAAE,EAAE,IAAI;QACR,QAAQ,EAAE,mBAAmB;QAC7B,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,oBAAoB,SAAS,EAAE;QACtC,aAAa,EAAE,IAAI;KACpB,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekairos/story",
3
- "version": "1.6.2",
3
+ "version": "1.8.2",
4
4
  "description": "Pulzar Story - Workflow-based AI Stories",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@ai-sdk/openai": "^2.0.52",
35
- "@ekairos/domain": "^1.6.0",
35
+ "@ekairos/domain": "^1.6.1",
36
36
  "@instantdb/admin": "^0.22.13",
37
37
  "@instantdb/core": "^0.22.13",
38
38
  "@vercel/sandbox": "^0.0.23",