madarx 2.19.0 → 2.22.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/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-build-manifest.json +688 -674
- package/.next/standalone/.next/app-path-routes-manifest.json +80 -78
- package/.next/standalone/.next/build-manifest.json +5 -5
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +2 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +3 -3
- package/.next/standalone/.next/server/app/activity/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/admin/page.js +2 -2
- package/.next/standalone/.next/server/app/admin/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/agents/[id]/page.js +3 -3
- package/.next/standalone/.next/server/app/agents/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/agents/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/agents/page.js +1 -1
- package/.next/standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/activity/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/audit-export/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/share-links/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-memory/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-runs/[id]/cancel/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-runs/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-runs/[id]/log/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-runs/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agent-runs/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[id]/active-run/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[id]/chain/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[id]/memory/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[id]/reports/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[id]/run/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/[id]/skills/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/agents/[id]/skills/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/active-runs/route.js +1 -0
- package/.next/standalone/.next/server/app/api/agents/active-runs/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/agents/active-runs/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/agents/create/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/ops/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/agents/resume-approval/route.js +1 -0
- package/.next/standalone/.next/server/app/api/agents/resume-approval/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/agents/resume-approval/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/approvals/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/approvals/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/artifacts/[id]/acl/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/artifacts/[id]/protect/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/artifacts/[id]/raw/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/artifacts/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/artifacts/[id]/share-link/[linkId]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/artifacts/[id]/share-link/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/artifacts/upload/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/audit/list/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/audit/search/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/callback/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/config/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/join-bootstrap/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/session/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/brand/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/brand/share/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/chat/sessions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/chat/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cloud/schema/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/config/env/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/config/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/connections/[service]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/connections/[service]/verify/route.js +2 -2
- package/.next/standalone/.next/server/app/api/connections/[service]/verify/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/connections/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cron/tick/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/dashboard/spaces/[id]/move/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/dashboard/spaces/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/dashboard/spaces/[id]/share-link/[linkId]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/dashboard/spaces/[id]/share-link/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/dashboard/spaces/import/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/dashboard/spaces/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/disk/files/[id]/blob/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/disk/files/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/disk/files/[id]/transcribe/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/disk/files/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/disk/folders/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/events/since/[cursor]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/events/stream/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/fs/create-folder/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/fs/pick-folder/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/[id]/blueprint/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/[id]/diagnostic/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/[id]/governance/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/[id]/interview/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/[id]/pilot/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/[id]/quarterly/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/[id]/setup-package/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/engagements/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/interviews/[id]/responses/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/interviews/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/setup-packages/[id]/apply/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hail/setup-packages/validate/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/heartbeat/tick/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/heartbeat/worker/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/help/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hermes/jobs/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hermes/jobs/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/hermes/jobs/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/integrations/google/callback/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/integrations/google/oauth/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/marketplace/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/marketplace/open-design/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/marketplace/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mines/import-roots/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mines/portfolio/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mines/projects/[id]/chunks/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mines/projects/[id]/diligence/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mines/projects/[id]/import/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mines/projects/[id]/publish/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/mines/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/missions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/onboarding/blueprint/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/onboarding/blueprint/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/onboarding/launch/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/onboarding/launch/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orchestrator/command/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orchestrator/stream/attach/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orchestrator/stream/route.js +58 -63
- package/.next/standalone/.next/server/app/api/orchestrator/stream/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orchestrator/upload/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/org/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/[id]/invites/[inviteId]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/[id]/invites/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/[id]/members/[userId]/role/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/[id]/members/[userId]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/[id]/members/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/invites/pending/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/join/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/join-complete/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/orgs/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/printing-press/clis/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/printing-press/install/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/printing-press/security-mode/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/privacy/config/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/privacy/verify/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/[id]/share-link/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/[id]/stages/[stageId]/override/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/[id]/stages/[stageId]/retry/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/[id]/stages/[stageId]/submit/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/definitions/[slug]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/definitions/[slug]/settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/definitions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/definitions/validate/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/processes/start-and-route/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[slug]/library/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/[slug]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/runs/approve-claude-run/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/runs/claude-code-dry-run/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/runs/competitor-report/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/runs/engine-ping/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/runs/marketing-plan/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/schedules/upsert/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/secrets/[name]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/secrets/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/settings/trust-mode/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/share/[token]/otp/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/share/[token]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/share/[token]/verify/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/share/space/[token]/otp/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/share/space/[token]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/share/space/[token]/verify/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/shared/spaces/[id]/acl/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/shared/spaces/publish/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/shared/spaces/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/shared/spaces/status/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/shared/spaces/unpublish/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/state/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/system/update/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/active-run/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/attachments/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/checklist/[itemId]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/checklist/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/checkout/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/children/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/comments/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/live-runs/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/release/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tasks/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tool-allowlists/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tool-allowlists/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tool-egress/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tools/[name]/approve/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tools/[name]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/tools/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/transcripts/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/voice/providers/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/voice/realtime/context/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/voice/realtime/session/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/voice/realtime/tool-result/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/voice/realtime/tools/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/voice/tts/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/whatsapp/allowlist/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/whatsapp/disconnect/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/whatsapp/messages/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/whatsapp/qr/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/whatsapp/send/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/whatsapp/status/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/approvals/page.js +2 -2
- package/.next/standalone/.next/server/app/approvals/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/architecture/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/architecture.html +2 -2
- package/.next/standalone/.next/server/app/architecture.rsc +3 -3
- package/.next/standalone/.next/server/app/audit/live/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/brand/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/brand.html +2 -2
- package/.next/standalone/.next/server/app/brand.rsc +3 -3
- package/.next/standalone/.next/server/app/disk/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/federated-ai/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/federated-ai.html +2 -2
- package/.next/standalone/.next/server/app/federated-ai.rsc +3 -3
- package/.next/standalone/.next/server/app/hail/[id]/governance/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/hail/[id]/interview/page.js +2 -2
- package/.next/standalone/.next/server/app/hail/[id]/interview/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/hail/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/hail/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/hail/[id]/setup/page.js +2 -2
- package/.next/standalone/.next/server/app/hail/[id]/setup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/hail/page.js +1 -1
- package/.next/standalone/.next/server/app/hail/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/help/[slug]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/help/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +2 -2
- package/.next/standalone/.next/server/app/index.rsc +4 -4
- package/.next/standalone/.next/server/app/join/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/join.html +1 -1
- package/.next/standalone/.next/server/app/join.rsc +3 -3
- package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/marketplace/page.js +3 -3
- package/.next/standalone/.next/server/app/marketplace/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/mines/[projectId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/mines/[projectId]/results/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/mines/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/missions/page.js +2 -2
- package/.next/standalone/.next/server/app/missions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/onboarding/org/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/onboarding/team/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/onboarding.html +2 -2
- package/.next/standalone/.next/server/app/onboarding.rsc +3 -3
- package/.next/standalone/.next/server/app/org/page.js +1 -1
- package/.next/standalone/.next/server/app/org/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/org/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/page.js +4 -4
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/[slug]/log/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/[slug]/page.js +2 -2
- package/.next/standalone/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/new/page.js +3 -3
- package/.next/standalone/.next/server/app/projects/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/new.html +2 -2
- package/.next/standalone/.next/server/app/projects/new.rsc +4 -4
- package/.next/standalone/.next/server/app/projects/page.js +28 -24
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/reports/[file]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/reports/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/runtime/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/schedules/page.js +2 -2
- package/.next/standalone/.next/server/app/schedules/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/account/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/advanced/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/appearance/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/brand/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/brand.html +2 -2
- package/.next/standalone/.next/server/app/settings/brand.rsc +3 -3
- package/.next/standalone/.next/server/app/settings/connectors/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/engines/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/onboarding/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/onboarding.html +2 -2
- package/.next/standalone/.next/server/app/settings/onboarding.rsc +3 -3
- package/.next/standalone/.next/server/app/settings/organization/page.js +1 -1
- package/.next/standalone/.next/server/app/settings/organization/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/organization/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/runtime/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/team/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/tools/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings.html +2 -2
- package/.next/standalone/.next/server/app/settings.rsc +3 -3
- package/.next/standalone/.next/server/app/share/[token]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/share/space/[token]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/tasks/[id]/page.js +2 -2
- package/.next/standalone/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/tasks/page.js +2 -2
- package/.next/standalone/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/team/[agentId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/team/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/tools/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/whatsapp/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/whatsapp.html +2 -2
- package/.next/standalone/.next/server/app/whatsapp.rsc +3 -3
- package/.next/standalone/.next/server/app/workflows/[caseId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/workflows/new/[caseId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/workflows/new/definition/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/workflows/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/workflows/share/[caseId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +80 -78
- package/.next/standalone/.next/server/chunks/1699.js +248 -64
- package/.next/standalone/.next/server/chunks/3230.js +11 -11
- package/.next/standalone/.next/server/chunks/4740.js +1 -1
- package/.next/standalone/.next/server/chunks/511.js +7 -7
- package/.next/standalone/.next/server/chunks/6059.js +1 -1
- package/.next/standalone/.next/server/chunks/7098.js +1 -0
- package/.next/standalone/.next/server/functions-config-manifest.json +54 -52
- package/.next/standalone/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/404.html +2 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/IDXwXTmFu4HQak2wJH1Qy/_buildManifest.js +1 -0
- package/.next/standalone/.next/static/chunks/app/activity/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/agents/[id]/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/agents/[id]/page-b10b2ac79b5980a8.js +1 -0
- package/.next/standalone/.next/static/chunks/app/agents/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/agents/page-c3aa602e9ee205d1.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/activity/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/admin/audit-export/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/admin/share-links/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agent-memory/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/cancel/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/events/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/log/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/active-run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/chain/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/memory/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/reports/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/skills/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/active-runs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/create/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/ops/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/agents/resume-approval/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/approvals/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/approvals/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/acl/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/protect/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/raw/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/share-link/[linkId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/share-link/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/artifacts/upload/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/audit/list/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/audit/search/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/auth/callback/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/auth/config/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/auth/join-bootstrap/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/auth/session/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/brand/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/brand/share/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/chat/sessions/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/chat/sessions/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cloud/schema/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/config/env/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/config/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/connections/[service]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/connections/[service]/verify/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/connections/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cron/tick/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/move/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/[linkId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/import/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/blob/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/transcribe/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/disk/files/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/disk/folders/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/events/since/[cursor]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/events/stream/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/fs/create-folder/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/fs/pick-folder/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/blueprint/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/diagnostic/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/governance/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/interview/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/pilot/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/quarterly/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/setup-package/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/interviews/[id]/responses/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/interviews/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/setup-packages/[id]/apply/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hail/setup-packages/validate/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/heartbeat/tick/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/heartbeat/worker/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/help/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/[id]/events/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/integrations/google/callback/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/integrations/google/oauth/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/marketplace/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/marketplace/open-design/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/marketplace/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/mines/import-roots/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/mines/portfolio/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/chunks/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/diligence/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/import/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/publish/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/missions/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/models/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/onboarding/blueprint/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/onboarding/launch/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orchestrator/command/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orchestrator/stream/attach/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orchestrator/stream/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orchestrator/upload/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/org/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/invites/[inviteId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/invites/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/[userId]/role/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/[userId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/invites/pending/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/join/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/join-complete/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/orgs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/printing-press/clis/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/printing-press/install/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/printing-press/security-mode/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/privacy/config/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/privacy/verify/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/share-link/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/override/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/retry/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/submit/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/definitions/[slug]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/definitions/[slug]/settings/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/definitions/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/definitions/validate/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/processes/start-and-route/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/projects/[slug]/library/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/projects/[slug]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/projects/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/runs/approve-claude-run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/runs/claude-code-dry-run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/runs/competitor-report/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/runs/engine-ping/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/runs/marketing-plan/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/schedules/upsert/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/secrets/[name]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/secrets/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/settings/trust-mode/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/share/[token]/otp/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/share/[token]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/share/[token]/verify/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/otp/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/verify/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/[id]/acl/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/publish/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/status/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/unpublish/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/state/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/system/update/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/active-run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/attachments/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checklist/[itemId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checklist/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checkout/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/children/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/comments/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/events/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/live-runs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/release/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tasks/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tool-allowlists/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tool-allowlists/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tool-egress/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tools/[name]/approve/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tools/[name]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/tools/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/transcripts/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/voice/providers/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/voice/realtime/context/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/voice/realtime/session/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/voice/realtime/tool-result/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/voice/realtime/tools/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/voice/tts/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/allowlist/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/disconnect/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/messages/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/qr/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/send/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/status/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/approvals/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/architecture/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/audit/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/brand/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/disk/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/federated-ai/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/help/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/layout-7c734abe785c0d86.js +1 -0
- package/.next/standalone/.next/static/chunks/app/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/marketplace/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/missions/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/onboarding/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/org/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/page-9d742c9099ab9cd7.js +1 -0
- package/.next/standalone/.next/static/chunks/app/projects/[slug]/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/projects/[slug]/page-abbc7f06e58ff9ee.js +1 -0
- package/.next/standalone/.next/static/chunks/app/projects/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/projects/page-87457ee2932c33a3.js +1 -0
- package/.next/standalone/.next/static/chunks/app/reports/[file]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/reports/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/runtime/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/schedules/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/settings/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/settings/page-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/tasks/[id]/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/tasks/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/tools/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/tools/page-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/whatsapp/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/app/workflows/share/[caseId]/page-1ba78d5ff6330abc.js +1 -0
- package/.next/standalone/.next/static/chunks/webpack-0613e32ff96b6e16.js +1 -0
- package/.next/standalone/CHANGELOG.md +26 -0
- package/.next/standalone/package.json +1 -1
- package/.next/static/IDXwXTmFu4HQak2wJH1Qy/_buildManifest.js +1 -0
- package/.next/static/chunks/app/activity/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/agents/[id]/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/agents/[id]/page-b10b2ac79b5980a8.js +1 -0
- package/.next/static/chunks/app/agents/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/agents/page-c3aa602e9ee205d1.js +1 -0
- package/.next/static/chunks/app/api/activity/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/admin/audit-export/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/admin/share-links/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agent-memory/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agent-runs/[id]/cancel/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agent-runs/[id]/events/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agent-runs/[id]/log/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agent-runs/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agent-runs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/[id]/active-run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/[id]/chain/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/[id]/memory/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/[id]/reports/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/[id]/run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/[id]/skills/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/active-runs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/create/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/ops/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/agents/resume-approval/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/approvals/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/approvals/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/artifacts/[id]/acl/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/artifacts/[id]/protect/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/artifacts/[id]/raw/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/artifacts/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/artifacts/[id]/share-link/[linkId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/artifacts/[id]/share-link/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/artifacts/upload/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/audit/list/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/audit/search/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/auth/callback/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/auth/config/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/auth/join-bootstrap/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/auth/session/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/brand/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/brand/share/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/chat/sessions/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/chat/sessions/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/cloud/schema/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/config/env/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/config/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/connections/[service]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/connections/[service]/verify/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/connections/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/cron/tick/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/dashboard/spaces/[id]/move/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/dashboard/spaces/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/[linkId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/dashboard/spaces/import/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/dashboard/spaces/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/disk/files/[id]/blob/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/disk/files/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/disk/files/[id]/transcribe/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/disk/files/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/disk/folders/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/events/since/[cursor]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/events/stream/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/fs/create-folder/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/fs/pick-folder/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/[id]/blueprint/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/[id]/diagnostic/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/[id]/governance/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/[id]/interview/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/[id]/pilot/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/[id]/quarterly/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/[id]/setup-package/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/engagements/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/interviews/[id]/responses/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/interviews/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/setup-packages/[id]/apply/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hail/setup-packages/validate/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/heartbeat/tick/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/heartbeat/worker/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/help/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hermes/jobs/[id]/events/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hermes/jobs/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/hermes/jobs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/integrations/google/callback/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/integrations/google/oauth/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/marketplace/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/marketplace/open-design/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/marketplace/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/mines/import-roots/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/mines/portfolio/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/mines/projects/[id]/chunks/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/mines/projects/[id]/diligence/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/mines/projects/[id]/import/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/mines/projects/[id]/publish/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/mines/projects/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/missions/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/models/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/onboarding/blueprint/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/onboarding/launch/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orchestrator/command/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orchestrator/stream/attach/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orchestrator/stream/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orchestrator/upload/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/org/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/[id]/invites/[inviteId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/[id]/invites/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/[id]/members/[userId]/role/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/[id]/members/[userId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/[id]/members/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/invites/pending/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/join/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/join-complete/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/orgs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/printing-press/clis/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/printing-press/install/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/printing-press/security-mode/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/privacy/config/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/privacy/verify/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/[id]/share-link/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/override/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/retry/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/submit/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/definitions/[slug]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/definitions/[slug]/settings/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/definitions/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/definitions/validate/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/processes/start-and-route/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/projects/[slug]/library/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/projects/[slug]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/projects/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/runs/approve-claude-run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/runs/claude-code-dry-run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/runs/competitor-report/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/runs/engine-ping/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/runs/marketing-plan/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/schedules/upsert/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/secrets/[name]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/secrets/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/settings/trust-mode/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/share/[token]/otp/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/share/[token]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/share/[token]/verify/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/share/space/[token]/otp/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/share/space/[token]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/share/space/[token]/verify/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/shared/spaces/[id]/acl/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/shared/spaces/publish/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/shared/spaces/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/shared/spaces/status/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/shared/spaces/unpublish/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/state/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/system/update/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/active-run/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/attachments/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/checklist/[itemId]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/checklist/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/checkout/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/children/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/comments/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/events/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/live-runs/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/release/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tasks/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tool-allowlists/[id]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tool-allowlists/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tool-egress/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tools/[name]/approve/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tools/[name]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/tools/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/transcripts/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/voice/providers/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/voice/realtime/context/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/voice/realtime/session/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/voice/realtime/tool-result/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/voice/realtime/tools/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/voice/tts/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/whatsapp/allowlist/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/whatsapp/disconnect/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/whatsapp/messages/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/whatsapp/qr/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/whatsapp/send/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/api/whatsapp/status/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/approvals/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/architecture/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/audit/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/brand/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/disk/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/federated-ai/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/help/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/layout-7c734abe785c0d86.js +1 -0
- package/.next/static/chunks/app/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/marketplace/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/missions/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/onboarding/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/org/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/page-9d742c9099ab9cd7.js +1 -0
- package/.next/static/chunks/app/projects/[slug]/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/projects/[slug]/page-abbc7f06e58ff9ee.js +1 -0
- package/.next/static/chunks/app/projects/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/projects/page-87457ee2932c33a3.js +1 -0
- package/.next/static/chunks/app/reports/[file]/route-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/reports/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/runtime/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/schedules/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/settings/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/settings/page-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/tasks/[id]/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/tasks/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/tools/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/tools/page-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/whatsapp/loading-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/app/workflows/share/[caseId]/page-1ba78d5ff6330abc.js +1 -0
- package/.next/static/chunks/webpack-0613e32ff96b6e16.js +1 -0
- package/CHANGELOG.md +26 -0
- package/app/agents/agent-events-bus.js +4 -0
- package/app/api/agents/active-runs/route.js +59 -0
- package/app/api/agents/resume-approval/route.js +102 -0
- package/app/api/connections/[service]/verify/route.js +83 -0
- package/app/api/orchestrator/stream/route.js +137 -55
- package/app/components/app-topbar.jsx +34 -88
- package/app/components/dashboard/apply-stream-event.js +15 -0
- package/app/components/dashboard/bg-agent-reducer.js +125 -0
- package/app/components/dashboard/chat-panel.jsx +56 -0
- package/app/components/dashboard/use-bg-agents.js +34 -0
- package/app/components/dashboard/use-stream-command.js +65 -2
- package/app/projects/[slug]/page.js +2 -0
- package/app/projects/[slug]/project-scope-sync.jsx +26 -0
- package/lib/active-runs.js +5 -0
- package/lib/agent-config.js +22 -15
- package/lib/agent-engines.js +1 -1
- package/lib/agent-routing.js +195 -0
- package/lib/agent-runner.js +192 -7
- package/lib/agent-templates.js +1 -0
- package/lib/cli-action-flow.js +88 -0
- package/lib/connection-seeds.js +44 -0
- package/lib/delegation.js +94 -1
- package/lib/heartbeat-worker.js +13 -0
- package/lib/higgsfield-media-card.js +221 -0
- package/lib/marketplace-seeds.js +85 -0
- package/lib/marketplace.js +57 -5
- package/lib/orchestrator-tools.js +210 -6
- package/lib/role-capability-map.js +111 -0
- package/lib/seeds.js +57 -0
- package/lib/tools/adapters/disk.js +107 -0
- package/lib/tools/adapters/higgsfield.js +329 -0
- package/lib/tools/registry.js +87 -0
- package/package.json +1 -1
- package/.next/standalone/.next/server/chunks/5030.js +0 -1
- package/.next/standalone/.next/static/chunks/app/activity/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/agents/[id]/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/agents/[id]/page-721c43e75cb2dd59.js +0 -1
- package/.next/standalone/.next/static/chunks/app/agents/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/agents/page-b1bcb39a46a254aa.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/activity/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/admin/audit-export/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/admin/share-links/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agent-memory/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/cancel/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/events/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/log/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agent-runs/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/active-run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/chain/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/memory/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/reports/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agents/[id]/skills/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agents/create/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/agents/ops/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/approvals/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/approvals/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/acl/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/protect/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/raw/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/share-link/[linkId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/artifacts/[id]/share-link/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/artifacts/upload/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/audit/list/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/audit/search/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/auth/callback/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/auth/config/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/auth/join-bootstrap/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/auth/session/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/brand/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/brand/share/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/chat/sessions/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/chat/sessions/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cloud/schema/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/config/env/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/config/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/connections/[service]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/connections/[service]/verify/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/connections/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cron/tick/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/move/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/[linkId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/import/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/dashboard/spaces/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/blob/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/disk/files/[id]/transcribe/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/disk/files/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/disk/folders/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/events/since/[cursor]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/events/stream/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/fs/create-folder/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/fs/pick-folder/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/blueprint/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/diagnostic/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/governance/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/interview/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/pilot/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/quarterly/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/[id]/setup-package/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/engagements/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/interviews/[id]/responses/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/interviews/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/setup-packages/[id]/apply/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hail/setup-packages/validate/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/heartbeat/tick/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/heartbeat/worker/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/help/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/[id]/events/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/hermes/jobs/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/integrations/google/callback/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/integrations/google/oauth/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/marketplace/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/marketplace/open-design/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/marketplace/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/mines/import-roots/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/mines/portfolio/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/chunks/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/diligence/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/import/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/[id]/publish/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/mines/projects/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/missions/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/models/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/onboarding/blueprint/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/onboarding/launch/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orchestrator/command/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orchestrator/stream/attach/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orchestrator/stream/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orchestrator/upload/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/org/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/invites/[inviteId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/invites/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/[userId]/role/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/[userId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/members/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/invites/pending/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/join/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/join-complete/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/orgs/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/printing-press/clis/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/printing-press/install/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/printing-press/security-mode/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/privacy/config/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/privacy/verify/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/share-link/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/override/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/retry/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/submit/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/definitions/[slug]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/definitions/[slug]/settings/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/definitions/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/definitions/validate/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/processes/start-and-route/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/projects/[slug]/library/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/projects/[slug]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/projects/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runs/approve-claude-run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runs/claude-code-dry-run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runs/competitor-report/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runs/engine-ping/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/runs/marketing-plan/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/schedules/upsert/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/secrets/[name]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/secrets/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/settings/trust-mode/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/share/[token]/otp/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/share/[token]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/share/[token]/verify/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/otp/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/share/space/[token]/verify/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/[id]/acl/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/publish/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/status/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/shared/spaces/unpublish/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/state/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/system/update/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/active-run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/attachments/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checklist/[itemId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checklist/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/checkout/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/children/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/comments/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/events/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/live-runs/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/release/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tasks/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tool-allowlists/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tool-allowlists/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tool-egress/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tools/[name]/approve/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tools/[name]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/tools/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/transcripts/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/voice/providers/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/voice/realtime/context/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/voice/realtime/session/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/voice/realtime/tool-result/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/voice/realtime/tools/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/voice/tts/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/allowlist/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/disconnect/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/messages/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/qr/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/send/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/whatsapp/status/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/approvals/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/architecture/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/audit/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/brand/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/disk/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/federated-ai/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/help/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/layout-457acc50d33a5e0e.js +0 -1
- package/.next/standalone/.next/static/chunks/app/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/marketplace/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/missions/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/onboarding/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/org/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/page-8b485e954b4da5be.js +0 -1
- package/.next/standalone/.next/static/chunks/app/projects/[slug]/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/projects/[slug]/page-0bc910eac788bf29.js +0 -1
- package/.next/standalone/.next/static/chunks/app/projects/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/projects/page-8b61f1179feb9d4b.js +0 -1
- package/.next/standalone/.next/static/chunks/app/reports/[file]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/reports/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/runtime/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/schedules/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/settings/page-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/tasks/[id]/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/tasks/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/tools/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/tools/page-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/whatsapp/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/app/workflows/share/[caseId]/page-31bb6a3d587a09ca.js +0 -1
- package/.next/standalone/.next/static/chunks/webpack-a7e11ef0747e2718.js +0 -1
- package/.next/standalone/.next/static/sO4ApzzsDEnqk70DEBOS6/_buildManifest.js +0 -1
- package/.next/static/chunks/app/activity/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/agents/[id]/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/agents/[id]/page-721c43e75cb2dd59.js +0 -1
- package/.next/static/chunks/app/agents/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/agents/page-b1bcb39a46a254aa.js +0 -1
- package/.next/static/chunks/app/api/activity/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/admin/audit-export/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/admin/share-links/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agent-memory/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agent-runs/[id]/cancel/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agent-runs/[id]/events/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agent-runs/[id]/log/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agent-runs/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agent-runs/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agents/[id]/active-run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agents/[id]/chain/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agents/[id]/memory/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agents/[id]/reports/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agents/[id]/run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agents/[id]/skills/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agents/create/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/agents/ops/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/approvals/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/approvals/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/artifacts/[id]/acl/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/artifacts/[id]/protect/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/artifacts/[id]/raw/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/artifacts/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/artifacts/[id]/share-link/[linkId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/artifacts/[id]/share-link/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/artifacts/upload/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/audit/list/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/audit/search/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/auth/callback/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/auth/config/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/auth/join-bootstrap/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/auth/session/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/brand/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/brand/share/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/chat/sessions/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/chat/sessions/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/cloud/schema/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/config/env/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/config/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/connections/[service]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/connections/[service]/verify/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/connections/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/cron/tick/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/dashboard/spaces/[id]/move/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/dashboard/spaces/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/[linkId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/dashboard/spaces/[id]/share-link/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/dashboard/spaces/import/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/dashboard/spaces/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/disk/files/[id]/blob/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/disk/files/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/disk/files/[id]/transcribe/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/disk/files/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/disk/folders/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/events/since/[cursor]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/events/stream/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/fs/create-folder/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/fs/pick-folder/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/[id]/blueprint/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/[id]/diagnostic/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/[id]/governance/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/[id]/interview/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/[id]/pilot/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/[id]/quarterly/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/[id]/setup-package/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/engagements/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/interviews/[id]/responses/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/interviews/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/setup-packages/[id]/apply/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hail/setup-packages/validate/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/heartbeat/tick/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/heartbeat/worker/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/help/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hermes/jobs/[id]/events/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hermes/jobs/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/hermes/jobs/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/integrations/google/callback/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/integrations/google/oauth/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/marketplace/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/marketplace/open-design/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/marketplace/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/mines/import-roots/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/mines/portfolio/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/mines/projects/[id]/chunks/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/mines/projects/[id]/diligence/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/mines/projects/[id]/import/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/mines/projects/[id]/publish/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/mines/projects/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/missions/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/models/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/onboarding/blueprint/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/onboarding/launch/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orchestrator/command/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orchestrator/stream/attach/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orchestrator/stream/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orchestrator/upload/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/org/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/[id]/invites/[inviteId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/[id]/invites/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/[id]/members/[userId]/role/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/[id]/members/[userId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/[id]/members/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/invites/pending/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/join/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/join-complete/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/orgs/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/printing-press/clis/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/printing-press/install/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/printing-press/security-mode/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/privacy/config/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/privacy/verify/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/[id]/share-link/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/override/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/retry/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/[id]/stages/[stageId]/submit/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/definitions/[slug]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/definitions/[slug]/settings/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/definitions/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/definitions/validate/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/processes/start-and-route/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/projects/[slug]/library/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/projects/[slug]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/projects/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/runs/approve-claude-run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/runs/claude-code-dry-run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/runs/competitor-report/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/runs/engine-ping/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/runs/marketing-plan/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/schedules/upsert/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/secrets/[name]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/secrets/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/settings/trust-mode/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/share/[token]/otp/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/share/[token]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/share/[token]/verify/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/share/space/[token]/otp/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/share/space/[token]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/share/space/[token]/verify/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/shared/spaces/[id]/acl/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/shared/spaces/publish/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/shared/spaces/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/shared/spaces/status/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/shared/spaces/unpublish/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/state/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/system/update/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/active-run/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/attachments/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/checklist/[itemId]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/checklist/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/checkout/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/children/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/comments/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/events/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/live-runs/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/release/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tasks/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tool-allowlists/[id]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tool-allowlists/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tool-egress/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tools/[name]/approve/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tools/[name]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/tools/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/transcripts/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/voice/providers/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/voice/realtime/context/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/voice/realtime/session/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/voice/realtime/tool-result/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/voice/realtime/tools/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/voice/tts/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/whatsapp/allowlist/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/whatsapp/disconnect/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/whatsapp/messages/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/whatsapp/qr/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/whatsapp/send/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/api/whatsapp/status/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/approvals/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/architecture/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/audit/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/brand/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/disk/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/federated-ai/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/help/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/layout-457acc50d33a5e0e.js +0 -1
- package/.next/static/chunks/app/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/marketplace/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/missions/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/onboarding/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/org/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/page-8b485e954b4da5be.js +0 -1
- package/.next/static/chunks/app/projects/[slug]/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/projects/[slug]/page-0bc910eac788bf29.js +0 -1
- package/.next/static/chunks/app/projects/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/projects/page-8b61f1179feb9d4b.js +0 -1
- package/.next/static/chunks/app/reports/[file]/route-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/reports/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/runtime/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/schedules/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/settings/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/settings/page-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/tasks/[id]/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/tasks/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/tools/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/tools/page-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/whatsapp/loading-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/app/workflows/share/[caseId]/page-31bb6a3d587a09ca.js +0 -1
- package/.next/static/chunks/webpack-a7e11ef0747e2718.js +0 -1
- package/.next/static/sO4ApzzsDEnqk70DEBOS6/_buildManifest.js +0 -1
- /package/.next/standalone/.next/static/{sO4ApzzsDEnqk70DEBOS6 → IDXwXTmFu4HQak2wJH1Qy}/_ssgManifest.js +0 -0
- /package/.next/static/{sO4ApzzsDEnqk70DEBOS6 → IDXwXTmFu4HQak2wJH1Qy}/_ssgManifest.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(()=>{var a={};a.id=8974,a.ids=[8974],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},26848:a=>{"use strict";a.exports=require("node:readline/promises")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},47782:(a,b,c)=>{Promise.resolve().then(c.bind(c,93796))},48161:a=>{"use strict";a.exports=require("node:os")},50832:a=>{"use strict";a.exports=import("@anthropic-ai/sdk")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67762:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/madarx-os/madarx-os/app/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/madarx-os/madarx-os/app/page.js","default")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78608:a=>{"use strict";a.exports=require("exceljs")},79326:(a,b,c)=>{Promise.resolve().then(c.bind(c,67762))},80099:a=>{"use strict";a.exports=require("node:sqlite")},83237:a=>{"use strict";a.exports=import("playwright")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88945:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>E.a,__next_app__:()=>K,handler:()=>M,pages:()=>J,routeModule:()=>L,tree:()=>I});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(52574),o=c(82802),p=c(77533),q=c(45229),r=c(32822),s=c(261),t=c(26453),u=c(52474),v=c(26713),w=c(51356),x=c(62685),y=c(36225),z=c(63446),A=c(2762),B=c(45742),C=c(86439),D=c(81170),E=c.n(D),F=c(62506),G=c(91203),H={};for(let a in F)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(H[a]=()=>F[a]);c.d(b,H);let I={children:["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,67762)),"/home/runner/work/madarx-os/madarx-os/app/page.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,2987))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(c.bind(c,70715)),"/home/runner/work/madarx-os/madarx-os/app/layout.js"],loading:[()=>Promise.resolve().then(c.bind(c,90391)),"/home/runner/work/madarx-os/madarx-os/app/loading.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await Promise.resolve().then(c.bind(c,2987))).default(a)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]}.children,J=["/home/runner/work/madarx-os/madarx-os/app/page.js"],K={require:c,loadChunk:()=>Promise.resolve()},L=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:I},distDir:".next",relativeProjectDir:""});async function M(a,b,d){var D;let H="/page";"/index"===H&&(H="/");let N=(0,h.getRequestMeta)(a,"postponed"),O=(0,h.getRequestMeta)(a,"minimalMode"),P=await L.prepare(a,b,{srcPage:H,multiZoneDraftMode:!1});if(!P)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:Q,query:R,params:S,parsedUrl:T,pageIsDynamic:U,buildManifest:V,nextFontManifest:W,reactLoadableManifest:X,serverActionsManifest:Y,clientReferenceManifest:Z,subresourceIntegrityManifest:$,prerenderManifest:_,isDraftMode:aa,resolvedPathname:ab,revalidateOnlyGenerated:ac,routerServerContext:ad,nextConfig:ae,interceptionRoutePatterns:af}=P,ag=T.pathname||"/",ah=(0,s.normalizeAppPath)(H),{isOnDemandRevalidate:ai}=P,aj=L.match(ag,_),ak=!!_.routes[ab],al=!!(aj||ak||_.routes[ah]),am=a.headers["user-agent"]||"",an=(0,v.getBotType)(am),ao=(0,q.isHtmlBotRequest)(a),ap=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[u.NEXT_ROUTER_PREFETCH_HEADER],aq=(0,h.getRequestMeta)(a,"isRSCRequest")??(0,n.f)(a.headers[u.RSC_HEADER]),ar=(0,t.getIsPossibleServerAction)(a),as=(0,m.checkIsAppPPREnabled)(ae.experimental.ppr)&&(null==(D=_.routes[ah]??_.dynamicRoutes[ah])?void 0:D.renderingMode)==="PARTIALLY_STATIC",at=!1,au=!1,av=as?N:void 0,aw=as&&aq&&!ap,ax=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ay=!am||(0,q.shouldServeStreamingMetadata)(am,ae.htmlLimitedBots);ao&&as&&(al=!1,ay=!1);let az=!0===L.isDev||!al||"string"==typeof N||aw,aA=ao&&as,aB=null;aa||!al||az||ar||av||aw||(aB=ab);let aC=aB;!aC&&L.isDev&&(aC=ab),L.isDev||aa||!al||!aq||aw||(0,k.d)(a.headers);let aD={...F,tree:I,pages:J,GlobalError:E(),handler:M,routeModule:L,__next_app__:K};Y&&Z&&(0,p.setReferenceManifestsSingleton)({page:H,clientReferenceManifest:Z,serverActionsManifest:Y,serverModuleMap:(0,r.createServerModuleMap)({serverActionsManifest:Y})});let aE=a.method||"GET",aF=(0,g.getTracer)(),aG=aF.getActiveScopeSpan();try{let f=L.getVaryHeader(ab,af);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return L.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aF.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aE} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aE} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:R,params:S,page:ah,sharedContext:{buildId:Q},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aD,Component:(0,j.T)(aD),params:S,routeModule:L,page:H,postponed:f,shouldWaitOnAllReady:aA,serveStreamingMetadata:ay,supportsDynamicResponse:"string"==typeof f||az,buildManifest:V,nextFontManifest:W,reactLoadableManifest:X,subresourceIntegrityManifest:$,serverActionsManifest:Y,clientReferenceManifest:Z,setIsrStatus:null==ad?void 0:ad.setIsrStatus,dir:c(33873).join(process.cwd(),L.relativeProjectDir),isDraftMode:aa,isRevalidate:al&&!f&&!aw,botType:an,isOnDemandRevalidate:ai,isPossibleServerAction:ar,assetPrefix:ae.assetPrefix,nextConfigOutput:ae.output,crossOrigin:ae.crossOrigin,trailingSlash:ae.trailingSlash,previewProps:_.preview,deploymentId:ae.deploymentId,enableTainting:ae.experimental.taint,htmlLimitedBots:ae.htmlLimitedBots,devtoolSegmentExplorer:ae.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ae.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ae.experimental.cacheLife,basePath:ae.basePath,serverActions:ae.experimental.serverActions,...at?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:at}:{},experimental:{isRoutePPREnabled:as,expireTime:ae.expireTime,staleTimes:ae.experimental.staleTimes,cacheComponents:!!ae.experimental.cacheComponents,clientSegmentCache:!!ae.experimental.clientSegmentCache,clientParamParsing:!!ae.experimental.clientParamParsing,dynamicOnHover:!!ae.experimental.dynamicOnHover,inlineCss:!!ae.experimental.inlineCss,authInterrupts:!!ae.experimental.authInterrupts,clientTraceMetadata:ae.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>L.onRequestError(a,b,d,ad),err:(0,h.getRequestMeta)(a,"invokeError"),dev:L.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[z.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,al&&(null==n?void 0:n.revalidate)===0&&!L.isDev&&!as){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${ab}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
|
|
2
|
-
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:w.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},n=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===L.isDev,l=c||b.writableEnded;if(ai&&ac&&!f&&!O)return(null==ad?void 0:ad.render404)?await ad.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(j=(0,x.parseFallbackField)(aj.fallback)),j===x.FallbackMode.PRERENDER&&(0,v.isBot)(am)&&(!as||ao)&&(j=x.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(j!==x.FallbackMode.NOT_FOUND||f)&&(j=x.FallbackMode.BLOCKING_STATIC_RENDER),!O&&j!==x.FallbackMode.BLOCKING_STATIC_RENDER&&aC&&!l&&!aa&&U&&(k||!ak)){let b;if((k||aj)&&j===x.FallbackMode.NOT_FOUND)throw new C.NoFallbackError;if(as&&!aq){let c="string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:k?ah:null;if(b=await L.handleResponse({cacheKey:c,req:a,nextConfig:ae,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:_,isRoutePPREnabled:as,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||au?(0,o.u)(ah):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let n=ai||g||!av?void 0:av;if(at&&void 0!==n)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:w.CachedRouteKind.PAGES,html:y.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=U&&as&&((0,h.getRequestMeta)(a,"renderFallbackShell")||au)?(0,o.u)(ag):null;return m({span:i,postponed:n,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,o=await L.handleResponse({cacheKey:aB,responseGenerator:a=>n({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ae,prerenderManifest:_,waitUntil:d.waitUntil});if(aa&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!o){if(aB)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=o.value)?void 0:f.kind)!==w.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=o.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof o.value.postponed;al&&!aw&&(!p||ap)&&(O||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":o.isMiss?"MISS":o.isStale?"STALE":"HIT"),b.setHeader(u.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=o;if(av)l={revalidate:0,expire:void 0};else if(O&&aq&&!ap&&as)l={revalidate:0,expire:void 0};else if(!L.isDev)if(aa)l={revalidate:0,expire:void 0};else if(al){if(o.cacheControl)if("number"==typeof o.cacheControl.revalidate){if(o.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${o.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:o.cacheControl.revalidate,expire:(null==(j=o.cacheControl)?void 0:j.expire)??ae.expireTime}}else l={revalidate:z.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(o.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===w.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(u.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[z.NEXT_CACHE_TAGS_HEADER];O&&al&&c&&"string"==typeof c&&b.setHeader(z.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.fromStatic(d,u.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl}):(b.statusCode=204,(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.EMPTY,cacheControl:o.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...o,value:{...o.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&av)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(O&&al||delete a[z.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[z.NEXT_CACHE_TAGS_HEADER];if(O&&al&&s&&"string"==typeof s&&b.setHeader(z.NEXT_CACHE_TAGS_HEADER,s),!q.status||aq&&as||(b.statusCode=q.status),!O&&q.status&&G.RedirectStatusCode[q.status]&&aq&&(b.statusCode=200),p&&b.setHeader(u.NEXT_DID_POSTPONE_HEADER,"1"),aq&&!aa){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:q.html,cacheControl:aw?{revalidate:0,expire:void 0}:o.cacheControl})}return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.fromStatic(q.rscData,u.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl})}let t=q.html;if(!p||O||aq)return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:o.cacheControl});if(at)return t.push(new ReadableStream({start(a){a.enqueue(A.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}});let v=new TransformStream;return t.push(v.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==w.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(v.writable)}).catch(a=>{v.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}})};if(!aG)return await aF.withPropagatedContext(a.headers,()=>aF.trace(i.BaseServerSpan.handleRequest,{spanName:`${aE} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aE,"http.target":a.url}},p));await p(aG)}catch(b){throw b instanceof C.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:al,isOnDemandRevalidate:ai})},ad),b}}},93796:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>P});var d=c(21124),e=c(13973),f=c(38301);async function g(a,b){let c=await fetch(a,b);if(!c.ok)throw Error(await c.text());return c.json()}let h={width:900,height:620};var i=c(39693);let j={id:"default",name:"main",is_active:!0};function k(a,b,c){let{textRef:d,setChat:e,setLiveText:f,setAgentPhase:g,setLiveTool:h,setLiveSteps:i,setUsage:j,setSessionId:k,setSessionArtifactId:l,sessionIdRef:m,pendingApprovalsRef:n,bringToFront:o,refresh:p,onSession:q}=c;if("session"===a&&b.id)q?.(b.id),b.id!==m.current&&k(b.id);else if("cli_stream"===a&&(b.text||b.building))g(a=>"thinking"===a?"responding":a),e(a=>{let c=[...a];return c[c.length-1]={role:"agent",text:b.text||"",streaming:!0,building:!!b.building},c});else if("cli_thinking"===a&&"string"==typeof b.text)c.setLiveThinking?.(b.text),g(a=>"responding"===a||"tool"===a?a:"thinking");else if("cli_status"===a)c.setLiveStatus?.(b&&b.phase?b:null),b?.phase==="thinking"&&g(a=>"responding"===a||"tool"===a?a:"thinking");else if("text"===a&&b.delta)d.current+=b.delta,g(a=>"thinking"===a?"responding":a),f(a=>a+b.delta),e(a=>{let b=[...a];return b[b.length-1]={role:"agent",text:d.current},b});else if("tool_start"===a)h(b.name),g("tool"),i(a=>[...a,{id:`${b.name}-${a.length}`,name:b.name,input:b.input,status:"running"}]);else if("tool_result"===a){h(null),g("synthesis");let a=b.output?.status==="approval_required"&&"string"==typeof b.output?.approval_request_id;i(c=>{let d=[...c];for(let c=d.length-1;c>=0;c--)if(d[c].name===b.name&&"running"===d[c].status){d[c]={...d[c],status:a?"awaiting_approval":b.isError?"error":"done",durationMs:"number"==typeof b.durationMs?b.durationMs:d[c].durationMs,preview:b.output?.preview||d[c].preview||null,outLines:b.output?.lines??d[c].outLines,approval_id:a?b.output.approval_request_id:d[c].approval_id||null,approval_reason:a&&b.output.reason||null};break}return d}),("create_artifact"===b.name||"generate_ui"===b.name||"send_to_hermes"===b.name||"start_hermes_job"===b.name)&&b.output?.artifact_id&&o(b.output.artifact_id)}else if("artifacts"===a&&b.created?.length){for(let a of b.created)a.artifact_id&&o(a.artifact_id);p()}else if("agent_created"===a&&b.agent)p();else if("session_artifact"===a&&b.artifact_id)l(b.artifact_id);else if("artifact_updated"===a&&b.artifact_id)l(b.artifact_id),o(b.artifact_id),p();else if("usage"===a)j(b);else if("pending_approvals"===a&&Array.isArray(b?.approvals))for(let a of b.approvals)a?.approval_id&&a?.tool_name&&n.current.push({approval_id:a.approval_id,tool_name:a.tool_name});else"error"===a&&(d.current+=`
|
|
3
|
-
Error: ${b.message}`,e(a=>{let b=[...a];return b[b.length-1]={role:"agent",text:d.current},b}))}let l=[{key:"claude-code",label:"Local CLI"},{key:"codex",label:"Local CLI"},{key:"ollama",label:"Ollama"},{key:"anthropic",label:"Anthropic"}],m=["claude-code","codex","ollama","anthropic"],n=(0,f.createContext)(null);function o({children:a}){let b=function(){let[a,b]=(0,f.useState)(null),[c,d]=(0,f.useState)([{role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. No demo agents, cron jobs, reports, or old runtime data are loaded. Tell me what to create first."}]),[e,n]=(0,f.useState)({model:"",input:0,output:0,cache_read:0,cache_creation:0,context:0}),[o,p]=(0,f.useState)(null),[q,r]=(0,f.useState)(null),[s,t]=(0,f.useState)(!1),[u,v]=(0,f.useState)(!1),[w,x]=(0,f.useState)(()=>"personal"),y=(0,f.useCallback)(a=>{x(a)},[]),[z,A]=(0,f.useState)(!1),B=function(){let[a,b]=(0,f.useState)(!1),[c,d]=(0,f.useState)("instructions"),[e,h]=(0,f.useState)(""),[i,j]=(0,f.useState)([]),[k,l]=(0,f.useState)([]),[m,n]=(0,f.useState)({}),[o,p]=(0,f.useState)(!1),[q,r]=(0,f.useState)(!1),[s,t]=(0,f.useState)(!1),[u,v]=(0,f.useState)([]),[w,x]=(0,f.useState)(!1),[y,z]=(0,f.useState)({}),[A,B]=(0,f.useState)(!1),[C,D]=(0,f.useState)("balanced");async function E(){try{let a=await g("/api/secrets");v(a.secrets||[])}catch{}}async function F(){try{let a=await g("/api/tool-allowlists");z(a.allowlists||{})}catch{}}async function G(){b(!0),x(!0),B(!0);let[a,c,d,e]=await Promise.all([g("/api/config"),g("/api/config/env"),g("/api/secrets").catch(()=>({secrets:[]})),g("/api/tool-allowlists").catch(()=>({allowlists:{}}))]);h(a.instructions),j(a.tools||[]),l(c.env||[]),n({}),r(!1),D(a.designStyle??"balanced"),v(d.secrets||[]),x(!1),z(e.allowlists||{}),B(!1)}async function H(a,b){j(c=>c.map(c=>c.name===a.name?{...c,enabled:b}:c));try{let c=await fetch(`/api/tools/${encodeURIComponent(a.name)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:b})});if(!c.ok)throw Error(await c.text());let d=await c.json();j(b=>b.map(b=>b.name===a.name?d.tool:b))}catch{j(b=>b.map(b=>b.name===a.name?{...b,enabled:a.enabled}:b))}}async function I(){let a=Object.fromEntries(Object.entries(m).filter(([,a])=>String(a||"").trim()));if(Object.keys(a).length){p(!0),r(!1);try{let b=await fetch("/api/config/env",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({values:a})});if(!b.ok)throw Error(await b.text());let c=await b.json();l(c.env||[]),n({}),r(!0);let d=await g("/api/config");j(d.tools||[])}finally{p(!1)}}}async function J(){t(!0);try{await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({instructions:e})})}finally{t(!1)}}async function K(a){D(a),await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({designStyle:a})})}return{configOpen:a,setConfigOpen:b,configTab:c,setConfigTab:d,configInstructions:e,setConfigInstructions:h,configTools:i,setConfigTools:j,configEnv:k,setConfigEnv:l,configEnvValues:m,setConfigEnvValues:n,configEnvSaving:o,configEnvSaved:q,setConfigEnvSaved:r,configSaving:s,secrets:u,secretsLoading:w,allowlists:y,allowlistsLoading:A,designStyle:C,setDesignStyle:D,openConfig:G,saveInstructions:J,saveDesignStyle:K,saveEnvValues:I,toggleTool:H,handleAddSecret:async function({name:a,value:b,scope:c}){let d=await fetch("/api/secrets",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:a,value:b,scope:c})});if(!d.ok)throw Error(await d.text()||"Failed to save secret");await E()},handleRotateSecret:async function(a,b,c){let d=await fetch(`/api/secrets/${encodeURIComponent(a)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({value:b,scope:c})});if(!d.ok)throw Error(await d.text()||"Failed to rotate secret");await E()},handleDeleteSecret:async function(a,b){let c=`/api/secrets/${encodeURIComponent(a)}?scope=${encodeURIComponent(b||"global")}`,d=await fetch(c,{method:"DELETE"});if(!d.ok)throw Error(await d.text()||"Failed to delete secret");await E()},handleAddAllowlistEntry:async function({tool_name:a,scope_key:b,scope_value:c,label:d}){let e=await fetch("/api/tool-allowlists",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({tool_name:a,scope_key:b,scope_value:c,label:d})});if(!e.ok)throw Error(await e.text()||"Failed to add allowlist entry");await F()},handleRemoveAllowlistEntry:async function(a){let b=await fetch(`/api/tool-allowlists/${encodeURIComponent(a)}`,{method:"DELETE"});if(!b.ok)throw Error(await b.text()||"Failed to remove allowlist entry");await F()}}}(),C=function(){let[a,b]=(0,f.useState)("approval_required"),[c,d]=(0,f.useState)(!1),[e,g]=(0,f.useState)(!1);async function h(a){d(!0);try{let c=await fetch("/api/settings/trust-mode",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({mode:a,confirm:"auto"===a})});if(!c.ok)throw Error(await c.text());let d=await c.json();b(d.mode||a)}catch{}finally{d(!1)}}async function i(){await h("auto"),g(!1)}return{trustMode:a,setTrustMode:b,trustModeBusy:c,trustModePromptOpen:e,applyTrustMode:h,toggleTrustMode:function(){let b="auto"===a?"approval_required":"auto";if("auto"===b)return void g(!0);h(b)},confirmEnableTrustMode:i,cancelEnableTrustMode:function(){g(!1)}}}(),D=function(){let[a,b]=(0,f.useState)(""),[c,d]=(0,f.useState)([]),[e,g]=(0,f.useState)(!1),h=(0,f.useMemo)(()=>m.reduce((a,b)=>{let d=c.filter(a=>a.engine===b);return d.length&&a.push({engine:b,label:l.find(a=>a.key===b)?.label??b,items:d}),a},[]),[c]),i=(0,f.useCallback)(async a=>{b(a),g(!1),await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({model:a})})},[b,g]);return{selectedModel:a,setSelectedModel:b,models:c,setModels:d,modelOpen:e,setModelOpen:g,grouped:h,pickModel:i}}(),{selectedModel:E,setSelectedModel:F}=D,G=E?.startsWith("claude-")?2e5:32768,H=Math.min(100,Math.round((e.context||0)/G*100));async function I(a){b(await g(w?`/api/state?project_id=${encodeURIComponent(w)}`:"/api/state",a?{signal:a}:void 0))}let J=function({onArtifactMoved:a,refresh:b}={}){let[c,d]=(0,f.useState)([j]),[e,g]=(0,f.useState)(j.id),[h,i]=(0,f.useState)(!1),[k,l]=(0,f.useState)(!1),m=(0,f.useRef)(null),n=(0,f.useRef)(a),o=(0,f.useRef)(b);n.current=a,o.current=b;let p=(0,f.useCallback)(a=>{g(a),fetch(`/api/dashboard/spaces/${encodeURIComponent(a)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({is_active:!0})}).catch(()=>{})},[]),q=(0,f.useCallback)(a=>{a!==e&&c.some(b=>b.id===a)&&(m.current&&(clearTimeout(m.current),m.current=null),i(!0),m.current=setTimeout(()=>{p(a),m.current=setTimeout(()=>{i(!1),m.current=null},20)},Math.floor(110)))},[e,c,p]),r=(0,f.useCallback)(async()=>{let a=`Space ${c.length+1}`;try{let b=await fetch("/api/dashboard/spaces",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:a})}),c=await b.json().catch(()=>({}));if(!b.ok||!c?.space)return null;let e={id:String(c.space.id),name:c.space.name,is_active:!1};return d(a=>[...a,e]),m.current&&(clearTimeout(m.current),m.current=null),i(!0),m.current=setTimeout(()=>{p(e.id),m.current=setTimeout(()=>{i(!1),m.current=null},20)},Math.floor(110)),e.id}catch{return null}},[c.length,p]),s=(0,f.useCallback)((a,b)=>{let c=String(b||"").trim().slice(0,32);c&&(d(b=>b.map(b=>b.id===a?{...b,name:c}:b)),fetch(`/api/dashboard/spaces/${encodeURIComponent(a)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:c})}).catch(()=>{}))},[]),t=(0,f.useCallback)(a=>{let b=null;d(c=>{if(c.length<=1)return c;let d=c.filter(b=>b.id!==a);return d.length===c.length?c:(b=d[0]?.id||null,d)}),fetch(`/api/dashboard/spaces/${encodeURIComponent(a)}`,{method:"DELETE"}).then(()=>o.current?.()).catch(()=>{}),e===a&&b&&q(b)},[e,q]),u=(0,f.useCallback)((a,b)=>{c.some(a=>a.id===b)&&(n.current?.(a,b),fetch(`/api/dashboard/spaces/${encodeURIComponent(b)}/move`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({artifact_id:a})}).then(()=>o.current?.()).catch(()=>{}))},[c]),v=c.find(a=>a.id===e)||c[0];return{spaces:c,activeSpaceId:e,activeSpace:v,isSwitching:h,ready:k,setActiveSpaceId:q,createSpace:r,renameSpace:s,deleteSpace:t,moveArtifactToSpace:u}}({onArtifactMoved:(0,f.useCallback)((a,c)=>{b(b=>{if(!b||!Array.isArray(b.artifacts))return b;let d=!1,e=b.artifacts.map(b=>b.id!==a||b.space_id===c?b:(d=!0,{...b,space_id:c}));return d?{...b,artifacts:e}:b})},[]),refresh:I}),K=(0,f.useMemo)(()=>(a?.artifacts||[]).filter(a=>a.content).filter(a=>(a.space_id||"default")===J.activeSpaceId).map(a=>a.id),[a?.artifacts,J.activeSpaceId]),L=function({state:a,refresh:b,spaceArtifactIds:c,activeSpaceId:d,moveArtifactToSpace:e}){let[g,j]=(0,f.useState)(null),[k,l]=(0,f.useState)({}),[m,n]=(0,f.useState)(null),[o,p]=(0,f.useState)(null),[q,r]=(0,f.useState)(null),[s,t]=(0,f.useState)({}),[u,v]=(0,f.useState)({}),[w,x]=(0,f.useState)({}),[y,z]=(0,f.useState)(null),[A,B]=(0,f.useState)(null),[C,D]=(0,f.useState)(null),[E,F]=(0,f.useState)("auto"),[G,H]=(0,f.useState)(null),[I,J]=(0,f.useState)({width:0,height:0}),K=(0,f.useRef)(20);function L(a){K.current+=1;let b=K.current;j(a),x(c=>c[a]===b?c:{...c,[a]:b})}async function M(a){let c=await fetch(`/api/artifacts/${encodeURIComponent(a)}`,{method:"DELETE"});if(!c.ok&&404!==c.status)throw Error(await c.text());l(b=>{let c={...b};return delete c[a],c}),t(b=>{let c={...b};return delete c[a],c}),v(b=>{let c={...b};return delete c[a],c}),x(b=>{let c={...b};return delete c[a],c}),r(null),await b()}return(0,f.useRef)(!1),{selectedArtifactId:g,minimizedIds:k,cardZ:w,hoveredDockId:m,setHoveredDockId:n,fullscreenId:o,setFullscreenId:p,confirmDeleteId:q,setConfirmDeleteId:r,draggingId:y,resizingId:A,pointerDropSpaceId:C,layoutMode:E,setBoardEl:H,toggleMinimize:function(a){l(b=>({...b,[a]:!b[a]}))},getLayout:function(b,d){let e=u[b],f=s[b],g=function(){let b=c?new Set(c):null;return(a?.artifacts||[]).filter(a=>a&&a.content&&!k[a.id]&&(!b||b.has(a.id)))}().length,i=function(a,b=1,c=h){return function(a,b=h){let c=Math.max(1,a.length),d=Math.max(320,b.width||900),e=Math.max(360,b.height||620),f=d<640?10:16,g=d<640?10:14,{cols:i,rows:j}=d<640?{cols:1,rows:c}:c<=1?{cols:1,rows:1}:c<=3?{cols:c,rows:1}:c<=4?{cols:2,rows:2}:c<=6?{cols:3,rows:2}:c<=8?{cols:4,rows:2}:{cols:Math.ceil(c/2),rows:2},k=Math.max(280*i,d-2*f-g*(i-1)),l=Math.max(180*j,e-2*f-g*(j-1)),m=Math.floor(k/i),n=Math.floor(l/j),o=k-m*i,p=l-n*j;return a.map((a,b)=>{let c=b%i,d=Math.floor(b/i);return{x:f+c*(m+g),y:f+d*(n+g),width:Math.max(280,m+(c===i-1?o:0)),height:Math.max(180,n+(d===j-1?p:0))}})}(Array.from({length:b},(a,b)=>({id:String(b)})),c)[a]||{x:16,y:16,width:520,height:380}}(Math.max(0,Math.min(d,Math.max(0,g-1))),Math.max(1,g),I);return{x:e?.x??i.x,y:e?.y??i.y,width:f?.width??i.width,height:f?.height??i.height}},bringToFront:L,resetArtifactLayout:function(){K.current=20,F("auto"),x({})},deleteArtifactById:M,downloadArtifact:function(a){let b=(0,i.o0)(a.kind),c=new Blob([b?a.content||"":a.source_md||a.content||""],{type:b?"text/html":"text/markdown"}),d=URL.createObjectURL(c),e=document.createElement("a");e.href=d,e.download=(a.title||"artifact").toLowerCase().replace(/\s+/g,"-")+(b?".html":".md"),e.click(),URL.revokeObjectURL(d)},startDrag:function(a,b){if(a.target.closest("button, .winbar i, .winbar-dl, .artifact-kind-badge, .confirm-label"))return;a.preventDefault();let c=a.currentTarget.closest(".artifact-window-wrap"),f=c?.closest(".canvas-board");if(!c)return;a.currentTarget.setPointerCapture?.(a.pointerId),F("manual"),z(b),L(b);let g=f?.getBoundingClientRect(),h=c.getBoundingClientRect(),i=g?h.left-g.left+f.scrollLeft:0,j=g?h.top-g.top+f.scrollTop:0,k=g?a.clientX-g.left+f.scrollLeft-i:0,l=g?a.clientY-g.top+f.scrollTop-j:0,m=a.currentTarget;document.body.style.userSelect="none";let n=null,o=!1;function p(a){a.preventDefault();let c=f?.getBoundingClientRect(),e=c?Math.max(0,a.clientX-c.left+f.scrollLeft-k):i,g=c?Math.max(0,a.clientY-c.top+f.scrollTop-l):j;v(a=>({...a,[b]:{x:e,y:g}}));let h=function(a,b){let c=document.elementFromPoint(a,b);if(!c)return null;let e=c.closest(".space-chip");if(!e)return null;let f=e.getAttribute("data-space-id");return!f||d&&f===d?null:f}(a.clientX,a.clientY);h!==n&&(n=h,D(h)),h&&(o=!0)}function q(a){m.removeEventListener("pointermove",p),m.removeEventListener("pointerup",q),m.removeEventListener("pointercancel",q),m.releasePointerCapture?.(a.pointerId),document.body.style.userSelect="",z(null),D(null),o&&n&&"function"==typeof e&&(e(b,n),v(a=>{if(!(b in a))return a;let c={...a};return c[b]={x:i,y:j},c}))}m.addEventListener("pointermove",p),m.addEventListener("pointerup",q),m.addEventListener("pointercancel",q)},startResize:function(a,b,c){a.preventDefault(),a.stopPropagation();let d=a.currentTarget.closest(".artifact-window-wrap"),e=d.closest(".canvas-board");a.currentTarget.setPointerCapture?.(a.pointerId),F("manual"),L(b);let f=a.clientX,g=a.clientY,h=e?.getBoundingClientRect(),i=d.getBoundingClientRect(),j=i.width,k=i.height,l=h?i.left-h.left+e.scrollLeft:0,m=h?i.top-h.top+e.scrollTop:0,n=e?e.clientWidth:1/0,o=e?e.clientHeight:1/0,p={n:"ns-resize",s:"ns-resize",e:"ew-resize",w:"ew-resize",ne:"nesw-resize",sw:"nesw-resize",nw:"nwse-resize",se:"nwse-resize"}[c]||"nwse-resize",q=a.currentTarget;function r(a){a.preventDefault();let d=a.clientX-f,e=a.clientY-g,h=l,i=m,p=j,q=k;c.includes("w")&&(j-d<280&&(d=j-280),l+d<8&&(d=8-l),h=l+d,p=j-d),c.includes("e")&&(j+d<280&&(d=280-j),l+j+d>n-8&&(d=n-8-l-j),p=j+d),c.includes("n")&&(k-e<180&&(e=k-180),m+e<8&&(e=8-m),i=m+e,q=k-e),c.includes("s")&&(k+e<180&&(e=180-k),m+k+e>o-8&&(e=o-8-m-k),q=k+e),t(a=>({...a,[b]:{width:p,height:q}})),(c.includes("w")||c.includes("n"))&&v(a=>({...a,[b]:{x:h,y:i}}))}function s(a){q.removeEventListener("pointermove",r),q.removeEventListener("pointerup",s),q.removeEventListener("pointercancel",s),q.releasePointerCapture?.(a.pointerId),document.body.style.userSelect="",document.body.style.cursor="",B(null)}B(b),document.body.style.userSelect="none",document.body.style.cursor=p,q.addEventListener("pointermove",r),q.addEventListener("pointerup",s),q.addEventListener("pointercancel",s)}}}({state:a,refresh:I,spaceArtifactIds:K,activeSpaceId:J.activeSpaceId,moveArtifactToSpace:J.moveArtifactToSpace}),{setFullscreenId:M,fullscreenId:N}=L;(0,f.useRef)(null);let O=function({sessionId:a,setSessionId:b,setChat:c,setUsage:d,setSelectedModel:e,setSessionArtifactId:h}){let[i,j]=(0,f.useState)([]),[k,l]=(0,f.useState)(!1);async function m(){try{let a=await g("/api/chat/sessions");j(a.sessions||[])}catch{}}async function n(a){if(!a)return null;try{let b=(await g(`/api/chat/sessions/${encodeURIComponent(a)}`)).session;if(!b)return null;return c(function(a){let b=(a?.messages||[]).filter(a=>("user"===a.role||"assistant"===a.role)&&(a.content||Array.isArray(a.tool_calls)&&a.tool_calls.length)).map(a=>{let b={role:"assistant"===a.role?"agent":"user",text:a.content||""};return"assistant"===a.role&&Array.isArray(a.tool_calls)&&a.tool_calls.length&&(b.tools=a.tool_calls.filter(a=>a&&a.name).map(a=>({name:a.name,status:"done"}))),b});return b.length||b.push({role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. Tell me what to create first."}),b}(b)),d(a=>({...a,model:b.model||a.model,input:b.total_input_tokens||0,output:b.total_output_tokens||0,cache_read:b.total_cache_read_tokens||0,cache_creation:b.total_cache_creation_tokens||0,context:b.last_context_tokens||0})),b}catch{return null}}async function o(c){if(l(!1),c===a)return;h(null);let d=await n(c);d&&(b(d.id),d.id,d.model&&e(d.model))}function p(){l(!1),b(null),h(null),c([{role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. Tell me what to create first."}]),d(a=>({...a,input:0,output:0,cache_read:0,cache_creation:0,context:0}))}async function q(b){try{await fetch(`/api/chat/sessions/${encodeURIComponent(b)}`,{method:"DELETE"})}catch{}if(b===a)p();else;await m()}return{sessions:i,setSessions:j,sessionsOpen:k,setSessionsOpen:l,refreshSessions:m,openSession:o,reloadSession:n,newSession:p,deleteSession:q}}({sessionId:o,setSessionId:p,setChat:d,setUsage:n,setSelectedModel:F,setSessionArtifactId:r}),P=function(a){let{bgAgentList:b,hasBgActivity:c}=function({refresh:a,runs:b}){let[c,d]=(0,f.useState)({});(0,f.useRef)(a);let e=Object.values(c),g=e.some(a=>"running"===a.status);return{bgAgents:c,bgAgentList:e,hasBgActivity:g}}({refresh:a.refresh,runs:a.runs}),d=function({chat:a,setChat:b,selectedModel:c,sessionId:d,setSessionId:e,sessionArtifactId:g,setSessionArtifactId:h,setUsage:i,refresh:j,refreshSessions:l,reloadSession:m,bringToFront:n,projectId:o}){let[p,q]=(0,f.useState)(!1),[r,s]=(0,f.useState)(!1),t=(0,f.useRef)(null),[u,v]=(0,f.useState)(""),[w,x]=(0,f.useState)(null),[y,z]=(0,f.useState)(!1),[A,B]=(0,f.useState)([]),[C,D]=(0,f.useState)(null),[E,F]=(0,f.useState)("idle"),[G,H]=(0,f.useState)(""),[I,J]=(0,f.useState)(null),K=(0,f.useRef)([]),L=(0,f.useRef)(null),M=(0,f.useRef)(!1),N=(0,f.useRef)(null),O=(0,f.useRef)(null),P=(0,f.useRef)(null);async function Q(a,c,d){if(a){try{let d=await fetch(`/api/approvals/${a}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({decision:c})});if(!d.ok){let a=await d.text().catch(()=>"");b(b=>[...b,{role:"agent",text:`Approval failed: ${a||d.status}`}]);return}}catch(a){b(b=>[...b,{role:"agent",text:`Approval error: ${a.message}`}]);return}B(b=>b.map(b=>b.approval_id===a?{...b,status:"approved"===c?"approved":"denied"}:b)),"approved"===c&&d?(K.current.push({approval_id:a,tool_name:d}),O.current?.("Approved — please continue.")):"denied"===c&&O.current?.("Denied — try a different approach.")}}O.current=async function f(f,m){if(p)return;if(t.current){try{t.current.close()}catch{}t.current=null,s(!1)}let r=(f??"").trim(),u=Array.isArray(m)?m:[];if(!r&&!u.length)return;b(a=>[...a,{role:"user",text:r,attachments:u}]),B([]),H(""),J(null),F("thinking"),D(Date.now()),q(!0);let w=a.filter(a=>"user"===a.role||"agent"===a.role).map(a=>({role:"agent"===a.role?"assistant":"user",content:a.text}));for(;w.length&&"assistant"===w[0].role;)w.shift();w.push({role:"user",content:r,attachments:u});let y=new AbortController;L.current=y,M.current=!1;try{let a=K.current.slice();K.current=[];let f=await fetch("/api/orchestrator/stream",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({messages:w,model:c,session_id:d,session_artifact_id:g,project_id:o||"personal",pending_approvals:a}),signal:y.signal});if(!f.ok||!f.body){let a=await f.text();b(b=>[...b,{role:"agent",text:`Stream error: ${a}`}]);return}let m=f.body.getReader(),p=new TextDecoder,q="",r={current:""},s={current:d},t={textRef:r,sessionIdRef:s,setChat:b,setLiveText:v,setAgentPhase:F,setLiveTool:x,setLiveSteps:B,setUsage:i,setSessionId:e,setSessionArtifactId:h,setLiveThinking:H,setLiveStatus:J,pendingApprovalsRef:K,bringToFront:n,refresh:j,onSession:a=>{s.current=a}};for(b(a=>[...a,{role:"agent",text:""}]);;){let{done:a,value:b}=await m.read();if(a)break;let c=(q+=p.decode(b,{stream:!0})).split("\n");q=c.pop();let d="";for(let a of c)if(a.startsWith("event:"))d=a.slice(6).trim();else if(a.startsWith("data:")){let b=a.slice(5).trim();try{k(d,JSON.parse(b),t)}catch{}d=""}}r.current||b(a=>{let b=[...a];return b[b.length-1]={role:"agent",text:"Done."},b}),await j(),await l()}catch(a){M.current||a?.name==="AbortError"?b(a=>{let b=[...a],c=b[b.length-1];if(c&&"agent"===c.role){let a=(c.text||"").trim();b[b.length-1]={role:"agent",text:a?`${a}
|
|
2
|
+
see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:w.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},n=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===L.isDev,l=c||b.writableEnded;if(ai&&ac&&!f&&!O)return(null==ad?void 0:ad.render404)?await ad.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(aj&&(j=(0,x.parseFallbackField)(aj.fallback)),j===x.FallbackMode.PRERENDER&&(0,v.isBot)(am)&&(!as||ao)&&(j=x.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ai=!0),ai&&(j!==x.FallbackMode.NOT_FOUND||f)&&(j=x.FallbackMode.BLOCKING_STATIC_RENDER),!O&&j!==x.FallbackMode.BLOCKING_STATIC_RENDER&&aC&&!l&&!aa&&U&&(k||!ak)){let b;if((k||aj)&&j===x.FallbackMode.NOT_FOUND)throw new C.NoFallbackError;if(as&&!aq){let c="string"==typeof(null==aj?void 0:aj.fallback)?aj.fallback:k?ah:null;if(b=await L.handleResponse({cacheKey:c,req:a,nextConfig:ae,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:_,isRoutePPREnabled:as,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||au?(0,o.u)(ah):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let n=ai||g||!av?void 0:av;if(at&&void 0!==n)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:w.CachedRouteKind.PAGES,html:y.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=U&&as&&((0,h.getRequestMeta)(a,"renderFallbackShell")||au)?(0,o.u)(ag):null;return m({span:i,postponed:n,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,o=await L.handleResponse({cacheKey:aB,responseGenerator:a=>n({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ai,isRoutePPREnabled:as,req:a,nextConfig:ae,prerenderManifest:_,waitUntil:d.waitUntil});if(aa&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),L.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!o){if(aB)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=o.value)?void 0:f.kind)!==w.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=o.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof o.value.postponed;al&&!aw&&(!p||ap)&&(O||b.setHeader("x-nextjs-cache",ai?"REVALIDATED":o.isMiss?"MISS":o.isStale?"STALE":"HIT"),b.setHeader(u.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=o;if(av)l={revalidate:0,expire:void 0};else if(O&&aq&&!ap&&as)l={revalidate:0,expire:void 0};else if(!L.isDev)if(aa)l={revalidate:0,expire:void 0};else if(al){if(o.cacheControl)if("number"==typeof o.cacheControl.revalidate){if(o.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${o.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:o.cacheControl.revalidate,expire:(null==(j=o.cacheControl)?void 0:j.expire)??ae.expireTime}}else l={revalidate:z.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(o.cacheControl=l,"string"==typeof ax&&(null==q?void 0:q.kind)===w.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(u.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[z.NEXT_CACHE_TAGS_HEADER];O&&al&&c&&"string"==typeof c&&b.setHeader(z.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(ax);return void 0!==d?(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.fromStatic(d,u.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl}):(b.statusCode=204,(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.EMPTY,cacheControl:o.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...o,value:{...o.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&av)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(O&&al||delete a[z.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[z.NEXT_CACHE_TAGS_HEADER];if(O&&al&&s&&"string"==typeof s&&b.setHeader(z.NEXT_CACHE_TAGS_HEADER,s),!q.status||aq&&as||(b.statusCode=q.status),!O&&q.status&&G.RedirectStatusCode[q.status]&&aq&&(b.statusCode=200),p&&b.setHeader(u.NEXT_DID_POSTPONE_HEADER,"1"),aq&&!aa){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:q.html,cacheControl:aw?{revalidate:0,expire:void 0}:o.cacheControl})}return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:y.default.fromStatic(q.rscData,u.RSC_CONTENT_TYPE_HEADER),cacheControl:o.cacheControl})}let t=q.html;if(!p||O||aq)return(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:o.cacheControl});if(at)return t.push(new ReadableStream({start(a){a.enqueue(A.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}});let v=new TransformStream;return t.push(v.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==w.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(v.writable)}).catch(a=>{v.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,B.sendRenderResult)({req:a,res:b,generateEtags:ae.generateEtags,poweredByHeader:ae.poweredByHeader,result:t,cacheControl:{revalidate:0,expire:void 0}})};if(!aG)return await aF.withPropagatedContext(a.headers,()=>aF.trace(i.BaseServerSpan.handleRequest,{spanName:`${aE} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aE,"http.target":a.url}},p));await p(aG)}catch(b){throw b instanceof C.NoFallbackError||await L.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:al,isOnDemandRevalidate:ai})},ad),b}}},93796:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>P});var d=c(21124),e=c(13973),f=c(38301);async function g(a,b){let c=await fetch(a,b);if(!c.ok)throw Error(await c.text());return c.json()}let h={width:900,height:620};var i=c(39693);let j={id:"default",name:"main",is_active:!0};function k(a,b,c){let{textRef:d,setChat:e,setLiveText:f,setAgentPhase:g,setLiveTool:h,setLiveSteps:i,setUsage:j,setSessionId:k,setSessionArtifactId:l,sessionIdRef:m,pendingApprovalsRef:n,bringToFront:o,refresh:p,onSession:q}=c;if("session"===a&&b.id)q?.(b.id),b.id!==m.current&&k(b.id);else if("cli_stream"===a&&(b.text||b.building))g(a=>"thinking"===a?"responding":a),e(a=>{let c=[...a];return c[c.length-1]={role:"agent",text:b.text||"",streaming:!0,building:!!b.building},c});else if("cli_thinking"===a&&"string"==typeof b.text)c.setLiveThinking?.(b.text),g(a=>"responding"===a||"tool"===a?a:"thinking");else if("cli_status"===a)c.setLiveStatus?.(b&&b.phase?b:null),b?.phase==="thinking"&&g(a=>"responding"===a||"tool"===a?a:"thinking");else if("text"===a&&b.delta)d.current+=b.delta,g(a=>"thinking"===a?"responding":a),f(a=>a+b.delta),e(a=>{let b=[...a];return b[b.length-1]={role:"agent",text:d.current},b});else if("tool_start"===a)h(b.name),g("tool"),i(a=>[...a,{id:`${b.name}-${a.length}`,name:b.name,input:b.input,status:"running"}]);else if("tool_result"===a){h(null),g("synthesis");let a=b.output?.status==="approval_required"&&"string"==typeof b.output?.approval_request_id;i(c=>{let d=[...c];for(let c=d.length-1;c>=0;c--)if(d[c].name===b.name&&"running"===d[c].status){d[c]={...d[c],status:a?"awaiting_approval":b.isError?"error":"done",durationMs:"number"==typeof b.durationMs?b.durationMs:d[c].durationMs,preview:b.output?.preview||d[c].preview||null,outLines:b.output?.lines??d[c].outLines,approval_id:a?b.output.approval_request_id:d[c].approval_id||null,approval_reason:a&&b.output.reason||null};break}return d}),("create_artifact"===b.name||"generate_ui"===b.name||"send_to_hermes"===b.name||"start_hermes_job"===b.name)&&b.output?.artifact_id&&o(b.output.artifact_id)}else if("artifacts"===a&&b.created?.length){for(let a of b.created)a.artifact_id&&o(a.artifact_id);p()}else if("agent_created"===a&&b.agent)p();else if("session_artifact"===a&&b.artifact_id)l(b.artifact_id);else if("artifact_updated"===a&&b.artifact_id)l(b.artifact_id),o(b.artifact_id),p();else if("usage"===a)j(b);else if("agent_approval"===a&&b?.approval_id)c.setAgentApprovals?.(a=>a.some(a=>a.approval_id===b.approval_id)?a:[...a,{approval_id:b.approval_id,tool_name:b.tool_name||null,agent_id:b.agent_id||null,agent_name:b.agent_name||"Agent",summary:b.summary||"",status:"pending"}]);else if("pending_approvals"===a&&Array.isArray(b?.approvals))for(let a of b.approvals)a?.approval_id&&a?.tool_name&&n.current.push({approval_id:a.approval_id,tool_name:a.tool_name});else"error"===a&&(d.current+=`
|
|
3
|
+
Error: ${b.message}`,e(a=>{let b=[...a];return b[b.length-1]={role:"agent",text:d.current},b}))}let l=[{key:"claude-code",label:"Local CLI"},{key:"codex",label:"Local CLI"},{key:"ollama",label:"Ollama"},{key:"anthropic",label:"Anthropic"}],m=["claude-code","codex","ollama","anthropic"],n=(0,f.createContext)(null);function o({children:a}){let b=function(){let[a,b]=(0,f.useState)(null),[c,d]=(0,f.useState)([{role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. No demo agents, cron jobs, reports, or old runtime data are loaded. Tell me what to create first."}]),[e,n]=(0,f.useState)({model:"",input:0,output:0,cache_read:0,cache_creation:0,context:0}),[o,p]=(0,f.useState)(null),[q,r]=(0,f.useState)(null),[s,t]=(0,f.useState)(!1),[u,v]=(0,f.useState)(!1),[w,x]=(0,f.useState)(()=>"personal"),y=(0,f.useCallback)(a=>{x(a)},[]),[z,A]=(0,f.useState)(!1),B=function(){let[a,b]=(0,f.useState)(!1),[c,d]=(0,f.useState)("instructions"),[e,h]=(0,f.useState)(""),[i,j]=(0,f.useState)([]),[k,l]=(0,f.useState)([]),[m,n]=(0,f.useState)({}),[o,p]=(0,f.useState)(!1),[q,r]=(0,f.useState)(!1),[s,t]=(0,f.useState)(!1),[u,v]=(0,f.useState)([]),[w,x]=(0,f.useState)(!1),[y,z]=(0,f.useState)({}),[A,B]=(0,f.useState)(!1),[C,D]=(0,f.useState)("balanced");async function E(){try{let a=await g("/api/secrets");v(a.secrets||[])}catch{}}async function F(){try{let a=await g("/api/tool-allowlists");z(a.allowlists||{})}catch{}}async function G(){b(!0),x(!0),B(!0);let[a,c,d,e]=await Promise.all([g("/api/config"),g("/api/config/env"),g("/api/secrets").catch(()=>({secrets:[]})),g("/api/tool-allowlists").catch(()=>({allowlists:{}}))]);h(a.instructions),j(a.tools||[]),l(c.env||[]),n({}),r(!1),D(a.designStyle??"balanced"),v(d.secrets||[]),x(!1),z(e.allowlists||{}),B(!1)}async function H(a,b){j(c=>c.map(c=>c.name===a.name?{...c,enabled:b}:c));try{let c=await fetch(`/api/tools/${encodeURIComponent(a.name)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({enabled:b})});if(!c.ok)throw Error(await c.text());let d=await c.json();j(b=>b.map(b=>b.name===a.name?d.tool:b))}catch{j(b=>b.map(b=>b.name===a.name?{...b,enabled:a.enabled}:b))}}async function I(){let a=Object.fromEntries(Object.entries(m).filter(([,a])=>String(a||"").trim()));if(Object.keys(a).length){p(!0),r(!1);try{let b=await fetch("/api/config/env",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({values:a})});if(!b.ok)throw Error(await b.text());let c=await b.json();l(c.env||[]),n({}),r(!0);let d=await g("/api/config");j(d.tools||[])}finally{p(!1)}}}async function J(){t(!0);try{await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({instructions:e})})}finally{t(!1)}}async function K(a){D(a),await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({designStyle:a})})}return{configOpen:a,setConfigOpen:b,configTab:c,setConfigTab:d,configInstructions:e,setConfigInstructions:h,configTools:i,setConfigTools:j,configEnv:k,setConfigEnv:l,configEnvValues:m,setConfigEnvValues:n,configEnvSaving:o,configEnvSaved:q,setConfigEnvSaved:r,configSaving:s,secrets:u,secretsLoading:w,allowlists:y,allowlistsLoading:A,designStyle:C,setDesignStyle:D,openConfig:G,saveInstructions:J,saveDesignStyle:K,saveEnvValues:I,toggleTool:H,handleAddSecret:async function({name:a,value:b,scope:c}){let d=await fetch("/api/secrets",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:a,value:b,scope:c})});if(!d.ok)throw Error(await d.text()||"Failed to save secret");await E()},handleRotateSecret:async function(a,b,c){let d=await fetch(`/api/secrets/${encodeURIComponent(a)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({value:b,scope:c})});if(!d.ok)throw Error(await d.text()||"Failed to rotate secret");await E()},handleDeleteSecret:async function(a,b){let c=`/api/secrets/${encodeURIComponent(a)}?scope=${encodeURIComponent(b||"global")}`,d=await fetch(c,{method:"DELETE"});if(!d.ok)throw Error(await d.text()||"Failed to delete secret");await E()},handleAddAllowlistEntry:async function({tool_name:a,scope_key:b,scope_value:c,label:d}){let e=await fetch("/api/tool-allowlists",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({tool_name:a,scope_key:b,scope_value:c,label:d})});if(!e.ok)throw Error(await e.text()||"Failed to add allowlist entry");await F()},handleRemoveAllowlistEntry:async function(a){let b=await fetch(`/api/tool-allowlists/${encodeURIComponent(a)}`,{method:"DELETE"});if(!b.ok)throw Error(await b.text()||"Failed to remove allowlist entry");await F()}}}(),C=function(){let[a,b]=(0,f.useState)("approval_required"),[c,d]=(0,f.useState)(!1),[e,g]=(0,f.useState)(!1);async function h(a){d(!0);try{let c=await fetch("/api/settings/trust-mode",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({mode:a,confirm:"auto"===a})});if(!c.ok)throw Error(await c.text());let d=await c.json();b(d.mode||a)}catch{}finally{d(!1)}}async function i(){await h("auto"),g(!1)}return{trustMode:a,setTrustMode:b,trustModeBusy:c,trustModePromptOpen:e,applyTrustMode:h,toggleTrustMode:function(){let b="auto"===a?"approval_required":"auto";if("auto"===b)return void g(!0);h(b)},confirmEnableTrustMode:i,cancelEnableTrustMode:function(){g(!1)}}}(),D=function(){let[a,b]=(0,f.useState)(""),[c,d]=(0,f.useState)([]),[e,g]=(0,f.useState)(!1),h=(0,f.useMemo)(()=>m.reduce((a,b)=>{let d=c.filter(a=>a.engine===b);return d.length&&a.push({engine:b,label:l.find(a=>a.key===b)?.label??b,items:d}),a},[]),[c]),i=(0,f.useCallback)(async a=>{b(a),g(!1),await fetch("/api/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({model:a})})},[b,g]);return{selectedModel:a,setSelectedModel:b,models:c,setModels:d,modelOpen:e,setModelOpen:g,grouped:h,pickModel:i}}(),{selectedModel:E,setSelectedModel:F}=D,G=E?.startsWith("claude-")?2e5:32768,H=Math.min(100,Math.round((e.context||0)/G*100));async function I(a){b(await g(w?`/api/state?project_id=${encodeURIComponent(w)}`:"/api/state",a?{signal:a}:void 0))}let J=function({onArtifactMoved:a,refresh:b}={}){let[c,d]=(0,f.useState)([j]),[e,g]=(0,f.useState)(j.id),[h,i]=(0,f.useState)(!1),[k,l]=(0,f.useState)(!1),m=(0,f.useRef)(null),n=(0,f.useRef)(a),o=(0,f.useRef)(b);n.current=a,o.current=b;let p=(0,f.useCallback)(a=>{g(a),fetch(`/api/dashboard/spaces/${encodeURIComponent(a)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({is_active:!0})}).catch(()=>{})},[]),q=(0,f.useCallback)(a=>{a!==e&&c.some(b=>b.id===a)&&(m.current&&(clearTimeout(m.current),m.current=null),i(!0),m.current=setTimeout(()=>{p(a),m.current=setTimeout(()=>{i(!1),m.current=null},20)},Math.floor(110)))},[e,c,p]),r=(0,f.useCallback)(async()=>{let a=`Space ${c.length+1}`;try{let b=await fetch("/api/dashboard/spaces",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:a})}),c=await b.json().catch(()=>({}));if(!b.ok||!c?.space)return null;let e={id:String(c.space.id),name:c.space.name,is_active:!1};return d(a=>[...a,e]),m.current&&(clearTimeout(m.current),m.current=null),i(!0),m.current=setTimeout(()=>{p(e.id),m.current=setTimeout(()=>{i(!1),m.current=null},20)},Math.floor(110)),e.id}catch{return null}},[c.length,p]),s=(0,f.useCallback)((a,b)=>{let c=String(b||"").trim().slice(0,32);c&&(d(b=>b.map(b=>b.id===a?{...b,name:c}:b)),fetch(`/api/dashboard/spaces/${encodeURIComponent(a)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:c})}).catch(()=>{}))},[]),t=(0,f.useCallback)(a=>{let b=null;d(c=>{if(c.length<=1)return c;let d=c.filter(b=>b.id!==a);return d.length===c.length?c:(b=d[0]?.id||null,d)}),fetch(`/api/dashboard/spaces/${encodeURIComponent(a)}`,{method:"DELETE"}).then(()=>o.current?.()).catch(()=>{}),e===a&&b&&q(b)},[e,q]),u=(0,f.useCallback)((a,b)=>{c.some(a=>a.id===b)&&(n.current?.(a,b),fetch(`/api/dashboard/spaces/${encodeURIComponent(b)}/move`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({artifact_id:a})}).then(()=>o.current?.()).catch(()=>{}))},[c]),v=c.find(a=>a.id===e)||c[0];return{spaces:c,activeSpaceId:e,activeSpace:v,isSwitching:h,ready:k,setActiveSpaceId:q,createSpace:r,renameSpace:s,deleteSpace:t,moveArtifactToSpace:u}}({onArtifactMoved:(0,f.useCallback)((a,c)=>{b(b=>{if(!b||!Array.isArray(b.artifacts))return b;let d=!1,e=b.artifacts.map(b=>b.id!==a||b.space_id===c?b:(d=!0,{...b,space_id:c}));return d?{...b,artifacts:e}:b})},[]),refresh:I}),K=(0,f.useMemo)(()=>(a?.artifacts||[]).filter(a=>a.content).filter(a=>(a.space_id||"default")===J.activeSpaceId).map(a=>a.id),[a?.artifacts,J.activeSpaceId]),L=function({state:a,refresh:b,spaceArtifactIds:c,activeSpaceId:d,moveArtifactToSpace:e}){let[g,j]=(0,f.useState)(null),[k,l]=(0,f.useState)({}),[m,n]=(0,f.useState)(null),[o,p]=(0,f.useState)(null),[q,r]=(0,f.useState)(null),[s,t]=(0,f.useState)({}),[u,v]=(0,f.useState)({}),[w,x]=(0,f.useState)({}),[y,z]=(0,f.useState)(null),[A,B]=(0,f.useState)(null),[C,D]=(0,f.useState)(null),[E,F]=(0,f.useState)("auto"),[G,H]=(0,f.useState)(null),[I,J]=(0,f.useState)({width:0,height:0}),K=(0,f.useRef)(20);function L(a){K.current+=1;let b=K.current;j(a),x(c=>c[a]===b?c:{...c,[a]:b})}async function M(a){let c=await fetch(`/api/artifacts/${encodeURIComponent(a)}`,{method:"DELETE"});if(!c.ok&&404!==c.status)throw Error(await c.text());l(b=>{let c={...b};return delete c[a],c}),t(b=>{let c={...b};return delete c[a],c}),v(b=>{let c={...b};return delete c[a],c}),x(b=>{let c={...b};return delete c[a],c}),r(null),await b()}return(0,f.useRef)(!1),{selectedArtifactId:g,minimizedIds:k,cardZ:w,hoveredDockId:m,setHoveredDockId:n,fullscreenId:o,setFullscreenId:p,confirmDeleteId:q,setConfirmDeleteId:r,draggingId:y,resizingId:A,pointerDropSpaceId:C,layoutMode:E,setBoardEl:H,toggleMinimize:function(a){l(b=>({...b,[a]:!b[a]}))},getLayout:function(b,d){let e=u[b],f=s[b],g=function(){let b=c?new Set(c):null;return(a?.artifacts||[]).filter(a=>a&&a.content&&!k[a.id]&&(!b||b.has(a.id)))}().length,i=function(a,b=1,c=h){return function(a,b=h){let c=Math.max(1,a.length),d=Math.max(320,b.width||900),e=Math.max(360,b.height||620),f=d<640?10:16,g=d<640?10:14,{cols:i,rows:j}=d<640?{cols:1,rows:c}:c<=1?{cols:1,rows:1}:c<=3?{cols:c,rows:1}:c<=4?{cols:2,rows:2}:c<=6?{cols:3,rows:2}:c<=8?{cols:4,rows:2}:{cols:Math.ceil(c/2),rows:2},k=Math.max(280*i,d-2*f-g*(i-1)),l=Math.max(180*j,e-2*f-g*(j-1)),m=Math.floor(k/i),n=Math.floor(l/j),o=k-m*i,p=l-n*j;return a.map((a,b)=>{let c=b%i,d=Math.floor(b/i);return{x:f+c*(m+g),y:f+d*(n+g),width:Math.max(280,m+(c===i-1?o:0)),height:Math.max(180,n+(d===j-1?p:0))}})}(Array.from({length:b},(a,b)=>({id:String(b)})),c)[a]||{x:16,y:16,width:520,height:380}}(Math.max(0,Math.min(d,Math.max(0,g-1))),Math.max(1,g),I);return{x:e?.x??i.x,y:e?.y??i.y,width:f?.width??i.width,height:f?.height??i.height}},bringToFront:L,resetArtifactLayout:function(){K.current=20,F("auto"),x({})},deleteArtifactById:M,downloadArtifact:function(a){let b=(0,i.o0)(a.kind),c=new Blob([b?a.content||"":a.source_md||a.content||""],{type:b?"text/html":"text/markdown"}),d=URL.createObjectURL(c),e=document.createElement("a");e.href=d,e.download=(a.title||"artifact").toLowerCase().replace(/\s+/g,"-")+(b?".html":".md"),e.click(),URL.revokeObjectURL(d)},startDrag:function(a,b){if(a.target.closest("button, .winbar i, .winbar-dl, .artifact-kind-badge, .confirm-label"))return;a.preventDefault();let c=a.currentTarget.closest(".artifact-window-wrap"),f=c?.closest(".canvas-board");if(!c)return;a.currentTarget.setPointerCapture?.(a.pointerId),F("manual"),z(b),L(b);let g=f?.getBoundingClientRect(),h=c.getBoundingClientRect(),i=g?h.left-g.left+f.scrollLeft:0,j=g?h.top-g.top+f.scrollTop:0,k=g?a.clientX-g.left+f.scrollLeft-i:0,l=g?a.clientY-g.top+f.scrollTop-j:0,m=a.currentTarget;document.body.style.userSelect="none";let n=null,o=!1;function p(a){a.preventDefault();let c=f?.getBoundingClientRect(),e=c?Math.max(0,a.clientX-c.left+f.scrollLeft-k):i,g=c?Math.max(0,a.clientY-c.top+f.scrollTop-l):j;v(a=>({...a,[b]:{x:e,y:g}}));let h=function(a,b){let c=document.elementFromPoint(a,b);if(!c)return null;let e=c.closest(".space-chip");if(!e)return null;let f=e.getAttribute("data-space-id");return!f||d&&f===d?null:f}(a.clientX,a.clientY);h!==n&&(n=h,D(h)),h&&(o=!0)}function q(a){m.removeEventListener("pointermove",p),m.removeEventListener("pointerup",q),m.removeEventListener("pointercancel",q),m.releasePointerCapture?.(a.pointerId),document.body.style.userSelect="",z(null),D(null),o&&n&&"function"==typeof e&&(e(b,n),v(a=>{if(!(b in a))return a;let c={...a};return c[b]={x:i,y:j},c}))}m.addEventListener("pointermove",p),m.addEventListener("pointerup",q),m.addEventListener("pointercancel",q)},startResize:function(a,b,c){a.preventDefault(),a.stopPropagation();let d=a.currentTarget.closest(".artifact-window-wrap"),e=d.closest(".canvas-board");a.currentTarget.setPointerCapture?.(a.pointerId),F("manual"),L(b);let f=a.clientX,g=a.clientY,h=e?.getBoundingClientRect(),i=d.getBoundingClientRect(),j=i.width,k=i.height,l=h?i.left-h.left+e.scrollLeft:0,m=h?i.top-h.top+e.scrollTop:0,n=e?e.clientWidth:1/0,o=e?e.clientHeight:1/0,p={n:"ns-resize",s:"ns-resize",e:"ew-resize",w:"ew-resize",ne:"nesw-resize",sw:"nesw-resize",nw:"nwse-resize",se:"nwse-resize"}[c]||"nwse-resize",q=a.currentTarget;function r(a){a.preventDefault();let d=a.clientX-f,e=a.clientY-g,h=l,i=m,p=j,q=k;c.includes("w")&&(j-d<280&&(d=j-280),l+d<8&&(d=8-l),h=l+d,p=j-d),c.includes("e")&&(j+d<280&&(d=280-j),l+j+d>n-8&&(d=n-8-l-j),p=j+d),c.includes("n")&&(k-e<180&&(e=k-180),m+e<8&&(e=8-m),i=m+e,q=k-e),c.includes("s")&&(k+e<180&&(e=180-k),m+k+e>o-8&&(e=o-8-m-k),q=k+e),t(a=>({...a,[b]:{width:p,height:q}})),(c.includes("w")||c.includes("n"))&&v(a=>({...a,[b]:{x:h,y:i}}))}function s(a){q.removeEventListener("pointermove",r),q.removeEventListener("pointerup",s),q.removeEventListener("pointercancel",s),q.releasePointerCapture?.(a.pointerId),document.body.style.userSelect="",document.body.style.cursor="",B(null)}B(b),document.body.style.userSelect="none",document.body.style.cursor=p,q.addEventListener("pointermove",r),q.addEventListener("pointerup",s),q.addEventListener("pointercancel",s)}}}({state:a,refresh:I,spaceArtifactIds:K,activeSpaceId:J.activeSpaceId,moveArtifactToSpace:J.moveArtifactToSpace}),{setFullscreenId:M,fullscreenId:N}=L;(0,f.useRef)(null);let O=function({sessionId:a,setSessionId:b,setChat:c,setUsage:d,setSelectedModel:e,setSessionArtifactId:h}){let[i,j]=(0,f.useState)([]),[k,l]=(0,f.useState)(!1);async function m(){try{let a=await g("/api/chat/sessions");j(a.sessions||[])}catch{}}async function n(a){if(!a)return null;try{let b=(await g(`/api/chat/sessions/${encodeURIComponent(a)}`)).session;if(!b)return null;return c(function(a){let b=(a?.messages||[]).filter(a=>("user"===a.role||"assistant"===a.role)&&(a.content||Array.isArray(a.tool_calls)&&a.tool_calls.length)).map(a=>{let b={role:"assistant"===a.role?"agent":"user",text:a.content||""};return"assistant"===a.role&&Array.isArray(a.tool_calls)&&a.tool_calls.length&&(b.tools=a.tool_calls.filter(a=>a&&a.name).map(a=>({name:a.name,status:"done"}))),b});return b.length||b.push({role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. Tell me what to create first."}),b}(b)),d(a=>({...a,model:b.model||a.model,input:b.total_input_tokens||0,output:b.total_output_tokens||0,cache_read:b.total_cache_read_tokens||0,cache_creation:b.total_cache_creation_tokens||0,context:b.last_context_tokens||0})),b}catch{return null}}async function o(c){if(l(!1),c===a)return;h(null);let d=await n(c);d&&(b(d.id),d.id,d.model&&e(d.model))}function p(){l(!1),b(null),h(null),c([{role:"agent",text:"Fresh workspace ready. I am the madarX Main Agent. Tell me what to create first."}]),d(a=>({...a,input:0,output:0,cache_read:0,cache_creation:0,context:0}))}async function q(b){try{await fetch(`/api/chat/sessions/${encodeURIComponent(b)}`,{method:"DELETE"})}catch{}if(b===a)p();else;await m()}return{sessions:i,setSessions:j,sessionsOpen:k,setSessionsOpen:l,refreshSessions:m,openSession:o,reloadSession:n,newSession:p,deleteSession:q}}({sessionId:o,setSessionId:p,setChat:d,setUsage:n,setSelectedModel:F,setSessionArtifactId:r}),P=function(a){let{bgAgentList:b,hasBgActivity:c}=function({refresh:a,runs:b}){let[c,d]=(0,f.useState)({});(0,f.useRef)(a);let e=Object.values(c),g=e.some(a=>"running"===a.status);return{bgAgents:c,bgAgentList:e,hasBgActivity:g}}({refresh:a.refresh,runs:a.runs}),d=function({chat:a,setChat:b,selectedModel:c,sessionId:d,setSessionId:e,sessionArtifactId:g,setSessionArtifactId:h,setUsage:i,refresh:j,refreshSessions:l,reloadSession:m,bringToFront:n,projectId:o}){let[p,q]=(0,f.useState)(!1),[r,s]=(0,f.useState)(!1),t=(0,f.useRef)(null),[u,v]=(0,f.useState)(""),[w,x]=(0,f.useState)(null),[y,z]=(0,f.useState)(!1),[A,B]=(0,f.useState)([]),[C,D]=(0,f.useState)(null),[E,F]=(0,f.useState)("idle"),[G,H]=(0,f.useState)(""),[I,J]=(0,f.useState)(null),K=(0,f.useRef)([]),[L,M]=(0,f.useState)([]),N=(0,f.useRef)(null),O=(0,f.useRef)(!1),P=(0,f.useRef)(null),Q=(0,f.useRef)(null),R=(0,f.useRef)(null);async function S(a,c,d){if(a){try{let d=await fetch(`/api/approvals/${a}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({decision:c})});if(!d.ok){let a=await d.text().catch(()=>"");b(b=>[...b,{role:"agent",text:`Approval failed: ${a||d.status}`}]);return}}catch(a){b(b=>[...b,{role:"agent",text:`Approval error: ${a.message}`}]);return}B(b=>b.map(b=>b.approval_id===a?{...b,status:"approved"===c?"approved":"denied"}:b)),"approved"===c&&d?(K.current.push({approval_id:a,tool_name:d}),Q.current?.("Approved — please continue.")):"denied"===c&&Q.current?.("Denied — try a different approach.")}}async function T(a,c){if(a){if("denied"===c){M(b=>b.map(b=>b.approval_id===a?{...b,status:"denied"}:b));try{await fetch(`/api/approvals/${a}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({decision:"denied"})})}catch{}return}M(b=>b.map(b=>b.approval_id===a?{...b,status:"resuming"}:b));try{let c=await fetch("/api/agents/resume-approval",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({approval_id:a})}),d=await c.json().catch(()=>({}));if(!c.ok||!d.ok){M(b=>b.map(b=>b.approval_id===a?{...b,status:"error",error:d.error||c.status}:b)),b(a=>[...a,{role:"agent",text:`Could not continue: ${d.error||c.status}`}]);return}if("awaiting_approval"===d.status&&d.pending_approval?.approval_id)return void M(b=>[...b.map(b=>b.approval_id===a?{...b,status:"approved"}:b),{approval_id:d.pending_approval.approval_id,tool_name:d.pending_approval.tool_name,agent_id:d.pending_approval.agent_id||null,agent_name:d.pending_approval.agent_name||d.agent_name||"Agent",summary:d.pending_approval.summary||"",status:"pending"}]);M(b=>b.map(b=>b.approval_id===a?{...b,status:"done",artifact_id:d.artifact_id||null}:b)),d.artifact_id&&(h(d.artifact_id),n(d.artifact_id)),await j(),b(a=>[...a,{role:"agent",text:`${d.agent_name||"Agent"} finished${d.title?` — "${d.title}"`:""}.`}])}catch(b){M(c=>c.map(c=>c.approval_id===a?{...c,status:"error",error:b.message}:c))}}}Q.current=async function f(f,m){if(p)return;if(t.current){try{t.current.close()}catch{}t.current=null,s(!1)}let r=(f??"").trim(),u=Array.isArray(m)?m:[];if(!r&&!u.length)return;b(a=>[...a,{role:"user",text:r,attachments:u}]),B([]),H(""),J(null),F("thinking"),D(Date.now()),q(!0);let w=a.filter(a=>"user"===a.role||"agent"===a.role).map(a=>({role:"agent"===a.role?"assistant":"user",content:a.text}));for(;w.length&&"assistant"===w[0].role;)w.shift();w.push({role:"user",content:r,attachments:u});let y=new AbortController;N.current=y,O.current=!1;try{let a=K.current.slice();K.current=[];let f=await fetch("/api/orchestrator/stream",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({messages:w,model:c,session_id:d,session_artifact_id:g,project_id:o||"personal",pending_approvals:a}),signal:y.signal});if(!f.ok||!f.body){let a=await f.text();b(b=>[...b,{role:"agent",text:`Stream error: ${a}`}]);return}let m=f.body.getReader(),p=new TextDecoder,q="",r={current:""},s={current:d},t={textRef:r,sessionIdRef:s,setChat:b,setLiveText:v,setAgentPhase:F,setLiveTool:x,setLiveSteps:B,setUsage:i,setSessionId:e,setSessionArtifactId:h,setLiveThinking:H,setLiveStatus:J,pendingApprovalsRef:K,setAgentApprovals:M,bringToFront:n,refresh:j,onSession:a=>{s.current=a}};for(b(a=>[...a,{role:"agent",text:""}]);;){let{done:a,value:b}=await m.read();if(a)break;let c=(q+=p.decode(b,{stream:!0})).split("\n");q=c.pop();let d="";for(let a of c)if(a.startsWith("event:"))d=a.slice(6).trim();else if(a.startsWith("data:")){let b=a.slice(5).trim();try{k(d,JSON.parse(b),t)}catch{}d=""}}r.current||b(a=>{let b=[...a];return b[b.length-1]={role:"agent",text:"Done."},b}),await j(),await l()}catch(a){O.current||a?.name==="AbortError"?b(a=>{let b=[...a],c=b[b.length-1];if(c&&"agent"===c.role){let a=(c.text||"").trim();b[b.length-1]={role:"agent",text:a?`${a}
|
|
4
4
|
|
|
5
|
-
_(stopped by user)_`:"_(stopped by user)_"}}else b.push({role:"agent",text:"_(stopped by user)_"});return b}):b(b=>[...b,{role:"agent",text:`Action failed: ${a.message}`}])}finally{
|
|
5
|
+
_(stopped by user)_`:"_(stopped by user)_"}}else b.push({role:"agent",text:"_(stopped by user)_"});return b}):b(b=>[...b,{role:"agent",text:`Action failed: ${a.message}`}])}finally{N.current=null,O.current=!1,q(!1),D(null),F("idle"),v(""),x(null),J(null),setTimeout(()=>H(""),4e3),setTimeout(()=>{B(a=>a.some(a=>"awaiting_approval"===a.status)?a:[])},1200),z(!1)}},R.current=function(){if(p){O.current=!0;try{N.current?.abort()}catch{}}};let U=(0,f.useRef)(null);U.current=S;let V=(0,f.useRef)(null);V.current=T;let W=(0,f.useRef)(null);W.current=function(a){let c;if(!a||p||t.current)return;try{c=new EventSource(`/api/orchestrator/stream/attach?session_id=${encodeURIComponent(a)}&from_seq=0`)}catch{return}t.current=c,s(!0),B([]),H(""),J(null);let d={textRef:{current:""},sessionIdRef:{current:a},setChat:b,setLiveText:v,setAgentPhase:F,setLiveTool:x,setLiveSteps:B,setUsage:i,setSessionId:e,setSessionArtifactId:h,setLiveThinking:H,setLiveStatus:J,pendingApprovalsRef:K,bringToFront:n,refresh:j,onSession:()=>{}},f=!1;function g(b){if(t.current===c){try{c.close()}catch{}if(t.current=null,s(!1),F("idle"),v(""),x(null),b)try{m?.(a)}catch{}}}for(let a of["session","text","cli_stream","cli_thinking","cli_status","tool_start","tool_result","artifacts","agent_created","session_artifact","artifact_updated","usage","pending_approvals","agent_approval","error","done"])c.addEventListener(a,c=>{let e;try{e=JSON.parse(c.data)}catch{return}if("done"===a)return void g(!0);("text"===a||"cli_stream"===a||"error"===a)&&(f||(f=!0,b(a=>[...a,{role:"agent",text:""}]))),k(a,e,d)});c.addEventListener("error",()=>g(!1))};let X=(0,f.useCallback)((a,b)=>Q.current(a,b),[]),Y=(0,f.useCallback)(()=>R.current(),[]),Z=(0,f.useCallback)((a,b,c)=>U.current(a,b,c),[]),$=(0,f.useCallback)((a,b)=>V.current(a,b),[]);return{busy:p,resuming:r,attach:(0,f.useCallback)(a=>W.current(a),[]),liveText:u,liveTool:w,liveExpanded:y,setLiveExpanded:z,liveSteps:A,busyStartTime:C,agentPhase:E,liveThinking:G,liveStatus:I,feedRef:P,command:X,stop:Y,decideApproval:Z,agentApprovals:L,resumeAgentApproval:$}}(a);return{busy:d.busy,resuming:d.resuming,attach:d.attach,liveText:d.liveText,liveTool:d.liveTool,liveExpanded:d.liveExpanded,setLiveExpanded:d.setLiveExpanded,liveSteps:d.liveSteps,busyStartTime:d.busyStartTime,agentPhase:d.agentPhase,liveThinking:d.liveThinking,liveStatus:d.liveStatus,bgAgentList:b,hasBgActivity:c,feedRef:d.feedRef,command:d.command,stop:d.stop,decideApproval:d.decideApproval}}({chat:c,setChat:d,selectedModel:E,sessionId:o,setSessionId:p,sessionArtifactId:q,setSessionArtifactId:r,setUsage:n,refresh:I,refreshSessions:O.refreshSessions,reloadSession:O.reloadSession,bringToFront:L.bringToFront,projectId:w,runs:a?.runs||null}),Q=function({refresh:a,setChat:b}){let[c,d]=(0,f.useState)(null),[e,g]=(0,f.useState)(!1),[h,i]=(0,f.useState)(null);async function j(e){if(!e||c)return;d(e);let f="Approved Claude Code run. Starting local execution...\n";b(a=>[...a,{role:"agent",text:f}]);try{let c=await fetch("/api/runs/approve-claude-run",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({run_id:e})});if(!c.ok||!c.body){let d=await c.text();try{d=JSON.parse(d).error||d}catch{}b(a=>{let b=[...a];return b[b.length-1]={role:"agent",text:`${f}
|
|
6
6
|
${d}`},b}),await a();return}let d=c.body.getReader(),g=new TextDecoder,h="";for(;;){let{done:a,value:c}=await d.read();if(a)break;let e=(h+=g.decode(c,{stream:!0})).split("\n");h=e.pop();let i="";for(let a of e)if(a.startsWith("event:"))i=a.slice(6).trim();else if(a.startsWith("data:")){try{let c=JSON.parse(a.slice(5).trim());"stdout"===i&&c.line?f+=`${c.line}
|
|
7
7
|
`:"stderr"===i&&c.line?f+=`stderr: ${c.line}
|
|
8
8
|
`:"done"===i?f+=`
|
|
9
9
|
Claude run ${c.status}.`:"error"===i&&(f+=`
|
|
10
10
|
Error: ${c.message}`),b(a=>{let b=[...a];return b[b.length-1]={role:"agent",text:f},b})}catch{}i=""}}await a()}catch(a){b(b=>{let c=[...b];return c[c.length-1]={role:"agent",text:`${f}
|
|
11
|
-
Action failed: ${a.message}`},c})}finally{d(null)}}async function k(e,f){if(e&&!c){d(e);try{let b=await fetch(`/api/approvals/${encodeURIComponent(e)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({decision:f})});if(!b.ok)throw Error(await b.text());await a()}catch(a){b(b=>[...b,{role:"agent",text:`Approval update failed: ${a.message}`}])}finally{d(null)}}}return{approvalBusyId:c,runtimeOpen:e,setRuntimeOpen:g,runtimeActionBusy:h,approveClaudeRun:j,decideGenericApproval:k,ensureOpsAgentAction:async function(){i("ops");try{let c=await fetch("/api/agents/ops",{method:"POST"});if(!c.ok)throw Error(await c.text());b(a=>[...a,{role:"agent",text:"Caretaker is ready: daily 08:00 schedule, scoped tools, and approval gates configured."}]),await a()}catch(a){b(b=>[...b,{role:"agent",text:`Caretaker setup failed: ${a.message}`}])}finally{i(null)}},processHeartbeatOnceAction:async function(){i("worker");try{let c=await fetch("/api/heartbeat/worker",{method:"POST",headers:{"content-type":"application/json"},body:"{}"});if(!c.ok)throw Error(await c.text());let d=await c.json();b(a=>[...a,{role:"agent",text:`Heartbeat worker processed once: ${d.worked?d.status||"worked":"no queued task"}.`}]),await a()}catch(a){b(b=>[...b,{role:"agent",text:`Heartbeat worker failed: ${a.message}`}])}finally{i(null)}}}}({refresh:I,setChat:d}),R=function({sessionId:a,localBusy:b,reloadSession:c,attach:d,resuming:e}){let[g,h]=(0,f.useState)(!1);return(0,f.useRef)(b).current=b,(0,f.useRef)(e).current=e,(0,f.useRef)(c).current=c,(0,f.useRef)(d).current=d,(0,f.useRef)(a).current=a,{remoteWorking:g&&!b}}({sessionId:o,localBusy:P.busy,reloadSession:O.reloadSession,attach:P.attach,resuming:P.resuming}),S=(0,f.useRef)(w),T=(0,f.useRef)(P),U=(0,f.useRef)(O),V=(0,f.useRef)(null),W=(0,f.useRef)(B),X=(0,f.useRef)(C),Y=(0,f.useRef)(D);S.current=w,T.current=P,U.current=O,V.current=B.openConfig,W.current=B,X.current=C,Y.current=D;let Z=(0,f.useRef)(null);null===Z.current&&(Z.current=new WeakSet);let $=(0,f.useCallback)(a=>{a&&Z.current.add(a)},[]),_=null===a||!u,aa=a||{agents:[],runs:[],schedules:[],connectors:[],artifacts:[],hermes_jobs:[]},ab=(0,f.useMemo)(()=>(aa.runs||[]).find(a=>"claude-code-dry-run"===a.kind&&"approval-needed"===a.status),[aa.runs]),ac=(0,f.useMemo)(()=>(aa.hermes_jobs||[]).filter(a=>"queued"===a.status||"running"===a.status),[aa.hermes_jobs]),ad=aa.pending_approvals||[],ae=aa.heartbeat_tasks||[],af=aa.local_tool_audit||[],ag=aa.local_processes||[],ah=ad.length+ae.length+af.length+ag.length,ai=(0,f.useMemo)(()=>(aa.artifacts||[]).filter(a=>a.content),[aa.artifacts]),aj=(0,f.useMemo)(()=>{var a,b;return a=J.activeSpaceId,b=L.minimizedIds,Array.isArray(ai)?ai.filter(c=>c&&c.content&&(c.space_id||"default")===a&&!b?.[c.id]):[]},[ai,J.activeSpaceId,L.minimizedIds]),ak=(0,f.useMemo)(()=>ai.filter(a=>(a.space_id||"default")===J.activeSpaceId&&L.minimizedIds[a.id]),[ai,J.activeSpaceId,L.minimizedIds]),al=(0,f.useCallback)(a=>{let b=ai.findIndex(b=>b.id===a.id);return L.cardZ?.[a.id]??10+Math.max(0,b)},[ai,L.cardZ]),am=(0,f.useMemo)(()=>aj.reduce((a,b)=>{if(!a)return b.id;let c=aj.find(b=>b.id===a);return al(b)>=al(c)?b.id:a},null),[aj,al]);return{state:a,chat:c,chatHydrated:u,chatHidden:s,setChatHidden:t,usage:e,setUsage:n,sessionId:o,sessionArtifactId:q,selectedProjectId:w,setSelectedProjectId:y,voiceOpen:z,setVoiceOpen:A,initializing:_,counts:aa,approvalRun:ab,activeHermesJobs:ac,pendingApprovals:ad,heartbeatTasks:ae,localActions:af,localProcesses:ag,runtimeSignalCount:ah,artifacts:ai,visibleArtifacts:aj,dockedArtifacts:ak,zForArtifact:al,frontArtifactId:am,ctxLimit:G,ctxPct:H,...B,...C,...D,spaces:J,artifactLayout:L,sessions:O,mainAgent:P,runtimeActions:Q,agentWorkingRemote:R.remoteWorking||P.resuming,registerArtifactFrame:$}}();return(0,d.jsx)(n.Provider,{value:b,children:a})}function p(){let a=(0,f.useContext)(n);if(null===a)throw Error("useDashboard must be used inside <DashboardProvider>");return a}var q=c(45798),r=c(23415),s=c(43929),t=c(23315);let u={starting:"Starting engine…",working:"Working…",generating:"Composing…",thinking:"Thinking…",done:"Finishing…"};function v({thinking:a,status:b,busy:c}){let[e,g]=(0,f.useState)(!1),h=(0,f.useRef)(null),i=!!(a&&a.trim());if(!i&&!c)return null;let j=u[b?.phase]||(i?"Thinking":"Working…"),k=b?.elapsedMs?`${Math.round(b.elapsedMs/1e3)}s`:null;return(0,d.jsxs)("div",{className:"thinking-disclosure"+(e?" open":""),children:[(0,d.jsxs)("button",{type:"button",className:"thinking-toggle",onClick:()=>i&&g(a=>!a),"aria-expanded":e,disabled:!i,title:i?"Show reasoning":void 0,children:[(0,d.jsx)("span",{className:"thinking-dot"+(c?" pulsing":""),"aria-hidden":"true"}),(0,d.jsx)("span",{className:"thinking-label",children:j}),k&&(0,d.jsx)("span",{className:"thinking-elapsed",children:k}),i&&(0,d.jsx)("svg",{className:"thinking-caret"+(e?" open":""),width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:(0,d.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e&&i&&(0,d.jsx)("div",{className:"thinking-body",ref:h,children:a})]})}function w(a){return Math.min(520,Math.max(72,Math.round(a)))}let x=(0,f.memo)(function(){let{initializing:a,models:b,selectedModel:c,modelOpen:e,setModelOpen:g,usage:h,ctxLimit:i,ctxPct:j,grouped:k,pickModel:l,sessions:m,sessionId:n,openConfig:o,chat:u,mainAgent:x,agentWorkingRemote:y,setChatHidden:z,setVoiceOpen:A}=p(),{prompt:B,setPrompt:C}=function(){let[a,b]=(0,f.useState)("");return{prompt:a,setPrompt:b}}(),D=m.sessionsOpen,E=m.setSessionsOpen,F=m.newSession,G=m.openSession,H=m.deleteSession,I=m.sessions||[],J=x.feedRef,K=x.liveSteps,L=x.busyStartTime,M=x.agentPhase,N=x.liveThinking,O=x.liveStatus,P=x.busy,Q=x.command,R=x.stop,S=x.decideApproval,T=(0,f.useCallback)(()=>z(!0),[z]),U=(0,f.useCallback)(()=>A(!0),[A]),V=(0,f.useRef)(null),W=(0,f.useRef)(null),X=(0,f.useRef)(0),[Y,Z]=(0,f.useState)([]),[$,_]=(0,f.useState)(!1),[aa,ab]=(0,f.useState)(null),[ac,ad]=(0,f.useState)(!1),[ae,af]=(0,f.useState)(!1),[ag,ah]=(0,f.useState)(120),[ai,aj]=(0,f.useState)(!1),ak=(0,f.useCallback)(async a=>{let b=Array.from(a||[]).filter(Boolean);b.length&&(ab(null),Z(a=>{let c=8-a.length;if(c<=0)return ab("Max 8 files"),a;let d=b.slice(0,c),e=new FormData;return d.forEach(a=>e.append("files",a)),_(!0),fetch("/api/orchestrator/upload",{method:"POST",body:e}).then(async a=>{let b=await a.json().catch(()=>({}));if(!a.ok)return void ab(b.error||"Upload failed");let c=(b.attachments||[]).map((a,b)=>({...a,previewUrl:"image"===a.kind&&d[b]?URL.createObjectURL(d[b]):null}));Z(a=>[...a,...c])}).catch(a=>ab(a.message||"Upload failed")).finally(()=>_(!1)),a}))},[]),al=(0,f.useCallback)(a=>{Z(b=>{let c=b.find(b=>b.id===a);return c?.previewUrl&&URL.revokeObjectURL(c.previewUrl),b.filter(b=>b.id!==a)})},[]),am=(0,f.useCallback)(()=>{if(P||$)return;let a=V.current?.value??"";(a.trim()||0!==Y.length)&&(C(""),Q(a,Y.map(({id:a,name:b,mime:c,size:d,kind:e})=>({id:a,name:b,mime:c,size:d,kind:e}))),Y.forEach(a=>{a.previewUrl&&URL.revokeObjectURL(a.previewUrl)}),Z([]),ab(null))},[P,$,Y,C,Q]),an=(0,f.useCallback)(a=>{let b=a.clipboardData?.items;if(!b)return;let c=[];for(let a of b)if("file"===a.kind){let b=a.getAsFile();b&&c.push(b)}c.length&&(a.preventDefault(),ak(c))},[ak]),ao=(0,f.useCallback)(a=>{a.dataTransfer?.types?.includes("Files")&&(a.preventDefault(),X.current+=1,ad(!0))},[]),ap=(0,f.useCallback)(a=>{a.dataTransfer?.types?.includes("Files")&&a.preventDefault()},[]),aq=(0,f.useCallback)(()=>{X.current=Math.max(0,X.current-1),0===X.current&&ad(!1)},[]),ar=(0,f.useCallback)(a=>{a.dataTransfer?.files?.length&&(a.preventDefault(),X.current=0,ad(!1),ak(a.dataTransfer.files))},[ak]),as=(0,f.useCallback)(a=>{a.preventDefault();let b=a.clientY;aj(!0);let c=a=>ah(w(ag+(b-a.clientY))),d=()=>{aj(!1),window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",d)};window.addEventListener("pointermove",c),window.addEventListener("pointerup",d)},[ag]),at=(0,f.useCallback)(a=>{"ArrowUp"===a.key?(a.preventDefault(),ah(a=>w(a+24))):"ArrowDown"===a.key&&(a.preventDefault(),ah(a=>w(a-24)))},[]),au=(0,f.useCallback)(()=>ah(120),[]);return(0,d.jsxs)("div",{className:"chat-column"+(ac?" chat-column--dragover":"")+(ae?" chat-column--fullscreen":"")+(ai?" chat-column--resizing":""),onDragEnter:ao,onDragOver:ap,onDragLeave:aq,onDrop:ar,children:[ac&&(0,d.jsx)("div",{className:"chat-dropzone","aria-hidden":"true",children:(0,d.jsxs)("div",{className:"chat-dropzone-inner",children:[(0,d.jsxs)("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("path",{d:"M12 16V4M12 4L7 9M12 4l5 5"}),(0,d.jsx)("path",{d:"M4 16v2.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V16"})]}),(0,d.jsx)("span",{children:"Drop files to attach"})]})}),(0,d.jsxs)("section",{className:"chat",children:[(0,d.jsxs)("div",{className:"chat-top",children:[(0,d.jsxs)("div",{className:"model-pill-wrap",children:[(0,d.jsxs)("button",{className:"model-pill",onClick:()=>g(a=>!a),"aria-haspopup":"listbox","aria-expanded":e,title:h.context>0?`Context: ${(h.context/1e3).toFixed(1)}K / ${(i/1e3).toFixed(0)}K (${j}%) \xb7 cache read ${h.cache_read||0}`:"Pick model",children:[(0,d.jsx)("span",{className:"model-name",children:b.find(a=>a.id===c)?.label??c??"Pick model"}),h.context>0?(0,d.jsxs)("span",{className:"ctx-tokens",children:[(h.context/1e3).toFixed(1),"K \xb7 ",j,"%"]}):h.input+h.output>0?(0,d.jsxs)("span",{className:"ctx-tokens",children:[((h.input+h.output)/1e3).toFixed(1),"K ctx"]}):null,(0,d.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,d.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e&&(0,d.jsx)("ul",{className:"model-dropdown",role:"listbox",children:k.map(a=>(0,d.jsxs)("li",{className:"model-group",children:[(0,d.jsx)("span",{className:"model-group-label",children:a.label}),(0,d.jsx)("ul",{children:a.items.map(a=>(0,d.jsx)("li",{role:"option","aria-selected":a.id===c,className:"model-option"+(a.id===c?" selected":""),onClick:()=>l(a.id),children:"ollama"===a.engine?a.id:a.label},a.id))})]},a.engine))})]}),(0,d.jsxs)("div",{className:"chat-actions",children:[(0,d.jsxs)("div",{className:"chat-session-menu",children:[(0,d.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:()=>E(a=>!a),title:"Conversations","aria-label":"Conversations","aria-haspopup":"listbox","aria-expanded":D,children:(0,d.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("rect",{x:"3",y:"7",width:"14",height:"14",rx:"3"}),(0,d.jsx)("path",{d:"M7 7V5.5A2.5 2.5 0 0 1 9.5 3H18.5A2.5 2.5 0 0 1 21 5.5V14.5A2.5 2.5 0 0 1 18.5 17H17"})]})}),D&&(0,d.jsxs)("ul",{className:"model-dropdown sessions-dropdown",role:"listbox",children:[(0,d.jsxs)("li",{className:"model-option session-new-option",onClick:F,children:[(0,d.jsx)("span",{children:"+"})," New chat"]}),0===I.length&&(0,d.jsx)("li",{className:"model-option session-empty-option",children:"No saved sessions"}),I.map(a=>{let b=a.total_input_tokens+a.total_output_tokens>0?`${(((a.total_input_tokens||0)+(a.total_output_tokens||0))/1e3).toFixed(1)}K`:"0";return(0,d.jsxs)("li",{role:"option","aria-selected":a.id===n,className:"model-option session-option"+(a.id===n?" selected":""),onClick:()=>G(a.id),children:[(0,d.jsx)("span",{className:"session-title",children:a.title||"Untitled chat"}),(0,d.jsx)("span",{className:"session-tokens",children:b}),(0,d.jsx)("button",{onClick:b=>{b.stopPropagation(),H(a.id)},title:"Delete session","aria-label":"Delete session",className:"session-delete-btn",children:"x"})]},a.id)})]})]}),U?(0,d.jsx)("button",{className:"config-btn voice-launch",style:{marginLeft:0},onClick:U,title:"Open voice console","aria-label":"Open voice console",children:(0,d.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,d.jsx)("rect",{x:"9",y:"3",width:"6",height:"12",rx:"3"}),(0,d.jsx)("path",{d:"M5 11a7 7 0 0 0 14 0"}),(0,d.jsx)("line",{x1:"12",y1:"18",x2:"12",y2:"21"}),(0,d.jsx)("line",{x1:"8",y1:"21",x2:"16",y2:"21"})]})}):null,(0,d.jsx)("button",{className:"config-btn"+(ae?" on":""),style:{marginLeft:0},onClick:()=>af(a=>!a),title:ae?"Exit full screen":"Full screen","aria-label":ae?"Exit full screen":"Full screen","aria-pressed":ae,children:ae?(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5"})}):(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"})})}),T?(0,d.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:T,title:"Minimize","aria-label":"Minimize chat",children:(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M5 12h14"})})}):null,(0,d.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:o,title:"Settings","aria-label":"Agent settings",children:(0,d.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("line",{x1:"4",y1:"7",x2:"20",y2:"7"}),(0,d.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,d.jsx)("line",{x1:"4",y1:"17",x2:"20",y2:"17"}),(0,d.jsx)("circle",{cx:"15",cy:"7",r:"2",fill:"currentColor",stroke:"none"}),(0,d.jsx)("circle",{cx:"9",cy:"12",r:"2",fill:"currentColor",stroke:"none"}),(0,d.jsx)("circle",{cx:"17",cy:"17",r:"2",fill:"currentColor",stroke:"none"})]})})]})]}),(0,d.jsxs)("div",{className:"feed",ref:J,children:[a?(0,d.jsxs)("div",{className:"feed-skeleton","aria-hidden":"true",children:[(0,d.jsxs)("div",{className:"msg agent msg--skel",children:[(0,d.jsx)("div",{className:"skel sk-line sk-line--w90"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w70"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w55"})]}),(0,d.jsxs)("div",{className:"msg user msg--skel",children:[(0,d.jsx)("div",{className:"skel sk-line sk-line--w65"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w40"})]}),(0,d.jsxs)("div",{className:"msg agent msg--skel",children:[(0,d.jsx)("div",{className:"skel sk-line sk-line--w85"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w50"})]})]}):u.map((a,b)=>{var c,e;let f="agent"===a.role,g=f&&a.streaming?(c=a.text)?c.replace(/```madarx-action[\s\S]*?```/gi,"").replace(/```madarx-action[\s\S]*$/i,"").replace(/```html[\s\S]*?```/gi,"").replace(/```html[\s\S]*$/i,"").replace(/<!doctype html[\s\S]*$/i,"").replace(/<html[\s>][\s\S]*$/i,"").trim():"":a.text,h=f&&(a.building||a.streaming&&!g&&(e=a.text,/```html|<!doctype html|<html[\s>]/i.test(e||""))),i=f&&Array.isArray(a.tools)&&a.tools.length>0;return!f||g||h||i?(0,d.jsxs)("div",{className:"msg "+a.role+(a.streaming?" msg--streaming":"")+(h?" msg--building":""),children:[h?(0,d.jsxs)("div",{className:"artifact-building","aria-live":"polite",children:[(0,d.jsx)("span",{className:"artifact-building-orb","aria-hidden":"true"}),(0,d.jsxs)("span",{className:"artifact-building-label",children:["Designing the page",(0,d.jsxs)("span",{className:"artifact-building-dots",children:[(0,d.jsx)("i",{children:"."}),(0,d.jsx)("i",{children:"."}),(0,d.jsx)("i",{children:"."})]})]})]}):(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:g}),Array.isArray(a.attachments)&&a.attachments.length>0&&(0,d.jsx)("div",{className:"msg-attachments",children:a.attachments.map(a=>(0,d.jsxs)("span",{className:"msg-attach-chip",title:a.name,children:[(0,d.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,d.jsx)("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),(0,d.jsx)("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"})]}),a.name]},a.id))}),f&&Array.isArray(a.tools)&&a.tools.length>0&&(0,d.jsx)("div",{className:"tool-steps tool-steps--restored",children:a.tools.map((a,b)=>(0,d.jsxs)("div",{className:"tool-step tool-step--done",children:[(0,d.jsx)("span",{className:"tool-step-icon","aria-hidden":"true",children:(0,d.jsx)(s.Sr,{})}),(0,d.jsx)("code",{className:"tool-step-name",children:(0,t.U_)(a.name)})]},b))})]},b):null}),(P||N&&N.trim())&&(0,d.jsx)(v,{thinking:N,status:O,busy:P}),K.length>0&&(0,d.jsxs)("div",{className:"tool-steps",children:[K.map(a=>{let b="claude_code_cli"===a.name||"codex_cli"===a.name,c=(0,t.bX)(a.name,a.input),e="awaiting_approval"===a.status,f="number"==typeof a.durationMs&&a.durationMs>0?(0,t.wb)(a.durationMs):null,g=a.preview?String(a.preview).split("\n").find(a=>a.trim()):null;return(0,d.jsxs)("div",{className:`tool-step tool-step--${a.status}`+(b?" tool-step--cli":""),children:[(0,d.jsxs)("span",{className:"tool-step-icon","aria-hidden":"true",children:["running"===a.status&&(0,d.jsx)(s.Nl,{}),"done"===a.status&&(0,d.jsx)(s.Sr,{}),"approved"===a.status&&(0,d.jsx)(s.Sr,{}),("error"===a.status||"denied"===a.status)&&(0,d.jsx)(s.wx,{}),e&&(0,d.jsx)("span",{style:{display:"inline-block",width:8,height:8,borderRadius:4,background:"#c2452a"}})]}),!b&&(0,d.jsx)("code",{className:"tool-step-name",children:(0,t.U_)(a.name)}),c&&(0,d.jsx)("span",{className:"tool-step-sub",children:c}),g&&"done"===a.status&&(0,d.jsx)("span",{className:"tool-step-preview",title:a.preview,children:g.slice(0,64)}),f&&!e&&(0,d.jsx)("span",{className:"tool-step-dur",children:f}),e&&a.approval_id?(0,d.jsxs)("span",{className:"tool-step-approve",style:{marginLeft:"auto",display:"inline-flex",gap:6},children:[(0,d.jsx)("button",{type:"button",onClick:()=>S(a.approval_id,"approved",a.name),style:{appearance:"none",border:0,background:"#c2452a",color:"#fff",padding:"4px 10px",borderRadius:999,font:"600 11.5px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Approve"}),(0,d.jsx)("button",{type:"button",onClick:()=>S(a.approval_id,"denied",a.name),style:{appearance:"none",border:"1px solid rgba(17,19,24,.16)",background:"#fff",color:"#313740",padding:"4px 10px",borderRadius:999,font:"600 11.5px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Deny"})]}):null]},a.id)}),P&&L&&("synthesis"===M||"tool"===M)&&(0,d.jsx)("div",{className:"tool-step-elapsed",children:(0,d.jsx)(s.YE,{startTime:L})})]}),P&&0===K.length&&!O&&!(N&&N.trim())&&(0,d.jsxs)("div",{className:"typing-indicator",children:[(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{})]}),!P&&y&&(0,d.jsxs)("div",{className:"agent-resume-banner","aria-live":"polite",children:[(0,d.jsx)("span",{className:"agent-resume-orb","aria-hidden":"true"}),(0,d.jsxs)("span",{className:"agent-resume-label",children:["Agent still working",(0,d.jsxs)("span",{className:"artifact-building-dots",children:[(0,d.jsx)("i",{children:"."}),(0,d.jsx)("i",{children:"."}),(0,d.jsx)("i",{children:"."})]})]}),(0,d.jsx)("span",{className:"agent-resume-sub",children:"picking up where you left off"})]})]})]}),(0,d.jsx)("div",{className:"composer-resizer",role:"separator","aria-orientation":"horizontal","aria-label":"Resize the message input","aria-valuenow":ag,tabIndex:0,onPointerDown:as,onKeyDown:at,onDoubleClick:au,title:"Drag to resize \xb7 double-click to reset",children:(0,d.jsx)("span",{className:"composer-resizer-grip","aria-hidden":"true"})}),(0,d.jsx)("section",{className:"composer-panel",style:{height:ag},"aria-label":"Message input",children:(0,d.jsxs)("form",{className:"composer",onSubmit:a=>{a.preventDefault(),am()},children:[(0,d.jsx)("input",{ref:W,type:"file",multiple:!0,hidden:!0,accept:"image/png,image/jpeg,image/gif,image/webp,application/pdf,text/*,.md,.markdown,.csv,.tsv,.json,.jsonl,.log,.yaml,.yml,.xml,.html,.css,.js,.jsx,.ts,.tsx,.mjs,.cjs,.py,.rb,.go,.rs,.java,.c,.h,.cpp,.cs,.php,.sh,.sql,.toml,.ini",onChange:a=>{ak(a.target.files),a.target.value=""}}),(0,d.jsxs)("div",{className:"composer-field",children:[(Y.length>0||$||aa)&&(0,d.jsxs)("div",{className:"composer-attachments",children:[Y.map(a=>{var b;return(0,d.jsxs)("span",{className:"attach-chip",title:`${a.name} \xb7 ${!(b=a.size)&&0!==b?"":b<1024?`${b} B`:b<1048576?`${(b/1024).toFixed(0)} KB`:`${(b/1024/1024).toFixed(1)} MB`}`,children:[a.previewUrl?(0,d.jsx)("img",{className:"attach-chip-thumb",src:a.previewUrl,alt:""}):(0,d.jsxs)("svg",{className:"attach-chip-icon",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,d.jsx)("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),(0,d.jsx)("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"})]}),(0,d.jsx)("span",{className:"attach-chip-name",children:a.name}),(0,d.jsx)("button",{type:"button",className:"attach-chip-x",onClick:()=>al(a.id),"aria-label":`Remove ${a.name}`,children:(0,d.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:(0,d.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]},a.id)}),$&&(0,d.jsx)("span",{className:"attach-uploading",children:"Uploading…"}),aa&&(0,d.jsx)("span",{className:"attach-error",children:aa})]}),(0,d.jsx)("textarea",{ref:V,"data-madarx-composer":"true",value:B,onChange:a=>C(a.target.value),onPaste:an,onKeyDown:a=>{"Enter"!==a.key||a.shiftKey||(a.preventDefault(),am())},placeholder:"Start fresh: ask the main agent to create the first agent, report, schedule, or UI task…",rows:3})]}),(0,d.jsxs)("div",{className:"composer-actions",children:[(0,d.jsx)("button",{type:"button",className:"attach-btn",onClick:()=>W.current?.click(),disabled:P,title:"Attach files","aria-label":"Attach files",children:(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M21.4 11.05 12.25 20.2a5.5 5.5 0 0 1-7.78-7.78l9.2-9.2a3.67 3.67 0 0 1 5.18 5.18l-9.2 9.19a1.83 1.83 0 0 1-2.59-2.59l8.49-8.48"})})}),P?(0,d.jsx)("button",{type:"button",className:"send-btn send-btn--stop",onClick:a=>{a.preventDefault(),R&&R()},"aria-label":"Stop main agent",title:"Stop main agent",children:(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",children:(0,d.jsx)("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1.5",fill:"currentColor"})})}):(0,d.jsx)("button",{className:"send-btn",disabled:!B.trim()&&0===Y.length||$,"aria-label":"Send",children:(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",children:(0,d.jsx)("path",{d:"M9 14V4M9 4L4.5 8.5M9 4L13.5 8.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})})]})});var y=c(23312);function z(){return(0,d.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,d.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),(0,d.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})}function A({spaceId:a,spaceName:b,onClose:c}){let[e,g]=(0,f.useState)([]),[h,i]=(0,f.useState)(!0),[j,k]=(0,f.useState)(!1),[l,m]=(0,f.useState)(""),[n,o]=(0,f.useState)(null),[p,q]=(0,f.useState)(7),[r,s]=(0,f.useState)(50),[t,u]=(0,f.useState)(!1),[v,w]=(0,f.useState)(!1),[x,A]=(0,f.useState)(null),[B,C]=(0,f.useState)("org"),[D,E]=(0,f.useState)(!1),[F,G]=(0,f.useState)(!1),H=(0,f.useCallback)(a=>`/share/space/${a}`,[""]),I=(0,f.useCallback)(async()=>{i(!0);try{let[b,c]=await Promise.all([fetch(`/api/dashboard/spaces/${a}/share-link`,{cache:"no-store"}),fetch(`/api/shared/spaces/status?local_space_id=${encodeURIComponent(a)}&space_type=dashboard_space`,{cache:"no-store"})]),d=await b.json().catch(()=>({}));b.ok&&g(d.data||[]);let e=await c.json().catch(()=>({}));c.ok&&(w(!!e.cloud_ready),A(e.status||null))}catch{m("Failed to load share state.")}finally{i(!1)}},[a]);async function J(b){b.preventDefault(),k(!0),m("");try{let b=await fetch(`/api/dashboard/spaces/${a}/share-link`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({expires_in_days:Number(p)||null,max_views:Number(r)||null,require_email_otp:t})}),c=await b.json().catch(()=>({}));if(!b.ok)return void m(c.error||"Failed to create link.");await I()}catch{m("Failed to create link.")}finally{k(!1)}}async function K(b){try{(await fetch(`/api/dashboard/spaces/${a}/share-link/${b}`,{method:"DELETE"})).ok&&g(a=>a.filter(a=>a.id!==b))}catch{}}async function L(a,b){try{await navigator.clipboard.writeText(H(a)),o(b),setTimeout(()=>o(null),1500)}catch{}}async function M(){E(!0),m("");try{let b=await fetch("/api/shared/spaces/publish",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({space_type:"dashboard_space",space_id:a,visibility:B})}),c=await b.json().catch(()=>({}));if(!b.ok)return void m("shared_cloud_not_configured"===c.error?"Supabase cloud is not configured.":c.error||"Publish failed.");A(c.status||null)}catch{m("Publish failed.")}finally{E(!1)}}async function N(){E(!0),m("");try{let b=await fetch("/api/shared/spaces/unpublish",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({local_space_id:a,space_type:"dashboard_space"})}),c=await b.json().catch(()=>({}));if(!b.ok)return void m(c.error||"Unpublish failed.");A(c.status||null)}catch{m("Unpublish failed.")}finally{E(!1)}}let O=x?.shared||x?.status==="published";return F?(0,y.createPortal)((0,d.jsx)("div",{className:"space-share-overlay",onClick:c,children:(0,d.jsxs)("div",{className:"space-share-modal",onClick:a=>a.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":`Share ${b}`,children:[(0,d.jsxs)("div",{className:"ssm-head",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"ssm-eyebrow",children:"Share space"}),(0,d.jsx)("h2",{className:"ssm-title",children:b})]}),(0,d.jsx)("button",{type:"button",className:"ssm-close",onClick:c,"aria-label":"Close",children:(0,d.jsx)(z,{})})]}),l?(0,d.jsx)("div",{className:"ssm-error",children:l}):null,(0,d.jsxs)("section",{className:"ssm-section",children:[(0,d.jsx)("h3",{className:"ssm-section-title",children:"Public link"}),(0,d.jsx)("p",{className:"ssm-note",children:"Anyone with the link can view every artifact in this space. New and moved-in artifacts are included automatically."}),(0,d.jsxs)("form",{className:"ssm-form",onSubmit:J,children:[(0,d.jsxs)("label",{className:"ssm-field",children:[(0,d.jsx)("span",{children:"Expires in (days)"}),(0,d.jsx)("input",{type:"number",min:"0",max:"90",value:p,onChange:a=>q(a.target.value)})]}),(0,d.jsxs)("label",{className:"ssm-field",children:[(0,d.jsx)("span",{children:"Max views"}),(0,d.jsx)("input",{type:"number",min:"0",value:r,onChange:a=>s(a.target.value)})]}),(0,d.jsxs)("label",{className:"ssm-check",children:[(0,d.jsx)("input",{type:"checkbox",checked:t,onChange:a=>u(a.target.checked)}),(0,d.jsx)("span",{children:"Require email verification"})]}),(0,d.jsx)("button",{type:"submit",className:"ssm-btn ssm-btn-primary",disabled:j,children:j?"Creating…":"Create link"})]}),(0,d.jsxs)("div",{className:"ssm-links",children:[h?(0,d.jsx)("div",{className:"ssm-muted",children:"Loading…"}):null,h||0!==e.length?null:(0,d.jsx)("div",{className:"ssm-muted",children:"No active links."}),e.map(a=>(0,d.jsxs)("div",{className:"ssm-link",children:[(0,d.jsxs)("div",{className:"ssm-link-main",children:[(0,d.jsx)("input",{className:"ssm-link-url",readOnly:!0,value:H(a.token),onFocus:a=>a.target.select()}),(0,d.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm",onClick:()=>L(a.token,a.id),children:n===a.id?"Copied":"Copy"}),(0,d.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm ssm-btn-danger",onClick:()=>K(a.id),children:"Revoke"})]}),(0,d.jsxs)("div",{className:"ssm-link-meta",children:["Expires ",function(a){if(!a)return"never";try{return new Date(a).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}catch{return a}}(a.expires_at)," \xb7 ",a.access_count,null!=a.max_views?`/${a.max_views}`:""," views",a.require_email_otp?" \xb7 email-gated":""]})]},a.id))]})]}),v?(0,d.jsxs)("section",{className:"ssm-section",children:[(0,d.jsx)("h3",{className:"ssm-section-title",children:"Org workspace"}),(0,d.jsx)("p",{className:"ssm-note",children:"Publish this space to your organization. Only signed-in teammates can see it."}),O?(0,d.jsxs)("div",{className:"ssm-cloud-status",children:[(0,d.jsx)("span",{className:"ssm-badge ssm-badge-on",children:"Published"}),(0,d.jsxs)("span",{className:"ssm-muted",children:[x?.visibility||"org"," \xb7 ",x?.resource_count??0," artifacts indexed"]}),(0,d.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm ssm-btn-danger",onClick:N,disabled:D,children:D?"…":"Unpublish"})]}):(0,d.jsxs)("div",{className:"ssm-form",children:[(0,d.jsxs)("label",{className:"ssm-field",children:[(0,d.jsx)("span",{children:"Visibility"}),(0,d.jsxs)("select",{value:B,onChange:a=>C(a.target.value),children:[(0,d.jsx)("option",{value:"org",children:"Whole organization"}),(0,d.jsx)("option",{value:"team",children:"Team"}),(0,d.jsx)("option",{value:"private",children:"Private"})]})]}),(0,d.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-primary",onClick:M,disabled:D,children:D?"Publishing…":"Publish to org"})]})]}):null]})}),document.body):null}function B({space:a,active:b,count:c,onActivate:e,onRename:g,onDelete:h,onShare:i,isEmpty:j,canDelete:k,onMoveArtifactHere:l,dragOverSpaceId:m,setDragOverSpaceId:n,pointerDropSpaceId:o}){let[p,q]=(0,f.useState)(!1),[r,s]=(0,f.useState)(a.name),[t,u]=(0,f.useState)(!1),v=(0,f.useRef)(null),w=(0,f.useRef)(null);function x(){q(!1);let b=r.trim();b&&b!==a.name?g(a.id,b):s(a.name)}return(0,d.jsxs)("div",{"data-space-id":a.id,className:"space-chip"+(b?" is-active":"")+(m===a.id||o===a.id?" is-drop-target":""),onClick:()=>{p||e(a.id)},onDoubleClick:a=>{a.stopPropagation(),q(!0)},onContextMenu:a=>{a.preventDefault(),u(!0)},onDragOver:b=>{b.preventDefault(),n(a.id)},onDragLeave:()=>n(b=>b===a.id?null:b),onDrop:b=>{b.preventDefault();let c=b.dataTransfer.getData("text/x-artifact-id");c&&l(c,a.id),n(null)},title:p?"":"Click to switch \xb7 Double-click to rename \xb7 Right-click for more",children:[p?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("input",{ref:w,className:"space-chip-input",value:r,onChange:a=>s(a.target.value),onBlur:x,onKeyDown:b=>{"Enter"===b.key?x():"Escape"===b.key&&(q(!1),s(a.name))},maxLength:32}),j&&k&&(0,d.jsx)("button",{type:"button",className:"space-chip-action space-chip-action--delete",onMouseDown:a=>a.preventDefault(),onClick:b=>{b.stopPropagation(),h(a.id)},"aria-label":`Delete ${a.name}`,title:"Delete empty space",tabIndex:-1,children:(0,d.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":"true",children:[(0,d.jsx)("line",{x1:"3.5",y1:"3.5",x2:"12.5",y2:"12.5"}),(0,d.jsx)("line",{x1:"12.5",y1:"3.5",x2:"3.5",y2:"12.5"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"space-chip-name",children:a.name}),c>0&&(0,d.jsx)("span",{className:"space-chip-count",children:c})]}),t&&(0,d.jsxs)("div",{className:"space-chip-menu",ref:v,onClick:a=>a.stopPropagation(),children:[(0,d.jsx)("button",{type:"button",onClick:()=>{u(!1),q(!0)},children:"Rename"}),(0,d.jsx)("button",{type:"button",onClick:()=>{u(!1),i(a.id)},children:"Share"}),(0,d.jsxs)("button",{type:"button",disabled:!k||!j,onClick:()=>{u(!1),k&&j&&h(a.id)},title:j?k?"Delete this empty space":"Cannot delete the last space":"Move or delete its artifacts first",children:["Delete",j?"":" (not empty)"]})]})]})}function C({artifact:a,spaces:b,activeSpaceId:c,hoveredDockId:e,setHoveredDockId:g,onRestore:h,onMove:j}){let k=(0,i.o0)(a.kind),[l,m]=(0,f.useState)(!1),n=(0,f.useRef)(null),o=b.filter(a=>a.id!==c);return(0,d.jsxs)("div",{className:"dock-item",onMouseEnter:()=>g(a.id),onMouseLeave:()=>g(b=>b===a.id?null:b),onContextMenu:a=>{a.preventDefault(),m(!0)},draggable:!0,onDragStart:b=>{b.dataTransfer.setData("text/x-artifact-id",a.id),b.dataTransfer.effectAllowed="move"},children:[(0,d.jsx)("button",{type:"button",className:"dock-card",onClick:()=>h(a.id),"aria-label":`Restore: ${a.title}`,title:a.title||"Artifact",children:(0,d.jsx)("div",{className:"dock-thumb",children:a.content?k?(0,d.jsx)("iframe",{srcDoc:(0,i.sV)(a.content),sandbox:"allow-same-origin",title:`Thumbnail: ${a.title}`,tabIndex:-1,"aria-hidden":"true",loading:"lazy"}):(0,d.jsx)("div",{className:"win-md",children:(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:a.content})}):(0,d.jsx)("div",{className:"dock-thumb-empty",children:a.kind||"doc"})})}),e===a.id&&!l&&(0,d.jsxs)("div",{className:"dock-preview",role:"tooltip",children:[(0,d.jsxs)("div",{className:"dock-preview-title",children:[(0,d.jsx)("span",{className:"artifact-kind-badge "+(a.kind||"text"),children:a.kind}),(0,d.jsx)("b",{children:a.title||"Artifact"})]}),(0,d.jsx)("div",{className:"dock-preview-body"+(k?" is-html":" is-md"),children:k?(0,d.jsx)("iframe",{srcDoc:(0,i.sV)(a.content),sandbox:"allow-scripts allow-same-origin",title:`Preview: ${a.title}`,tabIndex:-1,"aria-hidden":"true"}):(0,d.jsx)("div",{className:"win-md",children:(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:a.content||""})})})]}),l&&(0,d.jsxs)("div",{className:"dock-item-menu",ref:n,onClick:a=>a.stopPropagation(),children:[(0,d.jsx)("div",{className:"dock-item-menu-label",children:"Move to space"}),0===o.length?(0,d.jsx)("div",{className:"dock-item-menu-empty",children:"No other spaces"}):o.map(b=>(0,d.jsx)("button",{type:"button",onClick:()=>{j(a.id,b.id),m(!1)},children:b.name},b.id)),(0,d.jsx)("div",{className:"dock-item-menu-divider"}),(0,d.jsx)("button",{type:"button",onClick:()=>{h(a.id),m(!1)},children:"Restore"})]})]})}function D({spaces:a,activeSpaceId:b,setActiveSpaceId:c,createSpace:e,renameSpace:g,deleteSpace:h,moveArtifactToSpace:i,artifacts:j,dockedArtifacts:k,minimizedIds:l,hoveredDockId:m,setHoveredDockId:n,toggleMinimize:o,pointerDropSpaceId:p}){let[q,r]=(0,f.useState)(null),[s,t]=(0,f.useState)(null),u=(0,f.useMemo)(()=>{let b=new Map;for(let c of a)b.set(c.id,[]);for(let a of j||[]){let c=a.space_id||"default";b.has(c)&&b.get(c).push(a.id)}return b},[a,j]);function v(a,b){i(a,b)}return(0,d.jsxs)("div",{className:"artifact-dock",role:"toolbar","aria-label":"Spaces and minimized artifacts",children:[(0,d.jsxs)("div",{className:"dock-spaces",children:[a.map(e=>(0,d.jsx)(B,{space:e,active:e.id===b,count:(u.get(e.id)||[]).filter(a=>!l[a]).length,isEmpty:0===(u.get(e.id)||[]).length,onActivate:c,onRename:g,onDelete:h,onShare:t,canDelete:a.length>1,onMoveArtifactHere:v,dragOverSpaceId:q,setDragOverSpaceId:r,pointerDropSpaceId:p},e.id)),(0,d.jsx)("button",{type:"button",className:"space-add",onClick:()=>e(),"aria-label":"Create new space",title:"New space",children:(0,d.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:[(0,d.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,d.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}),k.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"dock-divider","aria-hidden":"true"}),(0,d.jsx)("div",{className:"dock-items",children:k.map(c=>(0,d.jsx)(C,{artifact:c,spaces:a,activeSpaceId:b,hoveredDockId:m,setHoveredDockId:n,onRestore:o,onMove:v},c.id))})]}),s?(0,d.jsx)(A,{spaceId:s,spaceName:(a.find(a=>a.id===s)||{}).name||"Space",onClose:()=>t(null)}):null]})}function E({onActivate:a}){let b=(0,f.useRef)(null);return(0,d.jsx)("div",{ref:b,className:"iframe-focus-shield","aria-hidden":"true",onPointerDown:b=>{b.preventDefault(),b.stopPropagation(),a()}})}function F({confirmDeleteId:a,setConfirmDeleteId:b,deleteArtifactById:c,setMoveMenu:e}){let{visibleArtifacts:f,frontArtifactId:g,zForArtifact:h,artifactLayout:j,registerArtifactFrame:k}=p(),l=j.setBoardEl,m=j.getLayout,n=j.draggingId,o=j.resizingId,s=j.selectedArtifactId,t=j.toggleMinimize,u=j.setFullscreenId,v=j.downloadArtifact,w=j.startDrag,x=j.startResize,y=j.bringToFront;return(0,d.jsx)("div",{ref:l,className:"canvas-board canvas-board--docked",children:f.map((f,j)=>{let l=m(f.id,j),p=h(f),z=(0,i.o0)(f.kind),A=f.id===g;return(0,d.jsxs)("div",{className:"artifact-window-wrap"+(n===f.id?" is-dragging":""),"data-dragging":n===f.id?"true":"false","data-resizing":o===f.id?"true":"false",style:{transform:`translate3d(${l.x}px, ${l.y}px, 0)`,width:l.width,height:l.height,zIndex:p},onPointerDown:()=>y(f.id),children:[(0,d.jsxs)("div",{className:"window artifact-window"+(f.id===s?" artifact-window--new":""),children:[(0,d.jsx)("div",{className:"winbar",onPointerDown:a=>w(a,f.id),onDoubleClick:a=>{a.target.closest("button, i, .confirm-label")||u(f.id)},onContextMenu:a=>{a.target.closest("button, i, .confirm-label")||(a.preventDefault(),e({artifactId:f.id,x:a.clientX,y:a.clientY}))},title:"Drag onto a space chip to move \xb7 Right-click for more \xb7 Double-click to expand",children:a===f.id?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"confirm-label",children:"Delete permanently?"}),(0,d.jsx)("button",{className:"confirm-cancel",onClick:()=>b(null),children:"Cancel"}),(0,d.jsx)("button",{className:"confirm-delete",onClick:()=>c(f.id),children:"Delete"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("i",{className:"dot-close",onClick:()=>b(f.id),title:"Delete"}),(0,d.jsx)("i",{className:"dot-minimize",onClick:()=>t(f.id),title:"Minimize"}),(0,d.jsx)("i",{className:"dot-zoom",onClick:()=>u(f.id),title:"Expand"}),(0,d.jsx)("b",{children:f.title||"Artifact"}),(0,d.jsx)("span",{className:"artifact-kind-badge "+(f.kind||"text"),children:f.kind}),(0,d.jsx)("button",{className:"winbar-dl",onClick:()=>v(f),title:(0,i.o0)(f.kind)?"Download .html":"Download .md",children:(0,d.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("path",{d:"M8 2v9M4 7l4 4 4-4"}),(0,d.jsx)("line",{x1:"2",y1:"14",x2:"14",y2:"14"})]})})]})}),(0,d.jsxs)("div",{className:"win-content",onWheelCapture:i.qE,children:[n===f.id&&(0,d.jsx)("div",{className:"drag-blocker"}),o===f.id&&(0,d.jsx)("div",{className:"resize-blocker"}),z?(0,d.jsxs)(d.Fragment,{children:[!A&&(0,d.jsx)(E,{onActivate:()=>y(f.id)}),(0,d.jsx)("iframe",{ref:(0,i.Jw)(k),srcDoc:(0,i.sV)(f.content),sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",title:f.title,onLoad:i.MZ})]}):(0,d.jsx)("div",{className:"win-md",children:(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:f.content||""})})]})]}),["nw","n","ne","e","se","s","sw","w"].map(a=>(0,d.jsx)("div",{className:"resize-edge resize-"+a,onPointerDown:b=>x(b,f.id,a)},a))]},f.id)})})}function G({artifact:a,docked:b,onClose:c,confirmDeleteId:e,setConfirmDeleteId:g,deleteArtifactById:h,toggleMinimize:j,downloadArtifact:k,registerArtifactFrame:l}){let[m,n]=(0,f.useState)("enter"),o=(0,f.useRef)(!1);function p(a){o.current||(o.current=!0,n("exit"),setTimeout(()=>{"function"==typeof a&&a(),c()},260))}return(0,d.jsxs)("div",{className:"artifact-fs"+(b?" artifact-fs--docked":""),"data-phase":m,children:[(0,d.jsx)("div",{className:"winbar artifact-fs-bar",onDoubleClick:a=>{a.target.closest("button, i, .confirm-label")||p()},title:"Double-click to exit fullscreen",children:e===a.id?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"confirm-label",children:"Delete permanently?"}),(0,d.jsx)("button",{className:"confirm-cancel",onClick:()=>g(null),children:"Cancel"}),(0,d.jsx)("button",{className:"confirm-delete",onClick:()=>p(()=>h(a.id)),children:"Delete"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("i",{className:"dot-close",onClick:()=>g(a.id),title:"Delete"}),(0,d.jsx)("i",{className:"dot-minimize",onClick:()=>p(()=>j(a.id)),title:"Minimize"}),(0,d.jsx)("i",{className:"dot-zoom",onClick:()=>p(),title:"Exit fullscreen"}),(0,d.jsx)("b",{children:a.title||"Artifact"}),(0,d.jsx)("span",{className:"artifact-kind-badge "+(a.kind||"text"),children:a.kind}),(0,d.jsx)("button",{className:"winbar-dl",onClick:()=>k(a),title:(0,i.o0)(a.kind)?"Download .html":"Download .md",children:(0,d.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("path",{d:"M8 2v9M4 7l4 4 4-4"}),(0,d.jsx)("line",{x1:"2",y1:"14",x2:"14",y2:"14"})]})})]})}),(0,d.jsx)("div",{className:"artifact-fs-content",children:(0,i.o0)(a.kind)?(0,d.jsx)("iframe",{ref:(0,i.Jw)(l),srcDoc:(0,i.sV)(a.content),sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",title:a.title,onLoad:i.MZ}):(0,d.jsx)("div",{className:"win-md",children:(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:a.content||""})})})]})}function H(){let{mainAgent:a,runtimeActions:b,runtimeSignalCount:c,pendingApprovals:e,heartbeatTasks:f,localProcesses:g,localActions:h}=p(),i=b.runtimeOpen,j=b.setRuntimeOpen,k=a.busy,l=a.hasBgActivity,m=a.bgAgentList,n=a.busyStartTime,o=a.agentPhase,q=a.liveSteps,r=b.decideGenericApproval,u=b.approvalBusyId,v=b.ensureOpsAgentAction,w=b.processHeartbeatOnceAction,x=b.runtimeActionBusy;return(0,d.jsxs)("div",{className:"runtime-menu-wrap",children:[(0,d.jsxs)("button",{className:"runtime-menu-btn"+(i?" on":"")+(k||l?" runtime-menu-btn--busy":""),onClick:()=>j(a=>!a),title:k?"Main agent is working — click to see live activity":l?`${m.filter(a=>"running"===a.status).length} background agent(s) working`:"Runtime activity","aria-label":"Runtime activity","aria-expanded":i,children:[(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M4 12h4l2-7 4 14 2-7h4"})}),(k||l)&&(0,d.jsx)("span",{className:"runtime-busy-dot","aria-hidden":"true"}),!k&&!l&&c>0&&(0,d.jsx)("span",{children:c})]}),i&&(0,d.jsxs)("div",{className:"runtime-popover",children:[(0,d.jsxs)("div",{className:"runtime-popover-head",children:[(0,d.jsx)("b",{children:"Operator Command Center"}),(0,d.jsx)("small",{children:"Approvals, running work, failed runs, and task queues"}),(0,d.jsxs)("div",{className:"runtime-quick-links","aria-label":"Operator quick links",children:[(0,d.jsx)("a",{href:"/approvals",children:"Approvals"}),(0,d.jsx)("a",{href:"/tasks",children:"Tasks"}),(0,d.jsx)("a",{href:"/activity",children:"Activity"}),(0,d.jsx)("a",{href:"/runtime",children:"Runtime"})]})]}),k&&(0,d.jsxs)("div",{className:"runtime-live-section",children:[(0,d.jsxs)("div",{className:"runtime-live-header",children:[(0,d.jsxs)("div",{className:"runtime-live-title-row",children:[(0,d.jsx)("span",{className:"runtime-section-title",children:"Main Agent"}),(0,d.jsxs)("span",{className:"runtime-live-phase",children:["thinking"===o&&"thinking","responding"===o&&"responding","tool"===o&&"using tools","synthesis"===o&&"synthesizing"]})]}),(0,d.jsxs)("div",{className:"runtime-live-meta",children:[n&&(0,d.jsx)("span",{className:"runtime-live-elapsed",children:(0,d.jsx)(s.YE,{startTime:n})}),(0,d.jsxs)("span",{className:"runtime-live-badge",children:[(0,d.jsx)("span",{className:"runtime-live-badge-dot","aria-hidden":"true"}),"Live"]})]})]}),q.length>0?(0,d.jsx)("div",{className:"runtime-live-steps",children:q.map(a=>(0,d.jsxs)("div",{className:`runtime-live-step runtime-live-step--${a.status}`,children:[(0,d.jsxs)("span",{className:"runtime-live-step-icon","aria-hidden":"true",children:["running"===a.status&&(0,d.jsx)(s.Nl,{}),"done"===a.status&&(0,d.jsx)(s.Sr,{}),"error"===a.status&&(0,d.jsx)(s.wx,{})]}),(0,d.jsx)("code",{className:"runtime-live-step-name",children:a.name.replace(/_/g," ")}),(0,t.bX)(a.name,a.input)&&(0,d.jsx)("span",{className:"runtime-live-step-sub",children:(0,t.bX)(a.name,a.input)})]},a.id))}):(0,d.jsxs)("div",{className:"runtime-live-thinking",children:[(0,d.jsx)("span",{className:"runtime-live-thinking-icon",children:(0,d.jsx)(s.Nl,{})}),(0,d.jsxs)("span",{children:["thinking"===o&&"Waiting for first response…","responding"===o&&"Streaming response…","synthesis"===o&&"Synthesizing results…","idle"===o&&"Processing…"]})]})]}),m.length>0&&(0,d.jsxs)("div",{className:"runtime-section",children:[(0,d.jsxs)("span",{className:"runtime-section-title",children:["Background agents",l&&(0,d.jsxs)("span",{className:"runtime-live-badge",style:{marginLeft:8},children:[(0,d.jsx)("span",{className:"runtime-live-badge-dot","aria-hidden":"true"}),"Live"]})]}),(0,d.jsx)("div",{className:"runtime-live-steps",children:m.map(a=>(0,d.jsxs)("div",{className:`runtime-live-step runtime-live-step--${"running"===a.status?"running":"failed"===a.status?"error":"done"}`,children:[(0,d.jsxs)("span",{className:"runtime-live-step-icon","aria-hidden":"true",children:["running"===a.status&&(0,d.jsx)(s.Nl,{}),"complete"===a.status&&(0,d.jsx)(s.Sr,{}),"failed"===a.status&&(0,d.jsx)(s.wx,{})]}),(0,d.jsx)("code",{className:"runtime-live-step-name",children:a.agent_name}),(0,d.jsx)("span",{className:"runtime-live-step-sub",children:a.current_tool?`${a.current_tool.replace(/_/g," ")}${(0,t.bX)(a.current_tool,a.current_input)?` ${(0,t.bX)(a.current_tool,a.current_input)}`:""}`:"running"===a.status?a.triggered_by?`${a.triggered_by} tick`:"starting…":"complete"===a.status?"done":"failed"})]},a.agent_id))})]}),(0,d.jsx)("div",{className:"runtime-compact-stats",children:[["Approvals",e.length],["Heartbeat",f.length],["Processes",g.length],["Audit",h.length]].map(([a,b])=>(0,d.jsxs)("div",{className:"runtime-compact-stat"+(b>0?" has-value":""),children:[(0,d.jsx)("b",{children:b}),(0,d.jsx)("span",{children:a})]},a))}),e.length>0&&(0,d.jsxs)("div",{className:"runtime-section",children:[(0,d.jsx)("span",{className:"runtime-section-title",children:"Pending approvals"}),e.slice(0,3).map(a=>(0,d.jsxs)("div",{className:"runtime-approval",children:[(0,d.jsx)("span",{children:a.summary}),(0,d.jsxs)("div",{children:[(0,d.jsx)("button",{onClick:()=>r(a.id,"approved"),disabled:u===a.id,children:"Approve"}),(0,d.jsx)("button",{className:"secondary",onClick:()=>r(a.id,"denied"),disabled:u===a.id,children:"Deny"})]})]},a.id))]}),(f.length>0||g.length>0||h.length>0)&&(0,d.jsxs)("div",{className:"runtime-section",children:[(0,d.jsx)("span",{className:"runtime-section-title",children:"Recent activity"}),f.slice(0,2).map(a=>(0,d.jsxs)("div",{className:"runtime-row",children:[(0,d.jsx)("span",{children:a.type}),(0,d.jsx)("b",{children:a.status})]},a.id)),g.slice(0,2).map(a=>(0,d.jsxs)("div",{className:"runtime-row",children:[(0,d.jsx)("span",{children:a.command}),(0,d.jsx)("b",{children:a.status})]},a.id)),h.slice(0,3).map(a=>(0,d.jsxs)("div",{className:"runtime-row",children:[(0,d.jsx)("span",{children:a.summary||a.type}),(0,d.jsx)("b",{children:a.status})]},a.id))]}),!k&&0===c&&0===m.length&&(0,d.jsx)("div",{className:"runtime-empty",children:"No active tasks right now."}),(0,d.jsxs)("div",{className:"runtime-dev-tools",children:[(0,d.jsx)("span",{className:"runtime-section-title",children:"System tools"}),(0,d.jsxs)("div",{className:"runtime-dev-row",children:[(0,d.jsx)("button",{onClick:v,disabled:"ops"===x,className:"runtime-dev-btn",children:"ops"===x?"Creating…":"Caretaker"}),(0,d.jsx)("button",{onClick:w,disabled:"worker"===x,className:"runtime-dev-btn",children:"worker"===x?"Processing…":"Heartbeat once"})]})]})]})]})}function I({x:a,y:b,spaces:c,activeSpaceId:e,onMove:g,onClose:h}){let i=(0,f.useRef)(null),[j,k]=(0,f.useState)({left:a,top:b}),l=c.filter(a=>a.id!==e);return"undefined"==typeof document?null:(0,y.createPortal)((0,d.jsxs)("div",{className:"winbar-move-menu",ref:i,style:{left:j.left,top:j.top},onClick:a=>a.stopPropagation(),children:[(0,d.jsx)("div",{className:"winbar-move-menu-label",children:"Move to space"}),0===l.length?(0,d.jsx)("div",{className:"winbar-move-menu-empty",children:"No other spaces"}):l.map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{g(a.id),h()},children:a.name},a.id))]}),document.body)}let J=(0,f.memo)(function(){let{initializing:a,activeHermesJobs:b,runtimeActions:c,mainAgent:e,approvalRun:g,counts:h,artifacts:i,visibleArtifacts:j,dockedArtifacts:k,artifactLayout:l,spaces:m,registerArtifactFrame:n,designStyle:o}=p(),q=c.approveClaudeRun,r=c.approvalBusyId,s=l.resetArtifactLayout,t=l.layoutMode,u=l.fullscreenId,v=l.setFullscreenId,w=l.confirmDeleteId,x=l.setConfirmDeleteId,z=l.deleteArtifactById,A=l.toggleMinimize,B=l.downloadArtifact,C=l.minimizedIds,E=l.hoveredDockId,J=l.setHoveredDockId,K=l.pointerDropSpaceId,L=e.busy,M=e.liveTool,N=e.liveText,O=e.command,P=m.spaces,Q=m.activeSpaceId,R=m.setActiveSpaceId,S=m.createSpace,T=m.renameSpace,U=m.deleteSpace,V=m.moveArtifactToSpace,W=m.isSwitching,[X,Y]=(0,f.useState)(null),[Z,$]=(0,f.useState)(null),_=(h?.agents||[]).some(a=>"hermes"===(a.engine||"")),aa=(0,d.jsxs)("div",{className:"app-topbar-actions",children:[g&&(0,d.jsx)("button",{className:"admin-button",onClick:()=>q(g.id),disabled:r===g.id,style:{height:28,padding:"0 12px",fontSize:12},children:r===g.id?"Running Claude...":"Approve & Run"}),_&&(0,d.jsxs)("div",{className:"hermes-wrap",children:[(0,d.jsxs)("span",{className:"tb-icon-btn"+(b.length>0?" on":""),role:"status","aria-label":b.length>0?`Hermes ${b.length} running`:"Hermes idle",children:[(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),b.length>0&&(0,d.jsx)("span",{children:b.length})]}),(0,d.jsxs)("div",{className:"hermes-tooltip",role:"tooltip",children:[(0,d.jsx)("b",{children:"Hermes"}),(0,d.jsx)("small",{children:b.length>0?`${b.length} running`:"idle"}),b.length>0&&(0,d.jsx)("ul",{children:b.map(a=>(0,d.jsx)("li",{children:a.title||(a.prompt?a.prompt.slice(0,60):"Untitled job")},a.id))})]})]}),(0,d.jsx)(H,{}),i.length>0&&(0,d.jsx)("button",{className:"tb-icon-btn",onClick:s,title:"manual"===t?"Reset to auto layout":"Auto layout active","aria-label":"manual"===t?"Reset to auto layout":"Auto layout active",children:(0,d.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,d.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,d.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"}),(0,d.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"})]})})]});return(0,d.jsxs)("section",{className:"canvas fresh-canvas"+(W?" is-space-switching":""),children:[Z?(0,y.createPortal)(aa,Z):null,a?(0,d.jsx)("div",{className:"canvas-board canvas-board--skel","aria-hidden":"true",children:(0,d.jsx)("div",{className:"artifact-window-wrap artifact-skel-wrap artifact-skel-wrap--solo",children:(0,d.jsxs)("div",{className:"window artifact-window",children:[(0,d.jsxs)("div",{className:"winbar",children:[(0,d.jsx)("i",{className:"dot-close"}),(0,d.jsx)("i",{className:"dot-minimize"}),(0,d.jsx)("i",{className:"dot-zoom"}),(0,d.jsx)("div",{className:"skel sk-winbar-title"}),(0,d.jsx)("div",{className:"skel sk-kind-badge"})]}),(0,d.jsxs)("div",{className:"win-content artifact-skel-content",children:[(0,d.jsx)("div",{className:"skel sk-art-hero"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w90"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w80"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w65"}),(0,d.jsx)("div",{className:"skel sk-art-block"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w75"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w55"})]})]})})}):L&&0===j.length&&0===k.length?(0,d.jsx)("div",{className:"building-card-wrap",children:(0,d.jsxs)("div",{className:"building-card",children:[(0,d.jsxs)("div",{className:"building-winbar",children:[(0,d.jsxs)("div",{className:"building-dots",children:[(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{})]}),(0,d.jsx)("span",{className:"building-winbar-title",children:"generate_ui"===M?`Designing ${o} UI…`:"create_artifact"===M?"Building artifact…":M?`Running ${M.replace(/_/g," ")}…`:"Agent composing…"}),(0,d.jsxs)("div",{className:"building-pill",children:[(0,d.jsx)("div",{className:"building-pill-dot"}),"Live"]})]}),(0,d.jsxs)("div",{className:"building-body",children:[(0,d.jsxs)("div",{className:"building-illustration",children:[(0,d.jsx)("div",{className:"building-mesh"}),(0,d.jsxs)("div",{className:"building-skeleton",children:[(0,d.jsx)("div",{className:"skel hd"}),(0,d.jsx)("div",{className:"skel la"}),(0,d.jsx)("div",{className:"skel lb"}),(0,d.jsx)("div",{className:"skel lc"}),(0,d.jsx)("div",{className:"skel ld"})]})]}),(0,d.jsxs)("div",{className:"building-footer",children:[(0,d.jsx)("div",{className:"building-footer-label",children:M?"Active tool":"Status"}),(0,d.jsx)("div",{className:"building-footer-tool",children:"generate_ui"===M?`${o} design rules active`:M?M.replace(/_/g," "):"Agent is thinking…"}),N&&(0,d.jsx)("div",{className:"building-stream-text",children:N.slice(-320)})]})]})]})}):(0,d.jsxs)(d.Fragment,{children:[j.length>0?(0,d.jsx)(F,{confirmDeleteId:w,setConfirmDeleteId:x,deleteArtifactById:z,setMoveMenu:Y}):0===k.length&&0===i.length?(0,d.jsx)("div",{className:"fresh-workspace",children:(0,d.jsxs)("div",{className:"fresh-hero full-width",children:[(0,d.jsx)("small",{children:"Clean workspace"}),(0,d.jsx)("h1",{children:"Start from zero."}),(0,d.jsx)("p",{children:"Your local-first agent workspace. Create agents that research competitors, generate reports, run scheduled tasks, and prepare actions for your approval — all running on your machine, backed by SQLite, with no cloud dependencies."}),(0,d.jsxs)("div",{className:"fresh-actions",children:[(0,d.jsx)("button",{onClick:()=>O("Create the first Client Workspace competitor research agent with browser scraper and report writer daily at 07:30"),children:"Create first agent"}),(0,d.jsx)("button",{className:"secondary",onClick:()=>O("Look for all Client Workspace competitors and provide the daily report"),children:"Test report flow"})]})]})}):null,(0,d.jsx)(D,{spaces:P,activeSpaceId:Q,setActiveSpaceId:R,createSpace:S,renameSpace:T,deleteSpace:U,moveArtifactToSpace:V,artifacts:i,dockedArtifacts:k,minimizedIds:C,hoveredDockId:E,setHoveredDockId:J,toggleMinimize:A,pointerDropSpaceId:K})]}),u&&(()=>{let a=i.find(a=>a.id===u);return a?(0,d.jsx)(G,{artifact:a,docked:!0,onClose:()=>v(null),confirmDeleteId:w,setConfirmDeleteId:x,deleteArtifactById:z,toggleMinimize:A,downloadArtifact:B,registerArtifactFrame:n},a.id):null})(),X&&(0,d.jsx)(I,{x:X.x,y:X.y,spaces:P,activeSpaceId:Q,onMove:a=>V(X.artifactId,a),onClose:()=>Y(null)})]})}),K=(0,e.default)(async()=>{void 0!==require.resolveWeak&&require.resolveWeak("./components/dashboard/config-panel")},{loadableGenerated:{modules:["app/page.js -> ./components/dashboard/config-panel"]},ssr:!1}),L=(0,e.default)(async()=>{void 0!==require.resolveWeak&&require.resolveWeak("./components/dashboard/voice-panel")},{loadableGenerated:{modules:["app/page.js -> ./components/dashboard/voice-panel"]},ssr:!1}),M=(0,e.default)(async()=>{void 0!==require.resolveWeak&&require.resolveWeak("./components/dashboard/trust-mode-confirm-modal")},{loadableGenerated:{modules:["app/page.js -> ./components/dashboard/trust-mode-confirm-modal"]},ssr:!1}),N=(0,e.default)(async()=>{void 0!==require.resolveWeak&&require.resolveWeak("./components/update-banner")},{loadableGenerated:{modules:["app/page.js -> ./components/update-banner"]},ssr:!1});function O(){let{chatHidden:a,setChatHidden:b,configOpen:c,trustModePromptOpen:e,trustModeBusy:f,confirmEnableTrustMode:g,cancelEnableTrustMode:h,voiceOpen:i}=p();return(0,d.jsxs)("main",{className:"visual-frame fresh-frame"+(a?" frame-chat-hidden":""),"aria-label":"madarX OS product",children:[(0,d.jsx)(N,{}),(0,d.jsx)(x,{}),(0,d.jsx)(J,{}),a?(0,d.jsx)("button",{type:"button",className:"chat-restore-bubble",onClick:()=>b(!1),title:"Show chat panel","aria-label":"Show chat panel",children:(0,d.jsx)("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,d.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}):null,c?(0,d.jsx)(K,{}):null,e?(0,d.jsx)(M,{open:e,busy:f,onConfirm:g,onCancel:h}):null,i?(0,d.jsx)(L,{}):null]})}function P(){return(0,d.jsx)(o,{children:(0,d.jsx)(O,{})})}}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[5873,3940,9483,4424,1699,3230,6059,1433],()=>b(b.s=88945));module.exports=c})();
|
|
11
|
+
Action failed: ${a.message}`},c})}finally{d(null)}}async function k(e,f){if(e&&!c){d(e);try{let b=await fetch(`/api/approvals/${encodeURIComponent(e)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({decision:f})});if(!b.ok)throw Error(await b.text());await a()}catch(a){b(b=>[...b,{role:"agent",text:`Approval update failed: ${a.message}`}])}finally{d(null)}}}return{approvalBusyId:c,runtimeOpen:e,setRuntimeOpen:g,runtimeActionBusy:h,approveClaudeRun:j,decideGenericApproval:k,ensureOpsAgentAction:async function(){i("ops");try{let c=await fetch("/api/agents/ops",{method:"POST"});if(!c.ok)throw Error(await c.text());b(a=>[...a,{role:"agent",text:"Caretaker is ready: daily 08:00 schedule, scoped tools, and approval gates configured."}]),await a()}catch(a){b(b=>[...b,{role:"agent",text:`Caretaker setup failed: ${a.message}`}])}finally{i(null)}},processHeartbeatOnceAction:async function(){i("worker");try{let c=await fetch("/api/heartbeat/worker",{method:"POST",headers:{"content-type":"application/json"},body:"{}"});if(!c.ok)throw Error(await c.text());let d=await c.json();b(a=>[...a,{role:"agent",text:`Heartbeat worker processed once: ${d.worked?d.status||"worked":"no queued task"}.`}]),await a()}catch(a){b(b=>[...b,{role:"agent",text:`Heartbeat worker failed: ${a.message}`}])}finally{i(null)}}}}({refresh:I,setChat:d}),R=function({sessionId:a,localBusy:b,reloadSession:c,attach:d,resuming:e}){let[g,h]=(0,f.useState)(!1);return(0,f.useRef)(b).current=b,(0,f.useRef)(e).current=e,(0,f.useRef)(c).current=c,(0,f.useRef)(d).current=d,(0,f.useRef)(a).current=a,{remoteWorking:g&&!b}}({sessionId:o,localBusy:P.busy,reloadSession:O.reloadSession,attach:P.attach,resuming:P.resuming}),S=(0,f.useRef)(w),T=(0,f.useRef)(P),U=(0,f.useRef)(O),V=(0,f.useRef)(null),W=(0,f.useRef)(B),X=(0,f.useRef)(C),Y=(0,f.useRef)(D);S.current=w,T.current=P,U.current=O,V.current=B.openConfig,W.current=B,X.current=C,Y.current=D;let Z=(0,f.useRef)(null);null===Z.current&&(Z.current=new WeakSet);let $=(0,f.useCallback)(a=>{a&&Z.current.add(a)},[]),_=null===a||!u,aa=a||{agents:[],runs:[],schedules:[],connectors:[],artifacts:[],hermes_jobs:[]},ab=(0,f.useMemo)(()=>(aa.runs||[]).find(a=>"claude-code-dry-run"===a.kind&&"approval-needed"===a.status),[aa.runs]),ac=(0,f.useMemo)(()=>(aa.hermes_jobs||[]).filter(a=>"queued"===a.status||"running"===a.status),[aa.hermes_jobs]),ad=aa.pending_approvals||[],ae=aa.heartbeat_tasks||[],af=aa.local_tool_audit||[],ag=aa.local_processes||[],ah=ad.length+ae.length+af.length+ag.length,ai=(0,f.useMemo)(()=>(aa.artifacts||[]).filter(a=>a.content),[aa.artifacts]),aj=(0,f.useMemo)(()=>{var a,b;return a=J.activeSpaceId,b=L.minimizedIds,Array.isArray(ai)?ai.filter(c=>c&&c.content&&(c.space_id||"default")===a&&!b?.[c.id]):[]},[ai,J.activeSpaceId,L.minimizedIds]),ak=(0,f.useMemo)(()=>ai.filter(a=>(a.space_id||"default")===J.activeSpaceId&&L.minimizedIds[a.id]),[ai,J.activeSpaceId,L.minimizedIds]),al=(0,f.useCallback)(a=>{let b=ai.findIndex(b=>b.id===a.id);return L.cardZ?.[a.id]??10+Math.max(0,b)},[ai,L.cardZ]),am=(0,f.useMemo)(()=>aj.reduce((a,b)=>{if(!a)return b.id;let c=aj.find(b=>b.id===a);return al(b)>=al(c)?b.id:a},null),[aj,al]);return{state:a,chat:c,chatHydrated:u,chatHidden:s,setChatHidden:t,usage:e,setUsage:n,sessionId:o,sessionArtifactId:q,selectedProjectId:w,setSelectedProjectId:y,voiceOpen:z,setVoiceOpen:A,initializing:_,counts:aa,approvalRun:ab,activeHermesJobs:ac,pendingApprovals:ad,heartbeatTasks:ae,localActions:af,localProcesses:ag,runtimeSignalCount:ah,artifacts:ai,visibleArtifacts:aj,dockedArtifacts:ak,zForArtifact:al,frontArtifactId:am,ctxLimit:G,ctxPct:H,...B,...C,...D,spaces:J,artifactLayout:L,sessions:O,mainAgent:P,runtimeActions:Q,agentWorkingRemote:R.remoteWorking||P.resuming,registerArtifactFrame:$}}();return(0,d.jsx)(n.Provider,{value:b,children:a})}function p(){let a=(0,f.useContext)(n);if(null===a)throw Error("useDashboard must be used inside <DashboardProvider>");return a}var q=c(45798),r=c(23415),s=c(43929),t=c(23315);let u={starting:"Starting engine…",working:"Working…",generating:"Composing…",thinking:"Thinking…",done:"Finishing…"};function v({thinking:a,status:b,busy:c}){let[e,g]=(0,f.useState)(!1),h=(0,f.useRef)(null),i=!!(a&&a.trim());if(!i&&!c)return null;let j=u[b?.phase]||(i?"Thinking":"Working…"),k=b?.elapsedMs?`${Math.round(b.elapsedMs/1e3)}s`:null;return(0,d.jsxs)("div",{className:"thinking-disclosure"+(e?" open":""),children:[(0,d.jsxs)("button",{type:"button",className:"thinking-toggle",onClick:()=>i&&g(a=>!a),"aria-expanded":e,disabled:!i,title:i?"Show reasoning":void 0,children:[(0,d.jsx)("span",{className:"thinking-dot"+(c?" pulsing":""),"aria-hidden":"true"}),(0,d.jsx)("span",{className:"thinking-label",children:j}),k&&(0,d.jsx)("span",{className:"thinking-elapsed",children:k}),i&&(0,d.jsx)("svg",{className:"thinking-caret"+(e?" open":""),width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:(0,d.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e&&i&&(0,d.jsx)("div",{className:"thinking-body",ref:h,children:a})]})}function w(a){return Math.min(520,Math.max(72,Math.round(a)))}let x=(0,f.memo)(function(){let{initializing:a,models:b,selectedModel:c,modelOpen:e,setModelOpen:g,usage:h,ctxLimit:i,ctxPct:j,grouped:k,pickModel:l,sessions:m,sessionId:n,openConfig:o,chat:u,mainAgent:x,agentWorkingRemote:y,setChatHidden:z,setVoiceOpen:A}=p(),{prompt:B,setPrompt:C}=function(){let[a,b]=(0,f.useState)("");return{prompt:a,setPrompt:b}}(),D=m.sessionsOpen,E=m.setSessionsOpen,F=m.newSession,G=m.openSession,H=m.deleteSession,I=m.sessions||[],J=x.feedRef,K=x.liveSteps,L=x.busyStartTime,M=x.agentPhase,N=x.liveThinking,O=x.liveStatus,P=x.busy,Q=x.command,R=x.stop,S=x.decideApproval,T=x.agentApprovals||[],U=x.resumeAgentApproval,V=(0,f.useCallback)(()=>z(!0),[z]),W=(0,f.useCallback)(()=>A(!0),[A]),X=(0,f.useRef)(null),Y=(0,f.useRef)(null),Z=(0,f.useRef)(0),[$,_]=(0,f.useState)([]),[aa,ab]=(0,f.useState)(!1),[ac,ad]=(0,f.useState)(null),[ae,af]=(0,f.useState)(!1),[ag,ah]=(0,f.useState)(!1),[ai,aj]=(0,f.useState)(120),[ak,al]=(0,f.useState)(!1),am=(0,f.useCallback)(async a=>{let b=Array.from(a||[]).filter(Boolean);b.length&&(ad(null),_(a=>{let c=8-a.length;if(c<=0)return ad("Max 8 files"),a;let d=b.slice(0,c),e=new FormData;return d.forEach(a=>e.append("files",a)),ab(!0),fetch("/api/orchestrator/upload",{method:"POST",body:e}).then(async a=>{let b=await a.json().catch(()=>({}));if(!a.ok)return void ad(b.error||"Upload failed");let c=(b.attachments||[]).map((a,b)=>({...a,previewUrl:"image"===a.kind&&d[b]?URL.createObjectURL(d[b]):null}));_(a=>[...a,...c])}).catch(a=>ad(a.message||"Upload failed")).finally(()=>ab(!1)),a}))},[]),an=(0,f.useCallback)(a=>{_(b=>{let c=b.find(b=>b.id===a);return c?.previewUrl&&URL.revokeObjectURL(c.previewUrl),b.filter(b=>b.id!==a)})},[]),ao=(0,f.useCallback)(()=>{if(P||aa)return;let a=X.current?.value??"";(a.trim()||0!==$.length)&&(C(""),Q(a,$.map(({id:a,name:b,mime:c,size:d,kind:e})=>({id:a,name:b,mime:c,size:d,kind:e}))),$.forEach(a=>{a.previewUrl&&URL.revokeObjectURL(a.previewUrl)}),_([]),ad(null))},[P,aa,$,C,Q]),ap=(0,f.useCallback)(a=>{let b=a.clipboardData?.items;if(!b)return;let c=[];for(let a of b)if("file"===a.kind){let b=a.getAsFile();b&&c.push(b)}c.length&&(a.preventDefault(),am(c))},[am]),aq=(0,f.useCallback)(a=>{a.dataTransfer?.types?.includes("Files")&&(a.preventDefault(),Z.current+=1,af(!0))},[]),ar=(0,f.useCallback)(a=>{a.dataTransfer?.types?.includes("Files")&&a.preventDefault()},[]),as=(0,f.useCallback)(()=>{Z.current=Math.max(0,Z.current-1),0===Z.current&&af(!1)},[]),at=(0,f.useCallback)(a=>{a.dataTransfer?.files?.length&&(a.preventDefault(),Z.current=0,af(!1),am(a.dataTransfer.files))},[am]),au=(0,f.useCallback)(a=>{a.preventDefault();let b=a.clientY;al(!0);let c=a=>aj(w(ai+(b-a.clientY))),d=()=>{al(!1),window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",d)};window.addEventListener("pointermove",c),window.addEventListener("pointerup",d)},[ai]),av=(0,f.useCallback)(a=>{"ArrowUp"===a.key?(a.preventDefault(),aj(a=>w(a+24))):"ArrowDown"===a.key&&(a.preventDefault(),aj(a=>w(a-24)))},[]),aw=(0,f.useCallback)(()=>aj(120),[]);return(0,d.jsxs)("div",{className:"chat-column"+(ae?" chat-column--dragover":"")+(ag?" chat-column--fullscreen":"")+(ak?" chat-column--resizing":""),onDragEnter:aq,onDragOver:ar,onDragLeave:as,onDrop:at,children:[ae&&(0,d.jsx)("div",{className:"chat-dropzone","aria-hidden":"true",children:(0,d.jsxs)("div",{className:"chat-dropzone-inner",children:[(0,d.jsxs)("svg",{width:"34",height:"34",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("path",{d:"M12 16V4M12 4L7 9M12 4l5 5"}),(0,d.jsx)("path",{d:"M4 16v2.5A1.5 1.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5V16"})]}),(0,d.jsx)("span",{children:"Drop files to attach"})]})}),(0,d.jsxs)("section",{className:"chat",children:[(0,d.jsxs)("div",{className:"chat-top",children:[(0,d.jsxs)("div",{className:"model-pill-wrap",children:[(0,d.jsxs)("button",{className:"model-pill",onClick:()=>g(a=>!a),"aria-haspopup":"listbox","aria-expanded":e,title:h.context>0?`Context: ${(h.context/1e3).toFixed(1)}K / ${(i/1e3).toFixed(0)}K (${j}%) \xb7 cache read ${h.cache_read||0}`:"Pick model",children:[(0,d.jsx)("span",{className:"model-name",children:b.find(a=>a.id===c)?.label??c??"Pick model"}),h.context>0?(0,d.jsxs)("span",{className:"ctx-tokens",children:[(h.context/1e3).toFixed(1),"K \xb7 ",j,"%"]}):h.input+h.output>0?(0,d.jsxs)("span",{className:"ctx-tokens",children:[((h.input+h.output)/1e3).toFixed(1),"K ctx"]}):null,(0,d.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,d.jsx)("path",{d:"M2 3.5L5 6.5L8 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e&&(0,d.jsx)("ul",{className:"model-dropdown",role:"listbox",children:k.map(a=>(0,d.jsxs)("li",{className:"model-group",children:[(0,d.jsx)("span",{className:"model-group-label",children:a.label}),(0,d.jsx)("ul",{children:a.items.map(a=>(0,d.jsx)("li",{role:"option","aria-selected":a.id===c,className:"model-option"+(a.id===c?" selected":""),onClick:()=>l(a.id),children:"ollama"===a.engine?a.id:a.label},a.id))})]},a.engine))})]}),(0,d.jsxs)("div",{className:"chat-actions",children:[(0,d.jsxs)("div",{className:"chat-session-menu",children:[(0,d.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:()=>E(a=>!a),title:"Conversations","aria-label":"Conversations","aria-haspopup":"listbox","aria-expanded":D,children:(0,d.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("rect",{x:"3",y:"7",width:"14",height:"14",rx:"3"}),(0,d.jsx)("path",{d:"M7 7V5.5A2.5 2.5 0 0 1 9.5 3H18.5A2.5 2.5 0 0 1 21 5.5V14.5A2.5 2.5 0 0 1 18.5 17H17"})]})}),D&&(0,d.jsxs)("ul",{className:"model-dropdown sessions-dropdown",role:"listbox",children:[(0,d.jsxs)("li",{className:"model-option session-new-option",onClick:F,children:[(0,d.jsx)("span",{children:"+"})," New chat"]}),0===I.length&&(0,d.jsx)("li",{className:"model-option session-empty-option",children:"No saved sessions"}),I.map(a=>{let b=a.total_input_tokens+a.total_output_tokens>0?`${(((a.total_input_tokens||0)+(a.total_output_tokens||0))/1e3).toFixed(1)}K`:"0";return(0,d.jsxs)("li",{role:"option","aria-selected":a.id===n,className:"model-option session-option"+(a.id===n?" selected":""),onClick:()=>G(a.id),children:[(0,d.jsx)("span",{className:"session-title",children:a.title||"Untitled chat"}),(0,d.jsx)("span",{className:"session-tokens",children:b}),(0,d.jsx)("button",{onClick:b=>{b.stopPropagation(),H(a.id)},title:"Delete session","aria-label":"Delete session",className:"session-delete-btn",children:"x"})]},a.id)})]})]}),W?(0,d.jsx)("button",{className:"config-btn voice-launch",style:{marginLeft:0},onClick:W,title:"Open voice console","aria-label":"Open voice console",children:(0,d.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,d.jsx)("rect",{x:"9",y:"3",width:"6",height:"12",rx:"3"}),(0,d.jsx)("path",{d:"M5 11a7 7 0 0 0 14 0"}),(0,d.jsx)("line",{x1:"12",y1:"18",x2:"12",y2:"21"}),(0,d.jsx)("line",{x1:"8",y1:"21",x2:"16",y2:"21"})]})}):null,(0,d.jsx)("button",{className:"config-btn"+(ag?" on":""),style:{marginLeft:0},onClick:()=>ah(a=>!a),title:ag?"Exit full screen":"Full screen","aria-label":ag?"Exit full screen":"Full screen","aria-pressed":ag,children:ag?(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5"})}):(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5"})})}),V?(0,d.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:V,title:"Minimize","aria-label":"Minimize chat",children:(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M5 12h14"})})}):null,(0,d.jsx)("button",{className:"config-btn",style:{marginLeft:0},onClick:o,title:"Settings","aria-label":"Agent settings",children:(0,d.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("line",{x1:"4",y1:"7",x2:"20",y2:"7"}),(0,d.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,d.jsx)("line",{x1:"4",y1:"17",x2:"20",y2:"17"}),(0,d.jsx)("circle",{cx:"15",cy:"7",r:"2",fill:"currentColor",stroke:"none"}),(0,d.jsx)("circle",{cx:"9",cy:"12",r:"2",fill:"currentColor",stroke:"none"}),(0,d.jsx)("circle",{cx:"17",cy:"17",r:"2",fill:"currentColor",stroke:"none"})]})})]})]}),(0,d.jsxs)("div",{className:"feed",ref:J,children:[a?(0,d.jsxs)("div",{className:"feed-skeleton","aria-hidden":"true",children:[(0,d.jsxs)("div",{className:"msg agent msg--skel",children:[(0,d.jsx)("div",{className:"skel sk-line sk-line--w90"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w70"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w55"})]}),(0,d.jsxs)("div",{className:"msg user msg--skel",children:[(0,d.jsx)("div",{className:"skel sk-line sk-line--w65"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w40"})]}),(0,d.jsxs)("div",{className:"msg agent msg--skel",children:[(0,d.jsx)("div",{className:"skel sk-line sk-line--w85"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w50"})]})]}):u.map((a,b)=>{var c,e;let f="agent"===a.role,g=f&&a.streaming?(c=a.text)?c.replace(/```madarx-action[\s\S]*?```/gi,"").replace(/```madarx-action[\s\S]*$/i,"").replace(/```html[\s\S]*?```/gi,"").replace(/```html[\s\S]*$/i,"").replace(/<!doctype html[\s\S]*$/i,"").replace(/<html[\s>][\s\S]*$/i,"").trim():"":a.text,h=f&&(a.building||a.streaming&&!g&&(e=a.text,/```html|<!doctype html|<html[\s>]/i.test(e||""))),i=f&&Array.isArray(a.tools)&&a.tools.length>0;return!f||g||h||i?(0,d.jsxs)("div",{className:"msg "+a.role+(a.streaming?" msg--streaming":"")+(h?" msg--building":""),children:[h?(0,d.jsxs)("div",{className:"artifact-building","aria-live":"polite",children:[(0,d.jsx)("span",{className:"artifact-building-orb","aria-hidden":"true"}),(0,d.jsxs)("span",{className:"artifact-building-label",children:["Designing the page",(0,d.jsxs)("span",{className:"artifact-building-dots",children:[(0,d.jsx)("i",{children:"."}),(0,d.jsx)("i",{children:"."}),(0,d.jsx)("i",{children:"."})]})]})]}):(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:g}),Array.isArray(a.attachments)&&a.attachments.length>0&&(0,d.jsx)("div",{className:"msg-attachments",children:a.attachments.map(a=>(0,d.jsxs)("span",{className:"msg-attach-chip",title:a.name,children:[(0,d.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,d.jsx)("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),(0,d.jsx)("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"})]}),a.name]},a.id))}),f&&Array.isArray(a.tools)&&a.tools.length>0&&(0,d.jsx)("div",{className:"tool-steps tool-steps--restored",children:a.tools.map((a,b)=>(0,d.jsxs)("div",{className:"tool-step tool-step--done",children:[(0,d.jsx)("span",{className:"tool-step-icon","aria-hidden":"true",children:(0,d.jsx)(s.Sr,{})}),(0,d.jsx)("code",{className:"tool-step-name",children:(0,t.U_)(a.name)})]},b))})]},b):null}),(P||N&&N.trim())&&(0,d.jsx)(v,{thinking:N,status:O,busy:P}),K.length>0&&(0,d.jsxs)("div",{className:"tool-steps",children:[K.map(a=>{let b="claude_code_cli"===a.name||"codex_cli"===a.name,c=(0,t.bX)(a.name,a.input),e="awaiting_approval"===a.status,f="number"==typeof a.durationMs&&a.durationMs>0?(0,t.wb)(a.durationMs):null,g=a.preview?String(a.preview).split("\n").find(a=>a.trim()):null;return(0,d.jsxs)("div",{className:`tool-step tool-step--${a.status}`+(b?" tool-step--cli":""),children:[(0,d.jsxs)("span",{className:"tool-step-icon","aria-hidden":"true",children:["running"===a.status&&(0,d.jsx)(s.Nl,{}),"done"===a.status&&(0,d.jsx)(s.Sr,{}),"approved"===a.status&&(0,d.jsx)(s.Sr,{}),("error"===a.status||"denied"===a.status)&&(0,d.jsx)(s.wx,{}),e&&(0,d.jsx)("span",{style:{display:"inline-block",width:8,height:8,borderRadius:4,background:"#c2452a"}})]}),!b&&(0,d.jsx)("code",{className:"tool-step-name",children:(0,t.U_)(a.name)}),c&&(0,d.jsx)("span",{className:"tool-step-sub",children:c}),g&&"done"===a.status&&(0,d.jsx)("span",{className:"tool-step-preview",title:a.preview,children:g.slice(0,64)}),f&&!e&&(0,d.jsx)("span",{className:"tool-step-dur",children:f}),e&&a.approval_id?(0,d.jsxs)("span",{className:"tool-step-approve",style:{marginLeft:"auto",display:"inline-flex",gap:6},children:[(0,d.jsx)("button",{type:"button",onClick:()=>S(a.approval_id,"approved",a.name),style:{appearance:"none",border:0,background:"#c2452a",color:"#fff",padding:"4px 10px",borderRadius:999,font:"600 11.5px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Approve"}),(0,d.jsx)("button",{type:"button",onClick:()=>S(a.approval_id,"denied",a.name),style:{appearance:"none",border:"1px solid rgba(17,19,24,.16)",background:"#fff",color:"#313740",padding:"4px 10px",borderRadius:999,font:"600 11.5px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Deny"})]}):null]},a.id)}),P&&L&&("synthesis"===M||"tool"===M)&&(0,d.jsx)("div",{className:"tool-step-elapsed",children:(0,d.jsx)(s.YE,{startTime:L})})]}),T.length>0&&(0,d.jsx)("div",{className:"agent-approvals",children:T.map(a=>{let b="pending"===a.status,c="resuming"===a.status,e="done"===a.status||"approved"===a.status,f="denied"===a.status,g="error"===a.status;return(0,d.jsxs)("div",{className:"agent-approval-card",style:{margin:"8px 0",padding:"12px 14px",borderRadius:12,border:"1px solid rgba(17,19,24,.12)",background:"#fff",display:"flex",flexDirection:"column",gap:8},children:[(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,d.jsx)("span",{style:{display:"inline-block",width:8,height:8,borderRadius:4,background:b?"#c2452a":e?"#2f9e44":"#9a968d"}}),(0,d.jsxs)("strong",{style:{font:"600 13px/1.3 ui-sans-serif,system-ui"},children:[a.agent_name," needs your approval"]})]}),(0,d.jsx)("div",{style:{font:"400 12.5px/1.45 ui-sans-serif,system-ui",color:"#5b606b"},children:a.summary||`Approve to run ${a.tool_name}.`}),b&&(0,d.jsxs)("div",{style:{display:"inline-flex",gap:6},children:[(0,d.jsx)("button",{type:"button",onClick:()=>U(a.approval_id,"approved"),style:{appearance:"none",border:0,background:"#c2452a",color:"#fff",padding:"6px 14px",borderRadius:999,font:"600 12px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Approve & continue"}),(0,d.jsx)("button",{type:"button",onClick:()=>U(a.approval_id,"denied"),style:{appearance:"none",border:"1px solid rgba(17,19,24,.16)",background:"#fff",color:"#313740",padding:"6px 14px",borderRadius:999,font:"600 12px/1 ui-sans-serif,system-ui",cursor:"pointer"},children:"Deny"})]}),c&&(0,d.jsx)("div",{style:{font:"500 12px/1 ui-sans-serif,system-ui",color:"#c2452a"},children:"Running…"}),e&&(0,d.jsx)("div",{style:{font:"500 12px/1 ui-sans-serif,system-ui",color:"#2f9e44"},children:"Approved — done."}),f&&(0,d.jsx)("div",{style:{font:"500 12px/1 ui-sans-serif,system-ui",color:"#9a968d"},children:"Denied."}),g&&(0,d.jsxs)("div",{style:{font:"500 12px/1 ui-sans-serif,system-ui",color:"#c2452a"},children:["Couldn’t continue: ",String(a.error||"error")]})]},a.approval_id)})}),P&&0===K.length&&!O&&!(N&&N.trim())&&(0,d.jsxs)("div",{className:"typing-indicator",children:[(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{})]}),!P&&y&&(0,d.jsxs)("div",{className:"agent-resume-banner","aria-live":"polite",children:[(0,d.jsx)("span",{className:"agent-resume-orb","aria-hidden":"true"}),(0,d.jsxs)("span",{className:"agent-resume-label",children:["Agent still working",(0,d.jsxs)("span",{className:"artifact-building-dots",children:[(0,d.jsx)("i",{children:"."}),(0,d.jsx)("i",{children:"."}),(0,d.jsx)("i",{children:"."})]})]}),(0,d.jsx)("span",{className:"agent-resume-sub",children:"picking up where you left off"})]})]})]}),(0,d.jsx)("div",{className:"composer-resizer",role:"separator","aria-orientation":"horizontal","aria-label":"Resize the message input","aria-valuenow":ai,tabIndex:0,onPointerDown:au,onKeyDown:av,onDoubleClick:aw,title:"Drag to resize \xb7 double-click to reset",children:(0,d.jsx)("span",{className:"composer-resizer-grip","aria-hidden":"true"})}),(0,d.jsx)("section",{className:"composer-panel",style:{height:ai},"aria-label":"Message input",children:(0,d.jsxs)("form",{className:"composer",onSubmit:a=>{a.preventDefault(),ao()},children:[(0,d.jsx)("input",{ref:Y,type:"file",multiple:!0,hidden:!0,accept:"image/png,image/jpeg,image/gif,image/webp,application/pdf,text/*,.md,.markdown,.csv,.tsv,.json,.jsonl,.log,.yaml,.yml,.xml,.html,.css,.js,.jsx,.ts,.tsx,.mjs,.cjs,.py,.rb,.go,.rs,.java,.c,.h,.cpp,.cs,.php,.sh,.sql,.toml,.ini",onChange:a=>{am(a.target.files),a.target.value=""}}),(0,d.jsxs)("div",{className:"composer-field",children:[($.length>0||aa||ac)&&(0,d.jsxs)("div",{className:"composer-attachments",children:[$.map(a=>{var b;return(0,d.jsxs)("span",{className:"attach-chip",title:`${a.name} \xb7 ${!(b=a.size)&&0!==b?"":b<1024?`${b} B`:b<1048576?`${(b/1024).toFixed(0)} KB`:`${(b/1024/1024).toFixed(1)} MB`}`,children:[a.previewUrl?(0,d.jsx)("img",{className:"attach-chip-thumb",src:a.previewUrl,alt:""}):(0,d.jsxs)("svg",{className:"attach-chip-icon",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,d.jsx)("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),(0,d.jsx)("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"})]}),(0,d.jsx)("span",{className:"attach-chip-name",children:a.name}),(0,d.jsx)("button",{type:"button",className:"attach-chip-x",onClick:()=>an(a.id),"aria-label":`Remove ${a.name}`,children:(0,d.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:(0,d.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})})]},a.id)}),aa&&(0,d.jsx)("span",{className:"attach-uploading",children:"Uploading…"}),ac&&(0,d.jsx)("span",{className:"attach-error",children:ac})]}),(0,d.jsx)("textarea",{ref:X,"data-madarx-composer":"true",value:B,onChange:a=>C(a.target.value),onPaste:ap,onKeyDown:a=>{"Enter"!==a.key||a.shiftKey||(a.preventDefault(),ao())},placeholder:"Start fresh: ask the main agent to create the first agent, report, schedule, or UI task…",rows:3})]}),(0,d.jsxs)("div",{className:"composer-actions",children:[(0,d.jsx)("button",{type:"button",className:"attach-btn",onClick:()=>Y.current?.click(),disabled:P,title:"Attach files","aria-label":"Attach files",children:(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M21.4 11.05 12.25 20.2a5.5 5.5 0 0 1-7.78-7.78l9.2-9.2a3.67 3.67 0 0 1 5.18 5.18l-9.2 9.19a1.83 1.83 0 0 1-2.59-2.59l8.49-8.48"})})}),P?(0,d.jsx)("button",{type:"button",className:"send-btn send-btn--stop",onClick:a=>{a.preventDefault(),R&&R()},"aria-label":"Stop main agent",title:"Stop main agent",children:(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",children:(0,d.jsx)("rect",{x:"5",y:"5",width:"8",height:"8",rx:"1.5",fill:"currentColor"})})}):(0,d.jsx)("button",{className:"send-btn",disabled:!B.trim()&&0===$.length||aa,"aria-label":"Send",children:(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",children:(0,d.jsx)("path",{d:"M9 14V4M9 4L4.5 8.5M9 4L13.5 8.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})})]})});var y=c(23312);function z(){return(0,d.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,d.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),(0,d.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"})]})}function A({spaceId:a,spaceName:b,onClose:c}){let[e,g]=(0,f.useState)([]),[h,i]=(0,f.useState)(!0),[j,k]=(0,f.useState)(!1),[l,m]=(0,f.useState)(""),[n,o]=(0,f.useState)(null),[p,q]=(0,f.useState)(7),[r,s]=(0,f.useState)(50),[t,u]=(0,f.useState)(!1),[v,w]=(0,f.useState)(!1),[x,A]=(0,f.useState)(null),[B,C]=(0,f.useState)("org"),[D,E]=(0,f.useState)(!1),[F,G]=(0,f.useState)(!1),H=(0,f.useCallback)(a=>`/share/space/${a}`,[""]),I=(0,f.useCallback)(async()=>{i(!0);try{let[b,c]=await Promise.all([fetch(`/api/dashboard/spaces/${a}/share-link`,{cache:"no-store"}),fetch(`/api/shared/spaces/status?local_space_id=${encodeURIComponent(a)}&space_type=dashboard_space`,{cache:"no-store"})]),d=await b.json().catch(()=>({}));b.ok&&g(d.data||[]);let e=await c.json().catch(()=>({}));c.ok&&(w(!!e.cloud_ready),A(e.status||null))}catch{m("Failed to load share state.")}finally{i(!1)}},[a]);async function J(b){b.preventDefault(),k(!0),m("");try{let b=await fetch(`/api/dashboard/spaces/${a}/share-link`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({expires_in_days:Number(p)||null,max_views:Number(r)||null,require_email_otp:t})}),c=await b.json().catch(()=>({}));if(!b.ok)return void m(c.error||"Failed to create link.");await I()}catch{m("Failed to create link.")}finally{k(!1)}}async function K(b){try{(await fetch(`/api/dashboard/spaces/${a}/share-link/${b}`,{method:"DELETE"})).ok&&g(a=>a.filter(a=>a.id!==b))}catch{}}async function L(a,b){try{await navigator.clipboard.writeText(H(a)),o(b),setTimeout(()=>o(null),1500)}catch{}}async function M(){E(!0),m("");try{let b=await fetch("/api/shared/spaces/publish",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({space_type:"dashboard_space",space_id:a,visibility:B})}),c=await b.json().catch(()=>({}));if(!b.ok)return void m("shared_cloud_not_configured"===c.error?"Supabase cloud is not configured.":c.error||"Publish failed.");A(c.status||null)}catch{m("Publish failed.")}finally{E(!1)}}async function N(){E(!0),m("");try{let b=await fetch("/api/shared/spaces/unpublish",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({local_space_id:a,space_type:"dashboard_space"})}),c=await b.json().catch(()=>({}));if(!b.ok)return void m(c.error||"Unpublish failed.");A(c.status||null)}catch{m("Unpublish failed.")}finally{E(!1)}}let O=x?.shared||x?.status==="published";return F?(0,y.createPortal)((0,d.jsx)("div",{className:"space-share-overlay",onClick:c,children:(0,d.jsxs)("div",{className:"space-share-modal",onClick:a=>a.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":`Share ${b}`,children:[(0,d.jsxs)("div",{className:"ssm-head",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"ssm-eyebrow",children:"Share space"}),(0,d.jsx)("h2",{className:"ssm-title",children:b})]}),(0,d.jsx)("button",{type:"button",className:"ssm-close",onClick:c,"aria-label":"Close",children:(0,d.jsx)(z,{})})]}),l?(0,d.jsx)("div",{className:"ssm-error",children:l}):null,(0,d.jsxs)("section",{className:"ssm-section",children:[(0,d.jsx)("h3",{className:"ssm-section-title",children:"Public link"}),(0,d.jsx)("p",{className:"ssm-note",children:"Anyone with the link can view every artifact in this space. New and moved-in artifacts are included automatically."}),(0,d.jsxs)("form",{className:"ssm-form",onSubmit:J,children:[(0,d.jsxs)("label",{className:"ssm-field",children:[(0,d.jsx)("span",{children:"Expires in (days)"}),(0,d.jsx)("input",{type:"number",min:"0",max:"90",value:p,onChange:a=>q(a.target.value)})]}),(0,d.jsxs)("label",{className:"ssm-field",children:[(0,d.jsx)("span",{children:"Max views"}),(0,d.jsx)("input",{type:"number",min:"0",value:r,onChange:a=>s(a.target.value)})]}),(0,d.jsxs)("label",{className:"ssm-check",children:[(0,d.jsx)("input",{type:"checkbox",checked:t,onChange:a=>u(a.target.checked)}),(0,d.jsx)("span",{children:"Require email verification"})]}),(0,d.jsx)("button",{type:"submit",className:"ssm-btn ssm-btn-primary",disabled:j,children:j?"Creating…":"Create link"})]}),(0,d.jsxs)("div",{className:"ssm-links",children:[h?(0,d.jsx)("div",{className:"ssm-muted",children:"Loading…"}):null,h||0!==e.length?null:(0,d.jsx)("div",{className:"ssm-muted",children:"No active links."}),e.map(a=>(0,d.jsxs)("div",{className:"ssm-link",children:[(0,d.jsxs)("div",{className:"ssm-link-main",children:[(0,d.jsx)("input",{className:"ssm-link-url",readOnly:!0,value:H(a.token),onFocus:a=>a.target.select()}),(0,d.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm",onClick:()=>L(a.token,a.id),children:n===a.id?"Copied":"Copy"}),(0,d.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm ssm-btn-danger",onClick:()=>K(a.id),children:"Revoke"})]}),(0,d.jsxs)("div",{className:"ssm-link-meta",children:["Expires ",function(a){if(!a)return"never";try{return new Date(a).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}catch{return a}}(a.expires_at)," \xb7 ",a.access_count,null!=a.max_views?`/${a.max_views}`:""," views",a.require_email_otp?" \xb7 email-gated":""]})]},a.id))]})]}),v?(0,d.jsxs)("section",{className:"ssm-section",children:[(0,d.jsx)("h3",{className:"ssm-section-title",children:"Org workspace"}),(0,d.jsx)("p",{className:"ssm-note",children:"Publish this space to your organization. Only signed-in teammates can see it."}),O?(0,d.jsxs)("div",{className:"ssm-cloud-status",children:[(0,d.jsx)("span",{className:"ssm-badge ssm-badge-on",children:"Published"}),(0,d.jsxs)("span",{className:"ssm-muted",children:[x?.visibility||"org"," \xb7 ",x?.resource_count??0," artifacts indexed"]}),(0,d.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-sm ssm-btn-danger",onClick:N,disabled:D,children:D?"…":"Unpublish"})]}):(0,d.jsxs)("div",{className:"ssm-form",children:[(0,d.jsxs)("label",{className:"ssm-field",children:[(0,d.jsx)("span",{children:"Visibility"}),(0,d.jsxs)("select",{value:B,onChange:a=>C(a.target.value),children:[(0,d.jsx)("option",{value:"org",children:"Whole organization"}),(0,d.jsx)("option",{value:"team",children:"Team"}),(0,d.jsx)("option",{value:"private",children:"Private"})]})]}),(0,d.jsx)("button",{type:"button",className:"ssm-btn ssm-btn-primary",onClick:M,disabled:D,children:D?"Publishing…":"Publish to org"})]})]}):null]})}),document.body):null}function B({space:a,active:b,count:c,onActivate:e,onRename:g,onDelete:h,onShare:i,isEmpty:j,canDelete:k,onMoveArtifactHere:l,dragOverSpaceId:m,setDragOverSpaceId:n,pointerDropSpaceId:o}){let[p,q]=(0,f.useState)(!1),[r,s]=(0,f.useState)(a.name),[t,u]=(0,f.useState)(!1),v=(0,f.useRef)(null),w=(0,f.useRef)(null);function x(){q(!1);let b=r.trim();b&&b!==a.name?g(a.id,b):s(a.name)}return(0,d.jsxs)("div",{"data-space-id":a.id,className:"space-chip"+(b?" is-active":"")+(m===a.id||o===a.id?" is-drop-target":""),onClick:()=>{p||e(a.id)},onDoubleClick:a=>{a.stopPropagation(),q(!0)},onContextMenu:a=>{a.preventDefault(),u(!0)},onDragOver:b=>{b.preventDefault(),n(a.id)},onDragLeave:()=>n(b=>b===a.id?null:b),onDrop:b=>{b.preventDefault();let c=b.dataTransfer.getData("text/x-artifact-id");c&&l(c,a.id),n(null)},title:p?"":"Click to switch \xb7 Double-click to rename \xb7 Right-click for more",children:[p?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("input",{ref:w,className:"space-chip-input",value:r,onChange:a=>s(a.target.value),onBlur:x,onKeyDown:b=>{"Enter"===b.key?x():"Escape"===b.key&&(q(!1),s(a.name))},maxLength:32}),j&&k&&(0,d.jsx)("button",{type:"button",className:"space-chip-action space-chip-action--delete",onMouseDown:a=>a.preventDefault(),onClick:b=>{b.stopPropagation(),h(a.id)},"aria-label":`Delete ${a.name}`,title:"Delete empty space",tabIndex:-1,children:(0,d.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":"true",children:[(0,d.jsx)("line",{x1:"3.5",y1:"3.5",x2:"12.5",y2:"12.5"}),(0,d.jsx)("line",{x1:"12.5",y1:"3.5",x2:"3.5",y2:"12.5"})]})})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"space-chip-name",children:a.name}),c>0&&(0,d.jsx)("span",{className:"space-chip-count",children:c})]}),t&&(0,d.jsxs)("div",{className:"space-chip-menu",ref:v,onClick:a=>a.stopPropagation(),children:[(0,d.jsx)("button",{type:"button",onClick:()=>{u(!1),q(!0)},children:"Rename"}),(0,d.jsx)("button",{type:"button",onClick:()=>{u(!1),i(a.id)},children:"Share"}),(0,d.jsxs)("button",{type:"button",disabled:!k||!j,onClick:()=>{u(!1),k&&j&&h(a.id)},title:j?k?"Delete this empty space":"Cannot delete the last space":"Move or delete its artifacts first",children:["Delete",j?"":" (not empty)"]})]})]})}function C({artifact:a,spaces:b,activeSpaceId:c,hoveredDockId:e,setHoveredDockId:g,onRestore:h,onMove:j}){let k=(0,i.o0)(a.kind),[l,m]=(0,f.useState)(!1),n=(0,f.useRef)(null),o=b.filter(a=>a.id!==c);return(0,d.jsxs)("div",{className:"dock-item",onMouseEnter:()=>g(a.id),onMouseLeave:()=>g(b=>b===a.id?null:b),onContextMenu:a=>{a.preventDefault(),m(!0)},draggable:!0,onDragStart:b=>{b.dataTransfer.setData("text/x-artifact-id",a.id),b.dataTransfer.effectAllowed="move"},children:[(0,d.jsx)("button",{type:"button",className:"dock-card",onClick:()=>h(a.id),"aria-label":`Restore: ${a.title}`,title:a.title||"Artifact",children:(0,d.jsx)("div",{className:"dock-thumb",children:a.content?k?(0,d.jsx)("iframe",{srcDoc:(0,i.sV)(a.content),sandbox:"allow-same-origin",title:`Thumbnail: ${a.title}`,tabIndex:-1,"aria-hidden":"true",loading:"lazy"}):(0,d.jsx)("div",{className:"win-md",children:(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:a.content})}):(0,d.jsx)("div",{className:"dock-thumb-empty",children:a.kind||"doc"})})}),e===a.id&&!l&&(0,d.jsxs)("div",{className:"dock-preview",role:"tooltip",children:[(0,d.jsxs)("div",{className:"dock-preview-title",children:[(0,d.jsx)("span",{className:"artifact-kind-badge "+(a.kind||"text"),children:a.kind}),(0,d.jsx)("b",{children:a.title||"Artifact"})]}),(0,d.jsx)("div",{className:"dock-preview-body"+(k?" is-html":" is-md"),children:k?(0,d.jsx)("iframe",{srcDoc:(0,i.sV)(a.content),sandbox:"allow-scripts allow-same-origin",title:`Preview: ${a.title}`,tabIndex:-1,"aria-hidden":"true"}):(0,d.jsx)("div",{className:"win-md",children:(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:a.content||""})})})]}),l&&(0,d.jsxs)("div",{className:"dock-item-menu",ref:n,onClick:a=>a.stopPropagation(),children:[(0,d.jsx)("div",{className:"dock-item-menu-label",children:"Move to space"}),0===o.length?(0,d.jsx)("div",{className:"dock-item-menu-empty",children:"No other spaces"}):o.map(b=>(0,d.jsx)("button",{type:"button",onClick:()=>{j(a.id,b.id),m(!1)},children:b.name},b.id)),(0,d.jsx)("div",{className:"dock-item-menu-divider"}),(0,d.jsx)("button",{type:"button",onClick:()=>{h(a.id),m(!1)},children:"Restore"})]})]})}function D({spaces:a,activeSpaceId:b,setActiveSpaceId:c,createSpace:e,renameSpace:g,deleteSpace:h,moveArtifactToSpace:i,artifacts:j,dockedArtifacts:k,minimizedIds:l,hoveredDockId:m,setHoveredDockId:n,toggleMinimize:o,pointerDropSpaceId:p}){let[q,r]=(0,f.useState)(null),[s,t]=(0,f.useState)(null),u=(0,f.useMemo)(()=>{let b=new Map;for(let c of a)b.set(c.id,[]);for(let a of j||[]){let c=a.space_id||"default";b.has(c)&&b.get(c).push(a.id)}return b},[a,j]);function v(a,b){i(a,b)}return(0,d.jsxs)("div",{className:"artifact-dock",role:"toolbar","aria-label":"Spaces and minimized artifacts",children:[(0,d.jsxs)("div",{className:"dock-spaces",children:[a.map(e=>(0,d.jsx)(B,{space:e,active:e.id===b,count:(u.get(e.id)||[]).filter(a=>!l[a]).length,isEmpty:0===(u.get(e.id)||[]).length,onActivate:c,onRename:g,onDelete:h,onShare:t,canDelete:a.length>1,onMoveArtifactHere:v,dragOverSpaceId:q,setDragOverSpaceId:r,pointerDropSpaceId:p},e.id)),(0,d.jsx)("button",{type:"button",className:"space-add",onClick:()=>e(),"aria-label":"Create new space",title:"New space",children:(0,d.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",children:[(0,d.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,d.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]}),k.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"dock-divider","aria-hidden":"true"}),(0,d.jsx)("div",{className:"dock-items",children:k.map(c=>(0,d.jsx)(C,{artifact:c,spaces:a,activeSpaceId:b,hoveredDockId:m,setHoveredDockId:n,onRestore:o,onMove:v},c.id))})]}),s?(0,d.jsx)(A,{spaceId:s,spaceName:(a.find(a=>a.id===s)||{}).name||"Space",onClose:()=>t(null)}):null]})}function E({onActivate:a}){let b=(0,f.useRef)(null);return(0,d.jsx)("div",{ref:b,className:"iframe-focus-shield","aria-hidden":"true",onPointerDown:b=>{b.preventDefault(),b.stopPropagation(),a()}})}function F({confirmDeleteId:a,setConfirmDeleteId:b,deleteArtifactById:c,setMoveMenu:e}){let{visibleArtifacts:f,frontArtifactId:g,zForArtifact:h,artifactLayout:j,registerArtifactFrame:k}=p(),l=j.setBoardEl,m=j.getLayout,n=j.draggingId,o=j.resizingId,s=j.selectedArtifactId,t=j.toggleMinimize,u=j.setFullscreenId,v=j.downloadArtifact,w=j.startDrag,x=j.startResize,y=j.bringToFront;return(0,d.jsx)("div",{ref:l,className:"canvas-board canvas-board--docked",children:f.map((f,j)=>{let l=m(f.id,j),p=h(f),z=(0,i.o0)(f.kind),A=f.id===g;return(0,d.jsxs)("div",{className:"artifact-window-wrap"+(n===f.id?" is-dragging":""),"data-dragging":n===f.id?"true":"false","data-resizing":o===f.id?"true":"false",style:{transform:`translate3d(${l.x}px, ${l.y}px, 0)`,width:l.width,height:l.height,zIndex:p},onPointerDown:()=>y(f.id),children:[(0,d.jsxs)("div",{className:"window artifact-window"+(f.id===s?" artifact-window--new":""),children:[(0,d.jsx)("div",{className:"winbar",onPointerDown:a=>w(a,f.id),onDoubleClick:a=>{a.target.closest("button, i, .confirm-label")||u(f.id)},onContextMenu:a=>{a.target.closest("button, i, .confirm-label")||(a.preventDefault(),e({artifactId:f.id,x:a.clientX,y:a.clientY}))},title:"Drag onto a space chip to move \xb7 Right-click for more \xb7 Double-click to expand",children:a===f.id?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"confirm-label",children:"Delete permanently?"}),(0,d.jsx)("button",{className:"confirm-cancel",onClick:()=>b(null),children:"Cancel"}),(0,d.jsx)("button",{className:"confirm-delete",onClick:()=>c(f.id),children:"Delete"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("i",{className:"dot-close",onClick:()=>b(f.id),title:"Delete"}),(0,d.jsx)("i",{className:"dot-minimize",onClick:()=>t(f.id),title:"Minimize"}),(0,d.jsx)("i",{className:"dot-zoom",onClick:()=>u(f.id),title:"Expand"}),(0,d.jsx)("b",{children:f.title||"Artifact"}),(0,d.jsx)("span",{className:"artifact-kind-badge "+(f.kind||"text"),children:f.kind}),(0,d.jsx)("button",{className:"winbar-dl",onClick:()=>v(f),title:(0,i.o0)(f.kind)?"Download .html":"Download .md",children:(0,d.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("path",{d:"M8 2v9M4 7l4 4 4-4"}),(0,d.jsx)("line",{x1:"2",y1:"14",x2:"14",y2:"14"})]})})]})}),(0,d.jsxs)("div",{className:"win-content",onWheelCapture:i.qE,children:[n===f.id&&(0,d.jsx)("div",{className:"drag-blocker"}),o===f.id&&(0,d.jsx)("div",{className:"resize-blocker"}),z?(0,d.jsxs)(d.Fragment,{children:[!A&&(0,d.jsx)(E,{onActivate:()=>y(f.id)}),(0,d.jsx)("iframe",{ref:(0,i.Jw)(k),srcDoc:(0,i.sV)(f.content),sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",title:f.title,onLoad:i.MZ})]}):(0,d.jsx)("div",{className:"win-md",children:(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:f.content||""})})]})]}),["nw","n","ne","e","se","s","sw","w"].map(a=>(0,d.jsx)("div",{className:"resize-edge resize-"+a,onPointerDown:b=>x(b,f.id,a)},a))]},f.id)})})}function G({artifact:a,docked:b,onClose:c,confirmDeleteId:e,setConfirmDeleteId:g,deleteArtifactById:h,toggleMinimize:j,downloadArtifact:k,registerArtifactFrame:l}){let[m,n]=(0,f.useState)("enter"),o=(0,f.useRef)(!1);function p(a){o.current||(o.current=!0,n("exit"),setTimeout(()=>{"function"==typeof a&&a(),c()},260))}return(0,d.jsxs)("div",{className:"artifact-fs"+(b?" artifact-fs--docked":""),"data-phase":m,children:[(0,d.jsx)("div",{className:"winbar artifact-fs-bar",onDoubleClick:a=>{a.target.closest("button, i, .confirm-label")||p()},title:"Double-click to exit fullscreen",children:e===a.id?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"confirm-label",children:"Delete permanently?"}),(0,d.jsx)("button",{className:"confirm-cancel",onClick:()=>g(null),children:"Cancel"}),(0,d.jsx)("button",{className:"confirm-delete",onClick:()=>p(()=>h(a.id)),children:"Delete"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("i",{className:"dot-close",onClick:()=>g(a.id),title:"Delete"}),(0,d.jsx)("i",{className:"dot-minimize",onClick:()=>p(()=>j(a.id)),title:"Minimize"}),(0,d.jsx)("i",{className:"dot-zoom",onClick:()=>p(),title:"Exit fullscreen"}),(0,d.jsx)("b",{children:a.title||"Artifact"}),(0,d.jsx)("span",{className:"artifact-kind-badge "+(a.kind||"text"),children:a.kind}),(0,d.jsx)("button",{className:"winbar-dl",onClick:()=>k(a),title:(0,i.o0)(a.kind)?"Download .html":"Download .md",children:(0,d.jsxs)("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("path",{d:"M8 2v9M4 7l4 4 4-4"}),(0,d.jsx)("line",{x1:"2",y1:"14",x2:"14",y2:"14"})]})})]})}),(0,d.jsx)("div",{className:"artifact-fs-content",children:(0,i.o0)(a.kind)?(0,d.jsx)("iframe",{ref:(0,i.Jw)(l),srcDoc:(0,i.sV)(a.content),sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",title:a.title,onLoad:i.MZ}):(0,d.jsx)("div",{className:"win-md",children:(0,d.jsx)(q.oz,{remarkPlugins:[r.A],children:a.content||""})})})]})}function H(){let{mainAgent:a,runtimeActions:b,runtimeSignalCount:c,pendingApprovals:e,heartbeatTasks:f,localProcesses:g,localActions:h}=p(),i=b.runtimeOpen,j=b.setRuntimeOpen,k=a.busy,l=a.hasBgActivity,m=a.bgAgentList,n=a.busyStartTime,o=a.agentPhase,q=a.liveSteps,r=b.decideGenericApproval,u=b.approvalBusyId,v=b.ensureOpsAgentAction,w=b.processHeartbeatOnceAction,x=b.runtimeActionBusy;return(0,d.jsxs)("div",{className:"runtime-menu-wrap",children:[(0,d.jsxs)("button",{className:"runtime-menu-btn"+(i?" on":"")+(k||l?" runtime-menu-btn--busy":""),onClick:()=>j(a=>!a),title:k?"Main agent is working — click to see live activity":l?`${m.filter(a=>"running"===a.status).length} background agent(s) working`:"Runtime activity","aria-label":"Runtime activity","aria-expanded":i,children:[(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M4 12h4l2-7 4 14 2-7h4"})}),(k||l)&&(0,d.jsx)("span",{className:"runtime-busy-dot","aria-hidden":"true"}),!k&&!l&&c>0&&(0,d.jsx)("span",{children:c})]}),i&&(0,d.jsxs)("div",{className:"runtime-popover",children:[(0,d.jsxs)("div",{className:"runtime-popover-head",children:[(0,d.jsx)("b",{children:"Operator Command Center"}),(0,d.jsx)("small",{children:"Approvals, running work, failed runs, and task queues"}),(0,d.jsxs)("div",{className:"runtime-quick-links","aria-label":"Operator quick links",children:[(0,d.jsx)("a",{href:"/approvals",children:"Approvals"}),(0,d.jsx)("a",{href:"/tasks",children:"Tasks"}),(0,d.jsx)("a",{href:"/activity",children:"Activity"}),(0,d.jsx)("a",{href:"/runtime",children:"Runtime"})]})]}),k&&(0,d.jsxs)("div",{className:"runtime-live-section",children:[(0,d.jsxs)("div",{className:"runtime-live-header",children:[(0,d.jsxs)("div",{className:"runtime-live-title-row",children:[(0,d.jsx)("span",{className:"runtime-section-title",children:"Main Agent"}),(0,d.jsxs)("span",{className:"runtime-live-phase",children:["thinking"===o&&"thinking","responding"===o&&"responding","tool"===o&&"using tools","synthesis"===o&&"synthesizing"]})]}),(0,d.jsxs)("div",{className:"runtime-live-meta",children:[n&&(0,d.jsx)("span",{className:"runtime-live-elapsed",children:(0,d.jsx)(s.YE,{startTime:n})}),(0,d.jsxs)("span",{className:"runtime-live-badge",children:[(0,d.jsx)("span",{className:"runtime-live-badge-dot","aria-hidden":"true"}),"Live"]})]})]}),q.length>0?(0,d.jsx)("div",{className:"runtime-live-steps",children:q.map(a=>(0,d.jsxs)("div",{className:`runtime-live-step runtime-live-step--${a.status}`,children:[(0,d.jsxs)("span",{className:"runtime-live-step-icon","aria-hidden":"true",children:["running"===a.status&&(0,d.jsx)(s.Nl,{}),"done"===a.status&&(0,d.jsx)(s.Sr,{}),"error"===a.status&&(0,d.jsx)(s.wx,{})]}),(0,d.jsx)("code",{className:"runtime-live-step-name",children:a.name.replace(/_/g," ")}),(0,t.bX)(a.name,a.input)&&(0,d.jsx)("span",{className:"runtime-live-step-sub",children:(0,t.bX)(a.name,a.input)})]},a.id))}):(0,d.jsxs)("div",{className:"runtime-live-thinking",children:[(0,d.jsx)("span",{className:"runtime-live-thinking-icon",children:(0,d.jsx)(s.Nl,{})}),(0,d.jsxs)("span",{children:["thinking"===o&&"Waiting for first response…","responding"===o&&"Streaming response…","synthesis"===o&&"Synthesizing results…","idle"===o&&"Processing…"]})]})]}),m.length>0&&(0,d.jsxs)("div",{className:"runtime-section",children:[(0,d.jsxs)("span",{className:"runtime-section-title",children:["Background agents",l&&(0,d.jsxs)("span",{className:"runtime-live-badge",style:{marginLeft:8},children:[(0,d.jsx)("span",{className:"runtime-live-badge-dot","aria-hidden":"true"}),"Live"]})]}),(0,d.jsx)("div",{className:"runtime-live-steps",children:m.map(a=>(0,d.jsxs)("div",{className:`runtime-live-step runtime-live-step--${"running"===a.status?"running":"failed"===a.status?"error":"done"}`,children:[(0,d.jsxs)("span",{className:"runtime-live-step-icon","aria-hidden":"true",children:["running"===a.status&&(0,d.jsx)(s.Nl,{}),"complete"===a.status&&(0,d.jsx)(s.Sr,{}),"failed"===a.status&&(0,d.jsx)(s.wx,{})]}),(0,d.jsx)("code",{className:"runtime-live-step-name",children:a.agent_name}),(0,d.jsx)("span",{className:"runtime-live-step-sub",children:a.current_tool?`${a.current_tool.replace(/_/g," ")}${(0,t.bX)(a.current_tool,a.current_input)?` ${(0,t.bX)(a.current_tool,a.current_input)}`:""}`:"running"===a.status?a.triggered_by?`${a.triggered_by} tick`:"starting…":"complete"===a.status?"done":"failed"})]},a.agent_id))})]}),(0,d.jsx)("div",{className:"runtime-compact-stats",children:[["Approvals",e.length],["Heartbeat",f.length],["Processes",g.length],["Audit",h.length]].map(([a,b])=>(0,d.jsxs)("div",{className:"runtime-compact-stat"+(b>0?" has-value":""),children:[(0,d.jsx)("b",{children:b}),(0,d.jsx)("span",{children:a})]},a))}),e.length>0&&(0,d.jsxs)("div",{className:"runtime-section",children:[(0,d.jsx)("span",{className:"runtime-section-title",children:"Pending approvals"}),e.slice(0,3).map(a=>(0,d.jsxs)("div",{className:"runtime-approval",children:[(0,d.jsx)("span",{children:a.summary}),(0,d.jsxs)("div",{children:[(0,d.jsx)("button",{onClick:()=>r(a.id,"approved"),disabled:u===a.id,children:"Approve"}),(0,d.jsx)("button",{className:"secondary",onClick:()=>r(a.id,"denied"),disabled:u===a.id,children:"Deny"})]})]},a.id))]}),(f.length>0||g.length>0||h.length>0)&&(0,d.jsxs)("div",{className:"runtime-section",children:[(0,d.jsx)("span",{className:"runtime-section-title",children:"Recent activity"}),f.slice(0,2).map(a=>(0,d.jsxs)("div",{className:"runtime-row",children:[(0,d.jsx)("span",{children:a.type}),(0,d.jsx)("b",{children:a.status})]},a.id)),g.slice(0,2).map(a=>(0,d.jsxs)("div",{className:"runtime-row",children:[(0,d.jsx)("span",{children:a.command}),(0,d.jsx)("b",{children:a.status})]},a.id)),h.slice(0,3).map(a=>(0,d.jsxs)("div",{className:"runtime-row",children:[(0,d.jsx)("span",{children:a.summary||a.type}),(0,d.jsx)("b",{children:a.status})]},a.id))]}),!k&&0===c&&0===m.length&&(0,d.jsx)("div",{className:"runtime-empty",children:"No active tasks right now."}),(0,d.jsxs)("div",{className:"runtime-dev-tools",children:[(0,d.jsx)("span",{className:"runtime-section-title",children:"System tools"}),(0,d.jsxs)("div",{className:"runtime-dev-row",children:[(0,d.jsx)("button",{onClick:v,disabled:"ops"===x,className:"runtime-dev-btn",children:"ops"===x?"Creating…":"Caretaker"}),(0,d.jsx)("button",{onClick:w,disabled:"worker"===x,className:"runtime-dev-btn",children:"worker"===x?"Processing…":"Heartbeat once"})]})]})]})]})}function I({x:a,y:b,spaces:c,activeSpaceId:e,onMove:g,onClose:h}){let i=(0,f.useRef)(null),[j,k]=(0,f.useState)({left:a,top:b}),l=c.filter(a=>a.id!==e);return"undefined"==typeof document?null:(0,y.createPortal)((0,d.jsxs)("div",{className:"winbar-move-menu",ref:i,style:{left:j.left,top:j.top},onClick:a=>a.stopPropagation(),children:[(0,d.jsx)("div",{className:"winbar-move-menu-label",children:"Move to space"}),0===l.length?(0,d.jsx)("div",{className:"winbar-move-menu-empty",children:"No other spaces"}):l.map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>{g(a.id),h()},children:a.name},a.id))]}),document.body)}let J=(0,f.memo)(function(){let{initializing:a,activeHermesJobs:b,runtimeActions:c,mainAgent:e,approvalRun:g,counts:h,artifacts:i,visibleArtifacts:j,dockedArtifacts:k,artifactLayout:l,spaces:m,registerArtifactFrame:n,designStyle:o}=p(),q=c.approveClaudeRun,r=c.approvalBusyId,s=l.resetArtifactLayout,t=l.layoutMode,u=l.fullscreenId,v=l.setFullscreenId,w=l.confirmDeleteId,x=l.setConfirmDeleteId,z=l.deleteArtifactById,A=l.toggleMinimize,B=l.downloadArtifact,C=l.minimizedIds,E=l.hoveredDockId,J=l.setHoveredDockId,K=l.pointerDropSpaceId,L=e.busy,M=e.liveTool,N=e.liveText,O=e.command,P=m.spaces,Q=m.activeSpaceId,R=m.setActiveSpaceId,S=m.createSpace,T=m.renameSpace,U=m.deleteSpace,V=m.moveArtifactToSpace,W=m.isSwitching,[X,Y]=(0,f.useState)(null),[Z,$]=(0,f.useState)(null),_=(h?.agents||[]).some(a=>"hermes"===(a.engine||"")),aa=(0,d.jsxs)("div",{className:"app-topbar-actions",children:[g&&(0,d.jsx)("button",{className:"admin-button",onClick:()=>q(g.id),disabled:r===g.id,style:{height:28,padding:"0 12px",fontSize:12},children:r===g.id?"Running Claude...":"Approve & Run"}),_&&(0,d.jsxs)("div",{className:"hermes-wrap",children:[(0,d.jsxs)("span",{className:"tb-icon-btn"+(b.length>0?" on":""),role:"status","aria-label":b.length>0?`Hermes ${b.length} running`:"Hermes idle",children:[(0,d.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,d.jsx)("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"})}),b.length>0&&(0,d.jsx)("span",{children:b.length})]}),(0,d.jsxs)("div",{className:"hermes-tooltip",role:"tooltip",children:[(0,d.jsx)("b",{children:"Hermes"}),(0,d.jsx)("small",{children:b.length>0?`${b.length} running`:"idle"}),b.length>0&&(0,d.jsx)("ul",{children:b.map(a=>(0,d.jsx)("li",{children:a.title||(a.prompt?a.prompt.slice(0,60):"Untitled job")},a.id))})]})]}),(0,d.jsx)(H,{}),i.length>0&&(0,d.jsx)("button",{className:"tb-icon-btn",onClick:s,title:"manual"===t?"Reset to auto layout":"Auto layout active","aria-label":"manual"===t?"Reset to auto layout":"Auto layout active",children:(0,d.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,d.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,d.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,d.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"}),(0,d.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"})]})})]});return(0,d.jsxs)("section",{className:"canvas fresh-canvas"+(W?" is-space-switching":""),children:[Z?(0,y.createPortal)(aa,Z):null,a?(0,d.jsx)("div",{className:"canvas-board canvas-board--skel","aria-hidden":"true",children:(0,d.jsx)("div",{className:"artifact-window-wrap artifact-skel-wrap artifact-skel-wrap--solo",children:(0,d.jsxs)("div",{className:"window artifact-window",children:[(0,d.jsxs)("div",{className:"winbar",children:[(0,d.jsx)("i",{className:"dot-close"}),(0,d.jsx)("i",{className:"dot-minimize"}),(0,d.jsx)("i",{className:"dot-zoom"}),(0,d.jsx)("div",{className:"skel sk-winbar-title"}),(0,d.jsx)("div",{className:"skel sk-kind-badge"})]}),(0,d.jsxs)("div",{className:"win-content artifact-skel-content",children:[(0,d.jsx)("div",{className:"skel sk-art-hero"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w90"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w80"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w65"}),(0,d.jsx)("div",{className:"skel sk-art-block"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w75"}),(0,d.jsx)("div",{className:"skel sk-line sk-line--w55"})]})]})})}):L&&0===j.length&&0===k.length?(0,d.jsx)("div",{className:"building-card-wrap",children:(0,d.jsxs)("div",{className:"building-card",children:[(0,d.jsxs)("div",{className:"building-winbar",children:[(0,d.jsxs)("div",{className:"building-dots",children:[(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{})]}),(0,d.jsx)("span",{className:"building-winbar-title",children:"generate_ui"===M?`Designing ${o} UI…`:"create_artifact"===M?"Building artifact…":M?`Running ${M.replace(/_/g," ")}…`:"Agent composing…"}),(0,d.jsxs)("div",{className:"building-pill",children:[(0,d.jsx)("div",{className:"building-pill-dot"}),"Live"]})]}),(0,d.jsxs)("div",{className:"building-body",children:[(0,d.jsxs)("div",{className:"building-illustration",children:[(0,d.jsx)("div",{className:"building-mesh"}),(0,d.jsxs)("div",{className:"building-skeleton",children:[(0,d.jsx)("div",{className:"skel hd"}),(0,d.jsx)("div",{className:"skel la"}),(0,d.jsx)("div",{className:"skel lb"}),(0,d.jsx)("div",{className:"skel lc"}),(0,d.jsx)("div",{className:"skel ld"})]})]}),(0,d.jsxs)("div",{className:"building-footer",children:[(0,d.jsx)("div",{className:"building-footer-label",children:M?"Active tool":"Status"}),(0,d.jsx)("div",{className:"building-footer-tool",children:"generate_ui"===M?`${o} design rules active`:M?M.replace(/_/g," "):"Agent is thinking…"}),N&&(0,d.jsx)("div",{className:"building-stream-text",children:N.slice(-320)})]})]})]})}):(0,d.jsxs)(d.Fragment,{children:[j.length>0?(0,d.jsx)(F,{confirmDeleteId:w,setConfirmDeleteId:x,deleteArtifactById:z,setMoveMenu:Y}):0===k.length&&0===i.length?(0,d.jsx)("div",{className:"fresh-workspace",children:(0,d.jsxs)("div",{className:"fresh-hero full-width",children:[(0,d.jsx)("small",{children:"Clean workspace"}),(0,d.jsx)("h1",{children:"Start from zero."}),(0,d.jsx)("p",{children:"Your local-first agent workspace. Create agents that research competitors, generate reports, run scheduled tasks, and prepare actions for your approval — all running on your machine, backed by SQLite, with no cloud dependencies."}),(0,d.jsxs)("div",{className:"fresh-actions",children:[(0,d.jsx)("button",{onClick:()=>O("Create the first Client Workspace competitor research agent with browser scraper and report writer daily at 07:30"),children:"Create first agent"}),(0,d.jsx)("button",{className:"secondary",onClick:()=>O("Look for all Client Workspace competitors and provide the daily report"),children:"Test report flow"})]})]})}):null,(0,d.jsx)(D,{spaces:P,activeSpaceId:Q,setActiveSpaceId:R,createSpace:S,renameSpace:T,deleteSpace:U,moveArtifactToSpace:V,artifacts:i,dockedArtifacts:k,minimizedIds:C,hoveredDockId:E,setHoveredDockId:J,toggleMinimize:A,pointerDropSpaceId:K})]}),u&&(()=>{let a=i.find(a=>a.id===u);return a?(0,d.jsx)(G,{artifact:a,docked:!0,onClose:()=>v(null),confirmDeleteId:w,setConfirmDeleteId:x,deleteArtifactById:z,toggleMinimize:A,downloadArtifact:B,registerArtifactFrame:n},a.id):null})(),X&&(0,d.jsx)(I,{x:X.x,y:X.y,spaces:P,activeSpaceId:Q,onMove:a=>V(X.artifactId,a),onClose:()=>Y(null)})]})}),K=(0,e.default)(async()=>{void 0!==require.resolveWeak&&require.resolveWeak("./components/dashboard/config-panel")},{loadableGenerated:{modules:["app/page.js -> ./components/dashboard/config-panel"]},ssr:!1}),L=(0,e.default)(async()=>{void 0!==require.resolveWeak&&require.resolveWeak("./components/dashboard/voice-panel")},{loadableGenerated:{modules:["app/page.js -> ./components/dashboard/voice-panel"]},ssr:!1}),M=(0,e.default)(async()=>{void 0!==require.resolveWeak&&require.resolveWeak("./components/dashboard/trust-mode-confirm-modal")},{loadableGenerated:{modules:["app/page.js -> ./components/dashboard/trust-mode-confirm-modal"]},ssr:!1}),N=(0,e.default)(async()=>{void 0!==require.resolveWeak&&require.resolveWeak("./components/update-banner")},{loadableGenerated:{modules:["app/page.js -> ./components/update-banner"]},ssr:!1});function O(){let{chatHidden:a,setChatHidden:b,configOpen:c,trustModePromptOpen:e,trustModeBusy:f,confirmEnableTrustMode:g,cancelEnableTrustMode:h,voiceOpen:i}=p();return(0,d.jsxs)("main",{className:"visual-frame fresh-frame"+(a?" frame-chat-hidden":""),"aria-label":"madarX OS product",children:[(0,d.jsx)(N,{}),(0,d.jsx)(x,{}),(0,d.jsx)(J,{}),a?(0,d.jsx)("button",{type:"button",className:"chat-restore-bubble",onClick:()=>b(!1),title:"Show chat panel","aria-label":"Show chat panel",children:(0,d.jsx)("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,d.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}):null,c?(0,d.jsx)(K,{}):null,e?(0,d.jsx)(M,{open:e,busy:f,onConfirm:g,onCancel:h}):null,i?(0,d.jsx)(L,{}):null]})}function P(){return(0,d.jsx)(o,{children:(0,d.jsx)(O,{})})}}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[5873,3940,9483,4424,1699,3230,6059,1433],()=>b(b.s=88945));module.exports=c})();
|