@mndrk/agx 2.0.36 → 2.0.38
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 +2 -2
- package/cloud-runtime/standalone/.next/prerender-manifest.json +3 -3
- package/cloud-runtime/standalone/.next/required-server-files.json +0 -3
- 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_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/_not-found.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/_not-found.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- 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 +4 -4
- 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_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/agents.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/agents.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/agents.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- 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 +3 -3
- 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]/messages/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/messages/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/agents/[id]/profile/route.js +3 -3
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/agents/export/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/attachments/[id]/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/attachments/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/automations/create/route.js +3 -3
- 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 +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 +4 -4
- 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 +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 +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 +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/daemon/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/daemon/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 +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 +3 -3
- 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 +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 +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 +2 -2
- 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 +3 -3
- 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 +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 +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 +2 -2
- 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 +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 +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 +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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +3 -3
- 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 +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/processes/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/processes/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/projects/[id]/agents/route.js +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 +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 +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 +2 -2
- 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 +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 +2 -2
- 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 +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 +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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +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 +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 +4 -4
- 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 +2 -2
- 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 +3 -3
- 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 +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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +3 -3
- 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 +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 +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 +3 -3
- 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 +4 -4
- 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 +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 +2 -2
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +6 -6
- 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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 +4 -4
- 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 +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 +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 +3 -3
- 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 +3 -3
- package/cloud-runtime/standalone/.next/server/app/api/threads/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/upload/[id]/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/upload/[id]/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/upload/route.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/upload/route.js.nft.json +1 -1
- package/cloud-runtime/standalone/.next/server/app/api/user-settings/route.js +3 -3
- 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_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/automations.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/automations.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/automations.segments/automations.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/board/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/board.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/board.rsc +4 -4
- package/cloud-runtime/standalone/.next/server/app/board.segments/_full.segment.rsc +4 -4
- 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 +4 -4
- 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_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/execution-graph.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/execution-graph.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/execution-graph.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- 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 +5 -5
- package/cloud-runtime/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/cloud-runtime/standalone/.next/server/app/index.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- package/cloud-runtime/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/automations/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/graph/[taskId]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/knowledge/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/[slug]/thread/[threadId]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects/orphans.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- 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_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/projects.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/projects.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/projects.segments/projects.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/settings.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/settings.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/skills.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/skills.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/status/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/status.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/status.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/status.segments/status.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/app/thread/[id]/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome/page_client-reference-manifest.js +1 -1
- package/cloud-runtime/standalone/.next/server/app/welcome.html +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.rsc +5 -5
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/_full.segment.rsc +5 -5
- 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 +4 -4
- 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 +2 -2
- package/cloud-runtime/standalone/.next/server/app/welcome.segments/welcome.segment.rsc +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/{[externals]__cf9f18a6._.js → [externals]__986fcdb7._.js} +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__01cd082e._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__b500f1bf._.js → [root-of-the-server]__0936925d._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0c3dd73b._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0cc3f3b7._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__d4126e05._.js → [root-of-the-server]__1b0bb735._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__4d865017._.js → [root-of-the-server]__1c86bf6e._.js} +6 -6
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1dce6c15._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0bb52353._.js → [root-of-the-server]__20c58b41._.js} +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2126c763._.js +42 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__255b11f2._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__26817611._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__277ed37d._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__294fceef._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2f06f568._.js +46 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__30bd0c87._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__314d5c41._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__352dad6d._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__374cd94c._.js +42 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3785024c._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__379604d4._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c8f1de6._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3d0df5a8._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__0b3b6a47._.js → [root-of-the-server]__4014ed70._.js} +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42fcb81c._.js +52 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a3cd6ac._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a4265e0._.js +22 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__c99509c2._.js → [root-of-the-server]__4bce7db7._.js} +17 -17
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c5c536d._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4e522535._.js +6 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__50c24784._.js +3 -0
- 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 +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59d1cdd8._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5a1fd688._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__5d359afa._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__628d686b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__005b3c82._.js → [root-of-the-server]__644e6285._.js} +8 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__65755104._.js +7 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__068b4f08._.js → [root-of-the-server]__73c20995._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__762ab29c._.js +51 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__981d92dd._.js → [root-of-the-server]__8125bbc3._.js} +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__85275b88._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__89666394._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8c0fb154._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8f5cac13._.js +46 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__91b22098._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__92924218._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__94bd7f65._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9746d1f5._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98ce983b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ee6511a0._.js → [root-of-the-server]__9a9fd39f._.js} +10 -10
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9ad4e385._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__9b69f93e._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a01ddd0b._.js +46 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__8ac0286e._.js → [root-of-the-server]__a099c992._.js} +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a9b949c3._.js +7 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ab7343c8._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__af7a73fd._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bd43017b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf6fb108._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c0a18648._.js +10 -10
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__7ee9b7b6._.js → [root-of-the-server]__c122c54a._.js} +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c4ea4921._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__8b0ab82f._.js → [root-of-the-server]__c4ed5d83._.js} +7 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c695a5f2._.js +18 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__c8b49077._.js +10 -10
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d57e800e._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d8b615bf._.js +34 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d9bd6334._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__543ba6c4._.js → [root-of-the-server]__da3a1ce7._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__db469f1b._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__de2a1e43._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__5031f8d4._.js → [root-of-the-server]__dec3e1b7._.js} +11 -11
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f1147a4a._.js +15 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f5597fea._.js +13 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f8c94cb3._.js +8 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__ceb02db8._.js → [root-of-the-server]__f9cff4b0._.js} +2 -2
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__f9f7f2df._.js +4 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa79d53f._.js +46 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fb14cd4a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/{[root-of-the-server]__a55c16a5._.js → [root-of-the-server]__fc27a898._.js} +31 -31
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fcf0b40a._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ffb21023._.js +80 -0
- package/cloud-runtime/standalone/.next/server/chunks/_05fa3b89._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_17e53c87._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/_4190f170._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_42e9c8d5._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_5ca51127._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/_5fd6af5d._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/_8b9fde82._.js +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/_994414cd._.js +3 -3
- package/cloud-runtime/standalone/.next/server/chunks/_99b78daf._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_affbdbb0._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/_d22934ab._.js +20 -20
- package/cloud-runtime/standalone/.next/server/chunks/_efc73784._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/lib_a5adca60._.js +15 -15
- package/cloud-runtime/standalone/.next/server/chunks/lib_check-node-version_ts_ef89bf83._.js +3 -0
- package/cloud-runtime/standalone/.next/server/chunks/lib_ea45fe73._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_2e721df2._.js +39 -39
- package/cloud-runtime/standalone/.next/server/chunks/lib_history-store_ts_74d1c060._.js +39 -39
- package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_3ea4d849._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/lib_sqlite-query-adapter_ts_b0b1a9b2._.js +19 -19
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_14067235._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/src_graph_b63e2d39._.js +18 -18
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_0c5c111f._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/_314f4c49._.js +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/ssr/components_thread_WorkspaceSidebar_tsx_e660301b._.js +1 -1
- package/cloud-runtime/standalone/.next/server/instrumentation.js +1 -1
- 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/{47f22a56011af8d3.js → 5c0819dcc4bfec85.js} +1 -1
- package/cloud-runtime/standalone/.next/static/chunks/{25c9ac515cfe5635.js → 9bde80696400d2ff.js} +2 -2
- package/cloud-runtime/standalone/.next/static/chunks/ac9a7d8cf17b5d75.js +1 -0
- package/cloud-runtime/standalone/app/api/agents/[id]/messages/route.ts +4 -3
- package/cloud-runtime/standalone/app/api/agents/[id]/profile/route.ts +1 -1
- package/cloud-runtime/standalone/app/api/automations/route.ts +1 -1
- package/cloud-runtime/standalone/app/api/chat/route.ts +2 -2
- package/cloud-runtime/standalone/app/api/memories/route.ts +2 -2
- package/cloud-runtime/standalone/app/api/prompt-jobs/[id]/route.ts +9 -1
- package/cloud-runtime/standalone/app/api/system/db-status/route.ts +12 -11
- package/cloud-runtime/standalone/components/PromptJobBoard.tsx +12 -1
- package/cloud-runtime/standalone/components/errors/StartupGuard.tsx +1 -1
- package/cloud-runtime/standalone/components/errors/StartupGuardWrapper.tsx +1 -1
- package/cloud-runtime/standalone/components/thread/WorkspaceSidebar.tsx +1 -1
- package/cloud-runtime/standalone/hooks/usePromptJobs.ts +9 -18
- package/cloud-runtime/standalone/instrumentation.ts +1 -0
- package/cloud-runtime/standalone/lib/agent-process-registry.ts +10 -9
- package/cloud-runtime/standalone/lib/attachment-store.ts +6 -5
- package/cloud-runtime/standalone/lib/check-node-version.ts +12 -0
- package/cloud-runtime/standalone/lib/db-adapter.interface.ts +1 -1
- package/cloud-runtime/standalone/lib/history-store.ts +46 -46
- package/cloud-runtime/standalone/lib/knowledge-store.ts +2 -1
- package/cloud-runtime/standalone/lib/participants-store.ts +9 -8
- package/cloud-runtime/standalone/lib/queue/sqlite-adapter.ts +12 -11
- package/cloud-runtime/standalone/lib/repo-knowledge.ts +6 -5
- package/cloud-runtime/standalone/lib/sqlite-compat.ts +75 -0
- package/cloud-runtime/standalone/lib/sqlite-query-adapter.ts +15 -14
- package/cloud-runtime/standalone/lib/sqlite_writer.ts +10 -9
- package/cloud-runtime/standalone/lib/startup.ts +18 -19
- package/cloud-runtime/standalone/lib/thread-knowledge-runs.ts +2 -1
- package/cloud-runtime/standalone/lib/workspaces-to-projects-migration.ts +19 -18
- package/cloud-runtime/standalone/mcp/package-lock.json +3 -147
- package/cloud-runtime/standalone/mcp/package.json +1 -1
- package/cloud-runtime/standalone/mcp/src/check-node-version.ts +8 -0
- package/cloud-runtime/standalone/mcp/src/db.ts +4 -5
- package/cloud-runtime/standalone/mcp/src/index.ts +1 -0
- package/cloud-runtime/standalone/next.config.ts +0 -1
- package/cloud-runtime/standalone/package-lock.json +9 -413
- package/cloud-runtime/standalone/package.json +3 -2
- package/cloud-runtime/standalone/scripts/bench-queue.ts +5 -4
- package/cloud-runtime/standalone/server.js +1 -1
- package/cloud-runtime/standalone/src/db/backup.ts +12 -11
- package/cloud-runtime/standalone/src/db/checks.ts +3 -3
- package/cloud-runtime/standalone/src/db/init.ts +13 -12
- package/cloud-runtime/standalone/src/graph/schedule-runner.ts +1 -1
- package/cloud-runtime/standalone/src/graph/store.ts +14 -13
- package/cloud-runtime/standalone/src/prompt-scheduler/get-store.ts +19 -3
- package/cloud-runtime/standalone/src/prompt-scheduler/store.ts +9 -9
- package/cloud-runtime/standalone/test/adapters/sqlite.ts +7 -6
- package/cloud-runtime/standalone/worker/index.js +110 -823
- package/cloud-runtime/standalone/worker/index.ts +1 -0
- package/package.json +1 -1
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__017f03c3._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__056d94e4._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__06634853._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__0f580808._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__164a80ba._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__16dd1fd7._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1a8e0957._.js +0 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__1cc2fe7f._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__23ad03bf._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__241a8bcf._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__29419d66._.js +0 -42
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__2948f712._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__32ef6623._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__34cb1b98._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c1567b6._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3c37453e._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__3faa64cd._.js +0 -4
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4041bb93._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__42497c7b._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__49c03d66._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4a8d14c1._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c50f159._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__4c861686._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__588b6ab0._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__596d0e81._.js +0 -42
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__59b5d4e5._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__61c99680._.js +0 -52
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__64712846._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__707c32af._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7370bb86._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__749af50f._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__74b97f0a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__75cedecf._.js +0 -6
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__7e79d86a._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__8b461158._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__918f0106._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__922eb7cd._.js +0 -80
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__927cfc20._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__952af4b3._.js +0 -22
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__98b352f7._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a44db634._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__a67cd108._.js +0 -51
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ab2bf82d._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__abb032c1._.js +0 -34
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b4931ee1._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b4d05543._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b707e701._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__b9e41767._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__be4ad4b5._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__bf5803eb._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ccd4846e._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d7e839a8._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__d908c9ea._.js +0 -8
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__da20a0aa._.js +0 -18
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__dcdeee3d._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e069c0a3._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e1e51c02._.js +0 -7
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e3a4fd97._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__e4a87984._.js +0 -15
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__ef82dda1._.js +0 -3
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fa0ebee3._.js +0 -13
- package/cloud-runtime/standalone/.next/server/chunks/[root-of-the-server]__fee58db1._.js +0 -46
- package/cloud-runtime/standalone/.next/server/chunks/_d225c04f._.js +0 -3
- package/cloud-runtime/standalone/.next/static/chunks/d73f1cc3ebc9993b.js +0 -1
- package/cloud-runtime/standalone/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/database.js +0 -90
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/index.js +0 -3
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/function.js +0 -31
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/table.js +0 -189
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
- package/cloud-runtime/standalone/node_modules/better-sqlite3/lib/util.js +0 -12
- package/cloud-runtime/standalone/node_modules/better-sqlite3/package.json +0 -59
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/build/Release/better_sqlite3.node +0 -0
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/database.js +0 -90
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/index.js +0 -3
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/aggregate.js +0 -43
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/backup.js +0 -67
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/function.js +0 -31
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/inspect.js +0 -7
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/pragma.js +0 -12
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/serialize.js +0 -16
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/table.js +0 -189
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/transaction.js +0 -78
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/methods/wrappers.js +0 -54
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/sqlite-error.js +0 -20
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/lib/util.js +0 -12
- package/cloud-runtime/standalone/node_modules/better-sqlite3-90e2652d1716b047/package.json +0 -59
- package/cloud-runtime/standalone/node_modules/bindings/bindings.js +0 -221
- package/cloud-runtime/standalone/node_modules/bindings/package.json +0 -28
- package/cloud-runtime/standalone/node_modules/file-uri-to-path/index.js +0 -66
- package/cloud-runtime/standalone/node_modules/file-uri-to-path/package.json +0 -32
- package/cloud-runtime/standalone/scripts/fix-turbopack-externals.mjs +0 -87
- /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → V5ruh627UpcC-LTWDgYk8}/_buildManifest.js +0 -0
- /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → V5ruh627UpcC-LTWDgYk8}/_clientMiddlewareManifest.json +0 -0
- /package/cloud-runtime/standalone/.next/static/{15nzSRnot8KsYYP8yMBe- → V5ruh627UpcC-LTWDgYk8}/_ssgManifest.js +0 -0
|
@@ -8,9 +8,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
8
8
|
var __esm = (fn, res) => function __init() {
|
|
9
9
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
10
|
};
|
|
11
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
12
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
-
};
|
|
14
11
|
var __export = (target, all) => {
|
|
15
12
|
for (var name in all)
|
|
16
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -33,775 +30,46 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
30
|
));
|
|
34
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
32
|
|
|
36
|
-
// ../agx-cloud/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (new.target !== SqliteError) {
|
|
59
|
-
return new SqliteError(message, code);
|
|
60
|
-
}
|
|
61
|
-
if (typeof code !== "string") {
|
|
62
|
-
throw new TypeError("Expected second argument to be a string");
|
|
63
|
-
}
|
|
64
|
-
Error.call(this, message);
|
|
65
|
-
descriptor.value = "" + message;
|
|
66
|
-
Object.defineProperty(this, "message", descriptor);
|
|
67
|
-
Error.captureStackTrace(this, SqliteError);
|
|
68
|
-
this.code = code;
|
|
69
|
-
}
|
|
70
|
-
Object.setPrototypeOf(SqliteError, Error);
|
|
71
|
-
Object.setPrototypeOf(SqliteError.prototype, Error.prototype);
|
|
72
|
-
Object.defineProperty(SqliteError.prototype, "name", descriptor);
|
|
73
|
-
module2.exports = SqliteError;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
// ../agx-cloud/node_modules/file-uri-to-path/index.js
|
|
78
|
-
var require_file_uri_to_path = __commonJS({
|
|
79
|
-
"../agx-cloud/node_modules/file-uri-to-path/index.js"(exports2, module2) {
|
|
80
|
-
var sep = require("path").sep || "/";
|
|
81
|
-
module2.exports = fileUriToPath;
|
|
82
|
-
function fileUriToPath(uri) {
|
|
83
|
-
if ("string" != typeof uri || uri.length <= 7 || "file://" != uri.substring(0, 7)) {
|
|
84
|
-
throw new TypeError("must pass in a file:// URI to convert to a file path");
|
|
85
|
-
}
|
|
86
|
-
var rest = decodeURI(uri.substring(7));
|
|
87
|
-
var firstSlash = rest.indexOf("/");
|
|
88
|
-
var host = rest.substring(0, firstSlash);
|
|
89
|
-
var path11 = rest.substring(firstSlash + 1);
|
|
90
|
-
if ("localhost" == host) host = "";
|
|
91
|
-
if (host) {
|
|
92
|
-
host = sep + sep + host;
|
|
93
|
-
}
|
|
94
|
-
path11 = path11.replace(/^(.+)\|/, "$1:");
|
|
95
|
-
if (sep == "\\") {
|
|
96
|
-
path11 = path11.replace(/\//g, "\\");
|
|
97
|
-
}
|
|
98
|
-
if (/^.+\:/.test(path11)) {
|
|
99
|
-
} else {
|
|
100
|
-
path11 = sep + path11;
|
|
101
|
-
}
|
|
102
|
-
return host + path11;
|
|
103
|
-
}
|
|
33
|
+
// ../agx-cloud/lib/sqlite-compat.ts
|
|
34
|
+
function pragmaGet(db2, key) {
|
|
35
|
+
const row = db2.prepare(`PRAGMA ${key}`).get();
|
|
36
|
+
if (!row) return void 0;
|
|
37
|
+
const values = Object.values(row);
|
|
38
|
+
return values.length > 0 ? values[0] : void 0;
|
|
39
|
+
}
|
|
40
|
+
function pragmaAll(db2, key) {
|
|
41
|
+
return db2.prepare(`PRAGMA ${key}`).all();
|
|
42
|
+
}
|
|
43
|
+
function pragmaSet(db2, pragma) {
|
|
44
|
+
db2.exec(`PRAGMA ${pragma}`);
|
|
45
|
+
}
|
|
46
|
+
function transaction(db2, fn) {
|
|
47
|
+
db2.exec("BEGIN");
|
|
48
|
+
try {
|
|
49
|
+
const result = fn();
|
|
50
|
+
db2.exec("COMMIT");
|
|
51
|
+
return result;
|
|
52
|
+
} catch (err) {
|
|
53
|
+
db2.exec("ROLLBACK");
|
|
54
|
+
throw err;
|
|
104
55
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var exists = fs8.accessSync && function(path12) {
|
|
116
|
-
try {
|
|
117
|
-
fs8.accessSync(path12);
|
|
118
|
-
} catch (e) {
|
|
119
|
-
return false;
|
|
120
|
-
}
|
|
121
|
-
return true;
|
|
122
|
-
} || fs8.existsSync || path11.existsSync;
|
|
123
|
-
var defaults = {
|
|
124
|
-
arrow: process.env.NODE_BINDINGS_ARROW || " \u2192 ",
|
|
125
|
-
compiled: process.env.NODE_BINDINGS_COMPILED_DIR || "compiled",
|
|
126
|
-
platform: process.platform,
|
|
127
|
-
arch: process.arch,
|
|
128
|
-
nodePreGyp: "node-v" + process.versions.modules + "-" + process.platform + "-" + process.arch,
|
|
129
|
-
version: process.versions.node,
|
|
130
|
-
bindings: "bindings.node",
|
|
131
|
-
try: [
|
|
132
|
-
// node-gyp's linked version in the "build" dir
|
|
133
|
-
["module_root", "build", "bindings"],
|
|
134
|
-
// node-waf and gyp_addon (a.k.a node-gyp)
|
|
135
|
-
["module_root", "build", "Debug", "bindings"],
|
|
136
|
-
["module_root", "build", "Release", "bindings"],
|
|
137
|
-
// Debug files, for development (legacy behavior, remove for node v0.9)
|
|
138
|
-
["module_root", "out", "Debug", "bindings"],
|
|
139
|
-
["module_root", "Debug", "bindings"],
|
|
140
|
-
// Release files, but manually compiled (legacy behavior, remove for node v0.9)
|
|
141
|
-
["module_root", "out", "Release", "bindings"],
|
|
142
|
-
["module_root", "Release", "bindings"],
|
|
143
|
-
// Legacy from node-waf, node <= 0.4.x
|
|
144
|
-
["module_root", "build", "default", "bindings"],
|
|
145
|
-
// Production "Release" buildtype binary (meh...)
|
|
146
|
-
["module_root", "compiled", "version", "platform", "arch", "bindings"],
|
|
147
|
-
// node-qbs builds
|
|
148
|
-
["module_root", "addon-build", "release", "install-root", "bindings"],
|
|
149
|
-
["module_root", "addon-build", "debug", "install-root", "bindings"],
|
|
150
|
-
["module_root", "addon-build", "default", "install-root", "bindings"],
|
|
151
|
-
// node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}
|
|
152
|
-
["module_root", "lib", "binding", "nodePreGyp", "bindings"]
|
|
153
|
-
]
|
|
154
|
-
};
|
|
155
|
-
function bindings(opts) {
|
|
156
|
-
if (typeof opts == "string") {
|
|
157
|
-
opts = { bindings: opts };
|
|
158
|
-
} else if (!opts) {
|
|
159
|
-
opts = {};
|
|
160
|
-
}
|
|
161
|
-
Object.keys(defaults).map(function(i2) {
|
|
162
|
-
if (!(i2 in opts)) opts[i2] = defaults[i2];
|
|
163
|
-
});
|
|
164
|
-
if (!opts.module_root) {
|
|
165
|
-
opts.module_root = exports2.getRoot(exports2.getFileName());
|
|
166
|
-
}
|
|
167
|
-
if (path11.extname(opts.bindings) != ".node") {
|
|
168
|
-
opts.bindings += ".node";
|
|
169
|
-
}
|
|
170
|
-
var requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
|
|
171
|
-
var tries = [], i = 0, l = opts.try.length, n, b, err;
|
|
172
|
-
for (; i < l; i++) {
|
|
173
|
-
n = join6.apply(
|
|
174
|
-
null,
|
|
175
|
-
opts.try[i].map(function(p) {
|
|
176
|
-
return opts[p] || p;
|
|
177
|
-
})
|
|
178
|
-
);
|
|
179
|
-
tries.push(n);
|
|
180
|
-
try {
|
|
181
|
-
b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
|
|
182
|
-
if (!opts.path) {
|
|
183
|
-
b.path = n;
|
|
184
|
-
}
|
|
185
|
-
return b;
|
|
186
|
-
} catch (e) {
|
|
187
|
-
if (e.code !== "MODULE_NOT_FOUND" && e.code !== "QUALIFIED_PATH_RESOLUTION_FAILED" && !/not find/i.test(e.message)) {
|
|
188
|
-
throw e;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
err = new Error(
|
|
193
|
-
"Could not locate the bindings file. Tried:\n" + tries.map(function(a) {
|
|
194
|
-
return opts.arrow + a;
|
|
195
|
-
}).join("\n")
|
|
196
|
-
);
|
|
197
|
-
err.tries = tries;
|
|
56
|
+
}
|
|
57
|
+
function transactionFn(db2, fn) {
|
|
58
|
+
return (...args) => {
|
|
59
|
+
db2.exec("BEGIN");
|
|
60
|
+
try {
|
|
61
|
+
const result = fn(...args);
|
|
62
|
+
db2.exec("COMMIT");
|
|
63
|
+
return result;
|
|
64
|
+
} catch (err) {
|
|
65
|
+
db2.exec("ROLLBACK");
|
|
198
66
|
throw err;
|
|
199
67
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
Error.prepareStackTrace = function(e, st) {
|
|
205
|
-
for (var i = 0, l = st.length; i < l; i++) {
|
|
206
|
-
fileName = st[i].getFileName();
|
|
207
|
-
if (fileName !== __filename) {
|
|
208
|
-
if (calling_file) {
|
|
209
|
-
if (fileName !== calling_file) {
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
} else {
|
|
213
|
-
return;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
Error.captureStackTrace(dummy);
|
|
219
|
-
dummy.stack;
|
|
220
|
-
Error.prepareStackTrace = origPST;
|
|
221
|
-
Error.stackTraceLimit = origSTL;
|
|
222
|
-
var fileSchema = "file://";
|
|
223
|
-
if (fileName.indexOf(fileSchema) === 0) {
|
|
224
|
-
fileName = fileURLToPath(fileName);
|
|
225
|
-
}
|
|
226
|
-
return fileName;
|
|
227
|
-
};
|
|
228
|
-
exports2.getRoot = function getRoot(file) {
|
|
229
|
-
var dir = dirname(file), prev;
|
|
230
|
-
while (true) {
|
|
231
|
-
if (dir === ".") {
|
|
232
|
-
dir = process.cwd();
|
|
233
|
-
}
|
|
234
|
-
if (exists(join6(dir, "package.json")) || exists(join6(dir, "node_modules"))) {
|
|
235
|
-
return dir;
|
|
236
|
-
}
|
|
237
|
-
if (prev === dir) {
|
|
238
|
-
throw new Error(
|
|
239
|
-
'Could not find module root given file: "' + file + '". Do you have a `package.json` file? '
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
prev = dir;
|
|
243
|
-
dir = join6(dir, "..");
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/wrappers.js
|
|
250
|
-
var require_wrappers = __commonJS({
|
|
251
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/wrappers.js"(exports2) {
|
|
252
|
-
"use strict";
|
|
253
|
-
var { cppdb } = require_util();
|
|
254
|
-
exports2.prepare = function prepare(sql) {
|
|
255
|
-
return this[cppdb].prepare(sql, this, false);
|
|
256
|
-
};
|
|
257
|
-
exports2.exec = function exec(sql) {
|
|
258
|
-
this[cppdb].exec(sql);
|
|
259
|
-
return this;
|
|
260
|
-
};
|
|
261
|
-
exports2.close = function close() {
|
|
262
|
-
this[cppdb].close();
|
|
263
|
-
return this;
|
|
264
|
-
};
|
|
265
|
-
exports2.loadExtension = function loadExtension(...args) {
|
|
266
|
-
this[cppdb].loadExtension(...args);
|
|
267
|
-
return this;
|
|
268
|
-
};
|
|
269
|
-
exports2.defaultSafeIntegers = function defaultSafeIntegers(...args) {
|
|
270
|
-
this[cppdb].defaultSafeIntegers(...args);
|
|
271
|
-
return this;
|
|
272
|
-
};
|
|
273
|
-
exports2.unsafeMode = function unsafeMode(...args) {
|
|
274
|
-
this[cppdb].unsafeMode(...args);
|
|
275
|
-
return this;
|
|
276
|
-
};
|
|
277
|
-
exports2.getters = {
|
|
278
|
-
name: {
|
|
279
|
-
get: function name() {
|
|
280
|
-
return this[cppdb].name;
|
|
281
|
-
},
|
|
282
|
-
enumerable: true
|
|
283
|
-
},
|
|
284
|
-
open: {
|
|
285
|
-
get: function open() {
|
|
286
|
-
return this[cppdb].open;
|
|
287
|
-
},
|
|
288
|
-
enumerable: true
|
|
289
|
-
},
|
|
290
|
-
inTransaction: {
|
|
291
|
-
get: function inTransaction() {
|
|
292
|
-
return this[cppdb].inTransaction;
|
|
293
|
-
},
|
|
294
|
-
enumerable: true
|
|
295
|
-
},
|
|
296
|
-
readonly: {
|
|
297
|
-
get: function readonly() {
|
|
298
|
-
return this[cppdb].readonly;
|
|
299
|
-
},
|
|
300
|
-
enumerable: true
|
|
301
|
-
},
|
|
302
|
-
memory: {
|
|
303
|
-
get: function memory() {
|
|
304
|
-
return this[cppdb].memory;
|
|
305
|
-
},
|
|
306
|
-
enumerable: true
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/transaction.js
|
|
313
|
-
var require_transaction = __commonJS({
|
|
314
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/transaction.js"(exports2, module2) {
|
|
315
|
-
"use strict";
|
|
316
|
-
var { cppdb } = require_util();
|
|
317
|
-
var controllers = /* @__PURE__ */ new WeakMap();
|
|
318
|
-
module2.exports = function transaction(fn) {
|
|
319
|
-
if (typeof fn !== "function") throw new TypeError("Expected first argument to be a function");
|
|
320
|
-
const db2 = this[cppdb];
|
|
321
|
-
const controller = getController(db2, this);
|
|
322
|
-
const { apply } = Function.prototype;
|
|
323
|
-
const properties = {
|
|
324
|
-
default: { value: wrapTransaction(apply, fn, db2, controller.default) },
|
|
325
|
-
deferred: { value: wrapTransaction(apply, fn, db2, controller.deferred) },
|
|
326
|
-
immediate: { value: wrapTransaction(apply, fn, db2, controller.immediate) },
|
|
327
|
-
exclusive: { value: wrapTransaction(apply, fn, db2, controller.exclusive) },
|
|
328
|
-
database: { value: this, enumerable: true }
|
|
329
|
-
};
|
|
330
|
-
Object.defineProperties(properties.default.value, properties);
|
|
331
|
-
Object.defineProperties(properties.deferred.value, properties);
|
|
332
|
-
Object.defineProperties(properties.immediate.value, properties);
|
|
333
|
-
Object.defineProperties(properties.exclusive.value, properties);
|
|
334
|
-
return properties.default.value;
|
|
335
|
-
};
|
|
336
|
-
var getController = (db2, self) => {
|
|
337
|
-
let controller = controllers.get(db2);
|
|
338
|
-
if (!controller) {
|
|
339
|
-
const shared = {
|
|
340
|
-
commit: db2.prepare("COMMIT", self, false),
|
|
341
|
-
rollback: db2.prepare("ROLLBACK", self, false),
|
|
342
|
-
savepoint: db2.prepare("SAVEPOINT ` _bs3. `", self, false),
|
|
343
|
-
release: db2.prepare("RELEASE ` _bs3. `", self, false),
|
|
344
|
-
rollbackTo: db2.prepare("ROLLBACK TO ` _bs3. `", self, false)
|
|
345
|
-
};
|
|
346
|
-
controllers.set(db2, controller = {
|
|
347
|
-
default: Object.assign({ begin: db2.prepare("BEGIN", self, false) }, shared),
|
|
348
|
-
deferred: Object.assign({ begin: db2.prepare("BEGIN DEFERRED", self, false) }, shared),
|
|
349
|
-
immediate: Object.assign({ begin: db2.prepare("BEGIN IMMEDIATE", self, false) }, shared),
|
|
350
|
-
exclusive: Object.assign({ begin: db2.prepare("BEGIN EXCLUSIVE", self, false) }, shared)
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
return controller;
|
|
354
|
-
};
|
|
355
|
-
var wrapTransaction = (apply, fn, db2, { begin, commit, rollback, savepoint, release, rollbackTo }) => function sqliteTransaction() {
|
|
356
|
-
let before, after, undo;
|
|
357
|
-
if (db2.inTransaction) {
|
|
358
|
-
before = savepoint;
|
|
359
|
-
after = release;
|
|
360
|
-
undo = rollbackTo;
|
|
361
|
-
} else {
|
|
362
|
-
before = begin;
|
|
363
|
-
after = commit;
|
|
364
|
-
undo = rollback;
|
|
365
|
-
}
|
|
366
|
-
before.run();
|
|
367
|
-
try {
|
|
368
|
-
const result = apply.call(fn, this, arguments);
|
|
369
|
-
if (result && typeof result.then === "function") {
|
|
370
|
-
throw new TypeError("Transaction function cannot return a promise");
|
|
371
|
-
}
|
|
372
|
-
after.run();
|
|
373
|
-
return result;
|
|
374
|
-
} catch (ex) {
|
|
375
|
-
if (db2.inTransaction) {
|
|
376
|
-
undo.run();
|
|
377
|
-
if (undo !== rollback) after.run();
|
|
378
|
-
}
|
|
379
|
-
throw ex;
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
|
|
385
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/pragma.js
|
|
386
|
-
var require_pragma = __commonJS({
|
|
387
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/pragma.js"(exports2, module2) {
|
|
388
|
-
"use strict";
|
|
389
|
-
var { getBooleanOption, cppdb } = require_util();
|
|
390
|
-
module2.exports = function pragma(source, options) {
|
|
391
|
-
if (options == null) options = {};
|
|
392
|
-
if (typeof source !== "string") throw new TypeError("Expected first argument to be a string");
|
|
393
|
-
if (typeof options !== "object") throw new TypeError("Expected second argument to be an options object");
|
|
394
|
-
const simple = getBooleanOption(options, "simple");
|
|
395
|
-
const stmt = this[cppdb].prepare(`PRAGMA ${source}`, this, true);
|
|
396
|
-
return simple ? stmt.pluck().get() : stmt.all();
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/backup.js
|
|
402
|
-
var require_backup = __commonJS({
|
|
403
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/backup.js"(exports2, module2) {
|
|
404
|
-
"use strict";
|
|
405
|
-
var fs8 = require("fs");
|
|
406
|
-
var path11 = require("path");
|
|
407
|
-
var { promisify } = require("util");
|
|
408
|
-
var { cppdb } = require_util();
|
|
409
|
-
var fsAccess = promisify(fs8.access);
|
|
410
|
-
module2.exports = async function backup(filename, options) {
|
|
411
|
-
if (options == null) options = {};
|
|
412
|
-
if (typeof filename !== "string") throw new TypeError("Expected first argument to be a string");
|
|
413
|
-
if (typeof options !== "object") throw new TypeError("Expected second argument to be an options object");
|
|
414
|
-
filename = filename.trim();
|
|
415
|
-
const attachedName = "attached" in options ? options.attached : "main";
|
|
416
|
-
const handler = "progress" in options ? options.progress : null;
|
|
417
|
-
if (!filename) throw new TypeError("Backup filename cannot be an empty string");
|
|
418
|
-
if (filename === ":memory:") throw new TypeError('Invalid backup filename ":memory:"');
|
|
419
|
-
if (typeof attachedName !== "string") throw new TypeError('Expected the "attached" option to be a string');
|
|
420
|
-
if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
|
|
421
|
-
if (handler != null && typeof handler !== "function") throw new TypeError('Expected the "progress" option to be a function');
|
|
422
|
-
await fsAccess(path11.dirname(filename)).catch(() => {
|
|
423
|
-
throw new TypeError("Cannot save backup because the directory does not exist");
|
|
424
|
-
});
|
|
425
|
-
const isNewFile = await fsAccess(filename).then(() => false, () => true);
|
|
426
|
-
return runBackup(this[cppdb].backup(this, attachedName, filename, isNewFile), handler || null);
|
|
427
|
-
};
|
|
428
|
-
var runBackup = (backup, handler) => {
|
|
429
|
-
let rate = 0;
|
|
430
|
-
let useDefault = true;
|
|
431
|
-
return new Promise((resolve, reject) => {
|
|
432
|
-
setImmediate(function step() {
|
|
433
|
-
try {
|
|
434
|
-
const progress = backup.transfer(rate);
|
|
435
|
-
if (!progress.remainingPages) {
|
|
436
|
-
backup.close();
|
|
437
|
-
resolve(progress);
|
|
438
|
-
return;
|
|
439
|
-
}
|
|
440
|
-
if (useDefault) {
|
|
441
|
-
useDefault = false;
|
|
442
|
-
rate = 100;
|
|
443
|
-
}
|
|
444
|
-
if (handler) {
|
|
445
|
-
const ret = handler(progress);
|
|
446
|
-
if (ret !== void 0) {
|
|
447
|
-
if (typeof ret === "number" && ret === ret) rate = Math.max(0, Math.min(2147483647, Math.round(ret)));
|
|
448
|
-
else throw new TypeError("Expected progress callback to return a number or undefined");
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
setImmediate(step);
|
|
452
|
-
} catch (err) {
|
|
453
|
-
backup.close();
|
|
454
|
-
reject(err);
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
|
|
462
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/serialize.js
|
|
463
|
-
var require_serialize = __commonJS({
|
|
464
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/serialize.js"(exports2, module2) {
|
|
465
|
-
"use strict";
|
|
466
|
-
var { cppdb } = require_util();
|
|
467
|
-
module2.exports = function serialize(options) {
|
|
468
|
-
if (options == null) options = {};
|
|
469
|
-
if (typeof options !== "object") throw new TypeError("Expected first argument to be an options object");
|
|
470
|
-
const attachedName = "attached" in options ? options.attached : "main";
|
|
471
|
-
if (typeof attachedName !== "string") throw new TypeError('Expected the "attached" option to be a string');
|
|
472
|
-
if (!attachedName) throw new TypeError('The "attached" option cannot be an empty string');
|
|
473
|
-
return this[cppdb].serialize(attachedName);
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
|
-
|
|
478
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/function.js
|
|
479
|
-
var require_function = __commonJS({
|
|
480
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/function.js"(exports2, module2) {
|
|
481
|
-
"use strict";
|
|
482
|
-
var { getBooleanOption, cppdb } = require_util();
|
|
483
|
-
module2.exports = function defineFunction(name, options, fn) {
|
|
484
|
-
if (options == null) options = {};
|
|
485
|
-
if (typeof options === "function") {
|
|
486
|
-
fn = options;
|
|
487
|
-
options = {};
|
|
488
|
-
}
|
|
489
|
-
if (typeof name !== "string") throw new TypeError("Expected first argument to be a string");
|
|
490
|
-
if (typeof fn !== "function") throw new TypeError("Expected last argument to be a function");
|
|
491
|
-
if (typeof options !== "object") throw new TypeError("Expected second argument to be an options object");
|
|
492
|
-
if (!name) throw new TypeError("User-defined function name cannot be an empty string");
|
|
493
|
-
const safeIntegers = "safeIntegers" in options ? +getBooleanOption(options, "safeIntegers") : 2;
|
|
494
|
-
const deterministic = getBooleanOption(options, "deterministic");
|
|
495
|
-
const directOnly = getBooleanOption(options, "directOnly");
|
|
496
|
-
const varargs = getBooleanOption(options, "varargs");
|
|
497
|
-
let argCount = -1;
|
|
498
|
-
if (!varargs) {
|
|
499
|
-
argCount = fn.length;
|
|
500
|
-
if (!Number.isInteger(argCount) || argCount < 0) throw new TypeError("Expected function.length to be a positive integer");
|
|
501
|
-
if (argCount > 100) throw new RangeError("User-defined functions cannot have more than 100 arguments");
|
|
502
|
-
}
|
|
503
|
-
this[cppdb].function(fn, name, argCount, safeIntegers, deterministic, directOnly);
|
|
504
|
-
return this;
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/aggregate.js
|
|
510
|
-
var require_aggregate = __commonJS({
|
|
511
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/aggregate.js"(exports2, module2) {
|
|
512
|
-
"use strict";
|
|
513
|
-
var { getBooleanOption, cppdb } = require_util();
|
|
514
|
-
module2.exports = function defineAggregate(name, options) {
|
|
515
|
-
if (typeof name !== "string") throw new TypeError("Expected first argument to be a string");
|
|
516
|
-
if (typeof options !== "object" || options === null) throw new TypeError("Expected second argument to be an options object");
|
|
517
|
-
if (!name) throw new TypeError("User-defined function name cannot be an empty string");
|
|
518
|
-
const start = "start" in options ? options.start : null;
|
|
519
|
-
const step = getFunctionOption(options, "step", true);
|
|
520
|
-
const inverse = getFunctionOption(options, "inverse", false);
|
|
521
|
-
const result = getFunctionOption(options, "result", false);
|
|
522
|
-
const safeIntegers = "safeIntegers" in options ? +getBooleanOption(options, "safeIntegers") : 2;
|
|
523
|
-
const deterministic = getBooleanOption(options, "deterministic");
|
|
524
|
-
const directOnly = getBooleanOption(options, "directOnly");
|
|
525
|
-
const varargs = getBooleanOption(options, "varargs");
|
|
526
|
-
let argCount = -1;
|
|
527
|
-
if (!varargs) {
|
|
528
|
-
argCount = Math.max(getLength(step), inverse ? getLength(inverse) : 0);
|
|
529
|
-
if (argCount > 0) argCount -= 1;
|
|
530
|
-
if (argCount > 100) throw new RangeError("User-defined functions cannot have more than 100 arguments");
|
|
531
|
-
}
|
|
532
|
-
this[cppdb].aggregate(start, step, inverse, result, name, argCount, safeIntegers, deterministic, directOnly);
|
|
533
|
-
return this;
|
|
534
|
-
};
|
|
535
|
-
var getFunctionOption = (options, key, required) => {
|
|
536
|
-
const value = key in options ? options[key] : null;
|
|
537
|
-
if (typeof value === "function") return value;
|
|
538
|
-
if (value != null) throw new TypeError(`Expected the "${key}" option to be a function`);
|
|
539
|
-
if (required) throw new TypeError(`Missing required option "${key}"`);
|
|
540
|
-
return null;
|
|
541
|
-
};
|
|
542
|
-
var getLength = ({ length }) => {
|
|
543
|
-
if (Number.isInteger(length) && length >= 0) return length;
|
|
544
|
-
throw new TypeError("Expected function.length to be a positive integer");
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/table.js
|
|
550
|
-
var require_table = __commonJS({
|
|
551
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/table.js"(exports2, module2) {
|
|
552
|
-
"use strict";
|
|
553
|
-
var { cppdb } = require_util();
|
|
554
|
-
module2.exports = function defineTable(name, factory) {
|
|
555
|
-
if (typeof name !== "string") throw new TypeError("Expected first argument to be a string");
|
|
556
|
-
if (!name) throw new TypeError("Virtual table module name cannot be an empty string");
|
|
557
|
-
let eponymous = false;
|
|
558
|
-
if (typeof factory === "object" && factory !== null) {
|
|
559
|
-
eponymous = true;
|
|
560
|
-
factory = defer(parseTableDefinition(factory, "used", name));
|
|
561
|
-
} else {
|
|
562
|
-
if (typeof factory !== "function") throw new TypeError("Expected second argument to be a function or a table definition object");
|
|
563
|
-
factory = wrapFactory(factory);
|
|
564
|
-
}
|
|
565
|
-
this[cppdb].table(factory, name, eponymous);
|
|
566
|
-
return this;
|
|
567
|
-
};
|
|
568
|
-
function wrapFactory(factory) {
|
|
569
|
-
return function virtualTableFactory(moduleName, databaseName, tableName, ...args) {
|
|
570
|
-
const thisObject = {
|
|
571
|
-
module: moduleName,
|
|
572
|
-
database: databaseName,
|
|
573
|
-
table: tableName
|
|
574
|
-
};
|
|
575
|
-
const def = apply.call(factory, thisObject, args);
|
|
576
|
-
if (typeof def !== "object" || def === null) {
|
|
577
|
-
throw new TypeError(`Virtual table module "${moduleName}" did not return a table definition object`);
|
|
578
|
-
}
|
|
579
|
-
return parseTableDefinition(def, "returned", moduleName);
|
|
580
|
-
};
|
|
581
|
-
}
|
|
582
|
-
function parseTableDefinition(def, verb, moduleName) {
|
|
583
|
-
if (!hasOwnProperty.call(def, "rows")) {
|
|
584
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition without a "rows" property`);
|
|
585
|
-
}
|
|
586
|
-
if (!hasOwnProperty.call(def, "columns")) {
|
|
587
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition without a "columns" property`);
|
|
588
|
-
}
|
|
589
|
-
const rows = def.rows;
|
|
590
|
-
if (typeof rows !== "function" || Object.getPrototypeOf(rows) !== GeneratorFunctionPrototype) {
|
|
591
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "rows" property (should be a generator function)`);
|
|
592
|
-
}
|
|
593
|
-
let columns = def.columns;
|
|
594
|
-
if (!Array.isArray(columns) || !(columns = [...columns]).every((x) => typeof x === "string")) {
|
|
595
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "columns" property (should be an array of strings)`);
|
|
596
|
-
}
|
|
597
|
-
if (columns.length !== new Set(columns).size) {
|
|
598
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with duplicate column names`);
|
|
599
|
-
}
|
|
600
|
-
if (!columns.length) {
|
|
601
|
-
throw new RangeError(`Virtual table module "${moduleName}" ${verb} a table definition with zero columns`);
|
|
602
|
-
}
|
|
603
|
-
let parameters;
|
|
604
|
-
if (hasOwnProperty.call(def, "parameters")) {
|
|
605
|
-
parameters = def.parameters;
|
|
606
|
-
if (!Array.isArray(parameters) || !(parameters = [...parameters]).every((x) => typeof x === "string")) {
|
|
607
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "parameters" property (should be an array of strings)`);
|
|
608
|
-
}
|
|
609
|
-
} else {
|
|
610
|
-
parameters = inferParameters(rows);
|
|
611
|
-
}
|
|
612
|
-
if (parameters.length !== new Set(parameters).size) {
|
|
613
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with duplicate parameter names`);
|
|
614
|
-
}
|
|
615
|
-
if (parameters.length > 32) {
|
|
616
|
-
throw new RangeError(`Virtual table module "${moduleName}" ${verb} a table definition with more than the maximum number of 32 parameters`);
|
|
617
|
-
}
|
|
618
|
-
for (const parameter of parameters) {
|
|
619
|
-
if (columns.includes(parameter)) {
|
|
620
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with column "${parameter}" which was ambiguously defined as both a column and parameter`);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
let safeIntegers = 2;
|
|
624
|
-
if (hasOwnProperty.call(def, "safeIntegers")) {
|
|
625
|
-
const bool = def.safeIntegers;
|
|
626
|
-
if (typeof bool !== "boolean") {
|
|
627
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "safeIntegers" property (should be a boolean)`);
|
|
628
|
-
}
|
|
629
|
-
safeIntegers = +bool;
|
|
630
|
-
}
|
|
631
|
-
let directOnly = false;
|
|
632
|
-
if (hasOwnProperty.call(def, "directOnly")) {
|
|
633
|
-
directOnly = def.directOnly;
|
|
634
|
-
if (typeof directOnly !== "boolean") {
|
|
635
|
-
throw new TypeError(`Virtual table module "${moduleName}" ${verb} a table definition with an invalid "directOnly" property (should be a boolean)`);
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
const columnDefinitions = [
|
|
639
|
-
...parameters.map(identifier).map((str) => `${str} HIDDEN`),
|
|
640
|
-
...columns.map(identifier)
|
|
641
|
-
];
|
|
642
|
-
return [
|
|
643
|
-
`CREATE TABLE x(${columnDefinitions.join(", ")});`,
|
|
644
|
-
wrapGenerator(rows, new Map(columns.map((x, i) => [x, parameters.length + i])), moduleName),
|
|
645
|
-
parameters,
|
|
646
|
-
safeIntegers,
|
|
647
|
-
directOnly
|
|
648
|
-
];
|
|
649
|
-
}
|
|
650
|
-
function wrapGenerator(generator, columnMap, moduleName) {
|
|
651
|
-
return function* virtualTable(...args) {
|
|
652
|
-
const output = args.map((x) => Buffer.isBuffer(x) ? Buffer.from(x) : x);
|
|
653
|
-
for (let i = 0; i < columnMap.size; ++i) {
|
|
654
|
-
output.push(null);
|
|
655
|
-
}
|
|
656
|
-
for (const row of generator(...args)) {
|
|
657
|
-
if (Array.isArray(row)) {
|
|
658
|
-
extractRowArray(row, output, columnMap.size, moduleName);
|
|
659
|
-
yield output;
|
|
660
|
-
} else if (typeof row === "object" && row !== null) {
|
|
661
|
-
extractRowObject(row, output, columnMap, moduleName);
|
|
662
|
-
yield output;
|
|
663
|
-
} else {
|
|
664
|
-
throw new TypeError(`Virtual table module "${moduleName}" yielded something that isn't a valid row object`);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
function extractRowArray(row, output, columnCount, moduleName) {
|
|
670
|
-
if (row.length !== columnCount) {
|
|
671
|
-
throw new TypeError(`Virtual table module "${moduleName}" yielded a row with an incorrect number of columns`);
|
|
672
|
-
}
|
|
673
|
-
const offset = output.length - columnCount;
|
|
674
|
-
for (let i = 0; i < columnCount; ++i) {
|
|
675
|
-
output[i + offset] = row[i];
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
function extractRowObject(row, output, columnMap, moduleName) {
|
|
679
|
-
let count = 0;
|
|
680
|
-
for (const key of Object.keys(row)) {
|
|
681
|
-
const index = columnMap.get(key);
|
|
682
|
-
if (index === void 0) {
|
|
683
|
-
throw new TypeError(`Virtual table module "${moduleName}" yielded a row with an undeclared column "${key}"`);
|
|
684
|
-
}
|
|
685
|
-
output[index] = row[key];
|
|
686
|
-
count += 1;
|
|
687
|
-
}
|
|
688
|
-
if (count !== columnMap.size) {
|
|
689
|
-
throw new TypeError(`Virtual table module "${moduleName}" yielded a row with missing columns`);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
function inferParameters({ length }) {
|
|
693
|
-
if (!Number.isInteger(length) || length < 0) {
|
|
694
|
-
throw new TypeError("Expected function.length to be a positive integer");
|
|
695
|
-
}
|
|
696
|
-
const params = [];
|
|
697
|
-
for (let i = 0; i < length; ++i) {
|
|
698
|
-
params.push(`$${i + 1}`);
|
|
699
|
-
}
|
|
700
|
-
return params;
|
|
701
|
-
}
|
|
702
|
-
var { hasOwnProperty } = Object.prototype;
|
|
703
|
-
var { apply } = Function.prototype;
|
|
704
|
-
var GeneratorFunctionPrototype = Object.getPrototypeOf(function* () {
|
|
705
|
-
});
|
|
706
|
-
var identifier = (str) => `"${str.replace(/"/g, '""')}"`;
|
|
707
|
-
var defer = (x) => () => x;
|
|
708
|
-
}
|
|
709
|
-
});
|
|
710
|
-
|
|
711
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/methods/inspect.js
|
|
712
|
-
var require_inspect = __commonJS({
|
|
713
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/methods/inspect.js"(exports2, module2) {
|
|
714
|
-
"use strict";
|
|
715
|
-
var DatabaseInspection = function Database7() {
|
|
716
|
-
};
|
|
717
|
-
module2.exports = function inspect(depth, opts) {
|
|
718
|
-
return Object.assign(new DatabaseInspection(), this);
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
});
|
|
722
|
-
|
|
723
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/database.js
|
|
724
|
-
var require_database = __commonJS({
|
|
725
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/database.js"(exports2, module2) {
|
|
726
|
-
"use strict";
|
|
727
|
-
var fs8 = require("fs");
|
|
728
|
-
var path11 = require("path");
|
|
729
|
-
var util = require_util();
|
|
730
|
-
var SqliteError = require_sqlite_error();
|
|
731
|
-
var DEFAULT_ADDON;
|
|
732
|
-
function Database7(filenameGiven, options) {
|
|
733
|
-
if (new.target == null) {
|
|
734
|
-
return new Database7(filenameGiven, options);
|
|
735
|
-
}
|
|
736
|
-
let buffer;
|
|
737
|
-
if (Buffer.isBuffer(filenameGiven)) {
|
|
738
|
-
buffer = filenameGiven;
|
|
739
|
-
filenameGiven = ":memory:";
|
|
740
|
-
}
|
|
741
|
-
if (filenameGiven == null) filenameGiven = "";
|
|
742
|
-
if (options == null) options = {};
|
|
743
|
-
if (typeof filenameGiven !== "string") throw new TypeError("Expected first argument to be a string");
|
|
744
|
-
if (typeof options !== "object") throw new TypeError("Expected second argument to be an options object");
|
|
745
|
-
if ("readOnly" in options) throw new TypeError('Misspelled option "readOnly" should be "readonly"');
|
|
746
|
-
if ("memory" in options) throw new TypeError('Option "memory" was removed in v7.0.0 (use ":memory:" filename instead)');
|
|
747
|
-
const filename = filenameGiven.trim();
|
|
748
|
-
const anonymous = filename === "" || filename === ":memory:";
|
|
749
|
-
const readonly = util.getBooleanOption(options, "readonly");
|
|
750
|
-
const fileMustExist = util.getBooleanOption(options, "fileMustExist");
|
|
751
|
-
const timeout = "timeout" in options ? options.timeout : 5e3;
|
|
752
|
-
const verbose = "verbose" in options ? options.verbose : null;
|
|
753
|
-
const nativeBinding = "nativeBinding" in options ? options.nativeBinding : null;
|
|
754
|
-
if (readonly && anonymous && !buffer) throw new TypeError("In-memory/temporary databases cannot be readonly");
|
|
755
|
-
if (!Number.isInteger(timeout) || timeout < 0) throw new TypeError('Expected the "timeout" option to be a positive integer');
|
|
756
|
-
if (timeout > 2147483647) throw new RangeError('Option "timeout" cannot be greater than 2147483647');
|
|
757
|
-
if (verbose != null && typeof verbose !== "function") throw new TypeError('Expected the "verbose" option to be a function');
|
|
758
|
-
if (nativeBinding != null && typeof nativeBinding !== "string" && typeof nativeBinding !== "object") throw new TypeError('Expected the "nativeBinding" option to be a string or addon object');
|
|
759
|
-
let addon;
|
|
760
|
-
if (nativeBinding == null) {
|
|
761
|
-
addon = DEFAULT_ADDON || (DEFAULT_ADDON = require_bindings()("better_sqlite3.node"));
|
|
762
|
-
} else if (typeof nativeBinding === "string") {
|
|
763
|
-
const requireFunc = typeof __non_webpack_require__ === "function" ? __non_webpack_require__ : require;
|
|
764
|
-
addon = requireFunc(path11.resolve(nativeBinding).replace(/(\.node)?$/, ".node"));
|
|
765
|
-
} else {
|
|
766
|
-
addon = nativeBinding;
|
|
767
|
-
}
|
|
768
|
-
if (!addon.isInitialized) {
|
|
769
|
-
addon.setErrorConstructor(SqliteError);
|
|
770
|
-
addon.isInitialized = true;
|
|
771
|
-
}
|
|
772
|
-
if (!anonymous && !filename.startsWith("file:") && !fs8.existsSync(path11.dirname(filename))) {
|
|
773
|
-
throw new TypeError("Cannot open database because the directory does not exist");
|
|
774
|
-
}
|
|
775
|
-
Object.defineProperties(this, {
|
|
776
|
-
[util.cppdb]: { value: new addon.Database(filename, filenameGiven, anonymous, readonly, fileMustExist, timeout, verbose || null, buffer || null) },
|
|
777
|
-
...wrappers.getters
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
var wrappers = require_wrappers();
|
|
781
|
-
Database7.prototype.prepare = wrappers.prepare;
|
|
782
|
-
Database7.prototype.transaction = require_transaction();
|
|
783
|
-
Database7.prototype.pragma = require_pragma();
|
|
784
|
-
Database7.prototype.backup = require_backup();
|
|
785
|
-
Database7.prototype.serialize = require_serialize();
|
|
786
|
-
Database7.prototype.function = require_function();
|
|
787
|
-
Database7.prototype.aggregate = require_aggregate();
|
|
788
|
-
Database7.prototype.table = require_table();
|
|
789
|
-
Database7.prototype.loadExtension = wrappers.loadExtension;
|
|
790
|
-
Database7.prototype.exec = wrappers.exec;
|
|
791
|
-
Database7.prototype.close = wrappers.close;
|
|
792
|
-
Database7.prototype.defaultSafeIntegers = wrappers.defaultSafeIntegers;
|
|
793
|
-
Database7.prototype.unsafeMode = wrappers.unsafeMode;
|
|
794
|
-
Database7.prototype[util.inspect] = require_inspect();
|
|
795
|
-
module2.exports = Database7;
|
|
796
|
-
}
|
|
797
|
-
});
|
|
798
|
-
|
|
799
|
-
// ../agx-cloud/node_modules/better-sqlite3/lib/index.js
|
|
800
|
-
var require_lib = __commonJS({
|
|
801
|
-
"../agx-cloud/node_modules/better-sqlite3/lib/index.js"(exports2, module2) {
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
var init_sqlite_compat = __esm({
|
|
71
|
+
"../agx-cloud/lib/sqlite-compat.ts"() {
|
|
802
72
|
"use strict";
|
|
803
|
-
module2.exports = require_database();
|
|
804
|
-
module2.exports.SqliteError = require_sqlite_error();
|
|
805
73
|
}
|
|
806
74
|
});
|
|
807
75
|
|
|
@@ -875,7 +143,7 @@ function validateSQLiteEnvironment(db2, dbPath) {
|
|
|
875
143
|
message: `SQLite version ${version.v} is below minimum ${MIN_SQLITE_VERSION}`,
|
|
876
144
|
found: version.v,
|
|
877
145
|
required: `>= ${MIN_SQLITE_VERSION}`,
|
|
878
|
-
fix:
|
|
146
|
+
fix: "Ensure Node.js >= 22.16 is installed (node:sqlite is built-in)"
|
|
879
147
|
});
|
|
880
148
|
}
|
|
881
149
|
for (const ext of REQUIRED_EXTENSIONS) {
|
|
@@ -907,16 +175,16 @@ function validateSQLiteEnvironment(db2, dbPath) {
|
|
|
907
175
|
}
|
|
908
176
|
}
|
|
909
177
|
try {
|
|
910
|
-
db2
|
|
911
|
-
db2
|
|
912
|
-
db2
|
|
913
|
-
db2
|
|
914
|
-
db2
|
|
915
|
-
const jm = db2
|
|
178
|
+
pragmaSet(db2, `journal_mode = ${REQUIRED_PRAGMAS.journal_mode}`);
|
|
179
|
+
pragmaSet(db2, `foreign_keys = ${REQUIRED_PRAGMAS.foreign_keys}`);
|
|
180
|
+
pragmaSet(db2, `busy_timeout = ${REQUIRED_PRAGMAS.busy_timeout}`);
|
|
181
|
+
pragmaSet(db2, `synchronous = ${REQUIRED_PRAGMAS.synchronous}`);
|
|
182
|
+
pragmaSet(db2, `cache_size = ${REQUIRED_PRAGMAS.cache_size}`);
|
|
183
|
+
const jm = pragmaGet(db2, "journal_mode").toLowerCase();
|
|
916
184
|
const ACCEPTABLE_JOURNAL_MODES = /* @__PURE__ */ new Set(["wal", "delete"]);
|
|
917
185
|
if (!ACCEPTABLE_JOURNAL_MODES.has(jm)) {
|
|
918
|
-
db2
|
|
919
|
-
const jm2 = db2
|
|
186
|
+
pragmaSet(db2, "journal_mode = DELETE");
|
|
187
|
+
const jm2 = pragmaGet(db2, "journal_mode").toLowerCase();
|
|
920
188
|
if (!ACCEPTABLE_JOURNAL_MODES.has(jm2)) {
|
|
921
189
|
errors.push({
|
|
922
190
|
kind: "pragma_error",
|
|
@@ -926,7 +194,7 @@ function validateSQLiteEnvironment(db2, dbPath) {
|
|
|
926
194
|
fix: "Ensure the database file is on a local filesystem and no other process holds an exclusive lock."
|
|
927
195
|
});
|
|
928
196
|
} else {
|
|
929
|
-
db2
|
|
197
|
+
pragmaSet(db2, "synchronous = FULL");
|
|
930
198
|
console.warn(`[startup] WAL unavailable, using journal_mode=${jm2} with synchronous=FULL`);
|
|
931
199
|
}
|
|
932
200
|
}
|
|
@@ -939,10 +207,12 @@ function validateSQLiteEnvironment(db2, dbPath) {
|
|
|
939
207
|
}
|
|
940
208
|
return errors;
|
|
941
209
|
}
|
|
942
|
-
var import_fs, import_os, import_path, MIN_SQLITE_VERSION, REQUIRED_PRAGMAS, REQUIRED_EXTENSIONS, RECOMMENDED_EXTENSIONS, BANNED_FS_PREFIXES;
|
|
210
|
+
var import_node_sqlite, import_fs, import_os, import_path, MIN_SQLITE_VERSION, REQUIRED_PRAGMAS, REQUIRED_EXTENSIONS, RECOMMENDED_EXTENSIONS, BANNED_FS_PREFIXES;
|
|
943
211
|
var init_startup = __esm({
|
|
944
212
|
"../agx-cloud/lib/startup.ts"() {
|
|
945
213
|
"use strict";
|
|
214
|
+
import_node_sqlite = require("node:sqlite");
|
|
215
|
+
init_sqlite_compat();
|
|
946
216
|
import_fs = __toESM(require("fs"));
|
|
947
217
|
import_os = __toESM(require("os"));
|
|
948
218
|
import_path = __toESM(require("path"));
|
|
@@ -1405,7 +675,7 @@ function migrateLegacyParticipantIds(db2) {
|
|
|
1405
675
|
const tableNames = new Set(
|
|
1406
676
|
db2.prepare("SELECT name FROM sqlite_master WHERE type = 'table'").all().map((row) => row.name)
|
|
1407
677
|
);
|
|
1408
|
-
const migrateTxn = db2
|
|
678
|
+
const migrateTxn = transactionFn(db2, (participantOps, referenceOps) => {
|
|
1409
679
|
const updateParticipant = db2.prepare("UPDATE participants SET id = ? WHERE id = ?");
|
|
1410
680
|
const updateMessages = tableNames.has("messages") ? db2.prepare("UPDATE messages SET participant_id = ? WHERE participant_id = ?") : null;
|
|
1411
681
|
const updateAgentProcesses = tableNames.has("agent_processes") ? db2.prepare("UPDATE agent_processes SET agent_id = ? WHERE agent_id = ?") : null;
|
|
@@ -1429,8 +699,8 @@ function migrateLegacyParticipantIds(db2) {
|
|
|
1429
699
|
}
|
|
1430
700
|
function getDb() {
|
|
1431
701
|
(0, import_fs8.mkdirSync)(STORE_DIR, { recursive: true });
|
|
1432
|
-
const db2 = new
|
|
1433
|
-
db2
|
|
702
|
+
const db2 = new import_node_sqlite3.DatabaseSync(DB_PATH);
|
|
703
|
+
pragmaSet(db2, "journal_mode = WAL");
|
|
1434
704
|
db2.exec(`
|
|
1435
705
|
CREATE TABLE IF NOT EXISTS participants (
|
|
1436
706
|
id TEXT PRIMARY KEY,
|
|
@@ -1444,7 +714,7 @@ function getDb() {
|
|
|
1444
714
|
sort_order INTEGER NOT NULL DEFAULT 0
|
|
1445
715
|
);
|
|
1446
716
|
`);
|
|
1447
|
-
const columns = db2
|
|
717
|
+
const columns = pragmaAll(db2, "table_info(participants)");
|
|
1448
718
|
if (columns.some((column) => column.name === "persona")) {
|
|
1449
719
|
db2.exec("ALTER TABLE participants RENAME COLUMN persona TO identity");
|
|
1450
720
|
db2.exec("ALTER TABLE participants RENAME COLUMN persona_file TO identity_file");
|
|
@@ -1506,11 +776,12 @@ function loadParticipants() {
|
|
|
1506
776
|
db2.close();
|
|
1507
777
|
}
|
|
1508
778
|
}
|
|
1509
|
-
var
|
|
779
|
+
var import_node_sqlite3, import_fs8, import_path8, import_os8, STORE_DIR, DB_PATH, AGENTS_DIR5;
|
|
1510
780
|
var init_participants_store = __esm({
|
|
1511
781
|
"../agx-cloud/lib/participants-store.ts"() {
|
|
1512
782
|
"use strict";
|
|
1513
|
-
|
|
783
|
+
import_node_sqlite3 = require("node:sqlite");
|
|
784
|
+
init_sqlite_compat();
|
|
1514
785
|
import_fs8 = require("fs");
|
|
1515
786
|
import_path8 = __toESM(require("path"));
|
|
1516
787
|
import_os8 = __toESM(require("os"));
|
|
@@ -1699,7 +970,7 @@ function migrateLegacyWorkspacesToProjects(inputDb) {
|
|
|
1699
970
|
list.push(row.thread_id);
|
|
1700
971
|
workspacesByTeam.set(row.team_id, list);
|
|
1701
972
|
}
|
|
1702
|
-
const migrateTxn =
|
|
973
|
+
const migrateTxn = () => transaction(db2, () => {
|
|
1703
974
|
for (const [userId, userTeams] of teamsByUser.entries()) {
|
|
1704
975
|
result.usersProcessed++;
|
|
1705
976
|
const effectiveUserId = userId || LOCAL_USER.id;
|
|
@@ -1750,7 +1021,7 @@ function migrateLegacyWorkspacesToProjects(inputDb) {
|
|
|
1750
1021
|
for (const [projectId, threadIds] of intendedThreadsByProject.entries()) {
|
|
1751
1022
|
for (const threadId of threadIds) {
|
|
1752
1023
|
const removed = deleteThreadLinksElsewhere.run(threadId, projectId);
|
|
1753
|
-
result.remappedThreadLinks += removed.changes;
|
|
1024
|
+
result.remappedThreadLinks += Number(removed.changes);
|
|
1754
1025
|
const linked = insertProjectThread.run(projectId, threadId);
|
|
1755
1026
|
if (linked.changes > 0) result.projectThreadsLinked++;
|
|
1756
1027
|
}
|
|
@@ -1791,6 +1062,7 @@ var WORKSPACES_TO_PROJECTS_MIGRATION_KEY;
|
|
|
1791
1062
|
var init_workspaces_to_projects_migration = __esm({
|
|
1792
1063
|
"../agx-cloud/lib/workspaces-to-projects-migration.ts"() {
|
|
1793
1064
|
"use strict";
|
|
1065
|
+
init_sqlite_compat();
|
|
1794
1066
|
init_participants_store();
|
|
1795
1067
|
init_auth_mode();
|
|
1796
1068
|
WORKSPACES_TO_PROJECTS_MIGRATION_KEY = "legacy_workspaces_to_projects_v1";
|
|
@@ -1811,7 +1083,7 @@ function sqlExpr(expr) {
|
|
|
1811
1083
|
function getSQLiteDb() {
|
|
1812
1084
|
if (_db) return _db;
|
|
1813
1085
|
const dbPath = process.env.SQLITE_DB_PATH || import_path9.default.join(AGX_DATA_DIR3, "agx-board.db");
|
|
1814
|
-
_db = new
|
|
1086
|
+
_db = new import_node_sqlite4.DatabaseSync(dbPath);
|
|
1815
1087
|
const errors = validateSQLiteEnvironment(_db, dbPath);
|
|
1816
1088
|
if (errors.length > 0) {
|
|
1817
1089
|
const msgs = errors.map((e) => ` - ${e.message}${e.fix ? ` (fix: ${e.fix})` : ""}`);
|
|
@@ -1861,14 +1133,14 @@ function dropLegacyTeamsTables(db2) {
|
|
|
1861
1133
|
function runMigrations(db2) {
|
|
1862
1134
|
const graphTables = db2.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='execution_graphs'").all();
|
|
1863
1135
|
if (graphTables.length > 0) {
|
|
1864
|
-
const columns = db2
|
|
1136
|
+
const columns = pragmaAll(db2, "table_info(execution_graphs)");
|
|
1865
1137
|
if (!columns.some((column) => column.name === "schedule")) {
|
|
1866
1138
|
db2.exec("ALTER TABLE execution_graphs ADD COLUMN schedule JSON");
|
|
1867
1139
|
}
|
|
1868
1140
|
}
|
|
1869
1141
|
const projectMemoryTables = db2.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='project_memory'").all();
|
|
1870
1142
|
if (projectMemoryTables.length > 0) {
|
|
1871
|
-
const projectMemoryCols = db2
|
|
1143
|
+
const projectMemoryCols = pragmaAll(db2, "table_info(project_memory)");
|
|
1872
1144
|
if (!projectMemoryCols.some((column) => column.name === "producer")) {
|
|
1873
1145
|
db2.exec("ALTER TABLE project_memory ADD COLUMN producer TEXT NOT NULL DEFAULT 'human' CHECK(producer IN ('human', 'system'))");
|
|
1874
1146
|
}
|
|
@@ -1876,7 +1148,7 @@ function runMigrations(db2) {
|
|
|
1876
1148
|
}
|
|
1877
1149
|
const agentTables = db2.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='agents'").all();
|
|
1878
1150
|
if (agentTables.length > 0) {
|
|
1879
|
-
const agentCols = db2
|
|
1151
|
+
const agentCols = pragmaAll(db2, "table_info(agents)");
|
|
1880
1152
|
const agentColNames = new Set(agentCols.map((c) => c.name));
|
|
1881
1153
|
if (!agentColNames.has("voice")) db2.exec("ALTER TABLE agents ADD COLUMN voice TEXT");
|
|
1882
1154
|
if (!agentColNames.has("seed")) db2.exec("ALTER TABLE agents ADD COLUMN seed TEXT");
|
|
@@ -2273,11 +1545,12 @@ function createAdminDbClientSQLite() {
|
|
|
2273
1545
|
}
|
|
2274
1546
|
};
|
|
2275
1547
|
}
|
|
2276
|
-
var
|
|
1548
|
+
var import_node_sqlite4, import_fs9, import_path9, import_os9, AGX_DATA_DIR3, SqlExpression, _db, JSON_COLUMNS, SQLiteQueryBuilder, KNOWN_JSON_COLUMNS;
|
|
2277
1549
|
var init_sqlite_query_adapter = __esm({
|
|
2278
1550
|
"../agx-cloud/lib/sqlite-query-adapter.ts"() {
|
|
2279
1551
|
"use strict";
|
|
2280
|
-
|
|
1552
|
+
import_node_sqlite4 = require("node:sqlite");
|
|
1553
|
+
init_sqlite_compat();
|
|
2281
1554
|
import_fs9 = __toESM(require("fs"));
|
|
2282
1555
|
import_path9 = __toESM(require("path"));
|
|
2283
1556
|
import_os9 = __toESM(require("os"));
|
|
@@ -2691,7 +1964,6 @@ function createAdminDbClient() {
|
|
|
2691
1964
|
}
|
|
2692
1965
|
var init_db_adapter = __esm({
|
|
2693
1966
|
"../agx-cloud/lib/db-adapter.ts"() {
|
|
2694
|
-
"use strict";
|
|
2695
1967
|
init_auth_mode();
|
|
2696
1968
|
}
|
|
2697
1969
|
});
|
|
@@ -4501,8 +3773,20 @@ var init_sqlite_adapter = __esm({
|
|
|
4501
3773
|
}
|
|
4502
3774
|
});
|
|
4503
3775
|
|
|
3776
|
+
// ../agx-cloud/lib/check-node-version.ts
|
|
3777
|
+
if (typeof process !== "undefined" && process.versions?.node) {
|
|
3778
|
+
const [major, minor] = process.versions.node.split(".").map(Number);
|
|
3779
|
+
if (major < 22 || major === 22 && minor < 16) {
|
|
3780
|
+
console.error(
|
|
3781
|
+
`agx-cloud requires Node.js >= 22.16.0 (found ${process.version}). node:sqlite is not available on older versions.`
|
|
3782
|
+
);
|
|
3783
|
+
process.exit(1);
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
|
|
4504
3787
|
// ../agx-cloud/lib/queue/sqlite-adapter.ts
|
|
4505
|
-
var
|
|
3788
|
+
var import_node_sqlite2 = require("node:sqlite");
|
|
3789
|
+
init_sqlite_compat();
|
|
4506
3790
|
|
|
4507
3791
|
// ../agx-cloud/node_modules/uuid/dist-node/stringify.js
|
|
4508
3792
|
var byteToHex = [];
|
|
@@ -4661,7 +3945,7 @@ var SQLiteQueueAdapter = class {
|
|
|
4661
3945
|
if (!import_fs3.default.existsSync(dir)) {
|
|
4662
3946
|
import_fs3.default.mkdirSync(dir, { recursive: true });
|
|
4663
3947
|
}
|
|
4664
|
-
this.db = new
|
|
3948
|
+
this.db = new import_node_sqlite2.DatabaseSync(finalPath);
|
|
4665
3949
|
const errors = validateSQLiteEnvironment(this.db, finalPath);
|
|
4666
3950
|
if (errors.length > 0) {
|
|
4667
3951
|
const msgs = errors.map((e) => e.message).join("; ");
|
|
@@ -4696,7 +3980,7 @@ var SQLiteQueueAdapter = class {
|
|
|
4696
3980
|
);
|
|
4697
3981
|
CREATE INDEX IF NOT EXISTS idx_jobs_fetch ON agx_jobs (queue, status, start_after, priority DESC, created_at ASC);
|
|
4698
3982
|
`);
|
|
4699
|
-
const cols = this.db
|
|
3983
|
+
const cols = pragmaAll(this.db, "table_info(agx_jobs)");
|
|
4700
3984
|
const colNames = new Set(cols.map((c) => c.name));
|
|
4701
3985
|
if (!colNames.has("failed_at")) {
|
|
4702
3986
|
this.db.exec(`ALTER TABLE agx_jobs ADD COLUMN failed_at INTEGER`);
|
|
@@ -4772,7 +4056,7 @@ var SQLiteQueueAdapter = class {
|
|
|
4772
4056
|
const batchSize = worker.options.batchSize || 1;
|
|
4773
4057
|
const now = Date.now();
|
|
4774
4058
|
const staleBefore = now - getStaleJobTimeoutMs();
|
|
4775
|
-
const jobs = this.db
|
|
4059
|
+
const jobs = transaction(this.db, () => {
|
|
4776
4060
|
const reapedJobs = this.reapStaleJobs(queue2, now, staleBefore);
|
|
4777
4061
|
if (reapedJobs.length > 0) {
|
|
4778
4062
|
writeDebugLog("queue.reap_stale", {
|
|
@@ -4805,7 +4089,7 @@ var SQLiteQueueAdapter = class {
|
|
|
4805
4089
|
name: queue2,
|
|
4806
4090
|
data: JSON.parse(c.data)
|
|
4807
4091
|
}));
|
|
4808
|
-
})
|
|
4092
|
+
});
|
|
4809
4093
|
if (jobs.length > 0) {
|
|
4810
4094
|
writeDebugLog("queue.claim", {
|
|
4811
4095
|
queue: queue2,
|
|
@@ -4837,9 +4121,9 @@ var SQLiteQueueAdapter = class {
|
|
|
4837
4121
|
SET status = 'completed', completed_at = ?, worker_id = NULL
|
|
4838
4122
|
WHERE id = ?
|
|
4839
4123
|
`);
|
|
4840
|
-
this.db
|
|
4124
|
+
transaction(this.db, () => {
|
|
4841
4125
|
for (const id of ids) stmt.run(now, id);
|
|
4842
|
-
})
|
|
4126
|
+
});
|
|
4843
4127
|
}
|
|
4844
4128
|
failJobs(ids, error) {
|
|
4845
4129
|
const now = Date.now();
|
|
@@ -4860,7 +4144,7 @@ var SQLiteQueueAdapter = class {
|
|
|
4860
4144
|
SET status = 'failed', failed_at = ?, started_at = NULL, worker_id = NULL, error = ?
|
|
4861
4145
|
WHERE id = ?
|
|
4862
4146
|
`);
|
|
4863
|
-
this.db
|
|
4147
|
+
transaction(this.db, () => {
|
|
4864
4148
|
for (const id of ids) {
|
|
4865
4149
|
const job = stmt.get(id);
|
|
4866
4150
|
if (job && job.retry_count < job.retry_limit) {
|
|
@@ -4870,7 +4154,7 @@ var SQLiteQueueAdapter = class {
|
|
|
4870
4154
|
updateFailed.run(now, error, id);
|
|
4871
4155
|
}
|
|
4872
4156
|
}
|
|
4873
|
-
})
|
|
4157
|
+
});
|
|
4874
4158
|
}
|
|
4875
4159
|
reapStaleJobs(queue2, now, staleBefore) {
|
|
4876
4160
|
const staleJobs = this.db.prepare(`
|
|
@@ -5838,6 +5122,7 @@ init_sqlite_query_adapter();
|
|
|
5838
5122
|
// ../agx-cloud/lib/knowledge-store.ts
|
|
5839
5123
|
var import_crypto2 = require("crypto");
|
|
5840
5124
|
init_sqlite_query_adapter();
|
|
5125
|
+
init_sqlite_compat();
|
|
5841
5126
|
function clampUnitNumber(value) {
|
|
5842
5127
|
if (typeof value !== "number" || !Number.isFinite(value)) return null;
|
|
5843
5128
|
return Math.max(0, Math.min(1, value));
|
|
@@ -5929,7 +5214,7 @@ function storeKnowledgeEntries(drafts) {
|
|
|
5929
5214
|
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
5930
5215
|
);
|
|
5931
5216
|
let inserted = 0;
|
|
5932
|
-
const tx = db2
|
|
5217
|
+
const tx = transactionFn(db2, (entries) => {
|
|
5933
5218
|
for (const draft of entries) {
|
|
5934
5219
|
const subjectId = draft.subjectId.trim();
|
|
5935
5220
|
const title = draft.title.trim();
|
|
@@ -6891,7 +6176,8 @@ async function handleCancel(taskId, userId, reason) {
|
|
|
6891
6176
|
var import_promises = require("fs/promises");
|
|
6892
6177
|
|
|
6893
6178
|
// ../agx-cloud/lib/agent-process-registry.ts
|
|
6894
|
-
var
|
|
6179
|
+
var import_node_sqlite5 = require("node:sqlite");
|
|
6180
|
+
init_sqlite_compat();
|
|
6895
6181
|
var import_path11 = __toESM(require("path"));
|
|
6896
6182
|
var import_os10 = __toESM(require("os"));
|
|
6897
6183
|
var import_fs11 = require("fs");
|
|
@@ -6914,8 +6200,8 @@ function toEntry(row) {
|
|
|
6914
6200
|
}
|
|
6915
6201
|
function getDb2() {
|
|
6916
6202
|
(0, import_fs11.mkdirSync)(HISTORY_DIR, { recursive: true });
|
|
6917
|
-
const db2 = new
|
|
6918
|
-
db2
|
|
6203
|
+
const db2 = new import_node_sqlite5.DatabaseSync(DB_PATH2);
|
|
6204
|
+
pragmaSet(db2, "journal_mode = WAL");
|
|
6919
6205
|
db2.exec(`
|
|
6920
6206
|
CREATE TABLE IF NOT EXISTS agent_processes (
|
|
6921
6207
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
@@ -7067,7 +6353,8 @@ function killByWorkspace(workspaceId) {
|
|
|
7067
6353
|
}
|
|
7068
6354
|
|
|
7069
6355
|
// ../agx-cloud/lib/history-store.ts
|
|
7070
|
-
var
|
|
6356
|
+
var import_node_sqlite6 = require("node:sqlite");
|
|
6357
|
+
init_sqlite_compat();
|
|
7071
6358
|
var import_fs12 = require("fs");
|
|
7072
6359
|
var import_path12 = __toESM(require("path"));
|
|
7073
6360
|
var import_os11 = __toESM(require("os"));
|
|
@@ -7133,11 +6420,11 @@ function initializeMessageSearch(db2) {
|
|
|
7133
6420
|
}
|
|
7134
6421
|
}
|
|
7135
6422
|
function isThreadScopedTable(db2, tableName) {
|
|
7136
|
-
const columns = db2
|
|
6423
|
+
const columns = pragmaAll(db2, `table_info(${tableName})`);
|
|
7137
6424
|
return columns.some((column) => column.name === "thread_id");
|
|
7138
6425
|
}
|
|
7139
6426
|
function migrateThreadReplyColumns(db2) {
|
|
7140
|
-
const columns = db2
|
|
6427
|
+
const columns = pragmaAll(db2, `table_info(messages)`);
|
|
7141
6428
|
const colNames = new Set(columns.map((c) => c.name));
|
|
7142
6429
|
if (!colNames.has("root_message_id")) {
|
|
7143
6430
|
db2.exec(`
|
|
@@ -7149,7 +6436,7 @@ function migrateThreadReplyColumns(db2) {
|
|
|
7149
6436
|
}
|
|
7150
6437
|
}
|
|
7151
6438
|
function migrateThreadStatusColumns(db2) {
|
|
7152
|
-
const columns = db2
|
|
6439
|
+
const columns = pragmaAll(db2, `table_info(messages)`);
|
|
7153
6440
|
const colNames = new Set(columns.map((c) => c.name));
|
|
7154
6441
|
if (!colNames.has("thread_status")) {
|
|
7155
6442
|
db2.exec(`
|
|
@@ -7159,7 +6446,7 @@ function migrateThreadStatusColumns(db2) {
|
|
|
7159
6446
|
}
|
|
7160
6447
|
}
|
|
7161
6448
|
function migrateReactionHostPidColumn(db2) {
|
|
7162
|
-
const columns = db2
|
|
6449
|
+
const columns = pragmaAll(db2, `table_info(message_reactions)`);
|
|
7163
6450
|
const colNames = new Set(columns.map((c) => c.name));
|
|
7164
6451
|
if (!colNames.has("host_pid")) {
|
|
7165
6452
|
db2.exec(`ALTER TABLE message_reactions ADD COLUMN host_pid INTEGER`);
|
|
@@ -7169,7 +6456,7 @@ function migrateReactionHostPidColumn(db2) {
|
|
|
7169
6456
|
}
|
|
7170
6457
|
}
|
|
7171
6458
|
function migrateLogsToAgentProcessId(db2) {
|
|
7172
|
-
const columns = db2
|
|
6459
|
+
const columns = pragmaAll(db2, `table_info(logs)`);
|
|
7173
6460
|
const colNames = new Set(columns.map((c) => c.name));
|
|
7174
6461
|
if (colNames.has("agent_process_id")) return;
|
|
7175
6462
|
db2.exec(`
|
|
@@ -7184,7 +6471,7 @@ function migrateLogsToAgentProcessId(db2) {
|
|
|
7184
6471
|
`);
|
|
7185
6472
|
}
|
|
7186
6473
|
function migrateAgentProcessesAddId(db2) {
|
|
7187
|
-
const columns = db2
|
|
6474
|
+
const columns = pragmaAll(db2, `table_info(agent_processes)`);
|
|
7188
6475
|
if (columns.length === 0) return;
|
|
7189
6476
|
const colNames = new Set(columns.map((c) => c.name));
|
|
7190
6477
|
if (colNames.has("id")) return;
|
|
@@ -7304,8 +6591,8 @@ function migrateLegacyTables(db2) {
|
|
|
7304
6591
|
}
|
|
7305
6592
|
var withDatabase = async (run) => {
|
|
7306
6593
|
await import_fs12.promises.mkdir(HISTORY_DIR2, { recursive: true });
|
|
7307
|
-
const db2 = new
|
|
7308
|
-
db2
|
|
6594
|
+
const db2 = new import_node_sqlite6.DatabaseSync(DB_PATH3);
|
|
6595
|
+
pragmaSet(db2, "journal_mode = WAL");
|
|
7309
6596
|
try {
|
|
7310
6597
|
db2.exec(`
|
|
7311
6598
|
CREATE TABLE IF NOT EXISTS messages (
|
|
@@ -7482,7 +6769,7 @@ async function saveMessages(threadId, messages) {
|
|
|
7482
6769
|
`INSERT OR REPLACE INTO messages (thread_id, id, role, participant_id, content, timestamp, root_message_id, parent_message_id, depth, thread_status, outcome_note)
|
|
7483
6770
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
7484
6771
|
);
|
|
7485
|
-
const insertMany = db2
|
|
6772
|
+
const insertMany = transactionFn(db2, (msgs) => {
|
|
7486
6773
|
for (const m of msgs) {
|
|
7487
6774
|
stmt.run(normalizedThreadId, m.id, m.role, m.participantId, m.content, m.timestamp, m.rootMessageId ?? null, m.parentMessageId ?? null, m.depth ?? 0, m.threadStatus ?? null, m.outcomeNote ?? null);
|
|
7488
6775
|
}
|
|
@@ -7510,7 +6797,7 @@ async function sweepStaleChatRuns(input) {
|
|
|
7510
6797
|
completed_at = COALESCE(completed_at, ?)
|
|
7511
6798
|
WHERE ${clauses.join(" AND ")}`
|
|
7512
6799
|
).run(now, now, ...params);
|
|
7513
|
-
return result.changes;
|
|
6800
|
+
return Number(result.changes);
|
|
7514
6801
|
});
|
|
7515
6802
|
}
|
|
7516
6803
|
async function getChatRun(chatRunId) {
|
|
@@ -7689,12 +6976,11 @@ async function saveLogs(agentProcessId, entries) {
|
|
|
7689
6976
|
const stmt = db2.prepare(
|
|
7690
6977
|
"INSERT INTO logs (agent_process_id, stream, line, timestamp) VALUES (?, ?, ?, ?)"
|
|
7691
6978
|
);
|
|
7692
|
-
|
|
6979
|
+
transaction(db2, () => {
|
|
7693
6980
|
for (const e of entries) {
|
|
7694
6981
|
stmt.run(agentProcessId, e.stream, e.line, e.timestamp);
|
|
7695
6982
|
}
|
|
7696
6983
|
});
|
|
7697
|
-
tx();
|
|
7698
6984
|
});
|
|
7699
6985
|
}
|
|
7700
6986
|
|
|
@@ -7761,15 +7047,16 @@ function parseReactionSignals(content) {
|
|
|
7761
7047
|
}
|
|
7762
7048
|
|
|
7763
7049
|
// ../agx-cloud/lib/attachment-store.ts
|
|
7764
|
-
var
|
|
7050
|
+
var import_node_sqlite7 = require("node:sqlite");
|
|
7051
|
+
init_sqlite_compat();
|
|
7765
7052
|
var import_path13 = __toESM(require("path"));
|
|
7766
7053
|
var import_os12 = __toESM(require("os"));
|
|
7767
7054
|
var HISTORY_DIR3 = process.env.AGX_GROUP_CHAT_DIR?.trim() || import_path13.default.join(import_os12.default.homedir(), ".agx", "group-chat");
|
|
7768
7055
|
var DB_PATH4 = import_path13.default.join(HISTORY_DIR3, "history.sqlite");
|
|
7769
7056
|
var UPLOADS_DIR = import_path13.default.join(HISTORY_DIR3, "uploads");
|
|
7770
7057
|
function getDb3() {
|
|
7771
|
-
const db2 = new
|
|
7772
|
-
db2
|
|
7058
|
+
const db2 = new import_node_sqlite7.DatabaseSync(DB_PATH4);
|
|
7059
|
+
pragmaSet(db2, "journal_mode = WAL");
|
|
7773
7060
|
return db2;
|
|
7774
7061
|
}
|
|
7775
7062
|
function initAttachmentsTable(db2) {
|