@jlongo78/agent-spaces 0.3.12 → 0.5.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/.claude/settings.local.json +8 -0
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +5 -0
- package/.next/standalone/.next/build-manifest.json +4 -4
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +30 -25
- package/.next/standalone/.next/routes-manifest.json +40 -0
- package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/admin/users/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/admin/users/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/analytics/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/analytics/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/analytics/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/analytics/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/network/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/network/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/network/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/network/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/page.js +3 -3
- package/.next/standalone/.next/server/app/(desktop)/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/projects/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/projects/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/sessions/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/settings/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/settings/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/terminal/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/workspaces/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js +1 -1
- package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(desktop)/workspaces/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +4 -4
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/analytics.html +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.rsc +6 -6
- package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/analytics.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/admin/analytics.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/analytics.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/admin/analytics.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/users.html +1 -1
- package/.next/standalone/.next/server/app/admin/users.rsc +6 -6
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/admin/users.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/admin/users.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/admin/users.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/admin/users.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/analytics.html +1 -1
- package/.next/standalone/.next/server/app/analytics.rsc +6 -6
- package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/analytics.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/analytics.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/analytics.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/analytics.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/admin/analytics/route.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/analytics/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/admin/users/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/admin/users/route.js +1 -1
- package/.next/standalone/.next/server/app/api/admin/users/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/analytics/overview/route.js +1 -1
- package/.next/standalone/.next/server/app/api/analytics/overview/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/me/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/me/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/setup/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/setup/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/status/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/verify/route.js +1 -1
- package/.next/standalone/.next/server/app/api/auth/totp/verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/bulk/route.js +1 -1
- package/.next/standalone/.next/server/app/api/bulk/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/chat/route.js +1 -1
- package/.next/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/config/route.js +1 -1
- package/.next/standalone/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/events/route.js +1 -1
- package/.next/standalone/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/folders/route.js +1 -1
- package/.next/standalone/.next/server/app/api/folders/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/discovered/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/discovered/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/handshake/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/handshake/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/health/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/health/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/identity/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/identity/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/keys/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/keys/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/keys/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/keys/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/check/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/check/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/nodes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/projects/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/projects/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/proxy/[nodeId]/[...path]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/proxy/[nodeId]/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/search/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/terminal/token/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/terminal/token/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/route.js +1 -1
- package/.next/standalone/.next/server/app/api/network/workspaces/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/panes/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/panes/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/panes/route.js +1 -1
- package/.next/standalone/.next/server/app/api/panes/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/route.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/search/route.js +1 -1
- package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/chat/route.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/chat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/messages/route.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/messages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sessions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/sync/route.js +1 -1
- package/.next/standalone/.next/server/app/api/sync/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tags/route.js +1 -1
- package/.next/standalone/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tier/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/tier/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/tier/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/tier/route.js +7 -0
- package/.next/standalone/.next/server/app/api/tier/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/tier/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/tier/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js +7 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js +7 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/app-paths-manifest.json +3 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/build-manifest.json +11 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/server-reference-manifest.json +4 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js +7 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.map +5 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route_client-reference-manifest.js +2 -0
- package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/sessions/route.js +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/[id]/sessions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/route.js +1 -1
- package/.next/standalone/.next/server/app/api/workspaces/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/login/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/login/page.js +1 -1
- package/.next/standalone/.next/server/app/login/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login.html +1 -1
- package/.next/standalone/.next/server/app/login.rsc +5 -5
- package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/page.js +1 -1
- package/.next/standalone/.next/server/app/m/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/m/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/projects/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/projects/page.js +1 -1
- package/.next/standalone/.next/server/app/m/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/m/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/projects.html +1 -1
- package/.next/standalone/.next/server/app/m/projects.rsc +6 -6
- package/.next/standalone/.next/server/app/m/projects.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/m/projects.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/projects.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m/projects.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/projects.segments/m/projects/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/projects.segments/m/projects.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/projects.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/sessions/[id]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/sessions/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/m/sessions/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/m/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/sessions/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/sessions/page.js +1 -1
- package/.next/standalone/.next/server/app/m/sessions/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/m/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/sessions.html +1 -1
- package/.next/standalone/.next/server/app/m/sessions.rsc +6 -6
- package/.next/standalone/.next/server/app/m/sessions.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/m/sessions.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/sessions.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m/sessions.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/sessions.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/settings/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/settings/page.js +1 -1
- package/.next/standalone/.next/server/app/m/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/m/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/settings.html +1 -1
- package/.next/standalone/.next/server/app/m/settings.rsc +6 -6
- package/.next/standalone/.next/server/app/m/settings.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/m/settings.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/settings.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m/settings.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/settings.segments/m/settings/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/settings.segments/m/settings.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/settings.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/terminal/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/m/terminal/page.js +1 -1
- package/.next/standalone/.next/server/app/m/terminal/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/m/terminal/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/m/terminal.html +1 -1
- package/.next/standalone/.next/server/app/m/terminal.rsc +6 -6
- package/.next/standalone/.next/server/app/m/terminal.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/m/terminal.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/terminal.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m/terminal.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m/terminal.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m.html +1 -1
- package/.next/standalone/.next/server/app/m.rsc +6 -6
- package/.next/standalone/.next/server/app/m.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/m.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/m.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/m.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m.segments/m/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/m.segments/m.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/network.html +1 -1
- package/.next/standalone/.next/server/app/network.rsc +6 -6
- package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/network.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/network.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/network.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/network.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/projects.html +1 -1
- package/.next/standalone/.next/server/app/projects.rsc +6 -6
- package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/projects.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/projects.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/sessions.html +1 -1
- package/.next/standalone/.next/server/app/sessions.rsc +6 -6
- package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/sessions.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/sessions.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/sessions.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/sessions.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.html +1 -1
- package/.next/standalone/.next/server/app/settings.rsc +6 -6
- package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/terminal.html +1 -1
- package/.next/standalone/.next/server/app/terminal.rsc +6 -6
- package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/terminal.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/terminal.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/terminal.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/terminal.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.html +1 -1
- package/.next/standalone/.next/server/app/workspaces.rsc +6 -6
- package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/workspaces.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/workspaces.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/workspaces.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/workspaces.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app-paths-manifest.json +5 -0
- package/.next/standalone/.next/server/chunks/[externals]_chokidar_a0cd9157._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__086be15a._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0955695e._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0fac388d._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__18a58c5f._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__190b05d8._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1a211143._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__20353b76._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2861e096._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a7a798c._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2b6758fc._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2e9d1d5a._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__31f028ec._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__34c34116._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3aa57139._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3ce30e4e._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__41ae8be6._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__41e589ee._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__43112c34._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__464db440._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__466c7e18._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__47a63195._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4ad64489._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5bbc73ff._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__60689e2b._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__67c4abf3._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6b94cc47._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6c6cfe82._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__776b2fd5._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7901e2ab._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__83b9bcf3._.js +11 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__89124c96._.js +48 -37
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8c2eee30._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8ffcf827._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__95b7f18e._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e343d64._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a2ee9884._.js +13 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a651ede9._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a6ce192e._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b4b692df._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b4edb4d6._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b71497ab._.js +48 -37
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__bc97ddc7._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__bef2ed87._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c525457e._.js +19 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c546cf71._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ccc27199._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ce5edd98._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d877df12._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__dd2e81be._.js +11 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__de96c005._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__df6bc9e9._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e2b78951._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e742ef33._.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_tier_route_actions_6186023b.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_context_route_actions_e9cb4bed.js +3 -0
- package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_messages_route_actions_0cf1d576.js +3 -0
- package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_context_[key]_route_actions_8e11e764.js +3 -0
- package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_messages_[msgId]_route_actions_008a0317.js +3 -0
- package/.next/standalone/.next/server/chunks/src_lib_events_sse_ts_1ad73980._.js +6 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ea64930e._.js → [root-of-the-server]__2b4e2acc._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__36a11bc9._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__63c35e0f._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__650a172d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__66aca5d4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ba1024f6._.js → [root-of-the-server]__67234962._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__72acd514._.js → [root-of-the-server]__c73bef9a._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e921fdfc._.js +5 -0
- package/.next/standalone/.next/server/chunks/ssr/{_548abc09._.js → _0946fdc3._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1f12caba._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_2230ad2d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_3b54193d._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_43e7e611._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_5ac43c5d._.js +1 -3
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__3611990a._.js → _cd0986af._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_cd50a174._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{_7e741697._.js → _de57b857._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_ef42f47a._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_f67f58f1._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_dd004864._.js → _fbc5e000._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_861e98fe._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_terminal_page_tsx_de5e8d85._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_m_terminal_page_tsx_553a0130._.js +2 -2
- package/.next/standalone/.next/server/edge/chunks/{[root-of-the-server]__6154bdc0._.js → [root-of-the-server]__32a0045c._.js} +3 -5
- package/.next/standalone/.next/server/edge/chunks/_d73df637._.js +3 -0
- package/.next/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_a4434a38.js +6 -0
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/middleware-manifest.json +8 -8
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +2 -2
- 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/chunks/{f58f62604604c529.js → 10c6424526b53431.js} +2 -2
- package/.next/standalone/.next/static/chunks/{0b733ac17fcb2bef.js → 27649ec994a696fb.js} +1 -1
- package/.next/standalone/.next/static/chunks/302ce212c690bec4.js +5 -0
- package/.next/standalone/.next/static/chunks/{4bd6943fa4082aa9.js → 3165c61fb2e4045d.js} +1 -1
- package/.next/standalone/.next/static/chunks/4e792c3078e37704.js +5 -0
- package/.next/standalone/.next/static/chunks/51dacec57c9714c0.js +1 -0
- package/.next/standalone/.next/static/chunks/53782d1e41fd7f82.js +1 -0
- package/.next/standalone/.next/static/chunks/58d78765e5140dcb.js +1 -0
- package/.next/standalone/.next/static/chunks/65afda485a466977.js +1 -0
- package/.next/standalone/.next/static/chunks/cb442c50eecb758d.js +5 -0
- package/.next/standalone/.next/static/chunks/d0c839c82cf232b8.js +1 -0
- package/.next/standalone/.next/static/chunks/e6134a48180c8a36.js +1 -0
- package/.next/standalone/.next/static/chunks/{7de9141b1af425c3.js → e7772d64463868eb.js} +1 -1
- package/.next/standalone/.next/static/chunks/{e94f6965199a47e7.js → eb780226f5bd3892.js} +1 -1
- package/.next/standalone/.next/static/chunks/ff5fac1bd7b518dd.css +3 -0
- package/.next/standalone/.next/static/chunks/{turbopack-947de56768b27172.js → turbopack-ea18b8255590c757.js} +1 -1
- package/.next/standalone/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64.node +0 -0
- package/.next/standalone/node_modules/@img/{sharp-linux-x64 → sharp-win32-x64}/package.json +39 -46
- package/.next/standalone/node_modules/chokidar/LICENSE +21 -0
- package/.next/standalone/node_modules/chokidar/README.md +305 -0
- package/.next/standalone/node_modules/chokidar/handler.js +632 -0
- package/.next/standalone/node_modules/chokidar/index.js +822 -0
- package/.next/standalone/node_modules/chokidar/package.json +63 -0
- package/.next/standalone/node_modules/readdirp/LICENSE +21 -0
- package/.next/standalone/node_modules/readdirp/README.md +120 -0
- package/.next/standalone/node_modules/readdirp/index.js +272 -0
- package/.next/standalone/node_modules/readdirp/package.json +66 -0
- package/.next/standalone/package.json +89 -91
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/tsconfig.json +34 -34
- package/LICENSE +661 -661
- package/README.md +131 -131
- package/bin/fix-standalone-externals.js +79 -79
- package/bin/lib/auto-setup.js +101 -0
- package/bin/mdns-service.js +171 -171
- package/bin/postinstall.js +35 -35
- package/bin/setup-admin.js +189 -189
- package/bin/spaces-dev.js +208 -108
- package/bin/spaces-install.js +425 -0
- package/bin/spaces-setup.js +242 -0
- package/bin/spaces.js +466 -155
- package/bin/terminal-server.js +1117 -990
- package/package.json +89 -91
- package/.next/standalone/.next/server/chunks/[externals]_node:path_d28a9bfe._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__01c98454._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__18b8f7d9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__193cb667._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__25b4d5ca._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__280398d8._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a4c2db6._.js +0 -13
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__3fd6439e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__40c21d75._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4375a280._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4950da9c._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a77d855._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4d551a41._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5420fbcd._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__586418c6._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5c2f4a8e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5eaa589f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5f4dc1dd._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__5ff6b7d9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__65509457._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__65620687._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__76e7a7b9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7fae7bd7._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__821ffcfb._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__83676993._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__86e02dd1._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8a7fae80._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8af8821a._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__93e1af64._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__94f437bd._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e9f597a._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__aae49c2b._.js +0 -15
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ab25b881._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__aef285c3._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b52523c7._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b607a85c._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b950ac1e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c6355fd6._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d1771755._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d55d3167._.js +0 -12
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9533783._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9540965._.js +0 -21
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ddbb7b16._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e4989332._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__e7a6a584._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ed0f1148._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__f1436778._.js +0 -5
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fe65bfb1._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__17ba2e09._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__6bd17d85._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__7e604f3d._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__a923e475._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__d23f4926._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e3bf6054._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__f08a4c64._.js +0 -3
- package/.next/standalone/.next/server/edge/chunks/node_modules_next_dist_esm_build_templates_edge-wrapper_78fa9d6a.js +0 -3
- package/.next/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_03b33eff.js +0 -6
- package/.next/standalone/.next/static/chunks/06e3af139a18e326.js +0 -5
- package/.next/standalone/.next/static/chunks/13c233fe06728b88.js +0 -1
- package/.next/standalone/.next/static/chunks/1f4937830aceaae2.js +0 -1
- package/.next/standalone/.next/static/chunks/6b8fb2027281ae5d.js +0 -3
- package/.next/standalone/.next/static/chunks/76698b8c3d5cae75.js +0 -1
- package/.next/standalone/.next/static/chunks/7fbc5bdede00e3c9.js +0 -1
- package/.next/standalone/.next/static/chunks/acbcf40fb5a2ca5e.js +0 -1
- package/.next/standalone/.next/static/chunks/b873b989ec82be01.css +0 -3
- package/.next/standalone/.next/static/chunks/db03df936139672b.js +0 -1
- package/.next/standalone/.next/static/chunks/e7ac38524a30e234.js +0 -5
- package/.next/standalone/.next/static/chunks/f8cf8e5a643bd23f.js +0 -5
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +0 -46
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -221
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +0 -1
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +0 -42
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +0 -221
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
- package/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
- /package/.next/standalone/.next/static/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_clientMiddlewareManifest.json +0 -0
- /package/.next/standalone/.next/static/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_ssgManifest.js +0 -0
- /package/.next/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-win32-x64}/versions.json +0 -0
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */
|
|
2
|
+
import { EventEmitter } from 'node:events';
|
|
3
|
+
import { stat as statcb, Stats } from 'node:fs';
|
|
4
|
+
import { readdir, stat } from 'node:fs/promises';
|
|
5
|
+
import * as sp from 'node:path';
|
|
6
|
+
import { readdirp, ReaddirpStream } from 'readdirp';
|
|
7
|
+
import { EMPTY_FN, EVENTS as EV, isIBMi, isWindows, NodeFsHandler, STR_CLOSE, STR_END, } from './handler.js';
|
|
8
|
+
const SLASH = '/';
|
|
9
|
+
const SLASH_SLASH = '//';
|
|
10
|
+
const ONE_DOT = '.';
|
|
11
|
+
const TWO_DOTS = '..';
|
|
12
|
+
const STRING_TYPE = 'string';
|
|
13
|
+
const BACK_SLASH_RE = /\\/g;
|
|
14
|
+
const DOUBLE_SLASH_RE = /\/\//g;
|
|
15
|
+
const DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
|
|
16
|
+
const REPLACER_RE = /^\.[/\\]/;
|
|
17
|
+
function arrify(item) {
|
|
18
|
+
return Array.isArray(item) ? item : [item];
|
|
19
|
+
}
|
|
20
|
+
const isMatcherObject = (matcher) => typeof matcher === 'object' && matcher !== null && !(matcher instanceof RegExp);
|
|
21
|
+
function createPattern(matcher) {
|
|
22
|
+
if (typeof matcher === 'function')
|
|
23
|
+
return matcher;
|
|
24
|
+
if (typeof matcher === 'string')
|
|
25
|
+
return (string) => matcher === string;
|
|
26
|
+
if (matcher instanceof RegExp)
|
|
27
|
+
return (string) => matcher.test(string);
|
|
28
|
+
if (typeof matcher === 'object' && matcher !== null) {
|
|
29
|
+
return (string) => {
|
|
30
|
+
if (matcher.path === string)
|
|
31
|
+
return true;
|
|
32
|
+
if (matcher.recursive) {
|
|
33
|
+
const relative = sp.relative(matcher.path, string);
|
|
34
|
+
if (!relative) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return !relative.startsWith('..') && !sp.isAbsolute(relative);
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return () => false;
|
|
43
|
+
}
|
|
44
|
+
function normalizePath(path) {
|
|
45
|
+
if (typeof path !== 'string')
|
|
46
|
+
throw new Error('string expected');
|
|
47
|
+
path = sp.normalize(path);
|
|
48
|
+
path = path.replace(/\\/g, '/');
|
|
49
|
+
let prepend = false;
|
|
50
|
+
if (path.startsWith('//'))
|
|
51
|
+
prepend = true;
|
|
52
|
+
path = path.replace(DOUBLE_SLASH_RE, '/');
|
|
53
|
+
if (prepend)
|
|
54
|
+
path = '/' + path;
|
|
55
|
+
return path;
|
|
56
|
+
}
|
|
57
|
+
function matchPatterns(patterns, testString, stats) {
|
|
58
|
+
const path = normalizePath(testString);
|
|
59
|
+
for (let index = 0; index < patterns.length; index++) {
|
|
60
|
+
const pattern = patterns[index];
|
|
61
|
+
if (pattern(path, stats)) {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
function anymatch(matchers, testString) {
|
|
68
|
+
if (matchers == null) {
|
|
69
|
+
throw new TypeError('anymatch: specify first argument');
|
|
70
|
+
}
|
|
71
|
+
// Early cache for matchers.
|
|
72
|
+
const matchersArray = arrify(matchers);
|
|
73
|
+
const patterns = matchersArray.map((matcher) => createPattern(matcher));
|
|
74
|
+
if (testString == null) {
|
|
75
|
+
return (testString, stats) => {
|
|
76
|
+
return matchPatterns(patterns, testString, stats);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
return matchPatterns(patterns, testString);
|
|
80
|
+
}
|
|
81
|
+
const unifyPaths = (paths_) => {
|
|
82
|
+
const paths = arrify(paths_).flat();
|
|
83
|
+
if (!paths.every((p) => typeof p === STRING_TYPE)) {
|
|
84
|
+
throw new TypeError(`Non-string provided as watch path: ${paths}`);
|
|
85
|
+
}
|
|
86
|
+
return paths.map(normalizePathToUnix);
|
|
87
|
+
};
|
|
88
|
+
// If SLASH_SLASH occurs at the beginning of path, it is not replaced
|
|
89
|
+
// because "//StoragePC/DrivePool/Movies" is a valid network path
|
|
90
|
+
const toUnix = (string) => {
|
|
91
|
+
let str = string.replace(BACK_SLASH_RE, SLASH);
|
|
92
|
+
let prepend = false;
|
|
93
|
+
if (str.startsWith(SLASH_SLASH)) {
|
|
94
|
+
prepend = true;
|
|
95
|
+
}
|
|
96
|
+
str = str.replace(DOUBLE_SLASH_RE, SLASH);
|
|
97
|
+
if (prepend) {
|
|
98
|
+
str = SLASH + str;
|
|
99
|
+
}
|
|
100
|
+
return str;
|
|
101
|
+
};
|
|
102
|
+
// Our version of upath.normalize
|
|
103
|
+
// TODO: this is not equal to path-normalize module - investigate why
|
|
104
|
+
const normalizePathToUnix = (path) => toUnix(sp.normalize(toUnix(path)));
|
|
105
|
+
// TODO: refactor
|
|
106
|
+
const normalizeIgnored = (cwd = '') => (path) => {
|
|
107
|
+
if (typeof path === 'string') {
|
|
108
|
+
return normalizePathToUnix(sp.isAbsolute(path) ? path : sp.join(cwd, path));
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
return path;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
const getAbsolutePath = (path, cwd) => {
|
|
115
|
+
if (sp.isAbsolute(path)) {
|
|
116
|
+
return path;
|
|
117
|
+
}
|
|
118
|
+
return sp.join(cwd, path);
|
|
119
|
+
};
|
|
120
|
+
const EMPTY_SET = Object.freeze(new Set());
|
|
121
|
+
/**
|
|
122
|
+
* Directory entry.
|
|
123
|
+
*/
|
|
124
|
+
class DirEntry {
|
|
125
|
+
path;
|
|
126
|
+
_removeWatcher;
|
|
127
|
+
items;
|
|
128
|
+
constructor(dir, removeWatcher) {
|
|
129
|
+
this.path = dir;
|
|
130
|
+
this._removeWatcher = removeWatcher;
|
|
131
|
+
this.items = new Set();
|
|
132
|
+
}
|
|
133
|
+
add(item) {
|
|
134
|
+
const { items } = this;
|
|
135
|
+
if (!items)
|
|
136
|
+
return;
|
|
137
|
+
if (item !== ONE_DOT && item !== TWO_DOTS)
|
|
138
|
+
items.add(item);
|
|
139
|
+
}
|
|
140
|
+
async remove(item) {
|
|
141
|
+
const { items } = this;
|
|
142
|
+
if (!items)
|
|
143
|
+
return;
|
|
144
|
+
items.delete(item);
|
|
145
|
+
if (items.size > 0)
|
|
146
|
+
return;
|
|
147
|
+
const dir = this.path;
|
|
148
|
+
try {
|
|
149
|
+
await readdir(dir);
|
|
150
|
+
}
|
|
151
|
+
catch (err) {
|
|
152
|
+
if (this._removeWatcher) {
|
|
153
|
+
this._removeWatcher(sp.dirname(dir), sp.basename(dir));
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
has(item) {
|
|
158
|
+
const { items } = this;
|
|
159
|
+
if (!items)
|
|
160
|
+
return;
|
|
161
|
+
return items.has(item);
|
|
162
|
+
}
|
|
163
|
+
getChildren() {
|
|
164
|
+
const { items } = this;
|
|
165
|
+
if (!items)
|
|
166
|
+
return [];
|
|
167
|
+
return [...items.values()];
|
|
168
|
+
}
|
|
169
|
+
dispose() {
|
|
170
|
+
this.items.clear();
|
|
171
|
+
this.path = '';
|
|
172
|
+
this._removeWatcher = EMPTY_FN;
|
|
173
|
+
this.items = EMPTY_SET;
|
|
174
|
+
Object.freeze(this);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
const STAT_METHOD_F = 'stat';
|
|
178
|
+
const STAT_METHOD_L = 'lstat';
|
|
179
|
+
export class WatchHelper {
|
|
180
|
+
fsw;
|
|
181
|
+
path;
|
|
182
|
+
watchPath;
|
|
183
|
+
fullWatchPath;
|
|
184
|
+
dirParts;
|
|
185
|
+
followSymlinks;
|
|
186
|
+
statMethod;
|
|
187
|
+
constructor(path, follow, fsw) {
|
|
188
|
+
this.fsw = fsw;
|
|
189
|
+
const watchPath = path;
|
|
190
|
+
this.path = path = path.replace(REPLACER_RE, '');
|
|
191
|
+
this.watchPath = watchPath;
|
|
192
|
+
this.fullWatchPath = sp.resolve(watchPath);
|
|
193
|
+
this.dirParts = [];
|
|
194
|
+
this.dirParts.forEach((parts) => {
|
|
195
|
+
if (parts.length > 1)
|
|
196
|
+
parts.pop();
|
|
197
|
+
});
|
|
198
|
+
this.followSymlinks = follow;
|
|
199
|
+
this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L;
|
|
200
|
+
}
|
|
201
|
+
entryPath(entry) {
|
|
202
|
+
return sp.join(this.watchPath, sp.relative(this.watchPath, entry.fullPath));
|
|
203
|
+
}
|
|
204
|
+
filterPath(entry) {
|
|
205
|
+
const { stats } = entry;
|
|
206
|
+
if (stats && stats.isSymbolicLink())
|
|
207
|
+
return this.filterDir(entry);
|
|
208
|
+
const resolvedPath = this.entryPath(entry);
|
|
209
|
+
// TODO: what if stats is undefined? remove !
|
|
210
|
+
return this.fsw._isntIgnored(resolvedPath, stats) && this.fsw._hasReadPermissions(stats);
|
|
211
|
+
}
|
|
212
|
+
filterDir(entry) {
|
|
213
|
+
return this.fsw._isntIgnored(this.entryPath(entry), entry.stats);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Watches files & directories for changes. Emitted events:
|
|
218
|
+
* `add`, `addDir`, `change`, `unlink`, `unlinkDir`, `all`, `error`
|
|
219
|
+
*
|
|
220
|
+
* new FSWatcher()
|
|
221
|
+
* .add(directories)
|
|
222
|
+
* .on('add', path => log('File', path, 'was added'))
|
|
223
|
+
*/
|
|
224
|
+
export class FSWatcher extends EventEmitter {
|
|
225
|
+
closed;
|
|
226
|
+
options;
|
|
227
|
+
_closers;
|
|
228
|
+
_ignoredPaths;
|
|
229
|
+
_throttled;
|
|
230
|
+
_streams;
|
|
231
|
+
_symlinkPaths;
|
|
232
|
+
_watched;
|
|
233
|
+
_pendingWrites;
|
|
234
|
+
_pendingUnlinks;
|
|
235
|
+
_readyCount;
|
|
236
|
+
_emitReady;
|
|
237
|
+
_closePromise;
|
|
238
|
+
_userIgnored;
|
|
239
|
+
_readyEmitted;
|
|
240
|
+
_emitRaw;
|
|
241
|
+
_boundRemove;
|
|
242
|
+
_nodeFsHandler;
|
|
243
|
+
// Not indenting methods for history sake; for now.
|
|
244
|
+
constructor(_opts = {}) {
|
|
245
|
+
super();
|
|
246
|
+
this.closed = false;
|
|
247
|
+
this._closers = new Map();
|
|
248
|
+
this._ignoredPaths = new Set();
|
|
249
|
+
this._throttled = new Map();
|
|
250
|
+
this._streams = new Set();
|
|
251
|
+
this._symlinkPaths = new Map();
|
|
252
|
+
this._watched = new Map();
|
|
253
|
+
this._pendingWrites = new Map();
|
|
254
|
+
this._pendingUnlinks = new Map();
|
|
255
|
+
this._readyCount = 0;
|
|
256
|
+
this._readyEmitted = false;
|
|
257
|
+
const awf = _opts.awaitWriteFinish;
|
|
258
|
+
const DEF_AWF = { stabilityThreshold: 2000, pollInterval: 100 };
|
|
259
|
+
const opts = {
|
|
260
|
+
// Defaults
|
|
261
|
+
persistent: true,
|
|
262
|
+
ignoreInitial: false,
|
|
263
|
+
ignorePermissionErrors: false,
|
|
264
|
+
interval: 100,
|
|
265
|
+
binaryInterval: 300,
|
|
266
|
+
followSymlinks: true,
|
|
267
|
+
usePolling: false,
|
|
268
|
+
// useAsync: false,
|
|
269
|
+
atomic: true, // NOTE: overwritten later (depends on usePolling)
|
|
270
|
+
..._opts,
|
|
271
|
+
// Change format
|
|
272
|
+
ignored: _opts.ignored ? arrify(_opts.ignored) : arrify([]),
|
|
273
|
+
awaitWriteFinish: awf === true ? DEF_AWF : typeof awf === 'object' ? { ...DEF_AWF, ...awf } : false,
|
|
274
|
+
};
|
|
275
|
+
// Always default to polling on IBM i because fs.watch() is not available on IBM i.
|
|
276
|
+
if (isIBMi)
|
|
277
|
+
opts.usePolling = true;
|
|
278
|
+
// Editor atomic write normalization enabled by default with fs.watch
|
|
279
|
+
if (opts.atomic === undefined)
|
|
280
|
+
opts.atomic = !opts.usePolling;
|
|
281
|
+
// opts.atomic = typeof _opts.atomic === 'number' ? _opts.atomic : 100;
|
|
282
|
+
// Global override. Useful for developers, who need to force polling for all
|
|
283
|
+
// instances of chokidar, regardless of usage / dependency depth
|
|
284
|
+
const envPoll = process.env.CHOKIDAR_USEPOLLING;
|
|
285
|
+
if (envPoll !== undefined) {
|
|
286
|
+
const envLower = envPoll.toLowerCase();
|
|
287
|
+
if (envLower === 'false' || envLower === '0')
|
|
288
|
+
opts.usePolling = false;
|
|
289
|
+
else if (envLower === 'true' || envLower === '1')
|
|
290
|
+
opts.usePolling = true;
|
|
291
|
+
else
|
|
292
|
+
opts.usePolling = !!envLower;
|
|
293
|
+
}
|
|
294
|
+
const envInterval = process.env.CHOKIDAR_INTERVAL;
|
|
295
|
+
if (envInterval)
|
|
296
|
+
opts.interval = Number.parseInt(envInterval, 10);
|
|
297
|
+
// This is done to emit ready only once, but each 'add' will increase that?
|
|
298
|
+
let readyCalls = 0;
|
|
299
|
+
this._emitReady = () => {
|
|
300
|
+
readyCalls++;
|
|
301
|
+
if (readyCalls >= this._readyCount) {
|
|
302
|
+
this._emitReady = EMPTY_FN;
|
|
303
|
+
this._readyEmitted = true;
|
|
304
|
+
// use process.nextTick to allow time for listener to be bound
|
|
305
|
+
process.nextTick(() => this.emit(EV.READY));
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
this._emitRaw = (...args) => this.emit(EV.RAW, ...args);
|
|
309
|
+
this._boundRemove = this._remove.bind(this);
|
|
310
|
+
this.options = opts;
|
|
311
|
+
this._nodeFsHandler = new NodeFsHandler(this);
|
|
312
|
+
// You’re frozen when your heart’s not open.
|
|
313
|
+
Object.freeze(opts);
|
|
314
|
+
}
|
|
315
|
+
_addIgnoredPath(matcher) {
|
|
316
|
+
if (isMatcherObject(matcher)) {
|
|
317
|
+
// return early if we already have a deeply equal matcher object
|
|
318
|
+
for (const ignored of this._ignoredPaths) {
|
|
319
|
+
if (isMatcherObject(ignored) &&
|
|
320
|
+
ignored.path === matcher.path &&
|
|
321
|
+
ignored.recursive === matcher.recursive) {
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
this._ignoredPaths.add(matcher);
|
|
327
|
+
}
|
|
328
|
+
_removeIgnoredPath(matcher) {
|
|
329
|
+
this._ignoredPaths.delete(matcher);
|
|
330
|
+
// now find any matcher objects with the matcher as path
|
|
331
|
+
if (typeof matcher === 'string') {
|
|
332
|
+
for (const ignored of this._ignoredPaths) {
|
|
333
|
+
// TODO (43081j): make this more efficient.
|
|
334
|
+
// probably just make a `this._ignoredDirectories` or some
|
|
335
|
+
// such thing.
|
|
336
|
+
if (isMatcherObject(ignored) && ignored.path === matcher) {
|
|
337
|
+
this._ignoredPaths.delete(ignored);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
// Public methods
|
|
343
|
+
/**
|
|
344
|
+
* Adds paths to be watched on an existing FSWatcher instance.
|
|
345
|
+
* @param paths_ file or file list. Other arguments are unused
|
|
346
|
+
*/
|
|
347
|
+
add(paths_, _origAdd, _internal) {
|
|
348
|
+
const { cwd } = this.options;
|
|
349
|
+
this.closed = false;
|
|
350
|
+
this._closePromise = undefined;
|
|
351
|
+
let paths = unifyPaths(paths_);
|
|
352
|
+
if (cwd) {
|
|
353
|
+
paths = paths.map((path) => {
|
|
354
|
+
const absPath = getAbsolutePath(path, cwd);
|
|
355
|
+
// Check `path` instead of `absPath` because the cwd portion can't be a glob
|
|
356
|
+
return absPath;
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
paths.forEach((path) => {
|
|
360
|
+
this._removeIgnoredPath(path);
|
|
361
|
+
});
|
|
362
|
+
this._userIgnored = undefined;
|
|
363
|
+
if (!this._readyCount)
|
|
364
|
+
this._readyCount = 0;
|
|
365
|
+
this._readyCount += paths.length;
|
|
366
|
+
Promise.all(paths.map(async (path) => {
|
|
367
|
+
const res = await this._nodeFsHandler._addToNodeFs(path, !_internal, undefined, 0, _origAdd);
|
|
368
|
+
if (res)
|
|
369
|
+
this._emitReady();
|
|
370
|
+
return res;
|
|
371
|
+
})).then((results) => {
|
|
372
|
+
if (this.closed)
|
|
373
|
+
return;
|
|
374
|
+
results.forEach((item) => {
|
|
375
|
+
if (item)
|
|
376
|
+
this.add(sp.dirname(item), sp.basename(_origAdd || item));
|
|
377
|
+
});
|
|
378
|
+
});
|
|
379
|
+
return this;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Close watchers or start ignoring events from specified paths.
|
|
383
|
+
*/
|
|
384
|
+
unwatch(paths_) {
|
|
385
|
+
if (this.closed)
|
|
386
|
+
return this;
|
|
387
|
+
const paths = unifyPaths(paths_);
|
|
388
|
+
const { cwd } = this.options;
|
|
389
|
+
paths.forEach((path) => {
|
|
390
|
+
// convert to absolute path unless relative path already matches
|
|
391
|
+
if (!sp.isAbsolute(path) && !this._closers.has(path)) {
|
|
392
|
+
if (cwd)
|
|
393
|
+
path = sp.join(cwd, path);
|
|
394
|
+
path = sp.resolve(path);
|
|
395
|
+
}
|
|
396
|
+
this._closePath(path);
|
|
397
|
+
this._addIgnoredPath(path);
|
|
398
|
+
if (this._watched.has(path)) {
|
|
399
|
+
this._addIgnoredPath({
|
|
400
|
+
path,
|
|
401
|
+
recursive: true,
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
// reset the cached userIgnored anymatch fn
|
|
405
|
+
// to make ignoredPaths changes effective
|
|
406
|
+
this._userIgnored = undefined;
|
|
407
|
+
});
|
|
408
|
+
return this;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Close watchers and remove all listeners from watched paths.
|
|
412
|
+
*/
|
|
413
|
+
close() {
|
|
414
|
+
if (this._closePromise) {
|
|
415
|
+
return this._closePromise;
|
|
416
|
+
}
|
|
417
|
+
this.closed = true;
|
|
418
|
+
// Memory management.
|
|
419
|
+
this.removeAllListeners();
|
|
420
|
+
const closers = [];
|
|
421
|
+
this._closers.forEach((closerList) => closerList.forEach((closer) => {
|
|
422
|
+
const promise = closer();
|
|
423
|
+
if (promise instanceof Promise)
|
|
424
|
+
closers.push(promise);
|
|
425
|
+
}));
|
|
426
|
+
this._streams.forEach((stream) => stream.destroy());
|
|
427
|
+
this._userIgnored = undefined;
|
|
428
|
+
this._readyCount = 0;
|
|
429
|
+
this._readyEmitted = false;
|
|
430
|
+
this._watched.forEach((dirent) => dirent.dispose());
|
|
431
|
+
this._closers.clear();
|
|
432
|
+
this._watched.clear();
|
|
433
|
+
this._streams.clear();
|
|
434
|
+
this._symlinkPaths.clear();
|
|
435
|
+
this._throttled.clear();
|
|
436
|
+
this._closePromise = closers.length
|
|
437
|
+
? Promise.all(closers).then(() => undefined)
|
|
438
|
+
: Promise.resolve();
|
|
439
|
+
return this._closePromise;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Expose list of watched paths
|
|
443
|
+
* @returns for chaining
|
|
444
|
+
*/
|
|
445
|
+
getWatched() {
|
|
446
|
+
const watchList = {};
|
|
447
|
+
this._watched.forEach((entry, dir) => {
|
|
448
|
+
const key = this.options.cwd ? sp.relative(this.options.cwd, dir) : dir;
|
|
449
|
+
const index = key || ONE_DOT;
|
|
450
|
+
watchList[index] = entry.getChildren().sort();
|
|
451
|
+
});
|
|
452
|
+
return watchList;
|
|
453
|
+
}
|
|
454
|
+
emitWithAll(event, args) {
|
|
455
|
+
this.emit(event, ...args);
|
|
456
|
+
if (event !== EV.ERROR)
|
|
457
|
+
this.emit(EV.ALL, event, ...args);
|
|
458
|
+
}
|
|
459
|
+
// Common helpers
|
|
460
|
+
// --------------
|
|
461
|
+
/**
|
|
462
|
+
* Normalize and emit events.
|
|
463
|
+
* Calling _emit DOES NOT MEAN emit() would be called!
|
|
464
|
+
* @param event Type of event
|
|
465
|
+
* @param path File or directory path
|
|
466
|
+
* @param stats arguments to be passed with event
|
|
467
|
+
* @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
|
|
468
|
+
*/
|
|
469
|
+
async _emit(event, path, stats) {
|
|
470
|
+
if (this.closed)
|
|
471
|
+
return;
|
|
472
|
+
const opts = this.options;
|
|
473
|
+
if (isWindows)
|
|
474
|
+
path = sp.normalize(path);
|
|
475
|
+
if (opts.cwd)
|
|
476
|
+
path = sp.relative(opts.cwd, path);
|
|
477
|
+
const args = [path];
|
|
478
|
+
if (stats != null)
|
|
479
|
+
args.push(stats);
|
|
480
|
+
const awf = opts.awaitWriteFinish;
|
|
481
|
+
let pw;
|
|
482
|
+
if (awf && (pw = this._pendingWrites.get(path))) {
|
|
483
|
+
pw.lastChange = new Date();
|
|
484
|
+
return this;
|
|
485
|
+
}
|
|
486
|
+
if (opts.atomic) {
|
|
487
|
+
if (event === EV.UNLINK) {
|
|
488
|
+
this._pendingUnlinks.set(path, [event, ...args]);
|
|
489
|
+
setTimeout(() => {
|
|
490
|
+
this._pendingUnlinks.forEach((entry, path) => {
|
|
491
|
+
this.emit(...entry);
|
|
492
|
+
this.emit(EV.ALL, ...entry);
|
|
493
|
+
this._pendingUnlinks.delete(path);
|
|
494
|
+
});
|
|
495
|
+
}, typeof opts.atomic === 'number' ? opts.atomic : 100);
|
|
496
|
+
return this;
|
|
497
|
+
}
|
|
498
|
+
if (event === EV.ADD && this._pendingUnlinks.has(path)) {
|
|
499
|
+
event = EV.CHANGE;
|
|
500
|
+
this._pendingUnlinks.delete(path);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
if (awf && (event === EV.ADD || event === EV.CHANGE) && this._readyEmitted) {
|
|
504
|
+
const awfEmit = (err, stats) => {
|
|
505
|
+
if (err) {
|
|
506
|
+
event = EV.ERROR;
|
|
507
|
+
args[0] = err;
|
|
508
|
+
this.emitWithAll(event, args);
|
|
509
|
+
}
|
|
510
|
+
else if (stats) {
|
|
511
|
+
// if stats doesn't exist the file must have been deleted
|
|
512
|
+
if (args.length > 1) {
|
|
513
|
+
args[1] = stats;
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
args.push(stats);
|
|
517
|
+
}
|
|
518
|
+
this.emitWithAll(event, args);
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
this._awaitWriteFinish(path, awf.stabilityThreshold, event, awfEmit);
|
|
522
|
+
return this;
|
|
523
|
+
}
|
|
524
|
+
if (event === EV.CHANGE) {
|
|
525
|
+
const isThrottled = !this._throttle(EV.CHANGE, path, 50);
|
|
526
|
+
if (isThrottled)
|
|
527
|
+
return this;
|
|
528
|
+
}
|
|
529
|
+
if (opts.alwaysStat &&
|
|
530
|
+
stats === undefined &&
|
|
531
|
+
(event === EV.ADD || event === EV.ADD_DIR || event === EV.CHANGE)) {
|
|
532
|
+
const fullPath = opts.cwd ? sp.join(opts.cwd, path) : path;
|
|
533
|
+
let stats;
|
|
534
|
+
try {
|
|
535
|
+
stats = await stat(fullPath);
|
|
536
|
+
}
|
|
537
|
+
catch (err) {
|
|
538
|
+
// do nothing
|
|
539
|
+
}
|
|
540
|
+
// Suppress event when fs_stat fails, to avoid sending undefined 'stat'
|
|
541
|
+
if (!stats || this.closed)
|
|
542
|
+
return;
|
|
543
|
+
args.push(stats);
|
|
544
|
+
}
|
|
545
|
+
this.emitWithAll(event, args);
|
|
546
|
+
return this;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Common handler for errors
|
|
550
|
+
* @returns The error if defined, otherwise the value of the FSWatcher instance's `closed` flag
|
|
551
|
+
*/
|
|
552
|
+
_handleError(error) {
|
|
553
|
+
const code = error && error.code;
|
|
554
|
+
if (error &&
|
|
555
|
+
code !== 'ENOENT' &&
|
|
556
|
+
code !== 'ENOTDIR' &&
|
|
557
|
+
(!this.options.ignorePermissionErrors || (code !== 'EPERM' && code !== 'EACCES'))) {
|
|
558
|
+
this.emit(EV.ERROR, error);
|
|
559
|
+
}
|
|
560
|
+
return error || this.closed;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Helper utility for throttling
|
|
564
|
+
* @param actionType type being throttled
|
|
565
|
+
* @param path being acted upon
|
|
566
|
+
* @param timeout duration of time to suppress duplicate actions
|
|
567
|
+
* @returns tracking object or false if action should be suppressed
|
|
568
|
+
*/
|
|
569
|
+
_throttle(actionType, path, timeout) {
|
|
570
|
+
if (!this._throttled.has(actionType)) {
|
|
571
|
+
this._throttled.set(actionType, new Map());
|
|
572
|
+
}
|
|
573
|
+
const action = this._throttled.get(actionType);
|
|
574
|
+
if (!action)
|
|
575
|
+
throw new Error('invalid throttle');
|
|
576
|
+
const actionPath = action.get(path);
|
|
577
|
+
if (actionPath) {
|
|
578
|
+
actionPath.count++;
|
|
579
|
+
return false;
|
|
580
|
+
}
|
|
581
|
+
// eslint-disable-next-line prefer-const
|
|
582
|
+
let timeoutObject;
|
|
583
|
+
const clear = () => {
|
|
584
|
+
const item = action.get(path);
|
|
585
|
+
const count = item ? item.count : 0;
|
|
586
|
+
action.delete(path);
|
|
587
|
+
clearTimeout(timeoutObject);
|
|
588
|
+
if (item)
|
|
589
|
+
clearTimeout(item.timeoutObject);
|
|
590
|
+
return count;
|
|
591
|
+
};
|
|
592
|
+
timeoutObject = setTimeout(clear, timeout);
|
|
593
|
+
const thr = { timeoutObject, clear, count: 0 };
|
|
594
|
+
action.set(path, thr);
|
|
595
|
+
return thr;
|
|
596
|
+
}
|
|
597
|
+
_incrReadyCount() {
|
|
598
|
+
return this._readyCount++;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Awaits write operation to finish.
|
|
602
|
+
* Polls a newly created file for size variations. When files size does not change for 'threshold' milliseconds calls callback.
|
|
603
|
+
* @param path being acted upon
|
|
604
|
+
* @param threshold Time in milliseconds a file size must be fixed before acknowledging write OP is finished
|
|
605
|
+
* @param event
|
|
606
|
+
* @param awfEmit Callback to be called when ready for event to be emitted.
|
|
607
|
+
*/
|
|
608
|
+
_awaitWriteFinish(path, threshold, event, awfEmit) {
|
|
609
|
+
const awf = this.options.awaitWriteFinish;
|
|
610
|
+
if (typeof awf !== 'object')
|
|
611
|
+
return;
|
|
612
|
+
const pollInterval = awf.pollInterval;
|
|
613
|
+
let timeoutHandler;
|
|
614
|
+
let fullPath = path;
|
|
615
|
+
if (this.options.cwd && !sp.isAbsolute(path)) {
|
|
616
|
+
fullPath = sp.join(this.options.cwd, path);
|
|
617
|
+
}
|
|
618
|
+
const now = new Date();
|
|
619
|
+
const writes = this._pendingWrites;
|
|
620
|
+
function awaitWriteFinishFn(prevStat) {
|
|
621
|
+
statcb(fullPath, (err, curStat) => {
|
|
622
|
+
if (err || !writes.has(path)) {
|
|
623
|
+
if (err && err.code !== 'ENOENT')
|
|
624
|
+
awfEmit(err);
|
|
625
|
+
return;
|
|
626
|
+
}
|
|
627
|
+
const now = Number(new Date());
|
|
628
|
+
if (prevStat && curStat.size !== prevStat.size) {
|
|
629
|
+
writes.get(path).lastChange = now;
|
|
630
|
+
}
|
|
631
|
+
const pw = writes.get(path);
|
|
632
|
+
const df = now - pw.lastChange;
|
|
633
|
+
if (df >= threshold) {
|
|
634
|
+
writes.delete(path);
|
|
635
|
+
awfEmit(undefined, curStat);
|
|
636
|
+
}
|
|
637
|
+
else {
|
|
638
|
+
timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval, curStat);
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
if (!writes.has(path)) {
|
|
643
|
+
writes.set(path, {
|
|
644
|
+
lastChange: now,
|
|
645
|
+
cancelWait: () => {
|
|
646
|
+
writes.delete(path);
|
|
647
|
+
clearTimeout(timeoutHandler);
|
|
648
|
+
return event;
|
|
649
|
+
},
|
|
650
|
+
});
|
|
651
|
+
timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Determines whether user has asked to ignore this path.
|
|
656
|
+
*/
|
|
657
|
+
_isIgnored(path, stats) {
|
|
658
|
+
if (this.options.atomic && DOT_RE.test(path))
|
|
659
|
+
return true;
|
|
660
|
+
if (!this._userIgnored) {
|
|
661
|
+
const { cwd } = this.options;
|
|
662
|
+
const ign = this.options.ignored;
|
|
663
|
+
const ignored = (ign || []).map(normalizeIgnored(cwd));
|
|
664
|
+
const ignoredPaths = [...this._ignoredPaths];
|
|
665
|
+
const list = [...ignoredPaths.map(normalizeIgnored(cwd)), ...ignored];
|
|
666
|
+
this._userIgnored = anymatch(list, undefined);
|
|
667
|
+
}
|
|
668
|
+
return this._userIgnored(path, stats);
|
|
669
|
+
}
|
|
670
|
+
_isntIgnored(path, stat) {
|
|
671
|
+
return !this._isIgnored(path, stat);
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Provides a set of common helpers and properties relating to symlink handling.
|
|
675
|
+
* @param path file or directory pattern being watched
|
|
676
|
+
*/
|
|
677
|
+
_getWatchHelpers(path) {
|
|
678
|
+
return new WatchHelper(path, this.options.followSymlinks, this);
|
|
679
|
+
}
|
|
680
|
+
// Directory helpers
|
|
681
|
+
// -----------------
|
|
682
|
+
/**
|
|
683
|
+
* Provides directory tracking objects
|
|
684
|
+
* @param directory path of the directory
|
|
685
|
+
*/
|
|
686
|
+
_getWatchedDir(directory) {
|
|
687
|
+
const dir = sp.resolve(directory);
|
|
688
|
+
if (!this._watched.has(dir))
|
|
689
|
+
this._watched.set(dir, new DirEntry(dir, this._boundRemove));
|
|
690
|
+
return this._watched.get(dir);
|
|
691
|
+
}
|
|
692
|
+
// File helpers
|
|
693
|
+
// ------------
|
|
694
|
+
/**
|
|
695
|
+
* Check for read permissions: https://stackoverflow.com/a/11781404/1358405
|
|
696
|
+
*/
|
|
697
|
+
_hasReadPermissions(stats) {
|
|
698
|
+
if (this.options.ignorePermissionErrors)
|
|
699
|
+
return true;
|
|
700
|
+
return Boolean(Number(stats.mode) & 0o400);
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Handles emitting unlink events for
|
|
704
|
+
* files and directories, and via recursion, for
|
|
705
|
+
* files and directories within directories that are unlinked
|
|
706
|
+
* @param directory within which the following item is located
|
|
707
|
+
* @param item base path of item/directory
|
|
708
|
+
*/
|
|
709
|
+
_remove(directory, item, isDirectory) {
|
|
710
|
+
// if what is being deleted is a directory, get that directory's paths
|
|
711
|
+
// for recursive deleting and cleaning of watched object
|
|
712
|
+
// if it is not a directory, nestedDirectoryChildren will be empty array
|
|
713
|
+
const path = sp.join(directory, item);
|
|
714
|
+
const fullPath = sp.resolve(path);
|
|
715
|
+
isDirectory =
|
|
716
|
+
isDirectory != null ? isDirectory : this._watched.has(path) || this._watched.has(fullPath);
|
|
717
|
+
// prevent duplicate handling in case of arriving here nearly simultaneously
|
|
718
|
+
// via multiple paths (such as _handleFile and _handleDir)
|
|
719
|
+
if (!this._throttle('remove', path, 100))
|
|
720
|
+
return;
|
|
721
|
+
// if the only watched file is removed, watch for its return
|
|
722
|
+
if (!isDirectory && this._watched.size === 1) {
|
|
723
|
+
this.add(directory, item, true);
|
|
724
|
+
}
|
|
725
|
+
// This will create a new entry in the watched object in either case
|
|
726
|
+
// so we got to do the directory check beforehand
|
|
727
|
+
const wp = this._getWatchedDir(path);
|
|
728
|
+
const nestedDirectoryChildren = wp.getChildren();
|
|
729
|
+
// Recursively remove children directories / files.
|
|
730
|
+
nestedDirectoryChildren.forEach((nested) => this._remove(path, nested));
|
|
731
|
+
// Check if item was on the watched list and remove it
|
|
732
|
+
const parent = this._getWatchedDir(directory);
|
|
733
|
+
const wasTracked = parent.has(item);
|
|
734
|
+
parent.remove(item);
|
|
735
|
+
// Fixes issue #1042 -> Relative paths were detected and added as symlinks
|
|
736
|
+
// (https://github.com/paulmillr/chokidar/blob/e1753ddbc9571bdc33b4a4af172d52cb6e611c10/lib/nodefs-handler.js#L612),
|
|
737
|
+
// but never removed from the map in case the path was deleted.
|
|
738
|
+
// This leads to an incorrect state if the path was recreated:
|
|
739
|
+
// https://github.com/paulmillr/chokidar/blob/e1753ddbc9571bdc33b4a4af172d52cb6e611c10/lib/nodefs-handler.js#L553
|
|
740
|
+
if (this._symlinkPaths.has(fullPath)) {
|
|
741
|
+
this._symlinkPaths.delete(fullPath);
|
|
742
|
+
}
|
|
743
|
+
// If we wait for this file to be fully written, cancel the wait.
|
|
744
|
+
let relPath = path;
|
|
745
|
+
if (this.options.cwd)
|
|
746
|
+
relPath = sp.relative(this.options.cwd, path);
|
|
747
|
+
if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
|
|
748
|
+
const event = this._pendingWrites.get(relPath).cancelWait();
|
|
749
|
+
if (event === EV.ADD)
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
752
|
+
// The Entry will either be a directory that just got removed
|
|
753
|
+
// or a bogus entry to a file, in either case we have to remove it
|
|
754
|
+
this._watched.delete(path);
|
|
755
|
+
this._watched.delete(fullPath);
|
|
756
|
+
const eventName = isDirectory ? EV.UNLINK_DIR : EV.UNLINK;
|
|
757
|
+
if (wasTracked && !this._isIgnored(path))
|
|
758
|
+
this._emit(eventName, path);
|
|
759
|
+
// Avoid conflicts if we later create another file with the same name
|
|
760
|
+
this._closePath(path);
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* Closes all watchers for a path
|
|
764
|
+
*/
|
|
765
|
+
_closePath(path) {
|
|
766
|
+
this._closeFile(path);
|
|
767
|
+
const dir = sp.dirname(path);
|
|
768
|
+
this._getWatchedDir(dir).remove(sp.basename(path));
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Closes only file-specific watchers
|
|
772
|
+
*/
|
|
773
|
+
_closeFile(path) {
|
|
774
|
+
const closers = this._closers.get(path);
|
|
775
|
+
if (!closers)
|
|
776
|
+
return;
|
|
777
|
+
closers.forEach((closer) => closer());
|
|
778
|
+
this._closers.delete(path);
|
|
779
|
+
}
|
|
780
|
+
_addPathCloser(path, closer) {
|
|
781
|
+
if (!closer)
|
|
782
|
+
return;
|
|
783
|
+
let list = this._closers.get(path);
|
|
784
|
+
if (!list) {
|
|
785
|
+
list = [];
|
|
786
|
+
this._closers.set(path, list);
|
|
787
|
+
}
|
|
788
|
+
list.push(closer);
|
|
789
|
+
}
|
|
790
|
+
_readdirp(root, opts) {
|
|
791
|
+
if (this.closed)
|
|
792
|
+
return;
|
|
793
|
+
const options = { type: EV.ALL, alwaysStat: true, lstat: true, ...opts, depth: 0 };
|
|
794
|
+
let stream = readdirp(root, options);
|
|
795
|
+
this._streams.add(stream);
|
|
796
|
+
stream.once(STR_CLOSE, () => {
|
|
797
|
+
stream = undefined;
|
|
798
|
+
});
|
|
799
|
+
stream.once(STR_END, () => {
|
|
800
|
+
if (stream) {
|
|
801
|
+
this._streams.delete(stream);
|
|
802
|
+
stream = undefined;
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
return stream;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Instantiates watcher with paths to be tracked.
|
|
810
|
+
* @param paths file / directory paths
|
|
811
|
+
* @param options opts, such as `atomic`, `awaitWriteFinish`, `ignored`, and others
|
|
812
|
+
* @returns an instance of FSWatcher for chaining.
|
|
813
|
+
* @example
|
|
814
|
+
* const watcher = watch('.').on('all', (event, path) => { console.log(event, path); });
|
|
815
|
+
* watch('.', { atomic: true, awaitWriteFinish: true, ignored: (f, stats) => stats?.isFile() && !f.endsWith('.js') })
|
|
816
|
+
*/
|
|
817
|
+
export function watch(paths, options = {}) {
|
|
818
|
+
const watcher = new FSWatcher(options);
|
|
819
|
+
watcher.add(paths);
|
|
820
|
+
return watcher;
|
|
821
|
+
}
|
|
822
|
+
export default { watch: watch, FSWatcher: FSWatcher };
|