linkshell-cli 0.5.37 → 0.5.39

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.
Files changed (35) hide show
  1. package/dist/cli/src/runtime/acp/acp-client.d.ts +21 -0
  2. package/dist/cli/src/runtime/acp/acp-client.js +101 -5
  3. package/dist/cli/src/runtime/acp/acp-client.js.map +1 -1
  4. package/dist/cli/src/runtime/acp/agent-process-discovery.d.ts +1 -1
  5. package/dist/cli/src/runtime/acp/agent-process-discovery.js +12 -1
  6. package/dist/cli/src/runtime/acp/agent-process-discovery.js.map +1 -1
  7. package/dist/cli/src/runtime/acp/agent-workspace.d.ts +137 -0
  8. package/dist/cli/src/runtime/acp/agent-workspace.js +607 -97
  9. package/dist/cli/src/runtime/acp/agent-workspace.js.map +1 -1
  10. package/dist/cli/src/runtime/acp/provider-resolver.js +28 -2
  11. package/dist/cli/src/runtime/acp/provider-resolver.js.map +1 -1
  12. package/dist/cli/src/runtime/bridge-session.d.ts +0 -48
  13. package/dist/cli/src/runtime/bridge-session.js +10 -1039
  14. package/dist/cli/src/runtime/bridge-session.js.map +1 -1
  15. package/dist/cli/src/runtime/hook-command.d.ts +5 -30
  16. package/dist/cli/src/runtime/hook-command.js +54 -41
  17. package/dist/cli/src/runtime/hook-command.js.map +1 -1
  18. package/dist/cli/tsconfig.tsbuildinfo +1 -1
  19. package/dist/shared-protocol/src/index.d.ts +164 -8
  20. package/dist/shared-protocol/src/index.js +6 -0
  21. package/dist/shared-protocol/src/index.js.map +1 -1
  22. package/package.json +3 -3
  23. package/src/runtime/acp/acp-client.ts +116 -5
  24. package/src/runtime/acp/agent-process-discovery.ts +8 -1
  25. package/src/runtime/acp/agent-workspace.ts +557 -50
  26. package/src/runtime/acp/provider-resolver.ts +31 -2
  27. package/src/runtime/bridge-session.ts +9 -1117
  28. package/src/runtime/hook-command.ts +47 -47
  29. package/web/assets/{FileBrowser-Coy7Szjx.js → FileBrowser-DtVanRUn.js} +1 -1
  30. package/web/assets/{PortPreview-D-XovbV1.js → PortPreview-DC2-UmHo.js} +1 -1
  31. package/web/assets/{TerminalPanel-Cah56AtC.js → TerminalPanel-D4gHM4Ta.js} +1 -1
  32. package/web/assets/{UsageDashboard-DfkjJagC.js → UsageDashboard-ZnvuvqWc.js} +1 -1
  33. package/web/assets/index-DKdJgZ9D.js +36 -0
  34. package/web/index.html +1 -1
  35. package/web/assets/index-ClZzQ4ba.js +0 -35
@@ -31,7 +31,8 @@ export function resolveAgentCommand(input: {
31
31
  provider: input.provider,
32
32
  command: explicit,
33
33
  protocol: isCodexAppServer ? "codex-app-server" : isClaudeCli ? "claude-stream-json" : "acp",
34
- framing: isCodexAppServer || isClaudeCli ? "newline" : "content-length",
34
+ // Gemini --acp, cursor-agent acp, and other ACP CLIs speak NDJSON, not LSP Content-Length.
35
+ framing: "newline",
35
36
  };
36
37
  }
37
38
 
@@ -61,7 +62,34 @@ export function resolveAgentCommand(input: {
61
62
  };
62
63
  }
63
64
 
64
- // custom: caller must provide --agent-command
65
+ if (input.provider === "gemini") {
66
+ return {
67
+ provider: "gemini",
68
+ command: "gemini --acp",
69
+ protocol: "acp",
70
+ framing: "newline",
71
+ };
72
+ }
73
+
74
+ if (input.provider === "cursor") {
75
+ return {
76
+ provider: "cursor",
77
+ command: "cursor-agent acp",
78
+ protocol: "acp",
79
+ framing: "newline",
80
+ };
81
+ }
82
+
83
+ if (input.provider === "grok") {
84
+ return {
85
+ provider: "grok",
86
+ command: "grok agent stdio",
87
+ protocol: "acp",
88
+ framing: "newline",
89
+ };
90
+ }
91
+
92
+ // copilot / opencode / kimi / custom: PTY-only unless caller passes --agent-command
65
93
  return null;
66
94
  }
67
95
 
@@ -112,6 +140,7 @@ const INSTALL_BINARIES: Array<{ provider: KnownAgentProvider; binaries: string[]
112
140
  { provider: "copilot", binaries: ["copilot"] },
113
141
  { provider: "opencode", binaries: ["opencode", "opencode-ai"] },
114
142
  { provider: "cursor", binaries: ["cursor-agent"] },
143
+ { provider: "grok", binaries: ["grok"] },
115
144
  { provider: "kimi", binaries: ["kimi"] },
116
145
  ];
117
146