@anthropic-ai/claude-code 0.2.101 → 0.2.103

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.
@@ -0,0 +1,2 @@
1
+ ALTER TABLE `user_messages` ADD `is_at_mention_read` integer;--> statement-breakpoint
2
+ ALTER TABLE `user_messages` ADD `is_meta` integer;
@@ -0,0 +1,297 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "2eaacae9-d836-452c-9f93-ccbbedc6b4aa",
5
+ "prevId": "03027fd0-9366-48ef-984a-3f7c23f82672",
6
+ "tables": {
7
+ "assistant_messages": {
8
+ "name": "assistant_messages",
9
+ "columns": {
10
+ "uuid": {
11
+ "name": "uuid",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "cost_usd": {
18
+ "name": "cost_usd",
19
+ "type": "real",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "duration_ms": {
25
+ "name": "duration_ms",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "message": {
32
+ "name": "message",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "is_api_error_message": {
39
+ "name": "is_api_error_message",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false,
44
+ "default": false
45
+ },
46
+ "timestamp": {
47
+ "name": "timestamp",
48
+ "type": "integer",
49
+ "primaryKey": false,
50
+ "notNull": true,
51
+ "autoincrement": false
52
+ },
53
+ "model": {
54
+ "name": "model",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": true,
58
+ "autoincrement": false
59
+ }
60
+ },
61
+ "indexes": {},
62
+ "foreignKeys": {
63
+ "assistant_messages_uuid_base_messages_uuid_fk": {
64
+ "name": "assistant_messages_uuid_base_messages_uuid_fk",
65
+ "tableFrom": "assistant_messages",
66
+ "tableTo": "base_messages",
67
+ "columnsFrom": [
68
+ "uuid"
69
+ ],
70
+ "columnsTo": [
71
+ "uuid"
72
+ ],
73
+ "onDelete": "no action",
74
+ "onUpdate": "no action"
75
+ }
76
+ },
77
+ "compositePrimaryKeys": {},
78
+ "uniqueConstraints": {},
79
+ "checkConstraints": {}
80
+ },
81
+ "base_messages": {
82
+ "name": "base_messages",
83
+ "columns": {
84
+ "uuid": {
85
+ "name": "uuid",
86
+ "type": "text",
87
+ "primaryKey": true,
88
+ "notNull": true,
89
+ "autoincrement": false
90
+ },
91
+ "parent_uuid": {
92
+ "name": "parent_uuid",
93
+ "type": "text",
94
+ "primaryKey": false,
95
+ "notNull": false,
96
+ "autoincrement": false
97
+ },
98
+ "session_id": {
99
+ "name": "session_id",
100
+ "type": "text",
101
+ "primaryKey": false,
102
+ "notNull": true,
103
+ "autoincrement": false
104
+ },
105
+ "timestamp": {
106
+ "name": "timestamp",
107
+ "type": "integer",
108
+ "primaryKey": false,
109
+ "notNull": true,
110
+ "autoincrement": false
111
+ },
112
+ "message_type": {
113
+ "name": "message_type",
114
+ "type": "text",
115
+ "primaryKey": false,
116
+ "notNull": true,
117
+ "autoincrement": false
118
+ },
119
+ "cwd": {
120
+ "name": "cwd",
121
+ "type": "text",
122
+ "primaryKey": false,
123
+ "notNull": true,
124
+ "autoincrement": false
125
+ },
126
+ "original_cwd": {
127
+ "name": "original_cwd",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": true,
131
+ "autoincrement": false
132
+ },
133
+ "user_type": {
134
+ "name": "user_type",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "autoincrement": false
139
+ },
140
+ "version": {
141
+ "name": "version",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": true,
145
+ "autoincrement": false
146
+ },
147
+ "isSidechain": {
148
+ "name": "isSidechain",
149
+ "type": "integer",
150
+ "primaryKey": false,
151
+ "notNull": true,
152
+ "autoincrement": false
153
+ }
154
+ },
155
+ "indexes": {},
156
+ "foreignKeys": {
157
+ "base_messages_parent_uuid_base_messages_uuid_fk": {
158
+ "name": "base_messages_parent_uuid_base_messages_uuid_fk",
159
+ "tableFrom": "base_messages",
160
+ "tableTo": "base_messages",
161
+ "columnsFrom": [
162
+ "parent_uuid"
163
+ ],
164
+ "columnsTo": [
165
+ "uuid"
166
+ ],
167
+ "onDelete": "no action",
168
+ "onUpdate": "no action"
169
+ }
170
+ },
171
+ "compositePrimaryKeys": {},
172
+ "uniqueConstraints": {},
173
+ "checkConstraints": {}
174
+ },
175
+ "conversation_summaries": {
176
+ "name": "conversation_summaries",
177
+ "columns": {
178
+ "leaf_uuid": {
179
+ "name": "leaf_uuid",
180
+ "type": "text",
181
+ "primaryKey": true,
182
+ "notNull": true,
183
+ "autoincrement": false
184
+ },
185
+ "summary": {
186
+ "name": "summary",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "updated_at": {
193
+ "name": "updated_at",
194
+ "type": "integer",
195
+ "primaryKey": false,
196
+ "notNull": true,
197
+ "autoincrement": false
198
+ }
199
+ },
200
+ "indexes": {},
201
+ "foreignKeys": {
202
+ "conversation_summaries_leaf_uuid_base_messages_uuid_fk": {
203
+ "name": "conversation_summaries_leaf_uuid_base_messages_uuid_fk",
204
+ "tableFrom": "conversation_summaries",
205
+ "tableTo": "base_messages",
206
+ "columnsFrom": [
207
+ "leaf_uuid"
208
+ ],
209
+ "columnsTo": [
210
+ "uuid"
211
+ ],
212
+ "onDelete": "no action",
213
+ "onUpdate": "no action"
214
+ }
215
+ },
216
+ "compositePrimaryKeys": {},
217
+ "uniqueConstraints": {},
218
+ "checkConstraints": {}
219
+ },
220
+ "user_messages": {
221
+ "name": "user_messages",
222
+ "columns": {
223
+ "uuid": {
224
+ "name": "uuid",
225
+ "type": "text",
226
+ "primaryKey": true,
227
+ "notNull": true,
228
+ "autoincrement": false
229
+ },
230
+ "message": {
231
+ "name": "message",
232
+ "type": "text",
233
+ "primaryKey": false,
234
+ "notNull": true,
235
+ "autoincrement": false
236
+ },
237
+ "tool_use_result": {
238
+ "name": "tool_use_result",
239
+ "type": "text",
240
+ "primaryKey": false,
241
+ "notNull": false,
242
+ "autoincrement": false
243
+ },
244
+ "timestamp": {
245
+ "name": "timestamp",
246
+ "type": "integer",
247
+ "primaryKey": false,
248
+ "notNull": true,
249
+ "autoincrement": false
250
+ },
251
+ "is_at_mention_read": {
252
+ "name": "is_at_mention_read",
253
+ "type": "integer",
254
+ "primaryKey": false,
255
+ "notNull": false,
256
+ "autoincrement": false
257
+ },
258
+ "is_meta": {
259
+ "name": "is_meta",
260
+ "type": "integer",
261
+ "primaryKey": false,
262
+ "notNull": false,
263
+ "autoincrement": false
264
+ }
265
+ },
266
+ "indexes": {},
267
+ "foreignKeys": {
268
+ "user_messages_uuid_base_messages_uuid_fk": {
269
+ "name": "user_messages_uuid_base_messages_uuid_fk",
270
+ "tableFrom": "user_messages",
271
+ "tableTo": "base_messages",
272
+ "columnsFrom": [
273
+ "uuid"
274
+ ],
275
+ "columnsTo": [
276
+ "uuid"
277
+ ],
278
+ "onDelete": "no action",
279
+ "onUpdate": "no action"
280
+ }
281
+ },
282
+ "compositePrimaryKeys": {},
283
+ "uniqueConstraints": {},
284
+ "checkConstraints": {}
285
+ }
286
+ },
287
+ "views": {},
288
+ "enums": {},
289
+ "_meta": {
290
+ "schemas": {},
291
+ "tables": {},
292
+ "columns": {}
293
+ },
294
+ "internal": {
295
+ "indexes": {}
296
+ }
297
+ }
@@ -29,6 +29,13 @@
29
29
  "when": 1746313658700,
30
30
  "tag": "0003_dusty_ezekiel_stane",
31
31
  "breakpoints": true
32
+ },
33
+ {
34
+ "idx": 4,
35
+ "version": "6",
36
+ "when": 1746464071071,
37
+ "tag": "0004_secret_iron_patriot",
38
+ "breakpoints": true
32
39
  }
33
40
  ]
34
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "0.2.101",
3
+ "version": "0.2.103",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
package/claude-restart.sh DELETED
@@ -1,99 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # Claude CLI Restart Wrapper
4
- #
5
- # This script acts as a wrapper around the main Claude CLI (cli.mjs) that:
6
- # 1. Launches the CLI with the same arguments passed to this script
7
- # 2. Monitors the CLI process for a special exit code (42)
8
- # 3. If the special exit code is detected, it restarts the CLI with the same arguments
9
-
10
- # Get the real path of this script by using Node.js to follow all symlinks
11
- SCRIPT_PATH="${BASH_SOURCE[0]}"
12
- REAL_SCRIPT_PATH=$(/usr/bin/env node -e "console.log(require('fs').realpathSync('$SCRIPT_PATH'))")
13
-
14
- # Get the directory of the real script
15
- SCRIPT_DIR="$( dirname "$REAL_SCRIPT_PATH" )"
16
-
17
- # Path to cli.js - look for it in the same directory as this script
18
- CLI_PATH="$SCRIPT_DIR/cli.js"
19
-
20
- # DO NOT change the current working directory
21
- # The CLI needs to maintain the original working directory it was launched from
22
-
23
- # Define the signals we'll use to indicate a restart is needed
24
- # Using exit code 42 as our special signal for command-based restart
25
- RESTART_EXIT_CODE=42
26
- # Using exit code 43 as our special signal for tool-based restart
27
- TOOL_RESTART_EXIT_CODE=43
28
-
29
- # Check if cli.mjs exists
30
- if [ ! -f "$CLI_PATH" ]; then
31
- echo "Error: Could not find $CLI_PATH"
32
- exit 1
33
- fi
34
-
35
- # Function to start the CLI
36
- start_cli() {
37
- local is_restart="${2:-false}"
38
- local args=("$@")
39
-
40
- # Remove the is_restart parameter from args
41
- if [ "$is_restart" = "true" ]; then
42
- # If second parameter is "true", remove first two parameters
43
- args=("${args[@]:2}")
44
- else
45
- # If second parameter is not "true", just remove first parameter
46
- args=("${args[@]:1}")
47
- fi
48
-
49
- # If this is a restart triggered by exit code 42 and no args are provided, add 'resume 0' to restore the last conversation
50
- if [ "$is_restart" = "true" ] && [ ${#args[@]} -eq 0 ]; then
51
- # Always add resume 0 when restarting due to exit code 42 and no other arguments exist
52
- args=("resume" "0")
53
- fi
54
-
55
- # Run cli.mjs with the provided arguments
56
- "$CLI_PATH" "${args[@]}"
57
-
58
- # Capture the exit code
59
- EXIT_CODE=$?
60
-
61
- # Check if we need to restart
62
- if [ $EXIT_CODE -eq $RESTART_EXIT_CODE ]; then
63
-
64
- # When restarting due to exit code 42, filter args to keep only flags (starting with - or --)
65
- # and add "resume 0" at the end
66
- local restart_args=()
67
- for arg in "${args[@]}"; do
68
- if [[ "$arg" == -* ]]; then
69
- restart_args+=("$arg")
70
- fi
71
- done
72
-
73
- # Add resume 0 at the end
74
- restart_args+=("resume" "0")
75
-
76
- start_cli "true" "${restart_args[@]}"
77
- elif [ $EXIT_CODE -eq $TOOL_RESTART_EXIT_CODE ]; then
78
-
79
- # When restarting due to exit code 43 (tool restart), filter args to keep only flags (starting with - or --)
80
- # and use "Keep going.." prompt instead
81
- local restart_args=()
82
- for arg in "${args[@]}"; do
83
- if [[ "$arg" == -* ]]; then
84
- restart_args+=("$arg")
85
- fi
86
- done
87
-
88
- # Start with "Keep going.." prompt
89
- restart_args+=("Keep going..")
90
-
91
- start_cli "true" "${restart_args[@]}"
92
- else
93
- # Any other exit code - exit with the same code
94
- exit $EXIT_CODE
95
- fi
96
- }
97
-
98
- # Start the CLI with all arguments passed to this script
99
- start_cli "false" "$@"
Binary file