@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
|
@@ -429,9 +429,16 @@ var ADD_WORKTREE = {
|
|
|
429
429
|
},
|
|
430
430
|
projectId: {
|
|
431
431
|
type: "string",
|
|
432
|
-
description: "Legacy topicId alias"
|
|
432
|
+
description: "Legacy topicId alias or resolver hint"
|
|
433
|
+
},
|
|
434
|
+
topicId: {
|
|
435
|
+
type: "string",
|
|
436
|
+
description: "Optional topic scope hint for resolver validation"
|
|
437
|
+
},
|
|
438
|
+
topicHint: {
|
|
439
|
+
type: "string",
|
|
440
|
+
description: "Natural-language topic hint for automatic topic resolution"
|
|
433
441
|
},
|
|
434
|
-
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
435
442
|
branchId: {
|
|
436
443
|
type: "string",
|
|
437
444
|
description: "The branch this worktree investigates"
|
|
@@ -529,6 +536,22 @@ var ADD_WORKTREE = {
|
|
|
529
536
|
type: "string",
|
|
530
537
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
531
538
|
},
|
|
539
|
+
tags: {
|
|
540
|
+
type: "array",
|
|
541
|
+
description: "Additional topic-resolution tags for the worktree"
|
|
542
|
+
},
|
|
543
|
+
touchedPaths: {
|
|
544
|
+
type: "array",
|
|
545
|
+
description: "File paths used as topic-resolution signals"
|
|
546
|
+
},
|
|
547
|
+
sourceRef: {
|
|
548
|
+
type: "string",
|
|
549
|
+
description: "Source reference used as a topic-resolution signal"
|
|
550
|
+
},
|
|
551
|
+
sourceKind: {
|
|
552
|
+
type: "string",
|
|
553
|
+
description: "Source kind used as a topic-resolution signal"
|
|
554
|
+
},
|
|
532
555
|
campaign: {
|
|
533
556
|
type: "number",
|
|
534
557
|
description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
|
|
@@ -566,7 +589,7 @@ var ADD_WORKTREE = {
|
|
|
566
589
|
description: "Timestamp when worktree metadata was last reconciled"
|
|
567
590
|
}
|
|
568
591
|
},
|
|
569
|
-
required: ["title"
|
|
592
|
+
required: ["title"],
|
|
570
593
|
response: {
|
|
571
594
|
description: "The created worktree",
|
|
572
595
|
fields: {
|
|
@@ -2063,15 +2086,15 @@ var IDENTITY_WHOAMI = {
|
|
|
2063
2086
|
};
|
|
2064
2087
|
var COMPILE_CONTEXT = {
|
|
2065
2088
|
name: "compile_context",
|
|
2066
|
-
description: "Compile a focused reasoning context
|
|
2089
|
+
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.",
|
|
2067
2090
|
parameters: {
|
|
2068
2091
|
topicId: {
|
|
2069
2092
|
type: "string",
|
|
2070
|
-
description: "
|
|
2093
|
+
description: "Optional topic scope ID. Omit to resolve the topic from query."
|
|
2071
2094
|
},
|
|
2072
2095
|
query: {
|
|
2073
2096
|
type: "string",
|
|
2074
|
-
description: "
|
|
2097
|
+
description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
|
|
2075
2098
|
},
|
|
2076
2099
|
budget: {
|
|
2077
2100
|
type: "number",
|
|
@@ -2095,7 +2118,7 @@ var COMPILE_CONTEXT = {
|
|
|
2095
2118
|
description: "Include related ontological entities in the compiled result"
|
|
2096
2119
|
}
|
|
2097
2120
|
},
|
|
2098
|
-
required: [
|
|
2121
|
+
required: [],
|
|
2099
2122
|
response: {
|
|
2100
2123
|
description: "Compiled context pack for the requested topic",
|
|
2101
2124
|
fields: {
|
|
@@ -2269,18 +2292,60 @@ var CREATE_TASK = {
|
|
|
2269
2292
|
name: "create_task",
|
|
2270
2293
|
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.",
|
|
2271
2294
|
parameters: {
|
|
2272
|
-
title: { type: "string", description: "Task
|
|
2295
|
+
title: { type: "string", description: "Task title" },
|
|
2273
2296
|
topicId: { type: "string", description: "Topic scope" },
|
|
2297
|
+
description: {
|
|
2298
|
+
type: "string",
|
|
2299
|
+
description: "Long-form task description"
|
|
2300
|
+
},
|
|
2274
2301
|
taskType: {
|
|
2275
2302
|
type: "string",
|
|
2276
|
-
description: "
|
|
2277
|
-
enum: [
|
|
2303
|
+
description: "Task taxonomy",
|
|
2304
|
+
enum: [
|
|
2305
|
+
"general",
|
|
2306
|
+
"find_evidence",
|
|
2307
|
+
"verify_claim",
|
|
2308
|
+
"research",
|
|
2309
|
+
"review",
|
|
2310
|
+
"interview",
|
|
2311
|
+
"analysis",
|
|
2312
|
+
"track_metrics"
|
|
2313
|
+
]
|
|
2314
|
+
},
|
|
2315
|
+
priority: {
|
|
2316
|
+
type: "string",
|
|
2317
|
+
description: "Priority",
|
|
2318
|
+
enum: ["urgent", "high", "medium", "low"]
|
|
2319
|
+
},
|
|
2320
|
+
status: {
|
|
2321
|
+
type: "string",
|
|
2322
|
+
description: "Initial status (defaults to todo)",
|
|
2323
|
+
enum: ["todo", "in_progress", "blocked", "done"]
|
|
2324
|
+
},
|
|
2325
|
+
linkedWorktreeId: {
|
|
2326
|
+
type: "string",
|
|
2327
|
+
description: "Worktree this task belongs to"
|
|
2328
|
+
},
|
|
2329
|
+
linkedBeliefId: {
|
|
2330
|
+
type: "string",
|
|
2331
|
+
description: "Belief this task supports"
|
|
2278
2332
|
},
|
|
2279
2333
|
linkedQuestionId: {
|
|
2280
2334
|
type: "string",
|
|
2281
2335
|
description: "Question this task addresses"
|
|
2282
2336
|
},
|
|
2283
|
-
|
|
2337
|
+
assigneeId: {
|
|
2338
|
+
type: "string",
|
|
2339
|
+
description: "Principal assigned to the task"
|
|
2340
|
+
},
|
|
2341
|
+
dueDate: {
|
|
2342
|
+
type: "number",
|
|
2343
|
+
description: "Due date as epoch milliseconds"
|
|
2344
|
+
},
|
|
2345
|
+
tags: {
|
|
2346
|
+
type: "array",
|
|
2347
|
+
description: "Free-form string tags"
|
|
2348
|
+
}
|
|
2284
2349
|
},
|
|
2285
2350
|
required: ["title"],
|
|
2286
2351
|
response: {
|
|
@@ -4363,9 +4428,7 @@ function mcpContractFromArgsSchema(base, args, contractName) {
|
|
|
4363
4428
|
required: converted.filter(([, field]) => field.required).map(([fieldName]) => fieldName)
|
|
4364
4429
|
};
|
|
4365
4430
|
}
|
|
4366
|
-
|
|
4367
|
-
return contract;
|
|
4368
|
-
}
|
|
4431
|
+
var defineFunctionContract = (contract) => contract;
|
|
4369
4432
|
function authUserId(context) {
|
|
4370
4433
|
return context.userId ?? context.principalId ?? "lucern-agent";
|
|
4371
4434
|
}
|