@lucern/contracts 0.3.0-alpha.17 → 0.3.0-alpha.3
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 +0 -10
- package/dist/api-enums.contract.d.ts +3 -5
- package/dist/api-enums.contract.js +12 -14
- package/dist/api-enums.contract.js.map +1 -1
- package/dist/auth-context.contract.js +2 -14
- package/dist/auth-context.contract.js.map +1 -1
- package/dist/auth-session.contract.js +2 -14
- package/dist/auth-session.contract.js.map +1 -1
- package/dist/auth.contract.d.ts +1 -1
- package/dist/auth.contract.js +2 -14
- package/dist/auth.contract.js.map +1 -1
- package/dist/component-boundary.contract.d.ts +1 -1
- package/dist/component-boundary.contract.js +26 -46
- package/dist/component-boundary.contract.js.map +1 -1
- package/dist/context-pack.contract.d.ts +3 -5
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{defineTable-t1wr5wgn.d.ts → defineTable-CBQ03FXl.d.ts} +1 -1
- package/dist/{dsl-DVPthQGY.d.ts → dsl-BgpoVOVQ.d.ts} +2 -2
- package/dist/dsl.d.ts +2 -2
- package/dist/dsl.js +4 -1
- package/dist/dsl.js.map +1 -1
- package/dist/function-registry/beliefs.d.ts +51 -64
- package/dist/function-registry/beliefs.js +57 -817
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +6 -15
- package/dist/function-registry/coding.js +43 -866
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +16 -22
- package/dist/function-registry/context.js +46 -805
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +3 -9
- package/dist/function-registry/contracts.js +39 -770
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +9 -21
- package/dist/function-registry/coordination.js +39 -770
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +2 -167
- package/dist/function-registry/edges.js +71 -978
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +41 -52
- package/dist/function-registry/evidence.js +62 -826
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +66 -162
- package/dist/function-registry/graph.js +46 -886
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +4 -7
- package/dist/function-registry/helpers.js +40 -771
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +16 -62
- package/dist/function-registry/identity.js +45 -793
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +3 -5
- package/dist/function-registry/index.js +43 -777
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +11 -16
- package/dist/function-registry/judgments.js +42 -782
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +1 -5
- package/dist/function-registry/legacy.js +39 -770
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +21 -28
- package/dist/function-registry/lenses.js +42 -793
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +6 -6
- package/dist/function-registry/manifest.js +2 -19
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +56 -70
- package/dist/function-registry/ontologies.js +45 -788
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +16 -22
- package/dist/function-registry/pipeline.js +42 -779
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +61 -76
- package/dist/function-registry/questions.js +52 -869
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +21 -28
- package/dist/function-registry/tasks.js +48 -845
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +26 -114
- package/dist/function-registry/topics.js +43 -852
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +3 -7
- package/dist/function-registry/worktrees.d.ts +51 -104
- package/dist/function-registry/worktrees.js +51 -925
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/gateway.contract.d.ts +0 -5
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.d.ts +3 -3
- package/dist/generated/convexSchemas.js +18 -38
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +114 -1221
- package/dist/generated/tableOwnership.d.ts +28 -48
- package/dist/generated/tableOwnership.js +26 -66
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +9 -64
- package/dist/graph-types/index.d.ts +1 -5
- package/dist/graph-types/index.js +4 -15
- package/dist/graph-types/index.js.map +1 -1
- package/dist/index-CV-0_VWJ.d.ts +25 -0
- package/dist/index.d.ts +669 -28
- package/dist/index.js +400 -34707
- package/dist/index.js.map +1 -1
- package/dist/lens-filter.contract.js +3 -4
- package/dist/lens-filter.contract.js.map +1 -1
- package/dist/lens-workflow.contract.js +3 -4
- package/dist/lens-workflow.contract.js.map +1 -1
- package/dist/mcp-gateway-boundary.contract.d.ts +3 -23
- package/dist/mcp-gateway-boundary.contract.js +0 -2
- package/dist/mcp-gateway-boundary.contract.js.map +1 -1
- package/dist/schema-helpers/enumValidation.js +5 -2
- package/dist/schema-helpers/enumValidation.js.map +1 -1
- package/dist/schema-helpers/spine/nodes/decision.js +1 -2
- 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 +2 -5
- package/dist/schemas/enums.js +2 -5
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.js +139 -1130
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +948 -2948
- package/dist/schemas/manifest.js +137 -1128
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/{controlPlane → identity}/agent.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/agent.js +3 -3
- package/dist/schemas/tables/identity/agent.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/epistemic.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/epistemic.js +3 -3
- package/dist/schemas/tables/identity/epistemic.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/model.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/model.js +6 -6
- package/dist/schemas/tables/identity/model.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/platform.d.ts +11 -11
- package/dist/schemas/tables/{controlPlane → identity}/platform.js +18 -18
- package/dist/schemas/tables/identity/platform.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/project.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/project.js +3 -3
- package/dist/schemas/tables/identity/project.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/user.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/user.js +3 -3
- package/dist/schemas/tables/identity/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 +4 -5
- package/dist/schemas/tables/kernel/spine.js +2 -6
- 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 +1 -5
- 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 +4 -21
- package/dist/schemas/tables/mc/identity.js +1 -32
- 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 +3 -109
- package/dist/schemas/tables/mc/runtime.js +104 -330
- package/dist/schemas/tables/mc/runtime.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +2 -4
- package/dist/schemas/tables/mc/tenant.js +1 -3
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +5 -28
- package/dist/schemas/tables/mc/workspace.js +2 -36
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +2 -2
- package/dist/{sdk-tools.contract-CKmSsrZ2.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +27 -719
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-client.contract.d.ts +14 -102
- package/dist/tenant-client.contract.js +12 -113
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/{tool-contracts-C_xvM9q2.d.ts → tool-contracts-C92-9ueT.d.ts} +2 -38
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +28 -720
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -30
- package/dist/component-host-boundary.contract.d.ts +0 -46
- package/dist/component-host-boundary.contract.js +0 -60
- package/dist/component-host-boundary.contract.js.map +0 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +0 -133
- package/dist/function-registry/nodes.d.ts +0 -412
- package/dist/function-registry/nodes.js +0 -5354
- package/dist/function-registry/nodes.js.map +0 -1
- package/dist/function-registry-input-audit.d.ts +0 -13
- package/dist/function-registry-input-audit.js +0 -166
- package/dist/function-registry-input-audit.js.map +0 -1
- package/dist/generated/infisicalRuntimeEnv.d.ts +0 -70
- package/dist/generated/infisicalRuntimeEnv.js +0 -27345
- package/dist/generated/infisicalRuntimeEnv.js.map +0 -1
- package/dist/generated/lucernGatewayEnv.d.ts +0 -17
- package/dist/generated/lucernGatewayEnv.js +0 -38
- package/dist/generated/lucernGatewayEnv.js.map +0 -1
- package/dist/generated/lucernWebPublicEnv.d.ts +0 -26
- package/dist/generated/lucernWebPublicEnv.js +0 -32
- package/dist/generated/lucernWebPublicEnv.js.map +0 -1
- package/dist/generated/lucernWebServerEnv.d.ts +0 -33
- package/dist/generated/lucernWebServerEnv.js +0 -51
- package/dist/generated/lucernWebServerEnv.js.map +0 -1
- package/dist/graph-intelligence.contract.d.ts +0 -506
- package/dist/graph-intelligence.contract.js +0 -595
- package/dist/graph-intelligence.contract.js.map +0 -1
- package/dist/index-CM1Pl_vI.d.ts +0 -28
- package/dist/infisical-runtime.contract.d.ts +0 -1889
- package/dist/infisical-runtime.contract.js +0 -3235
- package/dist/infisical-runtime.contract.js.map +0 -1
- package/dist/manifests/edge-policy-manifest.d.ts +0 -2
- package/dist/manifests/edge-policy-manifest.data.d.ts +0 -13
- package/dist/manifests/edge-policy-manifest.data.js +0 -26
- package/dist/manifests/edge-policy-manifest.data.js.map +0 -1
- package/dist/manifests/edge-policy-manifest.js +0 -92
- package/dist/manifests/edge-policy-manifest.js.map +0 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +0 -1792
- package/dist/manifests/infisical-runtime-manifest.js +0 -3090
- package/dist/manifests/infisical-runtime-manifest.js.map +0 -1
- package/dist/manifests/invariant-manifest.d.ts +0 -65
- package/dist/manifests/invariant-manifest.js +0 -18
- package/dist/manifests/invariant-manifest.js.map +0 -1
- package/dist/manifests/invariants/ast-utils.d.ts +0 -14
- package/dist/manifests/invariants/ast-utils.js +0 -54
- package/dist/manifests/invariants/ast-utils.js.map +0 -1
- package/dist/manifests/invariants/index.d.ts +0 -15
- package/dist/manifests/invariants/index.js +0 -183
- package/dist/manifests/invariants/index.js.map +0 -1
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +0 -12
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +0 -94
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +0 -1
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +0 -12
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +0 -99
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +0 -1
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +0 -12
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +0 -42
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +0 -1
- package/dist/manifests/tenant-client-manifest.d.ts +0 -327
- package/dist/manifests/tenant-client-manifest.js +0 -449
- package/dist/manifests/tenant-client-manifest.js.map +0 -1
- package/dist/permit-principal-projection.contract.d.ts +0 -74
- package/dist/permit-principal-projection.contract.js +0 -167
- package/dist/permit-principal-projection.contract.js.map +0 -1
- package/dist/projections/check-convex-args-shape.d.ts +0 -3
- package/dist/projections/check-convex-args-shape.js +0 -403
- package/dist/projections/check-convex-args-shape.js.map +0 -1
- package/dist/projections/create-evidence.projection.d.ts +0 -176
- package/dist/projections/create-evidence.projection.js +0 -130
- package/dist/projections/create-evidence.projection.js.map +0 -1
- package/dist/projections/index.d.ts +0 -102
- package/dist/projections/index.js +0 -352
- package/dist/projections/index.js.map +0 -1
- package/dist/projections/list-beliefs.projection.d.ts +0 -36
- package/dist/projections/list-beliefs.projection.js +0 -54
- package/dist/projections/list-beliefs.projection.js.map +0 -1
- package/dist/projections/list-tasks.projection.d.ts +0 -44
- package/dist/projections/list-tasks.projection.js +0 -57
- package/dist/projections/list-tasks.projection.js.map +0 -1
- package/dist/projections/modulate-confidence.projection.d.ts +0 -219
- package/dist/projections/modulate-confidence.projection.js +0 -148
- package/dist/projections/modulate-confidence.projection.js.map +0 -1
- package/dist/projections/projection-dsl.d.ts +0 -11
- package/dist/projections/projection-dsl.js +0 -8
- package/dist/projections/projection-dsl.js.map +0 -1
- package/dist/proof-attestation.json +0 -45
- package/dist/schemas/tables/controlPlane/accessControl.d.ts +0 -260
- package/dist/schemas/tables/controlPlane/accessControl.js +0 -658
- package/dist/schemas/tables/controlPlane/accessControl.js.map +0 -1
- package/dist/schemas/tables/controlPlane/agent.js.map +0 -1
- package/dist/schemas/tables/controlPlane/epistemic.js.map +0 -1
- package/dist/schemas/tables/controlPlane/model.js.map +0 -1
- package/dist/schemas/tables/controlPlane/platform.js.map +0 -1
- package/dist/schemas/tables/controlPlane/project.js.map +0 -1
- package/dist/schemas/tables/controlPlane/user.js.map +0 -1
- package/dist/schemas/tables/kernel/events.d.ts +0 -21
- package/dist/schemas/tables/kernel/events.js +0 -43
- package/dist/schemas/tables/kernel/events.js.map +0 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +0 -1289
- package/dist/tenant-bootstrap-seed.contract.js +0 -764
- package/dist/tenant-bootstrap-seed.contract.js.map +0 -1
- package/dist/tenant-bootstrap-seed.defaults.d.ts +0 -16
- package/dist/tenant-bootstrap-seed.defaults.js +0 -321
- package/dist/tenant-bootstrap-seed.defaults.js.map +0 -1
|
@@ -1,595 +0,0 @@
|
|
|
1
|
-
// src/graph-intelligence.contract.ts
|
|
2
|
-
var GRAPH_INTELLIGENCE_QUERY_CATALOG_VERSION = "graph_intelligence_query_catalog.v1";
|
|
3
|
-
var GRAPH_INTELLIGENCE_QUERY_MODES = [
|
|
4
|
-
"core",
|
|
5
|
-
"bias",
|
|
6
|
-
"stress",
|
|
7
|
-
"operational",
|
|
8
|
-
"alpha",
|
|
9
|
-
"semantic",
|
|
10
|
-
"evidence"
|
|
11
|
-
];
|
|
12
|
-
var GRAPH_INTELLIGENCE_PUBLIC_TOOL_NAMES = [
|
|
13
|
-
"get_graph_structure_analysis",
|
|
14
|
-
"detect_confirmation_bias",
|
|
15
|
-
"get_graph_gaps",
|
|
16
|
-
"get_topic_coverage",
|
|
17
|
-
"find_contradictions",
|
|
18
|
-
"get_falsification_questions",
|
|
19
|
-
"search_beliefs",
|
|
20
|
-
"search_evidence",
|
|
21
|
-
"list_beliefs",
|
|
22
|
-
"list_questions",
|
|
23
|
-
"traverse_graph",
|
|
24
|
-
"query_lineage",
|
|
25
|
-
"get_graph_neighborhood"
|
|
26
|
-
];
|
|
27
|
-
var GRAPH_INTELLIGENCE_MODE_TOOL_NAMES = {
|
|
28
|
-
core: [
|
|
29
|
-
"get_graph_structure_analysis",
|
|
30
|
-
"get_topic_coverage",
|
|
31
|
-
"get_graph_gaps",
|
|
32
|
-
"list_beliefs",
|
|
33
|
-
"list_questions",
|
|
34
|
-
"search_evidence"
|
|
35
|
-
],
|
|
36
|
-
bias: [
|
|
37
|
-
"get_graph_structure_analysis",
|
|
38
|
-
"detect_confirmation_bias",
|
|
39
|
-
"find_contradictions",
|
|
40
|
-
"search_evidence",
|
|
41
|
-
"list_beliefs"
|
|
42
|
-
],
|
|
43
|
-
stress: [
|
|
44
|
-
"get_graph_structure_analysis",
|
|
45
|
-
"get_graph_gaps",
|
|
46
|
-
"find_contradictions",
|
|
47
|
-
"get_falsification_questions",
|
|
48
|
-
"list_beliefs",
|
|
49
|
-
"list_questions"
|
|
50
|
-
],
|
|
51
|
-
operational: [
|
|
52
|
-
"get_topic_coverage",
|
|
53
|
-
"get_graph_gaps",
|
|
54
|
-
"list_beliefs",
|
|
55
|
-
"list_questions",
|
|
56
|
-
"search_evidence"
|
|
57
|
-
],
|
|
58
|
-
alpha: [
|
|
59
|
-
"get_graph_structure_analysis",
|
|
60
|
-
"detect_confirmation_bias",
|
|
61
|
-
"find_contradictions",
|
|
62
|
-
"search_beliefs",
|
|
63
|
-
"search_evidence"
|
|
64
|
-
],
|
|
65
|
-
semantic: [
|
|
66
|
-
"get_graph_structure_analysis",
|
|
67
|
-
"search_beliefs",
|
|
68
|
-
"search_evidence",
|
|
69
|
-
"traverse_graph",
|
|
70
|
-
"query_lineage",
|
|
71
|
-
"get_graph_neighborhood"
|
|
72
|
-
],
|
|
73
|
-
evidence: [
|
|
74
|
-
"get_graph_structure_analysis",
|
|
75
|
-
"get_topic_coverage",
|
|
76
|
-
"search_evidence",
|
|
77
|
-
"get_falsification_questions",
|
|
78
|
-
"find_contradictions"
|
|
79
|
-
]
|
|
80
|
-
};
|
|
81
|
-
var GRAPH_INTELLIGENCE_QUERY_CATEGORIES = [
|
|
82
|
-
{
|
|
83
|
-
id: "problems",
|
|
84
|
-
name: "Find Problems",
|
|
85
|
-
description: "Risk, contradiction, bias, and structural weakness queries."
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
id: "gaps",
|
|
89
|
-
name: "Find Gaps",
|
|
90
|
-
description: "Missing evidence, unanswered questions, and sparse areas."
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: "reasoning",
|
|
94
|
-
name: "Reasoning Quality",
|
|
95
|
-
description: "Assumption chains, evidence convergence, and weak links."
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
id: "strategic",
|
|
99
|
-
name: "Strategic Analysis",
|
|
100
|
-
description: "Pre-mortems, falsification, contrarian signals, and bets."
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
id: "deep",
|
|
104
|
-
name: "Deep Graph Analysis",
|
|
105
|
-
description: "Centrality, propagation, underdetermination, and topology."
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
id: "browse",
|
|
109
|
-
name: "Browse and Explore",
|
|
110
|
-
description: "Narrative summaries, search, theme exploration, and bridges."
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
id: "prep",
|
|
114
|
-
name: "Meeting Prep",
|
|
115
|
-
description: "Company, entity, and question prep from graph context."
|
|
116
|
-
}
|
|
117
|
-
];
|
|
118
|
-
var byMode = (mode) => GRAPH_INTELLIGENCE_MODE_TOOL_NAMES[mode];
|
|
119
|
-
var GRAPH_INTELLIGENCE_QUERIES = [
|
|
120
|
-
{
|
|
121
|
-
id: "confirmation-bias",
|
|
122
|
-
categoryId: "problems",
|
|
123
|
-
mode: "bias",
|
|
124
|
-
name: "Find Confirmation Bias",
|
|
125
|
-
description: "Find beliefs supported mainly by confirming evidence.",
|
|
126
|
-
prompt: "Find beliefs where supporting evidence overwhelms challenging evidence. Prioritize high-conviction beliefs with few defeaters.",
|
|
127
|
-
highlightStrategy: "bias-risk",
|
|
128
|
-
riskLevel: "high"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
id: "contradiction-map",
|
|
132
|
-
categoryId: "problems",
|
|
133
|
-
mode: "stress",
|
|
134
|
-
name: "Map Contradictions",
|
|
135
|
-
description: "Surface direct and indirect contradiction clusters.",
|
|
136
|
-
prompt: "Map the graph's contradiction clusters and explain which tensions matter most.",
|
|
137
|
-
highlightStrategy: "contradictions",
|
|
138
|
-
riskLevel: "high"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
id: "weak-evidence",
|
|
142
|
-
categoryId: "problems",
|
|
143
|
-
mode: "stress",
|
|
144
|
-
name: "Weak Evidence Chains",
|
|
145
|
-
description: "Find important claims with thin or indirect evidence.",
|
|
146
|
-
prompt: "Find high-importance beliefs whose evidence support is thin, indirect, stale, or low quality.",
|
|
147
|
-
highlightStrategy: "weak-support",
|
|
148
|
-
riskLevel: "medium"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
id: "single-source",
|
|
152
|
-
categoryId: "problems",
|
|
153
|
-
mode: "bias",
|
|
154
|
-
name: "Single-Source Risk",
|
|
155
|
-
description: "Find claims overly dependent on one source or source type.",
|
|
156
|
-
prompt: "Identify beliefs that rely on a single source, one methodology, or one repeated perspective.",
|
|
157
|
-
highlightStrategy: "source-concentration",
|
|
158
|
-
riskLevel: "medium"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
id: "untested-assumptions",
|
|
162
|
-
categoryId: "problems",
|
|
163
|
-
mode: "stress",
|
|
164
|
-
name: "Untested Assumptions",
|
|
165
|
-
description: "Find load-bearing assumptions without falsification paths.",
|
|
166
|
-
prompt: "Find assumptions that appear load-bearing but do not have direct testing questions or falsification evidence.",
|
|
167
|
-
highlightStrategy: "untested",
|
|
168
|
-
riskLevel: "high"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: "load-bearing-beliefs",
|
|
172
|
-
categoryId: "problems",
|
|
173
|
-
mode: "stress",
|
|
174
|
-
name: "Load-Bearing Beliefs",
|
|
175
|
-
description: "Find central beliefs whose failure would affect many claims.",
|
|
176
|
-
prompt: "Find the beliefs with the largest downstream impact if they are wrong.",
|
|
177
|
-
highlightStrategy: "load-bearing",
|
|
178
|
-
riskLevel: "high"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
id: "cascade-analysis",
|
|
182
|
-
categoryId: "problems",
|
|
183
|
-
mode: "stress",
|
|
184
|
-
name: "Cascade Analysis",
|
|
185
|
-
description: "Trace what changes if a belief is weakened or invalidated.",
|
|
186
|
-
prompt: "Analyze likely downstream cascades if the most central or uncertain beliefs are weakened.",
|
|
187
|
-
highlightStrategy: "cascade",
|
|
188
|
-
riskLevel: "high"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
id: "unanswered-questions",
|
|
192
|
-
categoryId: "gaps",
|
|
193
|
-
mode: "operational",
|
|
194
|
-
name: "Unanswered Questions",
|
|
195
|
-
description: "Find important open questions that block confidence.",
|
|
196
|
-
prompt: "Identify the most important unanswered questions and explain which beliefs they block.",
|
|
197
|
-
highlightStrategy: "open-questions"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
id: "thin-themes",
|
|
201
|
-
categoryId: "gaps",
|
|
202
|
-
mode: "operational",
|
|
203
|
-
name: "Thin Themes",
|
|
204
|
-
description: "Find topics with shallow belief or evidence coverage.",
|
|
205
|
-
prompt: "Find themes that look underdeveloped relative to their role in the graph.",
|
|
206
|
-
highlightStrategy: "thin-themes"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
id: "missing-evidence",
|
|
210
|
-
categoryId: "gaps",
|
|
211
|
-
mode: "stress",
|
|
212
|
-
name: "Missing Evidence",
|
|
213
|
-
description: "Find beliefs that need specific missing evidence.",
|
|
214
|
-
prompt: "Find the most valuable missing evidence needed to strengthen or falsify the graph.",
|
|
215
|
-
highlightStrategy: "missing-evidence"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
id: "isolated-clusters",
|
|
219
|
-
categoryId: "gaps",
|
|
220
|
-
mode: "operational",
|
|
221
|
-
name: "Isolated Clusters",
|
|
222
|
-
description: "Find clusters not connected to the broader graph.",
|
|
223
|
-
prompt: "Find isolated graph clusters and recommend bridge questions or bridge evidence.",
|
|
224
|
-
highlightStrategy: "isolated-clusters"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
id: "source-contribution",
|
|
228
|
-
categoryId: "gaps",
|
|
229
|
-
mode: "evidence",
|
|
230
|
-
name: "Source Contribution",
|
|
231
|
-
description: "Assess how source mix shapes the graph.",
|
|
232
|
-
prompt: "Assess whether the source mix is balanced enough for the graph's strongest claims.",
|
|
233
|
-
highlightStrategy: "source-mix"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
id: "stale-beliefs",
|
|
237
|
-
categoryId: "gaps",
|
|
238
|
-
mode: "operational",
|
|
239
|
-
name: "Stale Beliefs",
|
|
240
|
-
description: "Find beliefs that need review because they are old or stale.",
|
|
241
|
-
prompt: "Find beliefs that should be revisited because they are stale, unsupported by recent evidence, or contradicted by newer context.",
|
|
242
|
-
highlightStrategy: "staleness"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
id: "assumption-pyramid",
|
|
246
|
-
categoryId: "reasoning",
|
|
247
|
-
mode: "operational",
|
|
248
|
-
name: "Assumption Pyramid",
|
|
249
|
-
description: "Show which conclusions rest on which assumptions.",
|
|
250
|
-
prompt: "Build an assumption pyramid from the graph: foundational assumptions, intermediate claims, and top-level conclusions.",
|
|
251
|
-
highlightStrategy: "assumptions"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
id: "converging-evidence",
|
|
255
|
-
categoryId: "reasoning",
|
|
256
|
-
mode: "evidence",
|
|
257
|
-
name: "Converging Evidence",
|
|
258
|
-
description: "Find claims supported by independent evidence streams.",
|
|
259
|
-
prompt: "Find beliefs with genuinely independent converging evidence and explain why they are robust.",
|
|
260
|
-
highlightStrategy: "convergence"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
id: "weakest-links",
|
|
264
|
-
categoryId: "reasoning",
|
|
265
|
-
mode: "stress",
|
|
266
|
-
name: "Weakest Links",
|
|
267
|
-
description: "Find the weakest links in important reasoning chains.",
|
|
268
|
-
prompt: "Find the weakest links in important reasoning chains and explain how to test them.",
|
|
269
|
-
highlightStrategy: "weak-links",
|
|
270
|
-
riskLevel: "medium"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
id: "challenged-beliefs",
|
|
274
|
-
categoryId: "reasoning",
|
|
275
|
-
mode: "stress",
|
|
276
|
-
name: "Challenged Beliefs",
|
|
277
|
-
description: "Find beliefs with active challenges or defeaters.",
|
|
278
|
-
prompt: "Find beliefs with active challenges, contradiction edges, or unresolved defeaters.",
|
|
279
|
-
highlightStrategy: "challenged"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
id: "contrarian-map",
|
|
283
|
-
categoryId: "strategic",
|
|
284
|
-
mode: "alpha",
|
|
285
|
-
name: "Contrarian Map",
|
|
286
|
-
description: "Find non-consensus beliefs and where they are grounded.",
|
|
287
|
-
prompt: "Find the graph's strongest contrarian or non-consensus beliefs and explain their support.",
|
|
288
|
-
highlightStrategy: "contrarian"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
id: "irreversibility-audit",
|
|
292
|
-
categoryId: "strategic",
|
|
293
|
-
mode: "stress",
|
|
294
|
-
name: "Irreversibility Audit",
|
|
295
|
-
description: "Find irreversible bets and assumptions behind them.",
|
|
296
|
-
prompt: "Audit irreversible decisions or beliefs and identify what must be true before acting.",
|
|
297
|
-
highlightStrategy: "irreversible",
|
|
298
|
-
riskLevel: "high"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
id: "pre-mortem",
|
|
302
|
-
categoryId: "strategic",
|
|
303
|
-
mode: "stress",
|
|
304
|
-
name: "Pre-Mortem",
|
|
305
|
-
description: "Explain how the graph could be wrong.",
|
|
306
|
-
prompt: "Run a pre-mortem: assume the current thesis fails and identify the most plausible failure paths.",
|
|
307
|
-
highlightStrategy: "failure-paths",
|
|
308
|
-
riskLevel: "high"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
id: "devils-advocate",
|
|
312
|
-
categoryId: "strategic",
|
|
313
|
-
mode: "stress",
|
|
314
|
-
name: "Devil's Advocate",
|
|
315
|
-
description: "Generate the strongest critique of the graph.",
|
|
316
|
-
prompt: "Produce the strongest evidence-grounded critique of the current graph and its main thesis.",
|
|
317
|
-
highlightStrategy: "critique"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
id: "falsification-map",
|
|
321
|
-
categoryId: "strategic",
|
|
322
|
-
mode: "stress",
|
|
323
|
-
name: "Falsification Map",
|
|
324
|
-
description: "Find the cheapest tests that would disprove key beliefs.",
|
|
325
|
-
prompt: "Map the cheapest, clearest falsification tests for the graph's key claims.",
|
|
326
|
-
highlightStrategy: "falsification",
|
|
327
|
-
riskLevel: "high"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
id: "prediction-tracker",
|
|
331
|
-
categoryId: "strategic",
|
|
332
|
-
mode: "evidence",
|
|
333
|
-
name: "Prediction Tracker",
|
|
334
|
-
description: "Find beliefs that imply measurable predictions.",
|
|
335
|
-
prompt: "Find beliefs that imply measurable predictions and suggest tracking signals.",
|
|
336
|
-
highlightStrategy: "predictions"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
id: "belief-pagerank",
|
|
340
|
-
categoryId: "deep",
|
|
341
|
-
mode: "semantic",
|
|
342
|
-
name: "Belief PageRank",
|
|
343
|
-
description: "Identify structurally central beliefs.",
|
|
344
|
-
prompt: "Use graph centrality to identify the most structurally important beliefs.",
|
|
345
|
-
highlightStrategy: "centrality"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
id: "underdetermination",
|
|
349
|
-
categoryId: "deep",
|
|
350
|
-
mode: "semantic",
|
|
351
|
-
name: "Underdetermination",
|
|
352
|
-
description: "Find places where evidence supports multiple explanations.",
|
|
353
|
-
prompt: "Find places where the same evidence could support multiple incompatible explanations.",
|
|
354
|
-
highlightStrategy: "underdetermination"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
id: "confidence-propagation",
|
|
358
|
-
categoryId: "deep",
|
|
359
|
-
mode: "semantic",
|
|
360
|
-
name: "Confidence Propagation",
|
|
361
|
-
description: "Assess how uncertainty moves through the graph.",
|
|
362
|
-
prompt: "Explain how uncertainty propagates from weak or contested beliefs through downstream conclusions.",
|
|
363
|
-
highlightStrategy: "confidence-flow"
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
id: "argument-depth",
|
|
367
|
-
categoryId: "deep",
|
|
368
|
-
mode: "evidence",
|
|
369
|
-
name: "Argument Depth",
|
|
370
|
-
description: "Assess reasoning depth and chain quality.",
|
|
371
|
-
prompt: "Assess reasoning depth: where claims are shallow, deeply supported, or overextended.",
|
|
372
|
-
highlightStrategy: "depth"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
id: "information-edge",
|
|
376
|
-
categoryId: "deep",
|
|
377
|
-
mode: "alpha",
|
|
378
|
-
name: "Information Edge",
|
|
379
|
-
description: "Find differentiated evidence or signals.",
|
|
380
|
-
prompt: "Find evidence, sources, or beliefs that could represent differentiated information edge.",
|
|
381
|
-
highlightStrategy: "information-edge"
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
id: "thesis-summary",
|
|
385
|
-
categoryId: "browse",
|
|
386
|
-
mode: "semantic",
|
|
387
|
-
name: "Thesis Summary",
|
|
388
|
-
description: "Summarize the graph's core thesis and support.",
|
|
389
|
-
prompt: "Summarize the graph's core thesis, strongest support, weakest support, and open questions.",
|
|
390
|
-
highlightStrategy: "summary"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
id: "theme-deep-dive",
|
|
394
|
-
categoryId: "browse",
|
|
395
|
-
mode: "semantic",
|
|
396
|
-
name: "Theme Deep Dive",
|
|
397
|
-
description: "Deep dive into a named theme.",
|
|
398
|
-
prompt: "Deep dive into {input}. Explain the key beliefs, evidence, contradictions, and open questions.",
|
|
399
|
-
inputType: "theme",
|
|
400
|
-
highlightStrategy: "theme"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
id: "belief-detail",
|
|
404
|
-
categoryId: "browse",
|
|
405
|
-
mode: "semantic",
|
|
406
|
-
name: "Belief Detail",
|
|
407
|
-
description: "Explain one belief and its graph neighborhood.",
|
|
408
|
-
prompt: "Explain {input} and its support, challenges, related beliefs, and downstream implications.",
|
|
409
|
-
inputType: "belief",
|
|
410
|
-
highlightStrategy: "belief"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
id: "strongest-beliefs",
|
|
414
|
-
categoryId: "browse",
|
|
415
|
-
mode: "operational",
|
|
416
|
-
name: "Strongest Beliefs",
|
|
417
|
-
description: "Find the graph's strongest current beliefs.",
|
|
418
|
-
prompt: "Find the strongest current beliefs and explain why each one deserves confidence.",
|
|
419
|
-
highlightStrategy: "strongest"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
id: "cross-theme-connection",
|
|
423
|
-
categoryId: "browse",
|
|
424
|
-
mode: "semantic",
|
|
425
|
-
name: "Cross-Theme Connections",
|
|
426
|
-
description: "Find bridges between themes.",
|
|
427
|
-
prompt: "Find meaningful connections across themes and explain which bridge beliefs matter.",
|
|
428
|
-
highlightStrategy: "bridges"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
id: "research-velocity",
|
|
432
|
-
categoryId: "browse",
|
|
433
|
-
mode: "operational",
|
|
434
|
-
name: "Research Velocity",
|
|
435
|
-
description: "Summarize recent graph movement and momentum.",
|
|
436
|
-
prompt: "Assess research velocity: what changed recently, where progress is fastest, and what is stuck.",
|
|
437
|
-
highlightStrategy: "velocity"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
id: "search",
|
|
441
|
-
categoryId: "browse",
|
|
442
|
-
mode: "semantic",
|
|
443
|
-
name: "Graph Search",
|
|
444
|
-
description: "Search the graph with semantic context.",
|
|
445
|
-
prompt: "Search the graph for {input}. Return the most relevant beliefs, evidence, and questions.",
|
|
446
|
-
inputType: "search",
|
|
447
|
-
highlightStrategy: "search"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
id: "expert-coverage",
|
|
451
|
-
categoryId: "browse",
|
|
452
|
-
mode: "semantic",
|
|
453
|
-
name: "Expert Coverage",
|
|
454
|
-
description: "Assess coverage from expert/source perspectives.",
|
|
455
|
-
prompt: "Assess whether the graph has enough expert, primary, and dissenting coverage.",
|
|
456
|
-
highlightStrategy: "expert-coverage"
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
id: "value-chain-map",
|
|
460
|
-
categoryId: "browse",
|
|
461
|
-
mode: "semantic",
|
|
462
|
-
name: "Value Chain Map",
|
|
463
|
-
description: "Map entities, dependencies, and value-chain logic.",
|
|
464
|
-
prompt: "Map the value chain implied by this graph: entities, dependencies, pressure points, and missing links.",
|
|
465
|
-
highlightStrategy: "value-chain"
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
id: "meeting-brief",
|
|
469
|
-
categoryId: "prep",
|
|
470
|
-
mode: "semantic",
|
|
471
|
-
name: "Meeting Brief",
|
|
472
|
-
description: "Prepare a meeting brief from graph context.",
|
|
473
|
-
prompt: "Prepare a concise meeting brief using the graph: thesis, open questions, risks, and recommended asks.",
|
|
474
|
-
highlightStrategy: "brief"
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
id: "open-questions-entity",
|
|
478
|
-
categoryId: "prep",
|
|
479
|
-
mode: "semantic",
|
|
480
|
-
name: "Entity Open Questions",
|
|
481
|
-
description: "Find open questions about a specific entity.",
|
|
482
|
-
prompt: "Find the most important open questions about {input} and the beliefs those questions would unlock.",
|
|
483
|
-
inputType: "entity",
|
|
484
|
-
highlightStrategy: "entity-questions"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
id: "company-context",
|
|
488
|
-
categoryId: "prep",
|
|
489
|
-
mode: "semantic",
|
|
490
|
-
name: "Company Context",
|
|
491
|
-
description: "Summarize graph context about a company.",
|
|
492
|
-
prompt: "Summarize what the graph knows about {input}: thesis relevance, evidence, risks, and open questions.",
|
|
493
|
-
inputType: "company",
|
|
494
|
-
highlightStrategy: "company"
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
id: "company-theme-fit",
|
|
498
|
-
categoryId: "prep",
|
|
499
|
-
mode: "semantic",
|
|
500
|
-
name: "Company Theme Fit",
|
|
501
|
-
description: "Assess how a company fits graph themes.",
|
|
502
|
-
prompt: "Assess how {input} fits the graph's themes and where the fit is weak or uncertain.",
|
|
503
|
-
inputType: "company",
|
|
504
|
-
highlightStrategy: "fit"
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
id: "company-comparison",
|
|
508
|
-
categoryId: "prep",
|
|
509
|
-
mode: "semantic",
|
|
510
|
-
name: "Company Comparison",
|
|
511
|
-
description: "Compare companies through graph context.",
|
|
512
|
-
prompt: "Compare {input} using graph beliefs, evidence, risks, and open questions.",
|
|
513
|
-
inputType: "company-list",
|
|
514
|
-
highlightStrategy: "comparison"
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
id: "questions-to-ask",
|
|
518
|
-
categoryId: "prep",
|
|
519
|
-
mode: "operational",
|
|
520
|
-
name: "Questions to Ask",
|
|
521
|
-
description: "Generate high-signal questions from graph gaps.",
|
|
522
|
-
prompt: "Generate the highest-signal questions to ask next, grounded in current graph gaps.",
|
|
523
|
-
highlightStrategy: "questions"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
id: "beliefs-to-test",
|
|
527
|
-
categoryId: "prep",
|
|
528
|
-
mode: "stress",
|
|
529
|
-
name: "Beliefs to Test",
|
|
530
|
-
description: "Prioritize beliefs that should be tested next.",
|
|
531
|
-
prompt: "Prioritize the beliefs that should be tested next and explain the cheapest test for each.",
|
|
532
|
-
highlightStrategy: "tests",
|
|
533
|
-
riskLevel: "medium"
|
|
534
|
-
}
|
|
535
|
-
];
|
|
536
|
-
var GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS = GRAPH_INTELLIGENCE_QUERIES.map((query) => {
|
|
537
|
-
const definition = query;
|
|
538
|
-
return {
|
|
539
|
-
...definition,
|
|
540
|
-
tools: definition.tools ?? byMode(definition.mode)
|
|
541
|
-
};
|
|
542
|
-
});
|
|
543
|
-
var GRAPH_INTELLIGENCE_QUICK_QUERIES = [
|
|
544
|
-
{
|
|
545
|
-
id: "health-check",
|
|
546
|
-
name: "Health Check",
|
|
547
|
-
queryId: "thesis-summary",
|
|
548
|
-
prompt: "Give me a fast graph health check: biggest strengths, biggest risks, and next best action."
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
id: "find-risks",
|
|
552
|
-
name: "Find Risks",
|
|
553
|
-
queryId: "weakest-links",
|
|
554
|
-
prompt: "Find the most important risks in this graph and the beliefs or evidence behind each one."
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
id: "pre-mortem",
|
|
558
|
-
name: "Pre-Mortem",
|
|
559
|
-
queryId: "pre-mortem",
|
|
560
|
-
prompt: "Assume this thesis fails. Explain the most plausible failure paths and what would reveal them early."
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
id: "whats-next",
|
|
564
|
-
name: "What's Next",
|
|
565
|
-
queryId: "questions-to-ask",
|
|
566
|
-
prompt: "What should I learn or test next to make this graph more useful?"
|
|
567
|
-
}
|
|
568
|
-
];
|
|
569
|
-
function isGraphIntelligenceQueryMode(value) {
|
|
570
|
-
return typeof value === "string" && GRAPH_INTELLIGENCE_QUERY_MODES.includes(value);
|
|
571
|
-
}
|
|
572
|
-
function getGraphIntelligenceQuery(queryId) {
|
|
573
|
-
return GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS.find(
|
|
574
|
-
(query) => query.id === queryId
|
|
575
|
-
);
|
|
576
|
-
}
|
|
577
|
-
function listGraphIntelligenceQueries(filter = {}) {
|
|
578
|
-
return GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS.filter((query) => {
|
|
579
|
-
if (filter.categoryId && query.categoryId !== filter.categoryId) {
|
|
580
|
-
return false;
|
|
581
|
-
}
|
|
582
|
-
if (filter.mode && query.mode !== filter.mode) {
|
|
583
|
-
return false;
|
|
584
|
-
}
|
|
585
|
-
return true;
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
function fillGraphIntelligencePromptTemplate(prompt, input) {
|
|
589
|
-
const replacement = input?.trim() || "the current topic";
|
|
590
|
-
return prompt.split("{input}").join(replacement);
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export { GRAPH_INTELLIGENCE_MODE_TOOL_NAMES, GRAPH_INTELLIGENCE_PUBLIC_TOOL_NAMES, GRAPH_INTELLIGENCE_QUERIES, GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS, GRAPH_INTELLIGENCE_QUERY_CATALOG_VERSION, GRAPH_INTELLIGENCE_QUERY_CATEGORIES, GRAPH_INTELLIGENCE_QUERY_MODES, GRAPH_INTELLIGENCE_QUICK_QUERIES, fillGraphIntelligencePromptTemplate, getGraphIntelligenceQuery, isGraphIntelligenceQueryMode, listGraphIntelligenceQueries };
|
|
594
|
-
//# sourceMappingURL=graph-intelligence.contract.js.map
|
|
595
|
-
//# sourceMappingURL=graph-intelligence.contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graph-intelligence.contract.ts"],"names":[],"mappings":";AAAO,IAAM,wCAAA,GACX;AAEK,IAAM,8BAAA,GAAiC;AAAA,EAC5C,MAAA;AAAA,EACA,MAAA;AAAA,EACA,QAAA;AAAA,EACA,aAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF;AAKO,IAAM,oCAAA,GAAuC;AAAA,EAClD,8BAAA;AAAA,EACA,0BA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AAEO,SAAS,4BAAA,CACd,MAAA,GAAyC,EAAC,EAC1C;AACA,EAAA,OAAO,qCAAA,CAAsC,MAAA,CAAO,CAAC,KAAA,KAAU;AAC7D,IAAA,IAAI,MAAA,CAAO,UAAA,IAAc,KAAA,CAAM,UAAA,KAAe,OAAO,UAAA,EAAY;AAC/D,MAAA,OAAO,KAAA;AAAA,IACT;AACA,IAAA,IAAI,MAAA,CAAO,IAAA,IAAQ,KAAA,CAAM,IAAA,KAAS,OAAO,IAAA,EAAM;AAC7C,MAAA,OAAO,KAAA;AAAA,IACT;AACA,IAAA,OAAO,IAAA;AAAA,EACT,CAAC,CAAA;AACH;AAEO,SAAS,mCAAA,CACd,QACA,KAAA,EACA;AACA,EAAA,MAAM,WAAA,GAAc,KAAA,EAAO,IAAA,EAAK,IAAK,mBAAA;AACrC,EAAA,OAAO,MAAA,CAAO,KAAA,CAAM,SAAS,CAAA,CAAE,KAAK,WAAW,CAAA;AACjD","file":"graph-intelligence.contract.js","sourcesContent":["export const GRAPH_INTELLIGENCE_QUERY_CATALOG_VERSION =\n \"graph_intelligence_query_catalog.v1\" as const;\n\nexport const GRAPH_INTELLIGENCE_QUERY_MODES = [\n \"core\",\n \"bias\",\n \"stress\",\n \"operational\",\n \"alpha\",\n \"semantic\",\n \"evidence\",\n] as const;\n\nexport type GraphIntelligenceQueryMode =\n (typeof GRAPH_INTELLIGENCE_QUERY_MODES)[number];\n\nexport const GRAPH_INTELLIGENCE_PUBLIC_TOOL_NAMES = [\n \"get_graph_structure_analysis\",\n \"detect_confirmation_bias\",\n \"get_graph_gaps\",\n \"get_topic_coverage\",\n \"find_contradictions\",\n \"get_falsification_questions\",\n \"search_beliefs\",\n \"search_evidence\",\n \"list_beliefs\",\n \"list_questions\",\n \"traverse_graph\",\n \"query_lineage\",\n \"get_graph_neighborhood\",\n] as const;\n\nexport type GraphIntelligencePublicToolName =\n (typeof GRAPH_INTELLIGENCE_PUBLIC_TOOL_NAMES)[number];\n\nexport const GRAPH_INTELLIGENCE_MODE_TOOL_NAMES = {\n core: [\n \"get_graph_structure_analysis\",\n \"get_topic_coverage\",\n \"get_graph_gaps\",\n \"list_beliefs\",\n \"list_questions\",\n \"search_evidence\",\n ],\n bias: [\n \"get_graph_structure_analysis\",\n \"detect_confirmation_bias\",\n \"find_contradictions\",\n \"search_evidence\",\n \"list_beliefs\",\n ],\n stress: [\n \"get_graph_structure_analysis\",\n \"get_graph_gaps\",\n \"find_contradictions\",\n \"get_falsification_questions\",\n \"list_beliefs\",\n \"list_questions\",\n ],\n operational: [\n \"get_topic_coverage\",\n \"get_graph_gaps\",\n \"list_beliefs\",\n \"list_questions\",\n \"search_evidence\",\n ],\n alpha: [\n \"get_graph_structure_analysis\",\n \"detect_confirmation_bias\",\n \"find_contradictions\",\n \"search_beliefs\",\n \"search_evidence\",\n ],\n semantic: [\n \"get_graph_structure_analysis\",\n \"search_beliefs\",\n \"search_evidence\",\n \"traverse_graph\",\n \"query_lineage\",\n \"get_graph_neighborhood\",\n ],\n evidence: [\n \"get_graph_structure_analysis\",\n \"get_topic_coverage\",\n \"search_evidence\",\n \"get_falsification_questions\",\n \"find_contradictions\",\n ],\n} as const satisfies Record<\n GraphIntelligenceQueryMode,\n readonly GraphIntelligencePublicToolName[]\n>;\n\nexport type GraphIntelligenceQueryCategory = {\n id: string;\n name: string;\n description: string;\n};\n\nexport const GRAPH_INTELLIGENCE_QUERY_CATEGORIES = [\n {\n id: \"problems\",\n name: \"Find Problems\",\n description: \"Risk, contradiction, bias, and structural weakness queries.\",\n },\n {\n id: \"gaps\",\n name: \"Find Gaps\",\n description: \"Missing evidence, unanswered questions, and sparse areas.\",\n },\n {\n id: \"reasoning\",\n name: \"Reasoning Quality\",\n description: \"Assumption chains, evidence convergence, and weak links.\",\n },\n {\n id: \"strategic\",\n name: \"Strategic Analysis\",\n description: \"Pre-mortems, falsification, contrarian signals, and bets.\",\n },\n {\n id: \"deep\",\n name: \"Deep Graph Analysis\",\n description: \"Centrality, propagation, underdetermination, and topology.\",\n },\n {\n id: \"browse\",\n name: \"Browse and Explore\",\n description: \"Narrative summaries, search, theme exploration, and bridges.\",\n },\n {\n id: \"prep\",\n name: \"Meeting Prep\",\n description: \"Company, entity, and question prep from graph context.\",\n },\n] as const satisfies readonly GraphIntelligenceQueryCategory[];\n\nexport type GraphIntelligenceQueryInputType =\n | \"none\"\n | \"entity\"\n | \"theme\"\n | \"belief\"\n | \"company\"\n | \"company-list\"\n | \"search\";\n\nexport type GraphIntelligenceQueryDefinition = {\n id: string;\n categoryId: string;\n mode: GraphIntelligenceQueryMode;\n name: string;\n description: string;\n prompt: string;\n inputType?: GraphIntelligenceQueryInputType;\n tools?: readonly GraphIntelligencePublicToolName[];\n highlightStrategy?: string;\n riskLevel?: \"low\" | \"medium\" | \"high\";\n};\n\nconst byMode = (mode: GraphIntelligenceQueryMode) =>\n GRAPH_INTELLIGENCE_MODE_TOOL_NAMES[mode];\n\nexport const GRAPH_INTELLIGENCE_QUERIES = [\n {\n id: \"confirmation-bias\",\n categoryId: \"problems\",\n mode: \"bias\",\n name: \"Find Confirmation Bias\",\n description: \"Find beliefs supported mainly by confirming evidence.\",\n prompt:\n \"Find beliefs where supporting evidence overwhelms challenging evidence. Prioritize high-conviction beliefs with few defeaters.\",\n highlightStrategy: \"bias-risk\",\n riskLevel: \"high\",\n },\n {\n id: \"contradiction-map\",\n categoryId: \"problems\",\n mode: \"stress\",\n name: \"Map Contradictions\",\n description: \"Surface direct and indirect contradiction clusters.\",\n prompt:\n \"Map the graph's contradiction clusters and explain which tensions matter most.\",\n highlightStrategy: \"contradictions\",\n riskLevel: \"high\",\n },\n {\n id: \"weak-evidence\",\n categoryId: \"problems\",\n mode: \"stress\",\n name: \"Weak Evidence Chains\",\n description: \"Find important claims with thin or indirect evidence.\",\n prompt:\n \"Find high-importance beliefs whose evidence support is thin, indirect, stale, or low quality.\",\n highlightStrategy: \"weak-support\",\n riskLevel: \"medium\",\n },\n {\n id: \"single-source\",\n categoryId: \"problems\",\n mode: \"bias\",\n name: \"Single-Source Risk\",\n description: \"Find claims overly dependent on one source or source type.\",\n prompt:\n \"Identify beliefs that rely on a single source, one methodology, or one repeated perspective.\",\n highlightStrategy: \"source-concentration\",\n riskLevel: \"medium\",\n },\n {\n id: \"untested-assumptions\",\n categoryId: \"problems\",\n mode: \"stress\",\n name: \"Untested Assumptions\",\n description: \"Find load-bearing assumptions without falsification paths.\",\n prompt:\n \"Find assumptions that appear load-bearing but do not have direct testing questions or falsification evidence.\",\n highlightStrategy: \"untested\",\n riskLevel: \"high\",\n },\n {\n id: \"load-bearing-beliefs\",\n categoryId: \"problems\",\n mode: \"stress\",\n name: \"Load-Bearing Beliefs\",\n description: \"Find central beliefs whose failure would affect many claims.\",\n prompt:\n \"Find the beliefs with the largest downstream impact if they are wrong.\",\n highlightStrategy: \"load-bearing\",\n riskLevel: \"high\",\n },\n {\n id: \"cascade-analysis\",\n categoryId: \"problems\",\n mode: \"stress\",\n name: \"Cascade Analysis\",\n description: \"Trace what changes if a belief is weakened or invalidated.\",\n prompt:\n \"Analyze likely downstream cascades if the most central or uncertain beliefs are weakened.\",\n highlightStrategy: \"cascade\",\n riskLevel: \"high\",\n },\n {\n id: \"unanswered-questions\",\n categoryId: \"gaps\",\n mode: \"operational\",\n name: \"Unanswered Questions\",\n description: \"Find important open questions that block confidence.\",\n prompt:\n \"Identify the most important unanswered questions and explain which beliefs they block.\",\n highlightStrategy: \"open-questions\",\n },\n {\n id: \"thin-themes\",\n categoryId: \"gaps\",\n mode: \"operational\",\n name: \"Thin Themes\",\n description: \"Find topics with shallow belief or evidence coverage.\",\n prompt:\n \"Find themes that look underdeveloped relative to their role in the graph.\",\n highlightStrategy: \"thin-themes\",\n },\n {\n id: \"missing-evidence\",\n categoryId: \"gaps\",\n mode: \"stress\",\n name: \"Missing Evidence\",\n description: \"Find beliefs that need specific missing evidence.\",\n prompt:\n \"Find the most valuable missing evidence needed to strengthen or falsify the graph.\",\n highlightStrategy: \"missing-evidence\",\n },\n {\n id: \"isolated-clusters\",\n categoryId: \"gaps\",\n mode: \"operational\",\n name: \"Isolated Clusters\",\n description: \"Find clusters not connected to the broader graph.\",\n prompt:\n \"Find isolated graph clusters and recommend bridge questions or bridge evidence.\",\n highlightStrategy: \"isolated-clusters\",\n },\n {\n id: \"source-contribution\",\n categoryId: \"gaps\",\n mode: \"evidence\",\n name: \"Source Contribution\",\n description: \"Assess how source mix shapes the graph.\",\n prompt:\n \"Assess whether the source mix is balanced enough for the graph's strongest claims.\",\n highlightStrategy: \"source-mix\",\n },\n {\n id: \"stale-beliefs\",\n categoryId: \"gaps\",\n mode: \"operational\",\n name: \"Stale Beliefs\",\n description: \"Find beliefs that need review because they are old or stale.\",\n prompt:\n \"Find beliefs that should be revisited because they are stale, unsupported by recent evidence, or contradicted by newer context.\",\n highlightStrategy: \"staleness\",\n },\n {\n id: \"assumption-pyramid\",\n categoryId: \"reasoning\",\n mode: \"operational\",\n name: \"Assumption Pyramid\",\n description: \"Show which conclusions rest on which assumptions.\",\n prompt:\n \"Build an assumption pyramid from the graph: foundational assumptions, intermediate claims, and top-level conclusions.\",\n highlightStrategy: \"assumptions\",\n },\n {\n id: \"converging-evidence\",\n categoryId: \"reasoning\",\n mode: \"evidence\",\n name: \"Converging Evidence\",\n description: \"Find claims supported by independent evidence streams.\",\n prompt:\n \"Find beliefs with genuinely independent converging evidence and explain why they are robust.\",\n highlightStrategy: \"convergence\",\n },\n {\n id: \"weakest-links\",\n categoryId: \"reasoning\",\n mode: \"stress\",\n name: \"Weakest Links\",\n description: \"Find the weakest links in important reasoning chains.\",\n prompt:\n \"Find the weakest links in important reasoning chains and explain how to test them.\",\n highlightStrategy: \"weak-links\",\n riskLevel: \"medium\",\n },\n {\n id: \"challenged-beliefs\",\n categoryId: \"reasoning\",\n mode: \"stress\",\n name: \"Challenged Beliefs\",\n description: \"Find beliefs with active challenges or defeaters.\",\n prompt:\n \"Find beliefs with active challenges, contradiction edges, or unresolved defeaters.\",\n highlightStrategy: \"challenged\",\n },\n {\n id: \"contrarian-map\",\n categoryId: \"strategic\",\n mode: \"alpha\",\n name: \"Contrarian Map\",\n description: \"Find non-consensus beliefs and where they are grounded.\",\n prompt:\n \"Find the graph's strongest contrarian or non-consensus beliefs and explain their support.\",\n highlightStrategy: \"contrarian\",\n },\n {\n id: \"irreversibility-audit\",\n categoryId: \"strategic\",\n mode: \"stress\",\n name: \"Irreversibility Audit\",\n description: \"Find irreversible bets and assumptions behind them.\",\n prompt:\n \"Audit irreversible decisions or beliefs and identify what must be true before acting.\",\n highlightStrategy: \"irreversible\",\n riskLevel: \"high\",\n },\n {\n id: \"pre-mortem\",\n categoryId: \"strategic\",\n mode: \"stress\",\n name: \"Pre-Mortem\",\n description: \"Explain how the graph could be wrong.\",\n prompt:\n \"Run a pre-mortem: assume the current thesis fails and identify the most plausible failure paths.\",\n highlightStrategy: \"failure-paths\",\n riskLevel: \"high\",\n },\n {\n id: \"devils-advocate\",\n categoryId: \"strategic\",\n mode: \"stress\",\n name: \"Devil's Advocate\",\n description: \"Generate the strongest critique of the graph.\",\n prompt:\n \"Produce the strongest evidence-grounded critique of the current graph and its main thesis.\",\n highlightStrategy: \"critique\",\n },\n {\n id: \"falsification-map\",\n categoryId: \"strategic\",\n mode: \"stress\",\n name: \"Falsification Map\",\n description: \"Find the cheapest tests that would disprove key beliefs.\",\n prompt:\n \"Map the cheapest, clearest falsification tests for the graph's key claims.\",\n highlightStrategy: \"falsification\",\n riskLevel: \"high\",\n },\n {\n id: \"prediction-tracker\",\n categoryId: \"strategic\",\n mode: \"evidence\",\n name: \"Prediction Tracker\",\n description: \"Find beliefs that imply measurable predictions.\",\n prompt:\n \"Find beliefs that imply measurable predictions and suggest tracking signals.\",\n highlightStrategy: \"predictions\",\n },\n {\n id: \"belief-pagerank\",\n categoryId: \"deep\",\n mode: \"semantic\",\n name: \"Belief PageRank\",\n description: \"Identify structurally central beliefs.\",\n prompt:\n \"Use graph centrality to identify the most structurally important beliefs.\",\n highlightStrategy: \"centrality\",\n },\n {\n id: \"underdetermination\",\n categoryId: \"deep\",\n mode: \"semantic\",\n name: \"Underdetermination\",\n description: \"Find places where evidence supports multiple explanations.\",\n prompt:\n \"Find places where the same evidence could support multiple incompatible explanations.\",\n highlightStrategy: \"underdetermination\",\n },\n {\n id: \"confidence-propagation\",\n categoryId: \"deep\",\n mode: \"semantic\",\n name: \"Confidence Propagation\",\n description: \"Assess how uncertainty moves through the graph.\",\n prompt:\n \"Explain how uncertainty propagates from weak or contested beliefs through downstream conclusions.\",\n highlightStrategy: \"confidence-flow\",\n },\n {\n id: \"argument-depth\",\n categoryId: \"deep\",\n mode: \"evidence\",\n name: \"Argument Depth\",\n description: \"Assess reasoning depth and chain quality.\",\n prompt:\n \"Assess reasoning depth: where claims are shallow, deeply supported, or overextended.\",\n highlightStrategy: \"depth\",\n },\n {\n id: \"information-edge\",\n categoryId: \"deep\",\n mode: \"alpha\",\n name: \"Information Edge\",\n description: \"Find differentiated evidence or signals.\",\n prompt:\n \"Find evidence, sources, or beliefs that could represent differentiated information edge.\",\n highlightStrategy: \"information-edge\",\n },\n {\n id: \"thesis-summary\",\n categoryId: \"browse\",\n mode: \"semantic\",\n name: \"Thesis Summary\",\n description: \"Summarize the graph's core thesis and support.\",\n prompt:\n \"Summarize the graph's core thesis, strongest support, weakest support, and open questions.\",\n highlightStrategy: \"summary\",\n },\n {\n id: \"theme-deep-dive\",\n categoryId: \"browse\",\n mode: \"semantic\",\n name: \"Theme Deep Dive\",\n description: \"Deep dive into a named theme.\",\n prompt:\n \"Deep dive into {input}. Explain the key beliefs, evidence, contradictions, and open questions.\",\n inputType: \"theme\",\n highlightStrategy: \"theme\",\n },\n {\n id: \"belief-detail\",\n categoryId: \"browse\",\n mode: \"semantic\",\n name: \"Belief Detail\",\n description: \"Explain one belief and its graph neighborhood.\",\n prompt:\n \"Explain {input} and its support, challenges, related beliefs, and downstream implications.\",\n inputType: \"belief\",\n highlightStrategy: \"belief\",\n },\n {\n id: \"strongest-beliefs\",\n categoryId: \"browse\",\n mode: \"operational\",\n name: \"Strongest Beliefs\",\n description: \"Find the graph's strongest current beliefs.\",\n prompt:\n \"Find the strongest current beliefs and explain why each one deserves confidence.\",\n highlightStrategy: \"strongest\",\n },\n {\n id: \"cross-theme-connection\",\n categoryId: \"browse\",\n mode: \"semantic\",\n name: \"Cross-Theme Connections\",\n description: \"Find bridges between themes.\",\n prompt:\n \"Find meaningful connections across themes and explain which bridge beliefs matter.\",\n highlightStrategy: \"bridges\",\n },\n {\n id: \"research-velocity\",\n categoryId: \"browse\",\n mode: \"operational\",\n name: \"Research Velocity\",\n description: \"Summarize recent graph movement and momentum.\",\n prompt:\n \"Assess research velocity: what changed recently, where progress is fastest, and what is stuck.\",\n highlightStrategy: \"velocity\",\n },\n {\n id: \"search\",\n categoryId: \"browse\",\n mode: \"semantic\",\n name: \"Graph Search\",\n description: \"Search the graph with semantic context.\",\n prompt:\n \"Search the graph for {input}. Return the most relevant beliefs, evidence, and questions.\",\n inputType: \"search\",\n highlightStrategy: \"search\",\n },\n {\n id: \"expert-coverage\",\n categoryId: \"browse\",\n mode: \"semantic\",\n name: \"Expert Coverage\",\n description: \"Assess coverage from expert/source perspectives.\",\n prompt:\n \"Assess whether the graph has enough expert, primary, and dissenting coverage.\",\n highlightStrategy: \"expert-coverage\",\n },\n {\n id: \"value-chain-map\",\n categoryId: \"browse\",\n mode: \"semantic\",\n name: \"Value Chain Map\",\n description: \"Map entities, dependencies, and value-chain logic.\",\n prompt:\n \"Map the value chain implied by this graph: entities, dependencies, pressure points, and missing links.\",\n highlightStrategy: \"value-chain\",\n },\n {\n id: \"meeting-brief\",\n categoryId: \"prep\",\n mode: \"semantic\",\n name: \"Meeting Brief\",\n description: \"Prepare a meeting brief from graph context.\",\n prompt:\n \"Prepare a concise meeting brief using the graph: thesis, open questions, risks, and recommended asks.\",\n highlightStrategy: \"brief\",\n },\n {\n id: \"open-questions-entity\",\n categoryId: \"prep\",\n mode: \"semantic\",\n name: \"Entity Open Questions\",\n description: \"Find open questions about a specific entity.\",\n prompt:\n \"Find the most important open questions about {input} and the beliefs those questions would unlock.\",\n inputType: \"entity\",\n highlightStrategy: \"entity-questions\",\n },\n {\n id: \"company-context\",\n categoryId: \"prep\",\n mode: \"semantic\",\n name: \"Company Context\",\n description: \"Summarize graph context about a company.\",\n prompt:\n \"Summarize what the graph knows about {input}: thesis relevance, evidence, risks, and open questions.\",\n inputType: \"company\",\n highlightStrategy: \"company\",\n },\n {\n id: \"company-theme-fit\",\n categoryId: \"prep\",\n mode: \"semantic\",\n name: \"Company Theme Fit\",\n description: \"Assess how a company fits graph themes.\",\n prompt:\n \"Assess how {input} fits the graph's themes and where the fit is weak or uncertain.\",\n inputType: \"company\",\n highlightStrategy: \"fit\",\n },\n {\n id: \"company-comparison\",\n categoryId: \"prep\",\n mode: \"semantic\",\n name: \"Company Comparison\",\n description: \"Compare companies through graph context.\",\n prompt:\n \"Compare {input} using graph beliefs, evidence, risks, and open questions.\",\n inputType: \"company-list\",\n highlightStrategy: \"comparison\",\n },\n {\n id: \"questions-to-ask\",\n categoryId: \"prep\",\n mode: \"operational\",\n name: \"Questions to Ask\",\n description: \"Generate high-signal questions from graph gaps.\",\n prompt:\n \"Generate the highest-signal questions to ask next, grounded in current graph gaps.\",\n highlightStrategy: \"questions\",\n },\n {\n id: \"beliefs-to-test\",\n categoryId: \"prep\",\n mode: \"stress\",\n name: \"Beliefs to Test\",\n description: \"Prioritize beliefs that should be tested next.\",\n prompt:\n \"Prioritize the beliefs that should be tested next and explain the cheapest test for each.\",\n highlightStrategy: \"tests\",\n riskLevel: \"medium\",\n },\n] as const satisfies readonly GraphIntelligenceQueryDefinition[];\n\nexport type GraphIntelligenceQueryId =\n (typeof GRAPH_INTELLIGENCE_QUERIES)[number][\"id\"];\n\nexport const GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS =\n GRAPH_INTELLIGENCE_QUERIES.map((query) => {\n const definition = query as GraphIntelligenceQueryDefinition;\n return {\n ...definition,\n tools: definition.tools ?? byMode(definition.mode),\n };\n });\n\nexport type GraphIntelligenceQueryWithTools =\n (typeof GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS)[number];\n\nexport type GraphIntelligenceQuickQuery = {\n id: string;\n name: string;\n queryId: GraphIntelligenceQueryId;\n prompt: string;\n};\n\nexport const GRAPH_INTELLIGENCE_QUICK_QUERIES = [\n {\n id: \"health-check\",\n name: \"Health Check\",\n queryId: \"thesis-summary\",\n prompt:\n \"Give me a fast graph health check: biggest strengths, biggest risks, and next best action.\",\n },\n {\n id: \"find-risks\",\n name: \"Find Risks\",\n queryId: \"weakest-links\",\n prompt:\n \"Find the most important risks in this graph and the beliefs or evidence behind each one.\",\n },\n {\n id: \"pre-mortem\",\n name: \"Pre-Mortem\",\n queryId: \"pre-mortem\",\n prompt:\n \"Assume this thesis fails. Explain the most plausible failure paths and what would reveal them early.\",\n },\n {\n id: \"whats-next\",\n name: \"What's Next\",\n queryId: \"questions-to-ask\",\n prompt:\n \"What should I learn or test next to make this graph more useful?\",\n },\n] as const satisfies readonly GraphIntelligenceQuickQuery[];\n\nexport type GraphIntelligenceCatalogFilter = {\n categoryId?: string;\n mode?: GraphIntelligenceQueryMode;\n};\n\nexport function isGraphIntelligenceQueryMode(\n value: unknown\n): value is GraphIntelligenceQueryMode {\n return (\n typeof value === \"string\" &&\n (GRAPH_INTELLIGENCE_QUERY_MODES as readonly string[]).includes(value)\n );\n}\n\nexport function getGraphIntelligenceQuery(queryId: string) {\n return GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS.find(\n (query) => query.id === queryId\n );\n}\n\nexport function listGraphIntelligenceQueries(\n filter: GraphIntelligenceCatalogFilter = {}\n) {\n return GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS.filter((query) => {\n if (filter.categoryId && query.categoryId !== filter.categoryId) {\n return false;\n }\n if (filter.mode && query.mode !== filter.mode) {\n return false;\n }\n return true;\n });\n}\n\nexport function fillGraphIntelligencePromptTemplate(\n prompt: string,\n input?: string\n) {\n const replacement = input?.trim() || \"the current topic\";\n return prompt.split(\"{input}\").join(replacement);\n}\n"]}
|