@lucern/contracts 1.0.11 → 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 +3 -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
|
@@ -1696,6 +1696,59 @@ var REMOVE_LENS_FROM_TOPIC = {
|
|
|
1696
1696
|
tier: "workhorse"
|
|
1697
1697
|
};
|
|
1698
1698
|
|
|
1699
|
+
// src/tool-contracts.context-orientation.ts
|
|
1700
|
+
var LUCERN_ORIENT = {
|
|
1701
|
+
name: "lucern_orient",
|
|
1702
|
+
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.",
|
|
1703
|
+
parameters: {
|
|
1704
|
+
audience: {
|
|
1705
|
+
type: "string",
|
|
1706
|
+
description: "Audience for the primer: agent, human, operator, or developer.",
|
|
1707
|
+
enum: ["agent", "human", "operator", "developer"]
|
|
1708
|
+
},
|
|
1709
|
+
depth: {
|
|
1710
|
+
type: "string",
|
|
1711
|
+
description: "Orientation depth: quick, standard, or deep.",
|
|
1712
|
+
enum: ["quick", "standard", "deep"]
|
|
1713
|
+
},
|
|
1714
|
+
situation: {
|
|
1715
|
+
type: "string",
|
|
1716
|
+
description: "Optional task or query context used to tailor suggested next calls."
|
|
1717
|
+
},
|
|
1718
|
+
includeExamples: {
|
|
1719
|
+
type: "boolean",
|
|
1720
|
+
description: "Whether to include concrete tool-call examples."
|
|
1721
|
+
},
|
|
1722
|
+
includeToolMap: {
|
|
1723
|
+
type: "boolean",
|
|
1724
|
+
description: "Whether to include situation-to-tool routing guidance."
|
|
1725
|
+
},
|
|
1726
|
+
includeFuture: {
|
|
1727
|
+
type: "boolean",
|
|
1728
|
+
description: "Whether to include future exemplar, gauntlet, and training-data capabilities."
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
required: [],
|
|
1732
|
+
response: {
|
|
1733
|
+
description: "Canonical operator primer for Lucern's git-shaped reasoning substrate.",
|
|
1734
|
+
fields: {
|
|
1735
|
+
schemaVersion: "string - lucern_orientation.v1",
|
|
1736
|
+
canonicalMentalModel: "object - concise model of Lucern as git-shaped reasoning state",
|
|
1737
|
+
workflow: "array - recommended branch -> investigate -> prove gate -> merge workflow",
|
|
1738
|
+
grammarMap: "array - primitive-to-git-analogy map for topics, campaigns, worktrees, beliefs, questions, evidence, edges, contradictions, and gates",
|
|
1739
|
+
firstMoves: "array - recommended first tools for a cold-start agent",
|
|
1740
|
+
receiptRules: "array - how to interpret candidateCounts, broadening, coverageWarning, and noDefaultGlobalScan",
|
|
1741
|
+
safetyRules: "array - mutation and completion rules that preserve reasoning lineage",
|
|
1742
|
+
toolMap: "array | undefined - situation-to-tool routing map when requested",
|
|
1743
|
+
examples: "array | undefined - concrete tool-call examples when requested",
|
|
1744
|
+
suggestedNextCalls: "array - safe next tool calls for the current situation"
|
|
1745
|
+
}
|
|
1746
|
+
},
|
|
1747
|
+
ownerModule: "reasoning-kernel",
|
|
1748
|
+
ontologyPrimitive: "graph",
|
|
1749
|
+
tier: "showcase"
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1699
1752
|
// src/tool-contracts.intelligence-evidence.ts
|
|
1700
1753
|
var DETECT_CONFIRMATION_BIAS = {
|
|
1701
1754
|
name: "detect_confirmation_bias",
|
|
@@ -2746,10 +2799,34 @@ var COMPILE_CONTEXT = {
|
|
|
2746
2799
|
type: "string",
|
|
2747
2800
|
description: "Optional source kind used as a resolver signal, such as cli, worktree, commit, or docs."
|
|
2748
2801
|
},
|
|
2802
|
+
campaign: {
|
|
2803
|
+
type: "number",
|
|
2804
|
+
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."
|
|
2805
|
+
},
|
|
2806
|
+
lane: {
|
|
2807
|
+
type: "string",
|
|
2808
|
+
description: "Optional lane dimension seed. When supplied without topicId, the compiler reads all matching worktrees and their carrier topics."
|
|
2809
|
+
},
|
|
2810
|
+
status: {
|
|
2811
|
+
type: "string",
|
|
2812
|
+
description: "Optional state/status dimension seed for worktrees and graph rows."
|
|
2813
|
+
},
|
|
2814
|
+
principalId: {
|
|
2815
|
+
type: "string",
|
|
2816
|
+
description: "Optional principal seed for work authored, touched, or owned by a human, agent, group, or service principal."
|
|
2817
|
+
},
|
|
2818
|
+
workspaceId: {
|
|
2819
|
+
type: "string",
|
|
2820
|
+
description: "Optional workspace seed used by hosted MCP and SDK clients when compiling tenant-scoped context."
|
|
2821
|
+
},
|
|
2749
2822
|
budget: {
|
|
2750
2823
|
type: "number",
|
|
2751
2824
|
description: "Token budget for prompt injection planning"
|
|
2752
2825
|
},
|
|
2826
|
+
tokenBudget: {
|
|
2827
|
+
type: "number",
|
|
2828
|
+
description: "Compatibility alias for budget. External MCP clients may send tokenBudget when requesting prompt injection planning."
|
|
2829
|
+
},
|
|
2753
2830
|
ranking: {
|
|
2754
2831
|
type: "string",
|
|
2755
2832
|
description: "Ranking profile for context ordering",
|
|
@@ -4656,6 +4733,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
4656
4733
|
update_worktree_metadata: UPDATE_WORKTREE_METADATA,
|
|
4657
4734
|
identity_whoami: IDENTITY_WHOAMI,
|
|
4658
4735
|
resolve_interactive_principal: RESOLVE_INTERACTIVE_PRINCIPAL,
|
|
4736
|
+
lucern_orient: LUCERN_ORIENT,
|
|
4659
4737
|
compile_context: COMPILE_CONTEXT,
|
|
4660
4738
|
record_scope_learning: RECORD_SCOPE_LEARNING,
|
|
4661
4739
|
pipeline_snapshot: PIPELINE_SNAPSHOT,
|
|
@@ -4771,6 +4849,7 @@ function entries(names, surfaceClass, surfaceIntent, surfaces, rationale) {
|
|
|
4771
4849
|
);
|
|
4772
4850
|
}
|
|
4773
4851
|
var MCP_CORE_OPERATION_NAMES = [
|
|
4852
|
+
"lucern_orient",
|
|
4774
4853
|
"compile_context",
|
|
4775
4854
|
"identity_whoami",
|
|
4776
4855
|
"resolve_interactive_principal",
|