claude-code-types 0.4.3 → 0.5.0
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/index.d.ts +30 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export type TranscriptEntry =
|
|
|
38
38
|
| AssistantEntry
|
|
39
39
|
| SystemEntry
|
|
40
40
|
| FileHistorySnapshotEntry
|
|
41
|
+
| LastPromptEntry
|
|
41
42
|
| PrLinkEntry
|
|
42
43
|
| ProgressEntry
|
|
43
44
|
| QueueOperationEntry
|
|
@@ -85,6 +86,8 @@ export interface UserEntry extends EntryBase {
|
|
|
85
86
|
/** When `true`, this message is shown in the transcript UI but not sent to the API. */
|
|
86
87
|
isVisibleInTranscriptOnly?: boolean;
|
|
87
88
|
imagePasteIds?: string[];
|
|
89
|
+
/** Unique identifier for this prompt. */
|
|
90
|
+
promptId?: string;
|
|
88
91
|
permissionMode?: PermissionMode;
|
|
89
92
|
planContent?: string;
|
|
90
93
|
thinkingMetadata?: ThinkingMetadata;
|
|
@@ -210,6 +213,8 @@ export interface SystemEntry extends Partial<EntryBase> {
|
|
|
210
213
|
preventedContinuation?: boolean;
|
|
211
214
|
toolUseID?: string;
|
|
212
215
|
logicalParentUuid?: string;
|
|
216
|
+
/** URL for remote control bridge (subtype `bridge_status`). */
|
|
217
|
+
url?: string;
|
|
213
218
|
}
|
|
214
219
|
|
|
215
220
|
/** Discriminator values for {@link SystemEntry.subtype}. */
|
|
@@ -219,9 +224,21 @@ export type SystemSubtype =
|
|
|
219
224
|
| 'informational'
|
|
220
225
|
| 'local_command'
|
|
221
226
|
| 'microcompact_boundary'
|
|
227
|
+
| 'bridge_status'
|
|
222
228
|
| 'stop_hook_summary'
|
|
223
229
|
| 'turn_duration';
|
|
224
230
|
|
|
231
|
+
// ---------------------------------------------------------------------------
|
|
232
|
+
// Last prompt (persisted prompt for session resumption)
|
|
233
|
+
// ---------------------------------------------------------------------------
|
|
234
|
+
|
|
235
|
+
/** Records the last prompt text for session resumption. */
|
|
236
|
+
export interface LastPromptEntry {
|
|
237
|
+
type: 'last-prompt';
|
|
238
|
+
lastPrompt: string;
|
|
239
|
+
sessionId: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
225
242
|
// ---------------------------------------------------------------------------
|
|
226
243
|
// File history snapshot (undo/restore tracking)
|
|
227
244
|
// ---------------------------------------------------------------------------
|
|
@@ -599,6 +616,10 @@ export interface Usage {
|
|
|
599
616
|
service_tier?: 'standard' | 'priority' | 'batch' | null;
|
|
600
617
|
/** Geographic region where inference ran (e.g. `"us-west-2"`). */
|
|
601
618
|
inference_geo?: string | null;
|
|
619
|
+
/** Speed tier used for this response (e.g. `"standard"`). */
|
|
620
|
+
speed?: string | null;
|
|
621
|
+
/** Iteration details when server-side tool loops are involved. */
|
|
622
|
+
iterations?: unknown[];
|
|
602
623
|
}
|
|
603
624
|
|
|
604
625
|
/** Cache creation breakdown by TTL tier. */
|
|
@@ -654,6 +675,7 @@ export interface Todo {
|
|
|
654
675
|
*/
|
|
655
676
|
export type Model =
|
|
656
677
|
| 'claude-opus-4-6'
|
|
678
|
+
| 'claude-sonnet-4-6'
|
|
657
679
|
| 'claude-opus-4-5-20251101'
|
|
658
680
|
| 'claude-sonnet-4-5-20250929'
|
|
659
681
|
| 'claude-haiku-4-5-20251001'
|
|
@@ -682,6 +704,7 @@ export type StopReason =
|
|
|
682
704
|
export type PermissionMode =
|
|
683
705
|
| 'default'
|
|
684
706
|
| 'plan'
|
|
707
|
+
| 'auto'
|
|
685
708
|
| 'acceptEdits'
|
|
686
709
|
| 'dontAsk'
|
|
687
710
|
| 'bypassPermissions';
|
|
@@ -691,11 +714,17 @@ export type PermissionMode =
|
|
|
691
714
|
* between Claude Code versions. MCP tools use the `mcp__<server>__<tool>` pattern.
|
|
692
715
|
*/
|
|
693
716
|
export type BuiltinToolName =
|
|
717
|
+
| 'Agent'
|
|
694
718
|
| 'AskUserQuestion'
|
|
695
719
|
| 'Bash'
|
|
720
|
+
| 'CronCreate'
|
|
721
|
+
| 'CronDelete'
|
|
722
|
+
| 'CronList'
|
|
696
723
|
| 'Edit'
|
|
697
724
|
| 'EnterPlanMode'
|
|
725
|
+
| 'EnterWorktree'
|
|
698
726
|
| 'ExitPlanMode'
|
|
727
|
+
| 'ExitWorktree'
|
|
699
728
|
| 'Glob'
|
|
700
729
|
| 'Grep'
|
|
701
730
|
| 'KillShell'
|
|
@@ -715,6 +744,7 @@ export type BuiltinToolName =
|
|
|
715
744
|
| 'TeamCreate'
|
|
716
745
|
| 'TeamDelete'
|
|
717
746
|
| 'TodoWrite'
|
|
747
|
+
| 'ToolSearch'
|
|
718
748
|
| 'WebFetch'
|
|
719
749
|
| 'WebSearch'
|
|
720
750
|
| 'Write';
|