@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.
- package/dist/defineFunction-DO97DKs4.d.ts +14 -0
- package/dist/defineTable-CBQ03FXl.d.ts +36 -0
- package/dist/dsl-BgpoVOVQ.d.ts +110 -0
- package/dist/dsl.d.ts +5 -0
- package/dist/dsl.js +678 -0
- package/dist/dsl.js.map +1 -0
- package/dist/function-registry/beliefs.d.ts +479 -0
- package/dist/function-registry/beliefs.js +4677 -0
- package/dist/function-registry/beliefs.js.map +1 -0
- package/dist/function-registry/coding.d.ts +323 -0
- package/dist/function-registry/coding.js +4451 -0
- package/dist/function-registry/coding.js.map +1 -0
- package/dist/function-registry/context.d.ts +206 -0
- package/dist/function-registry/context.js +4336 -0
- package/dist/function-registry/context.js.map +1 -0
- package/dist/function-registry/contracts.d.ts +206 -0
- package/dist/function-registry/contracts.js +4284 -0
- package/dist/function-registry/contracts.js.map +1 -0
- package/dist/function-registry/coordination.d.ts +440 -0
- package/dist/function-registry/coordination.js +4405 -0
- package/dist/function-registry/coordination.js.map +1 -0
- package/dist/function-registry/edges.d.ts +167 -0
- package/dist/function-registry/edges.js +4425 -0
- package/dist/function-registry/edges.js.map +1 -0
- package/dist/function-registry/evidence.d.ts +401 -0
- package/dist/function-registry/evidence.js +4598 -0
- package/dist/function-registry/evidence.js.map +1 -0
- package/dist/function-registry/graph.d.ts +596 -0
- package/dist/function-registry/graph.js +4489 -0
- package/dist/function-registry/graph.js.map +1 -0
- package/dist/function-registry/helpers.d.ts +84 -0
- package/dist/function-registry/helpers.js +4280 -0
- package/dist/function-registry/helpers.js.map +1 -0
- package/dist/function-registry/identity.d.ts +206 -0
- package/dist/function-registry/identity.js +4295 -0
- package/dist/function-registry/identity.js.map +1 -0
- package/dist/function-registry/index.d.ts +32 -0
- package/dist/function-registry/index.js +4384 -0
- package/dist/function-registry/index.js.map +1 -0
- package/dist/function-registry/judgments.d.ts +167 -0
- package/dist/function-registry/judgments.js +4308 -0
- package/dist/function-registry/judgments.js.map +1 -0
- package/dist/function-registry/legacy.d.ts +128 -0
- package/dist/function-registry/legacy.js +4259 -0
- package/dist/function-registry/legacy.js.map +1 -0
- package/dist/function-registry/lenses.d.ts +245 -0
- package/dist/function-registry/lenses.js +4343 -0
- package/dist/function-registry/lenses.js.map +1 -0
- package/dist/function-registry/manifest.d.ts +36 -0
- package/dist/function-registry/manifest.js +367 -0
- package/dist/function-registry/manifest.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +518 -0
- package/dist/function-registry/ontologies.js +4442 -0
- package/dist/function-registry/ontologies.js.map +1 -0
- package/dist/function-registry/pipeline.d.ts +206 -0
- package/dist/function-registry/pipeline.js +4295 -0
- package/dist/function-registry/pipeline.js.map +1 -0
- package/dist/function-registry/questions.d.ts +557 -0
- package/dist/function-registry/questions.js +4528 -0
- package/dist/function-registry/questions.js.map +1 -0
- package/dist/function-registry/tasks.d.ts +245 -0
- package/dist/function-registry/tasks.js +4373 -0
- package/dist/function-registry/tasks.js.map +1 -0
- package/dist/function-registry/topics.d.ts +284 -0
- package/dist/function-registry/topics.js +4350 -0
- package/dist/function-registry/topics.js.map +1 -0
- package/dist/function-registry/types.d.ts +84 -0
- package/dist/function-registry/types.js +3 -0
- package/dist/function-registry/types.js.map +1 -0
- package/dist/function-registry/worktrees.d.ts +479 -0
- package/dist/function-registry/worktrees.js +4522 -0
- package/dist/function-registry/worktrees.js.map +1 -0
- package/dist/generated/convexSchemas.d.ts +20 -0
- package/dist/generated/convexSchemas.js +161 -0
- package/dist/generated/convexSchemas.js.map +1 -0
- package/dist/generated/schema-manifest.json +5231 -0
- package/dist/generated/tableOwnership.d.ts +128 -0
- package/dist/generated/tableOwnership.js +278 -0
- package/dist/generated/tableOwnership.js.map +1 -0
- package/dist/generated/tier-expectations.json +363 -0
- package/dist/idOf-DR8tkhQS.d.ts +10 -0
- package/dist/index-CV-0_VWJ.d.ts +25 -0
- package/dist/index.d.ts +421 -2
- package/dist/index.js +7634 -1607
- package/dist/index.js.map +1 -1
- package/dist/schema-helpers/enumValidation.d.ts +17 -0
- package/dist/schema-helpers/enumValidation.js +143 -0
- package/dist/schema-helpers/enumValidation.js.map +1 -0
- package/dist/schema-helpers/spine/nodes/decision.d.ts +19 -0
- package/dist/schema-helpers/spine/nodes/decision.js +81 -0
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.d.ts +9 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +62 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -0
- package/dist/schema-helpers/topicIds.d.ts +17 -0
- package/dist/schema-helpers/topicIds.js +21 -0
- package/dist/schema-helpers/topicIds.js.map +1 -0
- package/dist/schema-helpers/topicLegacyScope.d.ts +19 -0
- package/dist/schema-helpers/topicLegacyScope.js +44 -0
- package/dist/schema-helpers/topicLegacyScope.js.map +1 -0
- package/dist/schema-helpers/validators.d.ts +8 -0
- package/dist/schema-helpers/validators.js +18 -0
- package/dist/schema-helpers/validators.js.map +1 -0
- package/dist/schemas/component-table-manifest.d.ts +74 -0
- package/dist/schemas/component-table-manifest.js +26 -0
- package/dist/schemas/component-table-manifest.js.map +1 -0
- package/dist/schemas/enums.d.ts +12 -0
- package/dist/schemas/enums.js +11 -0
- package/dist/schemas/enums.js.map +1 -0
- package/dist/schemas/index.d.ts +7 -0
- package/dist/schemas/index.js +4298 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/manifest.d.ts +24586 -0
- package/dist/schemas/manifest.js +4269 -0
- package/dist/schemas/manifest.js.map +1 -0
- package/dist/schemas/sl-opinion.d.ts +31 -0
- package/dist/schemas/sl-opinion.js +19 -0
- package/dist/schemas/sl-opinion.js.map +1 -0
- package/dist/schemas/tables/identity/agent.d.ts +21 -0
- package/dist/schemas/tables/identity/agent.js +41 -0
- package/dist/schemas/tables/identity/agent.js.map +1 -0
- package/dist/schemas/tables/identity/epistemic.d.ts +18 -0
- package/dist/schemas/tables/identity/epistemic.js +38 -0
- package/dist/schemas/tables/identity/epistemic.js.map +1 -0
- package/dist/schemas/tables/identity/model.d.ts +62 -0
- package/dist/schemas/tables/identity/model.js +110 -0
- package/dist/schemas/tables/identity/model.js.map +1 -0
- package/dist/schemas/tables/identity/platform.d.ts +392 -0
- package/dist/schemas/tables/identity/platform.js +475 -0
- package/dist/schemas/tables/identity/platform.js.map +1 -0
- package/dist/schemas/tables/identity/project.d.ts +22 -0
- package/dist/schemas/tables/identity/project.js +48 -0
- package/dist/schemas/tables/identity/project.js.map +1 -0
- package/dist/schemas/tables/identity/user.d.ts +26 -0
- package/dist/schemas/tables/identity/user.js +47 -0
- package/dist/schemas/tables/identity/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +20 -0
- package/dist/schemas/tables/kernel/config.js +39 -0
- package/dist/schemas/tables/kernel/config.js.map +1 -0
- package/dist/schemas/tables/kernel/coordination.d.ts +30 -0
- package/dist/schemas/tables/kernel/coordination.js +57 -0
- package/dist/schemas/tables/kernel/coordination.js.map +1 -0
- package/dist/schemas/tables/kernel/decision.d.ts +246 -0
- package/dist/schemas/tables/kernel/decision.js +371 -0
- package/dist/schemas/tables/kernel/decision.js.map +1 -0
- package/dist/schemas/tables/kernel/embedding.d.ts +18 -0
- package/dist/schemas/tables/kernel/embedding.js +48 -0
- package/dist/schemas/tables/kernel/embedding.js.map +1 -0
- package/dist/schemas/tables/kernel/epistemic.d.ts +317 -0
- package/dist/schemas/tables/kernel/epistemic.js +329 -0
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -0
- package/dist/schemas/tables/kernel/idempotency.d.ts +13 -0
- package/dist/schemas/tables/kernel/idempotency.js +31 -0
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -0
- package/dist/schemas/tables/kernel/infra.d.ts +183 -0
- package/dist/schemas/tables/kernel/infra.js +182 -0
- package/dist/schemas/tables/kernel/infra.js.map +1 -0
- package/dist/schemas/tables/kernel/intelligence.d.ts +293 -0
- package/dist/schemas/tables/kernel/intelligence.js +207 -0
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -0
- package/dist/schemas/tables/kernel/lens.d.ts +192 -0
- package/dist/schemas/tables/kernel/lens.js +122 -0
- package/dist/schemas/tables/kernel/lens.js.map +1 -0
- package/dist/schemas/tables/kernel/ontology.d.ts +89 -0
- package/dist/schemas/tables/kernel/ontology.js +91 -0
- package/dist/schemas/tables/kernel/ontology.js.map +1 -0
- package/dist/schemas/tables/kernel/platform.d.ts +353 -0
- package/dist/schemas/tables/kernel/platform.js +349 -0
- package/dist/schemas/tables/kernel/platform.js.map +1 -0
- package/dist/schemas/tables/kernel/spine.d.ts +206 -0
- package/dist/schemas/tables/kernel/spine.js +243 -0
- package/dist/schemas/tables/kernel/spine.js.map +1 -0
- package/dist/schemas/tables/kernel/task.d.ts +614 -0
- package/dist/schemas/tables/kernel/task.js +189 -0
- package/dist/schemas/tables/kernel/task.js.map +1 -0
- package/dist/schemas/tables/kernel/topic.d.ts +25 -0
- package/dist/schemas/tables/kernel/topic.js +62 -0
- package/dist/schemas/tables/kernel/topic.js.map +1 -0
- package/dist/schemas/tables/kernel/workflow.d.ts +45 -0
- package/dist/schemas/tables/kernel/workflow.js +94 -0
- package/dist/schemas/tables/kernel/workflow.js.map +1 -0
- package/dist/schemas/tables/kernel/worktree.d.ts +823 -0
- package/dist/schemas/tables/kernel/worktree.js +330 -0
- package/dist/schemas/tables/kernel/worktree.js.map +1 -0
- package/dist/schemas/tables/mc/identity.d.ts +134 -0
- package/dist/schemas/tables/mc/identity.js +221 -0
- package/dist/schemas/tables/mc/identity.js.map +1 -0
- package/dist/schemas/tables/mc/methodology.d.ts +46 -0
- package/dist/schemas/tables/mc/methodology.js +69 -0
- package/dist/schemas/tables/mc/methodology.js.map +1 -0
- package/dist/schemas/tables/mc/pack.d.ts +540 -0
- package/dist/schemas/tables/mc/pack.js +294 -0
- package/dist/schemas/tables/mc/pack.js.map +1 -0
- package/dist/schemas/tables/mc/policy.d.ts +57 -0
- package/dist/schemas/tables/mc/policy.js +121 -0
- package/dist/schemas/tables/mc/policy.js.map +1 -0
- package/dist/schemas/tables/mc/registry.d.ts +155 -0
- package/dist/schemas/tables/mc/registry.js +164 -0
- package/dist/schemas/tables/mc/registry.js.map +1 -0
- package/dist/schemas/tables/mc/runtime.d.ts +119 -0
- package/dist/schemas/tables/mc/runtime.js +199 -0
- package/dist/schemas/tables/mc/runtime.js.map +1 -0
- package/dist/schemas/tables/mc/tenant.d.ts +106 -0
- package/dist/schemas/tables/mc/tenant.js +114 -0
- package/dist/schemas/tables/mc/tenant.js.map +1 -0
- package/dist/schemas/tables/mc/workspace.d.ts +28 -0
- package/dist/schemas/tables/mc/workspace.js +52 -0
- package/dist/schemas/tables/mc/workspace.js.map +1 -0
- package/dist/sdk-methods.contract.d.ts +5 -2
- package/dist/{sdk-tools.contract-BnV0hKLp.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +3 -7
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +810 -218
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tool-contracts-C92-9ueT.d.ts +290 -0
- package/dist/tool-contracts.d.ts +1 -0
- package/dist/{mcp-tools.contract.js → tool-contracts.js} +812 -159
- package/dist/tool-contracts.js.map +1 -0
- package/dist/workflow-runtime.contract.js +1 -1
- package/dist/workflow-runtime.contract.js.map +1 -1
- package/package.json +137 -2
- package/dist/mcp-tools.contract-D8kXcP6d.d.ts +0 -254
- package/dist/mcp-tools.contract.d.ts +0 -1
- package/dist/mcp-tools.contract.js.map +0 -1
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { T as TableContract } from '../../../defineTable-CBQ03FXl.js';
|
|
3
|
+
|
|
4
|
+
declare const harnessReplays: TableContract<{
|
|
5
|
+
replayId: z.ZodString;
|
|
6
|
+
runId: z.ZodString;
|
|
7
|
+
traceVersion: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<["captured", "partial", "failed"]>;
|
|
9
|
+
entrypoints: z.ZodArray<z.ZodString, "many">;
|
|
10
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
11
|
+
stepId: z.ZodString;
|
|
12
|
+
phase: z.ZodString;
|
|
13
|
+
kind: z.ZodString;
|
|
14
|
+
status: z.ZodEnum<["completed", "failed", "skipped"]>;
|
|
15
|
+
startedAt: z.ZodNumber;
|
|
16
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
18
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
status: "failed" | "skipped" | "completed";
|
|
21
|
+
startedAt: number;
|
|
22
|
+
stepId: string;
|
|
23
|
+
phase: string;
|
|
24
|
+
kind: string;
|
|
25
|
+
metadata?: Record<string, any> | undefined;
|
|
26
|
+
completedAt?: number | undefined;
|
|
27
|
+
summary?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
status: "failed" | "skipped" | "completed";
|
|
30
|
+
startedAt: number;
|
|
31
|
+
stepId: string;
|
|
32
|
+
phase: string;
|
|
33
|
+
kind: string;
|
|
34
|
+
metadata?: Record<string, any> | undefined;
|
|
35
|
+
completedAt?: number | undefined;
|
|
36
|
+
summary?: string | undefined;
|
|
37
|
+
}>, "many">;
|
|
38
|
+
inputSnapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
39
|
+
outputSnapshot: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
40
|
+
sandboxAudit: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
|
|
41
|
+
workflowReceipt: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
42
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
43
|
+
createdAt: z.ZodNumber;
|
|
44
|
+
}>;
|
|
45
|
+
declare const harnessRuns: TableContract<{
|
|
46
|
+
runId: z.ZodString;
|
|
47
|
+
replayId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
agentId: z.ZodString;
|
|
49
|
+
agentVersion: z.ZodOptional<z.ZodString>;
|
|
50
|
+
runKind: z.ZodEnum<["sandbox", "live_runner", "workflow", "bi", "chat", "sdk", "mcp", "external"]>;
|
|
51
|
+
executionAdapter: z.ZodEnum<["convex_mutation", "convex_action", "http_callback", "mcp_tool", "sdk_invocation", "external_observed"]>;
|
|
52
|
+
principalId: z.ZodString;
|
|
53
|
+
tenantId: z.ZodString;
|
|
54
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
authMode: z.ZodEnum<["interactive_user", "service_principal"]>;
|
|
56
|
+
environment: z.ZodEnum<["sandbox", "production"]>;
|
|
57
|
+
promptReleaseChannel: z.ZodEnum<["dev", "staging", "prod"]>;
|
|
58
|
+
isolationMode: z.ZodOptional<z.ZodEnum<["sandbox", "direct", "workflow", "observed"]>>;
|
|
59
|
+
langfuseTraceId: z.ZodOptional<z.ZodString>;
|
|
60
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
61
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
startedAt: z.ZodNumber;
|
|
64
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
status: z.ZodEnum<["running", "completed", "failed", "timeout"]>;
|
|
67
|
+
outcome: z.ZodObject<{
|
|
68
|
+
verdict: z.ZodEnum<["success", "partial", "failure", "timeout", "cancelled"]>;
|
|
69
|
+
summary: z.ZodString;
|
|
70
|
+
errorCategory: z.ZodOptional<z.ZodEnum<["policy_denied", "tool_execution", "prompt_resolution", "model_error", "timeout", "heartbeat_timeout", "input_validation", "internal", "external_service"]>>;
|
|
71
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
summary: string;
|
|
74
|
+
verdict: "cancelled" | "partial" | "success" | "timeout" | "failure";
|
|
75
|
+
errorMessage?: string | undefined;
|
|
76
|
+
errorCategory?: "internal" | "timeout" | "policy_denied" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
summary: string;
|
|
79
|
+
verdict: "cancelled" | "partial" | "success" | "timeout" | "failure";
|
|
80
|
+
errorMessage?: string | undefined;
|
|
81
|
+
errorCategory?: "internal" | "timeout" | "policy_denied" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
toolCalls: z.ZodArray<z.ZodObject<{
|
|
84
|
+
toolCallId: z.ZodString;
|
|
85
|
+
toolName: z.ZodString;
|
|
86
|
+
success: z.ZodBoolean;
|
|
87
|
+
durationMs: z.ZodNumber;
|
|
88
|
+
policyDecisionId: z.ZodOptional<z.ZodString>;
|
|
89
|
+
gateClassification: z.ZodOptional<z.ZodEnum<["core", "shimmed"]>>;
|
|
90
|
+
requiredScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
91
|
+
graphWriteCount: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
toolName: string;
|
|
95
|
+
durationMs: number;
|
|
96
|
+
success: boolean;
|
|
97
|
+
toolCallId: string;
|
|
98
|
+
metadata?: Record<string, any> | undefined;
|
|
99
|
+
gateClassification?: "core" | "shimmed" | undefined;
|
|
100
|
+
policyDecisionId?: string | undefined;
|
|
101
|
+
requiredScopes?: string[] | undefined;
|
|
102
|
+
graphWriteCount?: number | undefined;
|
|
103
|
+
}, {
|
|
104
|
+
toolName: string;
|
|
105
|
+
durationMs: number;
|
|
106
|
+
success: boolean;
|
|
107
|
+
toolCallId: string;
|
|
108
|
+
metadata?: Record<string, any> | undefined;
|
|
109
|
+
gateClassification?: "core" | "shimmed" | undefined;
|
|
110
|
+
policyDecisionId?: string | undefined;
|
|
111
|
+
requiredScopes?: string[] | undefined;
|
|
112
|
+
graphWriteCount?: number | undefined;
|
|
113
|
+
}>, "many">;
|
|
114
|
+
toolCallCount: z.ZodNumber;
|
|
115
|
+
graphReads: z.ZodArray<z.ZodObject<{
|
|
116
|
+
operationId: z.ZodString;
|
|
117
|
+
surface: z.ZodEnum<["belief", "question", "evidence", "worktree", "workflow", "topic", "document", "external"]>;
|
|
118
|
+
action: z.ZodString;
|
|
119
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
120
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
121
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
action: string;
|
|
124
|
+
operationId: string;
|
|
125
|
+
surface: "belief" | "evidence" | "question" | "worktree" | "topic" | "external" | "workflow" | "document";
|
|
126
|
+
metadata?: Record<string, any> | undefined;
|
|
127
|
+
summary?: string | undefined;
|
|
128
|
+
targetId?: string | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
action: string;
|
|
131
|
+
operationId: string;
|
|
132
|
+
surface: "belief" | "evidence" | "question" | "worktree" | "topic" | "external" | "workflow" | "document";
|
|
133
|
+
metadata?: Record<string, any> | undefined;
|
|
134
|
+
summary?: string | undefined;
|
|
135
|
+
targetId?: string | undefined;
|
|
136
|
+
}>, "many">;
|
|
137
|
+
graphReadCount: z.ZodNumber;
|
|
138
|
+
graphWrites: z.ZodArray<z.ZodObject<{
|
|
139
|
+
operationId: z.ZodString;
|
|
140
|
+
surface: z.ZodEnum<["belief", "question", "evidence", "worktree", "workflow", "topic", "document", "external"]>;
|
|
141
|
+
action: z.ZodString;
|
|
142
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
143
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
144
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
action: string;
|
|
147
|
+
operationId: string;
|
|
148
|
+
surface: "belief" | "evidence" | "question" | "worktree" | "topic" | "external" | "workflow" | "document";
|
|
149
|
+
metadata?: Record<string, any> | undefined;
|
|
150
|
+
summary?: string | undefined;
|
|
151
|
+
targetId?: string | undefined;
|
|
152
|
+
}, {
|
|
153
|
+
action: string;
|
|
154
|
+
operationId: string;
|
|
155
|
+
surface: "belief" | "evidence" | "question" | "worktree" | "topic" | "external" | "workflow" | "document";
|
|
156
|
+
metadata?: Record<string, any> | undefined;
|
|
157
|
+
summary?: string | undefined;
|
|
158
|
+
targetId?: string | undefined;
|
|
159
|
+
}>, "many">;
|
|
160
|
+
graphWriteCount: z.ZodNumber;
|
|
161
|
+
workflow: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
workflowId: z.ZodString;
|
|
163
|
+
workflowVersion: z.ZodOptional<z.ZodString>;
|
|
164
|
+
triggerKind: z.ZodEnum<["manual", "schedule", "hook"]>;
|
|
165
|
+
mutationTier: z.ZodOptional<z.ZodEnum<["read_only", "low_risk_write", "high_risk_write"]>>;
|
|
166
|
+
approvalMode: z.ZodOptional<z.ZodEnum<["none", "audit_only", "human_required", "auto_approve"]>>;
|
|
167
|
+
actionCount: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
workflowId: string;
|
|
170
|
+
triggerKind: "manual" | "schedule" | "hook";
|
|
171
|
+
workflowVersion?: string | undefined;
|
|
172
|
+
mutationTier?: "read_only" | "low_risk_write" | "high_risk_write" | undefined;
|
|
173
|
+
approvalMode?: "none" | "audit_only" | "human_required" | "auto_approve" | undefined;
|
|
174
|
+
actionCount?: number | undefined;
|
|
175
|
+
}, {
|
|
176
|
+
workflowId: string;
|
|
177
|
+
triggerKind: "manual" | "schedule" | "hook";
|
|
178
|
+
workflowVersion?: string | undefined;
|
|
179
|
+
mutationTier?: "read_only" | "low_risk_write" | "high_risk_write" | undefined;
|
|
180
|
+
approvalMode?: "none" | "audit_only" | "human_required" | "auto_approve" | undefined;
|
|
181
|
+
actionCount?: number | undefined;
|
|
182
|
+
}>>;
|
|
183
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
totalInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
totalOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
estimatedTotalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
llmCallCount: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
toolCallCount: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
modelsUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
toolCallCount?: number | undefined;
|
|
192
|
+
totalInputTokens?: number | undefined;
|
|
193
|
+
totalOutputTokens?: number | undefined;
|
|
194
|
+
estimatedTotalCostUsd?: number | undefined;
|
|
195
|
+
llmCallCount?: number | undefined;
|
|
196
|
+
modelsUsed?: string[] | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
toolCallCount?: number | undefined;
|
|
199
|
+
totalInputTokens?: number | undefined;
|
|
200
|
+
totalOutputTokens?: number | undefined;
|
|
201
|
+
estimatedTotalCostUsd?: number | undefined;
|
|
202
|
+
llmCallCount?: number | undefined;
|
|
203
|
+
modelsUsed?: string[] | undefined;
|
|
204
|
+
}>>;
|
|
205
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
206
|
+
createdAt: z.ZodNumber;
|
|
207
|
+
updatedAt: z.ZodNumber;
|
|
208
|
+
}>;
|
|
209
|
+
declare const platformAgentRunPolicyDecisions: TableContract<{
|
|
210
|
+
runId: z.ZodString;
|
|
211
|
+
decisionId: z.ZodString;
|
|
212
|
+
action: z.ZodString;
|
|
213
|
+
result: z.ZodEnum<["allow", "deny", "shadow_allow"]>;
|
|
214
|
+
reasonCode: z.ZodString;
|
|
215
|
+
scopesChecked: z.ZodArray<z.ZodString, "many">;
|
|
216
|
+
scopesGranted: z.ZodArray<z.ZodString, "many">;
|
|
217
|
+
evaluatedAt: z.ZodNumber;
|
|
218
|
+
createdAt: z.ZodNumber;
|
|
219
|
+
}>;
|
|
220
|
+
declare const platformAgentRunPromptResolutions: TableContract<{
|
|
221
|
+
runId: z.ZodString;
|
|
222
|
+
promptResolutionId: z.ZodString;
|
|
223
|
+
sequenceIndex: z.ZodNumber;
|
|
224
|
+
promptName: z.ZodString;
|
|
225
|
+
promptVersion: z.ZodString;
|
|
226
|
+
releaseChannel: z.ZodEnum<["dev", "staging", "prod"]>;
|
|
227
|
+
usedFallback: z.ZodBoolean;
|
|
228
|
+
modelSlot: z.ZodString;
|
|
229
|
+
modelKey: z.ZodString;
|
|
230
|
+
provider: z.ZodString;
|
|
231
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
estimatedCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
resolvedAt: z.ZodNumber;
|
|
236
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
237
|
+
createdAt: z.ZodNumber;
|
|
238
|
+
}>;
|
|
239
|
+
declare const platformAgentRuns: TableContract<{
|
|
240
|
+
runId: z.ZodString;
|
|
241
|
+
reportingToken: z.ZodString;
|
|
242
|
+
agentDefinitionId: z.ZodString;
|
|
243
|
+
agentVersion: z.ZodString;
|
|
244
|
+
principalId: z.ZodString;
|
|
245
|
+
tenantId: z.ZodString;
|
|
246
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
247
|
+
authMode: z.ZodEnum<["interactive_user", "service_principal"]>;
|
|
248
|
+
executionAdapter: z.ZodEnum<["convex_mutation", "convex_action", "http_callback", "mcp_tool", "sdk_invocation", "external_observed"]>;
|
|
249
|
+
environment: z.ZodEnum<["sandbox", "production"]>;
|
|
250
|
+
promptReleaseChannel: z.ZodEnum<["dev", "staging", "prod"]>;
|
|
251
|
+
status: z.ZodEnum<["running", "completed", "failed", "timeout"]>;
|
|
252
|
+
startedAt: z.ZodNumber;
|
|
253
|
+
finalizedAt: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
lastHeartbeatAt: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
langfuseTraceId: z.ZodOptional<z.ZodString>;
|
|
257
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
258
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
259
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
category: z.ZodEnum<["policy_denied", "tool_execution", "prompt_resolution", "model_error", "timeout", "heartbeat_timeout", "input_validation", "internal", "external_service"]>;
|
|
261
|
+
message: z.ZodString;
|
|
262
|
+
code: z.ZodOptional<z.ZodString>;
|
|
263
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
message: string;
|
|
266
|
+
category: "internal" | "timeout" | "policy_denied" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
|
|
267
|
+
code?: string | undefined;
|
|
268
|
+
stack?: string | undefined;
|
|
269
|
+
}, {
|
|
270
|
+
message: string;
|
|
271
|
+
category: "internal" | "timeout" | "policy_denied" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
|
|
272
|
+
code?: string | undefined;
|
|
273
|
+
stack?: string | undefined;
|
|
274
|
+
}>>;
|
|
275
|
+
costMetrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
276
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
277
|
+
createdAt: z.ZodNumber;
|
|
278
|
+
updatedAt: z.ZodNumber;
|
|
279
|
+
}>;
|
|
280
|
+
declare const platformAgentRunToolCalls: TableContract<{
|
|
281
|
+
runId: z.ZodString;
|
|
282
|
+
toolCallId: z.ZodString;
|
|
283
|
+
sequenceIndex: z.ZodNumber;
|
|
284
|
+
toolName: z.ZodString;
|
|
285
|
+
toolVersion: z.ZodOptional<z.ZodString>;
|
|
286
|
+
policyDecisionId: z.ZodString;
|
|
287
|
+
requiredScopes: z.ZodArray<z.ZodString, "many">;
|
|
288
|
+
policyResult: z.ZodEnum<["allowed", "denied", "shadow_allowed"]>;
|
|
289
|
+
policyReasonCode: z.ZodString;
|
|
290
|
+
executionAdapter: z.ZodEnum<["convex_mutation", "convex_action", "http_callback", "mcp_tool", "sdk_invocation", "external_observed"]>;
|
|
291
|
+
inputHash: z.ZodString;
|
|
292
|
+
outputHash: z.ZodString;
|
|
293
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
294
|
+
success: z.ZodBoolean;
|
|
295
|
+
error: z.ZodOptional<z.ZodString>;
|
|
296
|
+
startedAt: z.ZodNumber;
|
|
297
|
+
completedAt: z.ZodNumber;
|
|
298
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
299
|
+
createdAt: z.ZodNumber;
|
|
300
|
+
}>;
|
|
301
|
+
declare const platformHarnessShadowAudit: TableContract<{
|
|
302
|
+
shadowAuditId: z.ZodString;
|
|
303
|
+
runId: z.ZodString;
|
|
304
|
+
toolCallId: z.ZodString;
|
|
305
|
+
policyDecisionId: z.ZodString;
|
|
306
|
+
toolName: z.ZodString;
|
|
307
|
+
gateClassification: z.ZodEnum<["core", "shimmed"]>;
|
|
308
|
+
requiredScopes: z.ZodArray<z.ZodString, "many">;
|
|
309
|
+
grantedScopes: z.ZodArray<z.ZodString, "many">;
|
|
310
|
+
shadowResult: z.ZodLiteral<"shadow_allow">;
|
|
311
|
+
wouldHaveDenied: z.ZodBoolean;
|
|
312
|
+
reason: z.ZodString;
|
|
313
|
+
retentionExpiresAt: z.ZodNumber;
|
|
314
|
+
createdAt: z.ZodNumber;
|
|
315
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
316
|
+
}>;
|
|
317
|
+
declare const publicationRules: TableContract<{
|
|
318
|
+
tenantId: z.ZodString;
|
|
319
|
+
packKey: z.ZodOptional<z.ZodString>;
|
|
320
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
321
|
+
name: z.ZodString;
|
|
322
|
+
description: z.ZodOptional<z.ZodString>;
|
|
323
|
+
conditionType: z.ZodEnum<["confidence_threshold", "node_type_match", "epistemic_layer_match", "tag_match", "composite"]>;
|
|
324
|
+
conditions: z.ZodAny;
|
|
325
|
+
enabled: z.ZodBoolean;
|
|
326
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
327
|
+
createdBy: z.ZodString;
|
|
328
|
+
createdAt: z.ZodNumber;
|
|
329
|
+
updatedAt: z.ZodNumber;
|
|
330
|
+
}>;
|
|
331
|
+
declare const researchJobs: TableContract<{
|
|
332
|
+
tenantId: z.ZodString;
|
|
333
|
+
jobId: z.ZodString;
|
|
334
|
+
type: z.ZodEnum<["search", "deep_research", "scrape"]>;
|
|
335
|
+
query: z.ZodString;
|
|
336
|
+
topicId: z.ZodOptional<z.ZodString>;
|
|
337
|
+
depth: z.ZodOptional<z.ZodString>;
|
|
338
|
+
integrationKey: z.ZodString;
|
|
339
|
+
status: z.ZodEnum<["pending", "running", "completed", "failed", "cancelled"]>;
|
|
340
|
+
results: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
341
|
+
resultCount: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
error: z.ZodOptional<z.ZodString>;
|
|
343
|
+
langfuseTraceId: z.ZodOptional<z.ZodString>;
|
|
344
|
+
autoCommitEvidence: z.ZodBoolean;
|
|
345
|
+
committedEvidenceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
346
|
+
requestedBy: z.ZodString;
|
|
347
|
+
createdAt: z.ZodNumber;
|
|
348
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
351
|
+
}>;
|
|
352
|
+
|
|
353
|
+
export { harnessReplays, harnessRuns, platformAgentRunPolicyDecisions, platformAgentRunPromptResolutions, platformAgentRunToolCalls, platformAgentRuns, platformHarnessShadowAudit, publicationRules, researchJobs };
|