viba-cli 0.31.0 → 0.32.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.
Files changed (96) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +2 -2
  3. package/.next/fallback-build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/server/app/_global-error.html +2 -2
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/_not-found.html +2 -2
  14. package/.next/server/app/_not-found.rsc +2 -2
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/.next/server/app/credentials/page/server-reference-manifest.json +7 -7
  22. package/.next/server/app/credentials/page.js.nft.json +1 -1
  23. package/.next/server/app/credentials/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/credentials.html +2 -2
  25. package/.next/server/app/credentials.rsc +4 -4
  26. package/.next/server/app/credentials.segments/_full.segment.rsc +4 -4
  27. package/.next/server/app/credentials.segments/_head.segment.rsc +1 -1
  28. package/.next/server/app/credentials.segments/_index.segment.rsc +2 -2
  29. package/.next/server/app/credentials.segments/_tree.segment.rsc +2 -2
  30. package/.next/server/app/credentials.segments/credentials/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/credentials.segments/credentials.segment.rsc +1 -1
  32. package/.next/server/app/index.html +2 -2
  33. package/.next/server/app/index.rsc +3 -3
  34. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  35. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  36. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  37. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  38. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  39. package/.next/server/app/new/page/server-reference-manifest.json +26 -26
  40. package/.next/server/app/new/page.js.nft.json +1 -1
  41. package/.next/server/app/new/page_client-reference-manifest.js +1 -1
  42. package/.next/server/app/page/server-reference-manifest.json +26 -26
  43. package/.next/server/app/page.js.nft.json +1 -1
  44. package/.next/server/app/page_client-reference-manifest.js +1 -1
  45. package/.next/server/app/session/[sessionId]/page/server-reference-manifest.json +19 -19
  46. package/.next/server/app/session/[sessionId]/page.js.nft.json +1 -1
  47. package/.next/server/app/session/[sessionId]/page_client-reference-manifest.js +1 -1
  48. package/.next/server/chunks/[root-of-the-server]__d29cc8f7._.js +1 -1
  49. package/.next/server/chunks/ssr/[root-of-the-server]__0522f852._.js +1 -1
  50. package/.next/server/chunks/ssr/{[root-of-the-server]__6b1fc6a0._.js → [root-of-the-server]__24e75bff._.js} +2 -2
  51. package/.next/server/chunks/ssr/{[root-of-the-server]__6b1fc6a0._.js.map → [root-of-the-server]__24e75bff._.js.map} +1 -1
  52. package/.next/server/chunks/ssr/[root-of-the-server]__352d2b3c._.js +1 -1
  53. package/.next/server/chunks/ssr/{[root-of-the-server]__b0f6a116._.js → [root-of-the-server]__3a1fdade._.js} +2 -2
  54. package/.next/server/chunks/ssr/{[root-of-the-server]__b0f6a116._.js.map → [root-of-the-server]__3a1fdade._.js.map} +1 -1
  55. package/.next/server/chunks/ssr/[root-of-the-server]__4c388861._.js +1 -1
  56. package/.next/server/chunks/ssr/[root-of-the-server]__4c388861._.js.map +1 -1
  57. package/.next/server/chunks/ssr/[root-of-the-server]__59834c63._.js +1 -1
  58. package/.next/server/chunks/ssr/[root-of-the-server]__59834c63._.js.map +1 -1
  59. package/.next/server/chunks/ssr/[root-of-the-server]__9201693f._.js +1 -1
  60. package/.next/server/chunks/ssr/{[root-of-the-server]__98a2dac6._.js → [root-of-the-server]__c5b21b58._.js} +2 -2
  61. package/.next/server/chunks/ssr/{[root-of-the-server]__98a2dac6._.js.map → [root-of-the-server]__c5b21b58._.js.map} +1 -1
  62. package/.next/server/chunks/ssr/[root-of-the-server]__c790b631._.js +1 -1
  63. package/.next/server/chunks/ssr/[root-of-the-server]__c790b631._.js.map +1 -1
  64. package/.next/server/chunks/ssr/[root-of-the-server]__d5eaad6d._.js +1 -1
  65. package/.next/server/chunks/ssr/[root-of-the-server]__d5eaad6d._.js.map +1 -1
  66. package/.next/server/chunks/ssr/{_80c85b8d._.js → _3595fd8f._.js} +2 -2
  67. package/.next/server/chunks/ssr/{_80c85b8d._.js.map → _3595fd8f._.js.map} +1 -1
  68. package/.next/server/chunks/ssr/_4daf9f1b._.js +3 -0
  69. package/.next/server/chunks/ssr/{_16578c70._.js.map → _4daf9f1b._.js.map} +1 -1
  70. package/.next/server/chunks/ssr/src_app_credentials_page_tsx_63d8d34a._.js +1 -1
  71. package/.next/server/chunks/ssr/src_app_credentials_page_tsx_63d8d34a._.js.map +1 -1
  72. package/.next/server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js +1 -1
  73. package/.next/server/chunks/ssr/src_app_session_[sessionId]_SessionPageClient_tsx_dab490d7._.js.map +1 -1
  74. package/.next/server/chunks/ssr/src_components_GitRepoSelector_tsx_05c81afa._.js +1 -1
  75. package/.next/server/chunks/ssr/src_components_GitRepoSelector_tsx_05c81afa._.js.map +1 -1
  76. package/.next/server/pages/404.html +2 -2
  77. package/.next/server/pages/500.html +2 -2
  78. package/.next/server/server-reference-manifest.js +1 -1
  79. package/.next/server/server-reference-manifest.json +45 -45
  80. package/.next/static/chunks/{2f7d04a733150228.js → 236544dc83ca53f4.js} +1 -1
  81. package/.next/static/chunks/380fa41e092d5f72.js +3 -0
  82. package/.next/static/chunks/617e617438ab03f1.js +3 -0
  83. package/.next/static/chunks/6ac8fa6a53287357.js +1 -0
  84. package/.next/static/chunks/{3bbe09af024f798b.js → 902b430689902917.js} +1 -1
  85. package/.next/static/chunks/91198b2cf326b0a5.css +1 -0
  86. package/.next/static/chunks/{9093805c6f933105.js → d200ceb36c66cd31.js} +1 -1
  87. package/README.md +1 -1
  88. package/package.json +1 -1
  89. package/.next/server/chunks/ssr/_16578c70._.js +0 -3
  90. package/.next/static/chunks/2ad7789dfee5726a.js +0 -3
  91. package/.next/static/chunks/549fc0c87fa93adc.js +0 -1
  92. package/.next/static/chunks/6f2a92feb133f8ae.js +0 -3
  93. package/.next/static/chunks/b35879178d2ce3ea.css +0 -1
  94. /package/.next/static/{3UU5w0dp_7z6yCNYh6_8C → fQjm6ABLSls-tE5co7GZt}/_buildManifest.js +0 -0
  95. /package/.next/static/{3UU5w0dp_7z6yCNYh6_8C → fQjm6ABLSls-tE5co7GZt}/_clientMiddlewareManifest.json +0 -0
  96. /package/.next/static/{3UU5w0dp_7z6yCNYh6_8C → fQjm6ABLSls-tE5co7GZt}/_ssgManifest.js +0 -0
@@ -1 +1 @@
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","../../../../src/app/actions/data%3Afc3008%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3A16ea51%20%3Ctext/javascript%3E","../../../../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 ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMi41ODYgMTcuNDE0QTIgMiAwIDAgMCAyIDE4LjgyOFYyMWExIDEgMCAwIDAgMSAxaDNhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaDFhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaC4xNzJhMiAyIDAgMCAwIDEuNDE0LS41ODZsLjgxNC0uODE0YTYuNSA2LjUgMCAxIDAtNC00eiIgLz4KICA8Y2lyY2xlIGN4PSIxNi41IiBjeT0iNy41IiByPSIuNSIgZmlsbD0iY3VycmVudENvbG9yIiAvPgo8L3N2Zz4K) - 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","/* __next_internal_action_entry_do_not_use__ [{\"0082a317240ed2c0bf4d844469f6a694c4ea1ad231\":\"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(\"0082a317240ed2c0bf4d844469f6a694c4ea1ad231\",callServer,void 0,findSourceMapURL,\"listAgentApiCredentials\");export{$$RSC_SERVER_ACTION_3 as listAgentApiCredentials};","/* __next_internal_action_entry_do_not_use__ [{\"00e80773c37bb01073ecbdf77939b25268ca278a07\":\"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(\"00e80773c37bb01073ecbdf77939b25268ca278a07\",callServer,void 0,findSourceMapURL,\"listCredentials\");export{$$RSC_SERVER_ACTION_0 as listCredentials};","'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 p-4 transition-colors md:p-6\">\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":"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","ignoreList":[0,1,2,3,4,5,6,7,8]}
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","../../../../src/app/actions/data%3A96fd55%20%3Ctext/javascript%3E","../../../../src/app/actions/data%3A5b3d07%20%3Ctext/javascript%3E","../../../../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 ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMi41ODYgMTcuNDE0QTIgMiAwIDAgMCAyIDE4LjgyOFYyMWExIDEgMCAwIDAgMSAxaDNhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaDFhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaC4xNzJhMiAyIDAgMCAwIDEuNDE0LS41ODZsLjgxNC0uODE0YTYuNSA2LjUgMCAxIDAtNC00eiIgLz4KICA8Y2lyY2xlIGN4PSIxNi41IiBjeT0iNy41IiByPSIuNSIgZmlsbD0iY3VycmVudENvbG9yIiAvPgo8L3N2Zz4K) - 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","/* __next_internal_action_entry_do_not_use__ [{\"00f204043370ec2f7a659aa2da6c83aa13b823e10d\":\"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(\"00f204043370ec2f7a659aa2da6c83aa13b823e10d\",callServer,void 0,findSourceMapURL,\"listAgentApiCredentials\");export{$$RSC_SERVER_ACTION_3 as listAgentApiCredentials};","/* __next_internal_action_entry_do_not_use__ [{\"009694d304272aa551188aedb263aa81cdea5c15a0\":\"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(\"009694d304272aa551188aedb263aa81cdea5c15a0\",callServer,void 0,findSourceMapURL,\"listCredentials\");export{$$RSC_SERVER_ACTION_0 as listCredentials};","'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 p-4 transition-colors md:p-6\">\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":"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","ignoreList":[0,1,2,3,4,5,6,7,8]}
@@ -1,3 +1,3 @@
1
- module.exports=[58651,a=>{"use strict";var b=a.i(15271),c=a.i(98624),d=a.i(51817),e=a.i(38642),f=a.i(37359);a.s([],3515),a.i(3515),a.s(["004f544c2f98c0ffe29c88b3e435a4684ac505c244",()=>e.getConfig,"0082a317240ed2c0bf4d844469f6a694c4ea1ad231",()=>f.listAgentApiCredentials,"00e80773c37bb01073ecbdf77939b25268ca278a07",()=>f.listCredentials,"00fd873b7c294edef795fe4dfcb4fb281422533c80",()=>b.getHomeDirectory,"400301d7e1c6c0c6d05abfbc0b70de7d59b02fa15e",()=>b.checkIsGitRepo,"4034e95adf3477b547602c8ca38fbeb1c19b170a3d",()=>d.deleteSession,"403d9783a568e714feef0d07614dd45ecf1eb7a14c",()=>d.listSessions,"4056016ece606f6a0f65260581714715c1d78adf70",()=>e.updateConfig,"406ac2b035e497f1f7455228564309c3a10d66aab7",()=>b.getBranches,"406aea1f9c17b43afbc9cb54039db7c6ad55e17ba2",()=>b.checkAgentCliInstalled,"408cea6f84120d209fd8aae8dadfc351f078213b94",()=>b.listPathEntries,"409ed2581b63653010cb38cea1d297c149fd1b48f6",()=>b.checkDirectoryAccessible,"40d232d362313dcda50e81184b2e4a29ec4cabd146",()=>b.installAgentCli,"40dc8e44456d314551d580cda4b2c438b928089807",()=>d.getSessionPrefillContext,"40ef05ed2b93d833cbca239d38b324dce181a0a3d2",()=>b.listDirectories,"40fde4c82e661a44f2a8bd7595fa21ff59247b93a0",()=>c.resolveRepositoryByName,"602df1c60b1ecf1a01e195747e758f1972dd08bb9d",()=>c.cloneRemoteRepository,"603376fdd5d2a3668d90b291665a5202fe1782f31a",()=>b.checkoutBranch,"6064c5ff074410d342ffa12d21c2425799db25f13c",()=>e.updateRepoSettings,"60db72cdb573fd8e83b31402cf62e339bd1dbb1951",()=>d.saveSessionLaunchContext,"705c40ed6db5f3d31fe99fc055670ec058d840c1ec",()=>d.createSession,"7f6b2e62921042a7611bd4d82d16f3482da13eb7c4",()=>b.getDefaultDevServerScript,"7f8640b8e4f1fc6de62f678a721f7074343fe65efa",()=>b.getStartupScript,"7fba72896b99de10151a43fed29069eeacfee9180f",()=>b.listRepoFiles,"7fc599167abcb0c0b9cd57106f3ec4bf5d49825ee4",()=>b.startTtydProcess,"7fd7451442a014a783de9e172435bddcbc5c223f2d",()=>b.saveAttachments],58651)},45581,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_keytar_23140f5c._.js"].map(b=>a.l(b))).then(()=>b(83034)))},44264,a=>{a.v(a=>Promise.resolve().then(()=>a(33405)))},37706,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__edf0aa7a._.js"].map(b=>a.l(b))).then(()=>b(78775)))}];
1
+ module.exports=[58651,a=>{"use strict";var b=a.i(15271),c=a.i(98624),d=a.i(51817),e=a.i(38642),f=a.i(37359);a.s([],3515),a.i(3515),a.s(["0087dc932bb675326b91d90399b4628e2fc4ff6629",()=>b.getHomeDirectory,"009694d304272aa551188aedb263aa81cdea5c15a0",()=>f.listCredentials,"00a83aca3d227e07cebdcaaf90d9a25b72ed5855c9",()=>e.getConfig,"00f204043370ec2f7a659aa2da6c83aa13b823e10d",()=>f.listAgentApiCredentials,"4003012635fa6ea7a9a0be66512a9fe884157052a5",()=>b.installAgentCli,"40160b835efebb9e90777bef74b1e5f301e3457cc1",()=>b.listDirectories,"401b302cfe10d9ae5e6965b7c32a5270496c45ed2b",()=>d.deleteSession,"4038f97a8e68a16c52fa61547229b7985d0d41fedc",()=>b.listPathEntries,"403efc968ba15b15ab0e66f7130b6e488811c9f5f8",()=>b.checkAgentCliInstalled,"404b24df5d0f8d6dfedb28fea86500700c6eb171aa",()=>b.getBranches,"40570647046d128f80c68c9addb5b69b022a4456db",()=>c.resolveRepositoryByName,"407d9b1571e110efb9487498a1fb9087993f8019ca",()=>e.updateConfig,"4083d812dc018d9b6871f2c7288904a48c744f5321",()=>d.getSessionPrefillContext,"409842925e3ba2cf4115aee943cbe83e33309a58e2",()=>d.listSessions,"4099a48595e32d71a80f011bfb5534692fd59711e3",()=>b.checkIsGitRepo,"40cecac5cc5879492217cc6e678469688d9cacec79",()=>b.checkDirectoryAccessible,"603c290848eb37e485ffc40e7af8aea511f7d63907",()=>c.cloneRemoteRepository,"605c2ee20d638e5d4d32b97bc07e0c3c66a7f1a835",()=>d.saveSessionLaunchContext,"606754b88ec758a14f1515a4d61f0904e286bc8abd",()=>b.checkoutBranch,"60ee333bf4c1940ca77ebbd7460f2ae61fd874dd1b",()=>e.updateRepoSettings,"70f2cc79042a7887bdfb67041d3fc26d41e51b8431",()=>d.createSession,"7f05c221ddadc7718ea66026fc102353decdff75b8",()=>b.saveAttachments,"7f15b9496b029eb0a9ad6f5e910cf792ca7c7550ff",()=>b.getStartupScript,"7f348b3ded9d41a1865eff2cc54d3ac33aa038393f",()=>b.startTtydProcess,"7f53b3d3a3321c1f223ae83158f94a65b481e91bd1",()=>b.getDefaultDevServerScript,"7f664ad303d25431515133164530d72900a6a9fbd0",()=>b.listRepoFiles],58651)},45581,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_keytar_23140f5c._.js"].map(b=>a.l(b))).then(()=>b(83034)))},44264,a=>{a.v(a=>Promise.resolve().then(()=>a(33405)))},37706,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__edf0aa7a._.js"].map(b=>a.l(b))).then(()=>b(78775)))}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__c790b631._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../.next-internal/server/app/page/actions.js%20%28server%20actions%20loader%29"],"sourcesContent":["export {checkDirectoryAccessible as '409ed2581b63653010cb38cea1d297c149fd1b48f6'} from 'ACTIONS_MODULE0'\nexport {listDirectories as '40ef05ed2b93d833cbca239d38b324dce181a0a3d2'} from 'ACTIONS_MODULE0'\nexport {getHomeDirectory as '00fd873b7c294edef795fe4dfcb4fb281422533c80'} from 'ACTIONS_MODULE0'\nexport {checkIsGitRepo as '400301d7e1c6c0c6d05abfbc0b70de7d59b02fa15e'} from 'ACTIONS_MODULE0'\nexport {getBranches as '406ac2b035e497f1f7455228564309c3a10d66aab7'} from 'ACTIONS_MODULE0'\nexport {checkoutBranch as '603376fdd5d2a3668d90b291665a5202fe1782f31a'} from 'ACTIONS_MODULE0'\nexport {startTtydProcess as '7fc599167abcb0c0b9cd57106f3ec4bf5d49825ee4'} from 'ACTIONS_MODULE0'\nexport {getStartupScript as '7f8640b8e4f1fc6de62f678a721f7074343fe65efa'} from 'ACTIONS_MODULE0'\nexport {getDefaultDevServerScript as '7f6b2e62921042a7611bd4d82d16f3482da13eb7c4'} from 'ACTIONS_MODULE0'\nexport {listRepoFiles as '7fba72896b99de10151a43fed29069eeacfee9180f'} from 'ACTIONS_MODULE0'\nexport {checkAgentCliInstalled as '406aea1f9c17b43afbc9cb54039db7c6ad55e17ba2'} from 'ACTIONS_MODULE0'\nexport {installAgentCli as '40d232d362313dcda50e81184b2e4a29ec4cabd146'} from 'ACTIONS_MODULE0'\nexport {cloneRemoteRepository as '602df1c60b1ecf1a01e195747e758f1972dd08bb9d'} from 'ACTIONS_MODULE1'\nexport {resolveRepositoryByName as '40fde4c82e661a44f2a8bd7595fa21ff59247b93a0'} from 'ACTIONS_MODULE1'\nexport {createSession as '705c40ed6db5f3d31fe99fc055670ec058d840c1ec'} from 'ACTIONS_MODULE2'\nexport {deleteSession as '4034e95adf3477b547602c8ca38fbeb1c19b170a3d'} from 'ACTIONS_MODULE2'\nexport {getSessionPrefillContext as '40dc8e44456d314551d580cda4b2c438b928089807'} from 'ACTIONS_MODULE2'\nexport {listSessions as '403d9783a568e714feef0d07614dd45ecf1eb7a14c'} from 'ACTIONS_MODULE2'\nexport {saveSessionLaunchContext as '60db72cdb573fd8e83b31402cf62e339bd1dbb1951'} from 'ACTIONS_MODULE2'\nexport {getConfig as '004f544c2f98c0ffe29c88b3e435a4684ac505c244'} from 'ACTIONS_MODULE3'\nexport {updateConfig as '4056016ece606f6a0f65260581714715c1d78adf70'} from 'ACTIONS_MODULE3'\nexport {updateRepoSettings as '6064c5ff074410d342ffa12d21c2425799db25f13c'} from 'ACTIONS_MODULE3'\nexport {listAgentApiCredentials as '0082a317240ed2c0bf4d844469f6a694c4ea1ad231'} from 'ACTIONS_MODULE4'\nexport {listCredentials as '00e80773c37bb01073ecbdf77939b25268ca278a07'} from 'ACTIONS_MODULE4'\nexport {listPathEntries as '408cea6f84120d209fd8aae8dadfc351f078213b94'} from 'ACTIONS_MODULE0'\nexport {saveAttachments as '7fd7451442a014a783de9e172435bddcbc5c223f2d'} from 'ACTIONS_MODULE0'\n"],"names":[],"mappings":"uCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAYA,EAAA,EAAA,CAAA,CAAA,OAEA,EAAA,EAAA,CAAA,CAAA,OAKA,EAAA,EAAA,CAAA,CAAA,OAGA,EAAA,EAAA,CAAA,CAAA"}
1
+ {"version":3,"sources":["../../../../.next-internal/server/app/page/actions.js%20%28server%20actions%20loader%29"],"sourcesContent":["export {checkDirectoryAccessible as '40cecac5cc5879492217cc6e678469688d9cacec79'} from 'ACTIONS_MODULE0'\nexport {listDirectories as '40160b835efebb9e90777bef74b1e5f301e3457cc1'} from 'ACTIONS_MODULE0'\nexport {getHomeDirectory as '0087dc932bb675326b91d90399b4628e2fc4ff6629'} from 'ACTIONS_MODULE0'\nexport {checkIsGitRepo as '4099a48595e32d71a80f011bfb5534692fd59711e3'} from 'ACTIONS_MODULE0'\nexport {getBranches as '404b24df5d0f8d6dfedb28fea86500700c6eb171aa'} from 'ACTIONS_MODULE0'\nexport {checkoutBranch as '606754b88ec758a14f1515a4d61f0904e286bc8abd'} from 'ACTIONS_MODULE0'\nexport {startTtydProcess as '7f348b3ded9d41a1865eff2cc54d3ac33aa038393f'} from 'ACTIONS_MODULE0'\nexport {getStartupScript as '7f15b9496b029eb0a9ad6f5e910cf792ca7c7550ff'} from 'ACTIONS_MODULE0'\nexport {getDefaultDevServerScript as '7f53b3d3a3321c1f223ae83158f94a65b481e91bd1'} from 'ACTIONS_MODULE0'\nexport {listRepoFiles as '7f664ad303d25431515133164530d72900a6a9fbd0'} from 'ACTIONS_MODULE0'\nexport {checkAgentCliInstalled as '403efc968ba15b15ab0e66f7130b6e488811c9f5f8'} from 'ACTIONS_MODULE0'\nexport {installAgentCli as '4003012635fa6ea7a9a0be66512a9fe884157052a5'} from 'ACTIONS_MODULE0'\nexport {cloneRemoteRepository as '603c290848eb37e485ffc40e7af8aea511f7d63907'} from 'ACTIONS_MODULE1'\nexport {resolveRepositoryByName as '40570647046d128f80c68c9addb5b69b022a4456db'} from 'ACTIONS_MODULE1'\nexport {createSession as '70f2cc79042a7887bdfb67041d3fc26d41e51b8431'} from 'ACTIONS_MODULE2'\nexport {deleteSession as '401b302cfe10d9ae5e6965b7c32a5270496c45ed2b'} from 'ACTIONS_MODULE2'\nexport {getSessionPrefillContext as '4083d812dc018d9b6871f2c7288904a48c744f5321'} from 'ACTIONS_MODULE2'\nexport {listSessions as '409842925e3ba2cf4115aee943cbe83e33309a58e2'} from 'ACTIONS_MODULE2'\nexport {saveSessionLaunchContext as '605c2ee20d638e5d4d32b97bc07e0c3c66a7f1a835'} from 'ACTIONS_MODULE2'\nexport {getConfig as '00a83aca3d227e07cebdcaaf90d9a25b72ed5855c9'} from 'ACTIONS_MODULE3'\nexport {updateConfig as '407d9b1571e110efb9487498a1fb9087993f8019ca'} from 'ACTIONS_MODULE3'\nexport {updateRepoSettings as '60ee333bf4c1940ca77ebbd7460f2ae61fd874dd1b'} from 'ACTIONS_MODULE3'\nexport {listAgentApiCredentials as '00f204043370ec2f7a659aa2da6c83aa13b823e10d'} from 'ACTIONS_MODULE4'\nexport {listCredentials as '009694d304272aa551188aedb263aa81cdea5c15a0'} from 'ACTIONS_MODULE4'\nexport {listPathEntries as '4038f97a8e68a16c52fa61547229b7985d0d41fedc'} from 'ACTIONS_MODULE0'\nexport {saveAttachments as '7f05c221ddadc7718ea66026fc102353decdff75b8'} from 'ACTIONS_MODULE0'\n"],"names":[],"mappings":"uCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAYA,EAAA,EAAA,CAAA,CAAA,OAEA,EAAA,EAAA,CAAA,CAAA,OAKA,EAAA,EAAA,CAAA,CAAA,OAGA,EAAA,EAAA,CAAA,CAAA"}
@@ -1,3 +1,3 @@
1
- module.exports=[72496,a=>{"use strict";var b=a.i(15271),c=a.i(98624),d=a.i(51817),e=a.i(38642),f=a.i(37359);a.s([],17406),a.i(17406),a.s(["004f544c2f98c0ffe29c88b3e435a4684ac505c244",()=>e.getConfig,"0082a317240ed2c0bf4d844469f6a694c4ea1ad231",()=>f.listAgentApiCredentials,"00e80773c37bb01073ecbdf77939b25268ca278a07",()=>f.listCredentials,"00fd873b7c294edef795fe4dfcb4fb281422533c80",()=>b.getHomeDirectory,"400301d7e1c6c0c6d05abfbc0b70de7d59b02fa15e",()=>b.checkIsGitRepo,"4034e95adf3477b547602c8ca38fbeb1c19b170a3d",()=>d.deleteSession,"403d9783a568e714feef0d07614dd45ecf1eb7a14c",()=>d.listSessions,"4056016ece606f6a0f65260581714715c1d78adf70",()=>e.updateConfig,"406ac2b035e497f1f7455228564309c3a10d66aab7",()=>b.getBranches,"406aea1f9c17b43afbc9cb54039db7c6ad55e17ba2",()=>b.checkAgentCliInstalled,"408cea6f84120d209fd8aae8dadfc351f078213b94",()=>b.listPathEntries,"409ed2581b63653010cb38cea1d297c149fd1b48f6",()=>b.checkDirectoryAccessible,"40d232d362313dcda50e81184b2e4a29ec4cabd146",()=>b.installAgentCli,"40dc8e44456d314551d580cda4b2c438b928089807",()=>d.getSessionPrefillContext,"40ef05ed2b93d833cbca239d38b324dce181a0a3d2",()=>b.listDirectories,"40fde4c82e661a44f2a8bd7595fa21ff59247b93a0",()=>c.resolveRepositoryByName,"602df1c60b1ecf1a01e195747e758f1972dd08bb9d",()=>c.cloneRemoteRepository,"603376fdd5d2a3668d90b291665a5202fe1782f31a",()=>b.checkoutBranch,"6064c5ff074410d342ffa12d21c2425799db25f13c",()=>e.updateRepoSettings,"60db72cdb573fd8e83b31402cf62e339bd1dbb1951",()=>d.saveSessionLaunchContext,"705c40ed6db5f3d31fe99fc055670ec058d840c1ec",()=>d.createSession,"7f6b2e62921042a7611bd4d82d16f3482da13eb7c4",()=>b.getDefaultDevServerScript,"7f8640b8e4f1fc6de62f678a721f7074343fe65efa",()=>b.getStartupScript,"7fba72896b99de10151a43fed29069eeacfee9180f",()=>b.listRepoFiles,"7fc599167abcb0c0b9cd57106f3ec4bf5d49825ee4",()=>b.startTtydProcess,"7fd7451442a014a783de9e172435bddcbc5c223f2d",()=>b.saveAttachments],72496)},45581,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_keytar_23140f5c._.js"].map(b=>a.l(b))).then(()=>b(83034)))},44264,a=>{a.v(a=>Promise.resolve().then(()=>a(33405)))},37706,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__edf0aa7a._.js"].map(b=>a.l(b))).then(()=>b(78775)))}];
1
+ module.exports=[72496,a=>{"use strict";var b=a.i(15271),c=a.i(98624),d=a.i(51817),e=a.i(38642),f=a.i(37359);a.s([],17406),a.i(17406),a.s(["0087dc932bb675326b91d90399b4628e2fc4ff6629",()=>b.getHomeDirectory,"009694d304272aa551188aedb263aa81cdea5c15a0",()=>f.listCredentials,"00a83aca3d227e07cebdcaaf90d9a25b72ed5855c9",()=>e.getConfig,"00f204043370ec2f7a659aa2da6c83aa13b823e10d",()=>f.listAgentApiCredentials,"4003012635fa6ea7a9a0be66512a9fe884157052a5",()=>b.installAgentCli,"40160b835efebb9e90777bef74b1e5f301e3457cc1",()=>b.listDirectories,"401b302cfe10d9ae5e6965b7c32a5270496c45ed2b",()=>d.deleteSession,"4038f97a8e68a16c52fa61547229b7985d0d41fedc",()=>b.listPathEntries,"403efc968ba15b15ab0e66f7130b6e488811c9f5f8",()=>b.checkAgentCliInstalled,"404b24df5d0f8d6dfedb28fea86500700c6eb171aa",()=>b.getBranches,"40570647046d128f80c68c9addb5b69b022a4456db",()=>c.resolveRepositoryByName,"407d9b1571e110efb9487498a1fb9087993f8019ca",()=>e.updateConfig,"4083d812dc018d9b6871f2c7288904a48c744f5321",()=>d.getSessionPrefillContext,"409842925e3ba2cf4115aee943cbe83e33309a58e2",()=>d.listSessions,"4099a48595e32d71a80f011bfb5534692fd59711e3",()=>b.checkIsGitRepo,"40cecac5cc5879492217cc6e678469688d9cacec79",()=>b.checkDirectoryAccessible,"603c290848eb37e485ffc40e7af8aea511f7d63907",()=>c.cloneRemoteRepository,"605c2ee20d638e5d4d32b97bc07e0c3c66a7f1a835",()=>d.saveSessionLaunchContext,"606754b88ec758a14f1515a4d61f0904e286bc8abd",()=>b.checkoutBranch,"60ee333bf4c1940ca77ebbd7460f2ae61fd874dd1b",()=>e.updateRepoSettings,"70f2cc79042a7887bdfb67041d3fc26d41e51b8431",()=>d.createSession,"7f05c221ddadc7718ea66026fc102353decdff75b8",()=>b.saveAttachments,"7f15b9496b029eb0a9ad6f5e910cf792ca7c7550ff",()=>b.getStartupScript,"7f348b3ded9d41a1865eff2cc54d3ac33aa038393f",()=>b.startTtydProcess,"7f53b3d3a3321c1f223ae83158f94a65b481e91bd1",()=>b.getDefaultDevServerScript,"7f664ad303d25431515133164530d72900a6a9fbd0",()=>b.listRepoFiles],72496)},45581,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_keytar_23140f5c._.js"].map(b=>a.l(b))).then(()=>b(83034)))},44264,a=>{a.v(a=>Promise.resolve().then(()=>a(33405)))},37706,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__edf0aa7a._.js"].map(b=>a.l(b))).then(()=>b(78775)))}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__d5eaad6d._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../.next-internal/server/app/new/page/actions.js%20%28server%20actions%20loader%29"],"sourcesContent":["export {checkDirectoryAccessible as '409ed2581b63653010cb38cea1d297c149fd1b48f6'} from 'ACTIONS_MODULE0'\nexport {listDirectories as '40ef05ed2b93d833cbca239d38b324dce181a0a3d2'} from 'ACTIONS_MODULE0'\nexport {getHomeDirectory as '00fd873b7c294edef795fe4dfcb4fb281422533c80'} from 'ACTIONS_MODULE0'\nexport {checkIsGitRepo as '400301d7e1c6c0c6d05abfbc0b70de7d59b02fa15e'} from 'ACTIONS_MODULE0'\nexport {getBranches as '406ac2b035e497f1f7455228564309c3a10d66aab7'} from 'ACTIONS_MODULE0'\nexport {checkoutBranch as '603376fdd5d2a3668d90b291665a5202fe1782f31a'} from 'ACTIONS_MODULE0'\nexport {startTtydProcess as '7fc599167abcb0c0b9cd57106f3ec4bf5d49825ee4'} from 'ACTIONS_MODULE0'\nexport {getStartupScript as '7f8640b8e4f1fc6de62f678a721f7074343fe65efa'} from 'ACTIONS_MODULE0'\nexport {getDefaultDevServerScript as '7f6b2e62921042a7611bd4d82d16f3482da13eb7c4'} from 'ACTIONS_MODULE0'\nexport {listRepoFiles as '7fba72896b99de10151a43fed29069eeacfee9180f'} from 'ACTIONS_MODULE0'\nexport {checkAgentCliInstalled as '406aea1f9c17b43afbc9cb54039db7c6ad55e17ba2'} from 'ACTIONS_MODULE0'\nexport {installAgentCli as '40d232d362313dcda50e81184b2e4a29ec4cabd146'} from 'ACTIONS_MODULE0'\nexport {cloneRemoteRepository as '602df1c60b1ecf1a01e195747e758f1972dd08bb9d'} from 'ACTIONS_MODULE1'\nexport {resolveRepositoryByName as '40fde4c82e661a44f2a8bd7595fa21ff59247b93a0'} from 'ACTIONS_MODULE1'\nexport {createSession as '705c40ed6db5f3d31fe99fc055670ec058d840c1ec'} from 'ACTIONS_MODULE2'\nexport {deleteSession as '4034e95adf3477b547602c8ca38fbeb1c19b170a3d'} from 'ACTIONS_MODULE2'\nexport {getSessionPrefillContext as '40dc8e44456d314551d580cda4b2c438b928089807'} from 'ACTIONS_MODULE2'\nexport {listSessions as '403d9783a568e714feef0d07614dd45ecf1eb7a14c'} from 'ACTIONS_MODULE2'\nexport {saveSessionLaunchContext as '60db72cdb573fd8e83b31402cf62e339bd1dbb1951'} from 'ACTIONS_MODULE2'\nexport {getConfig as '004f544c2f98c0ffe29c88b3e435a4684ac505c244'} from 'ACTIONS_MODULE3'\nexport {updateConfig as '4056016ece606f6a0f65260581714715c1d78adf70'} from 'ACTIONS_MODULE3'\nexport {updateRepoSettings as '6064c5ff074410d342ffa12d21c2425799db25f13c'} from 'ACTIONS_MODULE3'\nexport {listAgentApiCredentials as '0082a317240ed2c0bf4d844469f6a694c4ea1ad231'} from 'ACTIONS_MODULE4'\nexport {listCredentials as '00e80773c37bb01073ecbdf77939b25268ca278a07'} from 'ACTIONS_MODULE4'\nexport {listPathEntries as '408cea6f84120d209fd8aae8dadfc351f078213b94'} from 'ACTIONS_MODULE0'\nexport {saveAttachments as '7fd7451442a014a783de9e172435bddcbc5c223f2d'} from 'ACTIONS_MODULE0'\n"],"names":[],"mappings":"uCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAYA,EAAA,EAAA,CAAA,CAAA,OAEA,EAAA,EAAA,CAAA,CAAA,OAKA,EAAA,EAAA,CAAA,CAAA,OAGA,EAAA,EAAA,CAAA,CAAA"}
1
+ {"version":3,"sources":["../../../../.next-internal/server/app/new/page/actions.js%20%28server%20actions%20loader%29"],"sourcesContent":["export {checkDirectoryAccessible as '40cecac5cc5879492217cc6e678469688d9cacec79'} from 'ACTIONS_MODULE0'\nexport {listDirectories as '40160b835efebb9e90777bef74b1e5f301e3457cc1'} from 'ACTIONS_MODULE0'\nexport {getHomeDirectory as '0087dc932bb675326b91d90399b4628e2fc4ff6629'} from 'ACTIONS_MODULE0'\nexport {checkIsGitRepo as '4099a48595e32d71a80f011bfb5534692fd59711e3'} from 'ACTIONS_MODULE0'\nexport {getBranches as '404b24df5d0f8d6dfedb28fea86500700c6eb171aa'} from 'ACTIONS_MODULE0'\nexport {checkoutBranch as '606754b88ec758a14f1515a4d61f0904e286bc8abd'} from 'ACTIONS_MODULE0'\nexport {startTtydProcess as '7f348b3ded9d41a1865eff2cc54d3ac33aa038393f'} from 'ACTIONS_MODULE0'\nexport {getStartupScript as '7f15b9496b029eb0a9ad6f5e910cf792ca7c7550ff'} from 'ACTIONS_MODULE0'\nexport {getDefaultDevServerScript as '7f53b3d3a3321c1f223ae83158f94a65b481e91bd1'} from 'ACTIONS_MODULE0'\nexport {listRepoFiles as '7f664ad303d25431515133164530d72900a6a9fbd0'} from 'ACTIONS_MODULE0'\nexport {checkAgentCliInstalled as '403efc968ba15b15ab0e66f7130b6e488811c9f5f8'} from 'ACTIONS_MODULE0'\nexport {installAgentCli as '4003012635fa6ea7a9a0be66512a9fe884157052a5'} from 'ACTIONS_MODULE0'\nexport {cloneRemoteRepository as '603c290848eb37e485ffc40e7af8aea511f7d63907'} from 'ACTIONS_MODULE1'\nexport {resolveRepositoryByName as '40570647046d128f80c68c9addb5b69b022a4456db'} from 'ACTIONS_MODULE1'\nexport {createSession as '70f2cc79042a7887bdfb67041d3fc26d41e51b8431'} from 'ACTIONS_MODULE2'\nexport {deleteSession as '401b302cfe10d9ae5e6965b7c32a5270496c45ed2b'} from 'ACTIONS_MODULE2'\nexport {getSessionPrefillContext as '4083d812dc018d9b6871f2c7288904a48c744f5321'} from 'ACTIONS_MODULE2'\nexport {listSessions as '409842925e3ba2cf4115aee943cbe83e33309a58e2'} from 'ACTIONS_MODULE2'\nexport {saveSessionLaunchContext as '605c2ee20d638e5d4d32b97bc07e0c3c66a7f1a835'} from 'ACTIONS_MODULE2'\nexport {getConfig as '00a83aca3d227e07cebdcaaf90d9a25b72ed5855c9'} from 'ACTIONS_MODULE3'\nexport {updateConfig as '407d9b1571e110efb9487498a1fb9087993f8019ca'} from 'ACTIONS_MODULE3'\nexport {updateRepoSettings as '60ee333bf4c1940ca77ebbd7460f2ae61fd874dd1b'} from 'ACTIONS_MODULE3'\nexport {listAgentApiCredentials as '00f204043370ec2f7a659aa2da6c83aa13b823e10d'} from 'ACTIONS_MODULE4'\nexport {listCredentials as '009694d304272aa551188aedb263aa81cdea5c15a0'} from 'ACTIONS_MODULE4'\nexport {listPathEntries as '4038f97a8e68a16c52fa61547229b7985d0d41fedc'} from 'ACTIONS_MODULE0'\nexport {saveAttachments as '7f05c221ddadc7718ea66026fc102353decdff75b8'} from 'ACTIONS_MODULE0'\n"],"names":[],"mappings":"uCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAYA,EAAA,EAAA,CAAA,CAAA,OAEA,EAAA,EAAA,CAAA,CAAA,OAKA,EAAA,EAAA,CAAA,CAAA,OAGA,EAAA,EAAA,CAAA,CAAA"}
@@ -1,3 +1,3 @@
1
- module.exports=[64263,69319,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("004f544c2f98c0ffe29c88b3e435a4684ac505c244",b.callServer,void 0,b.findSourceMapURL,"getConfig");a.s(["getConfig",()=>c],64263);let d=(0,b.createServerReference)("4056016ece606f6a0f65260581714715c1d78adf70",b.callServer,void 0,b.findSourceMapURL,"updateConfig");a.s(["updateConfig",()=>d],69319)},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)},33508,a=>{"use strict";let b=(0,a.i(70106).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["X",()=>b],33508)},61310,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00fd873b7c294edef795fe4dfcb4fb281422533c80",b.callServer,void 0,b.findSourceMapURL,"getHomeDirectory");a.s(["getHomeDirectory",()=>c])},69890,24121,92106,4720,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("408cea6f84120d209fd8aae8dadfc351f078213b94",b.callServer,void 0,b.findSourceMapURL,"listPathEntries");a.s(["listPathEntries",()=>c],69890);let d=(0,b.createServerReference)("7fd7451442a014a783de9e172435bddcbc5c223f2d",b.callServer,void 0,b.findSourceMapURL,"saveAttachments");a.s(["saveAttachments",()=>d],24121);var e=a.i(70106);let f=(0,e.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"}]]);a.s(["Clipboard",()=>f],92106);let g=(0,e.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"}]]);a.s(["FileText",()=>g],4720)},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)},996,60087,67329,1239,58988,a=>{"use strict";var b=a.i(70106);let c=(0,b.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"}]]);a.s(["Grid2x2",()=>c],996);let d=(0,b.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"}]]);a.s(["House",()=>d],60087);let e=(0,b.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"}]]);a.s(["List",()=>e],67329);let f=(0,b.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"}]]);a.s(["Pin",()=>f],1239);let g=(0,b.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"}]]);a.s(["PinOff",()=>g],58988)},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)},64724,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(71987),e=a.i(61310),f=a.i(69890),g=a.i(24121),h=a.i(64263),i=a.i(69319),j=a.i(210),k=a.i(92106),l=a.i(4720),m=a.i(92596),n=a.i(996),o=a.i(60087),p=a.i(67329),q=a.i(1239),r=a.i(58988),s=a.i(11431),t=a.i(94659);let u="viba:session-file-browser:view-mode";function v({initialPath:a,worktreePath:v,onConfirm:w,onCancel:x,onPathChange:y}){let z=(0,c.useMemo)(()=>new Set([".png",".jpg",".jpeg",".gif",".webp",".bmp",".svg",".ico",".avif"]),[]),[A,B]=(0,c.useState)(""),[C,D]=(0,c.useState)([]),[E,F]=(0,c.useState)(!1),[G,H]=(0,c.useState)(null),[I,J]=(0,c.useState)(""),[K,L]=(0,c.useState)([]),[M,N]=(0,c.useState)(null),[O,P]=(0,c.useState)("list"),[Q,R]=(0,c.useState)(!1),[S,T]=(0,c.useState)({}),[U,V]=(0,c.useState)([]);(0,c.useEffect)(()=>{let b=!0;return(async()=>{try{let c=await (0,e.getHomeDirectory)();if(!b)return;J(c),a||B(c)}catch(a){console.error("Failed to resolve home directory:",a)}a&&b&&B(a)})(),()=>{b=!1}},[a]),(0,c.useEffect)(()=>{let a=!0;return(async()=>{try{let b=await (0,h.getConfig)();if(!a)return;let c=Array.isArray(b.pinnedFolderShortcuts)?b.pinnedFolderShortcuts.filter(a=>"string"==typeof a&&a.trim().length>0):[];V(Array.from(new Set(c)))}catch(a){console.error("Failed to load pinned folder shortcuts:",a)}})(),()=>{a=!1}},[]),(0,c.useEffect)(()=>{try{let a=localStorage.getItem(u);("list"===a||"grid"===a)&&P(a)}catch{}finally{R(!0)}},[]),(0,c.useEffect)(()=>{if(Q)try{localStorage.setItem(u,O)}catch{}},[Q,O]),(0,c.useEffect)(()=>{A&&(async()=>{F(!0),H(null);try{let a=await (0,f.listPathEntries)(A);D(a)}catch(a){console.error("Failed to list files:",a),H("Failed to load directory contents")}finally{F(!1)}})()},[A]),(0,c.useEffect)(()=>{A&&y?.(A)},[A,y]),(0,c.useEffect)(()=>{L([]),N(null),T({})},[A]);let W=(0,c.useMemo)(()=>new Set(K),[K]),X=(a,b,c)=>{if(a.isDirectory)return void B(a.path);let d=c.metaKey||c.ctrlKey;if(c.shiftKey&&null!==M){let a=Math.min(M,b),c=Math.max(M,b);L(C.slice(a,c+1).filter(a=>!a.isDirectory).map(a=>a.path));return}if(d){L(b=>b.includes(a.path)?b.filter(b=>b!==a.path):[...b,a.path]),N(b);return}L([a.path]),N(b)},Y=async()=>{if(H(null),!v)return void H("Cannot paste: Session worktree path is missing.");try{if(F(!0),!navigator.clipboard||!navigator.clipboard.read)throw Error("Clipboard API not supported in this browser");let a=await navigator.clipboard.read(),b=new FormData,c=!1;for(let d of a)for(let a of d.types)if(a.startsWith("image/")){let e=await d.getType(a),f=a.split("/")[1]||"png",g=`pasted-image-${Date.now()}.${f}`,h=new File([e],g,{type:a});b.append(g,h),c=!0;break}if(c){let a=await (0,g.saveAttachments)(v,b);if(a&&a.length>0)return void await w(a);H("Failed to save pasted files.")}else try{let a=await navigator.clipboard.readText();a&&a.trim().startsWith("/")?H("No file content found in clipboard. Copy an image or file first."):H("No file content found in clipboard.")}catch{H("No file content found in clipboard.")}}catch(b){let a=b instanceof Error?b.message:String(b);console.error("Paste error:",b),H(`Failed to read from clipboard: ${a}`)}finally{F(!1)}},Z=async a=>{V(a);try{await (0,i.updateConfig)({pinnedFolderShortcuts:a})}catch(a){console.error("Failed to save pinned folder shortcuts:",a),H("Failed to save pinned shortcuts")}},$=async a=>{(H(null),U.includes(a))?await Z(U.filter(b=>b!==a)):await Z([...U,a])},_=(0,c.useCallback)(async()=>{0!==K.length&&await w(K)},[w,K]);return(0,t.useDialogKeyboardShortcuts)({onConfirm:_,onDismiss:x,canConfirm:K.length>0}),(0,b.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4",children:(0,b.jsxs)("div",{className:"bg-base-200 rounded-lg shadow-xl w-full max-w-5xl h-[82vh] flex flex-col",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-base-300",children:[(0,b.jsxs)("h2",{className:"text-xl font-bold flex items-center gap-2",children:[(0,b.jsx)(m.Folder,{className:"w-5 h-5"}),"Browse Files"]}),(0,b.jsx)("button",{onClick:x,className:"btn btn-sm btn-ghost btn-circle",title:"Close file browser",children:"✕"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-base-300",children:[(0,b.jsx)("button",{onClick:()=>{let a=(0,s.getDirName)(A);a&&a!==A&&B(a)},className:"btn btn-sm btn-square btn-ghost",title:"Go Up",disabled:"/"===A||!A,children:(0,b.jsx)(j.ArrowLeft,{className:"w-4 h-4"})}),(0,b.jsxs)("button",{onClick:()=>{I&&A!==I&&B(I)},className:"btn btn-sm btn-ghost gap-1",title:I?`Go to Home Folder (${I})`:"Go to Home Folder",disabled:!I||A===I,children:[(0,b.jsx)(o.House,{className:"w-4 h-4"}),"Home"]}),(0,b.jsx)("div",{className:"flex-1 overflow-x-auto whitespace-nowrap px-2 font-mono text-sm",children:A}),(0,b.jsxs)("div",{className:"join",children:[(0,b.jsx)("button",{type:"button",onClick:()=>P("list"),className:`btn btn-sm join-item ${"list"===O?"btn-active":"btn-ghost"}`,title:"List view",children:(0,b.jsx)(p.List,{className:"w-4 h-4"})}),(0,b.jsx)("button",{type:"button",onClick:()=>P("grid"),className:`btn btn-sm join-item ${"grid"===O?"btn-active":"btn-ghost"}`,title:"Grid view",children:(0,b.jsx)(n.Grid2x2,{className:"w-4 h-4"})})]}),(0,b.jsxs)("button",{onClick:_,className:"btn btn-sm btn-primary gap-2",disabled:0===K.length,title:"Insert selected absolute paths",children:["Insert (",K.length,")"]}),(0,b.jsx)("div",{className:"w-[1px] h-6 bg-base-content/10 mx-1"}),(0,b.jsxs)("button",{onClick:Y,className:"btn btn-sm btn-ghost gap-2",title:"Paste file/image from clipboard",disabled:!v,children:[(0,b.jsx)(k.Clipboard,{className:"w-4 h-4"}),"Paste"]})]}),U.length>0&&(0,b.jsx)("div",{className:"px-3 py-2 border-b border-base-300 bg-base-200/50",children:(0,b.jsx)("div",{className:"flex items-center gap-2 overflow-x-auto",children:U.map(a=>{let c=a===A,d=a.split(/[\\/]/).filter(Boolean).pop()||a;return(0,b.jsxs)("div",{className:"join shrink-0",children:[(0,b.jsxs)("button",{type:"button",className:`btn btn-xs join-item ${c?"btn-primary":"btn-ghost"}`,onClick:()=>B(a),title:a,children:[(0,b.jsx)(m.Folder,{className:"w-3 h-3"}),d]}),(0,b.jsx)("button",{type:"button",className:"btn btn-xs btn-ghost join-item",onClick:()=>void $(a),title:`Unpin ${a}`,children:(0,b.jsx)(r.PinOff,{className:"w-3 h-3"})})]},a)})})}),(0,b.jsx)("div",{className:"flex-1 overflow-y-auto p-2",children:E?(0,b.jsx)("div",{className:"flex justify-center items-center h-full",children:(0,b.jsx)("span",{className:"loading loading-spinner loading-lg"})}):G?(0,b.jsx)("div",{className:"alert alert-error",children:G}):0===C.length?(0,b.jsx)("div",{className:"text-center text-base-content/50 mt-10",children:"Empty directory"}):"list"===O?(0,b.jsx)("div",{className:"grid grid-cols-1 gap-1",children:C.map((a,c)=>{let d=W.has(a.path);return(0,b.jsxs)("div",{className:`flex items-center justify-between p-2 rounded-md cursor-pointer transition-colors border ${d?"bg-primary text-primary-content border-primary":"hover:bg-base-100 border-transparent"}`,onClick:b=>X(a,c,b),title:a.path,children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 overflow-hidden",children:[a.isDirectory?(0,b.jsx)(m.Folder,{className:"w-5 h-5 shrink-0"}):(0,b.jsx)(l.FileText,{className:"w-5 h-5 shrink-0"}),(0,b.jsx)("span",{className:"truncate",children:a.name})]}),(0,b.jsx)("span",{className:"text-[10px] opacity-70 shrink-0",children:a.isDirectory?(0,b.jsx)("button",{type:"button",className:"btn btn-ghost btn-xs h-6 min-h-6",onClick:b=>{b.stopPropagation(),$(a.path)},title:U.includes(a.path)?"Unpin folder":"Pin folder",children:(0,b.jsx)(q.Pin,{className:`w-3 h-3 ${U.includes(a.path)?"fill-current":""}`})}):"file"})]},a.path)})}):(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-3",children:C.map((a,c)=>{var e;let f,g=W.has(a.path),h=!a.isDirectory&&-1!==(f=(e=a.name).lastIndexOf("."))&&z.has(e.slice(f).toLowerCase()),i=`/api/file-thumbnail?path=${encodeURIComponent(a.path)}`;return(0,b.jsxs)("button",{type:"button",className:`rounded-lg border text-left overflow-hidden transition-colors ${g?"border-primary bg-primary/15":"border-base-300 hover:bg-base-100"}`,onClick:b=>X(a,c,b),title:a.path,children:[(0,b.jsxs)("div",{className:"aspect-square bg-base-300 flex items-center justify-center overflow-hidden relative",children:[h&&!S[a.path]?(0,b.jsx)(d.default,{src:i,alt:a.name,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1024px) 25vw, 20vw",className:"object-cover",unoptimized:!0,onError:()=>T(b=>({...b,[a.path]:!0}))}):a.isDirectory?(0,b.jsx)(m.Folder,{className:"w-10 h-10 opacity-80"}):(0,b.jsx)(l.FileText,{className:"w-10 h-10 opacity-80"}),a.isDirectory&&(0,b.jsx)("button",{type:"button",className:`absolute top-1 right-1 btn btn-xs btn-circle ${U.includes(a.path)?"btn-primary":"btn-ghost bg-base-100/70"}`,onClick:b=>{b.stopPropagation(),$(a.path)},title:U.includes(a.path)?"Unpin folder":"Pin folder",children:(0,b.jsx)(q.Pin,{className:`w-3 h-3 ${U.includes(a.path)?"fill-current":""}`})})]}),(0,b.jsxs)("div",{className:"px-2 py-2",children:[(0,b.jsx)("div",{className:"truncate text-sm font-medium",title:a.name,children:a.name}),(0,b.jsx)("div",{className:"text-[10px] opacity-70",children:a.isDirectory?"folder":h?"image":"file"})]})]},a.path)})})}),(0,b.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."})]})})}a.s(["default",()=>v])},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])},42238,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("7fc599167abcb0c0b9cd57106f3ec4bf5d49825ee4",b.callServer,void 0,b.findSourceMapURL,"startTtydProcess");a.s(["startTtydProcess",()=>c])}];
1
+ module.exports=[89338,81816,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("00a83aca3d227e07cebdcaaf90d9a25b72ed5855c9",b.callServer,void 0,b.findSourceMapURL,"getConfig");a.s(["getConfig",()=>c],89338);let d=(0,b.createServerReference)("407d9b1571e110efb9487498a1fb9087993f8019ca",b.callServer,void 0,b.findSourceMapURL,"updateConfig");a.s(["updateConfig",()=>d],81816)},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)},33508,a=>{"use strict";let b=(0,a.i(70106).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["X",()=>b],33508)},36179,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("0087dc932bb675326b91d90399b4628e2fc4ff6629",b.callServer,void 0,b.findSourceMapURL,"getHomeDirectory");a.s(["getHomeDirectory",()=>c])},47947,50088,92106,4720,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("4038f97a8e68a16c52fa61547229b7985d0d41fedc",b.callServer,void 0,b.findSourceMapURL,"listPathEntries");a.s(["listPathEntries",()=>c],47947);let d=(0,b.createServerReference)("7f05c221ddadc7718ea66026fc102353decdff75b8",b.callServer,void 0,b.findSourceMapURL,"saveAttachments");a.s(["saveAttachments",()=>d],50088);var e=a.i(70106);let f=(0,e.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"}]]);a.s(["Clipboard",()=>f],92106);let g=(0,e.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"}]]);a.s(["FileText",()=>g],4720)},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)},996,60087,67329,1239,58988,a=>{"use strict";var b=a.i(70106);let c=(0,b.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"}]]);a.s(["Grid2x2",()=>c],996);let d=(0,b.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"}]]);a.s(["House",()=>d],60087);let e=(0,b.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"}]]);a.s(["List",()=>e],67329);let f=(0,b.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"}]]);a.s(["Pin",()=>f],1239);let g=(0,b.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"}]]);a.s(["PinOff",()=>g],58988)},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)},64724,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(71987),e=a.i(36179),f=a.i(47947),g=a.i(50088),h=a.i(89338),i=a.i(81816),j=a.i(210),k=a.i(92106),l=a.i(4720),m=a.i(92596),n=a.i(996),o=a.i(60087),p=a.i(67329),q=a.i(1239),r=a.i(58988),s=a.i(11431),t=a.i(94659);let u="viba:session-file-browser:view-mode";function v({initialPath:a,worktreePath:v,onConfirm:w,onCancel:x,onPathChange:y}){let z=(0,c.useMemo)(()=>new Set([".png",".jpg",".jpeg",".gif",".webp",".bmp",".svg",".ico",".avif"]),[]),[A,B]=(0,c.useState)(""),[C,D]=(0,c.useState)([]),[E,F]=(0,c.useState)(!1),[G,H]=(0,c.useState)(null),[I,J]=(0,c.useState)(""),[K,L]=(0,c.useState)([]),[M,N]=(0,c.useState)(null),[O,P]=(0,c.useState)("list"),[Q,R]=(0,c.useState)(!1),[S,T]=(0,c.useState)({}),[U,V]=(0,c.useState)([]);(0,c.useEffect)(()=>{let b=!0;return(async()=>{try{let c=await (0,e.getHomeDirectory)();if(!b)return;J(c),a||B(c)}catch(a){console.error("Failed to resolve home directory:",a)}a&&b&&B(a)})(),()=>{b=!1}},[a]),(0,c.useEffect)(()=>{let a=!0;return(async()=>{try{let b=await (0,h.getConfig)();if(!a)return;let c=Array.isArray(b.pinnedFolderShortcuts)?b.pinnedFolderShortcuts.filter(a=>"string"==typeof a&&a.trim().length>0):[];V(Array.from(new Set(c)))}catch(a){console.error("Failed to load pinned folder shortcuts:",a)}})(),()=>{a=!1}},[]),(0,c.useEffect)(()=>{try{let a=localStorage.getItem(u);("list"===a||"grid"===a)&&P(a)}catch{}finally{R(!0)}},[]),(0,c.useEffect)(()=>{if(Q)try{localStorage.setItem(u,O)}catch{}},[Q,O]),(0,c.useEffect)(()=>{A&&(async()=>{F(!0),H(null);try{let a=await (0,f.listPathEntries)(A);D(a)}catch(a){console.error("Failed to list files:",a),H("Failed to load directory contents")}finally{F(!1)}})()},[A]),(0,c.useEffect)(()=>{A&&y?.(A)},[A,y]),(0,c.useEffect)(()=>{L([]),N(null),T({})},[A]);let W=(0,c.useMemo)(()=>new Set(K),[K]),X=(a,b,c)=>{if(a.isDirectory)return void B(a.path);let d=c.metaKey||c.ctrlKey;if(c.shiftKey&&null!==M){let a=Math.min(M,b),c=Math.max(M,b);L(C.slice(a,c+1).filter(a=>!a.isDirectory).map(a=>a.path));return}if(d){L(b=>b.includes(a.path)?b.filter(b=>b!==a.path):[...b,a.path]),N(b);return}L([a.path]),N(b)},Y=async()=>{if(H(null),!v)return void H("Cannot paste: Session worktree path is missing.");try{if(F(!0),!navigator.clipboard||!navigator.clipboard.read)throw Error("Clipboard API not supported in this browser");let a=await navigator.clipboard.read(),b=new FormData,c=!1;for(let d of a)for(let a of d.types)if(a.startsWith("image/")){let e=await d.getType(a),f=a.split("/")[1]||"png",g=`pasted-image-${Date.now()}.${f}`,h=new File([e],g,{type:a});b.append(g,h),c=!0;break}if(c){let a=await (0,g.saveAttachments)(v,b);if(a&&a.length>0)return void await w(a);H("Failed to save pasted files.")}else try{let a=await navigator.clipboard.readText();a&&a.trim().startsWith("/")?H("No file content found in clipboard. Copy an image or file first."):H("No file content found in clipboard.")}catch{H("No file content found in clipboard.")}}catch(b){let a=b instanceof Error?b.message:String(b);console.error("Paste error:",b),H(`Failed to read from clipboard: ${a}`)}finally{F(!1)}},Z=async a=>{V(a);try{await (0,i.updateConfig)({pinnedFolderShortcuts:a})}catch(a){console.error("Failed to save pinned folder shortcuts:",a),H("Failed to save pinned shortcuts")}},$=async a=>{(H(null),U.includes(a))?await Z(U.filter(b=>b!==a)):await Z([...U,a])},_=(0,c.useCallback)(async()=>{0!==K.length&&await w(K)},[w,K]);return(0,t.useDialogKeyboardShortcuts)({onConfirm:_,onDismiss:x,canConfirm:K.length>0}),(0,b.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4",children:(0,b.jsxs)("div",{className:"bg-base-200 rounded-lg shadow-xl w-full max-w-5xl h-[82vh] flex flex-col",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-base-300",children:[(0,b.jsxs)("h2",{className:"text-xl font-bold flex items-center gap-2",children:[(0,b.jsx)(m.Folder,{className:"w-5 h-5"}),"Browse Files"]}),(0,b.jsx)("button",{onClick:x,className:"btn btn-sm btn-ghost btn-circle",title:"Close file browser",children:"✕"})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-base-300",children:[(0,b.jsx)("button",{onClick:()=>{let a=(0,s.getDirName)(A);a&&a!==A&&B(a)},className:"btn btn-sm btn-square btn-ghost",title:"Go Up",disabled:"/"===A||!A,children:(0,b.jsx)(j.ArrowLeft,{className:"w-4 h-4"})}),(0,b.jsxs)("button",{onClick:()=>{I&&A!==I&&B(I)},className:"btn btn-sm btn-ghost gap-1",title:I?`Go to Home Folder (${I})`:"Go to Home Folder",disabled:!I||A===I,children:[(0,b.jsx)(o.House,{className:"w-4 h-4"}),"Home"]}),(0,b.jsx)("div",{className:"flex-1 overflow-x-auto whitespace-nowrap px-2 font-mono text-sm",children:A}),(0,b.jsxs)("div",{className:"join",children:[(0,b.jsx)("button",{type:"button",onClick:()=>P("list"),className:`btn btn-sm join-item ${"list"===O?"btn-active":"btn-ghost"}`,title:"List view",children:(0,b.jsx)(p.List,{className:"w-4 h-4"})}),(0,b.jsx)("button",{type:"button",onClick:()=>P("grid"),className:`btn btn-sm join-item ${"grid"===O?"btn-active":"btn-ghost"}`,title:"Grid view",children:(0,b.jsx)(n.Grid2x2,{className:"w-4 h-4"})})]}),(0,b.jsxs)("button",{onClick:_,className:"btn btn-sm btn-primary gap-2",disabled:0===K.length,title:"Insert selected absolute paths",children:["Insert (",K.length,")"]}),(0,b.jsx)("div",{className:"w-[1px] h-6 bg-base-content/10 mx-1"}),(0,b.jsxs)("button",{onClick:Y,className:"btn btn-sm btn-ghost gap-2",title:"Paste file/image from clipboard",disabled:!v,children:[(0,b.jsx)(k.Clipboard,{className:"w-4 h-4"}),"Paste"]})]}),U.length>0&&(0,b.jsx)("div",{className:"px-3 py-2 border-b border-base-300 bg-base-200/50",children:(0,b.jsx)("div",{className:"flex items-center gap-2 overflow-x-auto",children:U.map(a=>{let c=a===A,d=a.split(/[\\/]/).filter(Boolean).pop()||a;return(0,b.jsxs)("div",{className:"join shrink-0",children:[(0,b.jsxs)("button",{type:"button",className:`btn btn-xs join-item ${c?"btn-primary":"btn-ghost"}`,onClick:()=>B(a),title:a,children:[(0,b.jsx)(m.Folder,{className:"w-3 h-3"}),d]}),(0,b.jsx)("button",{type:"button",className:"btn btn-xs btn-ghost join-item",onClick:()=>void $(a),title:`Unpin ${a}`,children:(0,b.jsx)(r.PinOff,{className:"w-3 h-3"})})]},a)})})}),(0,b.jsx)("div",{className:"flex-1 overflow-y-auto p-2",children:E?(0,b.jsx)("div",{className:"flex justify-center items-center h-full",children:(0,b.jsx)("span",{className:"loading loading-spinner loading-lg"})}):G?(0,b.jsx)("div",{className:"alert alert-error",children:G}):0===C.length?(0,b.jsx)("div",{className:"text-center text-base-content/50 mt-10",children:"Empty directory"}):"list"===O?(0,b.jsx)("div",{className:"grid grid-cols-1 gap-1",children:C.map((a,c)=>{let d=W.has(a.path);return(0,b.jsxs)("div",{className:`flex items-center justify-between p-2 rounded-md cursor-pointer transition-colors border ${d?"bg-primary text-primary-content border-primary":"hover:bg-base-100 border-transparent"}`,onClick:b=>X(a,c,b),title:a.path,children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 overflow-hidden",children:[a.isDirectory?(0,b.jsx)(m.Folder,{className:"w-5 h-5 shrink-0"}):(0,b.jsx)(l.FileText,{className:"w-5 h-5 shrink-0"}),(0,b.jsx)("span",{className:"truncate",children:a.name})]}),(0,b.jsx)("span",{className:"text-[10px] opacity-70 shrink-0",children:a.isDirectory?(0,b.jsx)("button",{type:"button",className:"btn btn-ghost btn-xs h-6 min-h-6",onClick:b=>{b.stopPropagation(),$(a.path)},title:U.includes(a.path)?"Unpin folder":"Pin folder",children:(0,b.jsx)(q.Pin,{className:`w-3 h-3 ${U.includes(a.path)?"fill-current":""}`})}):"file"})]},a.path)})}):(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-3",children:C.map((a,c)=>{var e;let f,g=W.has(a.path),h=!a.isDirectory&&-1!==(f=(e=a.name).lastIndexOf("."))&&z.has(e.slice(f).toLowerCase()),i=`/api/file-thumbnail?path=${encodeURIComponent(a.path)}`;return(0,b.jsxs)("button",{type:"button",className:`rounded-lg border text-left overflow-hidden transition-colors ${g?"border-primary bg-primary/15":"border-base-300 hover:bg-base-100"}`,onClick:b=>X(a,c,b),title:a.path,children:[(0,b.jsxs)("div",{className:"aspect-square bg-base-300 flex items-center justify-center overflow-hidden relative",children:[h&&!S[a.path]?(0,b.jsx)(d.default,{src:i,alt:a.name,fill:!0,sizes:"(max-width: 768px) 50vw, (max-width: 1024px) 25vw, 20vw",className:"object-cover",unoptimized:!0,onError:()=>T(b=>({...b,[a.path]:!0}))}):a.isDirectory?(0,b.jsx)(m.Folder,{className:"w-10 h-10 opacity-80"}):(0,b.jsx)(l.FileText,{className:"w-10 h-10 opacity-80"}),a.isDirectory&&(0,b.jsx)("button",{type:"button",className:`absolute top-1 right-1 btn btn-xs btn-circle ${U.includes(a.path)?"btn-primary":"btn-ghost bg-base-100/70"}`,onClick:b=>{b.stopPropagation(),$(a.path)},title:U.includes(a.path)?"Unpin folder":"Pin folder",children:(0,b.jsx)(q.Pin,{className:`w-3 h-3 ${U.includes(a.path)?"fill-current":""}`})})]}),(0,b.jsxs)("div",{className:"px-2 py-2",children:[(0,b.jsx)("div",{className:"truncate text-sm font-medium",title:a.name,children:a.name}),(0,b.jsx)("div",{className:"text-[10px] opacity-70",children:a.isDirectory?"folder":h?"image":"file"})]})]},a.path)})})}),(0,b.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."})]})})}a.s(["default",()=>v])},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])},4528,a=>{"use strict";var b=a.i(5050);let c=(0,b.createServerReference)("7f348b3ded9d41a1865eff2cc54d3ac33aa038393f",b.callServer,void 0,b.findSourceMapURL,"startTtydProcess");a.s(["startTtydProcess",()=>c])}];
2
2
 
3
- //# sourceMappingURL=_80c85b8d._.js.map
3
+ //# sourceMappingURL=_3595fd8f._.js.map