@roarpeng/graphflow 1.4.4 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +72 -0
- package/CLAUDE.md +1 -1
- package/README.md +76 -50
- package/dist/agents/atp-schema.d.ts +59 -0
- package/dist/agents/atp-schema.d.ts.map +1 -0
- package/dist/agents/atp-schema.js +3 -0
- package/dist/agents/atp-schema.js.map +1 -0
- package/dist/agents/decision-engine.d.ts +55 -0
- package/dist/agents/decision-engine.d.ts.map +1 -0
- package/dist/agents/decision-engine.js +338 -0
- package/dist/agents/decision-engine.js.map +1 -0
- package/dist/agents/insight.d.ts +69 -2
- package/dist/agents/insight.d.ts.map +1 -1
- package/dist/agents/insight.js +420 -27
- package/dist/agents/insight.js.map +1 -1
- package/dist/agents/task-profile.d.ts +19 -0
- package/dist/agents/task-profile.d.ts.map +1 -0
- package/dist/agents/task-profile.js +64 -0
- package/dist/agents/task-profile.js.map +1 -0
- package/dist/agents/validator.js +1 -1
- package/dist/agents/validator.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +4 -3
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/discover-workspace.d.ts.map +1 -1
- package/dist/config/discover-workspace.js +13 -2
- package/dist/config/discover-workspace.js.map +1 -1
- package/dist/config/embedding-factory.d.ts.map +1 -1
- package/dist/config/embedding-factory.js +87 -8
- package/dist/config/embedding-factory.js.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +10 -4
- package/dist/config/loader.js.map +1 -1
- package/dist/config/provider-env.d.ts +32 -0
- package/dist/config/provider-env.d.ts.map +1 -0
- package/dist/config/provider-env.js +51 -0
- package/dist/config/provider-env.js.map +1 -0
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js +7 -2
- package/dist/config/resolve.js.map +1 -1
- package/dist/config/schema.d.ts +17 -3
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/workspace-root.d.ts +0 -12
- package/dist/config/workspace-root.d.ts.map +1 -1
- package/dist/config/workspace-root.js +21 -5
- package/dist/config/workspace-root.js.map +1 -1
- package/dist/core/agent-delegation.d.ts +8 -1
- package/dist/core/agent-delegation.d.ts.map +1 -1
- package/dist/core/agent-delegation.js +233 -38
- package/dist/core/agent-delegation.js.map +1 -1
- package/dist/core/cancellation.d.ts +57 -0
- package/dist/core/cancellation.d.ts.map +1 -0
- package/dist/core/cancellation.js +195 -0
- package/dist/core/cancellation.js.map +1 -0
- package/dist/core/dag-engine.d.ts +6 -1
- package/dist/core/dag-engine.d.ts.map +1 -1
- package/dist/core/dag-engine.js +67 -9
- package/dist/core/dag-engine.js.map +1 -1
- package/dist/core/orchestrator-context.d.ts.map +1 -1
- package/dist/core/orchestrator-context.js +28 -3
- package/dist/core/orchestrator-context.js.map +1 -1
- package/dist/core/orchestrator-route.d.ts +1 -1
- package/dist/core/orchestrator-route.d.ts.map +1 -1
- package/dist/core/orchestrator-route.js.map +1 -1
- package/dist/core/orchestrator.js +6 -1
- package/dist/core/orchestrator.js.map +1 -1
- package/dist/core/runtime-controller.d.ts +19 -0
- package/dist/core/runtime-controller.d.ts.map +1 -0
- package/dist/core/runtime-controller.js +89 -0
- package/dist/core/runtime-controller.js.map +1 -0
- package/dist/core/types.d.ts +17 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/graph/context-slicer-types.d.ts +2 -4
- package/dist/graph/context-slicer-types.d.ts.map +1 -1
- package/dist/graph/context-slicer-types.js.map +1 -1
- package/dist/graph/context-slicer.d.ts +1 -0
- package/dist/graph/context-slicer.d.ts.map +1 -1
- package/dist/graph/context-slicer.js +54 -18
- package/dist/graph/context-slicer.js.map +1 -1
- package/dist/graph/file-indexer-walker.d.ts +3 -0
- package/dist/graph/file-indexer-walker.d.ts.map +1 -1
- package/dist/graph/file-indexer-walker.js.map +1 -1
- package/dist/graph/file-indexer.d.ts +1 -0
- package/dist/graph/file-indexer.d.ts.map +1 -1
- package/dist/graph/file-indexer.js +14 -18
- package/dist/graph/file-indexer.js.map +1 -1
- package/dist/graph/file-watcher.d.ts.map +1 -1
- package/dist/graph/file-watcher.js +9 -2
- package/dist/graph/file-watcher.js.map +1 -1
- package/dist/graph/graph-utils.d.ts +6 -1
- package/dist/graph/graph-utils.d.ts.map +1 -1
- package/dist/graph/graph-utils.js +116 -2
- package/dist/graph/graph-utils.js.map +1 -1
- package/dist/graph/graphify-file-client.d.ts.map +1 -1
- package/dist/graph/graphify-file-client.js +2 -1
- package/dist/graph/graphify-file-client.js.map +1 -1
- package/dist/graph/hit-diversify.d.ts +31 -0
- package/dist/graph/hit-diversify.d.ts.map +1 -0
- package/dist/graph/hit-diversify.js +270 -0
- package/dist/graph/hit-diversify.js.map +1 -0
- package/dist/graph/language-indexers/go.d.ts.map +1 -1
- package/dist/graph/language-indexers/go.js +2 -3
- package/dist/graph/language-indexers/go.js.map +1 -1
- package/dist/graph/language-indexers/incremental-parse.d.ts +9 -0
- package/dist/graph/language-indexers/incremental-parse.d.ts.map +1 -0
- package/dist/graph/language-indexers/incremental-parse.js +114 -0
- package/dist/graph/language-indexers/incremental-parse.js.map +1 -0
- package/dist/graph/language-indexers/python.d.ts.map +1 -1
- package/dist/graph/language-indexers/python.js +2 -3
- package/dist/graph/language-indexers/python.js.map +1 -1
- package/dist/graph/language-indexers/rust.d.ts.map +1 -1
- package/dist/graph/language-indexers/rust.js +2 -3
- package/dist/graph/language-indexers/rust.js.map +1 -1
- package/dist/graph/language-indexers/tree-sitter-loader.d.ts +19 -3
- package/dist/graph/language-indexers/tree-sitter-loader.d.ts.map +1 -1
- package/dist/graph/language-indexers/tree-sitter-loader.js +24 -4
- package/dist/graph/language-indexers/tree-sitter-loader.js.map +1 -1
- package/dist/graph/query-expand.d.ts.map +1 -1
- package/dist/graph/query-expand.js +2 -0
- package/dist/graph/query-expand.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/agent-mcp-installer.d.ts +39 -0
- package/dist/integrations/agent-mcp-installer.d.ts.map +1 -1
- package/dist/integrations/agent-mcp-installer.js +220 -14
- package/dist/integrations/agent-mcp-installer.js.map +1 -1
- package/dist/learning/embedding-quality.d.ts +46 -0
- package/dist/learning/embedding-quality.d.ts.map +1 -0
- package/dist/learning/embedding-quality.js +131 -0
- package/dist/learning/embedding-quality.js.map +1 -0
- package/dist/learning/embeddings.d.ts +46 -3
- package/dist/learning/embeddings.d.ts.map +1 -1
- package/dist/learning/embeddings.js +186 -26
- package/dist/learning/embeddings.js.map +1 -1
- package/dist/learning/hnsw-index.d.ts +9 -35
- package/dist/learning/hnsw-index.d.ts.map +1 -1
- package/dist/learning/hnsw-index.js +8 -154
- package/dist/learning/hnsw-index.js.map +1 -1
- package/dist/learning/skill-flywheel.d.ts +1 -1
- package/dist/learning/skill-flywheel.d.ts.map +1 -1
- package/dist/learning/skill-flywheel.js +10 -3
- package/dist/learning/skill-flywheel.js.map +1 -1
- package/dist/routing/deepseek-tools.d.ts +7 -0
- package/dist/routing/deepseek-tools.d.ts.map +1 -0
- package/dist/routing/deepseek-tools.js +154 -0
- package/dist/routing/deepseek-tools.js.map +1 -0
- package/dist/routing/model-router.d.ts +1 -1
- package/dist/routing/model-router.d.ts.map +1 -1
- package/dist/routing/model-router.js +5 -1
- package/dist/routing/model-router.js.map +1 -1
- package/dist/routing/provider-adapters/anthropic.d.ts.map +1 -1
- package/dist/routing/provider-adapters/anthropic.js +7 -4
- package/dist/routing/provider-adapters/anthropic.js.map +1 -1
- package/dist/routing/provider-adapters/bailian.d.ts.map +1 -1
- package/dist/routing/provider-adapters/bailian.js +7 -4
- package/dist/routing/provider-adapters/bailian.js.map +1 -1
- package/dist/routing/provider-adapters/deepseek.d.ts +5 -0
- package/dist/routing/provider-adapters/deepseek.d.ts.map +1 -0
- package/dist/routing/provider-adapters/deepseek.js +109 -0
- package/dist/routing/provider-adapters/deepseek.js.map +1 -0
- package/dist/routing/provider-adapters/doubao.d.ts.map +1 -1
- package/dist/routing/provider-adapters/doubao.js +7 -4
- package/dist/routing/provider-adapters/doubao.js.map +1 -1
- package/dist/routing/provider-adapters/openai.d.ts +2 -4
- package/dist/routing/provider-adapters/openai.d.ts.map +1 -1
- package/dist/routing/provider-adapters/openai.js +23 -32
- package/dist/routing/provider-adapters/openai.js.map +1 -1
- package/dist/routing/provider-adapters/types.d.ts +61 -0
- package/dist/routing/provider-adapters/types.d.ts.map +1 -0
- package/dist/routing/provider-adapters/types.js +56 -0
- package/dist/routing/provider-adapters/types.js.map +1 -0
- package/dist/routing/provider-executor.d.ts +6 -1
- package/dist/routing/provider-executor.d.ts.map +1 -1
- package/dist/routing/provider-executor.js +70 -39
- package/dist/routing/provider-executor.js.map +1 -1
- package/dist/routing/provider-health.d.ts.map +1 -1
- package/dist/routing/provider-health.js +7 -1
- package/dist/routing/provider-health.js.map +1 -1
- package/dist/routing/role-capabilities.d.ts +11 -0
- package/dist/routing/role-capabilities.d.ts.map +1 -0
- package/dist/routing/role-capabilities.js +94 -0
- package/dist/routing/role-capabilities.js.map +1 -0
- package/dist/surfaces/antigravity-rules/graphflow.md +8 -8
- package/dist/surfaces/cli/runtime/env.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/env.js +3 -0
- package/dist/surfaces/cli/runtime/env.js.map +1 -1
- package/dist/surfaces/cli/runtime/facade.d.ts +2 -1
- package/dist/surfaces/cli/runtime/facade.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/facade.js +1 -0
- package/dist/surfaces/cli/runtime/facade.js.map +1 -1
- package/dist/surfaces/cli/runtime/graph.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/graph.js +7 -1
- package/dist/surfaces/cli/runtime/graph.js.map +1 -1
- package/dist/surfaces/cli/runtime/routing.d.ts +3 -0
- package/dist/surfaces/cli/runtime/routing.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/routing.js +31 -4
- package/dist/surfaces/cli/runtime/routing.js.map +1 -1
- package/dist/surfaces/cli/runtime/settings.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/settings.js +0 -5
- package/dist/surfaces/cli/runtime/settings.js.map +1 -1
- package/dist/surfaces/cli/runtime/types.d.ts +23 -9
- package/dist/surfaces/cli/runtime/types.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime.d.ts +1 -1
- package/dist/surfaces/cli/runtime.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime.js +2 -1
- package/dist/surfaces/cli/runtime.js.map +1 -1
- package/dist/surfaces/copilot-instructions/graphflow.md +6 -6
- package/dist/surfaces/cursor-rules/graphflow.mdc +20 -27
- package/dist/surfaces/mcp/server.js +17 -6
- package/dist/surfaces/mcp/server.js.map +1 -1
- package/dist/surfaces/mcp/tool-definitions.d.ts.map +1 -1
- package/dist/surfaces/mcp/tool-definitions.js +31 -124
- package/dist/surfaces/mcp/tool-definitions.js.map +1 -1
- package/dist/surfaces/mcp/tool-handlers.d.ts.map +1 -1
- package/dist/surfaces/mcp/tool-handlers.js +80 -42
- package/dist/surfaces/mcp/tool-handlers.js.map +1 -1
- package/dist/surfaces/trae-rules/graphflow.md +9 -9
- package/dist/surfaces/trae-skill/graphflow/SKILL.md +68 -75
- package/package.json +2 -2
- package/src/surfaces/antigravity-rules/graphflow.md +8 -8
- package/src/surfaces/copilot-instructions/graphflow.md +6 -6
- package/src/surfaces/cursor-rules/graphflow.mdc +20 -27
- package/src/surfaces/trae-rules/graphflow.md +9 -9
- package/src/surfaces/trae-skill/graphflow/SKILL.md +68 -75
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/cli/runtime/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EAAE,uB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EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -8,5 +8,5 @@ export { runTask, runTaskResult, reportOutcome, diagnoseRouting, diagnoseRouting
|
|
|
8
8
|
export { getSettingsPanelStatus, indexGraphFromSettings, testRoutingAndIndexGraph, } from "./runtime/panel.js";
|
|
9
9
|
export { assertGraphFlowRuntime, type GraphFlowRuntime, type GraphFlowRuntimeModule } from "./runtime/facade.js";
|
|
10
10
|
export { runLearningNightly, runLearningNightlyResult, } from "./runtime/learning.js";
|
|
11
|
-
export { detectInstalledAgents, formatModelConfigGuide, installMcpToDetectedAgents, } from "../../integrations/agent-mcp-installer";
|
|
11
|
+
export { detectInstalledAgents, formatModelConfigGuide, installMcpToDetectedAgents, repairUnsafeWindowsMcpCommands, } from "../../integrations/agent-mcp-installer";
|
|
12
12
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/surfaces/cli/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,uBAAuB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACnG,cAAc,oBAAoB,CAAC;AACnC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,OAAO,EACP,aAAa,EACb,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,WAAW,EACX,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACjH,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/surfaces/cli/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,uBAAuB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACnG,cAAc,oBAAoB,CAAC;AACnC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,OAAO,EACP,aAAa,EACb,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,WAAW,EACX,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACjH,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,wCAAwC,CAAC"}
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.installMcpToDetectedAgents = exports.formatModelConfigGuide = exports.detectInstalledAgents = exports.runLearningNightlyResult = exports.runLearningNightly = exports.assertGraphFlowRuntime = exports.testRoutingAndIndexGraph = exports.indexGraphFromSettings = exports.getSettingsPanelStatus = exports.mergeAgentInsightResult = exports.submitAgentInsightResult = exports.planInsight = exports.planInsightResult = exports.planAndBrainstormResult = exports.planAndBrainstorm = exports.diagnoseRoutingResult = exports.diagnoseRouting = exports.reportOutcome = exports.runTaskResult = exports.runTask = exports.startFileWatcherIfEnabled = exports.resetTokenSavingsStats = exports.getTokenSavingsStats = exports.importSkillPackageRuntime = exports.exportSkillPackageRuntime = exports.importArtifact = exports.exportArtifact = exports.getSkillInsights = exports.inspectGraph = exports.rebuildGraph = exports.indexFile = exports.indexGraph = exports.expandAnchor = exports.previewContext = exports.validateSettingsForRouting = exports.validateSettingsForGraphIndex = exports.saveGraphFlowSettings = exports.getGraphFlowSettings = exports.resolveWritableConfigPath = exports.resolveConfigPath = exports.resolveConfig = exports.resolveGlobalConfigPath = exports.ensureWorkspaceGraphFlowConfig = exports.ensureGlobalGraphFlowConfig = exports.getDefaultConfig = void 0;
|
|
17
|
+
exports.repairUnsafeWindowsMcpCommands = exports.installMcpToDetectedAgents = exports.formatModelConfigGuide = exports.detectInstalledAgents = exports.runLearningNightlyResult = exports.runLearningNightly = exports.assertGraphFlowRuntime = exports.testRoutingAndIndexGraph = exports.indexGraphFromSettings = exports.getSettingsPanelStatus = exports.mergeAgentInsightResult = exports.submitAgentInsightResult = exports.planInsight = exports.planInsightResult = exports.planAndBrainstormResult = exports.planAndBrainstorm = exports.diagnoseRoutingResult = exports.diagnoseRouting = exports.reportOutcome = exports.runTaskResult = exports.runTask = exports.startFileWatcherIfEnabled = exports.resetTokenSavingsStats = exports.getTokenSavingsStats = exports.importSkillPackageRuntime = exports.exportSkillPackageRuntime = exports.importArtifact = exports.exportArtifact = exports.getSkillInsights = exports.inspectGraph = exports.rebuildGraph = exports.indexFile = exports.indexGraph = exports.expandAnchor = exports.previewContext = exports.validateSettingsForRouting = exports.validateSettingsForGraphIndex = exports.saveGraphFlowSettings = exports.getGraphFlowSettings = exports.resolveWritableConfigPath = exports.resolveConfigPath = exports.resolveConfig = exports.resolveGlobalConfigPath = exports.ensureWorkspaceGraphFlowConfig = exports.ensureGlobalGraphFlowConfig = exports.getDefaultConfig = void 0;
|
|
18
18
|
var defaults_1 = require("../../config/defaults");
|
|
19
19
|
Object.defineProperty(exports, "getDefaultConfig", { enumerable: true, get: function () { return defaults_1.getDefaultConfig; } });
|
|
20
20
|
var scaffold_1 = require("../../config/scaffold");
|
|
@@ -71,4 +71,5 @@ var agent_mcp_installer_1 = require("../../integrations/agent-mcp-installer");
|
|
|
71
71
|
Object.defineProperty(exports, "detectInstalledAgents", { enumerable: true, get: function () { return agent_mcp_installer_1.detectInstalledAgents; } });
|
|
72
72
|
Object.defineProperty(exports, "formatModelConfigGuide", { enumerable: true, get: function () { return agent_mcp_installer_1.formatModelConfigGuide; } });
|
|
73
73
|
Object.defineProperty(exports, "installMcpToDetectedAgents", { enumerable: true, get: function () { return agent_mcp_installer_1.installMcpToDetectedAgents; } });
|
|
74
|
+
Object.defineProperty(exports, "repairUnsafeWindowsMcpCommands", { enumerable: true, get: function () { return agent_mcp_installer_1.repairUnsafeWindowsMcpCommands; } });
|
|
74
75
|
//# sourceMappingURL=runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/surfaces/cli/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAAyD;AAAhD,4GAAA,gBAAgB,OAAA;AACzB,kDAK+B;AAJ7B,uHAAA,2BAA2B,OAAA;AAC3B,0HAAA,8BAA8B,OAAA;AAC9B,mHAAA,uBAAuB,OAAA;AAGzB,gDAAmG;AAA1F,wGAAA,aAAa,OAAA;AAAE,4GAAA,iBAAiB,OAAA;AAAE,oHAAA,yBAAyB,OAAA;AACpE,qDAAmC;AACnC,qDAK+B;AAJ7B,mHAAA,oBAAoB,OAAA;AACpB,oHAAA,qBAAqB,OAAA;AACrB,4HAAA,6BAA6B,OAAA;AAC7B,yHAAA,0BAA0B,OAAA;AAE5B,+CAe4B;AAd1B,0GAAA,cAAc,OAAA;AACd,wGAAA,YAAY,OAAA;AACZ,sGAAA,UAAU,OAAA;AACV,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BAAqB,OAAA;AACrB,4HAAA,6BAA6B,OAAA;AAC7B,yHAAA,0BAA0B,OAAA;AAE5B,+CAe4B;AAd1B,0GAAA,cAAc,OAAA;AACd,wGAAA,YAAY,OAAA;AACZ,sGAAA,UAAU,OAAA;AACV,qGAAA,SAAS,OAAA;AACT,wGAAA,YAAY,OAAA;AACZ,wGAAA,YAAY,OAAA;AACZ,4GAAA,gBAAgB,OAAA;AAChB,0GAAA,cAAc,OAAA;AACd,0GAAA,cAAc,OAAA;AACd,qHAAA,yBAAyB,OAAA;AACzB,qHAAA,yBAAyB,OAAA;AACzB,gHAAA,oBAAoB,OAAA;AACpB,kHAAA,sBAAsB,OAAA;AACtB,qHAAA,yBAAyB,OAAA;AAE3B,mDAY8B;AAX5B,qGAAA,OAAO,OAAA;AACP,2GAAA,aAAa,OAAA;AACb,2GAAA,aAAa,OAAA;AACb,6GAAA,eAAe,OAAA;AACf,mHAAA,qBAAqB,OAAA;AACrB,+GAAA,iBAAiB,OAAA;AACjB,qHAAA,uBAAuB,OAAA;AACvB,+GAAA,iBAAiB,OAAA;AACjB,yGAAA,WAAW,OAAA;AACX,sHAAA,wBAAwB,OAAA;AACxB,qHAAA,uBAAuB,OAAA;AAEzB,+CAI4B;AAH1B,kHAAA,sBAAsB,OAAA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,oHAAA,wBAAwB,OAAA;AAE1B,iDAAiH;AAAxG,mHAAA,sBAAsB,OAAA;AAC/B,qDAG+B;AAF7B,iHAAA,kBAAkB,OAAA;AAClB,uHAAA,wBAAwB,OAAA;AAE1B,8EAKgD;AAJ9C,4HAAA,qBAAqB,OAAA;AACrB,6HAAA,sBAAsB,OAAA;AACtB,iIAAA,0BAA0B,OAAA;AAC1B,qIAAA,8BAA8B,OAAA"}
|
|
@@ -4,7 +4,7 @@ GraphFlow is a graph-based context and planning service backed by a persistent M
|
|
|
4
4
|
|
|
5
5
|
Before broad code exploration, implementation, debugging, review, planning, or architecture questions:
|
|
6
6
|
|
|
7
|
-
1. Call `
|
|
7
|
+
1. Call `graphflow_context` with the user's task/query.
|
|
8
8
|
2. Use the returned `summary`, `anchors`, `refillPreview`, and `tokenBudget` as the first context source.
|
|
9
9
|
3. Read full files only when:
|
|
10
10
|
- GraphFlow anchors point to that file/symbol,
|
|
@@ -45,16 +45,16 @@ Do **not** hardcode `GRAPHFLOW_WORKSPACE_ROOT` — let the MCP server detect the
|
|
|
45
45
|
|
|
46
46
|
Code symbols are mostly English. For Chinese user questions:
|
|
47
47
|
|
|
48
|
-
1. **Proactive:** Before or with `
|
|
49
|
-
2. **
|
|
50
|
-
3.
|
|
48
|
+
1. **Proactive:** Before or with `graphflow_context`, translate intent to English **file/class/component names** (e.g. `PoseDetectionPage`, `BattlePage`, `shieldEffect`) and pass `englishQuery`. Avoid generic terms like `exercise` when the user means UI/camera — they often match data/types layers.
|
|
49
|
+
2. **Module families (store/slices):** Prefer file stems (`useGameStore companionSlice dailySlice inventorySlice`), not bare domain words like `monster` (often hits `data/monsters` instead of `monsterSlice`).
|
|
50
|
+
3. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en` (low `anchorCount`), answer the JSON prompt with your model, then retry preview with `englishQuery`.
|
|
51
|
+
4. Keep `query` as the original Chinese text; use `englishQuery` for search terms only.
|
|
51
52
|
|
|
52
53
|
## High-frequency MCP tools
|
|
53
54
|
|
|
54
55
|
| Tool | When |
|
|
55
56
|
|------|------|
|
|
56
|
-
| `
|
|
57
|
-
| `graphflow_expand_anchor` | Need full content of one anchor |
|
|
57
|
+
| `graphflow_context` | **Always first** for code questions (use `query`); expand anchor with `anchorId` |
|
|
58
58
|
| `graphflow_plan` | Multi-step tasks |
|
|
59
59
|
| `graphflow_run` | Full task packaging (bridge mode) |
|
|
60
60
|
| `graphflow_report_outcome` | After executing a `graphflow_run` descriptor |
|
|
@@ -11,7 +11,7 @@ GraphFlow is a graph-based context and planning service backed by a persistent M
|
|
|
11
11
|
|
|
12
12
|
Before broad code exploration, implementation, debugging, review, planning, or architecture questions:
|
|
13
13
|
|
|
14
|
-
1. Call `
|
|
14
|
+
1. Call `graphflow_context` with the user's task/query.
|
|
15
15
|
2. Use the returned `summary`, `anchors`, `refillPreview`, and `tokenBudget` as the first context source.
|
|
16
16
|
3. Read full files only when:
|
|
17
17
|
- GraphFlow anchors point to that file/symbol,
|
|
@@ -31,57 +31,50 @@ Do not scan the whole repository, recursively inspect many files, or read large
|
|
|
31
31
|
|
|
32
32
|
Code symbols are mostly English. For Chinese user questions:
|
|
33
33
|
|
|
34
|
-
1. **Proactive:** Before or with `
|
|
35
|
-
2. **
|
|
36
|
-
3.
|
|
34
|
+
1. **Proactive:** Before or with `graphflow_context`, translate intent to English **file/class/component names** (e.g. `PoseDetectionPage`, `BattlePage`, `shieldEffect`) and pass `englishQuery`. Avoid generic terms like `exercise` when the user means UI/camera — they often match data/types layers.
|
|
35
|
+
2. **Module families (store/slices):** Prefer file stems (`useGameStore companionSlice dailySlice inventorySlice`), not bare domain words like `monster` (often hits `data/monsters` instead of `monsterSlice`).
|
|
36
|
+
3. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en` (low `anchorCount`), answer the JSON prompt with your model, then retry preview with `englishQuery`.
|
|
37
|
+
4. Keep `query` as the original Chinese text; use `englishQuery` for search terms only.
|
|
37
38
|
|
|
38
39
|
```typescript
|
|
39
|
-
|
|
40
|
+
graphflow_context({
|
|
40
41
|
query: "游戏战斗系统怎么实现的",
|
|
41
42
|
englishQuery: "battle combat fight damage scene system",
|
|
42
43
|
rootDir: "/absolute/path/to/project"
|
|
43
44
|
})
|
|
44
45
|
```
|
|
45
46
|
|
|
46
|
-
## Tool Inventory (
|
|
47
|
+
## Tool Inventory (10 MCP Tools)
|
|
47
48
|
|
|
48
49
|
### Core Context Tools (Highest Frequency)
|
|
49
50
|
|
|
50
51
|
| Tool | Purpose | Call Frequency |
|
|
51
52
|
|------|---------|---------------|
|
|
52
|
-
| `
|
|
53
|
-
| `graphflow_expand_anchor` | Expand a single anchor to full content | **High** - dive deeper into specific items |
|
|
53
|
+
| `graphflow_context` | Preview compressed context (query) or expand anchor (anchorId) | **Highest** - default first step |
|
|
54
54
|
|
|
55
55
|
### Planning Tools (High Frequency)
|
|
56
56
|
|
|
57
57
|
| Tool | Purpose | Call Frequency |
|
|
58
58
|
|------|---------|---------------|
|
|
59
|
-
| `graphflow_plan` | Multi-step task decomposition & DAG | High - before complex work |
|
|
60
|
-
| `graphflow_plan_insight` | Six Thinking Hats + 5-Why deep analysis | Medium - ambiguous/high-stakes tasks |
|
|
59
|
+
| `graphflow_plan` | Multi-step task decomposition & DAG (mode='simple' or 'insight') | High - before complex work |
|
|
61
60
|
| `graphflow_run` | Plan + context package (bridge mode) | Medium - full task packaging |
|
|
62
61
|
| `graphflow_report_outcome` | Report bridge-mode execution outcome back | Medium - close the learning loop |
|
|
63
|
-
| `
|
|
64
|
-
| `graphflow_merge_insight` | Merge submitted insights into unified plan | Medium - after submit_insight |
|
|
62
|
+
| `graphflow_insight` | Submit or merge agent insights | Medium - no external LLM API |
|
|
65
63
|
|
|
66
64
|
### Graph Management Tools (Medium Frequency)
|
|
67
65
|
|
|
68
66
|
| Tool | Purpose | Call Frequency |
|
|
69
67
|
|------|---------|---------------|
|
|
70
|
-
| `graphflow_index` | Incremental workspace re-index | Medium - after file changes |
|
|
71
|
-
| `graphflow_index_file` | Single file incremental index | Medium-High - after saving a file |
|
|
72
|
-
| `graphflow_rebuild` | Clear cache + full re-index | Low - when graph is stale/corrupted |
|
|
73
|
-
| `graphflow_inspect_graph` | Graph stats & sample nodes/edges | Low - check graph health |
|
|
68
|
+
| `graphflow_index` | Incremental workspace re-index, single-file, or full rebuild | Medium - after file changes |
|
|
74
69
|
|
|
75
70
|
### Collaboration & Insights Tools (Low Frequency)
|
|
76
71
|
|
|
77
72
|
| Tool | Purpose | Call Frequency |
|
|
78
73
|
|------|---------|---------------|
|
|
79
|
-
| `
|
|
80
|
-
| `graphflow_import_artifact` | Import graph artifact | Low - skip full index on new machine |
|
|
74
|
+
| `graphflow_artifact` | Export or import graph artifact | Low - team sharing |
|
|
81
75
|
| `graphflow_skill_insights` | Learned skill patterns | Low - leverage prior learning |
|
|
82
76
|
| `graphflow_skill_guide` | Skill usage guide for connected agents | Low - onboarding |
|
|
83
|
-
| `
|
|
84
|
-
| `graphflow_diagnose` | Provider health & model routing | Rare - config issues |
|
|
77
|
+
| `graphflow_diagnose` | Provider health, graph stats, and token savings | Rare - config issues |
|
|
85
78
|
|
|
86
79
|
## Standard Workflows
|
|
87
80
|
|
|
@@ -90,9 +83,9 @@ graphflow_preview_context({
|
|
|
90
83
|
**Use when:** Answering code questions, exploring codebase, understanding modules
|
|
91
84
|
|
|
92
85
|
```
|
|
93
|
-
Step 1:
|
|
86
|
+
Step 1: graphflow_context(query: "<your question>")
|
|
94
87
|
Step 2: Read summary + anchors as primary context
|
|
95
|
-
Step 3: Expand specific anchors with
|
|
88
|
+
Step 3: Expand specific anchors with graphflow_context(anchorId: "...") when needed
|
|
96
89
|
Step 4: Read full files only when exact edits required
|
|
97
90
|
```
|
|
98
91
|
|
|
@@ -101,7 +94,7 @@ Step 4: Read full files only when exact edits required
|
|
|
101
94
|
**Use when:** Multi-step changes, refactors, features with unclear scope
|
|
102
95
|
|
|
103
96
|
```
|
|
104
|
-
Step 1:
|
|
97
|
+
Step 1: graphflow_context(query: "<task>")
|
|
105
98
|
Step 2: graphflow_plan(task: "<task description>")
|
|
106
99
|
Step 3: Review plan steps and dependencies
|
|
107
100
|
Step 4: Execute step by step, using GraphFlow context for each step
|
|
@@ -113,8 +106,8 @@ Step 5: graphflow_index() after major changes
|
|
|
113
106
|
**Use when:** High-stakes changes, root-cause analysis, ambiguous requirements
|
|
114
107
|
|
|
115
108
|
```
|
|
116
|
-
Step 1:
|
|
117
|
-
Step 2:
|
|
109
|
+
Step 1: graphflow_context(query: "<task>")
|
|
110
|
+
Step 2: graphflow_plan(task: "<task>", mode: "insight")
|
|
118
111
|
Step 3: Review analysis and apply findings
|
|
119
112
|
```
|
|
120
113
|
|
|
@@ -124,7 +117,7 @@ After `graphflow_run`, the external agent **must** call `graphflow_report_outcom
|
|
|
124
117
|
|
|
125
118
|
- Pass `episodeId` from the run result, a `success` boolean, and optional `lessons`.
|
|
126
119
|
- Do this after executing the work described in the returned `executionDescriptor`, whether the task succeeded or failed.
|
|
127
|
-
- When the run returns `agentWorkItems`, answer each prompt with your model and call `
|
|
120
|
+
- When the run returns `agentWorkItems`, answer each prompt with your model and call `graphflow_insight(mode: "submit")` once per item (before or with `graphflow_report_outcome`).
|
|
128
121
|
|
|
129
122
|
CLI fallback:
|
|
130
123
|
|
|
@@ -144,4 +137,4 @@ graphflow --json route diagnose
|
|
|
144
137
|
|
|
145
138
|
Treat GraphFlow outputs as structured machine-readable data, not prose.
|
|
146
139
|
|
|
147
|
-
When the user asks about saving token usage, optimizing context, repo understanding, or learning from Graphify, prioritize GraphFlow context compression over ordinary file search.
|
|
140
|
+
When the user asks about saving token usage, optimizing context, repo understanding, or learning from Graphify, prioritize GraphFlow context compression over ordinary file search.
|
|
@@ -144,21 +144,32 @@ function installMcpProcessGuards() {
|
|
|
144
144
|
}
|
|
145
145
|
if (require.main === module) {
|
|
146
146
|
installMcpProcessGuards();
|
|
147
|
-
(0, discover_workspace_js_1.ensureMcpWorkspaceEnv)();
|
|
148
|
-
// Start file watcher
|
|
149
|
-
//
|
|
150
|
-
//
|
|
147
|
+
const workspaceRoot = (0, discover_workspace_js_1.ensureMcpWorkspaceEnv)();
|
|
148
|
+
// Start file watcher only when we resolved a real project root.
|
|
149
|
+
// Cursor often spawns MCP with cwd=user home; watching that freezes startup
|
|
150
|
+
// by indexing AppData/Chrome/OneDrive and flooding stderr.
|
|
151
151
|
void (async () => {
|
|
152
|
+
if (!workspaceRoot) {
|
|
153
|
+
console.error("[GraphFlow MCP] No safe workspace root resolved; skipping auto file watcher. " +
|
|
154
|
+
"Pass rootDir on tools or set GRAPHFLOW_WORKSPACE_ROOT.");
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
152
157
|
try {
|
|
158
|
+
const { isUnsafeWorkspaceFallback } = await import("../../config/discover-workspace.js");
|
|
159
|
+
if (isUnsafeWorkspaceFallback(workspaceRoot)) {
|
|
160
|
+
console.error(`[GraphFlow MCP] Refusing to watch unsafe workspace root: ${workspaceRoot}`);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
153
163
|
const { resolveConfig } = await import("../../config/resolve.js");
|
|
154
164
|
const { startFileWatcherIfEnabled } = await import("../cli/runtime/graph.js");
|
|
155
165
|
const config = resolveConfig();
|
|
156
166
|
startFileWatcherIfEnabled(config);
|
|
157
167
|
}
|
|
158
|
-
catch {
|
|
159
|
-
|
|
168
|
+
catch (error) {
|
|
169
|
+
console.error("[GraphFlow MCP] File watcher not started:", error instanceof Error ? error.message : error);
|
|
160
170
|
}
|
|
161
171
|
})();
|
|
172
|
+
// Respond to initialize immediately; watcher is background-only.
|
|
162
173
|
startStdioServer();
|
|
163
174
|
}
|
|
164
175
|
//# sourceMappingURL=server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/surfaces/mcp/server.ts"],"names":[],"mappings":";;;;AAmBA,0CAKC;AAkCD,0CA6EC;AAED,4CAgCC;AAxKD,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,GAAG,CAAC;AACxC,OAAO,CAAC,GAAG,CAAC,kBAAkB,KAAK,GAAG,CAAC;AAGvC,8EAA2E;AAC3E,+DAAgF;AAChF,yDAM4B;AAC5B,6CAA+C;AAE/C,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAGpB,KAAK,UAAU,eAAe,CACnC,IAAc,EACd,SAAoB,eAAe,EAAE;IAErC,OAAO,IAAA,kCAAmB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC;AAkCD,SAAgB,eAAe,CAC7B,iBAA+D;IAE/D,MAAM,KAAK,GAAG,IAAA,wCAAkB,GAAE,CAA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a,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC;YAClE,MAAM,EAAE,yBAAyB,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC;YAC9E,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;YAC/B,yBAAyB,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CACX,2CAA2C,EAC3C,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAC/C,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,iEAAiE;IACjE,gBAAgB,EAAE,CAAC;AACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-definitions.d.ts","sourceRoot":"","sources":["../../../src/surfaces/mcp/tool-definitions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;CACH;AAED,wBAAgB,kBAAkB,IAAI,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"tool-definitions.d.ts","sourceRoot":"","sources":["../../../src/surfaces/mcp/tool-definitions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;CACH;AAED,wBAAgB,kBAAkB,IAAI,cAAc,EAAE,CA0JrD"}
|
|
@@ -36,128 +36,66 @@ function getToolDefinitions() {
|
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
name: "
|
|
40
|
-
description: "[
|
|
41
|
-
inputSchema: {
|
|
42
|
-
type: "object",
|
|
43
|
-
properties: {
|
|
44
|
-
task: { type: "string", description: "The task associated with the work item." },
|
|
45
|
-
workItemId: { type: "string", description: "The agentWorkItems id (e.g. hat-1-white, plan-refinement)." },
|
|
46
|
-
response: { type: "string", description: "JSON response string from the agent (fenced code blocks accepted)." },
|
|
47
|
-
episodeId: { type: "string", description: "Optional episodeId from graphflow_run for traceability." },
|
|
48
|
-
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
49
|
-
rootDir: { type: "string", description: "Optional workspace root override." },
|
|
50
|
-
},
|
|
51
|
-
required: ["task", "workItemId", "response"],
|
|
52
|
-
additionalProperties: false,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "graphflow_merge_insight",
|
|
57
|
-
description: "[Advanced] Merge submitted agent-insight Decision nodes for a task into a unified Six Hats insight and DAG plan. Use after submitting hat and plan-refinement responses via graphflow_submit_insight.",
|
|
58
|
-
inputSchema: {
|
|
59
|
-
type: "object",
|
|
60
|
-
properties: {
|
|
61
|
-
task: { type: "string", description: "The task associated with the submitted insights." },
|
|
62
|
-
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
63
|
-
rootDir: { type: "string", description: "Optional workspace root override." },
|
|
64
|
-
},
|
|
65
|
-
required: ["task"],
|
|
66
|
-
additionalProperties: false,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: "graphflow_plan",
|
|
71
|
-
description: "[Core] Generate brainstorming ideas and a DAG-style task plan for a request. USE AFTER graphflow_preview_context for complex tasks (more than 2-3 files), refactors, or features with unclear scope. Returns steps with dependencies and estimated effort.",
|
|
72
|
-
inputSchema: {
|
|
73
|
-
type: "object",
|
|
74
|
-
properties: {
|
|
75
|
-
task: { type: "string", description: "Task description to plan. Include what you need to accomplish." },
|
|
76
|
-
},
|
|
77
|
-
required: ["task"],
|
|
78
|
-
additionalProperties: false,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: "graphflow_preview_context",
|
|
83
|
-
description: "[Core] Preview GraphFlow near-lossless context packaging for a query. ALWAYS CALL THIS FIRST for code exploration, multi-step edits, refactors, debugging, or codebase-wide questions. Returns compressed context with anchors (Symbol/File/Module pointers) and token budget showing 70-95% savings. For Chinese/CJK queries, pass englishQuery (agent-translated English code keywords) or answer agentWorkItems when anchorCount is low.",
|
|
39
|
+
name: "graphflow_context",
|
|
40
|
+
description: "[Core] Preview near-lossless context packaging OR expand a context anchor to full content. Pass 'query' to preview context for a question; pass 'anchorId' (and no query) to expand a specific anchor returned by a previous preview call.",
|
|
84
41
|
inputSchema: {
|
|
85
42
|
type: "object",
|
|
86
43
|
properties: {
|
|
87
44
|
query: { type: "string", description: "Query to preview. Be specific about what you need to understand." },
|
|
45
|
+
anchorId: { type: "string", description: "The anchor id returned by graphflow_context preview (e.g. 'symbol:src/foo.ts:abc123'). Use this instead of query to expand an anchor." },
|
|
88
46
|
englishQuery: {
|
|
89
47
|
type: "string",
|
|
90
|
-
description: "Optional English code-search keywords when query is Chinese/CJK.
|
|
48
|
+
description: "Optional English code-search keywords when query is Chinese/CJK.",
|
|
91
49
|
},
|
|
92
50
|
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
93
51
|
rootDir: { type: "string", description: "Optional workspace root override." },
|
|
94
52
|
},
|
|
95
|
-
required: ["query"],
|
|
96
53
|
additionalProperties: false,
|
|
97
54
|
},
|
|
98
55
|
},
|
|
99
56
|
{
|
|
100
|
-
name: "
|
|
101
|
-
description: "[
|
|
57
|
+
name: "graphflow_plan",
|
|
58
|
+
description: "[Core] Generate a DAG-style task plan. mode='simple' for quick planning; mode='insight' for Six Hats + 5-Why. Without a GraphFlow LLM API key, insight mode returns mode='agent-delegated' with agentWorkItems — you MUST answer them via graphflow_insight (submit then merge). Do not treat placeholder insight/plan as final.",
|
|
102
59
|
inputSchema: {
|
|
103
60
|
type: "object",
|
|
104
61
|
properties: {
|
|
105
|
-
|
|
62
|
+
task: { type: "string", description: "Task description to plan. Include what you need to accomplish." },
|
|
63
|
+
mode: { type: "string", enum: ["simple", "insight"], description: "Planning mode: 'simple' (default) for quick planning, 'insight' for Six Thinking Hats + 5-Why deep analysis." },
|
|
106
64
|
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
107
|
-
rootDir: { type: "string", description: "Optional workspace root override." },
|
|
108
65
|
},
|
|
109
|
-
required: ["
|
|
66
|
+
required: ["task"],
|
|
110
67
|
additionalProperties: false,
|
|
111
68
|
},
|
|
112
69
|
},
|
|
113
70
|
{
|
|
114
71
|
name: "graphflow_index",
|
|
115
|
-
description: "[Core] Index
|
|
72
|
+
description: "[Core] Index workspace into graph store. Use filePath for single-file, mode='full' for rebuild.",
|
|
116
73
|
inputSchema: {
|
|
117
74
|
type: "object",
|
|
118
75
|
properties: {
|
|
119
76
|
rootDir: { type: "string", description: "Optional workspace path to index." },
|
|
77
|
+
filePath: { type: "string", description: "Absolute or workspace-relative path to a single file to index. When provided, only this file is indexed." },
|
|
78
|
+
mode: { type: "string", enum: ["incremental", "full"], description: "Indexing mode: 'incremental' (default) for incremental re-index, 'full' for full rebuild (clear cache and re-index everything)." },
|
|
120
79
|
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
121
80
|
},
|
|
122
81
|
additionalProperties: false,
|
|
123
82
|
},
|
|
124
83
|
},
|
|
125
84
|
{
|
|
126
|
-
name: "
|
|
127
|
-
description: "[Advanced]
|
|
85
|
+
name: "graphflow_insight",
|
|
86
|
+
description: "[Advanced] Submit or merge agent insights. Mode 'submit' for individual work items, 'merge' to consolidate all submitted insights.",
|
|
128
87
|
inputSchema: {
|
|
129
88
|
type: "object",
|
|
130
89
|
properties: {
|
|
131
|
-
|
|
90
|
+
task: { type: "string", description: "The task associated with the insight operation." },
|
|
91
|
+
mode: { type: "string", enum: ["submit", "merge"], description: "Operation mode: 'submit' to submit an agent response, 'merge' to merge all submitted insights." },
|
|
92
|
+
workItemId: { type: "string", description: "Required for mode='submit'. The agentWorkItems id (e.g. hat-1-white, plan-refinement)." },
|
|
93
|
+
response: { type: "string", description: "Required for mode='submit'. JSON response string from the agent (fenced code blocks accepted)." },
|
|
132
94
|
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
133
|
-
},
|
|
134
|
-
required: ["filePath"],
|
|
135
|
-
additionalProperties: false,
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: "graphflow_rebuild",
|
|
140
|
-
description: "[Maintenance] Clear graph store and index cache, then perform a full workspace re-index.",
|
|
141
|
-
inputSchema: {
|
|
142
|
-
type: "object",
|
|
143
|
-
properties: {
|
|
144
|
-
rootDir: { type: "string", description: "Optional workspace path to index." },
|
|
145
|
-
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
146
|
-
},
|
|
147
|
-
additionalProperties: false,
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: "graphflow_inspect_graph",
|
|
152
|
-
description: "[Maintenance] Inspect current graph snapshot statistics and sample nodes/edges.",
|
|
153
|
-
inputSchema: {
|
|
154
|
-
type: "object",
|
|
155
|
-
properties: {
|
|
156
|
-
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
157
|
-
nodeLimit: { type: "number", description: "Max sample nodes." },
|
|
158
|
-
edgeLimit: { type: "number", description: "Max sample edges." },
|
|
159
95
|
rootDir: { type: "string", description: "Optional workspace root override." },
|
|
96
|
+
episodeId: { type: "string", description: "Optional episodeId from graphflow_run for traceability." },
|
|
160
97
|
},
|
|
98
|
+
required: ["task", "mode"],
|
|
161
99
|
additionalProperties: false,
|
|
162
100
|
},
|
|
163
101
|
},
|
|
@@ -176,68 +114,37 @@ function getToolDefinitions() {
|
|
|
176
114
|
},
|
|
177
115
|
{
|
|
178
116
|
name: "graphflow_diagnose",
|
|
179
|
-
description: "[Maintenance] Return provider health,
|
|
180
|
-
inputSchema: {
|
|
181
|
-
type: "object",
|
|
182
|
-
properties: {
|
|
183
|
-
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
184
|
-
},
|
|
185
|
-
additionalProperties: false,
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
name: "graphflow_export_artifact",
|
|
190
|
-
description: "[Maintenance] Export the current graph store to a portable gzip-compressed artifact file (analogous to codebase-memory-mcp's graph.db.zst) for team sharing. The artifact can be committed to git and imported by teammates to skip full workspace indexing. Supports --no-compress for plain JSON output.",
|
|
191
|
-
inputSchema: {
|
|
192
|
-
type: "object",
|
|
193
|
-
properties: {
|
|
194
|
-
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
195
|
-
outputPath: { type: "string", description: "Optional output path for the artifact file." },
|
|
196
|
-
compression: { type: "string", description: "Compression mode: 'gzip' (default) or 'none'." },
|
|
197
|
-
},
|
|
198
|
-
additionalProperties: false,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
name: "graphflow_import_artifact",
|
|
203
|
-
description: "[Maintenance] Import a graph artifact file into the current graph store. Teammates can use this after cloning a repo to skip the initial full workspace index.",
|
|
204
|
-
inputSchema: {
|
|
205
|
-
type: "object",
|
|
206
|
-
properties: {
|
|
207
|
-
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
208
|
-
inputPath: { type: "string", description: "Optional input path for the artifact file." },
|
|
209
|
-
},
|
|
210
|
-
additionalProperties: false,
|
|
211
|
-
},
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: "graphflow_stats",
|
|
215
|
-
description: "[Maintenance] Return cumulative token savings statistics, showing how much GraphFlow has reduced token consumption across all context preview and task runs.",
|
|
117
|
+
description: "[Maintenance] Return provider health, graph statistics, and token savings.",
|
|
216
118
|
inputSchema: {
|
|
217
119
|
type: "object",
|
|
218
120
|
properties: {
|
|
219
121
|
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
122
|
+
nodeLimit: { type: "number", description: "Max sample nodes for graph inspection." },
|
|
123
|
+
edgeLimit: { type: "number", description: "Max sample edges for graph inspection." },
|
|
220
124
|
rootDir: { type: "string", description: "Optional workspace root override." },
|
|
221
125
|
},
|
|
222
126
|
additionalProperties: false,
|
|
223
127
|
},
|
|
224
128
|
},
|
|
225
129
|
{
|
|
226
|
-
name: "
|
|
227
|
-
description: "[
|
|
130
|
+
name: "graphflow_artifact",
|
|
131
|
+
description: "[Maintenance] Export or import graph artifact files for team sharing.",
|
|
228
132
|
inputSchema: {
|
|
229
133
|
type: "object",
|
|
230
134
|
properties: {
|
|
231
|
-
|
|
135
|
+
mode: { type: "string", enum: ["export", "import"], description: "Operation mode: 'export' to save graph artifact, 'import' to load graph artifact." },
|
|
232
136
|
configPath: { type: "string", description: "Optional path to graphflow.config.json." },
|
|
137
|
+
outputPath: { type: "string", description: "Required for mode='export'. Output path for the artifact file." },
|
|
138
|
+
inputPath: { type: "string", description: "Required for mode='import'. Input path for the artifact file." },
|
|
139
|
+
compression: { type: "string", description: "Compression mode for export: 'gzip' (default) or 'none'." },
|
|
233
140
|
},
|
|
234
|
-
required: ["
|
|
141
|
+
required: ["mode"],
|
|
235
142
|
additionalProperties: false,
|
|
236
143
|
},
|
|
237
144
|
},
|
|
238
145
|
{
|
|
239
146
|
name: "graphflow_skill_guide",
|
|
240
|
-
description: "[Core] Return the full GraphFlow Skill guide, including tool inventory, standard workflows, and best practices. This guide helps you understand WHEN and HOW to use each GraphFlow tool. Call this when you need guidance on using GraphFlow effectively, especially when the SKILL.md file cannot be installed to your C: drive. ALWAYS call
|
|
147
|
+
description: "[Core] Return the full GraphFlow Skill guide, including tool inventory, standard workflows, and best practices. This guide helps you understand WHEN and HOW to use each GraphFlow tool. Call this when you need guidance on using GraphFlow effectively, especially when the SKILL.md file cannot be installed to your C: drive. ALWAYS call graphflow_context BEFORE multi-step edits, large refactors, or codebase-wide questions.",
|
|
241
148
|
inputSchema: {
|
|
242
149
|
type: "object",
|
|
243
150
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-definitions.js","sourceRoot":"","sources":["../../../src/surfaces/mcp/tool-definitions.ts"],"names":[],"mappings":";;AAWA,
|
|
1
|
+
{"version":3,"file":"tool-definitions.js","sourceRoot":"","sources":["../../../src/surfaces/mcp/tool-definitions.ts"],"names":[],"mappings":";;AAWA,gDA0JC;AA1JD,SAAgB,kBAAkB;IAChC,OAAO;QACL;YACE,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,6QAA6Q;YAC1R,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uCAAuC,EAAE;oBAC9E,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yCAAyC,EAAE;iBACvF;gBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD;YACE,IAAI,EAAE,0BAA0B;YAChC,WAAW,EAAE,6TAA6T;YAC1U,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0CAA0C,EAAE;oBACtF,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,6DAA6D,EAAE;oBACxG,OAAO,EAAE;wBACP,IAAI,EAAE,OAAO;wBACb,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AE,WAAW,EAAE,mFAAmF,EAAE;oBACtJ,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yCAAyC,EAAE;oBACtF,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gEAAgE,EAAE;oBAC7G,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+DAA+D,EAAE;oBAC3G,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0DAA0D,EAAE;iBACzG;gBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD;YACE,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,uaAAua;YACpb,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uGAAuG,EAAE;iBAClJ;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-handlers.d.ts","sourceRoot":"","sources":["../../../src/surfaces/mcp/tool-handlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool-handlers.d.ts","sourceRoot":"","sources":["../../../src/surfaces/mcp/tool-handlers.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,cAAc;CAC9B;AAED,eAAO,MAAM,uBAAuB,SAAU,CAAC;AAE/C,wBAAsB,eAAe,CACnC,IAAI,EAAE,QAAQ,EACd,OAAO,CAAC,EAAE,SAAS,EACnB,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAiK3B;AAoHD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAWxE;AA0BD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAW9F"}
|