@lucern/contracts 1.0.10 → 1.0.12
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/CHANGELOG.md +6 -0
- package/dist/function-registry/beliefs.d.ts +1 -1
- package/dist/function-registry/beliefs.js +79 -0
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +1 -1
- package/dist/function-registry/coding.js +79 -0
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +44 -4
- package/dist/function-registry/context.js +101 -0
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +1 -1
- package/dist/function-registry/contracts.js +79 -0
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +1 -1
- package/dist/function-registry/coordination.js +79 -0
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +1 -1
- package/dist/function-registry/edges.js +79 -0
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +1 -1
- package/dist/function-registry/evidence.js +144 -24
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +1 -1
- package/dist/function-registry/graph.js +81 -4
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.js +79 -0
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +1 -1
- package/dist/function-registry/identity.js +79 -0
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.js +79 -0
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +1 -1
- package/dist/function-registry/judgments.js +79 -0
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +1 -1
- package/dist/function-registry/legacy.js +79 -0
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +1 -1
- package/dist/function-registry/lenses.js +79 -0
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +2 -2
- package/dist/function-registry/manifest.js +1 -0
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +1 -1
- package/dist/function-registry/nodes.js +79 -0
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +1 -1
- package/dist/function-registry/ontologies.js +79 -0
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +1 -1
- package/dist/function-registry/pipeline.js +79 -0
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +1 -1
- package/dist/function-registry/questions.js +79 -0
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +1 -1
- package/dist/function-registry/tasks.js +79 -0
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +1 -1
- package/dist/function-registry/topics.js +81 -4
- 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 +1 -1
- package/dist/function-registry/worktrees.js +79 -0
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.js +536 -1
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +831 -4
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.base.d.ts +42 -1
- package/dist/infisical-runtime.base.js +50 -1
- package/dist/infisical-runtime.base.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +102 -0
- package/dist/infisical-runtime.contract.js +170 -1
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/infisical-runtime.platform-secrets.d.ts +102 -0
- package/dist/infisical-runtime.platform-secrets.js +120 -0
- package/dist/infisical-runtime.platform-secrets.js.map +1 -1
- package/dist/infisical-runtime.tenant-secrets.js.map +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +144 -1
- package/dist/manifests/infisical-runtime-manifest.js +170 -1
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/projections/check-convex-args-shape.js +60 -2
- package/dist/projections/check-convex-args-shape.js.map +1 -1
- package/dist/projections/create-evidence.projection.js +60 -2
- package/dist/projections/create-evidence.projection.js.map +1 -1
- package/dist/projections/index.js +60 -2
- package/dist/projections/index.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/manifest.d.ts +20 -20
- package/dist/schemas/tables/kernel/platform.d.ts +4 -4
- package/dist/sdk-tools.contract.js +78 -0
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/sdk-tools.contract.registry.js +78 -0
- package/dist/sdk-tools.contract.registry.js.map +1 -1
- package/dist/sdk-tools.contract.values.js +78 -0
- package/dist/sdk-tools.contract.values.js.map +1 -1
- package/dist/tool-contracts.context-orientation.d.ts +5 -0
- package/dist/tool-contracts.context-orientation.js +56 -0
- package/dist/tool-contracts.context-orientation.js.map +1 -0
- package/dist/tool-contracts.d.ts +1 -0
- package/dist/tool-contracts.js +79 -1
- package/dist/tool-contracts.js.map +1 -1
- package/dist/tool-contracts.questions-listing.js +24 -0
- package/dist/tool-contracts.questions-listing.js.map +1 -1
- package/dist/{tool-contracts.values-DjctSW7S.d.ts → tool-contracts.values-BhxfrXS5.d.ts} +3 -1
- package/dist/tool-contracts.values.d.ts +1 -0
- package/dist/tool-contracts.values.js +79 -1
- package/dist/tool-contracts.values.js.map +1 -1
- package/package.json +1 -1
|
@@ -69,7 +69,7 @@ type FunctionConvexTarget = {
|
|
|
69
69
|
outputProjection?: ContractOutputProjection;
|
|
70
70
|
};
|
|
71
71
|
type FunctionGatewayTarget = {
|
|
72
|
-
handler: "identity.whoami" | "beliefs.list" | "evidence.list" | "questions.list" | "worktrees.get" | "tasks.create" | "tasks.list" | "tasks.update" | "tasks.complete";
|
|
72
|
+
handler: "identity.whoami" | "beliefs.list" | "evidence.get" | "evidence.list" | "evidence.search" | "questions.list" | "worktrees.get" | "tasks.create" | "tasks.list" | "tasks.update" | "tasks.complete" | "context.lucernOrient" | "graph.listIntelligenceQueries" | "topics.graphSpine";
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
declare const contextContracts: readonly [{
|
|
@@ -100,7 +100,7 @@ declare const contextContracts: readonly [{
|
|
|
100
100
|
};
|
|
101
101
|
auth: {
|
|
102
102
|
scopes: string[];
|
|
103
|
-
allowedPrincipalTypes: ("
|
|
103
|
+
allowedPrincipalTypes: ("agent" | "user" | "service" | "group" | "external_viewer")[];
|
|
104
104
|
};
|
|
105
105
|
convex: FunctionConvexTarget | undefined;
|
|
106
106
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -140,7 +140,7 @@ declare const contextContracts: readonly [{
|
|
|
140
140
|
};
|
|
141
141
|
auth: {
|
|
142
142
|
scopes: string[];
|
|
143
|
-
allowedPrincipalTypes: ("
|
|
143
|
+
allowedPrincipalTypes: ("agent" | "user" | "service" | "group" | "external_viewer")[];
|
|
144
144
|
};
|
|
145
145
|
convex: FunctionConvexTarget | undefined;
|
|
146
146
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -180,7 +180,47 @@ declare const contextContracts: readonly [{
|
|
|
180
180
|
};
|
|
181
181
|
auth: {
|
|
182
182
|
scopes: string[];
|
|
183
|
-
allowedPrincipalTypes: ("
|
|
183
|
+
allowedPrincipalTypes: ("agent" | "user" | "service" | "group" | "external_viewer")[];
|
|
184
|
+
};
|
|
185
|
+
convex: FunctionConvexTarget | undefined;
|
|
186
|
+
gateway: FunctionGatewayTarget | undefined;
|
|
187
|
+
args: z.ZodTypeAny;
|
|
188
|
+
returns: z.ZodTypeAny;
|
|
189
|
+
input: z.ZodTypeAny;
|
|
190
|
+
output: z.ZodTypeAny;
|
|
191
|
+
openapi: {
|
|
192
|
+
summary: string;
|
|
193
|
+
tags: string[];
|
|
194
|
+
};
|
|
195
|
+
}, {
|
|
196
|
+
name: string;
|
|
197
|
+
kind: FunctionKind;
|
|
198
|
+
idempotent: FunctionIdempotency;
|
|
199
|
+
effects: readonly FunctionEffect[];
|
|
200
|
+
invariants: readonly string[] | undefined;
|
|
201
|
+
surfaceIntent: FunctionSurfaceIntent;
|
|
202
|
+
domain: string;
|
|
203
|
+
surfaceClass: SurfaceClass;
|
|
204
|
+
surfaces: FunctionSurfaceMap;
|
|
205
|
+
replacedBy: string | undefined;
|
|
206
|
+
rest: {
|
|
207
|
+
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
208
|
+
path: string;
|
|
209
|
+
};
|
|
210
|
+
sdk: {
|
|
211
|
+
namespace: string;
|
|
212
|
+
method: string;
|
|
213
|
+
};
|
|
214
|
+
mcp: {
|
|
215
|
+
exposed: boolean;
|
|
216
|
+
toolName: string;
|
|
217
|
+
} & McpToolContract & {
|
|
218
|
+
exposed: boolean;
|
|
219
|
+
toolName: string;
|
|
220
|
+
};
|
|
221
|
+
auth: {
|
|
222
|
+
scopes: string[];
|
|
223
|
+
allowedPrincipalTypes: ("agent" | "user" | "service" | "group" | "external_viewer")[];
|
|
184
224
|
};
|
|
185
225
|
convex: FunctionConvexTarget | undefined;
|
|
186
226
|
gateway: FunctionGatewayTarget | undefined;
|
|
@@ -1658,6 +1658,59 @@ var REMOVE_LENS_FROM_TOPIC = {
|
|
|
1658
1658
|
tier: "workhorse"
|
|
1659
1659
|
};
|
|
1660
1660
|
|
|
1661
|
+
// src/tool-contracts.context-orientation.ts
|
|
1662
|
+
var LUCERN_ORIENT = {
|
|
1663
|
+
name: "lucern_orient",
|
|
1664
|
+
description: "Load the Lucern reasoning grammar before operating. Like `git help` plus a repository CONTRIBUTING guide for reasoning state - teaches the git-shaped model of topics, campaigns, lanes, worktrees, beliefs, questions, evidence, receipts, gates, and merges.",
|
|
1665
|
+
parameters: {
|
|
1666
|
+
audience: {
|
|
1667
|
+
type: "string",
|
|
1668
|
+
description: "Audience for the primer: agent, human, operator, or developer.",
|
|
1669
|
+
enum: ["agent", "human", "operator", "developer"]
|
|
1670
|
+
},
|
|
1671
|
+
depth: {
|
|
1672
|
+
type: "string",
|
|
1673
|
+
description: "Orientation depth: quick, standard, or deep.",
|
|
1674
|
+
enum: ["quick", "standard", "deep"]
|
|
1675
|
+
},
|
|
1676
|
+
situation: {
|
|
1677
|
+
type: "string",
|
|
1678
|
+
description: "Optional task or query context used to tailor suggested next calls."
|
|
1679
|
+
},
|
|
1680
|
+
includeExamples: {
|
|
1681
|
+
type: "boolean",
|
|
1682
|
+
description: "Whether to include concrete tool-call examples."
|
|
1683
|
+
},
|
|
1684
|
+
includeToolMap: {
|
|
1685
|
+
type: "boolean",
|
|
1686
|
+
description: "Whether to include situation-to-tool routing guidance."
|
|
1687
|
+
},
|
|
1688
|
+
includeFuture: {
|
|
1689
|
+
type: "boolean",
|
|
1690
|
+
description: "Whether to include future exemplar, gauntlet, and training-data capabilities."
|
|
1691
|
+
}
|
|
1692
|
+
},
|
|
1693
|
+
required: [],
|
|
1694
|
+
response: {
|
|
1695
|
+
description: "Canonical operator primer for Lucern's git-shaped reasoning substrate.",
|
|
1696
|
+
fields: {
|
|
1697
|
+
schemaVersion: "string - lucern_orientation.v1",
|
|
1698
|
+
canonicalMentalModel: "object - concise model of Lucern as git-shaped reasoning state",
|
|
1699
|
+
workflow: "array - recommended branch -> investigate -> prove gate -> merge workflow",
|
|
1700
|
+
grammarMap: "array - primitive-to-git-analogy map for topics, campaigns, worktrees, beliefs, questions, evidence, edges, contradictions, and gates",
|
|
1701
|
+
firstMoves: "array - recommended first tools for a cold-start agent",
|
|
1702
|
+
receiptRules: "array - how to interpret candidateCounts, broadening, coverageWarning, and noDefaultGlobalScan",
|
|
1703
|
+
safetyRules: "array - mutation and completion rules that preserve reasoning lineage",
|
|
1704
|
+
toolMap: "array | undefined - situation-to-tool routing map when requested",
|
|
1705
|
+
examples: "array | undefined - concrete tool-call examples when requested",
|
|
1706
|
+
suggestedNextCalls: "array - safe next tool calls for the current situation"
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
ownerModule: "reasoning-kernel",
|
|
1710
|
+
ontologyPrimitive: "graph",
|
|
1711
|
+
tier: "showcase"
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1661
1714
|
// src/tool-contracts.intelligence-evidence.ts
|
|
1662
1715
|
var DETECT_CONFIRMATION_BIAS = {
|
|
1663
1716
|
name: "detect_confirmation_bias",
|
|
@@ -2708,10 +2761,34 @@ var COMPILE_CONTEXT = {
|
|
|
2708
2761
|
type: "string",
|
|
2709
2762
|
description: "Optional source kind used as a resolver signal, such as cli, worktree, commit, or docs."
|
|
2710
2763
|
},
|
|
2764
|
+
campaign: {
|
|
2765
|
+
type: "number",
|
|
2766
|
+
description: "Optional campaign dimension seed. When supplied without topicId, the compiler fans out across all carrier topics for that campaign instead of resolving a single topic."
|
|
2767
|
+
},
|
|
2768
|
+
lane: {
|
|
2769
|
+
type: "string",
|
|
2770
|
+
description: "Optional lane dimension seed. When supplied without topicId, the compiler reads all matching worktrees and their carrier topics."
|
|
2771
|
+
},
|
|
2772
|
+
status: {
|
|
2773
|
+
type: "string",
|
|
2774
|
+
description: "Optional state/status dimension seed for worktrees and graph rows."
|
|
2775
|
+
},
|
|
2776
|
+
principalId: {
|
|
2777
|
+
type: "string",
|
|
2778
|
+
description: "Optional principal seed for work authored, touched, or owned by a human, agent, group, or service principal."
|
|
2779
|
+
},
|
|
2780
|
+
workspaceId: {
|
|
2781
|
+
type: "string",
|
|
2782
|
+
description: "Optional workspace seed used by hosted MCP and SDK clients when compiling tenant-scoped context."
|
|
2783
|
+
},
|
|
2711
2784
|
budget: {
|
|
2712
2785
|
type: "number",
|
|
2713
2786
|
description: "Token budget for prompt injection planning"
|
|
2714
2787
|
},
|
|
2788
|
+
tokenBudget: {
|
|
2789
|
+
type: "number",
|
|
2790
|
+
description: "Compatibility alias for budget. External MCP clients may send tokenBudget when requesting prompt injection planning."
|
|
2791
|
+
},
|
|
2715
2792
|
ranking: {
|
|
2716
2793
|
type: "string",
|
|
2717
2794
|
description: "Ranking profile for context ordering",
|
|
@@ -4618,6 +4695,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
4618
4695
|
update_worktree_metadata: UPDATE_WORKTREE_METADATA,
|
|
4619
4696
|
identity_whoami: IDENTITY_WHOAMI,
|
|
4620
4697
|
resolve_interactive_principal: RESOLVE_INTERACTIVE_PRINCIPAL,
|
|
4698
|
+
lucern_orient: LUCERN_ORIENT,
|
|
4621
4699
|
compile_context: COMPILE_CONTEXT,
|
|
4622
4700
|
record_scope_learning: RECORD_SCOPE_LEARNING,
|
|
4623
4701
|
pipeline_snapshot: PIPELINE_SNAPSHOT,
|
|
@@ -4733,6 +4811,7 @@ function entries(names, surfaceClass, surfaceIntent, surfaces, rationale) {
|
|
|
4733
4811
|
);
|
|
4734
4812
|
}
|
|
4735
4813
|
var MCP_CORE_OPERATION_NAMES = [
|
|
4814
|
+
"lucern_orient",
|
|
4736
4815
|
"compile_context",
|
|
4737
4816
|
"identity_whoami",
|
|
4738
4817
|
"resolve_interactive_principal",
|
|
@@ -5346,6 +5425,14 @@ var observationContextArgs = z.object({
|
|
|
5346
5425
|
limit: z.number().optional().describe("Maximum observations to return."),
|
|
5347
5426
|
status: z.string().optional().describe("Observation status filter.")
|
|
5348
5427
|
});
|
|
5428
|
+
var lucernOrientArgs = z.object({
|
|
5429
|
+
audience: z.enum(["agent", "human", "operator", "developer"]).optional().describe("Audience for the orientation primer."),
|
|
5430
|
+
depth: z.enum(["quick", "standard", "deep"]).optional().describe("How much orientation detail to include."),
|
|
5431
|
+
situation: z.string().optional().describe("Optional task or query context for suggested next calls."),
|
|
5432
|
+
includeExamples: z.boolean().optional().describe("Include concrete tool-call examples."),
|
|
5433
|
+
includeToolMap: z.boolean().optional().describe("Include situation-to-tool routing guidance."),
|
|
5434
|
+
includeFuture: z.boolean().optional().describe("Include future training and pedagogy capabilities.")
|
|
5435
|
+
});
|
|
5349
5436
|
function isRecord(value) {
|
|
5350
5437
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
5351
5438
|
}
|
|
@@ -5373,6 +5460,20 @@ var observationInput = (input, context) => withUserId(
|
|
|
5373
5460
|
context
|
|
5374
5461
|
);
|
|
5375
5462
|
var contextContracts = [
|
|
5463
|
+
surfaceContract({
|
|
5464
|
+
name: "lucern_orient",
|
|
5465
|
+
kind: "query",
|
|
5466
|
+
domain: "context",
|
|
5467
|
+
surfaceClass: "platform_public",
|
|
5468
|
+
path: "/context/orient",
|
|
5469
|
+
sdkNamespace: "context",
|
|
5470
|
+
sdkMethod: "lucernOrient",
|
|
5471
|
+
summary: "Return the canonical Lucern operator orientation primer.",
|
|
5472
|
+
gateway: {
|
|
5473
|
+
handler: "context.lucernOrient"
|
|
5474
|
+
},
|
|
5475
|
+
args: lucernOrientArgs
|
|
5476
|
+
}),
|
|
5376
5477
|
surfaceContract({
|
|
5377
5478
|
name: "compile_context",
|
|
5378
5479
|
kind: "query",
|