@lucern/contracts 0.3.0-alpha.3 → 0.3.0-alpha.4
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/dist/component-host-boundary.contract.d.ts +41 -0
- package/dist/component-host-boundary.contract.js +54 -0
- package/dist/component-host-boundary.contract.js.map +1 -0
- package/dist/function-registry/beliefs.d.ts +41 -41
- package/dist/function-registry/beliefs.js +202 -8
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +187 -8
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +13 -13
- package/dist/function-registry/context.js +187 -9
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +158 -5
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +158 -5
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +169 -6
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +33 -33
- package/dist/function-registry/evidence.js +202 -9
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +53 -53
- package/dist/function-registry/graph.js +217 -12
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +1 -1
- package/dist/function-registry/helpers.js +158 -5
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +158 -5
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +1 -1
- package/dist/function-registry/index.js +158 -5
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +9 -9
- package/dist/function-registry/judgments.js +170 -8
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +158 -5
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +17 -17
- package/dist/function-registry/lenses.js +181 -8
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +3 -3
- package/dist/function-registry/manifest.js +1 -1
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +45 -45
- package/dist/function-registry/ontologies.js +176 -11
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +13 -13
- package/dist/function-registry/pipeline.js +167 -8
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +49 -49
- package/dist/function-registry/questions.js +255 -13
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +158 -5
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +21 -21
- package/dist/function-registry/topics.js +172 -8
- 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 +80 -41
- package/dist/function-registry/worktrees.js +292 -17
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/function-registry-input-audit.d.ts +13 -0
- package/dist/function-registry-input-audit.js +164 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +1 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +1 -1
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/index.d.ts +188 -35
- package/dist/index.js +1370 -17
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +174 -0
- package/dist/infisical-runtime.contract.js +192 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/schemas/index.js +3 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +935 -905
- package/dist/schemas/manifest.js +3 -1
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/identity/platform.d.ts +10 -10
- package/dist/schemas/tables/kernel/epistemic.d.ts +6 -6
- package/dist/schemas/tables/kernel/infra.d.ts +4 -4
- package/dist/schemas/tables/kernel/intelligence.d.ts +10 -10
- package/dist/schemas/tables/kernel/lens.d.ts +4 -4
- package/dist/schemas/tables/kernel/platform.d.ts +12 -12
- package/dist/schemas/tables/kernel/spine.d.ts +2 -2
- package/dist/schemas/tables/kernel/task.d.ts +42 -42
- package/dist/schemas/tables/kernel/worktree.d.ts +62 -62
- package/dist/schemas/tables/mc/identity.d.ts +2 -2
- package/dist/schemas/tables/mc/pack.d.ts +20 -20
- package/dist/schemas/tables/mc/registry.d.ts +4 -4
- package/dist/schemas/tables/mc/workspace.d.ts +9 -3
- package/dist/schemas/tables/mc/workspace.js +3 -1
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +1 -1
- package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-CD-N1Jf7.d.ts} +1 -1
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +157 -4
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1097 -0
- package/dist/tenant-bootstrap-seed.contract.js +651 -0
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
- package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
- package/dist/tenant-bootstrap-seed.defaults.js +303 -0
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-BcKz-VGj.d.ts} +4 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +158 -5
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './tool-contracts-
|
|
2
|
-
export { b as ADD_NOTE_TO_WORKTREE, x as ADD_RESEARCH_ACTION, A as ADVANCE_WORKTREE_PHASE, P as ALL_SDK_TOOL_CONTRACTS, V as ALL_SDK_TOOL_NAMES, n as ANALYZE_BELIEF_CLUSTER_CANDIDATES, m as ANALYZE_BELIEF_CRITICALITY, q as ANALYZE_REASONING_DEPTH, g as COMPLETE_EVIDENCE_REVIEW, f as COMPLETE_HYPOTHESIS_FORMATION, o as CREATE_BELIEF_CONDITIONAL, t as CREATE_EVIDENCE_TASK, C as CREATE_SYNTHESIZED_BELIEF, I as DETECT_ANCHORING_BIAS, J as DETECT_SOURCE_CONCENTRATION, E as EXPLORE_CONNECTIONS, M as FIND_SEMANTIC_BRIDGES, N as FIND_SEMANTIC_ORPHANS, K as FIND_SOFT_CONTRADICTIONS, H as GET_BELIEFS_BY_EPISTEMIC_STATUS, G as GET_BELIEF_RELATIONSHIPS, h as GET_BELIEF_SUPPORT_CHAIN, D as GET_CAUSAL_CHAINS, B as GET_CHALLENGED_BELIEFS, k as GET_COLLECTION_CONVICTION, l as GET_CONVICTION_TREND, i as GET_DEEP_LINEAGE, r as GET_EVIDENCE_BY_METHODOLOGY, p as GET_NECESSARY_EVIDENCE, F as GET_NON_CONSENSUS_BELIEFS, y as GET_PREDICTIONS, z as GET_SURPRISE_DETECTION, w as GET_TASK_COUNTS, j as GRAPH_AWARE_SEARCH, e as LINK_BELIEF_TO_WORKTREE, L as LINK_DOCUMENT_TO_WORKTREE, c as LINK_EVIDENCE_TO_WORKTREE, d as LINK_QUESTION_TO_WORKTREE, u as LIST_TASKS, R as REFINE_WORKTREE_BELIEF, O as SDK_ONLY_TOOL_CONTRACTS, Q as SDK_ONLY_TOOL_NAMES, a as START_WORKTREE, S as SdkToolContract, T as TRACE_PROVENANCE, v as UPDATE_TASK, U as UPDATE_WORKTREE_PHASE, W as validateSdkGitSemantics } from './sdk-tools.contract-
|
|
1
|
+
import './tool-contracts-BcKz-VGj.js';
|
|
2
|
+
export { b as ADD_NOTE_TO_WORKTREE, x as ADD_RESEARCH_ACTION, A as ADVANCE_WORKTREE_PHASE, P as ALL_SDK_TOOL_CONTRACTS, V as ALL_SDK_TOOL_NAMES, n as ANALYZE_BELIEF_CLUSTER_CANDIDATES, m as ANALYZE_BELIEF_CRITICALITY, q as ANALYZE_REASONING_DEPTH, g as COMPLETE_EVIDENCE_REVIEW, f as COMPLETE_HYPOTHESIS_FORMATION, o as CREATE_BELIEF_CONDITIONAL, t as CREATE_EVIDENCE_TASK, C as CREATE_SYNTHESIZED_BELIEF, I as DETECT_ANCHORING_BIAS, J as DETECT_SOURCE_CONCENTRATION, E as EXPLORE_CONNECTIONS, M as FIND_SEMANTIC_BRIDGES, N as FIND_SEMANTIC_ORPHANS, K as FIND_SOFT_CONTRADICTIONS, H as GET_BELIEFS_BY_EPISTEMIC_STATUS, G as GET_BELIEF_RELATIONSHIPS, h as GET_BELIEF_SUPPORT_CHAIN, D as GET_CAUSAL_CHAINS, B as GET_CHALLENGED_BELIEFS, k as GET_COLLECTION_CONVICTION, l as GET_CONVICTION_TREND, i as GET_DEEP_LINEAGE, r as GET_EVIDENCE_BY_METHODOLOGY, p as GET_NECESSARY_EVIDENCE, F as GET_NON_CONSENSUS_BELIEFS, y as GET_PREDICTIONS, z as GET_SURPRISE_DETECTION, w as GET_TASK_COUNTS, j as GRAPH_AWARE_SEARCH, e as LINK_BELIEF_TO_WORKTREE, L as LINK_DOCUMENT_TO_WORKTREE, c as LINK_EVIDENCE_TO_WORKTREE, d as LINK_QUESTION_TO_WORKTREE, u as LIST_TASKS, R as REFINE_WORKTREE_BELIEF, O as SDK_ONLY_TOOL_CONTRACTS, Q as SDK_ONLY_TOOL_NAMES, a as START_WORKTREE, S as SdkToolContract, T as TRACE_PROVENANCE, v as UPDATE_TASK, U as UPDATE_WORKTREE_PHASE, W as validateSdkGitSemantics } from './sdk-tools.contract-CD-N1Jf7.js';
|
|
@@ -418,6 +418,14 @@ var ADD_WORKTREE = {
|
|
|
418
418
|
description: "Check out a branch into an active worktree for investigation. Like `git worktree add <branch>` \u2014 creates independent working state on a thematic branch. Beliefs committed within the worktree can be freely amended (draft code on a feature branch). When investigation is complete, `merge` integrates findings into main.",
|
|
419
419
|
parameters: {
|
|
420
420
|
title: { type: "string", description: "Worktree name/objective" },
|
|
421
|
+
name: {
|
|
422
|
+
type: "string",
|
|
423
|
+
description: "Optional storage-name alias for callers that already use backend naming"
|
|
424
|
+
},
|
|
425
|
+
projectId: {
|
|
426
|
+
type: "string",
|
|
427
|
+
description: "Legacy topicId alias"
|
|
428
|
+
},
|
|
421
429
|
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
422
430
|
branchId: {
|
|
423
431
|
type: "string",
|
|
@@ -431,14 +439,87 @@ var ADD_WORKTREE = {
|
|
|
431
439
|
type: "string",
|
|
432
440
|
description: "The testable claim this worktree investigates"
|
|
433
441
|
},
|
|
442
|
+
rationale: {
|
|
443
|
+
type: "string",
|
|
444
|
+
description: "Why this worktree exists and why it belongs in the campaign"
|
|
445
|
+
},
|
|
446
|
+
worktreeType: {
|
|
447
|
+
type: "string",
|
|
448
|
+
description: "Schema-enum worktree type used by the kernel lifecycle and retrieval layers"
|
|
449
|
+
},
|
|
450
|
+
gate: {
|
|
451
|
+
type: "string",
|
|
452
|
+
description: "Exit gate name for this worktree"
|
|
453
|
+
},
|
|
454
|
+
startDate: {
|
|
455
|
+
type: "number",
|
|
456
|
+
description: "Planned start timestamp in milliseconds since epoch"
|
|
457
|
+
},
|
|
458
|
+
endDate: {
|
|
459
|
+
type: "number",
|
|
460
|
+
description: "Planned end timestamp in milliseconds since epoch"
|
|
461
|
+
},
|
|
462
|
+
durationWeeks: {
|
|
463
|
+
type: "number",
|
|
464
|
+
description: "Planned duration in weeks"
|
|
465
|
+
},
|
|
466
|
+
confidenceImpact: {
|
|
467
|
+
type: "string",
|
|
468
|
+
description: "Expected confidence impact if the worktree succeeds",
|
|
469
|
+
enum: ["high", "medium", "low"]
|
|
470
|
+
},
|
|
471
|
+
beliefFocus: {
|
|
472
|
+
type: "string",
|
|
473
|
+
description: "Natural-language focus spanning the target belief neighborhood"
|
|
474
|
+
},
|
|
434
475
|
beliefIds: {
|
|
435
476
|
type: "array",
|
|
436
|
-
description: "
|
|
477
|
+
description: "Legacy alias for targetBeliefIds"
|
|
478
|
+
},
|
|
479
|
+
beliefs: {
|
|
480
|
+
type: "array",
|
|
481
|
+
description: "Legacy alias for targetBeliefIds"
|
|
482
|
+
},
|
|
483
|
+
targetBeliefIds: {
|
|
484
|
+
type: "array",
|
|
485
|
+
description: "Belief node IDs this worktree is expected to test or update"
|
|
486
|
+
},
|
|
487
|
+
targetQuestionIds: {
|
|
488
|
+
type: "array",
|
|
489
|
+
description: "Question node IDs this worktree is expected to answer"
|
|
490
|
+
},
|
|
491
|
+
keyQuestions: {
|
|
492
|
+
type: "array",
|
|
493
|
+
description: "Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId"
|
|
494
|
+
},
|
|
495
|
+
evidenceSignals: {
|
|
496
|
+
type: "array",
|
|
497
|
+
description: "Evidence signal objects with signal, optional collected state, progress, and notes"
|
|
498
|
+
},
|
|
499
|
+
decisionGate: {
|
|
500
|
+
type: "object",
|
|
501
|
+
description: "Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy"
|
|
502
|
+
},
|
|
503
|
+
goCriteria: {
|
|
504
|
+
type: "array",
|
|
505
|
+
description: "Shorthand go criteria used to build decisionGate"
|
|
506
|
+
},
|
|
507
|
+
noGoSignals: {
|
|
508
|
+
type: "array",
|
|
509
|
+
description: "Shorthand no-go signals used to build decisionGate"
|
|
510
|
+
},
|
|
511
|
+
proofArtifacts: {
|
|
512
|
+
type: "array",
|
|
513
|
+
description: "Expected proof artifacts required to close the worktree"
|
|
437
514
|
},
|
|
438
515
|
autoShape: {
|
|
439
516
|
type: "boolean",
|
|
440
517
|
description: "Whether to invoke inquiry auto-shaping during worktree creation"
|
|
441
518
|
},
|
|
519
|
+
autoFixPolicy: {
|
|
520
|
+
type: "object",
|
|
521
|
+
description: "Policy for permitted automatic remediation inside the worktree"
|
|
522
|
+
},
|
|
442
523
|
domainPackId: {
|
|
443
524
|
type: "string",
|
|
444
525
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
@@ -467,9 +548,17 @@ var ADD_WORKTREE = {
|
|
|
467
548
|
type: "array",
|
|
468
549
|
description: "Worktree IDs blocked by this worktree"
|
|
469
550
|
},
|
|
470
|
-
|
|
551
|
+
staffingHint: {
|
|
471
552
|
type: "string",
|
|
472
|
-
description: "
|
|
553
|
+
description: "Suggested staffing or agent allocation note"
|
|
554
|
+
},
|
|
555
|
+
lensId: {
|
|
556
|
+
type: "string",
|
|
557
|
+
description: "Lens that scopes this worktree when applicable"
|
|
558
|
+
},
|
|
559
|
+
lastReconciledAt: {
|
|
560
|
+
type: "number",
|
|
561
|
+
description: "Timestamp when worktree metadata was last reconciled"
|
|
473
562
|
}
|
|
474
563
|
},
|
|
475
564
|
required: ["title", "topicId"],
|
|
@@ -499,7 +588,7 @@ var MERGE = {
|
|
|
499
588
|
worktreeId: { type: "string", description: "The worktree to merge" },
|
|
500
589
|
outcomes: {
|
|
501
590
|
type: "array",
|
|
502
|
-
description: "
|
|
591
|
+
description: "Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }"
|
|
503
592
|
},
|
|
504
593
|
summary: { type: "string", description: "Overall findings summary" }
|
|
505
594
|
},
|
|
@@ -3518,6 +3607,69 @@ var GENERATE_SESSION_HANDOFF = {
|
|
|
3518
3607
|
tier: "showcase",
|
|
3519
3608
|
internal: true
|
|
3520
3609
|
};
|
|
3610
|
+
var BEGIN_BUILD_SESSION = {
|
|
3611
|
+
name: "begin_build_session",
|
|
3612
|
+
description: "Bootstrap a coding build session for a Lucern worktree. Like `git worktree add` plus `git status` \u2014 returns the compact context packet an agent needs before editing.",
|
|
3613
|
+
parameters: {
|
|
3614
|
+
worktreeId: {
|
|
3615
|
+
type: "string",
|
|
3616
|
+
description: "The Lucern worktree ID to bootstrap."
|
|
3617
|
+
},
|
|
3618
|
+
branch: {
|
|
3619
|
+
type: "string",
|
|
3620
|
+
description: "Optional git branch name. Auto-generated from the worktree name when omitted."
|
|
3621
|
+
},
|
|
3622
|
+
branchBase: {
|
|
3623
|
+
type: "string",
|
|
3624
|
+
description: 'Base branch for the feature branch. Default: "staging".'
|
|
3625
|
+
},
|
|
3626
|
+
prBase: {
|
|
3627
|
+
type: "string",
|
|
3628
|
+
description: 'Target branch for the PR. Default: "staging".'
|
|
3629
|
+
},
|
|
3630
|
+
sessionMode: {
|
|
3631
|
+
type: "string",
|
|
3632
|
+
description: 'Session mode: "async" for Codex/headless or "interactive" for live sessions.',
|
|
3633
|
+
enum: ["async", "interactive"]
|
|
3634
|
+
},
|
|
3635
|
+
activateIfPlanning: {
|
|
3636
|
+
type: "boolean",
|
|
3637
|
+
description: "When true, automatically activate a planning worktree during bootstrap."
|
|
3638
|
+
}
|
|
3639
|
+
},
|
|
3640
|
+
required: ["worktreeId"],
|
|
3641
|
+
response: {
|
|
3642
|
+
description: "A compact build-session packet with worktree metadata, graph anchors, questions, dependencies, and git defaults.",
|
|
3643
|
+
fields: {
|
|
3644
|
+
topicId: "string \u2014 canonical topic scope",
|
|
3645
|
+
topicName: "string \u2014 human-readable topic name",
|
|
3646
|
+
worktreeId: "string \u2014 worktree ID",
|
|
3647
|
+
worktreeName: "string \u2014 human-readable worktree name",
|
|
3648
|
+
branch: "string \u2014 git branch name",
|
|
3649
|
+
branchBase: "string \u2014 base branch",
|
|
3650
|
+
prBase: "string \u2014 PR target branch",
|
|
3651
|
+
campaign: "number | null \u2014 top-level pipeline campaign",
|
|
3652
|
+
lane: "string \u2014 campaign lane",
|
|
3653
|
+
gate: "string \u2014 exit gate",
|
|
3654
|
+
hypothesis: "string \u2014 worktree hypothesis",
|
|
3655
|
+
focus: "string \u2014 session focus",
|
|
3656
|
+
status: "string \u2014 worktree status after optional activation",
|
|
3657
|
+
sessionMode: "string \u2014 async | interactive",
|
|
3658
|
+
targetBeliefIds: "array \u2014 scoped belief IDs",
|
|
3659
|
+
targetQuestionIds: "array \u2014 scoped question IDs",
|
|
3660
|
+
topBeliefs: "array \u2014 highest-confidence scoped beliefs",
|
|
3661
|
+
openQuestions: "array \u2014 open scoped questions",
|
|
3662
|
+
resolvedDecisions: "array \u2014 answered questions summarized for the session",
|
|
3663
|
+
dependencies: "array \u2014 upstream worktrees",
|
|
3664
|
+
unblocks: "array \u2014 downstream worktrees",
|
|
3665
|
+
mergeOrderNotes: "string \u2014 merge ordering advisory"
|
|
3666
|
+
}
|
|
3667
|
+
},
|
|
3668
|
+
ownerModule: "bootstrap",
|
|
3669
|
+
ontologyPrimitive: "worktree",
|
|
3670
|
+
tier: "showcase",
|
|
3671
|
+
internal: true
|
|
3672
|
+
};
|
|
3521
3673
|
var MCP_TOOL_CONTRACTS = {
|
|
3522
3674
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
3523
3675
|
create_belief: CREATE_BELIEF,
|
|
@@ -3611,6 +3763,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3611
3763
|
get_agent_inbox: GET_AGENT_INBOX,
|
|
3612
3764
|
claim_files: CLAIM_FILES,
|
|
3613
3765
|
generate_session_handoff: GENERATE_SESSION_HANDOFF,
|
|
3766
|
+
begin_build_session: BEGIN_BUILD_SESSION,
|
|
3614
3767
|
// Policy / ACL (workhorse)
|
|
3615
3768
|
check_permission: CHECK_PERMISSION,
|
|
3616
3769
|
filter_by_permission: FILTER_BY_PERMISSION,
|