@kenkaiiii/ggcoder 5.39.2 → 5.39.4
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/app-sidecar.js +8 -1
- package/dist/app-sidecar.js.map +1 -1
- package/dist/cli/auth.d.ts.map +1 -1
- package/dist/cli/auth.js +5 -2
- package/dist/cli/auth.js.map +1 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +28 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/mcp/client.d.ts.map +1 -1
- package/dist/core/mcp/client.js +2 -10
- package/dist/core/mcp/client.js.map +1 -1
- package/dist/core/mcp/content.d.ts +19 -0
- package/dist/core/mcp/content.d.ts.map +1 -0
- package/dist/core/mcp/content.js +172 -0
- package/dist/core/mcp/content.js.map +1 -0
- package/dist/core/mcp/content.test.d.ts +2 -0
- package/dist/core/mcp/content.test.d.ts.map +1 -0
- package/dist/core/mcp/content.test.js +135 -0
- package/dist/core/mcp/content.test.js.map +1 -0
- package/dist/core/radio.d.ts.map +1 -1
- package/dist/core/radio.js +84 -0
- package/dist/core/radio.js.map +1 -1
- package/dist/core/radio.test.js +13 -0
- package/dist/core/radio.test.js.map +1 -1
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/components/Banner.d.ts.map +1 -1
- package/dist/ui/components/Banner.js +25 -16
- package/dist/ui/components/Banner.js.map +1 -1
- package/dist/ui/components/ToolExecution.js +42 -34
- package/dist/ui/components/ToolExecution.js.map +1 -1
- package/dist/ui/components/force-color.d.ts +2 -0
- package/dist/ui/components/force-color.d.ts.map +1 -0
- package/dist/ui/components/force-color.js +11 -0
- package/dist/ui/components/force-color.js.map +1 -0
- package/dist/ui/components/themed-output.test.d.ts +2 -0
- package/dist/ui/components/themed-output.test.d.ts.map +1 -0
- package/dist/ui/components/themed-output.test.js +111 -0
- package/dist/ui/components/themed-output.test.js.map +1 -0
- package/dist/ui/hooks/useAgentLoop.d.ts +3 -0
- package/dist/ui/hooks/useAgentLoop.d.ts.map +1 -1
- package/dist/ui/hooks/useAgentLoop.js +26 -1
- package/dist/ui/hooks/useAgentLoop.js.map +1 -1
- package/dist/ui/theme/dark-ansi.json +6 -0
- package/dist/ui/theme/dark-daltonized.json +6 -0
- package/dist/ui/theme/dark.json +6 -0
- package/dist/ui/theme/light-ansi.json +6 -0
- package/dist/ui/theme/light-daltonized.json +6 -0
- package/dist/ui/theme/light.json +6 -0
- package/dist/ui/theme/theme.d.ts +6 -0
- package/dist/ui/theme/theme.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/app-sidecar.js
CHANGED
|
@@ -672,7 +672,14 @@ async function main() {
|
|
|
672
672
|
// A provider can revoke an access token before its stored expiry. Refresh
|
|
673
673
|
// once on 401, matching inference auth recovery, then retry the usage call.
|
|
674
674
|
if (error instanceof SubscriptionUsageError && error.status === 401) {
|
|
675
|
-
|
|
675
|
+
// Name the rejected token. This poller runs on a timer alongside live
|
|
676
|
+
// agent runs, so an unconditional refresh here would invalidate the
|
|
677
|
+
// token those runs are holding and fail them mid-turn — a background
|
|
678
|
+
// status check must never be able to log out the foreground.
|
|
679
|
+
credentials = await auth.resolveCredentials(authKey, {
|
|
680
|
+
forceRefresh: true,
|
|
681
|
+
rejectedToken: credentials.accessToken,
|
|
682
|
+
});
|
|
676
683
|
const snapshot = {
|
|
677
684
|
...(await fetchSubscriptionUsage(provider, credentials)),
|
|
678
685
|
connected: true,
|