@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { F as FunctionEffect } from '../defineFunction-DO97DKs4.js';
|
|
3
|
-
import { M as McpToolContract } from '../tool-contracts-
|
|
3
|
+
import { M as McpToolContract } from '../tool-contracts-B4iWhejG.js';
|
|
4
4
|
|
|
5
5
|
type FunctionKind = "query" | "mutation" | "action";
|
|
6
6
|
type FunctionIdempotency = boolean | "required";
|
|
@@ -428,9 +428,16 @@ var ADD_WORKTREE = {
|
|
|
428
428
|
},
|
|
429
429
|
projectId: {
|
|
430
430
|
type: "string",
|
|
431
|
-
description: "Legacy topicId alias"
|
|
431
|
+
description: "Legacy topicId alias or resolver hint"
|
|
432
|
+
},
|
|
433
|
+
topicId: {
|
|
434
|
+
type: "string",
|
|
435
|
+
description: "Optional topic scope hint for resolver validation"
|
|
436
|
+
},
|
|
437
|
+
topicHint: {
|
|
438
|
+
type: "string",
|
|
439
|
+
description: "Natural-language topic hint for automatic topic resolution"
|
|
432
440
|
},
|
|
433
|
-
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
434
441
|
branchId: {
|
|
435
442
|
type: "string",
|
|
436
443
|
description: "The branch this worktree investigates"
|
|
@@ -528,6 +535,22 @@ var ADD_WORKTREE = {
|
|
|
528
535
|
type: "string",
|
|
529
536
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
530
537
|
},
|
|
538
|
+
tags: {
|
|
539
|
+
type: "array",
|
|
540
|
+
description: "Additional topic-resolution tags for the worktree"
|
|
541
|
+
},
|
|
542
|
+
touchedPaths: {
|
|
543
|
+
type: "array",
|
|
544
|
+
description: "File paths used as topic-resolution signals"
|
|
545
|
+
},
|
|
546
|
+
sourceRef: {
|
|
547
|
+
type: "string",
|
|
548
|
+
description: "Source reference used as a topic-resolution signal"
|
|
549
|
+
},
|
|
550
|
+
sourceKind: {
|
|
551
|
+
type: "string",
|
|
552
|
+
description: "Source kind used as a topic-resolution signal"
|
|
553
|
+
},
|
|
531
554
|
campaign: {
|
|
532
555
|
type: "number",
|
|
533
556
|
description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
|
|
@@ -565,7 +588,7 @@ var ADD_WORKTREE = {
|
|
|
565
588
|
description: "Timestamp when worktree metadata was last reconciled"
|
|
566
589
|
}
|
|
567
590
|
},
|
|
568
|
-
required: ["title"
|
|
591
|
+
required: ["title"],
|
|
569
592
|
response: {
|
|
570
593
|
description: "The created worktree",
|
|
571
594
|
fields: {
|
|
@@ -2062,15 +2085,15 @@ var IDENTITY_WHOAMI = {
|
|
|
2062
2085
|
};
|
|
2063
2086
|
var COMPILE_CONTEXT = {
|
|
2064
2087
|
name: "compile_context",
|
|
2065
|
-
description: "Compile a focused reasoning context
|
|
2088
|
+
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.",
|
|
2066
2089
|
parameters: {
|
|
2067
2090
|
topicId: {
|
|
2068
2091
|
type: "string",
|
|
2069
|
-
description: "
|
|
2092
|
+
description: "Optional topic scope ID. Omit to resolve the topic from query."
|
|
2070
2093
|
},
|
|
2071
2094
|
query: {
|
|
2072
2095
|
type: "string",
|
|
2073
|
-
description: "
|
|
2096
|
+
description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
|
|
2074
2097
|
},
|
|
2075
2098
|
budget: {
|
|
2076
2099
|
type: "number",
|
|
@@ -2094,7 +2117,7 @@ var COMPILE_CONTEXT = {
|
|
|
2094
2117
|
description: "Include related ontological entities in the compiled result"
|
|
2095
2118
|
}
|
|
2096
2119
|
},
|
|
2097
|
-
required: [
|
|
2120
|
+
required: [],
|
|
2098
2121
|
response: {
|
|
2099
2122
|
description: "Compiled context pack for the requested topic",
|
|
2100
2123
|
fields: {
|
|
@@ -2268,18 +2291,60 @@ var CREATE_TASK = {
|
|
|
2268
2291
|
name: "create_task",
|
|
2269
2292
|
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.",
|
|
2270
2293
|
parameters: {
|
|
2271
|
-
title: { type: "string", description: "Task
|
|
2294
|
+
title: { type: "string", description: "Task title" },
|
|
2272
2295
|
topicId: { type: "string", description: "Topic scope" },
|
|
2296
|
+
description: {
|
|
2297
|
+
type: "string",
|
|
2298
|
+
description: "Long-form task description"
|
|
2299
|
+
},
|
|
2273
2300
|
taskType: {
|
|
2274
2301
|
type: "string",
|
|
2275
|
-
description: "
|
|
2276
|
-
enum: [
|
|
2302
|
+
description: "Task taxonomy",
|
|
2303
|
+
enum: [
|
|
2304
|
+
"general",
|
|
2305
|
+
"find_evidence",
|
|
2306
|
+
"verify_claim",
|
|
2307
|
+
"research",
|
|
2308
|
+
"review",
|
|
2309
|
+
"interview",
|
|
2310
|
+
"analysis",
|
|
2311
|
+
"track_metrics"
|
|
2312
|
+
]
|
|
2313
|
+
},
|
|
2314
|
+
priority: {
|
|
2315
|
+
type: "string",
|
|
2316
|
+
description: "Priority",
|
|
2317
|
+
enum: ["urgent", "high", "medium", "low"]
|
|
2318
|
+
},
|
|
2319
|
+
status: {
|
|
2320
|
+
type: "string",
|
|
2321
|
+
description: "Initial status (defaults to todo)",
|
|
2322
|
+
enum: ["todo", "in_progress", "blocked", "done"]
|
|
2323
|
+
},
|
|
2324
|
+
linkedWorktreeId: {
|
|
2325
|
+
type: "string",
|
|
2326
|
+
description: "Worktree this task belongs to"
|
|
2327
|
+
},
|
|
2328
|
+
linkedBeliefId: {
|
|
2329
|
+
type: "string",
|
|
2330
|
+
description: "Belief this task supports"
|
|
2277
2331
|
},
|
|
2278
2332
|
linkedQuestionId: {
|
|
2279
2333
|
type: "string",
|
|
2280
2334
|
description: "Question this task addresses"
|
|
2281
2335
|
},
|
|
2282
|
-
|
|
2336
|
+
assigneeId: {
|
|
2337
|
+
type: "string",
|
|
2338
|
+
description: "Principal assigned to the task"
|
|
2339
|
+
},
|
|
2340
|
+
dueDate: {
|
|
2341
|
+
type: "number",
|
|
2342
|
+
description: "Due date as epoch milliseconds"
|
|
2343
|
+
},
|
|
2344
|
+
tags: {
|
|
2345
|
+
type: "array",
|
|
2346
|
+
description: "Free-form string tags"
|
|
2347
|
+
}
|
|
2283
2348
|
},
|
|
2284
2349
|
required: ["title"],
|
|
2285
2350
|
response: {
|
|
@@ -4362,9 +4427,7 @@ function mcpContractFromArgsSchema(base, args, contractName) {
|
|
|
4362
4427
|
required: converted.filter(([, field]) => field.required).map(([fieldName]) => fieldName)
|
|
4363
4428
|
};
|
|
4364
4429
|
}
|
|
4365
|
-
|
|
4366
|
-
return contract;
|
|
4367
|
-
}
|
|
4430
|
+
var defineFunctionContract = (contract) => contract;
|
|
4368
4431
|
function authUserId(context) {
|
|
4369
4432
|
return context.userId ?? context.principalId ?? "lucern-agent";
|
|
4370
4433
|
}
|
|
@@ -4506,10 +4569,11 @@ var worktreeDecisionGateInputSchema = z.object({
|
|
|
4506
4569
|
decidedBy: z.string().optional().describe("Actor that decided the gate verdict.")
|
|
4507
4570
|
}).passthrough().describe("Decision gate contract for worktree activation or exit.");
|
|
4508
4571
|
var addWorktreeArgs = z.object({
|
|
4509
|
-
title: z.string().
|
|
4572
|
+
title: z.string().describe("Human-readable worktree name or objective."),
|
|
4510
4573
|
name: z.string().optional().describe("Storage-name alias for callers that already use backend naming."),
|
|
4511
|
-
topicId: z.string().describe("
|
|
4512
|
-
projectId: z.string().optional().describe("Legacy topicId alias."),
|
|
4574
|
+
topicId: z.string().optional().describe("Optional primary topic scope hint for resolver validation."),
|
|
4575
|
+
projectId: z.string().optional().describe("Legacy topicId alias/hint."),
|
|
4576
|
+
topicHint: z.string().optional().describe("Natural-language topic hint for automatic topic resolution."),
|
|
4513
4577
|
branchId: z.string().optional().describe("Legacy branch identifier for compatibility with workflow callers."),
|
|
4514
4578
|
objective: z.string().optional().describe("Reasoning objective this worktree is intended to resolve."),
|
|
4515
4579
|
hypothesis: z.string().optional().describe("Testable claim this worktree investigates."),
|
|
@@ -4534,6 +4598,10 @@ var addWorktreeArgs = z.object({
|
|
|
4534
4598
|
autoShape: z.boolean().optional().describe("Whether to invoke inquiry auto-shaping during creation."),
|
|
4535
4599
|
autoFixPolicy: autoFixPolicyInputSchema.optional(),
|
|
4536
4600
|
domainPackId: z.string().optional().describe("Domain pack whose shaping hooks should influence the worktree."),
|
|
4601
|
+
tags: z.array(z.string()).optional().describe("Additional topic-resolution tags for the worktree."),
|
|
4602
|
+
touchedPaths: z.array(z.string()).optional().describe("File paths used as topic-resolution signals."),
|
|
4603
|
+
sourceRef: z.string().optional().describe("Source reference used as a topic-resolution signal."),
|
|
4604
|
+
sourceKind: z.string().optional().describe("Source kind used as a topic-resolution signal."),
|
|
4537
4605
|
campaign: z.number().optional().describe("Top-level pipeline campaign number."),
|
|
4538
4606
|
lane: z.string().optional().describe("Campaign lane for the worktree."),
|
|
4539
4607
|
laneOrderInCampaign: z.number().optional().describe("Ordering for this lane within its campaign."),
|