cline 1.0.0-nightly.14 → 1.0.0-nightly.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cline",
3
- "version": "1.0.0-nightly.14",
3
+ "version": "1.0.0-nightly.15",
4
4
  "description": "Autonomous coding agent CLI - capable of creating/editing files, running commands, using the browser, and more",
5
5
  "main": "cline-core.js",
6
6
  "bin": {
@@ -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
+ }