@ekairos/story 1.21.60-beta.0 → 1.21.67-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/dist/schema.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { i } from "@instantdb/core";
|
|
2
2
|
import { domain } from "@ekairos/domain";
|
|
3
|
-
import { documentDomain } from "./schema-document";
|
|
4
3
|
export const storyDomain = domain("story")
|
|
5
|
-
.includes(documentDomain)
|
|
6
4
|
.schema({
|
|
7
5
|
entities: {
|
|
8
6
|
context_contexts: i.entity({
|
|
@@ -25,6 +23,19 @@ export const storyDomain = domain("story")
|
|
|
25
23
|
updatedAt: i.date().optional(),
|
|
26
24
|
status: i.string().optional().indexed(), // executing | completed | failed
|
|
27
25
|
}),
|
|
26
|
+
// Documents (moved from schema-document.ts)
|
|
27
|
+
document_documents: i.entity({
|
|
28
|
+
name: i.string().optional().indexed(),
|
|
29
|
+
mimeType: i.string().optional(),
|
|
30
|
+
size: i.number().optional(),
|
|
31
|
+
ownerId: i.string().optional().indexed(),
|
|
32
|
+
orgId: i.string().optional().indexed(),
|
|
33
|
+
createdAt: i.date().optional().indexed(),
|
|
34
|
+
processedAt: i.date().optional().indexed(),
|
|
35
|
+
updatedAt: i.date().optional(),
|
|
36
|
+
lastJobId: i.string().optional(),
|
|
37
|
+
content: i.json().optional(), // Store parsed content (pages, text, etc.)
|
|
38
|
+
}),
|
|
28
39
|
},
|
|
29
40
|
links: {
|
|
30
41
|
storyEventsContext: {
|
|
@@ -51,6 +62,19 @@ export const storyDomain = domain("story")
|
|
|
51
62
|
forward: { on: "story_executions", has: "one", label: "reaction" },
|
|
52
63
|
reverse: { on: "context_events", has: "many", label: "executionsAsReaction" },
|
|
53
64
|
},
|
|
65
|
+
// Documents (moved from schema-document.ts)
|
|
66
|
+
documentFile: {
|
|
67
|
+
forward: {
|
|
68
|
+
on: "document_documents",
|
|
69
|
+
has: "one",
|
|
70
|
+
label: "file",
|
|
71
|
+
},
|
|
72
|
+
reverse: {
|
|
73
|
+
on: "$files",
|
|
74
|
+
has: "one",
|
|
75
|
+
label: "document",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
54
78
|
},
|
|
55
79
|
rooms: {},
|
|
56
80
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekairos/story",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.67-beta.0",
|
|
4
4
|
"description": "Pulzar Story - Workflow-based AI Stories",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@ai-sdk/openai": "^2.0.52",
|
|
73
|
-
"@ekairos/domain": "^1.21.
|
|
73
|
+
"@ekairos/domain": "^1.21.67-beta.0",
|
|
74
74
|
"@instantdb/admin": "^0.22.13",
|
|
75
75
|
"@instantdb/core": "^0.22.13",
|
|
76
76
|
"@vercel/sandbox": "^0.0.23",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-document.d.ts","sourceRoot":"","sources":["../src/schema-document.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAElE,eAAO,MAAM,cAAc,EAAE,kBA+BvB,CAAC"}
|
package/dist/schema-document.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { i } from "@instantdb/core";
|
|
2
|
-
import { domain } from "@ekairos/domain";
|
|
3
|
-
export const documentDomain = domain("document")
|
|
4
|
-
.schema({
|
|
5
|
-
entities: {
|
|
6
|
-
document_documents: i.entity({
|
|
7
|
-
name: i.string().optional().indexed(),
|
|
8
|
-
mimeType: i.string().optional(),
|
|
9
|
-
size: i.number().optional(),
|
|
10
|
-
ownerId: i.string().optional().indexed(),
|
|
11
|
-
orgId: i.string().optional().indexed(),
|
|
12
|
-
createdAt: i.date().optional().indexed(),
|
|
13
|
-
processedAt: i.date().optional().indexed(),
|
|
14
|
-
updatedAt: i.date().optional(),
|
|
15
|
-
lastJobId: i.string().optional(),
|
|
16
|
-
content: i.json().optional(), // Store parsed content (pages, text, etc.)
|
|
17
|
-
}),
|
|
18
|
-
},
|
|
19
|
-
links: {
|
|
20
|
-
documentFile: {
|
|
21
|
-
forward: {
|
|
22
|
-
on: "document_documents",
|
|
23
|
-
has: "one",
|
|
24
|
-
label: "file",
|
|
25
|
-
},
|
|
26
|
-
reverse: {
|
|
27
|
-
on: "$files",
|
|
28
|
-
has: "one",
|
|
29
|
-
label: "document",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
rooms: {},
|
|
34
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-document.js","sourceRoot":"","sources":["../src/schema-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,MAAM,EAA2B,MAAM,iBAAiB,CAAC;AAElE,MAAM,CAAC,MAAM,cAAc,GAAuB,MAAM,CAAC,UAAU,CAAC;KAC/D,MAAM,CAAC;IACJ,QAAQ,EAAE;QACN,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC;YACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;YACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;YACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;YACtC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;YACxC,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE;YAC1C,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;YAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAChC,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,2CAA2C;SAC5E,CAAC;KACL;IACD,KAAK,EAAE;QACH,YAAY,EAAE;YACV,OAAO,EAAE;gBACL,EAAE,EAAE,oBAAoB;gBACxB,GAAG,EAAE,KAAK;gBACV,KAAK,EAAE,MAAM;aAChB;YACD,OAAO,EAAE;gBACL,EAAE,EAAE,QAAQ;gBACZ,GAAG,EAAE,KAAK;gBACV,KAAK,EAAE,UAAU;aACpB;SACJ;KACJ;IACD,KAAK,EAAE,EAAE;CACZ,CAAC,CAAC","sourcesContent":["import { i } from \"@instantdb/core\";\nimport { domain, type DomainSchemaResult } from \"@ekairos/domain\";\n\nexport const documentDomain: DomainSchemaResult = domain(\"document\")\n .schema({\n entities: {\n document_documents: i.entity({\n name: i.string().optional().indexed(),\n mimeType: i.string().optional(),\n size: i.number().optional(),\n ownerId: i.string().optional().indexed(),\n orgId: i.string().optional().indexed(),\n createdAt: i.date().optional().indexed(),\n processedAt: i.date().optional().indexed(),\n updatedAt: i.date().optional(),\n lastJobId: i.string().optional(),\n content: i.json().optional(), // Store parsed content (pages, text, etc.)\n }),\n },\n links: {\n documentFile: {\n forward: {\n on: \"document_documents\",\n has: \"one\",\n label: \"file\",\n },\n reverse: {\n on: \"$files\",\n has: \"one\",\n label: \"document\",\n },\n },\n },\n rooms: {},\n });\n"]}
|