@lucern/contracts 0.3.0-alpha.3 → 0.3.0-alpha.5
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/component-host-boundary.contract.d.ts +41 -0
- package/dist/component-host-boundary.contract.js +54 -0
- package/dist/component-host-boundary.contract.js.map +1 -0
- package/dist/edge-policy-manifest-DpmTtjmm.d.ts +132 -0
- package/dist/function-registry/beliefs.d.ts +41 -41
- package/dist/function-registry/beliefs.js +274 -8
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +259 -8
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +13 -13
- package/dist/function-registry/context.js +259 -9
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +230 -5
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +230 -5
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +241 -6
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +33 -33
- package/dist/function-registry/evidence.js +274 -9
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +131 -53
- package/dist/function-registry/graph.js +346 -12
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +1 -1
- package/dist/function-registry/helpers.js +230 -5
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +230 -5
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +1 -1
- package/dist/function-registry/index.js +230 -5
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +9 -9
- package/dist/function-registry/judgments.js +242 -8
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +230 -5
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +17 -17
- package/dist/function-registry/lenses.js +253 -8
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +5 -5
- package/dist/function-registry/manifest.js +3 -1
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +45 -45
- package/dist/function-registry/ontologies.js +248 -11
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +13 -13
- package/dist/function-registry/pipeline.js +239 -8
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +49 -49
- package/dist/function-registry/questions.js +327 -13
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +230 -5
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +21 -21
- package/dist/function-registry/topics.js +244 -8
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +1 -1
- package/dist/function-registry/worktrees.d.ts +80 -41
- package/dist/function-registry/worktrees.js +364 -17
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/function-registry-input-audit.d.ts +13 -0
- package/dist/function-registry-input-audit.js +164 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +1 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +2 -2
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/graph-intelligence.contract.d.ts +506 -0
- package/dist/graph-intelligence.contract.js +595 -0
- package/dist/graph-intelligence.contract.js.map +1 -0
- package/dist/graph-types/index.d.ts +5 -1
- package/dist/graph-types/index.js +15 -4
- package/dist/graph-types/index.js.map +1 -1
- package/dist/{index-CV-0_VWJ.d.ts → index-O09U2xHk.d.ts} +5 -2
- package/dist/index.d.ts +21 -667
- package/dist/index.js +2139 -52
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +174 -0
- package/dist/infisical-runtime.contract.js +312 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.d.ts +2 -0
- package/dist/manifests/edge-policy-manifest.data.d.ts +27 -0
- package/dist/manifests/edge-policy-manifest.data.js +34 -0
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.js +65 -0
- package/dist/manifests/edge-policy-manifest.js.map +1 -0
- package/dist/manifests/infisical-runtime-manifest.d.ts +151 -0
- package/dist/manifests/infisical-runtime-manifest.js +311 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -0
- package/dist/manifests/invariant-manifest.d.ts +65 -0
- package/dist/manifests/invariant-manifest.js +18 -0
- package/dist/manifests/invariant-manifest.js.map +1 -0
- package/dist/manifests/invariants/ast-utils.d.ts +14 -0
- package/dist/manifests/invariants/ast-utils.js +54 -0
- package/dist/manifests/invariants/ast-utils.js.map +1 -0
- package/dist/manifests/invariants/index.d.ts +15 -0
- package/dist/manifests/invariants/index.js +183 -0
- package/dist/manifests/invariants/index.js.map +1 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +12 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +94 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +1 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +12 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +99 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +1 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +12 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +42 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -0
- package/dist/manifests/tenant-client-manifest.d.ts +303 -0
- package/dist/manifests/tenant-client-manifest.js +409 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -0
- package/dist/projections/check-convex-args-shape.d.ts +3 -0
- package/dist/projections/check-convex-args-shape.js +396 -0
- package/dist/projections/check-convex-args-shape.js.map +1 -0
- package/dist/projections/create-evidence.projection.d.ts +176 -0
- package/dist/projections/create-evidence.projection.js +128 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +345 -0
- package/dist/projections/index.js.map +1 -0
- package/dist/projections/list-beliefs.projection.d.ts +36 -0
- package/dist/projections/list-beliefs.projection.js +54 -0
- package/dist/projections/list-beliefs.projection.js.map +1 -0
- package/dist/projections/list-tasks.projection.d.ts +32 -0
- package/dist/projections/list-tasks.projection.js +52 -0
- package/dist/projections/list-tasks.projection.js.map +1 -0
- package/dist/projections/modulate-confidence.projection.d.ts +219 -0
- package/dist/projections/modulate-confidence.projection.js +148 -0
- package/dist/projections/modulate-confidence.projection.js.map +1 -0
- package/dist/projections/projection-dsl.d.ts +11 -0
- package/dist/projections/projection-dsl.js +8 -0
- package/dist/projections/projection-dsl.js.map +1 -0
- package/dist/schemas/enums.d.ts +5 -2
- package/dist/schemas/enums.js +5 -2
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +9 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +940 -910
- package/dist/schemas/manifest.js +8 -3
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/identity/platform.d.ts +10 -10
- package/dist/schemas/tables/kernel/epistemic.d.ts +6 -6
- package/dist/schemas/tables/kernel/infra.d.ts +4 -4
- package/dist/schemas/tables/kernel/intelligence.d.ts +10 -10
- package/dist/schemas/tables/kernel/lens.d.ts +4 -4
- package/dist/schemas/tables/kernel/platform.d.ts +12 -12
- package/dist/schemas/tables/kernel/spine.d.ts +3 -3
- package/dist/schemas/tables/kernel/spine.js +5 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +42 -42
- package/dist/schemas/tables/kernel/topic.js +4 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +62 -62
- package/dist/schemas/tables/mc/identity.d.ts +2 -2
- package/dist/schemas/tables/mc/pack.d.ts +20 -20
- package/dist/schemas/tables/mc/registry.d.ts +4 -4
- package/dist/schemas/tables/mc/workspace.d.ts +9 -3
- package/dist/schemas/tables/mc/workspace.js +3 -1
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +1 -1
- package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-Ng8ULxjr.d.ts} +1 -1
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +227 -4
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1101 -0
- package/dist/tenant-bootstrap-seed.contract.js +653 -0
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
- package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
- package/dist/tenant-bootstrap-seed.defaults.js +303 -0
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
- package/dist/tenant-client.contract.d.ts +69 -5
- package/dist/tenant-client.contract.js +65 -4
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-CYXVPN4K.d.ts} +8 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +228 -5
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +9 -1
|
@@ -62,16 +62,16 @@ declare const worktrees: TableContract<{
|
|
|
62
62
|
answerConfidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
63
63
|
linkedQuestionId: z.ZodOptional<z.ZodString>;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
status: "answered" | "
|
|
65
|
+
status: "answered" | "open" | "forked";
|
|
66
66
|
question: string;
|
|
67
|
-
answer?: string | undefined;
|
|
68
67
|
linkedQuestionId?: string | undefined;
|
|
68
|
+
answer?: string | undefined;
|
|
69
69
|
answerConfidence?: "high" | "medium" | "low" | undefined;
|
|
70
70
|
}, {
|
|
71
|
-
status: "answered" | "
|
|
71
|
+
status: "answered" | "open" | "forked";
|
|
72
72
|
question: string;
|
|
73
|
-
answer?: string | undefined;
|
|
74
73
|
linkedQuestionId?: string | undefined;
|
|
74
|
+
answer?: string | undefined;
|
|
75
75
|
answerConfidence?: "high" | "medium" | "low" | undefined;
|
|
76
76
|
}>, "many">>;
|
|
77
77
|
evidenceSignals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -82,13 +82,13 @@ declare const worktrees: TableContract<{
|
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
83
|
signal: string;
|
|
84
84
|
collected: boolean;
|
|
85
|
-
notes?: string | undefined;
|
|
86
85
|
progress?: string | undefined;
|
|
86
|
+
notes?: string | undefined;
|
|
87
87
|
}, {
|
|
88
88
|
signal: string;
|
|
89
89
|
collected: boolean;
|
|
90
|
-
notes?: string | undefined;
|
|
91
90
|
progress?: string | undefined;
|
|
91
|
+
notes?: string | undefined;
|
|
92
92
|
}>, "many">>;
|
|
93
93
|
decisionGate: z.ZodOptional<z.ZodObject<{
|
|
94
94
|
goCriteria: z.ZodArray<z.ZodString, "many">;
|
|
@@ -101,15 +101,15 @@ declare const worktrees: TableContract<{
|
|
|
101
101
|
goCriteria: string[];
|
|
102
102
|
noGoSignals: string[];
|
|
103
103
|
verdict?: "pending" | "go" | "no_go" | "pivot" | undefined;
|
|
104
|
-
decidedAt?: number | undefined;
|
|
105
104
|
verdictRationale?: string | undefined;
|
|
105
|
+
decidedAt?: number | undefined;
|
|
106
106
|
decidedBy?: string | undefined;
|
|
107
107
|
}, {
|
|
108
108
|
goCriteria: string[];
|
|
109
109
|
noGoSignals: string[];
|
|
110
110
|
verdict?: "pending" | "go" | "no_go" | "pivot" | undefined;
|
|
111
|
-
decidedAt?: number | undefined;
|
|
112
111
|
verdictRationale?: string | undefined;
|
|
112
|
+
decidedAt?: number | undefined;
|
|
113
113
|
decidedBy?: string | undefined;
|
|
114
114
|
}>>;
|
|
115
115
|
beliefRefinement: z.ZodOptional<z.ZodObject<{
|
|
@@ -226,12 +226,12 @@ declare const worktrees: TableContract<{
|
|
|
226
226
|
confidenceChange: z.ZodNumber;
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
228
|
summary: string;
|
|
229
|
-
verdict: "
|
|
229
|
+
verdict: "forked" | "validated" | "invalidated" | "inconclusive";
|
|
230
230
|
whatChanged: string;
|
|
231
231
|
confidenceChange: number;
|
|
232
232
|
}, {
|
|
233
233
|
summary: string;
|
|
234
|
-
verdict: "
|
|
234
|
+
verdict: "forked" | "validated" | "invalidated" | "inconclusive";
|
|
235
235
|
whatChanged: string;
|
|
236
236
|
confidenceChange: number;
|
|
237
237
|
}>>;
|
|
@@ -279,19 +279,19 @@ declare const worktrees: TableContract<{
|
|
|
279
279
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
280
280
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
281
281
|
}, "strip", z.ZodTypeAny, {
|
|
282
|
-
edgeType: string;
|
|
283
|
-
targetId: string;
|
|
284
282
|
sourceId: string;
|
|
285
|
-
|
|
283
|
+
targetId: string;
|
|
284
|
+
edgeType: string;
|
|
286
285
|
weight?: number | undefined;
|
|
287
286
|
edgeId?: string | undefined;
|
|
287
|
+
createdAt?: number | undefined;
|
|
288
288
|
}, {
|
|
289
|
-
edgeType: string;
|
|
290
|
-
targetId: string;
|
|
291
289
|
sourceId: string;
|
|
292
|
-
|
|
290
|
+
targetId: string;
|
|
291
|
+
edgeType: string;
|
|
293
292
|
weight?: number | undefined;
|
|
294
293
|
edgeId?: string | undefined;
|
|
294
|
+
createdAt?: number | undefined;
|
|
295
295
|
}>, "many">;
|
|
296
296
|
relatedBeliefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
297
297
|
id: z.ZodString;
|
|
@@ -300,13 +300,13 @@ declare const worktrees: TableContract<{
|
|
|
300
300
|
confidenceScore: z.ZodOptional<z.ZodNumber>;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
302
|
id: string;
|
|
303
|
-
confidence?: string | undefined;
|
|
304
303
|
text?: string | undefined;
|
|
304
|
+
confidence?: string | undefined;
|
|
305
305
|
confidenceScore?: number | undefined;
|
|
306
306
|
}, {
|
|
307
307
|
id: string;
|
|
308
|
-
confidence?: string | undefined;
|
|
309
308
|
text?: string | undefined;
|
|
309
|
+
confidence?: string | undefined;
|
|
310
310
|
confidenceScore?: number | undefined;
|
|
311
311
|
}>, "many">>;
|
|
312
312
|
questions: z.ZodArray<z.ZodObject<{
|
|
@@ -324,8 +324,8 @@ declare const worktrees: TableContract<{
|
|
|
324
324
|
id: string;
|
|
325
325
|
text: string;
|
|
326
326
|
evidenceCount: number;
|
|
327
|
-
answer?: string | undefined;
|
|
328
327
|
priority?: string | undefined;
|
|
328
|
+
answer?: string | undefined;
|
|
329
329
|
answerStatus?: string | undefined;
|
|
330
330
|
answeredBy?: string | undefined;
|
|
331
331
|
answeredAt?: number | undefined;
|
|
@@ -334,8 +334,8 @@ declare const worktrees: TableContract<{
|
|
|
334
334
|
id: string;
|
|
335
335
|
text: string;
|
|
336
336
|
evidenceCount: number;
|
|
337
|
-
answer?: string | undefined;
|
|
338
337
|
priority?: string | undefined;
|
|
338
|
+
answer?: string | undefined;
|
|
339
339
|
answerStatus?: string | undefined;
|
|
340
340
|
answeredBy?: string | undefined;
|
|
341
341
|
answeredAt?: number | undefined;
|
|
@@ -349,15 +349,15 @@ declare const worktrees: TableContract<{
|
|
|
349
349
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
351
|
id: string;
|
|
352
|
-
verified: boolean;
|
|
353
352
|
text: string;
|
|
353
|
+
verified: boolean;
|
|
354
354
|
createdAt?: number | undefined;
|
|
355
355
|
sourceType?: string | undefined;
|
|
356
356
|
verificationStatus?: string | undefined;
|
|
357
357
|
}, {
|
|
358
358
|
id: string;
|
|
359
|
-
verified: boolean;
|
|
360
359
|
text: string;
|
|
360
|
+
verified: boolean;
|
|
361
361
|
createdAt?: number | undefined;
|
|
362
362
|
sourceType?: string | undefined;
|
|
363
363
|
verificationStatus?: string | undefined;
|
|
@@ -391,65 +391,65 @@ declare const worktrees: TableContract<{
|
|
|
391
391
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
393
393
|
timestamp?: number | undefined;
|
|
394
|
-
confidence?: string | undefined;
|
|
395
394
|
trigger?: string | undefined;
|
|
395
|
+
confidence?: string | undefined;
|
|
396
396
|
}, {
|
|
397
397
|
timestamp?: number | undefined;
|
|
398
|
-
confidence?: string | undefined;
|
|
399
398
|
trigger?: string | undefined;
|
|
399
|
+
confidence?: string | undefined;
|
|
400
400
|
}>, "many">;
|
|
401
401
|
}, "strip", z.ZodTypeAny, {
|
|
402
402
|
beliefId: string;
|
|
403
403
|
recentChanges: {
|
|
404
404
|
timestamp?: number | undefined;
|
|
405
|
-
confidence?: string | undefined;
|
|
406
405
|
trigger?: string | undefined;
|
|
406
|
+
confidence?: string | undefined;
|
|
407
407
|
}[];
|
|
408
408
|
}, {
|
|
409
409
|
beliefId: string;
|
|
410
410
|
recentChanges: {
|
|
411
411
|
timestamp?: number | undefined;
|
|
412
|
-
confidence?: string | undefined;
|
|
413
412
|
trigger?: string | undefined;
|
|
413
|
+
confidence?: string | undefined;
|
|
414
414
|
}[];
|
|
415
415
|
}>, "many">>;
|
|
416
416
|
}, "strip", z.ZodTypeAny, {
|
|
417
417
|
evidence: {
|
|
418
418
|
id: string;
|
|
419
|
-
verified: boolean;
|
|
420
419
|
text: string;
|
|
420
|
+
verified: boolean;
|
|
421
421
|
createdAt?: number | undefined;
|
|
422
422
|
sourceType?: string | undefined;
|
|
423
423
|
verificationStatus?: string | undefined;
|
|
424
424
|
}[];
|
|
425
425
|
worktreeId: string & z.BRAND<"Id<worktrees>">;
|
|
426
|
-
outcome: {
|
|
427
|
-
summary: string;
|
|
428
|
-
verdict: string;
|
|
429
|
-
startingConfidence: number;
|
|
430
|
-
endingConfidence: number;
|
|
431
|
-
confidenceChange: number;
|
|
432
|
-
};
|
|
433
426
|
questions: {
|
|
434
427
|
status: string;
|
|
435
428
|
id: string;
|
|
436
429
|
text: string;
|
|
437
430
|
evidenceCount: number;
|
|
438
|
-
answer?: string | undefined;
|
|
439
431
|
priority?: string | undefined;
|
|
432
|
+
answer?: string | undefined;
|
|
440
433
|
answerStatus?: string | undefined;
|
|
441
434
|
answeredBy?: string | undefined;
|
|
442
435
|
answeredAt?: number | undefined;
|
|
443
436
|
}[];
|
|
437
|
+
outcome: {
|
|
438
|
+
summary: string;
|
|
439
|
+
verdict: string;
|
|
440
|
+
startingConfidence: number;
|
|
441
|
+
endingConfidence: number;
|
|
442
|
+
confidenceChange: number;
|
|
443
|
+
};
|
|
444
444
|
capturedAt: number;
|
|
445
445
|
capturedBy: string;
|
|
446
446
|
clusterEdges: {
|
|
447
|
-
edgeType: string;
|
|
448
|
-
targetId: string;
|
|
449
447
|
sourceId: string;
|
|
450
|
-
|
|
448
|
+
targetId: string;
|
|
449
|
+
edgeType: string;
|
|
451
450
|
weight?: number | undefined;
|
|
452
451
|
edgeId?: string | undefined;
|
|
452
|
+
createdAt?: number | undefined;
|
|
453
453
|
}[];
|
|
454
454
|
topicId?: string | undefined;
|
|
455
455
|
primaryBelief?: {
|
|
@@ -465,8 +465,8 @@ declare const worktrees: TableContract<{
|
|
|
465
465
|
} | undefined;
|
|
466
466
|
relatedBeliefs?: {
|
|
467
467
|
id: string;
|
|
468
|
-
confidence?: string | undefined;
|
|
469
468
|
text?: string | undefined;
|
|
469
|
+
confidence?: string | undefined;
|
|
470
470
|
confidenceScore?: number | undefined;
|
|
471
471
|
}[] | undefined;
|
|
472
472
|
tasksCompleted?: number | undefined;
|
|
@@ -475,47 +475,47 @@ declare const worktrees: TableContract<{
|
|
|
475
475
|
beliefId: string;
|
|
476
476
|
recentChanges: {
|
|
477
477
|
timestamp?: number | undefined;
|
|
478
|
-
confidence?: string | undefined;
|
|
479
478
|
trigger?: string | undefined;
|
|
479
|
+
confidence?: string | undefined;
|
|
480
480
|
}[];
|
|
481
481
|
}[] | undefined;
|
|
482
482
|
}, {
|
|
483
483
|
evidence: {
|
|
484
484
|
id: string;
|
|
485
|
-
verified: boolean;
|
|
486
485
|
text: string;
|
|
486
|
+
verified: boolean;
|
|
487
487
|
createdAt?: number | undefined;
|
|
488
488
|
sourceType?: string | undefined;
|
|
489
489
|
verificationStatus?: string | undefined;
|
|
490
490
|
}[];
|
|
491
491
|
worktreeId: string;
|
|
492
|
-
outcome: {
|
|
493
|
-
summary: string;
|
|
494
|
-
verdict: string;
|
|
495
|
-
startingConfidence: number;
|
|
496
|
-
endingConfidence: number;
|
|
497
|
-
confidenceChange: number;
|
|
498
|
-
};
|
|
499
492
|
questions: {
|
|
500
493
|
status: string;
|
|
501
494
|
id: string;
|
|
502
495
|
text: string;
|
|
503
496
|
evidenceCount: number;
|
|
504
|
-
answer?: string | undefined;
|
|
505
497
|
priority?: string | undefined;
|
|
498
|
+
answer?: string | undefined;
|
|
506
499
|
answerStatus?: string | undefined;
|
|
507
500
|
answeredBy?: string | undefined;
|
|
508
501
|
answeredAt?: number | undefined;
|
|
509
502
|
}[];
|
|
503
|
+
outcome: {
|
|
504
|
+
summary: string;
|
|
505
|
+
verdict: string;
|
|
506
|
+
startingConfidence: number;
|
|
507
|
+
endingConfidence: number;
|
|
508
|
+
confidenceChange: number;
|
|
509
|
+
};
|
|
510
510
|
capturedAt: number;
|
|
511
511
|
capturedBy: string;
|
|
512
512
|
clusterEdges: {
|
|
513
|
-
edgeType: string;
|
|
514
|
-
targetId: string;
|
|
515
513
|
sourceId: string;
|
|
516
|
-
|
|
514
|
+
targetId: string;
|
|
515
|
+
edgeType: string;
|
|
517
516
|
weight?: number | undefined;
|
|
518
517
|
edgeId?: string | undefined;
|
|
518
|
+
createdAt?: number | undefined;
|
|
519
519
|
}[];
|
|
520
520
|
topicId?: string | undefined;
|
|
521
521
|
primaryBelief?: {
|
|
@@ -531,8 +531,8 @@ declare const worktrees: TableContract<{
|
|
|
531
531
|
} | undefined;
|
|
532
532
|
relatedBeliefs?: {
|
|
533
533
|
id: string;
|
|
534
|
-
confidence?: string | undefined;
|
|
535
534
|
text?: string | undefined;
|
|
535
|
+
confidence?: string | undefined;
|
|
536
536
|
confidenceScore?: number | undefined;
|
|
537
537
|
}[] | undefined;
|
|
538
538
|
tasksCompleted?: number | undefined;
|
|
@@ -541,8 +541,8 @@ declare const worktrees: TableContract<{
|
|
|
541
541
|
beliefId: string;
|
|
542
542
|
recentChanges: {
|
|
543
543
|
timestamp?: number | undefined;
|
|
544
|
-
confidence?: string | undefined;
|
|
545
544
|
trigger?: string | undefined;
|
|
545
|
+
confidence?: string | undefined;
|
|
546
546
|
}[];
|
|
547
547
|
}[] | undefined;
|
|
548
548
|
}>>;
|
|
@@ -589,9 +589,9 @@ declare const worktrees: TableContract<{
|
|
|
589
589
|
}, "strip", z.ZodTypeAny, {
|
|
590
590
|
status: "ai_draft" | "user_draft" | "final";
|
|
591
591
|
content: string;
|
|
592
|
+
generatedAt?: number | undefined;
|
|
592
593
|
approvedAt?: number | undefined;
|
|
593
594
|
memoContent?: string | undefined;
|
|
594
|
-
generatedAt?: number | undefined;
|
|
595
595
|
approvedBy?: string | undefined;
|
|
596
596
|
generationMetadata?: {
|
|
597
597
|
promptName: string;
|
|
@@ -601,9 +601,9 @@ declare const worktrees: TableContract<{
|
|
|
601
601
|
}, {
|
|
602
602
|
status: "ai_draft" | "user_draft" | "final";
|
|
603
603
|
content: string;
|
|
604
|
+
generatedAt?: number | undefined;
|
|
604
605
|
approvedAt?: number | undefined;
|
|
605
606
|
memoContent?: string | undefined;
|
|
606
|
-
generatedAt?: number | undefined;
|
|
607
607
|
approvedBy?: string | undefined;
|
|
608
608
|
generationMetadata?: {
|
|
609
609
|
promptName: string;
|
|
@@ -629,18 +629,18 @@ declare const worktrees: TableContract<{
|
|
|
629
629
|
linkedQuestionId: z.ZodOptional<z.ZodString>;
|
|
630
630
|
linkedBeliefId: z.ZodOptional<z.ZodString>;
|
|
631
631
|
}, "strip", z.ZodTypeAny, {
|
|
632
|
+
id: string;
|
|
632
633
|
content: string;
|
|
633
634
|
createdAt: number;
|
|
634
635
|
createdBy: string;
|
|
635
|
-
id: string;
|
|
636
636
|
linkedBeliefId?: string | undefined;
|
|
637
637
|
linkedQuestionId?: string | undefined;
|
|
638
638
|
linkedTaskId?: string | undefined;
|
|
639
639
|
}, {
|
|
640
|
+
id: string;
|
|
640
641
|
content: string;
|
|
641
642
|
createdAt: number;
|
|
642
643
|
createdBy: string;
|
|
643
|
-
id: string;
|
|
644
644
|
linkedBeliefId?: string | undefined;
|
|
645
645
|
linkedQuestionId?: string | undefined;
|
|
646
646
|
linkedTaskId?: string | undefined;
|
|
@@ -723,14 +723,14 @@ declare const worktrees: TableContract<{
|
|
|
723
723
|
cascades: z.ZodNumber;
|
|
724
724
|
other: z.ZodNumber;
|
|
725
725
|
}, "strip", z.ZodTypeAny, {
|
|
726
|
+
dependencies: number;
|
|
726
727
|
other: number;
|
|
727
728
|
counterfactuals: number;
|
|
728
|
-
dependencies: number;
|
|
729
729
|
cascades: number;
|
|
730
730
|
}, {
|
|
731
|
+
dependencies: number;
|
|
731
732
|
other: number;
|
|
732
733
|
counterfactuals: number;
|
|
733
|
-
dependencies: number;
|
|
734
734
|
cascades: number;
|
|
735
735
|
}>>;
|
|
736
736
|
mappingCompletedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -741,9 +741,9 @@ declare const worktrees: TableContract<{
|
|
|
741
741
|
hasDependencies: boolean;
|
|
742
742
|
hasCascades: boolean;
|
|
743
743
|
conditionalsByType?: {
|
|
744
|
+
dependencies: number;
|
|
744
745
|
other: number;
|
|
745
746
|
counterfactuals: number;
|
|
746
|
-
dependencies: number;
|
|
747
747
|
cascades: number;
|
|
748
748
|
} | undefined;
|
|
749
749
|
mappingCompletedAt?: number | undefined;
|
|
@@ -754,9 +754,9 @@ declare const worktrees: TableContract<{
|
|
|
754
754
|
hasDependencies: boolean;
|
|
755
755
|
hasCascades: boolean;
|
|
756
756
|
conditionalsByType?: {
|
|
757
|
+
dependencies: number;
|
|
757
758
|
other: number;
|
|
758
759
|
counterfactuals: number;
|
|
759
|
-
dependencies: number;
|
|
760
760
|
cascades: number;
|
|
761
761
|
} | undefined;
|
|
762
762
|
mappingCompletedAt?: number | undefined;
|
|
@@ -128,15 +128,15 @@ declare const userSessions: TableContract<{
|
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
129
|
principalId: string;
|
|
130
130
|
principalType: "human" | "service" | "agent";
|
|
131
|
-
sessionId?: string | undefined;
|
|
132
131
|
reason?: string | undefined;
|
|
132
|
+
sessionId?: string | undefined;
|
|
133
133
|
authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
|
|
134
134
|
delegatedAt?: number | undefined;
|
|
135
135
|
}, {
|
|
136
136
|
principalId: string;
|
|
137
137
|
principalType: "human" | "service" | "agent";
|
|
138
|
-
sessionId?: string | undefined;
|
|
139
138
|
reason?: string | undefined;
|
|
139
|
+
sessionId?: string | undefined;
|
|
140
140
|
authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
|
|
141
141
|
delegatedAt?: number | undefined;
|
|
142
142
|
}>, "many">>;
|
|
@@ -135,46 +135,46 @@ declare const packVersions: TableContract<{
|
|
|
135
135
|
idempotent: z.ZodBoolean;
|
|
136
136
|
sideEffectLevel: z.ZodEnum<["none", "low", "high"]>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
readOnly: boolean;
|
|
139
138
|
idempotent: boolean;
|
|
139
|
+
readOnly: boolean;
|
|
140
140
|
sideEffectLevel: "high" | "low" | "none";
|
|
141
141
|
}, {
|
|
142
|
-
readOnly: boolean;
|
|
143
142
|
idempotent: boolean;
|
|
143
|
+
readOnly: boolean;
|
|
144
144
|
sideEffectLevel: "high" | "low" | "none";
|
|
145
145
|
}>>;
|
|
146
146
|
}, "strip", z.ZodTypeAny, {
|
|
147
147
|
toolName: string;
|
|
148
148
|
toolVersion: string;
|
|
149
149
|
description?: string | undefined;
|
|
150
|
+
surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
|
|
151
|
+
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
150
152
|
executionAdapter?: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed" | undefined;
|
|
151
153
|
parameterSchema?: Record<string, any> | undefined;
|
|
152
|
-
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
153
154
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
154
|
-
requiredAction?: "delete" | "read" | "admin" | "
|
|
155
|
-
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
155
|
+
requiredAction?: "delete" | "read" | "admin" | "create" | "mutate" | "summarize" | "export" | "grant" | "revoke" | undefined;
|
|
156
156
|
returnSchema?: Record<string, any> | undefined;
|
|
157
157
|
handlerRef?: string | undefined;
|
|
158
158
|
safetyMetadata?: {
|
|
159
|
-
readOnly: boolean;
|
|
160
159
|
idempotent: boolean;
|
|
160
|
+
readOnly: boolean;
|
|
161
161
|
sideEffectLevel: "high" | "low" | "none";
|
|
162
162
|
} | undefined;
|
|
163
163
|
}, {
|
|
164
164
|
toolName: string;
|
|
165
165
|
toolVersion: string;
|
|
166
166
|
description?: string | undefined;
|
|
167
|
+
surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
|
|
168
|
+
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
167
169
|
executionAdapter?: "convex_mutation" | "convex_action" | "http_callback" | "mcp_tool" | "sdk_invocation" | "external_observed" | undefined;
|
|
168
170
|
parameterSchema?: Record<string, any> | undefined;
|
|
169
|
-
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
170
171
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
171
|
-
requiredAction?: "delete" | "read" | "admin" | "
|
|
172
|
-
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
172
|
+
requiredAction?: "delete" | "read" | "admin" | "create" | "mutate" | "summarize" | "export" | "grant" | "revoke" | undefined;
|
|
173
173
|
returnSchema?: Record<string, any> | undefined;
|
|
174
174
|
handlerRef?: string | undefined;
|
|
175
175
|
safetyMetadata?: {
|
|
176
|
-
readOnly: boolean;
|
|
177
176
|
idempotent: boolean;
|
|
177
|
+
readOnly: boolean;
|
|
178
178
|
sideEffectLevel: "high" | "low" | "none";
|
|
179
179
|
} | undefined;
|
|
180
180
|
}>, "many">;
|
|
@@ -326,17 +326,17 @@ declare const packVersions: TableContract<{
|
|
|
326
326
|
promptRef: string;
|
|
327
327
|
required?: boolean | undefined;
|
|
328
328
|
version?: string | undefined;
|
|
329
|
+
phase?: string | undefined;
|
|
329
330
|
metadata?: any;
|
|
330
331
|
role?: string | undefined;
|
|
331
|
-
phase?: string | undefined;
|
|
332
332
|
}, {
|
|
333
333
|
key: string;
|
|
334
334
|
promptRef: string;
|
|
335
335
|
required?: boolean | undefined;
|
|
336
336
|
version?: string | undefined;
|
|
337
|
+
phase?: string | undefined;
|
|
337
338
|
metadata?: any;
|
|
338
339
|
role?: string | undefined;
|
|
339
|
-
phase?: string | undefined;
|
|
340
340
|
}>, "many">;
|
|
341
341
|
workflowTemplates: z.ZodArray<z.ZodObject<{
|
|
342
342
|
key: z.ZodString;
|
|
@@ -403,16 +403,16 @@ declare const packVersions: TableContract<{
|
|
|
403
403
|
key: string;
|
|
404
404
|
title: string;
|
|
405
405
|
description?: string | undefined;
|
|
406
|
+
phase?: string | undefined;
|
|
406
407
|
metadata?: any;
|
|
407
408
|
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
408
|
-
phase?: string | undefined;
|
|
409
409
|
}, {
|
|
410
410
|
key: string;
|
|
411
411
|
title: string;
|
|
412
412
|
description?: string | undefined;
|
|
413
|
+
phase?: string | undefined;
|
|
413
414
|
metadata?: any;
|
|
414
415
|
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
415
|
-
phase?: string | undefined;
|
|
416
416
|
}>, "many">;
|
|
417
417
|
questionTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
418
418
|
key: z.ZodString;
|
|
@@ -444,9 +444,9 @@ declare const packVersions: TableContract<{
|
|
|
444
444
|
promptRef: string;
|
|
445
445
|
required?: boolean | undefined;
|
|
446
446
|
version?: string | undefined;
|
|
447
|
+
phase?: string | undefined;
|
|
447
448
|
metadata?: any;
|
|
448
449
|
role?: string | undefined;
|
|
449
|
-
phase?: string | undefined;
|
|
450
450
|
}[];
|
|
451
451
|
workflowTemplates: {
|
|
452
452
|
name: string;
|
|
@@ -466,13 +466,14 @@ declare const packVersions: TableContract<{
|
|
|
466
466
|
key: string;
|
|
467
467
|
title: string;
|
|
468
468
|
description?: string | undefined;
|
|
469
|
+
phase?: string | undefined;
|
|
469
470
|
metadata?: any;
|
|
470
471
|
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
471
|
-
phase?: string | undefined;
|
|
472
472
|
}[];
|
|
473
473
|
lensKey: string;
|
|
474
474
|
description?: string | undefined;
|
|
475
475
|
metadata?: any;
|
|
476
|
+
filterCriteria?: any;
|
|
476
477
|
questionTemplates?: {
|
|
477
478
|
key: string;
|
|
478
479
|
text: string;
|
|
@@ -480,7 +481,6 @@ declare const packVersions: TableContract<{
|
|
|
480
481
|
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
481
482
|
linkedBeliefKey?: string | undefined;
|
|
482
483
|
}[] | undefined;
|
|
483
|
-
filterCriteria?: any;
|
|
484
484
|
topicTypeAffinity?: string[] | undefined;
|
|
485
485
|
}, {
|
|
486
486
|
name: string;
|
|
@@ -490,9 +490,9 @@ declare const packVersions: TableContract<{
|
|
|
490
490
|
promptRef: string;
|
|
491
491
|
required?: boolean | undefined;
|
|
492
492
|
version?: string | undefined;
|
|
493
|
+
phase?: string | undefined;
|
|
493
494
|
metadata?: any;
|
|
494
495
|
role?: string | undefined;
|
|
495
|
-
phase?: string | undefined;
|
|
496
496
|
}[];
|
|
497
497
|
workflowTemplates: {
|
|
498
498
|
name: string;
|
|
@@ -512,13 +512,14 @@ declare const packVersions: TableContract<{
|
|
|
512
512
|
key: string;
|
|
513
513
|
title: string;
|
|
514
514
|
description?: string | undefined;
|
|
515
|
+
phase?: string | undefined;
|
|
515
516
|
metadata?: any;
|
|
516
517
|
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
517
|
-
phase?: string | undefined;
|
|
518
518
|
}[];
|
|
519
519
|
lensKey: string;
|
|
520
520
|
description?: string | undefined;
|
|
521
521
|
metadata?: any;
|
|
522
|
+
filterCriteria?: any;
|
|
522
523
|
questionTemplates?: {
|
|
523
524
|
key: string;
|
|
524
525
|
text: string;
|
|
@@ -526,7 +527,6 @@ declare const packVersions: TableContract<{
|
|
|
526
527
|
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
527
528
|
linkedBeliefKey?: string | undefined;
|
|
528
529
|
}[] | undefined;
|
|
529
|
-
filterCriteria?: any;
|
|
530
530
|
topicTypeAffinity?: string[] | undefined;
|
|
531
531
|
}>, "many">>;
|
|
532
532
|
configSnapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -93,12 +93,12 @@ declare const toolCatalog: TableContract<{
|
|
|
93
93
|
idempotent: z.ZodBoolean;
|
|
94
94
|
sideEffectLevel: z.ZodEnum<["none", "low", "high"]>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
readOnly: boolean;
|
|
97
96
|
idempotent: boolean;
|
|
97
|
+
readOnly: boolean;
|
|
98
98
|
sideEffectLevel: "high" | "low" | "none";
|
|
99
99
|
}, {
|
|
100
|
-
readOnly: boolean;
|
|
101
100
|
idempotent: boolean;
|
|
101
|
+
readOnly: boolean;
|
|
102
102
|
sideEffectLevel: "high" | "low" | "none";
|
|
103
103
|
}>>;
|
|
104
104
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -122,12 +122,12 @@ declare const toolRegistryEntries: TableContract<{
|
|
|
122
122
|
idempotent: z.ZodBoolean;
|
|
123
123
|
sideEffectLevel: z.ZodEnum<["none", "low", "high"]>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
readOnly: boolean;
|
|
126
125
|
idempotent: boolean;
|
|
126
|
+
readOnly: boolean;
|
|
127
127
|
sideEffectLevel: "high" | "low" | "none";
|
|
128
128
|
}, {
|
|
129
|
-
readOnly: boolean;
|
|
130
129
|
idempotent: boolean;
|
|
130
|
+
readOnly: boolean;
|
|
131
131
|
sideEffectLevel: "high" | "low" | "none";
|
|
132
132
|
}>;
|
|
133
133
|
exampleInvocations: z.ZodArray<z.ZodObject<{
|
|
@@ -11,13 +11,19 @@ declare const workspaces: TableContract<{
|
|
|
11
11
|
defaultProjectVisibility: z.ZodOptional<z.ZodEnum<["private", "team", "firm", "external", "public"]>>;
|
|
12
12
|
deployments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13
13
|
url: z.ZodString;
|
|
14
|
-
|
|
14
|
+
target: z.ZodOptional<z.ZodEnum<["kernelDeployment", "appDeployment"]>>;
|
|
15
|
+
encryptedDeployKey: z.ZodOptional<z.ZodString>;
|
|
16
|
+
credentialRef: z.ZodOptional<z.ZodString>;
|
|
15
17
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
encryptedDeployKey: string;
|
|
17
18
|
url: string;
|
|
19
|
+
credentialRef?: string | undefined;
|
|
20
|
+
target?: "kernelDeployment" | "appDeployment" | undefined;
|
|
21
|
+
encryptedDeployKey?: string | undefined;
|
|
18
22
|
}, {
|
|
19
|
-
encryptedDeployKey: string;
|
|
20
23
|
url: string;
|
|
24
|
+
credentialRef?: string | undefined;
|
|
25
|
+
target?: "kernelDeployment" | "appDeployment" | undefined;
|
|
26
|
+
encryptedDeployKey?: string | undefined;
|
|
21
27
|
}>>>;
|
|
22
28
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
23
29
|
createdBy: z.ZodOptional<z.ZodString>;
|
|
@@ -32,7 +32,9 @@ var workspaces = defineTable({
|
|
|
32
32
|
"defaultProjectVisibility": z.enum(["private", "team", "firm", "external", "public"]).optional(),
|
|
33
33
|
"deployments": z.record(z.object({
|
|
34
34
|
"url": z.string(),
|
|
35
|
-
"
|
|
35
|
+
"target": z.enum(["kernelDeployment", "appDeployment"]).optional(),
|
|
36
|
+
"encryptedDeployKey": z.string().optional(),
|
|
37
|
+
"credentialRef": z.string().optional()
|
|
36
38
|
})).optional(),
|
|
37
39
|
"metadata": z.record(z.any()).optional(),
|
|
38
40
|
"createdBy": z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/dsl/defineTable.ts","../../../../src/dsl/idOf.ts","../../../../src/schemas/tables/mc/workspace.ts"],"names":["z"],"mappings":";;;;;AAwCO,SAAS,YACd,IAAA,EACkB;AAClB,EAAA,OAAO,IAAA;AACT;AC1CO,IAAM,eAAA,mBAAkB,MAAA,CAAO,GAAA,CAAI,gCAAgC,CAAA;AASnE,SAAS,KAAuB,KAAA,EAA6B;AAClE,EAAA,MAAM,MAAA,GAAS,CAAA,CAAE,MAAA,EAAO,CAAE,KAAA,EAAkB;AAC5C,EAAA,MAAA,CAAO,cAAA,CAAe,QAAQ,eAAA,EAAiB;AAAA,IAC7C,YAAA,EAAc,KAAA;AAAA,IACd,UAAA,EAAY,KAAA;AAAA,IACZ,KAAA,EAAO,KAAA;AAAA,IACP,QAAA,EAAU;AAAA,GACX,CAAA;AACD,EAAA,OAAO,MAAA;AACT;;;ACVO,IAAM,aAAa,WAAA,CAAY;AAAA,EACpC,IAAA,EAAM,YAAA;AAAA,EACN,SAAA,EAAW,IAAA;AAAA,EACX,QAAA,EAAU,WAAA;AAAA,EACV,KAAA,EAAOA,EAAE,MAAA,CAAO;AAAA,IACd,UAAA,EAAY,KAAK,SAAS,CAAA;AAAA,IAC1B,KAAA,EAAOA,EAAE,MAAA,EAAO;AAAA,IAChB,MAAA,EAAQA,EAAE,MAAA,EAAO;AAAA,IACjB,MAAA,EAAQA,EAAE,MAAA,EAAO;AAAA,IACjB,UAAUA,CAAAA,CAAE,IAAA,CAAK,CAAC,QAAA,EAAU,UAAU,CAAC,CAAA;AAAA,IACvC,0BAAA,EAA4BA,CAAAA,CAAE,IAAA,CAAK,CAAC,SAAA,EAAW,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,QAAQ,CAAC,CAAA,CAAE,QAAA,EAAS;AAAA,IAC/F,aAAA,EAAeA,CAAAA,CAAE,MAAA,CAAOA,CAAAA,CAAE,MAAA,CAAO;AAAA,MACjC,KAAA,EAAOA,EAAE,MAAA,EAAO;AAAA,MAChB,oBAAA,EAAsBA,
|
|
1
|
+
{"version":3,"sources":["../../../../src/dsl/defineTable.ts","../../../../src/dsl/idOf.ts","../../../../src/schemas/tables/mc/workspace.ts"],"names":["z"],"mappings":";;;;;AAwCO,SAAS,YACd,IAAA,EACkB;AAClB,EAAA,OAAO,IAAA;AACT;AC1CO,IAAM,eAAA,mBAAkB,MAAA,CAAO,GAAA,CAAI,gCAAgC,CAAA;AASnE,SAAS,KAAuB,KAAA,EAA6B;AAClE,EAAA,MAAM,MAAA,GAAS,CAAA,CAAE,MAAA,EAAO,CAAE,KAAA,EAAkB;AAC5C,EAAA,MAAA,CAAO,cAAA,CAAe,QAAQ,eAAA,EAAiB;AAAA,IAC7C,YAAA,EAAc,KAAA;AAAA,IACd,UAAA,EAAY,KAAA;AAAA,IACZ,KAAA,EAAO,KAAA;AAAA,IACP,QAAA,EAAU;AAAA,GACX,CAAA;AACD,EAAA,OAAO,MAAA;AACT;;;ACVO,IAAM,aAAa,WAAA,CAAY;AAAA,EACpC,IAAA,EAAM,YAAA;AAAA,EACN,SAAA,EAAW,IAAA;AAAA,EACX,QAAA,EAAU,WAAA;AAAA,EACV,KAAA,EAAOA,EAAE,MAAA,CAAO;AAAA,IACd,UAAA,EAAY,KAAK,SAAS,CAAA;AAAA,IAC1B,KAAA,EAAOA,EAAE,MAAA,EAAO;AAAA,IAChB,MAAA,EAAQA,EAAE,MAAA,EAAO;AAAA,IACjB,MAAA,EAAQA,EAAE,MAAA,EAAO;AAAA,IACjB,UAAUA,CAAAA,CAAE,IAAA,CAAK,CAAC,QAAA,EAAU,UAAU,CAAC,CAAA;AAAA,IACvC,0BAAA,EAA4BA,CAAAA,CAAE,IAAA,CAAK,CAAC,SAAA,EAAW,MAAA,EAAQ,MAAA,EAAQ,UAAA,EAAY,QAAQ,CAAC,CAAA,CAAE,QAAA,EAAS;AAAA,IAC/F,aAAA,EAAeA,CAAAA,CAAE,MAAA,CAAOA,CAAAA,CAAE,MAAA,CAAO;AAAA,MACjC,KAAA,EAAOA,EAAE,MAAA,EAAO;AAAA,MAChB,QAAA,EAAUA,EAAE,IAAA,CAAK,CAAC,oBAAoB,eAAe,CAAC,EAAE,QAAA,EAAS;AAAA,MACjE,oBAAA,EAAsBA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,MAC1C,eAAA,EAAiBA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA;AAAS,KACtC,CAAC,CAAA,CAAE,QAAA,EAAS;AAAA,IACX,YAAYA,CAAAA,CAAE,MAAA,CAAOA,EAAE,GAAA,EAAK,EAAE,QAAA,EAAS;AAAA,IACvC,WAAA,EAAaA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,IACjC,WAAA,EAAaA,EAAE,MAAA,EAAO;AAAA,IACtB,WAAA,EAAaA,EAAE,MAAA;AAAO,GACvB,CAAA;AAAA,EACD,OAAA,EAAS;AAAA,IACL,EAAE,MAAM,OAAA,EAAS,IAAA,EAAM,eAAe,OAAA,EAAS,CAAC,UAAU,CAAA,EAAE;AAAA,IAC5D,EAAE,MAAM,OAAA,EAAS,IAAA,EAAM,mBAAmB,OAAA,EAAS,CAAC,UAAA,EAAY,KAAK,CAAA,EAAE;AAAA,IACvE,EAAE,MAAM,OAAA,EAAS,IAAA,EAAM,oBAAoB,OAAA,EAAS,CAAC,UAAA,EAAY,MAAM,CAAA,EAAE;AAAA,IACzE,EAAE,MAAM,OAAA,EAAS,IAAA,EAAM,aAAa,OAAA,EAAS,CAAC,QAAQ,CAAA;AAAE;AAE9D,CAAC","file":"workspace.js","sourcesContent":["import type { ZodObject, ZodRawShape } from \"zod\";\n\nexport type TableComponent = \"mc\" | \"kernel\" | \"identity\" | \"developer-pack\";\n\nexport type TableIndex =\n | {\n kind: \"index\";\n name: string;\n columns: readonly string[];\n }\n | {\n kind: \"search\";\n name: string;\n searchField: string;\n filterFields?: readonly string[];\n }\n | {\n kind: \"vector\";\n name: string;\n vectorField: string;\n dimensions: number;\n filterFields?: readonly string[];\n };\n\nexport type TableDeprecation = {\n since: string;\n reason: string;\n replacement?: string;\n};\n\nexport type TableContract<S extends ZodRawShape = ZodRawShape> = {\n name: string;\n component: TableComponent;\n category: string;\n shape: ZodObject<S>;\n indices: readonly TableIndex[];\n deprecated?: TableDeprecation;\n invariants?: readonly string[];\n};\n\nexport function defineTable<S extends ZodRawShape>(\n spec: TableContract<S>\n): TableContract<S> {\n return spec;\n}\n","import { z } from \"zod\";\n\nexport const CONVEX_ID_TABLE = Symbol.for(\"lucern.contracts.convexIdTable\");\n\nexport type ConvexIdSchema<T extends string> = z.ZodBranded<\n z.ZodString,\n `Id<${T}>`\n> & {\n readonly [CONVEX_ID_TABLE]: T;\n};\n\nexport function idOf<T extends string>(table: T): ConvexIdSchema<T> {\n const schema = z.string().brand<`Id<${T}>`>();\n Object.defineProperty(schema, CONVEX_ID_TABLE, {\n configurable: false,\n enumerable: false,\n value: table,\n writable: false,\n });\n return schema as ConvexIdSchema<T>;\n}\n\nexport function getConvexIdTable(schema: z.ZodTypeAny): string | undefined {\n return (schema as Partial<Record<typeof CONVEX_ID_TABLE, string>>)[\n CONVEX_ID_TABLE\n ];\n}\n","/**\n * Schema contracts for mc/workspace.\n *\n * Mirrored from:\n * - services/master-control/convex/schema.ts\n */\n\nimport { z } from 'zod';\nimport { defineTable, idOf } from '../../../dsl.js';\n\nexport const workspaces = defineTable({\n name: \"workspaces\",\n component: \"mc\",\n category: \"workspace\",\n shape: z.object({\n \"tenantId\": idOf(\"tenants\"),\n \"key\": z.string(),\n \"slug\": z.string(),\n \"name\": z.string(),\n \"status\": z.enum([\"active\", \"archived\"]),\n \"defaultProjectVisibility\": z.enum([\"private\", \"team\", \"firm\", \"external\", \"public\"]).optional(),\n \"deployments\": z.record(z.object({\n \"url\": z.string(),\n \"target\": z.enum([\"kernelDeployment\", \"appDeployment\"]).optional(),\n \"encryptedDeployKey\": z.string().optional(),\n \"credentialRef\": z.string().optional()\n })).optional(),\n \"metadata\": z.record(z.any()).optional(),\n \"createdBy\": z.string().optional(),\n \"createdAt\": z.number(),\n \"updatedAt\": z.number()\n }),\n indices: [\n { kind: 'index', name: \"by_tenantId\", columns: [\"tenantId\"] },\n { kind: 'index', name: \"by_tenantId_key\", columns: [\"tenantId\", \"key\"] },\n { kind: 'index', name: \"by_tenantId_slug\", columns: [\"tenantId\", \"slug\"] },\n { kind: 'index', name: \"by_status\", columns: [\"status\"] }\n ],\n});\n"]}
|