zevairouter 1.1.52 → 1.1.53
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/CHANGELOG.md +5 -0
- package/cli/app/.next-cli-build/BUILD_ID +1 -1
- package/cli/app/.next-cli-build/app-path-routes-manifest.json +12 -12
- package/cli/app/.next-cli-build/build-manifest.json +2 -2
- package/cli/app/.next-cli-build/prerender-manifest.json +4 -4
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/cli/app/.next-cli-build/server/app/_not-found.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +3 -3
- package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/context/test/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/callback.html +1 -1
- package/cli/app/.next-cli-build/server/app/callback.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +3 -3
- package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/cli/app/.next-cli-build/server/app/dashboard.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/index.html +1 -1
- package/cli/app/.next-cli-build/server/app/index.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/landing.html +1 -1
- package/cli/app/.next-cli-build/server/app/landing.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app/login.html +1 -1
- package/cli/app/.next-cli-build/server/app/login.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/app-paths-manifest.json +12 -12
- package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/2897.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/3999.js +6 -6
- package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/7319.js +6 -6
- package/cli/app/.next-cli-build/server/chunks/7574.js +1 -1
- package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/middleware.js +1 -1
- package/cli/app/.next-cli-build/server/pages/404.html +1 -1
- package/cli/app/.next-cli-build/server/pages/500.html +1 -1
- package/cli/app/.next-cli-build/server/preview-props.json +3 -3
- package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/cli/app/.next-cli-build/static/chunks/{620-f24624f9d928485e.js → 620-d467d4dfeb3adbed.js} +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/context/page-52f7042d637a4529.js +1 -0
- package/cli/app/CHANGELOG.md +5 -0
- package/cli/app/package.json +1 -1
- package/cli/package.json +1 -1
- package/package.json +1 -1
- package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/context/page-77addc44606df015.js +0 -1
- /package/cli/app/.next-cli-build/static/{w6rI6Eo9wZpomiTy4cHZb → pz6DBmmGl1PYVkmEGLEkt}/_buildManifest.js +0 -0
- /package/cli/app/.next-cli-build/static/{w6rI6Eo9wZpomiTy4cHZb → pz6DBmmGl1PYVkmEGLEkt}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9933],{4402:(e,t,s)=>{Promise.resolve().then(s.bind(s,33711))},33711:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>r});var l=s(95155),a=s(12115),n=s(35497);function i(e){let t=new TextEncoder().encode(e||"").length;return t<1024?`${t} B`:`${(t/1024).toFixed(1)} KB`}function r(){let[e,t]=(0,a.useState)(!1),[s,r]=(0,a.useState)([]),[d,o]=(0,a.useState)(!0),[c,m]=(0,a.useState)(!1),[x,p]=(0,a.useState)(null),[h,u]=(0,a.useState)(null),[f,y]=(0,a.useState)({type:"",message:""}),[b,j]=(0,a.useState)(!1),[g,v]=(0,a.useState)(""),[N,w]=(0,a.useState)(!1),[k,C]=(0,a.useState)(null),S=(0,a.useRef)(null),T=(0,a.useCallback)(async()=>{o(!0);try{let[e,s]=await Promise.all([fetch("/api/settings",{cache:"no-store"}),fetch("/api/context",{cache:"no-store"})]),l=await e.json(),a=await s.json();t(!!l.contextInjectionEnabled),r(Array.isArray(a.files)?a.files:[])}catch(e){y({type:"error",message:"Failed to load context files."})}finally{o(!1)}},[]);(0,a.useEffect)(()=>{T()},[T]);let E=async e=>{t(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({contextInjectionEnabled:e})})}catch{t(!e),y({type:"error",message:"Failed to update global toggle."})}},$=async()=>{if(!x?.name?.trim())return void y({type:"error",message:"Name is required."});m(!0);try{let e={name:x.name,content:x.content||"",prefillContent:x.prefillContent||"",models:x.modelsText,mode:(x.content||"").trim()?"system":"prefill"};x.id?await fetch(`/api/context/${x.id}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}):await fetch("/api/context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,priority:s.length})}),p(null),await T(),y({type:"success",message:"Saved."})}catch{y({type:"error",message:"Failed to save."})}finally{m(!1)}},F=async(e,t)=>{r(s=>s.map(s=>s.id===e.id?{...s,enabled:t}:s));try{await fetch(`/api/context/${e.id}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:t})})}catch{await T()}},O=(e,t="system")=>{let s=e?.mode==="prefill"&&!e?.prefillContent;p({...e,content:s?"":e?.content||"",prefillContent:e?.prefillContent||s&&e?.content||"",modelsText:(e?.models||[]).join(", "),slot:t})},P=x?.slot==="prefill"?x.prefillContent||"":x?.content||"",z=async()=>{if(h)try{await fetch(`/api/context/${h.id}`,{method:"DELETE"}),u(null),await T()}catch{y({type:"error",message:"Failed to delete."})}},A=async e=>{let t=Array.from(e.target.files||[]);if(0!==t.length){j(!0),y({type:"",message:""});try{let e=await Promise.all(t.map(async e=>({name:e.name,content:await e.text()}))),s=await fetch("/api/context/bulk",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:e})}),l=await s.json();if(!s.ok)throw Error(l?.error||"Upload failed");await T(),y({type:"success",message:`Uploaded ${l.created} file(s) — all disabled by default. Enable the ones you want below.`})}catch(e){y({type:"error",message:e.message||"Upload failed."})}finally{j(!1),S.current&&(S.current.value="")}}},_=async()=>{let e=g.trim();if(e){w(!0),C(null);try{let t=await fetch("/api/context/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:e})}),s=await t.json();C(s)}catch(e){C({ok:!1,reason:e.message||"Test request failed."})}finally{w(!1)}}},J=s.filter(e=>e.enabled).length,M=s.filter(e=>e.enabled).reduce((e,t)=>e+new TextEncoder().encode(t.content||"").length,0);return(0,l.jsxs)("div",{className:"max-w-4xl mx-auto space-y-6",children:[(0,l.jsxs)(n.Zp,{padding:"md",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h1",{className:"text-lg font-semibold text-text-main",children:"Context Injection"}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-1 max-w-xl",children:"Inject your own context into chat requests routed through ZevaiRouter. System mode prepends the file to the system prompt. Prefill mode inserts a user/assistant turn pair before the real conversation. Each file can be limited to specific models and toggled off without deleting it."})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,l.jsx)("span",{className:"text-sm text-text-muted",children:e?"On":"Off"}),(0,l.jsx)(n.lM,{checked:e,onChange:E})]})]}),e&&(0,l.jsxs)("p",{className:"text-[11px] text-text-muted mt-3",children:[J," file(s) active \xb7 up to ~",(M/1024).toFixed(1)," KB added per request (files limited to specific models are added only for those models)"]})]}),(0,l.jsxs)(n.Zp,{padding:"md",children:[(0,l.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"Test injection"}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Sends one real request to the model with a one-time check code added to the injected context. Passes only if the model replies with that code."}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-3",children:[(0,l.jsx)(n.pd,{placeholder:"provider/model or combo name, e.g. kiro/claude-sonnet-4.5",value:g,onChange:e=>v(e.target.value),onKeyDown:e=>{"Enter"===e.key&&_()}}),(0,l.jsx)(n.$n,{size:"sm",onClick:_,disabled:N||!g.trim(),children:N?"Testing…":"Test"})]}),k&&(0,l.jsxs)("div",{className:`mt-3 text-xs px-3 py-2 rounded space-y-1 ${k.ok?"text-green-600 bg-green-500/10":"text-red-500 bg-red-500/10"}`,children:[(0,l.jsx)("p",{className:"font-medium",children:k.ok?"Injected: the model saw the context.":`Not injected: ${k.reason||"unknown error"}`}),Array.isArray(k.matchedFiles)&&(0,l.jsxs)("p",{className:"text-text-muted",children:["Files for this model: ",k.matchedFiles.length?k.matchedFiles.join(", "):"none"]}),void 0!==k.reply&&(0,l.jsxs)("p",{className:"text-text-muted whitespace-pre-wrap break-words",children:["Reply: ",k.reply||"(empty)",k.latencyMs?` \xb7 ${k.latencyMs} ms`:""]})]})]}),f.message&&(0,l.jsx)("div",{className:`text-xs px-3 py-2 rounded ${"error"===f.type?"text-red-500 bg-red-500/10":"text-green-600 bg-green-500/10"}`,children:f.message}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"Files"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{ref:S,type:"file",multiple:!0,className:"hidden",onChange:A}),(0,l.jsxs)(n.$n,{variant:"ghost",size:"sm",onClick:()=>S.current?.click(),disabled:b,children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] mr-1",children:"upload_file"}),b?"Uploading…":"Upload .md"]}),(0,l.jsxs)(n.$n,{size:"sm",onClick:()=>O({name:"",content:"",prefillContent:"",enabled:!0,models:[]},"system"),children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px] mr-1",children:"add"}),"Add File"]})]})]}),d?(0,l.jsx)("div",{className:"text-sm text-text-muted",children:"Loading…"}):0===s.length?(0,l.jsx)(n.Zp,{padding:"md",children:(0,l.jsxs)("p",{className:"text-sm text-text-muted",children:["No context files yet. Click ",(0,l.jsx)("b",{children:"Add File"})," to create one (e.g. ",(0,l.jsx)("code",{children:"soul.md"}),")."]})}):(0,l.jsx)("div",{className:"space-y-2",children:s.map(e=>(0,l.jsxs)("div",{className:"flex items-start gap-3 p-4 rounded-[14px] border border-border-subtle bg-surface",children:[(0,l.jsx)("div",{className:"size-9 rounded-lg flex items-center justify-center shrink-0 bg-primary/10 text-primary",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"description"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,l.jsx)("h3",{className:"font-semibold text-sm text-text-main",children:e.name}),(0,l.jsx)(n.Ex,{variant:"default",size:"sm",children:i((e.content||"")+(e.prefillContent||""))}),e.models?.length?(0,l.jsx)(n.Ex,{variant:"default",size:"sm",title:e.models.join(", "),children:1===e.models.length?e.models[0]:`${e.models.length} models`}):(0,l.jsx)(n.Ex,{variant:"default",size:"sm",children:"all models"})]}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-0.5 line-clamp-2 whitespace-pre-wrap",children:("prefill"===e.mode&&!e.prefillContent,e.content)?.slice(0,160)||e.prefillContent?.slice(0,160)||"(empty)"}),(0,l.jsxs)("div",{className:"flex items-center gap-1 mt-2",children:[e.content&&!("prefill"===e.mode&&!e.prefillContent)?(0,l.jsx)("button",{type:"button",onClick:()=>O(e,"system"),className:"px-2 py-0.5 rounded-md text-[11px] font-medium border border-primary bg-primary text-white",children:"System"}):(0,l.jsx)("button",{type:"button",onClick:()=>O(e,"system"),title:"Add system prompt",className:"px-1.5 py-0.5 rounded-md text-[11px] border border-border text-text-muted hover:bg-black/5 dark:hover:bg-white/5",children:"+"}),e.prefillContent||"prefill"===e.mode?(0,l.jsx)("button",{type:"button",onClick:()=>O(e,"prefill"),className:"px-2 py-0.5 rounded-md text-[11px] font-medium border border-primary bg-primary text-white",children:"Prefill"}):(0,l.jsx)("button",{type:"button",onClick:()=>O(e,"prefill"),title:"Add prefill",className:"px-1.5 py-0.5 rounded-md text-[11px] border border-border text-text-muted hover:bg-black/5 dark:hover:bg-white/5",children:"+"})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,l.jsx)("span",{className:"text-[11px] text-text-muted",children:e.enabled?"On":"Off"}),(0,l.jsx)(n.lM,{checked:e.enabled,onChange:t=>F(e,t),size:"sm"}),(0,l.jsx)("button",{onClick:()=>O(e,"system"),className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5",title:"Edit",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,l.jsx)("button",{onClick:()=>u(e),className:"p-1.5 rounded-lg text-text-muted hover:bg-red-500/10 hover:text-red-500",title:"Delete",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id))}),x&&(0,l.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:()=>p(null)}),(0,l.jsxs)("div",{className:"relative w-full max-w-2xl bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl flex flex-col max-h-[85vh]",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,l.jsx)("h2",{className:"text-base font-semibold text-text-main",children:x.id?"Edit File":"New Context File"}),(0,l.jsx)("button",{onClick:()=>p(null),className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,l.jsxs)("div",{className:"p-4 space-y-3 overflow-y-auto flex-1",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium",children:"Name"}),(0,l.jsx)(n.pd,{placeholder:"soul.md",value:x.name,onChange:e=>p(t=>({...t,name:e.target.value}))})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium",children:"Models"}),(0,l.jsx)(n.pd,{placeholder:"Empty = all models. e.g. kiro/*, cc/claude-opus-4*, my-combo",value:x.modelsText||"",onChange:e=>p(t=>({...t,modelsText:e.target.value}))}),(0,l.jsx)("p",{className:"text-[11px] text-text-muted mt-1",children:"Comma-separated. Matches provider/model, provider alias/model, bare model, or the model/combo name the client sent. Use * as a wildcard."})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium",children:"Slot"}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,l.jsx)(n.$n,{type:"button",size:"sm",variant:"system"===(x.slot||"system")?"primary":(x.content||"").trim()?"secondary":"ghost",onClick:()=>p(e=>({...e,slot:"system"})),children:"System prompt"}),(0,l.jsx)(n.$n,{type:"button",size:"sm",variant:"prefill"===x.slot?"primary":(x.prefillContent||"").trim()?"secondary":"ghost",onClick:()=>p(e=>({...e,slot:"prefill"})),children:"Prefill"})]}),(0,l.jsx)("p",{className:"text-[11px] text-text-muted mt-1",children:"Same file. System is prepended to the prompt. Prefill is inserted as prior turns. Fill either, or both. Empty slot is skipped."})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium",children:"prefill"===x.slot?"Prefill turns":"System prompt"}),(0,l.jsx)("textarea",{className:"w-full mt-1 rounded-lg border border-border bg-surface-2 p-3 font-mono text-xs text-text-main min-h-[280px] resize-y focus:outline-none focus:ring-2 focus:ring-primary/40",placeholder:"prefill"===x.slot?'[{"role":"user","content":"..."},{"role":"assistant","content":"..."}]':"You are a helpful assistant with the following persona…",value:P,onChange:e=>{var t;return t=e.target.value,void p(e=>e?.slot==="prefill"?{...e,prefillContent:t}:{...e,content:t})}}),(0,l.jsxs)("p",{className:"text-[11px] text-text-muted mt-1",children:[i(P)," \xb7 switching slots does not erase the other one"]})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-2 p-3 border-t border-black/5 dark:border-white/5",children:[(0,l.jsx)(n.$n,{variant:"ghost",size:"sm",onClick:()=>p(null),children:"Cancel"}),(0,l.jsx)(n.$n,{size:"sm",onClick:$,disabled:c,children:c?"Saving…":"Save"})]})]})]}),(0,l.jsx)(n.uo,{isOpen:!!h,title:"Delete context file?",message:`"${h?.name}" will be permanently removed.`,confirmText:"Delete",variant:"danger",onConfirm:z,onClose:()=>u(null)})]})}}},e=>{e.O(0,[2574,3862,3745,3339,620,5497,8441,3794,7358],()=>e(e.s=4402)),_N_E=e.O()}]);
|
package/cli/app/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Unreleased
|
|
2
2
|
|
|
3
|
+
# v1.1.53 (2026-11-03)
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
- **One Context Inject file holds both slots.** System text and prefill turns live on the same file. The System and Prefill buttons switch which box you edit; they do not create a second file. A filled slot shows as an orange chip. An empty slot is a plus, not a label. Prefill turns are inserted after the system prompt for OpenAI, Claude, Gemini, Kiro, and CommandCode requests. Older files that stored the turn list in the body still inject.
|
|
7
|
+
|
|
3
8
|
# v1.1.52 (2026-10-31)
|
|
4
9
|
|
|
5
10
|
## Fixes
|
package/cli/app/package.json
CHANGED
package/cli/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9933],{4402:(e,t,s)=>{Promise.resolve().then(s.bind(s,33711))},33711:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>d});var a=s(95155),l=s(12115),n=s(35497);function i(e){let t=new TextEncoder().encode(e||"").length;return t<1024?`${t} B`:`${(t/1024).toFixed(1)} KB`}function d(){let[e,t]=(0,l.useState)(!1),[s,d]=(0,l.useState)([]),[r,o]=(0,l.useState)(!0),[c,m]=(0,l.useState)(!1),[x,h]=(0,l.useState)(null),[p,u]=(0,l.useState)(null),[f,j]=(0,l.useState)({type:"",message:""}),[b,g]=(0,l.useState)(!1),[y,N]=(0,l.useState)(""),[v,w]=(0,l.useState)(!1),[k,C]=(0,l.useState)(null),T=(0,l.useRef)(null),S=(0,l.useCallback)(async()=>{o(!0);try{let[e,s]=await Promise.all([fetch("/api/settings",{cache:"no-store"}),fetch("/api/context",{cache:"no-store"})]),a=await e.json(),l=await s.json();t(!!a.contextInjectionEnabled),d(Array.isArray(l.files)?l.files:[])}catch(e){j({type:"error",message:"Failed to load context files."})}finally{o(!1)}},[]);(0,l.useEffect)(()=>{S()},[S]);let E=async e=>{t(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({contextInjectionEnabled:e})})}catch{t(!e),j({type:"error",message:"Failed to update global toggle."})}},$=async()=>{if(!x?.name?.trim())return void j({type:"error",message:"Name is required."});m(!0);try{x.id?await fetch(`/api/context/${x.id}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:x.name,content:x.content,models:x.modelsText})}):await fetch("/api/context",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:x.name,content:x.content,models:x.modelsText,priority:s.length})}),h(null),await S(),j({type:"success",message:"Saved."})}catch{j({type:"error",message:"Failed to save."})}finally{m(!1)}},F=async(e,t)=>{d(s=>s.map(s=>s.id===e.id?{...s,enabled:t}:s));try{await fetch(`/api/context/${e.id}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:t})})}catch{await S()}},O=async()=>{if(p)try{await fetch(`/api/context/${p.id}`,{method:"DELETE"}),u(null),await S()}catch{j({type:"error",message:"Failed to delete."})}},z=async e=>{let t=Array.from(e.target.files||[]);if(0!==t.length){g(!0),j({type:"",message:""});try{let e=await Promise.all(t.map(async e=>({name:e.name,content:await e.text()}))),s=await fetch("/api/context/bulk",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:e})}),a=await s.json();if(!s.ok)throw Error(a?.error||"Upload failed");await S(),j({type:"success",message:`Uploaded ${a.created} file(s) — all disabled by default. Enable the ones you want below.`})}catch(e){j({type:"error",message:e.message||"Upload failed."})}finally{g(!1),T.current&&(T.current.value="")}}},P=async()=>{let e=y.trim();if(e){w(!0),C(null);try{let t=await fetch("/api/context/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:e})}),s=await t.json();C(s)}catch(e){C({ok:!1,reason:e.message||"Test request failed."})}finally{w(!1)}}},A=s.filter(e=>e.enabled).length,_=s.filter(e=>e.enabled).reduce((e,t)=>e+new TextEncoder().encode(t.content||"").length,0);return(0,a.jsxs)("div",{className:"max-w-4xl mx-auto space-y-6",children:[(0,a.jsxs)(n.Zp,{padding:"md",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h1",{className:"text-lg font-semibold text-text-main",children:"Context Injection"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1 max-w-xl",children:"Prepend your own context files (soul.md, agent.md, rules…) to the system prompt of chat requests routed through ZevaiRouter. Enabled files are injected in order, across all providers. Each file can be limited to specific models."})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:e?"On":"Off"}),(0,a.jsx)(n.lM,{checked:e,onChange:E})]})]}),e&&(0,a.jsxs)("p",{className:"text-[11px] text-text-muted mt-3",children:[A," file(s) active \xb7 up to ~",(_/1024).toFixed(1)," KB added per request (files limited to specific models are added only for those models)"]})]}),(0,a.jsxs)(n.Zp,{padding:"md",children:[(0,a.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"Test injection"}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Sends one real request to the model with a one-time check code added to the injected context. Passes only if the model replies with that code."}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-3",children:[(0,a.jsx)(n.pd,{placeholder:"provider/model or combo name, e.g. kiro/claude-sonnet-4.5",value:y,onChange:e=>N(e.target.value),onKeyDown:e=>{"Enter"===e.key&&P()}}),(0,a.jsx)(n.$n,{size:"sm",onClick:P,disabled:v||!y.trim(),children:v?"Testing…":"Test"})]}),k&&(0,a.jsxs)("div",{className:`mt-3 text-xs px-3 py-2 rounded space-y-1 ${k.ok?"text-green-600 bg-green-500/10":"text-red-500 bg-red-500/10"}`,children:[(0,a.jsx)("p",{className:"font-medium",children:k.ok?"Injected: the model saw the context.":`Not injected: ${k.reason||"unknown error"}`}),Array.isArray(k.matchedFiles)&&(0,a.jsxs)("p",{className:"text-text-muted",children:["Files for this model: ",k.matchedFiles.length?k.matchedFiles.join(", "):"none"]}),void 0!==k.reply&&(0,a.jsxs)("p",{className:"text-text-muted whitespace-pre-wrap break-words",children:["Reply: ",k.reply||"(empty)",k.latencyMs?` \xb7 ${k.latencyMs} ms`:""]})]})]}),f.message&&(0,a.jsx)("div",{className:`text-xs px-3 py-2 rounded ${"error"===f.type?"text-red-500 bg-red-500/10":"text-green-600 bg-green-500/10"}`,children:f.message}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"Files"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{ref:T,type:"file",multiple:!0,className:"hidden",onChange:z}),(0,a.jsxs)(n.$n,{variant:"ghost",size:"sm",onClick:()=>T.current?.click(),disabled:b,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] mr-1",children:"upload_file"}),b?"Uploading…":"Upload .md"]}),(0,a.jsxs)(n.$n,{size:"sm",onClick:()=>h({name:"",content:"",enabled:!0,modelsText:""}),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] mr-1",children:"add"}),"Add File"]})]})]}),r?(0,a.jsx)("div",{className:"text-sm text-text-muted",children:"Loading…"}):0===s.length?(0,a.jsx)(n.Zp,{padding:"md",children:(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["No context files yet. Click ",(0,a.jsx)("b",{children:"Add File"})," to create one (e.g. ",(0,a.jsx)("code",{children:"soul.md"}),")."]})}):(0,a.jsx)("div",{className:"space-y-2",children:s.map(e=>(0,a.jsxs)("div",{className:"flex items-start gap-3 p-4 rounded-[14px] border border-border-subtle bg-surface",children:[(0,a.jsx)("div",{className:"size-9 rounded-lg flex items-center justify-center shrink-0 bg-primary/10 text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"description"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("h3",{className:"font-semibold text-sm text-text-main",children:e.name}),(0,a.jsx)(n.Ex,{variant:"default",size:"sm",children:i(e.content)}),!e.enabled&&(0,a.jsx)(n.Ex,{variant:"default",size:"sm",children:"disabled"}),e.models?.length?(0,a.jsx)(n.Ex,{variant:"default",size:"sm",title:e.models.join(", "),children:1===e.models.length?e.models[0]:`${e.models.length} models`}):(0,a.jsx)(n.Ex,{variant:"default",size:"sm",children:"all models"})]}),(0,a.jsx)("p",{className:"text-xs text-text-muted mt-0.5 line-clamp-2 whitespace-pre-wrap",children:e.content?.slice(0,160)||"(empty)"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,a.jsx)(n.lM,{checked:e.enabled,onChange:t=>F(e,t),size:"sm"}),(0,a.jsx)("button",{onClick:()=>h({...e,modelsText:(e.models||[]).join(", ")}),className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5",title:"Edit",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,a.jsx)("button",{onClick:()=>u(e),className:"p-1.5 rounded-lg text-text-muted hover:bg-red-500/10 hover:text-red-500",title:"Delete",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id))}),x&&(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:()=>h(null)}),(0,a.jsxs)("div",{className:"relative w-full max-w-2xl bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl flex flex-col max-h-[85vh]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-text-main",children:x.id?"Edit File":"New Context File"}),(0,a.jsx)("button",{onClick:()=>h(null),className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsxs)("div",{className:"p-4 space-y-3 overflow-y-auto flex-1",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Name"}),(0,a.jsx)(n.pd,{placeholder:"soul.md",value:x.name,onChange:e=>h(t=>({...t,name:e.target.value}))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Models"}),(0,a.jsx)(n.pd,{placeholder:"Empty = all models. e.g. kiro/*, cc/claude-opus-4*, my-combo",value:x.modelsText||"",onChange:e=>h(t=>({...t,modelsText:e.target.value}))}),(0,a.jsx)("p",{className:"text-[11px] text-text-muted mt-1",children:"Comma-separated. Matches provider/model, provider alias/model, bare model, or the model/combo name the client sent. Use * as a wildcard."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Content (markdown / plain text)"}),(0,a.jsx)("textarea",{className:"w-full mt-1 rounded-lg border border-border bg-surface-2 p-3 font-mono text-xs text-text-main min-h-[280px] resize-y focus:outline-none focus:ring-2 focus:ring-primary/40",placeholder:"You are a helpful assistant with the following persona…",value:x.content,onChange:e=>h(t=>({...t,content:e.target.value}))}),(0,a.jsxs)("p",{className:"text-[11px] text-text-muted mt-1",children:[i(x.content)," \xb7 injected into the system prompt"]})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-end gap-2 p-3 border-t border-black/5 dark:border-white/5",children:[(0,a.jsx)(n.$n,{variant:"ghost",size:"sm",onClick:()=>h(null),children:"Cancel"}),(0,a.jsx)(n.$n,{size:"sm",onClick:$,disabled:c,children:c?"Saving…":"Save"})]})]})]}),(0,a.jsx)(n.uo,{isOpen:!!p,title:"Delete context file?",message:`"${p?.name}" will be permanently removed.`,confirmText:"Delete",variant:"danger",onConfirm:O,onClose:()=>u(null)})]})}}},e=>{e.O(0,[2574,3862,3745,3339,620,5497,8441,3794,7358],()=>e(e.s=4402)),_N_E=e.O()}]);
|
|
File without changes
|
|
File without changes
|