@mndrk/agx 2.0.0-next.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -5
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/BUILD_ID +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/app-path-routes-manifest.json +9 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/build-manifest.json +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/prerender-manifest.json +27 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/routes-manifest.json +57 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route.js +7 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route.js.map +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/daemon/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/file-search/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/health/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/history/route.js +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/learnings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/logs/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/memories/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route.js +8 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route.js.map +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notification-outbox/[id]/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route.js +8 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route.js.map +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/[id]/read/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route.js +8 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route.js.map +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route/build-manifest.json +11 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route.js +8 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route.js.map +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route.js.nft.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/notifications/unread-count/route_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/cancel/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/signal/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/orchestrator/tasks/[taskId]/status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/[id]/migrate-v1/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/[id]/migrate-v2/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/queue/complete/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/queue/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/system/db-status/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/comments/[commentId]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/comments/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/costs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/dependencies/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/events/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/metrics/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/pause/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/replan/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/restart/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/resume/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/rollback/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/graph/stop/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/heartbeat/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/history/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/logs/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/logs/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/comments/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/complete/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/fail/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/resume/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/start/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/stop/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/nodes/[nodeId]/verify/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/assign-orphans/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/tasks/stream/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/api/user-settings/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/_full.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/_index.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/board/__PAGE__.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/board.segments/board.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/_full.segment.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/_index.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/execution-graph/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/execution-graph.segments/execution-graph.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/graph/[taskId]/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/graph/[taskId]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/_full.segment.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/_index.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/projects/orphans/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/projects/orphans.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/orphans.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/_full.segment.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/_index.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/projects/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/projects.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/_full.segment.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status/page.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status/page.js.nft.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/_full.segment.rsc +3 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/_head.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/_index.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/_tree.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/status/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/status.segments/status.segment.rsc +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/build-manifest.json +18 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/next-font-manifest.json +11 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/react-loadable-manifest.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page.js +16 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page.js.map +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page.js.nft.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/[threadId]/page_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/build-manifest.json +18 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/next-font-manifest.json +11 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/react-loadable-manifest.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page.js +16 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page.js.map +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page.js.nft.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/w/[workspaceId]/page_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/app-paths-manifest.json +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/build-manifest.json +18 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/next-font-manifest.json +11 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/react-loadable-manifest.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page/server-reference-manifest.json +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page.js +15 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page.js.map +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page.js.nft.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome/page_client-reference-manifest.js +2 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.html +9 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.meta +15 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.rsc +23 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/_full.segment.rsc +23 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/_head.segment.rsc +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/_index.segment.rsc +9 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/_tree.segment.rsc +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/welcome/__PAGE__.segment.rsc +9 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app/welcome.segments/welcome.segment.rsc +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/app-paths-manifest.json +9 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/7e210_Agents_agx-cloud__next-internal_server_app_api_daemon_route_actions_460dc557.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/Projects_Agents_agx-cloud_ef3cf579._.js +8 -8
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/Projects_Agents_agx-cloud_lib_6a5d1c80._.js +11 -11
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/Projects_Agents_agx-cloud_lib_7eefb426._.js +10 -10
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__1f176ebf._.js +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__22d0d2cc._.js +10 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__26bfcde9._.js +7 -7
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__27e9e463._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__299302d8._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__2ed85740._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__33e7bfc0._.js +5 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__8f9b0934._.js +28 -28
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__9b8efd58._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__a7a82510._.js +7 -7
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__bea8711d._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/[root-of-the-server]__ec8bbb77._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/a2576__next-internal_server_app_api_notification-outbox_[id]_route_actions_c429c549.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/a2576__next-internal_server_app_api_notifications_[id]_read_route_actions_615ae13d.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/a2576__next-internal_server_app_api_notifications_unread-count_route_actions_b61a9301.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ad555_agx-cloud__next-internal_server_app_api_notifications_route_actions_06dbcdc4.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ae43b_next_dist_esm_build_templates_app-route_122e31fe.js +28 -24
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/7e210_Agents_agx-cloud__next-internal_server_app_welcome_page_actions_5176f4d4.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_033373a0._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_039c43e5._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_0562c9cd._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_0cf15b7b._.js +8 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_0d91718c._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_1e1c23f7._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_502ede06._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_68972519._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_69570e90._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_6cbdc6fd._.js +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_82783170._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_a0e26bca._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_a2a39dbe._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_aaa774d8._.js +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_afe007c2._.js +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_b2707e4d._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_components_chat-ui_f59beea5._.js +95 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/{Projects_Agents_agx-cloud_e7635878._.js → Projects_Agents_agx-cloud_dc82c7bf._.js} +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_ef6ea3fc._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_ff11dd7c._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/{[root-of-the-server]__9d72d782._.js → [root-of-the-server]__00507cd5._.js} +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__24a978df._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__523e8b0b._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__546c34e3._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__807e5ecc._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__9668fae0._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__97870484._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/{[root-of-the-server]__657b446b._.js → [root-of-the-server]__99fa92e8._.js} +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__a4a5c57b._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__b549e8c2._.js +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/{[root-of-the-server]__5dace3c6._.js → [root-of-the-server]__d78dfcf2._.js} +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__e915acb2._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/a2576__next-internal_server_app_w_[workspaceId]_[threadId]_page_actions_f668795b.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ad555_agx-cloud__next-internal_server_app_w_[workspaceId]_page_actions_8ade5a6c.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_@dnd-kit_core_dist_core_esm_e4fe20d7.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_db3f38e3._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_lucide-react_dist_esm_63b016a6._.js +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_next_dist_2cd20dd7._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_next_dist_832595f2._.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_next_dist_esm_build_templates_app-page_e4003e94.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/functions-config-manifest.json +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/middleware-manifest.json +5 -5
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/next-font-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/next-font-manifest.json +12 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/pages/404.html +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/pages/500.html +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/server-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/server-reference-manifest.json +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/0804e1cf36ac4c40.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/245ea04687930f1c.css +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/2f63efec13a9346a.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/54fbb309ba7c2b4b.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/55f8c843a8037ac8.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/5eda5cd286808293.js +93 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/6bfec2ea0d682ffc.js +18 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/7d2c10033c8a8554.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/{b47938cee3a79764.js → 822bd641355a9397.js} +2 -2
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/{49b2630db3ff37fe.js → 8dad5ee086c3d46d.js} +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/c6ed4939c63ba444.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/e4b656247e95267b.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/ef426b92c6ce58a5.js +1 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/daemon/route.ts +55 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/notification-outbox/[id]/route.ts +42 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/notifications/[id]/read/route.ts +43 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/notifications/route.ts +46 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/notifications/unread-count/route.ts +24 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/participants/route.ts +13 -6
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/api/system/db-status/route.ts +23 -15
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/projects/[slug]/layout.tsx +28 -10
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/w/[workspaceId]/[threadId]/page.tsx +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/w/[workspaceId]/layout.tsx +7 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/w/[workspaceId]/page.tsx +4 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/app/welcome/page.tsx +117 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Layout.tsx +4 -6
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Notifications/NotificationBell.tsx +62 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Notifications/NotificationItem.tsx +96 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Notifications/NotificationsPanel.tsx +127 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/Notifications/index.ts +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/WorkspaceNav.tsx +67 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/ChatContainer.tsx +181 -122
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/ChatPreview.tsx +85 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/MessageBubble.tsx +3 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/MessageList.tsx +3 -16
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/ParticipantBar.tsx +41 -86
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/chat-ui/ThreadView.tsx +4 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/thread/ThreadItem.tsx +9 -9
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/thread/ThreadList.tsx +15 -15
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/components/thread/ThreadSidebar.tsx +34 -34
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/db/sqlite/001_agx_board_schema.sql +52 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/hooks/useNotifications.ts +115 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/hooks/useThreadState.ts +85 -85
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/cli-runner.ts +6 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/db/cursors.js +75 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/db/notifications.js +70 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/db/preferences.js +110 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/demo-threads.ts +76 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/jobs/pruneNotifications.js +87 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/participants-store.ts +7 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/projectors/notificationProjector.js +351 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/storage/index.ts +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/storage/local-thread-adapter.ts +27 -27
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/storage/thread-adapter.ts +31 -31
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/stream-multiplexer.ts +45 -9
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/lib/types.ts +7 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/migrations/sqlite_schema.sql +45 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/script.txt +111 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/services/threadService.ts +32 -32
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/state/threadSelection.test.ts +30 -30
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/state/threadSelection.ts +21 -21
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/state/uiSettings.ts +14 -11
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/_helpers.js +68 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/crash.test.js +139 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/duplicate.test.js +111 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/flood.test.js +162 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tests/projector/replay.test.js +107 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/tsconfig.tsbuildinfo +1 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/types/userPreferences.ts +12 -8
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/worker/index.js +5 -1
- package/lib/cli/daemon.js +7 -1
- package/lib/cli/onboarding.js +71 -1
- package/lib/cli/providers.js +5 -5
- package/lib/cli/runCli.js +12 -1
- package/lib/commands/chat.js +8 -2
- package/lib/executor.js +56 -3
- package/lib/proc/commandExists.js +14 -8
- package/package.json +1 -1
- package/scripts/postinstall.js +19 -7
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_215731e9._.js +0 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_2b2a91e2._.js +0 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_a7533794._.js +0 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/Projects_Agents_agx-cloud_e1b68242._.js +0 -8
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__0d6259d5._.js +0 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__13df20fe._.js +0 -95
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__c76acf29._.js +0 -4
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/[root-of-the-server]__e5a1e0b5._.js +0 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_lucide-react_dist_esm_6c755856._.js +0 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/server/chunks/ssr/ae43b_lucide-react_dist_esm_icons_search_04b9412a.js +0 -3
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/0d58db99a936501d.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/20d98b7f52e93d14.js +0 -18
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/216d8e2f28fa9ab1.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/5d94ba021f22122d.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/5e2849404c532f70.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/81d22c5173d36098.js +0 -93
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/9b2c429432840844.css +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/9fa263ad20d27969.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/chunks/dc534541f2bd6342.js +0 -1
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-board.db +0 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-board.db-shm +0 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-board.db-wal +0 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-queue.db +0 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-queue.db-shm +0 -0
- package/cloud-runtime/standalone/Projects/Agents/agx-cloud/agx-queue.db-wal +0 -0
- /package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/{m5R8F5c1zxb5EWbYNiR5n → UBZZwc9vLlz1xCm5PYCTc}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/{m5R8F5c1zxb5EWbYNiR5n → UBZZwc9vLlz1xCm5PYCTc}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/Projects/Agents/agx-cloud/.next/static/{m5R8F5c1zxb5EWbYNiR5n → UBZZwc9vLlz1xCm5PYCTc}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
+
|
|
5
|
+
export interface Notification {
|
|
6
|
+
id: string;
|
|
7
|
+
user_id: string;
|
|
8
|
+
task_id: string | null;
|
|
9
|
+
event_id: string | null;
|
|
10
|
+
type: string;
|
|
11
|
+
tier: string | null;
|
|
12
|
+
title: string;
|
|
13
|
+
body: string | null;
|
|
14
|
+
created_at: string;
|
|
15
|
+
read_at: string | null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface UseNotificationsOptions {
|
|
19
|
+
pollInterval?: number;
|
|
20
|
+
limit?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function useNotifications({ pollInterval = 15000, limit = 20 }: UseNotificationsOptions = {}) {
|
|
24
|
+
const [notifications, setNotifications] = useState<Notification[]>([]);
|
|
25
|
+
const [unreadCount, setUnreadCount] = useState(0);
|
|
26
|
+
const [loading, setLoading] = useState(true);
|
|
27
|
+
const [error, setError] = useState<string | null>(null);
|
|
28
|
+
const [nextCursor, setNextCursor] = useState<string | null>(null);
|
|
29
|
+
const timerRef = useRef<ReturnType<typeof setInterval> | null>(null);
|
|
30
|
+
|
|
31
|
+
const fetchUnreadCount = useCallback(async () => {
|
|
32
|
+
try {
|
|
33
|
+
const res = await fetch("/api/notifications/unread-count");
|
|
34
|
+
if (!res.ok) return;
|
|
35
|
+
const data = await res.json();
|
|
36
|
+
setUnreadCount(data.count ?? 0);
|
|
37
|
+
} catch {
|
|
38
|
+
// swallow — badge will be stale
|
|
39
|
+
}
|
|
40
|
+
}, []);
|
|
41
|
+
|
|
42
|
+
const fetchNotifications = useCallback(async (replace = true) => {
|
|
43
|
+
try {
|
|
44
|
+
if (replace) setLoading(true);
|
|
45
|
+
const url = replace
|
|
46
|
+
? `/api/notifications?limit=${limit}`
|
|
47
|
+
: `/api/notifications?limit=${limit}&cursor=${nextCursor}`;
|
|
48
|
+
const res = await fetch(url);
|
|
49
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
50
|
+
const data = await res.json();
|
|
51
|
+
const items: Notification[] = data.notifications ?? [];
|
|
52
|
+
if (replace) {
|
|
53
|
+
setNotifications(items);
|
|
54
|
+
} else {
|
|
55
|
+
setNotifications((prev) => [...prev, ...items]);
|
|
56
|
+
}
|
|
57
|
+
setNextCursor(data.next_cursor ?? null);
|
|
58
|
+
setError(null);
|
|
59
|
+
} catch (err) {
|
|
60
|
+
setError(err instanceof Error ? err.message : "Failed to load notifications");
|
|
61
|
+
} finally {
|
|
62
|
+
if (replace) setLoading(false);
|
|
63
|
+
}
|
|
64
|
+
}, [limit, nextCursor]);
|
|
65
|
+
|
|
66
|
+
const refresh = useCallback(async () => {
|
|
67
|
+
await Promise.all([fetchNotifications(true), fetchUnreadCount()]);
|
|
68
|
+
}, [fetchNotifications, fetchUnreadCount]);
|
|
69
|
+
|
|
70
|
+
const loadMore = useCallback(async () => {
|
|
71
|
+
if (!nextCursor) return;
|
|
72
|
+
await fetchNotifications(false);
|
|
73
|
+
}, [nextCursor, fetchNotifications]);
|
|
74
|
+
|
|
75
|
+
const markAsRead = useCallback(async (id: string) => {
|
|
76
|
+
// Optimistic update
|
|
77
|
+
setNotifications((prev) =>
|
|
78
|
+
prev.map((n) => (n.id === id ? { ...n, read_at: new Date().toISOString() } : n))
|
|
79
|
+
);
|
|
80
|
+
setUnreadCount((c) => Math.max(0, c - 1));
|
|
81
|
+
|
|
82
|
+
try {
|
|
83
|
+
const res = await fetch(`/api/notifications/${id}/read`, { method: "PATCH" });
|
|
84
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
85
|
+
} catch {
|
|
86
|
+
// Roll back on failure
|
|
87
|
+
await refresh();
|
|
88
|
+
}
|
|
89
|
+
}, [refresh]);
|
|
90
|
+
|
|
91
|
+
// Initial fetch + polling
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
void refresh();
|
|
94
|
+
|
|
95
|
+
timerRef.current = setInterval(() => {
|
|
96
|
+
void refresh();
|
|
97
|
+
}, pollInterval);
|
|
98
|
+
|
|
99
|
+
return () => {
|
|
100
|
+
if (timerRef.current) clearInterval(timerRef.current);
|
|
101
|
+
};
|
|
102
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
103
|
+
}, [pollInterval]);
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
notifications,
|
|
107
|
+
unreadCount,
|
|
108
|
+
loading,
|
|
109
|
+
error,
|
|
110
|
+
hasMore: nextCursor !== null,
|
|
111
|
+
refresh,
|
|
112
|
+
loadMore,
|
|
113
|
+
markAsRead,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
2
|
+
import { workspaceService } from "@/services/threadService";
|
|
3
|
+
import type { SaveWorkspaceInput, Workspace } from "@/lib/storage";
|
|
4
4
|
import type { GroupMessage } from "@/lib/types";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
clearLastWorkspaceId,
|
|
7
|
+
loadLastWorkspaceId,
|
|
8
|
+
persistLastWorkspaceId,
|
|
9
|
+
resolveInitialWorkspaceSelection,
|
|
10
10
|
} from "@/state/threadSelection";
|
|
11
11
|
|
|
12
|
-
const
|
|
13
|
-
[...
|
|
12
|
+
const sortAlphabetically = (workspaces: Workspace[]) =>
|
|
13
|
+
[...workspaces].sort((a, b) => (a.title || "").localeCompare(b.title || ""));
|
|
14
14
|
|
|
15
|
-
export function
|
|
15
|
+
export function useWorkspaceState() {
|
|
16
16
|
const isMounted = useRef(true);
|
|
17
|
-
const [
|
|
18
|
-
const [
|
|
17
|
+
const [workspaces, setWorkspaces] = useState<Workspace[]>([]);
|
|
18
|
+
const [activeWorkspaceId, setActiveWorkspaceId] = useState<string | null>(null);
|
|
19
19
|
const [isLoading, setIsLoading] = useState(true);
|
|
20
|
-
const [
|
|
20
|
+
const [isRestoringActiveWorkspace, setIsRestoringActiveWorkspace] = useState(true);
|
|
21
21
|
const [isCreating, setIsCreating] = useState(false);
|
|
22
|
-
const [
|
|
23
|
-
const [
|
|
24
|
-
const
|
|
22
|
+
const [deletingWorkspaceId, setDeletingWorkspaceId] = useState<string | null>(null);
|
|
23
|
+
const [renamingWorkspaceId, setRenamingWorkspaceId] = useState<string | null>(null);
|
|
24
|
+
const hasHydratedActiveWorkspaceRef = useRef(false);
|
|
25
25
|
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
const selectWorkspace = useCallback((workspaceId: string) => {
|
|
27
|
+
setActiveWorkspaceId(workspaceId);
|
|
28
28
|
}, []);
|
|
29
29
|
|
|
30
30
|
useEffect(() => {
|
|
@@ -39,31 +39,31 @@ export function useThreadState() {
|
|
|
39
39
|
|
|
40
40
|
(async () => {
|
|
41
41
|
try {
|
|
42
|
-
const fetched = await
|
|
42
|
+
const fetched = await workspaceService.listWorkspaces();
|
|
43
43
|
if (cancelled || !isMounted.current) return;
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
const {
|
|
47
|
-
|
|
44
|
+
setWorkspaces(sortAlphabetically(fetched));
|
|
45
|
+
const savedWorkspaceId = loadLastWorkspaceId();
|
|
46
|
+
const { workspaceId: initialWorkspaceId, shouldClearSavedId, restoredFromStorage } =
|
|
47
|
+
resolveInitialWorkspaceSelection(fetched, savedWorkspaceId);
|
|
48
48
|
if (shouldClearSavedId) {
|
|
49
|
-
|
|
49
|
+
clearLastWorkspaceId();
|
|
50
50
|
}
|
|
51
|
-
if (!
|
|
52
|
-
|
|
51
|
+
if (!hasHydratedActiveWorkspaceRef.current) {
|
|
52
|
+
hasHydratedActiveWorkspaceRef.current = true;
|
|
53
53
|
}
|
|
54
|
-
if (restoredFromStorage &&
|
|
55
|
-
|
|
56
|
-
} else if (
|
|
57
|
-
|
|
54
|
+
if (restoredFromStorage && initialWorkspaceId) {
|
|
55
|
+
selectWorkspace(initialWorkspaceId);
|
|
56
|
+
} else if (initialWorkspaceId) {
|
|
57
|
+
setActiveWorkspaceId((prev) => prev ?? initialWorkspaceId);
|
|
58
58
|
} else {
|
|
59
|
-
|
|
59
|
+
setActiveWorkspaceId(null);
|
|
60
60
|
}
|
|
61
61
|
} catch (error) {
|
|
62
|
-
console.error("Failed to load
|
|
62
|
+
console.error("Failed to load workspaces", error);
|
|
63
63
|
} finally {
|
|
64
64
|
if (isMounted.current) {
|
|
65
65
|
setIsLoading(false);
|
|
66
|
-
|
|
66
|
+
setIsRestoringActiveWorkspace(false);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
})();
|
|
@@ -71,31 +71,31 @@ export function useThreadState() {
|
|
|
71
71
|
return () => {
|
|
72
72
|
cancelled = true;
|
|
73
73
|
};
|
|
74
|
-
}, [
|
|
74
|
+
}, [selectWorkspace]);
|
|
75
75
|
|
|
76
76
|
useEffect(() => {
|
|
77
|
-
if (!
|
|
77
|
+
if (!hasHydratedActiveWorkspaceRef.current) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
if (
|
|
82
|
-
|
|
81
|
+
if (activeWorkspaceId) {
|
|
82
|
+
persistLastWorkspaceId(activeWorkspaceId);
|
|
83
83
|
} else {
|
|
84
|
-
|
|
84
|
+
clearLastWorkspaceId();
|
|
85
85
|
}
|
|
86
|
-
}, [
|
|
86
|
+
}, [activeWorkspaceId]);
|
|
87
87
|
|
|
88
|
-
const
|
|
89
|
-
async (input?: Partial<Pick<
|
|
88
|
+
const createWorkspace = useCallback(
|
|
89
|
+
async (input?: Partial<Pick<SaveWorkspaceInput, "id" | "title" | "messages" | "metadata">>) => {
|
|
90
90
|
setIsCreating(true);
|
|
91
91
|
try {
|
|
92
|
-
const
|
|
93
|
-
if (!isMounted.current) return
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return
|
|
92
|
+
const workspace = await workspaceService.createWorkspace(input);
|
|
93
|
+
if (!isMounted.current) return workspace;
|
|
94
|
+
setWorkspaces((prev) => sortAlphabetically([...prev.filter((item) => item.id !== workspace.id), workspace]));
|
|
95
|
+
setActiveWorkspaceId(workspace.id);
|
|
96
|
+
return workspace;
|
|
97
97
|
} catch (error) {
|
|
98
|
-
console.error("Failed to create
|
|
98
|
+
console.error("Failed to create workspace", error);
|
|
99
99
|
throw error;
|
|
100
100
|
} finally {
|
|
101
101
|
if (isMounted.current) {
|
|
@@ -104,83 +104,83 @@ export function useThreadState() {
|
|
|
104
104
|
}
|
|
105
105
|
}, []);
|
|
106
106
|
|
|
107
|
-
const
|
|
108
|
-
if (!
|
|
109
|
-
|
|
107
|
+
const deleteWorkspace = useCallback(async (workspaceId: string) => {
|
|
108
|
+
if (!workspaceId) return;
|
|
109
|
+
setDeletingWorkspaceId(workspaceId);
|
|
110
110
|
try {
|
|
111
|
-
await
|
|
111
|
+
await workspaceService.deleteWorkspace(workspaceId);
|
|
112
112
|
if (!isMounted.current) return;
|
|
113
|
-
let
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return
|
|
113
|
+
let nextWorkspaces: Workspace[] = [];
|
|
114
|
+
setWorkspaces((prev) => {
|
|
115
|
+
nextWorkspaces = sortAlphabetically(prev.filter((workspace) => workspace.id !== workspaceId));
|
|
116
|
+
return nextWorkspaces;
|
|
117
117
|
});
|
|
118
|
-
|
|
119
|
-
current ===
|
|
118
|
+
setActiveWorkspaceId((current) =>
|
|
119
|
+
current === workspaceId ? nextWorkspaces[0]?.id ?? null : current
|
|
120
120
|
);
|
|
121
121
|
} catch (error) {
|
|
122
|
-
console.error("Failed to delete
|
|
122
|
+
console.error("Failed to delete workspace", error);
|
|
123
123
|
throw error;
|
|
124
124
|
} finally {
|
|
125
125
|
if (isMounted.current) {
|
|
126
|
-
|
|
126
|
+
setDeletingWorkspaceId(null);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}, []);
|
|
130
130
|
|
|
131
|
-
const
|
|
132
|
-
const id =
|
|
131
|
+
const renameWorkspace = useCallback(async (workspaceId: string, title: string) => {
|
|
132
|
+
const id = workspaceId.trim();
|
|
133
133
|
const nextTitle = title.trim();
|
|
134
134
|
if (!id || !nextTitle) return;
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
setRenamingWorkspaceId(id);
|
|
137
137
|
try {
|
|
138
|
-
const updated = await
|
|
138
|
+
const updated = await workspaceService.renameWorkspace(id, nextTitle);
|
|
139
139
|
if (!updated || !isMounted.current) return;
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
setWorkspaces((prev) =>
|
|
141
|
+
sortAlphabetically(prev.map((workspace) => (workspace.id === updated.id ? updated : workspace)))
|
|
142
142
|
);
|
|
143
143
|
} catch (error) {
|
|
144
|
-
console.error("Failed to rename
|
|
144
|
+
console.error("Failed to rename workspace", error);
|
|
145
145
|
throw error;
|
|
146
146
|
} finally {
|
|
147
147
|
if (isMounted.current) {
|
|
148
|
-
|
|
148
|
+
setRenamingWorkspaceId((current) => (current === id ? null : current));
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}, []);
|
|
152
152
|
|
|
153
|
-
const
|
|
154
|
-
async (
|
|
155
|
-
if (!
|
|
153
|
+
const updateWorkspaceMessages = useCallback(
|
|
154
|
+
async (workspaceId: string, messages: GroupMessage[]) => {
|
|
155
|
+
if (!workspaceId) return;
|
|
156
156
|
try {
|
|
157
|
-
const updated = await
|
|
157
|
+
const updated = await workspaceService.saveWorkspaceMessages(workspaceId, messages);
|
|
158
158
|
if (!updated || !isMounted.current) return;
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
setWorkspaces((prev) =>
|
|
160
|
+
sortAlphabetically(prev.map((workspace) => (workspace.id === updated.id ? updated : workspace)))
|
|
161
161
|
);
|
|
162
162
|
} catch (error) {
|
|
163
|
-
console.error("Failed to update
|
|
163
|
+
console.error("Failed to update workspace messages", error);
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
[]
|
|
167
167
|
);
|
|
168
168
|
|
|
169
|
-
const
|
|
169
|
+
const isDeletingActiveWorkspace = activeWorkspaceId !== null && deletingWorkspaceId === activeWorkspaceId;
|
|
170
170
|
|
|
171
171
|
return {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
workspaces,
|
|
173
|
+
activeWorkspaceId,
|
|
174
|
+
selectWorkspace,
|
|
175
|
+
createWorkspace,
|
|
176
|
+
deleteWorkspace,
|
|
177
177
|
isLoading,
|
|
178
|
-
|
|
178
|
+
isRestoringActiveWorkspace,
|
|
179
179
|
isCreating,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
180
|
+
deletingWorkspaceId,
|
|
181
|
+
renamingWorkspaceId,
|
|
182
|
+
isDeletingActiveWorkspace,
|
|
183
|
+
updateWorkspaceMessages,
|
|
184
|
+
renameWorkspace,
|
|
185
185
|
};
|
|
186
186
|
}
|
|
@@ -25,8 +25,13 @@ type StreamParser = {
|
|
|
25
25
|
flush: () => void;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
+
const AGX_ACK_RE = /\[agx:(?:spawn|exit:\d+)\]\n?/g;
|
|
29
|
+
|
|
28
30
|
const createRawParser = (onDelta: (chunk: string) => void): StreamParser => ({
|
|
29
|
-
push:
|
|
31
|
+
push: (chunk: string) => {
|
|
32
|
+
const cleaned = chunk.replace(AGX_ACK_RE, "");
|
|
33
|
+
if (cleaned) onDelta(cleaned);
|
|
34
|
+
},
|
|
30
35
|
flush: () => {},
|
|
31
36
|
});
|
|
32
37
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lib/db/cursors.js
|
|
3
|
+
*
|
|
4
|
+
* Durable per-consumer cursor helpers for event-stream projectors.
|
|
5
|
+
* Cursors are stored in the projector_cursors table keyed by consumer_id.
|
|
6
|
+
* The cursor value is the rowid (integer) of the last processed event.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
const { getSQLiteDb } = require('../sqlite-query-adapter');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Read the current cursor position for a consumer.
|
|
15
|
+
* Returns 0 if the consumer has no recorded position (process from beginning).
|
|
16
|
+
*
|
|
17
|
+
* @param {string} consumerId - Unique consumer identifier (e.g. 'notification_projector')
|
|
18
|
+
* @returns {number} Last processed rowid, or 0
|
|
19
|
+
*/
|
|
20
|
+
function readCursor(consumerId) {
|
|
21
|
+
const db = getSQLiteDb();
|
|
22
|
+
const row = db.prepare(
|
|
23
|
+
'SELECT last_event_id FROM projector_cursors WHERE consumer_id = ?'
|
|
24
|
+
).get(consumerId);
|
|
25
|
+
if (!row) return 0;
|
|
26
|
+
const pos = parseInt(row.last_event_id, 10);
|
|
27
|
+
return Number.isFinite(pos) ? pos : 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Advance the cursor to a new position within an existing transaction.
|
|
32
|
+
* The caller is responsible for wrapping this in a transaction so the cursor
|
|
33
|
+
* update and the projection writes are committed atomically.
|
|
34
|
+
*
|
|
35
|
+
* @param {import('better-sqlite3').Database} db - SQLite connection (same one used in txn)
|
|
36
|
+
* @param {string} consumerId
|
|
37
|
+
* @param {number} newRowid - rowid of the last event that was successfully processed
|
|
38
|
+
*/
|
|
39
|
+
function advanceCursorInTxn(db, consumerId, newRowid) {
|
|
40
|
+
db.prepare(`
|
|
41
|
+
INSERT INTO projector_cursors (consumer_id, last_event_id, updated_at)
|
|
42
|
+
VALUES (?, ?, strftime('%Y-%m-%dT%H:%M:%fZ','now'))
|
|
43
|
+
ON CONFLICT(consumer_id) DO UPDATE SET
|
|
44
|
+
last_event_id = excluded.last_event_id,
|
|
45
|
+
updated_at = excluded.updated_at
|
|
46
|
+
`).run(consumerId, String(newRowid));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Reset a consumer's cursor back to 0 (triggers full replay on next run).
|
|
51
|
+
* Useful for testing and forced replay.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} consumerId
|
|
54
|
+
*/
|
|
55
|
+
function resetCursor(consumerId) {
|
|
56
|
+
const db = getSQLiteDb();
|
|
57
|
+
db.prepare(`
|
|
58
|
+
INSERT INTO projector_cursors (consumer_id, last_event_id, updated_at)
|
|
59
|
+
VALUES (?, '0', strftime('%Y-%m-%dT%H:%M:%fZ','now'))
|
|
60
|
+
ON CONFLICT(consumer_id) DO UPDATE SET
|
|
61
|
+
last_event_id = '0',
|
|
62
|
+
updated_at = excluded.updated_at
|
|
63
|
+
`).run(consumerId);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* List all known consumers and their cursor positions.
|
|
68
|
+
* @returns {Array<{consumer_id: string, last_event_id: string, updated_at: string}>}
|
|
69
|
+
*/
|
|
70
|
+
function listCursors() {
|
|
71
|
+
const db = getSQLiteDb();
|
|
72
|
+
return db.prepare('SELECT * FROM projector_cursors ORDER BY consumer_id').all();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
module.exports = { readCursor, advanceCursorInTxn, resetCursor, listCursors };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* lib/db/notifications.js
|
|
5
|
+
*
|
|
6
|
+
* Query helpers for the notifications read-model table.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
const { getSQLiteDb } = require('../sqlite-query-adapter');
|
|
10
|
+
|
|
11
|
+
const DEFAULT_UNREAD_CAP = 500;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Return up to `cap` unread notifications for a user, newest first.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} userId
|
|
17
|
+
* @param {number} [cap=500]
|
|
18
|
+
* @returns {Array<{id, task_id, event_id, type, tier, title, body, created_at}>}
|
|
19
|
+
*/
|
|
20
|
+
function getUnreadSummary(userId, cap = DEFAULT_UNREAD_CAP) {
|
|
21
|
+
const db = getSQLiteDb();
|
|
22
|
+
return db.prepare(`
|
|
23
|
+
SELECT id, task_id, event_id, type, tier, title, body, created_at
|
|
24
|
+
FROM notifications
|
|
25
|
+
WHERE user_id = ? AND read_at IS NULL
|
|
26
|
+
ORDER BY created_at DESC
|
|
27
|
+
LIMIT ?
|
|
28
|
+
`).all(userId, cap);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Count unread notifications for a user.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} userId
|
|
35
|
+
* @returns {number}
|
|
36
|
+
*/
|
|
37
|
+
function countUnread(userId) {
|
|
38
|
+
const db = getSQLiteDb();
|
|
39
|
+
return db.prepare(
|
|
40
|
+
'SELECT COUNT(*) AS n FROM notifications WHERE user_id = ? AND read_at IS NULL'
|
|
41
|
+
).get(userId)?.n ?? 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Delete notifications older than minDays (read) or maxDays (any).
|
|
46
|
+
* Returns the total number of rows deleted.
|
|
47
|
+
*
|
|
48
|
+
* @param {object} [opts]
|
|
49
|
+
* @param {number} [opts.minDays=60] - prune read notifications older than this
|
|
50
|
+
* @param {number} [opts.maxDays=90] - prune all notifications older than this
|
|
51
|
+
* @returns {{ deleted: number }}
|
|
52
|
+
*/
|
|
53
|
+
function pruneOldNotifications({ minDays = 60, maxDays = 90 } = {}) {
|
|
54
|
+
const db = getSQLiteDb();
|
|
55
|
+
|
|
56
|
+
const r1 = db.prepare(`
|
|
57
|
+
DELETE FROM notifications
|
|
58
|
+
WHERE created_at < strftime('%Y-%m-%dT%H:%M:%fZ', 'now', '-${minDays} days')
|
|
59
|
+
AND read_at IS NOT NULL
|
|
60
|
+
`).run();
|
|
61
|
+
|
|
62
|
+
const r2 = db.prepare(`
|
|
63
|
+
DELETE FROM notifications
|
|
64
|
+
WHERE created_at < strftime('%Y-%m-%dT%H:%M:%fZ', 'now', '-${maxDays} days')
|
|
65
|
+
`).run();
|
|
66
|
+
|
|
67
|
+
return { deleted: r1.changes + r2.changes };
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
module.exports = { getUnreadSummary, countUnread, pruneOldNotifications };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lib/db/preferences.js
|
|
3
|
+
*
|
|
4
|
+
* Notification preference helpers.
|
|
5
|
+
*
|
|
6
|
+
* Preference resolution order (highest priority first):
|
|
7
|
+
* 1. Task-level: tasks.stage_decisions → { notifications: { [type]: bool } }
|
|
8
|
+
* 2. User-level: user_settings.notification_prefs → { [type]: bool } (if table exists)
|
|
9
|
+
* 3. Global default: true (notify for everything)
|
|
10
|
+
*
|
|
11
|
+
* Schema convention for task-level prefs (stored in tasks.stage_decisions JSON):
|
|
12
|
+
* { "notifications": { "task.completed": true, "task.failed": false } }
|
|
13
|
+
*
|
|
14
|
+
* Schema convention for user-level prefs (stored in user_settings.notification_prefs JSON):
|
|
15
|
+
* { "task.completed": true, "task.failed": false }
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
'use strict';
|
|
19
|
+
|
|
20
|
+
const { getSQLiteDb } = require('../sqlite-query-adapter');
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Read task-level notification preferences for a specific notification type.
|
|
24
|
+
* Returns null if no task-level override exists for this type.
|
|
25
|
+
*
|
|
26
|
+
* @param {import('better-sqlite3').Database} db
|
|
27
|
+
* @param {string} taskId
|
|
28
|
+
* @param {string} notificationType - e.g. 'task.completed'
|
|
29
|
+
* @returns {boolean|null} explicit preference, or null if not set at task level
|
|
30
|
+
*/
|
|
31
|
+
function getTaskLevelPref(db, taskId, notificationType) {
|
|
32
|
+
const row = db.prepare(
|
|
33
|
+
"SELECT json_extract(stage_decisions, '$.notifications') AS notif_prefs FROM tasks WHERE id = ?"
|
|
34
|
+
).get(taskId);
|
|
35
|
+
|
|
36
|
+
if (!row || !row.notif_prefs) return null;
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
const prefs = typeof row.notif_prefs === 'string'
|
|
40
|
+
? JSON.parse(row.notif_prefs)
|
|
41
|
+
: row.notif_prefs;
|
|
42
|
+
if (prefs && typeof prefs[notificationType] === 'boolean') {
|
|
43
|
+
return prefs[notificationType];
|
|
44
|
+
}
|
|
45
|
+
} catch {
|
|
46
|
+
// Malformed JSON — treat as no preference
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Read user-level notification preferences for a specific notification type.
|
|
53
|
+
* Returns null if no user-level preference exists for this type.
|
|
54
|
+
*
|
|
55
|
+
* Reads from user_settings.notification_prefs (JSON column).
|
|
56
|
+
* Gracefully handles missing table (returns null).
|
|
57
|
+
*
|
|
58
|
+
* @param {import('better-sqlite3').Database} db
|
|
59
|
+
* @param {string} userId
|
|
60
|
+
* @param {string} notificationType - e.g. 'task.completed'
|
|
61
|
+
* @returns {boolean|null} explicit preference, or null if not set
|
|
62
|
+
*/
|
|
63
|
+
function getUserLevelPref(db, userId, notificationType) {
|
|
64
|
+
try {
|
|
65
|
+
const row = db.prepare(
|
|
66
|
+
"SELECT json_extract(notification_prefs, '$.' || ?) AS pref FROM user_settings WHERE user_id = ?"
|
|
67
|
+
).get(notificationType, userId);
|
|
68
|
+
|
|
69
|
+
if (row && typeof row.pref === 'integer') {
|
|
70
|
+
// SQLite stores JSON booleans as integers (0/1)
|
|
71
|
+
return row.pref !== 0;
|
|
72
|
+
}
|
|
73
|
+
if (row && typeof row.pref === 'string') {
|
|
74
|
+
if (row.pref === 'true') return true;
|
|
75
|
+
if (row.pref === 'false') return false;
|
|
76
|
+
}
|
|
77
|
+
} catch {
|
|
78
|
+
// user_settings table may not exist yet — return null (default)
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Determine whether a notification should be emitted for a given task + type.
|
|
85
|
+
*
|
|
86
|
+
* Resolution order:
|
|
87
|
+
* 1. Task-level preference (tasks.stage_decisions.notifications[type])
|
|
88
|
+
* 2. User-level preference (user_settings.notification_prefs[type])
|
|
89
|
+
* 3. Global default → true
|
|
90
|
+
*
|
|
91
|
+
* @param {import('better-sqlite3').Database} db
|
|
92
|
+
* @param {string} taskId
|
|
93
|
+
* @param {string} userId
|
|
94
|
+
* @param {string} notificationType - e.g. 'task.completed'
|
|
95
|
+
* @returns {boolean}
|
|
96
|
+
*/
|
|
97
|
+
function shouldNotify(db, taskId, userId, notificationType) {
|
|
98
|
+
// 1. Task-level override
|
|
99
|
+
const taskPref = getTaskLevelPref(db, taskId, notificationType);
|
|
100
|
+
if (taskPref !== null) return taskPref;
|
|
101
|
+
|
|
102
|
+
// 2. User-level default
|
|
103
|
+
const userPref = getUserLevelPref(db, userId, notificationType);
|
|
104
|
+
if (userPref !== null) return userPref;
|
|
105
|
+
|
|
106
|
+
// 3. Global default — notify
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
module.exports = { shouldNotify, getTaskLevelPref, getUserLevelPref };
|