@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 ontologiesContracts: readonly [{
|
|
@@ -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",
|