@roo-code/types 1.48.0 → 1.50.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/dist/index.cjs +23 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +186 -123
- package/dist/index.d.ts +186 -123
- package/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7738,7 +7738,8 @@ type Ack = z.infer<typeof ackSchema>;
|
|
|
7738
7738
|
declare enum TaskCommandName {
|
|
7739
7739
|
StartNewTask = "StartNewTask",
|
|
7740
7740
|
CancelTask = "CancelTask",
|
|
7741
|
-
CloseTask = "CloseTask"
|
|
7741
|
+
CloseTask = "CloseTask",
|
|
7742
|
+
ResumeTask = "ResumeTask"
|
|
7742
7743
|
}
|
|
7743
7744
|
/**
|
|
7744
7745
|
* TaskCommand
|
|
@@ -10110,6 +10111,15 @@ declare const taskCommandSchema: z.ZodDiscriminatedUnion<"commandName", [z.ZodOb
|
|
|
10110
10111
|
}, {
|
|
10111
10112
|
commandName: TaskCommandName.CloseTask;
|
|
10112
10113
|
data: string;
|
|
10114
|
+
}>, z.ZodObject<{
|
|
10115
|
+
commandName: z.ZodLiteral<TaskCommandName.ResumeTask>;
|
|
10116
|
+
data: z.ZodString;
|
|
10117
|
+
}, "strip", z.ZodTypeAny, {
|
|
10118
|
+
commandName: TaskCommandName.ResumeTask;
|
|
10119
|
+
data: string;
|
|
10120
|
+
}, {
|
|
10121
|
+
commandName: TaskCommandName.ResumeTask;
|
|
10122
|
+
data: string;
|
|
10113
10123
|
}>]>;
|
|
10114
10124
|
type TaskCommand = z.infer<typeof taskCommandSchema>;
|
|
10115
10125
|
/**
|
|
@@ -12518,6 +12528,15 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
12518
12528
|
}, {
|
|
12519
12529
|
commandName: TaskCommandName.CloseTask;
|
|
12520
12530
|
data: string;
|
|
12531
|
+
}>, z.ZodObject<{
|
|
12532
|
+
commandName: z.ZodLiteral<TaskCommandName.ResumeTask>;
|
|
12533
|
+
data: z.ZodString;
|
|
12534
|
+
}, "strip", z.ZodTypeAny, {
|
|
12535
|
+
commandName: TaskCommandName.ResumeTask;
|
|
12536
|
+
data: string;
|
|
12537
|
+
}, {
|
|
12538
|
+
commandName: TaskCommandName.ResumeTask;
|
|
12539
|
+
data: string;
|
|
12521
12540
|
}>]>;
|
|
12522
12541
|
}, "strip", z.ZodTypeAny, {
|
|
12523
12542
|
type: IpcMessageType.TaskCommand;
|
|
@@ -12832,6 +12851,9 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
12832
12851
|
} | {
|
|
12833
12852
|
commandName: TaskCommandName.CloseTask;
|
|
12834
12853
|
data: string;
|
|
12854
|
+
} | {
|
|
12855
|
+
commandName: TaskCommandName.ResumeTask;
|
|
12856
|
+
data: string;
|
|
12835
12857
|
};
|
|
12836
12858
|
origin: IpcOrigin.Client;
|
|
12837
12859
|
}, {
|
|
@@ -13147,6 +13169,9 @@ declare const ipcMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
13147
13169
|
} | {
|
|
13148
13170
|
commandName: TaskCommandName.CloseTask;
|
|
13149
13171
|
data: string;
|
|
13172
|
+
} | {
|
|
13173
|
+
commandName: TaskCommandName.ResumeTask;
|
|
13174
|
+
data: string;
|
|
13150
13175
|
};
|
|
13151
13176
|
origin: IpcOrigin.Client;
|
|
13152
13177
|
}>, z.ZodObject<{
|
|
@@ -15549,113 +15574,6 @@ declare const toolUsageSchema: z.ZodRecord<z.ZodEnum<["execute_command", "read_f
|
|
|
15549
15574
|
}>>;
|
|
15550
15575
|
type ToolUsage = z.infer<typeof toolUsageSchema>;
|
|
15551
15576
|
|
|
15552
|
-
/**
|
|
15553
|
-
* TaskProviderLike
|
|
15554
|
-
*/
|
|
15555
|
-
interface TaskProviderState {
|
|
15556
|
-
mode?: string;
|
|
15557
|
-
}
|
|
15558
|
-
interface TaskProviderLike {
|
|
15559
|
-
readonly cwd: string;
|
|
15560
|
-
getCurrentCline(): TaskLike | undefined;
|
|
15561
|
-
getCurrentTaskStack(): string[];
|
|
15562
|
-
initClineWithTask(text?: string, images?: string[], parentTask?: TaskLike): Promise<TaskLike>;
|
|
15563
|
-
cancelTask(): Promise<void>;
|
|
15564
|
-
clearTask(): Promise<void>;
|
|
15565
|
-
postStateToWebview(): Promise<void>;
|
|
15566
|
-
getState(): Promise<TaskProviderState>;
|
|
15567
|
-
postMessageToWebview(message: unknown): Promise<void>;
|
|
15568
|
-
on<K extends keyof TaskProviderEvents>(event: K, listener: (...args: TaskProviderEvents[K]) => void | Promise<void>): this;
|
|
15569
|
-
off<K extends keyof TaskProviderEvents>(event: K, listener: (...args: TaskProviderEvents[K]) => void | Promise<void>): this;
|
|
15570
|
-
context: {
|
|
15571
|
-
extension?: {
|
|
15572
|
-
packageJSON?: {
|
|
15573
|
-
version?: string;
|
|
15574
|
-
};
|
|
15575
|
-
};
|
|
15576
|
-
};
|
|
15577
|
-
}
|
|
15578
|
-
type TaskProviderEvents = {
|
|
15579
|
-
[RooCodeEventName.TaskCreated]: [task: TaskLike];
|
|
15580
|
-
[RooCodeEventName.TaskStarted]: [taskId: string];
|
|
15581
|
-
[RooCodeEventName.TaskCompleted]: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage];
|
|
15582
|
-
[RooCodeEventName.TaskAborted]: [taskId: string];
|
|
15583
|
-
[RooCodeEventName.TaskFocused]: [taskId: string];
|
|
15584
|
-
[RooCodeEventName.TaskUnfocused]: [taskId: string];
|
|
15585
|
-
[RooCodeEventName.TaskActive]: [taskId: string];
|
|
15586
|
-
[RooCodeEventName.TaskIdle]: [taskId: string];
|
|
15587
|
-
};
|
|
15588
|
-
/**
|
|
15589
|
-
* TaskLike
|
|
15590
|
-
*/
|
|
15591
|
-
declare const taskMetadataSchema: z.ZodObject<{
|
|
15592
|
-
taskId: z.ZodString;
|
|
15593
|
-
task: z.ZodOptional<z.ZodString>;
|
|
15594
|
-
images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15595
|
-
}, "strip", z.ZodTypeAny, {
|
|
15596
|
-
taskId: string;
|
|
15597
|
-
images?: string[] | undefined;
|
|
15598
|
-
task?: string | undefined;
|
|
15599
|
-
}, {
|
|
15600
|
-
taskId: string;
|
|
15601
|
-
images?: string[] | undefined;
|
|
15602
|
-
task?: string | undefined;
|
|
15603
|
-
}>;
|
|
15604
|
-
type TaskMetadata = z.infer<typeof taskMetadataSchema>;
|
|
15605
|
-
interface TaskLike {
|
|
15606
|
-
readonly taskId: string;
|
|
15607
|
-
readonly rootTask?: TaskLike;
|
|
15608
|
-
readonly blockingAsk?: BlockingAsk;
|
|
15609
|
-
readonly metadata: TaskMetadata;
|
|
15610
|
-
on<K extends keyof TaskEvents>(event: K, listener: (...args: TaskEvents[K]) => void | Promise<void>): this;
|
|
15611
|
-
off<K extends keyof TaskEvents>(event: K, listener: (...args: TaskEvents[K]) => void | Promise<void>): this;
|
|
15612
|
-
setMessageResponse(text: string, images?: string[]): void;
|
|
15613
|
-
submitUserMessage(text: string, images?: string[]): void;
|
|
15614
|
-
}
|
|
15615
|
-
type TaskEvents = {
|
|
15616
|
-
[RooCodeEventName.TaskStarted]: [];
|
|
15617
|
-
[RooCodeEventName.TaskCompleted]: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage];
|
|
15618
|
-
[RooCodeEventName.TaskAborted]: [];
|
|
15619
|
-
[RooCodeEventName.TaskFocused]: [];
|
|
15620
|
-
[RooCodeEventName.TaskUnfocused]: [];
|
|
15621
|
-
[RooCodeEventName.TaskActive]: [taskId: string];
|
|
15622
|
-
[RooCodeEventName.TaskIdle]: [taskId: string];
|
|
15623
|
-
[RooCodeEventName.TaskPaused]: [];
|
|
15624
|
-
[RooCodeEventName.TaskUnpaused]: [];
|
|
15625
|
-
[RooCodeEventName.TaskSpawned]: [taskId: string];
|
|
15626
|
-
[RooCodeEventName.Message]: [{
|
|
15627
|
-
action: "created" | "updated";
|
|
15628
|
-
message: ClineMessage;
|
|
15629
|
-
}];
|
|
15630
|
-
[RooCodeEventName.TaskModeSwitched]: [taskId: string, mode: string];
|
|
15631
|
-
[RooCodeEventName.TaskAskResponded]: [];
|
|
15632
|
-
[RooCodeEventName.TaskToolFailed]: [taskId: string, tool: ToolName, error: string];
|
|
15633
|
-
[RooCodeEventName.TaskTokenUsageUpdated]: [taskId: string, tokenUsage: TokenUsage];
|
|
15634
|
-
};
|
|
15635
|
-
|
|
15636
|
-
/**
|
|
15637
|
-
* TodoStatus
|
|
15638
|
-
*/
|
|
15639
|
-
declare const todoStatusSchema: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
15640
|
-
type TodoStatus = z.infer<typeof todoStatusSchema>;
|
|
15641
|
-
/**
|
|
15642
|
-
* TodoItem
|
|
15643
|
-
*/
|
|
15644
|
-
declare const todoItemSchema: z.ZodObject<{
|
|
15645
|
-
id: z.ZodString;
|
|
15646
|
-
content: z.ZodString;
|
|
15647
|
-
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
15648
|
-
}, "strip", z.ZodTypeAny, {
|
|
15649
|
-
status: "completed" | "pending" | "in_progress";
|
|
15650
|
-
id: string;
|
|
15651
|
-
content: string;
|
|
15652
|
-
}, {
|
|
15653
|
-
status: "completed" | "pending" | "in_progress";
|
|
15654
|
-
id: string;
|
|
15655
|
-
content: string;
|
|
15656
|
-
}>;
|
|
15657
|
-
type TodoItem = z.infer<typeof todoItemSchema>;
|
|
15658
|
-
|
|
15659
15577
|
/**
|
|
15660
15578
|
* TelemetrySetting
|
|
15661
15579
|
*/
|
|
@@ -15708,15 +15626,54 @@ declare enum TelemetryEventName {
|
|
|
15708
15626
|
/**
|
|
15709
15627
|
* TelemetryProperties
|
|
15710
15628
|
*/
|
|
15711
|
-
declare const
|
|
15629
|
+
declare const staticAppPropertiesSchema: z.ZodObject<{
|
|
15712
15630
|
appName: z.ZodString;
|
|
15713
15631
|
appVersion: z.ZodString;
|
|
15714
15632
|
vscodeVersion: z.ZodString;
|
|
15715
15633
|
platform: z.ZodString;
|
|
15716
15634
|
editorName: z.ZodString;
|
|
15635
|
+
}, "strip", z.ZodTypeAny, {
|
|
15636
|
+
appName: string;
|
|
15637
|
+
appVersion: string;
|
|
15638
|
+
vscodeVersion: string;
|
|
15639
|
+
platform: string;
|
|
15640
|
+
editorName: string;
|
|
15641
|
+
}, {
|
|
15642
|
+
appName: string;
|
|
15643
|
+
appVersion: string;
|
|
15644
|
+
vscodeVersion: string;
|
|
15645
|
+
platform: string;
|
|
15646
|
+
editorName: string;
|
|
15647
|
+
}>;
|
|
15648
|
+
type StaticAppProperties = z.infer<typeof staticAppPropertiesSchema>;
|
|
15649
|
+
declare const dynamicAppPropertiesSchema: z.ZodObject<{
|
|
15717
15650
|
language: z.ZodString;
|
|
15718
15651
|
mode: z.ZodString;
|
|
15652
|
+
}, "strip", z.ZodTypeAny, {
|
|
15653
|
+
mode: string;
|
|
15654
|
+
language: string;
|
|
15655
|
+
}, {
|
|
15656
|
+
mode: string;
|
|
15657
|
+
language: string;
|
|
15658
|
+
}>;
|
|
15659
|
+
type DynamicAppProperties = z.infer<typeof dynamicAppPropertiesSchema>;
|
|
15660
|
+
declare const cloudAppPropertiesSchema: z.ZodObject<{
|
|
15719
15661
|
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
15662
|
+
}, "strip", z.ZodTypeAny, {
|
|
15663
|
+
cloudIsAuthenticated?: boolean | undefined;
|
|
15664
|
+
}, {
|
|
15665
|
+
cloudIsAuthenticated?: boolean | undefined;
|
|
15666
|
+
}>;
|
|
15667
|
+
type CloudAppProperties = z.infer<typeof cloudAppPropertiesSchema>;
|
|
15668
|
+
declare const appPropertiesSchema: z.ZodObject<{
|
|
15669
|
+
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
15670
|
+
language: z.ZodString;
|
|
15671
|
+
mode: z.ZodString;
|
|
15672
|
+
appName: z.ZodString;
|
|
15673
|
+
appVersion: z.ZodString;
|
|
15674
|
+
vscodeVersion: z.ZodString;
|
|
15675
|
+
platform: z.ZodString;
|
|
15676
|
+
editorName: z.ZodString;
|
|
15720
15677
|
}, "strip", z.ZodTypeAny, {
|
|
15721
15678
|
mode: string;
|
|
15722
15679
|
appName: string;
|
|
@@ -15736,6 +15693,7 @@ declare const appPropertiesSchema: z.ZodObject<{
|
|
|
15736
15693
|
language: string;
|
|
15737
15694
|
cloudIsAuthenticated?: boolean | undefined;
|
|
15738
15695
|
}>;
|
|
15696
|
+
type AppProperties = z.infer<typeof appPropertiesSchema>;
|
|
15739
15697
|
declare const taskPropertiesSchema: z.ZodObject<{
|
|
15740
15698
|
taskId: z.ZodOptional<z.ZodString>;
|
|
15741
15699
|
apiProvider: z.ZodOptional<z.ZodEnum<["anthropic", "claude-code", "glama", "openrouter", "bedrock", "vertex", "openai", "ollama", "vscode-lm", "lmstudio", "gemini", "gemini-cli", "openai-native", "mistral", "moonshot", "deepseek", "doubao", "unbound", "requesty", "human-relay", "fake-ai", "xai", "groq", "chutes", "litellm", "huggingface", "cerebras", "sambanova", "zai", "fireworks", "io-intelligence"]>>;
|
|
@@ -15783,6 +15741,7 @@ declare const taskPropertiesSchema: z.ZodObject<{
|
|
|
15783
15741
|
pending: number;
|
|
15784
15742
|
} | undefined;
|
|
15785
15743
|
}>;
|
|
15744
|
+
type TaskProperties = z.infer<typeof taskPropertiesSchema>;
|
|
15786
15745
|
declare const gitPropertiesSchema: z.ZodObject<{
|
|
15787
15746
|
repositoryUrl: z.ZodOptional<z.ZodString>;
|
|
15788
15747
|
repositoryName: z.ZodOptional<z.ZodString>;
|
|
@@ -15796,6 +15755,7 @@ declare const gitPropertiesSchema: z.ZodObject<{
|
|
|
15796
15755
|
repositoryName?: string | undefined;
|
|
15797
15756
|
defaultBranch?: string | undefined;
|
|
15798
15757
|
}>;
|
|
15758
|
+
type GitProperties = z.infer<typeof gitPropertiesSchema>;
|
|
15799
15759
|
declare const telemetryPropertiesSchema: z.ZodObject<{
|
|
15800
15760
|
repositoryUrl: z.ZodOptional<z.ZodString>;
|
|
15801
15761
|
repositoryName: z.ZodOptional<z.ZodString>;
|
|
@@ -15821,14 +15781,14 @@ declare const telemetryPropertiesSchema: z.ZodObject<{
|
|
|
15821
15781
|
inProgress: number;
|
|
15822
15782
|
pending: number;
|
|
15823
15783
|
}>>;
|
|
15784
|
+
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
15785
|
+
language: z.ZodString;
|
|
15786
|
+
mode: z.ZodString;
|
|
15824
15787
|
appName: z.ZodString;
|
|
15825
15788
|
appVersion: z.ZodString;
|
|
15826
15789
|
vscodeVersion: z.ZodString;
|
|
15827
15790
|
platform: z.ZodString;
|
|
15828
15791
|
editorName: z.ZodString;
|
|
15829
|
-
language: z.ZodString;
|
|
15830
|
-
mode: z.ZodString;
|
|
15831
|
-
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
15832
15792
|
}, "strip", z.ZodTypeAny, {
|
|
15833
15793
|
mode: string;
|
|
15834
15794
|
appName: string;
|
|
@@ -15877,7 +15837,6 @@ declare const telemetryPropertiesSchema: z.ZodObject<{
|
|
|
15877
15837
|
defaultBranch?: string | undefined;
|
|
15878
15838
|
}>;
|
|
15879
15839
|
type TelemetryProperties = z.infer<typeof telemetryPropertiesSchema>;
|
|
15880
|
-
type GitProperties = z.infer<typeof gitPropertiesSchema>;
|
|
15881
15840
|
/**
|
|
15882
15841
|
* TelemetryEvent
|
|
15883
15842
|
*/
|
|
@@ -15915,14 +15874,14 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
15915
15874
|
inProgress: number;
|
|
15916
15875
|
pending: number;
|
|
15917
15876
|
}>>;
|
|
15877
|
+
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
15878
|
+
language: z.ZodString;
|
|
15879
|
+
mode: z.ZodString;
|
|
15918
15880
|
appName: z.ZodString;
|
|
15919
15881
|
appVersion: z.ZodString;
|
|
15920
15882
|
vscodeVersion: z.ZodString;
|
|
15921
15883
|
platform: z.ZodString;
|
|
15922
15884
|
editorName: z.ZodString;
|
|
15923
|
-
language: z.ZodString;
|
|
15924
|
-
mode: z.ZodString;
|
|
15925
|
-
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
15926
15885
|
}, "strip", z.ZodTypeAny, {
|
|
15927
15886
|
mode: string;
|
|
15928
15887
|
appName: string;
|
|
@@ -16176,14 +16135,14 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
16176
16135
|
inProgress: number;
|
|
16177
16136
|
pending: number;
|
|
16178
16137
|
}>>;
|
|
16138
|
+
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
16139
|
+
language: z.ZodString;
|
|
16140
|
+
mode: z.ZodString;
|
|
16179
16141
|
appName: z.ZodString;
|
|
16180
16142
|
appVersion: z.ZodString;
|
|
16181
16143
|
vscodeVersion: z.ZodString;
|
|
16182
16144
|
platform: z.ZodString;
|
|
16183
16145
|
editorName: z.ZodString;
|
|
16184
|
-
language: z.ZodString;
|
|
16185
|
-
mode: z.ZodString;
|
|
16186
|
-
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
16187
16146
|
}, "strip", z.ZodTypeAny, {
|
|
16188
16147
|
message: {
|
|
16189
16148
|
type: "ask" | "say";
|
|
@@ -16439,14 +16398,14 @@ declare const rooCodeTelemetryEventSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
16439
16398
|
inProgress: number;
|
|
16440
16399
|
pending: number;
|
|
16441
16400
|
}>>;
|
|
16401
|
+
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
16402
|
+
language: z.ZodString;
|
|
16403
|
+
mode: z.ZodString;
|
|
16442
16404
|
appName: z.ZodString;
|
|
16443
16405
|
appVersion: z.ZodString;
|
|
16444
16406
|
vscodeVersion: z.ZodString;
|
|
16445
16407
|
platform: z.ZodString;
|
|
16446
16408
|
editorName: z.ZodString;
|
|
16447
|
-
language: z.ZodString;
|
|
16448
|
-
mode: z.ZodString;
|
|
16449
|
-
cloudIsAuthenticated: z.ZodOptional<z.ZodBoolean>;
|
|
16450
16409
|
}, "strip", z.ZodTypeAny, {
|
|
16451
16410
|
mode: string;
|
|
16452
16411
|
appName: string;
|
|
@@ -16596,6 +16555,110 @@ interface TelemetryClient {
|
|
|
16596
16555
|
shutdown(): Promise<void>;
|
|
16597
16556
|
}
|
|
16598
16557
|
|
|
16558
|
+
/**
|
|
16559
|
+
* TaskProviderLike
|
|
16560
|
+
*/
|
|
16561
|
+
interface TaskProviderState {
|
|
16562
|
+
mode?: string;
|
|
16563
|
+
}
|
|
16564
|
+
interface TaskProviderLike {
|
|
16565
|
+
readonly cwd: string;
|
|
16566
|
+
readonly appProperties: StaticAppProperties;
|
|
16567
|
+
readonly gitProperties: GitProperties | undefined;
|
|
16568
|
+
getCurrentTask(): TaskLike | undefined;
|
|
16569
|
+
getCurrentTaskStack(): string[];
|
|
16570
|
+
getRecentTasks(): string[];
|
|
16571
|
+
createTask(text?: string, images?: string[], parentTask?: TaskLike): Promise<TaskLike>;
|
|
16572
|
+
cancelTask(): Promise<void>;
|
|
16573
|
+
clearTask(): Promise<void>;
|
|
16574
|
+
getState(): Promise<TaskProviderState>;
|
|
16575
|
+
postStateToWebview(): Promise<void>;
|
|
16576
|
+
postMessageToWebview(message: unknown): Promise<void>;
|
|
16577
|
+
getTelemetryProperties(): Promise<TelemetryProperties>;
|
|
16578
|
+
on<K extends keyof TaskProviderEvents>(event: K, listener: (...args: TaskProviderEvents[K]) => void | Promise<void>): this;
|
|
16579
|
+
off<K extends keyof TaskProviderEvents>(event: K, listener: (...args: TaskProviderEvents[K]) => void | Promise<void>): this;
|
|
16580
|
+
}
|
|
16581
|
+
type TaskProviderEvents = {
|
|
16582
|
+
[RooCodeEventName.TaskCreated]: [task: TaskLike];
|
|
16583
|
+
[RooCodeEventName.TaskStarted]: [taskId: string];
|
|
16584
|
+
[RooCodeEventName.TaskCompleted]: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage];
|
|
16585
|
+
[RooCodeEventName.TaskAborted]: [taskId: string];
|
|
16586
|
+
[RooCodeEventName.TaskFocused]: [taskId: string];
|
|
16587
|
+
[RooCodeEventName.TaskUnfocused]: [taskId: string];
|
|
16588
|
+
[RooCodeEventName.TaskActive]: [taskId: string];
|
|
16589
|
+
[RooCodeEventName.TaskIdle]: [taskId: string];
|
|
16590
|
+
};
|
|
16591
|
+
/**
|
|
16592
|
+
* TaskLike
|
|
16593
|
+
*/
|
|
16594
|
+
declare const taskMetadataSchema: z.ZodObject<{
|
|
16595
|
+
taskId: z.ZodString;
|
|
16596
|
+
task: z.ZodOptional<z.ZodString>;
|
|
16597
|
+
images: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16598
|
+
}, "strip", z.ZodTypeAny, {
|
|
16599
|
+
taskId: string;
|
|
16600
|
+
images?: string[] | undefined;
|
|
16601
|
+
task?: string | undefined;
|
|
16602
|
+
}, {
|
|
16603
|
+
taskId: string;
|
|
16604
|
+
images?: string[] | undefined;
|
|
16605
|
+
task?: string | undefined;
|
|
16606
|
+
}>;
|
|
16607
|
+
type TaskMetadata = z.infer<typeof taskMetadataSchema>;
|
|
16608
|
+
interface TaskLike {
|
|
16609
|
+
readonly taskId: string;
|
|
16610
|
+
readonly rootTask?: TaskLike;
|
|
16611
|
+
readonly blockingAsk?: BlockingAsk;
|
|
16612
|
+
readonly metadata: TaskMetadata;
|
|
16613
|
+
on<K extends keyof TaskEvents>(event: K, listener: (...args: TaskEvents[K]) => void | Promise<void>): this;
|
|
16614
|
+
off<K extends keyof TaskEvents>(event: K, listener: (...args: TaskEvents[K]) => void | Promise<void>): this;
|
|
16615
|
+
setMessageResponse(text: string, images?: string[]): void;
|
|
16616
|
+
submitUserMessage(text: string, images?: string[]): void;
|
|
16617
|
+
}
|
|
16618
|
+
type TaskEvents = {
|
|
16619
|
+
[RooCodeEventName.TaskStarted]: [];
|
|
16620
|
+
[RooCodeEventName.TaskCompleted]: [taskId: string, tokenUsage: TokenUsage, toolUsage: ToolUsage];
|
|
16621
|
+
[RooCodeEventName.TaskAborted]: [];
|
|
16622
|
+
[RooCodeEventName.TaskFocused]: [];
|
|
16623
|
+
[RooCodeEventName.TaskUnfocused]: [];
|
|
16624
|
+
[RooCodeEventName.TaskActive]: [taskId: string];
|
|
16625
|
+
[RooCodeEventName.TaskIdle]: [taskId: string];
|
|
16626
|
+
[RooCodeEventName.TaskPaused]: [];
|
|
16627
|
+
[RooCodeEventName.TaskUnpaused]: [];
|
|
16628
|
+
[RooCodeEventName.TaskSpawned]: [taskId: string];
|
|
16629
|
+
[RooCodeEventName.Message]: [{
|
|
16630
|
+
action: "created" | "updated";
|
|
16631
|
+
message: ClineMessage;
|
|
16632
|
+
}];
|
|
16633
|
+
[RooCodeEventName.TaskModeSwitched]: [taskId: string, mode: string];
|
|
16634
|
+
[RooCodeEventName.TaskAskResponded]: [];
|
|
16635
|
+
[RooCodeEventName.TaskToolFailed]: [taskId: string, tool: ToolName, error: string];
|
|
16636
|
+
[RooCodeEventName.TaskTokenUsageUpdated]: [taskId: string, tokenUsage: TokenUsage];
|
|
16637
|
+
};
|
|
16638
|
+
|
|
16639
|
+
/**
|
|
16640
|
+
* TodoStatus
|
|
16641
|
+
*/
|
|
16642
|
+
declare const todoStatusSchema: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
16643
|
+
type TodoStatus = z.infer<typeof todoStatusSchema>;
|
|
16644
|
+
/**
|
|
16645
|
+
* TodoItem
|
|
16646
|
+
*/
|
|
16647
|
+
declare const todoItemSchema: z.ZodObject<{
|
|
16648
|
+
id: z.ZodString;
|
|
16649
|
+
content: z.ZodString;
|
|
16650
|
+
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
16651
|
+
}, "strip", z.ZodTypeAny, {
|
|
16652
|
+
status: "completed" | "pending" | "in_progress";
|
|
16653
|
+
id: string;
|
|
16654
|
+
content: string;
|
|
16655
|
+
}, {
|
|
16656
|
+
status: "completed" | "pending" | "in_progress";
|
|
16657
|
+
id: string;
|
|
16658
|
+
content: string;
|
|
16659
|
+
}>;
|
|
16660
|
+
type TodoItem = z.infer<typeof todoItemSchema>;
|
|
16661
|
+
|
|
16599
16662
|
/**
|
|
16600
16663
|
* CommandExecutionStatus
|
|
16601
16664
|
*/
|
|
@@ -19242,4 +19305,4 @@ declare const fireworksModels: {
|
|
|
19242
19305
|
};
|
|
19243
19306
|
};
|
|
19244
19307
|
|
|
19245
|
-
export { ANTHROPIC_DEFAULT_MAX_TOKENS, ANTHROPIC_STYLE_PROVIDERS, AWS_INFERENCE_PROFILE_MAPPING, type Ack, type AnthropicModelId, type AssertEqual, BEDROCK_CLAUDE_SONNET_4_MODEL_ID, BEDROCK_DEFAULT_CONTEXT, BEDROCK_DEFAULT_TEMPERATURE, BEDROCK_MAX_TOKENS, BEDROCK_REGIONS, type BedrockModelId, type BlockingAsk, CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS, CODEBASE_INDEX_DEFAULTS, type CerebrasModelId, type ChutesModelId, type ClaudeCodeModelId, type ClineAsk, type ClineMessage, type ClineSay, type CodeActionId, type CodeActionName, type CodebaseIndexConfig, type CodebaseIndexModels, type CodebaseIndexProvider, type CommandExecutionStatus, type CommandId, type ContextCondense, type CustomModePrompts, type CustomModesSettings, type CustomSupportPrompts, DEEP_SEEK_DEFAULT_TEMPERATURE, DEFAULT_CONSECUTIVE_MISTAKE_LIMIT, DEFAULT_MODES, DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT, DEFAULT_WRITE_DELAY_MS, DOUBAO_API_BASE_URL, DOUBAO_API_CHAT_PATH, type DeepSeekModelId, EVALS_SETTINGS, EVALS_TIMEOUT, type Equals, type ExperimentId, type Experiments, type FireworksModelId, type FollowUpData, type FollowUpDataType, GLAMA_DEFAULT_TEMPERATURE, GLOBAL_SETTINGS_KEYS, GLOBAL_STATE_KEYS, GPT5_DEFAULT_TEMPERATURE, type GeminiModelId, type GitProperties, type GlobalSettings, type GlobalState, type GroqModelId, type GroupEntry, type GroupOptions, HUGGINGFACE_API_URL, HUGGINGFACE_CACHE_DURATION, HUGGINGFACE_DEFAULT_CONTEXT_WINDOW, HUGGINGFACE_DEFAULT_MAX_TOKENS, HUGGINGFACE_MAX_TOKENS_FALLBACK, HUGGINGFACE_SLIDER_MIN, HUGGINGFACE_SLIDER_STEP, HUGGINGFACE_TEMPERATURE_MAX_VALUE, type HistoryItem, type IOIntelligenceModelId, IO_INTELLIGENCE_CACHE_DURATION, type InstallMarketplaceItemOptions, type InternationalZAiModelId, type IpcClientEvents, type IpcMessage, IpcMessageType, IpcOrigin, type IpcServerEvents, type Keys, LITELLM_COMPUTER_USE_MODELS, LMSTUDIO_DEFAULT_TEMPERATURE, type Language, MISTRAL_DEFAULT_TEMPERATURE, MODEL_ID_KEYS, MOONSHOT_DEFAULT_TEMPERATURE, type MainlandZAiModelId, type MarketplaceItem, type MarketplaceItemType, type McpExecutionStatus, type McpInstallationMethod, type McpMarketplaceItem, type McpParameter, type MistralModelId, type ModeConfig, type ModeMarketplaceItem, type ModelInfo, type ModelParameter, type MoonshotModelId, OPENAI_AZURE_AI_INFERENCE_PATH, OPENAI_NATIVE_DEFAULT_TEMPERATURE, OPENROUTER_DEFAULT_PROVIDER_NAME, OPEN_ROUTER_COMPUTER_USE_MODELS, OPEN_ROUTER_PROMPT_CACHING_MODELS, OPEN_ROUTER_REASONING_BUDGET_MODELS, OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS, type OpenAiNativeModelId, PROVIDER_SETTINGS_KEYS, type PromptComponent, type ProviderName, type ProviderSettings, type ProviderSettingsEntry, type ProviderSettingsWithId, type QueuedMessage, type ReasoningEffort, type ReasoningEffortWithMinimal, type RooCodeAPI, type RooCodeAPIEvents, RooCodeEventName, type RooCodeEvents, type RooCodeIpcServer, type RooCodeSettings, type RooCodeTelemetryEvent, SECRET_STATE_KEYS, type SambaNovaModelId, type SecretState, type SuggestionItem, type TaskCommand, TaskCommandName, type TaskEvent, type TaskEvents, type TaskLike, type TaskMetadata, type TaskProviderEvents, type TaskProviderLike, type TaskProviderState, type TelemetryClient, type TelemetryEvent, TelemetryEventName, type TelemetryEventSubscription, type TelemetryProperties, type TelemetryPropertiesProvider, type TelemetrySetting, type TerminalActionId, type TerminalActionName, type TerminalActionPromptType, type TodoItem, type TodoStatus, type TokenUsage, type ToolGroup, type ToolName, type ToolProgressStatus, type ToolUsage, VERTEX_REGIONS, type Values, type VerbosityLevel, type VertexModelId, type VscodeLlmModelId, type XAIModelId, ZAI_DEFAULT_TEMPERATURE, ackSchema, anthropicDefaultModelId, anthropicModels, appPropertiesSchema, azureOpenAiDefaultApiVersion, bedrockDefaultModelId, bedrockDefaultPromptRouterModelId, bedrockModels, blockingAsks, cerebrasDefaultModelId, cerebrasModels, chutesDefaultModelId, chutesModels, claudeCodeDefaultModelId, claudeCodeModels, clineAskSchema, clineAsks, clineMessageSchema, clineSaySchema, clineSays, codeActionIds, codebaseIndexConfigSchema, codebaseIndexModelsSchema, codebaseIndexProviderSchema, commandExecutionStatusSchema, commandIds, contextCondenseSchema, convertModelNameForVertex, customModePromptsSchema, customModesSettingsSchema, customSupportPromptsSchema, deepSeekDefaultModelId, deepSeekModels, discriminatedProviderSettingsWithIdSchema, doubaoDefaultModelId, doubaoDefaultModelInfo, doubaoModels, experimentIds, experimentIdsSchema, experimentsSchema, extendedReasoningEffortsSchema, fireworksDefaultModelId, fireworksModels, followUpDataSchema, geminiDefaultModelId, geminiModels, getApiProtocol, getClaudeCodeModelId, getModelId, gitPropertiesSchema, glamaDefaultModelId, glamaDefaultModelInfo, globalSettingsSchema, groqDefaultModelId, groqModels, groupEntrySchema, groupOptionsSchema, historyItemSchema, installMarketplaceItemOptionsSchema, internationalZAiDefaultModelId, internationalZAiModels, ioIntelligenceDefaultBaseUrl, ioIntelligenceDefaultModelId, ioIntelligenceModels, ipcMessageSchema, isBlockingAsk, isGlobalStateKey, isLanguage, isModelParameter, isSecretStateKey, lMStudioDefaultModelId, lMStudioDefaultModelInfo, languages, languagesSchema, litellmDefaultModelId, litellmDefaultModelInfo, mainlandZAiDefaultModelId, mainlandZAiModels, marketplaceItemSchema, marketplaceItemTypeSchema, mcpExecutionStatusSchema, mcpInstallationMethodSchema, mcpMarketplaceItemSchema, mcpParameterSchema, mistralDefaultModelId, mistralModels, modeConfigSchema, modeMarketplaceItemSchema, modelInfoSchema, modelParameters, modelParametersSchema, moonshotDefaultModelId, moonshotModels, ollamaDefaultModelId, ollamaDefaultModelInfo, openAiModelInfoSaneDefaults, openAiNativeDefaultModelId, openAiNativeModels, openRouterDefaultModelId, openRouterDefaultModelInfo, promptComponentSchema, providerNames, providerNamesSchema, providerSettingsEntrySchema, providerSettingsSchema, providerSettingsSchemaDiscriminated, providerSettingsWithIdSchema, reasoningEfforts, reasoningEffortsSchema, requestyDefaultModelId, requestyDefaultModelInfo, rooCodeEventsSchema, rooCodeSettingsSchema, rooCodeTelemetryEventSchema, sambaNovaDefaultModelId, sambaNovaModels, suggestionItemSchema, taskCommandSchema, taskEventSchema, taskMetadataSchema, taskPropertiesSchema, telemetryPropertiesSchema, telemetrySettings, telemetrySettingsSchema, terminalActionIds, todoItemSchema, todoStatusSchema, tokenUsageSchema, toolGroups, toolGroupsSchema, toolNames, toolNamesSchema, toolProgressStatusSchema, toolUsageSchema, unboundDefaultModelId, unboundDefaultModelInfo, verbosityLevels, verbosityLevelsSchema, vertexDefaultModelId, vertexModels, vscodeLlmDefaultModelId, vscodeLlmModels, xaiDefaultModelId, xaiModels };
|
|
19308
|
+
export { ANTHROPIC_DEFAULT_MAX_TOKENS, ANTHROPIC_STYLE_PROVIDERS, AWS_INFERENCE_PROFILE_MAPPING, type Ack, type AnthropicModelId, type AppProperties, type AssertEqual, BEDROCK_CLAUDE_SONNET_4_MODEL_ID, BEDROCK_DEFAULT_CONTEXT, BEDROCK_DEFAULT_TEMPERATURE, BEDROCK_MAX_TOKENS, BEDROCK_REGIONS, type BedrockModelId, type BlockingAsk, CLAUDE_CODE_DEFAULT_MAX_OUTPUT_TOKENS, CODEBASE_INDEX_DEFAULTS, type CerebrasModelId, type ChutesModelId, type ClaudeCodeModelId, type ClineAsk, type ClineMessage, type ClineSay, type CloudAppProperties, type CodeActionId, type CodeActionName, type CodebaseIndexConfig, type CodebaseIndexModels, type CodebaseIndexProvider, type CommandExecutionStatus, type CommandId, type ContextCondense, type CustomModePrompts, type CustomModesSettings, type CustomSupportPrompts, DEEP_SEEK_DEFAULT_TEMPERATURE, DEFAULT_CONSECUTIVE_MISTAKE_LIMIT, DEFAULT_MODES, DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT, DEFAULT_WRITE_DELAY_MS, DOUBAO_API_BASE_URL, DOUBAO_API_CHAT_PATH, type DeepSeekModelId, type DynamicAppProperties, EVALS_SETTINGS, EVALS_TIMEOUT, type Equals, type ExperimentId, type Experiments, type FireworksModelId, type FollowUpData, type FollowUpDataType, GLAMA_DEFAULT_TEMPERATURE, GLOBAL_SETTINGS_KEYS, GLOBAL_STATE_KEYS, GPT5_DEFAULT_TEMPERATURE, type GeminiModelId, type GitProperties, type GlobalSettings, type GlobalState, type GroqModelId, type GroupEntry, type GroupOptions, HUGGINGFACE_API_URL, HUGGINGFACE_CACHE_DURATION, HUGGINGFACE_DEFAULT_CONTEXT_WINDOW, HUGGINGFACE_DEFAULT_MAX_TOKENS, HUGGINGFACE_MAX_TOKENS_FALLBACK, HUGGINGFACE_SLIDER_MIN, HUGGINGFACE_SLIDER_STEP, HUGGINGFACE_TEMPERATURE_MAX_VALUE, type HistoryItem, type IOIntelligenceModelId, IO_INTELLIGENCE_CACHE_DURATION, type InstallMarketplaceItemOptions, type InternationalZAiModelId, type IpcClientEvents, type IpcMessage, IpcMessageType, IpcOrigin, type IpcServerEvents, type Keys, LITELLM_COMPUTER_USE_MODELS, LMSTUDIO_DEFAULT_TEMPERATURE, type Language, MISTRAL_DEFAULT_TEMPERATURE, MODEL_ID_KEYS, MOONSHOT_DEFAULT_TEMPERATURE, type MainlandZAiModelId, type MarketplaceItem, type MarketplaceItemType, type McpExecutionStatus, type McpInstallationMethod, type McpMarketplaceItem, type McpParameter, type MistralModelId, type ModeConfig, type ModeMarketplaceItem, type ModelInfo, type ModelParameter, type MoonshotModelId, OPENAI_AZURE_AI_INFERENCE_PATH, OPENAI_NATIVE_DEFAULT_TEMPERATURE, OPENROUTER_DEFAULT_PROVIDER_NAME, OPEN_ROUTER_COMPUTER_USE_MODELS, OPEN_ROUTER_PROMPT_CACHING_MODELS, OPEN_ROUTER_REASONING_BUDGET_MODELS, OPEN_ROUTER_REQUIRED_REASONING_BUDGET_MODELS, type OpenAiNativeModelId, PROVIDER_SETTINGS_KEYS, type PromptComponent, type ProviderName, type ProviderSettings, type ProviderSettingsEntry, type ProviderSettingsWithId, type QueuedMessage, type ReasoningEffort, type ReasoningEffortWithMinimal, type RooCodeAPI, type RooCodeAPIEvents, RooCodeEventName, type RooCodeEvents, type RooCodeIpcServer, type RooCodeSettings, type RooCodeTelemetryEvent, SECRET_STATE_KEYS, type SambaNovaModelId, type SecretState, type StaticAppProperties, type SuggestionItem, type TaskCommand, TaskCommandName, type TaskEvent, type TaskEvents, type TaskLike, type TaskMetadata, type TaskProperties, type TaskProviderEvents, type TaskProviderLike, type TaskProviderState, type TelemetryClient, type TelemetryEvent, TelemetryEventName, type TelemetryEventSubscription, type TelemetryProperties, type TelemetryPropertiesProvider, type TelemetrySetting, type TerminalActionId, type TerminalActionName, type TerminalActionPromptType, type TodoItem, type TodoStatus, type TokenUsage, type ToolGroup, type ToolName, type ToolProgressStatus, type ToolUsage, VERTEX_REGIONS, type Values, type VerbosityLevel, type VertexModelId, type VscodeLlmModelId, type XAIModelId, ZAI_DEFAULT_TEMPERATURE, ackSchema, anthropicDefaultModelId, anthropicModels, appPropertiesSchema, azureOpenAiDefaultApiVersion, bedrockDefaultModelId, bedrockDefaultPromptRouterModelId, bedrockModels, blockingAsks, cerebrasDefaultModelId, cerebrasModels, chutesDefaultModelId, chutesModels, claudeCodeDefaultModelId, claudeCodeModels, clineAskSchema, clineAsks, clineMessageSchema, clineSaySchema, clineSays, cloudAppPropertiesSchema, codeActionIds, codebaseIndexConfigSchema, codebaseIndexModelsSchema, codebaseIndexProviderSchema, commandExecutionStatusSchema, commandIds, contextCondenseSchema, convertModelNameForVertex, customModePromptsSchema, customModesSettingsSchema, customSupportPromptsSchema, deepSeekDefaultModelId, deepSeekModels, discriminatedProviderSettingsWithIdSchema, doubaoDefaultModelId, doubaoDefaultModelInfo, doubaoModels, dynamicAppPropertiesSchema, experimentIds, experimentIdsSchema, experimentsSchema, extendedReasoningEffortsSchema, fireworksDefaultModelId, fireworksModels, followUpDataSchema, geminiDefaultModelId, geminiModels, getApiProtocol, getClaudeCodeModelId, getModelId, gitPropertiesSchema, glamaDefaultModelId, glamaDefaultModelInfo, globalSettingsSchema, groqDefaultModelId, groqModels, groupEntrySchema, groupOptionsSchema, historyItemSchema, installMarketplaceItemOptionsSchema, internationalZAiDefaultModelId, internationalZAiModels, ioIntelligenceDefaultBaseUrl, ioIntelligenceDefaultModelId, ioIntelligenceModels, ipcMessageSchema, isBlockingAsk, isGlobalStateKey, isLanguage, isModelParameter, isSecretStateKey, lMStudioDefaultModelId, lMStudioDefaultModelInfo, languages, languagesSchema, litellmDefaultModelId, litellmDefaultModelInfo, mainlandZAiDefaultModelId, mainlandZAiModels, marketplaceItemSchema, marketplaceItemTypeSchema, mcpExecutionStatusSchema, mcpInstallationMethodSchema, mcpMarketplaceItemSchema, mcpParameterSchema, mistralDefaultModelId, mistralModels, modeConfigSchema, modeMarketplaceItemSchema, modelInfoSchema, modelParameters, modelParametersSchema, moonshotDefaultModelId, moonshotModels, ollamaDefaultModelId, ollamaDefaultModelInfo, openAiModelInfoSaneDefaults, openAiNativeDefaultModelId, openAiNativeModels, openRouterDefaultModelId, openRouterDefaultModelInfo, promptComponentSchema, providerNames, providerNamesSchema, providerSettingsEntrySchema, providerSettingsSchema, providerSettingsSchemaDiscriminated, providerSettingsWithIdSchema, reasoningEfforts, reasoningEffortsSchema, requestyDefaultModelId, requestyDefaultModelInfo, rooCodeEventsSchema, rooCodeSettingsSchema, rooCodeTelemetryEventSchema, sambaNovaDefaultModelId, sambaNovaModels, staticAppPropertiesSchema, suggestionItemSchema, taskCommandSchema, taskEventSchema, taskMetadataSchema, taskPropertiesSchema, telemetryPropertiesSchema, telemetrySettings, telemetrySettingsSchema, terminalActionIds, todoItemSchema, todoStatusSchema, tokenUsageSchema, toolGroups, toolGroupsSchema, toolNames, toolNamesSchema, toolProgressStatusSchema, toolUsageSchema, unboundDefaultModelId, unboundDefaultModelInfo, verbosityLevels, verbosityLevelsSchema, vertexDefaultModelId, vertexModels, vscodeLlmDefaultModelId, vscodeLlmModels, xaiDefaultModelId, xaiModels };
|