@vybestack/llxprt-code 0.4.8 → 0.5.0-nightly.251102.f115237d
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 +5 -3
- package/dist/src/auth/__tests__/oauthManager.safety.test.d.ts +6 -0
- package/dist/src/auth/__tests__/oauthManager.safety.test.js +49 -0
- package/dist/src/auth/__tests__/oauthManager.safety.test.js.map +1 -0
- package/dist/src/auth/oauth-manager.d.ts +11 -0
- package/dist/src/auth/oauth-manager.js +62 -29
- package/dist/src/auth/oauth-manager.js.map +1 -1
- package/dist/src/auth/oauth-manager.spec.js +7 -2
- package/dist/src/auth/oauth-manager.spec.js.map +1 -1
- package/dist/src/config/__tests__/nonInteractiveTools.test.d.ts +6 -0
- package/dist/src/config/__tests__/nonInteractiveTools.test.js +13 -0
- package/dist/src/config/__tests__/nonInteractiveTools.test.js.map +1 -0
- package/dist/src/config/__tests__/profileBootstrap.test.d.ts +6 -0
- package/dist/src/config/__tests__/profileBootstrap.test.js +91 -0
- package/dist/src/config/__tests__/profileBootstrap.test.js.map +1 -0
- package/dist/src/config/config.d.ts +6 -2
- package/dist/src/config/config.js +219 -18
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/profileBootstrap.d.ts +64 -0
- package/dist/src/config/profileBootstrap.js +140 -0
- package/dist/src/config/profileBootstrap.js.map +1 -0
- package/dist/src/gemini.js +68 -23
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.js +1 -2
- package/dist/src/gemini.test.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 +110 -450
- package/dist/src/integration-tests/base-url-behavior.integration.test.js.map +1 -1
- package/dist/src/integration-tests/model-params-isolation.integration.test.js +101 -539
- package/dist/src/integration-tests/model-params-isolation.integration.test.js.map +1 -1
- package/dist/src/integration-tests/modelParams.integration.test.js +86 -761
- package/dist/src/integration-tests/modelParams.integration.test.js.map +1 -1
- package/dist/src/integration-tests/provider-multi-runtime.integration.test.d.ts +6 -0
- package/dist/src/integration-tests/provider-multi-runtime.integration.test.js +198 -0
- package/dist/src/integration-tests/provider-multi-runtime.integration.test.js.map +1 -0
- package/dist/src/integration-tests/provider-switching.integration.test.js +97 -151
- package/dist/src/integration-tests/provider-switching.integration.test.js.map +1 -1
- package/dist/src/integration-tests/runtime-isolation.test.d.ts +13 -0
- package/dist/src/integration-tests/runtime-isolation.test.js +170 -0
- package/dist/src/integration-tests/runtime-isolation.test.js.map +1 -0
- package/dist/src/integration-tests/test-utils.js +19 -2
- package/dist/src/integration-tests/test-utils.js.map +1 -1
- package/dist/src/integration-tests/test-utils.test.js +9 -8
- package/dist/src/integration-tests/test-utils.test.js.map +1 -1
- package/dist/src/integration-tests/todo-continuation.integration.test.js +5 -2
- package/dist/src/integration-tests/todo-continuation.integration.test.js.map +1 -1
- package/dist/src/integration-tests/tools-governance.integration.test.d.ts +6 -0
- package/dist/src/integration-tests/tools-governance.integration.test.js +98 -0
- package/dist/src/integration-tests/tools-governance.integration.test.js.map +1 -0
- package/dist/src/nonInteractiveCli.js +36 -11
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/providers/logging/git-stats.test.js +11 -1
- package/dist/src/providers/logging/git-stats.test.js.map +1 -1
- package/dist/src/providers/logging/multi-provider-logging.integration.test.js +1 -2
- package/dist/src/providers/logging/multi-provider-logging.integration.test.js.map +1 -1
- package/dist/src/providers/logging/performance.test.js +1 -1
- package/dist/src/providers/logging/performance.test.js.map +1 -1
- package/dist/src/providers/oauth-provider-registration.d.ts +2 -2
- package/dist/src/providers/oauth-provider-registration.js +25 -9
- package/dist/src/providers/oauth-provider-registration.js.map +1 -1
- package/dist/src/providers/provider-gemini-switching.test.js +67 -89
- package/dist/src/providers/provider-gemini-switching.test.js.map +1 -1
- package/dist/src/providers/provider-switching.integration.test.js +42 -98
- package/dist/src/providers/provider-switching.integration.test.js.map +1 -1
- package/dist/src/providers/providerConfigUtils.d.ts +12 -7
- package/dist/src/providers/providerConfigUtils.js +31 -99
- package/dist/src/providers/providerConfigUtils.js.map +1 -1
- package/dist/src/providers/providerManagerInstance.d.ts +17 -1
- package/dist/src/providers/providerManagerInstance.js +157 -175
- package/dist/src/providers/providerManagerInstance.js.map +1 -1
- package/dist/src/providers/providerManagerInstance.oauthRegistration.test.js +19 -15
- package/dist/src/providers/providerManagerInstance.oauthRegistration.test.js.map +1 -1
- package/dist/src/providers/providerManagerInstance.test.js +2 -5
- package/dist/src/providers/providerManagerInstance.test.js.map +1 -1
- package/dist/src/runtime/__tests__/profileApplication.test.d.ts +5 -0
- package/dist/src/runtime/__tests__/profileApplication.test.js +232 -0
- package/dist/src/runtime/__tests__/profileApplication.test.js.map +1 -0
- package/dist/src/runtime/__tests__/runtimeIsolation.test.d.ts +5 -0
- package/dist/src/runtime/__tests__/runtimeIsolation.test.js +376 -0
- package/dist/src/runtime/__tests__/runtimeIsolation.test.js.map +1 -0
- package/dist/src/runtime/agentRuntimeAdapter.d.ts +249 -0
- package/dist/src/runtime/agentRuntimeAdapter.js +506 -0
- package/dist/src/runtime/agentRuntimeAdapter.js.map +1 -0
- package/dist/src/runtime/agentRuntimeAdapter.spec.d.ts +6 -0
- package/dist/src/runtime/agentRuntimeAdapter.spec.js +866 -0
- package/dist/src/runtime/agentRuntimeAdapter.spec.js.map +1 -0
- package/dist/src/runtime/messages.d.ts +28 -0
- package/dist/src/runtime/messages.js +64 -0
- package/dist/src/runtime/messages.js.map +1 -0
- package/dist/src/runtime/profileApplication.d.ts +33 -0
- package/dist/src/runtime/profileApplication.js +191 -0
- package/dist/src/runtime/profileApplication.js.map +1 -0
- package/dist/src/runtime/providerConfigUtils.test.d.ts +1 -0
- package/dist/src/runtime/providerConfigUtils.test.js +68 -0
- package/dist/src/runtime/providerConfigUtils.test.js.map +1 -0
- package/dist/src/runtime/runtimeContextFactory.d.ts +102 -0
- package/dist/src/runtime/runtimeContextFactory.js +190 -0
- package/dist/src/runtime/runtimeContextFactory.js.map +1 -0
- package/dist/src/runtime/runtimeSettings.d.ts +217 -0
- package/dist/src/runtime/runtimeSettings.js +1094 -0
- package/dist/src/runtime/runtimeSettings.js.map +1 -0
- package/dist/src/runtime/runtimeSettings.test.d.ts +1 -0
- package/dist/src/runtime/runtimeSettings.test.js +320 -0
- package/dist/src/runtime/runtimeSettings.test.js.map +1 -0
- package/dist/src/services/BuiltinCommandLoader.d.ts +13 -4
- package/dist/src/services/BuiltinCommandLoader.js +17 -4
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/services/McpPromptLoader.js +34 -13
- package/dist/src/services/McpPromptLoader.js.map +1 -1
- package/dist/src/test-utils/mockCommandContext.js +5 -2
- package/dist/src/test-utils/mockCommandContext.js.map +1 -1
- package/dist/src/ui/App.js +29 -49
- package/dist/src/ui/App.js.map +1 -1
- package/dist/src/ui/commands/authCommand.js +7 -9
- package/dist/src/ui/commands/authCommand.js.map +1 -1
- package/dist/src/ui/commands/baseurlCommand.js +8 -44
- package/dist/src/ui/commands/baseurlCommand.js.map +1 -1
- package/dist/src/ui/commands/chatCommand.js +28 -12
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/diagnosticsCommand.d.ts +0 -3
- package/dist/src/ui/commands/diagnosticsCommand.js +40 -191
- package/dist/src/ui/commands/diagnosticsCommand.js.map +1 -1
- package/dist/src/ui/commands/keyCommand.js +9 -58
- package/dist/src/ui/commands/keyCommand.js.map +1 -1
- package/dist/src/ui/commands/keyCommand.test.js +48 -102
- package/dist/src/ui/commands/keyCommand.test.js.map +1 -1
- package/dist/src/ui/commands/keyfileCommand.js +42 -93
- package/dist/src/ui/commands/keyfileCommand.js.map +1 -1
- package/dist/src/ui/commands/logoutCommand.js +2 -2
- package/dist/src/ui/commands/logoutCommand.js.map +1 -1
- package/dist/src/ui/commands/mcpCommand.js +29 -7
- package/dist/src/ui/commands/mcpCommand.js.map +1 -1
- package/dist/src/ui/commands/modelCommand.js +8 -59
- package/dist/src/ui/commands/modelCommand.js.map +1 -1
- package/dist/src/ui/commands/profileCommand.js +151 -267
- package/dist/src/ui/commands/profileCommand.js.map +1 -1
- package/dist/src/ui/commands/profileCommand.test.js +88 -344
- package/dist/src/ui/commands/profileCommand.test.js.map +1 -1
- package/dist/src/ui/commands/providerCommand.js +9 -3
- package/dist/src/ui/commands/providerCommand.js.map +1 -1
- package/dist/src/ui/commands/restoreCommand.js +38 -18
- package/dist/src/ui/commands/restoreCommand.js.map +1 -1
- package/dist/src/ui/commands/schema/argumentResolver.test.d.ts +6 -0
- package/dist/src/ui/commands/schema/argumentResolver.test.js +619 -0
- package/dist/src/ui/commands/schema/argumentResolver.test.js.map +1 -0
- package/dist/src/ui/commands/schema/index.d.ts +15 -0
- package/dist/src/ui/commands/schema/index.js +320 -0
- package/dist/src/ui/commands/schema/index.js.map +1 -0
- package/dist/src/ui/commands/schema/types.d.ts +61 -0
- package/dist/src/ui/commands/schema/types.js +12 -0
- package/dist/src/ui/commands/schema/types.js.map +1 -0
- package/dist/src/ui/commands/setCommand.js +641 -325
- package/dist/src/ui/commands/setCommand.js.map +1 -1
- package/dist/src/ui/commands/setCommand.test.js +92 -388
- package/dist/src/ui/commands/setCommand.test.js.map +1 -1
- package/dist/src/ui/commands/statusCommand.js +2 -2
- package/dist/src/ui/commands/statusCommand.js.map +1 -1
- package/dist/src/ui/commands/subagentCommand.d.ts +16 -0
- package/dist/src/ui/commands/subagentCommand.js +656 -0
- package/dist/src/ui/commands/subagentCommand.js.map +1 -0
- package/dist/src/ui/commands/test/setCommand.mutation.test.d.ts +6 -0
- package/dist/src/ui/commands/test/setCommand.mutation.test.js +132 -0
- package/dist/src/ui/commands/test/setCommand.mutation.test.js.map +1 -0
- package/dist/src/ui/commands/test/setCommand.phase09.test.d.ts +6 -0
- package/dist/src/ui/commands/test/setCommand.phase09.test.js +222 -0
- package/dist/src/ui/commands/test/setCommand.phase09.test.js.map +1 -0
- package/dist/src/ui/commands/test/subagentCommand.schema.test.d.ts +6 -0
- package/dist/src/ui/commands/test/subagentCommand.schema.test.js +125 -0
- package/dist/src/ui/commands/test/subagentCommand.schema.test.js.map +1 -0
- package/dist/src/ui/commands/test/subagentCommand.test.d.ts +1 -0
- package/dist/src/ui/commands/test/subagentCommand.test.js +589 -0
- package/dist/src/ui/commands/test/subagentCommand.test.js.map +1 -0
- package/dist/src/ui/commands/toolformatCommand.js +25 -98
- package/dist/src/ui/commands/toolformatCommand.js.map +1 -1
- package/dist/src/ui/commands/toolformatCommand.test.js +56 -102
- package/dist/src/ui/commands/toolformatCommand.test.js.map +1 -1
- package/dist/src/ui/commands/toolsCommand.js +187 -31
- package/dist/src/ui/commands/toolsCommand.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +11 -2
- package/dist/src/ui/commands/types.js.map +1 -1
- package/dist/src/ui/components/AuthDialog.js +16 -55
- package/dist/src/ui/components/AuthDialog.js.map +1 -1
- package/dist/src/ui/components/Footer.js +4 -5
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.js +1 -1
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/StatsDisplay.js +6 -11
- package/dist/src/ui/components/StatsDisplay.js.map +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +13 -1
- package/dist/src/ui/components/SuggestionsDisplay.js +22 -3
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.js +14 -14
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +1 -0
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
- package/dist/src/ui/containers/SessionController.js +61 -117
- package/dist/src/ui/containers/SessionController.js.map +1 -1
- package/dist/src/ui/contexts/RuntimeContext.d.ts +61 -0
- package/dist/src/ui/contexts/RuntimeContext.js +118 -0
- package/dist/src/ui/contexts/RuntimeContext.js.map +1 -0
- package/dist/src/ui/contexts/TodoProvider.d.ts +1 -0
- package/dist/src/ui/contexts/TodoProvider.js +10 -8
- package/dist/src/ui/contexts/TodoProvider.js.map +1 -1
- package/dist/src/ui/contexts/ToolCallProvider.d.ts +1 -0
- package/dist/src/ui/contexts/ToolCallProvider.js +10 -9
- package/dist/src/ui/contexts/ToolCallProvider.js.map +1 -1
- package/dist/src/ui/hooks/__tests__/useSlashCompletion.set.phase09.test.d.ts +6 -0
- package/dist/src/ui/hooks/__tests__/useSlashCompletion.set.phase09.test.js +39 -0
- package/dist/src/ui/hooks/__tests__/useSlashCompletion.set.phase09.test.js.map +1 -0
- package/dist/src/ui/hooks/atCommandProcessor.js +11 -3
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js +3 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.js +4 -1
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +1 -0
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.js +27 -1
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/useAuthCommand.js +11 -3
- package/dist/src/ui/hooks/useAuthCommand.js.map +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +1 -0
- package/dist/src/ui/hooks/useCommandCompletion.js +2 -0
- package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.js +37 -11
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/useGeminiStream.subagent.spec.d.ts +6 -0
- package/dist/src/ui/hooks/useGeminiStream.subagent.spec.js +232 -0
- package/dist/src/ui/hooks/useGeminiStream.subagent.spec.js.map +1 -0
- package/dist/src/ui/hooks/useLoadProfileDialog.d.ts +1 -1
- package/dist/src/ui/hooks/useLoadProfileDialog.js +18 -57
- package/dist/src/ui/hooks/useLoadProfileDialog.js.map +1 -1
- package/dist/src/ui/hooks/useOpenAIProviderInfo.d.ts +1 -1
- package/dist/src/ui/hooks/useOpenAIProviderInfo.js +12 -7
- package/dist/src/ui/hooks/useOpenAIProviderInfo.js.map +1 -1
- package/dist/src/ui/hooks/useProviderDialog.d.ts +1 -1
- package/dist/src/ui/hooks/useProviderDialog.js +17 -90
- package/dist/src/ui/hooks/useProviderDialog.js.map +1 -1
- package/dist/src/ui/hooks/useProviderModelDialog.d.ts +2 -2
- package/dist/src/ui/hooks/useProviderModelDialog.js +11 -12
- package/dist/src/ui/hooks/useProviderModelDialog.js.map +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +3 -1
- package/dist/src/ui/hooks/useReactToolScheduler.js +144 -34
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +32 -0
- package/dist/src/ui/hooks/useSlashCompletion.js +154 -77
- package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.js +39 -14
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +108 -79
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/types.d.ts +1 -0
- package/dist/src/ui/types.js.map +1 -1
- package/dist/src/validateNonInterActiveAuth.js +4 -2
- package/dist/src/validateNonInterActiveAuth.js.map +1 -1
- package/dist/src/zed-integration/schema.d.ts +30 -30
- package/dist/src/zed-integration/zedIntegration.js +112 -39
- package/dist/src/zed-integration/zedIntegration.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +5 -3
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateNonInterActiveAuth.js","sourceRoot":"","sources":["../../src/validateNonInterActiveAuth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAU,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAkB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,SAAS,kBAAkB;IACzB,8EAA8E;IAC9E,0FAA0F;IAC1F,gFAAgF;IAChF,IACE,OAAO,CAAC,GAAG,CAAC,cAAc;QAC1B,OAAO,CAAC,GAAG,CAAC,iBAAiB;QAC7B,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,MAAM;QAC3C,OAAO,CAAC,GAAG,CAAC,yBAAyB,KAAK,MAAM;QAChD,OAAO,CAAC,GAAG,CAAC,cAAc;QAC1B,OAAO,CAAC,GAAG,CAAC,cAAc,EAC1B,CAAC;QACD,OAAO,QAAQ,CAAC,YAAY,CAAC;IAC/B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,kBAAwC,EACxC,eAAoC,EACpC,oBAA4B,EAC5B,QAAyB;IAEzB,6DAA6D;IAC7D,MAAM,eAAe,GAAG,oBAAoB,CAAC,kBAAkB,EAAE,EAAE,CAAC;IACpE,MAAM,cAAc,GAAG,oBAAoB,CAAC,WAAW,EAAE,EAAE,CAAC;IAE5D,IAAI,cAAc,IAAI,eAAe,EAAE,iBAAiB,EAAE,EAAE,EAAE,CAAC;QAC7D,gGAAgG;QAChG,MAAM,oBAAoB,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAE9D,kDAAkD;QAClD,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAiC,CAAC;YAC1D,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,CAAuB,CAAC;YACnE,MAAM,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,CAE9C,CAAC;YAEd,kDAAkD;YAClD,IAAI,oBAAoB,KAAK,SAAS,EAAE,CAAC;gBACvC,oBAAoB,CAAC,mBAAmB,CACtC,uBAAuB,EACvB,oBAAoB,CACrB,CAAC;YACJ,CAAC;YACD,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;gBAC/B,oBAAoB,CAAC,mBAAmB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;YAC1E,CAAC;QACH,CAAC;QAED,qFAAqF;QACrF,MAAM,mBAAmB,GAAG,eAAe,CAAC,sBAAsB,EAAE,EAAE,CAAC;QACvE,IACE,mBAAmB;YACnB,mBAAmB,CAAC,IAAI,KAAK,QAAQ;YACrC,mBAAmB,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"validateNonInterActiveAuth.js","sourceRoot":"","sources":["../../src/validateNonInterActiveAuth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAU,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAkB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,SAAS,kBAAkB;IACzB,8EAA8E;IAC9E,0FAA0F;IAC1F,gFAAgF;IAChF,IACE,OAAO,CAAC,GAAG,CAAC,cAAc;QAC1B,OAAO,CAAC,GAAG,CAAC,iBAAiB;QAC7B,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,MAAM;QAC3C,OAAO,CAAC,GAAG,CAAC,yBAAyB,KAAK,MAAM;QAChD,OAAO,CAAC,GAAG,CAAC,cAAc;QAC1B,OAAO,CAAC,GAAG,CAAC,cAAc,EAC1B,CAAC;QACD,OAAO,QAAQ,CAAC,YAAY,CAAC;IAC/B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,kBAAwC,EACxC,eAAoC,EACpC,oBAA4B,EAC5B,QAAyB;IAEzB,6DAA6D;IAC7D,MAAM,eAAe,GAAG,oBAAoB,CAAC,kBAAkB,EAAE,EAAE,CAAC;IACpE,MAAM,cAAc,GAAG,oBAAoB,CAAC,WAAW,EAAE,EAAE,CAAC;IAE5D,IAAI,cAAc,IAAI,eAAe,EAAE,iBAAiB,EAAE,EAAE,EAAE,CAAC;QAC7D,gGAAgG;QAChG,MAAM,oBAAoB,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAE9D,kDAAkD;QAClD,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAiC,CAAC;YAC1D,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,CAAuB,CAAC;YACnE,MAAM,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,CAE9C,CAAC;YAEd,kDAAkD;YAClD,IAAI,oBAAoB,KAAK,SAAS,EAAE,CAAC;gBACvC,oBAAoB,CAAC,mBAAmB,CACtC,uBAAuB,EACvB,oBAAoB,CACrB,CAAC;YACJ,CAAC;YACD,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;gBAC/B,oBAAoB,CAAC,mBAAmB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;YAC1E,CAAC;QACH,CAAC;QAED,qFAAqF;QACrF,MAAM,mBAAmB,GAAG,eAAe,CAAC,sBAAsB,EAAE,EAAE,CAAC;QACvE,IACE,mBAAmB;YACnB,mBAAmB,CAAC,IAAI,KAAK,QAAQ;YACrC,WAAW,IAAI,mBAAmB;YAClC,OAAO,mBAAmB,CAAC,SAAS,KAAK,UAAU,EACnD,CAAC;YACD,mBAAmB,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,MAAM,iBAAiB,GAAG,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;IAErE,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,OAAO,CAAC,KAAK,CACX,qCAAqC,kBAAkB,2LAA2L,CACnP,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,MAAM,GAAG,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;QAClD,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YAChB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;IAED,MAAM,oBAAoB,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAE1D,8DAA8D;IAC9D,oDAAoD;IAEpD,qFAAqF;IACrF,IAAI,eAAe,EAAE,CAAC;QACpB,MAAM,mBAAmB,GAAG,eAAe,CAAC,sBAAsB,EAAE,EAAE,CAAC;QACvE,IACE,mBAAmB;YACnB,mBAAmB,CAAC,IAAI,KAAK,QAAQ;YACrC,WAAW,IAAI,mBAAmB;YAClC,OAAO,mBAAmB,CAAC,SAAS,KAAK,UAAU,EACnD,CAAC;YACD,mBAAmB,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
|
|
@@ -1583,7 +1583,7 @@ export declare const toolCallSchema: z.ZodObject<{
|
|
|
1583
1583
|
}, "strip", z.ZodTypeAny, {
|
|
1584
1584
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
1585
1585
|
title: string;
|
|
1586
|
-
kind: "search" | "delete" | "
|
|
1586
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
1587
1587
|
toolCallId: string;
|
|
1588
1588
|
content?: ({
|
|
1589
1589
|
content: {
|
|
@@ -1657,7 +1657,7 @@ export declare const toolCallSchema: z.ZodObject<{
|
|
|
1657
1657
|
}, {
|
|
1658
1658
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
1659
1659
|
title: string;
|
|
1660
|
-
kind: "search" | "delete" | "
|
|
1660
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
1661
1661
|
toolCallId: string;
|
|
1662
1662
|
content?: ({
|
|
1663
1663
|
content: {
|
|
@@ -3488,7 +3488,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
3488
3488
|
}, "strip", z.ZodTypeAny, {
|
|
3489
3489
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
3490
3490
|
title: string;
|
|
3491
|
-
kind: "search" | "delete" | "
|
|
3491
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
3492
3492
|
toolCallId: string;
|
|
3493
3493
|
sessionUpdate: "tool_call";
|
|
3494
3494
|
content?: ({
|
|
@@ -3563,7 +3563,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
3563
3563
|
}, {
|
|
3564
3564
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
3565
3565
|
title: string;
|
|
3566
|
-
kind: "search" | "delete" | "
|
|
3566
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
3567
3567
|
toolCallId: string;
|
|
3568
3568
|
sessionUpdate: "tool_call";
|
|
3569
3569
|
content?: ({
|
|
@@ -4077,7 +4077,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4077
4077
|
})[] | null | undefined;
|
|
4078
4078
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
4079
4079
|
title?: string | null | undefined;
|
|
4080
|
-
kind?: "search" | "delete" | "
|
|
4080
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
4081
4081
|
locations?: {
|
|
4082
4082
|
path: string;
|
|
4083
4083
|
line?: number | null | undefined;
|
|
@@ -4152,7 +4152,7 @@ export declare const sessionUpdateSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4152
4152
|
})[] | null | undefined;
|
|
4153
4153
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
4154
4154
|
title?: string | null | undefined;
|
|
4155
|
-
kind?: "search" | "delete" | "
|
|
4155
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
4156
4156
|
locations?: {
|
|
4157
4157
|
path: string;
|
|
4158
4158
|
line?: number | null | undefined;
|
|
@@ -4666,7 +4666,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
|
|
|
4666
4666
|
}, "strip", z.ZodTypeAny, {
|
|
4667
4667
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
4668
4668
|
title: string;
|
|
4669
|
-
kind: "search" | "delete" | "
|
|
4669
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
4670
4670
|
toolCallId: string;
|
|
4671
4671
|
content?: ({
|
|
4672
4672
|
content: {
|
|
@@ -4740,7 +4740,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
|
|
|
4740
4740
|
}, {
|
|
4741
4741
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
4742
4742
|
title: string;
|
|
4743
|
-
kind: "search" | "delete" | "
|
|
4743
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
4744
4744
|
toolCallId: string;
|
|
4745
4745
|
content?: ({
|
|
4746
4746
|
content: {
|
|
@@ -4822,7 +4822,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
|
|
|
4822
4822
|
toolCall: {
|
|
4823
4823
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
4824
4824
|
title: string;
|
|
4825
|
-
kind: "search" | "delete" | "
|
|
4825
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
4826
4826
|
toolCallId: string;
|
|
4827
4827
|
content?: ({
|
|
4828
4828
|
content: {
|
|
@@ -4904,7 +4904,7 @@ export declare const requestPermissionRequestSchema: z.ZodObject<{
|
|
|
4904
4904
|
toolCall: {
|
|
4905
4905
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
4906
4906
|
title: string;
|
|
4907
|
-
kind: "search" | "delete" | "
|
|
4907
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
4908
4908
|
toolCallId: string;
|
|
4909
4909
|
content?: ({
|
|
4910
4910
|
content: {
|
|
@@ -6416,7 +6416,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
|
6416
6416
|
}, "strip", z.ZodTypeAny, {
|
|
6417
6417
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
6418
6418
|
title: string;
|
|
6419
|
-
kind: "search" | "delete" | "
|
|
6419
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
6420
6420
|
toolCallId: string;
|
|
6421
6421
|
sessionUpdate: "tool_call";
|
|
6422
6422
|
content?: ({
|
|
@@ -6491,7 +6491,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
|
6491
6491
|
}, {
|
|
6492
6492
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
6493
6493
|
title: string;
|
|
6494
|
-
kind: "search" | "delete" | "
|
|
6494
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
6495
6495
|
toolCallId: string;
|
|
6496
6496
|
sessionUpdate: "tool_call";
|
|
6497
6497
|
content?: ({
|
|
@@ -7005,7 +7005,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
|
7005
7005
|
})[] | null | undefined;
|
|
7006
7006
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
7007
7007
|
title?: string | null | undefined;
|
|
7008
|
-
kind?: "search" | "delete" | "
|
|
7008
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
7009
7009
|
locations?: {
|
|
7010
7010
|
path: string;
|
|
7011
7011
|
line?: number | null | undefined;
|
|
@@ -7080,7 +7080,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
|
7080
7080
|
})[] | null | undefined;
|
|
7081
7081
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
7082
7082
|
title?: string | null | undefined;
|
|
7083
|
-
kind?: "search" | "delete" | "
|
|
7083
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
7084
7084
|
locations?: {
|
|
7085
7085
|
path: string;
|
|
7086
7086
|
line?: number | null | undefined;
|
|
@@ -7295,7 +7295,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
|
7295
7295
|
} | {
|
|
7296
7296
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
7297
7297
|
title: string;
|
|
7298
|
-
kind: "search" | "delete" | "
|
|
7298
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
7299
7299
|
toolCallId: string;
|
|
7300
7300
|
sessionUpdate: "tool_call";
|
|
7301
7301
|
content?: ({
|
|
@@ -7436,7 +7436,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
|
7436
7436
|
})[] | null | undefined;
|
|
7437
7437
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
7438
7438
|
title?: string | null | undefined;
|
|
7439
|
-
kind?: "search" | "delete" | "
|
|
7439
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
7440
7440
|
locations?: {
|
|
7441
7441
|
path: string;
|
|
7442
7442
|
line?: number | null | undefined;
|
|
@@ -7629,7 +7629,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
|
7629
7629
|
} | {
|
|
7630
7630
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
7631
7631
|
title: string;
|
|
7632
|
-
kind: "search" | "delete" | "
|
|
7632
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
7633
7633
|
toolCallId: string;
|
|
7634
7634
|
sessionUpdate: "tool_call";
|
|
7635
7635
|
content?: ({
|
|
@@ -7770,7 +7770,7 @@ export declare const sessionNotificationSchema: z.ZodObject<{
|
|
|
7770
7770
|
})[] | null | undefined;
|
|
7771
7771
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
7772
7772
|
title?: string | null | undefined;
|
|
7773
|
-
kind?: "search" | "delete" | "
|
|
7773
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
7774
7774
|
locations?: {
|
|
7775
7775
|
path: string;
|
|
7776
7776
|
line?: number | null | undefined;
|
|
@@ -8202,7 +8202,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8202
8202
|
}, "strip", z.ZodTypeAny, {
|
|
8203
8203
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
8204
8204
|
title: string;
|
|
8205
|
-
kind: "search" | "delete" | "
|
|
8205
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
8206
8206
|
toolCallId: string;
|
|
8207
8207
|
content?: ({
|
|
8208
8208
|
content: {
|
|
@@ -8276,7 +8276,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8276
8276
|
}, {
|
|
8277
8277
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
8278
8278
|
title: string;
|
|
8279
|
-
kind: "search" | "delete" | "
|
|
8279
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
8280
8280
|
toolCallId: string;
|
|
8281
8281
|
content?: ({
|
|
8282
8282
|
content: {
|
|
@@ -8358,7 +8358,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8358
8358
|
toolCall: {
|
|
8359
8359
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
8360
8360
|
title: string;
|
|
8361
|
-
kind: "search" | "delete" | "
|
|
8361
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
8362
8362
|
toolCallId: string;
|
|
8363
8363
|
content?: ({
|
|
8364
8364
|
content: {
|
|
@@ -8440,7 +8440,7 @@ export declare const clientRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8440
8440
|
toolCall: {
|
|
8441
8441
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
8442
8442
|
title: string;
|
|
8443
|
-
kind: "search" | "delete" | "
|
|
8443
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
8444
8444
|
toolCallId: string;
|
|
8445
8445
|
content?: ({
|
|
8446
8446
|
content: {
|
|
@@ -10411,7 +10411,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
|
10411
10411
|
}, "strip", z.ZodTypeAny, {
|
|
10412
10412
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
10413
10413
|
title: string;
|
|
10414
|
-
kind: "search" | "delete" | "
|
|
10414
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
10415
10415
|
toolCallId: string;
|
|
10416
10416
|
sessionUpdate: "tool_call";
|
|
10417
10417
|
content?: ({
|
|
@@ -10486,7 +10486,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
|
10486
10486
|
}, {
|
|
10487
10487
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
10488
10488
|
title: string;
|
|
10489
|
-
kind: "search" | "delete" | "
|
|
10489
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
10490
10490
|
toolCallId: string;
|
|
10491
10491
|
sessionUpdate: "tool_call";
|
|
10492
10492
|
content?: ({
|
|
@@ -11000,7 +11000,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
|
11000
11000
|
})[] | null | undefined;
|
|
11001
11001
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
11002
11002
|
title?: string | null | undefined;
|
|
11003
|
-
kind?: "search" | "delete" | "
|
|
11003
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
11004
11004
|
locations?: {
|
|
11005
11005
|
path: string;
|
|
11006
11006
|
line?: number | null | undefined;
|
|
@@ -11075,7 +11075,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
|
11075
11075
|
})[] | null | undefined;
|
|
11076
11076
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
11077
11077
|
title?: string | null | undefined;
|
|
11078
|
-
kind?: "search" | "delete" | "
|
|
11078
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
11079
11079
|
locations?: {
|
|
11080
11080
|
path: string;
|
|
11081
11081
|
line?: number | null | undefined;
|
|
@@ -11290,7 +11290,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
|
11290
11290
|
} | {
|
|
11291
11291
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
11292
11292
|
title: string;
|
|
11293
|
-
kind: "search" | "delete" | "
|
|
11293
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
11294
11294
|
toolCallId: string;
|
|
11295
11295
|
sessionUpdate: "tool_call";
|
|
11296
11296
|
content?: ({
|
|
@@ -11431,7 +11431,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
|
11431
11431
|
})[] | null | undefined;
|
|
11432
11432
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
11433
11433
|
title?: string | null | undefined;
|
|
11434
|
-
kind?: "search" | "delete" | "
|
|
11434
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
11435
11435
|
locations?: {
|
|
11436
11436
|
path: string;
|
|
11437
11437
|
line?: number | null | undefined;
|
|
@@ -11624,7 +11624,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
|
11624
11624
|
} | {
|
|
11625
11625
|
status: "completed" | "failed" | "in_progress" | "pending";
|
|
11626
11626
|
title: string;
|
|
11627
|
-
kind: "search" | "delete" | "
|
|
11627
|
+
kind: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think";
|
|
11628
11628
|
toolCallId: string;
|
|
11629
11629
|
sessionUpdate: "tool_call";
|
|
11630
11630
|
content?: ({
|
|
@@ -11765,7 +11765,7 @@ export declare const agentNotificationSchema: z.ZodObject<{
|
|
|
11765
11765
|
})[] | null | undefined;
|
|
11766
11766
|
status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
|
|
11767
11767
|
title?: string | null | undefined;
|
|
11768
|
-
kind?: "search" | "delete" | "
|
|
11768
|
+
kind?: "search" | "delete" | "edit" | "move" | "other" | "fetch" | "read" | "execute" | "think" | null | undefined;
|
|
11769
11769
|
locations?: {
|
|
11770
11770
|
path: string;
|
|
11771
11771
|
line?: number | null | undefined;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Vybestack 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, getResponseTextFromParts, EmojiFilter, StreamEventType, todoEvents, } from '@vybestack/llxprt-code-core';
|
|
6
|
+
import { AuthType, logToolCall, convertToFunctionResponse, ToolConfirmationOutcome, clearCachedCredentialFile, isNodeError, getErrorMessage, isWithinRoot, getErrorStatus, DiscoveredMCPTool, DebugLogger, getFunctionCalls, getResponseTextFromParts, EmojiFilter, StreamEventType, todoEvents, DEFAULT_AGENT_ID, } 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';
|
|
@@ -13,12 +13,24 @@ import * as path from 'path';
|
|
|
13
13
|
import { z } from 'zod';
|
|
14
14
|
import os from 'os';
|
|
15
15
|
import { randomUUID } from 'crypto';
|
|
16
|
+
import { setProviderApiKey, setProviderBaseUrl, } from '../providers/providerConfigUtils.js';
|
|
17
|
+
import { setCliRuntimeContext, switchActiveProvider, setActiveModelParam, clearActiveModelParam, getActiveModelParams, } from '../runtime/runtimeSettings.js';
|
|
16
18
|
export async function runZedIntegration(config, settings) {
|
|
17
19
|
const logger = new DebugLogger('llxprt:zed-integration');
|
|
18
20
|
logger.debug(() => 'Starting Zed integration');
|
|
19
21
|
const stdout = Writable.toWeb(process.stdout);
|
|
20
22
|
const stdin = Readable.toWeb(process.stdin);
|
|
21
23
|
logger.debug(() => 'Streams created');
|
|
24
|
+
/**
|
|
25
|
+
* @plan:PLAN-20250218-STATELESSPROVIDER.P07
|
|
26
|
+
* @requirement:REQ-SP-005
|
|
27
|
+
* Align Zed integration with cli-runtime pseudocode by registering the
|
|
28
|
+
* current Config/SettingsService pair before spawning session handlers.
|
|
29
|
+
* @pseudocode:cli-runtime.md lines 2-11
|
|
30
|
+
*/
|
|
31
|
+
setCliRuntimeContext(config.getSettingsService(), config, {
|
|
32
|
+
metadata: { source: 'zed-integration', stage: 'bootstrap' },
|
|
33
|
+
});
|
|
22
34
|
try {
|
|
23
35
|
new acp.AgentSideConnection((client) => {
|
|
24
36
|
logger.debug(() => 'Creating GeminiAgent');
|
|
@@ -49,6 +61,40 @@ class GeminiAgent {
|
|
|
49
61
|
this.client = client;
|
|
50
62
|
this.logger = new DebugLogger('llxprt:zed-integration');
|
|
51
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* @plan:PLAN-20250218-STATELESSPROVIDER.P07
|
|
66
|
+
* @requirement:REQ-SP-005
|
|
67
|
+
* Reapply profile-derived credentials and base URLs through runtime helpers
|
|
68
|
+
* to keep provider state in sync with the CLI context.
|
|
69
|
+
* @pseudocode:cli-runtime.md lines 9-15
|
|
70
|
+
*/
|
|
71
|
+
async applyRuntimeProviderOverrides() {
|
|
72
|
+
const authKey = this.config.getEphemeralSetting('auth-key');
|
|
73
|
+
const authKeyfile = this.config.getEphemeralSetting('auth-keyfile');
|
|
74
|
+
const baseUrl = this.config.getEphemeralSetting('base-url');
|
|
75
|
+
if (authKey && authKey.trim() !== '') {
|
|
76
|
+
const result = await setProviderApiKey(authKey);
|
|
77
|
+
this.logger.debug(() => `[zed-integration] ${result.message}`);
|
|
78
|
+
}
|
|
79
|
+
else if (authKeyfile) {
|
|
80
|
+
try {
|
|
81
|
+
const resolvedPath = authKeyfile.replace(/^~/, os.homedir());
|
|
82
|
+
const keyFromFile = (await fs.readFile(resolvedPath, 'utf-8')).trim();
|
|
83
|
+
if (keyFromFile) {
|
|
84
|
+
const result = await setProviderApiKey(keyFromFile);
|
|
85
|
+
this.config.setEphemeralSetting('auth-keyfile', resolvedPath);
|
|
86
|
+
this.logger.debug(() => `[zed-integration] ${result.message}`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
this.logger.debug(() => `ERROR: Failed to load keyfile ${authKeyfile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (baseUrl !== undefined) {
|
|
94
|
+
const result = await setProviderBaseUrl(baseUrl);
|
|
95
|
+
this.logger.debug(() => `[zed-integration] ${result.message}`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
52
98
|
async initialize(args) {
|
|
53
99
|
this.clientCapabilities = args.clientCapabilities;
|
|
54
100
|
const authMethods = [
|
|
@@ -104,61 +150,84 @@ class GeminiAgent {
|
|
|
104
150
|
if (!geminiClient || !hasContentGeneratorConfig) {
|
|
105
151
|
this.logger.debug(() => 'GeminiClient not available - attempting auto-authentication');
|
|
106
152
|
// Auto-authenticate based on available configuration
|
|
107
|
-
|
|
153
|
+
let providerManager = sessionConfig.getProviderManager();
|
|
108
154
|
// Debug provider state
|
|
109
155
|
if (providerManager) {
|
|
110
|
-
this.logger.debug(() => `ProviderManager exists: ${providerManager
|
|
111
|
-
this.logger.debug(() => `Active provider name: ${providerManager
|
|
156
|
+
this.logger.debug(() => `ProviderManager exists: ${providerManager?.hasActiveProvider?.() ? 'has active provider' : 'no active provider'}`);
|
|
157
|
+
this.logger.debug(() => `Active provider name: ${providerManager?.getActiveProviderName?.() || 'none'}`);
|
|
112
158
|
}
|
|
113
159
|
else {
|
|
114
160
|
this.logger.debug(() => 'No ProviderManager available');
|
|
115
161
|
}
|
|
116
162
|
// Check for provider from config (loaded from profile or CLI)
|
|
117
163
|
const configProvider = sessionConfig.getProvider();
|
|
118
|
-
|
|
164
|
+
let hasActiveProvider = providerManager?.hasActiveProvider?.() ?? false;
|
|
165
|
+
if (configProvider) {
|
|
119
166
|
this.logger.debug(() => `Config has provider: ${configProvider}`);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
167
|
+
try {
|
|
168
|
+
/**
|
|
169
|
+
* @plan:PLAN-20250218-STATELESSPROVIDER.P07
|
|
170
|
+
* @requirement:REQ-SP-005
|
|
171
|
+
* Switch active provider via runtime helper to keep Config and
|
|
172
|
+
* SettingsService aligned with stateless semantics.
|
|
173
|
+
* @pseudocode:cli-runtime.md lines 9-12
|
|
174
|
+
*/
|
|
175
|
+
const result = await switchActiveProvider(configProvider);
|
|
176
|
+
providerManager = sessionConfig.getProviderManager();
|
|
177
|
+
hasActiveProvider =
|
|
178
|
+
providerManager?.hasActiveProvider?.() ?? result.changed;
|
|
179
|
+
if (result.infoMessages.length > 0) {
|
|
180
|
+
for (const info of result.infoMessages) {
|
|
181
|
+
this.logger.debug(() => `[zed-integration] ${info}`);
|
|
134
182
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
catch (error) {
|
|
186
|
+
this.logger.debug(() => `ERROR: Failed to activate provider ${configProvider}: ${error instanceof Error ? error.message : String(error)}`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
if (!hasActiveProvider && providerManager?.hasActiveProvider?.()) {
|
|
190
|
+
hasActiveProvider = true;
|
|
191
|
+
}
|
|
192
|
+
if (hasActiveProvider) {
|
|
193
|
+
try {
|
|
194
|
+
await this.applyRuntimeProviderOverrides();
|
|
195
|
+
}
|
|
196
|
+
catch (error) {
|
|
197
|
+
this.logger.debug(() => `ERROR: Failed to apply runtime provider overrides: ${error instanceof Error ? error.message : String(error)}`);
|
|
198
|
+
}
|
|
199
|
+
const activeProvider = providerManager?.getActiveProvider();
|
|
200
|
+
if (activeProvider) {
|
|
201
|
+
const configWithProfile = sessionConfig;
|
|
202
|
+
if (configWithProfile._profileModelParams &&
|
|
203
|
+
Object.keys(configWithProfile._profileModelParams).length > 0) {
|
|
204
|
+
this.logger.debug(() => 'Setting model params from profile');
|
|
205
|
+
const profileParams = configWithProfile._profileModelParams;
|
|
206
|
+
const existingParams = getActiveModelParams();
|
|
207
|
+
for (const [key, value] of Object.entries(profileParams)) {
|
|
208
|
+
setActiveModelParam(key, value);
|
|
209
|
+
}
|
|
210
|
+
for (const key of Object.keys(existingParams)) {
|
|
211
|
+
if (!(key in profileParams)) {
|
|
212
|
+
clearActiveModelParam(key);
|
|
146
213
|
}
|
|
147
214
|
}
|
|
148
|
-
// Apply base URL if
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
215
|
+
// Apply base URL from ephemeral settings if available
|
|
216
|
+
const ephemeralBaseUrl = this.config.getEphemeralSetting('base-url');
|
|
217
|
+
if (ephemeralBaseUrl &&
|
|
218
|
+
ephemeralBaseUrl !== 'none' &&
|
|
219
|
+
'setBaseUrl' in activeProvider &&
|
|
220
|
+
typeof activeProvider.setBaseUrl === 'function') {
|
|
221
|
+
this.logger.debug(() => `Setting base URL: ${ephemeralBaseUrl}`);
|
|
222
|
+
activeProvider.setBaseUrl(ephemeralBaseUrl);
|
|
152
223
|
}
|
|
153
|
-
// Apply model params from profile and CLI overrides if available
|
|
154
|
-
const configWithProfile = sessionConfig;
|
|
155
224
|
const mergedModelParams = {
|
|
156
225
|
...(configWithProfile._profileModelParams || {}),
|
|
157
226
|
...(configWithProfile._cliModelParams || {}),
|
|
158
227
|
};
|
|
159
228
|
if (Object.keys(mergedModelParams).length > 0 &&
|
|
160
229
|
'setModelParams' in activeProvider &&
|
|
161
|
-
activeProvider.setModelParams) {
|
|
230
|
+
typeof activeProvider.setModelParams === 'function') {
|
|
162
231
|
this.logger.debug(() => 'Setting model params from profile/CLI overrides');
|
|
163
232
|
activeProvider.setModelParams(mergedModelParams);
|
|
164
233
|
}
|
|
@@ -178,7 +247,8 @@ class GeminiAgent {
|
|
|
178
247
|
const serverToolsProvider = providerManager.getServerToolsProvider();
|
|
179
248
|
if (serverToolsProvider &&
|
|
180
249
|
serverToolsProvider.name === 'gemini' &&
|
|
181
|
-
|
|
250
|
+
'setConfig' in serverToolsProvider &&
|
|
251
|
+
typeof serverToolsProvider.setConfig === 'function') {
|
|
182
252
|
this.logger.debug(() => 'Setting config on serverToolsProvider for web search (before auth)');
|
|
183
253
|
serverToolsProvider.setConfig(sessionConfig);
|
|
184
254
|
}
|
|
@@ -296,7 +366,8 @@ class Session {
|
|
|
296
366
|
// Subscribe to todo events for this session
|
|
297
367
|
todoEvents.onTodoUpdated((event) => {
|
|
298
368
|
// Only handle events for this session
|
|
299
|
-
|
|
369
|
+
const eventAgentId = event.agentId ?? DEFAULT_AGENT_ID;
|
|
370
|
+
if (event.sessionId === this.id && eventAgentId === DEFAULT_AGENT_ID) {
|
|
300
371
|
this.sendPlanUpdate(event.todos).catch((error) => {
|
|
301
372
|
console.error('Failed to send plan update to Zed:', error);
|
|
302
373
|
});
|
|
@@ -476,6 +547,7 @@ class Session {
|
|
|
476
547
|
tool_type: typeof tool !== 'undefined' && tool instanceof DiscoveredMCPTool
|
|
477
548
|
? 'mcp'
|
|
478
549
|
: 'native',
|
|
550
|
+
agent_id: DEFAULT_AGENT_ID,
|
|
479
551
|
});
|
|
480
552
|
return {
|
|
481
553
|
parts: [
|
|
@@ -589,6 +661,7 @@ class Session {
|
|
|
589
661
|
tool_type: typeof tool !== 'undefined' && tool instanceof DiscoveredMCPTool
|
|
590
662
|
? 'mcp'
|
|
591
663
|
: 'native',
|
|
664
|
+
agent_id: DEFAULT_AGENT_ID,
|
|
592
665
|
});
|
|
593
666
|
const functionResponseParts = convertToFunctionResponse(fc.name, callId, toolResult.llmContent);
|
|
594
667
|
const message = this.extractToolResultText(toolResult);
|