@dv.nghiem/flowdeck 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2046,7 +2046,7 @@ function markCodegraphStale(dir) {
2046
2046
 
2047
2047
  // src/tools/codegraph-tool.ts
2048
2048
  var codegraphTool = tool16({
2049
- description: "Manage codegraph code intelligence layer: detect installation, initialize or refresh the code index, query status. " + "When .codegraph/ exists agents should prefer codegraph MCP tools (codegraph_context, codegraph_explore, codegraph_search, " + "codegraph_callers, codegraph_callees, codegraph_impact, codegraph_trace) over direct file exploration.",
2049
+ description: "Manage codegraph lifecycle only: check installation, install, init/rebuild the index, refresh (incremental sync), " + "query status, or mark-stale. Valid actions: check | install | init | refresh | status | mark-stale. " + "Do NOT use this tool for code intelligence queries (files, search, callers, callees, etc.) " + "those are available as codegraph MCP tools (codegraph_files, codegraph_search, codegraph_context, " + "codegraph_explore, codegraph_callers, codegraph_callees, codegraph_impact, codegraph_trace) " + "when the index is ready.",
2050
2050
  args: {
2051
2051
  action: tool16.schema.enum(["check", "install", "init", "refresh", "status", "mark-stale"]),
2052
2052
  agent: tool16.schema.string().optional()
@@ -2125,6 +2125,14 @@ var codegraphTool = tool16({
2125
2125
  markCodegraphStale(dir);
2126
2126
  return JSON.stringify({ success: true, message: "codegraph index marked stale — next init will do a full rebuild" });
2127
2127
  }
2128
+ default: {
2129
+ const unknownAction = args.action;
2130
+ return JSON.stringify({
2131
+ success: false,
2132
+ error: `Unknown action "${unknownAction}". Valid actions: check, install, init, refresh, status, mark-stale.`,
2133
+ hint: `For code intelligence queries (files, search, callers, etc.) use the codegraph MCP tools directly: ` + `codegraph_files, codegraph_search, codegraph_context, codegraph_explore, codegraph_callers, ` + `codegraph_callees, codegraph_impact, codegraph_trace.`
2134
+ });
2135
+ }
2128
2136
  }
2129
2137
  }
2130
2138
  });
@@ -3475,8 +3483,7 @@ function createFlowDeckMcps() {
3475
3483
  if (!disabled.has("codegraph") && isCodegraphInstalled()) {
3476
3484
  mcps.codegraph = {
3477
3485
  type: "local",
3478
- command: "codegraph",
3479
- args: ["serve", "--mcp"],
3486
+ command: ["codegraph", "serve", "--mcp"],
3480
3487
  enabled: true
3481
3488
  };
3482
3489
  }
@@ -21,9 +21,8 @@ type RemoteMcp = {
21
21
  };
22
22
  type LocalMcp = {
23
23
  type: "local";
24
- command: string;
25
- args?: string[];
26
- env?: Record<string, string>;
24
+ command: string[];
25
+ environment?: Record<string, string>;
27
26
  enabled: boolean;
28
27
  };
29
28
  export declare function createFlowDeckMcps(): Record<string, RemoteMcp | LocalMcp>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAED,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAOD,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC,CAgEzE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAED,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpC,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAOD,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC,CA+DzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"codegraph-tool.d.ts","sourceRoot":"","sources":["../../src/tools/codegraph-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAa/D,eAAO,MAAM,aAAa,EAAE,cA6G1B,CAAA"}
1
+ {"version":3,"file":"codegraph-tool.d.ts","sourceRoot":"","sources":["../../src/tools/codegraph-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAa/D,eAAO,MAAM,aAAa,EAAE,cA2H1B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dv.nghiem/flowdeck",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "FlowDeck — structured planning and execution workflows for OpenCode",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",