@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 tasksContracts: readonly [{
|
|
@@ -1659,6 +1659,59 @@ var REMOVE_LENS_FROM_TOPIC = {
|
|
|
1659
1659
|
tier: "workhorse"
|
|
1660
1660
|
};
|
|
1661
1661
|
|
|
1662
|
+
// src/tool-contracts.context-orientation.ts
|
|
1663
|
+
var LUCERN_ORIENT = {
|
|
1664
|
+
name: "lucern_orient",
|
|
1665
|
+
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.",
|
|
1666
|
+
parameters: {
|
|
1667
|
+
audience: {
|
|
1668
|
+
type: "string",
|
|
1669
|
+
description: "Audience for the primer: agent, human, operator, or developer.",
|
|
1670
|
+
enum: ["agent", "human", "operator", "developer"]
|
|
1671
|
+
},
|
|
1672
|
+
depth: {
|
|
1673
|
+
type: "string",
|
|
1674
|
+
description: "Orientation depth: quick, standard, or deep.",
|
|
1675
|
+
enum: ["quick", "standard", "deep"]
|
|
1676
|
+
},
|
|
1677
|
+
situation: {
|
|
1678
|
+
type: "string",
|
|
1679
|
+
description: "Optional task or query context used to tailor suggested next calls."
|
|
1680
|
+
},
|
|
1681
|
+
includeExamples: {
|
|
1682
|
+
type: "boolean",
|
|
1683
|
+
description: "Whether to include concrete tool-call examples."
|
|
1684
|
+
},
|
|
1685
|
+
includeToolMap: {
|
|
1686
|
+
type: "boolean",
|
|
1687
|
+
description: "Whether to include situation-to-tool routing guidance."
|
|
1688
|
+
},
|
|
1689
|
+
includeFuture: {
|
|
1690
|
+
type: "boolean",
|
|
1691
|
+
description: "Whether to include future exemplar, gauntlet, and training-data capabilities."
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
required: [],
|
|
1695
|
+
response: {
|
|
1696
|
+
description: "Canonical operator primer for Lucern's git-shaped reasoning substrate.",
|
|
1697
|
+
fields: {
|
|
1698
|
+
schemaVersion: "string - lucern_orientation.v1",
|
|
1699
|
+
canonicalMentalModel: "object - concise model of Lucern as git-shaped reasoning state",
|
|
1700
|
+
workflow: "array - recommended branch -> investigate -> prove gate -> merge workflow",
|
|
1701
|
+
grammarMap: "array - primitive-to-git-analogy map for topics, campaigns, worktrees, beliefs, questions, evidence, edges, contradictions, and gates",
|
|
1702
|
+
firstMoves: "array - recommended first tools for a cold-start agent",
|
|
1703
|
+
receiptRules: "array - how to interpret candidateCounts, broadening, coverageWarning, and noDefaultGlobalScan",
|
|
1704
|
+
safetyRules: "array - mutation and completion rules that preserve reasoning lineage",
|
|
1705
|
+
toolMap: "array | undefined - situation-to-tool routing map when requested",
|
|
1706
|
+
examples: "array | undefined - concrete tool-call examples when requested",
|
|
1707
|
+
suggestedNextCalls: "array - safe next tool calls for the current situation"
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
ownerModule: "reasoning-kernel",
|
|
1711
|
+
ontologyPrimitive: "graph",
|
|
1712
|
+
tier: "showcase"
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1662
1715
|
// src/tool-contracts.intelligence-evidence.ts
|
|
1663
1716
|
var DETECT_CONFIRMATION_BIAS = {
|
|
1664
1717
|
name: "detect_confirmation_bias",
|
|
@@ -2709,10 +2762,34 @@ var COMPILE_CONTEXT = {
|
|
|
2709
2762
|
type: "string",
|
|
2710
2763
|
description: "Optional source kind used as a resolver signal, such as cli, worktree, commit, or docs."
|
|
2711
2764
|
},
|
|
2765
|
+
campaign: {
|
|
2766
|
+
type: "number",
|
|
2767
|
+
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."
|
|
2768
|
+
},
|
|
2769
|
+
lane: {
|
|
2770
|
+
type: "string",
|
|
2771
|
+
description: "Optional lane dimension seed. When supplied without topicId, the compiler reads all matching worktrees and their carrier topics."
|
|
2772
|
+
},
|
|
2773
|
+
status: {
|
|
2774
|
+
type: "string",
|
|
2775
|
+
description: "Optional state/status dimension seed for worktrees and graph rows."
|
|
2776
|
+
},
|
|
2777
|
+
principalId: {
|
|
2778
|
+
type: "string",
|
|
2779
|
+
description: "Optional principal seed for work authored, touched, or owned by a human, agent, group, or service principal."
|
|
2780
|
+
},
|
|
2781
|
+
workspaceId: {
|
|
2782
|
+
type: "string",
|
|
2783
|
+
description: "Optional workspace seed used by hosted MCP and SDK clients when compiling tenant-scoped context."
|
|
2784
|
+
},
|
|
2712
2785
|
budget: {
|
|
2713
2786
|
type: "number",
|
|
2714
2787
|
description: "Token budget for prompt injection planning"
|
|
2715
2788
|
},
|
|
2789
|
+
tokenBudget: {
|
|
2790
|
+
type: "number",
|
|
2791
|
+
description: "Compatibility alias for budget. External MCP clients may send tokenBudget when requesting prompt injection planning."
|
|
2792
|
+
},
|
|
2716
2793
|
ranking: {
|
|
2717
2794
|
type: "string",
|
|
2718
2795
|
description: "Ranking profile for context ordering",
|
|
@@ -4619,6 +4696,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
4619
4696
|
update_worktree_metadata: UPDATE_WORKTREE_METADATA,
|
|
4620
4697
|
identity_whoami: IDENTITY_WHOAMI,
|
|
4621
4698
|
resolve_interactive_principal: RESOLVE_INTERACTIVE_PRINCIPAL,
|
|
4699
|
+
lucern_orient: LUCERN_ORIENT,
|
|
4622
4700
|
compile_context: COMPILE_CONTEXT,
|
|
4623
4701
|
record_scope_learning: RECORD_SCOPE_LEARNING,
|
|
4624
4702
|
pipeline_snapshot: PIPELINE_SNAPSHOT,
|
|
@@ -4734,6 +4812,7 @@ function entries(names, surfaceClass, surfaceIntent, surfaces, rationale) {
|
|
|
4734
4812
|
);
|
|
4735
4813
|
}
|
|
4736
4814
|
var MCP_CORE_OPERATION_NAMES = [
|
|
4815
|
+
"lucern_orient",
|
|
4737
4816
|
"compile_context",
|
|
4738
4817
|
"identity_whoami",
|
|
4739
4818
|
"resolve_interactive_principal",
|