viba-cli 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/fallback-build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +2 -2
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/credentials/page/server-reference-manifest.json +7 -7
- package/.next/server/app/credentials/page.js.nft.json +1 -1
- package/.next/server/app/credentials/page_client-reference-manifest.js +1 -1
- package/.next/server/app/credentials.html +2 -2
- package/.next/server/app/credentials.rsc +3 -3
- package/.next/server/app/credentials.segments/_full.segment.rsc +3 -3
- package/.next/server/app/credentials.segments/_head.segment.rsc +1 -1
- package/.next/server/app/credentials.segments/_index.segment.rsc +2 -2
- package/.next/server/app/credentials.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/credentials.segments/credentials/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/credentials.segments/credentials.segment.rsc +1 -1
- package/.next/server/app/index.html +2 -2
- package/.next/server/app/index.rsc +3 -3
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/new/page/server-reference-manifest.json +26 -26
- package/.next/server/app/new/page.js.nft.json +1 -1
- package/.next/server/app/new/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page/server-reference-manifest.json +26 -26
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/session/[sessionId]/page/server-reference-manifest.json +19 -19
- package/.next/server/app/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/server/app/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0522f852._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1df320f5._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1df320f5._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__205f8dfa._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__205f8dfa._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__352d2b3c._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__4c388861._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__4c388861._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__59834c63._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__59834c63._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__5b24035a._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__5b24035a._.js.map +1 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__35a2d358._.js → [root-of-the-server]__89c50fcd._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__35a2d358._.js.map → [root-of-the-server]__89c50fcd._.js.map} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__9201693f._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__c790b631._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__c790b631._.js.map +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__d5eaad6d._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__d5eaad6d._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_credentials_page_tsx_63d8d34a._.js +1 -1
- package/.next/server/chunks/ssr/src_app_credentials_page_tsx_63d8d34a._.js.map +1 -1
- package/.next/server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js +1 -1
- package/.next/server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js.map +1 -1
- package/.next/server/chunks/ssr/src_components_GitRepoSelector_tsx_05c81afa._.js +3 -3
- package/.next/server/chunks/ssr/src_components_GitRepoSelector_tsx_05c81afa._.js.map +1 -1
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +2 -2
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +46 -46
- package/.next/static/chunks/{3472c623318d7e52.js → 4afbd10632bd9ae7.js} +3 -3
- package/.next/static/chunks/a9c5b63f0e7da9b5.js +1 -0
- package/.next/static/chunks/{a1c6d2b2fb93a221.js → b13357ed59140e66.js} +1 -1
- package/.next/static/chunks/{273426f3f2eeb766.js → bb05c05a9e6f8abd.js} +2 -2
- package/.next/static/chunks/bda88a62a1f3e507.js +9 -0
- package/.next/static/chunks/{80eba8e28e3a2302.js → e1ec81eb91426c5a.js} +2 -2
- package/.next/static/chunks/{f7c74b2e45bc1b6f.css → f50ca0ff2368d540.css} +1 -1
- package/package.json +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__3e886998._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__3e886998._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__66c2f341._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__66c2f341._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__def2abf8._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__def2abf8._.js.map +0 -1
- package/.next/static/chunks/1d381eeb43f375d4.js +0 -1
- package/.next/static/chunks/fbc609da2048ba9c.js +0 -9
- /package/.next/static/{9BhgvATpMuOT7STiExvPy → yN2biI7fFBwe3y0qoq-hE}/_buildManifest.js +0 -0
- /package/.next/static/{9BhgvATpMuOT7STiExvPy → yN2biI7fFBwe3y0qoq-hE}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{9BhgvATpMuOT7STiExvPy → yN2biI7fFBwe3y0qoq-hE}/_ssgManifest.js +0 -0
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},50522,37047,a=>{"use strict";var b=a.i(70106);let c=(0,b.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",()=>c],50522);let d=(0,b.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);a.s(["KeyRound",()=>d],37047)},62298,47216,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("0048cbcca99954ce4ac965153105df0ff2da5c6845",b.callServer,void 0,b.findSourceMapURL,"listAgentApiCredentials");a.s(["listAgentApiCredentials",()=>c],62298);let d=(0,b.createServerReference)("00c3634c8f903773c5043dd43218a15214177713ee",b.callServer,void 0,b.findSourceMapURL,"listCredentials");a.s(["listCredentials",()=>d],47216)},15618,a=>{"use strict";let b=(0,a.i(70106).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},5784,a=>{"use strict";let b=(0,a.i(70106).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],5784)},52495,a=>{"use strict";let b=(0,a.i(70106).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);a.s(["ExternalLink",()=>b],52495)},89271,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00c6d9cb9d82e6cbfc5509e371d7286563f74774bd",b.callServer,void 0,b.findSourceMapURL,"getHomeDirectory");a.s(["getHomeDirectory",()=>c])},92596,a=>{"use strict";let b=(0,a.i(70106).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);a.s(["Folder",()=>b],92596)},210,a=>{"use strict";let b=(0,a.i(70106).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],210)},11431,94659,a=>{"use strict";function b(a){return a&&a.replace(/\\/g,"/").split("/").filter(Boolean).pop()||""}function c(a){if(!a)return"";let b=a.replace(/\\/g,"/"),c=b.length>1&&b.endsWith("/")?b.slice(0,-1):b,d=c.lastIndexOf("/");return -1===d?a.includes(":")&&a.length<=3?b:".":0===d?"/":a.includes(":")&&2===d?c.substring(0,3):c.substring(0,d)}function d(a){return/^[a-zA-Z]:[\\/]/.test(a)}a.s(["getBaseName",()=>b,"getDirName",()=>c,"isWindowsAbsolutePath",()=>d],11431);var e=a.i(72131);function f({enabled:a=!0,onConfirm:b,onDismiss:c,canConfirm:d=!0}){(0,e.useEffect)(()=>{if(!a)return;let e=a=>{if("Escape"===a.key){a.preventDefault(),c();return}"Enter"!==a.key||!b||!d||a.defaultPrevented||a.metaKey||a.ctrlKey||a.altKey||a.shiftKey||(a=>{if(!(a instanceof HTMLElement))return!1;let b=a.tagName.toUpperCase();return"INPUT"===b||"TEXTAREA"===b||"SELECT"===b||a.isContentEditable})(a.target)||(a.preventDefault(),b())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[a,b,c,d])}a.s(["useDialogKeyboardShortcuts",()=>f],94659)},57780,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("7f54182753b08e37dd9ab6521ad0bbb55a63c29492",b.callServer,void 0,b.findSourceMapURL,"startTtydProcess");a.s(["startTtydProcess",()=>c])},43071,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582",b.callServer,void 0,b.findSourceMapURL,"saveAttachments");a.s(["saveAttachments",()=>c])},28240,31680,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2",b.callServer,void 0,b.findSourceMapURL,"getConfig");a.s(["getConfig",()=>c],28240);let d=(0,b.createServerReference)("40cc060ea047f0ec381489a5449a8469064e726123",b.callServer,void 0,b.findSourceMapURL,"updateConfig");a.s(["updateConfig",()=>d],31680)},12627,a=>{"use strict";function b(){}a.s(["SESSIONS_UPDATED_EVENT",0,"viba:sessions-updated","SESSIONS_UPDATED_STORAGE_KEY",0,"viba:sessions-updated-at","notifySessionsUpdated",()=>b])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__3e886998._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/app-router-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/hooks-client-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/server-inserted-html.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-dom.ts","../../../../node_modules/next/src/server/route-modules/app-page/module.compiled.js","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.ts","../../../../node_modules/lucide-react/src/icons/key-round.ts","../../../../node_modules/lucide-react/src/icons/chevron-right.ts","../../../../src/app/actions/data%3A1f00d0%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3A51eefe%20%3Ctext/javascript%3E","../../../../node_modules/lucide-react/src/icons/plus.ts","../../../../node_modules/lucide-react/src/icons/chevron-down.ts","../../../../node_modules/lucide-react/src/icons/external-link.ts","../../../../src/app/actions/data%3Af7b118%20%3Ctext/javascript%3E","../../../../node_modules/lucide-react/src/icons/folder.ts","../../../../node_modules/lucide-react/src/icons/arrow-left.ts","../../../../src/lib/path.ts","../../../../src/hooks/useDialogKeyboardShortcuts.ts","../../../../src/app/actions/data%3Ac45bea%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3Acde4ad%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3Ab12d0c%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3Adb6d38%20%3Ctext/javascript%3E","../../../../src/lib/session-updates.ts"],"sourcesContent":["module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.React\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactServerDOMTurbopackClient\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].AppRouterContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].HooksClientContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].ServerInsertedHtml\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactDOM\n","if (process.env.NEXT_RUNTIME === 'edge') {\n module.exports = require('next/dist/server/route-modules/app-page/module.js')\n} else {\n if (process.env.__NEXT_EXPERIMENTAL_REACT) {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.prod.js')\n }\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.prod.js')\n }\n }\n }\n}\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactJsxRuntime\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z',\n key: '1s6t7t',\n },\n ],\n ['circle', { cx: '16.5', cy: '7.5', r: '.5', fill: 'currentColor', key: 'w0ekpg' }],\n];\n\n/**\n * @component @name KeyRound\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/key-round\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst KeyRound = createLucideIcon('key-round', __iconNode);\n\nexport default KeyRound;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [['path', { d: 'm9 18 6-6-6-6', key: 'mthhwq' }]];\n\n/**\n * @component @name ChevronRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/chevron-right\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ChevronRight = createLucideIcon('chevron-right', __iconNode);\n\nexport default ChevronRight;\n","/* __next_internal_action_entry_do_not_use__ [{\"0048cbcca99954ce4ac965153105df0ff2da5c6845\":\"listAgentApiCredentials\"},\"src/app/actions/credentials.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_3=/*#__PURE__*/createServerReference(\"0048cbcca99954ce4ac965153105df0ff2da5c6845\",callServer,void 0,findSourceMapURL,\"listAgentApiCredentials\");export{$$RSC_SERVER_ACTION_3 as listAgentApiCredentials};","/* __next_internal_action_entry_do_not_use__ [{\"00c3634c8f903773c5043dd43218a15214177713ee\":\"listCredentials\"},\"src/app/actions/credentials.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"00c3634c8f903773c5043dd43218a15214177713ee\",callServer,void 0,findSourceMapURL,\"listCredentials\");export{$$RSC_SERVER_ACTION_0 as listCredentials};","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M5 12h14', key: '1ays0h' }],\n ['path', { d: 'M12 5v14', key: 's699le' }],\n];\n\n/**\n * @component @name Plus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/plus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Plus = createLucideIcon('plus', __iconNode);\n\nexport default Plus;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [['path', { d: 'm6 9 6 6 6-6', key: 'qrunsl' }]];\n\n/**\n * @component @name ChevronDown\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/chevron-down\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ChevronDown = createLucideIcon('chevron-down', __iconNode);\n\nexport default ChevronDown;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M15 3h6v6', key: '1q9fwt' }],\n ['path', { d: 'M10 14 21 3', key: 'gplh6r' }],\n ['path', { d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6', key: 'a6xqqp' }],\n];\n\n/**\n * @component @name ExternalLink\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/external-link\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ExternalLink = createLucideIcon('external-link', __iconNode);\n\nexport default ExternalLink;\n","/* __next_internal_action_entry_do_not_use__ [{\"00c6d9cb9d82e6cbfc5509e371d7286563f74774bd\":\"getHomeDirectory\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"00c6d9cb9d82e6cbfc5509e371d7286563f74774bd\",callServer,void 0,findSourceMapURL,\"getHomeDirectory\");export{$$RSC_SERVER_ACTION_0 as getHomeDirectory};","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z',\n key: '1kt360',\n },\n ],\n];\n\n/**\n * @component @name Folder\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/folder\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Folder = createLucideIcon('folder', __iconNode);\n\nexport default Folder;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'm12 19-7-7 7-7', key: '1l729n' }],\n ['path', { d: 'M19 12H5', key: 'x3x0zl' }],\n];\n\n/**\n * @component @name ArrowLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/arrow-left\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ArrowLeft = createLucideIcon('arrow-left', __iconNode);\n\nexport default ArrowLeft;\n","export function getBaseName(path: string): string {\n if (!path) return '';\n // Support both Windows (\\) and POSIX (/) separators\n // Using a simpler approach to avoid regex escaping issues in some environments\n const normalized = path.replace(/\\\\/g, '/');\n const parts = normalized.split('/');\n // Filter out empty strings which can happen with trailing slashes or absolute paths\n return parts.filter(Boolean).pop() || '';\n}\n\nexport function getDirName(path: string): string {\n if (!path) return '';\n \n // Normalize separators to / for easier processing\n const normalized = path.replace(/\\\\/g, '/');\n \n // Remove trailing slash if it exists (but not if it's the root '/')\n const withoutTrailing = (normalized.length > 1 && normalized.endsWith('/')) \n ? normalized.slice(0, -1) \n : normalized;\n \n const lastIdx = withoutTrailing.lastIndexOf('/');\n \n if (lastIdx === -1) {\n // No separator found. Could be a relative path or a Windows drive root like \"C:\"\n // For \"C:\\\" or \"C:\", we return the normalized version (C:/ or C:)\n if (path.includes(':') && path.length <= 3) return normalized;\n return '.';\n }\n \n if (lastIdx === 0) return '/';\n \n // On Windows, if we're at \"C:/\", lastIdx might be 2.\n if (path.includes(':') && lastIdx === 2) {\n return withoutTrailing.substring(0, 3); // \"C:/\"\n }\n \n return withoutTrailing.substring(0, lastIdx);\n}\n\nexport function isWindowsAbsolutePath(value: string): boolean {\n return /^[a-zA-Z]:[\\\\/]/.test(value);\n}\n","import { useEffect } from 'react';\n\ntype UseDialogKeyboardShortcutsOptions = {\n enabled?: boolean;\n onConfirm?: () => void | Promise<unknown>;\n onDismiss: () => void;\n canConfirm?: boolean;\n};\n\nconst isEditableTarget = (target: EventTarget | null): boolean => {\n if (!(target instanceof HTMLElement)) return false;\n const tagName = target.tagName.toUpperCase();\n return tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT' || target.isContentEditable;\n};\n\nexport function useDialogKeyboardShortcuts({\n enabled = true,\n onConfirm,\n onDismiss,\n canConfirm = true,\n}: UseDialogKeyboardShortcutsOptions) {\n useEffect(() => {\n if (!enabled) return;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n onDismiss();\n return;\n }\n\n if (event.key !== 'Enter') return;\n if (!onConfirm || !canConfirm) return;\n if (event.defaultPrevented) return;\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n if (isEditableTarget(event.target)) return;\n\n event.preventDefault();\n void onConfirm();\n };\n\n window.addEventListener('keydown', handleKeyDown);\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [enabled, onConfirm, onDismiss, canConfirm]);\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"7f54182753b08e37dd9ab6521ad0bbb55a63c29492\":\"startTtydProcess\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_10=/*#__PURE__*/createServerReference(\"7f54182753b08e37dd9ab6521ad0bbb55a63c29492\",callServer,void 0,findSourceMapURL,\"startTtydProcess\");export{$$RSC_SERVER_ACTION_10 as startTtydProcess};","/* __next_internal_action_entry_do_not_use__ [{\"7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582\":\"saveAttachments\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_19=/*#__PURE__*/createServerReference(\"7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582\",callServer,void 0,findSourceMapURL,\"saveAttachments\");export{$$RSC_SERVER_ACTION_19 as saveAttachments};","/* __next_internal_action_entry_do_not_use__ [{\"00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2\":\"getConfig\"},\"src/app/actions/config.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2\",callServer,void 0,findSourceMapURL,\"getConfig\");export{$$RSC_SERVER_ACTION_0 as getConfig};","/* __next_internal_action_entry_do_not_use__ [{\"40cc060ea047f0ec381489a5449a8469064e726123\":\"updateConfig\"},\"src/app/actions/config.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_2=/*#__PURE__*/createServerReference(\"40cc060ea047f0ec381489a5449a8469064e726123\",callServer,void 0,findSourceMapURL,\"updateConfig\");export{$$RSC_SERVER_ACTION_2 as updateConfig};","export const SESSIONS_UPDATED_STORAGE_KEY = 'viba:sessions-updated-at';\nexport const SESSIONS_UPDATED_EVENT = 'viba:sessions-updated';\n\nexport function notifySessionsUpdated(): void {\n if (typeof window === 'undefined') return;\n\n try {\n localStorage.setItem(SESSIONS_UPDATED_STORAGE_KEY, new Date().toISOString());\n } catch {\n // Ignore localStorage failures (private mode, quota, etc.)\n }\n\n window.dispatchEvent(new CustomEvent(SESSIONS_UPDATED_EVENT));\n}\n"],"names":["module","exports","require","vendored","React","ReactServerDOMTurbopackClient","AppRouterContext","HooksClientContext","ServerInsertedHtml","ReactDOM","process","env","NEXT_RUNTIME","__NEXT_EXPERIMENTAL_REACT","NODE_ENV","TURBOPACK","ReactJsxRuntime"],"mappings":"6CAAAA,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEC,KAAK,+BCF9BJ,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEE,6BAA6B,8BCFtDL,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACG,gBAAgB,+BCFvCN,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACI,kBAAkB,+BCFzCP,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACK,kBAAkB,8BCFzCR,GAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEM,QAAQ,+sBCwBzBT,EAAOC,OAAO,CAAGC,EAAQ,CAAA,CAAA,IAAA,iCC1BjCF,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEa,eAAe,gDEcxC,CAAA,ADboC,GCa9B,EAAA,CAAA,EAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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a,AAAqB,EAAC,KAAxB,wCAAqE,EAAA,UAAU,CAAC,KAAK,EAAE,EAAA,gBAAgB,CAAC,0ECG5Z,SAAS,IAUhB,iCAZsC,yDADM","ignoreList":[0,1,2,3,4,5,6,7,8,9,12,13,14,16,17]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},50522,37047,a=>{"use strict";var b=a.i(70106);let c=(0,b.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",()=>c],50522);let d=(0,b.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);a.s(["KeyRound",()=>d],37047)},62298,47216,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("0048cbcca99954ce4ac965153105df0ff2da5c6845",b.callServer,void 0,b.findSourceMapURL,"listAgentApiCredentials");a.s(["listAgentApiCredentials",()=>c],62298);let d=(0,b.createServerReference)("00c3634c8f903773c5043dd43218a15214177713ee",b.callServer,void 0,b.findSourceMapURL,"listCredentials");a.s(["listCredentials",()=>d],47216)},15618,a=>{"use strict";let b=(0,a.i(70106).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},5784,a=>{"use strict";let b=(0,a.i(70106).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],5784)},52495,a=>{"use strict";let b=(0,a.i(70106).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);a.s(["ExternalLink",()=>b],52495)},89271,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00c6d9cb9d82e6cbfc5509e371d7286563f74774bd",b.callServer,void 0,b.findSourceMapURL,"getHomeDirectory");a.s(["getHomeDirectory",()=>c])},92596,a=>{"use strict";let b=(0,a.i(70106).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);a.s(["Folder",()=>b],92596)},210,a=>{"use strict";let b=(0,a.i(70106).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],210)},11431,94659,a=>{"use strict";function b(a){return a&&a.replace(/\\/g,"/").split("/").filter(Boolean).pop()||""}function c(a){if(!a)return"";let b=a.replace(/\\/g,"/"),c=b.length>1&&b.endsWith("/")?b.slice(0,-1):b,d=c.lastIndexOf("/");return -1===d?a.includes(":")&&a.length<=3?b:".":0===d?"/":a.includes(":")&&2===d?c.substring(0,3):c.substring(0,d)}function d(a){return/^[a-zA-Z]:[\\/]/.test(a)}a.s(["getBaseName",()=>b,"getDirName",()=>c,"isWindowsAbsolutePath",()=>d],11431);var e=a.i(72131);function f({enabled:a=!0,onConfirm:b,onDismiss:c,canConfirm:d=!0}){(0,e.useEffect)(()=>{if(!a)return;let e=a=>{if("Escape"===a.key){a.preventDefault(),c();return}"Enter"!==a.key||!b||!d||a.defaultPrevented||a.metaKey||a.ctrlKey||a.altKey||a.shiftKey||(a=>{if(!(a instanceof HTMLElement))return!1;let b=a.tagName.toUpperCase();return"INPUT"===b||"TEXTAREA"===b||"SELECT"===b||a.isContentEditable})(a.target)||(a.preventDefault(),b())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[a,b,c,d])}a.s(["useDialogKeyboardShortcuts",()=>f],94659)},57780,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("7f54182753b08e37dd9ab6521ad0bbb55a63c29492",b.callServer,void 0,b.findSourceMapURL,"startTtydProcess");a.s(["startTtydProcess",()=>c])},43071,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582",b.callServer,void 0,b.findSourceMapURL,"saveAttachments");a.s(["saveAttachments",()=>c])},28240,31680,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2",b.callServer,void 0,b.findSourceMapURL,"getConfig");a.s(["getConfig",()=>c],28240);let d=(0,b.createServerReference)("40cc060ea047f0ec381489a5449a8469064e726123",b.callServer,void 0,b.findSourceMapURL,"updateConfig");a.s(["updateConfig",()=>d],31680)},12627,a=>{"use strict";function b(){}a.s(["SESSIONS_UPDATED_EVENT",0,"viba:sessions-updated","SESSIONS_UPDATED_STORAGE_KEY",0,"viba:sessions-updated-at","notifySessionsUpdated",()=>b])},40777,a=>{"use strict";var b=a.i(87924),c=a.i(71987),d=a.i(96514);function e(){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("a",{href:"https://github.com/m0o0scar/viba",target:"_blank",rel:"noopener noreferrer","aria-label":"Open Viba GitHub repository",className:"fixed top-0 right-0 z-50 h-20 w-20 cursor-pointer border-l border-b border-gray-400 bg-gray-300/95 shadow-sm backdrop-blur-sm transition-colors hover:bg-gray-500/95 dark:border-slate-700 dark:bg-slate-900/95 dark:hover:bg-slate-800/95",style:{clipPath:"polygon(100% 0, 0 0, 100% 100%)"},children:(0,b.jsx)("span",{className:"absolute left-[67%] top-[33%] -translate-x-1/2 -translate-y-1/2",children:(0,b.jsx)(c.default,{src:"/github.png",alt:"GitHub",width:22,height:22,priority:!0,className:"rotate-45"})})}),(0,b.jsx)("main",{className:"flex min-h-screen flex-col items-center justify-start bg-[radial-gradient(circle_at_top_left,_#e0e7ff,_#f5f7fb_55%)] p-4 transition-colors md:p-6 dark:bg-[radial-gradient(circle_at_top_left,_#1b2234,_#0b0e14_55%)]",children:(0,b.jsx)(d.default,{mode:"home"})})]})}a.s(["default",()=>e])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__66c2f341._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-dom.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/app-router-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/hooks-client-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/server-inserted-html.ts","../../../../node_modules/next/src/server/route-modules/app-page/module.compiled.js","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.ts","../../../../node_modules/lucide-react/src/icons/key-round.ts","../../../../node_modules/lucide-react/src/icons/chevron-right.ts","../../../../src/app/actions/data%3A1f00d0%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3A51eefe%20%3Ctext/javascript%3E","../../../../node_modules/lucide-react/src/icons/plus.ts","../../../../node_modules/lucide-react/src/icons/chevron-down.ts","../../../../node_modules/lucide-react/src/icons/external-link.ts","../../../../src/app/actions/data%3Af7b118%20%3Ctext/javascript%3E","../../../../node_modules/lucide-react/src/icons/folder.ts","../../../../node_modules/lucide-react/src/icons/arrow-left.ts","../../../../src/lib/path.ts","../../../../src/hooks/useDialogKeyboardShortcuts.ts","../../../../src/app/actions/data%3Ac45bea%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3Acde4ad%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3Ab12d0c%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3Adb6d38%20%3Ctext/javascript%3E","../../../../src/lib/session-updates.ts","../../../../src/app/page.tsx"],"sourcesContent":["module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.React\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactDOM\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactServerDOMTurbopackClient\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].AppRouterContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].HooksClientContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].ServerInsertedHtml\n","if (process.env.NEXT_RUNTIME === 'edge') {\n module.exports = require('next/dist/server/route-modules/app-page/module.js')\n} else {\n if (process.env.__NEXT_EXPERIMENTAL_REACT) {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.prod.js')\n }\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.prod.js')\n }\n }\n }\n}\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactJsxRuntime\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z',\n key: '1s6t7t',\n },\n ],\n ['circle', { cx: '16.5', cy: '7.5', r: '.5', fill: 'currentColor', key: 'w0ekpg' }],\n];\n\n/**\n * @component @name KeyRound\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/key-round\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst KeyRound = createLucideIcon('key-round', __iconNode);\n\nexport default KeyRound;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [['path', { d: 'm9 18 6-6-6-6', key: 'mthhwq' }]];\n\n/**\n * @component @name ChevronRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/chevron-right\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ChevronRight = createLucideIcon('chevron-right', __iconNode);\n\nexport default ChevronRight;\n","/* __next_internal_action_entry_do_not_use__ [{\"0048cbcca99954ce4ac965153105df0ff2da5c6845\":\"listAgentApiCredentials\"},\"src/app/actions/credentials.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_3=/*#__PURE__*/createServerReference(\"0048cbcca99954ce4ac965153105df0ff2da5c6845\",callServer,void 0,findSourceMapURL,\"listAgentApiCredentials\");export{$$RSC_SERVER_ACTION_3 as listAgentApiCredentials};","/* __next_internal_action_entry_do_not_use__ [{\"00c3634c8f903773c5043dd43218a15214177713ee\":\"listCredentials\"},\"src/app/actions/credentials.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"00c3634c8f903773c5043dd43218a15214177713ee\",callServer,void 0,findSourceMapURL,\"listCredentials\");export{$$RSC_SERVER_ACTION_0 as listCredentials};","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M5 12h14', key: '1ays0h' }],\n ['path', { d: 'M12 5v14', key: 's699le' }],\n];\n\n/**\n * @component @name Plus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/plus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Plus = createLucideIcon('plus', __iconNode);\n\nexport default Plus;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [['path', { d: 'm6 9 6 6 6-6', key: 'qrunsl' }]];\n\n/**\n * @component @name ChevronDown\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/chevron-down\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ChevronDown = createLucideIcon('chevron-down', __iconNode);\n\nexport default ChevronDown;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M15 3h6v6', key: '1q9fwt' }],\n ['path', { d: 'M10 14 21 3', key: 'gplh6r' }],\n ['path', { d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6', key: 'a6xqqp' }],\n];\n\n/**\n * @component @name ExternalLink\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/external-link\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ExternalLink = createLucideIcon('external-link', __iconNode);\n\nexport default ExternalLink;\n","/* __next_internal_action_entry_do_not_use__ [{\"00c6d9cb9d82e6cbfc5509e371d7286563f74774bd\":\"getHomeDirectory\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"00c6d9cb9d82e6cbfc5509e371d7286563f74774bd\",callServer,void 0,findSourceMapURL,\"getHomeDirectory\");export{$$RSC_SERVER_ACTION_0 as getHomeDirectory};","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z',\n key: '1kt360',\n },\n ],\n];\n\n/**\n * @component @name Folder\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/folder\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Folder = createLucideIcon('folder', __iconNode);\n\nexport default Folder;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'm12 19-7-7 7-7', key: '1l729n' }],\n ['path', { d: 'M19 12H5', key: 'x3x0zl' }],\n];\n\n/**\n * @component @name ArrowLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/arrow-left\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ArrowLeft = createLucideIcon('arrow-left', __iconNode);\n\nexport default ArrowLeft;\n","export function getBaseName(path: string): string {\n if (!path) return '';\n // Support both Windows (\\) and POSIX (/) separators\n // Using a simpler approach to avoid regex escaping issues in some environments\n const normalized = path.replace(/\\\\/g, '/');\n const parts = normalized.split('/');\n // Filter out empty strings which can happen with trailing slashes or absolute paths\n return parts.filter(Boolean).pop() || '';\n}\n\nexport function getDirName(path: string): string {\n if (!path) return '';\n \n // Normalize separators to / for easier processing\n const normalized = path.replace(/\\\\/g, '/');\n \n // Remove trailing slash if it exists (but not if it's the root '/')\n const withoutTrailing = (normalized.length > 1 && normalized.endsWith('/')) \n ? normalized.slice(0, -1) \n : normalized;\n \n const lastIdx = withoutTrailing.lastIndexOf('/');\n \n if (lastIdx === -1) {\n // No separator found. Could be a relative path or a Windows drive root like \"C:\"\n // For \"C:\\\" or \"C:\", we return the normalized version (C:/ or C:)\n if (path.includes(':') && path.length <= 3) return normalized;\n return '.';\n }\n \n if (lastIdx === 0) return '/';\n \n // On Windows, if we're at \"C:/\", lastIdx might be 2.\n if (path.includes(':') && lastIdx === 2) {\n return withoutTrailing.substring(0, 3); // \"C:/\"\n }\n \n return withoutTrailing.substring(0, lastIdx);\n}\n\nexport function isWindowsAbsolutePath(value: string): boolean {\n return /^[a-zA-Z]:[\\\\/]/.test(value);\n}\n","import { useEffect } from 'react';\n\ntype UseDialogKeyboardShortcutsOptions = {\n enabled?: boolean;\n onConfirm?: () => void | Promise<unknown>;\n onDismiss: () => void;\n canConfirm?: boolean;\n};\n\nconst isEditableTarget = (target: EventTarget | null): boolean => {\n if (!(target instanceof HTMLElement)) return false;\n const tagName = target.tagName.toUpperCase();\n return tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT' || target.isContentEditable;\n};\n\nexport function useDialogKeyboardShortcuts({\n enabled = true,\n onConfirm,\n onDismiss,\n canConfirm = true,\n}: UseDialogKeyboardShortcutsOptions) {\n useEffect(() => {\n if (!enabled) return;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n onDismiss();\n return;\n }\n\n if (event.key !== 'Enter') return;\n if (!onConfirm || !canConfirm) return;\n if (event.defaultPrevented) return;\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n if (isEditableTarget(event.target)) return;\n\n event.preventDefault();\n void onConfirm();\n };\n\n window.addEventListener('keydown', handleKeyDown);\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [enabled, onConfirm, onDismiss, canConfirm]);\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"7f54182753b08e37dd9ab6521ad0bbb55a63c29492\":\"startTtydProcess\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_10=/*#__PURE__*/createServerReference(\"7f54182753b08e37dd9ab6521ad0bbb55a63c29492\",callServer,void 0,findSourceMapURL,\"startTtydProcess\");export{$$RSC_SERVER_ACTION_10 as startTtydProcess};","/* __next_internal_action_entry_do_not_use__ [{\"7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582\":\"saveAttachments\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_19=/*#__PURE__*/createServerReference(\"7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582\",callServer,void 0,findSourceMapURL,\"saveAttachments\");export{$$RSC_SERVER_ACTION_19 as saveAttachments};","/* __next_internal_action_entry_do_not_use__ [{\"00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2\":\"getConfig\"},\"src/app/actions/config.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2\",callServer,void 0,findSourceMapURL,\"getConfig\");export{$$RSC_SERVER_ACTION_0 as getConfig};","/* __next_internal_action_entry_do_not_use__ [{\"40cc060ea047f0ec381489a5449a8469064e726123\":\"updateConfig\"},\"src/app/actions/config.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_2=/*#__PURE__*/createServerReference(\"40cc060ea047f0ec381489a5449a8469064e726123\",callServer,void 0,findSourceMapURL,\"updateConfig\");export{$$RSC_SERVER_ACTION_2 as updateConfig};","export const SESSIONS_UPDATED_STORAGE_KEY = 'viba:sessions-updated-at';\nexport const SESSIONS_UPDATED_EVENT = 'viba:sessions-updated';\n\nexport function notifySessionsUpdated(): void {\n if (typeof window === 'undefined') return;\n\n try {\n localStorage.setItem(SESSIONS_UPDATED_STORAGE_KEY, new Date().toISOString());\n } catch {\n // Ignore localStorage failures (private mode, quota, etc.)\n }\n\n window.dispatchEvent(new CustomEvent(SESSIONS_UPDATED_EVENT));\n}\n","'use client';\n\nimport Image from \"next/image\";\nimport GitRepoSelector from \"@/components/GitRepoSelector\";\n\nexport default function Home() {\n return (\n <>\n <a\n href=\"https://github.com/m0o0scar/viba\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n aria-label=\"Open Viba GitHub repository\"\n className=\"fixed top-0 right-0 z-50 h-20 w-20 cursor-pointer border-l border-b border-gray-400 bg-gray-300/95 shadow-sm backdrop-blur-sm transition-colors hover:bg-gray-500/95 dark:border-slate-700 dark:bg-slate-900/95 dark:hover:bg-slate-800/95\"\n style={{ clipPath: \"polygon(100% 0, 0 0, 100% 100%)\" }}\n >\n <span className=\"absolute left-[67%] top-[33%] -translate-x-1/2 -translate-y-1/2\">\n <Image src=\"/github.png\" alt=\"GitHub\" width={22} height={22} priority className=\"rotate-45\" />\n </span>\n </a>\n <main className=\"flex min-h-screen flex-col items-center justify-start bg-[radial-gradient(circle_at_top_left,_#e0e7ff,_#f5f7fb_55%)] p-4 transition-colors md:p-6 dark:bg-[radial-gradient(circle_at_top_left,_#1b2234,_#0b0e14_55%)]\">\n <GitRepoSelector mode=\"home\" />\n </main>\n </>\n );\n}\n"],"names":["module","exports","require","vendored","React","ReactDOM","ReactServerDOMTurbopackClient","AppRouterContext","HooksClientContext","ServerInsertedHtml","process","env","NEXT_RUNTIME","__NEXT_EXPERIMENTAL_REACT","NODE_ENV","TURBOPACK","ReactJsxRuntime"],"mappings":"6CAAAA,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEC,KAAK,+BCF9BJ,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEE,QAAQ,+BCFjCL,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEG,6BAA6B,8BCFtDN,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACI,gBAAgB,+BCFvCP,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACK,kBAAkB,+BCFzCR,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACM,kBAAkB,+sBCwBjCT,EAAOC,OAAO,CAAGC,EAAQ,CAAA,CAAA,IAAA,iCC1BjCF,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEa,eAAe,gDEcxC,CAAA,ADboC,GCa9B,EAAA,CAAA,EAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAf,AAAe,CAAf,AAAe,CAAf,AAAe,CAAA,CAAA,AAAiB,CAAjB,AAAiB,CAAjB,AAAiB,CAAA,AAAjB,CAAiB,AAAjB,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAA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CAAA,OAEe,SAAS,IACtB,MACE,CAAA,EAAA,EAAA,IAAA,EAAA,EAAA,QAAA,CAAA,WACE,CAAA,EAAA,EAAA,GAAA,EAAC,IAAA,CACC,KAAK,mCACL,OAAO,SACP,IAAI,sBACJ,aAAW,8BACX,UAAU,6OACV,MAAO,CAAE,SAAU,iCAAkC,WAErD,CAAA,EAAA,EAAA,GAAA,EAAC,OAAA,CAAK,UAAU,2EACd,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,OAAK,CAAA,CAAC,IAAI,cAAc,IAAI,SAAS,MAAO,GAAI,OAAQ,GAAI,QAAQ,CAAA,CAAA,EAAC,UAAU,kBAGpF,CAAA,EAAA,EAAA,GAAA,EAAC,OAAA,CAAK,UAAU,iOACd,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,OAAe,CAAA,CAAC,KAAK,aAI9B","ignoreList":[0,1,2,3,4,5,6,7,8,9,12,13,14,16,17]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},28240,31680,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2",b.callServer,void 0,b.findSourceMapURL,"getConfig");a.s(["getConfig",()=>c],28240);let d=(0,b.createServerReference)("40cc060ea047f0ec381489a5449a8469064e726123",b.callServer,void 0,b.findSourceMapURL,"updateConfig");a.s(["updateConfig",()=>d],31680)},52495,a=>{"use strict";let b=(0,a.i(70106).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);a.s(["ExternalLink",()=>b],52495)},5784,a=>{"use strict";let b=(0,a.i(70106).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],5784)},15618,a=>{"use strict";let b=(0,a.i(70106).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},210,a=>{"use strict";let b=(0,a.i(70106).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],210)},89271,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00c6d9cb9d82e6cbfc5509e371d7286563f74774bd",b.callServer,void 0,b.findSourceMapURL,"getHomeDirectory");a.s(["getHomeDirectory",()=>c])},43071,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582",b.callServer,void 0,b.findSourceMapURL,"saveAttachments");a.s(["saveAttachments",()=>c])},92596,a=>{"use strict";let b=(0,a.i(70106).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);a.s(["Folder",()=>b],92596)},11431,94659,a=>{"use strict";function b(a){return a&&a.replace(/\\/g,"/").split("/").filter(Boolean).pop()||""}function c(a){if(!a)return"";let b=a.replace(/\\/g,"/"),c=b.length>1&&b.endsWith("/")?b.slice(0,-1):b,d=c.lastIndexOf("/");return -1===d?a.includes(":")&&a.length<=3?b:".":0===d?"/":a.includes(":")&&2===d?c.substring(0,3):c.substring(0,d)}function d(a){return/^[a-zA-Z]:[\\/]/.test(a)}a.s(["getBaseName",()=>b,"getDirName",()=>c,"isWindowsAbsolutePath",()=>d],11431);var e=a.i(72131);function f({enabled:a=!0,onConfirm:b,onDismiss:c,canConfirm:d=!0}){(0,e.useEffect)(()=>{if(!a)return;let e=a=>{if("Escape"===a.key){a.preventDefault(),c();return}"Enter"!==a.key||!b||!d||a.defaultPrevented||a.metaKey||a.ctrlKey||a.altKey||a.shiftKey||(a=>{if(!(a instanceof HTMLElement))return!1;let b=a.tagName.toUpperCase();return"INPUT"===b||"TEXTAREA"===b||"SELECT"===b||a.isContentEditable})(a.target)||(a.preventDefault(),b())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[a,b,c,d])}a.s(["useDialogKeyboardShortcuts",()=>f],94659)},12627,a=>{"use strict";function b(){}a.s(["SESSIONS_UPDATED_EVENT",0,"viba:sessions-updated","SESSIONS_UPDATED_STORAGE_KEY",0,"viba:sessions-updated-at","notifySessionsUpdated",()=>b])},57780,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("7f54182753b08e37dd9ab6521ad0bbb55a63c29492",b.callServer,void 0,b.findSourceMapURL,"startTtydProcess");a.s(["startTtydProcess",()=>c])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__def2abf8._.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/app-router-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/hooks-client-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/server-inserted-html.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-dom.ts","../../../../node_modules/next/src/server/route-modules/app-page/module.compiled.js","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.ts","../../../../src/app/actions/data%3Ab12d0c%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3Adb6d38%20%3Ctext/javascript%3E","../../../../node_modules/lucide-react/src/icons/external-link.ts","../../../../node_modules/lucide-react/src/icons/chevron-down.ts","../../../../node_modules/lucide-react/src/icons/plus.ts","../../../../node_modules/lucide-react/src/icons/arrow-left.ts","../../../../src/app/actions/data%3Af7b118%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3Acde4ad%20%3Ctext/javascript%3E","../../../../node_modules/lucide-react/src/icons/folder.ts","../../../../src/lib/path.ts","../../../../src/hooks/useDialogKeyboardShortcuts.ts","../../../../src/lib/session-updates.ts","../../../../src/app/actions/data%3Ac45bea%20%3Ctext/javascript%3E"],"sourcesContent":["module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.React\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].AppRouterContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].HooksClientContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].ServerInsertedHtml\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactServerDOMTurbopackClient\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactDOM\n","if (process.env.NEXT_RUNTIME === 'edge') {\n module.exports = require('next/dist/server/route-modules/app-page/module.js')\n} else {\n if (process.env.__NEXT_EXPERIMENTAL_REACT) {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.prod.js')\n }\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.prod.js')\n }\n }\n }\n}\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactJsxRuntime\n","/* __next_internal_action_entry_do_not_use__ [{\"00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2\":\"getConfig\"},\"src/app/actions/config.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"00ef318f52bed3d7ddf6d4a17bdd8c1d08cf4ed7e2\",callServer,void 0,findSourceMapURL,\"getConfig\");export{$$RSC_SERVER_ACTION_0 as getConfig};","/* __next_internal_action_entry_do_not_use__ [{\"40cc060ea047f0ec381489a5449a8469064e726123\":\"updateConfig\"},\"src/app/actions/config.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_2=/*#__PURE__*/createServerReference(\"40cc060ea047f0ec381489a5449a8469064e726123\",callServer,void 0,findSourceMapURL,\"updateConfig\");export{$$RSC_SERVER_ACTION_2 as updateConfig};","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M15 3h6v6', key: '1q9fwt' }],\n ['path', { d: 'M10 14 21 3', key: 'gplh6r' }],\n ['path', { d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6', key: 'a6xqqp' }],\n];\n\n/**\n * @component @name ExternalLink\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/external-link\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ExternalLink = createLucideIcon('external-link', __iconNode);\n\nexport default ExternalLink;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [['path', { d: 'm6 9 6 6 6-6', key: 'qrunsl' }]];\n\n/**\n * @component @name ChevronDown\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/chevron-down\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ChevronDown = createLucideIcon('chevron-down', __iconNode);\n\nexport default ChevronDown;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M5 12h14', key: '1ays0h' }],\n ['path', { d: 'M12 5v14', key: 's699le' }],\n];\n\n/**\n * @component @name Plus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/plus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Plus = createLucideIcon('plus', __iconNode);\n\nexport default Plus;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'm12 19-7-7 7-7', key: '1l729n' }],\n ['path', { d: 'M19 12H5', key: 'x3x0zl' }],\n];\n\n/**\n * @component @name ArrowLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/arrow-left\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst ArrowLeft = createLucideIcon('arrow-left', __iconNode);\n\nexport default ArrowLeft;\n","/* __next_internal_action_entry_do_not_use__ [{\"00c6d9cb9d82e6cbfc5509e371d7286563f74774bd\":\"getHomeDirectory\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_0=/*#__PURE__*/createServerReference(\"00c6d9cb9d82e6cbfc5509e371d7286563f74774bd\",callServer,void 0,findSourceMapURL,\"getHomeDirectory\");export{$$RSC_SERVER_ACTION_0 as getHomeDirectory};","/* __next_internal_action_entry_do_not_use__ [{\"7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582\":\"saveAttachments\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_19=/*#__PURE__*/createServerReference(\"7f9104ca28c248e132eabf493fbc4d0e4b9f9d5582\",callServer,void 0,findSourceMapURL,\"saveAttachments\");export{$$RSC_SERVER_ACTION_19 as saveAttachments};","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z',\n key: '1kt360',\n },\n ],\n];\n\n/**\n * @component @name Folder\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/folder\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Folder = createLucideIcon('folder', __iconNode);\n\nexport default Folder;\n","export function getBaseName(path: string): string {\n if (!path) return '';\n // Support both Windows (\\) and POSIX (/) separators\n // Using a simpler approach to avoid regex escaping issues in some environments\n const normalized = path.replace(/\\\\/g, '/');\n const parts = normalized.split('/');\n // Filter out empty strings which can happen with trailing slashes or absolute paths\n return parts.filter(Boolean).pop() || '';\n}\n\nexport function getDirName(path: string): string {\n if (!path) return '';\n \n // Normalize separators to / for easier processing\n const normalized = path.replace(/\\\\/g, '/');\n \n // Remove trailing slash if it exists (but not if it's the root '/')\n const withoutTrailing = (normalized.length > 1 && normalized.endsWith('/')) \n ? normalized.slice(0, -1) \n : normalized;\n \n const lastIdx = withoutTrailing.lastIndexOf('/');\n \n if (lastIdx === -1) {\n // No separator found. Could be a relative path or a Windows drive root like \"C:\"\n // For \"C:\\\" or \"C:\", we return the normalized version (C:/ or C:)\n if (path.includes(':') && path.length <= 3) return normalized;\n return '.';\n }\n \n if (lastIdx === 0) return '/';\n \n // On Windows, if we're at \"C:/\", lastIdx might be 2.\n if (path.includes(':') && lastIdx === 2) {\n return withoutTrailing.substring(0, 3); // \"C:/\"\n }\n \n return withoutTrailing.substring(0, lastIdx);\n}\n\nexport function isWindowsAbsolutePath(value: string): boolean {\n return /^[a-zA-Z]:[\\\\/]/.test(value);\n}\n","import { useEffect } from 'react';\n\ntype UseDialogKeyboardShortcutsOptions = {\n enabled?: boolean;\n onConfirm?: () => void | Promise<unknown>;\n onDismiss: () => void;\n canConfirm?: boolean;\n};\n\nconst isEditableTarget = (target: EventTarget | null): boolean => {\n if (!(target instanceof HTMLElement)) return false;\n const tagName = target.tagName.toUpperCase();\n return tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT' || target.isContentEditable;\n};\n\nexport function useDialogKeyboardShortcuts({\n enabled = true,\n onConfirm,\n onDismiss,\n canConfirm = true,\n}: UseDialogKeyboardShortcutsOptions) {\n useEffect(() => {\n if (!enabled) return;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n onDismiss();\n return;\n }\n\n if (event.key !== 'Enter') return;\n if (!onConfirm || !canConfirm) return;\n if (event.defaultPrevented) return;\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n if (isEditableTarget(event.target)) return;\n\n event.preventDefault();\n void onConfirm();\n };\n\n window.addEventListener('keydown', handleKeyDown);\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [enabled, onConfirm, onDismiss, canConfirm]);\n}\n","export const SESSIONS_UPDATED_STORAGE_KEY = 'viba:sessions-updated-at';\nexport const SESSIONS_UPDATED_EVENT = 'viba:sessions-updated';\n\nexport function notifySessionsUpdated(): void {\n if (typeof window === 'undefined') return;\n\n try {\n localStorage.setItem(SESSIONS_UPDATED_STORAGE_KEY, new Date().toISOString());\n } catch {\n // Ignore localStorage failures (private mode, quota, etc.)\n }\n\n window.dispatchEvent(new CustomEvent(SESSIONS_UPDATED_EVENT));\n}\n","/* __next_internal_action_entry_do_not_use__ [{\"7f54182753b08e37dd9ab6521ad0bbb55a63c29492\":\"startTtydProcess\"},\"src/app/actions/git.ts\",\"\"] */\"use turbopack no side effects\";import{createServerReference,callServer,findSourceMapURL}from\"private-next-rsc-action-client-wrapper\";const $$RSC_SERVER_ACTION_10=/*#__PURE__*/createServerReference(\"7f54182753b08e37dd9ab6521ad0bbb55a63c29492\",callServer,void 0,findSourceMapURL,\"startTtydProcess\");export{$$RSC_SERVER_ACTION_10 as startTtydProcess};"],"names":["module","exports","require","vendored","React","AppRouterContext","HooksClientContext","ServerInsertedHtml","ReactServerDOMTurbopackClient","ReactDOM","process","env","NEXT_RUNTIME","__NEXT_EXPERIMENTAL_REACT","NODE_ENV","TURBOPACK","ReactJsxRuntime"],"mappings":"6CAAAA,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEC,KAAK,8BCF9BJ,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACE,gBAAgB,+BCFvCL,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACG,kBAAkB,+BCFzCN,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,QAAW,CAACI,kBAAkB,8BCFzCP,GAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEK,6BAA6B,8BCFtDR,GAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEM,QAAQ,+sBCwBzBT,EAAOC,OAAO,CAAGC,EAAQ,CAAA,CAAA,IAAA,iCC1BjCF,EAAOC,OAAO,CACZC,EAAQ,CAAA,CAAA,IAAA,GACRC,QAAQ,CAAC,YAAY,CAAEa,eAAe,+B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||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36438,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(18566),n=e.i(95187);let s=(0,n.createServerReference)("40d65a439c4b85078f5ddb4618fa901298f742db67",n.callServer,void 0,n.findSourceMapURL,"deleteSessionInBackground"),i=(0,n.createServerReference)("40b6c7023c629a851df8731b76ba39bb5e9b78f550",n.callServer,void 0,n.findSourceMapURL,"getSessionDivergence"),l=(0,n.createServerReference)("4094da1667f95ec03753ceb1a28770f39e80112258",n.callServer,void 0,n.findSourceMapURL,"listSessionBaseBranches"),o=(0,n.createServerReference)("40ac13201b8ba20e99a2728eb9a6cd1e74f867f9b6",n.callServer,void 0,n.findSourceMapURL,"mergeSessionToBase"),c=(0,n.createServerReference)("40eefc0c0588c696700d019cb94eb9c89f9cc5709d",n.callServer,void 0,n.findSourceMapURL,"rebaseSessionOntoBase"),d=(0,n.createServerReference)("6041721a6d07f5a29762d7628ecf02f0f2601058db",n.callServer,void 0,n.findSourceMapURL,"updateSessionBaseBranch"),u=(0,n.createServerReference)("60d912235f7d992e87fd165a7ba664f2dcf4ab2590",n.callServer,void 0,n.findSourceMapURL,"writeSessionPromptFile"),h=(0,n.createServerReference)("7fe6bf2f6d18ba2699e9e2b4f9e8e19aac0a0704bf",n.callServer,void 0,n.findSourceMapURL,"setTmuxSessionMouseMode"),m=(0,n.createServerReference)("7f412bde2bb48bd4e13384667e5ff7859bc437b071",n.callServer,void 0,n.findSourceMapURL,"setTmuxSessionStatusVisibility");var p=e.i(63643),f=e.i(34038),b=e.i(27612),x=e.i(78917),g=e.i(75254);let v=(0,g.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),w=(0,g.default)("git-merge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]),y=(0,g.default)("git-pull-request-arrow",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M5 9v12",key:"ih889a"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}]]),k=(0,g.default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]),j=(0,g.default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),N=(0,g.default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),S=(0,g.default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),C=(0,g.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),$=(0,g.default)("grip",[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"19",cy:"5",r:"1",key:"w8mnmm"}],["circle",{cx:"5",cy:"5",r:"1",key:"lttvr7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}],["circle",{cx:"19",cy:"19",r:"1",key:"shf9b7"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]]);var R=e.i(64659),E=e.i(7233);let M=(0,g.default)("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var L=e.i(71689);let P=(0,g.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),T=(0,g.default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var F=e.i(57688),D=e.i(84486);let A=(0,n.createServerReference)("40d590379ae0d6a7e4244ec15bc742f0564abbb66f",n.callServer,void 0,n.findSourceMapURL,"listPathEntries");var I=e.i(31252);let B=(0,g.default)("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]),U=(0,g.default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var q=e.i(27025);let z=(0,g.default)("grid-2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),W=(0,g.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),O=(0,g.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),_=(0,g.default)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),H=(0,g.default)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);var K=e.i(81016),V=e.i(43733);let Y="viba:session-file-browser:view-mode";function G({initialPath:e,worktreePath:a,onConfirm:n,onCancel:s,onPathChange:i}){let l=(0,r.useMemo)(()=>new Set([".png",".jpg",".jpeg",".gif",".webp",".bmp",".svg",".ico",".avif"]),[]),[o,c]=(0,r.useState)(""),[d,u]=(0,r.useState)([]),[h,m]=(0,r.useState)(!1),[b,x]=(0,r.useState)(null),[g,v]=(0,r.useState)(""),[w,y]=(0,r.useState)([]),[k,j]=(0,r.useState)(null),[N,S]=(0,r.useState)("list"),[C,$]=(0,r.useState)(!1),[R,E]=(0,r.useState)({}),[M,P]=(0,r.useState)([]);(0,r.useEffect)(()=>{let t=!0;return(async()=>{try{let r=await (0,D.getHomeDirectory)();if(!t)return;v(r),e||c(r)}catch(e){console.error("Failed to resolve home directory:",e)}e&&t&&c(e)})(),()=>{t=!1}},[e]),(0,r.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await (0,p.getConfig)();if(!e)return;let r=Array.isArray(t.pinnedFolderShortcuts)?t.pinnedFolderShortcuts.filter(e=>"string"==typeof e&&e.trim().length>0):[];P(Array.from(new Set(r)))}catch(e){console.error("Failed to load pinned folder shortcuts:",e)}})(),()=>{e=!1}},[]),(0,r.useEffect)(()=>{try{let e=localStorage.getItem(Y);("list"===e||"grid"===e)&&S(e)}catch{}finally{$(!0)}},[]),(0,r.useEffect)(()=>{if(C)try{localStorage.setItem(Y,N)}catch{}},[C,N]),(0,r.useEffect)(()=>{o&&(async()=>{m(!0),x(null);try{let e=await A(o);u(e)}catch(e){console.error("Failed to list files:",e),x("Failed to load directory contents")}finally{m(!1)}})()},[o]),(0,r.useEffect)(()=>{o&&i?.(o)},[o,i]),(0,r.useEffect)(()=>{y([]),j(null),E({})},[o]);let T=(0,r.useMemo)(()=>new Set(w),[w]),G=(e,t,r)=>{if(e.isDirectory)return void c(e.path);let a=r.metaKey||r.ctrlKey;if(r.shiftKey&&null!==k){let e=Math.min(k,t),r=Math.max(k,t);y(d.slice(e,r+1).filter(e=>!e.isDirectory).map(e=>e.path));return}if(a){y(t=>t.includes(e.path)?t.filter(t=>t!==e.path):[...t,e.path]),j(t);return}y([e.path]),j(t)},X=async()=>{if(x(null),!a)return void x("Cannot paste: Session worktree path is missing.");try{if(m(!0),!navigator.clipboard||!navigator.clipboard.read)throw Error("Clipboard API not supported in this browser");let e=await navigator.clipboard.read(),t=new FormData,r=!1;for(let a of e)for(let e of a.types)if(e.startsWith("image/")){let n=await a.getType(e),s=e.split("/")[1]||"png",i=`pasted-image-${Date.now()}.${s}`,l=new File([n],i,{type:e});t.append(i,l),r=!0;break}if(r){let e=await (0,I.saveAttachments)(a,t);if(e&&e.length>0)return void await n(e);x("Failed to save pasted files.")}else try{let e=await navigator.clipboard.readText();e&&e.trim().startsWith("/")?x("No file content found in clipboard. Copy an image or file first."):x("No file content found in clipboard.")}catch{x("No file content found in clipboard.")}}catch(t){let e=t instanceof Error?t.message:String(t);console.error("Paste error:",t),x(`Failed to read from clipboard: ${e}`)}finally{m(!1)}},J=async e=>{P(e);try{await (0,f.updateConfig)({pinnedFolderShortcuts:e})}catch(e){console.error("Failed to save pinned folder shortcuts:",e),x("Failed to save pinned shortcuts")}},Z=async e=>{(x(null),M.includes(e))?await J(M.filter(t=>t!==e)):await J([...M,e])},Q=(0,r.useCallback)(async()=>{0!==w.length&&await n(w)},[n,w]);return(0,V.useDialogKeyboardShortcuts)({onConfirm:Q,onDismiss:s,canConfirm:w.length>0}),(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4",children:(0,t.jsxs)("div",{className:"bg-base-200 rounded-lg shadow-xl w-full max-w-5xl h-[82vh] flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-base-300",children:[(0,t.jsxs)("h2",{className:"text-xl font-bold flex items-center gap-2",children:[(0,t.jsx)(q.Folder,{className:"w-5 h-5"}),"Browse Files"]}),(0,t.jsx)("button",{onClick:s,className:"btn btn-sm btn-ghost btn-circle",title:"Close file browser",children:"✕"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-base-300",children:[(0,t.jsx)("button",{onClick:()=>{let e=(0,K.getDirName)(o);e&&e!==o&&c(e)},className:"btn btn-sm btn-square btn-ghost",title:"Go Up",disabled:"/"===o||!o,children:(0,t.jsx)(L.ArrowLeft,{className:"w-4 h-4"})}),(0,t.jsxs)("button",{onClick:()=>{g&&o!==g&&c(g)},className:"btn btn-sm btn-ghost gap-1",title:g?`Go to Home Folder (${g})`:"Go to Home Folder",disabled:!g||o===g,children:[(0,t.jsx)(W,{className:"w-4 h-4"}),"Home"]}),(0,t.jsx)("div",{className:"flex-1 overflow-x-auto whitespace-nowrap px-2 font-mono text-sm",children:o}),(0,t.jsxs)("div",{className:"join",children:[(0,t.jsx)("button",{type:"button",onClick:()=>S("list"),className:`btn btn-sm join-item ${"list"===N?"btn-active":"btn-ghost"}`,title:"List view",children:(0,t.jsx)(O,{className:"w-4 h-4"})}),(0,t.jsx)("button",{type:"button",onClick:()=>S("grid"),className:`btn btn-sm join-item ${"grid"===N?"btn-active":"btn-ghost"}`,title:"Grid view",children:(0,t.jsx)(z,{className:"w-4 h-4"})})]}),(0,t.jsxs)("button",{onClick:Q,className:"btn btn-sm btn-primary gap-2",disabled:0===w.length,title:"Insert selected absolute paths",children:["Insert (",w.length,")"]}),(0,t.jsx)("div",{className:"w-[1px] h-6 bg-base-content/10 mx-1"}),(0,t.jsxs)("button",{onClick:X,className:"btn btn-sm btn-ghost gap-2",title:"Paste file/image from clipboard",disabled:!a,children:[(0,t.jsx)(B,{className:"w-4 h-4"}),"Paste"]})]}),M.length>0&&(0,t.jsx)("div",{className:"px-3 py-2 border-b border-base-300 bg-base-200/50",children:(0,t.jsx)("div",{className:"flex items-center gap-2 overflow-x-auto",children:M.map(e=>{let r=e===o,a=e.split(/[\\/]/).filter(Boolean).pop()||e;return(0,t.jsxs)("div",{className:"join shrink-0",children:[(0,t.jsxs)("button",{type:"button",className:`btn btn-xs join-item ${r?"btn-primary":"btn-ghost"}`,onClick:()=>c(e),title:e,children:[(0,t.jsx)(q.Folder,{className:"w-3 h-3"}),a]}),(0,t.jsx)("button",{type:"button",className:"btn btn-xs btn-ghost join-item",onClick:()=>void Z(e),title:`Unpin ${e}`,children:(0,t.jsx)(H,{className:"w-3 h-3"})})]},e)})})}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-2",children:h?(0,t.jsx)("div",{className:"flex justify-center items-center h-full",children:(0,t.jsx)("span",{className:"loading loading-spinner loading-lg"})}):b?(0,t.jsx)("div",{className:"alert alert-error",children:b}):0===d.length?(0,t.jsx)("div",{className:"text-center text-base-content/50 mt-10",children:"Empty directory"}):"list"===N?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-1",children:d.map((e,r)=>{let a=T.has(e.path);return(0,t.jsxs)("div",{className:`flex items-center justify-between p-2 rounded-md cursor-pointer transition-colors border ${a?"bg-primary text-primary-content border-primary":"hover:bg-base-100 border-transparent"}`,onClick:t=>G(e,r,t),title:e.path,children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 overflow-hidden",children:[e.isDirectory?(0,t.jsx)(q.Folder,{className:"w-5 h-5 shrink-0"}):(0,t.jsx)(U,{className:"w-5 h-5 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]}),(0,t.jsx)("span",{className:"text-[10px] opacity-70 shrink-0",children:e.isDirectory?(0,t.jsx)("button",{type:"button",className:"btn btn-ghost btn-xs h-6 min-h-6",onClick:t=>{t.stopPropagation(),Z(e.path)},title:M.includes(e.path)?"Unpin folder":"Pin folder",children:(0,t.jsx)(_,{className:`w-3 h-3 ${M.includes(e.path)?"fill-current":""}`})}):"file"})]},e.path)})}):(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-3",children:d.map((e,r)=>{var a;let n,s=T.has(e.path),i=!e.isDirectory&&-1!==(n=(a=e.name).lastIndexOf("."))&&l.has(a.slice(n).toLowerCase()),o=`/api/file-thumbnail?path=${encodeURIComponent(e.path)}`;return(0,t.jsxs)("button",{type:"button",className:`rounded-lg border text-left overflow-hidden transition-colors ${s?"border-primary bg-primary/15":"border-base-300 hover:bg-base-100"}`,onClick:t=>G(e,r,t),title:e.path,children:[(0,t.jsxs)("div",{className:"aspect-square bg-base-300 flex items-center justify-center overflow-hidden relative",children:[i&&!R[e.path]?(0,t.jsx)(F.default,{src:o,alt:e.name,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1024px) 25vw, 20vw",className:"object-cover",unoptimized:!0,onError:()=>E(t=>({...t,[e.path]:!0}))}):e.isDirectory?(0,t.jsx)(q.Folder,{className:"w-10 h-10 opacity-80"}):(0,t.jsx)(U,{className:"w-10 h-10 opacity-80"}),e.isDirectory&&(0,t.jsx)("button",{type:"button",className:`absolute top-1 right-1 btn btn-xs btn-circle ${M.includes(e.path)?"btn-primary":"btn-ghost bg-base-100/70"}`,onClick:t=>{t.stopPropagation(),Z(e.path)},title:M.includes(e.path)?"Unpin folder":"Pin folder",children:(0,t.jsx)(_,{className:`w-3 h-3 ${M.includes(e.path)?"fill-current":""}`})})]}),(0,t.jsxs)("div",{className:"px-2 py-2",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium",title:e.name,children:e.name}),(0,t.jsx)("div",{className:"text-[10px] opacity-70",children:e.isDirectory?"folder":i?"image":"file"})]})]},e.path)})})}),(0,t.jsx)("div",{className:"p-3 border-t border-base-300 text-xs text-base-content/60 text-center",children:"Click: single select. Cmd/Ctrl+Click: multi-select. Shift+Click: range select. Click a folder to open it."})]})})}var X=e.i(63671);function J(e,t,r){var a,n;let s=(a=e,n=t,`viba-${(a.trim().replace(/[^a-zA-Z0-9_-]/g,"-")||"session").slice(0,40)}-${n}`),i=new URLSearchParams;for(let e of(i.append("arg","new-session"),Array.isArray(r)?r:r?[r]:[]))e.value&&(i.append("arg","-e"),i.append("arg",`${e.name}=${e.value}`));return i.append("arg","-A"),i.append("arg","-s"),i.append("arg",s),`/terminal?${i.toString()}`}let Z=e=>{let t=e.trim();if(!t)return null;if(/^https?:\/\//i.test(t))return t;if(/^[a-z][a-z0-9+.-]*:\/\//i.test(t)||/^(mailto|javascript|data|tel):/i.test(t))return null;let r=t.split("/")[0]??"",a=r.indexOf(":");if(a>0&&!r.startsWith("[")){let e=r.slice(0,a).toLowerCase(),t=r.slice(a+1);if(!(e.includes(".")||"localhost"===e||/^\d{1,3}(?:\.\d{1,3}){3}$/.test(e)||/^\d+$/.test(t)))return null}let n=r.includes("@")?r.slice(r.lastIndexOf("@")+1):r,s=n.startsWith("[")?n.slice(1,Math.max(1,n.indexOf("]"))).toLowerCase():n.split(":")[0].toLowerCase();return`${"localhost"===s||"127.0.0.1"===s||"::1"===s?"http":"https"}://${t}`},Q=e=>`'${e.replace(/'/g,"'\\''")}'`,ee=[{id:"vscode",name:"VS Code",protocol:"vscode"},{id:"cursor",name:"Cursor",protocol:"cursor"},{id:"windsurf",name:"Windsurf",protocol:"windsurf"},{id:"antigravity",name:"Antigravity",protocol:"antigravity"}],et="viba-terminal-size",er="viba-agent-preview-split-ratio",ea="__vibaTerminalBootstrapRegistry",en=/(?:\$|%|#|>) $/,es=e=>Math.max(.2,Math.min(.8,e)),ei=(e,t)=>{let r=e.replace(/\\/g,"/").replace(/\/+$/,""),a=t.replace(/\\/g,"/").replace(/^\/+/,"");return`${r}/${a}`},el=(e,t)=>{let r=t.trim().replace(/\\/g,"/").replace(/\/+$/,"");if(!r)return null;let a=(e=>{let t=e.trim();if(!t)return"";if(t=t.replace(/[#?].*$/,""),/^file:\/\//i.test(t))try{let e=new URL(t);t=decodeURIComponent(e.pathname)}catch{}else if(/^https?:\/\//i.test(t))try{let e=new URL(t);t=decodeURIComponent(e.pathname)}catch{}return(t=t.replace(/^webpack(?:-internal)?:\/\/\/?/,"").replace(/^rsc:\/\//,"").replace(/^\(.*?\)\//,"").replace(/^\/\.\//,"/").replace(/^\.\//,"").replace(/\\/g,"/")).trim()})(e);if(!a)return null;if(a.startsWith("/")||(0,K.isWindowsAbsolutePath)(a))return a;let n=new Set;n.add(a.replace(/^\.\/+/,""));let s=a.indexOf("/src/");for(let e of(s>=0&&n.add(a.slice(s+1)),a.startsWith("src/")&&n.add(a),n))if(e)return ei(r,e);return null},eo=e=>{let t=e.trim();if(!t)return"";let r=t.match(/[A-Za-z_$][\w$]*/);return r?r[0]:""};function ec({repo:e,worktree:a,branch:n,baseBranch:g,sessionName:F,agent:D,startupScript:A,devServerScript:I,initialMessage:B,attachmentNames:U,title:q,sessionMode:z="fast",onExit:W,isResume:O,terminalPersistenceMode:_="shell",onSessionStart:H,agentTerminalSrc:V,floatingTerminalSrc:Y}){let ei="hidden min-[1900px]:inline",ec=(0,r.useRef)(null),ed=(0,r.useRef)(null),eu=(0,r.useRef)(null),eh=(0,r.useRef)(null),em=(0,r.useRef)(null),ep=(0,r.useRef)({startX:0,startRatio:.5}),ef=(0,r.useRef)(null),eb=(0,r.useRef)(null),ex=(0,r.useRef)(null),eg=(0,r.useRef)({injected:!1,timer:null}),ev=(0,r.useMemo)(()=>V||J(F,"agent"),[V,F]),ew=(0,r.useMemo)(()=>Y||J(F,"terminal"),[Y,F]),ey=(0,r.useRef)({agent:"idle",terminal:"idle"}),ek=(0,r.useRef)({agent:!1,terminal:!1});(0,r.useEffect)(()=>{ey.current={agent:"idle",terminal:"idle"},ek.current={agent:!1,terminal:!1},null!==eg.current.timer&&window.clearTimeout(eg.current.timer),eg.current={injected:!1,timer:null}},[F]),(0,r.useEffect)(()=>()=>{null!==eg.current.timer&&(window.clearTimeout(eg.current.timer),eg.current.timer=null)},[]);let ej=(0,r.useCallback)(e=>`viba:terminal-bootstrap:${F}:${e}`,[F]),eN=(0,r.useCallback)(e=>`${F}:${e}`,[F]),eS=(0,r.useCallback)(()=>{let e=window;return e[ea]||(e[ea]={}),e[ea]||null},[]),eC=(0,r.useCallback)(e=>{let t=eS();return t&&t[eN(e)]||"idle"},[eS,eN]),e$=(0,r.useCallback)((e,t)=>{let r=eS();r&&(r[eN(e)]=t)},[eS,eN]),eR=(0,r.useCallback)(e=>{if("done"===ey.current[e]||"done"===eC(e))return!0;try{return"1"===window.sessionStorage.getItem(ej(e))}catch{return!1}},[eC,ej]),eE=(0,r.useCallback)(e=>{let t=ey.current[e],r=eC(e);return"done"!==t&&"in_progress"!==t&&"done"!==r&&"in_progress"!==r&&(ey.current[e]="in_progress",e$(e,"in_progress"),!0)},[eC,e$]),eM=(0,r.useCallback)(e=>{"done"!==ey.current[e]&&(ey.current[e]="idle"),"done"!==eC(e)&&e$(e,"idle")},[eC,e$]),eL=(0,r.useCallback)(e=>{ey.current[e]="done",e$(e,"done");try{window.sessionStorage.setItem(ej(e),"1")}catch{}},[ej,e$]),eP=(0,r.useCallback)(e=>{let t=e?.buffer?.active;if(!t||"function"!=typeof t.getLine)return!0;let r=t.baseY+t.cursorY;for(let e=0;e<6;e+=1){let a=t.getLine(r-e),n=a?.translateToString(!0)??"";if(n.trim())return en.test(n)}return!1},[]),eT=(0,r.useCallback)(()=>{ex.current&&(ex.current(),ex.current=null)},[]),eF=(0,r.useCallback)((e,t)=>{eT();let r=!1,a=null,n=null,s=null,i=()=>{if(r)return;let e=!eP(t);eH(t=>t===e?t:e)};i(),s=window.setInterval(i,1e3);try{if("function"==typeof t.onWriteParsed)a=t.onWriteParsed(i)||null;else{let t=e.contentDocument?.querySelector(".xterm-screen")||e.contentDocument?.body;t&&(n=new MutationObserver(i)).observe(t,{childList:!0,subtree:!0,characterData:!0})}}catch(e){console.error("Failed to setup terminal process monitor:",e)}ex.current=()=>{r=!0,null!==s&&(window.clearInterval(s),s=null),a&&"function"==typeof a.dispose&&a.dispose(),n?.disconnect()}},[eP,eT]);(0,r.useEffect)(()=>()=>{eT()},[eT]),(0,r.useEffect)(()=>{eH(!1),eT()},[F,eT]);let eD=(0,r.useCallback)((e,t,r)=>{if(O)return!1;let a=A?.trim();return!!a&&!eg.current.injected&&(eg.current.injected=!0,null!==eg.current.timer&&window.clearTimeout(eg.current.timer),eg.current.timer=window.setTimeout(()=>{eg.current.timer=null;try{let n;r.paste(a),(n=e.contentDocument?.querySelector("textarea.xterm-helper-textarea"))?n.dispatchEvent(new KeyboardEvent("keypress",{bubbles:!0,cancelable:!0,charCode:13,keyCode:13,key:"Enter",view:t})):r.paste("\r")}catch(e){eg.current.injected=!1,console.error("Failed to inject startup script into terminal iframe:",e)}},500),!0)},[O,A]);(0,r.useEffect)(()=>{if(O||!A?.trim()||eg.current.injected)return;let e=!1,t=(r=0)=>{if(e||eg.current.injected||r>30)return;if(!eR("terminal"))return void window.setTimeout(()=>t(r+1),200);let a=ed.current;if(a){try{let e=a.contentWindow;if(e?.term)return void eD(a,e,e.term)}catch{}window.setTimeout(()=>t(r+1),200)}};return t(),()=>{e=!0}},[eR,eD,O,A]);let[eA,eI]=(0,r.useState)("Initializing..."),[eB,eU]=(0,r.useState)("idle"),[eq,ez]=(0,r.useState)(null),[eW,eO]=(0,r.useState)(!1),[e_,eH]=(0,r.useState)(!1),[eK,eV]=(0,r.useState)(!1),[eY,eG]=(0,r.useState)(!1),[eX,eJ]=(0,r.useState)(!1),[eZ,eQ]=(0,r.useState)(a||e),[e0,e1]=(0,r.useState)(!1),[e2,e3]=(0,r.useState)(g?.trim()||""),[e6,e5]=(0,r.useState)([]),[e7,e4]=(0,r.useState)(!1),e9=(0,r.useRef)(!1),[e8,te]=(0,r.useState)(!1),[tt,tr]=(0,r.useState)({ahead:0,behind:0}),[ta,tn]=(0,r.useState)(!0),[ts,ti]=(0,r.useState)(""),[tl,to]=(0,r.useState)(""),[tc,td]=(0,r.useState)(!1),[tu,th]=(0,r.useState)(!1),[tm,tp]=(0,r.useState)(.5),[tf,tb]=(0,r.useState)(!1),[tx,tg]=(0,r.useState)(!1),[tv,tw]=(0,r.useState)({width:460,height:320}),[ty,tk]=(0,r.useState)(!1),[tj,tN]=(0,r.useState)(!1),tS=(0,r.useRef)({startX:0,startY:0,startWidth:0,startHeight:0}),[tC,t$]=(0,r.useState)("scroll"),[tR,tE]=(0,r.useState)(!1),tM=(0,r.useRef)(0);(0,r.useEffect)(()=>{eQ(a||e)},[e,a]),(0,r.useEffect)(()=>{let e=localStorage.getItem(et);if(e)try{tw(JSON.parse(e))}catch(e){console.error("Failed to parse saved terminal size",e)}let t=localStorage.getItem(er);if(t){let e=Number.parseFloat(t);Number.isNaN(e)||tp(es(e))}tN(!0)},[]),(0,r.useEffect)(()=>{if(!ty)return;let e=e=>{let t=tS.current.startX-e.clientX,r=tS.current.startY-e.clientY;tw({width:Math.max(300,Math.min(window.innerWidth-32,tS.current.startWidth+t)),height:Math.max(100,Math.min(window.innerHeight-32,tS.current.startHeight+r))})},t=()=>{tk(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[ty]),(0,r.useEffect)(()=>{tj&&!ty&&localStorage.setItem(et,JSON.stringify(tv))},[tj,ty,tv]),(0,r.useEffect)(()=>{tj&&!tf&&localStorage.setItem(er,String(tm))},[tm,tj,tf]),(0,r.useEffect)(()=>{if(!tf)return;let e=e=>{let t=em.current;if(!t)return;let r=t.getBoundingClientRect();if(r.width<=0)return;let a=e.clientX-ep.current.startX;tp(es((ep.current.startRatio*r.width+a)/r.width))},t=()=>{tb(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[tf]),(0,r.useEffect)(()=>{if(!tx&&ed.current){let e=ed.current;setTimeout(()=>{try{let t=e.contentWindow;if(t&&t.term){t.term.scrollToBottom?.(),t.focus();let r=e.contentDocument?.querySelector("textarea.xterm-helper-textarea");r&&r.focus()}}catch(e){console.error("Failed to focus/scroll terminal on restore:",e)}},100)}},[tx]);let[tL,tP]=(0,r.useState)("vscode");(0,r.useEffect)(()=>{let e=q?.trim();if(e)return document.title=`${e} | Viba`,()=>{document.title="Viba"};document.title="Viba"},[q]),(0,r.useEffect)(()=>{(async()=>{let e=await (0,p.getConfig)();e.selectedIde&&ee.some(t=>t.id===e.selectedIde)&&tP(e.selectedIde)})()},[]),(0,r.useEffect)(()=>{e3(g?.trim()||""),e5([])},[g,F]),(0,r.useEffect)(()=>{t$("scroll"),tE(!1),tM.current+=1},[F]);let tT=async e=>{let t=e.target.value;tP(t),await (0,f.updateConfig)({selectedIde:t})},tF=(0,r.useCallback)(async(e,t)=>{if("tmux"!==_)return!0;let r=++tM.current;t?.silent||tE(!0);let a="scroll"===e,[n,s]=await Promise.all([h(F,"agent",a),h(F,"terminal",a)]);return r===tM.current&&((t?.silent||tE(!1),[n,s].find(e=>!e.success))?(t?.silent||eI(`Failed to switch to ${"scroll"===e?"scroll mode":"text select mode"}`),!1):(t?.silent||eI("scroll"===e?"Terminal mode: Scroll":"Terminal mode: Text Select"),!0))},[F,_]),tD=(0,r.useCallback)(e=>{"tmux"!==_||ek.current[e]||(async()=>{let t=await m(F,e,!1);t.success&&t.applied?ek.current[e]=!0:t.success||console.error(`Failed to hide tmux status bar for ${e}:`,t.error)})()},[F,_]);(0,r.useEffect)(()=>{"tmux"===_&&tF("scroll",{silent:!0})},[tF,_]);let tA=(0,r.useCallback)(()=>{if("tmux"!==_||tR)return;let e="scroll"===tC?"select":"scroll";t$(e),(async()=>{await tF(e)||t$(tC)})()},[tF,tR,tC,_]),tI=async(t=!0)=>{if(!e||!a||!n||t&&!confirm("Are you sure you want to delete this session? This will remove the branch and worktree."))return!1;ez(null),eU("idle"),eI("Purging session...");try{let e=await s(F);if(!e.success)return console.error("Cleanup failed:",e.error||"Unknown error"),eU("error"),ez(e.error||"Failed to delete session"),!1;(0,X.notifySessionsUpdated)()}catch(e){return console.error("Cleanup request failed:",e),eU("error"),ez(e instanceof Error?e.message:"Unknown error"),!1}return W(!0),!0},tB=async()=>{await tI(!0)},tU=(0,r.useCallback)(e=>new Promise(t=>{let r=ec.current;if(!r)return void t(!1);let a=(n=0)=>{if(n>30)return void t(!1);try{let s=r.contentWindow;if(!s||!s.term)return void setTimeout(()=>a(n+1),300);s.term.paste(e);let i=r.contentDocument?.querySelector("textarea.xterm-helper-textarea");i&&i.focus(),s.focus(),t(!0)}catch(e){console.error("Failed to paste into agent iframe:",e),setTimeout(()=>a(n+1),300)}};a()}),[]),tq=(0,r.useCallback)(async e=>{if(0===e.length)return;e1(!0);let t=`${e.join(" ")} `;eI(await tU(t)?`Inserted ${e.length} file path${1===e.length?"":"s"} into agent input`:"Failed to insert file paths into agent input"),e1(!1)},[tU]),tz=(0,r.useCallback)(async t=>{let r=t.map(eo).filter(Boolean);if(0===r.length)return null;let n=Array.from(new Set([e,a].map(e=>(e||"").trim()).filter(Boolean)));if(0===n.length)return null;for(let e of n)try{let t=await fetch("/api/component-source/resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({componentNames:r,workspaceRoot:e})}),a=await t.json().catch(()=>null);if(!t.ok){console.warn("Component source resolve miss",{componentNames:r,workspaceRoot:e,error:a?.error||t.statusText});continue}let n="string"==typeof a?.sourcePath?a.sourcePath.trim():"",s="string"==typeof a?.resolvedName?a.resolvedName.trim():"";if(n&&s)return{sourcePath:n,resolvedName:s}}catch(e){console.error("Failed to resolve component source path:",e)}return null},[e,a]),tW=(0,r.useCallback)(async()=>{if(F&&!e9.current){e9.current=!0,e4(!0);try{let e=await l(F);e.success?(e5(e.branches??[]),e3(e.baseBranch?.trim()||"")):e.error&&eI(`Failed to load branches: ${e.error}`)}catch(e){console.error("Failed to load base branches:",e)}finally{e9.current=!1,e4(!1)}}},[F]);(0,r.useEffect)(()=>{F&&tW()},[tW,F]);let tO=(0,r.useCallback)(async()=>{if(F)try{let e=await i(F);e.success&&"number"==typeof e.ahead&&"number"==typeof e.behind&&tr({ahead:e.ahead,behind:e.behind})}catch(e){console.error("Failed to load branch divergence:",e)}},[F]);(0,r.useEffect)(()=>{if(!F||!e2)return void tr({ahead:0,behind:0});tO();let e=window.setInterval(()=>{tO()},6e4);return()=>window.clearInterval(e)},[e2,tO,F]);let t_=async()=>{if(!F||!e2)return!1;eV(!0),eI("Merging session branch...");try{let e=await o(F);if(e.success)return eI(`Merged ${e.branchName} into ${e.baseBranch}`),tO(),!0;return eI(`Merge failed: ${e.error}`),!1}catch(e){return console.error("Merge request failed:",e),eI("Merge failed"),!1}finally{eV(!1)}},tH=async()=>{await t_()},[tK,tV]=(0,r.useState)(!1),tY=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{tY.current&&!tY.current.contains(e.target)&&tV(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let tG=async e=>{if(tV(!1),!F)return;let t=e!==e2;eG(!0),eI(t?`Updating base to ${e} and rebasing...`:"Rebasing session branch...");try{if(t){let t=await d(F,e);if(!t.success){eI(`Failed to update base branch: ${t.error}`),eG(!1);return}e3(t.baseBranch),await tW()}let r=await c(F);r.success?(eI(`Rebased ${r.branchName} onto ${r.baseBranch}`),tO()):eI(`Rebase failed: ${r.error}`)}catch(e){console.error("Rebase request failed:",e),eI("Rebase failed")}finally{eG(!1)}},tX=(0,r.useCallback)(async(e,t)=>{let r=Z(e);if(!r)return eI("Please enter a preview URL"),!1;ti(r),td(!1),eI(`Loading preview: ${r}`);try{let e=await fetch("/api/preview-proxy/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({target:r})}),a=await e.json().catch(()=>null);if(!e.ok||!a?.proxyUrl)throw Error(a?.error||"Failed to start preview proxy");return to(a.proxyUrl),t&&tn(!0),eI(`Loaded preview: ${r}`),!0}catch(t){let e=t instanceof Error?t.message:"Failed to load preview";return console.error("Failed to load preview via proxy:",t),eI(`Failed to load preview: ${e}`),!1}},[]),tJ=(0,r.useCallback)(()=>{if(!tl)return void eI("Load a preview before picking elements");let e=eu.current?.contentWindow;if(!e)return void eI("Preview is not ready yet");let t=!tc;e.postMessage({type:"viba:preview-picker-toggle",active:t},"*"),td(t),eI(t?"Picker enabled: click an element in the preview":"Picker disabled")},[tc,tl]),tZ=(0,r.useCallback)(e=>{let t=eu.current?.contentWindow;return t?(t.postMessage(e,"*"),!0):(eI("Preview is not ready yet"),!1)},[]),tQ=(0,r.useCallback)(e=>{tl?tZ({type:"viba:preview-navigation",action:e})&&"reload"===e&&eI("Reloading preview..."):eI("Load a preview before using navigation controls")},[tZ,tl]),t0=(0,r.useCallback)(()=>{tZ({type:"viba:preview-location-request"})},[tZ]),{attachTerminalLinkHandler:t1}=function({onLoadPreview:e}){let t=(0,r.useCallback)((t,r)=>{let a=Z(t);return!!a&&("new_tab"===r?window.open(a,"_blank","noopener,noreferrer"):e(a,!0),!0)},[e]),a=(0,r.useCallback)((e,r,a)=>{r.current?.();let n=e.contentWindow,s=n?.term;if(!n||!s)return;let i=a?.onLinkActivated,l=a?.directOpenBehavior??"preview",o=a?.modifierOpenBehavior??"new_tab",c=e=>e?o:l,d=[],u=e.contentDocument,h={metaKey:!1,ctrlKey:!1,at:0};if(u){let e=e=>{h={metaKey:e.metaKey,ctrlKey:e.ctrlKey,at:Date.now()}};u.addEventListener("mousedown",e,!0),u.addEventListener("click",e,!0),d.push(()=>{u.removeEventListener("mousedown",e,!0),u.removeEventListener("click",e,!0)})}let m=n.open.bind(n);n.open=(...e)=>{let r=c(Date.now()-h.at<1e3&&(h.metaKey||h.ctrlKey));if("string"==typeof e[0]&&e[0].trim())return(i?.(),t(e[0],r))?null:m(...e);if(0===e.length){let e=null;return{opener:null,location:{set href(url){if(i?.(),!t(url,r)&&(e=m())){try{e.opener=null}catch{}e.location.href=url}},get href(){return""}}}}return m(...e)},d.push(()=>{n.open=m});let p=s._core?._linkProviderService?.linkProviders;if(p instanceof Map){for(let e of p.values())if(e&&"object"==typeof e){if("function"==typeof e._handler){let r=e._handler;e._handler=(e,a)=>{i?.(),t(a,c(!!(e?.metaKey||e?.ctrlKey)))||r(e,a)},d.push(()=>{e._handler=r})}if("function"==typeof e.provideLinks){let r=e.provideLinks.bind(e);e.provideLinks=(e,a)=>{r(e,e=>{if(Array.isArray(e))for(let r of e){if(!r||"object"!=typeof r||"function"!=typeof r.activate)continue;let e=r.activate.bind(r);r.activate=(r,a)=>{i?.(),t(a,c(!!(r?.metaKey||r?.ctrlKey)))||e(r,a)}}a(e)})},d.push(()=>{e.provideLinks=r})}}}let f=s.options.linkHandler,b={allowNonHttpProtocols:f?.allowNonHttpProtocols??!1,activate:(e,r,a)=>{i?.(),t(r,c(!!(e?.metaKey||e?.ctrlKey)))||f?.activate?.(e,r,a)},hover:(e,t,r)=>{f?.hover?.(e,t,r)},leave:(e,t,r)=>{f?.leave?.(e,t,r)}};s.options.linkHandler=b,d.push(()=>{s.options.linkHandler=f??null}),r.current=()=>{for(let e of d)e();r.current=null}},[t]);return{handleTerminalLinkOpen:t,attachTerminalLinkHandler:a}}({onLoadPreview:tX});(0,r.useEffect)(()=>{if(!ta||ts.trim())return;let e=window.setTimeout(()=>{eh.current?.focus()},0);return()=>{window.clearTimeout(e)}},[ta,ts]),(0,r.useEffect)(()=>{let t=t=>{if(!eu.current||t.source!==eu.current.contentWindow)return;let r=t.data;if(r&&"object"==typeof r){if("viba:preview-picker-state"===r.type)return void td(!!r.active);if("viba:preview-picker-ready"===r.type){let e=eu.current?.contentWindow;e&&e.postMessage({type:"viba:preview-location-request"},"*");return}if("viba:preview-link-open"===r.type){"string"==typeof r.url&&r.url.trim().length>0&&window.open(r.url,"_blank","noopener,noreferrer");return}if("viba:preview-location-change"===r.type){"string"==typeof r.url&&r.url.trim().length>0&&ti(r.url);return}if("viba:preview-element-selected"===r.type){let t=r.element&&"object"==typeof r.element?r.element:null,n=Array.isArray(t?.reactComponentStack)?t.reactComponentStack:[],s=((e,t)=>{for(let r of e){if(!r||"object"!=typeof r)continue;let e="string"==typeof r.name?r.name.trim():"";if(!e)continue;let a="string"==typeof r.source?.fileName?r.source.fileName.trim():"",n=a?el(a,t):null;if(n)return`${e} (${n})`}return null})(n,a||e),i=n[0]&&"object"==typeof n[0]?n[0].name:void 0,l="string"==typeof i&&i.trim().length>0?i.trim():"",o=new Set(["Suspense","ErrorBoundary","Router","AppRouter","LayoutRouter","RenderFromTemplateContext","ScrollAndFocusHandler","InnerLayoutRouter","RedirectErrorBoundary","NotFoundBoundary","LoadingBoundary","ReactDevOverlay","HotReload","AppContainer","Route","Link","Image","OuterLayoutRouter","Head","StringRefs","Fragment","Profiler","StrictMode","SuspenseList","Script","Page","__next_root_layout_boundary__"]),c=Array.from(new Set(n.map(e=>{if(!e||"object"!=typeof e)return"";let t=e.name;return"string"==typeof t?t.trim():""}).filter(e=>!(!e||o.has(e)||e.startsWith("styled.")||e.startsWith("Styled(")))));console.log("Filtered stack component names:",c);let d=s||l||("string"==typeof t?.selector?t.selector:"");if(console.log("Preview selected element:",t),console.log("Preview selected reactComponentStack:",n),console.log("Preview selected identifier:",d),td(!1),!d)return void eI("Element selected. No identifier was resolved.");(async()=>{let e=s||"";if(!e&&c.length>0){th(!0);try{let t=await tz(c);t?.resolvedName&&t?.sourcePath&&(e=`${t.resolvedName} (${t.sourcePath})`)}finally{th(!1)}}if(!e){if(c.length>0)return eI("Element selected, but source file path could not be resolved for the component");e=d}console.log("Final resolved component identifier:",e),eI(await tU(`${e} `)?`Element identifier sent to agent: ${e}`:"Element selected, but failed to send identifier to agent input")})()}}};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},[tU,e,tz,a]),(0,r.useEffect)(()=>{td(!1)},[tl]);let t2=(0,r.useCallback)(()=>{let e=Z(ts.trim()||tl);e?(window.open(e,"_blank","noopener,noreferrer"),eI(`Opened preview in new tab: ${e}`)):eI("Please enter a preview URL")},[ts,tl]);if(!e)return(0,t.jsx)("div",{className:"p-4 text-error dark:bg-[#0d1117] dark:text-red-300",children:"No repository specified"});if("error"===eB)return(0,t.jsx)("div",{className:"flex h-screen w-full items-center justify-center bg-[#f6f6f8] dark:bg-[#0d1117]",children:(0,t.jsx)("div",{className:"card w-96 border border-slate-200 bg-white shadow-xl dark:border-[#30363d] dark:bg-[#161b22]",children:(0,t.jsxs)("div",{className:"card-body items-center text-center",children:[(0,t.jsx)("h2",{className:"card-title text-error dark:text-red-300",children:"Cleanup failed"}),(0,t.jsx)("p",{className:"text-slate-700 dark:text-slate-300",children:eq||"An unknown error occurred while cleaning up this session."}),(0,t.jsx)("div",{className:"card-actions justify-end",children:(0,t.jsx)("button",{className:"btn btn-primary",onClick:()=>W(),children:"Back to Home"})})]})})});let t3=Array.from(new Set([...e2?[e2]:[],...e6])).filter(e=>e!==n||e===e2),t6=!!I?.trim();return(0,t.jsxs)("div",{className:`flex h-screen w-full flex-col overflow-hidden bg-[#f6f6f8] dark:bg-[#0d1117] ${ty||tf?"select-none":""}`,children:[(ty||tf)&&(0,t.jsx)("div",{className:`fixed inset-0 z-[9999] ${ty?"cursor-row-resize":"cursor-col-resize"}`}),(0,t.jsxs)("div",{className:"z-20 flex items-center justify-between border-b border-slate-200 bg-white px-4 py-2 text-xs font-mono shadow-sm dark:border-[#30363d] dark:bg-[#161b22] dark:text-slate-300",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("button",{className:"btn btn-ghost btn-xs h-6 min-h-6 px-1 text-slate-600 hover:bg-base-content/10 dark:text-slate-300 dark:hover:bg-[#30363d]/60",onClick:()=>W(),title:"Back to Home",children:(0,t.jsx)(C,{className:"w-4 h-4"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"opacity-50",children:"Repo:"}),(0,t.jsx)("span",{className:"font-bold",children:(0,K.getBaseName)(e)})]}),F&&(0,t.jsxs)("div",{className:"hidden min-[1200px]:flex min-w-0 items-center gap-2 text-[10px] opacity-70",children:[(0,t.jsx)("span",{children:"Session:"}),(0,t.jsx)("span",{className:"truncate max-w-[220px]",title:F,children:F})]})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center overflow-hidden rounded border border-base-content/20 dark:border-[#30363d] dark:bg-[#0d1117]",children:[(0,t.jsx)("select",{className:"select select-xs h-6 min-h-6 rounded-none border-none bg-base-200 pr-7 text-slate-700 focus:outline-none dark:bg-[#161b22] dark:text-slate-300",value:tL,onChange:tT,children:ee.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))}),(0,t.jsx)("div",{className:"h-4 w-[1px] bg-base-content/20 dark:bg-[#30363d]"}),(0,t.jsxs)("button",{className:"btn btn-ghost btn-xs h-6 min-h-6 rounded-none border-none text-slate-700 hover:bg-base-content/10 dark:text-slate-300 dark:hover:bg-[#30363d]/60",onClick:()=>{if(!a)return;let e=ee.find(e=>e.id===tL);if(!e)return;let t=`${e.protocol}://file/${encodeURI(a)}`;window.open(t,"_blank")},title:`Open in ${ee.find(e=>e.id===tL)?.name}`,children:[(0,t.jsx)(x.ExternalLink,{className:"w-3 h-3"}),(0,t.jsx)("span",{className:ei,children:"Open"})]})]}),(0,t.jsx)("div",{className:"flex items-center overflow-hidden rounded border border-base-content/20 bg-base-100 dark:border-[#30363d] dark:bg-[#0d1117]",children:(0,t.jsxs)("button",{className:"btn btn-ghost btn-xs h-6 min-h-6 rounded-none border-none px-2 text-slate-700 hover:bg-base-content/10 dark:text-slate-300 dark:hover:bg-[#30363d]/60",onClick:()=>{if(!a||!n)return;let e=new URLSearchParams({path:a,branch:n});window.open(`http://localhost:3100/workspace?${e.toString()}`,"_blank","noopener,noreferrer")},disabled:!a||!n,title:"Open this worktree and branch in Trident",children:[(0,t.jsx)(k,{className:"w-3 h-3"}),(0,t.jsx)("span",{className:ei,children:"Diff"})]})}),(0,t.jsxs)("div",{className:"flex items-center overflow-hidden rounded border border-base-content/20 bg-base-100 dark:border-[#30363d] dark:bg-[#0d1117]",children:[(0,t.jsxs)("button",{className:"btn btn-ghost btn-xs h-6 min-h-6 rounded-none border-none px-2 text-slate-700 hover:bg-base-content/10 dark:text-slate-300 dark:hover:bg-[#30363d]/60",onClick:()=>eJ(!0),disabled:e0,title:"Browse files and insert absolute paths into the agent input",children:[e0?(0,t.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,t.jsx)(S,{className:"w-3 h-3"}),(0,t.jsx)("span",{className:ei,children:"Add Files"})]}),(0,t.jsx)("div",{className:"h-4 w-[1px] bg-base-content/10 dark:bg-[#30363d]"}),(0,t.jsxs)("button",{className:"btn btn-ghost btn-xs h-6 min-h-6 rounded-none border-none px-2 text-slate-700 hover:bg-base-content/10 dark:text-slate-300 dark:hover:bg-[#30363d]/60",onClick:()=>{if(!e||!F)return;let t=`/new?repo=${encodeURIComponent(e)}&prefillFromSession=${encodeURIComponent(F)}`;window.open(t,"_blank","noopener,noreferrer")},title:"Start a new attempt in a new tab with this session context",children:[(0,t.jsx)(E.Plus,{className:"w-3 h-3"}),(0,t.jsx)("span",{className:ei,children:"New Attempt"})]})]}),(0,t.jsx)("div",{className:"flex items-center overflow-hidden rounded border border-base-content/20 bg-base-100 dark:border-[#30363d] dark:bg-[#0d1117]",children:(0,t.jsxs)("button",{className:"btn btn-ghost btn-xs h-6 min-h-6 rounded-none border-none px-2 text-slate-700 hover:bg-base-content/10 dark:text-slate-300 dark:hover:bg-[#30363d]/60",onClick:()=>{let e=I?.trim();if(!e||!ed.current||e_)return;tg(!1);let t=ed.current;eO(!0),eI("Starting dev server...");let r=(a=0)=>{if(a>30){eI("Failed to start dev server: terminal is not ready"),eO(!1);return}try{let n=t.contentWindow;if(n&&n.term){n.term.paste(e);let r=t.contentDocument?.querySelector("textarea.xterm-helper-textarea");r?r.dispatchEvent(new KeyboardEvent("keypress",{bubbles:!0,cancelable:!0,charCode:13,keyCode:13,key:"Enter",view:n})):n.term.paste("\r"),n.focus(),r&&r.focus(),eI("Dev server start command sent"),eO(!1)}else setTimeout(()=>r(a+1),300)}catch(e){console.error("Dev server injection error",e),eI("Failed to start dev server"),eO(!1)}};r()},disabled:!t6||eW||e_,title:t6?e_?"A process is already running in the terminal":"Run dev server script in terminal":"Set a dev server script to enable this button",children:[eW?(0,t.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,t.jsx)(v,{className:"w-3 h-3"}),(0,t.jsx)("span",{className:ei,children:"Dev"})]})}),(0,t.jsx)("div",{className:"flex items-center overflow-hidden rounded border border-base-content/20 bg-base-100 dark:border-[#30363d] dark:bg-[#0d1117]",children:(0,t.jsxs)("button",{className:`btn btn-ghost btn-xs h-6 min-h-6 rounded-none border-none px-2 text-slate-700 hover:bg-base-content/10 dark:text-slate-300 dark:hover:bg-[#30363d]/60 ${"select"===tC?"text-warning":""}`,onClick:tA,disabled:"tmux"!==_||tR,title:"tmux"===_?"scroll"===tC?"Switch to text select mode for easier copy":"Switch to scroll mode for wheel scrollback":"Mode toggle is available only in tmux persistence mode",children:[tR?(0,t.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,t.jsx)(M,{className:"w-3 h-3"}),(0,t.jsx)("span",{children:"scroll"===tC?"Scroll Mode":"Text Select"})]})}),(0,t.jsxs)("div",{className:"relative flex items-center rounded border border-base-content/20 bg-base-100 dark:border-[#30363d] dark:bg-[#0d1117]",ref:tY,children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{className:"btn btn-ghost btn-xs h-6 min-h-6 rounded-none rounded-l border-none px-2 text-slate-700 hover:bg-base-content/10 dark:text-slate-300 dark:hover:bg-[#30363d]/60",onClick:()=>{tV(!tK)},disabled:eY||eK||e8,title:"Select base branch and rebase",children:[eY?(0,t.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,t.jsx)(y,{className:"w-3 h-3"}),(0,t.jsx)("span",{className:ei,children:"Rebase"}),(0,t.jsx)(R.ChevronDown,{className:"w-3 h-3 opacity-50 ml-0.5"})]}),tK&&(0,t.jsxs)("div",{className:"dropdown-content absolute left-0 top-full z-50 mt-1 flex max-h-80 w-64 flex-col overflow-hidden rounded-box border border-base-content/20 bg-base-200 p-0 shadow-xl dark:border-[#30363d] dark:bg-[#161b22] dark:text-slate-300",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-base-content/10 bg-base-200 px-4 py-2 text-[10px] font-bold uppercase tracking-wider opacity-50 dark:border-[#30363d] dark:bg-[#161b22]",children:[(0,t.jsx)("span",{children:"Select Base Branch"}),(e7||e8)&&(0,t.jsx)("span",{className:"loading loading-spinner loading-xs"})]}),(0,t.jsxs)("ul",{className:"menu custom-scrollbar w-full flex-nowrap overflow-y-auto overflow-x-hidden p-0",children:[t3.length>0?t3.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{onClick:()=>tG(e),className:`flex max-w-full items-center justify-between truncate rounded-none py-2 text-xs hover:bg-base-content/10 dark:hover:bg-[#30363d]/60 ${e===e2?"active font-bold":""}`,title:e,children:[(0,t.jsx)("span",{className:"truncate",children:e}),e===e2&&(0,t.jsx)("span",{className:"opacity-70 text-[10px] ml-2 shrink-0",children:"(Current)"})]})},e)):(0,t.jsx)("li",{className:"text-xs px-4 py-2 opacity-50 italic text-center",children:"No other branches found"}),(0,t.jsx)("div",{className:"divider my-1 opacity-50 dark:before:bg-[#30363d] dark:after:bg-[#30363d]"}),(0,t.jsx)("li",{children:(0,t.jsx)("button",{onClick:()=>void tW(),className:"text-[10px] justify-center opacity-70 hover:opacity-100",children:"Refresh Branches"})})]})]})]}),(0,t.jsx)("div",{className:"h-4 w-[1px] bg-base-content/10 dark:bg-[#30363d]"}),(0,t.jsxs)("button",{className:"btn btn-ghost btn-xs btn-success h-6 min-h-6 rounded-none border-none px-2 hover:border-transparent hover:bg-success/20 dark:text-emerald-300",onClick:tH,disabled:eK||eY||e8||!e2,title:e2?`Merge current branch (${n}) into target branch (${e2})`:"Target branch unavailable for this session",children:[eK?(0,t.jsx)("span",{className:"loading loading-spinner loading-xs"}):(0,t.jsx)(w,{className:"w-3 h-3"}),(0,t.jsx)("span",{className:ei,children:"Merge"})]}),(0,t.jsx)("div",{className:"h-4 w-[1px] bg-base-content/10 dark:bg-[#30363d]"}),(0,t.jsxs)("button",{className:"btn btn-ghost btn-error btn-xs h-6 min-h-6 rounded-none rounded-r border-none px-2 hover:border-transparent hover:bg-error/20 dark:text-red-300",onClick:tB,disabled:eK||eY||!a,title:"Clean up and exit",children:[(0,t.jsx)(b.Trash2,{className:"w-3 h-3"}),(0,t.jsx)("span",{className:ei,children:"Delete"})]})]}),e2&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs opacity-80",title:`Divergence against ${e2}`,children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(j,{className:"w-3 h-3"}),tt.ahead]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(N,{className:"w-3 h-3"}),tt.behind]})]}),(0,t.jsx)("div",{className:"mx-2 hidden h-4 w-[1px] bg-base-content/20 dark:bg-[#30363d] min-[1200px]:block"}),(0,t.jsxs)("div",{className:"hidden min-[1200px]:flex min-w-0 max-w-[280px] items-center gap-2",children:[(0,t.jsx)("span",{className:`w-2 h-2 rounded-full ${eA.includes("Error")||eA.includes("failed")?"bg-error":eA.includes("started")||eA.includes("Merged")||eA.includes("Rebased")||eA.includes("sent")?"bg-success":"bg-warning"}`}),(0,t.jsx)("span",{className:"truncate",title:eA,children:eA})]})]})]}),(0,t.jsxs)("div",{ref:em,className:"flex min-h-0 flex-1 gap-3 bg-[#f6f6f8] p-3 dark:bg-[#0d1117]",children:[(0,t.jsxs)("div",{className:"flex h-full min-w-0 flex-col overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm dark:border-[#30363d] dark:bg-[#161b22]",style:{width:`${100*tm}%`},children:[(0,t.jsxs)("div",{className:"flex h-9 items-center gap-2 border-b border-slate-200 px-3 text-[11px] font-semibold uppercase tracking-wide text-slate-600 dark:border-[#30363d] dark:bg-[#161b22] dark:text-slate-400",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-blue-500"}),"Agent Activity"]}),(0,t.jsx)("iframe",{ref:ec,src:ev,className:`h-full w-full border-none dark:invert dark:brightness-90 ${ty||tf?"pointer-events-none":""}`,allow:"clipboard-read; clipboard-write",onLoad:()=>{if(!ec.current)return;let t=ec.current;try{t.contentWindow}catch(e){eI("Error: Cross-Origin access blocked. Ensure proxy is working.");return}t.contentWindow&&(t.contentWindow.onbeforeunload=null,t.contentWindow.addEventListener("beforeunload",e=>{e.stopImmediatePropagation()},!0)),eI("Connecting to terminal...");let r=(n=0)=>{if(n>30)return void eI("Timeout waiting for terminal to be ready");try{let s=t.contentWindow;if(s&&s.term){tD("agent");let i=s.term;t1(t,ef,{directOpenBehavior:"new_tab",modifierOpenBehavior:"new_tab"});try{i.options.theme={...i.options.theme||{},selectionBackground:"rgba(59, 130, 246, 0.4)"}}catch{}let l=eR("agent"),o=!!O&&"tmux"===_;if(l||o){o&&!l?(eL("agent"),eI("Attached to persisted terminal")):eI("Reconnected to terminal"),s.focus();let e=t.contentDocument?.querySelector("textarea.xterm-helper-textarea");e&&e.focus();return}if(!eP(i)&&n<10)return void setTimeout(()=>r(n+1),200);if(!eE("agent")){eI("Reconnected to terminal"),s.focus();let e=t.contentDocument?.querySelector("textarea.xterm-helper-textarea");e&&e.focus();return}let c=a||e,d=`cd ${Q(c)}`;i.paste(d);let h=()=>{let e=t.contentDocument?.querySelector("textarea.xterm-helper-textarea");e?e.dispatchEvent(new KeyboardEvent("keypress",{bubbles:!0,cancelable:!0,charCode:13,keyCode:13,key:"Enter",view:s})):i.paste("\r")};if(h(),eL("agent"),D){let t=async()=>{let t="",r=e=>`if [ -n "$OPENAI_API_KEY" ]; then printenv OPENAI_API_KEY | codex login --with-api-key || exit 1; fi; ${e}`;if(O)t=r("codex resume --last --sandbox danger-full-access --ask-for-approval on-request --search");else{let n=B?.trim()||"",s=(U||[]).map(e=>e.trim()).filter(Boolean).map(t=>`${a||e}-attachments/${t}`),i=[];n&&i.push(n),s.length>0&&i.push(["Attachments:",...s.map(e=>`- ${e}`)].join("\n"));let l=i.join("\n\n"),o="";if(l){let e=[];"plan"===z&&e.push("Plan mode: inspect the relevant code first, present a concrete implementation plan, and wait for explicit user approval before any file edits or write commands."),e.push("After each round, if work is complete and files changed, commit all changes without confirmation. Use a commit message with a clear title and a detailed body explaining what changed and why. If GITHUB_TOKEN or GITLAB_TOKEN is set, push the current branch after committed rounds and create (or update) a pull/merge request with an appropriate title and description; include the pull/merge request link in the first push reply."),e.push("For visual web tasks, use the `agent-browser` skill (https://skills.sh/vercel-labs/agent-browser/agent-browser)."),e.push("For bugfix/debugging tasks, use the `systematic-debugging` skill (https://github.com/obra/superpowers)."),e.push("When working on a visual-related feature or bugfix in a web project, after coding is complete, use `agent-browser` or equivalent Chrome MCP tooling to load the relevant page, take screenshot(s), and include them as evidence in the pull/merge request."),e.push("When your task is completed or you need user attention (for plan approval, permissions, or blockers), send a notification to the matching Viba session.");let t=`${window.location.origin}/api/notifications`;e.push(`Notification API endpoint: ${t} (POST JSON with sessionId, title, and description).`),e.push(`Notification payload template: {"sessionId":"${F}","title":"<short title>","description":"<clear detail about completion or required attention>"}.`);let r=["# Instructions\n",e.map(e=>`- ${e}`).join("\n"),"\n# Task\n",l].join("\n");try{let e=await u(F,r);e.success&&e.filePath?o=` "$(cat ${Q(e.filePath)})"`:(console.error("Failed to write prompt file, falling back to inline prompt",e.error),o=` ${Q(r)}`)}catch(e){console.error("Exception writing prompt file",e),o=` ${Q(r)}`}}let c=`codex --sandbox danger-full-access --ask-for-approval on-request --search${o}`;t=r(c)}t&&(i.paste(t),h(),eI(O?"Resumed session with codex":"Session started with codex"),!O&&H&&H())};setTimeout(()=>t(),500)}else eI(`Session started ${a?"(Worktree)":""}`),!O&&H&&H();s.focus();let m=t.contentDocument?.querySelector("textarea.xterm-helper-textarea");m&&m.focus()}else setTimeout(()=>r(n+1),500)}catch(e){eM("agent"),console.error("Access error during injection:",e),eI("Error accessing terminal: "+String(e))}};setTimeout(()=>r(),1e3)}})]}),(0,t.jsx)("div",{className:"relative h-full w-2 shrink-0 cursor-col-resize rounded bg-slate-200 transition-colors hover:bg-primary/40 dark:bg-[#30363d] dark:hover:bg-primary/60",onMouseDown:e=>{e.preventDefault(),tb(!0),ep.current={startX:e.clientX,startRatio:tm}},role:"separator","aria-orientation":"vertical","aria-label":"Resize preview panel",title:"Drag to resize preview panel",children:(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 h-12 w-[2px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-slate-400 dark:bg-slate-500"})}),(0,t.jsxs)("div",{className:"flex h-full min-w-[360px] flex-1 flex-col overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm dark:border-[#30363d] dark:bg-[#161b22]",children:[(0,t.jsxs)("div",{className:"min-h-0 flex flex-1 flex-col",children:[(0,t.jsxs)("form",{className:"flex items-center gap-2 border-b border-slate-200 bg-white px-3 py-2 dark:border-[#30363d] dark:bg-[#161b22]",onSubmit:e=>{e.preventDefault(),tX(ts,!0)},children:[(0,t.jsxs)("div",{className:"mr-1 flex gap-1.5",children:[(0,t.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-red-400"}),(0,t.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-yellow-400"}),(0,t.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-green-400"})]}),(0,t.jsx)("button",{className:"btn btn-ghost btn-xs h-7 min-h-7 w-7 p-0 text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-[#30363d]/60",type:"button",onClick:()=>tQ("back"),disabled:!tl,title:"Go back","aria-label":"Go back",children:(0,t.jsx)(L.ArrowLeft,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("button",{className:"btn btn-ghost btn-xs h-7 min-h-7 w-7 p-0 text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-[#30363d]/60",type:"button",onClick:()=>tQ("forward"),disabled:!tl,title:"Go forward","aria-label":"Go forward",children:(0,t.jsx)(P,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("button",{className:"btn btn-ghost btn-xs h-7 min-h-7 w-7 p-0 text-slate-500 hover:bg-slate-100 dark:text-slate-400 dark:hover:bg-[#30363d]/60",type:"button",onClick:()=>tQ("reload"),disabled:!tl,title:"Reload preview","aria-label":"Reload preview",children:(0,t.jsx)(T,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("input",{ref:eh,type:"text",className:"input input-xs h-7 min-h-7 w-full border-slate-200 bg-slate-100 font-mono text-slate-700 dark:border-[#30363d] dark:bg-[#0d1117] dark:text-slate-300 dark:placeholder:text-slate-500",value:ts,onChange:e=>ti(e.target.value),placeholder:"http://127.0.0.1:3000",spellCheck:!1}),(0,t.jsx)("button",{className:`btn btn-ghost btn-xs h-7 min-h-7 w-7 p-0 ${tc?"text-success":"text-slate-500 dark:text-slate-400"} hover:bg-slate-100 dark:hover:bg-[#30363d]/60`,type:"button",onClick:tJ,disabled:!tl||tu,title:tc?"Disable picker":"Pick element from preview",children:tu?(0,t.jsx)("span",{className:"loading loading-spinner loading-xs w-3 h-3"}):(0,t.jsx)(M,{className:"h-3 w-3"})}),(0,t.jsxs)("button",{className:"btn btn-xs h-7 min-h-7 gap-1 border-slate-200 bg-white text-slate-700 hover:bg-slate-50 dark:border-[#30363d] dark:bg-[#0d1117] dark:text-slate-300 dark:hover:bg-[#30363d]/60",type:"button",onClick:t2,children:[(0,t.jsx)(x.ExternalLink,{className:"h-3.5 w-3.5"}),"Open in new tab"]})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 bg-slate-50 dark:bg-[#0d1117]",children:ta?tl?(0,t.jsx)("iframe",{ref:eu,src:tl,className:`h-full w-full border-none ${ty||tf?"pointer-events-none":""}`,title:"Dev server preview",onLoad:t0,sandbox:"allow-forms allow-modals allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-downloads"}):(0,t.jsx)("div",{className:"flex h-full items-center justify-center px-6 text-center text-xs text-slate-500 dark:text-slate-400",children:"Run the dev server, or enter a URL above to load a preview."}):(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3 px-6 text-center text-xs text-slate-500 dark:text-slate-400",children:[(0,t.jsx)("p",{children:"Preview is hidden. Use the header Preview button to show it."}),(0,t.jsx)("button",{type:"button",className:"btn btn-xs border-slate-200 bg-white text-slate-700 hover:bg-slate-50 dark:border-[#30363d] dark:bg-[#161b22] dark:text-slate-300 dark:hover:bg-[#30363d]/60",onClick:()=>tn(!0),children:"Show Preview"})]})})]}),!tx&&(0,t.jsx)("div",{className:"flex h-2 cursor-row-resize items-center justify-center border-y border-slate-200 bg-slate-100 dark:border-[#30363d] dark:bg-[#0d1117]",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),tk(!0),tS.current={startX:e.clientX,startY:e.clientY,startWidth:tv.width,startHeight:tv.height}},role:"separator","aria-orientation":"horizontal","aria-label":"Resize build output panel",title:"Drag to resize build output panel",children:(0,t.jsx)($,{className:"h-3 w-3 text-slate-400 dark:text-slate-500"})}),(0,t.jsxs)("div",{className:`${tx?"h-10":"min-h-[160px]"} flex shrink-0 flex-col bg-slate-50 dark:bg-[#161b22]`,style:{height:tx?40:tv.height},children:[(0,t.jsxs)("button",{className:"flex h-10 w-full items-center justify-between border-t border-slate-200 px-3 text-xs font-semibold text-slate-700 hover:bg-slate-100 dark:border-[#30363d] dark:text-slate-300 dark:hover:bg-[#30363d]/40",onClick:()=>tg(e=>!e),title:tx?"Expand terminal":"Collapse terminal",type:"button",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-amber-500"}),"Terminal"]}),(0,t.jsx)(R.ChevronDown,{className:`h-4 w-4 transition-transform ${tx?"rotate-180":""}`})]}),(0,t.jsx)("div",{className:`${tx?"h-0 overflow-hidden":"min-h-0 flex-1 overflow-hidden border-t border-slate-200 bg-white dark:border-[#30363d] dark:bg-[#0d1117]"}`,children:(0,t.jsx)("iframe",{ref:ed,src:ew,className:`h-full w-full border-none dark:invert dark:brightness-90 ${ty||tf?"pointer-events-none":""}`,allow:"clipboard-read; clipboard-write",onLoad:()=>{if(!ed.current)return;let t=ed.current;eT(),eH(!1);try{t.contentWindow}catch(e){console.error("Secondary terminal: Cross-Origin access blocked.");return}t.contentWindow&&(t.contentWindow.onbeforeunload=null,t.contentWindow.addEventListener("beforeunload",e=>{e.stopImmediatePropagation()},!0));let r=(n=0)=>{if(!(n>30))try{let s=t.contentWindow;if(s&&s.term){let i;tD("terminal");let l=s.term;t1(t,eb,{onLinkActivated:()=>tg(!0),directOpenBehavior:"preview",modifierOpenBehavior:"new_tab"});try{l.options.theme={...l.options.theme||{},selectionBackground:"rgba(59, 130, 246, 0.4)"}}catch{}eF(t,l);try{let e=()=>{let e=l.buffer?.active,t="number"==typeof e?.baseY?e.baseY:0;"number"==typeof e?.viewportY&&e.viewportY,l.scrollToBottom?.()};if("function"==typeof l.onWriteParsed)l.onWriteParsed(e);else{let r=t.contentDocument?.querySelector(".xterm-screen")||t.contentDocument?.body;r&&new MutationObserver(e).observe(r,{childList:!0,subtree:!0,characterData:!0})}}catch(e){console.error("Failed to setup auto-scroll:",e)}let o=eR("terminal"),c=!!O&&"tmux"===_;if(o||c){c&&!o&&eL("terminal"),o&&eD(t,s,l),s.focus();let e=t.contentDocument?.querySelector("textarea.xterm-helper-textarea");e&&e.focus();return}if(!eP(l)&&n<10)return void setTimeout(()=>r(n+1),200);if(!eE("terminal")){s.focus();let e=t.contentDocument?.querySelector("textarea.xterm-helper-textarea");e&&e.focus();return}let d=a||e,u=`cd ${Q(d)}`;l.paste(u),(i=t.contentDocument?.querySelector("textarea.xterm-helper-textarea"))?i.dispatchEvent(new KeyboardEvent("keypress",{bubbles:!0,cancelable:!0,charCode:13,keyCode:13,key:"Enter",view:s})):l.paste("\r"),eL("terminal"),eD(t,s,l),s.focus();let h=t.contentDocument?.querySelector("textarea.xterm-helper-textarea");h&&h.focus()}else setTimeout(()=>r(n+1),500)}catch(e){eH(!1),eM("terminal"),console.error("Secondary terminal injection error",e)}};setTimeout(()=>r(),1e3)}})})]})]})]}),eX&&(0,t.jsx)(G,{initialPath:eZ,worktreePath:a,onPathChange:eQ,onConfirm:e=>{eJ(!1),tq(e)},onCancel:()=>eJ(!1)})]})}let ed=(0,n.createServerReference)("40f68c52454ed5bae0d2f5d2fa157e25b3f9433fda",n.callServer,void 0,n.findSourceMapURL,"consumeSessionLaunchContext"),eu=(0,n.createServerReference)("40bbd823e5d74abdf2b24f41a3f0970a90efd25ef9",n.callServer,void 0,n.findSourceMapURL,"getSessionMetadata"),eh=(0,n.createServerReference)("40821a879add8b9d903a3b8e356d32c3fe18352c18",n.callServer,void 0,n.findSourceMapURL,"markSessionInitialized"),em=(0,n.createServerReference)("7ff2d02d30dae19fd173c612b542eab06bb15e289d",n.callServer,void 0,n.findSourceMapURL,"getSessionTerminalSources");var ep=e.i(21060);function ef(){let e=(0,a.useParams)().sessionId,n=Array.isArray(e)?e[0]:e,s=(0,a.useRouter)(),[i,l]=(0,r.useState)(null),[o,c]=(0,r.useState)(!0),[d,u]=(0,r.useState)(null),[h,m]=(0,r.useState)(null),[p,f]=(0,r.useState)(void 0),[b,x]=(0,r.useState)(void 0),[g,v]=(0,r.useState)(void 0),[w,y]=(0,r.useState)(void 0),[k,j]=(0,r.useState)(void 0),[N,S]=(0,r.useState)([]),[C,$]=(0,r.useState)(!0),[R,E]=(0,r.useState)("shell"),M=(0,r.useCallback)(()=>{if(!n)return;window.focus();let e=`/session/${n}`;window.location.pathname!==e&&s.push(e)},[s,n]);(0,r.useEffect)(()=>(document.documentElement.classList.add("session-page"),()=>{document.documentElement.classList.remove("session-page")}),[]),(0,r.useEffect)(()=>{if(!n)return;let e=!1,t=null,r=null,a=0,s=null,i=()=>{null!==r&&(window.clearTimeout(r),r=null)},l=()=>{if(e)return;let t=Math.min(1e4,1e3*2**a);a+=1,r=window.setTimeout(()=>{r=null,c()},t)},o=async e=>{if(!("Notification"in window))return;let t=Notification.permission;"default"===t&&(t=await Notification.requestPermission()),"granted"===t&&(s&&s.close(),(s=new Notification(e.title,{body:e.description,tag:`viba-session-notification-${e.sessionId}`})).onclick=e=>{e.preventDefault(),M(),s?.close()})},c=async()=>{try{let r=await fetch(`/api/notifications/socket?sessionId=${encodeURIComponent(n)}`,{cache:"no-store"});if(!r.ok)throw Error("Failed to initialize notification socket");let s=await r.json();if(!s.wsUrl)throw Error("Notification socket URL missing");if(e)return;(t=new WebSocket(s.wsUrl)).onopen=()=>{a=0,i()},t.onerror=()=>{t?.close()},t.onclose=()=>{e||l()},t.onmessage=e=>{try{let t=JSON.parse(e.data);if("session-notification"!==t.type||t.sessionId!==n||"string"!=typeof t.title||!t.title.trim()||"string"!=typeof t.description||!t.description.trim()||"string"!=typeof t.timestamp)return;o(t)}catch{}}}catch{l()}};return c(),()=>{e=!0,i(),t?.close(),s?.close()}},[M,n]),(0,r.useEffect)(()=>{n&&(async()=>{try{m(null);let e=await (0,ep.startTtydProcess)();if(!e.success){u("Failed to start terminal service"),c(!1);return}E("tmux"===e.persistenceMode?"tmux":"shell");let t=await eu(n);if(!t){u("Session not found"),c(!1);return}l(t);let r=await em(t.sessionName,t.repoPath,t.agent);if(m(r),!1===t.initialized){let e=await ed(n);if(e.success&&e.context){let t=e.context;f(t.initialMessage),x(t.startupScript),v(t.title),y(t.agentProvider),j(t.sessionMode),S(t.attachmentNames||[])}$(!1)}else $(!0);c(!1)}catch(e){console.error("Failed to load session:",e),u("Failed to load session"),c(!1)}})()},[n]);let L=e=>{e?window.location.href="/":s.push("/")},P=async()=>{n&&await eh(n)};return o?(0,t.jsx)("div",{className:"flex h-screen w-full items-center justify-center bg-[#f6f6f8] dark:bg-[#0d1117]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("span",{className:"loading loading-spinner loading-lg text-primary"}),(0,t.jsx)("p",{className:"opacity-60 dark:text-slate-400",children:"Loading session..."})]})}):d||!i?(0,t.jsx)("div",{className:"flex h-screen w-full items-center justify-center bg-[#f6f6f8] dark:bg-[#0d1117]",children:(0,t.jsx)("div",{className:"card w-96 border border-slate-200 bg-white shadow-xl dark:border-[#30363d] dark:bg-[#161b22]",children:(0,t.jsxs)("div",{className:"card-body items-center text-center",children:[(0,t.jsx)("h2",{className:"card-title text-error dark:text-red-300",children:"Error"}),(0,t.jsx)("p",{className:"text-slate-700 dark:text-slate-300",children:d||"Session not found"}),(0,t.jsx)("div",{className:"card-actions justify-end",children:(0,t.jsx)("button",{className:"btn btn-primary",onClick:()=>L(),children:"Back to Home"})})]})})}):h?(0,t.jsx)(ec,{repo:i.repoPath,worktree:i.worktreePath,branch:i.branchName,baseBranch:i.baseBranch,sessionName:i.sessionName,agent:w||i.agent,startupScript:b,devServerScript:i.devServerScript,initialMessage:p,attachmentNames:N,title:g||i.title,sessionMode:k,onExit:L,isResume:C,terminalPersistenceMode:R,onSessionStart:P,agentTerminalSrc:h.agentTerminalSrc,floatingTerminalSrc:h.floatingTerminalSrc}):(0,t.jsx)("div",{className:"flex h-screen w-full items-center justify-center bg-[#f6f6f8] dark:bg-[#0d1117]",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("span",{className:"loading loading-spinner loading-lg text-primary"}),(0,t.jsx)("p",{className:"opacity-60 dark:text-slate-400",children:"Initializing terminals..."})]})})}e.s(["default",()=>ef],36438)}]);
|