@jcjeon/integration-cli 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/server/dist/app.controller.d.ts +6 -0
- package/apps/server/dist/app.controller.js +35 -0
- package/apps/server/dist/app.controller.js.map +1 -0
- package/apps/server/dist/app.module.d.ts +2 -0
- package/apps/server/dist/app.module.js +30 -0
- package/apps/server/dist/app.module.js.map +1 -0
- package/apps/server/dist/app.service.d.ts +3 -0
- package/apps/server/dist/app.service.js +20 -0
- package/apps/server/dist/app.service.js.map +1 -0
- package/apps/server/dist/common/ji-paths.d.ts +22 -0
- package/apps/server/dist/common/ji-paths.js +77 -0
- package/apps/server/dist/common/ji-paths.js.map +1 -0
- package/apps/server/dist/database/database.module.d.ts +2 -0
- package/apps/server/dist/database/database.module.js +38 -0
- package/apps/server/dist/database/database.module.js.map +1 -0
- package/apps/server/dist/database/entities/agent-changelog.entity.d.ts +14 -0
- package/apps/server/dist/database/entities/agent-changelog.entity.js +75 -0
- package/apps/server/dist/database/entities/agent-changelog.entity.js.map +1 -0
- package/apps/server/dist/database/entities/agent-session.entity.d.ts +10 -0
- package/apps/server/dist/database/entities/agent-session.entity.js +60 -0
- package/apps/server/dist/database/entities/agent-session.entity.js.map +1 -0
- package/apps/server/dist/database/entities/conversation.entity.d.ts +12 -0
- package/apps/server/dist/database/entities/conversation.entity.js +66 -0
- package/apps/server/dist/database/entities/conversation.entity.js.map +1 -0
- package/apps/server/dist/database/entities/session.entity.d.ts +6 -0
- package/apps/server/dist/database/entities/session.entity.js +40 -0
- package/apps/server/dist/database/entities/session.entity.js.map +1 -0
- package/apps/server/dist/database/entities/task-agent-run.entity.d.ts +15 -0
- package/apps/server/dist/database/entities/task-agent-run.entity.js +77 -0
- package/apps/server/dist/database/entities/task-agent-run.entity.js.map +1 -0
- package/apps/server/dist/database/entities/task-agent.entity.d.ts +16 -0
- package/apps/server/dist/database/entities/task-agent.entity.js +76 -0
- package/apps/server/dist/database/entities/task-agent.entity.js.map +1 -0
- package/apps/server/dist/database/entities/task-requirement.entity.d.ts +10 -0
- package/apps/server/dist/database/entities/task-requirement.entity.js +56 -0
- package/apps/server/dist/database/entities/task-requirement.entity.js.map +1 -0
- package/apps/server/dist/database/entities/task-run.entity.d.ts +13 -0
- package/apps/server/dist/database/entities/task-run.entity.js +67 -0
- package/apps/server/dist/database/entities/task-run.entity.js.map +1 -0
- package/apps/server/dist/database/entities/task.entity.d.ts +14 -0
- package/apps/server/dist/database/entities/task.entity.js +72 -0
- package/apps/server/dist/database/entities/task.entity.js.map +1 -0
- package/apps/server/dist/main.d.ts +1 -0
- package/apps/server/dist/main.js +81 -0
- package/apps/server/dist/main.js.map +1 -0
- package/apps/server/dist/modules/agents/agents.module.d.ts +2 -0
- package/apps/server/dist/modules/agents/agents.module.js +23 -0
- package/apps/server/dist/modules/agents/agents.module.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/claude-auth.manager.d.ts +15 -0
- package/apps/server/dist/modules/agents/claude/claude-auth.manager.js +71 -0
- package/apps/server/dist/modules/agents/claude/claude-auth.manager.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/claude-pty.manager.d.ts +29 -0
- package/apps/server/dist/modules/agents/claude/claude-pty.manager.js +372 -0
- package/apps/server/dist/modules/agents/claude/claude-pty.manager.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/claude.controller.d.ts +19 -0
- package/apps/server/dist/modules/agents/claude/claude.controller.js +125 -0
- package/apps/server/dist/modules/agents/claude/claude.controller.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/claude.gateway.d.ts +27 -0
- package/apps/server/dist/modules/agents/claude/claude.gateway.js +148 -0
- package/apps/server/dist/modules/agents/claude/claude.gateway.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/claude.module.d.ts +2 -0
- package/apps/server/dist/modules/agents/claude/claude.module.js +30 -0
- package/apps/server/dist/modules/agents/claude/claude.module.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/claude.service.d.ts +28 -0
- package/apps/server/dist/modules/agents/claude/claude.service.js +94 -0
- package/apps/server/dist/modules/agents/claude/claude.service.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/dto/create-session.dto.d.ts +6 -0
- package/apps/server/dist/modules/agents/claude/dto/create-session.dto.js +46 -0
- package/apps/server/dist/modules/agents/claude/dto/create-session.dto.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/dto/resize-session.dto.d.ts +4 -0
- package/apps/server/dist/modules/agents/claude/dto/resize-session.dto.js +31 -0
- package/apps/server/dist/modules/agents/claude/dto/resize-session.dto.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/dto/send-input.dto.d.ts +3 -0
- package/apps/server/dist/modules/agents/claude/dto/send-input.dto.js +25 -0
- package/apps/server/dist/modules/agents/claude/dto/send-input.dto.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/interfaces/claude-session.interface.d.ts +22 -0
- package/apps/server/dist/modules/agents/claude/interfaces/claude-session.interface.js +3 -0
- package/apps/server/dist/modules/agents/claude/interfaces/claude-session.interface.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/interfaces/pty-event.interface.d.ts +9 -0
- package/apps/server/dist/modules/agents/claude/interfaces/pty-event.interface.js +3 -0
- package/apps/server/dist/modules/agents/claude/interfaces/pty-event.interface.js.map +1 -0
- package/apps/server/dist/modules/agents/claude/interfaces/stream-event.interface.d.ts +53 -0
- package/apps/server/dist/modules/agents/claude/interfaces/stream-event.interface.js +3 -0
- package/apps/server/dist/modules/agents/claude/interfaces/stream-event.interface.js.map +1 -0
- package/apps/server/dist/modules/agents/codex/codex-auth.manager.d.ts +16 -0
- package/apps/server/dist/modules/agents/codex/codex-auth.manager.js +136 -0
- package/apps/server/dist/modules/agents/codex/codex-auth.manager.js.map +1 -0
- package/apps/server/dist/modules/agents/codex/codex-session.manager.d.ts +37 -0
- package/apps/server/dist/modules/agents/codex/codex-session.manager.js +319 -0
- package/apps/server/dist/modules/agents/codex/codex-session.manager.js.map +1 -0
- package/apps/server/dist/modules/agents/codex/codex.controller.d.ts +19 -0
- package/apps/server/dist/modules/agents/codex/codex.controller.js +95 -0
- package/apps/server/dist/modules/agents/codex/codex.controller.js.map +1 -0
- package/apps/server/dist/modules/agents/codex/codex.gateway.d.ts +27 -0
- package/apps/server/dist/modules/agents/codex/codex.gateway.js +123 -0
- package/apps/server/dist/modules/agents/codex/codex.gateway.js.map +1 -0
- package/apps/server/dist/modules/agents/codex/codex.module.d.ts +2 -0
- package/apps/server/dist/modules/agents/codex/codex.module.js +29 -0
- package/apps/server/dist/modules/agents/codex/codex.module.js.map +1 -0
- package/apps/server/dist/modules/agents/codex/dto/configure-auth.dto.d.ts +3 -0
- package/apps/server/dist/modules/agents/codex/dto/configure-auth.dto.js +23 -0
- package/apps/server/dist/modules/agents/codex/dto/configure-auth.dto.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/dto/configure-auth.dto.d.ts +5 -0
- package/apps/server/dist/modules/agents/gemini/dto/configure-auth.dto.js +31 -0
- package/apps/server/dist/modules/agents/gemini/dto/configure-auth.dto.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/dto/create-session.dto.d.ts +3 -0
- package/apps/server/dist/modules/agents/gemini/dto/create-session.dto.js +25 -0
- package/apps/server/dist/modules/agents/gemini/dto/create-session.dto.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/dto/send-input.dto.d.ts +3 -0
- package/apps/server/dist/modules/agents/gemini/dto/send-input.dto.js +25 -0
- package/apps/server/dist/modules/agents/gemini/dto/send-input.dto.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/gemini-auth.manager.d.ts +20 -0
- package/apps/server/dist/modules/agents/gemini/gemini-auth.manager.js +154 -0
- package/apps/server/dist/modules/agents/gemini/gemini-auth.manager.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/gemini-session.manager.d.ts +31 -0
- package/apps/server/dist/modules/agents/gemini/gemini-session.manager.js +304 -0
- package/apps/server/dist/modules/agents/gemini/gemini-session.manager.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/gemini.controller.d.ts +19 -0
- package/apps/server/dist/modules/agents/gemini/gemini.controller.js +135 -0
- package/apps/server/dist/modules/agents/gemini/gemini.controller.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/gemini.gateway.d.ts +24 -0
- package/apps/server/dist/modules/agents/gemini/gemini.gateway.js +142 -0
- package/apps/server/dist/modules/agents/gemini/gemini.gateway.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/gemini.module.d.ts +2 -0
- package/apps/server/dist/modules/agents/gemini/gemini.module.js +29 -0
- package/apps/server/dist/modules/agents/gemini/gemini.module.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/interfaces/gemini-session.interface.d.ts +16 -0
- package/apps/server/dist/modules/agents/gemini/interfaces/gemini-session.interface.js +3 -0
- package/apps/server/dist/modules/agents/gemini/interfaces/gemini-session.interface.js.map +1 -0
- package/apps/server/dist/modules/agents/gemini/interfaces/stream-event.interface.d.ts +12 -0
- package/apps/server/dist/modules/agents/gemini/interfaces/stream-event.interface.js +3 -0
- package/apps/server/dist/modules/agents/gemini/interfaces/stream-event.interface.js.map +1 -0
- package/apps/server/dist/modules/changelog/changelog.controller.d.ts +7 -0
- package/apps/server/dist/modules/changelog/changelog.controller.js +50 -0
- package/apps/server/dist/modules/changelog/changelog.controller.js.map +1 -0
- package/apps/server/dist/modules/changelog/changelog.module.d.ts +2 -0
- package/apps/server/dist/modules/changelog/changelog.module.js +26 -0
- package/apps/server/dist/modules/changelog/changelog.module.js.map +1 -0
- package/apps/server/dist/modules/changelog/changelog.service.d.ts +68 -0
- package/apps/server/dist/modules/changelog/changelog.service.js +598 -0
- package/apps/server/dist/modules/changelog/changelog.service.js.map +1 -0
- package/apps/server/dist/modules/conversations/conversation.controller.d.ts +11 -0
- package/apps/server/dist/modules/conversations/conversation.controller.js +95 -0
- package/apps/server/dist/modules/conversations/conversation.controller.js.map +1 -0
- package/apps/server/dist/modules/conversations/conversation.module.d.ts +2 -0
- package/apps/server/dist/modules/conversations/conversation.module.js +26 -0
- package/apps/server/dist/modules/conversations/conversation.module.js.map +1 -0
- package/apps/server/dist/modules/conversations/conversation.service.d.ts +13 -0
- package/apps/server/dist/modules/conversations/conversation.service.js +61 -0
- package/apps/server/dist/modules/conversations/conversation.service.js.map +1 -0
- package/apps/server/dist/modules/conversations/dto/create-conversation.dto.d.ts +10 -0
- package/apps/server/dist/modules/conversations/dto/create-conversation.dto.js +64 -0
- package/apps/server/dist/modules/conversations/dto/create-conversation.dto.js.map +1 -0
- package/apps/server/dist/modules/conversations/enums/conversation.enum.d.ts +12 -0
- package/apps/server/dist/modules/conversations/enums/conversation.enum.js +18 -0
- package/apps/server/dist/modules/conversations/enums/conversation.enum.js.map +1 -0
- package/apps/server/dist/modules/fs/fs.controller.d.ts +6 -0
- package/apps/server/dist/modules/fs/fs.controller.js +85 -0
- package/apps/server/dist/modules/fs/fs.controller.js.map +1 -0
- package/apps/server/dist/modules/fs/fs.module.d.ts +2 -0
- package/apps/server/dist/modules/fs/fs.module.js +20 -0
- package/apps/server/dist/modules/fs/fs.module.js.map +1 -0
- package/apps/server/dist/modules/harness/dto/save-harness.dto.d.ts +4 -0
- package/apps/server/dist/modules/harness/dto/save-harness.dto.js +27 -0
- package/apps/server/dist/modules/harness/dto/save-harness.dto.js.map +1 -0
- package/apps/server/dist/modules/harness/harness.controller.d.ts +14 -0
- package/apps/server/dist/modules/harness/harness.controller.js +72 -0
- package/apps/server/dist/modules/harness/harness.controller.js.map +1 -0
- package/apps/server/dist/modules/harness/harness.module.d.ts +2 -0
- package/apps/server/dist/modules/harness/harness.module.js +23 -0
- package/apps/server/dist/modules/harness/harness.module.js.map +1 -0
- package/apps/server/dist/modules/harness/harness.service.d.ts +20 -0
- package/apps/server/dist/modules/harness/harness.service.js +134 -0
- package/apps/server/dist/modules/harness/harness.service.js.map +1 -0
- package/apps/server/dist/modules/sessions/session.controller.d.ts +12 -0
- package/apps/server/dist/modules/sessions/session.controller.js +79 -0
- package/apps/server/dist/modules/sessions/session.controller.js.map +1 -0
- package/apps/server/dist/modules/sessions/session.module.d.ts +2 -0
- package/apps/server/dist/modules/sessions/session.module.js +26 -0
- package/apps/server/dist/modules/sessions/session.module.js.map +1 -0
- package/apps/server/dist/modules/sessions/session.service.d.ts +9 -0
- package/apps/server/dist/modules/sessions/session.service.js +49 -0
- package/apps/server/dist/modules/sessions/session.service.js.map +1 -0
- package/apps/server/dist/modules/tasks/dto/create-task.dto.d.ts +15 -0
- package/apps/server/dist/modules/tasks/dto/create-task.dto.js +88 -0
- package/apps/server/dist/modules/tasks/dto/create-task.dto.js.map +1 -0
- package/apps/server/dist/modules/tasks/dto/execute-task.dto.d.ts +7 -0
- package/apps/server/dist/modules/tasks/dto/execute-task.dto.js +43 -0
- package/apps/server/dist/modules/tasks/dto/execute-task.dto.js.map +1 -0
- package/apps/server/dist/modules/tasks/dto/merge-file.dto.d.ts +3 -0
- package/apps/server/dist/modules/tasks/dto/merge-file.dto.js +23 -0
- package/apps/server/dist/modules/tasks/dto/merge-file.dto.js.map +1 -0
- package/apps/server/dist/modules/tasks/dto/rerun-task.dto.d.ts +4 -0
- package/apps/server/dist/modules/tasks/dto/rerun-task.dto.js +32 -0
- package/apps/server/dist/modules/tasks/dto/rerun-task.dto.js.map +1 -0
- package/apps/server/dist/modules/tasks/dto/update-task.dto.d.ts +15 -0
- package/apps/server/dist/modules/tasks/dto/update-task.dto.js +89 -0
- package/apps/server/dist/modules/tasks/dto/update-task.dto.js.map +1 -0
- package/apps/server/dist/modules/tasks/task-execution.service.d.ts +105 -0
- package/apps/server/dist/modules/tasks/task-execution.service.js +842 -0
- package/apps/server/dist/modules/tasks/task-execution.service.js.map +1 -0
- package/apps/server/dist/modules/tasks/task.gateway.d.ts +17 -0
- package/apps/server/dist/modules/tasks/task.gateway.js +126 -0
- package/apps/server/dist/modules/tasks/task.gateway.js.map +1 -0
- package/apps/server/dist/modules/tasks/tasks.controller.d.ts +29 -0
- package/apps/server/dist/modules/tasks/tasks.controller.js +209 -0
- package/apps/server/dist/modules/tasks/tasks.controller.js.map +1 -0
- package/apps/server/dist/modules/tasks/tasks.module.d.ts +2 -0
- package/apps/server/dist/modules/tasks/tasks.module.js +42 -0
- package/apps/server/dist/modules/tasks/tasks.module.js.map +1 -0
- package/apps/server/dist/modules/tasks/tasks.service.d.ts +47 -0
- package/apps/server/dist/modules/tasks/tasks.service.js +341 -0
- package/apps/server/dist/modules/tasks/tasks.service.js.map +1 -0
- package/apps/server/dist/tsconfig.build.tsbuildinfo +1 -0
- package/apps/web/.next/BUILD_ID +1 -0
- package/apps/web/.next/app-path-routes-manifest.json +12 -0
- package/apps/web/.next/build/chunks/[root-of-the-server]__0cstldc._.js +206 -0
- package/apps/web/.next/build/chunks/[root-of-the-server]__0cstldc._.js.map +8 -0
- package/apps/web/.next/build/chunks/[root-of-the-server]__0s3ts0r._.js +500 -0
- package/apps/web/.next/build/chunks/[root-of-the-server]__0s3ts0r._.js.map +11 -0
- package/apps/web/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0xqnjlz._.js +13 -0
- package/apps/web/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0xqnjlz._.js.map +5 -0
- package/apps/web/.next/build/chunks/[turbopack]_runtime.js +890 -0
- package/apps/web/.next/build/chunks/[turbopack]_runtime.js.map +11 -0
- package/apps/web/.next/build/chunks/node_modules_13sb.px._.js +6820 -0
- package/apps/web/.next/build/chunks/node_modules_13sb.px._.js.map +47 -0
- package/apps/web/.next/build/package.json +1 -0
- package/apps/web/.next/build/postcss.js +6 -0
- package/apps/web/.next/build/postcss.js.map +5 -0
- package/apps/web/.next/build-manifest.json +21 -0
- package/apps/web/.next/diagnostics/build-diagnostics.json +6 -0
- package/apps/web/.next/diagnostics/framework.json +1 -0
- package/apps/web/.next/diagnostics/route-bundle-stats.json +118 -0
- package/apps/web/.next/export-marker.json +6 -0
- package/apps/web/.next/fallback-build-manifest.json +13 -0
- package/apps/web/.next/images-manifest.json +68 -0
- package/apps/web/.next/next-minimal-server.js.nft.json +1 -0
- package/apps/web/.next/next-server.js.nft.json +1 -0
- package/apps/web/.next/package.json +1 -0
- package/apps/web/.next/prerender-manifest.json +234 -0
- package/apps/web/.next/required-server-files.js +332 -0
- package/apps/web/.next/required-server-files.json +332 -0
- package/apps/web/.next/routes-manifest.json +108 -0
- package/apps/web/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/_global-error/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/apps/web/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/_global-error/page.js +10 -0
- package/apps/web/.next/server/app/_global-error/page.js.map +5 -0
- package/apps/web/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/_global-error.html +1 -0
- package/apps/web/.next/server/app/_global-error.meta +15 -0
- package/apps/web/.next/server/app/_global-error.rsc +15 -0
- package/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +15 -0
- package/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +6 -0
- package/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
- package/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/apps/web/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/_not-found/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
- package/apps/web/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/_not-found/page.js +13 -0
- package/apps/web/.next/server/app/_not-found/page.js.map +5 -0
- package/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/_not-found.html +1 -0
- package/apps/web/.next/server/app/_not-found.meta +16 -0
- package/apps/web/.next/server/app/_not-found.rsc +19 -0
- package/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +19 -0
- package/apps/web/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
- package/apps/web/.next/server/app/_not-found.segments/_index.segment.rsc +8 -0
- package/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/apps/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
- package/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -0
- package/apps/web/.next/server/app/claude/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/claude/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/claude/page/next-font-manifest.json +11 -0
- package/apps/web/.next/server/app/claude/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/claude/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/claude/page.js +14 -0
- package/apps/web/.next/server/app/claude/page.js.map +5 -0
- package/apps/web/.next/server/app/claude/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/claude/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/claude.html +1 -0
- package/apps/web/.next/server/app/claude.meta +15 -0
- package/apps/web/.next/server/app/claude.rsc +22 -0
- package/apps/web/.next/server/app/claude.segments/_full.segment.rsc +22 -0
- package/apps/web/.next/server/app/claude.segments/_head.segment.rsc +6 -0
- package/apps/web/.next/server/app/claude.segments/_index.segment.rsc +8 -0
- package/apps/web/.next/server/app/claude.segments/_tree.segment.rsc +5 -0
- package/apps/web/.next/server/app/claude.segments/claude/__PAGE__.segment.rsc +6 -0
- package/apps/web/.next/server/app/claude.segments/claude.segment.rsc +5 -0
- package/apps/web/.next/server/app/codex/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/codex/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/codex/page/next-font-manifest.json +11 -0
- package/apps/web/.next/server/app/codex/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/codex/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/codex/page.js +14 -0
- package/apps/web/.next/server/app/codex/page.js.map +5 -0
- package/apps/web/.next/server/app/codex/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/codex/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/codex.html +1 -0
- package/apps/web/.next/server/app/codex.meta +15 -0
- package/apps/web/.next/server/app/codex.rsc +25 -0
- package/apps/web/.next/server/app/codex.segments/_full.segment.rsc +25 -0
- package/apps/web/.next/server/app/codex.segments/_head.segment.rsc +6 -0
- package/apps/web/.next/server/app/codex.segments/_index.segment.rsc +8 -0
- package/apps/web/.next/server/app/codex.segments/_tree.segment.rsc +5 -0
- package/apps/web/.next/server/app/codex.segments/codex/__PAGE__.segment.rsc +9 -0
- package/apps/web/.next/server/app/codex.segments/codex.segment.rsc +5 -0
- package/apps/web/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/favicon.ico/route/build-manifest.json +9 -0
- package/apps/web/.next/server/app/favicon.ico/route.js +6 -0
- package/apps/web/.next/server/app/favicon.ico/route.js.map +5 -0
- package/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/apps/web/.next/server/app/favicon.ico.meta +1 -0
- package/apps/web/.next/server/app/gemini/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/gemini/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/gemini/page/next-font-manifest.json +11 -0
- package/apps/web/.next/server/app/gemini/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/gemini/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/gemini/page.js +14 -0
- package/apps/web/.next/server/app/gemini/page.js.map +5 -0
- package/apps/web/.next/server/app/gemini/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/gemini/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/gemini.html +1 -0
- package/apps/web/.next/server/app/gemini.meta +15 -0
- package/apps/web/.next/server/app/gemini.rsc +25 -0
- package/apps/web/.next/server/app/gemini.segments/_full.segment.rsc +25 -0
- package/apps/web/.next/server/app/gemini.segments/_head.segment.rsc +6 -0
- package/apps/web/.next/server/app/gemini.segments/_index.segment.rsc +8 -0
- package/apps/web/.next/server/app/gemini.segments/_tree.segment.rsc +5 -0
- package/apps/web/.next/server/app/gemini.segments/gemini/__PAGE__.segment.rsc +9 -0
- package/apps/web/.next/server/app/gemini.segments/gemini.segment.rsc +5 -0
- package/apps/web/.next/server/app/index.html +1 -0
- package/apps/web/.next/server/app/index.meta +14 -0
- package/apps/web/.next/server/app/index.rsc +23 -0
- package/apps/web/.next/server/app/index.segments/__PAGE__.segment.rsc +9 -0
- package/apps/web/.next/server/app/index.segments/_full.segment.rsc +23 -0
- package/apps/web/.next/server/app/index.segments/_head.segment.rsc +6 -0
- package/apps/web/.next/server/app/index.segments/_index.segment.rsc +8 -0
- package/apps/web/.next/server/app/index.segments/_tree.segment.rsc +5 -0
- package/apps/web/.next/server/app/login/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/login/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/login/page/next-font-manifest.json +11 -0
- package/apps/web/.next/server/app/login/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/login/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/login/page.js +14 -0
- package/apps/web/.next/server/app/login/page.js.map +5 -0
- package/apps/web/.next/server/app/login/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/login/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/login.html +1 -0
- package/apps/web/.next/server/app/login.meta +15 -0
- package/apps/web/.next/server/app/login.rsc +25 -0
- package/apps/web/.next/server/app/login.segments/_full.segment.rsc +25 -0
- package/apps/web/.next/server/app/login.segments/_head.segment.rsc +6 -0
- package/apps/web/.next/server/app/login.segments/_index.segment.rsc +8 -0
- package/apps/web/.next/server/app/login.segments/_tree.segment.rsc +5 -0
- package/apps/web/.next/server/app/login.segments/login/__PAGE__.segment.rsc +9 -0
- package/apps/web/.next/server/app/login.segments/login.segment.rsc +5 -0
- package/apps/web/.next/server/app/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/page/next-font-manifest.json +11 -0
- package/apps/web/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/page.js +14 -0
- package/apps/web/.next/server/app/page.js.map +5 -0
- package/apps/web/.next/server/app/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/task/[id]/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/task/[id]/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/task/[id]/page/next-font-manifest.json +11 -0
- package/apps/web/.next/server/app/task/[id]/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/task/[id]/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/task/[id]/page.js +14 -0
- package/apps/web/.next/server/app/task/[id]/page.js.map +5 -0
- package/apps/web/.next/server/app/task/[id]/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/task/[id]/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/test/page/app-paths-manifest.json +3 -0
- package/apps/web/.next/server/app/test/page/build-manifest.json +17 -0
- package/apps/web/.next/server/app/test/page/next-font-manifest.json +11 -0
- package/apps/web/.next/server/app/test/page/react-loadable-manifest.json +1 -0
- package/apps/web/.next/server/app/test/page/server-reference-manifest.json +4 -0
- package/apps/web/.next/server/app/test/page.js +14 -0
- package/apps/web/.next/server/app/test/page.js.map +5 -0
- package/apps/web/.next/server/app/test/page.js.nft.json +1 -0
- package/apps/web/.next/server/app/test/page_client-reference-manifest.js +3 -0
- package/apps/web/.next/server/app/test.html +1 -0
- package/apps/web/.next/server/app/test.meta +15 -0
- package/apps/web/.next/server/app/test.rsc +25 -0
- package/apps/web/.next/server/app/test.segments/_full.segment.rsc +25 -0
- package/apps/web/.next/server/app/test.segments/_head.segment.rsc +6 -0
- package/apps/web/.next/server/app/test.segments/_index.segment.rsc +8 -0
- package/apps/web/.next/server/app/test.segments/_tree.segment.rsc +5 -0
- package/apps/web/.next/server/app/test.segments/test/__PAGE__.segment.rsc +9 -0
- package/apps/web/.next/server/app/test.segments/test.segment.rsc +5 -0
- package/apps/web/.next/server/app-paths-manifest.json +12 -0
- package/apps/web/.next/server/chunks/[externals]_next_dist_0arv.vj._.js +3 -0
- package/apps/web/.next/server/chunks/[externals]_next_dist_0arv.vj._.js.map +1 -0
- package/apps/web/.next/server/chunks/[root-of-the-server]__0xjvedo._.js +13 -0
- package/apps/web/.next/server/chunks/[root-of-the-server]__0xjvedo._.js.map +1 -0
- package/apps/web/.next/server/chunks/[turbopack]_runtime.js +903 -0
- package/apps/web/.next/server/chunks/[turbopack]_runtime.js.map +11 -0
- package/apps/web/.next/server/chunks/apps_web__next-internal_server_app_favicon_ico_route_actions_0h5n1et.js +3 -0
- package/apps/web/.next/server/chunks/apps_web__next-internal_server_app_favicon_ico_route_actions_0h5n1et.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__00707zu._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__00707zu._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__02w1lqw._.js +33 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__02w1lqw._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__058frv2._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__058frv2._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05mnfv7._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05mnfv7._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05w0js1._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05w0js1._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05y8~sf._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05y8~sf._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0a~4k2j._.js +8 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0a~4k2j._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0bzgqz2._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0bzgqz2._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0csq2e.._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0csq2e.._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0dgn1-d._.js +8 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0dgn1-d._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0g.z8rw._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0g.z8rw._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0g7.yrd._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0g7.yrd._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0ill7bp._.js +4 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0ill7bp._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0lxs646._.js +33 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0lxs646._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0osecwm._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0osecwm._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0x5.eah._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0x5.eah._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10mg911._.js +9 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10mg911._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10xopfz._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10xopfz._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__11illgy._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__11illgy._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
- package/apps/web/.next/server/chunks/ssr/[turbopack]_runtime.js.map +11 -0
- package/apps/web/.next/server/chunks/ssr/_0hy8~s0._.js +6 -0
- package/apps/web/.next/server/chunks/ssr/_0hy8~s0._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__global-error_page_actions_0.u5cfa.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__global-error_page_actions_0.u5cfa.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__not-found_page_actions_0appun9.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__not-found_page_actions_0appun9.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_claude_page_actions_0_uv-yn.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_claude_page_actions_0_uv-yn.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_codex_page_actions_0ace7zi.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_codex_page_actions_0ace7zi.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_gemini_page_actions_0ux-r~z.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_gemini_page_actions_0ux-r~z.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_login_page_actions_0srfp5v.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_login_page_actions_0srfp5v.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_page_actions_0rm5_5w.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_page_actions_0rm5_5w.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_task_[id]_page_actions_0bd_3_p.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_task_[id]_page_actions_0bd_3_p.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_test_page_actions_0pn8asm.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_test_page_actions_0pn8asm.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_0s6cw51._.js +8 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_0s6cw51._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_app_login_page_tsx_07oskhj._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_app_login_page_tsx_07oskhj._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_app_page_tsx_0kq.zh9._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_app_page_tsx_0kq.zh9._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_app_test_page_tsx_04ji_kt._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_app_test_page_tsx_04ji_kt._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_features_02y94.o._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_features_02y94.o._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_features_0y6q6xu._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/apps_web_src_features_0y6q6xu._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_09w7yel._.js +33 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_09w7yel._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_0ck2~9g._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_0ck2~9g._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_0i2xw~e._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_0i2xw~e._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_0vtdjw7._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_0vtdjw7._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_03nkrli._.js +19 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_03nkrli._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_0h9llsw._.js +6 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_0h9llsw._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js +3 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +3 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +3 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +3 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_01s3o34.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_01s3o34.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ax1b3s.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ax1b3s.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0gl78zj.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0gl78zj.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0j~tyzr.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0j~tyzr.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0khf96-.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0khf96-.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0qgz_85.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0qgz_85.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0unh3f-.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0unh3f-.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0uq606i.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0uq606i.js.map +1 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_128e6.l.js +4 -0
- package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_128e6.l.js.map +1 -0
- package/apps/web/.next/server/functions-config-manifest.json +4 -0
- package/apps/web/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/apps/web/.next/server/middleware-build-manifest.js +21 -0
- package/apps/web/.next/server/middleware-manifest.json +6 -0
- package/apps/web/.next/server/next-font-manifest.js +1 -0
- package/apps/web/.next/server/next-font-manifest.json +39 -0
- package/apps/web/.next/server/pages/404.html +1 -0
- package/apps/web/.next/server/pages/500.html +1 -0
- package/apps/web/.next/server/pages-manifest.json +4 -0
- package/apps/web/.next/server/prefetch-hints.json +1 -0
- package/apps/web/.next/server/server-reference-manifest.js +1 -0
- package/apps/web/.next/server/server-reference-manifest.json +5 -0
- package/apps/web/.next/static/chunks/01xlw8hd842-c.js +1 -0
- package/apps/web/.next/static/chunks/03~yq9q893hmn.js +1 -0
- package/apps/web/.next/static/chunks/04w-clkdzn_sn.js +6 -0
- package/apps/web/.next/static/chunks/066jf0nk75nic.css +2 -0
- package/apps/web/.next/static/chunks/0bmpc66o4m-9z.js +1 -0
- package/apps/web/.next/static/chunks/0cctfc2jrxq_0.js +1 -0
- package/apps/web/.next/static/chunks/0dk1ec~jpoxa3.css +1 -0
- package/apps/web/.next/static/chunks/0e992tq36rg-i.js +6 -0
- package/apps/web/.next/static/chunks/0ieuc6bs-l0iy.js +7 -0
- package/apps/web/.next/static/chunks/0nd5y.4d2gl8g.js +1 -0
- package/apps/web/.next/static/chunks/0o-t4yw-v8ahl.js +6 -0
- package/apps/web/.next/static/chunks/0pqt~8bl3ukh4.js +4 -0
- package/apps/web/.next/static/chunks/0rjn.~e6pvni1.js +2 -0
- package/apps/web/.next/static/chunks/0t2xr05rlu96l.js +1 -0
- package/apps/web/.next/static/chunks/0uuu-x.ka3jyt.js +1 -0
- package/apps/web/.next/static/chunks/0x15z029u118o.js +1 -0
- package/apps/web/.next/static/chunks/0~.kxojjn0k1x.js +1 -0
- package/apps/web/.next/static/chunks/10t1c-qsk.cdw.js +1 -0
- package/apps/web/.next/static/chunks/14zwv8duu059g.js +31 -0
- package/apps/web/.next/static/chunks/turbopack-0gpa2pyrgntw-.js +1 -0
- package/apps/web/.next/static/fdXuROcW6IkgkI61bg3UM/_buildManifest.js +11 -0
- package/apps/web/.next/static/fdXuROcW6IkgkI61bg3UM/_clientMiddlewareManifest.js +1 -0
- package/apps/web/.next/static/fdXuROcW6IkgkI61bg3UM/_ssgManifest.js +1 -0
- package/apps/web/.next/static/media/4fa387ec64143e14-s.0wkzw~je483f-.woff2 +0 -0
- package/apps/web/.next/static/media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2 +0 -0
- package/apps/web/.next/static/media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2 +0 -0
- package/apps/web/.next/static/media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2 +0 -0
- package/apps/web/.next/static/media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2 +0 -0
- package/apps/web/.next/static/media/797e433ab948586e-s.p.08e28id.o-okb.woff2 +0 -0
- package/apps/web/.next/static/media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2 +0 -0
- package/apps/web/.next/static/media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2 +0 -0
- package/apps/web/.next/static/media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2 +0 -0
- package/apps/web/.next/static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2 +0 -0
- package/apps/web/.next/static/media/favicon.0x3dzn~oxb6tn.ico +0 -0
- package/apps/web/.next/static/media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2 +0 -0
- package/apps/web/.next/trace +1 -0
- package/apps/web/.next/trace-build +1 -0
- package/apps/web/.next/turbopack +0 -0
- package/apps/web/.next/types/cache-life.d.ts +145 -0
- package/apps/web/.next/types/routes.d.ts +63 -0
- package/apps/web/.next/types/validator.ts +115 -0
- package/package.json +28 -42
- package/packages/cli/dist/commands/init.d.ts +1 -2
- package/packages/cli/dist/commands/init.js +14 -16
- package/packages/cli/dist/commands/start.js +41 -26
- package/packages/cli/dist/index.js +6 -23
- package/packages/cli/dist/utils/package-root.d.ts +3 -0
- package/packages/cli/dist/utils/package-root.js +62 -0
- package/.gitignore +0 -23
- package/.npmignore +0 -21
- package/.prettierignore +0 -6
- package/.prettierrc +0 -26
- package/AGENTS.md +0 -10
- package/CLAUDE.md +0 -10
- package/apps/server/eslint.config.mjs +0 -20
- package/apps/server/nest-cli.json +0 -8
- package/apps/server/package.json +0 -89
- package/apps/server/scripts/postinstall.js +0 -53
- package/apps/server/src/__mocks__/glob.js +0 -6
- package/apps/server/src/__mocks__/uuid.js +0 -5
- package/apps/server/src/app.controller.spec.ts +0 -24
- package/apps/server/src/app.controller.ts +0 -13
- package/apps/server/src/app.module.ts +0 -18
- package/apps/server/src/app.service.ts +0 -8
- package/apps/server/src/common/ji-paths.ts +0 -41
- package/apps/server/src/database/database.module.ts +0 -27
- package/apps/server/src/database/entities/agent-changelog.entity.ts +0 -39
- package/apps/server/src/database/entities/agent-session.entity.ts +0 -29
- package/apps/server/src/database/entities/conversation.entity.ts +0 -41
- package/apps/server/src/database/entities/session.entity.ts +0 -16
- package/apps/server/src/database/entities/task-agent-run.entity.ts +0 -40
- package/apps/server/src/database/entities/task-agent.entity.ts +0 -42
- package/apps/server/src/database/entities/task-requirement.entity.ts +0 -27
- package/apps/server/src/database/entities/task-run.entity.ts +0 -41
- package/apps/server/src/database/entities/task.entity.ts +0 -44
- package/apps/server/src/main.ts +0 -65
- package/apps/server/src/modules/agents/agent-model-settings.spec.ts +0 -80
- package/apps/server/src/modules/agents/agents.module.ts +0 -11
- package/apps/server/src/modules/agents/claude/claude-auth.manager.ts +0 -83
- package/apps/server/src/modules/agents/claude/claude-pty.manager.ts +0 -380
- package/apps/server/src/modules/agents/claude/claude.controller.ts +0 -85
- package/apps/server/src/modules/agents/claude/claude.gateway.ts +0 -158
- package/apps/server/src/modules/agents/claude/claude.module.ts +0 -18
- package/apps/server/src/modules/agents/claude/claude.service.ts +0 -67
- package/apps/server/src/modules/agents/claude/dto/create-session.dto.ts +0 -24
- package/apps/server/src/modules/agents/claude/dto/resize-session.dto.ts +0 -13
- package/apps/server/src/modules/agents/claude/dto/send-input.dto.ts +0 -9
- package/apps/server/src/modules/agents/claude/interfaces/claude-session.interface.ts +0 -26
- package/apps/server/src/modules/agents/claude/interfaces/pty-event.interface.ts +0 -10
- package/apps/server/src/modules/agents/claude/interfaces/stream-event.interface.ts +0 -61
- package/apps/server/src/modules/agents/codex/codex-auth.manager.ts +0 -107
- package/apps/server/src/modules/agents/codex/codex-session.manager.ts +0 -357
- package/apps/server/src/modules/agents/codex/codex.controller.ts +0 -64
- package/apps/server/src/modules/agents/codex/codex.gateway.ts +0 -97
- package/apps/server/src/modules/agents/codex/codex.module.ts +0 -17
- package/apps/server/src/modules/agents/codex/dto/configure-auth.dto.ts +0 -7
- package/apps/server/src/modules/agents/gemini/dto/configure-auth.dto.ts +0 -15
- package/apps/server/src/modules/agents/gemini/dto/create-session.dto.ts +0 -9
- package/apps/server/src/modules/agents/gemini/dto/send-input.dto.ts +0 -9
- package/apps/server/src/modules/agents/gemini/gemini-auth.manager.ts +0 -157
- package/apps/server/src/modules/agents/gemini/gemini-session.manager.ts +0 -287
- package/apps/server/src/modules/agents/gemini/gemini.controller.ts +0 -93
- package/apps/server/src/modules/agents/gemini/gemini.gateway.ts +0 -149
- package/apps/server/src/modules/agents/gemini/gemini.module.ts +0 -17
- package/apps/server/src/modules/agents/gemini/interfaces/gemini-session.interface.ts +0 -18
- package/apps/server/src/modules/agents/gemini/interfaces/stream-event.interface.ts +0 -14
- package/apps/server/src/modules/agents/session-termination.spec.ts +0 -103
- package/apps/server/src/modules/changelog/changelog.controller.ts +0 -20
- package/apps/server/src/modules/changelog/changelog.module.ts +0 -14
- package/apps/server/src/modules/changelog/changelog.service.spec.ts +0 -531
- package/apps/server/src/modules/changelog/changelog.service.ts +0 -690
- package/apps/server/src/modules/conversations/conversation.controller.spec.ts +0 -106
- package/apps/server/src/modules/conversations/conversation.controller.ts +0 -60
- package/apps/server/src/modules/conversations/conversation.module.ts +0 -14
- package/apps/server/src/modules/conversations/conversation.service.spec.ts +0 -176
- package/apps/server/src/modules/conversations/conversation.service.ts +0 -54
- package/apps/server/src/modules/conversations/dto/create-conversation.dto.ts +0 -37
- package/apps/server/src/modules/conversations/enums/conversation.enum.ts +0 -13
- package/apps/server/src/modules/fs/fs.controller.ts +0 -29
- package/apps/server/src/modules/fs/fs.module.ts +0 -8
- package/apps/server/src/modules/harness/dto/save-harness.dto.ts +0 -9
- package/apps/server/src/modules/harness/harness.controller.spec.ts +0 -95
- package/apps/server/src/modules/harness/harness.controller.ts +0 -35
- package/apps/server/src/modules/harness/harness.module.ts +0 -11
- package/apps/server/src/modules/harness/harness.service.spec.ts +0 -217
- package/apps/server/src/modules/harness/harness.service.ts +0 -112
- package/apps/server/src/modules/sessions/session.controller.spec.ts +0 -68
- package/apps/server/src/modules/sessions/session.controller.ts +0 -43
- package/apps/server/src/modules/sessions/session.module.ts +0 -14
- package/apps/server/src/modules/sessions/session.service.spec.ts +0 -106
- package/apps/server/src/modules/sessions/session.service.ts +0 -35
- package/apps/server/src/modules/tasks/dto/create-task.dto.ts +0 -54
- package/apps/server/src/modules/tasks/dto/execute-task.dto.ts +0 -22
- package/apps/server/src/modules/tasks/dto/merge-file.dto.ts +0 -7
- package/apps/server/src/modules/tasks/dto/rerun-task.dto.ts +0 -14
- package/apps/server/src/modules/tasks/dto/update-task.dto.ts +0 -55
- package/apps/server/src/modules/tasks/task-execution.service.ts +0 -978
- package/apps/server/src/modules/tasks/task.gateway.ts +0 -140
- package/apps/server/src/modules/tasks/tasks.controller.spec.ts +0 -210
- package/apps/server/src/modules/tasks/tasks.controller.ts +0 -139
- package/apps/server/src/modules/tasks/tasks.module.ts +0 -30
- package/apps/server/src/modules/tasks/tasks.service.spec.ts +0 -552
- package/apps/server/src/modules/tasks/tasks.service.ts +0 -333
- package/apps/server/test/app.e2e-spec.ts +0 -28
- package/apps/server/test/jest-e2e.json +0 -9
- package/apps/server/tsconfig.build.json +0 -4
- package/apps/server/tsconfig.json +0 -13
- package/apps/web/AGENTS.md +0 -7
- package/apps/web/CLAUDE.md +0 -1
- package/apps/web/eslint.config.mjs +0 -21
- package/apps/web/next-env.d.ts +0 -6
- package/apps/web/postcss.config.mjs +0 -7
- package/apps/web/src/app/claude/page.tsx +0 -5
- package/apps/web/src/app/codex/page.tsx +0 -126
- package/apps/web/src/app/gemini/page.tsx +0 -130
- package/apps/web/src/app/globals.css +0 -149
- package/apps/web/src/app/layout.tsx +0 -40
- package/apps/web/src/app/login/page.tsx +0 -67
- package/apps/web/src/app/page.tsx +0 -497
- package/apps/web/src/app/task/[id]/page.tsx +0 -11
- package/apps/web/src/app/test/page.tsx +0 -298
- package/apps/web/src/components/ui/Modal.tsx +0 -78
- package/apps/web/src/components/ui/WorkingDirPicker.tsx +0 -195
- package/apps/web/src/components/ui/__tests__/Modal.test.tsx +0 -68
- package/apps/web/src/features/auth/api/__tests__/auth.api.test.ts +0 -83
- package/apps/web/src/features/auth/api/auth.api.ts +0 -81
- package/apps/web/src/features/auth/hooks/__tests__/useClaudeAuth.test.ts +0 -166
- package/apps/web/src/features/auth/hooks/__tests__/useCodexAuth.test.ts +0 -127
- package/apps/web/src/features/auth/hooks/__tests__/useGeminiAuth.test.ts +0 -120
- package/apps/web/src/features/auth/hooks/useClaudeAuth.ts +0 -88
- package/apps/web/src/features/auth/hooks/useCodexAuth.ts +0 -149
- package/apps/web/src/features/auth/hooks/useGeminiAuth.ts +0 -125
- package/apps/web/src/features/auth/ui/CodexLoginPanel.tsx +0 -302
- package/apps/web/src/features/auth/ui/GeminiLoginPanel.tsx +0 -316
- package/apps/web/src/features/auth/ui/LoginForm.tsx +0 -190
- package/apps/web/src/features/auth/ui/LoginPanel.tsx +0 -114
- package/apps/web/src/features/auth/ui/__tests__/LoginPanel.test.tsx +0 -105
- package/apps/web/src/features/chat/api/__tests__/sessions.api.test.ts +0 -187
- package/apps/web/src/features/chat/api/sessions.api.ts +0 -161
- package/apps/web/src/features/chat/container/ClaudePageContainer.tsx +0 -152
- package/apps/web/src/features/chat/hooks/__tests__/useCodexSessions.test.ts +0 -131
- package/apps/web/src/features/chat/hooks/__tests__/useGeminiSessions.test.ts +0 -130
- package/apps/web/src/features/chat/hooks/useAgentModelSettings.ts +0 -54
- package/apps/web/src/features/chat/hooks/useClaudeSessions.ts +0 -323
- package/apps/web/src/features/chat/hooks/useCodexSessions.ts +0 -275
- package/apps/web/src/features/chat/hooks/useGeminiSessions.ts +0 -255
- package/apps/web/src/features/chat/hooks/useSessionCommand.ts +0 -66
- package/apps/web/src/features/chat/hooks/useSessionRename.ts +0 -61
- package/apps/web/src/features/chat/hooks/useSessionWorkingDirectories.ts +0 -34
- package/apps/web/src/features/chat/hooks/useUnifiedSessions.ts +0 -156
- package/apps/web/src/features/chat/lib/agentModelOptions.ts +0 -72
- package/apps/web/src/features/chat/ui/AgentModelPicker.tsx +0 -134
- package/apps/web/src/features/chat/ui/AgentSelectModal.tsx +0 -236
- package/apps/web/src/features/chat/ui/ChatInput.tsx +0 -162
- package/apps/web/src/features/chat/ui/ChatMessage.tsx +0 -204
- package/apps/web/src/features/chat/ui/ChatWorkspace.tsx +0 -207
- package/apps/web/src/features/chat/ui/CheckingSkeleton.tsx +0 -44
- package/apps/web/src/features/chat/ui/ClaudeLoginView.tsx +0 -44
- package/apps/web/src/features/chat/ui/PermissionCard.tsx +0 -37
- package/apps/web/src/features/chat/ui/SessionSidebar.tsx +0 -280
- package/apps/web/src/features/chat/ui/__tests__/AgentSelectModal.test.tsx +0 -58
- package/apps/web/src/features/chat/ui/__tests__/ChatInput.test.tsx +0 -134
- package/apps/web/src/features/chat/ui/__tests__/ChatMessage.test.tsx +0 -106
- package/apps/web/src/features/chat/ui/__tests__/ChatWorkspace.test.tsx +0 -66
- package/apps/web/src/features/diff/ui/DiffFileRow.tsx +0 -73
- package/apps/web/src/features/diff/ui/DiffHunk.tsx +0 -61
- package/apps/web/src/features/diff/ui/FileChangeBadge.tsx +0 -23
- package/apps/web/src/features/diff/ui/__tests__/DiffFileRow.test.tsx +0 -40
- package/apps/web/src/features/diff/ui/__tests__/DiffHunk.test.tsx +0 -24
- package/apps/web/src/features/diff/ui/__tests__/FileChangeBadge.test.tsx +0 -16
- package/apps/web/src/features/fs/api/fs.api.ts +0 -14
- package/apps/web/src/features/fs/hooks/useDirBrowser.ts +0 -50
- package/apps/web/src/features/harness/api/__tests__/harness.api.test.ts +0 -73
- package/apps/web/src/features/harness/api/harness.api.ts +0 -46
- package/apps/web/src/features/harness/hooks/__tests__/useHarness.test.ts +0 -65
- package/apps/web/src/features/harness/hooks/useHarness.ts +0 -66
- package/apps/web/src/features/harness/ui/HarnessModal.tsx +0 -171
- package/apps/web/src/features/harness/ui/__tests__/HarnessModal.test.tsx +0 -46
- package/apps/web/src/features/status/ui/AgentStatusModal.tsx +0 -267
- package/apps/web/src/features/status/ui/__tests__/AgentStatusModal.test.tsx +0 -71
- package/apps/web/src/features/tasks/api/__tests__/changelog.api.test.ts +0 -89
- package/apps/web/src/features/tasks/api/__tests__/tasks.api.test.ts +0 -282
- package/apps/web/src/features/tasks/api/changelog.api.ts +0 -52
- package/apps/web/src/features/tasks/api/tasks.api.ts +0 -175
- package/apps/web/src/features/tasks/container/TaskDetailPageContainer.tsx +0 -69
- package/apps/web/src/features/tasks/hooks/__tests__/useChangelogCodeCopy.test.ts +0 -48
- package/apps/web/src/features/tasks/hooks/__tests__/useTaskChangelog.test.ts +0 -48
- package/apps/web/src/features/tasks/hooks/__tests__/useTaskCreate.test.ts +0 -217
- package/apps/web/src/features/tasks/hooks/__tests__/useTaskEdit.test.ts +0 -152
- package/apps/web/src/features/tasks/hooks/__tests__/useTaskExecution.test.ts +0 -143
- package/apps/web/src/features/tasks/hooks/__tests__/useTaskList.test.ts +0 -168
- package/apps/web/src/features/tasks/hooks/__tests__/useTaskNotification.test.ts +0 -125
- package/apps/web/src/features/tasks/hooks/__tests__/useTaskRuns.test.ts +0 -51
- package/apps/web/src/features/tasks/hooks/useChangelogCodeCopy.ts +0 -52
- package/apps/web/src/features/tasks/hooks/useCopyToClipboard.ts +0 -47
- package/apps/web/src/features/tasks/hooks/useTaskChangelog.ts +0 -32
- package/apps/web/src/features/tasks/hooks/useTaskCreate.ts +0 -137
- package/apps/web/src/features/tasks/hooks/useTaskDetail.ts +0 -217
- package/apps/web/src/features/tasks/hooks/useTaskEdit.ts +0 -130
- package/apps/web/src/features/tasks/hooks/useTaskExecution.ts +0 -137
- package/apps/web/src/features/tasks/hooks/useTaskList.ts +0 -159
- package/apps/web/src/features/tasks/hooks/useTaskNotification.ts +0 -80
- package/apps/web/src/features/tasks/hooks/useTaskRuns.ts +0 -32
- package/apps/web/src/features/tasks/ui/AgentOutputPanel.tsx +0 -203
- package/apps/web/src/features/tasks/ui/AgentRoleSelect.tsx +0 -97
- package/apps/web/src/features/tasks/ui/ChangelogPanel.tsx +0 -321
- package/apps/web/src/features/tasks/ui/RunHistoryPanel.tsx +0 -193
- package/apps/web/src/features/tasks/ui/TaskCreateModal.tsx +0 -205
- package/apps/web/src/features/tasks/ui/TaskDetailView.tsx +0 -413
- package/apps/web/src/features/tasks/ui/TaskEditModal.tsx +0 -165
- package/apps/web/src/features/tasks/ui/TaskListModal.tsx +0 -591
- package/apps/web/src/features/tasks/ui/__tests__/AgentRoleSelect.test.tsx +0 -91
- package/apps/web/src/features/tasks/ui/__tests__/ChangelogPanel.test.tsx +0 -94
- package/apps/web/src/features/tasks/ui/__tests__/RunHistoryPanel.test.tsx +0 -71
- package/apps/web/src/features/tasks/ui/__tests__/TaskCreateModal.test.tsx +0 -153
- package/apps/web/src/features/tasks/ui/__tests__/TaskEditModal.test.tsx +0 -75
- package/apps/web/src/features/tasks/ui/__tests__/TaskListModal.test.tsx +0 -243
- package/apps/web/src/hooks/useWorkingDir.ts +0 -28
- package/apps/web/src/lib/__tests__/ansi.test.ts +0 -88
- package/apps/web/src/lib/ansi.ts +0 -105
- package/apps/web/src/lib/constants.ts +0 -4
- package/apps/web/src/lib/quota.ts +0 -22
- package/apps/web/src/lib/theme.tsx +0 -78
- package/apps/web/src/lib/toast.tsx +0 -175
- package/apps/web/src/store/agentStatusStore.ts +0 -38
- package/apps/web/tsconfig.json +0 -18
- package/apps/web/vitest.config.ts +0 -25
- package/apps/web/vitest.setup.ts +0 -10
- package/packages/cli/dist/utils/project-init.d.ts +0 -12
- package/packages/cli/dist/utils/project-init.js +0 -258
- package/packages/cli/package.json +0 -30
- package/packages/cli/src/commands/check.ts +0 -77
- package/packages/cli/src/commands/init.ts +0 -209
- package/packages/cli/src/commands/start.ts +0 -183
- package/packages/cli/src/index.ts +0 -91
- package/packages/cli/src/utils/agent-tools.ts +0 -201
- package/packages/cli/src/utils/project-init.ts +0 -252
- package/packages/cli/src/utils/proxy.ts +0 -123
- package/packages/cli/tsconfig.json +0 -14
- package/packages/eslint-config/base.mjs +0 -31
- package/packages/eslint-config/nest.mjs +0 -55
- package/packages/eslint-config/next.mjs +0 -23
- package/packages/eslint-config/package.json +0 -20
- package/packages/typescript-config/base.json +0 -16
- package/packages/typescript-config/nestjs.json +0 -17
- package/packages/typescript-config/nextjs.json +0 -15
- package/packages/typescript-config/package.json +0 -11
- package/turbo.json +0 -28
- /package/apps/web/{src/app/favicon.ico → .next/server/app/favicon.ico.body} +0 -0
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { execFileSync, spawn } from 'child_process';
|
|
2
|
-
import type { ChildProcess } from 'child_process';
|
|
3
|
-
import * as fs from 'fs';
|
|
4
|
-
import * as os from 'os';
|
|
5
|
-
import * as path from 'path';
|
|
6
|
-
|
|
7
|
-
import { JI_PATHS } from '../../../common/ji-paths';
|
|
8
|
-
import { Injectable, Logger } from '@nestjs/common';
|
|
9
|
-
|
|
10
|
-
const IS_WIN = process.platform === 'win32';
|
|
11
|
-
|
|
12
|
-
export type GeminiAuthType = 'api-key' | 'gca';
|
|
13
|
-
|
|
14
|
-
export interface GeminiAuthStatus {
|
|
15
|
-
loggedIn: boolean;
|
|
16
|
-
authMethod: GeminiAuthType | 'unknown';
|
|
17
|
-
installed: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface GeminiSettings {
|
|
21
|
-
selectedAuthType?: GeminiAuthType | string;
|
|
22
|
-
[key: string]: unknown;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const SETTINGS_PATH = JI_PATHS.agents.gemini.settings;
|
|
26
|
-
const API_KEY_PATH = JI_PATHS.agents.gemini.apiKey;
|
|
27
|
-
const GCA_CREDS_PATH = path.join(
|
|
28
|
-
os.homedir(),
|
|
29
|
-
'.config',
|
|
30
|
-
'gcloud',
|
|
31
|
-
'application_default_credentials.json',
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
@Injectable()
|
|
35
|
-
export class GeminiAuthManager {
|
|
36
|
-
private readonly logger = new Logger(GeminiAuthManager.name);
|
|
37
|
-
private readonly loginProcesses = new Map<string, ChildProcess>();
|
|
38
|
-
|
|
39
|
-
// ─── Status ────────────────────────────────────────────────────────────────
|
|
40
|
-
|
|
41
|
-
async getAuthStatus(): Promise<GeminiAuthStatus> {
|
|
42
|
-
if (!this.isInstalled()) {
|
|
43
|
-
return { loggedIn: false, authMethod: 'unknown', installed: false };
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const settings = this.readSettings();
|
|
47
|
-
const authType = settings?.selectedAuthType as GeminiAuthType | undefined;
|
|
48
|
-
|
|
49
|
-
if (authType === 'api-key') {
|
|
50
|
-
const hasKey = !!(this.readStoredApiKey() || process.env.GEMINI_API_KEY);
|
|
51
|
-
return { loggedIn: hasKey, authMethod: 'api-key', installed: true };
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (authType === 'gca') {
|
|
55
|
-
const hasGca = fs.existsSync(GCA_CREDS_PATH);
|
|
56
|
-
return { loggedIn: hasGca, authMethod: 'gca', installed: true };
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return { loggedIn: false, authMethod: 'unknown', installed: true };
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// ─── API Key ───────────────────────────────────────────────────────────────
|
|
63
|
-
|
|
64
|
-
saveApiKey(apiKey: string): void {
|
|
65
|
-
this.ensureGeminiDir();
|
|
66
|
-
this.writeSettings({ selectedAuthType: 'api-key' });
|
|
67
|
-
fs.writeFileSync(API_KEY_PATH, apiKey, { mode: 0o600 });
|
|
68
|
-
this.logger.log('Saved Gemini API key config');
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
getEnvForGemini(): NodeJS.ProcessEnv {
|
|
72
|
-
const apiKey = this.readStoredApiKey() ?? process.env.GEMINI_API_KEY;
|
|
73
|
-
return apiKey ? { ...process.env, GEMINI_API_KEY: apiKey } : process.env;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// ─── GCA Login (gcloud auth application-default login) ────────────────────
|
|
77
|
-
|
|
78
|
-
startGcaLogin(
|
|
79
|
-
clientId: string,
|
|
80
|
-
onOutput: (text: string) => void,
|
|
81
|
-
onDone: (success: boolean) => void,
|
|
82
|
-
): void {
|
|
83
|
-
this.cancelLogin(clientId);
|
|
84
|
-
|
|
85
|
-
const proc = spawn(IS_WIN ? 'gcloud.cmd' : 'gcloud', ['auth', 'application-default', 'login'], {
|
|
86
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
87
|
-
env: process.env,
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
this.loginProcesses.set(clientId, proc);
|
|
91
|
-
this.logger.log(`Started gcloud auth for client ${clientId} (pid: ${proc.pid})`);
|
|
92
|
-
|
|
93
|
-
proc.stdout.on('data', (chunk: Buffer) => onOutput(chunk.toString()));
|
|
94
|
-
proc.stderr.on('data', (chunk: Buffer) => onOutput(chunk.toString()));
|
|
95
|
-
|
|
96
|
-
proc.on('close', (code) => {
|
|
97
|
-
this.loginProcesses.delete(clientId);
|
|
98
|
-
const success = code === 0;
|
|
99
|
-
if (success) this.writeSettings({ selectedAuthType: 'gca' });
|
|
100
|
-
this.logger.log(`gcloud auth for ${clientId} exited with code ${code}`);
|
|
101
|
-
onDone(success);
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
proc.on('error', (err) => {
|
|
105
|
-
this.loginProcesses.delete(clientId);
|
|
106
|
-
this.logger.error(`gcloud auth error for ${clientId}: ${err.message}`);
|
|
107
|
-
onDone(false);
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
cancelLogin(clientId: string): void {
|
|
112
|
-
const proc = this.loginProcesses.get(clientId);
|
|
113
|
-
if (proc) {
|
|
114
|
-
proc.kill();
|
|
115
|
-
this.loginProcesses.delete(clientId);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// ─── Private helpers ───────────────────────────────────────────────────────
|
|
120
|
-
|
|
121
|
-
private isInstalled(): boolean {
|
|
122
|
-
try {
|
|
123
|
-
execFileSync('gemini', ['--version'], { stdio: 'ignore', shell: true });
|
|
124
|
-
return true;
|
|
125
|
-
} catch {
|
|
126
|
-
return false;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
private ensureGeminiDir(): void {
|
|
131
|
-
if (!fs.existsSync(JI_PATHS.agents.gemini.dir)) {
|
|
132
|
-
fs.mkdirSync(JI_PATHS.agents.gemini.dir, { recursive: true });
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
private readSettings(): GeminiSettings | null {
|
|
137
|
-
try {
|
|
138
|
-
return JSON.parse(fs.readFileSync(SETTINGS_PATH, 'utf8')) as GeminiSettings;
|
|
139
|
-
} catch {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
private writeSettings(patch: Partial<GeminiSettings>): void {
|
|
145
|
-
this.ensureGeminiDir();
|
|
146
|
-
const current = this.readSettings() ?? {};
|
|
147
|
-
fs.writeFileSync(SETTINGS_PATH, JSON.stringify({ ...current, ...patch }, null, 2));
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
private readStoredApiKey(): string | null {
|
|
151
|
-
try {
|
|
152
|
-
return fs.readFileSync(API_KEY_PATH, 'utf8').trim() || null;
|
|
153
|
-
} catch {
|
|
154
|
-
return null;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
import { execSync, spawn, type ChildProcess } from 'child_process';
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import * as fs from 'fs';
|
|
4
|
-
|
|
5
|
-
const IS_WIN = process.platform === 'win32';
|
|
6
|
-
import * as path from 'path';
|
|
7
|
-
|
|
8
|
-
import { Injectable, Logger, NotFoundException, OnModuleDestroy, OnModuleInit } from '@nestjs/common';
|
|
9
|
-
import { InjectRepository } from '@nestjs/typeorm';
|
|
10
|
-
import { Repository } from 'typeorm';
|
|
11
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
12
|
-
|
|
13
|
-
import { AgentSessionEntity } from '../../../database/entities/agent-session.entity';
|
|
14
|
-
import { SessionEntity } from '../../../database/entities/session.entity';
|
|
15
|
-
import { GeminiAuthManager } from './gemini-auth.manager';
|
|
16
|
-
import type { GeminiSession, SessionInfo } from './interfaces/gemini-session.interface';
|
|
17
|
-
import type { ResultEvent, SessionExitEvent, TextDeltaEvent } from './interfaces/stream-event.interface';
|
|
18
|
-
|
|
19
|
-
@Injectable()
|
|
20
|
-
export class GeminiSessionManager extends EventEmitter implements OnModuleInit, OnModuleDestroy {
|
|
21
|
-
private readonly logger = new Logger(GeminiSessionManager.name);
|
|
22
|
-
private readonly sessions = new Map<string, GeminiSession>();
|
|
23
|
-
private readonly processes = new Map<string, ChildProcess>();
|
|
24
|
-
private geminiBin = 'gemini';
|
|
25
|
-
|
|
26
|
-
constructor(
|
|
27
|
-
@InjectRepository(AgentSessionEntity)
|
|
28
|
-
private readonly agentSessionRepo: Repository<AgentSessionEntity>,
|
|
29
|
-
@InjectRepository(SessionEntity)
|
|
30
|
-
private readonly sessionRepo: Repository<SessionEntity>,
|
|
31
|
-
private readonly authManager: GeminiAuthManager,
|
|
32
|
-
) {
|
|
33
|
-
super();
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
onModuleInit(): void {
|
|
37
|
-
this.geminiBin = this.resolveGemini();
|
|
38
|
-
this.logger.log(`gemini 경로: ${this.geminiBin}`);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// ─── 세션 생명주기 ───────────────────────────────────────────────────
|
|
42
|
-
|
|
43
|
-
createSession(workingDirectory = process.cwd()): SessionInfo {
|
|
44
|
-
const id = uuidv4();
|
|
45
|
-
const now = new Date();
|
|
46
|
-
const session: GeminiSession = {
|
|
47
|
-
id,
|
|
48
|
-
status: 'idle',
|
|
49
|
-
workingDirectory,
|
|
50
|
-
createdAt: now,
|
|
51
|
-
lastActivity: now,
|
|
52
|
-
persisted: false,
|
|
53
|
-
};
|
|
54
|
-
this.sessions.set(id, session);
|
|
55
|
-
|
|
56
|
-
this.logger.log(`Created in-memory Gemini session ${id}`);
|
|
57
|
-
return this.toSessionInfo(session);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
terminateSession(sessionId: string): void {
|
|
61
|
-
const session = this.requireSession(sessionId);
|
|
62
|
-
session.status = 'terminated';
|
|
63
|
-
this.killProcess(sessionId);
|
|
64
|
-
this.sessions.delete(sessionId);
|
|
65
|
-
|
|
66
|
-
if (session.persisted) {
|
|
67
|
-
void this.agentSessionRepo.update(sessionId, { status: 'terminated' });
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
this.logger.log(`Terminated Gemini session ${sessionId}`);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// ─── 메시지 전송 ─────────────────────────────────────────────────────
|
|
74
|
-
|
|
75
|
-
sendMessage(sessionId: string, message: string): void {
|
|
76
|
-
const existing = this.sessions.get(sessionId);
|
|
77
|
-
if (!existing) {
|
|
78
|
-
void this.restoreAndSend(sessionId, message);
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (existing.status === 'processing') {
|
|
83
|
-
throw new Error(`Gemini session ${sessionId} is already processing`);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
existing.status = 'processing';
|
|
87
|
-
existing.lastActivity = new Date();
|
|
88
|
-
|
|
89
|
-
if (!existing.persisted) {
|
|
90
|
-
void this.persistSession(existing).then(() => {
|
|
91
|
-
if (existing.status === 'terminated' || !this.sessions.has(sessionId)) {
|
|
92
|
-
void this.agentSessionRepo.update(sessionId, { status: 'terminated' });
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
this.spawnGemini(existing, message);
|
|
96
|
-
});
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
void this.agentSessionRepo.update(sessionId, { status: 'processing' });
|
|
101
|
-
this.spawnGemini(existing, message);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private async restoreAndSend(sessionId: string, message: string): Promise<void> {
|
|
105
|
-
const record = await this.agentSessionRepo.findOne({ where: { id: sessionId } });
|
|
106
|
-
if (!record) {
|
|
107
|
-
this.emit('text-delta', { sessionId, text: '⚠ 세션을 찾을 수 없습니다.' });
|
|
108
|
-
this.emit('result', { sessionId, isError: true });
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
const now = new Date();
|
|
112
|
-
const session: GeminiSession = {
|
|
113
|
-
id: sessionId,
|
|
114
|
-
status: 'processing',
|
|
115
|
-
workingDirectory: record.workingDirectory,
|
|
116
|
-
createdAt: record.createdAt,
|
|
117
|
-
lastActivity: now,
|
|
118
|
-
persisted: true,
|
|
119
|
-
};
|
|
120
|
-
this.sessions.set(sessionId, session);
|
|
121
|
-
this.logger.log(`Restored Gemini session ${sessionId} (cwd: ${record.workingDirectory})`);
|
|
122
|
-
void this.agentSessionRepo.update(sessionId, { status: 'processing' });
|
|
123
|
-
this.spawnGemini(session, message);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// ─── 조회 ────────────────────────────────────────────────────────────
|
|
127
|
-
|
|
128
|
-
getSessionInfo(sessionId: string): SessionInfo {
|
|
129
|
-
const session = this.sessions.get(sessionId);
|
|
130
|
-
if (!session) throw new NotFoundException(`Gemini session ${sessionId} not found`);
|
|
131
|
-
return this.toSessionInfo(session);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
listSessions(): SessionInfo[] {
|
|
135
|
-
return [...this.sessions.values()].map((s) => this.toSessionInfo(s));
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// ─── 정리 ────────────────────────────────────────────────────────────
|
|
139
|
-
|
|
140
|
-
onModuleDestroy(): void {
|
|
141
|
-
for (const sessionId of this.processes.keys()) {
|
|
142
|
-
this.killProcess(sessionId);
|
|
143
|
-
}
|
|
144
|
-
for (const session of this.sessions.values()) {
|
|
145
|
-
session.status = 'terminated';
|
|
146
|
-
}
|
|
147
|
-
this.sessions.clear();
|
|
148
|
-
this.logger.log('All Gemini sessions cleared');
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// ─── Private ─────────────────────────────────────────────────────────
|
|
152
|
-
|
|
153
|
-
private async persistSession(session: GeminiSession): Promise<void> {
|
|
154
|
-
const title = path.basename(session.workingDirectory) || session.workingDirectory;
|
|
155
|
-
await Promise.all([
|
|
156
|
-
this.agentSessionRepo.save({
|
|
157
|
-
id: session.id,
|
|
158
|
-
claudeSessionId: null,
|
|
159
|
-
status: 'processing',
|
|
160
|
-
workingDirectory: session.workingDirectory,
|
|
161
|
-
}),
|
|
162
|
-
this.sessionRepo.save({ sessionId: session.id, title, agentType: 'gemini' }),
|
|
163
|
-
]);
|
|
164
|
-
session.persisted = true;
|
|
165
|
-
this.logger.log(`Persisted Gemini session ${session.id} (${title})`);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
private spawnGemini(session: GeminiSession, message: string): void {
|
|
169
|
-
const sessionId = session.id;
|
|
170
|
-
|
|
171
|
-
this.logger.log(`[${sessionId}] spawning: ${this.geminiBin} -y -p <message>`);
|
|
172
|
-
|
|
173
|
-
const proc = spawn(this.geminiBin, ['-y', '-p', message], {
|
|
174
|
-
cwd: session.workingDirectory,
|
|
175
|
-
env: this.authManager.getEnvForGemini(),
|
|
176
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
177
|
-
});
|
|
178
|
-
this.processes.set(sessionId, proc);
|
|
179
|
-
|
|
180
|
-
// Gemini CLI는 stdout/stderr 모두에 출력 — 두 스트림 합산 캡처
|
|
181
|
-
// ANSI 이스케이프 시퀀스(색상, 커서 이동 등) 전체 제거
|
|
182
|
-
const handleChunk = (chunk: Buffer): void => {
|
|
183
|
-
const raw = chunk.toString();
|
|
184
|
-
const text = raw
|
|
185
|
-
.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g, '') // CSI 시퀀스
|
|
186
|
-
.replace(/\x1b\][^\x07]*\x07/g, '') // OSC 시퀀스
|
|
187
|
-
.replace(/\x1b[()][AB]/g, '') // charset 지정
|
|
188
|
-
.replace(/\r/g, '');
|
|
189
|
-
if (!text.trim()) return;
|
|
190
|
-
const event: TextDeltaEvent = { sessionId, text };
|
|
191
|
-
this.emit('text-delta', event);
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
proc.stdout.on('data', handleChunk);
|
|
195
|
-
proc.stderr.on('data', handleChunk);
|
|
196
|
-
|
|
197
|
-
proc.on('close', (exitCode) => {
|
|
198
|
-
this.processes.delete(sessionId);
|
|
199
|
-
const exitEvent: SessionExitEvent = { sessionId, exitCode: exitCode ?? -1 };
|
|
200
|
-
|
|
201
|
-
if (session.status === 'terminated' || !this.sessions.has(sessionId)) {
|
|
202
|
-
this.emit('exit', exitEvent);
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
this.logger.log(`[${sessionId}] gemini exited with code ${exitCode}`);
|
|
207
|
-
session.status = 'idle';
|
|
208
|
-
void this.agentSessionRepo.update(sessionId, { status: 'idle' });
|
|
209
|
-
|
|
210
|
-
const resultEvent: ResultEvent = { sessionId, isError: (exitCode ?? 0) !== 0 };
|
|
211
|
-
this.emit('result', resultEvent);
|
|
212
|
-
|
|
213
|
-
this.emit('exit', exitEvent);
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
proc.on('error', (err) => {
|
|
217
|
-
this.processes.delete(sessionId);
|
|
218
|
-
if (session.status === 'terminated' || !this.sessions.has(sessionId)) {
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
this.logger.error(`[${sessionId}] spawn error: ${err.message}`);
|
|
223
|
-
session.status = 'idle';
|
|
224
|
-
void this.agentSessionRepo.update(sessionId, { status: 'idle' });
|
|
225
|
-
// 에러도 텍스트로 전달해서 UI에 표시
|
|
226
|
-
this.emit('text-delta', { sessionId, text: `\n⚠ 실행 오류: ${err.message}\n` } as TextDeltaEvent);
|
|
227
|
-
this.emit('result', { sessionId, isError: true } as ResultEvent);
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
private resolveGemini(): string {
|
|
232
|
-
const whichCmd = IS_WIN ? 'where gemini' : 'which gemini';
|
|
233
|
-
const candidates = [
|
|
234
|
-
(): string => execSync(whichCmd, { encoding: 'utf8', timeout: 2000 }).trim().split(/\r?\n/)[0],
|
|
235
|
-
(): string => {
|
|
236
|
-
const home = IS_WIN ? (process.env.USERPROFILE ?? '') : (process.env.HOME ?? '');
|
|
237
|
-
const p = IS_WIN
|
|
238
|
-
? `${home}\\AppData\\Roaming\\npm\\gemini.cmd`
|
|
239
|
-
: `${home}/.nvm/versions/node/${process.version}/bin/gemini`;
|
|
240
|
-
if (fs.existsSync(p)) return p;
|
|
241
|
-
throw new Error('not found');
|
|
242
|
-
},
|
|
243
|
-
(): string => {
|
|
244
|
-
const npmBin = execSync('npm bin -g', { encoding: 'utf8', timeout: 2000 }).trim();
|
|
245
|
-
const p = IS_WIN ? `${npmBin}\\gemini.cmd` : `${npmBin}/gemini`;
|
|
246
|
-
if (fs.existsSync(p)) return p;
|
|
247
|
-
throw new Error('not found');
|
|
248
|
-
},
|
|
249
|
-
];
|
|
250
|
-
|
|
251
|
-
for (const fn of candidates) {
|
|
252
|
-
try { const p = fn(); if (p) return p; } catch {}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
this.logger.warn('gemini 경로 탐지 실패 — "gemini"로 폴백');
|
|
256
|
-
return IS_WIN ? 'gemini.cmd' : 'gemini';
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
private requireSession(sessionId: string): GeminiSession {
|
|
260
|
-
const session = this.sessions.get(sessionId);
|
|
261
|
-
if (!session) throw new NotFoundException(`Gemini session ${sessionId} not found`);
|
|
262
|
-
if (session.status === 'terminated') throw new Error(`Gemini session ${sessionId} is terminated`);
|
|
263
|
-
return session;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
private killProcess(sessionId: string): void {
|
|
267
|
-
const proc = this.processes.get(sessionId);
|
|
268
|
-
if (!proc) return;
|
|
269
|
-
|
|
270
|
-
this.processes.delete(sessionId);
|
|
271
|
-
try {
|
|
272
|
-
if (!proc.killed) proc.kill('SIGTERM');
|
|
273
|
-
} catch (err) {
|
|
274
|
-
this.logger.warn(`Failed to kill Gemini session ${sessionId}: ${err instanceof Error ? err.message : String(err)}`);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
private toSessionInfo(session: GeminiSession): SessionInfo {
|
|
279
|
-
return {
|
|
280
|
-
id: session.id,
|
|
281
|
-
status: session.status,
|
|
282
|
-
workingDirectory: session.workingDirectory,
|
|
283
|
-
createdAt: session.createdAt,
|
|
284
|
-
lastActivity: session.lastActivity,
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BadRequestException,
|
|
3
|
-
Body,
|
|
4
|
-
Controller,
|
|
5
|
-
Delete,
|
|
6
|
-
Get,
|
|
7
|
-
HttpCode,
|
|
8
|
-
HttpStatus,
|
|
9
|
-
Param,
|
|
10
|
-
Post,
|
|
11
|
-
UsePipes,
|
|
12
|
-
ValidationPipe,
|
|
13
|
-
} from '@nestjs/common';
|
|
14
|
-
import { ApiNoContentResponse, ApiOkResponse, ApiOperation, ApiTags } from '@nestjs/swagger';
|
|
15
|
-
|
|
16
|
-
import { ConfigureAuthDto } from './dto/configure-auth.dto';
|
|
17
|
-
import { CreateSessionDto } from './dto/create-session.dto';
|
|
18
|
-
import { SendInputDto } from './dto/send-input.dto';
|
|
19
|
-
import { GeminiAuthManager } from './gemini-auth.manager';
|
|
20
|
-
import type { GeminiAuthStatus } from './gemini-auth.manager';
|
|
21
|
-
import { GeminiSessionManager } from './gemini-session.manager';
|
|
22
|
-
import type { SessionInfo } from './interfaces/gemini-session.interface';
|
|
23
|
-
|
|
24
|
-
@ApiTags('agents/gemini')
|
|
25
|
-
@UsePipes(new ValidationPipe({ transform: true, whitelist: true }))
|
|
26
|
-
@Controller('agents/gemini')
|
|
27
|
-
export class GeminiController {
|
|
28
|
-
constructor(
|
|
29
|
-
private readonly authManager: GeminiAuthManager,
|
|
30
|
-
private readonly sessionManager: GeminiSessionManager,
|
|
31
|
-
) {}
|
|
32
|
-
|
|
33
|
-
@ApiOperation({ summary: 'Gemini CLI 인증 상태 조회' })
|
|
34
|
-
@ApiOkResponse({ description: '설치 여부, 인증 방식, 이메일 반환' })
|
|
35
|
-
@Get('auth/status')
|
|
36
|
-
getAuthStatus(): Promise<GeminiAuthStatus> {
|
|
37
|
-
return this.authManager.getAuthStatus();
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@ApiOperation({
|
|
41
|
-
summary: 'Gemini CLI 인증 설정',
|
|
42
|
-
description: '`api-key` 방식은 apiKey 필드 필수. `gca` 방식은 WebSocket으로 진행',
|
|
43
|
-
})
|
|
44
|
-
@ApiNoContentResponse({ description: '설정 완료 (응답 본문 없음)' })
|
|
45
|
-
@Post('auth/configure')
|
|
46
|
-
@HttpCode(HttpStatus.NO_CONTENT)
|
|
47
|
-
configureAuth(@Body() dto: ConfigureAuthDto): void {
|
|
48
|
-
if (dto.authType === 'api-key') {
|
|
49
|
-
if (!dto.apiKey?.trim()) throw new BadRequestException('apiKey is required');
|
|
50
|
-
this.authManager.saveApiKey(dto.apiKey.trim());
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@ApiOperation({ summary: '새 Gemini 세션 생성' })
|
|
55
|
-
@ApiOkResponse({ description: '생성된 세션 정보' })
|
|
56
|
-
@Post('sessions')
|
|
57
|
-
createSession(@Body() dto: CreateSessionDto): SessionInfo {
|
|
58
|
-
return this.sessionManager.createSession(dto.workingDirectory);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@ApiOperation({ summary: '활성 Gemini 세션 목록 조회' })
|
|
62
|
-
@ApiOkResponse({ description: '세션 목록' })
|
|
63
|
-
@Get('sessions')
|
|
64
|
-
listSessions(): SessionInfo[] {
|
|
65
|
-
return this.sessionManager.listSessions();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@ApiOperation({ summary: '특정 Gemini 세션 조회' })
|
|
69
|
-
@ApiOkResponse({ description: '세션 정보' })
|
|
70
|
-
@Get('sessions/:id')
|
|
71
|
-
getSession(@Param('id') id: string): SessionInfo {
|
|
72
|
-
return this.sessionManager.getSessionInfo(id);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@ApiOperation({
|
|
76
|
-
summary: '세션에 메시지 전송',
|
|
77
|
-
description: '응답은 WebSocket `/agents/gemini` 네임스페이스의 `session:chunk` / `session:done` 이벤트로 수신',
|
|
78
|
-
})
|
|
79
|
-
@ApiNoContentResponse({ description: '전송 완료 (응답 본문 없음)' })
|
|
80
|
-
@Post('sessions/:id/message')
|
|
81
|
-
@HttpCode(HttpStatus.NO_CONTENT)
|
|
82
|
-
sendMessage(@Param('id') id: string, @Body() dto: SendInputDto): void {
|
|
83
|
-
this.sessionManager.sendMessage(id, dto.input);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@ApiOperation({ summary: '세션 종료' })
|
|
87
|
-
@ApiNoContentResponse({ description: '종료 완료 (응답 본문 없음)' })
|
|
88
|
-
@Delete('sessions/:id')
|
|
89
|
-
@HttpCode(HttpStatus.NO_CONTENT)
|
|
90
|
-
terminateSession(@Param('id') id: string): void {
|
|
91
|
-
this.sessionManager.terminateSession(id);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { Logger, UsePipes, ValidationPipe } from '@nestjs/common';
|
|
2
|
-
import {
|
|
3
|
-
ConnectedSocket,
|
|
4
|
-
MessageBody,
|
|
5
|
-
OnGatewayConnection,
|
|
6
|
-
OnGatewayDisconnect,
|
|
7
|
-
OnGatewayInit,
|
|
8
|
-
SubscribeMessage,
|
|
9
|
-
WebSocketGateway,
|
|
10
|
-
WebSocketServer,
|
|
11
|
-
WsException,
|
|
12
|
-
} from '@nestjs/websockets';
|
|
13
|
-
import { Server, Socket } from 'socket.io';
|
|
14
|
-
|
|
15
|
-
import { GeminiAuthManager } from './gemini-auth.manager';
|
|
16
|
-
import { GeminiSessionManager } from './gemini-session.manager';
|
|
17
|
-
import { SendInputDto } from './dto/send-input.dto';
|
|
18
|
-
import type { CreateSessionDto } from './dto/create-session.dto';
|
|
19
|
-
import type { ResultEvent, SessionExitEvent, TextDeltaEvent } from './interfaces/stream-event.interface';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* WebSocket 이벤트 프로토콜 (/agents/gemini)
|
|
23
|
-
*
|
|
24
|
-
* Client → Server
|
|
25
|
-
* session:create { workingDirectory? }
|
|
26
|
-
* session:message { sessionId, input }
|
|
27
|
-
* session:terminate { sessionId }
|
|
28
|
-
* auth:gca:start
|
|
29
|
-
* auth:login:cancel
|
|
30
|
-
*
|
|
31
|
-
* Server → Client
|
|
32
|
-
* session:created { id, status, ... }
|
|
33
|
-
* session:text { sessionId, text }
|
|
34
|
-
* session:result { sessionId, isError }
|
|
35
|
-
* session:exit { sessionId, exitCode }
|
|
36
|
-
* error { message }
|
|
37
|
-
* auth:output { text }
|
|
38
|
-
* auth:done { success }
|
|
39
|
-
*/
|
|
40
|
-
@UsePipes(new ValidationPipe({ transform: true, whitelist: true }))
|
|
41
|
-
@WebSocketGateway({ namespace: '/agents/gemini', cors: { origin: '*' } })
|
|
42
|
-
export class GeminiGateway implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect {
|
|
43
|
-
@WebSocketServer()
|
|
44
|
-
private readonly server!: Server;
|
|
45
|
-
|
|
46
|
-
private readonly logger = new Logger(GeminiGateway.name);
|
|
47
|
-
|
|
48
|
-
constructor(
|
|
49
|
-
private readonly sessionManager: GeminiSessionManager,
|
|
50
|
-
private readonly authManager: GeminiAuthManager,
|
|
51
|
-
) {}
|
|
52
|
-
|
|
53
|
-
// ─── Gateway hooks ───────────────────────────────────────────────────
|
|
54
|
-
|
|
55
|
-
afterInit(): void {
|
|
56
|
-
this.sessionManager.on('text-delta', (event: TextDeltaEvent) => {
|
|
57
|
-
this.server.to(event.sessionId).emit('session:text', event);
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
this.sessionManager.on('result', (event: ResultEvent) => {
|
|
61
|
-
this.server.to(event.sessionId).emit('session:result', event);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
this.sessionManager.on('exit', (event: SessionExitEvent) => {
|
|
65
|
-
this.server.to(event.sessionId).emit('session:exit', event);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
this.sessionManager.on('error', (event: { sessionId: string; message: string }) => {
|
|
69
|
-
this.server.to(event.sessionId).emit('error', { message: event.message });
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
this.logger.log('GeminiGateway initialised — namespace: /agents/gemini');
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
handleConnection(client: Socket): void {
|
|
76
|
-
this.logger.debug(`Client connected: ${client.id}`);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
handleDisconnect(client: Socket): void {
|
|
80
|
-
this.authManager.cancelLogin(client.id);
|
|
81
|
-
this.logger.debug(`Client disconnected: ${client.id}`);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// ─── Session handlers ────────────────────────────────────────────────
|
|
85
|
-
|
|
86
|
-
@SubscribeMessage('session:create')
|
|
87
|
-
handleCreate(
|
|
88
|
-
@ConnectedSocket() client: Socket,
|
|
89
|
-
@MessageBody() dto: CreateSessionDto,
|
|
90
|
-
): void {
|
|
91
|
-
try {
|
|
92
|
-
const session = this.sessionManager.createSession(dto.workingDirectory);
|
|
93
|
-
void client.join(session.id);
|
|
94
|
-
client.emit('session:created', session);
|
|
95
|
-
} catch (err) {
|
|
96
|
-
this.emitError(client, err);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@SubscribeMessage('session:message')
|
|
101
|
-
handleMessage(
|
|
102
|
-
@ConnectedSocket() client: Socket,
|
|
103
|
-
@MessageBody() body: { sessionId: string } & SendInputDto,
|
|
104
|
-
): void {
|
|
105
|
-
try {
|
|
106
|
-
void client.join(body.sessionId);
|
|
107
|
-
this.sessionManager.sendMessage(body.sessionId, body.input);
|
|
108
|
-
} catch (err) {
|
|
109
|
-
this.emitError(client, err);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@SubscribeMessage('session:terminate')
|
|
114
|
-
handleTerminate(
|
|
115
|
-
@ConnectedSocket() client: Socket,
|
|
116
|
-
@MessageBody('sessionId') sessionId: string,
|
|
117
|
-
): void {
|
|
118
|
-
try {
|
|
119
|
-
this.sessionManager.terminateSession(sessionId);
|
|
120
|
-
} catch (err) {
|
|
121
|
-
this.emitError(client, err);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// ─── Auth handlers ───────────────────────────────────────────────────
|
|
126
|
-
|
|
127
|
-
@SubscribeMessage('auth:gca:start')
|
|
128
|
-
handleGcaLoginStart(@ConnectedSocket() client: Socket): void {
|
|
129
|
-
this.authManager.startGcaLogin(
|
|
130
|
-
client.id,
|
|
131
|
-
(text) => client.emit('auth:output', { text }),
|
|
132
|
-
(success) => client.emit('auth:done', { success }),
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@SubscribeMessage('auth:login:cancel')
|
|
137
|
-
handleAuthLoginCancel(@ConnectedSocket() client: Socket): void {
|
|
138
|
-
this.authManager.cancelLogin(client.id);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// ─── Private ─────────────────────────────────────────────────────────
|
|
142
|
-
|
|
143
|
-
private emitError(client: Socket, err: unknown): void {
|
|
144
|
-
const message = err instanceof Error ? err.message : 'Unknown error';
|
|
145
|
-
this.logger.error(`[${client.id}] ${message}`);
|
|
146
|
-
client.emit('error', { message });
|
|
147
|
-
throw new WsException(message);
|
|
148
|
-
}
|
|
149
|
-
}
|