@lucern/contracts 0.3.0-alpha.1 → 0.3.0-alpha.11
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/api-enums.contract.d.ts +5 -3
- package/dist/api-enums.contract.js +14 -12
- package/dist/api-enums.contract.js.map +1 -1
- package/dist/component-boundary.contract.d.ts +14 -0
- package/dist/component-boundary.contract.js +174 -0
- package/dist/component-boundary.contract.js.map +1 -0
- package/dist/component-host-boundary.contract.d.ts +46 -0
- package/dist/component-host-boundary.contract.js +60 -0
- package/dist/component-host-boundary.contract.js.map +1 -0
- package/dist/context-pack.contract.d.ts +5 -3
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{defineTable-CBQ03FXl.d.ts → defineTable-t1wr5wgn.d.ts} +1 -1
- package/dist/{dsl-BgpoVOVQ.d.ts → dsl-DVPthQGY.d.ts} +2 -2
- package/dist/dsl.d.ts +2 -2
- package/dist/dsl.js +1 -4
- package/dist/dsl.js.map +1 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +133 -0
- package/dist/function-registry/beliefs.d.ts +54 -41
- package/dist/function-registry/beliefs.js +759 -38
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +9 -0
- package/dist/function-registry/coding.js +811 -39
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +19 -13
- package/dist/function-registry/context.js +750 -42
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +6 -0
- package/dist/function-registry/contracts.js +715 -35
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +12 -0
- package/dist/function-registry/coordination.js +715 -35
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +165 -0
- package/dist/function-registry/edges.js +923 -67
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +44 -33
- package/dist/function-registry/evidence.js +769 -47
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +149 -53
- package/dist/function-registry/graph.js +831 -42
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +6 -3
- package/dist/function-registry/helpers.js +716 -36
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +6 -0
- package/dist/function-registry/identity.js +715 -35
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +5 -3
- package/dist/function-registry/index.js +722 -39
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +14 -9
- package/dist/function-registry/judgments.js +727 -38
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +4 -0
- package/dist/function-registry/legacy.js +715 -35
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +24 -17
- package/dist/function-registry/lenses.js +738 -38
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +6 -6
- package/dist/function-registry/manifest.js +18 -2
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +412 -0
- package/dist/function-registry/nodes.js +5303 -0
- package/dist/function-registry/nodes.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +59 -45
- package/dist/function-registry/ontologies.js +733 -41
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +19 -13
- package/dist/function-registry/pipeline.js +724 -38
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +64 -49
- package/dist/function-registry/questions.js +812 -43
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +24 -17
- package/dist/function-registry/tasks.js +776 -44
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +109 -21
- package/dist/function-registry/topics.js +797 -39
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +6 -2
- package/dist/function-registry/worktrees.d.ts +94 -41
- package/dist/function-registry/worktrees.js +854 -47
- 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 +166 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +5 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.d.ts +3 -3
- package/dist/generated/convexSchemas.js +38 -18
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.d.ts +70 -0
- package/dist/generated/infisicalRuntimeEnv.js +26572 -0
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -0
- package/dist/generated/lucernGatewayEnv.d.ts +17 -0
- package/dist/generated/lucernGatewayEnv.js +38 -0
- package/dist/generated/lucernGatewayEnv.js.map +1 -0
- package/dist/generated/lucernWebPublicEnv.d.ts +26 -0
- package/dist/generated/lucernWebPublicEnv.js +32 -0
- package/dist/generated/lucernWebPublicEnv.js.map +1 -0
- package/dist/generated/lucernWebServerEnv.d.ts +33 -0
- package/dist/generated/lucernWebServerEnv.js +51 -0
- package/dist/generated/lucernWebServerEnv.js.map +1 -0
- package/dist/generated/schema-manifest.json +1199 -138
- package/dist/generated/tableOwnership.d.ts +47 -27
- package/dist/generated/tableOwnership.js +66 -26
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +62 -8
- 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-CM1Pl_vI.d.ts +28 -0
- package/dist/index.d.ts +29 -414
- package/dist/index.js +34791 -1088
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +1768 -0
- package/dist/infisical-runtime.contract.js +3093 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- 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 +2 -0
- package/dist/manifests/edge-policy-manifest.data.d.ts +13 -0
- package/dist/manifests/edge-policy-manifest.data.js +26 -0
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.js +92 -0
- package/dist/manifests/edge-policy-manifest.js.map +1 -0
- package/dist/manifests/infisical-runtime-manifest.d.ts +1672 -0
- package/dist/manifests/infisical-runtime-manifest.js +2948 -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 +322 -0
- package/dist/manifests/tenant-client-manifest.js +432 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -0
- package/dist/mcp-gateway-boundary.contract.d.ts +201 -0
- package/dist/mcp-gateway-boundary.contract.js +45 -0
- package/dist/mcp-gateway-boundary.contract.js.map +1 -0
- package/dist/projections/check-convex-args-shape.d.ts +3 -0
- package/dist/projections/check-convex-args-shape.js +403 -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 +130 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +352 -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 +44 -0
- package/dist/projections/list-tasks.projection.js +57 -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/proof-attestation.json +45 -0
- 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/schemas/component-table-manifest.d.ts +6 -6
- package/dist/schemas/component-table-manifest.js +2 -2
- package/dist/schemas/component-table-manifest.js.map +1 -1
- 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 +3 -3
- package/dist/schemas/index.js +1129 -139
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +2979 -949
- package/dist/schemas/manifest.js +1127 -137
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/controlPlane/accessControl.d.ts +260 -0
- package/dist/schemas/tables/controlPlane/accessControl.js +653 -0
- package/dist/schemas/tables/controlPlane/accessControl.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/agent.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/agent.js +3 -3
- package/dist/schemas/tables/controlPlane/agent.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/epistemic.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/epistemic.js +3 -3
- package/dist/schemas/tables/controlPlane/epistemic.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/model.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/model.js +6 -6
- package/dist/schemas/tables/controlPlane/model.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/platform.d.ts +11 -11
- package/dist/schemas/tables/{identity → controlPlane}/platform.js +18 -18
- package/dist/schemas/tables/controlPlane/platform.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/project.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/project.js +3 -3
- package/dist/schemas/tables/controlPlane/project.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/user.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/user.js +3 -3
- package/dist/schemas/tables/controlPlane/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +1 -1
- package/dist/schemas/tables/kernel/config.js.map +1 -1
- package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
- package/dist/schemas/tables/kernel/coordination.js.map +1 -1
- package/dist/schemas/tables/kernel/decision.d.ts +1 -1
- package/dist/schemas/tables/kernel/decision.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/epistemic.d.ts +7 -7
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
- package/dist/schemas/tables/kernel/infra.d.ts +5 -5
- package/dist/schemas/tables/kernel/infra.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +11 -11
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
- package/dist/schemas/tables/kernel/lens.d.ts +5 -5
- package/dist/schemas/tables/kernel/lens.js.map +1 -1
- package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
- package/dist/schemas/tables/kernel/ontology.js.map +1 -1
- package/dist/schemas/tables/kernel/platform.d.ts +13 -13
- package/dist/schemas/tables/kernel/platform.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +5 -4
- package/dist/schemas/tables/kernel/spine.js +6 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +43 -43
- package/dist/schemas/tables/kernel/task.js.map +1 -1
- package/dist/schemas/tables/kernel/topic.d.ts +1 -1
- package/dist/schemas/tables/kernel/topic.js +5 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
- package/dist/schemas/tables/kernel/workflow.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +55 -55
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas/tables/mc/identity.d.ts +44 -4
- package/dist/schemas/tables/mc/identity.js +66 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/methodology.d.ts +1 -1
- package/dist/schemas/tables/mc/methodology.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +21 -21
- package/dist/schemas/tables/mc/pack.js.map +1 -1
- package/dist/schemas/tables/mc/policy.d.ts +2 -2
- package/dist/schemas/tables/mc/policy.js +1 -1
- package/dist/schemas/tables/mc/policy.js.map +1 -1
- package/dist/schemas/tables/mc/registry.d.ts +5 -5
- package/dist/schemas/tables/mc/registry.js.map +1 -1
- package/dist/schemas/tables/mc/runtime.d.ts +109 -3
- package/dist/schemas/tables/mc/runtime.js +330 -104
- package/dist/schemas/tables/mc/runtime.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +3 -2
- package/dist/schemas/tables/mc/tenant.js +2 -1
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +28 -5
- package/dist/schemas/tables/mc/workspace.js +36 -2
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +2 -2
- package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-BNklQDfB.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +672 -24
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1269 -0
- package/dist/tenant-bootstrap-seed.contract.js +751 -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 +349 -0
- package/dist/tenant-client.contract.js +488 -0
- package/dist/tenant-client.contract.js.map +1 -0
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-BevD9Ho2.d.ts} +36 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +673 -25
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +30 -1
- package/dist/index-CV-0_VWJ.d.ts +0 -25
- package/dist/schemas/tables/identity/agent.js.map +0 -1
- package/dist/schemas/tables/identity/epistemic.js.map +0 -1
- package/dist/schemas/tables/identity/model.js.map +0 -1
- package/dist/schemas/tables/identity/platform.js.map +0 -1
- package/dist/schemas/tables/identity/project.js.map +0 -1
- package/dist/schemas/tables/identity/user.js.map +0 -1
|
@@ -10,6 +10,8 @@ import { questionsContracts } from './questions.js';
|
|
|
10
10
|
export { questionsContracts } from './questions.js';
|
|
11
11
|
import { topicsContracts } from './topics.js';
|
|
12
12
|
export { topicsContracts } from './topics.js';
|
|
13
|
+
import { nodesContracts } from './nodes.js';
|
|
14
|
+
export { nodesContracts } from './nodes.js';
|
|
13
15
|
import { lensesContracts } from './lenses.js';
|
|
14
16
|
export { lensesContracts } from './lenses.js';
|
|
15
17
|
import { ontologiesContracts } from './ontologies.js';
|
|
@@ -38,6 +40,20 @@ import { z } from 'zod';
|
|
|
38
40
|
|
|
39
41
|
// src/function-registry/index.ts
|
|
40
42
|
|
|
43
|
+
// src/types/reasoning-method.ts
|
|
44
|
+
var REASONING_METHODS = [
|
|
45
|
+
"deductive",
|
|
46
|
+
"inductive",
|
|
47
|
+
"abductive",
|
|
48
|
+
"analogical",
|
|
49
|
+
"causal",
|
|
50
|
+
"correlational",
|
|
51
|
+
"testimonial",
|
|
52
|
+
"statistical",
|
|
53
|
+
"implicit",
|
|
54
|
+
"pattern_match"
|
|
55
|
+
];
|
|
56
|
+
|
|
41
57
|
// src/lens-workflow.contract.ts
|
|
42
58
|
var LENS_PERSPECTIVE_TYPES = [
|
|
43
59
|
"investigation",
|
|
@@ -458,7 +474,22 @@ var ADD_WORKTREE = {
|
|
|
458
474
|
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.",
|
|
459
475
|
parameters: {
|
|
460
476
|
title: { type: "string", description: "Worktree name/objective" },
|
|
461
|
-
|
|
477
|
+
name: {
|
|
478
|
+
type: "string",
|
|
479
|
+
description: "Optional storage-name alias for callers that already use backend naming"
|
|
480
|
+
},
|
|
481
|
+
projectId: {
|
|
482
|
+
type: "string",
|
|
483
|
+
description: "Legacy topicId alias or resolver hint"
|
|
484
|
+
},
|
|
485
|
+
topicId: {
|
|
486
|
+
type: "string",
|
|
487
|
+
description: "Optional topic scope hint for resolver validation"
|
|
488
|
+
},
|
|
489
|
+
topicHint: {
|
|
490
|
+
type: "string",
|
|
491
|
+
description: "Natural-language topic hint for automatic topic resolution"
|
|
492
|
+
},
|
|
462
493
|
branchId: {
|
|
463
494
|
type: "string",
|
|
464
495
|
description: "The branch this worktree investigates"
|
|
@@ -471,18 +502,107 @@ var ADD_WORKTREE = {
|
|
|
471
502
|
type: "string",
|
|
472
503
|
description: "The testable claim this worktree investigates"
|
|
473
504
|
},
|
|
505
|
+
rationale: {
|
|
506
|
+
type: "string",
|
|
507
|
+
description: "Why this worktree exists and why it belongs in the campaign"
|
|
508
|
+
},
|
|
509
|
+
worktreeType: {
|
|
510
|
+
type: "string",
|
|
511
|
+
description: "Schema-enum worktree type used by the kernel lifecycle and retrieval layers"
|
|
512
|
+
},
|
|
513
|
+
gate: {
|
|
514
|
+
type: "string",
|
|
515
|
+
description: "Exit gate name for this worktree"
|
|
516
|
+
},
|
|
517
|
+
startDate: {
|
|
518
|
+
type: "number",
|
|
519
|
+
description: "Planned start timestamp in milliseconds since epoch"
|
|
520
|
+
},
|
|
521
|
+
endDate: {
|
|
522
|
+
type: "number",
|
|
523
|
+
description: "Planned end timestamp in milliseconds since epoch"
|
|
524
|
+
},
|
|
525
|
+
durationWeeks: {
|
|
526
|
+
type: "number",
|
|
527
|
+
description: "Planned duration in weeks"
|
|
528
|
+
},
|
|
529
|
+
confidenceImpact: {
|
|
530
|
+
type: "string",
|
|
531
|
+
description: "Expected confidence impact if the worktree succeeds",
|
|
532
|
+
enum: ["high", "medium", "low"]
|
|
533
|
+
},
|
|
534
|
+
beliefFocus: {
|
|
535
|
+
type: "string",
|
|
536
|
+
description: "Natural-language focus spanning the target belief neighborhood"
|
|
537
|
+
},
|
|
474
538
|
beliefIds: {
|
|
475
539
|
type: "array",
|
|
476
|
-
description: "
|
|
540
|
+
description: "Legacy alias for targetBeliefIds"
|
|
541
|
+
},
|
|
542
|
+
beliefs: {
|
|
543
|
+
type: "array",
|
|
544
|
+
description: "Legacy alias for targetBeliefIds"
|
|
545
|
+
},
|
|
546
|
+
targetBeliefIds: {
|
|
547
|
+
type: "array",
|
|
548
|
+
description: "Belief node IDs this worktree is expected to test or update"
|
|
549
|
+
},
|
|
550
|
+
targetQuestionIds: {
|
|
551
|
+
type: "array",
|
|
552
|
+
description: "Question node IDs this worktree is expected to answer"
|
|
553
|
+
},
|
|
554
|
+
keyQuestions: {
|
|
555
|
+
type: "array",
|
|
556
|
+
description: "Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId"
|
|
557
|
+
},
|
|
558
|
+
evidenceSignals: {
|
|
559
|
+
type: "array",
|
|
560
|
+
description: "Evidence signal objects with signal, optional collected state, progress, and notes"
|
|
561
|
+
},
|
|
562
|
+
decisionGate: {
|
|
563
|
+
type: "object",
|
|
564
|
+
description: "Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy"
|
|
565
|
+
},
|
|
566
|
+
goCriteria: {
|
|
567
|
+
type: "array",
|
|
568
|
+
description: "Shorthand go criteria used to build decisionGate"
|
|
569
|
+
},
|
|
570
|
+
noGoSignals: {
|
|
571
|
+
type: "array",
|
|
572
|
+
description: "Shorthand no-go signals used to build decisionGate"
|
|
573
|
+
},
|
|
574
|
+
proofArtifacts: {
|
|
575
|
+
type: "array",
|
|
576
|
+
description: "Expected proof artifacts required to close the worktree"
|
|
477
577
|
},
|
|
478
578
|
autoShape: {
|
|
479
579
|
type: "boolean",
|
|
480
580
|
description: "Whether to invoke inquiry auto-shaping during worktree creation"
|
|
481
581
|
},
|
|
582
|
+
autoFixPolicy: {
|
|
583
|
+
type: "object",
|
|
584
|
+
description: "Policy for permitted automatic remediation inside the worktree"
|
|
585
|
+
},
|
|
482
586
|
domainPackId: {
|
|
483
587
|
type: "string",
|
|
484
588
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
485
589
|
},
|
|
590
|
+
tags: {
|
|
591
|
+
type: "array",
|
|
592
|
+
description: "Additional topic-resolution tags for the worktree"
|
|
593
|
+
},
|
|
594
|
+
touchedPaths: {
|
|
595
|
+
type: "array",
|
|
596
|
+
description: "File paths used as topic-resolution signals"
|
|
597
|
+
},
|
|
598
|
+
sourceRef: {
|
|
599
|
+
type: "string",
|
|
600
|
+
description: "Source reference used as a topic-resolution signal"
|
|
601
|
+
},
|
|
602
|
+
sourceKind: {
|
|
603
|
+
type: "string",
|
|
604
|
+
description: "Source kind used as a topic-resolution signal"
|
|
605
|
+
},
|
|
486
606
|
campaign: {
|
|
487
607
|
type: "number",
|
|
488
608
|
description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
|
|
@@ -507,12 +627,20 @@ var ADD_WORKTREE = {
|
|
|
507
627
|
type: "array",
|
|
508
628
|
description: "Worktree IDs blocked by this worktree"
|
|
509
629
|
},
|
|
510
|
-
|
|
630
|
+
staffingHint: {
|
|
511
631
|
type: "string",
|
|
512
|
-
description: "
|
|
632
|
+
description: "Suggested staffing or agent allocation note"
|
|
633
|
+
},
|
|
634
|
+
lensId: {
|
|
635
|
+
type: "string",
|
|
636
|
+
description: "Lens that scopes this worktree when applicable"
|
|
637
|
+
},
|
|
638
|
+
lastReconciledAt: {
|
|
639
|
+
type: "number",
|
|
640
|
+
description: "Timestamp when worktree metadata was last reconciled"
|
|
513
641
|
}
|
|
514
642
|
},
|
|
515
|
-
required: ["title"
|
|
643
|
+
required: ["title"],
|
|
516
644
|
response: {
|
|
517
645
|
description: "The created worktree",
|
|
518
646
|
fields: {
|
|
@@ -539,7 +667,7 @@ var MERGE = {
|
|
|
539
667
|
worktreeId: { type: "string", description: "The worktree to merge" },
|
|
540
668
|
outcomes: {
|
|
541
669
|
type: "array",
|
|
542
|
-
description: "
|
|
670
|
+
description: "Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }"
|
|
543
671
|
},
|
|
544
672
|
summary: { type: "string", description: "Overall findings summary" }
|
|
545
673
|
},
|
|
@@ -757,19 +885,23 @@ var FIND_CONTRADICTIONS = {
|
|
|
757
885
|
};
|
|
758
886
|
var CREATE_EDGE = {
|
|
759
887
|
name: "create_edge",
|
|
760
|
-
description: "Commit a typed relationship between two nodes in the reasoning graph. Like `git commit` \u2014 an atomic write that declares a dependency between nodes.
|
|
888
|
+
description: "Commit a typed relationship between two nodes in the reasoning graph. Like `git commit` \u2014 an atomic write that declares a dependency between nodes. Accepts any public epistemic edge type between public graph node refs so agents can author the full spine.",
|
|
761
889
|
parameters: {
|
|
762
|
-
|
|
763
|
-
type: "
|
|
764
|
-
description: "Source
|
|
890
|
+
from: {
|
|
891
|
+
type: "object",
|
|
892
|
+
description: "Source graph ref, e.g. { kind: 'epistemic_node', nodeId: '...', nodeType: 'topic' }"
|
|
765
893
|
},
|
|
766
|
-
|
|
767
|
-
type: "
|
|
768
|
-
description: "Target
|
|
894
|
+
to: {
|
|
895
|
+
type: "object",
|
|
896
|
+
description: "Target graph ref, e.g. { kind: 'epistemic_node', nodeId: '...', nodeType: 'belief' }"
|
|
769
897
|
},
|
|
770
898
|
edgeType: {
|
|
771
899
|
type: "string",
|
|
772
|
-
description: "Relationship type
|
|
900
|
+
description: "Relationship type from the public epistemic edge enum."
|
|
901
|
+
},
|
|
902
|
+
globalId: {
|
|
903
|
+
type: "string",
|
|
904
|
+
description: "Optional idempotent edge global ID."
|
|
773
905
|
},
|
|
774
906
|
weight: {
|
|
775
907
|
type: "number",
|
|
@@ -779,10 +911,14 @@ var CREATE_EDGE = {
|
|
|
779
911
|
reasoningMethod: {
|
|
780
912
|
type: "string",
|
|
781
913
|
description: "How this was determined",
|
|
782
|
-
enum: [
|
|
914
|
+
enum: [...REASONING_METHODS]
|
|
915
|
+
},
|
|
916
|
+
metadata: {
|
|
917
|
+
type: "object",
|
|
918
|
+
description: "Optional edge metadata."
|
|
783
919
|
}
|
|
784
920
|
},
|
|
785
|
-
required: ["
|
|
921
|
+
required: ["from", "to", "edgeType"],
|
|
786
922
|
response: {
|
|
787
923
|
description: "The created edge",
|
|
788
924
|
fields: {
|
|
@@ -796,6 +932,240 @@ var CREATE_EDGE = {
|
|
|
796
932
|
ontologyPrimitive: "edge",
|
|
797
933
|
tier: "showcase"
|
|
798
934
|
};
|
|
935
|
+
var UPDATE_EDGE = {
|
|
936
|
+
name: "update_edge",
|
|
937
|
+
description: "Amend metadata on an existing graph edge. Like `git commit --amend` \u2014 changes the edge annotation without recreating the relationship.",
|
|
938
|
+
parameters: {
|
|
939
|
+
edgeId: { type: "string", description: "Edge ID or global ID to update" },
|
|
940
|
+
weight: { type: "number", description: "Updated edge weight" },
|
|
941
|
+
confidence: { type: "number", description: "Updated confidence" },
|
|
942
|
+
context: { type: "string", description: "Updated human-readable context" },
|
|
943
|
+
derivationType: { type: "string", description: "Updated derivation type" },
|
|
944
|
+
metadata: { type: "object", description: "Updated metadata" }
|
|
945
|
+
},
|
|
946
|
+
required: ["edgeId"],
|
|
947
|
+
response: {
|
|
948
|
+
description: "Edge update result",
|
|
949
|
+
fields: { success: "boolean" }
|
|
950
|
+
},
|
|
951
|
+
ownerModule: "graph-primitives",
|
|
952
|
+
ontologyPrimitive: "edge",
|
|
953
|
+
tier: "workhorse"
|
|
954
|
+
};
|
|
955
|
+
var REMOVE_EDGE = {
|
|
956
|
+
name: "remove_edge",
|
|
957
|
+
description: "Remove one graph edge by ID. Like `git rm` \u2014 deletes a single explicit relationship from the spine.",
|
|
958
|
+
parameters: {
|
|
959
|
+
edgeId: { type: "string", description: "Edge ID or global ID to remove" }
|
|
960
|
+
},
|
|
961
|
+
required: ["edgeId"],
|
|
962
|
+
response: {
|
|
963
|
+
description: "Edge removal result",
|
|
964
|
+
fields: { success: "boolean" }
|
|
965
|
+
},
|
|
966
|
+
ownerModule: "graph-primitives",
|
|
967
|
+
ontologyPrimitive: "edge",
|
|
968
|
+
tier: "workhorse"
|
|
969
|
+
};
|
|
970
|
+
var REMOVE_EDGES_BETWEEN = {
|
|
971
|
+
name: "remove_edges_between",
|
|
972
|
+
description: "Remove graph edges between two nodes. Like `git rm <pathspec>` \u2014 deletes relationships matching a source, target, and optional type.",
|
|
973
|
+
parameters: {
|
|
974
|
+
fromNodeId: { type: "string", description: "Source node ID or global ID" },
|
|
975
|
+
toNodeId: { type: "string", description: "Target node ID or global ID" },
|
|
976
|
+
edgeType: { type: "string", description: "Optional edge type filter" }
|
|
977
|
+
},
|
|
978
|
+
required: ["fromNodeId", "toNodeId"],
|
|
979
|
+
response: {
|
|
980
|
+
description: "Matched edge removal result",
|
|
981
|
+
fields: { deleted: "number" }
|
|
982
|
+
},
|
|
983
|
+
ownerModule: "graph-primitives",
|
|
984
|
+
ontologyPrimitive: "edge",
|
|
985
|
+
tier: "workhorse"
|
|
986
|
+
};
|
|
987
|
+
var BATCH_CREATE_EDGES = {
|
|
988
|
+
name: "batch_create_edges",
|
|
989
|
+
description: "Commit multiple typed graph edges. Like `git commit` with many staged paths \u2014 writes a batch of explicit relationships atomically per edge.",
|
|
990
|
+
parameters: {
|
|
991
|
+
edges: {
|
|
992
|
+
type: "array",
|
|
993
|
+
description: "Edges to create, each with from, to, edgeType, and optional weight/confidence/context."
|
|
994
|
+
},
|
|
995
|
+
skipLayerValidation: {
|
|
996
|
+
type: "boolean",
|
|
997
|
+
description: "Skip kernel layer validation for trusted materialization flows."
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
required: ["edges"],
|
|
1001
|
+
response: {
|
|
1002
|
+
description: "Batch edge creation result",
|
|
1003
|
+
fields: {
|
|
1004
|
+
created: "number",
|
|
1005
|
+
results: "array",
|
|
1006
|
+
errors: "array"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
ownerModule: "graph-primitives",
|
|
1010
|
+
ontologyPrimitive: "edge",
|
|
1011
|
+
tier: "workhorse"
|
|
1012
|
+
};
|
|
1013
|
+
var CREATE_EPISTEMIC_NODE = {
|
|
1014
|
+
name: "create_epistemic_node",
|
|
1015
|
+
description: "Commit a generic epistemic graph node. Like `git commit` \u2014 creates a canonical node in the public spine for topics, beliefs, evidence, questions, answers, sources, and entities.",
|
|
1016
|
+
parameters: {
|
|
1017
|
+
globalId: { type: "string", description: "Optional idempotent node global ID" },
|
|
1018
|
+
nodeType: { type: "string", description: "Public epistemic node type" },
|
|
1019
|
+
canonicalText: { type: "string", description: "Canonical node text" },
|
|
1020
|
+
text: { type: "string", description: "Alias for canonicalText" },
|
|
1021
|
+
contentHash: { type: "string", description: "Optional idempotency content hash" },
|
|
1022
|
+
sourceType: { type: "string", description: "Source type for provenance" },
|
|
1023
|
+
topicId: { type: "string", description: "Optional topic scope" },
|
|
1024
|
+
content: { type: "string", description: "Extended content" },
|
|
1025
|
+
title: { type: "string", description: "Display title" },
|
|
1026
|
+
metadata: { type: "object", description: "Optional node metadata" }
|
|
1027
|
+
},
|
|
1028
|
+
required: ["nodeType"],
|
|
1029
|
+
response: {
|
|
1030
|
+
description: "Created node result",
|
|
1031
|
+
fields: {
|
|
1032
|
+
nodeId: "string",
|
|
1033
|
+
nodeGlobalId: "string",
|
|
1034
|
+
isDuplicate: "boolean"
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
ownerModule: "reasoning-kernel",
|
|
1038
|
+
ontologyPrimitive: "graph",
|
|
1039
|
+
tier: "showcase"
|
|
1040
|
+
};
|
|
1041
|
+
var GET_EPISTEMIC_NODE = {
|
|
1042
|
+
name: "get_epistemic_node",
|
|
1043
|
+
description: "Read one epistemic graph node. Like `git show` \u2014 resolves a canonical spine node by ID or global ID.",
|
|
1044
|
+
parameters: {
|
|
1045
|
+
nodeId: { type: "string", description: "Node ID or global ID" }
|
|
1046
|
+
},
|
|
1047
|
+
required: ["nodeId"],
|
|
1048
|
+
response: {
|
|
1049
|
+
description: "The resolved node",
|
|
1050
|
+
fields: { node: "object" }
|
|
1051
|
+
},
|
|
1052
|
+
ownerModule: "reasoning-kernel",
|
|
1053
|
+
ontologyPrimitive: "graph",
|
|
1054
|
+
tier: "workhorse"
|
|
1055
|
+
};
|
|
1056
|
+
var LIST_EPISTEMIC_NODES = {
|
|
1057
|
+
name: "list_epistemic_nodes",
|
|
1058
|
+
description: "List epistemic graph nodes. Like `git ls-tree` \u2014 lists canonical spine nodes by topic, type, status, or search query.",
|
|
1059
|
+
parameters: {
|
|
1060
|
+
topicId: { type: "string", description: "Optional topic scope" },
|
|
1061
|
+
nodeType: { type: "string", description: "Optional node type filter" },
|
|
1062
|
+
status: { type: "string", description: "Optional lifecycle status" },
|
|
1063
|
+
searchQuery: { type: "string", description: "Optional text search query" },
|
|
1064
|
+
limit: { type: "number", description: "Maximum nodes to return" }
|
|
1065
|
+
},
|
|
1066
|
+
required: [],
|
|
1067
|
+
response: {
|
|
1068
|
+
description: "Matching nodes",
|
|
1069
|
+
fields: { nodes: "array" }
|
|
1070
|
+
},
|
|
1071
|
+
ownerModule: "reasoning-kernel",
|
|
1072
|
+
ontologyPrimitive: "graph",
|
|
1073
|
+
tier: "workhorse"
|
|
1074
|
+
};
|
|
1075
|
+
var UPDATE_EPISTEMIC_NODE = {
|
|
1076
|
+
name: "update_epistemic_node",
|
|
1077
|
+
description: "Amend an epistemic graph node. Like `git commit --amend` \u2014 updates mutable node metadata, text, status, or verification fields.",
|
|
1078
|
+
parameters: {
|
|
1079
|
+
nodeId: { type: "string", description: "Node ID or global ID" },
|
|
1080
|
+
canonicalText: { type: "string", description: "Updated canonical text" },
|
|
1081
|
+
text: { type: "string", description: "Alias for canonicalText" },
|
|
1082
|
+
contentHash: { type: "string", description: "Updated content hash" },
|
|
1083
|
+
content: { type: "string", description: "Updated content" },
|
|
1084
|
+
title: { type: "string", description: "Updated display title" },
|
|
1085
|
+
metadata: { type: "object", description: "Updated metadata" },
|
|
1086
|
+
confidence: { type: "number", description: "Updated confidence" },
|
|
1087
|
+
verificationStatus: { type: "string", description: "Updated verification status" },
|
|
1088
|
+
status: { type: "string", description: "Updated lifecycle status" }
|
|
1089
|
+
},
|
|
1090
|
+
required: ["nodeId"],
|
|
1091
|
+
response: {
|
|
1092
|
+
description: "Node update result",
|
|
1093
|
+
fields: { success: "boolean" }
|
|
1094
|
+
},
|
|
1095
|
+
ownerModule: "reasoning-kernel",
|
|
1096
|
+
ontologyPrimitive: "graph",
|
|
1097
|
+
tier: "workhorse"
|
|
1098
|
+
};
|
|
1099
|
+
var ARCHIVE_EPISTEMIC_NODE = {
|
|
1100
|
+
name: "archive_epistemic_node",
|
|
1101
|
+
description: "Archive an epistemic graph node. Like `git rm --cached` \u2014 removes a node from active traversal without hard-deleting it.",
|
|
1102
|
+
parameters: {
|
|
1103
|
+
nodeId: { type: "string", description: "Node ID or global ID" }
|
|
1104
|
+
},
|
|
1105
|
+
required: ["nodeId"],
|
|
1106
|
+
response: {
|
|
1107
|
+
description: "Archive result",
|
|
1108
|
+
fields: { success: "boolean", effectiveStatus: "string" }
|
|
1109
|
+
},
|
|
1110
|
+
ownerModule: "reasoning-kernel",
|
|
1111
|
+
ontologyPrimitive: "graph",
|
|
1112
|
+
tier: "workhorse"
|
|
1113
|
+
};
|
|
1114
|
+
var VERIFY_EPISTEMIC_NODE = {
|
|
1115
|
+
name: "verify_epistemic_node",
|
|
1116
|
+
description: "Record verification state on an epistemic graph node. Like `git tag` \u2014 marks the node with a reviewed verification state.",
|
|
1117
|
+
parameters: {
|
|
1118
|
+
nodeId: { type: "string", description: "Node ID or global ID" },
|
|
1119
|
+
verificationStatus: { type: "string", description: "Verification status" },
|
|
1120
|
+
confidence: { type: "number", description: "Optional confidence update" }
|
|
1121
|
+
},
|
|
1122
|
+
required: ["nodeId", "verificationStatus"],
|
|
1123
|
+
response: {
|
|
1124
|
+
description: "Verification result",
|
|
1125
|
+
fields: { success: "boolean" }
|
|
1126
|
+
},
|
|
1127
|
+
ownerModule: "reasoning-kernel",
|
|
1128
|
+
ontologyPrimitive: "graph",
|
|
1129
|
+
tier: "workhorse"
|
|
1130
|
+
};
|
|
1131
|
+
var SUPERSEDE_EPISTEMIC_NODE = {
|
|
1132
|
+
name: "supersede_epistemic_node",
|
|
1133
|
+
description: "Supersede an epistemic graph node with a new version. Like `git commit --amend` on an immutable history branch \u2014 creates the replacement and marks the old node superseded.",
|
|
1134
|
+
parameters: {
|
|
1135
|
+
oldNodeId: { type: "string", description: "Node ID or global ID to supersede" },
|
|
1136
|
+
newGlobalId: { type: "string", description: "Optional replacement global ID" },
|
|
1137
|
+
newCanonicalText: { type: "string", description: "Replacement canonical text" },
|
|
1138
|
+
text: { type: "string", description: "Alias for newCanonicalText" },
|
|
1139
|
+
newContentHash: { type: "string", description: "Optional replacement content hash" },
|
|
1140
|
+
reason: { type: "string", description: "Reason for superseding" }
|
|
1141
|
+
},
|
|
1142
|
+
required: ["oldNodeId"],
|
|
1143
|
+
response: {
|
|
1144
|
+
description: "Supersede result",
|
|
1145
|
+
fields: { oldNodeId: "string", newNodeId: "string" }
|
|
1146
|
+
},
|
|
1147
|
+
ownerModule: "reasoning-kernel",
|
|
1148
|
+
ontologyPrimitive: "graph",
|
|
1149
|
+
tier: "workhorse"
|
|
1150
|
+
};
|
|
1151
|
+
var BATCH_CREATE_EPISTEMIC_NODES = {
|
|
1152
|
+
name: "batch_create_epistemic_nodes",
|
|
1153
|
+
description: "Commit multiple epistemic graph nodes. Like `git commit` with many staged files \u2014 writes a batch of canonical spine nodes.",
|
|
1154
|
+
parameters: {
|
|
1155
|
+
nodes: {
|
|
1156
|
+
type: "array",
|
|
1157
|
+
description: "Nodes to create with nodeType, canonicalText/text, and optional metadata."
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
required: ["nodes"],
|
|
1161
|
+
response: {
|
|
1162
|
+
description: "Batch node creation result",
|
|
1163
|
+
fields: { created: "number", results: "array" }
|
|
1164
|
+
},
|
|
1165
|
+
ownerModule: "reasoning-kernel",
|
|
1166
|
+
ontologyPrimitive: "graph",
|
|
1167
|
+
tier: "workhorse"
|
|
1168
|
+
};
|
|
799
1169
|
var RECORD_JUDGMENT = {
|
|
800
1170
|
name: "record_judgment",
|
|
801
1171
|
description: "Record a judgment \u2014 an irreversible commitment based on the current epistemic state. Like a `git tag` marking a release. A judgment synthesizes beliefs, evidence, and uncertainties into a determination. Once issued, a judgment is evaluated against the epistemic state that existed when it was made (knowledge horizon evaluation, Invariant #10).",
|
|
@@ -1093,6 +1463,74 @@ var GET_GRAPH_STRUCTURE_ANALYSIS = {
|
|
|
1093
1463
|
ontologyPrimitive: "graph",
|
|
1094
1464
|
tier: "showcase"
|
|
1095
1465
|
};
|
|
1466
|
+
var LIST_GRAPH_INTELLIGENCE_QUERIES = {
|
|
1467
|
+
name: "list_graph_intelligence_queries",
|
|
1468
|
+
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.",
|
|
1469
|
+
parameters: {
|
|
1470
|
+
categoryId: {
|
|
1471
|
+
type: "string",
|
|
1472
|
+
description: "Optional category filter, such as problems or strategic"
|
|
1473
|
+
},
|
|
1474
|
+
mode: {
|
|
1475
|
+
type: "string",
|
|
1476
|
+
description: "Optional mode filter: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
required: [],
|
|
1480
|
+
response: {
|
|
1481
|
+
description: "Graph Intelligence query catalog and mode-to-tool mapping",
|
|
1482
|
+
fields: {
|
|
1483
|
+
categories: "array \u2014 query categories",
|
|
1484
|
+
queries: "array \u2014 query definitions with prompt templates and tools",
|
|
1485
|
+
quickQueries: "array \u2014 recommended one-click query presets",
|
|
1486
|
+
publicToolNamesByMode: "object \u2014 public tool names available to each Graph Intelligence mode"
|
|
1487
|
+
}
|
|
1488
|
+
},
|
|
1489
|
+
ownerModule: "graph-intelligence",
|
|
1490
|
+
ontologyPrimitive: "graph",
|
|
1491
|
+
tier: "showcase"
|
|
1492
|
+
};
|
|
1493
|
+
var RUN_GRAPH_INTELLIGENCE_QUERY = {
|
|
1494
|
+
name: "run_graph_intelligence_query",
|
|
1495
|
+
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.",
|
|
1496
|
+
parameters: {
|
|
1497
|
+
topicId: { type: "string", description: "Topic to analyze" },
|
|
1498
|
+
queryId: {
|
|
1499
|
+
type: "string",
|
|
1500
|
+
description: "Graph Intelligence query ID, such as confirmation-bias, pre-mortem, or thesis-summary"
|
|
1501
|
+
},
|
|
1502
|
+
prompt: {
|
|
1503
|
+
type: "string",
|
|
1504
|
+
description: "Optional custom prompt for custom analysis runs"
|
|
1505
|
+
},
|
|
1506
|
+
input: {
|
|
1507
|
+
type: "string",
|
|
1508
|
+
description: "Optional entity, theme, belief, company, or search text for input-driven queries"
|
|
1509
|
+
},
|
|
1510
|
+
mode: {
|
|
1511
|
+
type: "string",
|
|
1512
|
+
description: "Optional mode override: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1513
|
+
},
|
|
1514
|
+
limit: {
|
|
1515
|
+
type: "number",
|
|
1516
|
+
description: "Maximum graph context rows to return"
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
required: ["topicId"],
|
|
1520
|
+
response: {
|
|
1521
|
+
description: "Graph Intelligence query result bundle ready for model or prompt-library synthesis",
|
|
1522
|
+
fields: {
|
|
1523
|
+
query: "object \u2014 selected query definition",
|
|
1524
|
+
prompt: "string \u2014 resolved prompt template",
|
|
1525
|
+
toolPlan: "array \u2014 public tools and args the model can call next",
|
|
1526
|
+
analysis: "object \u2014 structure, coverage, gap, and confirmation-bias analysis",
|
|
1527
|
+
context: "object \u2014 sampled beliefs, questions, evidence, edges, and contradictions"
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
ownerModule: "graph-intelligence",
|
|
1531
|
+
ontologyPrimitive: "graph",
|
|
1532
|
+
tier: "showcase"
|
|
1533
|
+
};
|
|
1096
1534
|
var GET_FALSIFICATION_QUESTIONS = {
|
|
1097
1535
|
name: "get_falsification_questions",
|
|
1098
1536
|
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.",
|
|
@@ -1941,15 +2379,15 @@ var IDENTITY_WHOAMI = {
|
|
|
1941
2379
|
};
|
|
1942
2380
|
var COMPILE_CONTEXT = {
|
|
1943
2381
|
name: "compile_context",
|
|
1944
|
-
description: "Compile a focused reasoning context
|
|
2382
|
+
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.",
|
|
1945
2383
|
parameters: {
|
|
1946
2384
|
topicId: {
|
|
1947
2385
|
type: "string",
|
|
1948
|
-
description: "
|
|
2386
|
+
description: "Optional topic scope ID. Omit to resolve the topic from query."
|
|
1949
2387
|
},
|
|
1950
2388
|
query: {
|
|
1951
2389
|
type: "string",
|
|
1952
|
-
description: "
|
|
2390
|
+
description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
|
|
1953
2391
|
},
|
|
1954
2392
|
budget: {
|
|
1955
2393
|
type: "number",
|
|
@@ -1973,7 +2411,7 @@ var COMPILE_CONTEXT = {
|
|
|
1973
2411
|
description: "Include related ontological entities in the compiled result"
|
|
1974
2412
|
}
|
|
1975
2413
|
},
|
|
1976
|
-
required: [
|
|
2414
|
+
required: [],
|
|
1977
2415
|
response: {
|
|
1978
2416
|
description: "Compiled context pack for the requested topic",
|
|
1979
2417
|
fields: {
|
|
@@ -2147,18 +2585,64 @@ var CREATE_TASK = {
|
|
|
2147
2585
|
name: "create_task",
|
|
2148
2586
|
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.",
|
|
2149
2587
|
parameters: {
|
|
2150
|
-
title: { type: "string", description: "Task
|
|
2588
|
+
title: { type: "string", description: "Task title" },
|
|
2151
2589
|
topicId: { type: "string", description: "Topic scope" },
|
|
2590
|
+
description: {
|
|
2591
|
+
type: "string",
|
|
2592
|
+
description: "Long-form task description"
|
|
2593
|
+
},
|
|
2152
2594
|
taskType: {
|
|
2153
2595
|
type: "string",
|
|
2154
|
-
description: "
|
|
2155
|
-
enum: [
|
|
2596
|
+
description: "Task taxonomy",
|
|
2597
|
+
enum: [
|
|
2598
|
+
"general",
|
|
2599
|
+
"find_evidence",
|
|
2600
|
+
"verify_claim",
|
|
2601
|
+
"research",
|
|
2602
|
+
"review",
|
|
2603
|
+
"interview",
|
|
2604
|
+
"analysis",
|
|
2605
|
+
"track_metrics"
|
|
2606
|
+
]
|
|
2607
|
+
},
|
|
2608
|
+
priority: {
|
|
2609
|
+
type: "string",
|
|
2610
|
+
description: "Priority",
|
|
2611
|
+
enum: ["urgent", "high", "medium", "low"]
|
|
2612
|
+
},
|
|
2613
|
+
status: {
|
|
2614
|
+
type: "string",
|
|
2615
|
+
description: "Initial status (defaults to todo)",
|
|
2616
|
+
enum: ["todo", "in_progress", "blocked", "done"]
|
|
2617
|
+
},
|
|
2618
|
+
linkedWorktreeId: {
|
|
2619
|
+
type: "string",
|
|
2620
|
+
description: "Worktree this task belongs to"
|
|
2621
|
+
},
|
|
2622
|
+
linkedBeliefId: {
|
|
2623
|
+
type: "string",
|
|
2624
|
+
description: "Belief this task supports"
|
|
2156
2625
|
},
|
|
2157
2626
|
linkedQuestionId: {
|
|
2158
2627
|
type: "string",
|
|
2159
2628
|
description: "Question this task addresses"
|
|
2160
2629
|
},
|
|
2161
|
-
|
|
2630
|
+
assigneeId: {
|
|
2631
|
+
type: "string",
|
|
2632
|
+
description: "Principal assigned to the task"
|
|
2633
|
+
},
|
|
2634
|
+
dueDate: {
|
|
2635
|
+
type: "number",
|
|
2636
|
+
description: "Due date as epoch milliseconds"
|
|
2637
|
+
},
|
|
2638
|
+
tags: {
|
|
2639
|
+
type: "array",
|
|
2640
|
+
description: "Free-form string tags"
|
|
2641
|
+
},
|
|
2642
|
+
metadata: {
|
|
2643
|
+
type: "object",
|
|
2644
|
+
description: "Structured task metadata for handoff context and routing hints"
|
|
2645
|
+
}
|
|
2162
2646
|
},
|
|
2163
2647
|
required: ["title"],
|
|
2164
2648
|
response: {
|
|
@@ -2231,6 +2715,10 @@ var UPDATE_TASK = {
|
|
|
2231
2715
|
type: "string",
|
|
2232
2716
|
description: "Updated status",
|
|
2233
2717
|
enum: ["todo", "in_progress", "blocked", "done"]
|
|
2718
|
+
},
|
|
2719
|
+
metadata: {
|
|
2720
|
+
type: "object",
|
|
2721
|
+
description: "Structured task metadata to replace or refine"
|
|
2234
2722
|
}
|
|
2235
2723
|
},
|
|
2236
2724
|
required: ["taskId"],
|
|
@@ -2278,6 +2766,10 @@ var CREATE_TOPIC = {
|
|
|
2278
2766
|
name: "create_topic",
|
|
2279
2767
|
description: "Create a new topic container for scoping knowledge. Like `git init` \u2014 initializes a new repository for a knowledge domain. Topics are hierarchical: a deal topic can nest under a theme topic. Types: domain, theme, deal, strategy, constitution, project, portfolio.",
|
|
2280
2768
|
parameters: {
|
|
2769
|
+
globalId: {
|
|
2770
|
+
type: "string",
|
|
2771
|
+
description: "Optional idempotent topic global ID"
|
|
2772
|
+
},
|
|
2281
2773
|
name: { type: "string", description: "Topic name" },
|
|
2282
2774
|
type: {
|
|
2283
2775
|
type: "string",
|
|
@@ -2288,6 +2780,18 @@ var CREATE_TOPIC = {
|
|
|
2288
2780
|
type: "string",
|
|
2289
2781
|
description: "Optional parent topic for nesting"
|
|
2290
2782
|
},
|
|
2783
|
+
parentTopicGlobalId: {
|
|
2784
|
+
type: "string",
|
|
2785
|
+
description: "Optional parent topic global ID for nesting"
|
|
2786
|
+
},
|
|
2787
|
+
tenantId: { type: "string", description: "Optional tenant scope" },
|
|
2788
|
+
workspaceId: { type: "string", description: "Optional workspace scope" },
|
|
2789
|
+
visibility: {
|
|
2790
|
+
type: "string",
|
|
2791
|
+
description: "Topic visibility",
|
|
2792
|
+
enum: ["private", "team", "firm", "external", "public"]
|
|
2793
|
+
},
|
|
2794
|
+
metadata: { type: "object", description: "Optional topic metadata" },
|
|
2291
2795
|
createdBy: { type: "string", description: "Who created this topic" }
|
|
2292
2796
|
},
|
|
2293
2797
|
required: ["name", "type"],
|
|
@@ -2296,6 +2800,9 @@ var CREATE_TOPIC = {
|
|
|
2296
2800
|
fields: {
|
|
2297
2801
|
id: "string \u2014 topic ID",
|
|
2298
2802
|
globalId: "string \u2014 globally unique ID",
|
|
2803
|
+
topicGlobalId: "string \u2014 topic global ID",
|
|
2804
|
+
epistemicNodeId: "string \u2014 materialized topic node ID",
|
|
2805
|
+
epistemicNodeGlobalId: "string \u2014 materialized topic node global ID",
|
|
2299
2806
|
depth: "number \u2014 nesting depth"
|
|
2300
2807
|
}
|
|
2301
2808
|
},
|
|
@@ -2426,6 +2933,65 @@ var GET_TOPIC_TREE = {
|
|
|
2426
2933
|
ontologyPrimitive: "graph",
|
|
2427
2934
|
tier: "workhorse"
|
|
2428
2935
|
};
|
|
2936
|
+
var MATERIALIZE_TOPIC_GRAPH = {
|
|
2937
|
+
name: "materialize_topic_graph",
|
|
2938
|
+
description: "Backfill the topic graph spine. Like `git fsck --connectivity-only` with repair enabled \u2014 creates missing topic nodes and parent-child edges idempotently.",
|
|
2939
|
+
parameters: {
|
|
2940
|
+
rootTopicId: {
|
|
2941
|
+
type: "string",
|
|
2942
|
+
description: "Optional root topic for a bounded materialization pass"
|
|
2943
|
+
},
|
|
2944
|
+
dryRun: {
|
|
2945
|
+
type: "boolean",
|
|
2946
|
+
description: "When true, report missing rows without writing them"
|
|
2947
|
+
}
|
|
2948
|
+
},
|
|
2949
|
+
required: [],
|
|
2950
|
+
response: {
|
|
2951
|
+
description: "Topic graph materialization counts",
|
|
2952
|
+
fields: {
|
|
2953
|
+
topicsSeen: "number",
|
|
2954
|
+
nodesCreated: "number",
|
|
2955
|
+
nodesExisting: "number",
|
|
2956
|
+
edgesCreated: "number",
|
|
2957
|
+
edgesExisting: "number",
|
|
2958
|
+
errors: "array"
|
|
2959
|
+
}
|
|
2960
|
+
},
|
|
2961
|
+
ownerModule: "reasoning-kernel",
|
|
2962
|
+
ontologyPrimitive: "graph",
|
|
2963
|
+
tier: "workhorse"
|
|
2964
|
+
};
|
|
2965
|
+
var GET_TOPIC_GRAPH_SPINE = {
|
|
2966
|
+
name: "get_topic_graph_spine",
|
|
2967
|
+
description: "Verify the topic graph spine. Like `git fsck` \u2014 reads topics, materialized topic nodes, parent-child edges, and missing spine rows.",
|
|
2968
|
+
parameters: {
|
|
2969
|
+
rootTopicId: {
|
|
2970
|
+
type: "string",
|
|
2971
|
+
description: "Optional root topic for a bounded verifier pass"
|
|
2972
|
+
},
|
|
2973
|
+
includeTopicBeliefEdges: {
|
|
2974
|
+
type: "boolean",
|
|
2975
|
+
description: "Include topic -> belief edges in the verifier payload"
|
|
2976
|
+
}
|
|
2977
|
+
},
|
|
2978
|
+
required: [],
|
|
2979
|
+
response: {
|
|
2980
|
+
description: "Topic graph spine verification payload",
|
|
2981
|
+
fields: {
|
|
2982
|
+
ok: "boolean",
|
|
2983
|
+
counts: "object",
|
|
2984
|
+
topics: "array",
|
|
2985
|
+
topicNodes: "array",
|
|
2986
|
+
parentEdges: "array",
|
|
2987
|
+
missingTopicNodes: "array",
|
|
2988
|
+
missingParentEdges: "array"
|
|
2989
|
+
}
|
|
2990
|
+
},
|
|
2991
|
+
ownerModule: "reasoning-kernel",
|
|
2992
|
+
ontologyPrimitive: "graph",
|
|
2993
|
+
tier: "workhorse"
|
|
2994
|
+
};
|
|
2429
2995
|
var GET_CODE_CONTEXT = {
|
|
2430
2996
|
name: "get_code_context",
|
|
2431
2997
|
description: "Returns code-grounded beliefs, contracts, migration states, and failed attempts anchored to a specific file or function path. Like `git log -- <path>` \u2014 filters the knowledge graph to nodes anchored to a file path via metadata.codeAnchors. Results are separated by coding belief type: decisions, contracts, migrations, patterns, deprecations, and failures.",
|
|
@@ -3558,6 +4124,72 @@ var GENERATE_SESSION_HANDOFF = {
|
|
|
3558
4124
|
tier: "showcase",
|
|
3559
4125
|
internal: true
|
|
3560
4126
|
};
|
|
4127
|
+
var BEGIN_BUILD_SESSION = {
|
|
4128
|
+
name: "begin_build_session",
|
|
4129
|
+
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.",
|
|
4130
|
+
parameters: {
|
|
4131
|
+
worktreeId: {
|
|
4132
|
+
type: "string",
|
|
4133
|
+
description: "The Lucern worktree ID to bootstrap."
|
|
4134
|
+
},
|
|
4135
|
+
branch: {
|
|
4136
|
+
type: "string",
|
|
4137
|
+
description: "Optional git branch name. Auto-generated from the worktree name when omitted."
|
|
4138
|
+
},
|
|
4139
|
+
branchBase: {
|
|
4140
|
+
type: "string",
|
|
4141
|
+
description: 'Base branch for the feature branch. Default: "staging".'
|
|
4142
|
+
},
|
|
4143
|
+
prBase: {
|
|
4144
|
+
type: "string",
|
|
4145
|
+
description: 'Target branch for the PR. Default: "staging".'
|
|
4146
|
+
},
|
|
4147
|
+
sessionMode: {
|
|
4148
|
+
type: "string",
|
|
4149
|
+
description: 'Session mode: "async" for Codex/headless or "interactive" for live sessions.',
|
|
4150
|
+
enum: ["async", "interactive"]
|
|
4151
|
+
},
|
|
4152
|
+
activateIfPlanning: {
|
|
4153
|
+
type: "boolean",
|
|
4154
|
+
description: "When true, automatically activate a planning worktree during bootstrap."
|
|
4155
|
+
}
|
|
4156
|
+
},
|
|
4157
|
+
required: ["worktreeId"],
|
|
4158
|
+
response: {
|
|
4159
|
+
description: "A compact build-session packet with worktree metadata, graph anchors, questions, dependencies, and git defaults.",
|
|
4160
|
+
fields: {
|
|
4161
|
+
topicId: "string \u2014 canonical topic scope",
|
|
4162
|
+
topicName: "string \u2014 human-readable topic name",
|
|
4163
|
+
worktreeId: "string \u2014 worktree ID",
|
|
4164
|
+
worktreeName: "string \u2014 human-readable worktree name",
|
|
4165
|
+
branch: "string \u2014 git branch name",
|
|
4166
|
+
branchBase: "string \u2014 base branch",
|
|
4167
|
+
prBase: "string \u2014 PR target branch",
|
|
4168
|
+
campaign: "number | null \u2014 top-level pipeline campaign",
|
|
4169
|
+
lane: "string \u2014 campaign lane",
|
|
4170
|
+
gate: "string \u2014 exit gate",
|
|
4171
|
+
hypothesis: "string \u2014 worktree hypothesis",
|
|
4172
|
+
focus: "string \u2014 session focus",
|
|
4173
|
+
status: "string \u2014 worktree status after optional activation",
|
|
4174
|
+
sessionMode: "string \u2014 async | interactive",
|
|
4175
|
+
targetBeliefIds: "array \u2014 scoped belief IDs",
|
|
4176
|
+
targetQuestionIds: "array \u2014 scoped question IDs",
|
|
4177
|
+
taskIds: "array \u2014 assigned task IDs for this worktree",
|
|
4178
|
+
incompleteTaskIds: "array \u2014 assigned task IDs that still require done/deferred/blocked proof",
|
|
4179
|
+
tasks: "array \u2014 assigned task packet with id, title, status, priority, links, and summaries",
|
|
4180
|
+
topBeliefs: "array \u2014 highest-confidence scoped beliefs",
|
|
4181
|
+
openQuestions: "array \u2014 open scoped questions",
|
|
4182
|
+
resolvedDecisions: "array \u2014 answered questions summarized for the session",
|
|
4183
|
+
dependencies: "array \u2014 upstream worktrees",
|
|
4184
|
+
unblocks: "array \u2014 downstream worktrees",
|
|
4185
|
+
mergeOrderNotes: "string \u2014 merge ordering advisory"
|
|
4186
|
+
}
|
|
4187
|
+
},
|
|
4188
|
+
ownerModule: "bootstrap",
|
|
4189
|
+
ontologyPrimitive: "worktree",
|
|
4190
|
+
tier: "showcase",
|
|
4191
|
+
internal: true
|
|
4192
|
+
};
|
|
3561
4193
|
var MCP_TOOL_CONTRACTS = {
|
|
3562
4194
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
3563
4195
|
create_belief: CREATE_BELIEF,
|
|
@@ -3600,11 +4232,26 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3600
4232
|
bisect_confidence: BISECT_CONFIDENCE,
|
|
3601
4233
|
// Edges (commit)
|
|
3602
4234
|
create_edge: CREATE_EDGE,
|
|
4235
|
+
update_edge: UPDATE_EDGE,
|
|
4236
|
+
remove_edge: REMOVE_EDGE,
|
|
4237
|
+
remove_edges_between: REMOVE_EDGES_BETWEEN,
|
|
4238
|
+
batch_create_edges: BATCH_CREATE_EDGES,
|
|
4239
|
+
// Epistemic node spine (commit/amend/show)
|
|
4240
|
+
create_epistemic_node: CREATE_EPISTEMIC_NODE,
|
|
4241
|
+
get_epistemic_node: GET_EPISTEMIC_NODE,
|
|
4242
|
+
list_epistemic_nodes: LIST_EPISTEMIC_NODES,
|
|
4243
|
+
update_epistemic_node: UPDATE_EPISTEMIC_NODE,
|
|
4244
|
+
archive_epistemic_node: ARCHIVE_EPISTEMIC_NODE,
|
|
4245
|
+
verify_epistemic_node: VERIFY_EPISTEMIC_NODE,
|
|
4246
|
+
supersede_epistemic_node: SUPERSEDE_EPISTEMIC_NODE,
|
|
4247
|
+
batch_create_epistemic_nodes: BATCH_CREATE_EPISTEMIC_NODES,
|
|
3603
4248
|
// Judgments (tag)
|
|
3604
4249
|
record_judgment: RECORD_JUDGMENT,
|
|
3605
4250
|
// Graph intelligence (showcase)
|
|
3606
4251
|
detect_confirmation_bias: DETECT_CONFIRMATION_BIAS,
|
|
3607
4252
|
get_graph_structure_analysis: GET_GRAPH_STRUCTURE_ANALYSIS,
|
|
4253
|
+
list_graph_intelligence_queries: LIST_GRAPH_INTELLIGENCE_QUERIES,
|
|
4254
|
+
run_graph_intelligence_query: RUN_GRAPH_INTELLIGENCE_QUERY,
|
|
3608
4255
|
get_falsification_questions: GET_FALSIFICATION_QUESTIONS,
|
|
3609
4256
|
// Evidence operations (workhorse)
|
|
3610
4257
|
search_evidence: SEARCH_EVIDENCE,
|
|
@@ -3651,6 +4298,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3651
4298
|
get_agent_inbox: GET_AGENT_INBOX,
|
|
3652
4299
|
claim_files: CLAIM_FILES,
|
|
3653
4300
|
generate_session_handoff: GENERATE_SESSION_HANDOFF,
|
|
4301
|
+
begin_build_session: BEGIN_BUILD_SESSION,
|
|
3654
4302
|
// Policy / ACL (workhorse)
|
|
3655
4303
|
check_permission: CHECK_PERMISSION,
|
|
3656
4304
|
filter_by_permission: FILTER_BY_PERMISSION,
|
|
@@ -3670,6 +4318,8 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3670
4318
|
get_topic: GET_TOPIC,
|
|
3671
4319
|
update_topic: UPDATE_TOPIC,
|
|
3672
4320
|
get_topic_tree: GET_TOPIC_TREE,
|
|
4321
|
+
materialize_topic_graph: MATERIALIZE_TOPIC_GRAPH,
|
|
4322
|
+
get_topic_graph_spine: GET_TOPIC_GRAPH_SPINE,
|
|
3673
4323
|
// Coding intelligence (code-grounded knowledge)
|
|
3674
4324
|
get_code_context: GET_CODE_CONTEXT,
|
|
3675
4325
|
get_change_history: GET_CHANGE_HISTORY,
|
|
@@ -3774,18 +4424,34 @@ var MCP_CORE_OPERATION_NAMES = [
|
|
|
3774
4424
|
"find_missing_questions",
|
|
3775
4425
|
"get_high_priority_questions",
|
|
3776
4426
|
"get_falsification_questions",
|
|
4427
|
+
"create_epistemic_node",
|
|
4428
|
+
"get_epistemic_node",
|
|
4429
|
+
"list_epistemic_nodes",
|
|
4430
|
+
"update_epistemic_node",
|
|
4431
|
+
"archive_epistemic_node",
|
|
4432
|
+
"verify_epistemic_node",
|
|
4433
|
+
"supersede_epistemic_node",
|
|
4434
|
+
"batch_create_epistemic_nodes",
|
|
3777
4435
|
"create_topic",
|
|
3778
4436
|
"get_topic",
|
|
3779
4437
|
"list_topics",
|
|
3780
4438
|
"update_topic",
|
|
3781
|
-
"get_topic_tree"
|
|
4439
|
+
"get_topic_tree",
|
|
4440
|
+
"materialize_topic_graph",
|
|
4441
|
+
"get_topic_graph_spine"
|
|
3782
4442
|
];
|
|
3783
4443
|
var MCP_ANALYSIS_PLATFORM_OPERATION_NAMES = [
|
|
3784
4444
|
"create_edge",
|
|
4445
|
+
"update_edge",
|
|
4446
|
+
"remove_edge",
|
|
4447
|
+
"remove_edges_between",
|
|
4448
|
+
"batch_create_edges",
|
|
3785
4449
|
"query_lineage",
|
|
3786
4450
|
"traverse_graph",
|
|
3787
4451
|
"get_graph_neighborhood",
|
|
3788
4452
|
"get_graph_structure_analysis",
|
|
4453
|
+
"list_graph_intelligence_queries",
|
|
4454
|
+
"run_graph_intelligence_query",
|
|
3789
4455
|
"find_contradictions",
|
|
3790
4456
|
"flag_contradiction",
|
|
3791
4457
|
"detect_confirmation_bias",
|
|
@@ -3877,6 +4543,7 @@ var PLATFORM_INTERNAL_OPERATION_NAMES = [
|
|
|
3877
4543
|
"get_change_history",
|
|
3878
4544
|
"get_failure_log",
|
|
3879
4545
|
"record_attempt",
|
|
4546
|
+
"begin_build_session",
|
|
3880
4547
|
"push",
|
|
3881
4548
|
"open_pull_request",
|
|
3882
4549
|
"record_judgment",
|
|
@@ -3931,7 +4598,6 @@ var SDK_ONLY_OPERATION_NAMES = [
|
|
|
3931
4598
|
"find_semantic_orphans"
|
|
3932
4599
|
];
|
|
3933
4600
|
var MCP_ONLY_INTERNAL_OPERATION_NAMES = [
|
|
3934
|
-
"begin_build_session",
|
|
3935
4601
|
"evaluate_engineering_contract",
|
|
3936
4602
|
"evaluate_research_contract"
|
|
3937
4603
|
];
|
|
@@ -4055,6 +4721,13 @@ function surfaceIntentGateViolations(entry) {
|
|
|
4055
4721
|
}
|
|
4056
4722
|
return violations;
|
|
4057
4723
|
}
|
|
4724
|
+
var NODE_TYPE = z.enum(["decision", "belief", "question", "theme", "deal", "topic", "claim", "evidence", "synthesis", "answer", "atomic_fact", "excerpt", "source", "company", "person", "investor", "function", "value_chain"]);
|
|
4725
|
+
var EDGE_TYPE_VALUES = ["supports", "informs", "depends_on", "derived_from", "contains", "tests", "supersedes", "responds_to", "belongs_to", "relates_to_thesis", "works_at", "invested_in", "competes_with", "participates_in", "founded_by", "evaluates", "performs", "function_in", "impacts", "raised_from", "mentioned_in", "perspective_on", "plays_theme", "answers", "explores", "qualifies", "based_on", "based_on_belief", "based_on_question", "blocked_by_contradiction", "informed_by_theme", "same_as", "reinforces", "parent_of", "child_of", "falsified_by", "exclusive_with", "collapses_if", "cascade_from", "counterfactual_of", "cascade_to", "mutually_exclusive", "correlates_with", "amplifies", "precondition_for", "in_tension_with", "strengthened_by", "weakened_by", "alternative_to", "subsumes", "validated_by", "required_for", "blocks", "prerequisite_for", "parallel_to", "corroborates", "extends", "same_source_as", "same_theme_as", "assumes", "would_predict", "analogous_to", "independent_of", "implements", "violates", "co_changes_with", "migrating_from", "migrating_to", "scoped_by", "about_entity", "entity_referenced_in", "contradicts", "cites", "summarizes", "related_to", "partially_answers", "refines", "branches_from"];
|
|
4726
|
+
var STORAGE_EDGE_TYPE_VALUES = [...EDGE_TYPE_VALUES, "extracted_from"];
|
|
4727
|
+
z.enum(EDGE_TYPE_VALUES);
|
|
4728
|
+
z.enum(STORAGE_EDGE_TYPE_VALUES);
|
|
4729
|
+
z.enum(["active", "archived", "watching"]);
|
|
4730
|
+
z.enum(["private", "team", "firm", "external", "public"]);
|
|
4058
4731
|
|
|
4059
4732
|
// src/function-registry/helpers.ts
|
|
4060
4733
|
var jsonObjectSchema = z.record(z.unknown());
|
|
@@ -4151,12 +4824,20 @@ function unwrapMcpParameterSchema(schema) {
|
|
|
4151
4824
|
current = current._def.schema;
|
|
4152
4825
|
continue;
|
|
4153
4826
|
default:
|
|
4154
|
-
return {
|
|
4827
|
+
return {
|
|
4828
|
+
schema: current,
|
|
4829
|
+
required,
|
|
4830
|
+
description: description ?? current.description
|
|
4831
|
+
};
|
|
4155
4832
|
}
|
|
4156
4833
|
}
|
|
4157
4834
|
}
|
|
4158
4835
|
function mcpParameterFromZod(fieldName, schema, contractName) {
|
|
4159
|
-
const {
|
|
4836
|
+
const {
|
|
4837
|
+
schema: unwrapped,
|
|
4838
|
+
required,
|
|
4839
|
+
description: schemaDescription
|
|
4840
|
+
} = unwrapMcpParameterSchema(schema);
|
|
4160
4841
|
const description = schemaDescription ?? unwrapped.description ?? fieldName;
|
|
4161
4842
|
switch (unwrapped._def.typeName) {
|
|
4162
4843
|
case z.ZodFirstPartyTypeKind.ZodString:
|
|
@@ -4201,10 +4882,12 @@ function mcpContractFromArgsSchema(base, args, contractName) {
|
|
|
4201
4882
|
const entries2 = Object.entries(getObjectShape(args)).sort(
|
|
4202
4883
|
([left], [right]) => left.localeCompare(right)
|
|
4203
4884
|
);
|
|
4204
|
-
const converted = entries2.map(
|
|
4205
|
-
fieldName,
|
|
4206
|
-
|
|
4207
|
-
|
|
4885
|
+
const converted = entries2.map(
|
|
4886
|
+
([fieldName, schema]) => [
|
|
4887
|
+
fieldName,
|
|
4888
|
+
mcpParameterFromZod(fieldName, schema, contractName)
|
|
4889
|
+
]
|
|
4890
|
+
);
|
|
4208
4891
|
return {
|
|
4209
4892
|
...base,
|
|
4210
4893
|
parameters: Object.fromEntries(
|
|
@@ -4213,9 +4896,7 @@ function mcpContractFromArgsSchema(base, args, contractName) {
|
|
|
4213
4896
|
required: converted.filter(([, field]) => field.required).map(([fieldName]) => fieldName)
|
|
4214
4897
|
};
|
|
4215
4898
|
}
|
|
4216
|
-
|
|
4217
|
-
return contract;
|
|
4218
|
-
}
|
|
4899
|
+
var defineFunctionContract = (contract) => contract;
|
|
4219
4900
|
function classifyContract(contract, surfaceClass) {
|
|
4220
4901
|
return {
|
|
4221
4902
|
...contract,
|
|
@@ -4324,6 +5005,7 @@ function surfaceContract(args) {
|
|
|
4324
5005
|
allowedPrincipalTypes: ["user", "service", "agent"]
|
|
4325
5006
|
},
|
|
4326
5007
|
convex: args.convex,
|
|
5008
|
+
gateway: args.gateway,
|
|
4327
5009
|
args: canonicalArgs,
|
|
4328
5010
|
returns: canonicalReturns,
|
|
4329
5011
|
input,
|
|
@@ -4357,6 +5039,7 @@ var ALL_FUNCTION_CONTRACTS = [
|
|
|
4357
5039
|
...evidenceContracts,
|
|
4358
5040
|
...questionsContracts,
|
|
4359
5041
|
...topicsContracts,
|
|
5042
|
+
...nodesContracts,
|
|
4360
5043
|
...lensesContracts,
|
|
4361
5044
|
...ontologiesContracts,
|
|
4362
5045
|
...worktreesContracts,
|
|
@@ -4375,10 +5058,10 @@ var FUNCTION_SURFACE_CONTRACTS = ALL_FUNCTION_CONTRACTS;
|
|
|
4375
5058
|
var FUNCTION_CONTRACTS_BY_NAME = new Map(
|
|
4376
5059
|
ALL_FUNCTION_CONTRACTS.map((contract) => [contract.name, contract])
|
|
4377
5060
|
);
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
5061
|
+
var getFunctionContract = FUNCTION_CONTRACTS_BY_NAME.get.bind(
|
|
5062
|
+
FUNCTION_CONTRACTS_BY_NAME
|
|
5063
|
+
);
|
|
4381
5064
|
|
|
4382
|
-
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 };
|
|
5065
|
+
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, NODE_TYPE, 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 };
|
|
4383
5066
|
//# sourceMappingURL=index.js.map
|
|
4384
5067
|
//# sourceMappingURL=index.js.map
|