@vybestack/llxprt-code 0.1.23-nightly.250905.97906524 → 0.2.2-nightly.250908.7b895396
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/package.json +3 -3
- package/dist/src/gemini.js +2 -10
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +1 -1
- package/dist/src/generated/git-commit.js +1 -1
- package/dist/src/integration-tests/base-url-behavior.integration.test.js +4 -1
- package/dist/src/integration-tests/base-url-behavior.integration.test.js.map +1 -1
- package/dist/src/integration-tests/compression-settings-apply.integration.test.js +85 -332
- package/dist/src/integration-tests/compression-settings-apply.integration.test.js.map +1 -1
- package/dist/src/integration-tests/ephemeral-settings.integration.test.js +5 -16
- package/dist/src/integration-tests/ephemeral-settings.integration.test.js.map +1 -1
- package/dist/src/integration-tests/model-params-isolation.integration.test.js +8 -2
- package/dist/src/integration-tests/model-params-isolation.integration.test.js.map +1 -1
- package/dist/src/integration-tests/modelParams.integration.test.js +4 -1
- package/dist/src/integration-tests/modelParams.integration.test.js.map +1 -1
- package/dist/src/integration-tests/provider-switching.integration.test.js +4 -1
- package/dist/src/integration-tests/provider-switching.integration.test.js.map +1 -1
- package/dist/src/integration-tests/retry-settings.integration.test.d.ts +6 -0
- package/dist/src/integration-tests/retry-settings.integration.test.js +56 -0
- package/dist/src/integration-tests/retry-settings.integration.test.js.map +1 -0
- package/dist/src/providers/index.d.ts +1 -1
- package/dist/src/providers/logging/LoggingProviderWrapper.test.js +58 -47
- package/dist/src/providers/logging/LoggingProviderWrapper.test.js.map +1 -1
- package/dist/src/providers/logging/multi-provider-logging.integration.test.js +130 -68
- package/dist/src/providers/logging/multi-provider-logging.integration.test.js.map +1 -1
- package/dist/src/providers/logging/performance.test.js +38 -15
- package/dist/src/providers/logging/performance.test.js.map +1 -1
- package/dist/src/providers/provider-gemini-switching.test.js +4 -1
- package/dist/src/providers/provider-gemini-switching.test.js.map +1 -1
- package/dist/src/providers/provider-switching.integration.test.js +12 -3
- package/dist/src/providers/provider-switching.integration.test.js.map +1 -1
- package/dist/src/storage/ConversationStorage.test.js +10 -7
- package/dist/src/storage/ConversationStorage.test.js.map +1 -1
- package/dist/src/test-utils/mockCommandContext.js +2 -0
- package/dist/src/test-utils/mockCommandContext.js.map +1 -1
- package/dist/src/ui/commands/clearCommand.js +2 -0
- package/dist/src/ui/commands/clearCommand.js.map +1 -1
- package/dist/src/ui/commands/modelCommand.js +16 -0
- package/dist/src/ui/commands/modelCommand.js.map +1 -1
- package/dist/src/ui/commands/profileCommand.js +28 -10
- package/dist/src/ui/commands/profileCommand.js.map +1 -1
- package/dist/src/ui/commands/profileCommand.test.js +10 -11
- package/dist/src/ui/commands/profileCommand.test.js.map +1 -1
- package/dist/src/ui/commands/providerCommand.js +8 -2
- package/dist/src/ui/commands/providerCommand.js.map +1 -1
- package/dist/src/ui/commands/setCommand.js +43 -19
- package/dist/src/ui/commands/setCommand.js.map +1 -1
- package/dist/src/ui/commands/setCommand.test.js +5 -7
- package/dist/src/ui/commands/setCommand.test.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +1 -0
- package/dist/src/ui/commands/types.js.map +1 -1
- package/dist/src/ui/components/ContextIndicator.ui.test.js +14 -41
- package/dist/src/ui/components/ContextIndicator.ui.test.js.map +1 -1
- package/dist/src/ui/components/Footer.responsive.test.js +17 -17
- package/dist/src/ui/components/Footer.responsive.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.js +2 -0
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/useAuthCommand.js +6 -5
- package/dist/src/ui/hooks/useAuthCommand.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.js +31 -57
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +60 -24
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/utils/privacy/ConversationDataRedactor.d.ts +3 -3
- package/dist/src/utils/privacy/ConversationDataRedactor.js +16 -12
- package/dist/src/utils/privacy/ConversationDataRedactor.js.map +1 -1
- package/dist/src/utils/privacy/ConversationDataRedactor.test.js +115 -72
- package/dist/src/utils/privacy/ConversationDataRedactor.test.js.map +1 -1
- package/dist/src/validateNonInterActiveAuth.js +8 -17
- package/dist/src/validateNonInterActiveAuth.js.map +1 -1
- package/dist/src/zed-integration/schema.d.ts +48 -48
- package/dist/src/zed-integration/zedIntegration.js +80 -10
- package/dist/src/zed-integration/zedIntegration.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -197,11 +197,11 @@ export declare const planEntrySchema: z.ZodObject<{
|
|
197
197
|
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">]>;
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
199
199
|
content: string;
|
200
|
-
status: "
|
200
|
+
status: "in_progress" | "completed" | "pending";
|
201
201
|
priority: "high" | "medium" | "low";
|
202
202
|
}, {
|
203
203
|
content: string;
|
204
|
-
status: "
|
204
|
+
status: "in_progress" | "completed" | "pending";
|
205
205
|
priority: "high" | "medium" | "low";
|
206
206
|
}>;
|
207
207
|
export declare const permissionOptionSchema: z.ZodObject<{
|
@@ -1581,7 +1581,7 @@ export declare const toolCallSchema: z.ZodObject<{
|
|
1581
1581
|
title: z.ZodString;
|
1582
1582
|
toolCallId: z.ZodString;
|
1583
1583
|
}, "strip", z.ZodTypeAny, {
|
1584
|
-
status: "
|
1584
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
1585
1585
|
title: string;
|
1586
1586
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
1587
1587
|
toolCallId: string;
|
@@ -1655,7 +1655,7 @@ export declare const toolCallSchema: z.ZodObject<{
|
|
1655
1655
|
}[] | undefined;
|
1656
1656
|
rawInput?: unknown;
|
1657
1657
|
}, {
|
1658
|
-
status: "
|
1658
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
1659
1659
|
title: string;
|
1660
1660
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
1661
1661
|
toolCallId: string;
|
@@ -3486,7 +3486,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
3486
3486
|
title: z.ZodString;
|
3487
3487
|
toolCallId: z.ZodString;
|
3488
3488
|
}, "strip", z.ZodTypeAny, {
|
3489
|
-
status: "
|
3489
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
3490
3490
|
title: string;
|
3491
3491
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
3492
3492
|
toolCallId: string;
|
@@ -3561,7 +3561,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
3561
3561
|
}[] | undefined;
|
3562
3562
|
rawInput?: unknown;
|
3563
3563
|
}, {
|
3564
|
-
status: "
|
3564
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
3565
3565
|
title: string;
|
3566
3566
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
3567
3567
|
toolCallId: string;
|
@@ -4075,7 +4075,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
4075
4075
|
newText: string;
|
4076
4076
|
oldText: string | null;
|
4077
4077
|
})[] | null | undefined;
|
4078
|
-
status?: "
|
4078
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
4079
4079
|
title?: string | null | undefined;
|
4080
4080
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
4081
4081
|
locations?: {
|
@@ -4150,7 +4150,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
4150
4150
|
newText: string;
|
4151
4151
|
oldText: string | null;
|
4152
4152
|
})[] | null | undefined;
|
4153
|
-
status?: "
|
4153
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
4154
4154
|
title?: string | null | undefined;
|
4155
4155
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
4156
4156
|
locations?: {
|
@@ -4165,25 +4165,25 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
4165
4165
|
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">]>;
|
4166
4166
|
}, "strip", z.ZodTypeAny, {
|
4167
4167
|
content: string;
|
4168
|
-
status: "
|
4168
|
+
status: "in_progress" | "completed" | "pending";
|
4169
4169
|
priority: "high" | "medium" | "low";
|
4170
4170
|
}, {
|
4171
4171
|
content: string;
|
4172
|
-
status: "
|
4172
|
+
status: "in_progress" | "completed" | "pending";
|
4173
4173
|
priority: "high" | "medium" | "low";
|
4174
4174
|
}>, "many">;
|
4175
4175
|
sessionUpdate: z.ZodLiteral<"plan">;
|
4176
4176
|
}, "strip", z.ZodTypeAny, {
|
4177
4177
|
entries: {
|
4178
4178
|
content: string;
|
4179
|
-
status: "
|
4179
|
+
status: "in_progress" | "completed" | "pending";
|
4180
4180
|
priority: "high" | "medium" | "low";
|
4181
4181
|
}[];
|
4182
4182
|
sessionUpdate: "plan";
|
4183
4183
|
}, {
|
4184
4184
|
entries: {
|
4185
4185
|
content: string;
|
4186
|
-
status: "
|
4186
|
+
status: "in_progress" | "completed" | "pending";
|
4187
4187
|
priority: "high" | "medium" | "low";
|
4188
4188
|
}[];
|
4189
4189
|
sessionUpdate: "plan";
|
@@ -4664,7 +4664,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
|
|
4664
4664
|
title: z.ZodString;
|
4665
4665
|
toolCallId: z.ZodString;
|
4666
4666
|
}, "strip", z.ZodTypeAny, {
|
4667
|
-
status: "
|
4667
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
4668
4668
|
title: string;
|
4669
4669
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
4670
4670
|
toolCallId: string;
|
@@ -4738,7 +4738,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
|
|
4738
4738
|
}[] | undefined;
|
4739
4739
|
rawInput?: unknown;
|
4740
4740
|
}, {
|
4741
|
-
status: "
|
4741
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
4742
4742
|
title: string;
|
4743
4743
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
4744
4744
|
toolCallId: string;
|
@@ -4820,7 +4820,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
|
|
4820
4820
|
optionId: string;
|
4821
4821
|
}[];
|
4822
4822
|
toolCall: {
|
4823
|
-
status: "
|
4823
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
4824
4824
|
title: string;
|
4825
4825
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
4826
4826
|
toolCallId: string;
|
@@ -4902,7 +4902,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
|
|
4902
4902
|
optionId: string;
|
4903
4903
|
}[];
|
4904
4904
|
toolCall: {
|
4905
|
-
status: "
|
4905
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
4906
4906
|
title: string;
|
4907
4907
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
4908
4908
|
toolCallId: string;
|
@@ -6414,7 +6414,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
6414
6414
|
title: z.ZodString;
|
6415
6415
|
toolCallId: z.ZodString;
|
6416
6416
|
}, "strip", z.ZodTypeAny, {
|
6417
|
-
status: "
|
6417
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
6418
6418
|
title: string;
|
6419
6419
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
6420
6420
|
toolCallId: string;
|
@@ -6489,7 +6489,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
6489
6489
|
}[] | undefined;
|
6490
6490
|
rawInput?: unknown;
|
6491
6491
|
}, {
|
6492
|
-
status: "
|
6492
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
6493
6493
|
title: string;
|
6494
6494
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
6495
6495
|
toolCallId: string;
|
@@ -7003,7 +7003,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7003
7003
|
newText: string;
|
7004
7004
|
oldText: string | null;
|
7005
7005
|
})[] | null | undefined;
|
7006
|
-
status?: "
|
7006
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
7007
7007
|
title?: string | null | undefined;
|
7008
7008
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
7009
7009
|
locations?: {
|
@@ -7078,7 +7078,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7078
7078
|
newText: string;
|
7079
7079
|
oldText: string | null;
|
7080
7080
|
})[] | null | undefined;
|
7081
|
-
status?: "
|
7081
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
7082
7082
|
title?: string | null | undefined;
|
7083
7083
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
7084
7084
|
locations?: {
|
@@ -7093,25 +7093,25 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7093
7093
|
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">]>;
|
7094
7094
|
}, "strip", z.ZodTypeAny, {
|
7095
7095
|
content: string;
|
7096
|
-
status: "
|
7096
|
+
status: "in_progress" | "completed" | "pending";
|
7097
7097
|
priority: "high" | "medium" | "low";
|
7098
7098
|
}, {
|
7099
7099
|
content: string;
|
7100
|
-
status: "
|
7100
|
+
status: "in_progress" | "completed" | "pending";
|
7101
7101
|
priority: "high" | "medium" | "low";
|
7102
7102
|
}>, "many">;
|
7103
7103
|
sessionUpdate: z.ZodLiteral<"plan">;
|
7104
7104
|
}, "strip", z.ZodTypeAny, {
|
7105
7105
|
entries: {
|
7106
7106
|
content: string;
|
7107
|
-
status: "
|
7107
|
+
status: "in_progress" | "completed" | "pending";
|
7108
7108
|
priority: "high" | "medium" | "low";
|
7109
7109
|
}[];
|
7110
7110
|
sessionUpdate: "plan";
|
7111
7111
|
}, {
|
7112
7112
|
entries: {
|
7113
7113
|
content: string;
|
7114
|
-
status: "
|
7114
|
+
status: "in_progress" | "completed" | "pending";
|
7115
7115
|
priority: "high" | "medium" | "low";
|
7116
7116
|
}[];
|
7117
7117
|
sessionUpdate: "plan";
|
@@ -7293,7 +7293,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7293
7293
|
};
|
7294
7294
|
sessionUpdate: "agent_thought_chunk";
|
7295
7295
|
} | {
|
7296
|
-
status: "
|
7296
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
7297
7297
|
title: string;
|
7298
7298
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
7299
7299
|
toolCallId: string;
|
@@ -7434,7 +7434,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7434
7434
|
newText: string;
|
7435
7435
|
oldText: string | null;
|
7436
7436
|
})[] | null | undefined;
|
7437
|
-
status?: "
|
7437
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
7438
7438
|
title?: string | null | undefined;
|
7439
7439
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
7440
7440
|
locations?: {
|
@@ -7445,7 +7445,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7445
7445
|
} | {
|
7446
7446
|
entries: {
|
7447
7447
|
content: string;
|
7448
|
-
status: "
|
7448
|
+
status: "in_progress" | "completed" | "pending";
|
7449
7449
|
priority: "high" | "medium" | "low";
|
7450
7450
|
}[];
|
7451
7451
|
sessionUpdate: "plan";
|
@@ -7627,7 +7627,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7627
7627
|
};
|
7628
7628
|
sessionUpdate: "agent_thought_chunk";
|
7629
7629
|
} | {
|
7630
|
-
status: "
|
7630
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
7631
7631
|
title: string;
|
7632
7632
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
7633
7633
|
toolCallId: string;
|
@@ -7768,7 +7768,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7768
7768
|
newText: string;
|
7769
7769
|
oldText: string | null;
|
7770
7770
|
})[] | null | undefined;
|
7771
|
-
status?: "
|
7771
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
7772
7772
|
title?: string | null | undefined;
|
7773
7773
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
7774
7774
|
locations?: {
|
@@ -7779,7 +7779,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
7779
7779
|
} | {
|
7780
7780
|
entries: {
|
7781
7781
|
content: string;
|
7782
|
-
status: "
|
7782
|
+
status: "in_progress" | "completed" | "pending";
|
7783
7783
|
priority: "high" | "medium" | "low";
|
7784
7784
|
}[];
|
7785
7785
|
sessionUpdate: "plan";
|
@@ -8200,7 +8200,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
8200
8200
|
title: z.ZodString;
|
8201
8201
|
toolCallId: z.ZodString;
|
8202
8202
|
}, "strip", z.ZodTypeAny, {
|
8203
|
-
status: "
|
8203
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
8204
8204
|
title: string;
|
8205
8205
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
8206
8206
|
toolCallId: string;
|
@@ -8274,7 +8274,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
8274
8274
|
}[] | undefined;
|
8275
8275
|
rawInput?: unknown;
|
8276
8276
|
}, {
|
8277
|
-
status: "
|
8277
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
8278
8278
|
title: string;
|
8279
8279
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
8280
8280
|
toolCallId: string;
|
@@ -8356,7 +8356,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
8356
8356
|
optionId: string;
|
8357
8357
|
}[];
|
8358
8358
|
toolCall: {
|
8359
|
-
status: "
|
8359
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
8360
8360
|
title: string;
|
8361
8361
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
8362
8362
|
toolCallId: string;
|
@@ -8438,7 +8438,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
8438
8438
|
optionId: string;
|
8439
8439
|
}[];
|
8440
8440
|
toolCall: {
|
8441
|
-
status: "
|
8441
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
8442
8442
|
title: string;
|
8443
8443
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
8444
8444
|
toolCallId: string;
|
@@ -10409,7 +10409,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
10409
10409
|
title: z.ZodString;
|
10410
10410
|
toolCallId: z.ZodString;
|
10411
10411
|
}, "strip", z.ZodTypeAny, {
|
10412
|
-
status: "
|
10412
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
10413
10413
|
title: string;
|
10414
10414
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
10415
10415
|
toolCallId: string;
|
@@ -10484,7 +10484,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
10484
10484
|
}[] | undefined;
|
10485
10485
|
rawInput?: unknown;
|
10486
10486
|
}, {
|
10487
|
-
status: "
|
10487
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
10488
10488
|
title: string;
|
10489
10489
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
10490
10490
|
toolCallId: string;
|
@@ -10998,7 +10998,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
10998
10998
|
newText: string;
|
10999
10999
|
oldText: string | null;
|
11000
11000
|
})[] | null | undefined;
|
11001
|
-
status?: "
|
11001
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
11002
11002
|
title?: string | null | undefined;
|
11003
11003
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
11004
11004
|
locations?: {
|
@@ -11073,7 +11073,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
11073
11073
|
newText: string;
|
11074
11074
|
oldText: string | null;
|
11075
11075
|
})[] | null | undefined;
|
11076
|
-
status?: "
|
11076
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
11077
11077
|
title?: string | null | undefined;
|
11078
11078
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
11079
11079
|
locations?: {
|
@@ -11088,25 +11088,25 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
11088
11088
|
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"in_progress">, z.ZodLiteral<"completed">]>;
|
11089
11089
|
}, "strip", z.ZodTypeAny, {
|
11090
11090
|
content: string;
|
11091
|
-
status: "
|
11091
|
+
status: "in_progress" | "completed" | "pending";
|
11092
11092
|
priority: "high" | "medium" | "low";
|
11093
11093
|
}, {
|
11094
11094
|
content: string;
|
11095
|
-
status: "
|
11095
|
+
status: "in_progress" | "completed" | "pending";
|
11096
11096
|
priority: "high" | "medium" | "low";
|
11097
11097
|
}>, "many">;
|
11098
11098
|
sessionUpdate: z.ZodLiteral<"plan">;
|
11099
11099
|
}, "strip", z.ZodTypeAny, {
|
11100
11100
|
entries: {
|
11101
11101
|
content: string;
|
11102
|
-
status: "
|
11102
|
+
status: "in_progress" | "completed" | "pending";
|
11103
11103
|
priority: "high" | "medium" | "low";
|
11104
11104
|
}[];
|
11105
11105
|
sessionUpdate: "plan";
|
11106
11106
|
}, {
|
11107
11107
|
entries: {
|
11108
11108
|
content: string;
|
11109
|
-
status: "
|
11109
|
+
status: "in_progress" | "completed" | "pending";
|
11110
11110
|
priority: "high" | "medium" | "low";
|
11111
11111
|
}[];
|
11112
11112
|
sessionUpdate: "plan";
|
@@ -11288,7 +11288,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
11288
11288
|
};
|
11289
11289
|
sessionUpdate: "agent_thought_chunk";
|
11290
11290
|
} | {
|
11291
|
-
status: "
|
11291
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
11292
11292
|
title: string;
|
11293
11293
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
11294
11294
|
toolCallId: string;
|
@@ -11429,7 +11429,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
11429
11429
|
newText: string;
|
11430
11430
|
oldText: string | null;
|
11431
11431
|
})[] | null | undefined;
|
11432
|
-
status?: "
|
11432
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
11433
11433
|
title?: string | null | undefined;
|
11434
11434
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
11435
11435
|
locations?: {
|
@@ -11440,7 +11440,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
11440
11440
|
} | {
|
11441
11441
|
entries: {
|
11442
11442
|
content: string;
|
11443
|
-
status: "
|
11443
|
+
status: "in_progress" | "completed" | "pending";
|
11444
11444
|
priority: "high" | "medium" | "low";
|
11445
11445
|
}[];
|
11446
11446
|
sessionUpdate: "plan";
|
@@ -11622,7 +11622,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
11622
11622
|
};
|
11623
11623
|
sessionUpdate: "agent_thought_chunk";
|
11624
11624
|
} | {
|
11625
|
-
status: "
|
11625
|
+
status: "in_progress" | "completed" | "pending" | "failed";
|
11626
11626
|
title: string;
|
11627
11627
|
kind: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think";
|
11628
11628
|
toolCallId: string;
|
@@ -11763,7 +11763,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
11763
11763
|
newText: string;
|
11764
11764
|
oldText: string | null;
|
11765
11765
|
})[] | null | undefined;
|
11766
|
-
status?: "
|
11766
|
+
status?: "in_progress" | "completed" | "pending" | "failed" | null | undefined;
|
11767
11767
|
title?: string | null | undefined;
|
11768
11768
|
kind?: "search" | "fetch" | "delete" | "move" | "other" | "edit" | "read" | "execute" | "think" | null | undefined;
|
11769
11769
|
locations?: {
|
@@ -11774,7 +11774,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
11774
11774
|
} | {
|
11775
11775
|
entries: {
|
11776
11776
|
content: string;
|
11777
|
-
status: "
|
11777
|
+
status: "in_progress" | "completed" | "pending";
|
11778
11778
|
priority: "high" | "medium" | "low";
|
11779
11779
|
}[];
|
11780
11780
|
sessionUpdate: "plan";
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Copyright 2025 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
5
|
*/
|
6
|
-
import { AuthType, logToolCall, convertToFunctionResponse, ToolConfirmationOutcome, clearCachedCredentialFile, isNodeError, getErrorMessage, isWithinRoot, getErrorStatus, DiscoveredMCPTool, DebugLogger, getFunctionCalls, } from '@vybestack/llxprt-code-core';
|
6
|
+
import { AuthType, logToolCall, convertToFunctionResponse, ToolConfirmationOutcome, clearCachedCredentialFile, isNodeError, getErrorMessage, isWithinRoot, getErrorStatus, DiscoveredMCPTool, DebugLogger, getFunctionCalls, EmojiFilter, } from '@vybestack/llxprt-code-core';
|
7
7
|
import * as acp from './acp.js';
|
8
8
|
import { AcpFileSystemService } from './fileSystemService.js';
|
9
9
|
import { Readable, Writable } from 'node:stream';
|
@@ -279,11 +279,16 @@ class Session {
|
|
279
279
|
config;
|
280
280
|
client;
|
281
281
|
pendingPrompt = null;
|
282
|
+
emojiFilter;
|
282
283
|
constructor(id, chat, config, client) {
|
283
284
|
this.id = id;
|
284
285
|
this.chat = chat;
|
285
286
|
this.config = config;
|
286
287
|
this.client = client;
|
288
|
+
// Initialize emoji filter from settings
|
289
|
+
const emojiFilterMode = this.config.getEphemeralSetting('emojifilter') || 'auto';
|
290
|
+
const filterConfig = { mode: emojiFilterMode };
|
291
|
+
this.emojiFilter = new EmojiFilter(filterConfig);
|
287
292
|
}
|
288
293
|
async cancelPendingPrompt() {
|
289
294
|
if (!this.pendingPrompt) {
|
@@ -301,10 +306,6 @@ class Session {
|
|
301
306
|
const parts = await this.#resolvePrompt(params.prompt, pendingSend.signal);
|
302
307
|
let nextMessage = { role: 'user', parts };
|
303
308
|
while (nextMessage !== null) {
|
304
|
-
if (pendingSend.signal.aborted) {
|
305
|
-
chat.addHistory(nextMessage);
|
306
|
-
return { stopReason: 'cancelled' };
|
307
|
-
}
|
308
309
|
const functionCalls = [];
|
309
310
|
try {
|
310
311
|
const responseStream = await chat.sendMessageStream({
|
@@ -316,7 +317,9 @@ class Session {
|
|
316
317
|
nextMessage = null;
|
317
318
|
for await (const resp of responseStream) {
|
318
319
|
if (pendingSend.signal.aborted) {
|
319
|
-
|
320
|
+
// Let the stream processing complete naturally to handle cancellation properly
|
321
|
+
// Don't return early here - let the tool pipeline handle cleanup
|
322
|
+
break;
|
320
323
|
}
|
321
324
|
if (resp.candidates && resp.candidates.length > 0) {
|
322
325
|
const candidate = resp.candidates[0];
|
@@ -324,9 +327,27 @@ class Session {
|
|
324
327
|
if (!part.text) {
|
325
328
|
continue;
|
326
329
|
}
|
330
|
+
// Filter the content through emoji filter
|
331
|
+
const filterResult = this.emojiFilter.filterStreamChunk(part.text);
|
332
|
+
if (filterResult.blocked) {
|
333
|
+
// In error mode: inject error feedback to model for retry
|
334
|
+
this.sendUpdate({
|
335
|
+
sessionUpdate: 'agent_message_chunk',
|
336
|
+
content: {
|
337
|
+
type: 'text',
|
338
|
+
text: '[Error: Response blocked due to emoji detection]',
|
339
|
+
},
|
340
|
+
});
|
341
|
+
// Add system feedback to be sent with next tool response
|
342
|
+
// This could be done by queueing feedback similar to TUI implementation
|
343
|
+
continue;
|
344
|
+
}
|
345
|
+
const filteredText = typeof filterResult.filtered === 'string'
|
346
|
+
? filterResult.filtered
|
347
|
+
: '';
|
327
348
|
const content = {
|
328
349
|
type: 'text',
|
329
|
-
text:
|
350
|
+
text: filteredText,
|
330
351
|
};
|
331
352
|
this.sendUpdate({
|
332
353
|
sessionUpdate: part.thought
|
@@ -347,11 +368,31 @@ class Session {
|
|
347
368
|
if (getErrorStatus(error) === 429) {
|
348
369
|
throw new acp.RequestError(429, 'Rate limit exceeded. Try again later.');
|
349
370
|
}
|
350
|
-
|
371
|
+
// If this is an abort error due to cancellation, handle it gracefully
|
372
|
+
if (pendingSend.signal.aborted &&
|
373
|
+
isNodeError(error) &&
|
374
|
+
error.name === 'AbortError') {
|
375
|
+
// Don't throw - let the cancellation be handled below
|
376
|
+
}
|
377
|
+
else {
|
378
|
+
throw error;
|
379
|
+
}
|
380
|
+
}
|
381
|
+
// Check for cancellation after stream processing but before tool execution
|
382
|
+
if (pendingSend.signal.aborted) {
|
383
|
+
// Return cancellation without adding to conversation history
|
384
|
+
// The conversation state should remain clean for proper context handling
|
385
|
+
return { stopReason: 'cancelled' };
|
351
386
|
}
|
352
387
|
if (functionCalls.length > 0) {
|
353
388
|
const toolResponseParts = [];
|
354
389
|
for (const fc of functionCalls) {
|
390
|
+
// Check for cancellation before each tool execution
|
391
|
+
if (pendingSend.signal.aborted) {
|
392
|
+
// Return cancellation without polluting conversation history
|
393
|
+
// Tool execution cancellation should be handled by the tool execution system
|
394
|
+
return { stopReason: 'cancelled' };
|
395
|
+
}
|
355
396
|
const response = await this.runTool(pendingSend.signal, promptId, fc);
|
356
397
|
const parts = Array.isArray(response) ? response : [response];
|
357
398
|
for (const part of parts) {
|
@@ -363,7 +404,14 @@ class Session {
|
|
363
404
|
}
|
364
405
|
}
|
365
406
|
}
|
366
|
-
|
407
|
+
// For multiple tool responses, send them all together as the TUI does
|
408
|
+
// This ensures proper conversation history structure for providers like Anthropic
|
409
|
+
if (toolResponseParts.length > 0) {
|
410
|
+
nextMessage = { role: 'user', parts: toolResponseParts };
|
411
|
+
}
|
412
|
+
else {
|
413
|
+
nextMessage = null;
|
414
|
+
}
|
367
415
|
}
|
368
416
|
}
|
369
417
|
return { stopReason: 'end_turn' };
|
@@ -394,7 +442,15 @@ class Session {
|
|
394
442
|
? 'mcp'
|
395
443
|
: 'native',
|
396
444
|
});
|
445
|
+
// Return paired function call and function response for proper conversation history
|
397
446
|
return [
|
447
|
+
{
|
448
|
+
functionCall: {
|
449
|
+
id: callId,
|
450
|
+
name: fc.name ?? '',
|
451
|
+
args,
|
452
|
+
},
|
453
|
+
},
|
398
454
|
{
|
399
455
|
functionResponse: {
|
400
456
|
id: callId,
|
@@ -491,7 +547,21 @@ class Session {
|
|
491
547
|
? 'mcp'
|
492
548
|
: 'native',
|
493
549
|
});
|
494
|
-
|
550
|
+
// Return paired function call and function response like the TUI does
|
551
|
+
// This ensures proper conversation history for providers that need it (like Anthropic)
|
552
|
+
const functionResponseParts = convertToFunctionResponse(fc.name, callId, toolResult.llmContent);
|
553
|
+
return [
|
554
|
+
{
|
555
|
+
functionCall: {
|
556
|
+
id: callId,
|
557
|
+
name: fc.name,
|
558
|
+
args,
|
559
|
+
},
|
560
|
+
},
|
561
|
+
...(Array.isArray(functionResponseParts)
|
562
|
+
? functionResponseParts
|
563
|
+
: [functionResponseParts]),
|
564
|
+
];
|
495
565
|
}
|
496
566
|
catch (e) {
|
497
567
|
const error = e instanceof Error ? e : new Error(String(e));
|