@lucern/contracts 0.1.2-alpha.5 → 0.3.0-alpha.1

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.
Files changed (223) hide show
  1. package/dist/defineFunction-DO97DKs4.d.ts +14 -0
  2. package/dist/defineTable-CBQ03FXl.d.ts +36 -0
  3. package/dist/dsl-BgpoVOVQ.d.ts +110 -0
  4. package/dist/dsl.d.ts +5 -0
  5. package/dist/dsl.js +678 -0
  6. package/dist/dsl.js.map +1 -0
  7. package/dist/function-registry/beliefs.d.ts +479 -0
  8. package/dist/function-registry/beliefs.js +4677 -0
  9. package/dist/function-registry/beliefs.js.map +1 -0
  10. package/dist/function-registry/coding.d.ts +323 -0
  11. package/dist/function-registry/coding.js +4451 -0
  12. package/dist/function-registry/coding.js.map +1 -0
  13. package/dist/function-registry/context.d.ts +206 -0
  14. package/dist/function-registry/context.js +4336 -0
  15. package/dist/function-registry/context.js.map +1 -0
  16. package/dist/function-registry/contracts.d.ts +206 -0
  17. package/dist/function-registry/contracts.js +4284 -0
  18. package/dist/function-registry/contracts.js.map +1 -0
  19. package/dist/function-registry/coordination.d.ts +440 -0
  20. package/dist/function-registry/coordination.js +4405 -0
  21. package/dist/function-registry/coordination.js.map +1 -0
  22. package/dist/function-registry/edges.d.ts +167 -0
  23. package/dist/function-registry/edges.js +4425 -0
  24. package/dist/function-registry/edges.js.map +1 -0
  25. package/dist/function-registry/evidence.d.ts +401 -0
  26. package/dist/function-registry/evidence.js +4598 -0
  27. package/dist/function-registry/evidence.js.map +1 -0
  28. package/dist/function-registry/graph.d.ts +596 -0
  29. package/dist/function-registry/graph.js +4489 -0
  30. package/dist/function-registry/graph.js.map +1 -0
  31. package/dist/function-registry/helpers.d.ts +84 -0
  32. package/dist/function-registry/helpers.js +4280 -0
  33. package/dist/function-registry/helpers.js.map +1 -0
  34. package/dist/function-registry/identity.d.ts +206 -0
  35. package/dist/function-registry/identity.js +4295 -0
  36. package/dist/function-registry/identity.js.map +1 -0
  37. package/dist/function-registry/index.d.ts +32 -0
  38. package/dist/function-registry/index.js +4384 -0
  39. package/dist/function-registry/index.js.map +1 -0
  40. package/dist/function-registry/judgments.d.ts +167 -0
  41. package/dist/function-registry/judgments.js +4308 -0
  42. package/dist/function-registry/judgments.js.map +1 -0
  43. package/dist/function-registry/legacy.d.ts +128 -0
  44. package/dist/function-registry/legacy.js +4259 -0
  45. package/dist/function-registry/legacy.js.map +1 -0
  46. package/dist/function-registry/lenses.d.ts +245 -0
  47. package/dist/function-registry/lenses.js +4343 -0
  48. package/dist/function-registry/lenses.js.map +1 -0
  49. package/dist/function-registry/manifest.d.ts +36 -0
  50. package/dist/function-registry/manifest.js +367 -0
  51. package/dist/function-registry/manifest.js.map +1 -0
  52. package/dist/function-registry/ontologies.d.ts +518 -0
  53. package/dist/function-registry/ontologies.js +4442 -0
  54. package/dist/function-registry/ontologies.js.map +1 -0
  55. package/dist/function-registry/pipeline.d.ts +206 -0
  56. package/dist/function-registry/pipeline.js +4295 -0
  57. package/dist/function-registry/pipeline.js.map +1 -0
  58. package/dist/function-registry/questions.d.ts +557 -0
  59. package/dist/function-registry/questions.js +4528 -0
  60. package/dist/function-registry/questions.js.map +1 -0
  61. package/dist/function-registry/tasks.d.ts +245 -0
  62. package/dist/function-registry/tasks.js +4373 -0
  63. package/dist/function-registry/tasks.js.map +1 -0
  64. package/dist/function-registry/topics.d.ts +284 -0
  65. package/dist/function-registry/topics.js +4350 -0
  66. package/dist/function-registry/topics.js.map +1 -0
  67. package/dist/function-registry/types.d.ts +84 -0
  68. package/dist/function-registry/types.js +3 -0
  69. package/dist/function-registry/types.js.map +1 -0
  70. package/dist/function-registry/worktrees.d.ts +479 -0
  71. package/dist/function-registry/worktrees.js +4522 -0
  72. package/dist/function-registry/worktrees.js.map +1 -0
  73. package/dist/generated/convexSchemas.d.ts +20 -0
  74. package/dist/generated/convexSchemas.js +161 -0
  75. package/dist/generated/convexSchemas.js.map +1 -0
  76. package/dist/generated/schema-manifest.json +5231 -0
  77. package/dist/generated/tableOwnership.d.ts +128 -0
  78. package/dist/generated/tableOwnership.js +278 -0
  79. package/dist/generated/tableOwnership.js.map +1 -0
  80. package/dist/generated/tier-expectations.json +363 -0
  81. package/dist/idOf-DR8tkhQS.d.ts +10 -0
  82. package/dist/index-CV-0_VWJ.d.ts +25 -0
  83. package/dist/index.d.ts +421 -2
  84. package/dist/index.js +7634 -1607
  85. package/dist/index.js.map +1 -1
  86. package/dist/schema-helpers/enumValidation.d.ts +17 -0
  87. package/dist/schema-helpers/enumValidation.js +143 -0
  88. package/dist/schema-helpers/enumValidation.js.map +1 -0
  89. package/dist/schema-helpers/spine/nodes/decision.d.ts +19 -0
  90. package/dist/schema-helpers/spine/nodes/decision.js +81 -0
  91. package/dist/schema-helpers/spine/nodes/decision.js.map +1 -0
  92. package/dist/schema-helpers/spine/tables/epistemicNodes.d.ts +9 -0
  93. package/dist/schema-helpers/spine/tables/epistemicNodes.js +62 -0
  94. package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -0
  95. package/dist/schema-helpers/topicIds.d.ts +17 -0
  96. package/dist/schema-helpers/topicIds.js +21 -0
  97. package/dist/schema-helpers/topicIds.js.map +1 -0
  98. package/dist/schema-helpers/topicLegacyScope.d.ts +19 -0
  99. package/dist/schema-helpers/topicLegacyScope.js +44 -0
  100. package/dist/schema-helpers/topicLegacyScope.js.map +1 -0
  101. package/dist/schema-helpers/validators.d.ts +8 -0
  102. package/dist/schema-helpers/validators.js +18 -0
  103. package/dist/schema-helpers/validators.js.map +1 -0
  104. package/dist/schemas/component-table-manifest.d.ts +74 -0
  105. package/dist/schemas/component-table-manifest.js +26 -0
  106. package/dist/schemas/component-table-manifest.js.map +1 -0
  107. package/dist/schemas/enums.d.ts +12 -0
  108. package/dist/schemas/enums.js +11 -0
  109. package/dist/schemas/enums.js.map +1 -0
  110. package/dist/schemas/index.d.ts +7 -0
  111. package/dist/schemas/index.js +4298 -0
  112. package/dist/schemas/index.js.map +1 -0
  113. package/dist/schemas/manifest.d.ts +24586 -0
  114. package/dist/schemas/manifest.js +4269 -0
  115. package/dist/schemas/manifest.js.map +1 -0
  116. package/dist/schemas/sl-opinion.d.ts +31 -0
  117. package/dist/schemas/sl-opinion.js +19 -0
  118. package/dist/schemas/sl-opinion.js.map +1 -0
  119. package/dist/schemas/tables/identity/agent.d.ts +21 -0
  120. package/dist/schemas/tables/identity/agent.js +41 -0
  121. package/dist/schemas/tables/identity/agent.js.map +1 -0
  122. package/dist/schemas/tables/identity/epistemic.d.ts +18 -0
  123. package/dist/schemas/tables/identity/epistemic.js +38 -0
  124. package/dist/schemas/tables/identity/epistemic.js.map +1 -0
  125. package/dist/schemas/tables/identity/model.d.ts +62 -0
  126. package/dist/schemas/tables/identity/model.js +110 -0
  127. package/dist/schemas/tables/identity/model.js.map +1 -0
  128. package/dist/schemas/tables/identity/platform.d.ts +392 -0
  129. package/dist/schemas/tables/identity/platform.js +475 -0
  130. package/dist/schemas/tables/identity/platform.js.map +1 -0
  131. package/dist/schemas/tables/identity/project.d.ts +22 -0
  132. package/dist/schemas/tables/identity/project.js +48 -0
  133. package/dist/schemas/tables/identity/project.js.map +1 -0
  134. package/dist/schemas/tables/identity/user.d.ts +26 -0
  135. package/dist/schemas/tables/identity/user.js +47 -0
  136. package/dist/schemas/tables/identity/user.js.map +1 -0
  137. package/dist/schemas/tables/kernel/config.d.ts +20 -0
  138. package/dist/schemas/tables/kernel/config.js +39 -0
  139. package/dist/schemas/tables/kernel/config.js.map +1 -0
  140. package/dist/schemas/tables/kernel/coordination.d.ts +30 -0
  141. package/dist/schemas/tables/kernel/coordination.js +57 -0
  142. package/dist/schemas/tables/kernel/coordination.js.map +1 -0
  143. package/dist/schemas/tables/kernel/decision.d.ts +246 -0
  144. package/dist/schemas/tables/kernel/decision.js +371 -0
  145. package/dist/schemas/tables/kernel/decision.js.map +1 -0
  146. package/dist/schemas/tables/kernel/embedding.d.ts +18 -0
  147. package/dist/schemas/tables/kernel/embedding.js +48 -0
  148. package/dist/schemas/tables/kernel/embedding.js.map +1 -0
  149. package/dist/schemas/tables/kernel/epistemic.d.ts +317 -0
  150. package/dist/schemas/tables/kernel/epistemic.js +329 -0
  151. package/dist/schemas/tables/kernel/epistemic.js.map +1 -0
  152. package/dist/schemas/tables/kernel/idempotency.d.ts +13 -0
  153. package/dist/schemas/tables/kernel/idempotency.js +31 -0
  154. package/dist/schemas/tables/kernel/idempotency.js.map +1 -0
  155. package/dist/schemas/tables/kernel/infra.d.ts +183 -0
  156. package/dist/schemas/tables/kernel/infra.js +182 -0
  157. package/dist/schemas/tables/kernel/infra.js.map +1 -0
  158. package/dist/schemas/tables/kernel/intelligence.d.ts +293 -0
  159. package/dist/schemas/tables/kernel/intelligence.js +207 -0
  160. package/dist/schemas/tables/kernel/intelligence.js.map +1 -0
  161. package/dist/schemas/tables/kernel/lens.d.ts +192 -0
  162. package/dist/schemas/tables/kernel/lens.js +122 -0
  163. package/dist/schemas/tables/kernel/lens.js.map +1 -0
  164. package/dist/schemas/tables/kernel/ontology.d.ts +89 -0
  165. package/dist/schemas/tables/kernel/ontology.js +91 -0
  166. package/dist/schemas/tables/kernel/ontology.js.map +1 -0
  167. package/dist/schemas/tables/kernel/platform.d.ts +353 -0
  168. package/dist/schemas/tables/kernel/platform.js +349 -0
  169. package/dist/schemas/tables/kernel/platform.js.map +1 -0
  170. package/dist/schemas/tables/kernel/spine.d.ts +206 -0
  171. package/dist/schemas/tables/kernel/spine.js +243 -0
  172. package/dist/schemas/tables/kernel/spine.js.map +1 -0
  173. package/dist/schemas/tables/kernel/task.d.ts +614 -0
  174. package/dist/schemas/tables/kernel/task.js +189 -0
  175. package/dist/schemas/tables/kernel/task.js.map +1 -0
  176. package/dist/schemas/tables/kernel/topic.d.ts +25 -0
  177. package/dist/schemas/tables/kernel/topic.js +62 -0
  178. package/dist/schemas/tables/kernel/topic.js.map +1 -0
  179. package/dist/schemas/tables/kernel/workflow.d.ts +45 -0
  180. package/dist/schemas/tables/kernel/workflow.js +94 -0
  181. package/dist/schemas/tables/kernel/workflow.js.map +1 -0
  182. package/dist/schemas/tables/kernel/worktree.d.ts +823 -0
  183. package/dist/schemas/tables/kernel/worktree.js +330 -0
  184. package/dist/schemas/tables/kernel/worktree.js.map +1 -0
  185. package/dist/schemas/tables/mc/identity.d.ts +134 -0
  186. package/dist/schemas/tables/mc/identity.js +221 -0
  187. package/dist/schemas/tables/mc/identity.js.map +1 -0
  188. package/dist/schemas/tables/mc/methodology.d.ts +46 -0
  189. package/dist/schemas/tables/mc/methodology.js +69 -0
  190. package/dist/schemas/tables/mc/methodology.js.map +1 -0
  191. package/dist/schemas/tables/mc/pack.d.ts +540 -0
  192. package/dist/schemas/tables/mc/pack.js +294 -0
  193. package/dist/schemas/tables/mc/pack.js.map +1 -0
  194. package/dist/schemas/tables/mc/policy.d.ts +57 -0
  195. package/dist/schemas/tables/mc/policy.js +121 -0
  196. package/dist/schemas/tables/mc/policy.js.map +1 -0
  197. package/dist/schemas/tables/mc/registry.d.ts +155 -0
  198. package/dist/schemas/tables/mc/registry.js +164 -0
  199. package/dist/schemas/tables/mc/registry.js.map +1 -0
  200. package/dist/schemas/tables/mc/runtime.d.ts +119 -0
  201. package/dist/schemas/tables/mc/runtime.js +199 -0
  202. package/dist/schemas/tables/mc/runtime.js.map +1 -0
  203. package/dist/schemas/tables/mc/tenant.d.ts +106 -0
  204. package/dist/schemas/tables/mc/tenant.js +114 -0
  205. package/dist/schemas/tables/mc/tenant.js.map +1 -0
  206. package/dist/schemas/tables/mc/workspace.d.ts +28 -0
  207. package/dist/schemas/tables/mc/workspace.js +52 -0
  208. package/dist/schemas/tables/mc/workspace.js.map +1 -0
  209. package/dist/sdk-methods.contract.d.ts +5 -2
  210. package/dist/{sdk-tools.contract-BnV0hKLp.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +3 -7
  211. package/dist/sdk-tools.contract.d.ts +2 -2
  212. package/dist/sdk-tools.contract.js +810 -218
  213. package/dist/sdk-tools.contract.js.map +1 -1
  214. package/dist/tool-contracts-C92-9ueT.d.ts +290 -0
  215. package/dist/tool-contracts.d.ts +1 -0
  216. package/dist/{mcp-tools.contract.js → tool-contracts.js} +812 -159
  217. package/dist/tool-contracts.js.map +1 -0
  218. package/dist/workflow-runtime.contract.js +1 -1
  219. package/dist/workflow-runtime.contract.js.map +1 -1
  220. package/package.json +137 -2
  221. package/dist/mcp-tools.contract-D8kXcP6d.d.ts +0 -254
  222. package/dist/mcp-tools.contract.d.ts +0 -1
  223. package/dist/mcp-tools.contract.js.map +0 -1
@@ -0,0 +1,614 @@
1
+ import { z } from 'zod';
2
+ import { T as TableContract } from '../../../defineTable-CBQ03FXl.js';
3
+ import { C as ConvexIdSchema } from '../../../idOf-DR8tkhQS.js';
4
+
5
+ declare const tasks: TableContract<{
6
+ topicId: z.ZodOptional<z.ZodString>;
7
+ tenantId: z.ZodOptional<z.ZodString>;
8
+ workspaceId: z.ZodOptional<z.ZodString>;
9
+ title: z.ZodString;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ status: z.ZodEnum<["todo", "in_progress", "blocked", "done"]>;
12
+ priority: z.ZodEnum<["urgent", "high", "medium", "low"]>;
13
+ dueDate: z.ZodOptional<z.ZodNumber>;
14
+ linkedWorktreeId: z.ZodOptional<ConvexIdSchema<"worktrees">>;
15
+ linkedBeliefId: z.ZodOptional<z.ZodString>;
16
+ linkedQuestionId: z.ZodOptional<z.ZodString>;
17
+ taskType: z.ZodOptional<z.ZodEnum<["general", "find_evidence", "verify_claim", "research", "review", "interview", "analysis", "track_metrics"]>>;
18
+ assigneeId: z.ZodOptional<z.ZodString>;
19
+ blockedReason: z.ZodOptional<z.ZodString>;
20
+ blockedBy: z.ZodOptional<z.ZodArray<ConvexIdSchema<"tasks">, "many">>;
21
+ blocks: z.ZodOptional<z.ZodArray<ConvexIdSchema<"tasks">, "many">>;
22
+ sortOrder: z.ZodOptional<z.ZodNumber>;
23
+ executionOrder: z.ZodOptional<z.ZodNumber>;
24
+ subtasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ id: z.ZodString;
26
+ title: z.ZodString;
27
+ completed: z.ZodBoolean;
28
+ completedAt: z.ZodOptional<z.ZodNumber>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ completed: boolean;
31
+ title: string;
32
+ id: string;
33
+ completedAt?: number | undefined;
34
+ }, {
35
+ completed: boolean;
36
+ title: string;
37
+ id: string;
38
+ completedAt?: number | undefined;
39
+ }>, "many">>;
40
+ comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
41
+ id: z.ZodString;
42
+ userId: z.ZodString;
43
+ content: z.ZodString;
44
+ createdAt: z.ZodNumber;
45
+ }, "strip", z.ZodTypeAny, {
46
+ content: string;
47
+ createdAt: number;
48
+ userId: string;
49
+ id: string;
50
+ }, {
51
+ content: string;
52
+ createdAt: number;
53
+ userId: string;
54
+ id: string;
55
+ }>, "many">>;
56
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
+ id: z.ZodString;
58
+ type: z.ZodEnum<["call_script", "email_template", "research_plan", "framework", "checklist", "note", "file", "transcript"]>;
59
+ title: z.ZodString;
60
+ content: z.ZodString;
61
+ metadata: z.ZodOptional<z.ZodObject<{
62
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ id: z.ZodString;
64
+ text: z.ZodString;
65
+ completed: z.ZodBoolean;
66
+ }, "strip", z.ZodTypeAny, {
67
+ completed: boolean;
68
+ id: string;
69
+ text: string;
70
+ }, {
71
+ completed: boolean;
72
+ id: string;
73
+ text: string;
74
+ }>, "many">>;
75
+ fileUrl: z.ZodOptional<z.ZodString>;
76
+ fileName: z.ZodOptional<z.ZodString>;
77
+ fileSize: z.ZodOptional<z.ZodNumber>;
78
+ frameworkType: z.ZodOptional<z.ZodString>;
79
+ variables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
+ mappedQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
+ id: z.ZodString;
82
+ questionText: z.ZodString;
83
+ linkedQuestionId: z.ZodOptional<z.ZodString>;
84
+ linkedBeliefId: z.ZodOptional<z.ZodString>;
85
+ category: z.ZodOptional<z.ZodString>;
86
+ priority: z.ZodOptional<z.ZodEnum<["must_ask", "nice_to_have"]>>;
87
+ answered: z.ZodOptional<z.ZodBoolean>;
88
+ answerExcerpt: z.ZodOptional<z.ZodString>;
89
+ answerTimestamp: z.ZodOptional<z.ZodString>;
90
+ capturedAsInsight: z.ZodOptional<z.ZodBoolean>;
91
+ insightId: z.ZodOptional<ConvexIdSchema<"epistemicNodes">>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ id: string;
94
+ questionText: string;
95
+ answered?: boolean | undefined;
96
+ category?: string | undefined;
97
+ insightId?: (string & z.BRAND<"Id<epistemicNodes>">) | undefined;
98
+ priority?: "must_ask" | "nice_to_have" | undefined;
99
+ linkedBeliefId?: string | undefined;
100
+ linkedQuestionId?: string | undefined;
101
+ answerExcerpt?: string | undefined;
102
+ answerTimestamp?: string | undefined;
103
+ capturedAsInsight?: boolean | undefined;
104
+ }, {
105
+ id: string;
106
+ questionText: string;
107
+ answered?: boolean | undefined;
108
+ category?: string | undefined;
109
+ insightId?: string | undefined;
110
+ priority?: "must_ask" | "nice_to_have" | undefined;
111
+ linkedBeliefId?: string | undefined;
112
+ linkedQuestionId?: string | undefined;
113
+ answerExcerpt?: string | undefined;
114
+ answerTimestamp?: string | undefined;
115
+ capturedAsInsight?: boolean | undefined;
116
+ }>, "many">>;
117
+ linkedCallScriptId: z.ZodOptional<z.ZodString>;
118
+ editable: z.ZodOptional<z.ZodBoolean>;
119
+ executionTool: z.ZodOptional<z.ZodString>;
120
+ linkedQuestionId: z.ZodOptional<z.ZodString>;
121
+ linkedBeliefId: z.ZodOptional<z.ZodString>;
122
+ workflowStepId: z.ZodOptional<z.ZodString>;
123
+ workflowOrder: z.ZodOptional<z.ZodNumber>;
124
+ dependsOnStepIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
125
+ runCondition: z.ZodOptional<z.ZodString>;
126
+ continueOnFailure: z.ZodOptional<z.ZodBoolean>;
127
+ stepStatus: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>>;
128
+ stepRunCount: z.ZodOptional<z.ZodNumber>;
129
+ stepLastRunAt: z.ZodOptional<z.ZodNumber>;
130
+ stepOutputSummary: z.ZodOptional<z.ZodString>;
131
+ stepOutputData: z.ZodOptional<z.ZodString>;
132
+ stepFailureReason: z.ZodOptional<z.ZodString>;
133
+ researchResult: z.ZodOptional<z.ZodString>;
134
+ researchStatus: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
135
+ researchCompletedAt: z.ZodOptional<z.ZodNumber>;
136
+ researchCitations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
137
+ url: z.ZodString;
138
+ title: z.ZodOptional<z.ZodString>;
139
+ snippet: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ url: string;
142
+ title?: string | undefined;
143
+ snippet?: string | undefined;
144
+ }, {
145
+ url: string;
146
+ title?: string | undefined;
147
+ snippet?: string | undefined;
148
+ }>]>, "many">>;
149
+ generatedPersonas: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
150
+ personasGeneratedAt: z.ZodOptional<z.ZodNumber>;
151
+ expertSearchResults: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
152
+ expertSearchAt: z.ZodOptional<z.ZodNumber>;
153
+ capturedAsEvidence: z.ZodOptional<z.ZodBoolean>;
154
+ capturedInsightId: z.ZodOptional<z.ZodString>;
155
+ capturedAt: z.ZodOptional<z.ZodNumber>;
156
+ capturedImpact: z.ZodOptional<z.ZodNumber>;
157
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
158
+ tool: z.ZodString;
159
+ purpose: z.ZodString;
160
+ suggestedQuery: z.ZodString;
161
+ }, "strip", z.ZodTypeAny, {
162
+ tool: string;
163
+ purpose: string;
164
+ suggestedQuery: string;
165
+ }, {
166
+ tool: string;
167
+ purpose: string;
168
+ suggestedQuery: string;
169
+ }>, "many">>;
170
+ metrics: z.ZodOptional<z.ZodArray<z.ZodObject<{
171
+ metric: z.ZodString;
172
+ source: z.ZodString;
173
+ frequency: z.ZodString;
174
+ currentValue: z.ZodOptional<z.ZodString>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ source: string;
177
+ metric: string;
178
+ frequency: string;
179
+ currentValue?: string | undefined;
180
+ }, {
181
+ source: string;
182
+ metric: string;
183
+ frequency: string;
184
+ currentValue?: string | undefined;
185
+ }>, "many">>;
186
+ personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
187
+ role: z.ZodString;
188
+ title: z.ZodString;
189
+ company: z.ZodString;
190
+ rationale: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ company: string;
193
+ rationale: string;
194
+ title: string;
195
+ role: string;
196
+ }, {
197
+ company: string;
198
+ rationale: string;
199
+ title: string;
200
+ role: string;
201
+ }>, "many">>;
202
+ experts: z.ZodOptional<z.ZodArray<z.ZodObject<{
203
+ expertise: z.ZodString;
204
+ potentialSources: z.ZodArray<z.ZodString, "many">;
205
+ questions: z.ZodArray<z.ZodString, "many">;
206
+ searchStrategy: z.ZodOptional<z.ZodString>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ questions: string[];
209
+ expertise: string;
210
+ potentialSources: string[];
211
+ searchStrategy?: string | undefined;
212
+ }, {
213
+ questions: string[];
214
+ expertise: string;
215
+ potentialSources: string[];
216
+ searchStrategy?: string | undefined;
217
+ }>, "many">>;
218
+ factChecker: z.ZodOptional<z.ZodObject<{
219
+ claimsToVerify: z.ZodArray<z.ZodString, "many">;
220
+ sourcesToCheck: z.ZodArray<z.ZodString, "many">;
221
+ verificationCriteria: z.ZodArray<z.ZodString, "many">;
222
+ }, "strip", z.ZodTypeAny, {
223
+ claimsToVerify: string[];
224
+ sourcesToCheck: string[];
225
+ verificationCriteria: string[];
226
+ }, {
227
+ claimsToVerify: string[];
228
+ sourcesToCheck: string[];
229
+ verificationCriteria: string[];
230
+ }>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ items?: {
233
+ completed: boolean;
234
+ id: string;
235
+ text: string;
236
+ }[] | undefined;
237
+ linkedBeliefId?: string | undefined;
238
+ linkedQuestionId?: string | undefined;
239
+ fileUrl?: string | undefined;
240
+ fileName?: string | undefined;
241
+ fileSize?: number | undefined;
242
+ frameworkType?: string | undefined;
243
+ variables?: string[] | undefined;
244
+ mappedQuestions?: {
245
+ id: string;
246
+ questionText: string;
247
+ answered?: boolean | undefined;
248
+ category?: string | undefined;
249
+ insightId?: (string & z.BRAND<"Id<epistemicNodes>">) | undefined;
250
+ priority?: "must_ask" | "nice_to_have" | undefined;
251
+ linkedBeliefId?: string | undefined;
252
+ linkedQuestionId?: string | undefined;
253
+ answerExcerpt?: string | undefined;
254
+ answerTimestamp?: string | undefined;
255
+ capturedAsInsight?: boolean | undefined;
256
+ }[] | undefined;
257
+ linkedCallScriptId?: string | undefined;
258
+ editable?: boolean | undefined;
259
+ executionTool?: string | undefined;
260
+ workflowStepId?: string | undefined;
261
+ workflowOrder?: number | undefined;
262
+ dependsOnStepIds?: string[] | undefined;
263
+ runCondition?: string | undefined;
264
+ continueOnFailure?: boolean | undefined;
265
+ stepStatus?: "pending" | "failed" | "running" | "skipped" | "completed" | undefined;
266
+ stepRunCount?: number | undefined;
267
+ stepLastRunAt?: number | undefined;
268
+ stepOutputSummary?: string | undefined;
269
+ stepOutputData?: string | undefined;
270
+ stepFailureReason?: string | undefined;
271
+ researchResult?: string | undefined;
272
+ researchStatus?: "pending" | "failed" | "running" | "completed" | undefined;
273
+ researchCompletedAt?: number | undefined;
274
+ researchCitations?: (string | {
275
+ url: string;
276
+ title?: string | undefined;
277
+ snippet?: string | undefined;
278
+ })[] | undefined;
279
+ generatedPersonas?: any[] | undefined;
280
+ personasGeneratedAt?: number | undefined;
281
+ expertSearchResults?: any[] | undefined;
282
+ expertSearchAt?: number | undefined;
283
+ capturedAsEvidence?: boolean | undefined;
284
+ capturedInsightId?: string | undefined;
285
+ capturedAt?: number | undefined;
286
+ capturedImpact?: number | undefined;
287
+ tools?: {
288
+ tool: string;
289
+ purpose: string;
290
+ suggestedQuery: string;
291
+ }[] | undefined;
292
+ metrics?: {
293
+ source: string;
294
+ metric: string;
295
+ frequency: string;
296
+ currentValue?: string | undefined;
297
+ }[] | undefined;
298
+ personas?: {
299
+ company: string;
300
+ rationale: string;
301
+ title: string;
302
+ role: string;
303
+ }[] | undefined;
304
+ experts?: {
305
+ questions: string[];
306
+ expertise: string;
307
+ potentialSources: string[];
308
+ searchStrategy?: string | undefined;
309
+ }[] | undefined;
310
+ factChecker?: {
311
+ claimsToVerify: string[];
312
+ sourcesToCheck: string[];
313
+ verificationCriteria: string[];
314
+ } | undefined;
315
+ }, {
316
+ items?: {
317
+ completed: boolean;
318
+ id: string;
319
+ text: string;
320
+ }[] | undefined;
321
+ linkedBeliefId?: string | undefined;
322
+ linkedQuestionId?: string | undefined;
323
+ fileUrl?: string | undefined;
324
+ fileName?: string | undefined;
325
+ fileSize?: number | undefined;
326
+ frameworkType?: string | undefined;
327
+ variables?: string[] | undefined;
328
+ mappedQuestions?: {
329
+ id: string;
330
+ questionText: string;
331
+ answered?: boolean | undefined;
332
+ category?: string | undefined;
333
+ insightId?: string | undefined;
334
+ priority?: "must_ask" | "nice_to_have" | undefined;
335
+ linkedBeliefId?: string | undefined;
336
+ linkedQuestionId?: string | undefined;
337
+ answerExcerpt?: string | undefined;
338
+ answerTimestamp?: string | undefined;
339
+ capturedAsInsight?: boolean | undefined;
340
+ }[] | undefined;
341
+ linkedCallScriptId?: string | undefined;
342
+ editable?: boolean | undefined;
343
+ executionTool?: string | undefined;
344
+ workflowStepId?: string | undefined;
345
+ workflowOrder?: number | undefined;
346
+ dependsOnStepIds?: string[] | undefined;
347
+ runCondition?: string | undefined;
348
+ continueOnFailure?: boolean | undefined;
349
+ stepStatus?: "pending" | "failed" | "running" | "skipped" | "completed" | undefined;
350
+ stepRunCount?: number | undefined;
351
+ stepLastRunAt?: number | undefined;
352
+ stepOutputSummary?: string | undefined;
353
+ stepOutputData?: string | undefined;
354
+ stepFailureReason?: string | undefined;
355
+ researchResult?: string | undefined;
356
+ researchStatus?: "pending" | "failed" | "running" | "completed" | undefined;
357
+ researchCompletedAt?: number | undefined;
358
+ researchCitations?: (string | {
359
+ url: string;
360
+ title?: string | undefined;
361
+ snippet?: string | undefined;
362
+ })[] | undefined;
363
+ generatedPersonas?: any[] | undefined;
364
+ personasGeneratedAt?: number | undefined;
365
+ expertSearchResults?: any[] | undefined;
366
+ expertSearchAt?: number | undefined;
367
+ capturedAsEvidence?: boolean | undefined;
368
+ capturedInsightId?: string | undefined;
369
+ capturedAt?: number | undefined;
370
+ capturedImpact?: number | undefined;
371
+ tools?: {
372
+ tool: string;
373
+ purpose: string;
374
+ suggestedQuery: string;
375
+ }[] | undefined;
376
+ metrics?: {
377
+ source: string;
378
+ metric: string;
379
+ frequency: string;
380
+ currentValue?: string | undefined;
381
+ }[] | undefined;
382
+ personas?: {
383
+ company: string;
384
+ rationale: string;
385
+ title: string;
386
+ role: string;
387
+ }[] | undefined;
388
+ experts?: {
389
+ questions: string[];
390
+ expertise: string;
391
+ potentialSources: string[];
392
+ searchStrategy?: string | undefined;
393
+ }[] | undefined;
394
+ factChecker?: {
395
+ claimsToVerify: string[];
396
+ sourcesToCheck: string[];
397
+ verificationCriteria: string[];
398
+ } | undefined;
399
+ }>>;
400
+ capturedAsEvidence: z.ZodOptional<z.ZodBoolean>;
401
+ capturedInsightId: z.ZodOptional<ConvexIdSchema<"epistemicNodes">>;
402
+ capturedAt: z.ZodOptional<z.ZodNumber>;
403
+ createdBy: z.ZodString;
404
+ createdAt: z.ZodNumber;
405
+ }, "strip", z.ZodTypeAny, {
406
+ type: "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file" | "transcript";
407
+ content: string;
408
+ createdAt: number;
409
+ createdBy: string;
410
+ title: string;
411
+ id: string;
412
+ metadata?: {
413
+ items?: {
414
+ completed: boolean;
415
+ id: string;
416
+ text: string;
417
+ }[] | undefined;
418
+ linkedBeliefId?: string | undefined;
419
+ linkedQuestionId?: string | undefined;
420
+ fileUrl?: string | undefined;
421
+ fileName?: string | undefined;
422
+ fileSize?: number | undefined;
423
+ frameworkType?: string | undefined;
424
+ variables?: string[] | undefined;
425
+ mappedQuestions?: {
426
+ id: string;
427
+ questionText: string;
428
+ answered?: boolean | undefined;
429
+ category?: string | undefined;
430
+ insightId?: (string & z.BRAND<"Id<epistemicNodes>">) | undefined;
431
+ priority?: "must_ask" | "nice_to_have" | undefined;
432
+ linkedBeliefId?: string | undefined;
433
+ linkedQuestionId?: string | undefined;
434
+ answerExcerpt?: string | undefined;
435
+ answerTimestamp?: string | undefined;
436
+ capturedAsInsight?: boolean | undefined;
437
+ }[] | undefined;
438
+ linkedCallScriptId?: string | undefined;
439
+ editable?: boolean | undefined;
440
+ executionTool?: string | undefined;
441
+ workflowStepId?: string | undefined;
442
+ workflowOrder?: number | undefined;
443
+ dependsOnStepIds?: string[] | undefined;
444
+ runCondition?: string | undefined;
445
+ continueOnFailure?: boolean | undefined;
446
+ stepStatus?: "pending" | "failed" | "running" | "skipped" | "completed" | undefined;
447
+ stepRunCount?: number | undefined;
448
+ stepLastRunAt?: number | undefined;
449
+ stepOutputSummary?: string | undefined;
450
+ stepOutputData?: string | undefined;
451
+ stepFailureReason?: string | undefined;
452
+ researchResult?: string | undefined;
453
+ researchStatus?: "pending" | "failed" | "running" | "completed" | undefined;
454
+ researchCompletedAt?: number | undefined;
455
+ researchCitations?: (string | {
456
+ url: string;
457
+ title?: string | undefined;
458
+ snippet?: string | undefined;
459
+ })[] | undefined;
460
+ generatedPersonas?: any[] | undefined;
461
+ personasGeneratedAt?: number | undefined;
462
+ expertSearchResults?: any[] | undefined;
463
+ expertSearchAt?: number | undefined;
464
+ capturedAsEvidence?: boolean | undefined;
465
+ capturedInsightId?: string | undefined;
466
+ capturedAt?: number | undefined;
467
+ capturedImpact?: number | undefined;
468
+ tools?: {
469
+ tool: string;
470
+ purpose: string;
471
+ suggestedQuery: string;
472
+ }[] | undefined;
473
+ metrics?: {
474
+ source: string;
475
+ metric: string;
476
+ frequency: string;
477
+ currentValue?: string | undefined;
478
+ }[] | undefined;
479
+ personas?: {
480
+ company: string;
481
+ rationale: string;
482
+ title: string;
483
+ role: string;
484
+ }[] | undefined;
485
+ experts?: {
486
+ questions: string[];
487
+ expertise: string;
488
+ potentialSources: string[];
489
+ searchStrategy?: string | undefined;
490
+ }[] | undefined;
491
+ factChecker?: {
492
+ claimsToVerify: string[];
493
+ sourcesToCheck: string[];
494
+ verificationCriteria: string[];
495
+ } | undefined;
496
+ } | undefined;
497
+ capturedAsEvidence?: boolean | undefined;
498
+ capturedInsightId?: (string & z.BRAND<"Id<epistemicNodes>">) | undefined;
499
+ capturedAt?: number | undefined;
500
+ }, {
501
+ type: "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file" | "transcript";
502
+ content: string;
503
+ createdAt: number;
504
+ createdBy: string;
505
+ title: string;
506
+ id: string;
507
+ metadata?: {
508
+ items?: {
509
+ completed: boolean;
510
+ id: string;
511
+ text: string;
512
+ }[] | undefined;
513
+ linkedBeliefId?: string | undefined;
514
+ linkedQuestionId?: string | undefined;
515
+ fileUrl?: string | undefined;
516
+ fileName?: string | undefined;
517
+ fileSize?: number | undefined;
518
+ frameworkType?: string | undefined;
519
+ variables?: string[] | undefined;
520
+ mappedQuestions?: {
521
+ id: string;
522
+ questionText: string;
523
+ answered?: boolean | undefined;
524
+ category?: string | undefined;
525
+ insightId?: string | undefined;
526
+ priority?: "must_ask" | "nice_to_have" | undefined;
527
+ linkedBeliefId?: string | undefined;
528
+ linkedQuestionId?: string | undefined;
529
+ answerExcerpt?: string | undefined;
530
+ answerTimestamp?: string | undefined;
531
+ capturedAsInsight?: boolean | undefined;
532
+ }[] | undefined;
533
+ linkedCallScriptId?: string | undefined;
534
+ editable?: boolean | undefined;
535
+ executionTool?: string | undefined;
536
+ workflowStepId?: string | undefined;
537
+ workflowOrder?: number | undefined;
538
+ dependsOnStepIds?: string[] | undefined;
539
+ runCondition?: string | undefined;
540
+ continueOnFailure?: boolean | undefined;
541
+ stepStatus?: "pending" | "failed" | "running" | "skipped" | "completed" | undefined;
542
+ stepRunCount?: number | undefined;
543
+ stepLastRunAt?: number | undefined;
544
+ stepOutputSummary?: string | undefined;
545
+ stepOutputData?: string | undefined;
546
+ stepFailureReason?: string | undefined;
547
+ researchResult?: string | undefined;
548
+ researchStatus?: "pending" | "failed" | "running" | "completed" | undefined;
549
+ researchCompletedAt?: number | undefined;
550
+ researchCitations?: (string | {
551
+ url: string;
552
+ title?: string | undefined;
553
+ snippet?: string | undefined;
554
+ })[] | undefined;
555
+ generatedPersonas?: any[] | undefined;
556
+ personasGeneratedAt?: number | undefined;
557
+ expertSearchResults?: any[] | undefined;
558
+ expertSearchAt?: number | undefined;
559
+ capturedAsEvidence?: boolean | undefined;
560
+ capturedInsightId?: string | undefined;
561
+ capturedAt?: number | undefined;
562
+ capturedImpact?: number | undefined;
563
+ tools?: {
564
+ tool: string;
565
+ purpose: string;
566
+ suggestedQuery: string;
567
+ }[] | undefined;
568
+ metrics?: {
569
+ source: string;
570
+ metric: string;
571
+ frequency: string;
572
+ currentValue?: string | undefined;
573
+ }[] | undefined;
574
+ personas?: {
575
+ company: string;
576
+ rationale: string;
577
+ title: string;
578
+ role: string;
579
+ }[] | undefined;
580
+ experts?: {
581
+ questions: string[];
582
+ expertise: string;
583
+ potentialSources: string[];
584
+ searchStrategy?: string | undefined;
585
+ }[] | undefined;
586
+ factChecker?: {
587
+ claimsToVerify: string[];
588
+ sourcesToCheck: string[];
589
+ verificationCriteria: string[];
590
+ } | undefined;
591
+ } | undefined;
592
+ capturedAsEvidence?: boolean | undefined;
593
+ capturedInsightId?: string | undefined;
594
+ capturedAt?: number | undefined;
595
+ }>, "many">>;
596
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
597
+ executionType: z.ZodOptional<z.ZodEnum<["research_search", "find_news", "identify_experts", "market_research", "generate_primer", "verify_claim", "manual", "mcp_research", "mcp_web_search", "mcp_capture", "mcp_network_search"]>>;
598
+ executionStatus: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
599
+ executionResults: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>>;
600
+ executionStartedAt: z.ZodOptional<z.ZodNumber>;
601
+ executionCompletedAt: z.ZodOptional<z.ZodNumber>;
602
+ executionError: z.ZodOptional<z.ZodString>;
603
+ mcpDatasetIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
604
+ mcpSkillIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
605
+ mcpExecutionId: z.ZodOptional<z.ZodString>;
606
+ linkedChatId: z.ZodOptional<z.ZodString>;
607
+ createdBy: z.ZodString;
608
+ createdAt: z.ZodNumber;
609
+ updatedAt: z.ZodNumber;
610
+ completedAt: z.ZodOptional<z.ZodNumber>;
611
+ completedBy: z.ZodOptional<z.ZodString>;
612
+ }>;
613
+
614
+ export { tasks };