@lucern/contracts 0.3.0-alpha.3 → 0.3.0-alpha.5
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/edge-policy-manifest-DpmTtjmm.d.ts +132 -0
- package/dist/function-registry/beliefs.d.ts +41 -41
- package/dist/function-registry/beliefs.js +274 -8
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +259 -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 +259 -9
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +230 -5
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +230 -5
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +241 -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 +274 -9
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +131 -53
- package/dist/function-registry/graph.js +346 -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 +230 -5
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +230 -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 +230 -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 +242 -8
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +230 -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 +253 -8
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +5 -5
- package/dist/function-registry/manifest.js +3 -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 +248 -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 +239 -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 +327 -13
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +230 -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 +244 -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 +364 -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 +2 -2
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/graph-intelligence.contract.d.ts +506 -0
- package/dist/graph-intelligence.contract.js +595 -0
- package/dist/graph-intelligence.contract.js.map +1 -0
- package/dist/graph-types/index.d.ts +5 -1
- package/dist/graph-types/index.js +15 -4
- package/dist/graph-types/index.js.map +1 -1
- package/dist/{index-CV-0_VWJ.d.ts → index-O09U2xHk.d.ts} +5 -2
- package/dist/index.d.ts +21 -667
- package/dist/index.js +2139 -52
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +174 -0
- package/dist/infisical-runtime.contract.js +312 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.d.ts +2 -0
- package/dist/manifests/edge-policy-manifest.data.d.ts +27 -0
- package/dist/manifests/edge-policy-manifest.data.js +34 -0
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.js +65 -0
- package/dist/manifests/edge-policy-manifest.js.map +1 -0
- package/dist/manifests/infisical-runtime-manifest.d.ts +151 -0
- package/dist/manifests/infisical-runtime-manifest.js +311 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -0
- package/dist/manifests/invariant-manifest.d.ts +65 -0
- package/dist/manifests/invariant-manifest.js +18 -0
- package/dist/manifests/invariant-manifest.js.map +1 -0
- package/dist/manifests/invariants/ast-utils.d.ts +14 -0
- package/dist/manifests/invariants/ast-utils.js +54 -0
- package/dist/manifests/invariants/ast-utils.js.map +1 -0
- package/dist/manifests/invariants/index.d.ts +15 -0
- package/dist/manifests/invariants/index.js +183 -0
- package/dist/manifests/invariants/index.js.map +1 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +12 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +94 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +1 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +12 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +99 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +1 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +12 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +42 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -0
- package/dist/manifests/tenant-client-manifest.d.ts +303 -0
- package/dist/manifests/tenant-client-manifest.js +409 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -0
- package/dist/projections/check-convex-args-shape.d.ts +3 -0
- package/dist/projections/check-convex-args-shape.js +396 -0
- package/dist/projections/check-convex-args-shape.js.map +1 -0
- package/dist/projections/create-evidence.projection.d.ts +176 -0
- package/dist/projections/create-evidence.projection.js +128 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +345 -0
- package/dist/projections/index.js.map +1 -0
- package/dist/projections/list-beliefs.projection.d.ts +36 -0
- package/dist/projections/list-beliefs.projection.js +54 -0
- package/dist/projections/list-beliefs.projection.js.map +1 -0
- package/dist/projections/list-tasks.projection.d.ts +32 -0
- package/dist/projections/list-tasks.projection.js +52 -0
- package/dist/projections/list-tasks.projection.js.map +1 -0
- package/dist/projections/modulate-confidence.projection.d.ts +219 -0
- package/dist/projections/modulate-confidence.projection.js +148 -0
- package/dist/projections/modulate-confidence.projection.js.map +1 -0
- package/dist/projections/projection-dsl.d.ts +11 -0
- package/dist/projections/projection-dsl.js +8 -0
- package/dist/projections/projection-dsl.js.map +1 -0
- package/dist/schemas/enums.d.ts +5 -2
- package/dist/schemas/enums.js +5 -2
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +9 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +940 -910
- package/dist/schemas/manifest.js +8 -3
- 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 +3 -3
- package/dist/schemas/tables/kernel/spine.js +5 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +42 -42
- package/dist/schemas/tables/kernel/topic.js +4 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- 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-Ng8ULxjr.d.ts} +1 -1
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +227 -4
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1101 -0
- package/dist/tenant-bootstrap-seed.contract.js +653 -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/tenant-client.contract.d.ts +69 -5
- package/dist/tenant-client.contract.js +65 -4
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-CYXVPN4K.d.ts} +8 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +228 -5
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +9 -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-CYXVPN4K.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-Ng8ULxjr.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
|
},
|
|
@@ -1053,6 +1142,74 @@ var GET_GRAPH_STRUCTURE_ANALYSIS = {
|
|
|
1053
1142
|
ontologyPrimitive: "graph",
|
|
1054
1143
|
tier: "showcase"
|
|
1055
1144
|
};
|
|
1145
|
+
var LIST_GRAPH_INTELLIGENCE_QUERIES = {
|
|
1146
|
+
name: "list_graph_intelligence_queries",
|
|
1147
|
+
description: "List the Graph Intelligence query catalog that powers structural graph analysis experiences. Returns categories, query IDs, prompt templates, modes, and the public tool plan each query can use.",
|
|
1148
|
+
parameters: {
|
|
1149
|
+
categoryId: {
|
|
1150
|
+
type: "string",
|
|
1151
|
+
description: "Optional category filter, such as problems or strategic"
|
|
1152
|
+
},
|
|
1153
|
+
mode: {
|
|
1154
|
+
type: "string",
|
|
1155
|
+
description: "Optional mode filter: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
required: [],
|
|
1159
|
+
response: {
|
|
1160
|
+
description: "Graph Intelligence query catalog and mode-to-tool mapping",
|
|
1161
|
+
fields: {
|
|
1162
|
+
categories: "array \u2014 query categories",
|
|
1163
|
+
queries: "array \u2014 query definitions with prompt templates and tools",
|
|
1164
|
+
quickQueries: "array \u2014 recommended one-click query presets",
|
|
1165
|
+
publicToolNamesByMode: "object \u2014 public tool names available to each Graph Intelligence mode"
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
ownerModule: "graph-intelligence",
|
|
1169
|
+
ontologyPrimitive: "graph",
|
|
1170
|
+
tier: "showcase"
|
|
1171
|
+
};
|
|
1172
|
+
var RUN_GRAPH_INTELLIGENCE_QUERY = {
|
|
1173
|
+
name: "run_graph_intelligence_query",
|
|
1174
|
+
description: "Run a named Graph Intelligence query against a tenant topic graph. Returns the selected query, prompt, deterministic graph-analysis bundle, graph context, and public tool plan for model synthesis.",
|
|
1175
|
+
parameters: {
|
|
1176
|
+
topicId: { type: "string", description: "Topic to analyze" },
|
|
1177
|
+
queryId: {
|
|
1178
|
+
type: "string",
|
|
1179
|
+
description: "Graph Intelligence query ID, such as confirmation-bias, pre-mortem, or thesis-summary"
|
|
1180
|
+
},
|
|
1181
|
+
prompt: {
|
|
1182
|
+
type: "string",
|
|
1183
|
+
description: "Optional custom prompt for custom analysis runs"
|
|
1184
|
+
},
|
|
1185
|
+
input: {
|
|
1186
|
+
type: "string",
|
|
1187
|
+
description: "Optional entity, theme, belief, company, or search text for input-driven queries"
|
|
1188
|
+
},
|
|
1189
|
+
mode: {
|
|
1190
|
+
type: "string",
|
|
1191
|
+
description: "Optional mode override: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1192
|
+
},
|
|
1193
|
+
limit: {
|
|
1194
|
+
type: "number",
|
|
1195
|
+
description: "Maximum graph context rows to return"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
required: ["topicId"],
|
|
1199
|
+
response: {
|
|
1200
|
+
description: "Graph Intelligence query result bundle ready for model or prompt-library synthesis",
|
|
1201
|
+
fields: {
|
|
1202
|
+
query: "object \u2014 selected query definition",
|
|
1203
|
+
prompt: "string \u2014 resolved prompt template",
|
|
1204
|
+
toolPlan: "array \u2014 public tools and args the model can call next",
|
|
1205
|
+
analysis: "object \u2014 structure, coverage, gap, and confirmation-bias analysis",
|
|
1206
|
+
context: "object \u2014 sampled beliefs, questions, evidence, edges, and contradictions"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
ownerModule: "graph-intelligence",
|
|
1210
|
+
ontologyPrimitive: "graph",
|
|
1211
|
+
tier: "showcase"
|
|
1212
|
+
};
|
|
1056
1213
|
var GET_FALSIFICATION_QUESTIONS = {
|
|
1057
1214
|
name: "get_falsification_questions",
|
|
1058
1215
|
description: "Generate Popperian falsification questions for beliefs. Like `git test` \u2014 identifies the questions most likely to disprove current beliefs. Karl Popper as a tool: surfaces what would need to be true to invalidate each belief.",
|
|
@@ -3518,6 +3675,69 @@ var GENERATE_SESSION_HANDOFF = {
|
|
|
3518
3675
|
tier: "showcase",
|
|
3519
3676
|
internal: true
|
|
3520
3677
|
};
|
|
3678
|
+
var BEGIN_BUILD_SESSION = {
|
|
3679
|
+
name: "begin_build_session",
|
|
3680
|
+
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.",
|
|
3681
|
+
parameters: {
|
|
3682
|
+
worktreeId: {
|
|
3683
|
+
type: "string",
|
|
3684
|
+
description: "The Lucern worktree ID to bootstrap."
|
|
3685
|
+
},
|
|
3686
|
+
branch: {
|
|
3687
|
+
type: "string",
|
|
3688
|
+
description: "Optional git branch name. Auto-generated from the worktree name when omitted."
|
|
3689
|
+
},
|
|
3690
|
+
branchBase: {
|
|
3691
|
+
type: "string",
|
|
3692
|
+
description: 'Base branch for the feature branch. Default: "staging".'
|
|
3693
|
+
},
|
|
3694
|
+
prBase: {
|
|
3695
|
+
type: "string",
|
|
3696
|
+
description: 'Target branch for the PR. Default: "staging".'
|
|
3697
|
+
},
|
|
3698
|
+
sessionMode: {
|
|
3699
|
+
type: "string",
|
|
3700
|
+
description: 'Session mode: "async" for Codex/headless or "interactive" for live sessions.',
|
|
3701
|
+
enum: ["async", "interactive"]
|
|
3702
|
+
},
|
|
3703
|
+
activateIfPlanning: {
|
|
3704
|
+
type: "boolean",
|
|
3705
|
+
description: "When true, automatically activate a planning worktree during bootstrap."
|
|
3706
|
+
}
|
|
3707
|
+
},
|
|
3708
|
+
required: ["worktreeId"],
|
|
3709
|
+
response: {
|
|
3710
|
+
description: "A compact build-session packet with worktree metadata, graph anchors, questions, dependencies, and git defaults.",
|
|
3711
|
+
fields: {
|
|
3712
|
+
topicId: "string \u2014 canonical topic scope",
|
|
3713
|
+
topicName: "string \u2014 human-readable topic name",
|
|
3714
|
+
worktreeId: "string \u2014 worktree ID",
|
|
3715
|
+
worktreeName: "string \u2014 human-readable worktree name",
|
|
3716
|
+
branch: "string \u2014 git branch name",
|
|
3717
|
+
branchBase: "string \u2014 base branch",
|
|
3718
|
+
prBase: "string \u2014 PR target branch",
|
|
3719
|
+
campaign: "number | null \u2014 top-level pipeline campaign",
|
|
3720
|
+
lane: "string \u2014 campaign lane",
|
|
3721
|
+
gate: "string \u2014 exit gate",
|
|
3722
|
+
hypothesis: "string \u2014 worktree hypothesis",
|
|
3723
|
+
focus: "string \u2014 session focus",
|
|
3724
|
+
status: "string \u2014 worktree status after optional activation",
|
|
3725
|
+
sessionMode: "string \u2014 async | interactive",
|
|
3726
|
+
targetBeliefIds: "array \u2014 scoped belief IDs",
|
|
3727
|
+
targetQuestionIds: "array \u2014 scoped question IDs",
|
|
3728
|
+
topBeliefs: "array \u2014 highest-confidence scoped beliefs",
|
|
3729
|
+
openQuestions: "array \u2014 open scoped questions",
|
|
3730
|
+
resolvedDecisions: "array \u2014 answered questions summarized for the session",
|
|
3731
|
+
dependencies: "array \u2014 upstream worktrees",
|
|
3732
|
+
unblocks: "array \u2014 downstream worktrees",
|
|
3733
|
+
mergeOrderNotes: "string \u2014 merge ordering advisory"
|
|
3734
|
+
}
|
|
3735
|
+
},
|
|
3736
|
+
ownerModule: "bootstrap",
|
|
3737
|
+
ontologyPrimitive: "worktree",
|
|
3738
|
+
tier: "showcase",
|
|
3739
|
+
internal: true
|
|
3740
|
+
};
|
|
3521
3741
|
var MCP_TOOL_CONTRACTS = {
|
|
3522
3742
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
3523
3743
|
create_belief: CREATE_BELIEF,
|
|
@@ -3565,6 +3785,8 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3565
3785
|
// Graph intelligence (showcase)
|
|
3566
3786
|
detect_confirmation_bias: DETECT_CONFIRMATION_BIAS,
|
|
3567
3787
|
get_graph_structure_analysis: GET_GRAPH_STRUCTURE_ANALYSIS,
|
|
3788
|
+
list_graph_intelligence_queries: LIST_GRAPH_INTELLIGENCE_QUERIES,
|
|
3789
|
+
run_graph_intelligence_query: RUN_GRAPH_INTELLIGENCE_QUERY,
|
|
3568
3790
|
get_falsification_questions: GET_FALSIFICATION_QUESTIONS,
|
|
3569
3791
|
// Evidence operations (workhorse)
|
|
3570
3792
|
search_evidence: SEARCH_EVIDENCE,
|
|
@@ -3611,6 +3833,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3611
3833
|
get_agent_inbox: GET_AGENT_INBOX,
|
|
3612
3834
|
claim_files: CLAIM_FILES,
|
|
3613
3835
|
generate_session_handoff: GENERATE_SESSION_HANDOFF,
|
|
3836
|
+
begin_build_session: BEGIN_BUILD_SESSION,
|
|
3614
3837
|
// Policy / ACL (workhorse)
|
|
3615
3838
|
check_permission: CHECK_PERMISSION,
|
|
3616
3839
|
filter_by_permission: FILTER_BY_PERMISSION,
|