cline 1.0.0-nightly.9 → 1.0.1

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.
@@ -2,7 +2,7 @@
2
2
  "name": "claude-dev",
3
3
  "displayName": "Cline",
4
4
  "description": "Autonomous coding agent right in your IDE, capable of creating/editing files, running commands, using the browser, and more with your permission every step of the way.",
5
- "version": "3.32.7",
5
+ "version": "3.33.1",
6
6
  "icon": "assets/icons/icon.png",
7
7
  "engines": {
8
8
  "vscode": "^1.84.0"
@@ -295,9 +295,11 @@
295
295
  "vscode:prepublish": "npm run package",
296
296
  "compile": "npm run check-types && npm run lint && node esbuild.mjs",
297
297
  "compile-standalone": "npm run check-types && npm run lint && node esbuild.mjs --standalone",
298
- "compile-standalone-npm": "npm run check-types && npm run lint && node esbuild.mjs --standalone",
298
+ "compile-standalone-npm": "npm run protos && npm run protos-go && npm run check-types && npm run lint && node esbuild.mjs --standalone",
299
299
  "compile-cli": "scripts/build-cli.sh",
300
300
  "compile-cli-all-platforms": "scripts/build-cli-all-platforms.sh",
301
+ "compile-cli-man-page": "pandoc cli/man/cline.1.md -s -t man -o cli/man/cline.1",
302
+ "build:npm": "scripts/build-npm-package.sh",
301
303
  "test:install": "bash scripts/test-install.sh",
302
304
  "dev:cli:watch": "node scripts/dev-cli-watch.mjs",
303
305
  "postcompile-standalone": "node scripts/package-standalone.mjs",
@@ -340,6 +340,7 @@ class StandaloneTerminalManager {
340
340
  this.shellIntegrationTimeout = 4000
341
341
  this.terminalReuseEnabled = true
342
342
  this.terminalOutputLineLimit = 500
343
+ this.subagentTerminalOutputLineLimit = 2000
343
344
  this.defaultTerminalProfile = "default"
344
345
  }
345
346
 
@@ -436,9 +437,10 @@ class StandaloneTerminalManager {
436
437
  return process ? process.isHot : false
437
438
  }
438
439
 
439
- processOutput(outputLines) {
440
- if (outputLines.length > this.terminalOutputLineLimit) {
441
- const halfLimit = Math.floor(this.terminalOutputLineLimit / 2)
440
+ processOutput(outputLines, overrideLimit, isSubagentCommand) {
441
+ const limit = isSubagentCommand && overrideLimit ? overrideLimit : this.terminalOutputLineLimit
442
+ if (outputLines.length > limit) {
443
+ const halfLimit = Math.floor(limit / 2)
442
444
  const start = outputLines.slice(0, halfLimit)
443
445
  const end = outputLines.slice(outputLines.length - halfLimit)
444
446
  return `${start.join("\n")}\n... (output truncated) ...\n${end.join("\n")}`.trim()
@@ -484,6 +486,12 @@ class StandaloneTerminalManager {
484
486
  console.log(`[StandaloneTerminalManager] Set terminal output line limit to ${limit}`)
485
487
  }
486
488
 
489
+ // Set subagent terminal output line limit (compatibility method)
490
+ setSubagentTerminalOutputLineLimit(limit) {
491
+ this.subagentTerminalOutputLineLimit = limit
492
+ console.log(`[StandaloneTerminalManager] Set subagent terminal output line limit to ${limit}`)
493
+ }
494
+
487
495
  // Set default terminal profile (compatibility method)
488
496
  setDefaultTerminalProfile(profile) {
489
497
  this.defaultTerminalProfile = profile
package/man/cline.1 ADDED
@@ -0,0 +1,331 @@
1
+ .\" Automatically generated by Pandoc 3.8.2
2
+ .\"
3
+ .TH "CLINE" "1" "January 2025" "Cline CLI 1.0" "User Commands"
4
+ .SH NAME
5
+ cline \- orchestrate and interact with Cline AI coding agents
6
+ .SH SYNOPSIS
7
+ \f[B]cline\f[R] [\f[I]prompt\f[R]] [\f[I]options\f[R]]
8
+ .PP
9
+ \f[B]cline\f[R] \f[I]command\f[R] [\f[I]subcommand\f[R]]
10
+ [\f[I]options\f[R]] [\f[I]arguments\f[R]]
11
+ .SH DESCRIPTION
12
+ Try: cat README.md | cline \(lqSummarize this for me:\(rq
13
+ .PP
14
+ \f[B]cline\f[R] is a command\-line interface for orchestrating multiple
15
+ Cline AI coding agents.
16
+ Cline is an autonomous AI agent who can read, write, and execute code
17
+ across your projects.
18
+ He operates through a client\-server architecture where \f[B]Cline
19
+ Core\f[R] runs as a standalone service, and the CLI acts as a scriptable
20
+ interface for managing tasks, instances, and agent interactions.
21
+ .PP
22
+ The CLI is designed for both interactive use and automation, making it
23
+ ideal for CI/CD pipelines, parallel task execution, and terminal\-based
24
+ workflows.
25
+ Multiple frontends (CLI, VSCode, JetBrains) can attach to the same Cline
26
+ Core instance, enabling seamless task handoff between environments.
27
+ .SH MODES OF OPERATION
28
+ .TP
29
+ \f[B]Instant Task Mode\f[R]
30
+ The simplest invocation: \f[B]cline \(lqprompt here\(rq\f[R] immediately
31
+ spawns an instance, creates a task, and enters chat mode.
32
+ This is equivalent to running \f[B]cline instance new && cline task new
33
+ && cline task chat\f[R] in sequence.
34
+ .TP
35
+ \f[B]Subcommand Mode\f[R]
36
+ Advanced usage with explicit control: \f[B]cline <command> [subcommand]
37
+ [options]\f[R] provides fine\-grained control over instances, tasks,
38
+ authentication, and configuration.
39
+ .SH AGENT BEHAVIOR
40
+ Cline operates in two primary modes:
41
+ .TP
42
+ \f[B]ACT MODE\f[R]
43
+ Cline actively uses tools to accomplish tasks.
44
+ He can read files, write code, execute commands, use a headless browser,
45
+ and more.
46
+ This is the default mode for task execution.
47
+ .TP
48
+ \f[B]PLAN MODE\f[R]
49
+ Cline gathers information and creates a detailed plan before
50
+ implementation.
51
+ He explores the codebase, asks clarifying questions, and presents a
52
+ strategy for user approval before switching to ACT MODE.
53
+ .SH INSTANT TASK OPTIONS
54
+ When using the instant task syntax \f[B]cline \(lqprompt\(rq\f[R] the
55
+ following options are available:
56
+ .TP
57
+ \f[B]\-o\f[R], \f[B]\-\-oneshot\f[R]
58
+ Full autonomous mode.
59
+ Cline completes the task and stops following after completion.
60
+ Example: cline \-o \(lqwhat\(cqs 6 + 8?\(rq
61
+ .TP
62
+ \f[B]\-s\f[R], \f[B]\-\-setting\f[R] \f[I]setting\f[R] \f[I]value\f[R]
63
+ Override a setting for this task
64
+ .TP
65
+ \f[B]\-y\f[R], \f[B]\-\-no\-interactive\f[R], \f[B]\-\-yolo\f[R]
66
+ Enable fully autonomous mode.
67
+ Disables all interactivity:
68
+ .RS
69
+ .IP \(bu 2
70
+ ask_followup_question tool is disabled
71
+ .IP \(bu 2
72
+ attempt_completion happens automatically
73
+ .IP \(bu 2
74
+ execute_command runs in non\-blocking mode with timeout
75
+ .IP \(bu 2
76
+ PLAN MODE automatically switches to ACT MODE
77
+ .RE
78
+ .TP
79
+ \f[B]\-m\f[R], \f[B]\-\-mode\f[R] \f[I]mode\f[R]
80
+ Starting mode.
81
+ Options: \f[B]act\f[R] (default), \f[B]plan\f[R]
82
+ .SH GLOBAL OPTIONS
83
+ These options apply to all subcommands:
84
+ .TP
85
+ \f[B]\-F\f[R], \f[B]\-\-output\-format\f[R] \f[I]format\f[R]
86
+ Output format.
87
+ Options: \f[B]rich\f[R] (default), \f[B]json\f[R], \f[B]plain\f[R]
88
+ .TP
89
+ \f[B]\-h\f[R], \f[B]\-\-help\f[R]
90
+ Display help information for the command.
91
+ .TP
92
+ \f[B]\-v\f[R], \f[B]\-\-verbose\f[R]
93
+ Enable verbose output for debugging.
94
+ .SH COMMANDS
95
+ .SS Authentication
96
+ \f[B]cline auth\f[R] [\f[I]provider\f[R]] [\f[I]key\f[R]]
97
+ .TP
98
+ \f[B]cline a\f[R] [\f[I]provider\f[R]] [\f[I]key\f[R]]
99
+ Configure authentication for AI model providers.
100
+ Launches an interactive wizard if no arguments provided.
101
+ If provider is specified without a key, prompts for the key or launches
102
+ the appropriate OAuth flow.
103
+ .SS Instance Management
104
+ Cline Core instances are independent agent processes that can run in the
105
+ background.
106
+ Multiple instances can run simultaneously, enabling parallel task
107
+ execution.
108
+ .PP
109
+ \f[B]cline instance\f[R]
110
+ .TP
111
+ \f[B]cline i\f[R]
112
+ Display instance management help.
113
+ .PP
114
+ \f[B]cline instance new\f[R] [\f[B]\-d\f[R]|\f[B]\-\-default\f[R]]
115
+ .TP
116
+ \f[B]cline i n\f[R] [\f[B]\-d\f[R]|\f[B]\-\-default\f[R]]
117
+ Spawn a new Cline Core instance.
118
+ Use \f[B]\-\-default\f[R] to set it as the default instance for
119
+ subsequent commands.
120
+ .PP
121
+ \f[B]cline instance list\f[R]
122
+ .TP
123
+ \f[B]cline i l\f[R]
124
+ List all running Cline Core instances with their addresses and status.
125
+ .PP
126
+ \f[B]cline instance default\f[R] \f[I]address\f[R]
127
+ .TP
128
+ \f[B]cline i d\f[R] \f[I]address\f[R]
129
+ Set the default instance to avoid specifying \f[B]\-\-address\f[R] in
130
+ task commands.
131
+ .PP
132
+ \f[B]cline instance kill\f[R] \f[I]address\f[R]
133
+ [\f[B]\-a\f[R]|\f[B]\-\-all\f[R]]
134
+ .TP
135
+ \f[B]cline i k\f[R] \f[I]address\f[R] [\f[B]\-a\f[R]|\f[B]\-\-all\f[R]]
136
+ Terminate a Cline Core instance.
137
+ Use \f[B]\-\-all\f[R] to kill all running instances.
138
+ .SS Task Management
139
+ Tasks represent individual work items that Cline executes.
140
+ Tasks maintain conversation history, checkpoints, and settings.
141
+ .PP
142
+ \f[B]cline task\f[R] [\f[B]\-a\f[R]|\f[B]\-\-address\f[R]
143
+ \f[I]ADDR\f[R]]
144
+ .TP
145
+ \f[B]cline t\f[R] [\f[B]\-a\f[R]|\f[B]\-\-address\f[R] \f[I]ADDR\f[R]]
146
+ Display task management help.
147
+ The \f[B]\-\-address\f[R] flag specifies which Cline Core instance to
148
+ use (e.g., localhost:50052).
149
+ .PP
150
+ \f[B]cline task new\f[R] \f[I]prompt\f[R] [\f[I]options\f[R]]
151
+ .TP
152
+ \f[B]cline t n\f[R] \f[I]prompt\f[R] [\f[I]options\f[R]]
153
+ Create a new task in the default or specified instance.
154
+ Options:
155
+ .RS
156
+ .TP
157
+ \f[B]\-s\f[R], \f[B]\-\-setting\f[R] \f[I]setting\f[R] \f[I]value\f[R]
158
+ Set task\-specific settings
159
+ .TP
160
+ \f[B]\-y\f[R], \f[B]\-\-no\-interactive\f[R], \f[B]\-\-yolo\f[R]
161
+ Enable autonomous mode
162
+ .TP
163
+ \f[B]\-m\f[R], \f[B]\-\-mode\f[R] \f[I]mode\f[R]
164
+ Starting mode (act or plan)
165
+ .RE
166
+ .PP
167
+ \f[B]cline task open\f[R] \f[I]task\-id\f[R] [\f[I]options\f[R]]
168
+ .TP
169
+ \f[B]cline t o\f[R] \f[I]task\-id\f[R] [\f[I]options\f[R]]
170
+ Resume a previous task from history.
171
+ Accepts the same options as \f[B]task new\f[R].
172
+ .PP
173
+ \f[B]cline task list\f[R]
174
+ .TP
175
+ \f[B]cline t l\f[R]
176
+ List all tasks in history with their id and snippet
177
+ .PP
178
+ \f[B]cline task chat\f[R]
179
+ .TP
180
+ \f[B]cline t c\f[R]
181
+ Enter interactive chat mode for the current task.
182
+ Allows back\-and\-forth conversation with Cline.
183
+ .PP
184
+ \f[B]cline task send\f[R] [\f[I]message\f[R]] [\f[I]options\f[R]]
185
+ .TP
186
+ \f[B]cline t s\f[R] [\f[I]message\f[R]] [\f[I]options\f[R]]
187
+ Send a message to Cline.
188
+ If no message is provided, reads from stdin.
189
+ Options:
190
+ .RS
191
+ .TP
192
+ \f[B]\-a\f[R], \f[B]\-\-approve\f[R]
193
+ Approve Cline\(cqs proposed action
194
+ .TP
195
+ \f[B]\-d\f[R], \f[B]\-\-deny\f[R]
196
+ Deny Cline\(cqs proposed action
197
+ .TP
198
+ \f[B]\-f\f[R], \f[B]\-\-file\f[R] \f[I]FILE\f[R]
199
+ Attach a file to the message
200
+ .TP
201
+ \f[B]\-y\f[R], \f[B]\-\-no\-interactive\f[R], \f[B]\-\-yolo\f[R]
202
+ Enable autonomous mode
203
+ .TP
204
+ \f[B]\-m\f[R], \f[B]\-\-mode\f[R] \f[I]mode\f[R]
205
+ Switch mode (act or plan)
206
+ .RE
207
+ .PP
208
+ \f[B]cline task view\f[R] [\f[B]\-f\f[R]|\f[B]\-\-follow\f[R]]
209
+ [\f[B]\-c\f[R]|\f[B]\-\-follow\-complete\f[R]]
210
+ .TP
211
+ \f[B]cline t v\f[R] [\f[B]\-f\f[R]|\f[B]\-\-follow\f[R]] [\f[B]\-c\f[R]|\f[B]\-\-follow\-complete\f[R]]
212
+ Display the current conversation.
213
+ Use \f[B]\-\-follow\f[R] to stream updates in real\-time, or
214
+ \f[B]\-\-follow\-complete\f[R] to follow until task completion.
215
+ .PP
216
+ \f[B]cline task restore\f[R] \f[I]checkpoint\f[R]
217
+ .TP
218
+ \f[B]cline t r\f[R] \f[I]checkpoint\f[R]
219
+ Restore the task to a previous checkpoint state.
220
+ .PP
221
+ \f[B]cline task pause\f[R]
222
+ .TP
223
+ \f[B]cline t p\f[R]
224
+ Pause task execution.
225
+ .SS Configuration
226
+ Configuration can be set globally.
227
+ Override these global settings for a task using the
228
+ \f[B]\-\-setting\f[R] flag
229
+ .PP
230
+ \f[B]cline config\f[R]
231
+ .PP
232
+ \f[B]cline c\f[R]
233
+ .PP
234
+ \f[B]cline config set\f[R] \f[I]key\f[R] \f[I]value\f[R]
235
+ .TP
236
+ \f[B]cline c s\f[R] \f[I]key\f[R] \f[I]value\f[R]
237
+ Set a configuration variable.
238
+ .PP
239
+ \f[B]cline config get\f[R] \f[I]key\f[R]
240
+ .TP
241
+ \f[B]cline c g\f[R] \f[I]key\f[R]
242
+ Read a configuration variable.
243
+ .PP
244
+ \f[B]cline config list\f[R]
245
+ .TP
246
+ \f[B]cline c l\f[R]
247
+ List all configuration variables and their values.
248
+ .SH TASK SETTINGS
249
+ Task settings are persisted in the \f[I]\(ti/.cline/x/tasks\f[R]
250
+ directory.
251
+ When resuming a task with \f[B]cline task open\f[R], task settings are
252
+ automatically restored.
253
+ .PP
254
+ Common settings include:
255
+ .TP
256
+ \f[B]yolo\f[R]
257
+ Enable autonomous mode (true/false)
258
+ .TP
259
+ \f[B]mode\f[R]
260
+ Starting mode (act/plan)
261
+ .SH NOTES & EXAMPLES
262
+ The \f[B]cline task send\f[R] and \f[B]cline task new\f[R] commands
263
+ support reading from stdin, enabling powerful pipeline compositions:
264
+ .IP
265
+ .EX
266
+ cat requirements.txt \f[B]|\f[R] cline task send
267
+ echo \(dqRefactor this code\(dq \f[B]|\f[R] cline \-y
268
+ .EE
269
+ .SS Instance Management
270
+ Manage multiple Cline instances:
271
+ .IP
272
+ .EX
273
+ \f[I]# Start a new instance and make it default\f[R]
274
+ cline instance new \-\-default
275
+
276
+ \f[I]# List all running instances\f[R]
277
+ cline instance list
278
+
279
+ \f[I]# Kill a specific instance\f[R]
280
+ cline instance kill localhost:50052
281
+
282
+ \f[I]# Kill all CLI instances\f[R]
283
+ cline instance kill \-\-all\-cli
284
+ .EE
285
+ .SS Task History
286
+ Work with task history:
287
+ .IP
288
+ .EX
289
+ \f[I]# List previous tasks\f[R]
290
+ cline task list
291
+
292
+ \f[I]# Resume a previous task\f[R]
293
+ cline task open 1760501486669
294
+
295
+ \f[I]# View conversation history\f[R]
296
+ cline task view
297
+
298
+ \f[I]# Start interactive chat with this task\f[R]
299
+ cline task chat
300
+ .EE
301
+ .SH ARCHITECTURE
302
+ Cline operates on a three\-layer architecture:
303
+ .TP
304
+ \f[B]Presentation Layer\f[R]
305
+ User interfaces (CLI, VSCode, JetBrains) that connect to Cline Core via
306
+ gRPC
307
+ .TP
308
+ \f[B]Cline Core\f[R]
309
+ The autonomous agent service handling task management, AI model
310
+ integration, state management, tool orchestration, and real\-time
311
+ streaming updates
312
+ .TP
313
+ \f[B]Host Provider Layer\f[R]
314
+ Environment\-specific integrations (VSCode APIs, JetBrains APIs, shell
315
+ APIs) that Cline Core uses to interact with the host system
316
+ .SH BUGS
317
+ Report bugs at: \c
318
+ .UR https://github.com/cline/cline/issues
319
+ .UE \c
320
+ .PP
321
+ For real\-time help, join the Discord community at: \c
322
+ .UR https://discord.gg/cline
323
+ .UE \c
324
+ .SH SEE ALSO
325
+ Full documentation: \c
326
+ .UR https://docs.cline.bot
327
+ .UE \c
328
+ .SH AUTHORS
329
+ Cline is developed by the Cline Bot Inc.\ and the open source community.
330
+ .SH COPYRIGHT
331
+ Copyright © 2025 Cline Bot Inc.\ Licensed under the Apache License 2.0.
package/package.json CHANGED
@@ -1,68 +1,62 @@
1
1
  {
2
- "name": "cline",
3
- "version": "1.0.0-nightly.9",
4
- "description": "Autonomous coding agent CLI - capable of creating/editing files, running commands, using the browser, and more",
5
- "main": "cline-core.js",
6
- "bin": {
7
- "cline": "./bin/cline",
8
- "cline-host": "./bin/cline-host"
9
- },
10
- "scripts": {
11
- "postinstall": "node postinstall.js"
12
- },
13
- "bundleDependencies": [
14
- "@grpc/grpc-js",
15
- "@grpc/reflection",
16
- "better-sqlite3",
17
- "grpc-health-check",
18
- "open",
19
- "vscode-uri"
20
- ],
21
- "engines": {
22
- "node": ">=18.0.0"
23
- },
24
- "keywords": [
25
- "cline",
26
- "claude",
27
- "dev",
28
- "mcp",
29
- "openrouter",
30
- "coding",
31
- "agent",
32
- "autonomous",
33
- "chatgpt",
34
- "sonnet",
35
- "ai",
36
- "llama",
37
- "cli"
38
- ],
39
- "author": {
40
- "name": "Cline Bot Inc."
41
- },
42
- "license": "Apache-2.0",
43
- "repository": {
44
- "type": "git",
45
- "url": "https://github.com/cline/cline"
46
- },
47
- "homepage": "https://cline.bot",
48
- "bugs": {
49
- "url": "https://github.com/cline/cline/issues"
50
- },
51
- "dependencies": {
52
- "@grpc/grpc-js": "^1.13.3",
53
- "@grpc/reflection": "^1.0.4",
54
- "better-sqlite3": "^12.2.0",
55
- "grpc-health-check": "^2.0.2",
56
- "open": "^10.1.2",
57
- "vscode-uri": "^3.1.0"
58
- },
59
- "os": [
60
- "darwin",
61
- "linux",
62
- "win32"
63
- ],
64
- "cpu": [
65
- "x64",
66
- "arm64"
67
- ]
2
+ "name": "cline",
3
+ "version": "1.0.1",
4
+ "description": "Autonomous coding agent CLI - capable of creating/editing files, running commands, using the browser, and more",
5
+ "main": "cline-core.js",
6
+ "bin": {
7
+ "cline": "./bin/cline",
8
+ "cline-host": "./bin/cline-host"
9
+ },
10
+ "man": "./man/cline.1",
11
+ "scripts": {
12
+ "postinstall": "node postinstall.js"
13
+ },
14
+ "bundleDependencies": [
15
+ "@grpc/grpc-js",
16
+ "@grpc/reflection",
17
+ "better-sqlite3",
18
+ "grpc-health-check",
19
+ "open",
20
+ "vscode-uri"
21
+ ],
22
+ "engines": {
23
+ "node": ">=20.0.0"
24
+ },
25
+ "keywords": [
26
+ "cline",
27
+ "claude",
28
+ "dev",
29
+ "mcp",
30
+ "openrouter",
31
+ "coding",
32
+ "agent",
33
+ "autonomous",
34
+ "chatgpt",
35
+ "sonnet",
36
+ "ai",
37
+ "llama",
38
+ "cli"
39
+ ],
40
+ "author": {
41
+ "name": "Cline Bot Inc."
42
+ },
43
+ "license": "Apache-2.0",
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "https://github.com/cline/cline"
47
+ },
48
+ "homepage": "https://cline.bot",
49
+ "bugs": {
50
+ "url": "https://github.com/cline/cline/issues"
51
+ },
52
+ "dependencies": {
53
+ "@grpc/grpc-js": "^1.13.3",
54
+ "@grpc/reflection": "^1.0.4",
55
+ "better-sqlite3": "^12.2.0",
56
+ "grpc-health-check": "^2.0.2",
57
+ "open": "^10.1.2",
58
+ "vscode-uri": "^3.1.0"
59
+ },
60
+ "os": ["darwin", "linux"],
61
+ "cpu": ["x64", "arm64"]
68
62
  }
@@ -16,13 +16,12 @@ message HookInput {
16
16
  oneof data {
17
17
  PreToolUseData pre_tool_use = 10;
18
18
  PostToolUseData post_tool_use = 11;
19
- // Future hooks will be added here
20
- // UserPromptSubmitData user_prompt_submit = 12;
21
- // TaskStartData task_start = 13;
22
- // TaskResumeData task_resume = 14;
23
- // TaskCancelData task_cancel = 15;
24
- // TaskCompleteData task_complete = 16;
25
- // PreCompactData pre_compact = 17;
19
+ UserPromptSubmitData user_prompt_submit = 12;
20
+ TaskStartData task_start = 13;
21
+ TaskResumeData task_resume = 14;
22
+ TaskCancelData task_cancel = 15;
23
+ TaskCompleteData task_complete = 16;
24
+ PreCompactData pre_compact = 17;
26
25
  }
27
26
  }
28
27
 
@@ -47,3 +46,37 @@ message PostToolUseData {
47
46
  bool success = 4;
48
47
  int64 execution_time_ms = 5;
49
48
  }
49
+
50
+ // Data for UserPromptSubmit hook
51
+ message UserPromptSubmitData {
52
+ string prompt = 1;
53
+ repeated string attachments = 2;
54
+ }
55
+
56
+ // Data for TaskStart hook
57
+ message TaskStartData {
58
+ map<string, string> task_metadata = 1;
59
+ }
60
+
61
+ // Data for TaskResume hook
62
+ message TaskResumeData {
63
+ map<string, string> task_metadata = 1;
64
+ map<string, string> previous_state = 2;
65
+ }
66
+
67
+ // Data for TaskCancel hook
68
+ message TaskCancelData {
69
+ map<string, string> task_metadata = 1;
70
+ }
71
+
72
+ // Data for TaskComplete hook
73
+ message TaskCompleteData {
74
+ map<string, string> task_metadata = 1;
75
+ }
76
+
77
+ // Data for PreCompact hook
78
+ message PreCompactData {
79
+ int64 context_size = 1;
80
+ int32 messages_to_compact = 2;
81
+ string compaction_strategy = 3;
82
+ }
@@ -19,10 +19,14 @@ service StateService {
19
19
  rpc updateAutoApprovalSettings(AutoApprovalSettingsRequest) returns (Empty);
20
20
  rpc updateSettings(UpdateSettingsRequest) returns (Empty);
21
21
  rpc updateSettingsCli(UpdateSettingsRequestCli) returns (Empty);
22
+ rpc updateTaskSettings(UpdateTaskSettingsRequest) returns (Empty);
22
23
  rpc updateTelemetrySetting(TelemetrySettingRequest) returns (Empty);
23
24
  rpc setWelcomeViewCompleted(BooleanRequest) returns (Empty);
24
25
  rpc updateInfoBannerVersion(Int64Request) returns (Empty);
25
26
  rpc updateModelBannerVersion(Int64Request) returns (Empty);
27
+ rpc updateCliBannerVersion(Int64Request) returns (Empty);
28
+ rpc installClineCli(EmptyRequest) returns (Empty);
29
+ rpc checkCliInstallation(EmptyRequest) returns (Boolean);
26
30
  rpc getProcessInfo(EmptyRequest) returns (ProcessInfo);
27
31
  }
28
32
 
@@ -208,6 +212,9 @@ message Settings {
208
212
  optional OpenRouterModelInfo act_mode_vercel_ai_gateway_model_info = 121;
209
213
  optional string act_mode_oca_model_id = 122;
210
214
  optional OcaModelInfo act_mode_oca_model_info = 123;
215
+ optional int32 max_consecutive_mistakes = 124;
216
+ optional bool subagents_enabled = 125;
217
+ optional int32 subagent_terminal_output_line_limit = 126;
211
218
  }
212
219
 
213
220
  message DictationSettings {
@@ -318,6 +325,11 @@ message UpdateSettingsRequestCli {
318
325
  optional Secrets secrets = 3;
319
326
  }
320
327
 
328
+ message UpdateTaskSettingsRequest {
329
+ Metadata metadata = 1;
330
+ optional Settings settings = 2;
331
+ }
332
+
321
333
  // Message for updating settings
322
334
  message UpdateSettingsRequest {
323
335
  Metadata metadata = 1;
@@ -345,6 +357,10 @@ message UpdateSettingsRequest {
345
357
  optional double auto_condense_threshold = 24;
346
358
  optional bool multi_root_enabled = 25;
347
359
  optional bool hooks_enabled = 26;
360
+ optional string vscode_terminal_execution_mode = 27;
361
+ optional int32 max_consecutive_mistakes = 28;
362
+ optional bool subagents_enabled = 29;
363
+ optional int32 subagent_terminal_output_line_limit = 30;
348
364
  }
349
365
 
350
366
  // Complete API Configuration message
@@ -10,6 +10,8 @@ option java_multiple_files = true;
10
10
  service TaskService {
11
11
  // Cancels the currently running task
12
12
  rpc cancelTask(EmptyRequest) returns (Empty);
13
+ // Cancels the currently running background command
14
+ rpc cancelBackgroundCommand(EmptyRequest) returns (Empty);
13
15
  // Clears the current task
14
16
  rpc clearTask(EmptyRequest) returns (Empty);
15
17
  // Gets the total size of all tasks
@@ -215,6 +215,9 @@ service UiService {
215
215
  // Scrolls to a specific settings section in the settings view
216
216
  rpc scrollToSettings(StringRequest) returns (KeyValuePair);
217
217
 
218
+ // Sets the terminal execution mode (vscodeTerminal or backgroundExec)
219
+ rpc setTerminalExecutionMode(BooleanRequest) returns (KeyValuePair);
220
+
218
221
  // Marks the current announcement as shown and returns whether an announcement should still be shown
219
222
  rpc onDidShowAnnouncement(EmptyRequest) returns (Boolean);
220
223
 
@@ -31,6 +31,9 @@ service WorkspaceService {
31
31
 
32
32
  // Opens and focuses the terminal panel.
33
33
  rpc openTerminalPanel(OpenTerminalRequest) returns (OpenTerminalResponse);
34
+
35
+ // Executes a command in a new terminal
36
+ rpc executeCommandInTerminal(ExecuteCommandInTerminalRequest) returns (ExecuteCommandInTerminalResponse);
34
37
  }
35
38
 
36
39
  message GetWorkspacePathsRequest {
@@ -93,4 +96,13 @@ message OpenInFileExplorerPanelResponse {}
93
96
  message OpenClineSidebarPanelRequest {}
94
97
  message OpenClineSidebarPanelResponse {}
95
98
  message OpenTerminalRequest {}
96
- message OpenTerminalResponse {}
99
+ message OpenTerminalResponse {}
100
+
101
+ // Execute a command in the terminal
102
+ message ExecuteCommandInTerminalRequest {
103
+ string command = 1; // The command to execute
104
+ }
105
+
106
+ message ExecuteCommandInTerminalResponse {
107
+ bool success = 1; // Whether the command was successfully sent to the terminal
108
+ }
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+ # Test script to check if cline-core starts without errors
3
+
4
+ echo "Testing cline-core startup..."
5
+ node cline-core.js &
6
+ PID=$!
7
+
8
+ # Wait for 3 seconds
9
+ sleep 3
10
+
11
+ # Kill the process
12
+ kill $PID 2>/dev/null
13
+
14
+ echo "Test complete"