@lucern/contracts 0.3.0-alpha.6 → 0.3.0-alpha.8
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 +4 -0
- package/dist/context-pack.contract.d.ts +5 -3
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{dsl-BgpoVOVQ.d.ts → dsl-djCRfuWC.d.ts} +1 -1
- package/dist/dsl.d.ts +1 -1
- package/dist/dsl.js +1 -4
- package/dist/dsl.js.map +1 -1
- package/dist/{edge-policy-manifest-DpmTtjmm.d.ts → edge-policy-manifest-Byv6cQPP.d.ts} +1 -1
- package/dist/function-registry/beliefs.js +77 -14
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +77 -14
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.js +83 -17
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +77 -14
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +77 -14
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +77 -14
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.js +81 -15
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.js +77 -14
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +3 -3
- package/dist/function-registry/helpers.js +77 -14
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +77 -14
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +2 -2
- package/dist/function-registry/index.js +80 -17
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.js +77 -14
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +77 -14
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.js +77 -14
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +1 -1
- package/dist/function-registry/ontologies.js +77 -14
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.js +77 -14
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.js +77 -14
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +17 -17
- package/dist/function-registry/tasks.js +121 -16
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.js +77 -14
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +1 -1
- package/dist/function-registry/worktrees.js +85 -17
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/function-registry-input-audit.js +4 -2
- package/dist/function-registry-input-audit.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +106 -18
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.js +5 -0
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/lens-filter.contract.js +4 -3
- package/dist/lens-filter.contract.js.map +1 -1
- package/dist/lens-workflow.contract.js +4 -3
- package/dist/lens-workflow.contract.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.d.ts +1 -1
- package/dist/manifests/infisical-runtime-manifest.js +5 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/manifests/tenant-client-manifest.d.ts +20 -1
- package/dist/manifests/tenant-client-manifest.js +23 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -1
- package/dist/projections/check-convex-args-shape.js +4 -1
- package/dist/projections/check-convex-args-shape.js.map +1 -1
- package/dist/projections/create-evidence.projection.js +4 -1
- package/dist/projections/create-evidence.projection.js.map +1 -1
- package/dist/projections/index.js +4 -1
- package/dist/projections/index.js.map +1 -1
- package/dist/schema-helpers/enumValidation.js +2 -5
- package/dist/schema-helpers/enumValidation.js.map +1 -1
- package/dist/schema-helpers/spine/nodes/decision.js +2 -1
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +1 -1
- package/dist/{sdk-tools.contract-Ng8ULxjr.d.ts → sdk-tools.contract-Ci8bkoai.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +76 -11
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +4 -4
- package/dist/tenant-bootstrap-seed.contract.js +2 -2
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -1
- package/dist/tenant-client.contract.d.ts +20 -1
- package/dist/tenant-client.contract.js +23 -0
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/{tool-contracts-CYXVPN4K.d.ts → tool-contracts-B4iWhejG.d.ts} +1 -1
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +76 -11
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,11 +22,11 @@ export { codingContracts } from './coding.js';
|
|
|
22
22
|
export { legacyContracts } from './legacy.js';
|
|
23
23
|
import 'zod';
|
|
24
24
|
import '../defineFunction-DO97DKs4.js';
|
|
25
|
-
import '../tool-contracts-
|
|
25
|
+
import '../tool-contracts-B4iWhejG.js';
|
|
26
26
|
|
|
27
27
|
declare const ALL_FUNCTION_CONTRACTS: readonly FunctionContract[];
|
|
28
28
|
declare const FUNCTION_SURFACE_CONTRACTS: readonly FunctionContract[];
|
|
29
29
|
declare const FUNCTION_CONTRACTS_BY_NAME: Map<string, FunctionContract>;
|
|
30
|
-
declare
|
|
30
|
+
declare const getFunctionContract: (name: string) => FunctionContract | undefined;
|
|
31
31
|
|
|
32
32
|
export { ALL_FUNCTION_CONTRACTS, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, FunctionContract, getFunctionContract };
|
|
@@ -464,9 +464,16 @@ var ADD_WORKTREE = {
|
|
|
464
464
|
},
|
|
465
465
|
projectId: {
|
|
466
466
|
type: "string",
|
|
467
|
-
description: "Legacy topicId alias"
|
|
467
|
+
description: "Legacy topicId alias or resolver hint"
|
|
468
|
+
},
|
|
469
|
+
topicId: {
|
|
470
|
+
type: "string",
|
|
471
|
+
description: "Optional topic scope hint for resolver validation"
|
|
472
|
+
},
|
|
473
|
+
topicHint: {
|
|
474
|
+
type: "string",
|
|
475
|
+
description: "Natural-language topic hint for automatic topic resolution"
|
|
468
476
|
},
|
|
469
|
-
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
470
477
|
branchId: {
|
|
471
478
|
type: "string",
|
|
472
479
|
description: "The branch this worktree investigates"
|
|
@@ -564,6 +571,22 @@ var ADD_WORKTREE = {
|
|
|
564
571
|
type: "string",
|
|
565
572
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
566
573
|
},
|
|
574
|
+
tags: {
|
|
575
|
+
type: "array",
|
|
576
|
+
description: "Additional topic-resolution tags for the worktree"
|
|
577
|
+
},
|
|
578
|
+
touchedPaths: {
|
|
579
|
+
type: "array",
|
|
580
|
+
description: "File paths used as topic-resolution signals"
|
|
581
|
+
},
|
|
582
|
+
sourceRef: {
|
|
583
|
+
type: "string",
|
|
584
|
+
description: "Source reference used as a topic-resolution signal"
|
|
585
|
+
},
|
|
586
|
+
sourceKind: {
|
|
587
|
+
type: "string",
|
|
588
|
+
description: "Source kind used as a topic-resolution signal"
|
|
589
|
+
},
|
|
567
590
|
campaign: {
|
|
568
591
|
type: "number",
|
|
569
592
|
description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
|
|
@@ -601,7 +624,7 @@ var ADD_WORKTREE = {
|
|
|
601
624
|
description: "Timestamp when worktree metadata was last reconciled"
|
|
602
625
|
}
|
|
603
626
|
},
|
|
604
|
-
required: ["title"
|
|
627
|
+
required: ["title"],
|
|
605
628
|
response: {
|
|
606
629
|
description: "The created worktree",
|
|
607
630
|
fields: {
|
|
@@ -2098,15 +2121,15 @@ var IDENTITY_WHOAMI = {
|
|
|
2098
2121
|
};
|
|
2099
2122
|
var COMPILE_CONTEXT = {
|
|
2100
2123
|
name: "compile_context",
|
|
2101
|
-
description: "Compile a focused reasoning context
|
|
2124
|
+
description: "Compile a focused reasoning context. If topicId is omitted, Lucern resolves the best topic from the query. Like `git log --graph --decorate` for the reasoning substrate \u2014 returns the canonical Pillar 3 context pack through the public API shape.",
|
|
2102
2125
|
parameters: {
|
|
2103
2126
|
topicId: {
|
|
2104
2127
|
type: "string",
|
|
2105
|
-
description: "
|
|
2128
|
+
description: "Optional topic scope ID. Omit to resolve the topic from query."
|
|
2106
2129
|
},
|
|
2107
2130
|
query: {
|
|
2108
2131
|
type: "string",
|
|
2109
|
-
description: "
|
|
2132
|
+
description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
|
|
2110
2133
|
},
|
|
2111
2134
|
budget: {
|
|
2112
2135
|
type: "number",
|
|
@@ -2130,7 +2153,7 @@ var COMPILE_CONTEXT = {
|
|
|
2130
2153
|
description: "Include related ontological entities in the compiled result"
|
|
2131
2154
|
}
|
|
2132
2155
|
},
|
|
2133
|
-
required: [
|
|
2156
|
+
required: [],
|
|
2134
2157
|
response: {
|
|
2135
2158
|
description: "Compiled context pack for the requested topic",
|
|
2136
2159
|
fields: {
|
|
@@ -2304,18 +2327,60 @@ var CREATE_TASK = {
|
|
|
2304
2327
|
name: "create_task",
|
|
2305
2328
|
description: "Create an execution task tied to the reasoning state. Like `git task` \u2014 tracks concrete work items (calls to make, data to gather, analyses to run) linked to questions, beliefs, or worktrees.",
|
|
2306
2329
|
parameters: {
|
|
2307
|
-
title: { type: "string", description: "Task
|
|
2330
|
+
title: { type: "string", description: "Task title" },
|
|
2308
2331
|
topicId: { type: "string", description: "Topic scope" },
|
|
2332
|
+
description: {
|
|
2333
|
+
type: "string",
|
|
2334
|
+
description: "Long-form task description"
|
|
2335
|
+
},
|
|
2309
2336
|
taskType: {
|
|
2310
2337
|
type: "string",
|
|
2311
|
-
description: "
|
|
2312
|
-
enum: [
|
|
2338
|
+
description: "Task taxonomy",
|
|
2339
|
+
enum: [
|
|
2340
|
+
"general",
|
|
2341
|
+
"find_evidence",
|
|
2342
|
+
"verify_claim",
|
|
2343
|
+
"research",
|
|
2344
|
+
"review",
|
|
2345
|
+
"interview",
|
|
2346
|
+
"analysis",
|
|
2347
|
+
"track_metrics"
|
|
2348
|
+
]
|
|
2349
|
+
},
|
|
2350
|
+
priority: {
|
|
2351
|
+
type: "string",
|
|
2352
|
+
description: "Priority",
|
|
2353
|
+
enum: ["urgent", "high", "medium", "low"]
|
|
2354
|
+
},
|
|
2355
|
+
status: {
|
|
2356
|
+
type: "string",
|
|
2357
|
+
description: "Initial status (defaults to todo)",
|
|
2358
|
+
enum: ["todo", "in_progress", "blocked", "done"]
|
|
2359
|
+
},
|
|
2360
|
+
linkedWorktreeId: {
|
|
2361
|
+
type: "string",
|
|
2362
|
+
description: "Worktree this task belongs to"
|
|
2363
|
+
},
|
|
2364
|
+
linkedBeliefId: {
|
|
2365
|
+
type: "string",
|
|
2366
|
+
description: "Belief this task supports"
|
|
2313
2367
|
},
|
|
2314
2368
|
linkedQuestionId: {
|
|
2315
2369
|
type: "string",
|
|
2316
2370
|
description: "Question this task addresses"
|
|
2317
2371
|
},
|
|
2318
|
-
|
|
2372
|
+
assigneeId: {
|
|
2373
|
+
type: "string",
|
|
2374
|
+
description: "Principal assigned to the task"
|
|
2375
|
+
},
|
|
2376
|
+
dueDate: {
|
|
2377
|
+
type: "number",
|
|
2378
|
+
description: "Due date as epoch milliseconds"
|
|
2379
|
+
},
|
|
2380
|
+
tags: {
|
|
2381
|
+
type: "array",
|
|
2382
|
+
description: "Free-form string tags"
|
|
2383
|
+
}
|
|
2319
2384
|
},
|
|
2320
2385
|
required: ["title"],
|
|
2321
2386
|
response: {
|
|
@@ -4438,9 +4503,7 @@ function mcpContractFromArgsSchema(base, args, contractName) {
|
|
|
4438
4503
|
required: converted.filter(([, field]) => field.required).map(([fieldName]) => fieldName)
|
|
4439
4504
|
};
|
|
4440
4505
|
}
|
|
4441
|
-
|
|
4442
|
-
return contract;
|
|
4443
|
-
}
|
|
4506
|
+
var defineFunctionContract = (contract) => contract;
|
|
4444
4507
|
function classifyContract(contract, surfaceClass) {
|
|
4445
4508
|
return {
|
|
4446
4509
|
...contract,
|
|
@@ -4600,9 +4663,9 @@ var FUNCTION_SURFACE_CONTRACTS = ALL_FUNCTION_CONTRACTS;
|
|
|
4600
4663
|
var FUNCTION_CONTRACTS_BY_NAME = new Map(
|
|
4601
4664
|
ALL_FUNCTION_CONTRACTS.map((contract) => [contract.name, contract])
|
|
4602
4665
|
);
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4666
|
+
var getFunctionContract = FUNCTION_CONTRACTS_BY_NAME.get.bind(
|
|
4667
|
+
FUNCTION_CONTRACTS_BY_NAME
|
|
4668
|
+
);
|
|
4606
4669
|
|
|
4607
4670
|
export { ALL_FUNCTION_CONTRACTS, DUPLICATE_OPERATION_NAMES, FORBIDDEN_APPLICATION_OPERATION_NAMES, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, LEGACY_COMPAT_OPERATION_NAMES, LUCERN_OPERATION_MANIFEST, MCP_ANALYSIS_PLATFORM_OPERATION_NAMES, MCP_ANALYSIS_TENANT_OPERATION_NAMES, MCP_AUTOMATION_OPERATION_NAMES, MCP_CORE_OPERATION_NAMES, MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES, MCP_GOVERNANCE_TENANT_OPERATION_NAMES, MCP_ONLY_INTERNAL_OPERATION_NAMES, MCP_WORKFLOW_PLATFORM_OPERATION_NAMES, MCP_WORKFLOW_TENANT_OPERATION_NAMES, PLATFORM_INTERNAL_OPERATION_NAMES, PLATFORM_PUBLIC_OPERATION_NAMES, SDK_ONLY_OPERATION_NAMES, TENANT_PUBLIC_OPERATION_NAMES, argsSchemaFromMcpContract, assertSurfaceCoverage, authUserId, classifyContract, compactRecord, defineFunctionContract, getFunctionContract, inputSchemaFromMcpContract, jsonObjectSchema, recordValue, surfaceContract, surfaceEnabled, surfaceIntentGateViolations, surfaceMcpContract, withCreatedBy, withUserId };
|
|
4608
4671
|
//# sourceMappingURL=index.js.map
|