@roarpeng/graphflow 1.7.0 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +13 -10
- package/dist/agents/insight.d.ts +13 -2
- package/dist/agents/insight.d.ts.map +1 -1
- package/dist/agents/insight.js +56 -26
- 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 +3 -1
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/discover-workspace.d.ts.map +1 -1
- package/dist/config/discover-workspace.js +10 -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 +88 -9
- package/dist/config/embedding-factory.js.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +9 -2
- 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 -2
- 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 +5 -0
- package/dist/core/agent-delegation.d.ts.map +1 -1
- package/dist/core/agent-delegation.js +131 -57
- 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 +3 -0
- 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.d.ts.map +1 -1
- package/dist/core/orchestrator.js +61 -42
- 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 +5 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/graph/context-cache.d.ts +23 -0
- package/dist/graph/context-cache.d.ts.map +1 -0
- package/dist/graph/context-cache.js +92 -0
- package/dist/graph/context-cache.js.map +1 -0
- package/dist/graph/context-slicer-types.d.ts +2 -0
- 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 -8
- package/dist/graph/context-slicer.js.map +1 -1
- package/dist/graph/file-indexer.d.ts +4 -1
- package/dist/graph/file-indexer.d.ts.map +1 -1
- package/dist/graph/file-indexer.js +16 -5
- 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 +242 -31
- package/dist/integrations/agent-mcp-installer.js.map +1 -1
- package/dist/integrations/agent-profiles/index.d.ts +26 -0
- package/dist/integrations/agent-profiles/index.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/index.js +31 -0
- package/dist/integrations/agent-profiles/index.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/amazon-q.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/amazon-q.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/amazon-q.js +18 -0
- package/dist/integrations/agent-profiles/profiles/amazon-q.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/antigravity.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/antigravity.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/antigravity.js +33 -0
- package/dist/integrations/agent-profiles/profiles/antigravity.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/claude-code.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/claude-code.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/claude-code.js +22 -0
- package/dist/integrations/agent-profiles/profiles/claude-code.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/cline.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/cline.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/cline.js +33 -0
- package/dist/integrations/agent-profiles/profiles/cline.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/codex.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/codex.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/codex.js +22 -0
- package/dist/integrations/agent-profiles/profiles/codex.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/continue.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/continue.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/continue.js +23 -0
- package/dist/integrations/agent-profiles/profiles/continue.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/cursor.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/cursor.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/cursor.js +28 -0
- package/dist/integrations/agent-profiles/profiles/cursor.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/gemini.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/gemini.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/gemini.js +30 -0
- package/dist/integrations/agent-profiles/profiles/gemini.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/kilocode.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/kilocode.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/kilocode.js +33 -0
- package/dist/integrations/agent-profiles/profiles/kilocode.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/pearai.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/pearai.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/pearai.js +23 -0
- package/dist/integrations/agent-profiles/profiles/pearai.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/qoder.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/qoder.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/qoder.js +32 -0
- package/dist/integrations/agent-profiles/profiles/qoder.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/roo-code.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/roo-code.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/roo-code.js +33 -0
- package/dist/integrations/agent-profiles/profiles/roo-code.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/trae.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/trae.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/trae.js +42 -0
- package/dist/integrations/agent-profiles/profiles/trae.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/vscode.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/vscode.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/vscode.js +28 -0
- package/dist/integrations/agent-profiles/profiles/vscode.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/windsurf.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/windsurf.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/windsurf.js +21 -0
- package/dist/integrations/agent-profiles/profiles/windsurf.js.map +1 -0
- package/dist/integrations/agent-profiles/profiles/zed.d.ts +2 -0
- package/dist/integrations/agent-profiles/profiles/zed.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/profiles/zed.js +26 -0
- package/dist/integrations/agent-profiles/profiles/zed.js.map +1 -0
- package/dist/integrations/agent-profiles/registry.d.ts +5 -0
- package/dist/integrations/agent-profiles/registry.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/registry.js +45 -0
- package/dist/integrations/agent-profiles/registry.js.map +1 -0
- package/dist/integrations/agent-profiles/skills/antigravity.d.ts +2 -0
- package/dist/integrations/agent-profiles/skills/antigravity.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/skills/antigravity.js +13 -0
- package/dist/integrations/agent-profiles/skills/antigravity.js.map +1 -0
- package/dist/integrations/agent-profiles/skills/claude-code.d.ts +2 -0
- package/dist/integrations/agent-profiles/skills/claude-code.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/skills/claude-code.js +13 -0
- package/dist/integrations/agent-profiles/skills/claude-code.js.map +1 -0
- package/dist/integrations/agent-profiles/skills/codex.d.ts +2 -0
- package/dist/integrations/agent-profiles/skills/codex.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/skills/codex.js +18 -0
- package/dist/integrations/agent-profiles/skills/codex.js.map +1 -0
- package/dist/integrations/agent-profiles/skills/cursor.d.ts +2 -0
- package/dist/integrations/agent-profiles/skills/cursor.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/skills/cursor.js +13 -0
- package/dist/integrations/agent-profiles/skills/cursor.js.map +1 -0
- package/dist/integrations/agent-profiles/skills/kilocode.d.ts +2 -0
- package/dist/integrations/agent-profiles/skills/kilocode.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/skills/kilocode.js +13 -0
- package/dist/integrations/agent-profiles/skills/kilocode.js.map +1 -0
- package/dist/integrations/agent-profiles/skills/qoder.d.ts +2 -0
- package/dist/integrations/agent-profiles/skills/qoder.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/skills/qoder.js +13 -0
- package/dist/integrations/agent-profiles/skills/qoder.js.map +1 -0
- package/dist/integrations/agent-profiles/skills/roo-code.d.ts +2 -0
- package/dist/integrations/agent-profiles/skills/roo-code.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/skills/roo-code.js +13 -0
- package/dist/integrations/agent-profiles/skills/roo-code.js.map +1 -0
- package/dist/integrations/agent-profiles/types.d.ts +31 -0
- package/dist/integrations/agent-profiles/types.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/types.js +3 -0
- package/dist/integrations/agent-profiles/types.js.map +1 -0
- package/dist/integrations/agent-profiles/utils.d.ts +12 -0
- package/dist/integrations/agent-profiles/utils.d.ts.map +1 -0
- package/dist/integrations/agent-profiles/utils.js +75 -0
- package/dist/integrations/agent-profiles/utils.js.map +1 -0
- package/dist/integrations/errors.d.ts +28 -0
- package/dist/integrations/errors.d.ts.map +1 -0
- package/dist/integrations/errors.js +97 -0
- package/dist/integrations/errors.js.map +1 -0
- package/dist/integrations/skill-health.d.ts +24 -0
- package/dist/integrations/skill-health.d.ts.map +1 -0
- package/dist/integrations/skill-health.js +111 -0
- package/dist/integrations/skill-health.js.map +1 -0
- package/dist/integrations/skill-installer.d.ts.map +1 -1
- package/dist/integrations/skill-installer.js +5 -8
- package/dist/integrations/skill-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 +45 -1
- package/dist/learning/embeddings.d.ts.map +1 -1
- package/dist/learning/embeddings.js +180 -5
- package/dist/learning/embeddings.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 +3 -2
- 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 +18 -2
- 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 +34 -6
- package/dist/surfaces/cli/runtime/routing.js.map +1 -1
- package/dist/surfaces/cli/runtime/types.d.ts +24 -1
- 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 +3 -2
- package/dist/surfaces/cursor-rules/graphflow.mdc +3 -2
- 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 +1 -1
- 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 +2 -0
- package/dist/surfaces/mcp/tool-handlers.js.map +1 -1
- package/dist/surfaces/trae-rules/graphflow.md +3 -2
- package/dist/surfaces/trae-skill/graphflow/SKILL.md +2 -0
- package/package.json +1 -1
- package/scripts/safe-postinstall.cjs +1 -0
- package/src/surfaces/antigravity-rules/graphflow.md +3 -2
- package/src/surfaces/copilot-instructions/graphflow.md +3 -2
- package/src/surfaces/cursor-rules/graphflow.mdc +3 -2
- package/src/surfaces/trae-rules/graphflow.md +3 -2
- package/src/surfaces/trae-skill/graphflow/SKILL.md +2 -0
|
@@ -19,8 +19,9 @@ Before code exploration, implementation, debugging, review, planning, or archite
|
|
|
19
19
|
Code symbols are mostly English. For Chinese user questions:
|
|
20
20
|
|
|
21
21
|
1. **Proactive:** Translate intent to English **file/class/component names** and pass **`englishQuery`** (e.g. `PoseDetectionPage`, `BattlePage`, `shieldEffect`). Avoid generic `exercise` when the user means UI/camera.
|
|
22
|
-
2. **
|
|
23
|
-
3.
|
|
22
|
+
2. **Module families (store/slices):** Prefer file stems (`useGameStore companionSlice dailySlice`), not bare domain words like `monster` (often hits `data/monsters` instead of `monsterSlice`).
|
|
23
|
+
3. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en`, answer the JSON prompt, then retry with `englishQuery`.
|
|
24
|
+
4. Keep `query` as the original Chinese text.
|
|
24
25
|
|
|
25
26
|
```typescript
|
|
26
27
|
graphflow_context({
|
|
@@ -46,8 +46,9 @@ Do **not** hardcode `GRAPHFLOW_WORKSPACE_ROOT` — let the MCP server detect the
|
|
|
46
46
|
Code symbols are mostly English. For Chinese user questions:
|
|
47
47
|
|
|
48
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. **
|
|
50
|
-
3.
|
|
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
|
|
|
@@ -32,8 +32,9 @@ Do not scan the whole repository, recursively inspect many files, or read large
|
|
|
32
32
|
Code symbols are mostly English. For Chinese user questions:
|
|
33
33
|
|
|
34
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. **
|
|
36
|
-
3.
|
|
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({
|
|
@@ -26,8 +26,9 @@ Before code exploration, implementation, debugging, review, planning, or archite
|
|
|
26
26
|
Code symbols are mostly English. For Chinese user questions:
|
|
27
27
|
|
|
28
28
|
1. **Proactive:** Translate intent to English **file/class/component names** and pass **`englishQuery`** (e.g. `PoseDetectionPage`, `BattlePage`, `shieldEffect`). Avoid generic `exercise` when the user means UI/camera.
|
|
29
|
-
2. **
|
|
30
|
-
3.
|
|
29
|
+
2. **Module families (store/slices):** Prefer file stems (`useGameStore companionSlice dailySlice`), not bare domain words like `monster` (often hits `data/monsters` instead of `monsterSlice`).
|
|
30
|
+
3. **Reactive:** If preview returns `agentWorkItems` with `query-translate-en`, answer the JSON prompt, then retry with `englishQuery`.
|
|
31
|
+
4. Keep `query` as the original Chinese text.
|
|
31
32
|
|
|
32
33
|
```typescript
|
|
33
34
|
graphflow_context({
|
|
@@ -193,6 +193,8 @@ Step 3: Use summary + anchors
|
|
|
193
193
|
|
|
194
194
|
Use **exact file/class/component names** (PascalCase stems). Avoid generic words like `exercise` when the user means camera/pose UI — that word often hits data/types layers instead of pages.
|
|
195
195
|
|
|
196
|
+
For **module families** (Zustand store + `slices/`): put file stems in `englishQuery` (`useGameStore companionSlice dailySlice inventorySlice`), not bare domain words like `monster` (often ranks `data/monsters` over `monsterSlice`).
|
|
197
|
+
|
|
196
198
|
**Fallback:** If `anchorCount < 3` and `agentWorkItems` includes `query-translate-en`, answer JSON prompt and retry with `englishQuery`.
|
|
197
199
|
|
|
198
200
|
---
|