commandmate 0.44.2 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +289 -289
- package/.next/app-path-routes-manifest.json +20 -20
- package/.next/build-manifest.json +5 -5
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +12 -12
- package/.next/react-loadable-manifest.json +26 -32
- package/.next/required-server-files.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agents/update/route.js +1 -1
- package/.next/server/app/api/agents/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agents/versions/route.js +1 -1
- package/.next/server/app/api/agents/versions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/app/release-notes/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/app/update/route.js +2 -2
- package/.next/server/app/api/app/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/app/update-check/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/login/route.js +1 -1
- package/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/capabilities/route.js +1 -1
- package/.next/server/app/api/capabilities/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/daily-summary/route.js +1 -1
- package/.next/server/app/api/daily-summary/route.js.nft.json +1 -1
- package/.next/server/app/api/daily-summary/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/daily-summary/status/route.js +1 -1
- package/.next/server/app/api/daily-summary/status/route.js.nft.json +1 -1
- package/.next/server/app/api/daily-summary/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/external-apps/[id]/health/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/external-apps/[id]/route.js +1 -1
- package/.next/server/app/api/external-apps/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/external-apps/route.js +1 -1
- package/.next/server/app/api/external-apps/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/fs/browse/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/fs/recent-paths/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/hooks/agent-event/route.js +2 -2
- package/.next/server/app/api/hooks/agent-event/route.js.nft.json +1 -1
- package/.next/server/app/api/hooks/agent-event/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/hooks/claude-done/route.js +2 -2
- package/.next/server/app/api/hooks/claude-done/route.js.nft.json +1 -1
- package/.next/server/app/api/hooks/claude-done/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/hooks/permission-request/route.js +1 -1
- package/.next/server/app/api/hooks/permission-request/route.js.nft.json +1 -1
- package/.next/server/app/api/hooks/permission-request/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/metrics/vibe/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/push/escalation/route.js +1 -1
- package/.next/server/app/api/push/escalation/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/push/subscriptions/route.js +2 -2
- package/.next/server/app/api/push/subscriptions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/push/vapid/route.js +1 -1
- package/.next/server/app/api/push/vapid/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/relays/[relayId]/cancel/route.js +1 -1
- package/.next/server/app/api/relays/[relayId]/cancel/route.js.nft.json +1 -1
- package/.next/server/app/api/relays/[relayId]/cancel/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/relays/route.js +1 -1
- package/.next/server/app/api/relays/route.js.nft.json +1 -1
- package/.next/server/app/api/relays/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/remote/pair/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/[id]/route.js +1 -1
- package/.next/server/app/api/repositories/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/clone/[jobId]/route.js +1 -1
- package/.next/server/app/api/repositories/clone/[jobId]/route.js.nft.json +1 -1
- package/.next/server/app/api/repositories/clone/[jobId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/clone/route.js +1 -1
- package/.next/server/app/api/repositories/clone/route.js.nft.json +1 -1
- package/.next/server/app/api/repositories/clone/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/excluded/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/restore/route.js +1 -1
- package/.next/server/app/api/repositories/restore/route.js.nft.json +1 -1
- package/.next/server/app/api/repositories/restore/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/route.js +1 -1
- package/.next/server/app/api/repositories/route.js.nft.json +1 -1
- package/.next/server/app/api/repositories/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/scan/route.js +1 -1
- package/.next/server/app/api/repositories/scan/route.js.nft.json +1 -1
- package/.next/server/app/api/repositories/scan/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/sync/route.js +1 -1
- package/.next/server/app/api/repositories/sync/route.js.nft.json +1 -1
- package/.next/server/app/api/repositories/sync/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/repositories/validate-path/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/settings/default-agents/route.js +1 -1
- package/.next/server/app/api/settings/default-agents/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/default-agents/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/settings/default-surface-mode/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sidebar/group-order/route.js +1 -1
- package/.next/server/app/api/sidebar/group-order/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/[id]/route.js +1 -1
- package/.next/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/installations/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/operations/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/reindex/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/slash-commands/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[taskId]/cancel/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[taskId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/templates/[id]/route.js +2 -2
- package/.next/server/app/api/templates/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/templates/route.js +2 -2
- package/.next/server/app/api/templates/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/verification/runs/[runId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/verification/runs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/auto-yes/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/auto-yes/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/auto-yes/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/capture/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/capture/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/capture/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/clear-composer/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/clear-composer/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/clear-composer/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/cli-reference/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/cli-tool/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/cli-tool/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js +3 -3
- package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/cmate/schedules/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/current-output/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/current-output/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/current-output/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/direct-input/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/direct-input/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/direct-input/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/env/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/execution-logs/route.js +2 -2
- package/.next/server/app/api/worktrees/[id]/execution-logs/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/execution-logs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/files/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/branch/create/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/branch/create/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/branch/delete/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/branch/delete/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/branches/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/checkout/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/checkout/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/commit/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/commit/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/diff/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/fetch/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/fetch/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/log/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/pull/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/pull/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/push/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/push/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/reset/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/reset/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/revert/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/revert/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stage/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stage/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/staged/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stash/apply/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stash/apply/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stash/pop/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stash/pop/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stash/push/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stash/push/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/stash/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/unstage/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/unstage/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/git/working-diff/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/instances/notes/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/instances/notes/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/instances/opencode/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/interrupt/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/interrupt/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/interrupt/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/kill-session/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/kill-session/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/kill-session/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/logs/[filename]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/logs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/marp-render/route.js +3 -3
- package/.next/server/app/api/worktrees/[id]/marp-render/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/memos/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/memos/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/messages/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/opencode/diff/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/opencode/diff/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/opencode/session/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/opencode/session/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/opencode/session/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/opencode/share/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/opencode/share/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/opencode/share/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/prompt-response/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/prompt-response/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/prompt-response/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/resolve-target/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/respond/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/respond/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/respond/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js +2 -2
- package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/schedules/active/route.js +2 -2
- package/.next/server/app/api/worktrees/[id]/schedules/active/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/schedules/active/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/schedules/route.js +3 -3
- package/.next/server/app/api/worktrees/[id]/schedules/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/schedules/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/send/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/send/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/send/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js +2 -2
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/skills/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/slash-commands/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/slash-commands/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/special-keys/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/special-keys/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/special-keys/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/tasks/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/tasks/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/terminal/route.js +2 -2
- package/.next/server/app/api/worktrees/[id]/terminal/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/terminal/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/timers/history/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/timers/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/timers/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/[id]/timers/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/todos/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/todos/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/tree/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/tree/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/upload/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/verify/config/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/verify/config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/verify/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/verify/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route.js +1 -1
- package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/verify/runs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/[id]/viewed/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/apply-default-agents/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/route.js +1 -1
- package/.next/server/app/api/worktrees/route.js.nft.json +1 -1
- package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
- package/.next/server/app/more/page_client-reference-manifest.js +1 -1
- package/.next/server/app/offline/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/proxy/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/repositories/page_client-reference-manifest.js +1 -1
- package/.next/server/app/review/page_client-reference-manifest.js +1 -1
- package/.next/server/app/sessions/page.js +1 -1
- package/.next/server/app/sessions/page.js.nft.json +1 -1
- package/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/.next/server/app/skills/[skillId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/skills/installed/page_client-reference-manifest.js +1 -1
- package/.next/server/app/skills/page_client-reference-manifest.js +1 -1
- package/.next/server/app/worktrees/[id]/files/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/worktrees/[id]/page.js +11 -11
- package/.next/server/app/worktrees/[id]/page.js.nft.json +1 -1
- package/.next/server/app/worktrees/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/worktrees/[id]/terminal/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +20 -20
- package/.next/server/chunks/1191.js +2 -2
- package/.next/server/chunks/1210.js +1 -1
- package/.next/server/chunks/1503.js +2 -2
- package/.next/server/chunks/1559.js +2 -0
- package/.next/server/chunks/1789.js +1 -0
- package/.next/server/chunks/1944.js +1 -1
- package/.next/server/chunks/2119.js +1 -1
- package/.next/server/chunks/22.js +1 -1
- package/.next/server/chunks/2404.js +1 -1
- package/.next/server/chunks/2445.js +1 -1
- package/.next/server/chunks/2460.js +1 -1
- package/.next/server/chunks/2710.js +2 -2
- package/.next/server/chunks/2908.js +1 -1
- package/.next/server/chunks/2980.js +1 -1
- package/.next/server/chunks/3241.js +1 -1
- package/.next/server/chunks/3480.js +1 -1
- package/.next/server/chunks/3718.js +1 -1
- package/.next/server/chunks/4207.js +2 -2
- package/.next/server/chunks/450.js +1 -1
- package/.next/server/chunks/{9353.js → 4718.js} +2 -2
- package/.next/server/chunks/4802.js +1 -1
- package/.next/server/chunks/4837.js +14 -0
- package/.next/server/chunks/5048.js +1 -1
- package/.next/server/chunks/5064.js +1 -1
- package/.next/server/chunks/5209.js +1 -0
- package/.next/server/chunks/5292.js +7 -0
- package/.next/server/chunks/5595.js +1 -1
- package/.next/server/chunks/5625.js +25 -0
- package/.next/server/chunks/5737.js +1 -1
- package/.next/server/chunks/6065.js +1 -1
- package/.next/server/chunks/611.js +1 -1
- package/.next/server/chunks/6130.js +1 -1
- package/.next/server/chunks/6401.js +1 -1
- package/.next/server/chunks/6781.js +1 -1
- package/.next/server/chunks/6793.js +3 -3
- package/.next/server/chunks/7491.js +2 -2
- package/.next/server/chunks/7905.js +1 -1
- package/.next/server/chunks/850.js +1 -1
- package/.next/server/chunks/8728.js +3 -3
- package/.next/server/chunks/8791.js +1 -1
- package/.next/server/chunks/8800.js +1 -1
- package/.next/server/chunks/8918.js +6 -8
- package/.next/server/chunks/9051.js +1 -1
- package/.next/server/chunks/9130.js +1 -1
- package/.next/server/chunks/9390.js +2 -2
- package/.next/server/chunks/9584.js +1 -1
- package/.next/server/chunks/9627.js +6 -6
- package/.next/server/chunks/9731.js +3 -3
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-manifest.json +5 -5
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/1464.09cd37fee202ec4b.js +1 -0
- package/.next/static/chunks/{1642-fb2e176aaadbd137.js → 1642-767aed8e7c61ef7f.js} +1 -1
- package/.next/static/chunks/2053-390e77fce43b555c.js +1 -0
- package/.next/static/chunks/{2407-051f6f84226a9f2c.js → 2407-dd4a0f04f1349221.js} +1 -1
- package/.next/static/chunks/{2619-04bc32f026a0d946.js → 2619-a305ad4810f1393a.js} +1 -1
- package/.next/static/chunks/{2751-9ef0f4b450bd4ef0.js → 2751-5f0b2702accd164d.js} +1 -1
- package/.next/static/chunks/{282.6b6f2e31a96674dd.js → 282.a1013532fd9a61b4.js} +1 -1
- package/.next/static/chunks/3237.94c29281d9ec122e.js +1 -0
- package/.next/static/chunks/3480.2e21f62e5e9d3ba5.js +1 -0
- package/.next/static/chunks/4290.c06dbe243819fea0.js +66 -0
- package/.next/static/chunks/4727-5d695d71e3fdf97b.js +1 -0
- package/.next/static/chunks/{5222.305dc0ebba9c0784.js → 5222.39e2034d3fce233c.js} +1 -1
- package/.next/static/chunks/{7095.8c869e553133a40e.js → 7095.87323a4fdf426341.js} +1 -1
- package/.next/static/chunks/{7485.442b21101fca7257.js → 7485.8a2a9d7c5396aa26.js} +3 -3
- package/.next/static/chunks/{8165-3853772f6ae1299b.js → 8165-3525fb42f1b4976e.js} +1 -1
- package/.next/static/chunks/app/{layout-9da1ab602bcb3051.js → layout-07d040cb3d3ea657.js} +1 -1
- package/.next/static/chunks/app/sessions/page-2af68c63211c751f.js +1 -0
- package/.next/static/chunks/app/worktrees/[id]/page-35f0e31a725d1c89.js +1 -0
- package/.next/static/chunks/app/worktrees/[id]/terminal/{page-373ea37b16d930c7.js → page-c601f3b3ece6557e.js} +1 -1
- package/.next/static/chunks/{webpack-021f0741f22dd16a.js → webpack-165d8df9acd1c5d4.js} +1 -1
- package/.next/static/css/057f64a65726c439.css +1 -0
- package/.next/trace +13 -13
- package/dist/cli/commands/ask.d.ts.map +1 -1
- package/dist/cli/commands/ask.js +120 -119
- package/dist/cli/commands/attach.d.ts +94 -0
- package/dist/cli/commands/attach.d.ts.map +1 -1
- package/dist/cli/commands/attach.js +145 -7
- package/dist/cli/commands/auto-yes.js +1 -1
- package/dist/cli/commands/capture.d.ts.map +1 -1
- package/dist/cli/commands/capture.js +3 -5
- package/dist/cli/commands/command-target.d.ts +23 -0
- package/dist/cli/commands/command-target.d.ts.map +1 -0
- package/dist/cli/commands/command-target.js +25 -0
- package/dist/cli/commands/instances.d.ts.map +1 -1
- package/dist/cli/commands/instances.js +41 -2
- package/dist/cli/commands/message-dispatch.d.ts +36 -0
- package/dist/cli/commands/message-dispatch.d.ts.map +1 -0
- package/dist/cli/commands/message-dispatch.js +63 -0
- package/dist/cli/commands/reply.d.ts.map +1 -1
- package/dist/cli/commands/reply.js +2 -5
- package/dist/cli/commands/respond.d.ts.map +1 -1
- package/dist/cli/commands/respond.js +3 -6
- package/dist/cli/commands/send.d.ts.map +1 -1
- package/dist/cli/commands/send.js +149 -146
- package/dist/cli/commands/skill-format.d.ts +8 -0
- package/dist/cli/commands/skill-format.d.ts.map +1 -1
- package/dist/cli/commands/skill-format.js +13 -3
- package/dist/cli/commands/wait.d.ts.map +1 -1
- package/dist/cli/commands/wait.js +657 -431
- package/dist/cli/types/api-responses.d.ts +156 -27
- package/dist/cli/types/api-responses.d.ts.map +1 -1
- package/dist/cli/types/api-responses.js +4 -2
- package/dist/cli/utils/api-client.d.ts +25 -5
- package/dist/cli/utils/api-client.d.ts.map +1 -1
- package/dist/cli/utils/api-client.js +87 -55
- package/dist/cli/utils/server-url.d.ts +1 -0
- package/dist/cli/utils/server-url.d.ts.map +1 -1
- package/dist/cli/utils/server-url.js +7 -0
- package/dist/cli/utils/verify-runner.d.ts +21 -0
- package/dist/cli/utils/verify-runner.d.ts.map +1 -1
- package/dist/cli/utils/verify-runner.js +38 -1
- package/dist/config/uat-isolation.d.ts +140 -0
- package/dist/config/uat-isolation.d.ts.map +1 -0
- package/dist/config/uat-isolation.js +246 -0
- package/dist/lib/global-state.d.ts +12 -0
- package/dist/lib/global-state.d.ts.map +1 -0
- package/dist/lib/global-state.js +16 -0
- package/dist/lib/polling/auto-yes-suppression-reason.d.ts +33 -0
- package/dist/lib/polling/auto-yes-suppression-reason.d.ts.map +1 -0
- package/dist/lib/polling/auto-yes-suppression-reason.js +2 -0
- package/dist/lib/session/prompt-view.d.ts +26 -3
- package/dist/lib/session/prompt-view.d.ts.map +1 -1
- package/dist/lib/session/prompt-view.js +26 -3
- package/dist/lib/session/status-evidence-type.d.ts +16 -0
- package/dist/lib/session/status-evidence-type.d.ts.map +1 -0
- package/dist/lib/session/status-evidence-type.js +2 -0
- package/dist/lib/tmux/legacy-session-alias.d.ts.map +1 -1
- package/dist/lib/tmux/legacy-session-alias.js +2 -1
- package/dist/server/locales/en/worktree.json +8 -2
- package/dist/server/locales/ja/worktree.json +8 -2
- package/dist/server/src/cli/types/api-responses.js +4 -2
- package/dist/server/src/config/cli-tool-timing-config.js +1 -6
- package/dist/server/src/config/uat-isolation.js +246 -0
- package/dist/server/src/lib/assistant-response-saver.js +62 -3
- package/dist/server/src/lib/auto-yes-lifecycle.js +6 -0
- package/dist/server/src/lib/auto-yes-poller.js +450 -160
- package/dist/server/src/lib/auto-yes-state.js +2 -2
- package/dist/server/src/lib/cli-tools/antigravity.js +38 -79
- package/dist/server/src/lib/cli-tools/base.js +151 -0
- package/dist/server/src/lib/cli-tools/codex.js +44 -80
- package/dist/server/src/lib/cli-tools/command-code.js +24 -56
- package/dist/server/src/lib/cli-tools/copilot.js +25 -67
- package/dist/server/src/lib/cli-tools/direct-input.js +8 -0
- package/dist/server/src/lib/cli-tools/gemini.js +23 -73
- package/dist/server/src/lib/cli-tools/opencode-pane-width.js +53 -0
- package/dist/server/src/lib/cli-tools/opencode-v2.js +9 -7
- package/dist/server/src/lib/cli-tools/opencode.js +21 -85
- package/dist/server/src/lib/cli-tools/submit-verified-sender.js +127 -4
- package/dist/server/src/lib/cli-tools/vibe-local.js +21 -66
- package/dist/server/src/lib/detection/cli-patterns.js +374 -3065
- package/dist/server/src/lib/detection/idle-evidence-observation.js +2 -2
- package/dist/server/src/lib/detection/model-info-extractor.js +57 -3
- package/dist/server/src/lib/detection/prompt-detect-multiple-choice.js +7 -32
- package/dist/server/src/lib/detection/prompt-detector.js +2 -35
- package/dist/server/src/lib/detection/selection-shape-patterns.js +69 -0
- package/dist/server/src/lib/detection/selection-shape.js +32 -520
- package/dist/server/src/lib/detection/shared/pasted-text.js +41 -0
- package/dist/server/src/lib/detection/shared/shell-pane-command.js +16 -0
- package/dist/server/src/lib/detection/shared/strip-box-drawing.js +25 -0
- package/dist/server/src/lib/detection/status-detector.js +1 -1
- package/dist/server/src/lib/detection/tools/antigravity/detect.js +5 -29
- package/dist/server/src/lib/detection/tools/antigravity/dialog.js +2 -15
- package/dist/server/src/lib/detection/tools/antigravity/patterns.js +286 -0
- package/dist/server/src/lib/detection/tools/claude/detect.js +3 -14
- package/dist/server/src/lib/detection/tools/claude/patterns.js +264 -4
- package/dist/server/src/lib/detection/tools/claude/prompt.js +2 -10
- package/dist/server/src/lib/detection/tools/codex/detect.js +46 -85
- package/dist/server/src/lib/detection/tools/codex/live-region.js +33 -2
- package/dist/server/src/lib/detection/tools/codex/patterns.js +855 -0
- package/dist/server/src/lib/detection/tools/codex/prompt.js +2 -10
- package/dist/server/src/lib/detection/tools/command-code/detect.js +8 -50
- package/dist/server/src/lib/detection/tools/command-code/dialog.js +2 -18
- package/dist/server/src/lib/detection/tools/command-code/patterns.js +234 -0
- package/dist/server/src/lib/detection/tools/command-code/selection-shape.js +461 -0
- package/dist/server/src/lib/detection/tools/context-above.js +20 -0
- package/dist/server/src/lib/detection/tools/copilot/detect.js +10 -35
- package/dist/server/src/lib/detection/tools/copilot/patterns.js +640 -0
- package/dist/server/src/lib/detection/tools/copilot/prompt.js +2 -10
- package/dist/server/src/lib/detection/tools/gemini/patterns.js +29 -0
- package/dist/server/src/lib/detection/tools/live-region-specs.js +1 -1
- package/dist/server/src/lib/detection/tools/opencode/detect.js +8 -49
- package/dist/server/src/lib/detection/tools/opencode/patterns.js +508 -0
- package/dist/server/src/lib/detection/tools/opencode-v2/detect.js +7 -42
- package/dist/server/src/lib/detection/tools/opencode-v2/patterns.js +63 -0
- package/dist/server/src/lib/detection/tools/run-detection.js +6 -47
- package/dist/server/src/lib/detection/tools/verdicts.js +59 -0
- package/dist/server/src/lib/detection/tools/vibe-local/patterns.js +20 -0
- package/dist/server/src/lib/detection/truncate-raw-content.js +38 -0
- package/dist/server/src/lib/detection/turn-abandoned.js +66 -0
- package/dist/server/src/lib/detection/unclassified-frame-tracker.js +2 -2
- package/dist/server/src/lib/git/git-exec.js +23 -5
- package/dist/server/src/lib/global-state.js +16 -0
- package/dist/server/src/lib/hooks/agent-session-telemetry.js +4 -6
- package/dist/server/src/lib/hooks/permission-decision-state.js +2 -2
- package/dist/server/src/lib/hooks/sources/antigravity/history.js +11 -76
- package/dist/server/src/lib/hooks/sources/antigravity/hooks-config.js +63 -1
- package/dist/server/src/lib/hooks/sources/antigravity/source.js +16 -0
- package/dist/server/src/lib/hooks/sources/antigravity/transcript.js +3 -12
- package/dist/server/src/lib/hooks/sources/claude/history.js +17 -156
- package/dist/server/src/lib/hooks/sources/claude/queued-notice.js +53 -0
- package/dist/server/src/lib/hooks/sources/claude/self-resume.js +213 -0
- package/dist/server/src/lib/hooks/sources/claude/source.js +57 -10
- package/dist/server/src/lib/hooks/sources/claude/transcript.js +3 -13
- package/dist/server/src/lib/hooks/sources/codex/history.js +11 -74
- package/dist/server/src/lib/hooks/sources/codex/hooks-config.js +147 -11
- package/dist/server/src/lib/hooks/sources/codex/relay-install.js +64 -21
- package/dist/server/src/lib/hooks/sources/codex/transcript.js +5 -15
- package/dist/server/src/lib/hooks/sources/command-code/history.js +20 -121
- package/dist/server/src/lib/hooks/sources/command-code/transcript.js +3 -13
- package/dist/server/src/lib/hooks/sources/copilot/hook-settings.js +161 -31
- package/dist/server/src/lib/hooks/sources/define-source.js +40 -55
- package/dist/server/src/lib/hooks/sources/event-mapper.js +2 -1
- package/dist/server/src/lib/hooks/sources/opencode/diff.js +3 -4
- package/dist/server/src/lib/hooks/sources/opencode/history.js +2 -1
- package/dist/server/src/lib/hooks/sources/opencode/launch-settings.js +2 -1
- package/dist/server/src/lib/hooks/sources/opencode/payloads.js +2 -1
- package/dist/server/src/lib/hooks/sources/opencode/ports.js +2 -1
- package/dist/server/src/lib/hooks/sources/opencode/subscription.js +4 -3
- package/dist/server/src/lib/hooks/sources/opencode/transcript.js +3 -16
- package/dist/server/src/lib/hooks/sources/opencode-v2/history.js +2 -1
- package/dist/server/src/lib/hooks/sources/opencode-v2/mappers.js +5 -4
- package/dist/server/src/lib/hooks/sources/opencode-v2/ports.js +2 -1
- package/dist/server/src/lib/hooks/sources/opencode-v2/subscription.js +3 -7
- package/dist/server/src/lib/hooks/sources/opencode-v2/usage.js +2 -1
- package/dist/server/src/lib/hooks/sources/pending-decisions.js +2 -1
- package/dist/server/src/lib/hooks/sources/registry.js +3 -2
- package/dist/server/src/lib/hooks/sources/transcript-history.js +262 -0
- package/dist/server/src/lib/hooks/sources/turn-body.js +31 -0
- package/dist/server/src/lib/hooks/tool-input-normalization-state.js +2 -2
- package/dist/server/src/lib/polling/antigravity-permission-receipts.js +2 -2
- package/dist/server/src/lib/polling/auto-yes-enter-fallback-state.js +142 -0
- package/dist/server/src/lib/polling/auto-yes-enter-fallback.js +187 -0
- package/dist/server/src/lib/polling/auto-yes-resolver.js +9 -3
- package/dist/server/src/lib/polling/auto-yes-suppression-reason.js +2 -0
- package/dist/server/src/lib/polling/auto-yes-suppression-state.js +2 -2
- package/dist/server/src/lib/polling/pending-scraped-response.js +190 -0
- package/dist/server/src/lib/polling/prompt-dedup-state.js +2 -2
- package/dist/server/src/lib/polling/prompt-dedup.js +2 -2
- package/dist/server/src/lib/polling/response-checker-dialog-gate.js +95 -0
- package/dist/server/src/lib/polling/response-checker-extraction-result.js +50 -0
- package/dist/server/src/lib/polling/response-checker-extraction-steps.js +670 -0
- package/dist/server/src/lib/polling/response-checker.js +641 -1142
- package/dist/server/src/lib/polling/response-dedup.js +3 -4
- package/dist/server/src/lib/polling/response-poller-constants.js +17 -0
- package/dist/server/src/lib/polling/response-poller-core.js +54 -20
- package/dist/server/src/lib/polling/startup-screen.js +142 -0
- package/dist/server/src/lib/polling/structured-history-gate.js +3 -2
- package/dist/server/src/lib/prompt-answer-semantic.js +178 -0
- package/dist/server/src/lib/prompt-answer-sender.js +5 -4
- package/dist/server/src/lib/push/failure-episode-state.js +2 -2
- package/dist/server/src/lib/push/notification-dedup.js +3 -4
- package/dist/server/src/lib/push/prompt-card-state.js +2 -2
- package/dist/server/src/lib/push/waiting-push-notifier.js +3 -4
- package/dist/server/src/lib/realtime/publisher-registry.js +3 -2
- package/dist/server/src/lib/realtime/terminal-broadcast.js +38 -5
- package/dist/server/src/lib/realtime/terminal-session-ownership.js +45 -0
- package/dist/server/src/lib/relay/relay-delivery.js +3 -2
- package/dist/server/src/lib/relay/relay-readiness.js +38 -1
- package/dist/server/src/lib/response-cleaner.js +24 -1
- package/dist/server/src/lib/response-extractor.js +16 -0
- package/dist/server/src/lib/schedule-manager.js +8 -10
- package/dist/server/src/lib/session/agent-event-ask-user-question.js +168 -0
- package/dist/server/src/lib/session/agent-event-awaiting-instruction.js +104 -0
- package/dist/server/src/lib/session/agent-event-dedup.js +539 -0
- package/dist/server/src/lib/session/agent-event-model.js +562 -0
- package/dist/server/src/lib/session/agent-event-record.js +10 -0
- package/dist/server/src/lib/session/agent-event-state.js +107 -1854
- package/dist/server/src/lib/session/agent-event-structured-state.js +109 -0
- package/dist/server/src/lib/session/agent-event-turn.js +862 -0
- package/dist/server/src/lib/session/agent-session-lifecycle.js +11 -2
- package/dist/server/src/lib/session/chat-turn-progress.js +322 -0
- package/dist/server/src/lib/session/claude-executor.js +45 -5
- package/dist/server/src/lib/session/claude-session.js +21 -65
- package/dist/server/src/lib/session/cli-session.js +17 -0
- package/dist/server/src/lib/session/current-output-builder.js +449 -1107
- package/dist/server/src/lib/session/current-output-history-writers.js +255 -0
- package/dist/server/src/lib/session/current-output-types.js +9 -0
- package/dist/server/src/lib/session/detection-divergence.js +55 -0
- package/dist/server/src/lib/session/global-session-constants.js +2 -13
- package/dist/server/src/lib/session/hook-turn-hold.js +102 -0
- package/dist/server/src/lib/session/layer-disagreement.js +2 -2
- package/dist/server/src/lib/session/opencode-session-store.js +2 -1
- package/dist/server/src/lib/session/prompt-view.js +26 -3
- package/dist/server/src/lib/session/prompt-waiting-composition.js +3 -2
- package/dist/server/src/lib/session/provisional-turn.js +3 -1
- package/dist/server/src/lib/session/send-user-message.js +1 -1
- package/dist/server/src/lib/session/session-starting-state.js +4 -6
- package/dist/server/src/lib/session/status-evidence-type.js +2 -0
- package/dist/server/src/lib/session/status-evidence.js +2 -2
- package/dist/server/src/lib/session/structured-status-merge.js +335 -0
- package/dist/server/src/lib/session/waiting-episode-state.js +3 -4
- package/dist/server/src/lib/session-cleanup.js +1 -5
- package/dist/server/src/lib/skills/install-plan.js +3 -1
- package/dist/server/src/lib/skills/preview-diff.js +24 -3
- package/dist/server/src/lib/skills/snapshot-store.js +2 -2
- package/dist/server/src/lib/skills/uninstall-plan.js +3 -2
- package/dist/server/src/lib/timer-manager.js +6 -8
- package/dist/server/src/lib/tmux/geometry-delegation.js +3 -4
- package/dist/server/src/lib/tmux/legacy-session-alias.js +2 -1
- package/dist/server/src/lib/tmux/session-hooks.js +2 -1
- package/dist/server/src/lib/tmux/session-status-options.js +3 -3
- package/dist/server/src/lib/tmux/tmux-capture-cache.js +3 -2
- package/dist/server/src/lib/tmux/tmux.js +33 -59
- package/dist/server/src/lib/tui-accumulator.js +2 -2
- package/dist/server/src/lib/verification/env-clean-gate.js +6 -5
- package/dist/server/src/lib/version-checker.js +6 -6
- package/dist/server/src/lib/ws-server.js +47 -11
- package/docs/en/user-guide/commands-guide.md +0 -1
- package/docs/en/user-guide/webapp-guide.md +27 -3
- package/package.json +3 -2
- package/release-notes/0.44.3.json +82 -0
- package/release-notes/0.45.0.json +41 -0
- package/scripts/hooks/cmate-agent-event.sh +38 -0
- package/.next/server/chunks/1068.js +0 -1
- package/.next/server/chunks/4372.js +0 -5
- package/.next/server/chunks/6474.js +0 -14
- package/.next/server/chunks/967.js +0 -1
- package/.next/server/chunks/9798.js +0 -2
- package/.next/server/chunks/9882.js +0 -25
- package/.next/static/chunks/2053-85a974ddfe7498fe.js +0 -1
- package/.next/static/chunks/4290.6cf86f68d73b6e77.js +0 -82
- package/.next/static/chunks/4459.a94b52985a76509a.js +0 -1
- package/.next/static/chunks/591-539fec878c9dec5e.js +0 -1
- package/.next/static/chunks/5951.616956b6aa5df63f.js +0 -1
- package/.next/static/chunks/9856.15463dd58437e2ac.js +0 -1
- package/.next/static/chunks/app/sessions/page-049e06335187aa91.js +0 -1
- package/.next/static/chunks/app/worktrees/[id]/page-2a81397e60f17e63.js +0 -1
- package/.next/static/css/38070d879efa1371.css +0 -1
- package/dist/server/src/lib/cli-tools/index.js +0 -41
- package/dist/server/src/lib/polling/global-session-poller.js +0 -140
- /package/.next/static/{QlCqLjorauDDBXPa-C7TK → TPWbZB3zBp3Zv_eFEOlmt}/_buildManifest.js +0 -0
- /package/.next/static/{QlCqLjorauDDBXPa-C7TK → TPWbZB3zBp3Zv_eFEOlmt}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2053],{24027:(e,t,s)=>{s.d(t,{Uc:()=>A,G8:()=>v,OJ:()=>C,RF:()=>R});var a=s(95155),l=s(12115),n=s(18955),r=s(51238),i=s(89451),d=s(10934),o=s(92254),c=s(5225);s(1226);var u=s(89715),x=s(57828),m=s(52056),p=s(65229),g=s(67909),h=s(3005);let k=(0,g.default)(()=>Promise.all([s.e(221),s.e(7485),s.e(953)]).then(s.bind(s,90953)).then(e=>({default:e.MermaidDiagram})),{loadableGenerated:{webpack:()=>[90953]},ssr:!1,loading:function(){let e=(0,n.c)("worktree");return(0,a.jsxs)("div",{className:"mermaid-loading flex items-center gap-2 text-muted-foreground p-4",children:[(0,a.jsx)(h.y,{size:"sm"}),(0,a.jsx)("span",{children:e("mermaid.loading")})]})}});function f(e){let{className:t,children:s}=e;if(t&&t.split(" ").includes("language-mermaid")){let e=null==s?"":"string"==typeof s?s:Array.isArray(s)?s.map(e=>"string"==typeof e?e:"").join(""):String(s);return(0,a.jsx)(k,{code:e})}return(0,a.jsx)("code",{className:t,children:s})}var j=s(50666),b=s(38021),y=s(69352),N=s(76246),w=s(99112);let v=(0,l.memo)(function(e){let{content:t,onOpenFile:s,currentFilePath:n,worktreeId:u}=e,x=(0,l.useRef)(s);x.current=s;let m=(0,l.useRef)(n);m.current=n;let p=(0,l.useRef)(u);p.current=u;let g=(0,l.useCallback)((e,t)=>{let s=(0,y.d3)(t);if(s)switch((0,y.dj)(s)){case"anchor":break;case"external":e.preventDefault(),window.open(s,"_blank","noopener,noreferrer");break;case"relative":{e.preventDefault();let t=m.current,a=x.current;if(t&&a){let e=(0,y.WU)(t,s);e&&a(e)}}}},[]),h=(0,l.useMemo)(()=>({code:f,pre:e=>{let{children:t}=e;return!function(e){let t=l.Children.toArray(e)[0];if(!l.isValidElement(t))return!1;let s=t.props.className;return"string"==typeof s&&s.split(" ").includes("language-mermaid")}(t)?(0,a.jsx)(j.Ck,{children:(0,a.jsx)("pre",{className:"overflow-x-auto",children:t})}):(0,a.jsx)("pre",{children:t})},img:e=>{var t,s,l,n;let{src:r,alt:i,width:d,height:o,...c}=e,u=null!=d?d:null==(s=c.node)||null==(t=s.properties)?void 0:t.width,x=null!=o?o:null==(n=c.node)||null==(l=n.properties)?void 0:l.height;if("string"==typeof r&&!r.startsWith("http://")&&!r.startsWith("https://")&&!r.startsWith("data:")){let e=m.current,t=p.current;if(e&&t){let s=(0,y.WU)(e,r);if(s){let e="/api/worktrees/".concat(t,"/files/").concat((0,N.o)(s));return(0,a.jsx)(b.n,{apiUrl:e,alt:null!=i?i:"",width:u,height:x})}}}return(0,a.jsx)("img",{src:r,alt:null!=i?i:"",width:u,height:x,style:{maxWidth:u||"100%"}})},a:e=>{let{href:t,children:s,...l}=e;return t?(0,a.jsx)("a",{...l,href:t,onClick:e=>g(e,t),children:s}):(0,a.jsx)("a",{...l,children:s})}}),[g]),k=(0,l.useMemo)(()=>[i.A,[d.A,y.uO],o.A,c.A],[]);return(0,a.jsx)(r.oz,{remarkPlugins:w.eT,rehypePlugins:k,components:h,children:t})}),R=(0,l.memo)(function(e){let{mobileTab:t,onTabChange:s}=e,l=(0,n.c)("worktree");return(0,a.jsxs)("div",{className:"flex border-b border-border",children:[(0,a.jsxs)("button",{"data-testid":"mobile-tab-editor",onClick:()=>s("editor"),className:"flex-1 py-2 text-sm font-medium ".concat("editor"===t?"text-accent-600 dark:text-accent-400 border-b-2 border-accent-600 dark:border-accent-400":"text-muted-foreground"),children:[(0,a.jsx)(u.A,{className:"h-4 w-4 inline-block mr-1"}),l("markdownPreview.editor")]}),(0,a.jsxs)("button",{"data-testid":"mobile-tab-preview",onClick:()=>s("preview"),className:"flex-1 py-2 text-sm font-medium ".concat("preview"===t?"text-accent-600 dark:text-accent-400 border-b-2 border-accent-600 dark:border-accent-400":"text-muted-foreground"),children:[(0,a.jsx)(x.A,{className:"h-4 w-4 inline-block mr-1"}),l("markdownPreview.preview")]})]})}),C=(0,l.memo)(function(e){let{isMobile:t}=e,s=(0,n.c)("worktree");return(0,a.jsxs)("div",{"data-testid":"maximize-hint",className:"flex items-center justify-center px-4 py-1 bg-muted text-muted-foreground text-xs",children:[s("markdownPreview.exitFullscreenHint")," ",t&&s("markdownPreview.exitFullscreenHintSwipe")]})}),A=(0,l.memo)(function(e){let{onDismiss:t}=e,s=(0,n.c)("worktree");return(0,a.jsxs)("div",{"data-testid":"large-file-warning",className:"flex items-center gap-2 px-4 py-2 bg-warning-subtle border-b border-warning-border text-warning-foreground text-sm",children:[(0,a.jsx)(m.A,{className:"h-4 w-4"}),s("markdownPreview.largeFileWarning"),(0,a.jsx)("button",{onClick:t,className:"ml-auto text-warning hover:text-warning",children:(0,a.jsx)(p.A,{className:"h-4 w-4"})})]})})},34380:(e,t,s)=>{s.d(t,{B:()=>T});var a=s(95155),l=s(12115),n=s(18955),r=s(48407),i=s(54014),d=s(74385),o=s(50825),c=s(37381);function u(e){var t,s,a,l,n;let r=e.agentInstances&&e.agentInstances.length>0?e.agentInstances.map(e=>e.alias||e.cliTool):null!=(s=e.selectedAgents)?s:e.cliToolId?[e.cliToolId]:[];return{id:e.id,name:e.name,repositoryName:null!=(a=e.repositoryDisplayName)?a:e.repositoryName,syncedBranch:null!=(l=e.branch)?l:null,liveBranch:null!=(n=null==(t=e.gitStatus)?void 0:t.currentBranch)?n:null,dirty:e.gitStatus&&!e.gitStatus.statusUnknown?e.gitStatus.isDirty:null,agents:[...new Set(r)],sessionRunning:!0===e.isSessionRunning}}let x={status:"loading",options:[]};async function m(e){let t=await fetch("/api/worktrees",{signal:e,headers:{Accept:"application/json"}});if(!t.ok)throw Error("HTTP ".concat(t.status));let s=await t.json(),a=null==s?void 0:s.worktrees;if(!Array.isArray(a))throw Error("Malformed worktree list");return a.map(u)}function p(e){let{selectedWorktreeId:t,onSelect:s,disabled:i=!1}=e,d=(0,n.c)("skills"),[o,u]=(0,l.useState)(x),[p,h]=(0,l.useState)(0);(0,l.useEffect)(()=>{let e=new AbortController;return u(x),m(e.signal).then(t=>{e.signal.aborted||u({status:"loaded",options:t})}).catch(()=>{e.signal.aborted||u({status:"error",options:[]})}),()=>e.abort()},[p]);let k=(0,l.useCallback)(()=>h(e=>e+1),[]);return"loading"===o.status?(0,a.jsxs)("div",{className:"space-y-2","data-testid":"skill-target-loading",children:[(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:d("target.loading")}),(0,a.jsx)(r.EA,{className:"h-24 w-full rounded-lg"})]}):"error"===o.status?(0,a.jsxs)(r.Zp,{className:"space-y-3","data-testid":"skill-target-error",children:[(0,a.jsx)(c.u,{tone:"danger",children:d("target.errorNotice")}),(0,a.jsx)(r.$n,{variant:"secondary",size:"sm",onClick:k,"data-testid":"skill-target-retry",children:d("target.retry")})]}):0===o.options.length?(0,a.jsx)(r.Zp,{"data-testid":"skill-target-empty",children:(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:d("target.empty")})}):(0,a.jsxs)("div",{className:"space-y-3","data-testid":"skill-target-selector",children:[(0,a.jsx)("div",{role:"radiogroup","aria-label":d("target.heading"),className:"space-y-2",children:o.options.map(e=>(0,a.jsx)(g,{option:e,selected:e.id===t,disabled:i,onSelect:s},e.id))}),(0,a.jsx)(c.u,{tone:"neutral","data-testid":"skill-target-branch-notice",children:d("target.branchFreshnessNotice")})]})}function g(e){var t;let{option:s,selected:l,disabled:i,onSelect:d}=e,o=(0,n.c)("skills"),c=null!=(t=s.liveBranch)?t:s.syncedBranch;return(0,a.jsxs)("button",{type:"button",role:"radio","aria-checked":l,disabled:i,onClick:()=>d(s.id),"data-testid":"skill-target-option-".concat(s.id),className:"w-full rounded-lg border px-3 py-2.5 text-left transition-colors disabled:cursor-not-allowed disabled:opacity-60 ".concat(l?"border-accent-500 bg-accent-50 dark:bg-accent-950/40":"border-border bg-card hover:bg-muted"),children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-semibold text-foreground break-all",children:s.name}),l&&(0,a.jsx)(r.Ex,{variant:"info",children:o("target.selected")})]}),(0,a.jsxs)("dl",{className:"mt-1.5 grid grid-cols-1 gap-x-4 gap-y-1 sm:grid-cols-2",children:[(0,a.jsx)(h,{label:o("target.repository"),children:s.repositoryName}),(0,a.jsx)(h,{label:o("target.branch"),children:null!=c?c:o("target.branchUnknown")}),(0,a.jsx)(h,{label:o("target.agents"),children:s.agents.length>0?s.agents.join(", "):o("target.agentsNone")}),(0,a.jsx)(h,{label:o("target.workingTree"),children:o(null===s.dirty?"target.workingTreeUnknown":s.dirty?"target.workingTreeDirty":"target.workingTreeClean")})]}),s.sessionRunning&&(0,a.jsx)("p",{className:"mt-1.5 text-xs text-muted-foreground","data-testid":"skill-target-session-".concat(s.id),children:o("target.sessionRunning")})]})}function h(e){let{label:t,children:s}=e;return(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("dt",{className:"text-xs font-medium text-muted-foreground",children:t}),(0,a.jsx)("dd",{className:"text-xs text-foreground break-words",children:s})]})}var k=s(95584);function f(e){let{label:t,children:s}=e;return(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("dt",{className:"text-xs font-medium text-muted-foreground",children:t}),(0,a.jsx)("dd",{className:"mt-0.5 break-words text-sm text-foreground",children:s})]})}function j(e){let{level:t,kind:s,label:l}=e,i=(0,n.c)("skills");return(0,a.jsxs)(r.Ex,{variant:k.eK[t],"data-testid":"skill-plan-risk-".concat(s,"-").concat(t),children:[l,": ",i(k.pP[t])]})}function b(e){let{entry:t}=e,s=(0,n.c)("skills"),l=k.KL[t.reason];return(0,a.jsxs)("li",{className:"space-y-1.5 rounded-md border border-border px-3 py-2","data-testid":"skill-plan-file-".concat(t.path),children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)(r.Ex,{variant:k.tC[t.change],children:s(k.AS[t.change])}),(0,a.jsx)("span",{className:"break-all font-mono text-xs text-foreground",children:t.path}),t.generated&&(0,a.jsx)(r.Ex,{variant:"gray",children:s("plan.fileGenerated")})]}),l&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:s(l)}),t.gitIgnored&&(0,a.jsx)("p",{className:"text-xs text-warning-foreground",children:s("plan.gitIgnored")}),t.binary?(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:s("plan.diffBinary")}):t.diff?(0,a.jsxs)("details",{children:[(0,a.jsx)("summary",{className:"cursor-pointer text-xs text-accent-600 dark:text-accent-400",children:s("plan.diffToggle",{additions:t.additions,deletions:t.deletions})}),(0,a.jsx)("pre",{className:"mt-1 overflow-x-auto rounded bg-muted p-2 font-mono text-[11px] leading-snug text-foreground",children:t.diff}),t.diffTruncated&&(0,a.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:s("plan.diffTruncated")})]}):null]})}function y(e){var t,s,l;let{plan:i}=e,d=(0,n.c)("skills"),{target:o,skill:u}=i,x=u.compatibility.commandmate;return(0,a.jsxs)(r.Zp,{className:"space-y-4","data-testid":"skill-install-plan",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:d("plan.heading")}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:d("plan.expiresAt",{timestamp:i.expiresAt})})]}),(0,a.jsxs)("section",{className:"space-y-2",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:d("plan.targetHeading")}),(0,a.jsxs)("dl",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,a.jsx)(f,{label:d("target.repository"),children:o.repositoryName}),(0,a.jsx)(f,{label:d("target.heading"),children:o.worktreeName}),(0,a.jsx)(f,{label:d("target.branch"),children:null!=(t=o.branch)?t:d("target.branchUnknown")}),(0,a.jsx)(f,{label:d("plan.headStateLabel"),children:d(null!=(s=k.kF[o.headState])?s:"plan.headState.unknown")}),(0,a.jsx)(f,{label:d("target.workingTree"),children:o.workingTreeUnknown?d("target.workingTreeStatusUnknown"):o.workingTreeDirty?d("target.workingTreeDirty"):d("target.workingTreeClean")}),(0,a.jsx)(f,{label:d("plan.installRoot"),children:(0,a.jsx)("span",{className:"break-all font-mono text-xs",children:(o.installRoots&&o.installRoots.length>0?o.installRoots:[o.installRoot]).map(e=>(0,a.jsx)("span",{className:"block",children:e},e))})}),(0,a.jsx)(f,{label:d("plan.existingInstall"),children:o.existingInstall?d("plan.existingInstallVersion",{version:o.existingInstall.version}):d("plan.existingInstallNone")}),(0,a.jsx)(f,{label:d("detail.recommendedVersion"),children:(0,a.jsx)("span",{className:"font-mono text-xs",children:u.version})})]})]}),(0,a.jsxs)("section",{className:"space-y-2","data-testid":"skill-plan-risk-section",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:d("plan.riskHeading")}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[(0,a.jsx)(j,{level:u.declaredRisk,kind:"declared",label:d("plan.riskDeclared")}),(0,a.jsx)(j,{level:u.computedRisk,kind:"computed",label:d("plan.riskComputed")}),(0,a.jsx)(j,{level:u.effectiveRisk,kind:"effective",label:d("plan.riskEffective")})]}),(0,a.jsx)("p",{className:"break-words text-sm text-foreground",children:u.riskRationale}),(0,a.jsx)(c.u,{tone:"neutral",children:d("plan.riskNotice")})]}),(0,a.jsxs)("section",{className:"space-y-2","data-testid":"skill-plan-permissions",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:d("permissions.heading")}),u.declaredPermissions.length>0?(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:u.declaredPermissions.map(e=>(0,a.jsx)(r.Ex,{variant:"warning",children:k.z2[e]?d(k.z2[e]):e},e))}):(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:d("plan.permissionsNone")}),(0,a.jsx)(c.u,{tone:"warning",children:d("permissions.declarationOnlyNotice")})]}),(0,a.jsxs)("section",{className:"space-y-2","data-testid":"skill-plan-requirements",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:d("requirements.heading")}),0===u.requirements.commands.length&&0===u.requirements.networkHosts.length?(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:d("plan.requirementsNone")}):(0,a.jsxs)("dl",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[u.requirements.commands.length>0&&(0,a.jsx)(f,{label:d("plan.requirementsCommands"),children:u.requirements.commands.map(e=>{var t;return"".concat(e.name," ").concat(null!=(t=e.versionRange)?t:d("plan.commandAnyVersion"))}).join(", ")}),u.requirements.networkHosts.length>0&&(0,a.jsx)(f,{label:d("plan.requirementsHosts"),children:u.requirements.networkHosts.join(", ")})]})]}),(0,a.jsxs)("section",{className:"space-y-2","data-testid":"skill-plan-scripts",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:d("plan.scriptsHeading")}),0===u.executablePaths.length&&0===u.scriptPaths.length?(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:d("plan.scriptsNone")}):(0,a.jsx)("ul",{className:"space-y-1",children:[...new Set([...u.scriptPaths,...u.executablePaths])].map(e=>(0,a.jsx)("li",{className:"break-all font-mono text-xs text-foreground",children:e},e))})]}),"compatible"!==x.status&&(0,a.jsx)(c.u,{tone:"warning","data-testid":"skill-plan-compatibility-notice",children:d((0,k.e5)(x.messageKey),{range:x.requiredRange,currentVersion:null!=(l=x.currentVersion)?l:""})}),i.warnings.length>0&&(0,a.jsxs)("section",{className:"space-y-2","data-testid":"skill-plan-warnings",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:d("plan.warningsHeading")}),(0,a.jsx)("ul",{className:"space-y-1",children:i.warnings.map(e=>(0,a.jsx)("li",{className:"text-xs text-warning-foreground",children:k.RO[e]?d(k.RO[e]):e},e))})]}),(0,a.jsxs)("section",{className:"space-y-2","data-testid":"skill-plan-files",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:d("plan.filesHeading")}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground","data-testid":"skill-plan-stats",children:d("plan.stats",{added:i.stats.added,modified:i.stats.modified,unchanged:i.stats.unchanged,conflicted:i.stats.conflicted,unmanaged:i.stats.unmanaged})}),0===i.files.length?(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:d("plan.filesEmpty")}):(0,a.jsx)("ul",{className:"space-y-2",children:i.files.map(e=>(0,a.jsx)(b,{entry:e},e.path))})]}),i.blockers.length>0&&(0,a.jsxs)("section",{className:"space-y-2","data-testid":"skill-install-blockers",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-danger-foreground",children:d("plan.blockersHeading")}),(0,a.jsx)("ul",{className:"space-y-1",children:i.blockers.map(e=>{var t,s;return(0,a.jsxs)("li",{className:"text-xs text-danger-foreground",children:[e.path&&(0,a.jsx)("span",{className:"mr-1 break-all font-mono",children:e.path}),e.code.startsWith("skills.")?d((0,k.e5)(e.code),{range:x.requiredRange,currentVersion:null!=(t=x.currentVersion)?t:""}):k.KL[e.code]?d(k.KL[e.code]):e.code]},"".concat(e.code,":").concat(null!=(s=e.path)?s:""))})}),(0,a.jsx)(c.u,{tone:"danger",children:d("plan.blockedNotice")})]})]})}function N(e){let{entry:t}=e,s=(0,n.c)("skills"),l=k.Mj[t.disposition],i=k.hJ[t.reason];return(0,a.jsxs)("li",{className:"flex flex-wrap items-center gap-2","data-testid":"skill-uninstall-file-".concat(t.path),children:[(0,a.jsx)(r.Ex,{variant:"remove"===t.disposition?"info":"warning",children:l?s(l):t.disposition}),(0,a.jsx)("span",{className:"break-all font-mono text-xs text-foreground",children:t.path}),i&&(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:s(i)})]})}function w(e){var t;let{plan:s}=e,l=(0,n.c)("skills"),{target:d,skill:o}=s;return(0,a.jsxs)(r.Zp,{className:"space-y-4","data-testid":"skill-uninstall-plan",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:l("uninstall.heading")}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:l("uninstall.expiresAt",{timestamp:s.expiresAt})})]}),(0,a.jsxs)("dl",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,a.jsx)(f,{label:l("target.repository"),children:d.repositoryName}),(0,a.jsx)(f,{label:l("target.heading"),children:d.worktreeName}),(0,a.jsx)(f,{label:l("target.branch"),children:null!=(t=d.branch)?t:l("target.branchUnknown")}),(0,a.jsx)(f,{label:l("uninstall.installedVersion"),children:(0,a.jsx)("span",{className:"font-mono text-xs",children:o.version||l("uninstall.versionUnknown")})}),(0,a.jsx)(f,{label:l("plan.installRoot"),children:(0,a.jsx)("span",{className:"break-all font-mono text-xs",children:d.installRoot})}),(0,a.jsx)(f,{label:l("target.workingTree"),children:d.workingTreeUnknown?l("target.workingTreeStatusUnknown"):d.workingTreeDirty?l("target.workingTreeDirty"):l("target.workingTreeClean")})]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground","data-testid":"skill-uninstall-stats",children:l("uninstall.stats",{removable:s.stats.removable,modified:s.stats.modified,missing:s.stats.missing,unknown:s.stats.unknown,irregular:s.stats.irregular})}),(0,a.jsxs)("section",{className:"space-y-2",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:l("uninstall.removalsHeading")}),0===s.removals.length?(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:l("uninstall.removalsEmpty")}):(0,a.jsx)("ul",{className:"space-y-1.5",children:s.removals.map(e=>(0,a.jsx)(N,{entry:e},e.path))})]}),(0,a.jsxs)("section",{className:"space-y-2",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:l("uninstall.retainedHeading")}),0===s.retained.length?(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:l("uninstall.retainedEmpty")}):(0,a.jsx)("ul",{className:"space-y-1.5",children:s.retained.map(e=>(0,a.jsx)(N,{entry:e},e.path))})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[s.skill.agents.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5","data-testid":"skill-uninstall-agents",children:s.skill.agents.map(e=>(0,a.jsx)(r.Ex,{variant:"gray",children:(0,i.f_)(e.agent)},e.agent))}),(0,a.jsx)(c.u,{tone:"neutral",children:l((0,k.e5)(s.nextActionKey))})]}),s.blockers.length>0&&(0,a.jsxs)("section",{className:"space-y-2","data-testid":"skill-uninstall-blockers",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-danger-foreground",children:l("uninstall.blockersHeading")}),(0,a.jsx)("ul",{className:"space-y-1",children:s.blockers.map(e=>{var t;return(0,a.jsxs)("li",{className:"text-xs text-danger-foreground",children:[e.path&&(0,a.jsx)("span",{className:"mr-1 break-all font-mono",children:e.path}),l((0,k.e5)(e.messageKey))]},"".concat(e.code,":").concat(null!=(t=e.path)?t:""))})})]})]})}var v=s(80130);let R={worktreeId:null,busy:null,installPlan:null,uninstallPlan:null,installResult:null,uninstallResult:null,riskAcknowledged:!1,failure:null};function C(e){return{...e,installPlan:null,uninstallPlan:null,installResult:null,uninstallResult:null,riskAcknowledged:!1,failure:null}}function A(e,t){return"".concat(e,"-").concat(t)}function I(e){let{failure:t}=e,s=(0,n.c)("skills");return(0,a.jsxs)("div",{className:"space-y-2","data-testid":"skill-operation-error",children:[(0,a.jsxs)(c.u,{tone:"danger",children:[(0,a.jsx)("p",{className:"font-medium",children:s("operation.errorHeading")}),(0,a.jsx)("p",{className:"mt-1",children:s((0,k.FW)(t.code))}),(0,a.jsx)("p",{className:"mt-1 break-words",children:s("state.errorCode",{code:t.code})})]}),t.nextActionKey&&(0,a.jsx)(c.u,{tone:"warning",children:s((0,k.e5)(t.nextActionKey))}),t.blockers&&t.blockers.length>0&&(0,a.jsx)("ul",{className:"space-y-1","data-testid":"skill-operation-error-blockers",children:t.blockers.map(e=>{var t;return(0,a.jsxs)("li",{className:"text-xs text-danger-foreground",children:[e.path&&(0,a.jsx)("span",{className:"mr-1 break-all font-mono",children:e.path}),s((0,k.e5)(e.messageKey))]},"".concat(e.code,":").concat(null!=(t=e.path)?t:""))})})]})}function P(e){let{agents:t,skillId:s,version:l}=e,r=(0,n.c)("skills");return 0===t.length?null:(0,a.jsxs)("div",{className:"space-y-1","data-testid":"skill-operation-reload",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:r("operation.reloadHeading")}),(0,a.jsx)("ul",{className:"space-y-1",children:t.map(e=>(0,a.jsx)("li",{className:"text-xs text-muted-foreground",children:r((0,k.e5)(e.messageKey),{agent:(0,i.f_)(e.agent),skillId:s,version:l})},e.agent))})]})}function T(e){var t;let{skillId:s,version:i,blockedReason:u,worktreeId:x,agents:m=[]}=e,g=(0,n.c)("skills"),[h,f]=(0,l.useState)(()=>x?{...R,worktreeId:x}:R),j=(0,l.useCallback)(e=>{f(t=>t.worktreeId===e?t:C({...t,worktreeId:e,busy:null}))},[]);(0,l.useEffect)(()=>{x&&j(x)},[x,j]);let b=(0,l.useCallback)(async()=>{let e=h.worktreeId;if(!e)return;f(e=>({...C(e),busy:"install-plan"}));let t=await (0,v.Q6)(e,s,{version:null!=i?i:void 0});f(e=>({...e,busy:null,installPlan:t.ok?t.data.plan:null,failure:t.ok?null:t.failure}))},[s,h.worktreeId,i]),N=(0,l.useCallback)(async()=>{let e=h.worktreeId,t=h.installPlan;if(!e||!t||t.requiresRiskAcknowledgement&&!h.riskAcknowledged)return;f(e=>({...e,busy:"install-apply",failure:null}));let a=await (0,v.Xi)(e,s,{planToken:t.token,version:t.skill.version,acknowledgeRisk:!!t.requiresRiskAcknowledgement||void 0,idempotencyKey:A("skill-install",t.token)});a.ok&&(0,d.k)(e),f(e=>({...e,busy:null,installPlan:a.ok?null:e.installPlan,installResult:a.ok?a.data:null,failure:a.ok?null:a.failure}))},[s,h.installPlan,h.riskAcknowledged,h.worktreeId]),T=(0,l.useCallback)(async()=>{let e=h.worktreeId;if(!e)return;f(e=>({...C(e),busy:"uninstall-plan"}));let t=await (0,v.hN)(e,s);f(e=>({...e,busy:null,uninstallPlan:t.ok?t.data.plan:null,failure:t.ok?null:t.failure}))},[s,h.worktreeId]),K=(0,l.useCallback)(async()=>{let e=h.worktreeId,t=h.uninstallPlan;if(!e||!t)return;f(e=>({...e,busy:"uninstall-apply",failure:null}));let a=await (0,v.E)(e,s,{planToken:t.token,idempotencyKey:A("skill-uninstall",t.token)});f(e=>({...e,busy:null,uninstallPlan:a.ok?null:e.uninstallPlan,uninstallResult:a.ok?a.data:null,failure:a.ok?null:a.failure}))},[s,h.uninstallPlan,h.worktreeId]),E=(0,l.useCallback)(()=>{f(e=>C(e))},[]),S=null!==h.busy,H=h.installPlan,q=h.uninstallPlan,D=null!=u?u:g(h.worktreeId?"plan.ready":"plan.chooseTarget"),V=null!==H&&H.requiresRiskAcknowledgement&&!h.riskAcknowledged;return(0,a.jsxs)("div",{className:"space-y-3","data-testid":"skill-install-panel",children:[!x&&(0,a.jsx)(p,{selectedWorktreeId:h.worktreeId,onSelect:j,disabled:S}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(r.$n,{variant:"primary",disabled:S||null!==u||!h.worktreeId,onClick:b,"data-testid":"skill-install-action","aria-describedby":"skill-install-reason",children:g("install-plan"===h.busy?"plan.building":"plan.build")}),(0,a.jsx)(r.$n,{variant:"secondary",disabled:S||!h.worktreeId,onClick:T,"data-testid":"skill-uninstall-action",children:g("uninstall-plan"===h.busy?"uninstall.building":"uninstall.build")})]}),(0,a.jsx)("p",{id:"skill-install-reason",className:"text-sm text-muted-foreground","data-testid":"skill-install-reason",children:D}),m.length>0&&(0,a.jsxs)("div",{className:"space-y-1","data-testid":"skill-install-reload-preview",children:[(0,a.jsx)("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:g("operation.reloadHeading")}),(0,a.jsx)("ul",{className:"space-y-1",children:m.map(e=>(0,a.jsx)(o.m,{agent:e,variant:"reload"},e.agent))})]}),h.failure&&(0,a.jsx)(I,{failure:h.failure}),H&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(y,{plan:H}),H.requiresRiskAcknowledgement&&(0,a.jsxs)(r.Zp,{className:"space-y-3","data-testid":"skill-install-risk-acknowledgement",children:[(0,a.jsx)(c.u,{tone:"danger",children:g((0,k.e5)(null!=(t=H.riskAcknowledgementMessageKey)?t:"skills.plan.highRiskAcknowledgement"))}),(0,a.jsxs)("label",{className:"flex items-start gap-2 text-sm text-foreground",children:[(0,a.jsx)(r.Sc,{checked:h.riskAcknowledged,onCheckedChange:e=>f(t=>({...t,riskAcknowledged:!0===e})),disabled:S,"data-testid":"skill-install-risk-checkbox",className:"mt-0.5"}),(0,a.jsx)("span",{children:g("plan.acknowledgeLabel")})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(r.$n,{variant:H.requiresRiskAcknowledgement?"danger":"primary",disabled:S||!H.installable||V,onClick:N,"data-testid":"skill-install-confirm",children:g("install-apply"===h.busy?"plan.confirming":"plan.confirm")}),(0,a.jsx)(r.$n,{variant:"ghost",disabled:S,onClick:E,"data-testid":"skill-install-discard",children:g("plan.discard")})]})]}),q&&(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)(w,{plan:q}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(r.$n,{variant:"danger",disabled:S||!q.removable,onClick:K,"data-testid":"skill-uninstall-confirm",children:g("uninstall-apply"===h.busy?"uninstall.confirming":"uninstall.confirm")}),(0,a.jsx)(r.$n,{variant:"ghost",disabled:S,onClick:E,"data-testid":"skill-uninstall-discard",children:g("plan.discard")})]})]}),h.installResult&&(0,a.jsxs)(r.Zp,{className:"space-y-3","data-testid":"skill-install-result",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:g("operation.installedHeading")}),(0,a.jsx)(c.u,{tone:"info",children:g((0,k.e5)(h.installResult.operation.nextActionKey))}),h.installResult.operation.replayed&&(0,a.jsx)(c.u,{tone:"neutral","data-testid":"skill-operation-replayed",children:g("operation.replayNotice")}),h.installResult.install&&"files"in h.installResult.install&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:g("operation.filesWritten",{count:h.installResult.install.files.length})}),"reload"in h.installResult&&(0,a.jsx)(P,{agents:h.installResult.reload.agents,skillId:h.installResult.reload.skillId,version:h.installResult.reload.version}),(0,a.jsx)(r.$n,{variant:"secondary",size:"sm",onClick:E,"data-testid":"skill-operation-reset",children:g("operation.startOver")})]}),h.uninstallResult&&(0,a.jsxs)(r.Zp,{className:"space-y-3","data-testid":"skill-uninstall-result",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-foreground",children:g("operation.uninstalledHeading")}),(0,a.jsx)(c.u,{tone:"info",children:g((0,k.e5)(h.uninstallResult.operation.nextActionKey))}),h.uninstallResult.operation.replayed&&(0,a.jsx)(c.u,{tone:"neutral","data-testid":"skill-operation-replayed",children:g("operation.replayNotice")}),h.uninstallResult.uninstall&&"removedFiles"in h.uninstallResult.uninstall&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:g("operation.filesRemoved",{count:h.uninstallResult.uninstall.removedFiles.length})}),"reload"in h.uninstallResult&&(0,a.jsx)(P,{agents:h.uninstallResult.reload.agents,skillId:h.uninstallResult.reload.skillId,version:h.uninstallResult.reload.version}),(0,a.jsx)(r.$n,{variant:"secondary",size:"sm",onClick:E,"data-testid":"skill-operation-reset",children:g("operation.startOver")})]})]})}},50666:(e,t,s)=>{s.d(t,{Ck:()=>r});var a=s(95155),l=s(12115),n=s(53482);function r(e){let{children:t,as:s="div",className:r=""}=e,i=function e(t){return null==t||"boolean"==typeof t?"":"string"==typeof t?t:"number"==typeof t?String(t):Array.isArray(t)?t.map(e).join(""):l.isValidElement(t)?e(t.props.children):""}(t);if(!i||0===i.trim().length)return(0,a.jsx)(s,{className:r||void 0,children:t});let d="relative group ".concat("span"===s?"block ":"").concat(r).trim();return(0,a.jsxs)(s,{className:d,"data-testid":"code-block-with-copy",children:[t,(0,a.jsx)(n.i,{text:i,className:"absolute right-2 top-2 z-10 opacity-100 md:opacity-0 md:group-hover:opacity-100 md:group-focus-within:opacity-100 focus:opacity-100"})]})}},50825:(e,t,s)=>{s.d(t,{m:()=>o});var a=s(95155);s(12115);var l=s(18955),n=s(54014),r=s(37381),i=s(95584);function d(e){let{axis:t,agentName:s}=e,n=(0,l.c)("skills");return(0,a.jsxs)("li",{className:"text-xs text-muted-foreground","data-testid":"skill-agent-axis-".concat(t.axis),children:[(0,a.jsx)("span",{className:"font-medium text-foreground",children:n((0,i.e5)(t.axisKey))}),": ",(0,a.jsx)("span",{"data-testid":"skill-agent-axis-".concat(t.axis,"-").concat(t.outcome),children:n((0,i.e5)(t.outcomeKey))})," — ",n((0,i.e5)(t.evidenceKindKey)),t.limitationKey&&(0,a.jsx)("span",{className:"mt-0.5 block","data-testid":"skill-agent-axis-".concat(t.axis,"-limitation"),children:n((0,i.e5)(t.limitationKey),{agent:s})})]})}function o(e){var t;let{agent:s,variant:o="full"}=e,c=(0,l.c)("skills"),u=(0,n.f_)(s.agent),x=s.measured;return"reload"===o?(0,a.jsx)("li",{className:"text-xs text-muted-foreground","data-testid":"skill-agent-reload-".concat(s.agent),children:c((0,i.e5)(s.reloadKey),{agent:u})}):(0,a.jsxs)("div",{className:"space-y-1","data-testid":"skill-agent-evidence-".concat(s.agent),children:[(0,a.jsx)("p",{className:"text-xs font-medium text-foreground",children:u}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground break-words",children:c("compatibility.declaredLabel",{support:c((0,i.e5)(s.declaredLabelKey))})}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground break-words",children:[c("compatibility.evidence"),": ",s.evidence]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground break-words","data-testid":"skill-agent-verification-".concat(s.agent),children:c((0,i.e5)(s.verificationKey))}),x?(0,a.jsxs)("div",{className:"space-y-0.5 border-l-2 border-border pl-2",children:[(0,a.jsx)("p",{className:"text-xs font-medium text-foreground",children:c("compatibility.measuredHeading")}),(0,a.jsxs)("ul",{className:"space-y-0.5",children:[(0,a.jsx)(d,{axis:x.discovery,agentName:u}),(0,a.jsx)(d,{axis:x.invocation,agentName:u})]}),x.testedVersion&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:c("compatibility.testedVersion",{agent:u,version:x.testedVersion})}),x.testedDate&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:c("compatibility.testedDate",{date:x.testedDate})}),x.discoveryRoots.length>0&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground break-all",children:c("compatibility.discoveryRoots",{roots:x.discoveryRoots.join(", ")})}),x.evidenceSource&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground break-all",children:[c("compatibility.evidenceSource"),": ",x.evidenceSource]}),x.stale&&(0,a.jsx)(r.u,{tone:"warning","data-testid":"skill-agent-evidence-stale-".concat(s.agent),children:c("compatibility.evidenceStale",{days:null!=(t=x.ageDays)?t:0})})]}):s.skipReasonKey&&(0,a.jsx)("p",{className:"text-xs text-muted-foreground break-words","data-testid":"skill-agent-skip-reason-".concat(s.agent),children:c((0,i.e5)(s.skipReasonKey))}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground break-words",children:[(0,a.jsx)("span",{className:"font-medium text-foreground",children:c("compatibility.reloadHeading",{agent:u})}),": ",c((0,i.e5)(s.reloadKey),{agent:u})]})]})}},53482:(e,t,s)=>{s.d(t,{i:()=>o});var a=s(95155),l=s(12115),n=s(60322),r=s(9900);function i(){return(0,a.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}function d(){return(0,a.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}function o(e){let{text:t,className:s="",label:o="Copy"}=e,[c,u]=(0,l.useState)(!1),x=(0,l.useRef)(null);(0,l.useEffect)(()=>()=>{x.current&&clearTimeout(x.current)},[]);let m=(0,l.useCallback)(async()=>{try{await (0,n.l)(t),u(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>u(!1),r.s7)}catch(e){}},[t]);return(0,a.jsxs)("button",{type:"button",onClick:m,className:"inline-flex items-center gap-1 rounded border border-border bg-surface px-2 py-0.5 text-[11px] font-medium text-foreground transition-colors hover:bg-muted ".concat(s),"aria-label":c?"Copied":o,title:c?"Copied!":o,children:[c?(0,a.jsx)(d,{}):(0,a.jsx)(i,{}),(0,a.jsx)("span",{children:c?"Copied":o})]})}},75333:(e,t,s)=>{s.d(t,{Xz:()=>o,qW:()=>c,uE:()=>u});var a=s(95155);s(12115);var l=s(18955),n=s(77801),r=s(48407),i=s(54014),d=s(95584);function o(e){let{status:t,className:s}=e,n=(0,l.c)("skills");return(0,a.jsx)(r.Ex,{variant:d.H$[t],className:s,"data-testid":"skill-compatibility-".concat(t),children:n(d.OV[t])})}function c(e){let{risk:t,className:s}=e,i=(0,l.c)("skills");return(0,a.jsxs)(r.Ex,{variant:d.eK[t],className:s,"data-testid":"skill-declared-risk-".concat(t),children:["high"===t&&(0,a.jsx)(n.A,{size:12,"aria-hidden":"true",className:"mr-1 shrink-0"}),i("risk.declaredLabel",{level:i(d.pP[t])})]})}function u(e){let{agent:t}=e,s=(0,l.c)("skills");return(0,a.jsxs)(r.Ex,{variant:d.Et[t.support],"data-testid":"skill-agent-".concat(t.agent,"-").concat(t.support),children:[(0,i.f_)(t.agent),": ",s((0,d.e5)(t.labelKey))]})}},99648:(e,t,s)=>{s.d(t,{Co:()=>a,Ms:()=>n,td:()=>l});let a=".agents/skills",l=".claude/skills",n="skills.permissions.declarationOnlyNotice"}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2407],{52407:(e,t,n)=>{n.d(t,{Fx:()=>h,Rh:()=>b,_X:()=>c,fl:()=>s,nG:()=>d,sV:()=>o});var r=n(12115),u=n(60199);let l="/api/capabilities";function c(e){return!1!==e.browserOnline&&("connected"===e.realtimeStatus||!0===e.serverReachable)}function o(e){return!1===e.browserOnline||!1===e.serverReachable}let i=new Map;async function a(e,t){let n="function"==typeof AbortController?new AbortController:void 0,r=n?setTimeout(()=>n.abort(),t):void 0;try{return await fetch(e,{method:"GET",cache:"no-store",credentials:"same-origin",signal:null==n?void 0:n.signal}),!0}catch(e){return!1}finally{void 0!==r&&clearTimeout(r)}}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;if("function"!=typeof fetch)return Promise.resolve(!1);let n=i.get(e);if(n)return n;let r=a(e,t).finally(()=>{i.delete(e)});return i.set(e,r),r}let f=new Set;function d(e){f.forEach(t=>{try{t(e)}catch(e){}})}function b(e){return f.add(e),()=>{f.delete(e)}}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{probeUrl:t=l,probeDelayMs:n=1e3,probeIntervalMs:c=15e3,probeTimeoutMs:o=5e3,surfaceDelayMs:i=1500,probe:a=!0}=e,{status:f}=(0,u.xM)(),[d,h]=(0,r.useState)(!0),[v,y]=(0,r.useState)(null),[w,m]=(0,r.useState)(null),p=(0,r.useCallback)(e=>{y(t=>t===e?t:e),e&&m(Date.now())},[]);(0,r.useEffect)(()=>{if("undefined"==typeof navigator)return;h(!1!==navigator.onLine);let e=()=>{y(null),h(!0)},t=()=>{y(null),h(!1)};return window.addEventListener("online",e),window.addEventListener("offline",t),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}},[]),(0,r.useEffect)(()=>{"connected"===f&&p(!0)},[f,p]),(0,r.useEffect)(()=>b(p),[p]);let g=(0,r.useMemo)(()=>({browserOnline:d,realtimeStatus:f,serverReachable:v}),[d,f,v]),S=g.browserOnline?"connected"===g.realtimeStatus?"online":!1===g.serverReachable?"offline":!0===g.serverReachable||"connecting"===g.realtimeStatus?"reconnecting":"offline":"offline",E="online"!==S,k=(0,r.useRef)({url:t,timeoutMs:o});k.current={url:t,timeoutMs:o};let C=a&&E&&d;(0,r.useEffect)(()=>{let e;if(!C||"function"!=typeof fetch)return;let t=!1,r=async()=>{let{url:n,timeoutMs:u}=k.current,l=await s(n,u);t||(p(l),e=setTimeout(r,c))};return e=setTimeout(r,n),()=>{t=!0,void 0!==e&&clearTimeout(e)}},[C,n,c,p]);let[R,T]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!E)return void T(!1);if(i<=0)return void T(!0);let e=setTimeout(()=>T(!0),i);return()=>clearTimeout(e)},[E,i]);let M=(0,r.useCallback)(()=>{if("function"!=typeof fetch)return;let{url:e,timeoutMs:t}=k.current;s(e,t).then(p)},[p]);return(0,r.useMemo)(()=>({status:S,isOnline:"online"===S,isReconnecting:"reconnecting"===S,isOffline:"offline"===S,shouldSurface:E&&R,signals:g,lastReachableAt:w,recheck:M}),[S,E,R,g,w,M])}},52703:(e,t,n)=>{n.d(t,{Oo:()=>u,ST:()=>r,T4:()=>o,dz:()=>c,rz:()=>l,zS:()=>i});let r="client_version",u="version_mismatch",l="chat_turn_progress",c="messages_invalidated",o="model_changed";function i(e){let t;try{t=JSON.parse(e)}catch(e){return null}if(!t||"object"!=typeof t)return null;let n=t;if("broadcast"===n.type){let e=n.data;return e&&"object"==typeof e?"string"!=typeof e.type?null:(void 0===e.worktreeId&&"string"==typeof n.worktreeId&&(e.worktreeId=n.worktreeId),e):null}return"string"==typeof n.type?n:null}},60199:(e,t,n)=>{n.d(t,{tS:()=>s,xM:()=>f,T3:()=>d});var r=n(95155),u=n(12115),l=n(52703);function c(){return"undefined"!=typeof globalThis&&"function"==typeof globalThis.WebSocket?globalThis.WebSocket:null}let o=()=>{},i={status:"disconnected",connected:!1,subscribe:o,unsubscribe:o,addListener:()=>o},a=(0,u.createContext)(null);function s(e){let{children:t,enabled:n=!0}=e,o=(0,u.useRef)(new Set),i=(0,u.useRef)(new Map),{status:s,subscribe:f,unsubscribe:d}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onEvent:t,onStatusChange:n,autoReconnect:r=!0,reconnectBaseDelay:o=1e3,reconnectMaxDelay:i=3e4,livenessTimeout:a=75e3,livenessCheckInterval:s=5e3,enabled:f=!0}=e,[d,b]=(0,u.useState)("disconnected"),h=(0,u.useRef)(null),v=(0,u.useRef)(null),y=(0,u.useRef)(0),w=(0,u.useRef)(new Set),m=(0,u.useRef)(!1),p=(0,u.useRef)(0),g=(0,u.useRef)(()=>{}),S=(0,u.useRef)(t);S.current=t;let E=(0,u.useRef)(n);E.current=n;let k=(0,u.useCallback)(e=>{var t;b(e),null==(t=E.current)||t.call(E,e)},[]),C=(0,u.useCallback)(()=>{null!==v.current&&(clearTimeout(v.current),v.current=null)},[]),R=(0,u.useCallback)(()=>{if(m.current||!r||"undefined"!=typeof document&&"hidden"===document.visibilityState)return;C();let e=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.random;return Math.max(0,Math.round(Math.min(t*2**Math.max(0,e),n)*(1+(2*r()-1)*.2)))}(y.current,o,i);y.current+=1,v.current=setTimeout(()=>{v.current=null,g.current()},e)},[r,o,i,C]),T=(0,u.useCallback)(()=>{if(!f)return;let e=c();if(!e||h.current&&(h.current.readyState===e.OPEN||h.current.readyState===e.CONNECTING))return;C(),m.current=!1,p.current=Date.now(),k("connecting");let t="https:"===window.location.protocol?"wss:":"ws:",n=new e("".concat(t,"//").concat(window.location.host));h.current=n,n.onopen=()=>{y.current=0,p.current=Date.now(),k("connected");try{n.send(JSON.stringify({type:l.ST,version:"0.
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2407],{52407:(e,t,n)=>{n.d(t,{Fx:()=>h,Rh:()=>b,_X:()=>c,fl:()=>s,nG:()=>d,sV:()=>o});var r=n(12115),u=n(60199);let l="/api/capabilities";function c(e){return!1!==e.browserOnline&&("connected"===e.realtimeStatus||!0===e.serverReachable)}function o(e){return!1===e.browserOnline||!1===e.serverReachable}let i=new Map;async function a(e,t){let n="function"==typeof AbortController?new AbortController:void 0,r=n?setTimeout(()=>n.abort(),t):void 0;try{return await fetch(e,{method:"GET",cache:"no-store",credentials:"same-origin",signal:null==n?void 0:n.signal}),!0}catch(e){return!1}finally{void 0!==r&&clearTimeout(r)}}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;if("function"!=typeof fetch)return Promise.resolve(!1);let n=i.get(e);if(n)return n;let r=a(e,t).finally(()=>{i.delete(e)});return i.set(e,r),r}let f=new Set;function d(e){f.forEach(t=>{try{t(e)}catch(e){}})}function b(e){return f.add(e),()=>{f.delete(e)}}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{probeUrl:t=l,probeDelayMs:n=1e3,probeIntervalMs:c=15e3,probeTimeoutMs:o=5e3,surfaceDelayMs:i=1500,probe:a=!0}=e,{status:f}=(0,u.xM)(),[d,h]=(0,r.useState)(!0),[v,y]=(0,r.useState)(null),[w,m]=(0,r.useState)(null),p=(0,r.useCallback)(e=>{y(t=>t===e?t:e),e&&m(Date.now())},[]);(0,r.useEffect)(()=>{if("undefined"==typeof navigator)return;h(!1!==navigator.onLine);let e=()=>{y(null),h(!0)},t=()=>{y(null),h(!1)};return window.addEventListener("online",e),window.addEventListener("offline",t),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}},[]),(0,r.useEffect)(()=>{"connected"===f&&p(!0)},[f,p]),(0,r.useEffect)(()=>b(p),[p]);let g=(0,r.useMemo)(()=>({browserOnline:d,realtimeStatus:f,serverReachable:v}),[d,f,v]),S=g.browserOnline?"connected"===g.realtimeStatus?"online":!1===g.serverReachable?"offline":!0===g.serverReachable||"connecting"===g.realtimeStatus?"reconnecting":"offline":"offline",E="online"!==S,k=(0,r.useRef)({url:t,timeoutMs:o});k.current={url:t,timeoutMs:o};let C=a&&E&&d;(0,r.useEffect)(()=>{let e;if(!C||"function"!=typeof fetch)return;let t=!1,r=async()=>{let{url:n,timeoutMs:u}=k.current,l=await s(n,u);t||(p(l),e=setTimeout(r,c))};return e=setTimeout(r,n),()=>{t=!0,void 0!==e&&clearTimeout(e)}},[C,n,c,p]);let[R,T]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!E)return void T(!1);if(i<=0)return void T(!0);let e=setTimeout(()=>T(!0),i);return()=>clearTimeout(e)},[E,i]);let M=(0,r.useCallback)(()=>{if("function"!=typeof fetch)return;let{url:e,timeoutMs:t}=k.current;s(e,t).then(p)},[p]);return(0,r.useMemo)(()=>({status:S,isOnline:"online"===S,isReconnecting:"reconnecting"===S,isOffline:"offline"===S,shouldSurface:E&&R,signals:g,lastReachableAt:w,recheck:M}),[S,E,R,g,w,M])}},52703:(e,t,n)=>{n.d(t,{Oo:()=>u,ST:()=>r,T4:()=>o,dz:()=>c,rz:()=>l,zS:()=>i});let r="client_version",u="version_mismatch",l="chat_turn_progress",c="messages_invalidated",o="model_changed";function i(e){let t;try{t=JSON.parse(e)}catch(e){return null}if(!t||"object"!=typeof t)return null;let n=t;if("broadcast"===n.type){let e=n.data;return e&&"object"==typeof e?"string"!=typeof e.type?null:(void 0===e.worktreeId&&"string"==typeof n.worktreeId&&(e.worktreeId=n.worktreeId),e):null}return"string"==typeof n.type?n:null}},60199:(e,t,n)=>{n.d(t,{tS:()=>s,xM:()=>f,T3:()=>d});var r=n(95155),u=n(12115),l=n(52703);function c(){return"undefined"!=typeof globalThis&&"function"==typeof globalThis.WebSocket?globalThis.WebSocket:null}let o=()=>{},i={status:"disconnected",connected:!1,subscribe:o,unsubscribe:o,addListener:()=>o},a=(0,u.createContext)(null);function s(e){let{children:t,enabled:n=!0}=e,o=(0,u.useRef)(new Set),i=(0,u.useRef)(new Map),{status:s,subscribe:f,unsubscribe:d}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onEvent:t,onStatusChange:n,autoReconnect:r=!0,reconnectBaseDelay:o=1e3,reconnectMaxDelay:i=3e4,livenessTimeout:a=75e3,livenessCheckInterval:s=5e3,enabled:f=!0}=e,[d,b]=(0,u.useState)("disconnected"),h=(0,u.useRef)(null),v=(0,u.useRef)(null),y=(0,u.useRef)(0),w=(0,u.useRef)(new Set),m=(0,u.useRef)(!1),p=(0,u.useRef)(0),g=(0,u.useRef)(()=>{}),S=(0,u.useRef)(t);S.current=t;let E=(0,u.useRef)(n);E.current=n;let k=(0,u.useCallback)(e=>{var t;b(e),null==(t=E.current)||t.call(E,e)},[]),C=(0,u.useCallback)(()=>{null!==v.current&&(clearTimeout(v.current),v.current=null)},[]),R=(0,u.useCallback)(()=>{if(m.current||!r||"undefined"!=typeof document&&"hidden"===document.visibilityState)return;C();let e=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Math.random;return Math.max(0,Math.round(Math.min(t*2**Math.max(0,e),n)*(1+(2*r()-1)*.2)))}(y.current,o,i);y.current+=1,v.current=setTimeout(()=>{v.current=null,g.current()},e)},[r,o,i,C]),T=(0,u.useCallback)(()=>{if(!f)return;let e=c();if(!e||h.current&&(h.current.readyState===e.OPEN||h.current.readyState===e.CONNECTING))return;C(),m.current=!1,p.current=Date.now(),k("connecting");let t="https:"===window.location.protocol?"wss:":"ws:",n=new e("".concat(t,"//").concat(window.location.host));h.current=n,n.onopen=()=>{y.current=0,p.current=Date.now(),k("connected");try{n.send(JSON.stringify({type:l.ST,version:"0.45.0"}))}catch(e){}w.current.forEach(e=>{try{n.send(JSON.stringify({type:"subscribe",worktreeId:e}))}catch(e){}})},n.onmessage=e=>{var t;p.current=Date.now();let n="string"==typeof e.data?e.data:String(e.data),r=(0,l.zS)(n);r&&"heartbeat"!==r.type&&(null==(t=S.current)||t.call(S,r))},n.onerror=()=>{k("error")},n.onclose=()=>{h.current=null,k("disconnected"),R()}},[f,k,C,R]);g.current=T;let M=(0,u.useCallback)(()=>{let e=h.current;if(e){e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null,h.current=null;try{e.close(4001,"half-open")}catch(e){}k("disconnected"),R()}},[k,R]),O=(0,u.useCallback)(()=>{if(C(),m.current=!0,h.current){try{h.current.close(1e3,"Client disconnect")}catch(e){}h.current=null}},[C]),N=(0,u.useCallback)(e=>{let t=h.current,n=c();if(t&&n&&t.readyState===n.OPEN)try{t.send(JSON.stringify(e))}catch(e){}},[]),_=(0,u.useCallback)(e=>{w.current.has(e)||(w.current.add(e),N({type:"subscribe",worktreeId:e}))},[N]),L=(0,u.useCallback)(e=>{w.current.has(e)&&(w.current.delete(e),N({type:"unsubscribe",worktreeId:e}))},[N]);return(0,u.useEffect)(()=>{if(f)return T(),()=>{O()}},[f,T,O]),(0,u.useEffect)(()=>{if(!f)return;let e=setInterval(()=>{let e=h.current,t=c();e&&t&&e.readyState===t.OPEN&&(Date.now()-p.current<a||M())},s);return()=>clearInterval(e)},[f,a,s,M]),(0,u.useEffect)(()=>{if(!f||"undefined"==typeof document)return;let e=()=>{"visible"===document.visibilityState&&(h.current||(y.current=0,T()))};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[f,T]),(0,u.useEffect)(()=>{if(!f)return;let e=()=>{h.current||(y.current=0,T())};return window.addEventListener("online",e),()=>window.removeEventListener("online",e)},[f,T]),{status:d,subscribe:_,unsubscribe:L,send:N}}({enabled:n,onEvent:(0,u.useCallback)(e=>{o.current.forEach(t=>{try{t(e)}catch(e){}})},[])}),b=(0,u.useCallback)(e=>{var t;let n=i.current,r=null!=(t=n.get(e))?t:0;n.set(e,r+1),0===r&&f(e)},[f]),h=(0,u.useCallback)(e=>{var t;let n=i.current,r=null!=(t=n.get(e))?t:0;r<=1?(n.delete(e),d(e)):n.set(e,r-1)},[d]),v=(0,u.useCallback)(e=>(o.current.add(e),()=>{o.current.delete(e)}),[]),y=(0,u.useMemo)(()=>({status:s,connected:"connected"===s,subscribe:b,unsubscribe:h,addListener:v}),[s,b,h,v]);return(0,r.jsx)(a.Provider,{value:y,children:t})}function f(){var e;return null!=(e=(0,u.useContext)(a))?e:i}function d(e){let{addListener:t}=f(),n=(0,u.useRef)(e);n.current=e,(0,u.useEffect)(()=>t(e=>n.current(e)),[t])}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2619],{
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2619],{33078:(e,t)=>{function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function u(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return u},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},39426:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},47670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return u},formatWithValidation:function(){return i},urlObjectKeys:function(){return a}});let n=r(49417)._(r(33078)),o=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:r}=e,u=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",f=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?f=t+e.host:r&&(f=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(f+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return u&&!u.endsWith(":")&&(u+=":"),e.slashes||(!u||o.test(u))&&!1!==f?(f="//"+(f||""),a&&"/"!==a[0]&&(a="/"+a)):f||(f=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+u+f+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(e){return u(e)}},52619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},useLinkStatus:function(){return b}});let n=r(49417),o=r(95155),u=n._(r(12115)),a=r(47670),i=r(46752),l=r(83011),f=r(62296),c=r(96058);r(94781);let s=r(63499),p=r(58607),d=r(11807);r(39426);let h=r(66048);function y(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){var t;let r,n,a,[g,b]=(0,u.useOptimistic)(s.IDLE_LINK_STATUS),P=(0,u.useRef)(null),{href:_,as:v,children:E,prefetch:O=null,passHref:j,replace:S,shallow:C,scroll:N,onClick:T,onMouseEnter:x,onTouchStart:A,legacyBehavior:M=!1,onNavigate:R,ref:L,unstable_dynamicOnHover:k,...I}=e;r=E,M&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let U=u.default.useContext(i.AppRouterContext),w=!1!==O,F=!1!==O?null===(t=O)||"auto"===t?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:D,as:K}=u.default.useMemo(()=>{let e=y(_);return{href:e,as:v?y(v):e}},[_,v]);M&&(n=u.default.Children.only(r));let B=M?n&&"object"==typeof n&&n.ref:L,z=u.default.useCallback(e=>(null!==U&&(P.current=(0,s.mountLinkInstance)(e,D,U,F,w,b)),()=>{P.current&&((0,s.unmountLinkForCurrentNavigation)(P.current),P.current=null),(0,s.unmountPrefetchableInstance)(e)}),[w,D,U,F,b]),Q={ref:(0,l.useMergedRef)(z,B),onClick(e){M||"function"!=typeof T||T(e),M&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),U&&(e.defaultPrevented||function(e,t,r,n,o,a,i){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,p.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}u.default.startTransition(()=>{(0,d.dispatchNavigateAction)(r||t,o?"replace":"push",null==a||a,n.current)})}}(e,D,K,P,S,N,R))},onMouseEnter(e){M||"function"!=typeof x||x(e),M&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),U&&w&&(0,s.onNavigationIntent)(e.currentTarget,!0===k)},onTouchStart:function(e){M||"function"!=typeof A||A(e),M&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),U&&w&&(0,s.onNavigationIntent)(e.currentTarget,!0===k)}};return(0,f.isAbsoluteUrl)(K)?Q.href=K:M&&!j&&("a"!==n.type||"href"in n.props)||(Q.href=(0,c.addBasePath)(K)),a=M?u.default.cloneElement(n,Q):(0,o.jsx)("a",{...I,...Q,children:r}),(0,o.jsx)(m.Provider,{value:g,children:a})}let m=(0,u.createContext)(s.IDLE_LINK_STATUS),b=()=>(0,u.useContext)(m);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return u}});let n=r(62296),o=r(92929);function u(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},62296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return m},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return p},ST:function(){return d},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return i},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return s},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return P}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function i(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function s(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await s(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="undefined"!=typeof performance,d=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},83011:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(12115);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=u(e,n)),t&&(o.current=u(t,n))},[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2751],{37381:(e,n,a)=>{a.d(n,{u:()=>c});var t=a(95155);a(12115);var r=a(23327),i=a(52056),o=a(77801),l=a(87531);let s={info:"bg-info-subtle border-info-border text-info-foreground",warning:"bg-warning-subtle border-warning-border text-warning-foreground",danger:"bg-danger-subtle border-danger-border text-danger-foreground",neutral:"bg-muted border-border text-muted-foreground"},d={info:r.A,warning:i.A,danger:o.A,neutral:r.A};function c(e){let{tone:n="neutral",children:a,className:r,"data-testid":i}=e,o=d[n];return(0,t.jsxs)("div",{"data-testid":i,className:(0,l.cn)("flex items-start gap-2 rounded-md border px-3 py-2 text-xs leading-relaxed",s[n],r),children:[(0,t.jsx)(o,{size:14,"aria-hidden":"true",className:"mt-0.5 shrink-0"}),(0,t.jsx)("div",{className:"min-w-0",children:a})]})}},80130:(e,n,a)=>{a.d(n,{Db:()=>c,E:()=>f,Gj:()=>L,Q6:()=>N,Sw:()=>S,V_:()=>_,Xi:()=>g,h2:()=>m,hN:()=>A,mf:()=>I,s5:()=>d,vg:()=>p});let t="SKILL_CATALOG_UNREACHABLE",r="SKILL_REQUEST_FAILED";function i(e,n,a){let t=e&&"object"==typeof e?e:{},r={code:!function(e){if(!e||"object"!=typeof e)return!1;let{error:n,code:a}=e;return"string"==typeof n&&"string"==typeof a}(e)?a:e.code,message:"string"==typeof t.error?t.error:"",status:n};return Array.isArray(t.blockers)&&(r.blockers=t.blockers),"string"==typeof t.nextActionKey&&(r.nextActionKey=t.nextActionKey),r}async function o(e,n){let a=await fetch(e,{signal:n,headers:{Accept:"application/json"}}),r=await a.json().catch(()=>null);return a.ok?{ok:!0,data:r}:{ok:!1,failure:i(r,a.status,t)}}async function l(e,n,a){let t=await fetch(e,{method:"POST",signal:a,headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}),o=await t.json().catch(()=>null);return t.ok?{ok:!0,data:o}:{ok:!1,failure:i(o,t.status,r)}}async function s(e,n,a){try{return await e()}catch(e){if(null==a?void 0:a.aborted)throw e;return{ok:!1,failure:{code:n,message:e instanceof Error?e.message:"",status:null}}}}function d(e){return s(()=>o("/api/skills",e),t,e)}function c(e,n){return s(()=>o("/api/skills/".concat(encodeURIComponent(e)),n),t,n)}function L(e,n){return s(()=>o("/api/worktrees/".concat(encodeURIComponent(e),"/skills"),n),r,n)}function u(e){let n=new URLSearchParams;for(let[a,t]of Object.entries(e))void 0!==t&&""!==t&&n.set(a,t);let a=n.toString();return a?"?".concat(a):""}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=u({worktreeId:e.worktreeId,skillId:e.skillId,status:e.status,refresh:e.refresh?"true":void 0});return s(()=>o("/api/skills/installations".concat(a),n),r,n)}function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=u({worktreeId:e.worktreeId,skillId:e.skillId,operation:e.operation,result:e.result,cursor:e.cursor,limit:void 0===e.limit?void 0:String(e.limit)});return s(()=>o("/api/skills/operations".concat(a),n),r,n)}function p(e){return s(()=>l("/api/skills/reindex",{},e),r,e)}function E(e,n,a){return"/api/worktrees/".concat(encodeURIComponent(e),"/skills/").concat(encodeURIComponent(n),"/").concat(a)}function N(e,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=arguments.length>3?arguments[3]:void 0,i={};return a.version&&(i.version=a.version),a.acknowledgeRisk&&(i.acknowledgeRisk=!0),s(()=>l(E(e,n,"plan"),i,t),r,t)}function g(e,n,a,t){let i={planToken:a.planToken,version:a.version};return a.acknowledgeRisk&&(i.acknowledgeRisk=!0),a.idempotencyKey&&(i.idempotencyKey=a.idempotencyKey),s(()=>l(E(e,n,"install"),i,t),r,t)}function S(e,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=arguments.length>3?arguments[3]:void 0,i={};return a.version&&(i.version=a.version),a.includePrerelease&&(i.includePrerelease=!0),s(()=>l(E(e,n,"update-plan"),i,t),r,t)}function m(e,n,a,t){let i={planToken:a.planToken,version:a.version};return a.acknowledgeRisk&&(i.acknowledgeRisk=!0),a.acknowledgeRiskIncrease&&(i.acknowledgeRiskIncrease=!0),a.idempotencyKey&&(i.idempotencyKey=a.idempotencyKey),s(()=>l(E(e,n,"update"),i,t),r,t)}function A(e,n,a){return s(()=>l(E(e,n,"uninstall-plan"),{},a),r,a)}function f(e,n,a,t){let i={planToken:a.planToken};return a.idempotencyKey&&(i.idempotencyKey=a.idempotencyKey),s(()=>l(E(e,n,"uninstall"),i,t),r,t)}},95584:(e,n,a)=>{a.d(n,{$d:()=>b,AJ:()=>w,AS:()=>c,DN:()=>C,Et:()=>l,FW:()=>m,H$:()=>t,IV:()=>k,J:()=>v,JD:()=>L,KL:()=>_,KS:()=>u,Mj:()=>E,OV:()=>r,R1:()=>P,RG:()=>R,RO:()=>g,SC:()=>O,TE:()=>s,bD:()=>M,e5:()=>T,eK:()=>i,gh:()=>D,hJ:()=>N,kF:()=>p,pP:()=>o,pk:()=>f,r0:()=>y,tC:()=>d,u0:()=>U,xX:()=>F,z2:()=>I});let t={compatible:"success",incompatible:"error",unknown:"warning"},r={compatible:"compatibility.status.compatible",incompatible:"compatibility.status.incompatible",unknown:"compatibility.status.unknown"},i={low:"gray",moderate:"warning",high:"error"},o={low:"risk.level.low",moderate:"risk.level.moderate",high:"risk.level.high"},l={native:"success",commandmate_runtime:"info",unsupported:"error",unknown:"warning"},s={SKILL_RECOMMEND_HIGHEST_COMPATIBLE:"detail.recommendation.highestCompatible",SKILL_RECOMMEND_LATEST_UNVERIFIED:"detail.recommendation.latestUnverified",SKILL_RECOMMEND_NONE_COMPATIBLE:"detail.recommendation.noneCompatible",SKILL_RECOMMEND_NO_VERSIONS:"detail.recommendation.noVersions"},d={add:"info",modify:"warning",unchanged:"gray",conflict:"error",unmanaged:"error"},c={add:"plan.change.add",modify:"plan.change.modify",unchanged:"plan.change.unchanged",conflict:"plan.change.conflict",unmanaged:"plan.change.unmanaged"},L={add:"info",update:"warning",remove:"warning",unchanged:"gray"},u={add:"update.change.add",update:"update.change.update",remove:"update.change.remove",unchanged:"update.change.unchanged"},_={SKILL_DIFF_NEW_FILE:"plan.diffReason.newFile",SKILL_DIFF_CONTENT_IDENTICAL:"plan.diffReason.contentIdentical",SKILL_DIFF_MANAGED_UPDATE:"plan.diffReason.managedUpdate",SKILL_DIFF_LOCAL_MODIFICATION:"plan.diffReason.localModification",SKILL_DIFF_UNMANAGED_SKILL:"plan.diffReason.unmanagedSkill",SKILL_DIFF_RECEIPT_ORPHAN:"plan.diffReason.receiptOrphan",SKILL_DIFF_NOT_A_REGULAR_FILE:"plan.diffReason.notARegularFile"},I={filesystem_read:"plan.permission.filesystemRead",filesystem_write:"plan.permission.filesystemWrite",network_access:"plan.permission.networkAccess",process_execution:"plan.permission.processExecution",environment_read:"plan.permission.environmentRead",credential_access:"plan.permission.credentialAccess"},p={attached:"plan.headState.attached",detached:"plan.headState.detached",unborn:"plan.headState.unborn",unknown:"plan.headState.unknown"},E={remove:"uninstall.disposition.remove",modified:"uninstall.disposition.modified",missing:"uninstall.disposition.missing",unknown:"uninstall.disposition.unknown",irregular:"uninstall.disposition.irregular"},N={SKILL_UNINSTALL_MANAGED_UNCHANGED:"uninstall.reason.managedUnchanged",SKILL_UNINSTALL_LOCAL_MODIFICATION:"uninstall.reason.localModification",SKILL_UNINSTALL_RECEIPT_ORPHAN:"uninstall.reason.receiptOrphan",SKILL_UNINSTALL_UNMANAGED_FILE:"uninstall.reason.unmanagedFile",SKILL_UNINSTALL_NOT_A_REGULAR_FILE:"uninstall.reason.notARegularFile",SKILL_UNINSTALL_NOT_INSTALLED:"uninstall.reason.notInstalled",SKILL_UNINSTALL_RECEIPT_MISSING:"uninstall.reason.receiptMissing",SKILL_UNINSTALL_RECEIPT_UNREADABLE:"uninstall.reason.receiptUnreadable",SKILL_UNINSTALL_RECEIPT_FOREIGN:"uninstall.reason.receiptForeign",SKILL_UNINSTALL_TREE_SCAN_TRUNCATED:"uninstall.reason.treeScanTruncated"},g={SKILL_PREVIEW_DETACHED_HEAD:"plan.warning.detachedHead",SKILL_PREVIEW_UNBORN_HEAD:"plan.warning.unbornHead",SKILL_PREVIEW_HEAD_UNRESOLVED:"plan.warning.headUnresolved",SKILL_PREVIEW_WORKING_TREE_DIRTY:"plan.warning.workingTreeDirty",SKILL_PREVIEW_PATH_GIT_IGNORED:"plan.warning.pathGitIgnored",SKILL_PREVIEW_DIFF_TRUNCATED:"plan.warning.diffTruncated",SKILL_PREVIEW_BINARY_CONTENT:"plan.warning.binaryContent",SKILL_PREVIEW_LINE_ENDING_CRLF:"plan.warning.lineEndingCrlf",SKILL_PREVIEW_TREE_SCAN_TRUNCATED:"plan.warning.treeScanTruncated"},S={SKILL_PLAN_STALE:"operation.error.planStale",SKILL_PLAN_EXPIRED:"operation.error.planExpired",SKILL_PLAN_CONSUMED:"operation.error.planConsumed",SKILL_PLAN_NOT_FOUND:"operation.error.planNotFound",SKILL_PLAN_BINDING_MISMATCH:"operation.error.planBindingMismatch",SKILL_PLAN_NOT_INSTALLABLE:"operation.error.planNotInstallable",SKILL_PLAN_RISK_NOT_ACKNOWLEDGED:"operation.error.planRiskNotAcknowledged",SKILL_INSTALL_LOCKED:"operation.error.installLocked",SKILL_INSTALL_IN_PROGRESS:"operation.error.installInProgress",SKILL_INSTALL_DESTINATION_EXISTS:"operation.error.installDestinationExists",SKILL_INSTALL_DESTINATION_UNMANAGED:"operation.error.installDestinationUnmanaged",SKILL_INSTALL_IDEMPOTENCY_CONFLICT:"operation.error.installIdempotencyConflict",SKILL_INSTALL_FAILED:"operation.error.installFailed",SKILL_UNINSTALL_LOCKED:"operation.error.uninstallLocked",SKILL_UNINSTALL_IN_PROGRESS:"operation.error.uninstallInProgress",SKILL_UNINSTALL_IDEMPOTENCY_CONFLICT:"operation.error.uninstallIdempotencyConflict",SKILL_UNINSTALL_NOT_INSTALLED:"operation.error.uninstallNotInstalled",SKILL_UNINSTALL_BLOCKED:"operation.error.uninstallBlocked",SKILL_UNINSTALL_DRIFT:"operation.error.uninstallDrift",SKILL_UNINSTALL_FILE_CHANGED:"operation.error.uninstallFileChanged",SKILL_UNINSTALL_FAILED:"operation.error.uninstallFailed",SKILL_UPDATE_NOT_INSTALLED:"operation.error.updateNotInstalled",SKILL_UPDATE_UP_TO_DATE:"operation.error.updateUpToDate",SKILL_UPDATE_VERSION_NOT_ELIGIBLE:"operation.error.updateVersionNotEligible",SKILL_UPDATE_RECOMMEND_NONE_COMPATIBLE:"operation.error.updateNoneCompatible",SKILL_REQUEST_FAILED:"operation.error.requestFailed"};function m(e){var n;return null!=(n=S[e])?n:"operation.error.unexpected"}let A={SKILL_CATALOG_FETCH_FAILED:"catalog.reason.fetchFailed",SKILL_CATALOG_RATE_LIMITED:"catalog.reason.rateLimited",SKILL_CATALOG_OVERSIZED:"catalog.reason.oversized",SKILL_CATALOG_MALFORMED:"catalog.reason.malformed",SKILL_CATALOG_INVALID_SCHEMA:"catalog.reason.invalidSchema"};function f(e){return e&&A[e]||"catalog.reason.unknown"}function T(e){return e.startsWith("skills.")?e.slice(7):e}let h=/!\[([^\]]*)\]\([^)]*\)/g,K=/<\/?(?:img|picture|source|video|audio|iframe|embed|object|track)\b[^>]*>/gi;function R(e){return e.replace(h,"$1").replace(K,"")}let k={query:"",compatibility:"all",risk:"all",agent:"all"};function D(e){var n,a;let t=e.versions.find(n=>n.version===e.recommendedVersion);return null!=(a=null==(n=null!=t?t:e.versions[0])?void 0:n.declaredRisk)?a:null}function y(e){let n=new Set;for(let a of e.versions)for(let e of a.compatibility.agents)("native"===e.support||"commandmate_runtime"===e.support)&&n.add(e.agent);return[...n].sort()}function b(e,n){return e.filter(e=>{var a;return!!function(e,n){let a=n.trim().toLowerCase();return 0===a.length||[e.name,e.summary,e.id,e.provider.name,...e.keywords].some(e=>e.toLowerCase().includes(a))}(e,n.query)&&("all"===n.compatibility||(null==(a=e.compatibility)?void 0:a.status)===n.compatibility)&&("all"===n.risk||D(e)===n.risk)&&("all"===n.agent||!!y(e).includes(n.agent))})}function w(e){let n=new Set;for(let a of e)for(let e of a.versions)for(let a of e.compatibility.agents)n.add(a.agent);return[...n].sort()}let C={installed:"dashboard.status.installed",modified:"dashboard.status.modified",missing:"dashboard.status.missing",unmanaged:"dashboard.status.unmanaged",update_available:"dashboard.status.updateAvailable"},O={installed:"dashboard.statusHint.installed",modified:"dashboard.statusHint.modified",missing:"dashboard.statusHint.missing",unmanaged:"dashboard.statusHint.unmanaged",update_available:"dashboard.statusHint.updateAvailable"},v={installed:"success",modified:"warning",missing:"error",unmanaged:"warning",update_available:"info"},U={install:"history.operation.install",uninstall:"history.operation.uninstall",update:"history.operation.update"},F={succeeded:"history.result.succeeded",failed:"history.result.failed",reconciled:"history.result.reconciled"},P={succeeded:"success",failed:"error",reconciled:"warning"},M={user:"history.actor.user",cli:"history.actor.cli",system:"history.actor.system"}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2751],{37381:(e,n,a)=>{a.d(n,{u:()=>c});var t=a(95155);a(12115);var r=a(23327),i=a(52056),o=a(77801),l=a(87531);let s={info:"bg-info-subtle border-info-border text-info-foreground",warning:"bg-warning-subtle border-warning-border text-warning-foreground",danger:"bg-danger-subtle border-danger-border text-danger-foreground",neutral:"bg-muted border-border text-muted-foreground"},d={info:r.A,warning:i.A,danger:o.A,neutral:r.A};function c(e){let{tone:n="neutral",children:a,className:r,"data-testid":i}=e,o=d[n];return(0,t.jsxs)("div",{"data-testid":i,className:(0,l.cn)("flex items-start gap-2 rounded-md border px-3 py-2 text-xs leading-relaxed",s[n],r),children:[(0,t.jsx)(o,{size:14,"aria-hidden":"true",className:"mt-0.5 shrink-0"}),(0,t.jsx)("div",{className:"min-w-0",children:a})]})}},80130:(e,n,a)=>{a.d(n,{Db:()=>c,E:()=>f,Gj:()=>L,Q6:()=>N,Sw:()=>S,V_:()=>_,Xi:()=>g,h2:()=>m,hN:()=>A,mf:()=>I,s5:()=>d,vg:()=>p});let t="SKILL_CATALOG_UNREACHABLE",r="SKILL_REQUEST_FAILED";function i(e,n,a){let t=e&&"object"==typeof e?e:{},r={code:!function(e){if(!e||"object"!=typeof e)return!1;let{error:n,code:a}=e;return"string"==typeof n&&"string"==typeof a}(e)?a:e.code,message:"string"==typeof t.error?t.error:"",status:n};return Array.isArray(t.blockers)&&(r.blockers=t.blockers),"string"==typeof t.nextActionKey&&(r.nextActionKey=t.nextActionKey),r}async function o(e,n){let a=await fetch(e,{signal:n,headers:{Accept:"application/json"}}),r=await a.json().catch(()=>null);return a.ok?{ok:!0,data:r}:{ok:!1,failure:i(r,a.status,t)}}async function l(e,n,a){let t=await fetch(e,{method:"POST",signal:a,headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n)}),o=await t.json().catch(()=>null);return t.ok?{ok:!0,data:o}:{ok:!1,failure:i(o,t.status,r)}}async function s(e,n,a){try{return await e()}catch(e){if(null==a?void 0:a.aborted)throw e;return{ok:!1,failure:{code:n,message:e instanceof Error?e.message:"",status:null}}}}function d(e){return s(()=>o("/api/skills",e),t,e)}function c(e,n){return s(()=>o("/api/skills/".concat(encodeURIComponent(e)),n),t,n)}function L(e,n){return s(()=>o("/api/worktrees/".concat(encodeURIComponent(e),"/skills"),n),r,n)}function u(e){let n=new URLSearchParams;for(let[a,t]of Object.entries(e))void 0!==t&&""!==t&&n.set(a,t);let a=n.toString();return a?"?".concat(a):""}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=u({worktreeId:e.worktreeId,skillId:e.skillId,status:e.status,refresh:e.refresh?"true":void 0});return s(()=>o("/api/skills/installations".concat(a),n),r,n)}function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,a=u({worktreeId:e.worktreeId,skillId:e.skillId,operation:e.operation,result:e.result,cursor:e.cursor,limit:void 0===e.limit?void 0:String(e.limit)});return s(()=>o("/api/skills/operations".concat(a),n),r,n)}function p(e){return s(()=>l("/api/skills/reindex",{},e),r,e)}function E(e,n,a){return"/api/worktrees/".concat(encodeURIComponent(e),"/skills/").concat(encodeURIComponent(n),"/").concat(a)}function N(e,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=arguments.length>3?arguments[3]:void 0,i={};return a.version&&(i.version=a.version),a.acknowledgeRisk&&(i.acknowledgeRisk=!0),s(()=>l(E(e,n,"plan"),i,t),r,t)}function g(e,n,a,t){let i={planToken:a.planToken,version:a.version};return a.acknowledgeRisk&&(i.acknowledgeRisk=!0),a.idempotencyKey&&(i.idempotencyKey=a.idempotencyKey),s(()=>l(E(e,n,"install"),i,t),r,t)}function S(e,n){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=arguments.length>3?arguments[3]:void 0,i={};return a.version&&(i.version=a.version),a.includePrerelease&&(i.includePrerelease=!0),s(()=>l(E(e,n,"update-plan"),i,t),r,t)}function m(e,n,a,t){let i={planToken:a.planToken,version:a.version};return a.acknowledgeRisk&&(i.acknowledgeRisk=!0),a.acknowledgeRiskIncrease&&(i.acknowledgeRiskIncrease=!0),a.idempotencyKey&&(i.idempotencyKey=a.idempotencyKey),s(()=>l(E(e,n,"update"),i,t),r,t)}function A(e,n,a){return s(()=>l(E(e,n,"uninstall-plan"),{},a),r,a)}function f(e,n,a,t){let i={planToken:a.planToken};return a.idempotencyKey&&(i.idempotencyKey=a.idempotencyKey),s(()=>l(E(e,n,"uninstall"),i,t),r,t)}},95584:(e,n,a)=>{a.d(n,{$d:()=>w,AJ:()=>b,AS:()=>c,DN:()=>C,Et:()=>l,FW:()=>m,H$:()=>t,IV:()=>k,J:()=>v,JD:()=>L,KL:()=>_,KS:()=>u,Mj:()=>E,OV:()=>r,R1:()=>P,RG:()=>R,RO:()=>g,SC:()=>O,TE:()=>s,bD:()=>M,e5:()=>T,eK:()=>i,gh:()=>D,hJ:()=>N,kF:()=>p,pP:()=>o,pk:()=>f,r0:()=>y,tC:()=>d,u0:()=>U,xX:()=>F,z2:()=>I});let t={compatible:"success",incompatible:"error",unknown:"warning"},r={compatible:"compatibility.status.compatible",incompatible:"compatibility.status.incompatible",unknown:"compatibility.status.unknown"},i={low:"gray",moderate:"warning",high:"error"},o={low:"risk.level.low",moderate:"risk.level.moderate",high:"risk.level.high"},l={native:"success",commandmate_runtime:"info",unsupported:"error",unknown:"warning"},s={SKILL_RECOMMEND_HIGHEST_COMPATIBLE:"detail.recommendation.highestCompatible",SKILL_RECOMMEND_LATEST_UNVERIFIED:"detail.recommendation.latestUnverified",SKILL_RECOMMEND_NONE_COMPATIBLE:"detail.recommendation.noneCompatible",SKILL_RECOMMEND_NO_VERSIONS:"detail.recommendation.noVersions"},d={add:"info",modify:"warning",unchanged:"gray",conflict:"error",unmanaged:"error"},c={add:"plan.change.add",modify:"plan.change.modify",unchanged:"plan.change.unchanged",conflict:"plan.change.conflict",unmanaged:"plan.change.unmanaged"},L={add:"info",update:"warning",remove:"warning",unchanged:"gray"},u={add:"update.change.add",update:"update.change.update",remove:"update.change.remove",unchanged:"update.change.unchanged"},_={SKILL_DIFF_NEW_FILE:"plan.diffReason.newFile",SKILL_DIFF_CONTENT_IDENTICAL:"plan.diffReason.contentIdentical",SKILL_DIFF_MANAGED_UPDATE:"plan.diffReason.managedUpdate",SKILL_DIFF_LOCAL_MODIFICATION:"plan.diffReason.localModification",SKILL_DIFF_UNMANAGED_SKILL:"plan.diffReason.unmanagedSkill",SKILL_DIFF_RECEIPT_ORPHAN:"plan.diffReason.receiptOrphan",SKILL_DIFF_NOT_A_REGULAR_FILE:"plan.diffReason.notARegularFile"},I={filesystem_read:"plan.permission.filesystemRead",filesystem_write:"plan.permission.filesystemWrite",network_access:"plan.permission.networkAccess",process_execution:"plan.permission.processExecution",environment_read:"plan.permission.environmentRead",credential_access:"plan.permission.credentialAccess"},p={attached:"plan.headState.attached",detached:"plan.headState.detached",unborn:"plan.headState.unborn",unknown:"plan.headState.unknown"},E={remove:"uninstall.disposition.remove",modified:"uninstall.disposition.modified",missing:"uninstall.disposition.missing",unknown:"uninstall.disposition.unknown",irregular:"uninstall.disposition.irregular"},N={SKILL_UNINSTALL_MANAGED_UNCHANGED:"uninstall.reason.managedUnchanged",SKILL_UNINSTALL_LOCAL_MODIFICATION:"uninstall.reason.localModification",SKILL_UNINSTALL_RECEIPT_ORPHAN:"uninstall.reason.receiptOrphan",SKILL_UNINSTALL_UNMANAGED_FILE:"uninstall.reason.unmanagedFile",SKILL_UNINSTALL_NOT_A_REGULAR_FILE:"uninstall.reason.notARegularFile",SKILL_UNINSTALL_NOT_INSTALLED:"uninstall.reason.notInstalled",SKILL_UNINSTALL_RECEIPT_MISSING:"uninstall.reason.receiptMissing",SKILL_UNINSTALL_RECEIPT_UNREADABLE:"uninstall.reason.receiptUnreadable",SKILL_UNINSTALL_RECEIPT_FOREIGN:"uninstall.reason.receiptForeign",SKILL_UNINSTALL_TREE_SCAN_TRUNCATED:"uninstall.reason.treeScanTruncated"},g={SKILL_PREVIEW_DETACHED_HEAD:"plan.warning.detachedHead",SKILL_PREVIEW_UNBORN_HEAD:"plan.warning.unbornHead",SKILL_PREVIEW_HEAD_UNRESOLVED:"plan.warning.headUnresolved",SKILL_PREVIEW_WORKING_TREE_DIRTY:"plan.warning.workingTreeDirty",SKILL_PREVIEW_WORKING_TREE_STATUS_UNKNOWN:"plan.warning.workingTreeStatusUnknown",SKILL_PREVIEW_PATH_GIT_IGNORED:"plan.warning.pathGitIgnored",SKILL_PREVIEW_DIFF_TRUNCATED:"plan.warning.diffTruncated",SKILL_PREVIEW_BINARY_CONTENT:"plan.warning.binaryContent",SKILL_PREVIEW_LINE_ENDING_CRLF:"plan.warning.lineEndingCrlf",SKILL_PREVIEW_TREE_SCAN_TRUNCATED:"plan.warning.treeScanTruncated"},S={SKILL_PLAN_STALE:"operation.error.planStale",SKILL_PLAN_EXPIRED:"operation.error.planExpired",SKILL_PLAN_CONSUMED:"operation.error.planConsumed",SKILL_PLAN_NOT_FOUND:"operation.error.planNotFound",SKILL_PLAN_BINDING_MISMATCH:"operation.error.planBindingMismatch",SKILL_PLAN_NOT_INSTALLABLE:"operation.error.planNotInstallable",SKILL_PLAN_RISK_NOT_ACKNOWLEDGED:"operation.error.planRiskNotAcknowledged",SKILL_INSTALL_LOCKED:"operation.error.installLocked",SKILL_INSTALL_IN_PROGRESS:"operation.error.installInProgress",SKILL_INSTALL_DESTINATION_EXISTS:"operation.error.installDestinationExists",SKILL_INSTALL_DESTINATION_UNMANAGED:"operation.error.installDestinationUnmanaged",SKILL_INSTALL_IDEMPOTENCY_CONFLICT:"operation.error.installIdempotencyConflict",SKILL_INSTALL_FAILED:"operation.error.installFailed",SKILL_UNINSTALL_LOCKED:"operation.error.uninstallLocked",SKILL_UNINSTALL_IN_PROGRESS:"operation.error.uninstallInProgress",SKILL_UNINSTALL_IDEMPOTENCY_CONFLICT:"operation.error.uninstallIdempotencyConflict",SKILL_UNINSTALL_NOT_INSTALLED:"operation.error.uninstallNotInstalled",SKILL_UNINSTALL_BLOCKED:"operation.error.uninstallBlocked",SKILL_UNINSTALL_DRIFT:"operation.error.uninstallDrift",SKILL_UNINSTALL_FILE_CHANGED:"operation.error.uninstallFileChanged",SKILL_UNINSTALL_FAILED:"operation.error.uninstallFailed",SKILL_UPDATE_NOT_INSTALLED:"operation.error.updateNotInstalled",SKILL_UPDATE_UP_TO_DATE:"operation.error.updateUpToDate",SKILL_UPDATE_VERSION_NOT_ELIGIBLE:"operation.error.updateVersionNotEligible",SKILL_UPDATE_RECOMMEND_NONE_COMPATIBLE:"operation.error.updateNoneCompatible",SKILL_REQUEST_FAILED:"operation.error.requestFailed"};function m(e){var n;return null!=(n=S[e])?n:"operation.error.unexpected"}let A={SKILL_CATALOG_FETCH_FAILED:"catalog.reason.fetchFailed",SKILL_CATALOG_RATE_LIMITED:"catalog.reason.rateLimited",SKILL_CATALOG_OVERSIZED:"catalog.reason.oversized",SKILL_CATALOG_MALFORMED:"catalog.reason.malformed",SKILL_CATALOG_INVALID_SCHEMA:"catalog.reason.invalidSchema"};function f(e){return e&&A[e]||"catalog.reason.unknown"}function T(e){return e.startsWith("skills.")?e.slice(7):e}let h=/!\[([^\]]*)\]\([^)]*\)/g,K=/<\/?(?:img|picture|source|video|audio|iframe|embed|object|track)\b[^>]*>/gi;function R(e){return e.replace(h,"$1").replace(K,"")}let k={query:"",compatibility:"all",risk:"all",agent:"all"};function D(e){var n,a;let t=e.versions.find(n=>n.version===e.recommendedVersion);return null!=(a=null==(n=null!=t?t:e.versions[0])?void 0:n.declaredRisk)?a:null}function y(e){let n=new Set;for(let a of e.versions)for(let e of a.compatibility.agents)("native"===e.support||"commandmate_runtime"===e.support)&&n.add(e.agent);return[...n].sort()}function w(e,n){return e.filter(e=>{var a;return!!function(e,n){let a=n.trim().toLowerCase();return 0===a.length||[e.name,e.summary,e.id,e.provider.name,...e.keywords].some(e=>e.toLowerCase().includes(a))}(e,n.query)&&("all"===n.compatibility||(null==(a=e.compatibility)?void 0:a.status)===n.compatibility)&&("all"===n.risk||D(e)===n.risk)&&("all"===n.agent||!!y(e).includes(n.agent))})}function b(e){let n=new Set;for(let a of e)for(let e of a.versions)for(let a of e.compatibility.agents)n.add(a.agent);return[...n].sort()}let C={installed:"dashboard.status.installed",modified:"dashboard.status.modified",missing:"dashboard.status.missing",unmanaged:"dashboard.status.unmanaged",update_available:"dashboard.status.updateAvailable"},O={installed:"dashboard.statusHint.installed",modified:"dashboard.statusHint.modified",missing:"dashboard.statusHint.missing",unmanaged:"dashboard.statusHint.unmanaged",update_available:"dashboard.statusHint.updateAvailable"},v={installed:"success",modified:"warning",missing:"error",unmanaged:"warning",update_available:"info"},U={install:"history.operation.install",uninstall:"history.operation.uninstall",update:"history.operation.update"},F={succeeded:"history.result.succeeded",failed:"history.result.failed",reconciled:"history.result.reconciled"},P={succeeded:"success",failed:"error",reconciled:"warning"},M={user:"history.actor.user",cli:"history.actor.cli",system:"history.actor.system"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[282],{15391:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(49485);let i=function(e){return(0,r.A)(e,4)}},80282:(e,t,n)=>{n.r(t),n.d(t,{render:()=>A});var r=n(93749);n(88232);var i=n(48215),a=n(41606);n(99945),n(4195),n(75037);var d=n(80962),o=n(20316),s=n(75951),l=n(82945),g=n(15391),c=n(70131);function f(e){var t,n,r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e,c.A(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return l.A(n)||(i.value=n),l.A(r)||(i.parent=r),i})),edges:(n=e,c.A(n.edges(),function(e){var t=n.edge(e),r={v:e.v,w:e.w};return l.A(e.name)||(r.name=e.name),l.A(t)||(r.value=t),r}))};return l.A(e.graph())||(r.value=g.A(e.graph())),r}n(37945);var h=n(49856),p=new Map,u=new Map,m=new Map,w=(0,o.K2)(()=>{u.clear(),m.clear(),p.clear()},"clear"),R=(0,o.K2)((e,t)=>{let n=u.get(t)||[];return o.Rm.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),v=(0,o.K2)((e,t)=>{let n=u.get(t)||[];return o.Rm.info("Descendants of ",t," is ",n),o.Rm.info("Edge is ",e),e.v!==t&&e.w!==t&&(n?n.includes(e.v)||R(e.v,t)||R(e.w,t)||n.includes(e.w):(o.Rm.debug("Tilt, ",t,",not in descendants"),!1))},"edgeInCluster"),y=(0,o.K2)((e,t,n,r)=>{o.Rm.warn("Copying children of ",e,"root",r,"data",t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),o.Rm.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(i=>{if(t.children(i).length>0)y(i,t,n,r);else{let a=t.node(i);o.Rm.info("cp ",i," to ",r," with parent ",e),n.setNode(i,a),r!==t.parent(i)&&(o.Rm.warn("Setting parent",i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(o.Rm.debug("Setting parent",i,e),n.setParent(i,e)):(o.Rm.info("In copy ",e,"root",r,"data",t.node(e),r),o.Rm.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));let d=t.edges(i);o.Rm.debug("Copying Edges",d),d.forEach(i=>{o.Rm.info("Edge",i);let a=t.edge(i.v,i.w,i.name);o.Rm.info("Edge data",a,r);try{v(i,r)?(o.Rm.info("Copying as ",i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),o.Rm.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):o.Rm.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",e)}catch(e){o.Rm.error(e)}})}o.Rm.debug("Removing node",i),t.removeNode(i)})},"copy"),X=(0,o.K2)((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)m.set(i,e),r=[...r,...X(i,t)];return r},"extractDescendants"),E=(0,o.K2)((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),d=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>d.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),N=(0,o.K2)((e,t,n)=>{let r,i=t.children(e);if(o.Rm.trace("Searching children of id ",e,i),i.length<1)return e;for(let e of i){let i=N(e,t,n),a=E(t,n,i);if(i)if(!(a.length>0))return i;else r=i}return r},"findNonClusterChild"),b=(0,o.K2)(e=>p.has(e)&&p.get(e).externalConnections&&p.has(e)?p.get(e).id:e,"getAnchorId"),C=(0,o.K2)((e,t)=>{if(!e||t>10)return void o.Rm.debug("Opting out, no graph ");for(let t of(o.Rm.debug("Opting in, graph "),e.nodes().forEach(function(t){e.children(t).length>0&&(o.Rm.warn("Cluster identified",t," Replacement id in edges: ",N(t,e,t)),u.set(t,X(t,e)),p.set(t,{id:N(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(o.Rm.debug("Cluster identified",t,u),r.forEach(e=>{R(e.v,t)^R(e.w,t)&&(o.Rm.warn("Edge: ",e," leaves cluster ",t),o.Rm.warn("Descendants of XXX ",t,": ",u.get(t)),p.get(t).externalConnections=!0)})):o.Rm.debug("Not a cluster ",t,u)}),p.keys())){let n=p.get(t).id,r=e.parent(n);r!==t&&p.has(r)&&!p.get(r).externalConnections&&(p.get(t).id=r)}e.edges().forEach(function(t){let n=e.edge(t);o.Rm.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.Rm.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(o.Rm.warn("Fix XXX",p,"ids:",t.v,t.w,"Translating: ",p.get(t.v)," --- ",p.get(t.w)),p.get(t.v)||p.get(t.w)){if(o.Rm.warn("Fixing and trying - removing XXX",t.v,t.w,t.name),r=b(t.v),i=b(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);p.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);p.get(r).externalConnections=!0,n.toCluster=t.w}o.Rm.warn("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,n,t.name)}}),o.Rm.warn("Adjusted Graph",f(e)),S(e,0),o.Rm.trace(p)},"adjustClustersAndEdges"),S=(0,o.K2)((e,t)=>{if(o.Rm.warn("extractor - ",t,f(e),e.children("D")),t>10)return void o.Rm.error("Bailing out");let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r=r||n.length>0}if(!r)return void o.Rm.debug("Done, no node has children",e.nodes());for(let r of(o.Rm.debug("Nodes = ",n,t),n))if(o.Rm.debug("Extracting node",r,p,p.has(r)&&!p.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),p.has(r))if(!p.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){o.Rm.warn("Cluster without external connections, without a parent and with children",r,t);let n="TB"===e.graph().rankdir?"LR":"TB";p.get(r)?.clusterData?.dir&&(n=p.get(r).clusterData.dir,o.Rm.warn("Fixing dir",p.get(r).clusterData.dir,n));let i=new h.T({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});o.Rm.warn("Old graph before copy",f(e)),y(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:p.get(r).clusterData,label:p.get(r).label,graph:i}),o.Rm.warn("New graph after copy node: (",r,")",f(i)),o.Rm.debug("Old graph after copy",f(e))}else o.Rm.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!p.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),o.Rm.debug(p);else o.Rm.debug("Not a cluster",r,t);for(let r of(n=e.nodes(),o.Rm.warn("New list of nodes",n),n)){let n=e.node(r);o.Rm.warn(" Now next level",r,n),n?.clusterNode&&S(n.graph,t+1)}},"extractor"),x=(0,o.K2)((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=e.children(t),i=x(e,r);n=[...n,...i]}),n},"sorter"),I=(0,o.K2)(e=>x(e,e.children()),"sortNodesByHierarchy"),D=(0,o.K2)(async(e,t,n,d,l,g)=>{o.Rm.warn("Graph in recursive render:XAX",f(t),l);let c=t.graph().rankdir;o.Rm.trace("Dir in recursive render - dir:",c);let h=e.insert("g").attr("class","root");t.nodes()?o.Rm.info("Recursive render XXX",t.nodes()):o.Rm.info("No nodes found for",t),t.edges().length>0&&o.Rm.info("Recursive edges",t.edge(t.edges()[0]));let u=h.insert("g").attr("class","clusters"),m=h.insert("g").attr("class","edgePaths"),w=h.insert("g").attr("class","edgeLabels"),R=h.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(e){let r=t.node(e);if(void 0!==l){let n=JSON.parse(JSON.stringify(l.clusterData));o.Rm.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",n.height,"\nParent cluster",l.height),t.setNode(l.id,n),t.parent(e)||(o.Rm.trace("Setting parent",e,l.id),t.setParent(e,l.id,n))}if(o.Rm.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),r?.clusterNode){o.Rm.info("Cluster identified XBX",e,r.width,t.node(e));let{ranksep:a,nodesep:s}=t.graph();r.graph.setGraph({...r.graph.graph(),ranksep:a+25,nodesep:s});let l=await D(R,r.graph,n,d,t.node(e),g),c=l.elem;(0,i.lC)(r,c),r.diff=l.diff||0,o.Rm.info("New compound node after recursive render XAX",e,"width",r.width,"height",r.height),(0,i.U7)(c,r)}else t.children(e).length>0?(o.Rm.trace("Cluster - the non recursive path XBX",e,r.id,r,r.width,"Graph:",t),o.Rm.trace(N(r.id,t)),p.set(r.id,{id:N(r.id,t),node:r})):(o.Rm.trace("Node - the non recursive path XAX",e,R,t.node(e),c),await (0,i.on)(R,t.node(e),{config:g,dir:c}))}));let v=(0,o.K2)(async()=>{let e=t.edges().map(async function(e){let n=t.edge(e.v,e.w,e.name);o.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),o.Rm.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),o.Rm.info("Fix",p,"ids:",e.v,e.w,"Translating: ",p.get(e.v),p.get(e.w)),await (0,r.jP)(w,n)});await Promise.all(e)},"processEdges");await v(),o.Rm.info("Graph before layout:",JSON.stringify(f(t))),o.Rm.info("############################################# XXX"),o.Rm.info("### Layout ### XXX"),o.Rm.info("############################################# XXX"),(0,s.Zp)(t),o.Rm.info("Graph after layout:",JSON.stringify(f(t)));let y=0,{subGraphTitleTotalMargin:X}=(0,a.O)(g);return await Promise.all(I(t).map(async function(e){let n=t.node(e);if(o.Rm.info("Position XBX => "+e+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=X,o.Rm.info("A tainted cluster node XBX1",e,n.id,n.width,n.height,n.x,n.y,t.parent(e)),p.get(n.id).node=n,(0,i.U_)(n);else if(t.children(e).length>0){o.Rm.info("A pure cluster node XBX1",e,n.id,n.x,n.y,n.width,n.height,t.parent(e)),n.height+=X,t.node(n.parentId);let r=n?.padding/2||0,a=n?.labelBBox?.height||0;o.Rm.debug("OffsetY",a-r||0,"labelHeight",a,"halfPadding",r),await (0,i.U)(u,n),p.get(n.id).node=n}else{let e=t.node(n.parentId);n.y+=X/2,o.Rm.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",e,e?.offsetY,n),(0,i.U_)(n)}})),t.edges().forEach(function(e){let i=t.edge(e);o.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(i),i),i.points.forEach(e=>e.y+=X/2);let a=t.node(e.v);var s=t.node(e.w);let l=(0,r.Jo)(m,i,p,n,a,s,d);(0,r.T_)(i,l)}),t.nodes().forEach(function(e){let n=t.node(e);o.Rm.info(e,n.type,n.diff),n.isGroup&&(y=n.diff)}),o.Rm.warn("Returning from recursive render XAX",h,y),{elem:h,diff:y}},"recursiveRender"),A=(0,o.K2)(async(e,t)=>{let n=new h.T({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=t.select("g");(0,r.g0)(a,e.markers,e.type,e.diagramId),(0,i.gh)(),(0,r.IU)(),(0,i.IU)(),w(),e.nodes.forEach(e=>{n.setNode(e.id,{...e}),e.parentId&&n.setParent(e.id,e.parentId)}),o.Rm.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){let t=e.start,r=t+"---"+t+"---1",i=t+"---"+t+"---2",a=n.node(t);n.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(r,a.parentId),n.setNode(i,{domId:i,id:i,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(i,a.parentId);let d=structuredClone(e),o=structuredClone(e),s=structuredClone(e);d.label="",d.arrowTypeEnd="none",d.id=t+"-cyclic-special-1",o.arrowTypeStart="none",o.arrowTypeEnd="none",o.id=t+"-cyclic-special-mid",s.label="",a.isGroup&&(d.fromCluster=t,s.toCluster=t),s.id=t+"-cyclic-special-2",s.arrowTypeStart="none",n.setEdge(t,r,d,t+"-cyclic-special-0"),n.setEdge(r,i,o,t+"-cyclic-special-1"),n.setEdge(i,t,s,t+"-cyc<lic-special-2")}else n.setEdge(e.start,e.end,{...e},e.id)}),o.Rm.warn("Graph at first:",JSON.stringify(f(n))),C(n),o.Rm.warn("Graph after XAX:",JSON.stringify(f(n)));let s=(0,d.D7)();await D(a,n,e.type,e.diagramId,void 0,s)},"render")}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[282],{15391:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(23048);let i=function(e){return(0,r.A)(e,4)}},80282:(e,t,n)=>{n.r(t),n.d(t,{render:()=>A});var r=n(93749);n(88232);var i=n(48215),a=n(41606);n(99945),n(4195),n(75037);var d=n(80962),o=n(20316),s=n(41464),l=n(82945),g=n(15391),c=n(70131);function f(e){var t,n,r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e,c.A(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return l.A(n)||(i.value=n),l.A(r)||(i.parent=r),i})),edges:(n=e,c.A(n.edges(),function(e){var t=n.edge(e),r={v:e.v,w:e.w};return l.A(e.name)||(r.name=e.name),l.A(t)||(r.value=t),r}))};return l.A(e.graph())||(r.value=g.A(e.graph())),r}n(37945);var h=n(49856),p=new Map,u=new Map,m=new Map,w=(0,o.K2)(()=>{u.clear(),m.clear(),p.clear()},"clear"),R=(0,o.K2)((e,t)=>{let n=u.get(t)||[];return o.Rm.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),v=(0,o.K2)((e,t)=>{let n=u.get(t)||[];return o.Rm.info("Descendants of ",t," is ",n),o.Rm.info("Edge is ",e),e.v!==t&&e.w!==t&&(n?n.includes(e.v)||R(e.v,t)||R(e.w,t)||n.includes(e.w):(o.Rm.debug("Tilt, ",t,",not in descendants"),!1))},"edgeInCluster"),y=(0,o.K2)((e,t,n,r)=>{o.Rm.warn("Copying children of ",e,"root",r,"data",t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),o.Rm.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(i=>{if(t.children(i).length>0)y(i,t,n,r);else{let a=t.node(i);o.Rm.info("cp ",i," to ",r," with parent ",e),n.setNode(i,a),r!==t.parent(i)&&(o.Rm.warn("Setting parent",i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(o.Rm.debug("Setting parent",i,e),n.setParent(i,e)):(o.Rm.info("In copy ",e,"root",r,"data",t.node(e),r),o.Rm.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));let d=t.edges(i);o.Rm.debug("Copying Edges",d),d.forEach(i=>{o.Rm.info("Edge",i);let a=t.edge(i.v,i.w,i.name);o.Rm.info("Edge data",a,r);try{v(i,r)?(o.Rm.info("Copying as ",i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),o.Rm.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):o.Rm.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",e)}catch(e){o.Rm.error(e)}})}o.Rm.debug("Removing node",i),t.removeNode(i)})},"copy"),X=(0,o.K2)((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)m.set(i,e),r=[...r,...X(i,t)];return r},"extractDescendants"),E=(0,o.K2)((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),d=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>d.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),N=(0,o.K2)((e,t,n)=>{let r,i=t.children(e);if(o.Rm.trace("Searching children of id ",e,i),i.length<1)return e;for(let e of i){let i=N(e,t,n),a=E(t,n,i);if(i)if(!(a.length>0))return i;else r=i}return r},"findNonClusterChild"),b=(0,o.K2)(e=>p.has(e)&&p.get(e).externalConnections&&p.has(e)?p.get(e).id:e,"getAnchorId"),C=(0,o.K2)((e,t)=>{if(!e||t>10)return void o.Rm.debug("Opting out, no graph ");for(let t of(o.Rm.debug("Opting in, graph "),e.nodes().forEach(function(t){e.children(t).length>0&&(o.Rm.warn("Cluster identified",t," Replacement id in edges: ",N(t,e,t)),u.set(t,X(t,e)),p.set(t,{id:N(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(o.Rm.debug("Cluster identified",t,u),r.forEach(e=>{R(e.v,t)^R(e.w,t)&&(o.Rm.warn("Edge: ",e," leaves cluster ",t),o.Rm.warn("Descendants of XXX ",t,": ",u.get(t)),p.get(t).externalConnections=!0)})):o.Rm.debug("Not a cluster ",t,u)}),p.keys())){let n=p.get(t).id,r=e.parent(n);r!==t&&p.has(r)&&!p.get(r).externalConnections&&(p.get(t).id=r)}e.edges().forEach(function(t){let n=e.edge(t);o.Rm.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.Rm.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(o.Rm.warn("Fix XXX",p,"ids:",t.v,t.w,"Translating: ",p.get(t.v)," --- ",p.get(t.w)),p.get(t.v)||p.get(t.w)){if(o.Rm.warn("Fixing and trying - removing XXX",t.v,t.w,t.name),r=b(t.v),i=b(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);p.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);p.get(r).externalConnections=!0,n.toCluster=t.w}o.Rm.warn("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,n,t.name)}}),o.Rm.warn("Adjusted Graph",f(e)),S(e,0),o.Rm.trace(p)},"adjustClustersAndEdges"),S=(0,o.K2)((e,t)=>{if(o.Rm.warn("extractor - ",t,f(e),e.children("D")),t>10)return void o.Rm.error("Bailing out");let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r=r||n.length>0}if(!r)return void o.Rm.debug("Done, no node has children",e.nodes());for(let r of(o.Rm.debug("Nodes = ",n,t),n))if(o.Rm.debug("Extracting node",r,p,p.has(r)&&!p.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),p.has(r))if(!p.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){o.Rm.warn("Cluster without external connections, without a parent and with children",r,t);let n="TB"===e.graph().rankdir?"LR":"TB";p.get(r)?.clusterData?.dir&&(n=p.get(r).clusterData.dir,o.Rm.warn("Fixing dir",p.get(r).clusterData.dir,n));let i=new h.T({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});o.Rm.warn("Old graph before copy",f(e)),y(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:p.get(r).clusterData,label:p.get(r).label,graph:i}),o.Rm.warn("New graph after copy node: (",r,")",f(i)),o.Rm.debug("Old graph after copy",f(e))}else o.Rm.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!p.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),o.Rm.debug(p);else o.Rm.debug("Not a cluster",r,t);for(let r of(n=e.nodes(),o.Rm.warn("New list of nodes",n),n)){let n=e.node(r);o.Rm.warn(" Now next level",r,n),n?.clusterNode&&S(n.graph,t+1)}},"extractor"),x=(0,o.K2)((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=e.children(t),i=x(e,r);n=[...n,...i]}),n},"sorter"),I=(0,o.K2)(e=>x(e,e.children()),"sortNodesByHierarchy"),D=(0,o.K2)(async(e,t,n,d,l,g)=>{o.Rm.warn("Graph in recursive render:XAX",f(t),l);let c=t.graph().rankdir;o.Rm.trace("Dir in recursive render - dir:",c);let h=e.insert("g").attr("class","root");t.nodes()?o.Rm.info("Recursive render XXX",t.nodes()):o.Rm.info("No nodes found for",t),t.edges().length>0&&o.Rm.info("Recursive edges",t.edge(t.edges()[0]));let u=h.insert("g").attr("class","clusters"),m=h.insert("g").attr("class","edgePaths"),w=h.insert("g").attr("class","edgeLabels"),R=h.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(e){let r=t.node(e);if(void 0!==l){let n=JSON.parse(JSON.stringify(l.clusterData));o.Rm.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",n.height,"\nParent cluster",l.height),t.setNode(l.id,n),t.parent(e)||(o.Rm.trace("Setting parent",e,l.id),t.setParent(e,l.id,n))}if(o.Rm.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),r?.clusterNode){o.Rm.info("Cluster identified XBX",e,r.width,t.node(e));let{ranksep:a,nodesep:s}=t.graph();r.graph.setGraph({...r.graph.graph(),ranksep:a+25,nodesep:s});let l=await D(R,r.graph,n,d,t.node(e),g),c=l.elem;(0,i.lC)(r,c),r.diff=l.diff||0,o.Rm.info("New compound node after recursive render XAX",e,"width",r.width,"height",r.height),(0,i.U7)(c,r)}else t.children(e).length>0?(o.Rm.trace("Cluster - the non recursive path XBX",e,r.id,r,r.width,"Graph:",t),o.Rm.trace(N(r.id,t)),p.set(r.id,{id:N(r.id,t),node:r})):(o.Rm.trace("Node - the non recursive path XAX",e,R,t.node(e),c),await (0,i.on)(R,t.node(e),{config:g,dir:c}))}));let v=(0,o.K2)(async()=>{let e=t.edges().map(async function(e){let n=t.edge(e.v,e.w,e.name);o.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),o.Rm.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),o.Rm.info("Fix",p,"ids:",e.v,e.w,"Translating: ",p.get(e.v),p.get(e.w)),await (0,r.jP)(w,n)});await Promise.all(e)},"processEdges");await v(),o.Rm.info("Graph before layout:",JSON.stringify(f(t))),o.Rm.info("############################################# XXX"),o.Rm.info("### Layout ### XXX"),o.Rm.info("############################################# XXX"),(0,s.Zp)(t),o.Rm.info("Graph after layout:",JSON.stringify(f(t)));let y=0,{subGraphTitleTotalMargin:X}=(0,a.O)(g);return await Promise.all(I(t).map(async function(e){let n=t.node(e);if(o.Rm.info("Position XBX => "+e+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=X,o.Rm.info("A tainted cluster node XBX1",e,n.id,n.width,n.height,n.x,n.y,t.parent(e)),p.get(n.id).node=n,(0,i.U_)(n);else if(t.children(e).length>0){o.Rm.info("A pure cluster node XBX1",e,n.id,n.x,n.y,n.width,n.height,t.parent(e)),n.height+=X,t.node(n.parentId);let r=n?.padding/2||0,a=n?.labelBBox?.height||0;o.Rm.debug("OffsetY",a-r||0,"labelHeight",a,"halfPadding",r),await (0,i.U)(u,n),p.get(n.id).node=n}else{let e=t.node(n.parentId);n.y+=X/2,o.Rm.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",e,e?.offsetY,n),(0,i.U_)(n)}})),t.edges().forEach(function(e){let i=t.edge(e);o.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(i),i),i.points.forEach(e=>e.y+=X/2);let a=t.node(e.v);var s=t.node(e.w);let l=(0,r.Jo)(m,i,p,n,a,s,d);(0,r.T_)(i,l)}),t.nodes().forEach(function(e){let n=t.node(e);o.Rm.info(e,n.type,n.diff),n.isGroup&&(y=n.diff)}),o.Rm.warn("Returning from recursive render XAX",h,y),{elem:h,diff:y}},"recursiveRender"),A=(0,o.K2)(async(e,t)=>{let n=new h.T({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=t.select("g");(0,r.g0)(a,e.markers,e.type,e.diagramId),(0,i.gh)(),(0,r.IU)(),(0,i.IU)(),w(),e.nodes.forEach(e=>{n.setNode(e.id,{...e}),e.parentId&&n.setParent(e.id,e.parentId)}),o.Rm.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){let t=e.start,r=t+"---"+t+"---1",i=t+"---"+t+"---2",a=n.node(t);n.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(r,a.parentId),n.setNode(i,{domId:i,id:i,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(i,a.parentId);let d=structuredClone(e),o=structuredClone(e),s=structuredClone(e);d.label="",d.arrowTypeEnd="none",d.id=t+"-cyclic-special-1",o.arrowTypeStart="none",o.arrowTypeEnd="none",o.id=t+"-cyclic-special-mid",s.label="",a.isGroup&&(d.fromCluster=t,s.toCluster=t),s.id=t+"-cyclic-special-2",s.arrowTypeStart="none",n.setEdge(t,r,d,t+"-cyclic-special-0"),n.setEdge(r,i,o,t+"-cyclic-special-1"),n.setEdge(i,t,s,t+"-cyc<lic-special-2")}else n.setEdge(e.start,e.end,{...e},e.id)}),o.Rm.warn("Graph at first:",JSON.stringify(f(n))),C(n),o.Rm.warn("Graph after XAX:",JSON.stringify(f(n)));let s=(0,d.D7)();await D(a,n,e.type,e.diagramId,void 0,s)},"render")}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3237],{23048:(e,t,r)=>{r.d(t,{A:()=>q});var s=r(88816),i=r(41760),n=r(57386),o=r(69294),a=r(29431),h=r(98046),c=r(47939),u=r(37998),d=r(30329),l=r(113),_=r(57233),A=r(17896),b=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,l.A)(t,(0,d.A)(e)),e=(0,_.A)(e);return t}:A.A,p=r(22275),f=r(5358);let v=function(e){return(0,f.A)(e,h.A,b)};var g=r(43967),j=Object.prototype.hasOwnProperty;let y=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&j.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var m=r(17988);let w=function(e,t){var r=t?(0,m.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var O=/\w*$/;let C=function(e){var t=new e.constructor(e.source,O.exec(e));return t.lastIndex=e.lastIndex,t};var E=r(63e3),N=E.A?E.A.prototype:void 0,L=N?N.valueOf:void 0,D=r(34280);let P=function(e,t,r){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,m.A)(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return w(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,D.A)(e,r);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return C(e);case"[object Symbol]":return L?Object(L.call(e)):{}}};var F=r(77294),M=r(64536),x=r(82092),S=r(11331),I=r(35668),U=r(48272),k=U.A&&U.A.isMap,B=k?(0,I.A)(k):function(e){return(0,S.A)(e)&&"[object Map]"==(0,g.A)(e)},G=r(33476),T=U.A&&U.A.isSet,R=T?(0,I.A)(T):function(e){return(0,S.A)(e)&&"[object Set]"==(0,g.A)(e)},V="[object Arguments]",z="[object Function]",W="[object Object]",$={};$[V]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object DataView]"]=$["[object Boolean]"]=$["[object Date]"]=$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Map]"]=$["[object Number]"]=$[W]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object Symbol]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Error]"]=$[z]=$["[object WeakMap]"]=!1;let q=function e(t,r,l,_,A,f){var j,m=1&r,w=2&r,O=4&r;if(l&&(j=A?l(t,_,A,f):l(t)),void 0!==j)return j;if(!(0,G.A)(t))return t;var C=(0,M.A)(t);if(C){if(j=y(t),!m)return(0,u.A)(t,j)}else{var E,N,L,D,S=(0,g.A)(t),I=S==z||"[object GeneratorFunction]"==S;if((0,x.A)(t))return(0,c.A)(t,m);if(S==W||S==V||I&&!A){if(j=w||I?{}:(0,F.A)(t),!m)return w?(N=(E=j)&&(0,o.A)(t,(0,h.A)(t),E),(0,o.A)(t,b(t),N)):(D=(L=j)&&(0,o.A)(t,(0,a.A)(t),L),(0,o.A)(t,(0,d.A)(t),D))}else{if(!$[S])return A?t:{};j=P(t,S,m)}}f||(f=new s.A);var U=f.get(t);if(U)return U;f.set(t,j),R(t)?t.forEach(function(s){j.add(e(s,r,l,s,t,f))}):B(t)&&t.forEach(function(s,i){j.set(i,e(s,r,l,i,t,f))});var k=O?w?v:p.A:w?h.A:a.A,T=C?void 0:k(t);return(0,i.A)(T||t,function(s,i){T&&(s=t[i=s]),(0,n.A)(j,i,e(s,r,l,i,t,f))}),j}},37945:(e,t,r)=>{r.d(t,{T:()=>f});var s=r(13439),i=r(71851),n=r(29431),o=r(73594),a=r(79824),h=r(28555),c=r(82945),u=r(3175),d=r(3679),l=r(85673),_=r(50972),A=(0,d.A)(function(e){return(0,l.A)((0,u.A)(e,1,_.A,!0))}),b=r(73308),p=r(57864);class f{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,"directed")||e.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(e,"multigraph")&&e.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=s.A(void 0),this._defaultEdgeLabelFn=s.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return i.A(e)||(e=s.A(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return n.A(this._nodes)}sources(){var e=this;return o.A(this.nodes(),function(t){return a.A(e._in[t])})}sinks(){var e=this;return o.A(this.nodes(),function(t){return a.A(e._out[t])})}setNodes(e,t){var r=arguments,s=this;return h.A(e,function(e){r.length>1?s.setNode(e,t):s.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],h.A(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),h.A(n.A(this._in[e]),t),delete this._in[e],delete this._preds[e],h.A(n.A(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(c.A(t))t="\0";else{t+="";for(var r=t;!c.A(r);r=this.parent(r))if(r===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}}children(e){if(c.A(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return n.A(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return n.A(t)}successors(e){var t=this._sucs[e];if(t)return n.A(t)}neighbors(e){var t=this.predecessors(e);if(t)return A(t,this.successors(e))}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var r=this;h.A(this._nodes,function(r,s){e(s)&&t.setNode(s,r)}),h.A(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,r.edge(e))});var s={};return this._isCompound&&h.A(t.nodes(),function(e){t.setParent(e,function e(i){var n=r.parent(i);return void 0===n||t.hasNode(n)?(s[i]=n,n):n in s?s[n]:e(n)}(e))}),t}setDefaultEdgeLabel(e){return i.A(e)||(e=s.A(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return b.A(this._edgeObjs)}setPath(e,t){var r=this,s=arguments;return p.A(e,function(e,i){return s.length>1?r.setEdge(e,i,t):r.setEdge(e,i),i}),this}setEdge(){var e,t,r,s,i=!1,n=arguments[0];"object"==typeof n&&null!==n&&"v"in n?(e=n.v,t=n.w,r=n.name,2==arguments.length&&(s=arguments[1],i=!0)):(e=n,t=arguments[1],r=arguments[3],arguments.length>2&&(s=arguments[2],i=!0)),e=""+e,t=""+t,c.A(r)||(r=""+r);var o=j(this._isDirected,e,t,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=s),this;if(!c.A(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?s:this._defaultEdgeLabelFn(e,t,r);var a=function(e,t,r,s){var i=""+t,n=""+r;if(!e&&i>n){var o=i;i=n,n=o}var a={v:i,w:n};return s&&(a.name=s),a}(this._isDirected,e,t,r);return e=a.v,t=a.w,Object.freeze(a),this._edgeObjs[o]=a,v(this._preds[t],e),v(this._sucs[e],t),this._in[t][o]=a,this._out[e][o]=a,this._edgeCount++,this}edge(e,t,r){var s=1==arguments.length?y(this._isDirected,arguments[0]):j(this._isDirected,e,t,r);return this._edgeLabels[s]}hasEdge(e,t,r){var s=1==arguments.length?y(this._isDirected,arguments[0]):j(this._isDirected,e,t,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,s)}removeEdge(e,t,r){var s=1==arguments.length?y(this._isDirected,arguments[0]):j(this._isDirected,e,t,r),i=this._edgeObjs[s];return i&&(e=i.v,t=i.w,delete this._edgeLabels[s],delete this._edgeObjs[s],g(this._preds[t],e),g(this._sucs[e],t),delete this._in[t][s],delete this._out[e][s],this._edgeCount--),this}inEdges(e,t){var r=this._in[e];if(r){var s=b.A(r);return t?o.A(s,function(e){return e.v===t}):s}}outEdges(e,t){var r=this._out[e];if(r){var s=b.A(r);return t?o.A(s,function(e){return e.w===t}):s}}nodeEdges(e,t){var r=this.inEdges(e,t);if(r)return r.concat(this.outEdges(e,t))}}function v(e,t){e[t]?e[t]++:e[t]=1}function g(e,t){--e[t]||delete e[t]}function j(e,t,r,s){var i=""+t,n=""+r;if(!e&&i>n){var o=i;i=n,n=o}return i+"\x01"+n+"\x01"+(c.A(s)?"\0":s)}function y(e,t){return j(e,t.v,t.w,t.name)}f.prototype._nodeCount=0,f.prototype._edgeCount=0},49856:(e,t,r)=>{r.d(t,{T:()=>s.T});var s=r(37945)},73308:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(42557),i=r(29431);let n=function(e){var t;return null==e?[]:(t=(0,i.A)(e),(0,s.A)(t,function(t){return e[t]}))}},82945:(e,t,r)=>{r.d(t,{A:()=>s});let s=function(e){return void 0===e}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3480],{113:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(r,t){for(var n=-1,e=t.length,u=r.length;++n<e;)r[u+n]=t[n];return r}},603:(r,t,n)=>{n.d(t,{A:()=>u});var e=n(92729);let u=function(r){return"function"==typeof r?r:e.A}},3175:(r,t,n)=>{n.d(t,{A:()=>l});var e=n(113),u=n(63e3),o=n(14875),f=n(64536),i=u.A?u.A.isConcatSpreadable:void 0;let a=function(r){return(0,f.A)(r)||(0,o.A)(r)||!!(i&&r&&r[i])},l=function r(t,n,u,o,f){var i=-1,l=t.length;for(u||(u=a),f||(f=[]);++i<l;){var c=t[i];n>0&&u(c)?n>1?r(c,n-1,u,o,f):(0,e.A)(f,c):o||(f[f.length]=c)}return f}},3416:(r,t,n)=>{n.d(t,{A:()=>o});let e=function(r,t){return null!=r&&t in Object(r)};var u=n(13023);let o=function(r,t){return null!=r&&(0,u.A)(r,t,e)}},5358:(r,t,n)=>{n.d(t,{A:()=>o});var e=n(113),u=n(64536);let o=function(r,t,n){var o=t(r);return(0,u.A)(r)?o:(0,e.A)(o,n(r))}},7818:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(r,t,n,e){for(var u=r.length,o=n+(e?1:-1);e?o--:++o<u;)if(t(r[o],o,r))return o;return -1}},13023:(r,t,n)=>{n.d(t,{A:()=>l});var e=n(19267),u=n(14875),o=n(64536),f=n(90904),i=n(83119),a=n(62964);let l=function(r,t,n){t=(0,e.A)(t,r);for(var l=-1,c=t.length,A=!1;++l<c;){var v=(0,a.A)(t[l]);if(!(A=null!=r&&n(r,v)))break;r=r[v]}return A||++l!=c?A:!!(c=null==r?0:r.length)&&(0,i.A)(c)&&(0,f.A)(v,c)&&((0,o.A)(r)||(0,u.A)(r))}},17896:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(){return[]}},19267:(r,t,n)=>{n.d(t,{A:()=>c});var e=n(64536),u=n(58347),o=n(73206),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=function(r){var t=(0,o.A)(r,function(r){return 500===n.size&&n.clear(),r}),n=t.cache;return t}(function(r){var t=[];return 46===r.charCodeAt(0)&&t.push(""),r.replace(f,function(r,n,e,u){t.push(e?u.replace(i,"$1"):n||r)}),t}),l=n(26321);let c=function(r,t){return(0,e.A)(r)?r:(0,u.A)(r,t)?[r]:a((0,l.A)(r))}},22275:(r,t,n)=>{n.d(t,{A:()=>f});var e=n(5358),u=n(30329),o=n(29431);let f=function(r){return(0,e.A)(r,o.A,u.A)}},26321:(r,t,n)=>{n.d(t,{A:()=>A});var e=n(63e3),u=n(42557),o=n(64536),f=n(59027),i=1/0,a=e.A?e.A.prototype:void 0,l=a?a.toString:void 0;let c=function r(t){if("string"==typeof t)return t;if((0,o.A)(t))return(0,u.A)(t,r)+"";if((0,f.A)(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-i?"-0":n},A=function(r){return null==r?"":c(r)}},27424:(r,t,n)=>{n.d(t,{A:()=>o});var e=n(50785),u=n(29431);let o=function(r,t){return r&&(0,e.A)(r,t,u.A)}},28555:(r,t,n)=>{n.d(t,{A:()=>i});var e=n(41760),u=n(60936),o=n(603),f=n(64536);let i=function(r,t){return((0,f.A)(r)?e.A:u.A)(r,(0,o.A)(t))}},29431:(r,t,n)=>{n.d(t,{A:()=>f});var e=n(59584),u=n(51496),o=n(21383);let f=function(r){return(0,o.A)(r)?(0,e.A)(r):(0,u.A)(r)}},30329:(r,t,n)=>{n.d(t,{A:()=>i});var e=n(84051),u=n(17896),o=Object.prototype.propertyIsEnumerable,f=Object.getOwnPropertySymbols;let i=f?function(r){return null==r?[]:(r=Object(r),(0,e.A)(f(r),function(t){return o.call(r,t)}))}:u.A},37604:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(r){return function(t){return null==t?void 0:t[r]}}},41760:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(r,t){for(var n=-1,e=null==r?0:r.length;++n<e&&!1!==t(r[n],n,r););return r}},42557:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(r,t){for(var n=-1,e=null==r?0:r.length,u=Array(e);++n<e;)u[n]=t(r[n],n,r);return u}},52810:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(r,t){return r.has(t)}},57864:(r,t,n)=>{n.d(t,{A:()=>a});let e=function(r,t,n,e){var u=-1,o=null==r?0:r.length;for(e&&o&&(n=r[++u]);++u<o;)n=t(n,r[u],u,r);return n};var u=n(60936),o=n(72719);let f=function(r,t,n,e,u){return u(r,function(r,u,o){n=e?(e=!1,r):t(n,r,u,o)}),n};var i=n(64536);let a=function(r,t,n){var a=(0,i.A)(r)?e:f,l=arguments.length<3;return a(r,(0,o.A)(t,4),n,l,u.A)}},58347:(r,t,n)=>{n.d(t,{A:()=>i});var e=n(64536),u=n(59027),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/;let i=function(r,t){if((0,e.A)(r))return!1;var n=typeof r;return!!("number"==n||"symbol"==n||"boolean"==n||null==r||(0,u.A)(r))||f.test(r)||!o.test(r)||null!=t&&r in Object(t)}},59027:(r,t,n)=>{n.d(t,{A:()=>o});var e=n(35582),u=n(11331);let o=function(r){return"symbol"==typeof r||(0,u.A)(r)&&"[object Symbol]"==(0,e.A)(r)}},60936:(r,t,n)=>{n.d(t,{A:()=>f});var e,u=n(27424),o=n(21383);let f=(e=u.A,function(r,t){if(null==r)return r;if(!(0,o.A)(r))return e(r,t);for(var n=r.length,u=-1,f=Object(r);++u<n&&!1!==t(f[u],u,f););return r})},62749:(r,t,n)=>{n.d(t,{A:()=>o});var e=n(35571);function u(r){var t=-1,n=null==r?0:r.length;for(this.__data__=new e.A;++t<n;)this.add(r[t])}u.prototype.add=u.prototype.push=function(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this},u.prototype.has=function(r){return this.__data__.has(r)};let o=u},62964:(r,t,n)=>{n.d(t,{A:()=>o});var e=n(59027),u=1/0;let o=function(r){if("string"==typeof r||(0,e.A)(r))return r;var t=r+"";return"0"==t&&1/r==-u?"-0":t}},70551:(r,t,n)=>{n.d(t,{A:()=>o});var e=n(19267),u=n(62964);let o=function(r,t){t=(0,e.A)(t,r);for(var n=0,o=t.length;null!=r&&n<o;)r=r[(0,u.A)(t[n++])];return n&&n==o?r:void 0}},72719:(r,t,n)=>{n.d(t,{A:()=>J});var e=n(88816),u=n(62749);let o=function(r,t){for(var n=-1,e=null==r?0:r.length;++n<e;)if(t(r[n],n,r))return!0;return!1};var f=n(52810);let i=function(r,t,n,e,i,a){var l=1&n,c=r.length,A=t.length;if(c!=A&&!(l&&A>c))return!1;var v=a.get(r),s=a.get(t);if(v&&s)return v==t&&s==r;var d=-1,h=!0,b=2&n?new u.A:void 0;for(a.set(r,t),a.set(t,r);++d<c;){var p=r[d],g=t[d];if(e)var y=l?e(g,p,d,t,r,a):e(p,g,d,r,t,a);if(void 0!==y){if(y)continue;h=!1;break}if(b){if(!o(t,function(r,t){if(!(0,f.A)(b,t)&&(p===r||i(p,r,n,e,a)))return b.push(t)})){h=!1;break}}else if(!(p===g||i(p,g,n,e,a))){h=!1;break}}return a.delete(r),a.delete(t),h};var a=n(63e3),l=n(4573),c=n(37537);let A=function(r){var t=-1,n=Array(r.size);return r.forEach(function(r,e){n[++t]=[e,r]}),n};var v=n(78646),s=a.A?a.A.prototype:void 0,d=s?s.valueOf:void 0;let h=function(r,t,n,e,u,o,f){switch(n){case"[object DataView]":if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)break;r=r.buffer,t=t.buffer;case"[object ArrayBuffer]":if(r.byteLength!=t.byteLength||!o(new l.A(r),new l.A(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,c.A)(+r,+t);case"[object Error]":return r.name==t.name&&r.message==t.message;case"[object RegExp]":case"[object String]":return r==t+"";case"[object Map]":var a=A;case"[object Set]":var s=1&e;if(a||(a=v.A),r.size!=t.size&&!s)break;var h=f.get(r);if(h)return h==t;e|=2,f.set(r,t);var b=i(a(r),a(t),e,u,o,f);return f.delete(r),b;case"[object Symbol]":if(d)return d.call(r)==d.call(t)}return!1};var b=n(22275),p=Object.prototype.hasOwnProperty;let g=function(r,t,n,e,u,o){var f=1&n,i=(0,b.A)(r),a=i.length;if(a!=(0,b.A)(t).length&&!f)return!1;for(var l=a;l--;){var c=i[l];if(!(f?c in t:p.call(t,c)))return!1}var A=o.get(r),v=o.get(t);if(A&&v)return A==t&&v==r;var s=!0;o.set(r,t),o.set(t,r);for(var d=f;++l<a;){var h=r[c=i[l]],g=t[c];if(e)var y=f?e(g,h,c,t,r,o):e(h,g,c,r,t,o);if(!(void 0===y?h===g||u(h,g,n,e,o):y)){s=!1;break}d||(d="constructor"==c)}if(s&&!d){var _=r.constructor,j=t.constructor;_!=j&&"constructor"in r&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof j&&j instanceof j)&&(s=!1)}return o.delete(r),o.delete(t),s};var y=n(43967),_=n(64536),j=n(82092),w=n(67822),O="[object Arguments]",m="[object Array]",k="[object Object]",E=Object.prototype.hasOwnProperty;let S=function(r,t,n,u,o,f){var a=(0,_.A)(r),l=(0,_.A)(t),c=a?m:(0,y.A)(r),A=l?m:(0,y.A)(t);c=c==O?k:c,A=A==O?k:A;var v=c==k,s=A==k,d=c==A;if(d&&(0,j.A)(r)){if(!(0,j.A)(t))return!1;a=!0,v=!1}if(d&&!v)return f||(f=new e.A),a||(0,w.A)(r)?i(r,t,n,u,o,f):h(r,t,c,n,u,o,f);if(!(1&n)){var b=v&&E.call(r,"__wrapped__"),p=s&&E.call(t,"__wrapped__");if(b||p){var S=b?r.value():r,z=p?t.value():t;return f||(f=new e.A),o(S,z,n,u,f)}}return!!d&&(f||(f=new e.A),g(r,t,n,u,o,f))};var z=n(11331);let C=function r(t,n,e,u,o){return t===n||(null!=t&&null!=n&&((0,z.A)(t)||(0,z.A)(n))?S(t,n,e,u,r,o):t!=t&&n!=n)},L=function(r,t,n,u){var o=n.length,f=o,i=!u;if(null==r)return!f;for(r=Object(r);o--;){var a=n[o];if(i&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++o<f;){var l=(a=n[o])[0],c=r[l],A=a[1];if(i&&a[2]){if(void 0===c&&!(l in r))return!1}else{var v=new e.A;if(u)var s=u(c,A,l,r,t,v);if(!(void 0===s?C(A,c,3,u,v):s))return!1}}return!0};var N=n(33476);let P=function(r){return r==r&&!(0,N.A)(r)};var $=n(29431);let B=function(r){for(var t=(0,$.A)(r),n=t.length;n--;){var e=t[n],u=r[e];t[n]=[e,u,P(u)]}return t},D=function(r,t){return function(n){return null!=n&&n[r]===t&&(void 0!==t||r in Object(n))}},x=function(r){var t=B(r);return 1==t.length&&t[0][2]?D(t[0][0],t[0][1]):function(n){return n===r||L(n,r,t)}};var I=n(70551);let M=function(r,t,n){var e=null==r?void 0:(0,I.A)(r,t);return void 0===e?n:e};var R=n(3416),V=n(58347),q=n(62964),F=n(92729),G=n(37604);let H=function(r){return(0,V.A)(r)?(0,G.A)((0,q.A)(r)):function(t){return(0,I.A)(t,r)}},J=function(r){if("function"==typeof r)return r;if(null==r)return F.A;if("object"==typeof r){var t,n;return(0,_.A)(r)?(t=r[0],n=r[1],(0,V.A)(t)&&P(n)?D((0,q.A)(t),n):function(r){var e=M(r,t);return void 0===e&&e===n?(0,R.A)(r,t):C(n,e,3)}):x(r)}return H(r)}},73594:(r,t,n)=>{n.d(t,{A:()=>a});var e=n(84051),u=n(60936);let o=function(r,t){var n=[];return(0,u.A)(r,function(r,e,u){t(r,e,u)&&n.push(r)}),n};var f=n(72719),i=n(64536);let a=function(r,t){return((0,i.A)(r)?e.A:o)(r,(0,f.A)(t,3))}},78646:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(r){var t=-1,n=Array(r.size);return r.forEach(function(r){n[++t]=r}),n}},84051:(r,t,n)=>{n.d(t,{A:()=>e});let e=function(r,t){for(var n=-1,e=null==r?0:r.length,u=0,o=[];++n<e;){var f=r[n];t(f,n,r)&&(o[u++]=f)}return o}},85673:(r,t,n)=>{n.d(t,{A:()=>s});var e=n(62749),u=n(7818);let o=function(r){return r!=r},f=function(r,t,n){for(var e=n-1,u=r.length;++e<u;)if(r[e]===t)return e;return -1},i=function(r,t){return!!(null==r?0:r.length)&&(t==t?f(r,t,0):(0,u.A)(r,o,0))>-1},a=function(r,t,n){for(var e=-1,u=null==r?0:r.length;++e<u;)if(n(t,r[e]))return!0;return!1};var l=n(52810),c=n(49848),A=n(78646),v=c.A&&1/(0,A.A)(new c.A([,-0]))[1]==1/0?function(r){return new c.A(r)}:function(){};let s=function(r,t,n){var u=-1,o=i,f=r.length,c=!0,s=[],d=s;if(n)c=!1,o=a;else if(f>=200){var h=t?null:v(r);if(h)return(0,A.A)(h);c=!1,o=l.A,d=new e.A}else d=t?[]:s;r:for(;++u<f;){var b=r[u],p=t?t(b):b;if(b=n||0!==b?b:0,c&&p==p){for(var g=d.length;g--;)if(d[g]===p)continue r;t&&d.push(p),s.push(b)}else o(d,p,n)||(d!==s&&d.push(p),s.push(b))}return s}}}]);
|