neural-loom 0.2.13 → 0.2.14

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 (139) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +2 -0
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/cache/.previewinfo +1 -1
  5. package/.next/cache/.rscinfo +1 -1
  6. package/.next/cache/.tsbuildinfo +1 -1
  7. package/.next/diagnostics/route-bundle-stats.json +2 -2
  8. package/.next/fallback-build-manifest.json +3 -3
  9. package/.next/prerender-manifest.json +3 -3
  10. package/.next/routes-manifest.json +12 -0
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  17. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.html +1 -1
  19. package/.next/server/app/_not-found.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  24. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  26. package/.next/server/app/api/context/aider/route.js +1 -1
  27. package/.next/server/app/api/context/aider/route.js.nft.json +1 -1
  28. package/.next/server/app/api/context/claude/route.js +1 -1
  29. package/.next/server/app/api/context/claude/route.js.nft.json +1 -1
  30. package/.next/server/app/api/recents/route/app-paths-manifest.json +3 -0
  31. package/.next/server/app/api/recents/route/build-manifest.json +9 -0
  32. package/.next/server/app/api/recents/route/server-reference-manifest.json +4 -0
  33. package/.next/server/app/api/recents/route.js +6 -0
  34. package/.next/server/app/api/recents/route.js.map +5 -0
  35. package/.next/server/app/api/recents/route.js.nft.json +1 -0
  36. package/.next/server/app/api/recents/route_client-reference-manifest.js +3 -0
  37. package/.next/server/app/api/sessions/inject/route.js +1 -1
  38. package/.next/server/app/api/sessions/inject/route.js.nft.json +1 -1
  39. package/.next/server/app/api/sessions/input/route.js +1 -1
  40. package/.next/server/app/api/sessions/input/route.js.nft.json +1 -1
  41. package/.next/server/app/api/sessions/launch/route.js +1 -1
  42. package/.next/server/app/api/sessions/launch/route.js.nft.json +1 -1
  43. package/.next/server/app/api/sessions/route.js +1 -1
  44. package/.next/server/app/api/sessions/route.js.nft.json +1 -1
  45. package/.next/server/app/api/sessions/scope/route/app-paths-manifest.json +3 -0
  46. package/.next/server/app/api/sessions/scope/route/build-manifest.json +9 -0
  47. package/.next/server/app/api/sessions/scope/route/server-reference-manifest.json +4 -0
  48. package/.next/server/app/api/sessions/scope/route.js +7 -0
  49. package/.next/server/app/api/sessions/scope/route.js.map +5 -0
  50. package/.next/server/app/api/sessions/scope/route.js.nft.json +1 -0
  51. package/.next/server/app/api/sessions/scope/route_client-reference-manifest.js +3 -0
  52. package/.next/server/app/api/sessions/stats/route.js +1 -1
  53. package/.next/server/app/api/sessions/stats/route.js.nft.json +1 -1
  54. package/.next/server/app/api/sessions/stop/route.js +1 -1
  55. package/.next/server/app/api/sessions/stop/route.js.nft.json +1 -1
  56. package/.next/server/app/index.html +1 -1
  57. package/.next/server/app/index.rsc +2 -2
  58. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  59. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  60. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  61. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  62. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  63. package/.next/server/app/page/react-loadable-manifest.json +4 -3
  64. package/.next/server/app/page_client-reference-manifest.js +1 -1
  65. package/.next/server/app-paths-manifest.json +2 -0
  66. package/.next/server/chunks/[root-of-the-server]__0_2_i_q._.js +15 -0
  67. package/.next/server/chunks/{[root-of-the-server]__0rd5ojc._.js.map → [root-of-the-server]__0_2_i_q._.js.map} +1 -1
  68. package/.next/server/chunks/[root-of-the-server]__0__9rdk._.js +15 -0
  69. package/.next/server/chunks/{[root-of-the-server]__0m7xwu2._.js.map → [root-of-the-server]__0__9rdk._.js.map} +1 -1
  70. package/.next/server/chunks/[root-of-the-server]__0bi3d5z._.js +15 -0
  71. package/.next/server/chunks/{[root-of-the-server]__0ezygp7._.js.map → [root-of-the-server]__0bi3d5z._.js.map} +1 -1
  72. package/.next/server/chunks/[root-of-the-server]__0d0pykb._.js +3 -3
  73. package/.next/server/chunks/[root-of-the-server]__0d0pykb._.js.map +1 -1
  74. package/.next/server/chunks/[root-of-the-server]__0iqaxhx._.js +15 -0
  75. package/.next/server/chunks/[root-of-the-server]__0iqaxhx._.js.map +1 -0
  76. package/.next/server/chunks/{[root-of-the-server]__12-x1lx._.js → [root-of-the-server]__0m91xif._.js} +3 -3
  77. package/.next/server/chunks/{[root-of-the-server]__12-x1lx._.js.map → [root-of-the-server]__0m91xif._.js.map} +1 -1
  78. package/.next/server/chunks/[root-of-the-server]__0p~u94k._.js +3 -0
  79. package/.next/server/chunks/[root-of-the-server]__0p~u94k._.js.map +1 -0
  80. package/.next/server/chunks/[root-of-the-server]__0qyrt6_._.js +3 -0
  81. package/.next/server/chunks/[root-of-the-server]__0qyrt6_._.js.map +1 -0
  82. package/.next/server/chunks/[root-of-the-server]__0qz~w0~._.js +15 -0
  83. package/.next/server/chunks/[root-of-the-server]__0qz~w0~._.js.map +1 -0
  84. package/.next/server/chunks/[root-of-the-server]__0ty8hwz._.js +15 -0
  85. package/.next/server/chunks/{[root-of-the-server]__0tl2n51._.js.map → [root-of-the-server]__0ty8hwz._.js.map} +1 -1
  86. package/.next/server/chunks/[root-of-the-server]__0ylcu31._.js +3 -0
  87. package/.next/server/chunks/[root-of-the-server]__0ylcu31._.js.map +1 -0
  88. package/.next/server/chunks/_next-internal_server_app_api_recents_route_actions_0wmi3sl.js +3 -0
  89. package/.next/server/chunks/_next-internal_server_app_api_recents_route_actions_0wmi3sl.js.map +1 -0
  90. package/.next/server/chunks/_next-internal_server_app_api_sessions_scope_route_actions_0g112ee.js +3 -0
  91. package/.next/server/chunks/_next-internal_server_app_api_sessions_scope_route_actions_0g112ee.js.map +1 -0
  92. package/.next/server/chunks/ssr/_0t7oqy6._.js +1 -1
  93. package/.next/server/chunks/ssr/_0t7oqy6._.js.map +1 -1
  94. package/.next/server/middleware-build-manifest.js +3 -3
  95. package/.next/server/pages/404.html +1 -1
  96. package/.next/server/pages/500.html +1 -1
  97. package/.next/server/server-reference-manifest.js +1 -1
  98. package/.next/server/server-reference-manifest.json +1 -1
  99. package/.next/static/chunks/0b89ti7ob.09t.js +1 -0
  100. package/.next/static/chunks/0eidfx-s54367.js +1 -0
  101. package/.next/static/chunks/0ew-ei_k3d-qg.js +1 -0
  102. package/.next/static/chunks/0g45rn_9mbzt6.js +1 -0
  103. package/.next/static/chunks/0jxar8nsw_py3.js +1 -0
  104. package/.next/trace +1 -1
  105. package/.next/trace-build +1 -1
  106. package/.next/types/routes.d.ts +3 -1
  107. package/.next/types/validator.ts +18 -0
  108. package/package.json +1 -1
  109. package/src/app/api/context/aider/route.ts +37 -22
  110. package/src/app/api/context/claude/route.ts +28 -16
  111. package/src/app/api/recents/route.ts +34 -0
  112. package/src/app/api/sessions/launch/route.ts +12 -0
  113. package/src/app/api/sessions/scope/route.ts +139 -0
  114. package/src/app/components/AiderWizard.tsx +70 -4
  115. package/src/app/components/ClaudeWizard.tsx +70 -4
  116. package/src/app/components/IdeLayout.tsx +86 -12
  117. package/src/app/page.tsx +1 -0
  118. package/src/lib/agents/AgentRunner.ts +2 -0
  119. package/src/lib/agents/SessionManager.ts +60 -2
  120. package/src/lib/agents/SessionPersister.ts +4 -2
  121. package/src/lib/recents.ts +57 -0
  122. package/src/lib/workspaceParser.ts +40 -0
  123. package/.next/server/chunks/[root-of-the-server]__0e5cwnx._.js +0 -3
  124. package/.next/server/chunks/[root-of-the-server]__0e5cwnx._.js.map +0 -1
  125. package/.next/server/chunks/[root-of-the-server]__0efi5cr._.js +0 -3
  126. package/.next/server/chunks/[root-of-the-server]__0efi5cr._.js.map +0 -1
  127. package/.next/server/chunks/[root-of-the-server]__0ezygp7._.js +0 -15
  128. package/.next/server/chunks/[root-of-the-server]__0m7xwu2._.js +0 -15
  129. package/.next/server/chunks/[root-of-the-server]__0rd5ojc._.js +0 -15
  130. package/.next/server/chunks/[root-of-the-server]__0tl2n51._.js +0 -15
  131. package/.next/server/chunks/[root-of-the-server]__0y-63z8._.js +0 -15
  132. package/.next/server/chunks/[root-of-the-server]__0y-63z8._.js.map +0 -1
  133. package/.next/static/chunks/095uz52in_39t.js +0 -1
  134. package/.next/static/chunks/0ayrw9yot-bjb.js +0 -1
  135. package/.next/static/chunks/0wdcf.26dj03~.js +0 -1
  136. package/.next/static/chunks/178yphwi3n~oc.js +0 -1
  137. /package/.next/static/{w0G47Es9qpUItx3l4uJ_v → g7S_nNTPWKtmCY0Va4YcB}/_buildManifest.js +0 -0
  138. /package/.next/static/{w0G47Es9qpUItx3l4uJ_v → g7S_nNTPWKtmCY0Va4YcB}/_clientMiddlewareManifest.js +0 -0
  139. /package/.next/static/{w0G47Es9qpUItx3l4uJ_v → g7S_nNTPWKtmCY0Va4YcB}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/lib/workspaceParser.ts","../../../src/app/api/context/aider/route.ts","../../../node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import fs from \"fs\";\nimport path from \"path\";\n\nexport function getWorkspaceFileFolders(workspaceRoot: string): string[] {\n try {\n if (!workspaceRoot || !fs.existsSync(workspaceRoot)) return [];\n \n // Normalize workspaceRoot path\n const normRoot = path.resolve(workspaceRoot).replace(/\\\\/g, \"/\");\n \n const files = fs.readdirSync(normRoot);\n const workspaceFile = files.find(f => f.endsWith(\".code-workspace\"));\n if (!workspaceFile) return [];\n\n const filePath = path.join(normRoot, workspaceFile);\n const content = fs.readFileSync(filePath, \"utf8\");\n const json = JSON.parse(content);\n \n if (!json.folders || !Array.isArray(json.folders)) return [];\n \n const folders: string[] = [];\n for (const folder of json.folders) {\n if (folder.path) {\n // Resolve relative to workspace root (where the workspace file resides)\n const resolved = path.resolve(normRoot, folder.path).replace(/\\\\/g, \"/\");\n \n // Exclude the workspace root folder itself\n if (resolved !== normRoot) {\n if (fs.existsSync(resolved)) {\n folders.push(resolved);\n }\n }\n }\n }\n return folders;\n } catch (err) {\n console.error(\"[WorkspaceParser] Failed to parse code-workspace file:\", err);\n return [];\n }\n}\n","import { NextResponse } from \"next/server\";\nimport fs from \"fs\";\nimport path from \"path\";\n\nconst configDir = path.join(process.env.ORIGINAL_CWD || process.cwd(), \".ai\", \"neural-loom\");\nconst configPath = path.join(configDir, \"aider.json\");\n\nfunction ensureDir() {\n if (!fs.existsSync(configDir)) {\n fs.mkdirSync(configDir, { recursive: true });\n }\n}\n\nfunction maskKey(key: string): string {\n if (!key) return \"\";\n if (key.length <= 8) return \"********\";\n return `${key.slice(0, 6)}...${key.slice(-4)}`;\n}\n\nimport { getWorkspaceFileFolders } from \"@/lib/workspaceParser\";\n\nexport async function GET() {\n try {\n let openaiApiKey = \"\";\n let anthropicApiKey = \"\";\n let geminiApiKey = \"\";\n let model = \"claude-3-5-sonnet\";\n let extraFlags = \"\";\n let workspaceRoot = \"\";\n let scopedDirs: string[] = [];\n\n if (fs.existsSync(configPath)) {\n try {\n const rawData = fs.readFileSync(configPath, \"utf8\");\n const config = JSON.parse(rawData);\n openaiApiKey = config.openaiApiKey ? maskKey(config.openaiApiKey) : \"\";\n anthropicApiKey = config.anthropicApiKey ? maskKey(config.anthropicApiKey) : \"\";\n geminiApiKey = config.geminiApiKey ? maskKey(config.geminiApiKey) : \"\";\n model = config.model || \"claude-3-5-sonnet\";\n extraFlags = config.extraFlags || \"\";\n workspaceRoot = config.workspaceRoot || \"\";\n scopedDirs = config.scopedDirs || [];\n } catch (e) {\n console.error(\"Failed to parse aider.json:\", e);\n }\n }\n\n // Resolve workspace folders from the code-workspace file if it exists\n const rootToScan = workspaceRoot || process.env.ORIGINAL_CWD || process.cwd();\n const wsFolders = getWorkspaceFileFolders(rootToScan);\n\n // Merge scopedDirs, filtering out duplicates\n const mergedScopes = Array.from(new Set([...scopedDirs, ...wsFolders]));\n\n return NextResponse.json({\n success: true,\n config: {\n openaiApiKey,\n anthropicApiKey,\n geminiApiKey,\n model,\n extraFlags,\n workspaceRoot,\n scopedDirs: mergedScopes,\n },\n });\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : \"Unknown error\";\n return NextResponse.json({ success: false, error: errorMessage }, { status: 500 });\n }\n}\n\nexport async function POST(request: Request) {\n try {\n const body = await request.json();\n const { openaiApiKey, anthropicApiKey, geminiApiKey, model, extraFlags, workspaceRoot, scopedDirs } = body;\n\n ensureDir();\n\n let existingConfig = {\n openaiApiKey: \"\",\n anthropicApiKey: \"\",\n geminiApiKey: \"\",\n model: \"claude-3-5-sonnet\",\n extraFlags: \"\",\n workspaceRoot: \"\",\n scopedDirs: [] as string[],\n };\n\n if (fs.existsSync(configPath)) {\n try {\n existingConfig = JSON.parse(fs.readFileSync(configPath, \"utf8\"));\n } catch (e) {\n console.error(\"Failed to parse existing aider.json:\", e);\n }\n }\n\n // Determine whether to use new keys or preserve existing ones if masked sentinels are received\n const finalOpenaiKey = (openaiApiKey && openaiApiKey.includes(\"...\")) \n ? existingConfig.openaiApiKey \n : (openaiApiKey || \"\");\n\n const finalAnthropicKey = (anthropicApiKey && anthropicApiKey.includes(\"...\")) \n ? existingConfig.anthropicApiKey \n : (anthropicApiKey || \"\");\n\n const finalGeminiKey = (geminiApiKey && geminiApiKey.includes(\"...\")) \n ? existingConfig.geminiApiKey \n : (geminiApiKey || \"\");\n\n const newConfig = {\n openaiApiKey: finalOpenaiKey,\n anthropicApiKey: finalAnthropicKey,\n geminiApiKey: finalGeminiKey,\n model: model || \"claude-3-5-sonnet\",\n extraFlags: extraFlags || \"\",\n workspaceRoot: workspaceRoot || \"\",\n scopedDirs: scopedDirs || [],\n };\n\n fs.writeFileSync(configPath, JSON.stringify(newConfig, null, 2), \"utf8\");\n return NextResponse.json({ success: true, message: \"Aider configuration saved successfully!\" });\n\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : \"Unknown error\";\n return NextResponse.json({ success: false, error: errorMessage }, { status: 500 });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/context/aider/route\",\n pathname: \"/api/context/aider\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/src/app/api/context/aider/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/context/aider/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId,\n deploymentId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["getWorkspaceFileFolders","workspaceRoot","existsSync","normRoot","resolve","replace","files","readdirSync","workspaceFile","find","f","endsWith","filePath","join","content","readFileSync","json","JSON","parse","folders","Array","isArray","folder","path","resolved","push","err","console","error","configDir","process","env","ORIGINAL_CWD","cwd","configPath","ensureDir","mkdirSync","recursive","maskKey","key","config","length","slice","GET","openaiApiKey","anthropicApiKey","geminiApiKey","model","extraFlags","wsFolders","scopedDirs","rawData","errorMessage","e","rootToScan","mergedScopes","from","Set","success","Error","message","status","POST","request","body","existingConfig","finalOpenaiKey","includes","finalAnthropicKey","finalGeminiKey","newConfig","writeFileSync","stringify"],"mappings":"qmCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,wCAEO,SAASA,AAAwBC,CAAqB,EAC3D,GAAI,CACF,GAAI,CAACA,GAAiB,CAAC,EAAA,OAAE,CAACC,UAAU,CAACD,GAAgB,MAAO,EAAE,CAG9D,IAAME,EAAW,EAAA,OAAI,CAACC,OAAO,CAACH,GAAeI,OAAO,CAAC,MAAO,KAGtDG,EADQ,AACQF,EADR,OAAE,CAACC,WAAW,CAACJ,GACDM,IAAI,CAACC,GAAKA,EAAEC,QAAQ,CAAC,oBACjD,GAAI,CAACH,EAAe,MAAO,EAAE,CAE7B,IAAMI,EAAW,EAAA,OAAI,CAACC,IAAI,CAACV,EAAUK,GAC/BM,EAAU,EAAA,OAAE,CAACC,YAAY,CAACH,EAAU,QACpCI,EAAOC,KAAKC,KAAK,CAACJ,GAExB,GAAI,CAACE,EAAKG,OAAO,EAAI,CAACC,MAAMC,OAAO,CAACL,EAAKG,OAAO,EAAG,MAAO,EAAE,CAE5D,IAAMA,EAAoB,EAAE,CAC5B,IAAK,IAAMG,KAAUN,EAAKG,OAAO,CAC/B,AADiC,GAC7BG,EAAOC,IAAI,CAAE,CAEf,IAAMC,EAAW,EAAA,OAAI,CAACpB,OAAO,CAACD,EAAUmB,EAAOC,IAAI,EAAElB,OAAO,CAAC,MAAO,KAGhEmB,IAAarB,GACX,EAAA,KADqB,EACnB,CAACD,UAAU,CAACsB,IAChBL,EAAQM,IAAI,CADe,AACdD,EAGnB,CAEF,OAAOL,CACT,CAAE,MAAOO,EAAK,CAEZ,OADAC,QAAQC,KAAK,CAAC,yDAA0DF,GACjE,EAAE,AACX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,OAAQ,GACZ,IACO,IACX,CACJ,mCA5TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAW,AAAX,EAAY,kBACf,uBACA,CACJqC,EACJ","ignoreList":[2]}
@@ -0,0 +1,3 @@
1
+ module.exports=[40569,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_api_recents_route_actions_0wmi3sl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ module.exports=[84028,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_api_sessions_scope_route_actions_0g112ee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
- module.exports=[41997,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={BailoutToCSRError:function(){return g},isBailoutToCSRError:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="BAILOUT_TO_CLIENT_SIDE_RENDERING";class g extends Error{constructor(a){super(`Bail out to client-side rendering: ${a}`),this.reason=a,this.digest=f}}function h(a){return"object"==typeof a&&null!==a&&"digest"in a&&a.digest===f}},32245,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"BailoutToCSR",{enumerable:!0,get:function(){return e}});let d=a.r(41997);function e({reason:a,children:b}){throw Object.defineProperty(new d.BailoutToCSRError(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},7773,(a,b,c)=>{"use strict";function d(a){return a.split("/").map(a=>encodeURIComponent(a)).join("/")}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"encodeURIPath",{enumerable:!0,get:function(){return d}})},68063,(a,b,c)=>{"use strict";let d;Object.defineProperty(c,"__esModule",{value:!0});var e={getAssetToken:function(){return i},getAssetTokenQuery:function(){return j},getDeploymentId:function(){return g},getDeploymentIdQuery:function(){return h}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});function g(){return d}function h(a=!1){return d?`${a?"&":"?"}dpl=${d}`:""}function i(){return!1}function j(a=!1){return""}d=void 0},97458,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"PreloadChunks",{enumerable:!0,get:function(){return i}});let d=a.r(87924),e=a.r(35112),f=a.r(56704),g=a.r(7773),h=a.r(68063);function i({moduleIds:a}){let b=f.workAsyncStorage.getStore();if(void 0===b)return null;let c=[];if(b.reactLoadableManifest&&a){let d=b.reactLoadableManifest;for(let b of a){if(!d[b])continue;let a=d[b].files;c.push(...a)}}if(0===c.length)return null;let j=(0,h.getAssetTokenQuery)();return(0,d.jsx)(d.Fragment,{children:c.map(a=>{let c=`${b.assetPrefix}/_next/${(0,g.encodeURIPath)(a)}${j}`;return a.endsWith(".css")?(0,d.jsx)("link",{precedence:"dynamic",href:c,rel:"stylesheet",as:"style",nonce:b.nonce},a):((0,e.preload)(c,{as:"script",fetchPriority:"low",nonce:b.nonce}),null)})})}},69853,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return j}});let d=a.r(87924),e=a.r(72131),f=a.r(32245),g=a.r(97458);function h(a){return{default:a&&"default"in a?a.default:a}}let i={loader:()=>Promise.resolve(h(()=>null)),loading:null,ssr:!0},j=function(a){let b={...i,...a},c=(0,e.lazy)(()=>b.loader().then(h)),j=b.loading;function k(a){let h=j?(0,d.jsx)(j,{isLoading:!0,pastDelay:!0,error:null}):null,i=!b.ssr||!!b.loading,k=i?e.Suspense:e.Fragment,l=b.ssr?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.PreloadChunks,{moduleIds:b.modules}),(0,d.jsx)(c,{...a})]}):(0,d.jsx)(f.BailoutToCSR,{reason:"next/dynamic",children:(0,d.jsx)(c,{...a})});return(0,d.jsx)(k,{...i?{fallback:h}:{},children:l})}return k.displayName="LoadableComponent",k}},19721,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return e}});let d=a.r(33354)._(a.r(69853));function e(a,b){let c={};"function"==typeof a&&(c.loader=a);let e={...c,...b};return(0,d.default)({...e,modules:e.loadableGenerated?.modules})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},46845,a=>{a.v({activeBorder:"page-module___8aEwW__activeBorder",agentBadge:"page-module___8aEwW__agentBadge",agentCard:"page-module___8aEwW__agentCard",agentGrid:"page-module___8aEwW__agentGrid",agentHeader:"page-module___8aEwW__agentHeader",agentName:"page-module___8aEwW__agentName",ansiCyan:"page-module___8aEwW__ansiCyan",ansiGreen:"page-module___8aEwW__ansiGreen",ansiMagenta:"page-module___8aEwW__ansiMagenta",ansiRed:"page-module___8aEwW__ansiRed",ansiYellow:"page-module___8aEwW__ansiYellow",cardBody:"page-module___8aEwW__cardBody",container:"page-module___8aEwW__container",containerActive:"page-module___8aEwW__containerActive",contextDetails:"page-module___8aEwW__contextDetails",contextItem:"page-module___8aEwW__contextItem",contextList:"page-module___8aEwW__contextList",contextMeta:"page-module___8aEwW__contextMeta",contextTitle:"page-module___8aEwW__contextTitle",dashboardGrid:"page-module___8aEwW__dashboardGrid",envGrid:"page-module___8aEwW__envGrid",envName:"page-module___8aEwW__envName",envRow:"page-module___8aEwW__envRow",envStatus:"page-module___8aEwW__envStatus",footer:"page-module___8aEwW__footer",header:"page-module___8aEwW__header",logoArea:"page-module___8aEwW__logoArea",mainPanel:"page-module___8aEwW__mainPanel",pulse:"page-module___8aEwW__pulse",pulseDot:"page-module___8aEwW__pulseDot",quickLaunchBtn:"page-module___8aEwW__quickLaunchBtn",sectionTitle:"page-module___8aEwW__sectionTitle",sidePanel:"page-module___8aEwW__sidePanel",statusIndicator:"page-module___8aEwW__statusIndicator",stoppedBadge:"page-module___8aEwW__stoppedBadge",subtitle:"page-module___8aEwW__subtitle",terminalContainer:"page-module___8aEwW__terminalContainer",terminalInput:"page-module___8aEwW__terminalInput",terminalInputArea:"page-module___8aEwW__terminalInputArea",terminalLine:"page-module___8aEwW__terminalLine",terminalSendBtn:"page-module___8aEwW__terminalSendBtn",title:"page-module___8aEwW__title"})},40777,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(19721),e=a.i(46845);let f=(0,d.default)(async()=>{},{loadableGenerated:{modules:[37314]},ssr:!1,loading:()=>(0,b.jsx)("div",{style:{height:"400px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#05070a",color:"var(--muted)",border:"1px solid var(--border)",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"},children:(0,b.jsx)("span",{children:"Initializing terminal emulator..."})})}),g=(0,d.default)(async()=>{},{loadableGenerated:{modules:[1985]},ssr:!1,loading:()=>(0,b.jsx)("div",{style:{height:"280px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--card)",border:"1px solid var(--border)",borderRadius:"12px",marginTop:"1.5rem"},children:(0,b.jsx)("span",{style:{color:"var(--muted)"},children:"Initializing prompt editor..."})})}),h=(0,d.default)(async()=>{},{loadableGenerated:{modules:[99026]},ssr:!1}),i=(0,d.default)(async()=>{},{loadableGenerated:{modules:[9949]},ssr:!1}),j=(0,d.default)(async()=>{},{loadableGenerated:{modules:[20032]},ssr:!1}),k=(0,d.default)(async()=>{},{loadableGenerated:{modules:[97722]},ssr:!1});a.s(["default",0,function(){let[a,d]=(0,c.useState)([]),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(!1),[v,w]=(0,c.useState)(!1),[x,y]=(0,c.useState)(!1),[z,A]=(0,c.useState)(""),B=a.find(a=>a.id===l),C=a.some(a=>("claude-docker"===a.type||"aider-docker"===a.type)&&"running"===a.status),D=a.some(a=>"claude-ssh"===a.type&&"running"===a.status),E=async()=>{try{let a=await fetch("/api/sessions"),b=await a.json();b.sessions&&d(b.sessions),b.originalCwd&&A(b.originalCwd)}catch(a){console.error("Failed to fetch sessions:",a)}};(0,c.useEffect)(()=>{(async()=>{await E()})();let a=setInterval(E,4e3);return()=>clearInterval(a)},[]);let F=async(a,b,c,d)=>{o(!0);try{let e=b;e||("claude"===a?e="Claude Local":"claude-docker"===a?e="Claude Docker":"claude-ssh"===a?e="Claude SSH":"aider"===a?e="Aider Local":"aider-docker"===a?e="Aider Docker":"mock"===a&&(e="Mock Session"));let f={type:a,name:e,workspaceRoot:c,scopedDirs:d};if(("aider"===a||"aider-docker"===a)&&!c)try{let a=await fetch("/api/context/aider");if(a.ok){let b=await a.json();b.success&&b.config&&(f.workspaceRoot=b.config.workspaceRoot,f.scopedDirs=b.config.scopedDirs)}}catch(a){console.error("Failed to load aider configuration before launch:",a)}let g=await fetch("/api/sessions/launch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}),h=await g.json();h.success&&(await E(),m(h.session.id))}catch(a){console.error("Failed to launch session:",a)}finally{o(!1)}},G=async(a,b=!1)=>{try{let c=await fetch("/api/sessions/stop",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,delete:b})});(await c.json()).success&&(b&&l===a&&m(null),await E())}catch(a){console.error("Failed to stop session:",a)}};return(0,b.jsxs)("div",{className:`${e.default.container} ${B?e.default.containerActive:""}`,children:[(0,b.jsxs)("header",{className:e.default.header,children:[(0,b.jsxs)("div",{className:e.default.logoArea,children:[(0,b.jsx)("h1",{className:e.default.title,children:"NeuralLoom"}),(0,b.jsx)("span",{className:e.default.subtitle,children:"Unified AI Orchestrator & Context Bridge"})]}),(0,b.jsxs)("div",{className:e.default.statusIndicator,children:[(0,b.jsx)("span",{className:e.default.pulseDot}),(0,b.jsx)("span",{children:"Orchestrator Online"})]})]}),B?(0,b.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:(0,b.jsx)(k,{sessionId:B.id,workspaceRoot:B.workspaceRoot||"",scopedDirs:B.scopedDirs||[],onClose:()=>m(null),sessions:a,onSwitchSession:a=>m(a)})}):(0,b.jsxs)("div",{className:e.default.dashboardGrid,children:[(0,b.jsxs)("main",{className:e.default.mainPanel,children:[(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:e.default.sectionTitle,children:"Active AI Agents"}),0===a.length?(0,b.jsxs)("div",{className:"card",style:{padding:"3rem 1.5rem",textAlign:"center"},children:[(0,b.jsx)("p",{style:{color:"var(--muted)",marginBottom:"1.5rem"},children:"No active agent sessions in this workspace. Launch a simulated session to verify the control bridge."}),(0,b.jsx)("button",{className:e.default.quickLaunchBtn,onClick:()=>F("mock"),disabled:n,style:{maxWidth:"240px",margin:"0 auto"},children:n?"Launching...":"⚡ Launch Simulated Session"})]}):(0,b.jsx)("div",{className:e.default.agentGrid,children:a.map(a=>(0,b.jsxs)("div",{className:`${e.default.agentCard} card ${l===a.id?e.default.activeBorder:""}`,children:[(0,b.jsxs)("div",{className:e.default.agentHeader,children:[(0,b.jsx)("span",{className:e.default.agentName,children:a.name}),(0,b.jsx)("span",{className:`${e.default.agentBadge} ${"stopped"===a.status?e.default.stoppedBadge:""}`,children:a.status})]}),(0,b.jsxs)("div",{className:e.default.cardBody,children:[(0,b.jsxs)("p",{style:{fontSize:"0.825rem",color:"var(--muted)"},children:["ID: ",(0,b.jsx)("code",{style:{fontSize:"0.75rem"},children:a.id.substring(0,8)}),(0,b.jsx)("br",{}),"Type: ","claude"===a.type?"Claude Local PTY":"claude-docker"===a.type?"Claude Docker PTY":"claude-ssh"===a.type?"Claude SSH PTY":"aider"===a.type?"Aider Local PTY":"aider-docker"===a.type?"Aider Docker PTY":"mock"===a.type?"Simulated Mock PTY":"Unknown PTY",(0,b.jsx)("br",{}),"Logs: ",a.logsCount," captured lines"]}),(0,b.jsxs)("div",{style:{display:"flex",gap:"0.5rem",marginTop:"1rem"},children:["running"===a.status?(0,b.jsx)("button",{onClick:()=>G(a.id,!1),style:{flex:1,padding:"0.4rem 0.6rem",borderRadius:"6px",border:"1px solid var(--danger)",backgroundColor:"transparent",fontSize:"0.75rem",fontWeight:600,color:"var(--danger)"},children:"Stop"}):(0,b.jsx)("button",{onClick:()=>G(a.id,!0),style:{flex:1,padding:"0.4rem 0.6rem",borderRadius:"6px",border:"1px solid var(--border)",backgroundColor:"transparent",fontSize:"0.75rem",fontWeight:600,color:"var(--muted)"},children:"Delete"}),(0,b.jsx)("button",{onClick:()=>m(a.id),style:{flex:2,padding:"0.4rem 0.6rem",borderRadius:"6px",border:"none",backgroundColor:l===a.id?"var(--border-focus)":"var(--primary)",fontSize:"0.75rem",fontWeight:600,color:"#fff"},children:l===a.id?"Connected":"Open Session"})]})]})]},a.id))})]}),l&&(0,b.jsxs)("section",{className:"card",style:{display:"flex",flexDirection:"column",border:"1px solid var(--border-focus)"},children:[(0,b.jsxs)("div",{className:e.default.agentHeader,style:{justifyContent:"space-between",background:"rgba(109, 40, 217, 0.08)"},children:[(0,b.jsxs)("span",{style:{fontWeight:600,display:"flex",alignItems:"center",gap:"0.5rem"},children:["🖥️ Console Bridge — ",a.find(a=>a.id===l)?.name]}),(0,b.jsx)("button",{onClick:()=>m(null),style:{border:"none",background:"none",color:"var(--muted)",cursor:"pointer",fontSize:"0.75rem"},children:"Close Panel ✖"})]}),(0,b.jsx)(f,{sessionId:l})]}),(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:e.default.sectionTitle,children:"Shared Context Hub & Slash Commands"}),(0,b.jsxs)("div",{className:e.default.contextList,children:[(0,b.jsxs)("div",{className:`${e.default.contextItem} card`,children:[(0,b.jsxs)("div",{className:e.default.contextMeta,children:[(0,b.jsx)("span",{className:e.default.contextTitle,children:"Staged Context & System Rules (/ccc)"}),(0,b.jsx)("span",{className:e.default.contextDetails,children:"Compiles AGENTS.md guidelines and project files folder hierarchy map."})]}),(0,b.jsx)("button",{onClick:async()=>{l&&await fetch("/api/sessions/inject",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,command:"/ccc"})})},disabled:!l,style:{padding:"0.4rem 0.8rem",borderRadius:"6px",border:"1px solid var(--primary)",backgroundColor:"transparent",color:"var(--primary)",fontSize:"0.75rem",fontWeight:600,opacity:l?1:.5,cursor:l?"pointer":"not-allowed"},children:"🚀 Mount Context (/ccc)"})]}),(0,b.jsxs)("div",{className:`${e.default.contextItem} card`,children:[(0,b.jsxs)("div",{className:e.default.contextMeta,children:[(0,b.jsx)("span",{className:e.default.contextTitle,children:"Staged Developer Prompt (/ccp)"}),(0,b.jsx)("span",{className:e.default.contextDetails,children:"Executes instructions written in .ai/neural-loom/cprompt.md."})]}),(0,b.jsx)("button",{onClick:async()=>{l&&await fetch("/api/sessions/inject",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,command:"/ccp"})})},disabled:!l,style:{padding:"0.4rem 0.8rem",borderRadius:"6px",border:"1px solid var(--success)",backgroundColor:"transparent",color:"var(--success)",fontSize:"0.75rem",fontWeight:600,opacity:l?1:.5,cursor:l?"pointer":"not-allowed"},children:"⚡ Trigger Prompt (/ccp)"})]})]}),(0,b.jsx)(g,{})]})]}),(0,b.jsxs)("aside",{className:e.default.sidePanel,children:[(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:e.default.sectionTitle,children:"Execution Environments"}),(0,b.jsxs)("div",{className:e.default.envGrid,children:[(0,b.jsxs)("div",{className:e.default.envRow,children:[(0,b.jsx)("span",{className:e.default.envName,children:"💻 Local host OS"}),(0,b.jsx)("span",{className:e.default.envStatus,style:{color:"var(--success)"},children:"Active"})]}),(0,b.jsxs)("div",{className:e.default.envRow,style:{opacity:C?1:.6},children:[(0,b.jsx)("span",{className:e.default.envName,children:"🐳 Docker Sandbox"}),(0,b.jsx)("span",{className:e.default.envStatus,style:{color:C?"var(--success)":"var(--muted)"},children:C?"Active":"Not Mounted"})]}),(0,b.jsxs)("div",{className:e.default.envRow,style:{opacity:D?1:.6},children:[(0,b.jsx)("span",{className:e.default.envName,children:"🌐 Remote VM (SSH)"}),(0,b.jsx)("span",{className:e.default.envStatus,style:{color:D?"var(--success)":"var(--muted)"},children:D?"Active":"Disconnected"})]})]})]}),(0,b.jsxs)("section",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>F("mock"),disabled:n,children:[(0,b.jsx)("span",{children:"⚡"}),(0,b.jsx)("span",{children:"Launch Mock Agent"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>{y(!1),w(!0)},disabled:n,style:{background:"linear-gradient(135deg, hsl(262, 83%, 60%) 0%, hsl(195, 100%, 45%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🤖"}),(0,b.jsx)("span",{children:"Launch Claude PTY"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>{y(!0),w(!0)},disabled:n,style:{background:"linear-gradient(135deg, hsl(170, 72%, 40%) 0%, hsl(195, 100%, 40%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🐳"}),(0,b.jsx)("span",{children:"Launch Docker PTY"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>q(!0),disabled:n,style:{background:"linear-gradient(135deg, hsl(38, 92%, 50%) 0%, hsl(0, 84%, 60%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🌐"}),(0,b.jsx)("span",{children:"Launch SSH PTY"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>{u(!1),s(!0)},disabled:n,style:{background:"linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(262, 80%, 55%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🐍"}),(0,b.jsx)("span",{children:"Launch Aider PTY"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>{u(!0),s(!0)},disabled:n,style:{background:"linear-gradient(135deg, hsl(195, 100%, 40%) 0%, hsl(262, 80%, 55%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🐳"}),(0,b.jsx)("span",{children:"Launch Aider Docker"})]})]}),(0,b.jsxs)("section",{className:"card",style:{padding:"1.5rem",display:"flex",flexDirection:"column",gap:"0.75rem"},children:[(0,b.jsx)("h3",{style:{fontSize:"1rem",fontWeight:700},children:"Quick Actions"}),(0,b.jsxs)("ul",{style:{listStyle:"none",fontSize:"0.875rem",display:"flex",flexDirection:"column",gap:"0.5rem",color:"var(--muted)"},children:[(0,b.jsxs)("li",{style:{display:"flex",justifyContent:"space-between"},children:[(0,b.jsx)("span",{children:"Configure global API Keys"}),(0,b.jsx)("span",{style:{color:"var(--primary)",cursor:"pointer"},children:"→"})]}),(0,b.jsxs)("li",{style:{display:"flex",justifyContent:"space-between"},children:[(0,b.jsx)("span",{children:"Edit rules templates"}),(0,b.jsx)("span",{style:{color:"var(--primary)",cursor:"pointer"},children:"→"})]}),(0,b.jsxs)("li",{style:{display:"flex",justifyContent:"space-between"},children:[(0,b.jsx)("span",{children:"Inspect process locks"}),(0,b.jsx)("span",{style:{color:"var(--primary)",cursor:"pointer"},children:"→"})]})]})]})]})]}),(0,b.jsxs)("footer",{className:e.default.footer,children:[(0,b.jsx)("span",{children:"NeuralLoom v0.2.13 — Experimental AI Orchestrator Bridge"}),(0,b.jsxs)("span",{children:["Directory: ",z||"Loading..."]})]}),p&&(0,b.jsx)(h,{onClose:()=>q(!1),onConfirmLaunch:()=>{q(!1),F("claude-ssh")}}),r&&(0,b.jsx)(i,{onClose:()=>s(!1),isDocker:t,onConfirmLaunch:()=>{s(!1),F(t?"aider-docker":"aider")}}),v&&(0,b.jsx)(j,{onClose:()=>w(!1),isDocker:x,onConfirmLaunch:(a,b,c)=>{w(!1),F(x?"claude-docker":"claude",a,b,c)}})]})}])}];
1
+ module.exports=[41997,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={BailoutToCSRError:function(){return g},isBailoutToCSRError:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="BAILOUT_TO_CLIENT_SIDE_RENDERING";class g extends Error{constructor(a){super(`Bail out to client-side rendering: ${a}`),this.reason=a,this.digest=f}}function h(a){return"object"==typeof a&&null!==a&&"digest"in a&&a.digest===f}},32245,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"BailoutToCSR",{enumerable:!0,get:function(){return e}});let d=a.r(41997);function e({reason:a,children:b}){throw Object.defineProperty(new d.BailoutToCSRError(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},7773,(a,b,c)=>{"use strict";function d(a){return a.split("/").map(a=>encodeURIComponent(a)).join("/")}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"encodeURIPath",{enumerable:!0,get:function(){return d}})},68063,(a,b,c)=>{"use strict";let d;Object.defineProperty(c,"__esModule",{value:!0});var e={getAssetToken:function(){return i},getAssetTokenQuery:function(){return j},getDeploymentId:function(){return g},getDeploymentIdQuery:function(){return h}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});function g(){return d}function h(a=!1){return d?`${a?"&":"?"}dpl=${d}`:""}function i(){return!1}function j(a=!1){return""}d=void 0},97458,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"PreloadChunks",{enumerable:!0,get:function(){return i}});let d=a.r(87924),e=a.r(35112),f=a.r(56704),g=a.r(7773),h=a.r(68063);function i({moduleIds:a}){let b=f.workAsyncStorage.getStore();if(void 0===b)return null;let c=[];if(b.reactLoadableManifest&&a){let d=b.reactLoadableManifest;for(let b of a){if(!d[b])continue;let a=d[b].files;c.push(...a)}}if(0===c.length)return null;let j=(0,h.getAssetTokenQuery)();return(0,d.jsx)(d.Fragment,{children:c.map(a=>{let c=`${b.assetPrefix}/_next/${(0,g.encodeURIPath)(a)}${j}`;return a.endsWith(".css")?(0,d.jsx)("link",{precedence:"dynamic",href:c,rel:"stylesheet",as:"style",nonce:b.nonce},a):((0,e.preload)(c,{as:"script",fetchPriority:"low",nonce:b.nonce}),null)})})}},69853,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return j}});let d=a.r(87924),e=a.r(72131),f=a.r(32245),g=a.r(97458);function h(a){return{default:a&&"default"in a?a.default:a}}let i={loader:()=>Promise.resolve(h(()=>null)),loading:null,ssr:!0},j=function(a){let b={...i,...a},c=(0,e.lazy)(()=>b.loader().then(h)),j=b.loading;function k(a){let h=j?(0,d.jsx)(j,{isLoading:!0,pastDelay:!0,error:null}):null,i=!b.ssr||!!b.loading,k=i?e.Suspense:e.Fragment,l=b.ssr?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.PreloadChunks,{moduleIds:b.modules}),(0,d.jsx)(c,{...a})]}):(0,d.jsx)(f.BailoutToCSR,{reason:"next/dynamic",children:(0,d.jsx)(c,{...a})});return(0,d.jsx)(k,{...i?{fallback:h}:{},children:l})}return k.displayName="LoadableComponent",k}},19721,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return e}});let d=a.r(33354)._(a.r(69853));function e(a,b){let c={};"function"==typeof a&&(c.loader=a);let e={...c,...b};return(0,d.default)({...e,modules:e.loadableGenerated?.modules})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},46845,a=>{a.v({activeBorder:"page-module___8aEwW__activeBorder",agentBadge:"page-module___8aEwW__agentBadge",agentCard:"page-module___8aEwW__agentCard",agentGrid:"page-module___8aEwW__agentGrid",agentHeader:"page-module___8aEwW__agentHeader",agentName:"page-module___8aEwW__agentName",ansiCyan:"page-module___8aEwW__ansiCyan",ansiGreen:"page-module___8aEwW__ansiGreen",ansiMagenta:"page-module___8aEwW__ansiMagenta",ansiRed:"page-module___8aEwW__ansiRed",ansiYellow:"page-module___8aEwW__ansiYellow",cardBody:"page-module___8aEwW__cardBody",container:"page-module___8aEwW__container",containerActive:"page-module___8aEwW__containerActive",contextDetails:"page-module___8aEwW__contextDetails",contextItem:"page-module___8aEwW__contextItem",contextList:"page-module___8aEwW__contextList",contextMeta:"page-module___8aEwW__contextMeta",contextTitle:"page-module___8aEwW__contextTitle",dashboardGrid:"page-module___8aEwW__dashboardGrid",envGrid:"page-module___8aEwW__envGrid",envName:"page-module___8aEwW__envName",envRow:"page-module___8aEwW__envRow",envStatus:"page-module___8aEwW__envStatus",footer:"page-module___8aEwW__footer",header:"page-module___8aEwW__header",logoArea:"page-module___8aEwW__logoArea",mainPanel:"page-module___8aEwW__mainPanel",pulse:"page-module___8aEwW__pulse",pulseDot:"page-module___8aEwW__pulseDot",quickLaunchBtn:"page-module___8aEwW__quickLaunchBtn",sectionTitle:"page-module___8aEwW__sectionTitle",sidePanel:"page-module___8aEwW__sidePanel",statusIndicator:"page-module___8aEwW__statusIndicator",stoppedBadge:"page-module___8aEwW__stoppedBadge",subtitle:"page-module___8aEwW__subtitle",terminalContainer:"page-module___8aEwW__terminalContainer",terminalInput:"page-module___8aEwW__terminalInput",terminalInputArea:"page-module___8aEwW__terminalInputArea",terminalLine:"page-module___8aEwW__terminalLine",terminalSendBtn:"page-module___8aEwW__terminalSendBtn",title:"page-module___8aEwW__title"})},40777,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(19721),e=a.i(46845);let f=(0,d.default)(async()=>{},{loadableGenerated:{modules:[37314]},ssr:!1,loading:()=>(0,b.jsx)("div",{style:{height:"400px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#05070a",color:"var(--muted)",border:"1px solid var(--border)",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"},children:(0,b.jsx)("span",{children:"Initializing terminal emulator..."})})}),g=(0,d.default)(async()=>{},{loadableGenerated:{modules:[1985]},ssr:!1,loading:()=>(0,b.jsx)("div",{style:{height:"280px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--card)",border:"1px solid var(--border)",borderRadius:"12px",marginTop:"1.5rem"},children:(0,b.jsx)("span",{style:{color:"var(--muted)"},children:"Initializing prompt editor..."})})}),h=(0,d.default)(async()=>{},{loadableGenerated:{modules:[99026]},ssr:!1}),i=(0,d.default)(async()=>{},{loadableGenerated:{modules:[9949]},ssr:!1}),j=(0,d.default)(async()=>{},{loadableGenerated:{modules:[20032]},ssr:!1}),k=(0,d.default)(async()=>{},{loadableGenerated:{modules:[97722]},ssr:!1});a.s(["default",0,function(){let[a,d]=(0,c.useState)([]),[l,m]=(0,c.useState)(null),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(!1),[v,w]=(0,c.useState)(!1),[x,y]=(0,c.useState)(!1),[z,A]=(0,c.useState)(""),B=a.find(a=>a.id===l),C=a.some(a=>("claude-docker"===a.type||"aider-docker"===a.type)&&"running"===a.status),D=a.some(a=>"claude-ssh"===a.type&&"running"===a.status),E=async()=>{try{let a=await fetch("/api/sessions"),b=await a.json();b.sessions&&d(b.sessions),b.originalCwd&&A(b.originalCwd)}catch(a){console.error("Failed to fetch sessions:",a)}};(0,c.useEffect)(()=>{(async()=>{await E()})();let a=setInterval(E,4e3);return()=>clearInterval(a)},[]);let F=async(a,b,c,d)=>{o(!0);try{let e=b;e||("claude"===a?e="Claude Local":"claude-docker"===a?e="Claude Docker":"claude-ssh"===a?e="Claude SSH":"aider"===a?e="Aider Local":"aider-docker"===a?e="Aider Docker":"mock"===a&&(e="Mock Session"));let f={type:a,name:e,workspaceRoot:c,scopedDirs:d};if(("aider"===a||"aider-docker"===a)&&!c)try{let a=await fetch("/api/context/aider");if(a.ok){let b=await a.json();b.success&&b.config&&(f.workspaceRoot=b.config.workspaceRoot,f.scopedDirs=b.config.scopedDirs)}}catch(a){console.error("Failed to load aider configuration before launch:",a)}let g=await fetch("/api/sessions/launch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)}),h=await g.json();h.success&&(await E(),m(h.session.id))}catch(a){console.error("Failed to launch session:",a)}finally{o(!1)}},G=async(a,b=!1)=>{try{let c=await fetch("/api/sessions/stop",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,delete:b})});(await c.json()).success&&(b&&l===a&&m(null),await E())}catch(a){console.error("Failed to stop session:",a)}};return(0,b.jsxs)("div",{className:`${e.default.container} ${B?e.default.containerActive:""}`,children:[(0,b.jsxs)("header",{className:e.default.header,children:[(0,b.jsxs)("div",{className:e.default.logoArea,children:[(0,b.jsx)("h1",{className:e.default.title,children:"NeuralLoom"}),(0,b.jsx)("span",{className:e.default.subtitle,children:"Unified AI Orchestrator & Context Bridge"})]}),(0,b.jsxs)("div",{className:e.default.statusIndicator,children:[(0,b.jsx)("span",{className:e.default.pulseDot}),(0,b.jsx)("span",{children:"Orchestrator Online"})]})]}),B?(0,b.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:(0,b.jsx)(k,{sessionId:B.id,workspaceRoot:B.workspaceRoot||"",scopedDirs:B.scopedDirs||[],onClose:()=>m(null),sessions:a,onSwitchSession:a=>m(a),onRefreshSessions:E})}):(0,b.jsxs)("div",{className:e.default.dashboardGrid,children:[(0,b.jsxs)("main",{className:e.default.mainPanel,children:[(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:e.default.sectionTitle,children:"Active AI Agents"}),0===a.length?(0,b.jsxs)("div",{className:"card",style:{padding:"3rem 1.5rem",textAlign:"center"},children:[(0,b.jsx)("p",{style:{color:"var(--muted)",marginBottom:"1.5rem"},children:"No active agent sessions in this workspace. Launch a simulated session to verify the control bridge."}),(0,b.jsx)("button",{className:e.default.quickLaunchBtn,onClick:()=>F("mock"),disabled:n,style:{maxWidth:"240px",margin:"0 auto"},children:n?"Launching...":"⚡ Launch Simulated Session"})]}):(0,b.jsx)("div",{className:e.default.agentGrid,children:a.map(a=>(0,b.jsxs)("div",{className:`${e.default.agentCard} card ${l===a.id?e.default.activeBorder:""}`,children:[(0,b.jsxs)("div",{className:e.default.agentHeader,children:[(0,b.jsx)("span",{className:e.default.agentName,children:a.name}),(0,b.jsx)("span",{className:`${e.default.agentBadge} ${"stopped"===a.status?e.default.stoppedBadge:""}`,children:a.status})]}),(0,b.jsxs)("div",{className:e.default.cardBody,children:[(0,b.jsxs)("p",{style:{fontSize:"0.825rem",color:"var(--muted)"},children:["ID: ",(0,b.jsx)("code",{style:{fontSize:"0.75rem"},children:a.id.substring(0,8)}),(0,b.jsx)("br",{}),"Type: ","claude"===a.type?"Claude Local PTY":"claude-docker"===a.type?"Claude Docker PTY":"claude-ssh"===a.type?"Claude SSH PTY":"aider"===a.type?"Aider Local PTY":"aider-docker"===a.type?"Aider Docker PTY":"mock"===a.type?"Simulated Mock PTY":"Unknown PTY",(0,b.jsx)("br",{}),"Logs: ",a.logsCount," captured lines"]}),(0,b.jsxs)("div",{style:{display:"flex",gap:"0.5rem",marginTop:"1rem"},children:["running"===a.status?(0,b.jsx)("button",{onClick:()=>G(a.id,!1),style:{flex:1,padding:"0.4rem 0.6rem",borderRadius:"6px",border:"1px solid var(--danger)",backgroundColor:"transparent",fontSize:"0.75rem",fontWeight:600,color:"var(--danger)"},children:"Stop"}):(0,b.jsx)("button",{onClick:()=>G(a.id,!0),style:{flex:1,padding:"0.4rem 0.6rem",borderRadius:"6px",border:"1px solid var(--border)",backgroundColor:"transparent",fontSize:"0.75rem",fontWeight:600,color:"var(--muted)"},children:"Delete"}),(0,b.jsx)("button",{onClick:()=>m(a.id),style:{flex:2,padding:"0.4rem 0.6rem",borderRadius:"6px",border:"none",backgroundColor:l===a.id?"var(--border-focus)":"var(--primary)",fontSize:"0.75rem",fontWeight:600,color:"#fff"},children:l===a.id?"Connected":"Open Session"})]})]})]},a.id))})]}),l&&(0,b.jsxs)("section",{className:"card",style:{display:"flex",flexDirection:"column",border:"1px solid var(--border-focus)"},children:[(0,b.jsxs)("div",{className:e.default.agentHeader,style:{justifyContent:"space-between",background:"rgba(109, 40, 217, 0.08)"},children:[(0,b.jsxs)("span",{style:{fontWeight:600,display:"flex",alignItems:"center",gap:"0.5rem"},children:["🖥️ Console Bridge — ",a.find(a=>a.id===l)?.name]}),(0,b.jsx)("button",{onClick:()=>m(null),style:{border:"none",background:"none",color:"var(--muted)",cursor:"pointer",fontSize:"0.75rem"},children:"Close Panel ✖"})]}),(0,b.jsx)(f,{sessionId:l})]}),(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:e.default.sectionTitle,children:"Shared Context Hub & Slash Commands"}),(0,b.jsxs)("div",{className:e.default.contextList,children:[(0,b.jsxs)("div",{className:`${e.default.contextItem} card`,children:[(0,b.jsxs)("div",{className:e.default.contextMeta,children:[(0,b.jsx)("span",{className:e.default.contextTitle,children:"Staged Context & System Rules (/ccc)"}),(0,b.jsx)("span",{className:e.default.contextDetails,children:"Compiles AGENTS.md guidelines and project files folder hierarchy map."})]}),(0,b.jsx)("button",{onClick:async()=>{l&&await fetch("/api/sessions/inject",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,command:"/ccc"})})},disabled:!l,style:{padding:"0.4rem 0.8rem",borderRadius:"6px",border:"1px solid var(--primary)",backgroundColor:"transparent",color:"var(--primary)",fontSize:"0.75rem",fontWeight:600,opacity:l?1:.5,cursor:l?"pointer":"not-allowed"},children:"🚀 Mount Context (/ccc)"})]}),(0,b.jsxs)("div",{className:`${e.default.contextItem} card`,children:[(0,b.jsxs)("div",{className:e.default.contextMeta,children:[(0,b.jsx)("span",{className:e.default.contextTitle,children:"Staged Developer Prompt (/ccp)"}),(0,b.jsx)("span",{className:e.default.contextDetails,children:"Executes instructions written in .ai/neural-loom/cprompt.md."})]}),(0,b.jsx)("button",{onClick:async()=>{l&&await fetch("/api/sessions/inject",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:l,command:"/ccp"})})},disabled:!l,style:{padding:"0.4rem 0.8rem",borderRadius:"6px",border:"1px solid var(--success)",backgroundColor:"transparent",color:"var(--success)",fontSize:"0.75rem",fontWeight:600,opacity:l?1:.5,cursor:l?"pointer":"not-allowed"},children:"⚡ Trigger Prompt (/ccp)"})]})]}),(0,b.jsx)(g,{})]})]}),(0,b.jsxs)("aside",{className:e.default.sidePanel,children:[(0,b.jsxs)("section",{children:[(0,b.jsx)("h2",{className:e.default.sectionTitle,children:"Execution Environments"}),(0,b.jsxs)("div",{className:e.default.envGrid,children:[(0,b.jsxs)("div",{className:e.default.envRow,children:[(0,b.jsx)("span",{className:e.default.envName,children:"💻 Local host OS"}),(0,b.jsx)("span",{className:e.default.envStatus,style:{color:"var(--success)"},children:"Active"})]}),(0,b.jsxs)("div",{className:e.default.envRow,style:{opacity:C?1:.6},children:[(0,b.jsx)("span",{className:e.default.envName,children:"🐳 Docker Sandbox"}),(0,b.jsx)("span",{className:e.default.envStatus,style:{color:C?"var(--success)":"var(--muted)"},children:C?"Active":"Not Mounted"})]}),(0,b.jsxs)("div",{className:e.default.envRow,style:{opacity:D?1:.6},children:[(0,b.jsx)("span",{className:e.default.envName,children:"🌐 Remote VM (SSH)"}),(0,b.jsx)("span",{className:e.default.envStatus,style:{color:D?"var(--success)":"var(--muted)"},children:D?"Active":"Disconnected"})]})]})]}),(0,b.jsxs)("section",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>F("mock"),disabled:n,children:[(0,b.jsx)("span",{children:"⚡"}),(0,b.jsx)("span",{children:"Launch Mock Agent"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>{y(!1),w(!0)},disabled:n,style:{background:"linear-gradient(135deg, hsl(262, 83%, 60%) 0%, hsl(195, 100%, 45%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🤖"}),(0,b.jsx)("span",{children:"Launch Claude PTY"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>{y(!0),w(!0)},disabled:n,style:{background:"linear-gradient(135deg, hsl(170, 72%, 40%) 0%, hsl(195, 100%, 40%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🐳"}),(0,b.jsx)("span",{children:"Launch Docker PTY"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>q(!0),disabled:n,style:{background:"linear-gradient(135deg, hsl(38, 92%, 50%) 0%, hsl(0, 84%, 60%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🌐"}),(0,b.jsx)("span",{children:"Launch SSH PTY"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>{u(!1),s(!0)},disabled:n,style:{background:"linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(262, 80%, 55%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🐍"}),(0,b.jsx)("span",{children:"Launch Aider PTY"})]}),(0,b.jsxs)("button",{className:e.default.quickLaunchBtn,onClick:()=>{u(!0),s(!0)},disabled:n,style:{background:"linear-gradient(135deg, hsl(195, 100%, 40%) 0%, hsl(262, 80%, 55%) 100%)",border:"none"},children:[(0,b.jsx)("span",{children:"🐳"}),(0,b.jsx)("span",{children:"Launch Aider Docker"})]})]}),(0,b.jsxs)("section",{className:"card",style:{padding:"1.5rem",display:"flex",flexDirection:"column",gap:"0.75rem"},children:[(0,b.jsx)("h3",{style:{fontSize:"1rem",fontWeight:700},children:"Quick Actions"}),(0,b.jsxs)("ul",{style:{listStyle:"none",fontSize:"0.875rem",display:"flex",flexDirection:"column",gap:"0.5rem",color:"var(--muted)"},children:[(0,b.jsxs)("li",{style:{display:"flex",justifyContent:"space-between"},children:[(0,b.jsx)("span",{children:"Configure global API Keys"}),(0,b.jsx)("span",{style:{color:"var(--primary)",cursor:"pointer"},children:"→"})]}),(0,b.jsxs)("li",{style:{display:"flex",justifyContent:"space-between"},children:[(0,b.jsx)("span",{children:"Edit rules templates"}),(0,b.jsx)("span",{style:{color:"var(--primary)",cursor:"pointer"},children:"→"})]}),(0,b.jsxs)("li",{style:{display:"flex",justifyContent:"space-between"},children:[(0,b.jsx)("span",{children:"Inspect process locks"}),(0,b.jsx)("span",{style:{color:"var(--primary)",cursor:"pointer"},children:"→"})]})]})]})]})]}),(0,b.jsxs)("footer",{className:e.default.footer,children:[(0,b.jsx)("span",{children:"NeuralLoom v0.2.13 — Experimental AI Orchestrator Bridge"}),(0,b.jsxs)("span",{children:["Directory: ",z||"Loading..."]})]}),p&&(0,b.jsx)(h,{onClose:()=>q(!1),onConfirmLaunch:()=>{q(!1),F("claude-ssh")}}),r&&(0,b.jsx)(i,{onClose:()=>s(!1),isDocker:t,onConfirmLaunch:()=>{s(!1),F(t?"aider-docker":"aider")}}),v&&(0,b.jsx)(j,{onClose:()=>w(!1),isDocker:x,onConfirmLaunch:(a,b,c)=>{w(!1),F(x?"claude-docker":"claude",a,b,c)}})]})}])}];
2
2
 
3
3
  //# sourceMappingURL=_0t7oqy6._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../node_modules/next/src/shared/lib/lazy-dynamic/bailout-to-csr.ts","../../../../node_modules/next/src/shared/lib/lazy-dynamic/dynamic-bailout-to-csr.tsx","../../../../node_modules/next/src/shared/lib/encode-uri-path.ts","../../../../node_modules/next/src/shared/lib/deployment-id.ts","../../../../node_modules/next/src/shared/lib/lazy-dynamic/preload-chunks.tsx","../../../../node_modules/next/src/shared/lib/lazy-dynamic/loadable.tsx","../../../../node_modules/next/src/shared/lib/app-dynamic.tsx","turbopack:///[project]/src/app/page.module.css [app-ssr] (css module)","../../../../src/app/page.tsx"],"sourcesContent":["// This has to be a shared module which is shared between client component error boundary and dynamic component\nconst BAILOUT_TO_CSR = 'BAILOUT_TO_CLIENT_SIDE_RENDERING'\n\n/** An error that should be thrown when we want to bail out to client-side rendering. */\nexport class BailoutToCSRError extends Error {\n public readonly digest = BAILOUT_TO_CSR\n\n constructor(public readonly reason: string) {\n super(`Bail out to client-side rendering: ${reason}`)\n }\n}\n\n/** Checks if a passed argument is an error that is thrown if we want to bail out to client-side rendering. */\nexport function isBailoutToCSRError(err: unknown): err is BailoutToCSRError {\n if (typeof err !== 'object' || err === null || !('digest' in err)) {\n return false\n }\n\n return err.digest === BAILOUT_TO_CSR\n}\n","'use client'\n\nimport type { ReactElement } from 'react'\nimport { BailoutToCSRError } from './bailout-to-csr'\n\ninterface BailoutToCSRProps {\n reason: string\n children: ReactElement\n}\n\n/**\n * If rendered on the server, this component throws an error\n * to signal Next.js that it should bail out to client-side rendering instead.\n */\nexport function BailoutToCSR({ reason, children }: BailoutToCSRProps) {\n if (typeof window === 'undefined') {\n throw new BailoutToCSRError(reason)\n }\n\n return children\n}\n","export function encodeURIPath(file: string) {\n return file\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')\n}\n","let deploymentId: string | undefined\n\nif (typeof window !== 'undefined') {\n deploymentId = document.documentElement.dataset.dplId\n // Immediately remove the attribute to prevent hydration errors (the dplId was inserted into the\n // HTML only), React isn't aware of it at all.\n delete document.documentElement.dataset.dplId\n} else {\n // Client side: replaced with globalThis.NEXT_DEPLOYMENT_ID\n // Server side: left as is or replaced with a string or replaced with false\n deploymentId = process.env.NEXT_DEPLOYMENT_ID || undefined\n}\n\nexport function getDeploymentId(): string | undefined {\n return deploymentId\n}\n\nexport function getDeploymentIdQuery(ampersand = false): string {\n let id = getDeploymentId()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n\nexport function getAssetToken(): string | undefined {\n return (\n process.env.NEXT_IMMUTABLE_ASSET_TOKEN || process.env.NEXT_DEPLOYMENT_ID\n )\n}\n\nexport function getAssetTokenQuery(ampersand = false): string {\n let id = getAssetToken()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n","'use client'\n\nimport { preload } from 'react-dom'\n\nimport { workAsyncStorage } from '../../../server/app-render/work-async-storage.external'\nimport { encodeURIPath } from '../encode-uri-path'\nimport { getAssetTokenQuery } from '../deployment-id'\n\nexport function PreloadChunks({\n moduleIds,\n}: {\n moduleIds: string[] | undefined\n}) {\n // Early return in client compilation and only load requestStore on server side\n if (typeof window !== 'undefined') {\n return null\n }\n\n const workStore = workAsyncStorage.getStore()\n if (workStore === undefined) {\n return null\n }\n\n const allFiles = []\n\n // Search the current dynamic call unique key id in react loadable manifest,\n // and find the corresponding CSS files to preload\n if (workStore.reactLoadableManifest && moduleIds) {\n const manifest = workStore.reactLoadableManifest\n for (const key of moduleIds) {\n if (!manifest[key]) continue\n const chunks = manifest[key].files\n allFiles.push(...chunks)\n }\n }\n\n if (allFiles.length === 0) {\n return null\n }\n\n const query = getAssetTokenQuery()\n\n return (\n <>\n {allFiles.map((chunk) => {\n const href = `${workStore.assetPrefix}/_next/${encodeURIPath(chunk)}${query}`\n const isCss = chunk.endsWith('.css')\n // If it's stylesheet we use `precedence` o help hoist with React Float.\n // For stylesheets we actually need to render the CSS because nothing else is going to do it so it needs to be part of the component tree.\n // The `preload` for stylesheet is not optional.\n if (isCss) {\n return (\n <link\n key={chunk}\n // @ts-ignore\n precedence=\"dynamic\"\n href={href}\n rel=\"stylesheet\"\n as=\"style\"\n nonce={workStore.nonce}\n />\n )\n } else {\n // If it's script we use ReactDOM.preload to preload the resources\n preload(href, {\n as: 'script',\n fetchPriority: 'low',\n nonce: workStore.nonce,\n })\n return null\n }\n })}\n </>\n )\n}\n","import { Suspense, Fragment, lazy } from 'react'\nimport { BailoutToCSR } from './dynamic-bailout-to-csr'\nimport type { ComponentModule } from './types'\nimport { PreloadChunks } from './preload-chunks'\n\n// Normalize loader to return the module as form { default: Component } for `React.lazy`.\n// Also for backward compatible since next/dynamic allows to resolve a component directly with loader\n// Client component reference proxy need to be converted to a module.\nfunction convertModule<P>(\n mod: React.ComponentType<P> | ComponentModule<P> | undefined\n): {\n default: React.ComponentType<P>\n} {\n // Check \"default\" prop before accessing it, as it could be client reference proxy that could break it reference.\n // Cases:\n // mod: { default: Component }\n // mod: Component\n // mod: { default: proxy(Component) }\n // mod: proxy(Component)\n const hasDefault = mod && 'default' in mod\n return {\n default: hasDefault\n ? (mod as ComponentModule<P>).default\n : (mod as React.ComponentType<P>),\n }\n}\n\nconst defaultOptions = {\n loader: () => Promise.resolve(convertModule(() => null)),\n loading: null,\n ssr: true,\n}\n\ninterface LoadableOptions {\n loader?: () => Promise<React.ComponentType<any> | ComponentModule<any>>\n loading?: React.ComponentType<any> | null\n ssr?: boolean\n modules?: string[]\n}\n\nfunction Loadable(options: LoadableOptions) {\n const opts = { ...defaultOptions, ...options }\n const Lazy = lazy(() => opts.loader().then(convertModule))\n const Loading = opts.loading\n\n function LoadableComponent(props: any) {\n const fallbackElement = Loading ? (\n <Loading isLoading={true} pastDelay={true} error={null} />\n ) : null\n\n // If it's non-SSR or provided a loading component, wrap it in a suspense boundary\n const hasSuspenseBoundary = !opts.ssr || !!opts.loading\n const Wrap = hasSuspenseBoundary ? Suspense : Fragment\n const wrapProps = hasSuspenseBoundary ? { fallback: fallbackElement } : {}\n const children = opts.ssr ? (\n <>\n {/* During SSR, we need to preload the CSS from the dynamic component to avoid flash of unstyled content */}\n {typeof window === 'undefined' ? (\n <PreloadChunks moduleIds={opts.modules} />\n ) : null}\n <Lazy {...props} />\n </>\n ) : (\n <BailoutToCSR reason=\"next/dynamic\">\n <Lazy {...props} />\n </BailoutToCSR>\n )\n\n return <Wrap {...wrapProps}>{children}</Wrap>\n }\n\n LoadableComponent.displayName = 'LoadableComponent'\n\n return LoadableComponent\n}\n\nexport default Loadable\n","import type React from 'react'\nimport type { JSX } from 'react'\nimport Loadable from './lazy-dynamic/loadable'\n\nimport type {\n LoadableGeneratedOptions,\n DynamicOptionsLoadingProps,\n Loader,\n LoaderComponent,\n} from './lazy-dynamic/types'\n\nexport {\n type LoadableGeneratedOptions,\n type DynamicOptionsLoadingProps,\n type Loader,\n type LoaderComponent,\n}\n\nexport type DynamicOptions<P = {}> = LoadableGeneratedOptions & {\n loading?: () => JSX.Element | null\n loader?: Loader<P>\n loadableGenerated?: LoadableGeneratedOptions\n modules?: string[]\n ssr?: boolean\n}\n\nexport type LoadableOptions<P = {}> = DynamicOptions<P>\n\nexport type LoadableFn<P = {}> = (\n opts: LoadableOptions<P>\n) => React.ComponentType<P>\n\nexport type LoadableComponent<P = {}> = React.ComponentType<P>\n\nexport default function dynamic<P = {}>(\n dynamicOptions: DynamicOptions<P> | Loader<P>,\n options?: DynamicOptions<P>\n): React.ComponentType<P> {\n const loadableOptions: LoadableOptions<P> = {}\n\n if (typeof dynamicOptions === 'function') {\n loadableOptions.loader = dynamicOptions\n }\n\n const mergedOptions = {\n ...loadableOptions,\n ...options,\n }\n\n return Loadable({\n ...mergedOptions,\n modules: mergedOptions.loadableGenerated?.modules,\n })\n}\n","__turbopack_context__.v({\n \"activeBorder\": \"page-module___8aEwW__activeBorder\",\n \"agentBadge\": \"page-module___8aEwW__agentBadge\",\n \"agentCard\": \"page-module___8aEwW__agentCard\",\n \"agentGrid\": \"page-module___8aEwW__agentGrid\",\n \"agentHeader\": \"page-module___8aEwW__agentHeader\",\n \"agentName\": \"page-module___8aEwW__agentName\",\n \"ansiCyan\": \"page-module___8aEwW__ansiCyan\",\n \"ansiGreen\": \"page-module___8aEwW__ansiGreen\",\n \"ansiMagenta\": \"page-module___8aEwW__ansiMagenta\",\n \"ansiRed\": \"page-module___8aEwW__ansiRed\",\n \"ansiYellow\": \"page-module___8aEwW__ansiYellow\",\n \"cardBody\": \"page-module___8aEwW__cardBody\",\n \"container\": \"page-module___8aEwW__container\",\n \"containerActive\": \"page-module___8aEwW__containerActive\",\n \"contextDetails\": \"page-module___8aEwW__contextDetails\",\n \"contextItem\": \"page-module___8aEwW__contextItem\",\n \"contextList\": \"page-module___8aEwW__contextList\",\n \"contextMeta\": \"page-module___8aEwW__contextMeta\",\n \"contextTitle\": \"page-module___8aEwW__contextTitle\",\n \"dashboardGrid\": \"page-module___8aEwW__dashboardGrid\",\n \"envGrid\": \"page-module___8aEwW__envGrid\",\n \"envName\": \"page-module___8aEwW__envName\",\n \"envRow\": \"page-module___8aEwW__envRow\",\n \"envStatus\": \"page-module___8aEwW__envStatus\",\n \"footer\": \"page-module___8aEwW__footer\",\n \"header\": \"page-module___8aEwW__header\",\n \"logoArea\": \"page-module___8aEwW__logoArea\",\n \"mainPanel\": \"page-module___8aEwW__mainPanel\",\n \"pulse\": \"page-module___8aEwW__pulse\",\n \"pulseDot\": \"page-module___8aEwW__pulseDot\",\n \"quickLaunchBtn\": \"page-module___8aEwW__quickLaunchBtn\",\n \"sectionTitle\": \"page-module___8aEwW__sectionTitle\",\n \"sidePanel\": \"page-module___8aEwW__sidePanel\",\n \"statusIndicator\": \"page-module___8aEwW__statusIndicator\",\n \"stoppedBadge\": \"page-module___8aEwW__stoppedBadge\",\n \"subtitle\": \"page-module___8aEwW__subtitle\",\n \"terminalContainer\": \"page-module___8aEwW__terminalContainer\",\n \"terminalInput\": \"page-module___8aEwW__terminalInput\",\n \"terminalInputArea\": \"page-module___8aEwW__terminalInputArea\",\n \"terminalLine\": \"page-module___8aEwW__terminalLine\",\n \"terminalSendBtn\": \"page-module___8aEwW__terminalSendBtn\",\n \"title\": \"page-module___8aEwW__title\",\n});\n","\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport dynamic from \"next/dynamic\";\nimport styles from \"./page.module.css\";\n\ninterface RunnerStatus {\n id: string;\n name: string;\n type: 'mock' | 'claude' | 'claude-docker' | 'claude-ssh' | 'aider' | 'aider-docker';\n status: 'idle' | 'running' | 'stopped';\n createdAt: string;\n logsCount: number;\n workspaceRoot?: string;\n scopedDirs?: string[];\n}\n\n// Dynamically import TerminalConsole to bypass SSR errors\nconst TerminalConsole = dynamic(() => import(\"./components/TerminalConsole\"), {\n ssr: false,\n loading: () => (\n <div \n style={{ \n height: \"400px\", \n display: \"flex\", \n alignItems: \"center\", \n justifyContent: \"center\", \n backgroundColor: \"#05070a\", \n color: \"var(--muted)\", \n border: \"1px solid var(--border)\", \n borderBottomLeftRadius: \"12px\", \n borderBottomRightRadius: \"12px\" \n }}\n >\n <span>Initializing terminal emulator...</span>\n </div>\n ),\n});\n\n// Dynamically import ContextEditor to bypass SSR errors\nconst ContextEditor = dynamic(() => import(\"./components/ContextEditor\"), {\n ssr: false,\n loading: () => (\n <div \n style={{ \n height: \"280px\", \n display: \"flex\", \n alignItems: \"center\", \n justifyContent: \"center\", \n backgroundColor: \"var(--card)\", \n border: \"1px solid var(--border)\", \n borderRadius: \"12px\", \n marginTop: \"1.5rem\" \n }}\n >\n <span style={{ color: \"var(--muted)\" }}>Initializing prompt editor...</span>\n </div>\n ),\n});\n\n// Dynamically import SshWizard to bypass SSR errors\nconst SshWizard = dynamic(() => import(\"./components/SshWizard\"), {\n ssr: false,\n});\n\n// Dynamically import AiderWizard to bypass SSR errors\nconst AiderWizard = dynamic(() => import(\"./components/AiderWizard\"), {\n ssr: false,\n});\n\n// Dynamically import ClaudeWizard to bypass SSR errors\nconst ClaudeWizard = dynamic(() => import(\"./components/ClaudeWizard\"), {\n ssr: false,\n});\n\n// Dynamically import IdeLayout to bypass SSR errors\nconst IdeLayout = dynamic(() => import(\"./components/IdeLayout\"), {\n ssr: false,\n});\n\nexport default function Home() {\n const [sessions, setSessions] = useState<RunnerStatus[]>([]);\n const [activeSessionId, setActiveSessionId] = useState<string | null>(null);\n const [isLoading, setIsLoading] = useState<boolean>(false);\n const [isSshWizardOpen, setIsSshWizardOpen] = useState<boolean>(false);\n const [isAiderWizardOpen, setIsAiderWizardOpen] = useState<boolean>(false);\n const [isAiderDockerLaunch, setIsAiderDockerLaunch] = useState<boolean>(false);\n const [isClaudeWizardOpen, setIsClaudeWizardOpen] = useState<boolean>(false);\n const [isClaudeDockerLaunch, setIsClaudeDockerLaunch] = useState<boolean>(false);\n const [serverCwd, setServerCwd] = useState<string>(\"\");\n\n const activeSession = sessions.find(s => s.id === activeSessionId);\n const isDockerActive = sessions.some(s => (s.type === 'claude-docker' || s.type === 'aider-docker') && s.status === 'running');\n const isSshActive = sessions.some(s => s.type === 'claude-ssh' && s.status === 'running');\n\n // Fetch all sessions on mount & periodically\n const fetchSessions = async () => {\n try {\n const res = await fetch(\"/api/sessions\");\n const data = await res.json();\n if (data.sessions) {\n setSessions(data.sessions);\n }\n if (data.originalCwd) {\n setServerCwd(data.originalCwd);\n }\n } catch (err) {\n console.error(\"Failed to fetch sessions:\", err);\n }\n };\n\n useEffect(() => {\n const initFetch = async () => {\n await fetchSessions();\n };\n initFetch();\n const interval = setInterval(fetchSessions, 4000);\n return () => clearInterval(interval);\n }, []);\n\n // Launch a new Session\n const handleLaunchSession = async (\n type: 'mock' | 'claude' | 'claude-docker' | 'claude-ssh' | 'aider' | 'aider-docker',\n customName?: string,\n customWorkspaceRoot?: string,\n customScopedDirs?: string[]\n ) => {\n setIsLoading(true);\n try {\n let sessionName = customName;\n if (!sessionName) {\n if (type === 'claude') sessionName = \"Claude Local\";\n else if (type === 'claude-docker') sessionName = \"Claude Docker\";\n else if (type === 'claude-ssh') sessionName = \"Claude SSH\";\n else if (type === 'aider') sessionName = \"Aider Local\";\n else if (type === 'aider-docker') sessionName = \"Aider Docker\";\n else if (type === 'mock') sessionName = \"Mock Session\";\n }\n\n const launchBody: {\n type: string;\n name?: string;\n workspaceRoot?: string;\n scopedDirs?: string[];\n } = { \n type, \n name: sessionName, \n workspaceRoot: customWorkspaceRoot, \n scopedDirs: customScopedDirs \n };\n\n if ((type === 'aider' || type === 'aider-docker') && !customWorkspaceRoot) {\n try {\n const configRes = await fetch(\"/api/context/aider\");\n if (configRes.ok) {\n const configData = await configRes.json();\n if (configData.success && configData.config) {\n launchBody.workspaceRoot = configData.config.workspaceRoot;\n launchBody.scopedDirs = configData.config.scopedDirs;\n }\n }\n } catch (err) {\n console.error(\"Failed to load aider configuration before launch:\", err);\n }\n }\n\n const res = await fetch(\"/api/sessions/launch\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify(launchBody)\n });\n const data = await res.json();\n if (data.success) {\n await fetchSessions();\n setActiveSessionId(data.session.id);\n }\n } catch (err) {\n console.error(\"Failed to launch session:\", err);\n } finally {\n setIsLoading(false);\n }\n };\n\n // Stop/Disconnect Session\n const handleStopSession = async (id: string, deletePermanently = false) => {\n try {\n const res = await fetch(\"/api/sessions/stop\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ id, delete: deletePermanently })\n });\n const data = await res.json();\n if (data.success) {\n if (deletePermanently && activeSessionId === id) {\n setActiveSessionId(null);\n }\n await fetchSessions();\n }\n } catch (err) {\n console.error(\"Failed to stop session:\", err);\n }\n };\n\n return (\n <div className={`${styles.container} ${activeSession ? styles.containerActive : \"\"}`}>\n {/* Header */}\n <header className={styles.header}>\n <div className={styles.logoArea}>\n <h1 className={styles.title}>NeuralLoom</h1>\n <span className={styles.subtitle}>Unified AI Orchestrator & Context Bridge</span>\n </div>\n <div className={styles.statusIndicator}>\n <span className={styles.pulseDot}></span>\n <span>Orchestrator Online</span>\n </div>\n </header>\n\n {/* Main Dashboard Grid or Active Session IDE */}\n {activeSession ? (\n <div style={{ flex: 1, minHeight: 0, display: \"flex\", flexDirection: \"column\" }}>\n <IdeLayout\n sessionId={activeSession.id}\n workspaceRoot={activeSession.workspaceRoot || \"\"}\n scopedDirs={activeSession.scopedDirs || []}\n onClose={() => setActiveSessionId(null)}\n sessions={sessions}\n onSwitchSession={(id) => setActiveSessionId(id)}\n />\n </div>\n ) : (\n <div className={styles.dashboardGrid}>\n \n {/* Left Panel: Active Agents & Interactive Terminal */}\n <main className={styles.mainPanel}>\n <section>\n <h2 className={styles.sectionTitle}>Active AI Agents</h2>\n \n {sessions.length === 0 ? (\n <div className=\"card\" style={{ padding: \"3rem 1.5rem\", textAlign: \"center\" }}>\n <p style={{ color: \"var(--muted)\", marginBottom: \"1.5rem\" }}>\n No active agent sessions in this workspace. Launch a simulated session to verify the control bridge.\n </p>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => handleLaunchSession('mock')}\n disabled={isLoading}\n style={{ maxWidth: \"240px\", margin: \"0 auto\" }}\n >\n {isLoading ? \"Launching...\" : \"⚡ Launch Simulated Session\"}\n </button>\n </div>\n ) : (\n <div className={styles.agentGrid}>\n {sessions.map(session => (\n <div key={session.id} className={`${styles.agentCard} card ${activeSessionId === session.id ? styles.activeBorder : \"\"}`}>\n <div className={styles.agentHeader}>\n <span className={styles.agentName}>{session.name}</span>\n <span className={`${styles.agentBadge} ${session.status === 'stopped' ? styles.stoppedBadge : \"\"}`}>\n {session.status}\n </span>\n </div>\n <div className={styles.cardBody}>\n <p style={{ fontSize: \"0.825rem\", color: \"var(--muted)\" }}>\n ID: <code style={{ fontSize: \"0.75rem\" }}>{session.id.substring(0, 8)}</code><br />\n Type: {\n session.type === 'claude' ? \"Claude Local PTY\" :\n session.type === 'claude-docker' ? \"Claude Docker PTY\" :\n session.type === 'claude-ssh' ? \"Claude SSH PTY\" :\n session.type === 'aider' ? \"Aider Local PTY\" :\n session.type === 'aider-docker' ? \"Aider Docker PTY\" :\n session.type === 'mock' ? \"Simulated Mock PTY\" : \"Unknown PTY\"\n }<br />\n Logs: {session.logsCount} captured lines\n </p>\n \n <div style={{ display: \"flex\", gap: \"0.5rem\", marginTop: \"1rem\" }}>\n {session.status === 'running' ? (\n <button \n onClick={() => handleStopSession(session.id, false)}\n style={{\n flex: 1,\n padding: \"0.4rem 0.6rem\",\n borderRadius: \"6px\",\n border: \"1px solid var(--danger)\",\n backgroundColor: \"transparent\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n color: \"var(--danger)\"\n }}\n >Stop</button>\n ) : (\n <button \n onClick={() => handleStopSession(session.id, true)}\n style={{\n flex: 1,\n padding: \"0.4rem 0.6rem\",\n borderRadius: \"6px\",\n border: \"1px solid var(--border)\",\n backgroundColor: \"transparent\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n color: \"var(--muted)\"\n }}\n >Delete</button>\n )}\n <button \n onClick={() => setActiveSessionId(session.id)}\n style={{\n flex: 2,\n padding: \"0.4rem 0.6rem\",\n borderRadius: \"6px\",\n border: \"none\",\n backgroundColor: activeSessionId === session.id ? \"var(--border-focus)\" : \"var(--primary)\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n color: \"#fff\"\n }}\n >\n {activeSessionId === session.id ? \"Connected\" : \"Open Session\"}\n </button>\n </div>\n </div>\n </div>\n ))}\n </div>\n )}\n </section>\n\n {/* Interactive Session Terminal Display */}\n {activeSessionId && (\n <section className=\"card\" style={{ display: \"flex\", flexDirection: \"column\", border: \"1px solid var(--border-focus)\" }}>\n <div className={styles.agentHeader} style={{ justifyContent: \"space-between\", background: \"rgba(109, 40, 217, 0.08)\" }}>\n <span style={{ fontWeight: 600, display: \"flex\", alignItems: \"center\", gap: \"0.5rem\" }}>\n 🖥️ Console Bridge — {sessions.find(s => s.id === activeSessionId)?.name}\n </span>\n <button \n onClick={() => setActiveSessionId(null)}\n style={{\n border: \"none\",\n background: \"none\",\n color: \"var(--muted)\",\n cursor: \"pointer\",\n fontSize: \"0.75rem\"\n }}\n >Close Panel ✖</button>\n </div>\n <TerminalConsole sessionId={activeSessionId} />\n </section>\n )}\n\n {/* Context Hub Staging section */}\n <section>\n <h2 className={styles.sectionTitle}>Shared Context Hub & Slash Commands</h2>\n <div className={styles.contextList}>\n <div className={`${styles.contextItem} card`}>\n <div className={styles.contextMeta}>\n <span className={styles.contextTitle}>Staged Context & System Rules (/ccc)</span>\n <span className={styles.contextDetails}>Compiles AGENTS.md guidelines and project files folder hierarchy map.</span>\n </div>\n <button\n onClick={async () => {\n if (!activeSessionId) return;\n await fetch(\"/api/sessions/inject\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ id: activeSessionId, command: \"/ccc\" })\n });\n }}\n disabled={!activeSessionId}\n style={{\n padding: \"0.4rem 0.8rem\",\n borderRadius: \"6px\",\n border: \"1px solid var(--primary)\",\n backgroundColor: \"transparent\",\n color: \"var(--primary)\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n opacity: activeSessionId ? 1 : 0.5,\n cursor: activeSessionId ? \"pointer\" : \"not-allowed\"\n }}\n >\n 🚀 Mount Context (/ccc)\n </button>\n </div>\n \n <div className={`${styles.contextItem} card`}>\n <div className={styles.contextMeta}>\n <span className={styles.contextTitle}>Staged Developer Prompt (/ccp)</span>\n <span className={styles.contextDetails}>Executes instructions written in .ai/neural-loom/cprompt.md.</span>\n </div>\n <button\n onClick={async () => {\n if (!activeSessionId) return;\n await fetch(\"/api/sessions/inject\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ id: activeSessionId, command: \"/ccp\" })\n });\n }}\n disabled={!activeSessionId}\n style={{\n padding: \"0.4rem 0.8rem\",\n borderRadius: \"6px\",\n border: \"1px solid var(--success)\",\n backgroundColor: \"transparent\",\n color: \"var(--success)\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n opacity: activeSessionId ? 1 : 0.5,\n cursor: activeSessionId ? \"pointer\" : \"not-allowed\"\n }}\n >\n ⚡ Trigger Prompt (/ccp)\n </button>\n </div>\n </div>\n <ContextEditor />\n </section>\n </main>\n\n {/* Right Panel: Environments & Actions */}\n <aside className={styles.sidePanel}>\n <section>\n <h2 className={styles.sectionTitle}>Execution Environments</h2>\n <div className={styles.envGrid}>\n <div className={styles.envRow}>\n <span className={styles.envName}>💻 Local host OS</span>\n <span className={styles.envStatus} style={{ color: \"var(--success)\" }}>Active</span>\n </div>\n <div className={styles.envRow} style={{ opacity: isDockerActive ? 1 : 0.6 }}>\n <span className={styles.envName}>🐳 Docker Sandbox</span>\n <span className={styles.envStatus} style={{ color: isDockerActive ? \"var(--success)\" : \"var(--muted)\" }}>\n {isDockerActive ? \"Active\" : \"Not Mounted\"}\n </span>\n </div>\n <div className={styles.envRow} style={{ opacity: isSshActive ? 1 : 0.6 }}>\n <span className={styles.envName}>🌐 Remote VM (SSH)</span>\n <span className={styles.envStatus} style={{ color: isSshActive ? \"var(--success)\" : \"var(--muted)\" }}>\n {isSshActive ? \"Active\" : \"Disconnected\"}\n </span>\n </div>\n </div>\n </section>\n\n <section style={{ display: \"flex\", flexDirection: \"column\", gap: \"0.75rem\" }}>\n <button className={styles.quickLaunchBtn} onClick={() => handleLaunchSession('mock')} disabled={isLoading}>\n <span>⚡</span>\n <span>Launch Mock Agent</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => {\n setIsClaudeDockerLaunch(false);\n setIsClaudeWizardOpen(true);\n }} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(262, 83%, 60%) 0%, hsl(195, 100%, 45%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🤖</span>\n <span>Launch Claude PTY</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => {\n setIsClaudeDockerLaunch(true);\n setIsClaudeWizardOpen(true);\n }} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(170, 72%, 40%) 0%, hsl(195, 100%, 40%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🐳</span>\n <span>Launch Docker PTY</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => setIsSshWizardOpen(true)} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(38, 92%, 50%) 0%, hsl(0, 84%, 60%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🌐</span>\n <span>Launch SSH PTY</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => {\n setIsAiderDockerLaunch(false);\n setIsAiderWizardOpen(true);\n }} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(262, 80%, 55%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🐍</span>\n <span>Launch Aider PTY</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => {\n setIsAiderDockerLaunch(true);\n setIsAiderWizardOpen(true);\n }} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(195, 100%, 40%) 0%, hsl(262, 80%, 55%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🐳</span>\n <span>Launch Aider Docker</span>\n </button>\n </section>\n\n <section className=\"card\" style={{ padding: \"1.5rem\", display: \"flex\", flexDirection: \"column\", gap: \"0.75rem\" }}>\n <h3 style={{ fontSize: \"1rem\", fontWeight: 700 }}>Quick Actions</h3>\n <ul style={{ listStyle: \"none\", fontSize: \"0.875rem\", display: \"flex\", flexDirection: \"column\", gap: \"0.5rem\", color: \"var(--muted)\" }}>\n <li style={{ display: \"flex\", justifyContent: \"space-between\" }}>\n <span>Configure global API Keys</span>\n <span style={{ color: \"var(--primary)\", cursor: \"pointer\" }}>→</span>\n </li>\n <li style={{ display: \"flex\", justifyContent: \"space-between\" }}>\n <span>Edit rules templates</span>\n <span style={{ color: \"var(--primary)\", cursor: \"pointer\" }}>→</span>\n </li>\n <li style={{ display: \"flex\", justifyContent: \"space-between\" }}>\n <span>Inspect process locks</span>\n <span style={{ color: \"var(--primary)\", cursor: \"pointer\" }}>→</span>\n </li>\n </ul>\n </section>\n </aside>\n\n </div>\n )}\n\n {/* Footer */}\n <footer className={styles.footer}>\n <span>NeuralLoom v0.2.13 — Experimental AI Orchestrator Bridge</span>\n <span>Directory: {serverCwd || \"Loading...\"}</span>\n </footer>\n\n {isSshWizardOpen && (\n <SshWizard\n onClose={() => setIsSshWizardOpen(false)}\n onConfirmLaunch={() => {\n setIsSshWizardOpen(false);\n handleLaunchSession('claude-ssh');\n }}\n />\n )}\n\n {isAiderWizardOpen && (\n <AiderWizard\n onClose={() => setIsAiderWizardOpen(false)}\n isDocker={isAiderDockerLaunch}\n onConfirmLaunch={() => {\n setIsAiderWizardOpen(false);\n handleLaunchSession(isAiderDockerLaunch ? 'aider-docker' : 'aider');\n }}\n />\n )}\n\n {isClaudeWizardOpen && (\n <ClaudeWizard\n onClose={() => setIsClaudeWizardOpen(false)}\n isDocker={isClaudeDockerLaunch}\n onConfirmLaunch={(name, workspaceRoot, scopedDirs) => {\n setIsClaudeWizardOpen(false);\n handleLaunchSession(isClaudeDockerLaunch ? 'claude-docker' : 'claude', name, workspaceRoot, scopedDirs);\n }}\n />\n )}\n </div>\n );\n}\n"],"names":["BailoutToCSRError","isBailoutToCSRError","BAILOUT_TO_CSR","Error","constructor","reason","digest","err","BailoutToCSR","children","window","encodeURIPath","file","split","map","p","encodeURIComponent","join","getAssetToken","getAssetTokenQuery","getDeploymentId","getDeploymentIdQuery","deploymentId","document","documentElement","dataset","dplId","process","env","NEXT_DEPLOYMENT_ID","undefined","ampersand","id","NEXT_IMMUTABLE_ASSET_TOKEN","PreloadChunks","moduleIds","workStore","workAsyncStorage","getStore","allFiles","reactLoadableManifest","manifest","key","chunks","files","push","length","query","chunk","href","assetPrefix","isCss","endsWith","link","precedence","rel","as","nonce","preload","fetchPriority","convertModule","mod","hasDefault","default","defaultOptions","loader","Promise","resolve","loading","ssr","Loadable","options","opts","Lazy","lazy","then","Loading","LoadableComponent","props","fallbackElement","isLoading","pastDelay","error","hasSuspenseBoundary","Wrap","Suspense","Fragment","wrapProps","fallback","modules","displayName","dynamic","dynamicOptions","loadableOptions","mergedOptions","loadableGenerated","TerminalConsole","style","height","display","alignItems","justifyContent","backgroundColor","color","border","borderBottomLeftRadius","borderBottomRightRadius","ContextEditor","borderRadius","marginTop","SshWizard","AiderWizard","ClaudeWizard","IdeLayout","Home","sessions","setSessions","activeSessionId","setActiveSessionId","setIsLoading","isSshWizardOpen","setIsSshWizardOpen","isAiderWizardOpen","setIsAiderWizardOpen","isAiderDockerLaunch","setIsAiderDockerLaunch","isClaudeWizardOpen","setIsClaudeWizardOpen","isClaudeDockerLaunch","setIsClaudeDockerLaunch","serverCwd","setServerCwd","activeSession","find","s","isDockerActive","some","type","status","isSshActive","fetchSessions","res","fetch","data","json","originalCwd","console","initFetch","interval","setInterval","clearInterval","handleLaunchSession","customName","customWorkspaceRoot","customScopedDirs","sessionName","launchBody","name","workspaceRoot","scopedDirs","configRes","ok","configData","success","config","method","headers","body","JSON","stringify","session","handleStopSession","deletePermanently","delete","className","container","containerActive","header","logoArea","title","subtitle","statusIndicator","pulseDot","flex","minHeight","flexDirection","sessionId","onClose","onSwitchSession","dashboardGrid","mainPanel","sectionTitle","padding","textAlign","marginBottom","quickLaunchBtn","onClick","disabled","maxWidth","margin","agentGrid","agentCard","activeBorder","agentHeader","agentName","agentBadge","stoppedBadge","cardBody","fontSize","substring","logsCount","gap","fontWeight","background","cursor","contextList","contextItem","contextMeta","contextTitle","contextDetails","command","opacity","sidePanel","envGrid","envRow","envName","envStatus","listStyle","footer","onConfirmLaunch","isDocker"],"mappings":"qGAIaA,iBAAiB,CAAA,kBAAjBA,GASGC,mBAAmB,CAAA,kBAAnBA,uEAZhB,IAAMC,EAAiB,kCAGhB,OAAMF,UAA0BG,MAGrCC,YAA4BC,CAAc,CAAE,CAC1C,KAAK,CAAC,CAAC,mCAAmC,EAAEA,EAAAA,CAAQ,EAAA,IAAA,CAD1BA,MAAAA,CAAAA,EAAAA,IAAAA,CAFZC,MAAAA,CAASJ,CAIzB,CACF,CAGO,SAASD,EAAoBM,CAAY,QAC9C,AAAmB,UAAf,OAAOA,GAA4B,OAARA,CAAgB,CAAE,CAAA,WAAYA,GAAE,AAIxDA,EAAID,CAJwD,KAIlD,GAAKJ,CACxB,yGCLgBM,eAAAA,qCAAAA,aAXkB,CAAA,CAAA,IAAA,GAW3B,SAASA,EAAa,CAAEH,QAAM,UAAEI,CAAQ,CAAqB,EAEhE,MAAM,OAAA,cAA6B,CAA7B,IAAIT,EAAAA,iBAAiB,CAACK,GAAtB,oBAAA,OAAA,mBAAA,gBAAA,CAA4B,EAItC,+BCpBO,SAASM,EAAcC,CAAY,EACxC,OAAOA,EACJC,KAAK,CAAC,KACNC,GAAG,CAAC,AAACC,GAAMC,mBAAmBD,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EAAMC,EAAeC,EAC9F,MAKV","ignoreList":[0,1,2,3,4,5,6]}
1
+ {"version":3,"sources":["../../../../node_modules/next/src/shared/lib/lazy-dynamic/bailout-to-csr.ts","../../../../node_modules/next/src/shared/lib/lazy-dynamic/dynamic-bailout-to-csr.tsx","../../../../node_modules/next/src/shared/lib/encode-uri-path.ts","../../../../node_modules/next/src/shared/lib/deployment-id.ts","../../../../node_modules/next/src/shared/lib/lazy-dynamic/preload-chunks.tsx","../../../../node_modules/next/src/shared/lib/lazy-dynamic/loadable.tsx","../../../../node_modules/next/src/shared/lib/app-dynamic.tsx","turbopack:///[project]/src/app/page.module.css [app-ssr] (css module)","../../../../src/app/page.tsx"],"sourcesContent":["// This has to be a shared module which is shared between client component error boundary and dynamic component\nconst BAILOUT_TO_CSR = 'BAILOUT_TO_CLIENT_SIDE_RENDERING'\n\n/** An error that should be thrown when we want to bail out to client-side rendering. */\nexport class BailoutToCSRError extends Error {\n public readonly digest = BAILOUT_TO_CSR\n\n constructor(public readonly reason: string) {\n super(`Bail out to client-side rendering: ${reason}`)\n }\n}\n\n/** Checks if a passed argument is an error that is thrown if we want to bail out to client-side rendering. */\nexport function isBailoutToCSRError(err: unknown): err is BailoutToCSRError {\n if (typeof err !== 'object' || err === null || !('digest' in err)) {\n return false\n }\n\n return err.digest === BAILOUT_TO_CSR\n}\n","'use client'\n\nimport type { ReactElement } from 'react'\nimport { BailoutToCSRError } from './bailout-to-csr'\n\ninterface BailoutToCSRProps {\n reason: string\n children: ReactElement\n}\n\n/**\n * If rendered on the server, this component throws an error\n * to signal Next.js that it should bail out to client-side rendering instead.\n */\nexport function BailoutToCSR({ reason, children }: BailoutToCSRProps) {\n if (typeof window === 'undefined') {\n throw new BailoutToCSRError(reason)\n }\n\n return children\n}\n","export function encodeURIPath(file: string) {\n return file\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')\n}\n","let deploymentId: string | undefined\n\nif (typeof window !== 'undefined') {\n deploymentId = document.documentElement.dataset.dplId\n // Immediately remove the attribute to prevent hydration errors (the dplId was inserted into the\n // HTML only), React isn't aware of it at all.\n delete document.documentElement.dataset.dplId\n} else {\n // Client side: replaced with globalThis.NEXT_DEPLOYMENT_ID\n // Server side: left as is or replaced with a string or replaced with false\n deploymentId = process.env.NEXT_DEPLOYMENT_ID || undefined\n}\n\nexport function getDeploymentId(): string | undefined {\n return deploymentId\n}\n\nexport function getDeploymentIdQuery(ampersand = false): string {\n let id = getDeploymentId()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n\nexport function getAssetToken(): string | undefined {\n return (\n process.env.NEXT_IMMUTABLE_ASSET_TOKEN || process.env.NEXT_DEPLOYMENT_ID\n )\n}\n\nexport function getAssetTokenQuery(ampersand = false): string {\n let id = getAssetToken()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n","'use client'\n\nimport { preload } from 'react-dom'\n\nimport { workAsyncStorage } from '../../../server/app-render/work-async-storage.external'\nimport { encodeURIPath } from '../encode-uri-path'\nimport { getAssetTokenQuery } from '../deployment-id'\n\nexport function PreloadChunks({\n moduleIds,\n}: {\n moduleIds: string[] | undefined\n}) {\n // Early return in client compilation and only load requestStore on server side\n if (typeof window !== 'undefined') {\n return null\n }\n\n const workStore = workAsyncStorage.getStore()\n if (workStore === undefined) {\n return null\n }\n\n const allFiles = []\n\n // Search the current dynamic call unique key id in react loadable manifest,\n // and find the corresponding CSS files to preload\n if (workStore.reactLoadableManifest && moduleIds) {\n const manifest = workStore.reactLoadableManifest\n for (const key of moduleIds) {\n if (!manifest[key]) continue\n const chunks = manifest[key].files\n allFiles.push(...chunks)\n }\n }\n\n if (allFiles.length === 0) {\n return null\n }\n\n const query = getAssetTokenQuery()\n\n return (\n <>\n {allFiles.map((chunk) => {\n const href = `${workStore.assetPrefix}/_next/${encodeURIPath(chunk)}${query}`\n const isCss = chunk.endsWith('.css')\n // If it's stylesheet we use `precedence` o help hoist with React Float.\n // For stylesheets we actually need to render the CSS because nothing else is going to do it so it needs to be part of the component tree.\n // The `preload` for stylesheet is not optional.\n if (isCss) {\n return (\n <link\n key={chunk}\n // @ts-ignore\n precedence=\"dynamic\"\n href={href}\n rel=\"stylesheet\"\n as=\"style\"\n nonce={workStore.nonce}\n />\n )\n } else {\n // If it's script we use ReactDOM.preload to preload the resources\n preload(href, {\n as: 'script',\n fetchPriority: 'low',\n nonce: workStore.nonce,\n })\n return null\n }\n })}\n </>\n )\n}\n","import { Suspense, Fragment, lazy } from 'react'\nimport { BailoutToCSR } from './dynamic-bailout-to-csr'\nimport type { ComponentModule } from './types'\nimport { PreloadChunks } from './preload-chunks'\n\n// Normalize loader to return the module as form { default: Component } for `React.lazy`.\n// Also for backward compatible since next/dynamic allows to resolve a component directly with loader\n// Client component reference proxy need to be converted to a module.\nfunction convertModule<P>(\n mod: React.ComponentType<P> | ComponentModule<P> | undefined\n): {\n default: React.ComponentType<P>\n} {\n // Check \"default\" prop before accessing it, as it could be client reference proxy that could break it reference.\n // Cases:\n // mod: { default: Component }\n // mod: Component\n // mod: { default: proxy(Component) }\n // mod: proxy(Component)\n const hasDefault = mod && 'default' in mod\n return {\n default: hasDefault\n ? (mod as ComponentModule<P>).default\n : (mod as React.ComponentType<P>),\n }\n}\n\nconst defaultOptions = {\n loader: () => Promise.resolve(convertModule(() => null)),\n loading: null,\n ssr: true,\n}\n\ninterface LoadableOptions {\n loader?: () => Promise<React.ComponentType<any> | ComponentModule<any>>\n loading?: React.ComponentType<any> | null\n ssr?: boolean\n modules?: string[]\n}\n\nfunction Loadable(options: LoadableOptions) {\n const opts = { ...defaultOptions, ...options }\n const Lazy = lazy(() => opts.loader().then(convertModule))\n const Loading = opts.loading\n\n function LoadableComponent(props: any) {\n const fallbackElement = Loading ? (\n <Loading isLoading={true} pastDelay={true} error={null} />\n ) : null\n\n // If it's non-SSR or provided a loading component, wrap it in a suspense boundary\n const hasSuspenseBoundary = !opts.ssr || !!opts.loading\n const Wrap = hasSuspenseBoundary ? Suspense : Fragment\n const wrapProps = hasSuspenseBoundary ? { fallback: fallbackElement } : {}\n const children = opts.ssr ? (\n <>\n {/* During SSR, we need to preload the CSS from the dynamic component to avoid flash of unstyled content */}\n {typeof window === 'undefined' ? (\n <PreloadChunks moduleIds={opts.modules} />\n ) : null}\n <Lazy {...props} />\n </>\n ) : (\n <BailoutToCSR reason=\"next/dynamic\">\n <Lazy {...props} />\n </BailoutToCSR>\n )\n\n return <Wrap {...wrapProps}>{children}</Wrap>\n }\n\n LoadableComponent.displayName = 'LoadableComponent'\n\n return LoadableComponent\n}\n\nexport default Loadable\n","import type React from 'react'\nimport type { JSX } from 'react'\nimport Loadable from './lazy-dynamic/loadable'\n\nimport type {\n LoadableGeneratedOptions,\n DynamicOptionsLoadingProps,\n Loader,\n LoaderComponent,\n} from './lazy-dynamic/types'\n\nexport {\n type LoadableGeneratedOptions,\n type DynamicOptionsLoadingProps,\n type Loader,\n type LoaderComponent,\n}\n\nexport type DynamicOptions<P = {}> = LoadableGeneratedOptions & {\n loading?: () => JSX.Element | null\n loader?: Loader<P>\n loadableGenerated?: LoadableGeneratedOptions\n modules?: string[]\n ssr?: boolean\n}\n\nexport type LoadableOptions<P = {}> = DynamicOptions<P>\n\nexport type LoadableFn<P = {}> = (\n opts: LoadableOptions<P>\n) => React.ComponentType<P>\n\nexport type LoadableComponent<P = {}> = React.ComponentType<P>\n\nexport default function dynamic<P = {}>(\n dynamicOptions: DynamicOptions<P> | Loader<P>,\n options?: DynamicOptions<P>\n): React.ComponentType<P> {\n const loadableOptions: LoadableOptions<P> = {}\n\n if (typeof dynamicOptions === 'function') {\n loadableOptions.loader = dynamicOptions\n }\n\n const mergedOptions = {\n ...loadableOptions,\n ...options,\n }\n\n return Loadable({\n ...mergedOptions,\n modules: mergedOptions.loadableGenerated?.modules,\n })\n}\n","__turbopack_context__.v({\n \"activeBorder\": \"page-module___8aEwW__activeBorder\",\n \"agentBadge\": \"page-module___8aEwW__agentBadge\",\n \"agentCard\": \"page-module___8aEwW__agentCard\",\n \"agentGrid\": \"page-module___8aEwW__agentGrid\",\n \"agentHeader\": \"page-module___8aEwW__agentHeader\",\n \"agentName\": \"page-module___8aEwW__agentName\",\n \"ansiCyan\": \"page-module___8aEwW__ansiCyan\",\n \"ansiGreen\": \"page-module___8aEwW__ansiGreen\",\n \"ansiMagenta\": \"page-module___8aEwW__ansiMagenta\",\n \"ansiRed\": \"page-module___8aEwW__ansiRed\",\n \"ansiYellow\": \"page-module___8aEwW__ansiYellow\",\n \"cardBody\": \"page-module___8aEwW__cardBody\",\n \"container\": \"page-module___8aEwW__container\",\n \"containerActive\": \"page-module___8aEwW__containerActive\",\n \"contextDetails\": \"page-module___8aEwW__contextDetails\",\n \"contextItem\": \"page-module___8aEwW__contextItem\",\n \"contextList\": \"page-module___8aEwW__contextList\",\n \"contextMeta\": \"page-module___8aEwW__contextMeta\",\n \"contextTitle\": \"page-module___8aEwW__contextTitle\",\n \"dashboardGrid\": \"page-module___8aEwW__dashboardGrid\",\n \"envGrid\": \"page-module___8aEwW__envGrid\",\n \"envName\": \"page-module___8aEwW__envName\",\n \"envRow\": \"page-module___8aEwW__envRow\",\n \"envStatus\": \"page-module___8aEwW__envStatus\",\n \"footer\": \"page-module___8aEwW__footer\",\n \"header\": \"page-module___8aEwW__header\",\n \"logoArea\": \"page-module___8aEwW__logoArea\",\n \"mainPanel\": \"page-module___8aEwW__mainPanel\",\n \"pulse\": \"page-module___8aEwW__pulse\",\n \"pulseDot\": \"page-module___8aEwW__pulseDot\",\n \"quickLaunchBtn\": \"page-module___8aEwW__quickLaunchBtn\",\n \"sectionTitle\": \"page-module___8aEwW__sectionTitle\",\n \"sidePanel\": \"page-module___8aEwW__sidePanel\",\n \"statusIndicator\": \"page-module___8aEwW__statusIndicator\",\n \"stoppedBadge\": \"page-module___8aEwW__stoppedBadge\",\n \"subtitle\": \"page-module___8aEwW__subtitle\",\n \"terminalContainer\": \"page-module___8aEwW__terminalContainer\",\n \"terminalInput\": \"page-module___8aEwW__terminalInput\",\n \"terminalInputArea\": \"page-module___8aEwW__terminalInputArea\",\n \"terminalLine\": \"page-module___8aEwW__terminalLine\",\n \"terminalSendBtn\": \"page-module___8aEwW__terminalSendBtn\",\n \"title\": \"page-module___8aEwW__title\",\n});\n","\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport dynamic from \"next/dynamic\";\nimport styles from \"./page.module.css\";\n\ninterface RunnerStatus {\n id: string;\n name: string;\n type: 'mock' | 'claude' | 'claude-docker' | 'claude-ssh' | 'aider' | 'aider-docker';\n status: 'idle' | 'running' | 'stopped';\n createdAt: string;\n logsCount: number;\n workspaceRoot?: string;\n scopedDirs?: string[];\n}\n\n// Dynamically import TerminalConsole to bypass SSR errors\nconst TerminalConsole = dynamic(() => import(\"./components/TerminalConsole\"), {\n ssr: false,\n loading: () => (\n <div \n style={{ \n height: \"400px\", \n display: \"flex\", \n alignItems: \"center\", \n justifyContent: \"center\", \n backgroundColor: \"#05070a\", \n color: \"var(--muted)\", \n border: \"1px solid var(--border)\", \n borderBottomLeftRadius: \"12px\", \n borderBottomRightRadius: \"12px\" \n }}\n >\n <span>Initializing terminal emulator...</span>\n </div>\n ),\n});\n\n// Dynamically import ContextEditor to bypass SSR errors\nconst ContextEditor = dynamic(() => import(\"./components/ContextEditor\"), {\n ssr: false,\n loading: () => (\n <div \n style={{ \n height: \"280px\", \n display: \"flex\", \n alignItems: \"center\", \n justifyContent: \"center\", \n backgroundColor: \"var(--card)\", \n border: \"1px solid var(--border)\", \n borderRadius: \"12px\", \n marginTop: \"1.5rem\" \n }}\n >\n <span style={{ color: \"var(--muted)\" }}>Initializing prompt editor...</span>\n </div>\n ),\n});\n\n// Dynamically import SshWizard to bypass SSR errors\nconst SshWizard = dynamic(() => import(\"./components/SshWizard\"), {\n ssr: false,\n});\n\n// Dynamically import AiderWizard to bypass SSR errors\nconst AiderWizard = dynamic(() => import(\"./components/AiderWizard\"), {\n ssr: false,\n});\n\n// Dynamically import ClaudeWizard to bypass SSR errors\nconst ClaudeWizard = dynamic(() => import(\"./components/ClaudeWizard\"), {\n ssr: false,\n});\n\n// Dynamically import IdeLayout to bypass SSR errors\nconst IdeLayout = dynamic(() => import(\"./components/IdeLayout\"), {\n ssr: false,\n});\n\nexport default function Home() {\n const [sessions, setSessions] = useState<RunnerStatus[]>([]);\n const [activeSessionId, setActiveSessionId] = useState<string | null>(null);\n const [isLoading, setIsLoading] = useState<boolean>(false);\n const [isSshWizardOpen, setIsSshWizardOpen] = useState<boolean>(false);\n const [isAiderWizardOpen, setIsAiderWizardOpen] = useState<boolean>(false);\n const [isAiderDockerLaunch, setIsAiderDockerLaunch] = useState<boolean>(false);\n const [isClaudeWizardOpen, setIsClaudeWizardOpen] = useState<boolean>(false);\n const [isClaudeDockerLaunch, setIsClaudeDockerLaunch] = useState<boolean>(false);\n const [serverCwd, setServerCwd] = useState<string>(\"\");\n\n const activeSession = sessions.find(s => s.id === activeSessionId);\n const isDockerActive = sessions.some(s => (s.type === 'claude-docker' || s.type === 'aider-docker') && s.status === 'running');\n const isSshActive = sessions.some(s => s.type === 'claude-ssh' && s.status === 'running');\n\n // Fetch all sessions on mount & periodically\n const fetchSessions = async () => {\n try {\n const res = await fetch(\"/api/sessions\");\n const data = await res.json();\n if (data.sessions) {\n setSessions(data.sessions);\n }\n if (data.originalCwd) {\n setServerCwd(data.originalCwd);\n }\n } catch (err) {\n console.error(\"Failed to fetch sessions:\", err);\n }\n };\n\n useEffect(() => {\n const initFetch = async () => {\n await fetchSessions();\n };\n initFetch();\n const interval = setInterval(fetchSessions, 4000);\n return () => clearInterval(interval);\n }, []);\n\n // Launch a new Session\n const handleLaunchSession = async (\n type: 'mock' | 'claude' | 'claude-docker' | 'claude-ssh' | 'aider' | 'aider-docker',\n customName?: string,\n customWorkspaceRoot?: string,\n customScopedDirs?: string[]\n ) => {\n setIsLoading(true);\n try {\n let sessionName = customName;\n if (!sessionName) {\n if (type === 'claude') sessionName = \"Claude Local\";\n else if (type === 'claude-docker') sessionName = \"Claude Docker\";\n else if (type === 'claude-ssh') sessionName = \"Claude SSH\";\n else if (type === 'aider') sessionName = \"Aider Local\";\n else if (type === 'aider-docker') sessionName = \"Aider Docker\";\n else if (type === 'mock') sessionName = \"Mock Session\";\n }\n\n const launchBody: {\n type: string;\n name?: string;\n workspaceRoot?: string;\n scopedDirs?: string[];\n } = { \n type, \n name: sessionName, \n workspaceRoot: customWorkspaceRoot, \n scopedDirs: customScopedDirs \n };\n\n if ((type === 'aider' || type === 'aider-docker') && !customWorkspaceRoot) {\n try {\n const configRes = await fetch(\"/api/context/aider\");\n if (configRes.ok) {\n const configData = await configRes.json();\n if (configData.success && configData.config) {\n launchBody.workspaceRoot = configData.config.workspaceRoot;\n launchBody.scopedDirs = configData.config.scopedDirs;\n }\n }\n } catch (err) {\n console.error(\"Failed to load aider configuration before launch:\", err);\n }\n }\n\n const res = await fetch(\"/api/sessions/launch\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify(launchBody)\n });\n const data = await res.json();\n if (data.success) {\n await fetchSessions();\n setActiveSessionId(data.session.id);\n }\n } catch (err) {\n console.error(\"Failed to launch session:\", err);\n } finally {\n setIsLoading(false);\n }\n };\n\n // Stop/Disconnect Session\n const handleStopSession = async (id: string, deletePermanently = false) => {\n try {\n const res = await fetch(\"/api/sessions/stop\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ id, delete: deletePermanently })\n });\n const data = await res.json();\n if (data.success) {\n if (deletePermanently && activeSessionId === id) {\n setActiveSessionId(null);\n }\n await fetchSessions();\n }\n } catch (err) {\n console.error(\"Failed to stop session:\", err);\n }\n };\n\n return (\n <div className={`${styles.container} ${activeSession ? styles.containerActive : \"\"}`}>\n {/* Header */}\n <header className={styles.header}>\n <div className={styles.logoArea}>\n <h1 className={styles.title}>NeuralLoom</h1>\n <span className={styles.subtitle}>Unified AI Orchestrator & Context Bridge</span>\n </div>\n <div className={styles.statusIndicator}>\n <span className={styles.pulseDot}></span>\n <span>Orchestrator Online</span>\n </div>\n </header>\n\n {/* Main Dashboard Grid or Active Session IDE */}\n {activeSession ? (\n <div style={{ flex: 1, minHeight: 0, display: \"flex\", flexDirection: \"column\" }}>\n <IdeLayout\n sessionId={activeSession.id}\n workspaceRoot={activeSession.workspaceRoot || \"\"}\n scopedDirs={activeSession.scopedDirs || []}\n onClose={() => setActiveSessionId(null)}\n sessions={sessions}\n onSwitchSession={(id) => setActiveSessionId(id)}\n onRefreshSessions={fetchSessions}\n />\n </div>\n ) : (\n <div className={styles.dashboardGrid}>\n \n {/* Left Panel: Active Agents & Interactive Terminal */}\n <main className={styles.mainPanel}>\n <section>\n <h2 className={styles.sectionTitle}>Active AI Agents</h2>\n \n {sessions.length === 0 ? (\n <div className=\"card\" style={{ padding: \"3rem 1.5rem\", textAlign: \"center\" }}>\n <p style={{ color: \"var(--muted)\", marginBottom: \"1.5rem\" }}>\n No active agent sessions in this workspace. Launch a simulated session to verify the control bridge.\n </p>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => handleLaunchSession('mock')}\n disabled={isLoading}\n style={{ maxWidth: \"240px\", margin: \"0 auto\" }}\n >\n {isLoading ? \"Launching...\" : \"⚡ Launch Simulated Session\"}\n </button>\n </div>\n ) : (\n <div className={styles.agentGrid}>\n {sessions.map(session => (\n <div key={session.id} className={`${styles.agentCard} card ${activeSessionId === session.id ? styles.activeBorder : \"\"}`}>\n <div className={styles.agentHeader}>\n <span className={styles.agentName}>{session.name}</span>\n <span className={`${styles.agentBadge} ${session.status === 'stopped' ? styles.stoppedBadge : \"\"}`}>\n {session.status}\n </span>\n </div>\n <div className={styles.cardBody}>\n <p style={{ fontSize: \"0.825rem\", color: \"var(--muted)\" }}>\n ID: <code style={{ fontSize: \"0.75rem\" }}>{session.id.substring(0, 8)}</code><br />\n Type: {\n session.type === 'claude' ? \"Claude Local PTY\" :\n session.type === 'claude-docker' ? \"Claude Docker PTY\" :\n session.type === 'claude-ssh' ? \"Claude SSH PTY\" :\n session.type === 'aider' ? \"Aider Local PTY\" :\n session.type === 'aider-docker' ? \"Aider Docker PTY\" :\n session.type === 'mock' ? \"Simulated Mock PTY\" : \"Unknown PTY\"\n }<br />\n Logs: {session.logsCount} captured lines\n </p>\n \n <div style={{ display: \"flex\", gap: \"0.5rem\", marginTop: \"1rem\" }}>\n {session.status === 'running' ? (\n <button \n onClick={() => handleStopSession(session.id, false)}\n style={{\n flex: 1,\n padding: \"0.4rem 0.6rem\",\n borderRadius: \"6px\",\n border: \"1px solid var(--danger)\",\n backgroundColor: \"transparent\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n color: \"var(--danger)\"\n }}\n >Stop</button>\n ) : (\n <button \n onClick={() => handleStopSession(session.id, true)}\n style={{\n flex: 1,\n padding: \"0.4rem 0.6rem\",\n borderRadius: \"6px\",\n border: \"1px solid var(--border)\",\n backgroundColor: \"transparent\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n color: \"var(--muted)\"\n }}\n >Delete</button>\n )}\n <button \n onClick={() => setActiveSessionId(session.id)}\n style={{\n flex: 2,\n padding: \"0.4rem 0.6rem\",\n borderRadius: \"6px\",\n border: \"none\",\n backgroundColor: activeSessionId === session.id ? \"var(--border-focus)\" : \"var(--primary)\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n color: \"#fff\"\n }}\n >\n {activeSessionId === session.id ? \"Connected\" : \"Open Session\"}\n </button>\n </div>\n </div>\n </div>\n ))}\n </div>\n )}\n </section>\n\n {/* Interactive Session Terminal Display */}\n {activeSessionId && (\n <section className=\"card\" style={{ display: \"flex\", flexDirection: \"column\", border: \"1px solid var(--border-focus)\" }}>\n <div className={styles.agentHeader} style={{ justifyContent: \"space-between\", background: \"rgba(109, 40, 217, 0.08)\" }}>\n <span style={{ fontWeight: 600, display: \"flex\", alignItems: \"center\", gap: \"0.5rem\" }}>\n 🖥️ Console Bridge — {sessions.find(s => s.id === activeSessionId)?.name}\n </span>\n <button \n onClick={() => setActiveSessionId(null)}\n style={{\n border: \"none\",\n background: \"none\",\n color: \"var(--muted)\",\n cursor: \"pointer\",\n fontSize: \"0.75rem\"\n }}\n >Close Panel ✖</button>\n </div>\n <TerminalConsole sessionId={activeSessionId} />\n </section>\n )}\n\n {/* Context Hub Staging section */}\n <section>\n <h2 className={styles.sectionTitle}>Shared Context Hub & Slash Commands</h2>\n <div className={styles.contextList}>\n <div className={`${styles.contextItem} card`}>\n <div className={styles.contextMeta}>\n <span className={styles.contextTitle}>Staged Context & System Rules (/ccc)</span>\n <span className={styles.contextDetails}>Compiles AGENTS.md guidelines and project files folder hierarchy map.</span>\n </div>\n <button\n onClick={async () => {\n if (!activeSessionId) return;\n await fetch(\"/api/sessions/inject\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ id: activeSessionId, command: \"/ccc\" })\n });\n }}\n disabled={!activeSessionId}\n style={{\n padding: \"0.4rem 0.8rem\",\n borderRadius: \"6px\",\n border: \"1px solid var(--primary)\",\n backgroundColor: \"transparent\",\n color: \"var(--primary)\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n opacity: activeSessionId ? 1 : 0.5,\n cursor: activeSessionId ? \"pointer\" : \"not-allowed\"\n }}\n >\n 🚀 Mount Context (/ccc)\n </button>\n </div>\n \n <div className={`${styles.contextItem} card`}>\n <div className={styles.contextMeta}>\n <span className={styles.contextTitle}>Staged Developer Prompt (/ccp)</span>\n <span className={styles.contextDetails}>Executes instructions written in .ai/neural-loom/cprompt.md.</span>\n </div>\n <button\n onClick={async () => {\n if (!activeSessionId) return;\n await fetch(\"/api/sessions/inject\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ id: activeSessionId, command: \"/ccp\" })\n });\n }}\n disabled={!activeSessionId}\n style={{\n padding: \"0.4rem 0.8rem\",\n borderRadius: \"6px\",\n border: \"1px solid var(--success)\",\n backgroundColor: \"transparent\",\n color: \"var(--success)\",\n fontSize: \"0.75rem\",\n fontWeight: 600,\n opacity: activeSessionId ? 1 : 0.5,\n cursor: activeSessionId ? \"pointer\" : \"not-allowed\"\n }}\n >\n ⚡ Trigger Prompt (/ccp)\n </button>\n </div>\n </div>\n <ContextEditor />\n </section>\n </main>\n\n {/* Right Panel: Environments & Actions */}\n <aside className={styles.sidePanel}>\n <section>\n <h2 className={styles.sectionTitle}>Execution Environments</h2>\n <div className={styles.envGrid}>\n <div className={styles.envRow}>\n <span className={styles.envName}>💻 Local host OS</span>\n <span className={styles.envStatus} style={{ color: \"var(--success)\" }}>Active</span>\n </div>\n <div className={styles.envRow} style={{ opacity: isDockerActive ? 1 : 0.6 }}>\n <span className={styles.envName}>🐳 Docker Sandbox</span>\n <span className={styles.envStatus} style={{ color: isDockerActive ? \"var(--success)\" : \"var(--muted)\" }}>\n {isDockerActive ? \"Active\" : \"Not Mounted\"}\n </span>\n </div>\n <div className={styles.envRow} style={{ opacity: isSshActive ? 1 : 0.6 }}>\n <span className={styles.envName}>🌐 Remote VM (SSH)</span>\n <span className={styles.envStatus} style={{ color: isSshActive ? \"var(--success)\" : \"var(--muted)\" }}>\n {isSshActive ? \"Active\" : \"Disconnected\"}\n </span>\n </div>\n </div>\n </section>\n\n <section style={{ display: \"flex\", flexDirection: \"column\", gap: \"0.75rem\" }}>\n <button className={styles.quickLaunchBtn} onClick={() => handleLaunchSession('mock')} disabled={isLoading}>\n <span>⚡</span>\n <span>Launch Mock Agent</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => {\n setIsClaudeDockerLaunch(false);\n setIsClaudeWizardOpen(true);\n }} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(262, 83%, 60%) 0%, hsl(195, 100%, 45%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🤖</span>\n <span>Launch Claude PTY</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => {\n setIsClaudeDockerLaunch(true);\n setIsClaudeWizardOpen(true);\n }} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(170, 72%, 40%) 0%, hsl(195, 100%, 40%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🐳</span>\n <span>Launch Docker PTY</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => setIsSshWizardOpen(true)} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(38, 92%, 50%) 0%, hsl(0, 84%, 60%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🌐</span>\n <span>Launch SSH PTY</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => {\n setIsAiderDockerLaunch(false);\n setIsAiderWizardOpen(true);\n }} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(210, 80%, 45%) 0%, hsl(262, 80%, 55%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🐍</span>\n <span>Launch Aider PTY</span>\n </button>\n <button \n className={styles.quickLaunchBtn} \n onClick={() => {\n setIsAiderDockerLaunch(true);\n setIsAiderWizardOpen(true);\n }} \n disabled={isLoading}\n style={{\n background: \"linear-gradient(135deg, hsl(195, 100%, 40%) 0%, hsl(262, 80%, 55%) 100%)\",\n border: \"none\"\n }}\n >\n <span>🐳</span>\n <span>Launch Aider Docker</span>\n </button>\n </section>\n\n <section className=\"card\" style={{ padding: \"1.5rem\", display: \"flex\", flexDirection: \"column\", gap: \"0.75rem\" }}>\n <h3 style={{ fontSize: \"1rem\", fontWeight: 700 }}>Quick Actions</h3>\n <ul style={{ listStyle: \"none\", fontSize: \"0.875rem\", display: \"flex\", flexDirection: \"column\", gap: \"0.5rem\", color: \"var(--muted)\" }}>\n <li style={{ display: \"flex\", justifyContent: \"space-between\" }}>\n <span>Configure global API Keys</span>\n <span style={{ color: \"var(--primary)\", cursor: \"pointer\" }}>→</span>\n </li>\n <li style={{ display: \"flex\", justifyContent: \"space-between\" }}>\n <span>Edit rules templates</span>\n <span style={{ color: \"var(--primary)\", cursor: \"pointer\" }}>→</span>\n </li>\n <li style={{ display: \"flex\", justifyContent: \"space-between\" }}>\n <span>Inspect process locks</span>\n <span style={{ color: \"var(--primary)\", cursor: \"pointer\" }}>→</span>\n </li>\n </ul>\n </section>\n </aside>\n\n </div>\n )}\n\n {/* Footer */}\n <footer className={styles.footer}>\n <span>NeuralLoom v0.2.13 — Experimental AI Orchestrator Bridge</span>\n <span>Directory: {serverCwd || \"Loading...\"}</span>\n </footer>\n\n {isSshWizardOpen && (\n <SshWizard\n onClose={() => setIsSshWizardOpen(false)}\n onConfirmLaunch={() => {\n setIsSshWizardOpen(false);\n handleLaunchSession('claude-ssh');\n }}\n />\n )}\n\n {isAiderWizardOpen && (\n <AiderWizard\n onClose={() => setIsAiderWizardOpen(false)}\n isDocker={isAiderDockerLaunch}\n onConfirmLaunch={() => {\n setIsAiderWizardOpen(false);\n handleLaunchSession(isAiderDockerLaunch ? 'aider-docker' : 'aider');\n }}\n />\n )}\n\n {isClaudeWizardOpen && (\n <ClaudeWizard\n onClose={() => setIsClaudeWizardOpen(false)}\n isDocker={isClaudeDockerLaunch}\n onConfirmLaunch={(name, workspaceRoot, scopedDirs) => {\n setIsClaudeWizardOpen(false);\n handleLaunchSession(isClaudeDockerLaunch ? 'claude-docker' : 'claude', name, workspaceRoot, scopedDirs);\n }}\n />\n )}\n </div>\n );\n}\n"],"names":["BailoutToCSRError","isBailoutToCSRError","BAILOUT_TO_CSR","Error","constructor","reason","digest","err","BailoutToCSR","children","window","encodeURIPath","file","split","map","p","encodeURIComponent","join","getAssetToken","getAssetTokenQuery","getDeploymentId","getDeploymentIdQuery","deploymentId","document","documentElement","dataset","dplId","process","env","NEXT_DEPLOYMENT_ID","undefined","ampersand","id","NEXT_IMMUTABLE_ASSET_TOKEN","PreloadChunks","moduleIds","workStore","workAsyncStorage","getStore","allFiles","reactLoadableManifest","manifest","key","chunks","files","push","length","query","chunk","href","assetPrefix","isCss","endsWith","link","precedence","rel","as","nonce","preload","fetchPriority","convertModule","mod","hasDefault","default","defaultOptions","loader","Promise","resolve","loading","ssr","Loadable","options","opts","Lazy","lazy","then","Loading","LoadableComponent","props","fallbackElement","isLoading","pastDelay","error","hasSuspenseBoundary","Wrap","Suspense","Fragment","wrapProps","fallback","modules","displayName","dynamic","dynamicOptions","loadableOptions","mergedOptions","loadableGenerated","TerminalConsole","style","height","display","alignItems","justifyContent","backgroundColor","color","border","borderBottomLeftRadius","borderBottomRightRadius","ContextEditor","borderRadius","marginTop","SshWizard","AiderWizard","ClaudeWizard","IdeLayout","Home","sessions","setSessions","activeSessionId","setActiveSessionId","setIsLoading","isSshWizardOpen","setIsSshWizardOpen","isAiderWizardOpen","setIsAiderWizardOpen","isAiderDockerLaunch","setIsAiderDockerLaunch","isClaudeWizardOpen","setIsClaudeWizardOpen","isClaudeDockerLaunch","setIsClaudeDockerLaunch","serverCwd","setServerCwd","activeSession","find","s","isDockerActive","some","type","status","isSshActive","fetchSessions","res","fetch","data","json","originalCwd","console","initFetch","interval","setInterval","clearInterval","handleLaunchSession","customName","customWorkspaceRoot","customScopedDirs","sessionName","launchBody","name","workspaceRoot","scopedDirs","configRes","ok","configData","success","config","method","headers","body","JSON","stringify","session","handleStopSession","deletePermanently","delete","className","container","containerActive","header","logoArea","title","subtitle","statusIndicator","pulseDot","flex","minHeight","flexDirection","sessionId","onClose","onSwitchSession","onRefreshSessions","dashboardGrid","mainPanel","sectionTitle","padding","textAlign","marginBottom","quickLaunchBtn","onClick","disabled","maxWidth","margin","agentGrid","agentCard","activeBorder","agentHeader","agentName","agentBadge","stoppedBadge","cardBody","fontSize","substring","logsCount","gap","fontWeight","background","cursor","contextList","contextItem","contextMeta","contextTitle","contextDetails","command","opacity","sidePanel","envGrid","envRow","envName","envStatus","listStyle","footer","onConfirmLaunch","isDocker"],"mappings":"qGAIaA,iBAAiB,CAAA,kBAAjBA,GASGC,mBAAmB,CAAA,kBAAnBA,uEAZhB,IAAMC,EAAiB,kCAGhB,OAAMF,UAA0BG,MAGrCC,YAA4BC,CAA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EAAA,OAAM,CAACuD,MAAM,WAC9B,CAAA,EAAA,EAAA,GAAA,EAAC,OAAA,UAAK,6DACN,CAAA,EAAA,EAAA,IAAA,EAAC,OAAA,WAAK,cAAYnG,GAAa,mBAGhCV,GACC,CAAA,EAAA,EAAA,GAAA,EAACV,EAAAA,CACC6E,QAAS,IAAMlE,GAAmB,GAClC6G,gBAAiB,KACf7G,EAAmB,IACnB8B,EAAoB,aACtB,IAIH7B,GACC,CAAA,EAAA,EAAA,GAAA,EAACX,EAAAA,CACC4E,QAAS,IAAMhE,GAAqB,GACpC4G,SAAU3G,EACV0G,gBAAiB,KACf3G,GAAqB,GACrB4B,EAAoB3B,EAAsB,eAAiB,QAC7D,IAIHE,GACC,CAAA,EAAA,EAAA,GAAA,EAACd,EAAAA,CACC2E,QAAS,IAAM5D,GAAsB,GACrCwG,SAAUvG,EACVsG,gBAAiB,CAACzE,EAAMC,EAAeC,KACrChC,GAAsB,GACtBwB,EAAoBvB,EAAuB,gBAAkB,SAAU6B,EAAMC,EAAeC,EAC9F,MAKV","ignoreList":[0,1,2,3,4,5,6]}
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/03~yq9q893hmn.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/w0G47Es9qpUItx3l4uJ_v/_buildManifest.js",
11
- "static/w0G47Es9qpUItx3l4uJ_v/_ssgManifest.js",
12
- "static/w0G47Es9qpUItx3l4uJ_v/_clientMiddlewareManifest.js"
10
+ "static/g7S_nNTPWKtmCY0Va4YcB/_buildManifest.js",
11
+ "static/g7S_nNTPWKtmCY0Va4YcB/_ssgManifest.js",
12
+ "static/g7S_nNTPWKtmCY0Va4YcB/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/0fpki3y6aj230.js",