@mndrk/agx 2.0.38 โ 2.0.40
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/cloud-runtime/standalone/.next/BUILD_ID +1 -1
- package/cloud-runtime/standalone/.next/build-manifest.json +4 -4
- package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
- package/cloud-runtime/standalone/.next/required-server-files.json +4 -4
- package/cloud-runtime/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_global-error.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/[id]/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.segments/agents.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agent-specs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/automations/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/[id]/signal/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/chat-runs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/file-search/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/graphs/[graphId]/nodes/[nodeId]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/history/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/knowledge-notes/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/learnings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/logs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/logs/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/memories/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/messages/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/migrate/teams-to-projects/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/migrate/workspaces-to-projects/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/participants/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/memory/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v1/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/migrate-v2/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/skills/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/threads/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/variables/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/cancel/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/[id]/runs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/agents/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/poll/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/prompt-jobs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/queue/complete/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/reactions/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/repos/[id]/knowledge/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/schedules/debug/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/schedules/poll/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/schedules/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/assign/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/available/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/learn/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/skills/unlearn/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/summarize/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/system/db-status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/task-drafts/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/comments/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/costs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/dependencies/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/events/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/metrics/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/pause/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/replan/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/restart/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/resume/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/rollback/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/schedule/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/graph/stop/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/heartbeat/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/logs/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/assign-orphans/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/extract/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/tasks/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/thread-repos/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/threads/knowledge/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/threads/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.segments/board.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/status/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome/page/build-manifest.json +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[externals]__986fcdb7._.js โ [externals]__bc6c7111._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__01cd082e._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0936925d._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__09ca81e1._.js +101 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0c3dd73b._.js +6 -6
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__f9cff4b0._.js โ [root-of-the-server]__1017e012._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1ac3236d._.js +25 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1b0bb735._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1c86bf6e._.js +5 -5
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__20c58b41._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2126c763._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__762ab29c._.js โ [root-of-the-server]__236c35bb._.js} +4 -4
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__255b11f2._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__277ed37d._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2f06f568._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__30bd0c87._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__374cd94c._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3785024c._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__379604d4._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c8f1de6._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3d0df5a8._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4014ed70._.js +7 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42fcb81c._.js +16 -16
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a3cd6ac._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4e522535._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50c24784._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50ddd3ce._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__529a6e1c._.js +12 -12
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59d1cdd8._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__628d686b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__644e6285._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__65755104._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__73c20995._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8125bbc3._.js +6 -6
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__85275b88._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__89666394._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8c0fb154._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8f5cac13._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__91b22098._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__92924218._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__96ae701e._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98ce983b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9a9fd39f._.js +6 -6
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9ad4e385._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a01ddd0b._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a099c992._.js +14 -14
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ab7343c8._.js โ [root-of-the-server]__a1e62918._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a9b949c3._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__af7a73fd._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bd43017b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf6fb108._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c122c54a._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c4ea4921._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d57e800e._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__db469f1b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__da3a1ce7._.js โ [root-of-the-server]__dc542063._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dec3e1b7._.js +4 -4
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f1147a4a._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f5597fea._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f8c94cb3._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f9f7f2df._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa79d53f._.js +11 -11
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fb14cd4a._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcf0b40a._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ffb21023._.js +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/_22fe5fd2._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_2492d514._.js +81 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_281e5787._.js +16 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_63067e21._.js +16 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_orchestrator_chat-processor_ts_4c335719._.js +134 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js +82 -21
- package/cloud-runtime/standalone/.next/server/chunks/ssr/node_modules_next_dist_61a87db9._.js +1 -1
- package/cloud-runtime/standalone/.next/server/instrumentation.js +1 -1
- package/cloud-runtime/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/cloud-runtime/standalone/.next/server/middleware-manifest.json +5 -5
- package/cloud-runtime/standalone/.next/server/pages/404.html +2 -2
- package/cloud-runtime/standalone/.next/server/pages/500.html +2 -2
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/server-reference-manifest.json +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{dfff51033c303fc7.js โ ee5f1457fbc593e1.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{turbopack-22475f0dd0c18f92.js โ turbopack-e1d640f2fbe4fa5e.js} +1 -1
- package/cloud-runtime/standalone/coverage/clover.xml +1208 -0
- package/cloud-runtime/standalone/coverage/coverage-final.json +29 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/audit/route.ts.html +208 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/[...nextauth]/route.ts.html +166 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/daemon-secret/route.ts.html +532 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/auth/status/route.ts.html +178 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/learnings/route.ts.html +262 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/logs/stream/route.ts.html +448 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/complete/route.ts.html +331 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/queue/route.ts.html +505 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/stage-prompts/route.ts.html +412 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/advance/route.ts.html +304 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/logs/route.ts.html +202 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/[id]/route.ts.html +373 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/route.ts.html +499 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/app/api/tasks/stream/route.ts.html +349 -0
- package/cloud-runtime/standalone/coverage/lcov-report/base.css +224 -0
- package/cloud-runtime/standalone/coverage/lcov-report/block-navigation.js +87 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/AuthProvider.tsx.html +259 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/ChatInterface.tsx.html +1228 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/KanbanBoard.tsx.html +1024 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/Layout.tsx.html +211 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/LearningsPanel.tsx.html +535 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/LogTimeline.tsx.html +415 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/SortableTaskCard.tsx.html +358 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/StagePills.tsx.html +439 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCard.tsx.html +514 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskCardOverlay.tsx.html +256 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskDetail.tsx.html +622 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/TaskList.tsx.html +253 -0
- package/cloud-runtime/standalone/coverage/lcov-report/components/index.html +281 -0
- package/cloud-runtime/standalone/coverage/lcov-report/favicon.png +0 -0
- package/cloud-runtime/standalone/coverage/lcov-report/hooks/index.html +116 -0
- package/cloud-runtime/standalone/coverage/lcov-report/hooks/useTasks.ts.html +1042 -0
- package/cloud-runtime/standalone/coverage/lcov-report/index.html +341 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-client.ts.html +202 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth-server.ts.html +172 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/auth.ts.html +265 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/db.ts.html +1252 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/index.html +131 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/orchestrator.ts.html +409 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/security.ts.html +1165 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase-server.ts.html +175 -0
- package/cloud-runtime/standalone/coverage/lcov-report/lib/supabase.ts.html +157 -0
- package/cloud-runtime/standalone/coverage/lcov-report/prettify.css +1 -0
- package/cloud-runtime/standalone/coverage/lcov-report/prettify.js +2 -0
- package/cloud-runtime/standalone/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/cloud-runtime/standalone/coverage/lcov-report/sorter.js +210 -0
- package/cloud-runtime/standalone/coverage/lcov.info +2386 -0
- package/cloud-runtime/standalone/docs/LIMITS.md +63 -0
- package/cloud-runtime/standalone/docs/architecture/ADR-001-hybrid-to-full-sqlite.md +345 -0
- package/cloud-runtime/standalone/docs/baseline/baseline-report.json +1009 -0
- package/cloud-runtime/standalone/docs/baseline/critical-queries.md +105 -0
- package/cloud-runtime/standalone/docs/baseline/lock-metrics.json +21 -0
- package/cloud-runtime/standalone/docs/baseline/read-latency.json +146 -0
- package/cloud-runtime/standalone/docs/baseline/restore-time.json +10 -0
- package/cloud-runtime/standalone/docs/baseline/write-metrics.json +803 -0
- package/cloud-runtime/standalone/docs/decisions/sqlite-migration-adr.md +327 -0
- package/cloud-runtime/standalone/docs/error-code-mapping.md +74 -0
- package/cloud-runtime/standalone/docs/migration-plan.md +120 -0
- package/cloud-runtime/standalone/docs/migration-spec.md +345 -0
- package/cloud-runtime/standalone/docs/pg-sqlite-compatibility-matrix.md +554 -0
- package/cloud-runtime/standalone/docs/project-agent-migration-status.md +229 -0
- package/cloud-runtime/standalone/docs/runbook-shadow-read.md +66 -0
- package/cloud-runtime/standalone/docs/runbook.md +155 -0
- package/cloud-runtime/standalone/docs/specs/cli-postgres-removal.md +69 -0
- package/cloud-runtime/standalone/docs/specs/thread-mentions.md +53 -0
- package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-01-prompt-scheduler.md +1907 -0
- package/cloud-runtime/standalone/docs/superpowers/plans/2026-04-02-sqlite-migration.md +1047 -0
- package/cloud-runtime/standalone/docs/transcript.txt +282 -0
- package/cloud-runtime/standalone/docs/ux/GlobalChatFlow.storyboard +23 -0
- package/cloud-runtime/standalone/docs/ux/assistant-chat-cli.md +32 -0
- package/cloud-runtime/standalone/instrumentation.ts +34 -0
- package/cloud-runtime/standalone/mcp/dist/constants.js +66 -0
- package/cloud-runtime/standalone/mcp/dist/db.js +220 -0
- package/cloud-runtime/standalone/mcp/dist/index.js +7 -0
- package/cloud-runtime/standalone/mcp/dist/security.js +18 -0
- package/cloud-runtime/standalone/mcp/dist/server.js +240 -0
- package/cloud-runtime/standalone/mcp/dist/task-context.js +287 -0
- package/cloud-runtime/standalone/mcp/dist/test-client.js +82 -0
- package/cloud-runtime/standalone/mcp/dist/tools/audit.js +69 -0
- package/cloud-runtime/standalone/mcp/dist/tools/learnings.js +88 -0
- package/cloud-runtime/standalone/mcp/dist/tools/queue.js +312 -0
- package/cloud-runtime/standalone/mcp/dist/tools/tasks.js +244 -0
- package/cloud-runtime/standalone/mcp/dist/types.js +74 -0
- package/cloud-runtime/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
- package/cloud-runtime/standalone/node_modules/@img/{sharp-linux-x64 โ sharp-darwin-arm64}/package.json +7 -13
- package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 โ sharp-libvips-darwin-arm64}/README.md +2 -2
- package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linuxmusl-x64 โ sharp-libvips-darwin-arm64}/lib/glib-2.0/include/glibconfig.h +8 -9
- package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 โ sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib} +0 -0
- package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 โ sharp-libvips-darwin-arm64}/package.json +5 -11
- package/cloud-runtime/standalone/notes/comments-context-demo.md +141 -0
- package/cloud-runtime/standalone/notes/comments-context-plan.md +119 -0
- package/cloud-runtime/standalone/notes/context-audit.md +21 -0
- package/cloud-runtime/standalone/notes/project-layer-plan.md +30 -0
- package/cloud-runtime/standalone/notes/project-layer.md +123 -0
- package/cloud-runtime/standalone/notes/temporal-migration-design.md +199 -0
- package/cloud-runtime/standalone/playwright-report/data/00d55996f37c1506b90144c85493dd85032c13e5.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/0b9d409e57237ae111d7ba258d3dfe64dc368456.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/b33d5e80a15bd1deda4415b9d318ef73f581c950.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/b55684161aa440d0614595e13c91338f0420abbb.md +131 -0
- package/cloud-runtime/standalone/playwright-report/data/b9913957ae07e7565c38ddd71215be79b1ceb017.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/c3538be8ebbebc9fe4a7df8f12f04483af4a0d91.png +0 -0
- package/cloud-runtime/standalone/playwright-report/data/fe638f64ff5e36f1c30325564565662d3f57da87.md +180 -0
- package/cloud-runtime/standalone/playwright-report/index.html +85 -0
- package/cloud-runtime/standalone/server.js +1 -1
- package/cloud-runtime/standalone/test-results/auth-Authentication-Flow-S-aff25-sion-across-page-navigation-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/comments-Task-comments-add-4dc59-nd-persists-it-for-the-task-chromium/error-context.md +131 -0
- package/cloud-runtime/standalone/test-results/comments-Task-comments-add-4dc59-nd-persists-it-for-the-task-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage--4082a-er-planning-after-ideation--chromium/error-context.md +180 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage--4082a-er-planning-after-ideation--chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage-Columns-displays-all-9-SDLC-stages-chromium/error-context.md +180 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Stage-Columns-displays-all-9-SDLC-stages-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-D-b6d98-ys-tasks-in-correct-columns-chromium/error-context.md +180 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-D-b6d98-ys-tasks-in-correct-columns-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Kanban-Board-Task-Display-shows-task-count-per-column-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/test-results/kanban-Task-Lifecycle-can-advance-task-through-all-stages-chromium/test-failed-1.png +0 -0
- package/cloud-runtime/standalone/tsconfig.json +1 -2
- package/cloud-runtime/standalone/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4bce7db7._.js +0 -101
- package/cloud-runtime/standalone/.next/server/chunks/_17e53c87._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/lib_ea45fe73._.js +0 -94
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -221
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
- package/cloud-runtime/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
- package/cloud-runtime/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/cloud-runtime/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/cloud-runtime/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
- /package/cloud-runtime/standalone/.next/static/{V5ruh627UpcC-LTWDgYk8 โ tIFXRWCxPD896ykJ6O--N}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{V5ruh627UpcC-LTWDgYk8 โ tIFXRWCxPD896ykJ6O--N}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{V5ruh627UpcC-LTWDgYk8 โ tIFXRWCxPD896ykJ6O--N}/_ssgManifest.js +0 -0
- /package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 โ sharp-libvips-darwin-arm64}/lib/index.js +0 -0
- /package/cloud-runtime/standalone/node_modules/@img/{sharp-libvips-linux-x64 โ sharp-libvips-darwin-arm64}/versions.json +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createHmac } from "crypto";
|
|
2
|
+
export function signTask(task, secret) {
|
|
3
|
+
const payload = JSON.stringify({
|
|
4
|
+
id: task.id,
|
|
5
|
+
user_id: task.user_id,
|
|
6
|
+
content: task.content,
|
|
7
|
+
stage: task.stage || "ideation",
|
|
8
|
+
engine: task.engine || "claude",
|
|
9
|
+
provider: task.provider || null,
|
|
10
|
+
model: task.model || null,
|
|
11
|
+
swarm: task.swarm || false,
|
|
12
|
+
swarm_models: task.swarm_models || null,
|
|
13
|
+
comments_digest: task.comments_digest ?? null,
|
|
14
|
+
created_at: task.created_at,
|
|
15
|
+
});
|
|
16
|
+
return createHmac("sha256", secret).update(payload).digest("hex");
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=security.js.map
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
2
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
|
+
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
4
|
+
// Import tool handlers and schemas
|
|
5
|
+
import { tasksListSchema, tasksList, tasksGetSchema, tasksGet, tasksCreateSchema, tasksCreate, tasksUpdateSchema, tasksUpdate, tasksLogSchema, tasksLog, } from "./tools/tasks.js";
|
|
6
|
+
import { queuePullSchema, queuePull, queueCompleteSchema, queueComplete, queueFailSchema, queueFail, } from "./tools/queue.js";
|
|
7
|
+
import { learningsAddSchema, learningsAdd, learningsListSchema, learningsList, learningsSearchSchema, learningsSearch, } from "./tools/learnings.js";
|
|
8
|
+
import { auditLogSchema, auditLog, auditListSchema, auditList, } from "./tools/audit.js";
|
|
9
|
+
// Convert Zod schema to JSON Schema (simplified)
|
|
10
|
+
function zodToJsonSchema(zodSchema) {
|
|
11
|
+
// Get the shape from the Zod schema
|
|
12
|
+
let shape;
|
|
13
|
+
const def = zodSchema._def;
|
|
14
|
+
if (def.typeName === "ZodObject") {
|
|
15
|
+
shape = typeof def.shape === "function" ? def.shape() : def.shape;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return { type: "object", properties: {} };
|
|
19
|
+
}
|
|
20
|
+
if (!shape)
|
|
21
|
+
return { type: "object", properties: {} };
|
|
22
|
+
const properties = {};
|
|
23
|
+
const required = [];
|
|
24
|
+
for (const [key, value] of Object.entries(shape)) {
|
|
25
|
+
let def = value._def;
|
|
26
|
+
let prop = {};
|
|
27
|
+
// Unwrap ZodOptional and ZodDefault
|
|
28
|
+
let isOptional = false;
|
|
29
|
+
while (def) {
|
|
30
|
+
if (def.typeName === "ZodOptional") {
|
|
31
|
+
isOptional = true;
|
|
32
|
+
def = def.innerType?._def;
|
|
33
|
+
}
|
|
34
|
+
else if (def.typeName === "ZodDefault") {
|
|
35
|
+
isOptional = true;
|
|
36
|
+
prop.default = typeof def.defaultValue === "function"
|
|
37
|
+
? def.defaultValue()
|
|
38
|
+
: def.defaultValue;
|
|
39
|
+
def = def.innerType?._def;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (!def) {
|
|
46
|
+
properties[key] = { type: "string" };
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
// Get description from the original or inner def
|
|
50
|
+
const origDef = value._def;
|
|
51
|
+
prop.description = def.description || origDef.description;
|
|
52
|
+
// Determine type
|
|
53
|
+
switch (def.typeName) {
|
|
54
|
+
case "ZodString":
|
|
55
|
+
prop.type = "string";
|
|
56
|
+
break;
|
|
57
|
+
case "ZodNumber":
|
|
58
|
+
prop.type = "number";
|
|
59
|
+
break;
|
|
60
|
+
case "ZodBoolean":
|
|
61
|
+
prop.type = "boolean";
|
|
62
|
+
break;
|
|
63
|
+
case "ZodEnum":
|
|
64
|
+
prop.type = "string";
|
|
65
|
+
prop.enum = def.values;
|
|
66
|
+
break;
|
|
67
|
+
case "ZodRecord":
|
|
68
|
+
prop.type = "object";
|
|
69
|
+
break;
|
|
70
|
+
case "ZodArray":
|
|
71
|
+
prop.type = "array";
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
prop.type = "string";
|
|
75
|
+
}
|
|
76
|
+
properties[key] = prop;
|
|
77
|
+
// Track required fields
|
|
78
|
+
if (!isOptional) {
|
|
79
|
+
required.push(key);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
type: "object",
|
|
84
|
+
properties,
|
|
85
|
+
required: required.length > 0 ? required : undefined,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
// Tool definitions
|
|
89
|
+
const tools = [
|
|
90
|
+
// Tasks
|
|
91
|
+
{
|
|
92
|
+
name: "tasks/list",
|
|
93
|
+
description: "List tasks with optional filters (status, stage, project, user)",
|
|
94
|
+
inputSchema: zodToJsonSchema(tasksListSchema),
|
|
95
|
+
handler: tasksList,
|
|
96
|
+
schema: tasksListSchema,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "tasks/get",
|
|
100
|
+
description: "Get a task by ID with full context and optionally its logs",
|
|
101
|
+
inputSchema: zodToJsonSchema(tasksGetSchema),
|
|
102
|
+
handler: tasksGet,
|
|
103
|
+
schema: tasksGetSchema,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "tasks/create",
|
|
107
|
+
description: "Create a new task with title, description, project, and priority",
|
|
108
|
+
inputSchema: zodToJsonSchema(tasksCreateSchema),
|
|
109
|
+
handler: tasksCreate,
|
|
110
|
+
schema: tasksCreateSchema,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "tasks/update",
|
|
114
|
+
description: "Update task fields (status, stage, priority, project)",
|
|
115
|
+
inputSchema: zodToJsonSchema(tasksUpdateSchema),
|
|
116
|
+
handler: tasksUpdate,
|
|
117
|
+
schema: tasksUpdateSchema,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "tasks/log",
|
|
121
|
+
description: "Append a log entry to a task",
|
|
122
|
+
inputSchema: zodToJsonSchema(tasksLogSchema),
|
|
123
|
+
handler: tasksLog,
|
|
124
|
+
schema: tasksLogSchema,
|
|
125
|
+
},
|
|
126
|
+
// Queue
|
|
127
|
+
{
|
|
128
|
+
name: "queue/pull",
|
|
129
|
+
description: "Get the next available task from the queue for a user. Marks it as in_progress.",
|
|
130
|
+
inputSchema: zodToJsonSchema(queuePullSchema),
|
|
131
|
+
handler: queuePull,
|
|
132
|
+
schema: queuePullSchema,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "queue/complete",
|
|
136
|
+
description: "Mark current task stage as complete and advance to next stage",
|
|
137
|
+
inputSchema: zodToJsonSchema(queueCompleteSchema),
|
|
138
|
+
handler: queueComplete,
|
|
139
|
+
schema: queueCompleteSchema,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "queue/fail",
|
|
143
|
+
description: "Mark a task as failed with an error message",
|
|
144
|
+
inputSchema: zodToJsonSchema(queueFailSchema),
|
|
145
|
+
handler: queueFail,
|
|
146
|
+
schema: queueFailSchema,
|
|
147
|
+
},
|
|
148
|
+
// Learnings
|
|
149
|
+
{
|
|
150
|
+
name: "learnings/add",
|
|
151
|
+
description: "Record a learning (task-level, project-level, or global)",
|
|
152
|
+
inputSchema: zodToJsonSchema(learningsAddSchema),
|
|
153
|
+
handler: learningsAdd,
|
|
154
|
+
schema: learningsAddSchema,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "learnings/list",
|
|
158
|
+
description: "List learnings with optional scope and user filters",
|
|
159
|
+
inputSchema: zodToJsonSchema(learningsListSchema),
|
|
160
|
+
handler: learningsList,
|
|
161
|
+
schema: learningsListSchema,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "learnings/search",
|
|
165
|
+
description: "Search learnings by text query",
|
|
166
|
+
inputSchema: zodToJsonSchema(learningsSearchSchema),
|
|
167
|
+
handler: learningsSearch,
|
|
168
|
+
schema: learningsSearchSchema,
|
|
169
|
+
},
|
|
170
|
+
// Audit
|
|
171
|
+
{
|
|
172
|
+
name: "audit/log",
|
|
173
|
+
description: "Record an audit event for a task action",
|
|
174
|
+
inputSchema: zodToJsonSchema(auditLogSchema),
|
|
175
|
+
handler: auditLog,
|
|
176
|
+
schema: auditLogSchema,
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "audit/list",
|
|
180
|
+
description: "List audit events with filters",
|
|
181
|
+
inputSchema: zodToJsonSchema(auditListSchema),
|
|
182
|
+
handler: auditList,
|
|
183
|
+
schema: auditListSchema,
|
|
184
|
+
},
|
|
185
|
+
];
|
|
186
|
+
export async function createServer() {
|
|
187
|
+
const server = new Server({
|
|
188
|
+
name: "agx-mcp-server",
|
|
189
|
+
version: "1.0.0",
|
|
190
|
+
}, {
|
|
191
|
+
capabilities: {
|
|
192
|
+
tools: {},
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
// List available tools
|
|
196
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
197
|
+
return {
|
|
198
|
+
tools: tools.map(t => ({
|
|
199
|
+
name: t.name,
|
|
200
|
+
description: t.description,
|
|
201
|
+
inputSchema: t.inputSchema,
|
|
202
|
+
})),
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
// Handle tool calls
|
|
206
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
207
|
+
const { name, arguments: args } = request.params;
|
|
208
|
+
const tool = tools.find(t => t.name === name);
|
|
209
|
+
if (!tool) {
|
|
210
|
+
return {
|
|
211
|
+
content: [{ type: "text", text: `Unknown tool: ${name}` }],
|
|
212
|
+
isError: true,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
try {
|
|
216
|
+
// Validate input
|
|
217
|
+
const validated = tool.schema.parse(args || {});
|
|
218
|
+
// Execute handler
|
|
219
|
+
const result = await tool.handler(validated);
|
|
220
|
+
return {
|
|
221
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
catch (error) {
|
|
225
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
226
|
+
return {
|
|
227
|
+
content: [{ type: "text", text: `Error: ${message}` }],
|
|
228
|
+
isError: true,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
return server;
|
|
233
|
+
}
|
|
234
|
+
export async function runServer() {
|
|
235
|
+
const server = await createServer();
|
|
236
|
+
const transport = new StdioServerTransport();
|
|
237
|
+
await server.connect(transport);
|
|
238
|
+
console.error("AGX MCP Server running on stdio");
|
|
239
|
+
}
|
|
240
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { createHash } from "crypto";
|
|
2
|
+
import { getSupabase, fetchStageConfig } from "./db.js";
|
|
3
|
+
import { parseFrontmatter, resolveTaskConfig, } from "./types.js";
|
|
4
|
+
export async function getTaskComments(taskId) {
|
|
5
|
+
const supabase = getSupabase();
|
|
6
|
+
const { data, error } = await supabase
|
|
7
|
+
.from("task_comments")
|
|
8
|
+
.select("*")
|
|
9
|
+
.eq("task_id", taskId)
|
|
10
|
+
.is("deleted_at", null)
|
|
11
|
+
.order("created_at", { ascending: true })
|
|
12
|
+
.order("id", { ascending: true });
|
|
13
|
+
if (error) {
|
|
14
|
+
const message = typeof error?.message === "string"
|
|
15
|
+
? error.message
|
|
16
|
+
: "";
|
|
17
|
+
const code = error.code;
|
|
18
|
+
const isMissingRelation = code === "42P01" ||
|
|
19
|
+
code === "PGRST205" ||
|
|
20
|
+
message.includes('relation "task_comments" does not exist') ||
|
|
21
|
+
message.includes("Could not find the table 'public.task_comments'");
|
|
22
|
+
if (isMissingRelation) {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
return data || [];
|
|
28
|
+
}
|
|
29
|
+
export async function getTaskLearnings(task) {
|
|
30
|
+
const supabase = getSupabase();
|
|
31
|
+
const userId = task.user_id;
|
|
32
|
+
const taskQuery = supabase
|
|
33
|
+
.from("learnings")
|
|
34
|
+
.select("*")
|
|
35
|
+
.eq("scope", "task")
|
|
36
|
+
.eq("scope_id", task.id);
|
|
37
|
+
if (userId)
|
|
38
|
+
taskQuery.eq("user_id", userId);
|
|
39
|
+
const projectScopeIds = new Set();
|
|
40
|
+
if (task.project_id)
|
|
41
|
+
projectScopeIds.add(task.project_id);
|
|
42
|
+
if (task.project)
|
|
43
|
+
projectScopeIds.add(task.project);
|
|
44
|
+
if (!task.project_id && task.project) {
|
|
45
|
+
const project = await fetchProjectBySlugWithRepos(task.project, userId);
|
|
46
|
+
if (project?.id)
|
|
47
|
+
projectScopeIds.add(project.id);
|
|
48
|
+
}
|
|
49
|
+
const projectScopeIdList = Array.from(projectScopeIds);
|
|
50
|
+
const projectQuery = projectScopeIdList.length
|
|
51
|
+
? supabase
|
|
52
|
+
.from("learnings")
|
|
53
|
+
.select("*")
|
|
54
|
+
.eq("scope", "project")
|
|
55
|
+
.in("scope_id", projectScopeIdList)
|
|
56
|
+
: null;
|
|
57
|
+
if (projectQuery && userId) {
|
|
58
|
+
projectQuery.eq("user_id", userId);
|
|
59
|
+
}
|
|
60
|
+
const globalQuery = supabase
|
|
61
|
+
.from("learnings")
|
|
62
|
+
.select("*")
|
|
63
|
+
.eq("scope", "global");
|
|
64
|
+
if (userId)
|
|
65
|
+
globalQuery.eq("user_id", userId);
|
|
66
|
+
const [{ data: taskLearnings, error: taskError }, { data: globalLearnings, error: globalError }, projectResult] = await Promise.all([
|
|
67
|
+
taskQuery,
|
|
68
|
+
globalQuery,
|
|
69
|
+
projectQuery ?? Promise.resolve({ data: [], error: null }),
|
|
70
|
+
]);
|
|
71
|
+
if (taskError)
|
|
72
|
+
throw taskError;
|
|
73
|
+
if (globalError)
|
|
74
|
+
throw globalError;
|
|
75
|
+
if (projectResult?.error)
|
|
76
|
+
throw projectResult.error;
|
|
77
|
+
return {
|
|
78
|
+
task: taskLearnings || [],
|
|
79
|
+
project: projectResult?.data || [],
|
|
80
|
+
global: globalLearnings || [],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function formatList(items, emptyLabel) {
|
|
84
|
+
if (!items.length)
|
|
85
|
+
return emptyLabel;
|
|
86
|
+
return items.map((item) => `- ${item}`).join("\n");
|
|
87
|
+
}
|
|
88
|
+
function isMissingRelationError(error, relation) {
|
|
89
|
+
const message = typeof error?.message === "string"
|
|
90
|
+
? error.message
|
|
91
|
+
: "";
|
|
92
|
+
const code = error.code;
|
|
93
|
+
return (code === "42P01" ||
|
|
94
|
+
code === "PGRST205" ||
|
|
95
|
+
message.includes(`relation "${relation}" does not exist`) ||
|
|
96
|
+
message.includes(`Could not find the table 'public.${relation}'`));
|
|
97
|
+
}
|
|
98
|
+
function formatProjectMetadata(project) {
|
|
99
|
+
const lines = [
|
|
100
|
+
`Name: ${project.name}`,
|
|
101
|
+
`Slug: ${project.slug}`,
|
|
102
|
+
`Description: ${project.description?.trim() || "None"}`,
|
|
103
|
+
];
|
|
104
|
+
if (project.ci_cd_info) {
|
|
105
|
+
lines.push(`CI/CD: ${project.ci_cd_info}`);
|
|
106
|
+
}
|
|
107
|
+
const metadata = project.metadata;
|
|
108
|
+
if (metadata && typeof metadata === "object" && !Array.isArray(metadata)) {
|
|
109
|
+
const entries = Object.entries(metadata).filter(([key]) => key);
|
|
110
|
+
if (entries.length) {
|
|
111
|
+
lines.push("Metadata:");
|
|
112
|
+
entries.forEach(([key, value]) => {
|
|
113
|
+
lines.push(` ${key}: ${JSON.stringify(value)}`);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return lines.join("\n");
|
|
118
|
+
}
|
|
119
|
+
function formatRepoLines(repos) {
|
|
120
|
+
if (!repos.length)
|
|
121
|
+
return "(none)";
|
|
122
|
+
return repos
|
|
123
|
+
.map((repo) => {
|
|
124
|
+
const parts = [`${repo.name}`];
|
|
125
|
+
if (repo.path)
|
|
126
|
+
parts.push(`path: ${repo.path}`);
|
|
127
|
+
if (repo.git_url)
|
|
128
|
+
parts.push(`git_url: ${repo.git_url}`);
|
|
129
|
+
if (repo.notes)
|
|
130
|
+
parts.push(`notes: ${repo.notes}`);
|
|
131
|
+
return `- ${parts.join(" | ")}`;
|
|
132
|
+
})
|
|
133
|
+
.join("\n");
|
|
134
|
+
}
|
|
135
|
+
async function fetchProjectRepos(projectId) {
|
|
136
|
+
const supabase = getSupabase();
|
|
137
|
+
const { data, error } = await supabase
|
|
138
|
+
.from("project_repos")
|
|
139
|
+
.select("*")
|
|
140
|
+
.eq("project_id", projectId);
|
|
141
|
+
if (error) {
|
|
142
|
+
if (isMissingRelationError(error, "project_repos")) {
|
|
143
|
+
return [];
|
|
144
|
+
}
|
|
145
|
+
throw error;
|
|
146
|
+
}
|
|
147
|
+
return data || [];
|
|
148
|
+
}
|
|
149
|
+
async function fetchProjectByIdWithRepos(projectId, userId) {
|
|
150
|
+
const supabase = getSupabase();
|
|
151
|
+
let query = supabase.from("projects").select("*").eq("id", projectId);
|
|
152
|
+
if (userId)
|
|
153
|
+
query = query.eq("user_id", userId);
|
|
154
|
+
const { data, error } = await query.maybeSingle();
|
|
155
|
+
if (error) {
|
|
156
|
+
if (isMissingRelationError(error, "projects")) {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
throw error;
|
|
160
|
+
}
|
|
161
|
+
if (!data)
|
|
162
|
+
return null;
|
|
163
|
+
const repos = await fetchProjectRepos(data.id);
|
|
164
|
+
return { ...data, repos };
|
|
165
|
+
}
|
|
166
|
+
async function fetchProjectBySlugWithRepos(slug, userId) {
|
|
167
|
+
const supabase = getSupabase();
|
|
168
|
+
let query = supabase.from("projects").select("*").eq("slug", slug);
|
|
169
|
+
if (userId)
|
|
170
|
+
query = query.eq("user_id", userId);
|
|
171
|
+
const { data, error } = await query.maybeSingle();
|
|
172
|
+
if (error) {
|
|
173
|
+
if (isMissingRelationError(error, "projects")) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
throw error;
|
|
177
|
+
}
|
|
178
|
+
if (!data)
|
|
179
|
+
return null;
|
|
180
|
+
const repos = await fetchProjectRepos(data.id);
|
|
181
|
+
return { ...data, repos };
|
|
182
|
+
}
|
|
183
|
+
async function resolveProjectContext(task, projectLearnings) {
|
|
184
|
+
const projectId = task.project_id;
|
|
185
|
+
const projectSlug = !projectId && task.project ? task.project : undefined;
|
|
186
|
+
let projectWithRepos = null;
|
|
187
|
+
if (projectId) {
|
|
188
|
+
projectWithRepos = await fetchProjectByIdWithRepos(projectId, task.user_id);
|
|
189
|
+
}
|
|
190
|
+
if (!projectWithRepos && projectSlug) {
|
|
191
|
+
projectWithRepos = await fetchProjectBySlugWithRepos(projectSlug, task.user_id);
|
|
192
|
+
}
|
|
193
|
+
if (!projectWithRepos) {
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
project: projectWithRepos,
|
|
198
|
+
repos: projectWithRepos.repos ?? [],
|
|
199
|
+
learnings: projectLearnings.map((learning) => learning.content),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
function isPromptRelevantComment(content) {
|
|
203
|
+
const normalized = String(content || "").trim();
|
|
204
|
+
if (!normalized)
|
|
205
|
+
return false;
|
|
206
|
+
if (normalized.startsWith("[execution/"))
|
|
207
|
+
return false;
|
|
208
|
+
if (normalized.startsWith("Execution result from agx"))
|
|
209
|
+
return false;
|
|
210
|
+
return true;
|
|
211
|
+
}
|
|
212
|
+
export function computeCommentsDigest(comments) {
|
|
213
|
+
const normalized = comments.map((comment) => ({
|
|
214
|
+
id: comment.id,
|
|
215
|
+
task_id: comment.task_id,
|
|
216
|
+
author_type: comment.author_type || null,
|
|
217
|
+
author_id: comment.author_id || null,
|
|
218
|
+
content: comment.content || "",
|
|
219
|
+
created_at: comment.created_at || null,
|
|
220
|
+
}));
|
|
221
|
+
const serialized = JSON.stringify(normalized);
|
|
222
|
+
return createHash("sha256").update(serialized).digest("hex");
|
|
223
|
+
}
|
|
224
|
+
export function buildTaskPrompt(args) {
|
|
225
|
+
const { task, comments, learnings, stage_config, project_context } = args;
|
|
226
|
+
const { body } = parseFrontmatter(task.content);
|
|
227
|
+
const description = (task.description ?? body).trim();
|
|
228
|
+
// Resolve configuration (Task > Stage)
|
|
229
|
+
const config = resolveTaskConfig(task, stage_config);
|
|
230
|
+
const metaLines = [
|
|
231
|
+
`Title: ${task.title || "Untitled"}`,
|
|
232
|
+
`Slug: ${task.slug || "unspecified"}`,
|
|
233
|
+
`Stage: ${task.stage || "ideation"}`,
|
|
234
|
+
`Project: ${task.project || "none"}`,
|
|
235
|
+
`Engine: ${task.engine || "unspecified"}`,
|
|
236
|
+
`Provider: ${config.provider}`,
|
|
237
|
+
`Model: ${config.model}`,
|
|
238
|
+
`Swarm: ${config.swarm ? "true" : "false"}`,
|
|
239
|
+
`Swarm Models: ${config.swarm_models.length ? config.swarm_models.map((m) => `${m.provider}:${m.model}`).join(", ") : "none"}`,
|
|
240
|
+
];
|
|
241
|
+
const commentLines = comments
|
|
242
|
+
.filter((comment) => isPromptRelevantComment(comment.content))
|
|
243
|
+
.map((comment) => {
|
|
244
|
+
const when = comment.created_at ? new Date(comment.created_at).toISOString() : "unknown-time";
|
|
245
|
+
const author = comment.author_type === "agent" ? "agent" : "user";
|
|
246
|
+
return `[${when}] (${author}) ${comment.content}`;
|
|
247
|
+
});
|
|
248
|
+
const projectContextSections = project_context?.project
|
|
249
|
+
? [
|
|
250
|
+
`PROJECT CONTEXT\n${formatProjectMetadata(project_context.project)}`,
|
|
251
|
+
`REPOSITORY MAP\n${formatRepoLines(project_context.repos)}`,
|
|
252
|
+
`PROJECT LEARNINGS\n${formatList(project_context.learnings, "(none)")}`,
|
|
253
|
+
]
|
|
254
|
+
: [];
|
|
255
|
+
const sections = [
|
|
256
|
+
stage_config.prompt ? `STAGE PROMPT\n${stage_config.prompt}` : null,
|
|
257
|
+
"EXECUTION RULES\n- Do not use AGX MCP tools or AGX MCP servers for this task.\n- Complete work using local edits, shell commands, and allowed HTTP APIs only.",
|
|
258
|
+
`TASK\n${description || "(empty)"}`,
|
|
259
|
+
`COMMENTS\n${formatList(commentLines, "(none)")}`,
|
|
260
|
+
...projectContextSections,
|
|
261
|
+
`LEARNINGS (task)\n${formatList(learnings.task.map((l) => l.content), "(none)")}`,
|
|
262
|
+
`LEARNINGS (project)\n${formatList(learnings.project.map((l) => l.content), "(none)")}`,
|
|
263
|
+
`LEARNINGS (global)\n${formatList(learnings.global.map((l) => l.content), "(none)")}`,
|
|
264
|
+
].filter((section) => Boolean(section));
|
|
265
|
+
return sections.join("\n\n");
|
|
266
|
+
}
|
|
267
|
+
export async function buildTaskContext(task) {
|
|
268
|
+
const supabase = getSupabase();
|
|
269
|
+
const stageConfigPromise = task.stage ? fetchStageConfig(supabase, task.stage, task.user_id) : Promise.resolve({ prompt: null });
|
|
270
|
+
const [comments, learnings, stage_config] = await Promise.all([
|
|
271
|
+
getTaskComments(task.id),
|
|
272
|
+
getTaskLearnings(task),
|
|
273
|
+
stageConfigPromise,
|
|
274
|
+
]);
|
|
275
|
+
const project_context = await resolveProjectContext(task, learnings.project);
|
|
276
|
+
const config = stage_config || { prompt: null };
|
|
277
|
+
const comments_digest = computeCommentsDigest(comments);
|
|
278
|
+
return {
|
|
279
|
+
comments,
|
|
280
|
+
learnings,
|
|
281
|
+
stage_config: config,
|
|
282
|
+
project_context,
|
|
283
|
+
prompt: buildTaskPrompt({ task, comments, learnings, stage_config: config, project_context }),
|
|
284
|
+
comments_digest,
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
//# sourceMappingURL=task-context.js.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
/**
|
|
3
|
+
* Test client for AGX MCP Server
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* npm run test
|
|
7
|
+
* # or
|
|
8
|
+
* tsx src/test-client.ts
|
|
9
|
+
*/
|
|
10
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
11
|
+
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
12
|
+
import { spawn } from "child_process";
|
|
13
|
+
const TEST_USER_ID = "00000000-0000-0000-0000-000000000001"; // Fake UUID for testing
|
|
14
|
+
async function main() {
|
|
15
|
+
console.log("๐งช AGX MCP Server Test Client\n");
|
|
16
|
+
// Spawn the MCP server
|
|
17
|
+
console.log("Starting MCP server...");
|
|
18
|
+
const serverProcess = spawn("npx", ["tsx", "src/index.ts"], {
|
|
19
|
+
cwd: process.cwd(),
|
|
20
|
+
stdio: ["pipe", "pipe", "inherit"],
|
|
21
|
+
});
|
|
22
|
+
const transport = new StdioClientTransport({
|
|
23
|
+
command: "npx",
|
|
24
|
+
args: ["tsx", "src/index.ts"],
|
|
25
|
+
cwd: process.cwd(),
|
|
26
|
+
});
|
|
27
|
+
const client = new Client({ name: "test-client", version: "1.0.0" }, { capabilities: {} });
|
|
28
|
+
try {
|
|
29
|
+
await client.connect(transport);
|
|
30
|
+
console.log("โ
Connected to MCP server\n");
|
|
31
|
+
// List all tools
|
|
32
|
+
console.log("๐ Available Tools:");
|
|
33
|
+
console.log("โ".repeat(50));
|
|
34
|
+
const tools = await client.listTools();
|
|
35
|
+
for (const tool of tools.tools) {
|
|
36
|
+
console.log(` โข ${tool.name}`);
|
|
37
|
+
console.log(` ${tool.description}\n`);
|
|
38
|
+
}
|
|
39
|
+
// Test tasks/list
|
|
40
|
+
console.log("\n๐ง Testing tasks/list...");
|
|
41
|
+
const listResult = await client.callTool({
|
|
42
|
+
name: "tasks/list",
|
|
43
|
+
arguments: { limit: 5 },
|
|
44
|
+
});
|
|
45
|
+
const listContent = listResult.content;
|
|
46
|
+
console.log("Result:", JSON.stringify(JSON.parse(listContent[0].text), null, 2));
|
|
47
|
+
// Test learnings/list
|
|
48
|
+
console.log("\n๐ง Testing learnings/list...");
|
|
49
|
+
const learningsResult = await client.callTool({
|
|
50
|
+
name: "learnings/list",
|
|
51
|
+
arguments: { scope: "global", limit: 5 },
|
|
52
|
+
});
|
|
53
|
+
const learningsContent = learningsResult.content;
|
|
54
|
+
console.log("Result:", JSON.stringify(JSON.parse(learningsContent[0].text), null, 2));
|
|
55
|
+
// Test creating a task (if you have a real user ID)
|
|
56
|
+
// Uncomment below to test task creation
|
|
57
|
+
/*
|
|
58
|
+
console.log("\n๐ง Testing tasks/create...");
|
|
59
|
+
const createResult = await client.callTool({
|
|
60
|
+
name: "tasks/create",
|
|
61
|
+
arguments: {
|
|
62
|
+
title: "Test task from MCP client",
|
|
63
|
+
description: "This is a test task created via the MCP server",
|
|
64
|
+
project: "mcp-test",
|
|
65
|
+
priority: 3,
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
console.log("Result:", JSON.stringify(JSON.parse((createResult.content[0] as any).text), null, 2));
|
|
69
|
+
*/
|
|
70
|
+
console.log("\nโ
All tests completed!");
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
console.error("โ Test failed:", error);
|
|
74
|
+
process.exit(1);
|
|
75
|
+
}
|
|
76
|
+
finally {
|
|
77
|
+
await client.close();
|
|
78
|
+
serverProcess.kill();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
main();
|
|
82
|
+
//# sourceMappingURL=test-client.js.map
|