@ai-development-environment/server 0.0.63 → 0.0.64
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/package.json +1 -1
- package/standalone/.next/BUILD_ID +1 -1
- package/standalone/.next/app-path-routes-manifest.json +0 -1
- package/standalone/.next/build-manifest.json +3 -3
- package/standalone/.next/prerender-manifest.json +3 -3
- package/standalone/.next/routes-manifest.json +0 -8
- package/standalone/.next/server/app/[locale]/actions/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/actions-cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/actions-cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/agents/[id]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/agents/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/analytics-events/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/build-data/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/output/route.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/[commandId]/edit/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/new/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/new/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js +1 -1
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/output/route.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/commands/runs/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/comments/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/console-logs/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/costs/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/costs/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/credentials/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/credentials/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/[id]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/enroll/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/drafts/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/drafts/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/github-cache/entries/[id]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/github-cache/entries/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/github-cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/github-cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira-cache/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira-cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira-cache/tickets/[issueKey]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jira-cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/notifications/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/notifications/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/page.js +2 -3
- package/standalone/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/plans/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/plans/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/plans/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/plans/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/polling/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/polling/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/push-notifications/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/runs/new/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/runs/new/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/sessions/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/sessions/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/sessions/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/sessions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/settings/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/tools/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/unified-events/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/usage/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/webhooks/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/webhooks/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/[workflowId]/edit/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/[workflowId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/new/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/new/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/workflows/runs/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/page.js.nft.json +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_global-error.html +1 -1
- package/standalone/.next/server/app/_global-error.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.html +1 -1
- package/standalone/.next/server/app/_not-found.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js +1 -1
- package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +1 -1
- package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/codebases/by-path/route.js +1 -1
- package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/codebases/route.js +1 -1
- package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/graphql/route.js +1 -1
- package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/apns-devices/route.js +1 -1
- package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js +1 -1
- package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/ios/enrollment/start/route.js +1 -1
- package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/mcp/route.js +1 -1
- package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js +1 -1
- package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/github/webhook/route.js +1 -1
- package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js +1 -1
- package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/public/ios/profile-response/route.js +1 -1
- package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/analytics-events/route.js +1 -1
- package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/console-logs/route.js +1 -1
- package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/telemetry/export/route.js +1 -1
- package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/tools/call/route.js +1 -1
- package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/tools/catalog/route.js +1 -1
- package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +1 -1
- package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -1
- package/standalone/.next/server/app-paths-manifest.json +0 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__06u4xcm._.js → [root-of-the-server]__0-b1prw._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__09am6v3._.js → [root-of-the-server]__0-irvqy._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0191hj1._.js → [root-of-the-server]__004x00m._.js} +3 -3
- package/standalone/.next/server/chunks/{[root-of-the-server]__0-tmw39._.js → [root-of-the-server]__03ov9dn._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0eyltex._.js → [root-of-the-server]__04x0a1c._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0595xpp._.js → [root-of-the-server]__05k_3_s._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0by5o61._.js → [root-of-the-server]__05nr3-b._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__09cczk9._.js → [root-of-the-server]__05rm8ki._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__05yutuh._.js → [root-of-the-server]__06dz512._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0-upwch._.js → [root-of-the-server]__06h8dq4._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__21815pw._.js → [root-of-the-server]__07lj58j._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__01s4hkv._.js → [root-of-the-server]__082w26v._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__06dvajv._.js → [root-of-the-server]__092univ._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__03arvyv._.js → [root-of-the-server]__098thvo._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__09ormhu._.js → [root-of-the-server]__0_1h4vu._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0l4juv1._.js → [root-of-the-server]__0_ftuni._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__0b-lts3._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ckici0._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__02chrc6._.js → [root-of-the-server]__0cqe8td._.js} +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__0dsyjgc._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__02z6ofq._.js → [root-of-the-server]__0e29qi2._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0bcw4i1._.js → [root-of-the-server]__0efv9_l._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0dsr079._.js → [root-of-the-server]__0eplbf8._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0fv-9n6._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0e1uxby._.js → [root-of-the-server]__0g-h70v._.js} +1 -1
- package/standalone/.next/server/chunks/{[root-of-the-server]__0fzwzem._.js → [root-of-the-server]__0gedsnc._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0gorac4._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0hd0i41._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0hyrrl3._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0kxris6._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0lbyvuf._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0lmlzy2._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0lpn3y3._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0deutn6._.js → [root-of-the-server]__0njzyae._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0o1f0q0._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0o2vsff._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0o__n8q._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0r4layw._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0r6qwbg._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0r_1lyd._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1sgz5xe._.js → [root-of-the-server]__0rwzlp5._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__0n9n0wa._.js → [root-of-the-server]__0su5xbh._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__1g5ehjo._.js → [root-of-the-server]__0t_1g6x._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0umrmgu._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__119lu0l._.js → [root-of-the-server]__0xl63a7._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0xxlq9f._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ynqgwd._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0yo97yw._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0yukdx0._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0m09s1f._.js → [root-of-the-server]__0yx69ig._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__0zdquaj._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0zl_7f0._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1-6ac7x._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__10ax2y3._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__111axgx._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__112_ym-._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__03lh83x._.js → [root-of-the-server]__11_l9kh._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__13atbqs._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__13f0rv7._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__13ghplc._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__13y3ap6._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__145854p._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__156bqk6._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__15anbvu._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__15fe1ky._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__16gno9l._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__16y0jw6._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1inrvz6._.js → [root-of-the-server]__17v3iu3._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__17xi013._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__19yjsxi._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1__181r._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1_j58hk._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1_u7utj._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1_xypu8._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1a9n6nb._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1ahn_s1._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1v9pr22._.js → [root-of-the-server]__1amrm18._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1c93he1._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1ghtk-u._.js → [root-of-the-server]__1ca92tw._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1d2p5s7._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1e-y964._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0jin988._.js → [root-of-the-server]__1em0xu9._.js} +2 -2
- package/standalone/.next/server/chunks/{[root-of-the-server]__1yt6tih._.js → [root-of-the-server]__1f0zhzz._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1fjzpw8._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__046c9w0._.js → [root-of-the-server]__1fnlj9e._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1gg0deb._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1isy66r._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1iueadp._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1lgrdmb._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1ltxl89._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__0w9qwef._.js → [root-of-the-server]__1n2pfid._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1pchrv1._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1q3qhn3._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__1l0i6bt._.js → [root-of-the-server]__1r3djqb._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1r6cfp_._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1rkrr9y._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1s_oovo._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1syfm5l._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1t_2g9l._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1ug9sy_._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1v6-hkq._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1va_ptf._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1w83ks0._.js +3 -0
- package/standalone/.next/server/chunks/{[root-of-the-server]__04z6da6._.js → [root-of-the-server]__1w_r8ug._.js} +2 -2
- package/standalone/.next/server/chunks/[root-of-the-server]__1wgorxu._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1xh8f1z._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1xqq0j2._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1z1b8w4._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__1z8eo0j._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__20zebdq._.js +3 -0
- package/standalone/.next/server/chunks/_0_3-lke._.js +70 -9
- package/standalone/.next/server/chunks/_0d87yp6._.js +2 -2
- package/standalone/.next/server/chunks/_0rjgtla._.js +2 -2
- package/standalone/.next/server/chunks/_1_sa5xl._.js +2 -2
- package/standalone/.next/server/chunks/_1hmzed-._.js +63 -2
- package/standalone/.next/server/chunks/_1pc6dt_._.js +2 -2
- package/standalone/.next/server/chunks/_1xuucni._.js +2 -2
- package/standalone/.next/server/chunks/_1ya6q3e._.js +2 -2
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0-guq-9._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__064h18r._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0js6wx9._.js → [root-of-the-server]__07ll4k6._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0ljh3ky._.js → [root-of-the-server]__08m_tud._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0qvg807._.js → [root-of-the-server]__0iulojy._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0je1dve._.js +15 -0
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1vww3f6._.js → [root-of-the-server]__0mpg4qq._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__10rfw-t._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__08vwbx7._.js → [root-of-the-server]__1gemlo_._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1bd2arr._.js → [root-of-the-server]__1kzbjl5._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/{_14leuy3._.js → _0-o8qp9._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0158tm3._.js +22 -0
- package/standalone/.next/server/chunks/ssr/_01qjv4h._.js +10 -0
- package/standalone/.next/server/chunks/ssr/_022u7lb._.js +15 -0
- package/standalone/.next/server/chunks/ssr/_08p6s05._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0_6-vje._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_16kl8gr._.js → _0ecoxf6._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_08g6bix._.js → _0ibt6d5._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/{_18xrhsg._.js → _0ixrbdr._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0k-c9_2._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0kp37lj._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0mwg_m-._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0qi2sb7._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0rewrau._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_09bcjtq._.js → _0ro_o-3._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_0n86f1m._.js → _0sbsue7._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_0u04ikp._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0wc8st5._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_0wdqa08._.js +24 -0
- package/standalone/.next/server/chunks/ssr/_13c2e2e._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_16lbtbj._.js → _154hqy7._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/_184gcf9._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_15l7ork._.js → _18ql1ra._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/{_1oc_qeb._.js → _18y675s._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_19uhr89._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1at-ti0._.js +5 -0
- package/standalone/.next/server/chunks/ssr/_1b-tglm._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1boywnc._.js +9 -0
- package/standalone/.next/server/chunks/ssr/{_0u_x0oc._.js → _1btl6f6._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_1cbynbc._.js +21 -0
- package/standalone/.next/server/chunks/ssr/_1hjrtvv._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1i-_huq._.js +5 -0
- package/standalone/.next/server/chunks/ssr/_1j9bac7._.js +57 -0
- package/standalone/.next/server/chunks/ssr/{_13boc9b._.js → _1m3dqvf._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/_1nbvse5._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1njj5e5._.js +25 -0
- package/standalone/.next/server/chunks/ssr/_1q_8hby._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1t1ka5b._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1unm3n-._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1vx8nbn._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1wpqpq_._.js +3 -0
- package/standalone/.next/server/chunks/ssr/{_0s-_f4k._.js → _1ws3tm8._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/_1xoejuo._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_1xwodxm._.js +26 -0
- package/standalone/.next/server/chunks/ssr/_1zgu74l._.js +24 -17
- package/standalone/.next/server/chunks/ssr/messages_de_json_[json]_cjs_1uig1ud._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_en_json_[json]_cjs_206072-._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_es_json_[json]_cjs_082yukd._.js +1 -1
- package/standalone/.next/server/chunks/ssr/messages_fr_json_[json]_cjs_0j6-w0i._.js +1 -1
- package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_1up2wai._.js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_react-menu_dist_index_mjs_0r8d9ly._.js +3 -0
- package/standalone/.next/server/chunks/ssr/src_components_runs_run-detail-page_tsx_0eje87-._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_ui_195oosa._.js +3 -0
- package/standalone/.next/server/chunks/ssr/src_components_ui_198y4_o._.js +3 -0
- package/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/standalone/.next/server/next-font-manifest.js +1 -1
- package/standalone/.next/server/next-font-manifest.json +0 -4
- package/standalone/.next/server/pages/404.html +1 -1
- package/standalone/.next/server/pages/500.html +1 -1
- package/standalone/.next/server/server-reference-manifest.js +1 -1
- package/standalone/.next/server/server-reference-manifest.json +1 -1
- package/standalone/.next/static/chunks/{1_2kx7s8a2159.js → 06vdflmowpip6.js} +6 -6
- package/standalone/.next/static/chunks/07vuhvr-qtb7x.js +28 -0
- package/standalone/.next/static/chunks/{3z1isz179y8rv.js → 0_uexv6neli5u.js} +7 -7
- package/standalone/.next/static/chunks/0eo18i30uko5v.js +15 -0
- package/standalone/.next/static/chunks/0kmg7qlu8ytwf.js +59 -0
- package/standalone/.next/static/chunks/0knpwbhdkzti0.js +1 -0
- package/standalone/.next/static/chunks/{1jn5l9964tm_t.js → 0m5tuf_eivume.js} +5 -5
- package/standalone/.next/static/chunks/0mcuo36rz9j57.js +55 -0
- package/standalone/.next/static/chunks/0mpcmi3wv5r7o.js +53 -0
- package/standalone/.next/static/chunks/0n0dnronw8ezg.js +85 -0
- package/standalone/.next/static/chunks/0pn4p6w3w-j20.js +1 -0
- package/standalone/.next/static/chunks/{2yg_hcy-xlokr.js → 0pv0lqmzjn6ar.js} +11 -11
- package/standalone/.next/static/chunks/0wrm-zqne-dc8.js +9 -0
- package/standalone/.next/static/chunks/0xe08f4_etyy8.js +3 -0
- package/standalone/.next/static/chunks/1-byqle1eur_a.js +75 -0
- package/standalone/.next/static/chunks/127vn4wn5xo9p.js +49 -0
- package/standalone/.next/static/chunks/12te8dyw3x2bn.js +1 -0
- package/standalone/.next/static/chunks/17bq0x-xdn9o4.js +88 -0
- package/standalone/.next/static/chunks/19dkpj43f8v40.js +42 -0
- package/standalone/.next/static/chunks/1c42xu-oct3-l.js +1 -0
- package/standalone/.next/static/chunks/1g2nga-bvjlja.js +88 -0
- package/standalone/.next/static/chunks/1gkhfdfmj-oh0.js +43 -0
- package/standalone/.next/static/chunks/1k-_4gvcm-pyb.js +1 -0
- package/standalone/.next/static/chunks/1kjs_7sxvaxng.js +27 -0
- package/standalone/.next/static/chunks/1p730oe_-y1hj.js +1 -0
- package/standalone/.next/static/chunks/1pcc30ztgbtfp.js +34 -0
- package/standalone/.next/static/chunks/{0__52m82mb813.js → 1popvhaprqxtf.js} +1 -1
- package/standalone/.next/static/chunks/1rcjbru7lya3t.js +7 -0
- package/standalone/.next/static/chunks/1vgurgb3_kw0d.js +33 -0
- package/standalone/.next/static/chunks/{0s60he_e08soe.js → 1vhe4q0cd7aqp.js} +2 -2
- package/standalone/.next/static/chunks/1z4uktkhpz4vk.js +3 -0
- package/standalone/.next/static/chunks/21xk5pyunaike.js +120 -0
- package/standalone/.next/static/chunks/26nqjwc9aov2w.js +1 -0
- package/standalone/.next/static/chunks/28xkjksksnsd_.css +1 -0
- package/standalone/.next/static/chunks/299mqzsp8p9u8.js +1 -0
- package/standalone/.next/static/chunks/2aacfhrhmknxw.js +90 -0
- package/standalone/.next/static/chunks/2d6gk7-wy11nz.js +13 -0
- package/standalone/.next/static/chunks/2k5n-lawvi3o1.js +29 -0
- package/standalone/.next/static/chunks/{104wb_0lixxfp.js → 2lfmdc3eqlsl4.js} +17 -17
- package/standalone/.next/static/chunks/2m0zo09ce60t-.js +1 -0
- package/standalone/.next/static/chunks/2ouwnzrx0591e.js +54 -0
- package/standalone/.next/static/chunks/{24alljtl2n1j_.js → 2svylmgfm08d9.js} +6 -6
- package/standalone/.next/static/chunks/2ucnry1pj6sw1.js +64 -0
- package/standalone/.next/static/chunks/{0o8_x0u4fxie7.js → 2wgg-jr0osw4i.js} +2 -2
- package/standalone/.next/static/chunks/{3018mq1s5v8kz.js → 2wsr9efe8r8ng.js} +4 -4
- package/standalone/.next/static/chunks/2z1q99_-1kg93.js +3 -0
- package/standalone/.next/static/chunks/31809uzps9w9e.js +64 -0
- package/standalone/.next/static/chunks/31is47ulkcw19.js +37 -0
- package/standalone/.next/static/chunks/34_yps6ppoo5k.js +1 -0
- package/standalone/.next/static/chunks/34wlxu_g_2g1y.js +26 -0
- package/standalone/.next/static/chunks/3gsir-iueghp2.js +23 -0
- package/standalone/.next/static/chunks/3jkg8wqh5nnam.js +29 -0
- package/standalone/.next/static/chunks/3kly0o0iaeig-.js +24 -0
- package/standalone/.next/static/chunks/3nme8562ujl6t.js +1 -0
- package/standalone/.next/static/chunks/3sgrm30gdqnhj.js +1 -0
- package/standalone/.next/static/chunks/3txqwzevvzjhy.js +42 -0
- package/standalone/.next/static/chunks/3uhr-ha19zo61.js +23 -0
- package/standalone/.next/static/chunks/{1pjy8b30-wkw9.js → 3umkd0xpssc3q.js} +3 -3
- package/standalone/.next/static/chunks/43wopct538msd.js +1 -0
- package/standalone/.next/server/app/[locale]/action-center/page/app-paths-manifest.json +0 -3
- package/standalone/.next/server/app/[locale]/action-center/page/build-manifest.json +0 -16
- package/standalone/.next/server/app/[locale]/action-center/page/next-font-manifest.json +0 -11
- package/standalone/.next/server/app/[locale]/action-center/page/react-loadable-manifest.json +0 -1
- package/standalone/.next/server/app/[locale]/action-center/page/server-reference-manifest.json +0 -4
- package/standalone/.next/server/app/[locale]/action-center/page.js +0 -17
- package/standalone/.next/server/app/[locale]/action-center/page.js.map +0 -5
- package/standalone/.next/server/app/[locale]/action-center/page.js.nft.json +0 -1
- package/standalone/.next/server/app/[locale]/action-center/page_client-reference-manifest.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0d21gjd._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0gq25kr._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0h05dmh._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0h1j7no._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0kprqh4._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0m0ckek._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0m8pxlb._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0nu8ev9._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0p-zaud._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0p0u8fq._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0p6gqiv._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0p7s2k3._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0rq8991._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0sogo1p._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0to2fqa._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0uhlj3h._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0v6d64m._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0vs241l._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0wzgw0m._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0x5d6lo._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0xazzjb._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0xqm3n9._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0zorfix._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1-ljnib._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__11-o845._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__13_u_ro._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__13qagj_._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__14yfzp0._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__15h5kmz._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__18eaxef._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__18fpgua._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1_e5221._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1_pozkw._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1amawad._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1b2duzg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1b5470b._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1cvxm3-._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1dhuc2g._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1dx2vmk._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1ekrk8d._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1el0rwx._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1ex9wz4._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1ez1qjo._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1flzhuq._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1hgzt9m._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1i48xcq._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1im_7cr._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1jypemo._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1l9m5vm._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1lc23sg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1m14-al._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1m2x6-i._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1mlmrbg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1mttyay._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1obl6rm._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1oh_afd._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1ph5-o-._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1qcqxk2._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1qnaf-5._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1s8pdh3._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1sav-w6._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1sb1p64._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1trf87b._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1v0kdi4._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1vgd_cg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1w9gjd5._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1wey7bg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1xcsuq_._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1zo0vbv._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1zshyzr._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__1zv9v9b._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__201fjv-._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0-_5urd._.js +0 -57
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0cej3c3._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rxp26l._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-mk318._.js +0 -15
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ct2_y9._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_02hx02h._.js +0 -25
- package/standalone/.next/server/chunks/ssr/_08_kyiv._.js +0 -15
- package/standalone/.next/server/chunks/ssr/_0cz9xwo._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0ec1szn._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0ix0h2m._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0j-5kz6._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0le21ue._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0uuh5ne._.js +0 -9
- package/standalone/.next/server/chunks/ssr/_0wo43jn._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0wt_-w_._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0y-bz5b._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0yk3h5c._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0zfjp5l._.js +0 -26
- package/standalone/.next/server/chunks/ssr/_1-3pbk9._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1-s8jib._.js +0 -10
- package/standalone/.next/server/chunks/ssr/_11-g9w5._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_12ekas6._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_16zlatv._.js +0 -21
- package/standalone/.next/server/chunks/ssr/_1a-x7w1._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1bgz3gf._.js +0 -29
- package/standalone/.next/server/chunks/ssr/_1c5bgm_._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1dwtoxe._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1fy4o1o._.js +0 -22
- package/standalone/.next/server/chunks/ssr/_1jqp1me._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1lcmi6f._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_1lxr3mb._.js +0 -24
- package/standalone/.next/server/chunks/ssr/_1opkxfb._.js +0 -5
- package/standalone/.next/server/chunks/ssr/_1xbulhi._.js +0 -5
- package/standalone/.next/server/chunks/ssr/_1yctl8w._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_210pgrk._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_next-internal_server_app_[locale]_action-center_page_actions_13rr4o6.js +0 -3
- package/standalone/.next/server/chunks/ssr/node_modules_0k28hjd._.js +0 -3
- package/standalone/.next/server/chunks/ssr/node_modules_@radix-ui_0zzd3o1._.js +0 -3
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_1gjv--k.js +0 -4
- package/standalone/.next/server/chunks/ssr/src_app_[locale]_page_tsx_00h-a9t._.js +0 -3
- package/standalone/.next/server/chunks/ssr/src_components_ui_0wr97kq._.js +0 -3
- package/standalone/.next/static/chunks/01oxnu86_we4m.js +0 -27
- package/standalone/.next/static/chunks/04bs8b3m4jjfr.js +0 -1
- package/standalone/.next/static/chunks/0556n0z5a2tir.js +0 -75
- package/standalone/.next/static/chunks/05r79mew_ttoh.js +0 -3
- package/standalone/.next/static/chunks/09jeps1e4upyd.js +0 -27
- package/standalone/.next/static/chunks/0f01o_texfoo2.js +0 -3
- package/standalone/.next/static/chunks/0g6kioy8mgt7g.js +0 -1
- package/standalone/.next/static/chunks/0mv6tgkxvot06.css +0 -1
- package/standalone/.next/static/chunks/0o6ubiw38_cix.js +0 -1
- package/standalone/.next/static/chunks/0qj_41gt1wo57.js +0 -1
- package/standalone/.next/static/chunks/0qq_ney086s74.js +0 -26
- package/standalone/.next/static/chunks/0tpuj0br2ze72.js +0 -1
- package/standalone/.next/static/chunks/0vetr9kzsvj8y.js +0 -27
- package/standalone/.next/static/chunks/0wegc5r-um7u_.js +0 -49
- package/standalone/.next/static/chunks/0xcxze4dn_g4k.js +0 -1
- package/standalone/.next/static/chunks/0z9rkj63eff65.js +0 -98
- package/standalone/.next/static/chunks/1-c5wiq8svvl6.js +0 -1
- package/standalone/.next/static/chunks/16vhqh6nwwd7k.js +0 -92
- package/standalone/.next/static/chunks/17sqvm2t_n5w8.js +0 -71
- package/standalone/.next/static/chunks/1fgowguozghfx.js +0 -7
- package/standalone/.next/static/chunks/1fkbsex7h55uj.js +0 -26
- package/standalone/.next/static/chunks/1qd5oxoewa3-m.js +0 -23
- package/standalone/.next/static/chunks/1sd9kcg_rkzsu.js +0 -1
- package/standalone/.next/static/chunks/1vnglbvh2-2hk.js +0 -1
- package/standalone/.next/static/chunks/1zejpj9ig77ly.js +0 -3
- package/standalone/.next/static/chunks/26gi3xhwq--4r.js +0 -59
- package/standalone/.next/static/chunks/29xjwnfybrwxv.js +0 -1
- package/standalone/.next/static/chunks/2gepmmzvedd5t.js +0 -79
- package/standalone/.next/static/chunks/2ib66g1yoqcp0.js +0 -80
- package/standalone/.next/static/chunks/2kc9nohdlg9t0.js +0 -1
- package/standalone/.next/static/chunks/2pbe_7ml0_4a_.js +0 -24
- package/standalone/.next/static/chunks/2ratgipwpyy-4.js +0 -54
- package/standalone/.next/static/chunks/2vwr8tr2n27dp.js +0 -28
- package/standalone/.next/static/chunks/2w3pt99tr43fi.js +0 -1
- package/standalone/.next/static/chunks/2yf79r7q699-j.js +0 -29
- package/standalone/.next/static/chunks/2zx_h2f_a9r1j.js +0 -1
- package/standalone/.next/static/chunks/2zy-2tckw0276.js +0 -23
- package/standalone/.next/static/chunks/3-f9ycmnsbdq8.js +0 -55
- package/standalone/.next/static/chunks/34vrejlxl0pra.js +0 -59
- package/standalone/.next/static/chunks/3_6xtrl0kow9e.js +0 -1
- package/standalone/.next/static/chunks/3bn48ltoik3ze.js +0 -27
- package/standalone/.next/static/chunks/3c5mb2oebs86p.js +0 -53
- package/standalone/.next/static/chunks/3d7uu4x6cmams.js +0 -15
- package/standalone/.next/static/chunks/3g2-dbo8jvfd9.js +0 -1
- package/standalone/.next/static/chunks/3n4fg78e0htw8.js +0 -13
- package/standalone/.next/static/chunks/3r79mip8vpj0u.js +0 -88
- package/standalone/.next/static/chunks/3t347msjxauue.js +0 -42
- package/standalone/.next/static/chunks/3xme7jwjj_ntj.js +0 -157
- package/standalone/.next/static/chunks/44xkvdnq-prf1.js +0 -9
- /package/standalone/.next/static/{oamIXqlqBEvesdGgUx6UB → d77QrJpn4kUxmG3bXgnZw}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{oamIXqlqBEvesdGgUx6UB → d77QrJpn4kUxmG3bXgnZw}/_clientMiddlewareManifest.js +0 -0
- /package/standalone/.next/static/{oamIXqlqBEvesdGgUx6UB → d77QrJpn4kUxmG3bXgnZw}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(30030),s=e.i(820783),i=e.i(326999),r=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,n.createContextScope)("AlertDialog",[i.createDialogScope]),u=(0,i.createDialogScope)(),m=o(e=>{let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Root,{...s,...n,modal:!0})},"AlertDialog"),h=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:n,...s}=e,r=u(n);return(0,t.jsx)(i.Trigger,{...r,...s,ref:a})},"AlertDialogTrigger")),x=o(e=>{let{__scopeAlertDialog:a,...n}=e,s=u(a);return(0,t.jsx)(i.Portal,{...s,...n})},"AlertDialogPortal"),g=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:n,...s}=e,r=u(n);return(0,t.jsx)(i.Overlay,{...r,...s,ref:a})},"AlertDialogOverlay")),[p,f]=d("AlertDialogContent"),j=a.forwardRef(o(function(e,n){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),m=a.useRef(null),h=(0,s.useComposedRefs)(n,m),x=a.useRef(null);return(0,t.jsx)(p,{scope:l,cancelRef:x,children:(0,t.jsx)(i.Content,{role:"alertdialog",...c,...d,ref:h,onOpenAutoFocus:(0,r.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),C=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:n,...s}=e,r=u(n);return(0,t.jsx)(i.Title,{...r,...s,ref:a})},"AlertDialogTitle")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:n,...s}=e,r=u(n);return(0,t.jsx)(i.Description,{...r,...s,ref:a})},"AlertDialogDescription")),w=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:n,...s}=e,r=u(n);return(0,t.jsx)(i.Close,{...r,...s,ref:a})},"AlertDialogAction")),b=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:n,...r}=e,{cancelRef:l}=f("AlertDialogCancel",n),o=u(n),d=(0,s.useComposedRefs)(a,l);return(0,t.jsx)(i.Close,{...o,...r,ref:d})},"AlertDialogCancel"));e.s(["Action",0,w,"AlertDialog",0,m,"AlertDialogAction",0,w,"AlertDialogCancel",0,b,"AlertDialogContent",0,j,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,g,"AlertDialogPortal",0,x,"AlertDialogTitle",0,C,"AlertDialogTrigger",0,h,"Cancel",0,b,"Content",0,j,"Description",0,v,"Overlay",0,g,"Portal",0,x,"Root",0,m,"Title",0,C,"Trigger",0,h,"createAlertDialogScope",0,c],691162);var N=e.i(691162),N=N,y=e.i(975157),A=e.i(519455);function k({...e}){return(0,t.jsx)(N.Root,{"data-slot":"alert-dialog",...e})}function T({...e}){return(0,t.jsx)(N.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function R({...e}){return(0,t.jsx)(N.Portal,{"data-slot":"alert-dialog-portal",...e})}function D({className:e,...a}){return(0,t.jsx)(N.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,y.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function S({className:e,size:a="default",...n}){return(0,t.jsxs)(R,{children:[(0,t.jsx)(D,{}),(0,t.jsx)(N.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,y.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...n})]})}function E({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,y.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function I({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,y.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function L({className:e,...a}){return(0,t.jsx)(N.Title,{"data-slot":"alert-dialog-title",className:(0,y.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function O({className:e,...a}){return(0,t.jsx)(N.Description,{"data-slot":"alert-dialog-description",className:(0,y.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function $({className:e,variant:a="default",size:n="default",...s}){return(0,t.jsx)(A.Button,{variant:a,size:n,asChild:!0,children:(0,t.jsx)(N.Action,{"data-slot":"alert-dialog-action",className:(0,y.cn)(e),...s})})}function M({className:e,variant:a="outline",size:n="default",...s}){return(0,t.jsx)(A.Button,{variant:a,size:n,asChild:!0,children:(0,t.jsx)(N.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,y.cn)(e),...s})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:n,onConfirm:s,onOpenChange:i,open:r,title:l,trigger:o}){return(0,t.jsxs)(k,{onOpenChange:i,open:r,children:[o&&(0,t.jsx)(T,{asChild:!0,children:o}),(0,t.jsxs)(S,{children:[(0,t.jsxs)(E,{children:[(0,t.jsx)(L,{children:l}),(0,t.jsx)(O,{children:n})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(M,{children:a}),(0,t.jsx)($,{onClick:()=>void s(),variant:"destructive",children:e})]})]})]})}],340953)},489002,e=>{"use strict";let t=(0,e.i(456420).default)("circle-stop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);e.s(["CircleStop",0,t],489002)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},183691,e=>{"use strict";let t=`
|
|
2
|
+
id name description script targetKind targetAgentId targetRepositoryId
|
|
3
|
+
restartPolicy restartLimit quickActionEnabled quickActionIconKey quickActionButtonVariant
|
|
4
|
+
notificationsEnabled
|
|
5
|
+
archivedAt createdAt updatedAt
|
|
6
|
+
targetAgent { id name hostname connectionStatus capabilities }
|
|
7
|
+
targetRepository { id name displayOrigin }
|
|
8
|
+
`,a=`
|
|
9
|
+
id displayNumber commandId origin status snapshotName snapshotDescription
|
|
10
|
+
snapshotScript snapshotTargetKind snapshotRestartPolicy snapshotRestartLimit
|
|
11
|
+
snapshotNotificationsEnabled snapshot
|
|
12
|
+
agentId worktreeId agentName agentHostname worktreePath worktreeBranch
|
|
13
|
+
restartCount stopRequested nextRestartAt predecessorRunId error exitCode signal
|
|
14
|
+
queuedAt startedAt finishedAt archivedAt createdAt updatedAt
|
|
15
|
+
command { id name }
|
|
16
|
+
agent { id name hostname connectionStatus capabilities }
|
|
17
|
+
worktree { id folder branch highlightColor }
|
|
18
|
+
attempts { id attempt status exitCode signal error startedAt finishedAt }
|
|
19
|
+
`;e.s(["COMMAND_DEFINITION_FIELDS",0,t,"COMMAND_RUN_FIELDS",0,a,"activeCommandRun",0,e=>["QUEUED","RUNNING","RESTARTING","CANCELLING"].includes(e),"commandOriginKey",0,e=>{switch(e){case"QUICK_ACTION":return"originQuickAction";case"WORKFLOW":return"originWorkflow";case"RERUN":return"originRerun";default:return"originManual"}},"commandRestartKey",0,e=>{switch(e){case"ON_FAILURE":return"onFailure";case"ALWAYS":return"always";default:return"never"}},"commandStatusKey",0,e=>{switch(e){case"QUEUED":return"statusQueued";case"RUNNING":return"statusRunning";case"RESTARTING":return"statusRestarting";case"CANCELLING":return"statusCancelling";case"SUCCEEDED":return"statusSucceeded";case"FAILED":return"statusFailed";case"CANCELLED":return"statusCancelled";case"TIMED_OUT":return"statusTimedOut";default:return"status"}},"commandTargetKey",0,e=>{switch(e){case"ANY_AGENT_HOME":return"anyAgentHome";case"SPECIFIC_AGENT_HOME":return"specificAgentHome";case"REPOSITORY_WORKTREE":return"repositoryWorktree";default:return"anyWorktree"}}])},37332,e=>{"use strict";e.s(["isRowActivation",0,function(e){if(e.defaultPrevented||0!==e.button)return!1;let t=e.target;return t instanceof Element&&!!e.currentTarget.contains(t)&&!t.closest("a, button, input, select, textarea, [role='button'], [role='link'], [role='menuitem']")},"rowLinkClass",0,"-mx-1.5 rounded-md px-1.5 py-0.5 transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"])},837817,373725,e=>{"use strict";let t=(0,e.i(456420).default)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);e.s(["Undo2",0,t],837817);var a=e.i(843476),n=e.i(257428);e.s(["SelectAllCheckbox",0,function({ids:e,label:t,onChange:s,selected:i}){let r=e.length>0&&e.every(e=>i.has(e)),l=!r&&e.some(e=>i.has(e));return(0,a.jsx)(n.Checkbox,{"aria-label":t,checked:!!r||!!l&&"indeterminate",disabled:!e.length,onCheckedChange:t=>{let a=new Set(i);for(let n of e)!0===t?a.add(n):a.delete(n);s(a)}})}],373725)},887126,e=>{"use strict";let t=new Set(["RUNNING","BLOCKED","PAUSED","WAITING","IN_PROGRESS"]),a=e=>t.has(e.toUpperCase());e.s(["hasPrioritizedTableStatus",0,a,"prioritizeActiveTableRows",0,function(e){let t=[],n=[];for(let s of e)(a(s.status)?t:n).push(s);return[...t,...n]}])},858421,e=>{"use strict";let t=(0,e.i(456420).default)("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);e.s(["default",0,t])},26158,e=>{"use strict";let t=(0,e.i(456420).default)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]);e.s(["Laptop",0,t],26158)},859797,e=>{"use strict";var t=e.i(843476),a=e.i(876561),n=e.i(489002),s=e.i(259911),i=e.i(648119),r=e.i(21357),l=e.i(77071),o=e.i(741120),d=e.i(395925),c=e.i(566595),u=e.i(858421),u=u,m=e.i(573474),h=e.i(837817),x=e.i(861745),g=e.i(948148),p=e.i(271645),f=e.i(340953),j=e.i(816484),C=e.i(373725),v=e.i(929592),w=e.i(487486),b=e.i(519455),N=e.i(515288),y=e.i(257428),A=e.i(755146),k=e.i(793479),T=e.i(302747),R=e.i(967489),D=e.i(677572),S=e.i(784774),E=e.i(520133),I=e.i(637611),L=e.i(360583),O=e.i(887126),$=e.i(37332),M=e.i(975157),P=e.i(171502),H=e.i(150285),z=e.i(26158),B=e.i(776639);function K({command:e,agents:a,worktrees:n,open:s,onOpenChange:i,onSelect:l}){let o=(0,g.useTranslations)("commands"),d=e?.targetKind.includes("AGENT_HOME")??!1,c=d?a.filter(t=>e?.targetKind!=="SPECIFIC_AGENT_HOME"||t.id===e.targetAgentId):n.filter(t=>e?.targetKind!=="REPOSITORY_WORKTREE"||t.repositoryId===e.targetRepositoryId);return(0,t.jsx)(B.Dialog,{onOpenChange:i,open:s,children:(0,t.jsxs)(B.DialogContent,{className:"max-h-[80vh] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsxs)(B.DialogHeader,{children:[(0,t.jsx)(B.DialogTitle,{children:o("runCommand",{name:e?.name??""})}),(0,t.jsx)(B.DialogDescription,{children:o(d?"chooseAgentTarget":"chooseWorktreeTarget")})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[c.map(e=>{let n=d?e:null,s=d?null:e,i=n?n.capabilities.includes("command.run"):a.find(e=>e.id===s?.agentId)?.capabilities.includes("command.run")===!0;return(0,t.jsxs)(b.Button,{className:"h-auto w-full min-w-0 items-start justify-start gap-3 py-3 text-left whitespace-normal",disabled:!i,onClick:()=>l(d?{agentId:e.id}:{worktreeId:e.id}),variant:"outline",children:[d?(0,t.jsx)(z.Laptop,{}):(0,t.jsx)(H.HardDrive,{}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 [overflow-wrap:anywhere]",children:[(0,t.jsx)("span",{className:"block font-medium",children:d?`${n?.name} \xb7 ${n?.hostname}`:s?.branch||s?.folder}),(0,t.jsx)("span",{className:"block text-xs text-muted-foreground",children:d?n?.connectionStatus:`${s?.repositoryName} \xb7 ${s?.agentName} \xb7 ${s?.folder}`})]}),i?(0,t.jsx)(r.Play,{}):(0,t.jsx)(w.Badge,{variant:"secondary",children:o("upgradeAgent")})]},e.id)}),0===c.length&&(0,t.jsx)("p",{className:"py-8 text-center text-sm text-muted-foreground",children:o("noEligibleTargets")})]})]})})}var _=e.i(110204),U=e.i(624687);function F({agents:e,worktrees:a,open:n,submitting:s,onOpenChange:i,onSubmit:l}){let o=(0,g.useTranslations)("commands"),[d,c]=(0,p.useState)(""),[u,m]=(0,p.useState)(null),h=(0,p.useMemo)(()=>[...e.map(e=>({key:`agent:${e.id}`,id:e.id,kind:"AGENT",title:`${e.name} \xb7 ${e.hostname}`,detail:e.connectionStatus,upgraded:e.capabilities.includes("command.run")})),...a.map(t=>({key:`worktree:${t.id}`,id:t.id,kind:"WORKTREE",title:t.branch||t.folder,detail:`${t.repositoryName} \xb7 ${t.agentName} \xb7 ${t.folder}`,upgraded:e.find(e=>e.id===t.agentId)?.capabilities.includes("command.run")===!0}))],[e,a]),x=h.find(e=>e.key===u)??null;return(0,t.jsx)(B.Dialog,{onOpenChange:i,open:n,children:(0,t.jsxs)(B.DialogContent,{className:"max-h-[85vh] overflow-y-auto sm:max-w-2xl",children:[(0,t.jsxs)(B.DialogHeader,{children:[(0,t.jsx)(B.DialogTitle,{children:o("runCustom")}),(0,t.jsx)(B.DialogDescription,{children:o("customCommandDescription")})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(_.Label,{htmlFor:"custom-command-script",children:o("script")}),(0,t.jsx)(U.Textarea,{autoFocus:!0,className:"min-h-32 font-mono",id:"custom-command-script",onChange:e=>c(e.target.value),placeholder:o("customCommandPlaceholder"),value:d}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:o("customCommandWarning")})]}),(0,t.jsxs)("fieldset",{className:"space-y-2",children:[(0,t.jsx)("legend",{className:"text-sm font-medium",children:o("runIn")}),(0,t.jsxs)("div",{className:"grid gap-2",children:[h.map(e=>(0,t.jsxs)(b.Button,{"aria-pressed":u===e.key,className:(0,M.cn)("h-auto w-full min-w-0 items-start justify-start gap-3 py-3 text-left whitespace-normal",u===e.key&&"ring-2 ring-ring"),disabled:!e.upgraded||s,onClick:()=>m(e.key),type:"button",variant:"outline",children:["AGENT"===e.kind?(0,t.jsx)(z.Laptop,{}):(0,t.jsx)(H.HardDrive,{}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 [overflow-wrap:anywhere]",children:[(0,t.jsx)("span",{className:"block font-medium",children:e.title}),(0,t.jsx)("span",{className:"block text-xs text-muted-foreground",children:e.detail})]}),!e.upgraded&&(0,t.jsx)(w.Badge,{variant:"secondary",children:o("upgradeAgent")})]},e.key)),0===h.length&&(0,t.jsx)("p",{className:"py-8 text-center text-sm text-muted-foreground",children:o("noEligibleTargets")})]})]})]}),(0,t.jsxs)(B.DialogFooter,{children:[(0,t.jsx)(b.Button,{disabled:s,onClick:()=>i(!1),type:"button",variant:"outline",children:o("cancel")}),(0,t.jsxs)(b.Button,{disabled:!d.trim()||!x||s,onClick:()=>{x&&l(d,"AGENT"===x.kind?{agentId:x.id}:{worktreeId:x.id})},type:"button",children:[(0,t.jsx)(r.Play,{}),s?o("running"):o("run")]})]})]})})}var q=e.i(183691);e.s(["CommandsPage",0,function(){let e=(0,g.useTranslations)("commands"),H=(0,x.useLocale)(),z=(0,E.useRouter)(),[B,_]=(0,p.useState)("runs"),[U,V]=(0,p.useState)([]),[G,W]=(0,p.useState)([]),[Q,Y]=(0,p.useState)([]),[J,X]=(0,p.useState)([]),[Z,ee]=(0,p.useState)(""),[et,ea]=(0,p.useState)("ACTIVE"),[en,es]=(0,p.useState)(!1),[ei,er]=(0,p.useState)(new Set),[el,eo]=(0,p.useState)([]),[ed,ec]=(0,p.useState)(null),[eu,em]=(0,p.useState)(!1),[eh,ex]=(0,p.useState)(!1),[eg,ep]=(0,p.useState)(!0),[ef,ej]=(0,p.useState)(null),eC=(0,p.useCallback)(async()=>{try{let e=await (0,I.controlPlaneRequest)(`query CommandManagement($includeArchived: Boolean!) {
|
|
20
|
+
commandDefinitions(includeArchived: true) { ${q.COMMAND_DEFINITION_FIELDS} }
|
|
21
|
+
commandRuns(includeArchived: $includeArchived, first: 200) { nodes { ${q.COMMAND_RUN_FIELDS} } }
|
|
22
|
+
agents { id name hostname connectionStatus capabilities }
|
|
23
|
+
worktreeOverview {
|
|
24
|
+
agents { agent { id name hostname connectionStatus capabilities }
|
|
25
|
+
codebases { repository { id name } worktrees { id folder branch highlightColor } }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}`,{includeArchived:"ACTIVE"!==et});V(e.commandDefinitions),W(e.commandRuns.nodes.filter(e=>"ARCHIVED"===et?!!e.archivedAt:"ACTIVE"!==et||!e.archivedAt)),Y(e.agents),X(e.worktreeOverview.agents.flatMap(e=>e.codebases.flatMap(t=>t.worktrees.map(a=>({...a,repositoryId:t.repository.id,repositoryName:t.repository.name,agentId:e.agent.id,agentName:e.agent.name}))))),ej(null)}catch(e){ej(e instanceof Error?e.message:String(e))}finally{ep(!1)}},[et]);(0,p.useEffect)(()=>{let e=window.setTimeout(()=>void eC(),0),t=(0,I.controlPlaneSubscriptions)(),a=[t.subscribe({query:"subscription CommandsChanged { commandsChanged { id } }"},{next:()=>void eC(),error:()=>void 0,complete:()=>void 0}),t.subscribe({query:"subscription CommandRunsChanged { commandRunsChanged { id } }"},{next:()=>void eC(),error:()=>void 0,complete:()=>void 0})];return()=>{window.clearTimeout(e),a.forEach(e=>e())}},[eC]);let ev=(0,p.useMemo)(()=>(0,O.prioritizeActiveTableRows)(G.filter(e=>`${e.displayNumber} ${e.snapshotName} ${e.agentName} ${e.worktreePath??""} ${e.status}`.toLowerCase().includes(Z.toLowerCase()))),[G,Z]),ew=(0,p.useMemo)(()=>{let e=[];for(let t of ev){let a=(0,O.hasPrioritizedTableStatus)(t.status),n=(0,L.dayKey)(t.createdAt)??t.createdAt,s=a?"priority":n,i=e.at(-1);i?.key===s?i.runs.push(t):e.push({key:s,date:t.createdAt,prioritized:a,runs:[t]})}return e},[ev]),eb=U.filter(e=>`${e.name} ${e.description} ${e.targetKind}`.toLowerCase().includes(Z.toLowerCase())),eN=async(e,t)=>{try{await (0,I.controlPlaneRequest)(e,t),er(new Set),await eC()}catch(e){ej(e instanceof Error?e.message:String(e))}},ey=async(e,t)=>{try{let a=await (0,I.controlPlaneRequest)("mutation StartCommand($input: StartCommandRunInput!) { startCommandRun(input: $input) { id } }",{input:{commandId:e.id,origin:"MANUAL",...t}});ec(null),z.push(`/commands/runs/${a.startCommandRun.id}`)}catch(e){ej(e instanceof Error?e.message:String(e))}},eA=async(e,t)=>{ex(!0);try{let a=await (0,I.controlPlaneRequest)("mutation StartCustomCommand($input: StartCustomCommandRunInput!) { startCustomCommandRun(input: $input) { id } }",{input:{script:e,origin:"MANUAL",...t}});em(!1),z.push(`/commands/runs/${a.startCustomCommandRun.id}`)}catch(e){ej(e instanceof Error?e.message:String(e))}finally{ex(!1)}};return(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(b.Button,{onClick:()=>em(!0),variant:"outline",children:[(0,t.jsx)(u.default,{}),e("runCustom")]}),(0,t.jsx)(b.Button,{asChild:!0,children:(0,t.jsxs)(E.Link,{href:"/commands/new",children:[(0,t.jsx)(l.Plus,{}),e("newCommand")]})})]})]}),ef&&(0,t.jsx)(v.Alert,{variant:"destructive",children:(0,t.jsx)(v.AlertDescription,{children:ef})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsx)(D.Tabs,{value:B,onValueChange:e=>_(e),children:(0,t.jsxs)(D.TabsList,{children:[(0,t.jsx)(D.TabsTrigger,{value:"runs",children:e("runs")}),(0,t.jsx)(D.TabsTrigger,{value:"definitions",children:e("definitions")})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.Search,{className:"absolute top-2.5 left-2.5 size-4 text-muted-foreground"}),(0,t.jsx)(k.Input,{className:"w-64 pl-8",value:Z,onChange:e=>ee(e.target.value),placeholder:e("search")})]}),"runs"===B&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(R.Select,{value:et,onValueChange:e=>ea(e??"ACTIVE"),children:[(0,t.jsx)(R.SelectTrigger,{className:"w-32",children:(0,t.jsx)(R.SelectValue,{})}),(0,t.jsxs)(R.SelectContent,{children:[(0,t.jsx)(R.SelectItem,{value:"ACTIVE",children:e("active")}),(0,t.jsx)(R.SelectItem,{value:"ARCHIVED",children:e("archived")}),(0,t.jsx)(R.SelectItem,{value:"ALL",children:e("all")})]})]}),(0,t.jsxs)(b.Button,{variant:"outline",onClick:()=>{es(!en),er(new Set)},children:[(0,t.jsx)(s.FilePenLine,{}),en?e("done"):e("edit")]})]}),(0,t.jsx)(b.Button,{"aria-label":e("refresh"),size:"icon",variant:"outline",onClick:()=>void eC(),children:(0,t.jsx)(o.RefreshCw,{})})]})]}),"runs"===B&&en&&ei.size>0&&(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border p-3",children:[(0,t.jsx)("span",{className:"mr-auto text-sm text-muted-foreground",children:e("selected",{count:ei.size})}),(0,t.jsxs)(b.Button,{size:"sm",variant:"outline",onClick:()=>void eN("mutation Archive($ids: [ID!]!, $archived: Boolean!) { archiveCommandRuns(ids: $ids, archived: $archived) }",{ids:[...ei],archived:"ARCHIVED"!==et}),children:["ARCHIVED"===et?(0,t.jsx)(h.Undo2,{}):(0,t.jsx)(a.Archive,{}),"ARCHIVED"===et?e("restore"):e("archive")]}),(0,t.jsxs)(b.Button,{size:"sm",variant:"destructive",onClick:()=>eo([...ei]),children:[(0,t.jsx)(m.Trash2,{}),e("delete")]})]}),eg?"runs"===B?(0,t.jsx)(N.Card,{className:"gap-0 overflow-hidden p-4",children:(0,t.jsx)("div",{className:"space-y-3",children:[0,1,2,3,4].map(e=>(0,t.jsx)(T.Skeleton,{className:"h-8 w-full"},e))})}):(0,t.jsx)("div",{className:"grid gap-4 lg:grid-cols-2 2xl:grid-cols-3",children:[0,1,2].map(e=>(0,t.jsxs)(N.Card,{children:[(0,t.jsxs)(N.CardHeader,{children:[(0,t.jsx)(T.Skeleton,{className:"h-5 w-2/5"}),(0,t.jsx)(T.Skeleton,{className:"h-4 w-4/5"})]}),(0,t.jsxs)(N.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(T.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(T.Skeleton,{className:"h-5 w-20"})]}),(0,t.jsx)(T.Skeleton,{className:"h-8 w-full"})]})]},e))}):"runs"===B?(0,t.jsx)(N.Card,{className:"gap-0 overflow-hidden p-0",children:(0,t.jsxs)(S.Table,{children:[(0,t.jsx)(S.TableHeader,{children:(0,t.jsxs)(S.TableRow,{children:[en&&(0,t.jsx)(S.TableHead,{className:"w-10",children:(0,t.jsx)(C.SelectAllCheckbox,{ids:ev.filter(e=>!(0,q.activeCommandRun)(e.status)).map(e=>e.id),label:e("selectAll"),onChange:er,selected:ei})}),(0,t.jsx)(S.TableHead,{children:e("number")}),(0,t.jsx)(S.TableHead,{children:e("command")}),(0,t.jsx)(S.TableHead,{children:e("status")}),(0,t.jsx)(S.TableHead,{children:e("agent")}),(0,t.jsx)(S.TableHead,{children:e("worktree")}),(0,t.jsx)(S.TableHead,{children:e("started")}),(0,t.jsx)(S.TableHead,{className:"w-12"})]})}),(0,t.jsxs)(S.TableBody,{children:[ew.map(a=>(0,t.jsxs)(p.Fragment,{children:[(0,t.jsxs)(S.TableRow,{className:"bg-muted/30 hover:bg-muted/30",children:[en&&(0,t.jsx)(S.TableCell,{className:"py-2",children:!a.prioritized&&(0,t.jsx)(C.SelectAllCheckbox,{ids:a.runs.filter(e=>!(0,q.activeCommandRun)(e.status)).map(e=>e.id),label:e("selectDay",{day:(0,L.formatDateValue)(a.date,"long",{locale:H,showTime:!1})}),onChange:er,selected:ei})}),(0,t.jsx)(S.TableCell,{colSpan:7,className:"py-2 text-xs font-medium text-muted-foreground",children:a.prioritized?e("active"):(0,L.formatDateValue)(a.date,"long",{locale:H,showTime:!1})})]}),a.runs.map(a=>{let s;return(0,t.jsxs)(S.TableRow,{className:(0,M.cn)("cursor-pointer",P.worktreeHighlightBackgroundClasses[a.worktree?.highlightColor??""]),onClick:e=>{if((0,$.isRowActivation)(e))if(en){if((0,q.activeCommandRun)(a.status))return;er(e=>{let t=new Set(e);return t.has(a.id)?t.delete(a.id):t.add(a.id),t})}else z.push(`/commands/runs/${a.id}`)},children:[en&&(0,t.jsx)(S.TableCell,{children:(0,t.jsx)(y.Checkbox,{checked:ei.has(a.id),disabled:(0,q.activeCommandRun)(a.status),onCheckedChange:()=>er(e=>{let t=new Set(e);return t.has(a.id)?t.delete(a.id):t.add(a.id),t})})}),(0,t.jsx)(S.TableCell,{children:(0,t.jsxs)(E.Link,{className:(0,M.cn)($.rowLinkClass,"inline-block font-mono text-xs"),href:`/commands/runs/${a.id}`,children:["#",a.displayNumber]})}),(0,t.jsx)(S.TableCell,{children:(0,t.jsx)(E.Link,{className:(0,M.cn)($.rowLinkClass,"inline-block font-medium"),href:`/commands/runs/${a.id}`,children:a.snapshotName})}),(0,t.jsx)(S.TableCell,{children:(0,t.jsx)(w.Badge,{variant:"SUCCEEDED"===(s=a.status)?"default":"FAILED"===s||"CANCELLED"===s?"destructive":"secondary",children:e((0,q.commandStatusKey)(a.status))})}),(0,t.jsx)(S.TableCell,{children:a.agentId?(0,t.jsx)(E.Link,{className:(0,M.cn)($.rowLinkClass,"inline-block"),href:`/agents/${a.agentId}`,children:a.agentName}):a.agentName}),(0,t.jsx)(S.TableCell,{children:a.worktreeId?(0,t.jsx)(E.Link,{className:(0,M.cn)($.rowLinkClass,"inline-block max-w-48 truncate"),href:`/worktrees/${a.worktreeId}`,children:a.worktreeBranch||a.worktreePath}):a.snapshotTargetKind.includes("WORKTREE")?(0,t.jsx)("span",{className:"text-muted-foreground",children:a.worktreeBranch||a.worktreePath||e("targetUnavailable")}):(0,t.jsx)("span",{className:"text-muted-foreground",children:e("home")})}),(0,t.jsx)(S.TableCell,{children:(0,t.jsx)(j.DateTime,{kind:"time",relativeToday:!0,value:a.startedAt??a.queuedAt})}),(0,t.jsx)(S.TableCell,{children:(0,t.jsxs)(A.DropdownMenu,{children:[(0,t.jsx)(A.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(b.Button,{size:"icon",variant:"ghost",children:(0,t.jsx)(i.MoreHorizontal,{})})}),(0,t.jsx)(A.DropdownMenuContent,{align:"end",children:(0,q.activeCommandRun)(a.status)?(0,t.jsxs)(A.DropdownMenuItem,{onClick:()=>void eN("mutation Stop($id: ID!) { terminateCommandRun(id: $id) { id } }",{id:a.id}),children:[(0,t.jsx)(n.CircleStop,{}),e("terminate")]}):(0,t.jsxs)(A.DropdownMenuItem,{onClick:async()=>{let e=await (0,I.controlPlaneRequest)("mutation Rerun($id: ID!) { rerunCommandRun(id: $id) { id } }",{id:a.id});z.push(`/commands/runs/${e.rerunCommandRun.id}`)},children:[(0,t.jsx)(d.RotateCcw,{}),e("rerun")]})})]})})]},a.id)})]},a.key)),0===ev.length&&(0,t.jsx)(S.TableRow,{children:(0,t.jsx)(S.TableCell,{className:"h-32 text-center text-muted-foreground",colSpan:8,children:e("noRuns")})})]})]})}):(0,t.jsx)("div",{className:"grid gap-4 lg:grid-cols-2 2xl:grid-cols-3",children:eb.map(a=>(0,t.jsxs)(N.Card,{className:a.archivedAt?"opacity-60":"",children:[(0,t.jsx)(N.CardHeader,{children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"rounded-lg bg-muted p-2",children:(0,t.jsx)(u.default,{})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(N.CardTitle,{children:a.name}),(0,t.jsx)("p",{className:"mt-1 line-clamp-2 text-sm text-muted-foreground",children:a.description||e("noDescription")})]})]})}),(0,t.jsxs)(N.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(w.Badge,{variant:"outline",children:e((0,q.commandTargetKey)(a.targetKind))}),(0,t.jsx)(w.Badge,{variant:"outline",children:e((0,q.commandRestartKey)(a.restartPolicy))}),a.quickActionEnabled&&(0,t.jsx)(w.Badge,{children:e("quickAction")})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(b.Button,{className:"flex-1",disabled:!!a.archivedAt,onClick:()=>ec(a),children:[(0,t.jsx)(r.Play,{}),e("run")]}),(0,t.jsx)(b.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(E.Link,{href:`/commands/${a.id}/edit`,children:[(0,t.jsx)(s.FilePenLine,{}),e("edit")]})})]})]})]},a.id))}),(0,t.jsx)(K,{command:ed,agents:Q,worktrees:J,open:!!ed,onOpenChange:e=>{e||ec(null)},onSelect:e=>{ed&&ey(ed,e)}}),eu&&(0,t.jsx)(F,{agents:Q,onOpenChange:em,onSubmit:(e,t)=>void eA(e,t),open:!0,submitting:eh,worktrees:J}),(0,t.jsx)(f.ConfirmationDialog,{open:el.length>0,onOpenChange:e=>{e||eo([])},title:e("deleteRunsTitle"),description:e("deleteRunsDescription"),actionLabel:e("delete"),cancelLabel:e("cancel"),onConfirm:()=>void eN("mutation Delete($ids: [ID!]!) { deleteCommandRuns(ids: $ids) }",{ids:el})})]})}],859797)}]);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,784774,e=>{"use strict";var t=e.i(843476),s=e.i(975157);e.s(["Table",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,s.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,s.cn)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,s.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...a})},"TableFooter",0,function({className:e,...a}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,s.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a})},"TableHead",0,function({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,s.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...a})},"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,s.cn)("[&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,s.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...a})}])},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,784774,e=>{"use strict";var t=e.i(843476),s=e.i(975157);e.s(["Table",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,s.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,s.cn)("[&_tr:last-child]:border-0",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,s.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...a})},"TableFooter",0,function({className:e,...a}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,s.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a})},"TableHead",0,function({className:e,...a}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,s.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...a})},"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,s.cn)("[&_tr]:border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,s.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...a})}])},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},635416,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,t],635416)},96892,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],96892)},228495,e=>{"use strict";var t=e.i(843476),s=e.i(635416),a=e.i(96892);let r=(0,e.i(456420).default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);var l=e.i(519455),n=e.i(784774),o=e.i(975157);e.s(["SortableTableHead",0,function({active:e,align:i="left",ariaLabel:c,className:d,direction:u,label:h,onSort:m}){return(0,t.jsx)(n.TableHead,{"aria-sort":e?"asc"===u?"ascending":"descending":"none",className:(0,o.cn)("h-8 px-2",d),children:(0,t.jsxs)(l.Button,{"aria-label":c,className:(0,o.cn)("-mx-2 h-7 px-2 text-xs","right"===i?"w-[calc(100%+1rem)] justify-end":"justify-start"),onClick:m,size:"sm",title:c,type:"button",variant:"ghost",children:[h,e?"asc"===u?(0,t.jsx)(a.ArrowUp,{}):(0,t.jsx)(s.ArrowDown,{}):(0,t.jsx)(r,{})]})})}],228495)},747749,e=>{"use strict";var t=e.i(843476),s=e.i(741120),a=e.i(395925),r=e.i(856522),l=e.i(566595),n=e.i(861745),o=e.i(948148),i=e.i(271645),c=e.i(816484),d=e.i(228495),u=e.i(929592),h=e.i(487486),m=e.i(519455),x=e.i(515288),f=e.i(793479),p=e.i(110204),g=e.i(987968),C=e.i(784774),b=e.i(637611);let j=`
|
|
2
2
|
model provider mode
|
|
3
3
|
inputCostPerToken outputCostPerToken
|
|
4
4
|
cacheReadCostPerToken cacheWriteCostPerToken
|
|
5
5
|
maxInputTokens maxOutputTokens updatedAt
|
|
6
6
|
`,v=`
|
|
7
7
|
url defaultUrl customUrl fetchedAt entryCount error stale
|
|
8
|
-
`;function y(e,t){if(null===e)return"—";let s=1e6*e;return 0===s?"$0":`$${s.toLocaleString(t,{maximumFractionDigits:s<1?4:2,minimumFractionDigits:2})}`}e.s(["CostsPage",0,function(){let e=(0,
|
|
8
|
+
`;function y(e,t){if(null===e)return"—";let s=1e6*e;return 0===s?"$0":`$${s.toLocaleString(t,{maximumFractionDigits:s<1?4:2,minimumFractionDigits:2})}`}e.s(["CostsPage",0,function(){let e=(0,o.useTranslations)("costs"),w=(0,n.useLocale)(),[T,S]=(0,i.useState)(null),[k,N]=(0,i.useState)([]),[M,$]=(0,i.useState)(0),[R,D]=(0,i.useState)(""),[E,P]=(0,i.useState)({key:"MODEL",direction:"ASC"}),[A,U]=(0,i.useState)(""),[O,I]=(0,i.useState)(!0),[H,B]=(0,i.useState)(!1),[K,L]=(0,i.useState)(null),[q,_]=(0,i.useState)(null),F=(0,i.useRef)(null),W=(0,i.useCallback)(e=>{S(e),U(e.customUrl??"")},[]),V=(0,i.useCallback)(async(e,t)=>{try{let s=await (0,b.controlPlaneRequest)(`query CostsPage($search: String, $first: Int!, $sortKey: ModelCostSortKey!, $direction: ModelCostSortDirection!) {
|
|
9
9
|
modelCostCatalog { ${v} }
|
|
10
10
|
modelCostEntries(search: $search, first: $first, sortKey: $sortKey, direction: $direction) {
|
|
11
|
-
items { ${
|
|
11
|
+
items { ${j} }
|
|
12
12
|
totalCount
|
|
13
13
|
}
|
|
14
|
-
}`,{search:e||null,first:100,sortKey:t.key,direction:t.direction});W(s.modelCostCatalog),N(s.modelCostEntries.items),$(s.modelCostEntries.totalCount),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{I(!1)}},[W]),z=(0,
|
|
14
|
+
}`,{search:e||null,first:100,sortKey:t.key,direction:t.direction});W(s.modelCostCatalog),N(s.modelCostEntries.items),$(s.modelCostEntries.totalCount),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{I(!1)}},[W]),z=(0,i.useRef)(R);(0,i.useEffect)(()=>{let e=z.current!==R;z.current=R;let t=window.setTimeout(()=>void V(R,E),250*!!e);return()=>window.clearTimeout(t)},[V,R,E]);let X=(0,i.useCallback)(async()=>{B(!0);try{let e=await (0,b.controlPlaneRequest)(`query MoreModelCosts($search: String, $first: Int!, $offset: Int!, $sortKey: ModelCostSortKey!, $direction: ModelCostSortDirection!) {
|
|
15
15
|
modelCostEntries(search: $search, first: $first, offset: $offset, sortKey: $sortKey, direction: $direction) {
|
|
16
|
-
items { ${
|
|
16
|
+
items { ${j} }
|
|
17
17
|
totalCount
|
|
18
18
|
}
|
|
19
|
-
}`,{search:R||null,first:100,offset:k.length,sortKey:E.key,direction:E.direction});N(t=>{let s=new Set(t.map(({model:e})=>e));return[...t,...e.modelCostEntries.items.filter(({model:e})=>!s.has(e))]}),$(e.modelCostEntries.totalCount)}catch(e){_(e instanceof Error?e.message:String(e))}finally{B(!1)}},[k.length,R,E]);(0,
|
|
19
|
+
}`,{search:R||null,first:100,offset:k.length,sortKey:E.key,direction:E.direction});N(t=>{let s=new Set(t.map(({model:e})=>e));return[...t,...e.modelCostEntries.items.filter(({model:e})=>!s.has(e))]}),$(e.modelCostEntries.totalCount)}catch(e){_(e instanceof Error?e.message:String(e))}finally{B(!1)}},[k.length,R,E]);(0,i.useEffect)(()=>{if(O||H||q||k.length>=M)return;let e=F.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&X()},{rootMargin:"400px 0px"});return t.observe(e),()=>t.disconnect()},[k.length,q,X,O,H,M]);let G=async e=>{e.preventDefault(),L("save");try{let e=await (0,b.controlPlaneRequest)(`mutation SaveModelCostSettings($catalogUrl: String) {
|
|
20
20
|
saveModelCostSettings(catalogUrl: $catalogUrl) { ${v} }
|
|
21
|
-
}`,{catalogUrl:A.trim()||null});W(e.saveModelCostSettings),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{L(null)}},J=async()=>{L("refresh");try{await (0,
|
|
21
|
+
}`,{catalogUrl:A.trim()||null});W(e.saveModelCostSettings),_(null)}catch(e){_(e instanceof Error?e.message:String(e))}finally{L(null)}},J=async()=>{L("refresh");try{await (0,b.controlPlaneRequest)(`mutation RefreshModelCosts {
|
|
22
22
|
refreshModelCosts { ${v} }
|
|
23
23
|
}`),await V(R,E)}catch(e){_(e instanceof Error?e.message:String(e))}finally{L(null)}};return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)(m.Button,{disabled:null!==K,onClick:()=>void J(),children:["refresh"===K?(0,t.jsx)(g.Spinner,{}):(0,t.jsx)(s.RefreshCw,{})," ",e("fetchLatest")]})]}),q&&(0,t.jsx)(u.Alert,{variant:"destructive",children:(0,t.jsx)(u.AlertDescription,{children:q})}),T?.error&&(0,t.jsx)(u.Alert,{variant:"destructive",children:(0,t.jsx)(u.AlertDescription,{children:e("lastFetchFailed",{error:T.error})})}),(0,t.jsxs)(x.Card,{children:[(0,t.jsxs)(x.CardHeader,{children:[(0,t.jsx)(x.CardTitle,{children:e("sourceTitle")}),(0,t.jsx)(x.CardDescription,{children:e("sourceDescription")})]}),(0,t.jsxs)(x.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("form",{className:"flex flex-wrap gap-2",onSubmit:e=>void G(e),children:[(0,t.jsx)(p.Label,{className:"sr-only",htmlFor:"model-cost-url",children:e("catalogUrl")}),(0,t.jsx)(f.Input,{className:"min-w-0 flex-1 font-mono text-xs",id:"model-cost-url",onChange:e=>U(e.target.value),placeholder:T?.defaultUrl??"",type:"url",value:A}),(0,t.jsxs)(m.Button,{disabled:null!==K,type:"submit",variant:"outline",children:["save"===K?(0,t.jsx)(g.Spinner,{}):(0,t.jsx)(r.Save,{})," ",e("save")]}),(0,t.jsxs)(m.Button,{disabled:null!==K||!A,onClick:()=>U(""),type:"button",variant:"ghost",children:[(0,t.jsx)(a.RotateCcw,{})," ",e("useDefault")]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[e("lastFetched"),T?.fetchedAt?(0,t.jsx)(c.DateTime,{value:T.fetchedAt}):e("never")]}),(0,t.jsx)("span",{children:e("modelCount",{count:T?.entryCount??0})}),T?.customUrl?(0,t.jsx)(h.Badge,{variant:"outline",children:e("customSource")}):(0,t.jsx)(h.Badge,{variant:"outline",children:e("defaultSource")}),T?.stale&&(0,t.jsx)(h.Badge,{variant:"outline",children:e("staleCatalog")})]})]})]}),(0,t.jsxs)(x.Card,{className:"gap-0 overflow-hidden py-0",children:[(0,t.jsx)(x.CardHeader,{className:"border-b py-4",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(x.CardTitle,{children:e("modelsTitle")}),(0,t.jsx)(x.CardDescription,{children:e("modelsDescription")})]}),(0,t.jsxs)("div",{className:"relative w-full sm:w-72",children:[(0,t.jsx)(l.Search,{className:"pointer-events-none absolute top-2.5 left-3 size-4 text-muted-foreground"}),(0,t.jsx)(f.Input,{"aria-label":e("searchModels"),className:"pl-9",onChange:e=>D(e.target.value),placeholder:e("searchModels"),type:"search",value:R})]})]})}),(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)(C.Table,{children:[(0,t.jsx)(C.TableHeader,{children:(0,t.jsx)(C.TableRow,{children:[["MODEL",e("model"),"left","pl-3"],["PROVIDER",e("provider"),"left",void 0],["INPUT_COST",e("inputPrice"),"right",void 0],["OUTPUT_COST",e("outputPrice"),"right",void 0],["CACHE_READ_COST",e("cacheReadPrice"),"right",void 0],["CACHE_WRITE_COST",e("cacheWritePrice"),"right",void 0],["CONTEXT_WINDOW",e("contextWindow"),"right","pr-3"]].map(([s,a,r,l])=>(0,t.jsx)(d.SortableTableHead,{active:E.key===s,align:r,ariaLabel:e("sortBy",{column:a}),className:l,direction:"ASC"===E.direction?"asc":"desc",label:a,onSort:()=>P(e=>e.key===s?{key:s,direction:"ASC"===e.direction?"DESC":"ASC"}:{key:s,direction:"MODEL"===s||"PROVIDER"===s?"ASC":"DESC"})},s))})}),(0,t.jsxs)(C.TableBody,{children:[k.map(e=>(0,t.jsxs)(C.TableRow,{children:[(0,t.jsx)(C.TableCell,{className:"pl-4 font-mono text-xs",children:e.model}),(0,t.jsx)(C.TableCell,{className:"text-sm text-muted-foreground",children:e.provider??"—"}),(0,t.jsx)(C.TableCell,{className:"text-right tabular-nums",children:y(e.inputCostPerToken,w)}),(0,t.jsx)(C.TableCell,{className:"text-right tabular-nums",children:y(e.outputCostPerToken,w)}),(0,t.jsx)(C.TableCell,{className:"text-right tabular-nums",children:y(e.cacheReadCostPerToken,w)}),(0,t.jsx)(C.TableCell,{className:"text-right tabular-nums",children:y(e.cacheWriteCostPerToken,w)}),(0,t.jsx)(C.TableCell,{className:"pr-4 text-right tabular-nums",children:null===e.maxInputTokens?"—":e.maxInputTokens.toLocaleString(w)})]},e.model)),!k.length&&(0,t.jsx)(C.TableRow,{children:(0,t.jsx)(C.TableCell,{className:"h-24 text-center text-muted-foreground",colSpan:7,children:O?(0,t.jsx)(g.Spinner,{}):e("noModels")})})]})]})}),k.length>0&&(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 border-t p-3 text-sm text-muted-foreground",children:[(0,t.jsx)("span",{children:e("showingCount",{shown:k.length,total:M})}),k.length<M&&(0,t.jsx)("div",{className:"flex min-h-6 items-center gap-2",ref:F,role:"status",children:H&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.Spinner,{})," ",e("loadingMore")]})})]})]})]})}],747749)}]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(30030),l=e.i(820783),r=e.i(326999),s=e.i(981140),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0}),[d,c]=(0,i.createContextScope)("AlertDialog",[r.createDialogScope]),u=(0,r.createDialogScope)(),h=o(e=>{let{__scopeAlertDialog:a,...i}=e,l=u(a);return(0,t.jsx)(r.Root,{...l,...i,modal:!0})},"AlertDialog"),x=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:i,...l}=e,s=u(i);return(0,t.jsx)(r.Trigger,{...s,...l,ref:a})},"AlertDialogTrigger")),f=o(e=>{let{__scopeAlertDialog:a,...i}=e,l=u(a);return(0,t.jsx)(r.Portal,{...l,...i})},"AlertDialogPortal"),m=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:i,...l}=e,s=u(i);return(0,t.jsx)(r.Overlay,{...s,...l,ref:a})},"AlertDialogOverlay")),[p,g]=d("AlertDialogContent"),j=a.forwardRef(o(function(e,i){let{__scopeAlertDialog:n,children:o,...d}=e,c=u(n),h=a.useRef(null),x=(0,l.useComposedRefs)(i,h),f=a.useRef(null);return(0,t.jsx)(p,{scope:n,cancelRef:f,children:(0,t.jsx)(r.Content,{role:"alertdialog",...c,...d,ref:x,onOpenAutoFocus:(0,s.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),f.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),w=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:i,...l}=e,s=u(i);return(0,t.jsx)(r.Title,{...s,...l,ref:a})},"AlertDialogTitle")),v=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:i,...l}=e,s=u(i);return(0,t.jsx)(r.Description,{...s,...l,ref:a})},"AlertDialogDescription")),k=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:i,...l}=e,s=u(i);return(0,t.jsx)(r.Close,{...s,...l,ref:a})},"AlertDialogAction")),b=a.forwardRef(o(function(e,a){let{__scopeAlertDialog:i,...s}=e,{cancelRef:n}=g("AlertDialogCancel",i),o=u(i),d=(0,l.useComposedRefs)(a,n);return(0,t.jsx)(r.Close,{...o,...s,ref:d})},"AlertDialogCancel"));e.s(["Action",0,k,"AlertDialog",0,h,"AlertDialogAction",0,k,"AlertDialogCancel",0,b,"AlertDialogContent",0,j,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,m,"AlertDialogPortal",0,f,"AlertDialogTitle",0,w,"AlertDialogTrigger",0,x,"Cancel",0,b,"Content",0,j,"Description",0,v,"Overlay",0,m,"Portal",0,f,"Root",0,h,"Title",0,w,"Trigger",0,x,"createAlertDialogScope",0,c],691162);var C=e.i(691162),C=C,y=e.i(975157),T=e.i(519455);function A({...e}){return(0,t.jsx)(C.Root,{"data-slot":"alert-dialog",...e})}function N({...e}){return(0,t.jsx)(C.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function D({...e}){return(0,t.jsx)(C.Portal,{"data-slot":"alert-dialog-portal",...e})}function R({className:e,...a}){return(0,t.jsx)(C.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,y.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...a})}function S({className:e,size:a="default",...i}){return(0,t.jsxs)(D,{children:[(0,t.jsx)(R,{}),(0,t.jsx)(C.Content,{"data-slot":"alert-dialog-content","data-size":a,className:(0,y.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i})]})}function z({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,y.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...a})}function I({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,y.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...a})}function $({className:e,...a}){return(0,t.jsx)(C.Title,{"data-slot":"alert-dialog-title",className:(0,y.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...a})}function E({className:e,...a}){return(0,t.jsx)(C.Description,{"data-slot":"alert-dialog-description",className:(0,y.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...a})}function M({className:e,variant:a="default",size:i="default",...l}){return(0,t.jsx)(T.Button,{variant:a,size:i,asChild:!0,children:(0,t.jsx)(C.Action,{"data-slot":"alert-dialog-action",className:(0,y.cn)(e),...l})})}function P({className:e,variant:a="outline",size:i="default",...l}){return(0,t.jsx)(T.Button,{variant:a,size:i,asChild:!0,children:(0,t.jsx)(C.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,y.cn)(e),...l})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:a,description:i,onConfirm:l,onOpenChange:r,open:s,title:n,trigger:o}){return(0,t.jsxs)(A,{onOpenChange:r,open:s,children:[o&&(0,t.jsx)(N,{asChild:!0,children:o}),(0,t.jsxs)(S,{children:[(0,t.jsxs)(z,{children:[(0,t.jsx)($,{children:n}),(0,t.jsx)(E,{children:i})]}),(0,t.jsxs)(I,{children:[(0,t.jsx)(P,{children:a}),(0,t.jsx)(M,{onClick:()=>void l(),variant:"destructive",children:e})]})]})]})}],340953)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),a=e.i(225913),i=e.i(975157);let l=(0,a.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,i.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...a})},"EmptyDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,i.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...a})},"EmptyHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,i.cn)("flex max-w-sm flex-col items-center gap-2",e),...a})},"EmptyMedia",0,function({className:e,variant:a="default",...r}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":a,className:(0,i.cn)(l({variant:a,className:e})),...r})},"EmptyTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,i.cn)("font-heading text-sm font-medium tracking-tight",e),...a})}])},876561,e=>{"use strict";let t=(0,e.i(456420).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);e.s(["Archive",0,t],876561)},832297,e=>{"use strict";var t=e.i(187921);e.s(["CirclePlay",()=>t.default])},997778,e=>{"use strict";var t=e.i(843476),a=e.i(948148),i=e.i(271645),l=e.i(755146);e.s(["WorkflowChoiceMenu",0,function({button:e,choices:r,hasPlainTrigger:s=!1,onRun:n}){let o=(0,a.useTranslations)("workflows");return r.length?(0,t.jsxs)(l.DropdownMenu,{children:[(0,t.jsx)(l.DropdownMenuTrigger,{asChild:!0,children:e}),(0,t.jsxs)(l.DropdownMenuContent,{align:"start",className:"max-w-64",children:[s&&(0,t.jsx)(l.DropdownMenuItem,{onSelect:()=>n(null),children:o("fullRun")}),r.map(e=>(0,t.jsx)(l.DropdownMenuItem,{onSelect:()=>n(e.key),children:(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate",children:e.label}),e.description&&(0,t.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:e.description})]})},e.key))]})]}):(0,i.cloneElement)(e,{onClick:()=>n(null)})}])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},37332,e=>{"use strict";e.s(["isRowActivation",0,function(e){if(e.defaultPrevented||0!==e.button)return!1;let t=e.target;return t instanceof Element&&!!e.currentTarget.contains(t)&&!t.closest("a, button, input, select, textarea, [role='button'], [role='link'], [role='menuitem']")},"rowLinkClass",0,"-mx-1.5 rounded-md px-1.5 py-0.5 transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"])},837817,373725,e=>{"use strict";let t=(0,e.i(456420).default)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);e.s(["Undo2",0,t],837817);var a=e.i(843476),i=e.i(257428);e.s(["SelectAllCheckbox",0,function({ids:e,label:t,onChange:l,selected:r}){let s=e.length>0&&e.every(e=>r.has(e)),n=!s&&e.some(e=>r.has(e));return(0,a.jsx)(i.Checkbox,{"aria-label":t,checked:!!s||!!n&&"indeterminate",disabled:!e.length,onCheckedChange:t=>{let a=new Set(r);for(let i of e)!0===t?a.add(i):a.delete(i);l(a)}})}],373725)},887126,e=>{"use strict";let t=new Set(["RUNNING","BLOCKED","PAUSED","WAITING","IN_PROGRESS"]),a=e=>t.has(e.toUpperCase());e.s(["hasPrioritizedTableStatus",0,a,"prioritizeActiveTableRows",0,function(e){let t=[],i=[];for(let l of e)(a(l.status)?t:i).push(l);return[...t,...i]}])},4999,e=>{"use strict";var t=e.i(843476),a=e.i(876561),i=e.i(832297),l=e.i(259911),r=e.i(456420);let s=(0,r.default)("file-up",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]]);var n=e.i(120283),o=e.i(648119),d=e.i(77071),c=e.i(741120),u=e.i(566595),h=e.i(573474),x=e.i(837817);let f=(0,r.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var m=e.i(861745),p=e.i(948148),g=e.i(271645),j=e.i(340953),w=e.i(816484),v=e.i(373725),k=e.i(929592),b=e.i(487486),C=e.i(519455),y=e.i(515288),T=e.i(257428),A=e.i(755146),N=e.i(82612),D=e.i(950594),R=e.i(967489),S=e.i(302747),z=e.i(677572),I=e.i(784774),$=e.i(746798),E=e.i(520133),M=e.i(637611),P=e.i(360583),L=e.i(887126),B=e.i(37332),H=e.i(975157),W=e.i(997778),O=e.i(349049),V=e.i(399668);let q=`
|
|
2
|
+
id name description draftDefinition activeVersionId enabled overlapPolicy maxConcurrentRuns archivedAt quickActionKind quickActionIconKey quickActionButtonVariant
|
|
3
|
+
quickActionRepositories { id name displayOrigin }
|
|
4
|
+
hasPlainTrigger
|
|
5
|
+
triggerChoices { key label description }
|
|
6
|
+
versionCount runCount createdAt updatedAt
|
|
7
|
+
`,K=`
|
|
8
|
+
id displayNumber workflowId triggerKind triggerSubjectKey status phase generation
|
|
9
|
+
blockedReason error queuedAt startedAt pausedAt finishedAt archivedAt createdAt
|
|
10
|
+
workflow { id name }
|
|
11
|
+
version { id workflowId version name description schemaVersion definition contentHash publishedAt }
|
|
12
|
+
`;e.s(["WorkflowsPage",0,function(){let e=(0,p.useTranslations)("workflows"),r=(0,V.useWorkflowLabels)(),U=(0,m.useLocale)(),_=(0,E.useRouter)(),F=(0,g.useRef)(null),[G,J]=(0,g.useState)("runs"),[Q,X]=(0,g.useState)([]),[Y,Z]=(0,g.useState)([]),[ee,et]=(0,g.useState)(""),[ea,ei]=(0,g.useState)("ACTIVE"),[el,er]=(0,g.useState)(!1),[es,en]=(0,g.useState)(new Set),[eo,ed]=(0,g.useState)([]),[ec,eu]=(0,g.useState)(!0),[eh,ex]=(0,g.useState)(null),ef=(0,g.useCallback)(async()=>{try{let e=await (0,M.controlPlaneRequest)(`query WorkflowManagement($archive: String!) {
|
|
13
|
+
workflows(first: 200) { items { ${q} } }
|
|
14
|
+
workflowRuns(archive: $archive, first: 200) { items { ${K} } }
|
|
15
|
+
}`,{archive:ea});X(e.workflows.items),Z(e.workflowRuns.items),ex(null)}catch(e){ex(e instanceof Error?e.message:String(e))}finally{eu(!1)}},[ea]);(0,g.useEffect)(()=>{let e=window.setTimeout(()=>void ef(),0),t=(0,M.controlPlaneSubscriptions)().subscribe({query:"subscription WorkflowListChanges { workflowsChanged { id } }"},{next:()=>void ef(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(e),t()}},[ef]);let em=(0,g.useMemo)(()=>Q.filter(e=>`${e.name} ${e.description}`.toLowerCase().includes(ee.toLowerCase())),[ee,Q]),ep=(0,g.useMemo)(()=>(0,L.prioritizeActiveTableRows)(Y.filter(e=>`${e.displayNumber} ${e.workflow.name} ${e.status} ${e.triggerKind}`.toLowerCase().includes(ee.toLowerCase()))),[Y,ee]),eg=(0,g.useMemo)(()=>{let e=[];for(let t of ep){let a=(0,L.hasPrioritizedTableStatus)(t.status),i=(0,P.dayKey)(t.createdAt)??t.createdAt,l=a?"priority":i,r=e.at(-1);r?.key===l?r.items.push(t):e.push({key:l,value:t.createdAt,prioritized:a,items:[t]})}return e},[ep]),ej=async(e,t)=>{try{await (0,M.controlPlaneRequest)(e,t),en(new Set),ex(null),await ef()}catch(e){ex(e instanceof Error?e.message:String(e))}},ew=(e,t)=>ej("mutation ArchiveWorkflowRuns($ids: [ID!]!, $archived: Boolean!) { archiveWorkflowRuns(ids: $ids, archived: $archived) }",{ids:e,archived:t}),ev=async(e,t,a=null)=>{try{if("enabled"===t)await (0,M.controlPlaneRequest)("mutation ToggleWorkflow($id: ID!, $enabled: Boolean!) { setWorkflowEnabled(id: $id, enabled: $enabled) { id } }",{id:e.id,enabled:!e.enabled});else if("archive"===t)await (0,M.controlPlaneRequest)("mutation ArchiveWorkflow($id: ID!) { archiveWorkflow(id: $id, archived: true) { id } }",{id:e.id});else{let t=await (0,M.controlPlaneRequest)("mutation TriggerWorkflow($input: TriggerWorkflowInput!) { triggerWorkflow(input: $input) { id } }",{input:{workflowId:e.id,sessionData:{},choice:a}});_.push(`/workflows/runs/${t.triggerWorkflow.id}`)}await ef()}catch(e){ex(e instanceof Error?e.message:String(e))}},ek=async e=>{try{let t=JSON.parse(await e.text()),a=await (0,M.controlPlaneRequest)("mutation ImportWorkflow($input: ImportWorkflowInput!) { importWorkflow(input: $input) { id } }",{input:{payload:t}});_.push(`/workflows/${a.importWorkflow.id}/edit`)}catch(e){ex(e instanceof Error?e.message:String(e))}};return(0,t.jsxs)("div",{className:"space-y-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("descriptionLong")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("input",{accept:"application/json,.json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];t&&ek(t),e.target.value=""},ref:F,type:"file"}),(0,t.jsxs)(C.Button,{onClick:()=>F.current?.click(),variant:"outline",children:[(0,t.jsx)(s,{})," ",e("import")]}),(0,t.jsx)(C.Button,{asChild:!0,children:(0,t.jsxs)(E.Link,{href:"/workflows/new",children:[(0,t.jsx)(d.Plus,{})," ",e("newWorkflow")]})})]})]}),eh&&(0,t.jsx)(k.Alert,{variant:"destructive",children:(0,t.jsx)(k.AlertDescription,{children:eh})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,t.jsx)(z.Tabs,{onValueChange:e=>J(e),value:G,children:(0,t.jsxs)(z.TabsList,{children:[(0,t.jsx)(z.TabsTrigger,{value:"runs",children:e("allRuns")}),(0,t.jsx)(z.TabsTrigger,{value:"workflows",children:e("workflowsTab")})]})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsxs)(D.InputGroup,{className:"w-64",children:[(0,t.jsx)(D.InputGroupAddon,{children:(0,t.jsx)(u.Search,{})}),(0,t.jsx)(D.InputGroupInput,{"aria-label":e("search"),onChange:e=>et(e.target.value),placeholder:e("search"),value:ee})]}),"runs"===G&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(R.Select,{onValueChange:e=>{ei(e??"ACTIVE"),en(new Set)},value:ea,children:[(0,t.jsx)(R.SelectTrigger,{"aria-label":e("archiveFilter"),children:(0,t.jsx)(R.SelectValue,{})}),(0,t.jsxs)(R.SelectContent,{children:[(0,t.jsx)(R.SelectItem,{value:"ACTIVE",children:e("active")}),(0,t.jsx)(R.SelectItem,{value:"ARCHIVED",children:e("archived")}),(0,t.jsx)(R.SelectItem,{value:"ALL",children:e("all")})]})]}),(0,t.jsxs)(C.Button,{onClick:()=>{er(e=>!e),en(new Set)},variant:"outline",children:[(0,t.jsx)(l.FilePenLine,{})," ",el?e("done"):e("editRuns")]})]}),(0,t.jsxs)($.Tooltip,{children:[(0,t.jsx)($.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(C.Button,{"aria-label":e("refresh"),onClick:()=>void ef(),size:"icon",variant:"outline",children:(0,t.jsx)(c.RefreshCw,{})})}),(0,t.jsx)($.TooltipContent,{children:e("refresh")})]})]})]}),"runs"===G&&el&&es.size>0&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 rounded-lg border bg-muted/30 p-3",children:[(0,t.jsx)("span",{className:"mr-auto text-sm text-muted-foreground",children:e("selectedRuns",{count:es.size})}),(0,t.jsxs)(C.Button,{onClick:()=>void ew([...es],"ARCHIVED"!==ea),size:"sm",variant:"outline",children:["ARCHIVED"===ea?(0,t.jsx)(x.Undo2,{}):(0,t.jsx)(a.Archive,{})," ","ARCHIVED"===ea?e("restore"):e("archive")]}),(0,t.jsxs)(C.Button,{onClick:()=>ed([...es]),size:"sm",variant:"destructive",children:[(0,t.jsx)(h.Trash2,{})," ",e("delete")]})]}),ec?"runs"===G?(0,t.jsx)(y.Card,{className:"gap-0 overflow-hidden p-4",children:(0,t.jsx)("div",{className:"space-y-3",children:[0,1,2,3,4].map(e=>(0,t.jsx)(S.Skeleton,{className:"h-8 w-full"},e))})}):(0,t.jsx)("div",{className:"grid gap-4 lg:grid-cols-2 2xl:grid-cols-3",children:[0,1,2].map(e=>(0,t.jsxs)(y.Card,{children:[(0,t.jsxs)(y.CardHeader,{children:[(0,t.jsx)(S.Skeleton,{className:"h-5 w-2/5"}),(0,t.jsx)(S.Skeleton,{className:"h-4 w-4/5"})]}),(0,t.jsxs)(y.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(S.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(S.Skeleton,{className:"h-5 w-20"})]}),(0,t.jsx)(S.Skeleton,{className:"h-8 w-full"})]})]},e))}):"workflows"===G?em.length?(0,t.jsx)("div",{className:"grid gap-4 lg:grid-cols-2 2xl:grid-cols-3",children:em.map(l=>(0,t.jsxs)(y.Card,{children:[(0,t.jsxs)(y.CardHeader,{children:[(0,t.jsx)(y.CardTitle,{className:"truncate",children:(0,t.jsx)(E.Link,{className:"hover:underline",href:`/workflows/${l.id}`,children:l.name})}),(0,t.jsx)("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:l.description||e("noDescription")}),(0,t.jsx)(y.CardAction,{children:(0,t.jsxs)(A.DropdownMenu,{children:[(0,t.jsxs)($.Tooltip,{children:[(0,t.jsx)($.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(A.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(C.Button,{"aria-label":e("actions"),size:"icon",variant:"ghost",children:(0,t.jsx)(o.MoreHorizontal,{})})})}),(0,t.jsx)($.TooltipContent,{children:e("actions")})]}),(0,t.jsxs)(A.DropdownMenuContent,{align:"end",children:[(0,t.jsx)(A.DropdownMenuItem,{asChild:!0,children:(0,t.jsx)(E.Link,{href:`/workflows/${l.id}/edit`,children:e("edit")})}),(0,t.jsx)(A.DropdownMenuItem,{onClick:()=>void ev(l,"enabled"),children:l.enabled?e("pauseDefinition"):e("enable")}),(0,t.jsxs)(A.DropdownMenuItem,{onClick:()=>void ev(l,"archive"),children:[(0,t.jsx)(a.Archive,{})," ",e("archive")]})]})]})})]}),(0,t.jsxs)(y.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(b.Badge,{variant:l.enabled?"success":"destructive",children:l.enabled?e("enabled"):e("disabled")}),(0,t.jsx)(b.Badge,{variant:"outline",children:e("versionCount",{count:l.versionCount})}),(0,t.jsx)(b.Badge,{variant:"outline",children:r.overlapPolicy(l.overlapPolicy)}),"NONE"!==l.quickActionKind&&(0,t.jsxs)(b.Badge,{variant:"outline",children:[(0,t.jsx)(f,{})," ",e("quickActions")]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,t.jsx)("span",{children:e("runCount",{count:l.runCount})}),(0,t.jsx)(w.DateTime,{kind:"relative",value:l.updatedAt})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(C.Button,{asChild:!0,className:"flex-1",variant:"outline",children:(0,t.jsxs)(E.Link,{href:`/workflows/${l.id}/edit`,children:[(0,t.jsx)(n.GitFork,{})," ",e("edit")]})}),(0,t.jsx)(W.WorkflowChoiceMenu,{button:(0,t.jsxs)(C.Button,{className:"flex-1",disabled:!l.enabled,children:[(0,t.jsx)(i.CirclePlay,{})," ",e("run")]}),choices:l.triggerChoices,hasPlainTrigger:l.hasPlainTrigger,onRun:e=>void ev(l,"run",e)})]})]})]},l.id))}):(0,t.jsx)(N.Empty,{className:"border py-16",children:(0,t.jsx)(N.EmptyHeader,{children:(0,t.jsx)(N.EmptyTitle,{children:e("empty")})})}):ep.length?(0,t.jsx)(y.Card,{className:"gap-0 overflow-hidden py-0",children:(0,t.jsxs)(I.Table,{className:(0,H.cn)("table-fixed",el?"min-w-[51rem]":"min-w-[48rem]"),children:[(0,t.jsx)(I.TableHeader,{children:(0,t.jsxs)(I.TableRow,{children:[el&&(0,t.jsx)(I.TableHead,{className:"w-10",children:(0,t.jsx)(v.SelectAllCheckbox,{ids:ep.map(({id:e})=>e),label:e("selectAll"),onChange:en,selected:es})}),(0,t.jsx)(I.TableHead,{className:"w-[8%]",children:e("run")}),(0,t.jsx)(I.TableHead,{className:"w-[22%]",children:e("workflow")}),(0,t.jsx)(I.TableHead,{className:"w-[13%]",children:e("status")}),(0,t.jsx)(I.TableHead,{className:"w-[19%]",children:e("trigger")}),(0,t.jsx)(I.TableHead,{className:"w-[10%]",children:e("generation")}),(0,t.jsx)(I.TableHead,{className:"w-[16%]",children:e("started")}),(0,t.jsx)(I.TableHead,{className:"w-[12%] text-right",children:e("actions")})]})}),(0,t.jsx)(I.TableBody,{children:eg.map(i=>(0,t.jsxs)(g.Fragment,{children:[(0,t.jsxs)(I.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:[el&&(0,t.jsx)(I.TableCell,{className:"py-1.5",children:(0,t.jsx)(v.SelectAllCheckbox,{ids:i.items.map(({id:e})=>e),label:i.prioritized?e("selectAll"):e("selectDay",{day:(0,P.formatDateValue)(i.value,"long",{locale:U,showTime:!1})}),onChange:en,selected:es})}),(0,t.jsx)(I.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:7,children:i.prioritized?e("active"):(0,P.formatDateValue)(i.value,"long",{locale:U,showTime:!1})})]}),i.items.map(i=>(0,t.jsxs)(I.TableRow,{className:"cursor-pointer",onClick:e=>{if((0,B.isRowActivation)(e))if(el){let e;e=i.id,en(t=>{let a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})}else _.push(`/workflows/runs/${i.id}`)},children:[el&&(0,t.jsx)(I.TableCell,{children:(0,t.jsx)(T.Checkbox,{"aria-label":e("selectRun",{id:i.displayNumber}),checked:es.has(i.id),onCheckedChange:e=>en(t=>{let a=new Set(t);return e?a.add(i.id):a.delete(i.id),a})})}),(0,t.jsx)(I.TableCell,{children:(0,t.jsxs)(E.Link,{className:(0,H.cn)(B.rowLinkClass,"inline-block font-mono font-medium"),href:`/workflows/runs/${i.id}`,children:["#",i.displayNumber]})}),(0,t.jsx)(I.TableCell,{children:(0,t.jsx)(E.Link,{className:(0,H.cn)(B.rowLinkClass,"block min-w-0 truncate"),href:`/workflows/${i.workflow.id}`,title:i.workflow.name,children:i.workflow.name})}),(0,t.jsx)(I.TableCell,{children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(0,t.jsx)(b.Badge,{variant:(0,O.workflowStatusVariant)(i.status),children:r.status(i.status)}),i.archivedAt&&(0,t.jsx)(b.Badge,{variant:"outline",children:e("archived")})]})}),(0,t.jsx)(I.TableCell,{className:"truncate",title:r.kind(i.triggerKind),children:r.kind(i.triggerKind)}),(0,t.jsx)(I.TableCell,{children:i.generation}),(0,t.jsx)(I.TableCell,{children:i.startedAt?(0,t.jsx)(w.DateTime,{kind:"time",relativeToday:!0,value:i.startedAt}):e("queued")}),(0,t.jsx)(I.TableCell,{children:(0,t.jsxs)("div",{className:"flex justify-end gap-1",children:[(0,t.jsxs)($.Tooltip,{children:[(0,t.jsx)($.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(C.Button,{"aria-label":i.archivedAt?e("restore"):e("archive"),onClick:()=>void ew([i.id],!i.archivedAt),size:"icon-sm",variant:"ghost",children:i.archivedAt?(0,t.jsx)(x.Undo2,{}):(0,t.jsx)(a.Archive,{})})}),(0,t.jsx)($.TooltipContent,{children:i.archivedAt?e("restore"):e("archive")})]}),(0,t.jsxs)($.Tooltip,{children:[(0,t.jsx)($.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(C.Button,{"aria-label":e("delete"),onClick:()=>ed([i.id]),size:"icon-sm",variant:"destructive",children:(0,t.jsx)(h.Trash2,{})})}),(0,t.jsx)($.TooltipContent,{children:e("delete")})]})]})})]},i.id))]},i.key))})]})}):(0,t.jsx)(N.Empty,{className:"border py-16",children:(0,t.jsxs)(N.EmptyHeader,{children:[(0,t.jsx)(N.EmptyTitle,{children:e("noRuns")}),(0,t.jsx)(N.EmptyDescription,{children:e("descriptionLong")})]})}),(0,t.jsx)(j.ConfirmationDialog,{actionLabel:e("delete"),cancelLabel:e("cancel"),description:e("deleteRunDescription"),onConfirm:()=>{ej("mutation DeleteWorkflowRuns($ids: [ID!]!) { deleteWorkflowRuns(ids: $ids) }",{ids:eo})},onOpenChange:e=>{e||ed([])},open:eo.length>0,title:e("deleteRunTitle")})]})}],4999)}]);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(975157);let a=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,n.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,n.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,n.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...s}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,n.cn)(a({variant:r,className:e})),...s})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,n.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,r.cn)("w-full caption-bottom text-sm",e),...n})})},"TableBody",0,function({className:e,...n}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("[&_tr:last-child]:border-0",e),...n})},"TableCell",0,function({className:e,...n}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e),...n})},"TableFooter",0,function({className:e,...n}){return(0,t.jsx)("tfoot",{"data-slot":"table-footer",className:(0,r.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...n})},"TableHead",0,function({className:e,...n}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e),...n})},"TableHeader",0,function({className:e,...n}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:border-b",e),...n})},"TableRow",0,function({className:e,...n}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",e),...n})}])},755838,(e,t,r)=>{"use strict";var n=e.r(271645),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useState,i=n.useEffect,l=n.useLayoutEffect,o=n.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=s({inst:{value:r,getSnapshot:t}}),a=n[0].inst,c=n[1];return l(function(){a.value=r,a.getSnapshot=t,d(a)&&c({inst:a})},[e,r,t]),i(function(){return d(a)&&c({inst:a}),e(function(){d(a)&&c({inst:a})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},802239,(e,t,r)=>{"use strict";t.exports=e.r(755838)},340953,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(30030),a=e.i(820783),s=e.i(326999),i=e.i(981140),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0}),[d,c]=(0,n.createContextScope)("AlertDialog",[s.createDialogScope]),u=(0,s.createDialogScope)(),m=o(e=>{let{__scopeAlertDialog:r,...n}=e,a=u(r);return(0,t.jsx)(s.Root,{...a,...n,modal:!0})},"AlertDialog"),h=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:n,...a}=e,i=u(n);return(0,t.jsx)(s.Trigger,{...i,...a,ref:r})},"AlertDialogTrigger")),x=o(e=>{let{__scopeAlertDialog:r,...n}=e,a=u(r);return(0,t.jsx)(s.Portal,{...a,...n})},"AlertDialogPortal"),p=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:n,...a}=e,i=u(n);return(0,t.jsx)(s.Overlay,{...i,...a,ref:r})},"AlertDialogOverlay")),[f,g]=d("AlertDialogContent"),j=r.forwardRef(o(function(e,n){let{__scopeAlertDialog:l,children:o,...d}=e,c=u(l),m=r.useRef(null),h=(0,a.useComposedRefs)(n,m),x=r.useRef(null);return(0,t.jsx)(f,{scope:l,cancelRef:x,children:(0,t.jsx)(s.Content,{role:"alertdialog",...c,...d,ref:h,onOpenAutoFocus:(0,i.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),b=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:n,...a}=e,i=u(n);return(0,t.jsx)(s.Title,{...i,...a,ref:r})},"AlertDialogTitle")),v=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:n,...a}=e,i=u(n);return(0,t.jsx)(s.Description,{...i,...a,ref:r})},"AlertDialogDescription")),w=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:n,...a}=e,i=u(n);return(0,t.jsx)(s.Close,{...i,...a,ref:r})},"AlertDialogAction")),k=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:n,...i}=e,{cancelRef:l}=g("AlertDialogCancel",n),o=u(n),d=(0,a.useComposedRefs)(r,l);return(0,t.jsx)(s.Close,{...o,...i,ref:d})},"AlertDialogCancel"));e.s(["Action",0,w,"AlertDialog",0,m,"AlertDialogAction",0,w,"AlertDialogCancel",0,k,"AlertDialogContent",0,j,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,p,"AlertDialogPortal",0,x,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,h,"Cancel",0,k,"Content",0,j,"Description",0,v,"Overlay",0,p,"Portal",0,x,"Root",0,m,"Title",0,b,"Trigger",0,h,"createAlertDialogScope",0,c],691162);var y=e.i(691162),y=y,D=e.i(975157),C=e.i(519455);function T({...e}){return(0,t.jsx)(y.Root,{"data-slot":"alert-dialog",...e})}function S({...e}){return(0,t.jsx)(y.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function N({...e}){return(0,t.jsx)(y.Portal,{"data-slot":"alert-dialog-portal",...e})}function I({className:e,...r}){return(0,t.jsx)(y.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,D.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}function A({className:e,size:r="default",...n}){return(0,t.jsxs)(N,{children:[(0,t.jsx)(I,{}),(0,t.jsx)(y.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,D.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...n})]})}function E({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,D.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function $({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,D.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function R({className:e,...r}){return(0,t.jsx)(y.Title,{"data-slot":"alert-dialog-title",className:(0,D.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function B({className:e,...r}){return(0,t.jsx)(y.Description,{"data-slot":"alert-dialog-description",className:(0,D.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function L({className:e,variant:r="default",size:n="default",...a}){return(0,t.jsx)(C.Button,{variant:r,size:n,asChild:!0,children:(0,t.jsx)(y.Action,{"data-slot":"alert-dialog-action",className:(0,D.cn)(e),...a})})}function M({className:e,variant:r="outline",size:n="default",...a}){return(0,t.jsx)(C.Button,{variant:r,size:n,asChild:!0,children:(0,t.jsx)(y.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,D.cn)(e),...a})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:n,onConfirm:a,onOpenChange:s,open:i,title:l,trigger:o}){return(0,t.jsxs)(T,{onOpenChange:s,open:i,children:[o&&(0,t.jsx)(S,{asChild:!0,children:o}),(0,t.jsxs)(A,{children:[(0,t.jsxs)(E,{children:[(0,t.jsx)(R,{children:l}),(0,t.jsx)(B,{children:n})]}),(0,t.jsxs)($,{children:[(0,t.jsx)(M,{children:r}),(0,t.jsx)(L,{onClick:()=>void a(),variant:"destructive",children:e})]})]})]})}],340953)},832297,e=>{"use strict";var t=e.i(187921);e.s(["CirclePlay",()=>t.default])},997778,e=>{"use strict";var t=e.i(843476),r=e.i(948148),n=e.i(271645),a=e.i(755146);e.s(["WorkflowChoiceMenu",0,function({button:e,choices:s,hasPlainTrigger:i=!1,onRun:l}){let o=(0,r.useTranslations)("workflows");return s.length?(0,t.jsxs)(a.DropdownMenu,{children:[(0,t.jsx)(a.DropdownMenuTrigger,{asChild:!0,children:e}),(0,t.jsxs)(a.DropdownMenuContent,{align:"start",className:"max-w-64",children:[i&&(0,t.jsx)(a.DropdownMenuItem,{onSelect:()=>l(null),children:o("fullRun")}),s.map(e=>(0,t.jsx)(a.DropdownMenuItem,{onSelect:()=>l(e.key),children:(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate",children:e.label}),e.description&&(0,t.jsx)("p",{className:"truncate text-xs text-muted-foreground",children:e.description})]})},e.key))]})]}):(0,n.cloneElement)(e,{onClick:()=>l(null)})}])},880181,596930,505624,e=>{"use strict";function t(e){return encodeURIComponent(e.trim())}function r(e){var r;let n=(r=e.url,!r?.startsWith("/")||r.startsWith("//")?null:r);if(n)return{href:n,external:!1};let a=e.kind.trim().toUpperCase(),s=e.resourceId.trim();if(!s)return null;let i="string"==typeof e.metadata?.runKind?e.metadata.runKind.toUpperCase():null,l="BUILD"===a?`/builds/${t(s)}`:"CODEBASE"===a?`/codebases/${t(s)}`:"JIRA_TICKET"===a?`/jira/tickets/${t(s)}`:"WORKTREE"===a?`/worktrees/${t(s)}`:"AGENT_RUN"===a&&"PLAN"===i?`/plans/${t(s)}`:"AGENT_RUN"===a&&"SESSION"===i?`/sessions/${t(s)}`:"PULL_REQUEST"===a?function(e){let r=e.lastIndexOf("#");if(r<1)return null;let n=e.slice(0,r),a=n.indexOf("/");if(a<1||a===n.length-1)return null;let s=Number(e.slice(r+1));return!Number.isInteger(s)||s<1?null:`/pull-requests/${t(n.slice(0,a))}/${t(n.slice(a+1))}/${s}`}(s):"AGENT_JOB"===a?`/jobs/${t(s)}`:"COMMAND_RUN"===a?`/commands/runs/${t(s)}`:"WORKFLOW_RUN"===a?`/workflows/runs/${t(s)}`:"SKILL_SYNC"===a?`/skills/sync/${t(s)}`:"SKILL"===a?`/skills/${t(s)}`:"IOS_DEVICE"===a?`/devices/${t(s)}`:"SIGNING_PROFILE"===a?`/provisioning-profiles/${t(s)}`:"PUSH_NOTIFICATION_BATCH"===a?"/push-notifications":"BUILD_DATA_COLLECTION"===a?"/build-data":"AGENT"===a?`/agents/${t(s)}`:"CODEBASE_REPOSITORY"===a?`/codebases/repositories/${t(s)}`:null;if(l)return{href:l,external:!1};let o=function(e){if(!e)return null;try{let t=new URL(e);return new Set(["http:","https:"]).has(t.protocol)?t.href:null}catch{return null}}(e.url);return o?{href:o,external:!0}:null}function n(e){let t=e.kind.trim().toUpperCase();return"AGENT_JOB"===t||"COMMAND_RUN"===t?30:"GITHUB_WORKFLOW_RUN"===t?20:10}function a(e){return e.map((e,t)=>({destination:r(e),index:t,link:e,time:e.createdAt instanceof Date?e.createdAt.getTime():Date.parse(e.createdAt??"")||0})).filter(e=>null!==e.destination).sort((e,t)=>n(e.link)-n(t.link)||t.time-e.time||t.index-e.index)[0]?.destination??null}function s(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:{}}function i(e){return"string"!=typeof e&&"number"!=typeof e?null:String(e).trim()||null}function l(e,t,r){return e.kind.trim().toUpperCase()===t.trim().toUpperCase()&&e.resourceId.trim()===r.trim()}e.i(672510),e.s(["githubJobResourceId",0,function(e,t){let r=e.trim(),n=t.trim();if(!r||!n)throw Error("GitHub job repository and job ID are required");return`${r}:job:${n}`},"githubPipelineResourceId",0,function(e,t,r){let n=e.trim(),a=t?.trim(),s=r.trim();if(!n||!a&&!s)throw Error("GitHub pipeline repository and provider ID are required");return`${n}:${a?"run":"check"}:${a||s}`},"preferredWorkflowResourceDestination",0,a,"workflowResourceDestination",0,r],596930),e.s(["currentPageWorkflowNodeIds",0,function(e,t,r){let n=new Set,a=new Map(e.attempts.map(e=>[e.id,e.nodeId]));for(let a of e.attempts)a.resourceLinks.some(e=>l(e,t,r))&&n.add(a.nodeId);for(let s of e.resourceLinks){if(!l(s,t,r))continue;let i=s.attemptId?a.get(s.attemptId):e.trigger?.nodeId;i&&n.add(i)}return n},"workflowRunNodeDestinations",0,function(e){let t=new Map;for(let r of[...e.attempts].sort((t,r)=>Number(r.generation===e.generation)-Number(t.generation===e.generation)||r.generation-t.generation||r.attempt-t.attempt||Number(!!t.iterationKey)-Number(!!r.iterationKey))){if(t.has(r.nodeId))continue;let e=function(e){let t=e.kind?.trim().toUpperCase()??"",r=s(e.output),n=s(r.value),a={...s(n.sessionPatch),...s(r.sessionPatch)};if(t.startsWith("JIRA_")){let e=i(n.key)??i(s(n.ticket).key)??i(s(a.ticket).key);return e?{kind:"JIRA_TICKET",resourceId:e}:null}if(t.startsWith("RUN_")){let e=i(n.id),t=i(n.kind)?.toUpperCase();return e&&("PLAN"===t||"SESSION"===t)?{kind:"AGENT_RUN",resourceId:e,metadata:{runKind:t}}:null}if(t.startsWith("WORKTREE_")){let e=i(s(a.worktree).id);return e?{kind:"WORKTREE",resourceId:e}:null}if(t.startsWith("CODEBASE_")){let e=i(s(a.codebase).id)??i(n.id);return e?{kind:"CODEBASE",resourceId:e}:null}if(t.startsWith("BUILD_")){let e=i(s(a.build).id)??i(n.id);return e?{kind:"BUILD",resourceId:e}:null}return null}(r),n=a(e?[...r.resourceLinks,e]:r.resourceLinks);n&&t.set(r.nodeId,n)}let r=a(e.resourceLinks.filter(({attemptId:e})=>!e));return e.trigger?.nodeId&&r&&t.set(e.trigger.nodeId,r),t}],880181);var o=e.i(271645),d=e.i(520133);e.s(["useOpenWorkflowDestination",0,function(){let e=(0,d.useRouter)();return(0,o.useCallback)(t=>{if(t){if(t.external)return void window.open(t.href,"_blank","noopener,noreferrer");e.push(t.href)}},[e])}],505624)},586592,e=>{"use strict";var t=e.i(843476),r=e.i(832297),n=e.i(482022),a=e.i(948148),s=e.i(271645),i=e.i(929592),l=e.i(487486),o=e.i(519455),d=e.i(515288),c=e.i(906197),u=e.i(520133),m=e.i(637611),h=e.i(880181),x=e.i(997778),p=e.i(505624),f=e.i(349049),g=e.i(399668);function j(e){return"string"==typeof e&&e.length>0?e:null}function b({run:e,onAnswered:r}){let n=(0,a.useTranslations)("workflows"),l=(0,g.useWorkflowLabels)(),[d,c]=(0,s.useState)({}),[h,x]=(0,s.useState)(!1),[p,f]=(0,s.useState)(null),v=(0,s.useMemo)(()=>e.attempts.flatMap(e=>(e.questionBatches??[]).flatMap(t=>{let r=j(t.id);if(!r||"PENDING"!==t.status)return[];let n=(Array.isArray(t.questions)?t.questions:[]).flatMap(e=>(function(e){if(!e||"object"!=typeof e||Array.isArray(e))return null;let t=j(e.id);if(!t)return null;let r=Array.isArray(e.options)?e.options:[];return{id:t,header:j(e.header),prompt:j(e.prompt)??"",multiSelect:!!e.multiSelect,options:r.flatMap(e=>{if(!e||"object"!=typeof e)return[];let t=j(e.label);return t?[{id:j(e.id)??t,label:t,description:j(e.description)}]:[]})}})(e)??[]);return n.length?[{id:r,kind:e.kind,questions:n}]:[]})),[e]);if(0===v.length)return null;let w=(e,t)=>`${e}:${t}`,k=async(e,t)=>{x(!0);try{await (0,m.controlPlaneRequest)("mutation AnswerWorkflowQuestion($batchId: ID!, $answers: JSON!) { answerWorkflowQuestion(batchId: $batchId, answers: $answers) { id status } }",{batchId:e.id,answers:Object.fromEntries(e.questions.map(e=>[e.id,{answers:t[e.id]??[]}]))}),c(t=>{let r={...t};for(let t of e.questions)delete r[w(e.id,t.id)];return r}),f(null),await r()}catch(e){f(e instanceof Error?e.message:String(e))}finally{x(!1)}};return(0,t.jsxs)("div",{className:"space-y-2",children:[p&&(0,t.jsx)(i.Alert,{variant:"destructive",children:(0,t.jsx)(i.AlertDescription,{children:p})}),v.map(r=>{let a=1===r.questions.length&&!r.questions[0].multiSelect,s=r.questions.every(e=>(d[w(r.id,e.id)]??[]).length>0);return(0,t.jsxs)("div",{className:"space-y-3 rounded-xl border border-amber-500/50 bg-amber-500/5 p-3",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:n("questionFrom",{step:l.kind(r.kind)})}),r.questions.every(({options:e})=>e.length>0)?(0,t.jsxs)(t.Fragment,{children:[r.questions.map(e=>{let n=d[w(r.id,e.id)]??[];return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.header||e.prompt}),e.header&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.prompt}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.options.map((s,i)=>(0,t.jsx)(o.Button,{"aria-pressed":a?void 0:n.includes(s.label),disabled:h,onClick:()=>{a?k(r,{[e.id]:[s.label]}):c(t=>{let n=new Set(t[w(r.id,e.id)]??[]);return e.multiSelect?n.has(s.label)?n.delete(s.label):n.add(s.label):(n.clear(),n.add(s.label)),{...t,[w(r.id,e.id)]:[...n]}})},size:"sm",title:s.description??void 0,variant:n.includes(s.label)||a&&0===i?"default":"outline",children:s.label},s.id))})]},e.id)}),!a&&(0,t.jsx)(o.Button,{disabled:h||!s,onClick:()=>void k(r,Object.fromEntries(r.questions.map(e=>[e.id,d[w(r.id,e.id)]??[]]))),size:"sm",children:n("answer")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:r.questions[0].header||r.questions[0].prompt}),(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(u.Link,{href:`/workflows/runs/${e.id}`,children:n("answerOnRunPage")})})]})]},r.id)})]})}let v=`
|
|
2
|
+
id displayNumber workflowId triggerKind triggerSubjectKey status phase generation
|
|
3
|
+
sessionData sessionRevision blockedReason error queuedAt startedAt pausedAt finishedAt
|
|
4
|
+
workflow { id name }
|
|
5
|
+
trigger { nodeId }
|
|
6
|
+
version { id workflowId version name description schemaVersion definition contentHash publishedAt }
|
|
7
|
+
attempts {
|
|
8
|
+
id nodeId kind generation iterationKey attempt status phase input output error startedAt finishedAt supersededAt
|
|
9
|
+
resourceLinks { id attemptId kind resourceId label url metadata createdAt }
|
|
10
|
+
questionBatches {
|
|
11
|
+
id status
|
|
12
|
+
questions { id header prompt multiSelect options { id label description } }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
resourceLinks { id attemptId kind resourceId label url metadata createdAt }
|
|
16
|
+
`;e.s(["WorkflowResourcePanel",0,function({resourceKind:e,resourceId:j,sessionData:w}){let k=(0,a.useTranslations)("workflows"),y=(0,g.useWorkflowLabels)(),D=(0,p.useOpenWorkflowDestination)(),[C,T]=(0,s.useState)([]),[S,N]=(0,s.useState)([]),[I,A]=(0,s.useState)(null),[E,$]=(0,s.useState)(null),R=(0,s.useCallback)(async()=>{try{let t=await (0,m.controlPlaneRequest)(`query ResourceWorkflows($kind: String!, $resourceId: ID!) {
|
|
17
|
+
workflowRunsForResource(kind: $kind, resourceId: $resourceId) { ${v} }
|
|
18
|
+
workflowsAcceptingResource(kind: $kind) {
|
|
19
|
+
id name description enabled
|
|
20
|
+
hasPlainTrigger(resourceKind: $kind)
|
|
21
|
+
triggerChoices(resourceKind: $kind) { key label description }
|
|
22
|
+
}
|
|
23
|
+
}`,{kind:e,resourceId:j});T(t.workflowRunsForResource),N(t.workflowsAcceptingResource),$(null)}catch(e){$(e instanceof Error?e.message:String(e))}},[j,e]);(0,s.useEffect)(()=>{let e=window.setTimeout(()=>void R(),0),t=(0,m.controlPlaneSubscriptions)().subscribe({query:"subscription ResourceWorkflowChanges { workflowsChanged { id } }"},{next:()=>void R(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(e),t()}},[R]);let B=async(t,r)=>{A(t);try{await (0,m.controlPlaneRequest)("mutation TriggerResourceWorkflow($input: TriggerWorkflowInput!) { triggerWorkflow(input: $input) { id } }",{input:{workflowId:t,sessionData:w,resourceKind:e,resourceId:j,subjectKey:`${e}:${j}`,choice:r}}),await R()}catch(e){$(e instanceof Error?e.message:String(e))}finally{A(null)}},L=C[0],M=(0,s.useMemo)(()=>L?(0,h.currentPageWorkflowNodeIds)(L,e,j):new Set,[L,j,e]),P=(0,s.useMemo)(()=>L?(0,h.workflowRunNodeDestinations)(L):new Map,[L]);return C.length||S.length||E?(0,t.jsxs)(d.Card,{children:[(0,t.jsxs)(d.CardHeader,{children:[(0,t.jsx)(d.CardTitle,{children:k("resourceWorkflows")}),(0,t.jsx)(d.CardDescription,{children:k("resourceWorkflowsDescription")}),(0,t.jsx)(d.CardAction,{children:(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,t.jsx)(u.Link,{href:"/workflows",children:k("manageWorkflows")})})})]}),(0,t.jsxs)(d.CardContent,{className:"space-y-4",children:[E&&(0,t.jsx)(i.Alert,{variant:"destructive",children:(0,t.jsx)(i.AlertDescription,{children:E})}),S.length>0&&(0,t.jsx)(c.ItemGroup,{className:"gap-2",children:S.map(e=>(0,t.jsxs)(c.Item,{size:"sm",variant:"outline",children:[(0,t.jsxs)(c.ItemContent,{children:[(0,t.jsx)(c.ItemTitle,{children:e.name}),e.description&&(0,t.jsx)(c.ItemDescription,{children:e.description})]}),(0,t.jsx)(c.ItemActions,{children:(0,t.jsx)(x.WorkflowChoiceMenu,{button:(0,t.jsxs)(o.Button,{disabled:!e.enabled||null!==I,size:"sm",variant:"outline",children:[(0,t.jsx)(r.CirclePlay,{})," ",k("run")]}),choices:e.triggerChoices,hasPlainTrigger:e.hasPlainTrigger,onRun:t=>void B(e.id,t)})})]},e.id))}),L&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(u.Link,{className:"font-medium hover:underline",href:`/workflows/runs/${L.id}`,children:[L.workflow.name," #",L.displayNumber]}),(0,t.jsx)(l.Badge,{variant:(0,f.workflowStatusVariant)(L.status),children:y.status(L.status)})]}),(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"ghost",children:(0,t.jsxs)(u.Link,{href:`/workflows/runs/${L.id}`,children:[(0,t.jsx)(n.ExternalLink,{})," ",k("fullRun")]})})]}),(0,t.jsx)(b,{onAnswered:R,run:L}),(0,t.jsx)(f.WorkflowGraph,{attempts:L.attempts,compact:!0,currentPageNodeIds:M,definition:L.version.definition,destinations:P,generation:L.generation,onNodeClick:(e,{destination:t,locked:r})=>{r&&D(t)}}),C.length>1&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:C.slice(1,6).map(e=>(0,t.jsx)(o.Button,{asChild:!0,size:"sm",variant:"ghost",children:(0,t.jsxs)(u.Link,{className:"gap-2",href:`/workflows/runs/${e.id}`,children:[(0,t.jsxs)("span",{children:["#",e.displayNumber," · ",e.workflow.name]}),(0,t.jsx)(l.Badge,{variant:(0,f.workflowStatusVariant)(e.status),children:y.status(e.status)})]})},e.id))})]})]})]}):null}],586592)},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},37332,e=>{"use strict";e.s(["isRowActivation",0,function(e){if(e.defaultPrevented||0!==e.button)return!1;let t=e.target;return t instanceof Element&&!!e.currentTarget.contains(t)&&!t.closest("a, button, input, select, textarea, [role='button'], [role='link'], [role='menuitem']")},"rowLinkClass",0,"-mx-1.5 rounded-md px-1.5 py-0.5 transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"])},955862,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);var n=e.i(689664),a=e.i(806537),s=e.i(648119),i=e.i(741120),l=e.i(573474),o=e.i(466328),o=o,d=e.i(861745),c=e.i(948148),u=e.i(271645),m=e.i(778434),h=e.i(340953),x=e.i(856522),p=e.i(816484),f=e.i(929592),g=e.i(487486),j=e.i(519455),b=e.i(515288),v=e.i(776639),w=e.i(793479),k=e.i(110204),y=e.i(987968),D=e.i(746798),C=e.i(520133),T=e.i(637611),S=e.i(539494),N=e.i(261751);let I="border-amber-500/30 bg-amber-500/10 text-amber-700 hover:bg-amber-500/20 hover:text-amber-700 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-300 dark:hover:bg-amber-500/20 dark:hover:text-amber-300";function A(){let e=(0,c.useTranslations)("diskSpace"),[r,n]=(0,u.useState)(null),[a,s]=(0,u.useState)("40"),[i,l]=(0,u.useState)("10"),[o,d]=(0,u.useState)(!1),[m,h]=(0,u.useState)(null),[A,E]=(0,u.useState)(null),$=(0,u.useCallback)(async()=>{try{let e=await (0,T.controlPlaneRequest)(`query DiskSpaceOverview { diskSpaceOverview { ${S.DISK_SPACE_FIELDS} } }`);n(e.diskSpaceOverview),s(String(e.diskSpaceOverview.settings.normalThresholdGiB)),l(String(e.diskSpaceOverview.settings.pressureThresholdGiB)),E(null)}catch(e){E(e instanceof Error?e.message:String(e))}},[]);(0,u.useEffect)(()=>{let e=window.setTimeout(()=>void $(),0),t=(0,T.controlPlaneSubscriptions)().subscribe({query:"subscription DiskSpaceChanged { diskSpaceChanged }"},{next:()=>void $(),error:()=>void 0,complete:()=>void 0});return()=>{window.clearTimeout(e),t()}},[$]);let R=async(e,t,r)=>{h(e),E(null);try{return await (0,T.controlPlaneRequest)(t,r),await $(),!0}catch(e){return E(e instanceof Error?e.message:String(e)),!1}finally{h(null)}};return(0,t.jsxs)(b.Card,{children:[(0,t.jsxs)(b.CardHeader,{children:[(0,t.jsx)(b.CardTitle,{children:e("title")}),(0,t.jsx)(b.CardDescription,{children:e("description")}),(0,t.jsxs)(v.Dialog,{onOpenChange:e=>{e&&r&&(s(String(r.settings.normalThresholdGiB)),l(String(r.settings.pressureThresholdGiB))),d(e)},open:o,children:[(0,t.jsx)(b.CardAction,{children:(0,t.jsx)(v.DialogTrigger,{asChild:!0,children:(0,t.jsx)(j.Button,{disabled:!r,size:"sm",variant:"outline",children:e("settings")})})}),(0,t.jsxs)(v.DialogContent,{children:[(0,t.jsxs)(v.DialogHeader,{children:[(0,t.jsx)(v.DialogTitle,{children:e("settings")}),(0,t.jsx)(v.DialogDescription,{children:e("description")})]}),(0,t.jsxs)("form",{className:"space-y-4",onSubmit:async e=>{e.preventDefault(),await R("settings",`mutation UpdateDiskSpaceSettings($input: UpdateDiskSpaceSettingsInput!) {
|
|
24
|
+
updateDiskSpaceSettings(input: $input) { normalThresholdGiB }
|
|
25
|
+
}`,{input:{normalThresholdGiB:Number(a),pressureThresholdGiB:Number(i)}})&&d(!1)},children:[A&&(0,t.jsx)(f.Alert,{variant:"destructive",children:(0,t.jsx)(f.AlertDescription,{children:A})}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(k.Label,{htmlFor:"disk-normal-threshold",children:e("normalThreshold")}),(0,t.jsx)(w.Input,{id:"disk-normal-threshold",min:"0.1",onChange:e=>s(e.target.value),step:"0.1",type:"number",value:a})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(k.Label,{htmlFor:"disk-pressure-threshold",children:e("pressureThreshold")}),(0,t.jsx)(w.Input,{id:"disk-pressure-threshold",min:"0.1",onChange:e=>l(e.target.value),step:"0.1",type:"number",value:i})]}),(0,t.jsx)(v.DialogFooter,{children:(0,t.jsxs)(j.Button,{disabled:null!==m,type:"submit",children:["settings"===m?(0,t.jsx)(y.Spinner,{}):(0,t.jsx)(x.Save,{})," ",e("saveThresholds")]})})]})]})]})]}),(0,t.jsxs)(b.CardContent,{className:"space-y-5",children:[A&&(0,t.jsx)(f.Alert,{variant:"destructive",children:(0,t.jsx)(f.AlertDescription,{children:A})}),r?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:r.agents.map(r=>(0,t.jsxs)("div",{className:"space-y-4 rounded-lg border p-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(C.Link,{className:"font-medium hover:underline",href:`/agents/${r.agent.id}`,children:r.agent.name}),(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap gap-1.5",children:[(0,t.jsx)(g.Badge,{className:"PRESSURE"===r.status?I:void 0,variant:"PRESSURE"===r.status?"outline":"secondary",children:e(`status.${r.status}`)}),"NORMAL"!==r.pressureMode&&(0,t.jsx)(g.Badge,{className:I,variant:"outline",children:e(`pressureMode.${r.pressureMode}`)})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,t.jsx)(j.Button,{"aria-pressed":r.enabled,className:r.enabled?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 hover:bg-emerald-500/20 hover:text-emerald-700 dark:border-emerald-500/30 dark:bg-emerald-500/10 dark:text-emerald-300 dark:hover:bg-emerald-500/20 dark:hover:text-emerald-300":void 0,disabled:null!==m,onClick:()=>void R(`monitor:${r.agent.id}`,`mutation SetAgentDiskSpaceMonitoring($agentId: ID!, $enabled: Boolean!) {
|
|
26
|
+
setAgentDiskSpaceMonitoring(agentId: $agentId, enabled: $enabled) { enabled }
|
|
27
|
+
}`,{agentId:r.agent.id,enabled:!r.enabled}),size:"sm",type:"button",variant:"outline",children:e("monitorAgent")}),(0,t.jsx)(j.Button,{"aria-pressed":r.manualPressureMode,className:r.manualPressureMode?I:void 0,disabled:!r.enabled||null!==m,onClick:()=>void R(`pressure:${r.agent.id}`,`mutation SetAgentDiskSpacePressureMode($agentId: ID!, $enabled: Boolean!) {
|
|
28
|
+
setAgentDiskSpacePressureMode(agentId: $agentId, enabled: $enabled) { manualPressureMode }
|
|
29
|
+
}`,{agentId:r.agent.id,enabled:!r.manualPressureMode}),size:"sm",type:"button",variant:"outline",children:e("pressureModeControl")})]})]}),r.volumes.length?(0,t.jsx)("div",{className:"space-y-3",children:r.volumes.map(r=>(0,t.jsxs)(D.Tooltip,{children:[(0,t.jsx)(D.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("div",{className:"rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring",tabIndex:0,children:(0,t.jsx)(N.VolumeBar,{hideStatus:!0,volume:r})})}),(0,t.jsx)(D.TooltipContent,{children:r.monitored?e(`status.${r.status}`):e("notMonitored")})]},r.id))}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("noReport")}),r.lastReportedAt&&(0,t.jsxs)("p",{className:"text-xs text-muted-foreground",children:[e("observedAt",{value:""}),(0,t.jsx)(p.DateTime,{value:r.lastReportedAt})]}),(r.lastError||r.warnings.length>0)&&(0,t.jsx)(f.Alert,{variant:r.lastError?"destructive":"default",children:(0,t.jsx)(f.AlertDescription,{children:[r.lastError,...r.warnings].filter(Boolean).join(" · ")})})]},r.agent.id))})}):(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(y.Spinner,{})," ",e("loading")]})]})]})}var E=e.i(586592),$=e.i(257428),R=e.i(755146),B=e.i(82612),L=e.i(784774),M=e.i(462777),P=e.i(360583),O=e.i(975157),H=e.i(37332);let q=`
|
|
30
|
+
id status createdAt deadlineAt finishedAt
|
|
31
|
+
progress {
|
|
32
|
+
eligibleCount finishedCount successfulCount
|
|
33
|
+
agents { agent { ${m.AGENT_FIELDS} } status jobId error warnings }
|
|
34
|
+
}
|
|
35
|
+
entries {
|
|
36
|
+
id name kind status workspacePath worktreeId worktreePath sizeBytes operation error
|
|
37
|
+
modifiedAt volumeId locked activeResources { kind id label href }
|
|
38
|
+
agent { ${m.AGENT_FIELDS} }
|
|
39
|
+
}
|
|
40
|
+
`;function z(e,t){let r=["B","KiB","MiB","GiB","TiB"],n=Math.min(Math.floor(Math.log(Math.max(e,1))/Math.log(1024)),r.length-1);return`${new Intl.NumberFormat(t,{maximumFractionDigits:1}).format(e/1024**n)} ${r[n]}`}function _({entries:e,selected:r,activeOperation:n,locale:a,onSelectionChange:s,onDelete:i,onDeleteMany:o}){let d=(0,c.useTranslations)("buildData"),u=(0,c.useTranslations)("common"),m=e.filter(e=>r.has(e.id)),x=e.length>0&&m.length===e.length;return(0,t.jsxs)(b.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(b.CardHeader,{className:"max-sm:has-data-[slot=card-action]:grid-cols-1",children:[(0,t.jsx)(b.CardTitle,{children:d("deviceSupportTitle")}),(0,t.jsx)(b.CardDescription,{children:d("deviceSupportDescription")}),m.length>0&&(0,t.jsx)(b.CardAction,{className:"max-sm:col-start-1 max-sm:row-start-3 max-sm:row-span-1 max-sm:mt-3 max-sm:justify-self-stretch",children:(0,t.jsx)(h.ConfirmationDialog,{actionLabel:d("deleteSelected"),cancelLabel:u("cancel"),description:d("deleteDeviceSupportDescription",{count:m.length}),onConfirm:()=>o(m.map(e=>e.id)),title:d("deleteDeviceSupportTitle"),trigger:(0,t.jsxs)(j.Button,{disabled:n,size:"sm",variant:"outline",children:[(0,t.jsx)(l.Trash2,{})," ",d("deleteSelected")]})})})]}),0===e.length?(0,t.jsx)(B.Empty,{className:"py-8",children:(0,t.jsx)(B.EmptyHeader,{children:(0,t.jsx)(B.EmptyDescription,{children:d("noDeviceSupport")})})}):(0,t.jsxs)(L.Table,{children:[(0,t.jsx)(L.TableHeader,{children:(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableHead,{className:"w-12",children:(0,t.jsx)($.Checkbox,{"aria-label":d("selectAllDeviceSupport"),checked:!!x||!!m.length&&"indeterminate",onCheckedChange:t=>{for(let r of e)s(r.id,!0===t)}})}),(0,t.jsx)(L.TableHead,{children:d("deviceSupportVersion")}),(0,t.jsx)(L.TableHead,{children:d("size")}),(0,t.jsx)(L.TableHead,{children:d("agent")}),(0,t.jsx)(L.TableHead,{className:"w-12",children:(0,t.jsx)("span",{className:"sr-only",children:d("actions")})})]})}),(0,t.jsx)(L.TableBody,{children:e.map(e=>(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableCell,{children:(0,t.jsx)($.Checkbox,{"aria-label":d("selectEntry",{name:e.name}),checked:r.has(e.id),onCheckedChange:t=>s(e.id,!0===t)})}),(0,t.jsxs)(L.TableCell,{children:[(0,t.jsx)("span",{className:"font-mono text-xs",children:e.name}),"IDLE"!==e.operation&&(0,t.jsx)(y.Spinner,{className:"ml-2"}),e.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:e.error})]}),(0,t.jsx)(L.TableCell,{className:"tabular-nums",children:null===e.sizeBytes?"—":z(e.sizeBytes,a)}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(C.Link,{className:(0,O.cn)(H.rowLinkClass,"inline-block"),href:`/agents/${e.agent.id}`,children:e.agent.name})}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(h.ConfirmationDialog,{actionLabel:d("delete"),cancelLabel:u("cancel"),description:d("deleteDeviceSupportDescription",{count:1}),onConfirm:()=>i(e.id),title:d("deleteDeviceSupportTitle"),trigger:(0,t.jsx)(j.Button,{"aria-label":d("entryActions",{name:e.name}),disabled:n,size:"icon-sm",variant:"ghost",children:(0,t.jsx)(l.Trash2,{})})})})]},e.id))})]})]})}function W({collection:e}){let r=(0,c.useTranslations)("buildData"),n=e.progress.agents.filter(e=>"SUCCEEDED"!==e.status||e.warnings.length>0);return"COMPLETED"===e.status&&0===n.length?null:(0,t.jsx)(f.Alert,{children:(0,t.jsxs)(f.AlertDescription,{className:"space-y-1",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 font-medium",children:["COLLECTING"===e.status&&(0,t.jsx)(y.Spinner,{}),r("progress",{complete:e.progress.finishedCount,total:e.progress.eligibleCount})]}),n.map(e=>(0,t.jsxs)("p",{children:[e.agent.name,": ",r(`agentStatus.${e.status}`),e.error?` — ${e.error}`:"",e.warnings.length?` — ${e.warnings.join("; ")}`:""]},e.agent.id))]})})}e.s(["BuildDataPage",0,function(){let e=(0,c.useTranslations)("buildData"),m=(0,c.useTranslations)("common"),x=(0,d.useLocale)(),[v,w]=(0,u.useState)(M.createClientId),[k,D]=(0,u.useState)(null),[S,N]=(0,u.useState)(!0),[I,U]=(0,u.useState)(null),[F,G]=(0,u.useState)(new Set),[K,V]=(0,u.useState)(null),J=(0,u.useRef)(null),[Q,Y]=(0,u.useState)(!1),[X,Z]=(0,u.useState)([]),[ee,et]=(0,u.useState)(null),[er,en]=(0,u.useState)(!0),[ea,es]=(0,u.useState)(0),ei=(0,u.useCallback)(e=>{D(e),N(!1),U(null)},[]);(0,u.useEffect)(()=>{let e=!1,t=(0,T.controlPlaneSubscriptions)().subscribe({query:`subscription DerivedDataCollectionChanged($id: ID!) {
|
|
41
|
+
derivedDataCollectionChanged(id: $id) { ${q} }
|
|
42
|
+
}`,variables:{id:v}},{next:e=>{e.data?.derivedDataCollectionChanged&&ei(e.data.derivedDataCollectionChanged)},error:()=>void 0,complete:()=>void 0}),r=async()=>{try{let t=await (0,T.controlPlaneRequest)(`query DerivedDataCollection($id: ID!) {
|
|
43
|
+
derivedDataCollection(id: $id) { ${q} }
|
|
44
|
+
}`,{id:v});!e&&t.derivedDataCollection&&ei(t.derivedDataCollection)}catch{}};(0,T.controlPlaneRequest)(`mutation RefreshDerivedData($requestId: ID!) {
|
|
45
|
+
refreshDerivedData(requestId: $requestId) { ${q} }
|
|
46
|
+
}`,{requestId:v}).then(t=>!e&&ei(t.refreshDerivedData)).catch(t=>{e||(U(t instanceof Error?t.message:String(t)),N(!1))}),r();let n=window.setInterval(()=>void r(),2e3);return()=>{e=!0,t(),window.clearInterval(n)}},[ei,v]);let el=(0,u.useCallback)(async e=>{en(!0);try{let t=await (0,T.controlPlaneRequest)(`query DerivedDataDeletionHistory($after: ID) {
|
|
47
|
+
derivedDataDeletionHistory(first: 100, after: $after) {
|
|
48
|
+
items { id agentId agentName folderName worktreeId worktreePath source entryKind deletedAt }
|
|
49
|
+
nextCursor
|
|
50
|
+
}
|
|
51
|
+
}`,{after:e??null});Z(r=>e?[...r,...t.derivedDataDeletionHistory.items]:t.derivedDataDeletionHistory.items),et(t.derivedDataDeletionHistory.nextCursor)}catch(e){U(e instanceof Error?e.message:String(e))}finally{en(!1)}},[]);(0,u.useEffect)(()=>()=>{J.current&&window.clearTimeout(J.current)},[]),(0,u.useEffect)(()=>{let e=window.setTimeout(()=>void el(),0);return()=>window.clearTimeout(e)},[ea,el]);let eo=k?.entries??[],ed=eo.filter(e=>"DEVICE_SUPPORT"!==e.kind),ec=eo.filter(e=>"DEVICE_SUPPORT"===e.kind),eu=eo.some(e=>"IDLE"!==e.operation),em=eo.filter(e=>F.has(e.id)),eh=eo.length>0&&em.length===eo.length,ex=em.length>0&&!eh,ep=async(e,t,r=!1)=>{if(k){Y(!0),U(null);try{let n=await (0,T.controlPlaneRequest)(`mutation BuildDataOperation($collectionId: ID!, $entryIds: [ID!]!, $requestId: ID!${"deleteDerivedDataEntries"===e?", $overrideProtection: Boolean":""}) {
|
|
52
|
+
${e}(collectionId: $collectionId, entryIds: $entryIds, requestId: $requestId${"deleteDerivedDataEntries"===e?", overrideProtection: $overrideProtection":""}) {
|
|
53
|
+
${q}
|
|
54
|
+
}
|
|
55
|
+
}`,{collectionId:k.id,entryIds:t,requestId:(0,M.createClientId)(),overrideProtection:r});ei(n[e]),"deleteDerivedDataEntries"===e&&(G(new Set),V(null))}catch(e){U(e instanceof Error?e.message:String(e))}finally{Y(!1)}}},ef=(0,u.useMemo)(()=>eo.length,[eo.length]);(0,u.useEffect)(()=>{let e=window.setTimeout(()=>{eu||S||es(e=>e+1)},0);return()=>window.clearTimeout(e)},[eu,S,ef]);let eg=(t,r)=>{if(K!==t){V(t),J.current&&window.clearTimeout(J.current),J.current=window.setTimeout(()=>V(null),5e3);return}J.current&&(window.clearTimeout(J.current),J.current=null),V(null);let n=eo.filter(e=>r.includes(e.id)&&(e.locked||(e.activeResources?.length??0)>0));if(n.length){let t=n.map(e=>{let t=e.activeResources?.map(e=>e.label).join(", ");return`${e.name}${e.locked?" (locked)":""}${t?` (${t})`:""}`}).join("\n");if(!window.confirm(e("protectedDeleteWarning",{details:t})))return}ep("deleteDerivedDataEntries",r,n.length>0)},ej=async(e,t)=>{if(k){Y(!0);try{let r=await (0,T.controlPlaneRequest)(`mutation SetDerivedDataEntryLocked($collectionId: ID!, $entryId: ID!, $locked: Boolean!) {
|
|
56
|
+
setDerivedDataEntryLocked(collectionId: $collectionId, entryId: $entryId, locked: $locked) {
|
|
57
|
+
${q}
|
|
58
|
+
}
|
|
59
|
+
}`,{collectionId:k.id,entryId:e.id,locked:t});ei(r.setDerivedDataEntryLocked)}catch(e){U(e instanceof Error?e.message:String(e))}finally{Y(!1)}}},eb=(0,u.useMemo)(()=>{let e=new Map;for(let t of X){let r=new Date(t.deletedAt),n=(0,P.dayKey)(r)??t.deletedAt,a=e.get(n)??{label:(0,P.formatDateValue)(r,"long",{locale:x,showTime:!1}),items:[]};a.items.push(t),e.set(n,a)}return[...e.values()]},[X,x]),ev=`bulk:${em.map(e=>e.id).sort().join(":")}`,ew=K===ev;return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1500px] flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(j.Button,{disabled:!eo.length||S||eu||Q,onClick:()=>void ep("calculateDerivedDataSizes",eo.map(e=>e.id)),variant:"outline",children:[(0,t.jsx)(r,{})," ",e("calculateSizes")]}),(0,t.jsxs)(j.Button,{disabled:S||eu,onClick:()=>{N(!0),U(null),G(new Set),V(null),w((0,M.createClientId)())},variant:"outline",children:[(0,t.jsx)(i.RefreshCw,{className:S?"animate-spin":void 0}),e("refresh")]})]})]}),I&&(0,t.jsx)(f.Alert,{variant:"destructive",children:(0,t.jsx)(f.AlertDescription,{children:I})}),(0,t.jsx)(A,{}),k&&(0,t.jsx)(W,{collection:k}),k&&(0,t.jsx)(E.WorkflowResourcePanel,{resourceId:k.id,resourceKind:"BUILD_DATA_COLLECTION",sessionData:{buildData:{id:k.id}}}),S&&!k?(0,t.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(y.Spinner,{})," ",e("loading")]}):0===eo.length?(0,t.jsx)(B.Empty,{children:(0,t.jsxs)(B.EmptyHeader,{children:[(0,t.jsx)(B.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(B.EmptyDescription,{children:e("emptyDescription")})]})}):(0,t.jsxs)(t.Fragment,{children:[ed.length>0&&(0,t.jsxs)(b.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(b.CardHeader,{children:[(0,t.jsx)(b.CardTitle,{children:e("derivedDataTitle")}),(0,t.jsx)(b.CardDescription,{children:e("derivedDataDescription")})]}),em.length>0&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b p-3",children:[(0,t.jsx)("p",{className:"text-sm",children:e("selected",{count:em.length})}),(0,t.jsxs)(j.Button,{className:"w-40",disabled:eu||Q,onClick:()=>eg(ev,em.map(e=>e.id)),size:"sm",variant:ew?"destructive":"outline",children:[ew?(0,t.jsx)(n.Check,{}):(0,t.jsx)(l.Trash2,{}),ew?e("confirmDelete"):e("deleteSelected")]})]}),(0,t.jsxs)(L.Table,{children:[(0,t.jsx)(L.TableHeader,{children:(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableHead,{className:"w-12",children:(0,t.jsx)($.Checkbox,{"aria-label":e("selectAll"),checked:!!eh||!!ex&&"indeterminate",onCheckedChange:e=>{V(null),G(!0===e?new Set(eo.map(e=>e.id)):new Set)}})}),(0,t.jsx)(L.TableHead,{children:e("folder")}),(0,t.jsx)(L.TableHead,{children:e("worktree")}),(0,t.jsx)(L.TableHead,{children:e("modified")}),(0,t.jsx)(L.TableHead,{children:e("size")}),(0,t.jsx)(L.TableHead,{children:e("agent")}),(0,t.jsx)(L.TableHead,{className:"w-12 text-right",children:(0,t.jsx)("span",{className:"sr-only",children:e("actions")})})]})}),(0,t.jsx)(L.TableBody,{children:ed.map(r=>(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableCell,{children:(0,t.jsx)($.Checkbox,{"aria-label":e("selectEntry",{name:r.name}),checked:F.has(r.id),onCheckedChange:e=>{V(null),G(t=>{let n=new Set(t);return!0===e?n.add(r.id):n.delete(r.id),n})}})}),(0,t.jsxs)(L.TableCell,{children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"break-all font-mono text-xs",children:r.name}),"READY"!==r.status&&(0,t.jsx)(g.Badge,{variant:"secondary",children:e(`status.${r.status}`)}),"IDLE"!==r.operation&&(0,t.jsx)(y.Spinner,{}),r.locked&&(0,t.jsxs)(g.Badge,{variant:"success",children:[(0,t.jsx)(a.Lock,{})," ",e("locked")]})]}),(r.activeResources?.length??0)>0&&(0,t.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:r.activeResources?.map(e=>(0,t.jsx)(C.Link,{href:e.href,children:(0,t.jsx)(g.Badge,{variant:"secondary",children:e.label})},`${e.kind}:${e.id}`))}),r.error&&(0,t.jsx)("p",{className:"mt-1 text-xs text-destructive",children:r.error})]}),(0,t.jsx)(L.TableCell,{className:"font-mono text-xs",children:r.worktreeId&&r.worktreePath?(0,t.jsx)(C.Link,{className:"underline-offset-4 hover:underline",href:`/worktrees/${r.worktreeId}`,children:r.worktreePath}):"—"}),(0,t.jsx)(L.TableCell,{className:"whitespace-nowrap text-xs",children:r.modifiedAt?(0,t.jsx)(p.DateTime,{value:r.modifiedAt}):"—"}),(0,t.jsx)(L.TableCell,{className:"tabular-nums",children:null===r.sizeBytes?"—":z(r.sizeBytes,x)}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(C.Link,{className:(0,O.cn)(H.rowLinkClass,"inline-block"),href:`/agents/${r.agent.id}`,children:r.agent.name})}),(0,t.jsx)(L.TableCell,{className:"w-12 text-right",children:(0,t.jsx)("div",{className:"flex items-center justify-end gap-1.5",children:(0,t.jsxs)(R.DropdownMenu,{onOpenChange:e=>{e||K!==`row:${r.id}`||(J.current&&(window.clearTimeout(J.current),J.current=null),V(null))},children:[(0,t.jsx)(R.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(j.Button,{"aria-label":e("entryActions",{name:r.name}),disabled:eu||Q,size:"icon-sm",variant:"ghost",children:(0,t.jsx)(s.MoreHorizontal,{})})}),(0,t.jsxs)(R.DropdownMenuContent,{align:"end",className:"w-48",children:[(0,t.jsxs)(R.DropdownMenuItem,{onSelect:()=>void ej(r,!r.locked),children:[r.locked?(0,t.jsx)(o.default,{}):(0,t.jsx)(a.Lock,{}),r.locked?e("unlock"):e("lock")]}),(0,t.jsxs)(R.DropdownMenuItem,{onSelect:e=>{K!==`row:${r.id}`&&e.preventDefault(),eg(`row:${r.id}`,[r.id])},variant:K===`row:${r.id}`?"destructive":"default",children:[K===`row:${r.id}`?(0,t.jsx)(n.Check,{}):(0,t.jsx)(l.Trash2,{}),K===`row:${r.id}`?e("confirmDelete"):e("delete")]})]})]})})})]},r.id))})]})]}),(0,t.jsx)(_,{activeOperation:eu||Q,entries:ec,locale:x,onDelete:e=>void ep("deleteDerivedDataEntries",[e]),onDeleteMany:e=>void ep("deleteDerivedDataEntries",e),onSelectionChange:(e,t)=>{V(null),G(r=>{let n=new Set(r);return t?n.add(e):n.delete(e),n})},selected:F})]}),(0,t.jsxs)(b.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(b.CardHeader,{className:"max-sm:has-data-[slot=card-action]:grid-cols-1",children:[(0,t.jsx)(b.CardTitle,{children:e("history")}),(0,t.jsx)(b.CardDescription,{children:e("historyDescription")}),X.length>0&&(0,t.jsx)(b.CardAction,{className:"max-sm:col-start-1 max-sm:row-start-3 max-sm:row-span-1 max-sm:mt-3 max-sm:justify-self-stretch",children:(0,t.jsx)(h.ConfirmationDialog,{actionLabel:e("clearHistory"),cancelLabel:m("cancel"),description:e("clearHistoryDescription"),onConfirm:async()=>{await (0,T.controlPlaneRequest)("mutation { clearDerivedDataDeletionHistory }"),es(e=>e+1)},title:e("clearHistoryTitle"),trigger:(0,t.jsxs)(j.Button,{size:"sm",variant:"outline",children:[(0,t.jsx)(l.Trash2,{})," ",e("clearHistory")]})})})]}),er&&0===X.length?(0,t.jsxs)("p",{className:"flex items-center gap-2 p-6 text-sm text-muted-foreground",children:[(0,t.jsx)(y.Spinner,{})," ",e("loadingHistory")]}):0===X.length?(0,t.jsx)(B.Empty,{className:"py-8",children:(0,t.jsx)(B.EmptyHeader,{children:(0,t.jsx)(B.EmptyDescription,{children:e("noHistory")})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(L.Table,{children:[(0,t.jsx)(L.TableHeader,{children:(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableHead,{children:e("folder")}),(0,t.jsx)(L.TableHead,{children:e("worktree")}),(0,t.jsx)(L.TableHead,{children:e("agent")}),(0,t.jsx)(L.TableHead,{children:e("deleted")}),(0,t.jsx)(L.TableHead,{children:e("sourceLabel")})]})}),(0,t.jsx)(L.TableBody,{children:eb.map(r=>(0,t.jsxs)(u.Fragment,{children:[(0,t.jsx)(L.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)(L.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:5,children:r.label})}),r.items.map(r=>(0,t.jsxs)(L.TableRow,{children:[(0,t.jsx)(L.TableCell,{className:"font-mono text-xs",children:r.folderName}),(0,t.jsx)(L.TableCell,{className:"font-mono text-xs",children:r.worktreePath??"—"}),(0,t.jsx)(L.TableCell,{children:r.agentName}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(p.DateTime,{kind:"time",relativeToday:!0,value:r.deletedAt})}),(0,t.jsx)(L.TableCell,{children:(0,t.jsx)(g.Badge,{variant:"secondary",children:e(`source.${r.source}`)})})]},r.id))]},r.label))})]}),ee&&(0,t.jsx)("div",{className:"border-t p-3 text-center",children:(0,t.jsxs)(j.Button,{disabled:er,onClick:()=>void el(ee),variant:"outline",children:[er&&(0,t.jsx)(y.Spinner,{})," ",e("loadMore")]})})]})]})]})}],955862)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),s=e.i(225913),i=e.i(975157);let n=(0,s.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,i.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...s})},"EmptyDescription",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,i.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...s})},"EmptyHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,i.cn)("flex max-w-sm flex-col items-center gap-2",e),...s})},"EmptyMedia",0,function({className:e,variant:s="default",...a}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":s,className:(0,i.cn)(n({variant:s,className:e})),...a})},"EmptyTitle",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,i.cn)("font-heading text-sm font-medium tracking-tight",e),...s})}])},607835,e=>{"use strict";var t=e.i(843476),s=e.i(936269),i=e.i(741120),n=e.i(948148),a=e.i(929592),r=e.i(487486),l=e.i(519455),c=e.i(82612),d=e.i(302747),o=e.i(987968),m=e.i(731485),x=e.i(116261);e.s(["ActionCenterPage",0,function(){let e=(0,n.useTranslations)("actionCenter"),{items:u,totalCount:h,needsAttentionCount:f,activeCount:p,loading:j,loadingMore:v,error:g,hasMore:y,loadMore:N,refresh:b}=(0,x.useActionCenter)(),k=u.filter(({reason:e})=>"ACTIVE"!==e),C=u.filter(({reason:e})=>"ACTIVE"===e);return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsx)(l.Button,{"aria-label":e("refresh"),disabled:j,onClick:()=>void b(),size:"icon",title:e("refresh"),variant:"outline",children:j?(0,t.jsx)(o.Spinner,{}):(0,t.jsx)(i.RefreshCw,{})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(r.Badge,{variant:"outline",children:e("totalCount",{count:h})}),(0,t.jsx)(r.Badge,{className:"border-amber-500/40",variant:"outline",children:e("attentionCount",{count:f})}),(0,t.jsx)(r.Badge,{variant:"success",children:e("activeCount",{count:p})})]}),g&&(0,t.jsx)(a.Alert,{variant:"destructive",children:(0,t.jsx)(a.AlertDescription,{children:g})}),j&&0===u.length?(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(d.Skeleton,{className:"h-40 w-full"}),(0,t.jsx)(d.Skeleton,{className:"h-40 w-full"}),(0,t.jsx)(d.Skeleton,{className:"h-40 w-full"})]}):0===u.length?(0,t.jsx)(c.Empty,{className:"border",children:(0,t.jsxs)(c.EmptyHeader,{children:[(0,t.jsx)(c.EmptyMedia,{variant:"icon",children:(0,t.jsx)(s.ListTodo,{})}),(0,t.jsx)(c.EmptyTitle,{children:e("emptyTitle")}),(0,t.jsx)(c.EmptyDescription,{children:e("emptyDescription")})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"space-y-3","aria-labelledby":"attention-heading",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",id:"attention-heading",children:e("needsAttention")}),(0,t.jsx)(r.Badge,{variant:"outline",children:f})]}),k.length?(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(100%,32rem),1fr))] items-stretch gap-3","data-slot":"action-center-items",children:k.map(e=>(0,t.jsx)(m.ActionCenterItem,{item:e},e.key))}):0===f?(0,t.jsx)("p",{className:"rounded-lg border p-5 text-sm text-muted-foreground",children:e("noAttention")}):null]}),(0,t.jsxs)("section",{className:"space-y-3","aria-labelledby":"active-heading",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",id:"active-heading",children:e("active")}),(0,t.jsx)(r.Badge,{variant:"success",children:p})]}),C.length?(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(min(100%,32rem),1fr))] items-stretch gap-3","data-slot":"action-center-items",children:C.map(e=>(0,t.jsx)(m.ActionCenterItem,{item:e},e.key))}):0===p?(0,t.jsx)("p",{className:"rounded-lg border p-5 text-sm text-muted-foreground",children:e("noActive")}):null]})]}),y&&(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)(l.Button,{disabled:v,onClick:()=>void N(),variant:"outline",children:[v&&(0,t.jsx)(o.Spinner,{})," ",e("loadMore")]})})]})}])}]);
|