@lucern/contracts 0.1.2-alpha.5 → 0.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +675 -0
- package/dist/dsl.js.map +1 -0
- package/dist/function-registry/beliefs.d.ts +519 -0
- package/dist/function-registry/beliefs.js +4326 -0
- package/dist/function-registry/beliefs.js.map +1 -0
- package/dist/function-registry/coding.d.ts +347 -0
- package/dist/function-registry/coding.js +4268 -0
- package/dist/function-registry/coding.js.map +1 -0
- package/dist/function-registry/context.d.ts +218 -0
- package/dist/function-registry/context.js +4175 -0
- package/dist/function-registry/context.js.map +1 -0
- package/dist/function-registry/contracts.d.ts +218 -0
- package/dist/function-registry/contracts.js +4143 -0
- package/dist/function-registry/contracts.js.map +1 -0
- package/dist/function-registry/coordination.d.ts +476 -0
- package/dist/function-registry/coordination.js +4254 -0
- package/dist/function-registry/coordination.js.map +1 -0
- package/dist/function-registry/edges.d.ts +175 -0
- package/dist/function-registry/edges.js +4150 -0
- package/dist/function-registry/edges.js.map +1 -0
- package/dist/function-registry/evidence.d.ts +433 -0
- package/dist/function-registry/evidence.js +4302 -0
- package/dist/function-registry/evidence.js.map +1 -0
- package/dist/function-registry/graph.d.ts +648 -0
- package/dist/function-registry/graph.js +4329 -0
- package/dist/function-registry/graph.js.map +1 -0
- package/dist/function-registry/helpers.d.ts +86 -0
- package/dist/function-registry/helpers.js +4131 -0
- package/dist/function-registry/helpers.js.map +1 -0
- package/dist/function-registry/identity.d.ts +218 -0
- package/dist/function-registry/identity.js +4154 -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 +4235 -0
- package/dist/function-registry/index.js.map +1 -0
- package/dist/function-registry/judgments.d.ts +175 -0
- package/dist/function-registry/judgments.js +4157 -0
- package/dist/function-registry/judgments.js.map +1 -0
- package/dist/function-registry/legacy.d.ts +132 -0
- package/dist/function-registry/legacy.js +4118 -0
- package/dist/function-registry/legacy.js.map +1 -0
- package/dist/function-registry/lenses.d.ts +261 -0
- package/dist/function-registry/lenses.js +4160 -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 +366 -0
- package/dist/function-registry/manifest.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +562 -0
- package/dist/function-registry/ontologies.js +4292 -0
- package/dist/function-registry/ontologies.js.map +1 -0
- package/dist/function-registry/pipeline.d.ts +218 -0
- package/dist/function-registry/pipeline.js +4143 -0
- package/dist/function-registry/pipeline.js.map +1 -0
- package/dist/function-registry/questions.d.ts +605 -0
- package/dist/function-registry/questions.js +4329 -0
- package/dist/function-registry/questions.js.map +1 -0
- package/dist/function-registry/tasks.d.ts +261 -0
- package/dist/function-registry/tasks.js +4166 -0
- package/dist/function-registry/tasks.js.map +1 -0
- package/dist/function-registry/topics.d.ts +304 -0
- package/dist/function-registry/topics.js +4193 -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 +476 -0
- package/dist/function-registry/worktrees.js +4277 -0
- package/dist/function-registry/worktrees.js.map +1 -0
- package/dist/generated/convexSchemas.d.ts +20 -0
- package/dist/generated/convexSchemas.js +160 -0
- package/dist/generated/convexSchemas.js.map +1 -0
- package/dist/generated/schema-manifest.json +5179 -0
- package/dist/generated/tableOwnership.d.ts +127 -0
- package/dist/generated/tableOwnership.js +276 -0
- package/dist/generated/tableOwnership.js.map +1 -0
- package/dist/generated/tier-expectations.json +360 -0
- package/dist/idOf-DR8tkhQS.d.ts +10 -0
- package/dist/index-DoDXl8KS.d.ts +19 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.js +5739 -315
- 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/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 +5 -0
- package/dist/schemas/index.js +4240 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/manifest.d.ts +24521 -0
- package/dist/schemas/manifest.js +4242 -0
- package/dist/schemas/manifest.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 +315 -0
- package/dist/schemas/tables/kernel/epistemic.js +327 -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 +171 -0
- package/dist/schemas/tables/kernel/infra.js +160 -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 +328 -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-tools.contract-BnV0hKLp.d.ts → sdk-tools.contract-C2kQN_Xk.d.ts} +3 -7
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +664 -175
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tool-contracts-WCnuE9DW.d.ts +288 -0
- package/dist/tool-contracts.d.ts +1 -0
- package/dist/{mcp-tools.contract.js → tool-contracts.js} +666 -116
- package/dist/tool-contracts.js.map +1 -0
- package/package.json +119 -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,476 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* MCP Tool Contract Definitions
|
|
5
|
+
*
|
|
6
|
+
* Machine-readable source of truth for all Lucern MCP tool names,
|
|
7
|
+
* descriptions, parameters, and response schemas.
|
|
8
|
+
*
|
|
9
|
+
* CONTRACT SURFACE: These definitions are the external API for AI agents.
|
|
10
|
+
* Renaming a tool or changing its description is a BREAKING CHANGE.
|
|
11
|
+
*
|
|
12
|
+
* Git-native naming rules (enforced by lint):
|
|
13
|
+
* 1. Workflow tools use git verbs directly (add_worktree, merge, push, open_pull_request)
|
|
14
|
+
* 2. Knowledge tools use epistemic verbs (create_belief, fork_belief, modulate_confidence)
|
|
15
|
+
* 3. First sentence of description includes the git analog verb
|
|
16
|
+
* 4. Description includes "Like `git X`" parenthetical
|
|
17
|
+
* 5. Parameter names use domain terms (canonicalText, nodeId, confidence)
|
|
18
|
+
*/
|
|
19
|
+
type McpToolContract = {
|
|
20
|
+
/** Stable tool name — breaking change to rename */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Git-semantic description — breaking change to remove git references */
|
|
23
|
+
description: string;
|
|
24
|
+
/** Parameter schema (JSON Schema subset) */
|
|
25
|
+
parameters: Record<string, McpParameterDef>;
|
|
26
|
+
/** Required parameter names */
|
|
27
|
+
required: string[];
|
|
28
|
+
/** Response shape description */
|
|
29
|
+
response: McpResponseDef;
|
|
30
|
+
/** Which Lucern module owns the implementation */
|
|
31
|
+
ownerModule: string;
|
|
32
|
+
/** Ontology primitive this tool operates on */
|
|
33
|
+
ontologyPrimitive: "belief" | "evidence" | "source" | "question" | "judgment" | "worktree" | "branch" | "lens" | "edge" | "graph" | "task" | "policy" | "ontology" | "identity";
|
|
34
|
+
/** MCP surface tier — showcase (front page, every demo) or workhorse (complete CRUD, discovered when building) */
|
|
35
|
+
tier: "showcase" | "workhorse";
|
|
36
|
+
/** Hide this tool from public discovery surfaces. */
|
|
37
|
+
internal?: boolean;
|
|
38
|
+
/** Deprecation notice shown in contract-driven docs and discovery. */
|
|
39
|
+
deprecated?: string;
|
|
40
|
+
};
|
|
41
|
+
type McpParameterDef = {
|
|
42
|
+
type: "string" | "number" | "boolean" | "array" | "object";
|
|
43
|
+
description: string;
|
|
44
|
+
required?: boolean;
|
|
45
|
+
enum?: string[];
|
|
46
|
+
};
|
|
47
|
+
type McpResponseDef = {
|
|
48
|
+
description: string;
|
|
49
|
+
fields: Record<string, string>;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type FunctionEffect = "read" | "write" | "admin";
|
|
53
|
+
|
|
54
|
+
type FunctionKind = "query" | "mutation" | "action";
|
|
55
|
+
type FunctionIdempotency = boolean | "required";
|
|
56
|
+
type FunctionSurfaceIntent = "mcp_core" | "mcp_analysis" | "mcp_workflow" | "mcp_governance" | "system" | "compatibility" | "sdk_granular";
|
|
57
|
+
type SurfaceClass = "platform_public" | "tenant_public" | "platform_internal" | "legacy_compat" | "application_tool" | "external_connector";
|
|
58
|
+
type SurfaceExposure = "public" | "internal" | "none";
|
|
59
|
+
type FunctionSurfaceMap = {
|
|
60
|
+
sdk: SurfaceExposure;
|
|
61
|
+
rest: SurfaceExposure;
|
|
62
|
+
mcp: SurfaceExposure;
|
|
63
|
+
cli: SurfaceExposure;
|
|
64
|
+
};
|
|
65
|
+
type ContractProjectionContext = {
|
|
66
|
+
tenantId?: string;
|
|
67
|
+
workspaceId?: string;
|
|
68
|
+
userId?: string;
|
|
69
|
+
principalId?: string;
|
|
70
|
+
correlationId?: string;
|
|
71
|
+
policyTraceId?: string;
|
|
72
|
+
idempotencyKey?: string;
|
|
73
|
+
};
|
|
74
|
+
type ContractInputProjection = (input: Record<string, unknown>, context: ContractProjectionContext) => Record<string, unknown>;
|
|
75
|
+
type ContractOutputProjection = (output: unknown, input: Record<string, unknown>, context: ContractProjectionContext) => unknown;
|
|
76
|
+
type FunctionConvexTarget = {
|
|
77
|
+
module: string;
|
|
78
|
+
functionName: string;
|
|
79
|
+
kind: FunctionKind;
|
|
80
|
+
injectSessionId?: "sessionId" | "fromSessionId";
|
|
81
|
+
injectSessionContext?: boolean;
|
|
82
|
+
broadcastToAll?: boolean;
|
|
83
|
+
inputProjection?: ContractInputProjection;
|
|
84
|
+
outputProjection?: ContractOutputProjection;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
declare const coordinationContracts: readonly [{
|
|
88
|
+
name: string;
|
|
89
|
+
kind: FunctionKind;
|
|
90
|
+
idempotent: FunctionIdempotency;
|
|
91
|
+
effects: readonly FunctionEffect[];
|
|
92
|
+
invariants: readonly string[] | undefined;
|
|
93
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
94
|
+
domain: string;
|
|
95
|
+
surfaceClass: SurfaceClass;
|
|
96
|
+
surfaces: FunctionSurfaceMap;
|
|
97
|
+
replacedBy: string | undefined;
|
|
98
|
+
rest: {
|
|
99
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
100
|
+
path: string;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
namespace: string;
|
|
104
|
+
method: string;
|
|
105
|
+
};
|
|
106
|
+
mcp: {
|
|
107
|
+
exposed: boolean;
|
|
108
|
+
toolName: string;
|
|
109
|
+
} & McpToolContract & {
|
|
110
|
+
exposed: boolean;
|
|
111
|
+
toolName: string;
|
|
112
|
+
};
|
|
113
|
+
auth: {
|
|
114
|
+
scopes: string[];
|
|
115
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
116
|
+
};
|
|
117
|
+
convex: FunctionConvexTarget | undefined;
|
|
118
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
119
|
+
[x: string]: any;
|
|
120
|
+
}, {
|
|
121
|
+
[x: string]: any;
|
|
122
|
+
}>;
|
|
123
|
+
returns: zod.ZodTypeAny;
|
|
124
|
+
input: zod.ZodTypeAny;
|
|
125
|
+
output: zod.ZodTypeAny;
|
|
126
|
+
openapi: {
|
|
127
|
+
summary: string;
|
|
128
|
+
tags: string[];
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
name: string;
|
|
132
|
+
kind: FunctionKind;
|
|
133
|
+
idempotent: FunctionIdempotency;
|
|
134
|
+
effects: readonly FunctionEffect[];
|
|
135
|
+
invariants: readonly string[] | undefined;
|
|
136
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
137
|
+
domain: string;
|
|
138
|
+
surfaceClass: SurfaceClass;
|
|
139
|
+
surfaces: FunctionSurfaceMap;
|
|
140
|
+
replacedBy: string | undefined;
|
|
141
|
+
rest: {
|
|
142
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
143
|
+
path: string;
|
|
144
|
+
};
|
|
145
|
+
sdk: {
|
|
146
|
+
namespace: string;
|
|
147
|
+
method: string;
|
|
148
|
+
};
|
|
149
|
+
mcp: {
|
|
150
|
+
exposed: boolean;
|
|
151
|
+
toolName: string;
|
|
152
|
+
} & McpToolContract & {
|
|
153
|
+
exposed: boolean;
|
|
154
|
+
toolName: string;
|
|
155
|
+
};
|
|
156
|
+
auth: {
|
|
157
|
+
scopes: string[];
|
|
158
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
159
|
+
};
|
|
160
|
+
convex: FunctionConvexTarget | undefined;
|
|
161
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
162
|
+
[x: string]: any;
|
|
163
|
+
}, {
|
|
164
|
+
[x: string]: any;
|
|
165
|
+
}>;
|
|
166
|
+
returns: zod.ZodTypeAny;
|
|
167
|
+
input: zod.ZodTypeAny;
|
|
168
|
+
output: zod.ZodTypeAny;
|
|
169
|
+
openapi: {
|
|
170
|
+
summary: string;
|
|
171
|
+
tags: string[];
|
|
172
|
+
};
|
|
173
|
+
}, {
|
|
174
|
+
name: string;
|
|
175
|
+
kind: FunctionKind;
|
|
176
|
+
idempotent: FunctionIdempotency;
|
|
177
|
+
effects: readonly FunctionEffect[];
|
|
178
|
+
invariants: readonly string[] | undefined;
|
|
179
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
180
|
+
domain: string;
|
|
181
|
+
surfaceClass: SurfaceClass;
|
|
182
|
+
surfaces: FunctionSurfaceMap;
|
|
183
|
+
replacedBy: string | undefined;
|
|
184
|
+
rest: {
|
|
185
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
186
|
+
path: string;
|
|
187
|
+
};
|
|
188
|
+
sdk: {
|
|
189
|
+
namespace: string;
|
|
190
|
+
method: string;
|
|
191
|
+
};
|
|
192
|
+
mcp: {
|
|
193
|
+
exposed: boolean;
|
|
194
|
+
toolName: string;
|
|
195
|
+
} & McpToolContract & {
|
|
196
|
+
exposed: boolean;
|
|
197
|
+
toolName: string;
|
|
198
|
+
};
|
|
199
|
+
auth: {
|
|
200
|
+
scopes: string[];
|
|
201
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
202
|
+
};
|
|
203
|
+
convex: FunctionConvexTarget | undefined;
|
|
204
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
205
|
+
[x: string]: any;
|
|
206
|
+
}, {
|
|
207
|
+
[x: string]: any;
|
|
208
|
+
}>;
|
|
209
|
+
returns: zod.ZodTypeAny;
|
|
210
|
+
input: zod.ZodTypeAny;
|
|
211
|
+
output: zod.ZodTypeAny;
|
|
212
|
+
openapi: {
|
|
213
|
+
summary: string;
|
|
214
|
+
tags: string[];
|
|
215
|
+
};
|
|
216
|
+
}, {
|
|
217
|
+
name: string;
|
|
218
|
+
kind: FunctionKind;
|
|
219
|
+
idempotent: FunctionIdempotency;
|
|
220
|
+
effects: readonly FunctionEffect[];
|
|
221
|
+
invariants: readonly string[] | undefined;
|
|
222
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
223
|
+
domain: string;
|
|
224
|
+
surfaceClass: SurfaceClass;
|
|
225
|
+
surfaces: FunctionSurfaceMap;
|
|
226
|
+
replacedBy: string | undefined;
|
|
227
|
+
rest: {
|
|
228
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
229
|
+
path: string;
|
|
230
|
+
};
|
|
231
|
+
sdk: {
|
|
232
|
+
namespace: string;
|
|
233
|
+
method: string;
|
|
234
|
+
};
|
|
235
|
+
mcp: {
|
|
236
|
+
exposed: boolean;
|
|
237
|
+
toolName: string;
|
|
238
|
+
} & McpToolContract & {
|
|
239
|
+
exposed: boolean;
|
|
240
|
+
toolName: string;
|
|
241
|
+
};
|
|
242
|
+
auth: {
|
|
243
|
+
scopes: string[];
|
|
244
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
245
|
+
};
|
|
246
|
+
convex: FunctionConvexTarget | undefined;
|
|
247
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
248
|
+
[x: string]: any;
|
|
249
|
+
}, {
|
|
250
|
+
[x: string]: any;
|
|
251
|
+
}>;
|
|
252
|
+
returns: zod.ZodTypeAny;
|
|
253
|
+
input: zod.ZodTypeAny;
|
|
254
|
+
output: zod.ZodTypeAny;
|
|
255
|
+
openapi: {
|
|
256
|
+
summary: string;
|
|
257
|
+
tags: string[];
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
name: string;
|
|
261
|
+
kind: FunctionKind;
|
|
262
|
+
idempotent: FunctionIdempotency;
|
|
263
|
+
effects: readonly FunctionEffect[];
|
|
264
|
+
invariants: readonly string[] | undefined;
|
|
265
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
266
|
+
domain: string;
|
|
267
|
+
surfaceClass: SurfaceClass;
|
|
268
|
+
surfaces: FunctionSurfaceMap;
|
|
269
|
+
replacedBy: string | undefined;
|
|
270
|
+
rest: {
|
|
271
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
272
|
+
path: string;
|
|
273
|
+
};
|
|
274
|
+
sdk: {
|
|
275
|
+
namespace: string;
|
|
276
|
+
method: string;
|
|
277
|
+
};
|
|
278
|
+
mcp: {
|
|
279
|
+
exposed: boolean;
|
|
280
|
+
toolName: string;
|
|
281
|
+
} & McpToolContract & {
|
|
282
|
+
exposed: boolean;
|
|
283
|
+
toolName: string;
|
|
284
|
+
};
|
|
285
|
+
auth: {
|
|
286
|
+
scopes: string[];
|
|
287
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
288
|
+
};
|
|
289
|
+
convex: FunctionConvexTarget | undefined;
|
|
290
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
291
|
+
[x: string]: any;
|
|
292
|
+
}, {
|
|
293
|
+
[x: string]: any;
|
|
294
|
+
}>;
|
|
295
|
+
returns: zod.ZodTypeAny;
|
|
296
|
+
input: zod.ZodTypeAny;
|
|
297
|
+
output: zod.ZodTypeAny;
|
|
298
|
+
openapi: {
|
|
299
|
+
summary: string;
|
|
300
|
+
tags: string[];
|
|
301
|
+
};
|
|
302
|
+
}, {
|
|
303
|
+
name: string;
|
|
304
|
+
kind: FunctionKind;
|
|
305
|
+
idempotent: FunctionIdempotency;
|
|
306
|
+
effects: readonly FunctionEffect[];
|
|
307
|
+
invariants: readonly string[] | undefined;
|
|
308
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
309
|
+
domain: string;
|
|
310
|
+
surfaceClass: SurfaceClass;
|
|
311
|
+
surfaces: FunctionSurfaceMap;
|
|
312
|
+
replacedBy: string | undefined;
|
|
313
|
+
rest: {
|
|
314
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
315
|
+
path: string;
|
|
316
|
+
};
|
|
317
|
+
sdk: {
|
|
318
|
+
namespace: string;
|
|
319
|
+
method: string;
|
|
320
|
+
};
|
|
321
|
+
mcp: {
|
|
322
|
+
exposed: boolean;
|
|
323
|
+
toolName: string;
|
|
324
|
+
} & McpToolContract & {
|
|
325
|
+
exposed: boolean;
|
|
326
|
+
toolName: string;
|
|
327
|
+
};
|
|
328
|
+
auth: {
|
|
329
|
+
scopes: string[];
|
|
330
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
331
|
+
};
|
|
332
|
+
convex: FunctionConvexTarget | undefined;
|
|
333
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
334
|
+
[x: string]: any;
|
|
335
|
+
}, {
|
|
336
|
+
[x: string]: any;
|
|
337
|
+
}>;
|
|
338
|
+
returns: zod.ZodTypeAny;
|
|
339
|
+
input: zod.ZodTypeAny;
|
|
340
|
+
output: zod.ZodTypeAny;
|
|
341
|
+
openapi: {
|
|
342
|
+
summary: string;
|
|
343
|
+
tags: string[];
|
|
344
|
+
};
|
|
345
|
+
}, {
|
|
346
|
+
name: string;
|
|
347
|
+
kind: FunctionKind;
|
|
348
|
+
idempotent: FunctionIdempotency;
|
|
349
|
+
effects: readonly FunctionEffect[];
|
|
350
|
+
invariants: readonly string[] | undefined;
|
|
351
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
352
|
+
domain: string;
|
|
353
|
+
surfaceClass: SurfaceClass;
|
|
354
|
+
surfaces: FunctionSurfaceMap;
|
|
355
|
+
replacedBy: string | undefined;
|
|
356
|
+
rest: {
|
|
357
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
358
|
+
path: string;
|
|
359
|
+
};
|
|
360
|
+
sdk: {
|
|
361
|
+
namespace: string;
|
|
362
|
+
method: string;
|
|
363
|
+
};
|
|
364
|
+
mcp: {
|
|
365
|
+
exposed: boolean;
|
|
366
|
+
toolName: string;
|
|
367
|
+
} & McpToolContract & {
|
|
368
|
+
exposed: boolean;
|
|
369
|
+
toolName: string;
|
|
370
|
+
};
|
|
371
|
+
auth: {
|
|
372
|
+
scopes: string[];
|
|
373
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
374
|
+
};
|
|
375
|
+
convex: FunctionConvexTarget | undefined;
|
|
376
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
377
|
+
[x: string]: any;
|
|
378
|
+
}, {
|
|
379
|
+
[x: string]: any;
|
|
380
|
+
}>;
|
|
381
|
+
returns: zod.ZodTypeAny;
|
|
382
|
+
input: zod.ZodTypeAny;
|
|
383
|
+
output: zod.ZodTypeAny;
|
|
384
|
+
openapi: {
|
|
385
|
+
summary: string;
|
|
386
|
+
tags: string[];
|
|
387
|
+
};
|
|
388
|
+
}, {
|
|
389
|
+
name: string;
|
|
390
|
+
kind: FunctionKind;
|
|
391
|
+
idempotent: FunctionIdempotency;
|
|
392
|
+
effects: readonly FunctionEffect[];
|
|
393
|
+
invariants: readonly string[] | undefined;
|
|
394
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
395
|
+
domain: string;
|
|
396
|
+
surfaceClass: SurfaceClass;
|
|
397
|
+
surfaces: FunctionSurfaceMap;
|
|
398
|
+
replacedBy: string | undefined;
|
|
399
|
+
rest: {
|
|
400
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
401
|
+
path: string;
|
|
402
|
+
};
|
|
403
|
+
sdk: {
|
|
404
|
+
namespace: string;
|
|
405
|
+
method: string;
|
|
406
|
+
};
|
|
407
|
+
mcp: {
|
|
408
|
+
exposed: boolean;
|
|
409
|
+
toolName: string;
|
|
410
|
+
} & McpToolContract & {
|
|
411
|
+
exposed: boolean;
|
|
412
|
+
toolName: string;
|
|
413
|
+
};
|
|
414
|
+
auth: {
|
|
415
|
+
scopes: string[];
|
|
416
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
417
|
+
};
|
|
418
|
+
convex: FunctionConvexTarget | undefined;
|
|
419
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
420
|
+
[x: string]: any;
|
|
421
|
+
}, {
|
|
422
|
+
[x: string]: any;
|
|
423
|
+
}>;
|
|
424
|
+
returns: zod.ZodTypeAny;
|
|
425
|
+
input: zod.ZodTypeAny;
|
|
426
|
+
output: zod.ZodTypeAny;
|
|
427
|
+
openapi: {
|
|
428
|
+
summary: string;
|
|
429
|
+
tags: string[];
|
|
430
|
+
};
|
|
431
|
+
}, {
|
|
432
|
+
name: string;
|
|
433
|
+
kind: FunctionKind;
|
|
434
|
+
idempotent: FunctionIdempotency;
|
|
435
|
+
effects: readonly FunctionEffect[];
|
|
436
|
+
invariants: readonly string[] | undefined;
|
|
437
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
438
|
+
domain: string;
|
|
439
|
+
surfaceClass: SurfaceClass;
|
|
440
|
+
surfaces: FunctionSurfaceMap;
|
|
441
|
+
replacedBy: string | undefined;
|
|
442
|
+
rest: {
|
|
443
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
444
|
+
path: string;
|
|
445
|
+
};
|
|
446
|
+
sdk: {
|
|
447
|
+
namespace: string;
|
|
448
|
+
method: string;
|
|
449
|
+
};
|
|
450
|
+
mcp: {
|
|
451
|
+
exposed: boolean;
|
|
452
|
+
toolName: string;
|
|
453
|
+
} & McpToolContract & {
|
|
454
|
+
exposed: boolean;
|
|
455
|
+
toolName: string;
|
|
456
|
+
};
|
|
457
|
+
auth: {
|
|
458
|
+
scopes: string[];
|
|
459
|
+
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
460
|
+
};
|
|
461
|
+
convex: FunctionConvexTarget | undefined;
|
|
462
|
+
args: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
|
|
463
|
+
[x: string]: any;
|
|
464
|
+
}, {
|
|
465
|
+
[x: string]: any;
|
|
466
|
+
}>;
|
|
467
|
+
returns: zod.ZodTypeAny;
|
|
468
|
+
input: zod.ZodTypeAny;
|
|
469
|
+
output: zod.ZodTypeAny;
|
|
470
|
+
openapi: {
|
|
471
|
+
summary: string;
|
|
472
|
+
tags: string[];
|
|
473
|
+
};
|
|
474
|
+
}];
|
|
475
|
+
|
|
476
|
+
export { coordinationContracts };
|