@roo-code/types 1.47.0 → 1.49.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 +54 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +160 -113
- package/dist/index.d.ts +160 -113
- package/dist/index.js +50 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -93,6 +93,7 @@ __export(index_exports, {
|
|
|
93
93
|
clineMessageSchema: () => clineMessageSchema,
|
|
94
94
|
clineSaySchema: () => clineSaySchema,
|
|
95
95
|
clineSays: () => clineSays,
|
|
96
|
+
cloudAppPropertiesSchema: () => cloudAppPropertiesSchema,
|
|
96
97
|
codeActionIds: () => codeActionIds,
|
|
97
98
|
codebaseIndexConfigSchema: () => codebaseIndexConfigSchema,
|
|
98
99
|
codebaseIndexModelsSchema: () => codebaseIndexModelsSchema,
|
|
@@ -110,6 +111,7 @@ __export(index_exports, {
|
|
|
110
111
|
doubaoDefaultModelId: () => doubaoDefaultModelId,
|
|
111
112
|
doubaoDefaultModelInfo: () => doubaoDefaultModelInfo,
|
|
112
113
|
doubaoModels: () => doubaoModels,
|
|
114
|
+
dynamicAppPropertiesSchema: () => dynamicAppPropertiesSchema,
|
|
113
115
|
experimentIds: () => experimentIds,
|
|
114
116
|
experimentIdsSchema: () => experimentIdsSchema,
|
|
115
117
|
experimentsSchema: () => experimentsSchema,
|
|
@@ -189,9 +191,11 @@ __export(index_exports, {
|
|
|
189
191
|
rooCodeTelemetryEventSchema: () => rooCodeTelemetryEventSchema,
|
|
190
192
|
sambaNovaDefaultModelId: () => sambaNovaDefaultModelId,
|
|
191
193
|
sambaNovaModels: () => sambaNovaModels,
|
|
194
|
+
staticAppPropertiesSchema: () => staticAppPropertiesSchema,
|
|
192
195
|
suggestionItemSchema: () => suggestionItemSchema,
|
|
193
196
|
taskCommandSchema: () => taskCommandSchema,
|
|
194
197
|
taskEventSchema: () => taskEventSchema,
|
|
198
|
+
taskMetadataSchema: () => taskMetadataSchema,
|
|
195
199
|
taskPropertiesSchema: () => taskPropertiesSchema,
|
|
196
200
|
telemetryPropertiesSchema: () => telemetryPropertiesSchema,
|
|
197
201
|
telemetrySettings: () => telemetrySettings,
|
|
@@ -1007,16 +1011,25 @@ var TelemetryEventName = /* @__PURE__ */ ((TelemetryEventName2) => {
|
|
|
1007
1011
|
TelemetryEventName2["CODE_INDEX_ERROR"] = "Code Index Error";
|
|
1008
1012
|
return TelemetryEventName2;
|
|
1009
1013
|
})(TelemetryEventName || {});
|
|
1010
|
-
var
|
|
1014
|
+
var staticAppPropertiesSchema = import_zod10.z.object({
|
|
1011
1015
|
appName: import_zod10.z.string(),
|
|
1012
1016
|
appVersion: import_zod10.z.string(),
|
|
1013
1017
|
vscodeVersion: import_zod10.z.string(),
|
|
1014
1018
|
platform: import_zod10.z.string(),
|
|
1015
|
-
editorName: import_zod10.z.string()
|
|
1019
|
+
editorName: import_zod10.z.string()
|
|
1020
|
+
});
|
|
1021
|
+
var dynamicAppPropertiesSchema = import_zod10.z.object({
|
|
1016
1022
|
language: import_zod10.z.string(),
|
|
1017
|
-
mode: import_zod10.z.string()
|
|
1023
|
+
mode: import_zod10.z.string()
|
|
1024
|
+
});
|
|
1025
|
+
var cloudAppPropertiesSchema = import_zod10.z.object({
|
|
1018
1026
|
cloudIsAuthenticated: import_zod10.z.boolean().optional()
|
|
1019
1027
|
});
|
|
1028
|
+
var appPropertiesSchema = import_zod10.z.object({
|
|
1029
|
+
...staticAppPropertiesSchema.shape,
|
|
1030
|
+
...dynamicAppPropertiesSchema.shape,
|
|
1031
|
+
...cloudAppPropertiesSchema.shape
|
|
1032
|
+
});
|
|
1020
1033
|
var taskPropertiesSchema = import_zod10.z.object({
|
|
1021
1034
|
taskId: import_zod10.z.string().optional(),
|
|
1022
1035
|
apiProvider: import_zod10.z.enum(providerNames).optional(),
|
|
@@ -1616,41 +1629,49 @@ var mcpExecutionStatusSchema = import_zod16.z.discriminatedUnion("status", [
|
|
|
1616
1629
|
})
|
|
1617
1630
|
]);
|
|
1618
1631
|
|
|
1619
|
-
// src/
|
|
1632
|
+
// src/task.ts
|
|
1620
1633
|
var import_zod17 = require("zod");
|
|
1621
|
-
var
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1634
|
+
var taskMetadataSchema = import_zod17.z.object({
|
|
1635
|
+
taskId: import_zod17.z.string(),
|
|
1636
|
+
task: import_zod17.z.string().optional(),
|
|
1637
|
+
images: import_zod17.z.array(import_zod17.z.string()).optional()
|
|
1638
|
+
});
|
|
1639
|
+
|
|
1640
|
+
// src/todo.ts
|
|
1641
|
+
var import_zod18 = require("zod");
|
|
1642
|
+
var todoStatusSchema = import_zod18.z.enum(["pending", "in_progress", "completed"]);
|
|
1643
|
+
var todoItemSchema = import_zod18.z.object({
|
|
1644
|
+
id: import_zod18.z.string(),
|
|
1645
|
+
content: import_zod18.z.string(),
|
|
1625
1646
|
status: todoStatusSchema
|
|
1626
1647
|
});
|
|
1627
1648
|
|
|
1628
1649
|
// src/terminal.ts
|
|
1629
|
-
var
|
|
1630
|
-
var commandExecutionStatusSchema =
|
|
1631
|
-
|
|
1632
|
-
executionId:
|
|
1633
|
-
status:
|
|
1634
|
-
pid:
|
|
1635
|
-
command:
|
|
1650
|
+
var import_zod19 = require("zod");
|
|
1651
|
+
var commandExecutionStatusSchema = import_zod19.z.discriminatedUnion("status", [
|
|
1652
|
+
import_zod19.z.object({
|
|
1653
|
+
executionId: import_zod19.z.string(),
|
|
1654
|
+
status: import_zod19.z.literal("started"),
|
|
1655
|
+
pid: import_zod19.z.number().optional(),
|
|
1656
|
+
command: import_zod19.z.string()
|
|
1636
1657
|
}),
|
|
1637
|
-
|
|
1638
|
-
executionId:
|
|
1639
|
-
status:
|
|
1640
|
-
output:
|
|
1658
|
+
import_zod19.z.object({
|
|
1659
|
+
executionId: import_zod19.z.string(),
|
|
1660
|
+
status: import_zod19.z.literal("output"),
|
|
1661
|
+
output: import_zod19.z.string()
|
|
1641
1662
|
}),
|
|
1642
|
-
|
|
1643
|
-
executionId:
|
|
1644
|
-
status:
|
|
1645
|
-
exitCode:
|
|
1663
|
+
import_zod19.z.object({
|
|
1664
|
+
executionId: import_zod19.z.string(),
|
|
1665
|
+
status: import_zod19.z.literal("exited"),
|
|
1666
|
+
exitCode: import_zod19.z.number().optional()
|
|
1646
1667
|
}),
|
|
1647
|
-
|
|
1648
|
-
executionId:
|
|
1649
|
-
status:
|
|
1668
|
+
import_zod19.z.object({
|
|
1669
|
+
executionId: import_zod19.z.string(),
|
|
1670
|
+
status: import_zod19.z.literal("fallback")
|
|
1650
1671
|
}),
|
|
1651
|
-
|
|
1652
|
-
executionId:
|
|
1653
|
-
status:
|
|
1672
|
+
import_zod19.z.object({
|
|
1673
|
+
executionId: import_zod19.z.string(),
|
|
1674
|
+
status: import_zod19.z.literal("timeout")
|
|
1654
1675
|
})
|
|
1655
1676
|
]);
|
|
1656
1677
|
|
|
@@ -4580,6 +4601,7 @@ var fireworksModels = {
|
|
|
4580
4601
|
clineMessageSchema,
|
|
4581
4602
|
clineSaySchema,
|
|
4582
4603
|
clineSays,
|
|
4604
|
+
cloudAppPropertiesSchema,
|
|
4583
4605
|
codeActionIds,
|
|
4584
4606
|
codebaseIndexConfigSchema,
|
|
4585
4607
|
codebaseIndexModelsSchema,
|
|
@@ -4597,6 +4619,7 @@ var fireworksModels = {
|
|
|
4597
4619
|
doubaoDefaultModelId,
|
|
4598
4620
|
doubaoDefaultModelInfo,
|
|
4599
4621
|
doubaoModels,
|
|
4622
|
+
dynamicAppPropertiesSchema,
|
|
4600
4623
|
experimentIds,
|
|
4601
4624
|
experimentIdsSchema,
|
|
4602
4625
|
experimentsSchema,
|
|
@@ -4676,9 +4699,11 @@ var fireworksModels = {
|
|
|
4676
4699
|
rooCodeTelemetryEventSchema,
|
|
4677
4700
|
sambaNovaDefaultModelId,
|
|
4678
4701
|
sambaNovaModels,
|
|
4702
|
+
staticAppPropertiesSchema,
|
|
4679
4703
|
suggestionItemSchema,
|
|
4680
4704
|
taskCommandSchema,
|
|
4681
4705
|
taskEventSchema,
|
|
4706
|
+
taskMetadataSchema,
|
|
4682
4707
|
taskPropertiesSchema,
|
|
4683
4708
|
telemetryPropertiesSchema,
|
|
4684
4709
|
telemetrySettings,
|