@geminilight/mindos-windows-arm64 1.0.5 → 1.0.7
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/_standalone/.mindos-build-version +1 -1
- package/_standalone/__next/BUILD_ID +1 -1
- package/_standalone/__next/app-path-routes-manifest.json +26 -26
- package/_standalone/__next/build-manifest.json +4 -4
- package/_standalone/__next/prerender-manifest.json +3 -3
- package/_standalone/__next/react-loadable-manifest.json +4 -4
- package/_standalone/__next/required-server-files.json +4 -4
- package/_standalone/__next/server/app/.well-known/agent-card.json/route.js +1 -1
- package/_standalone/__next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/_global-error/page.js +3 -3
- package/_standalone/__next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/_global-error.html +2 -2
- package/_standalone/__next/server/app/_global-error.rsc +3 -3
- package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +3 -3
- package/_standalone/__next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_index.segment.rsc +2 -2
- package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/_standalone/__next/server/app/_not-found/page.js +2 -2
- package/_standalone/__next/server/app/_not-found/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/agents/[agentKey]/page.js +2 -2
- package/_standalone/__next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/agents/page.js +2 -2
- package/_standalone/__next/server/app/agents/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/a2a/agents/route.js +1 -1
- package/_standalone/__next/server/app/api/a2a/agents/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/a2a/delegations/route.js +1 -1
- package/_standalone/__next/server/app/api/a2a/delegations/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/a2a/discover/route.js +1 -1
- package/_standalone/__next/server/app/api/a2a/discover/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/a2a/route.js +1 -1
- package/_standalone/__next/server/app/api/a2a/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/config/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/config/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/detect/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/detect/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/install/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/install/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/registry/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/registry/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/acp/session/route.js +1 -1
- package/_standalone/__next/server/app/api/acp/session/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agent-activity/route.js +1 -1
- package/_standalone/__next/server/app/api/agent-activity/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agents/copy-skill/route.js +1 -1
- package/_standalone/__next/server/app/api/agents/copy-skill/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/detect/route.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/detect/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/route.js +1 -1
- package/_standalone/__next/server/app/api/agents/custom/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/ask/route.js +2 -2
- package/_standalone/__next/server/app/api/ask/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/ask/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/ask-sessions/route.js +1 -1
- package/_standalone/__next/server/app/api/ask-sessions/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/auth/route.js +1 -1
- package/_standalone/__next/server/app/api/auth/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/backlinks/route.js +1 -1
- package/_standalone/__next/server/app/api/backlinks/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/bootstrap/route.js +1 -1
- package/_standalone/__next/server/app/api/bootstrap/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/changes/route.js +1 -1
- package/_standalone/__next/server/app/api/changes/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/changes/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/channels/verify/route.js +1 -1
- package/_standalone/__next/server/app/api/channels/verify/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/connect/route.js +1 -1
- package/_standalone/__next/server/app/api/connect/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/embedding/route.js +1 -1
- package/_standalone/__next/server/app/api/embedding/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/export/route.js +1 -1
- package/_standalone/__next/server/app/api/export/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/export/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/extract-docx/route.js +1 -1
- package/_standalone/__next/server/app/api/extract-docx/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/extract-pdf/route.js +2 -2
- package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/file/import/route.js +1 -1
- package/_standalone/__next/server/app/api/file/import/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/file/raw/route.js +1 -1
- package/_standalone/__next/server/app/api/file/raw/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/file/route.js +1 -1
- package/_standalone/__next/server/app/api/file/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/files/route.js +1 -1
- package/_standalone/__next/server/app/api/files/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/git/route.js +1 -1
- package/_standalone/__next/server/app/api/git/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/graph/route.js +1 -1
- package/_standalone/__next/server/app/api/graph/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/health/route.js +1 -1
- package/_standalone/__next/server/app/api/health/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/activity/route.js +1 -1
- package/_standalone/__next/server/app/api/im/activity/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/config/route.js +1 -1
- package/_standalone/__next/server/app/api/im/config/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/event/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/route.js +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/feishu/long-connection/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/status/route.js +1 -1
- package/_standalone/__next/server/app/api/im/status/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/test/route.js +1 -1
- package/_standalone/__next/server/app/api/im/test/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook/feishu/route.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook/feishu/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook-status/route.js +1 -1
- package/_standalone/__next/server/app/api/im/webhook-status/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/inbox/clip/route.js +2 -2
- package/_standalone/__next/server/app/api/inbox/clip/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/inbox/route.js +1 -1
- package/_standalone/__next/server/app/api/inbox/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/init/route.js +1 -1
- package/_standalone/__next/server/app/api/init/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/lint/route.js +1 -1
- package/_standalone/__next/server/app/api/lint/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/lint/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/agents/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/agents/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/direct-tools/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/direct-tools/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/install/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/install/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/install-skill/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/install-skill/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/restart/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/restart/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/status/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/status/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/tools/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/mcp/uninstall/route.js +1 -1
- package/_standalone/__next/server/app/api/mcp/uninstall/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/monitoring/route.js +1 -1
- package/_standalone/__next/server/app/api/monitoring/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/compat-report/route.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/compat-report/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/obsidian/compat-report/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/import/route.js +1 -1
- package/_standalone/__next/server/app/api/obsidian/import/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/obsidian/import/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/obsidian-plugins/settings/route.js +2 -2
- package/_standalone/__next/server/app/api/obsidian-plugins/settings/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/obsidian-plugins/settings/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/recent-files/route.js +1 -1
- package/_standalone/__next/server/app/api/recent-files/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/restart/route.js +1 -1
- package/_standalone/__next/server/app/api/restart/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/restart/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/search/prewarm/route.js +1 -1
- package/_standalone/__next/server/app/api/search/prewarm/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/search/prewarm/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/search/route.js +1 -1
- package/_standalone/__next/server/app/api/search/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/settings/list-models/route.js +1 -1
- package/_standalone/__next/server/app/api/settings/list-models/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/settings/reset-token/route.js +1 -1
- package/_standalone/__next/server/app/api/settings/reset-token/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/settings/route.js +1 -1
- package/_standalone/__next/server/app/api/settings/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/settings/test-key/route.js +1 -1
- package/_standalone/__next/server/app/api/settings/test-key/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/check-path/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/check-path/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/check-port/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/check-port/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/generate-token/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/generate-token/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/ls/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/ls/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/setup/route.js +1 -1
- package/_standalone/__next/server/app/api/setup/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/setup/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/skills/route.js +1 -1
- package/_standalone/__next/server/app/api/skills/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/space-overview/route.js +1 -1
- package/_standalone/__next/server/app/api/space-overview/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/sync/route.js +1 -1
- package/_standalone/__next/server/app/api/sync/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/sync/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/tree-version/route.js +1 -1
- package/_standalone/__next/server/app/api/tree-version/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/uninstall/route.js +1 -1
- package/_standalone/__next/server/app/api/uninstall/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/update/route.js +1 -1
- package/_standalone/__next/server/app/api/update/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/update-check/route.js +1 -1
- package/_standalone/__next/server/app/api/update-check/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/update-status/route.js +1 -1
- package/_standalone/__next/server/app/api/update-status/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/workflows/route.js +1 -1
- package/_standalone/__next/server/app/api/workflows/route.js.nft.json +1 -1
- package/_standalone/__next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/capture/history/page.js +2 -2
- package/_standalone/__next/server/app/capture/history/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/capture/history/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/capture/page.js +2 -2
- package/_standalone/__next/server/app/capture/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/capture/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/changelog/page.js +2 -2
- package/_standalone/__next/server/app/changelog/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/changelog/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/changes/page.js +2 -2
- package/_standalone/__next/server/app/changes/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/changes/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/echo/[segment]/page.js +4 -4
- package/_standalone/__next/server/app/echo/[segment]/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/echo/page.js +2 -2
- package/_standalone/__next/server/app/echo/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/echo/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/explore/page.js +3 -3
- package/_standalone/__next/server/app/explore/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/explore/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/help/page.js +2 -2
- package/_standalone/__next/server/app/help/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/help/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/icon.svg/route.js +1 -1
- package/_standalone/__next/server/app/inbox/history/page.js +2 -2
- package/_standalone/__next/server/app/inbox/history/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/login/page.js +2 -2
- package/_standalone/__next/server/app/login/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/login/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/page.js +2 -2
- package/_standalone/__next/server/app/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/settings/page.js +2 -2
- package/_standalone/__next/server/app/settings/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/setup/page.js +2 -2
- package/_standalone/__next/server/app/setup/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/todo/page.js +2 -2
- package/_standalone/__next/server/app/todo/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/todo/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/trash/page.js +3 -3
- package/_standalone/__next/server/app/trash/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/trash/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/view/[...path]/page.js +3 -3
- package/_standalone/__next/server/app/view/[...path]/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/wiki/page.js +2 -2
- package/_standalone/__next/server/app/wiki/page.js.nft.json +1 -1
- package/_standalone/__next/server/app/wiki/page_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app-paths-manifest.json +26 -26
- package/_standalone/__next/server/chunks/{6602.js → 1834.js} +32 -32
- package/_standalone/__next/server/chunks/1976.js +3 -3
- package/_standalone/__next/server/chunks/3466.js +1 -1
- package/_standalone/__next/server/chunks/3566.js +1 -1
- package/_standalone/__next/server/chunks/3727.js +1 -1
- package/_standalone/__next/server/chunks/4793.js +1 -1
- package/_standalone/__next/server/chunks/6377.js +3 -3
- package/_standalone/__next/server/chunks/6754.js +1 -1
- package/_standalone/__next/server/chunks/7765.js +1 -1
- package/_standalone/__next/server/chunks/8028.js +1 -1
- package/_standalone/__next/server/chunks/{7295.js → 8461.js} +19 -19
- package/_standalone/__next/server/chunks/9350.js +2 -2
- package/_standalone/__next/server/chunks/{5225.js → 9773.js} +4 -4
- package/_standalone/__next/server/middleware-build-manifest.js +1 -1
- package/_standalone/__next/server/middleware-react-loadable-manifest.js +1 -1
- package/_standalone/__next/server/middleware.js +2 -2
- package/_standalone/__next/server/pages/500.html +2 -2
- package/_standalone/__next/server/server-reference-manifest.js +1 -1
- package/_standalone/__next/server/server-reference-manifest.json +1 -1
- package/_standalone/__next/static/chunks/{1430-a3447cf370715cad.js → 1430-c4ffa328888515c1.js} +1 -1
- package/{static-web/_next/static/chunks/7166-d6d8489fdf67d180.js → _standalone/__next/static/chunks/1957-723ac4eb5200214c.js} +3 -3
- package/_standalone/__next/static/chunks/{2280-2277c97eae59ded9.js → 2737-f4970f0684c334d6.js} +2 -2
- package/{static-web/_next/static/chunks/5200-2447cea5eb41a922.js → _standalone/__next/static/chunks/5200-6c82e5ce54a95b4b.js} +2 -2
- package/_standalone/__next/static/chunks/{1998.c8edc5601fa7362f.js → 6728.e1841cddb63308b0.js} +1 -1
- package/_standalone/__next/static/chunks/{6947.51e37852cef26113.js → 6947.fb89346ef2f6be17.js} +1 -1
- package/_standalone/__next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
- package/{static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → _standalone/__next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
- package/{static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js → _standalone/__next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
- package/_standalone/__next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
- package/_standalone/__next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
- package/_standalone/__next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
- package/_standalone/__next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
- package/{static-web/_next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → _standalone/__next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
- package/_standalone/__next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
- package/_standalone/__next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
- package/_standalone/__next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
- package/_standalone/__next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
- package/{static-web/_next/static/chunks/app/help/page-3f0a1a8e51249cb2.js → _standalone/__next/static/chunks/app/help/page-6efb8aa3a3c169fa.js} +1 -1
- package/_standalone/__next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
- package/_standalone/__next/static/chunks/app/{layout-7aa371fe2615cd3e.js → layout-24a31ea28c556e82.js} +38 -38
- package/_standalone/__next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
- package/{static-web/_next/static/chunks/app/page-5c9489e28657376e.js → _standalone/__next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
- package/_standalone/__next/static/chunks/app/settings/{page-4b75d6c17f42d565.js → page-f816f13a34613538.js} +1 -1
- package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
- package/_standalone/__next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
- package/_standalone/__next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
- package/_standalone/__next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
- package/_standalone/__next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
- package/{static-web/_next/static/chunks/app/view/[...path]/page-ffe3c61100e25591.js → _standalone/__next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js} +2 -2
- package/{static-web/_next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → _standalone/__next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
- package/_standalone/__next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
- package/_standalone/__next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/middleware-websocket/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@aws-sdk/xml-builder/node_modules/.bin/fxparser +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/.bin/pi-ai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/extract-zip +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/highlight +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/jiti +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/marked +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/pi-ai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/.bin/yaml +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/anthropic-ai-sdk +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-ai/node_modules/.bin/openai +2 -2
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/index.js +14 -0
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/license +9 -0
- package/_standalone/__node_modules/@mariozechner/pi-coding-agent/node_modules/strip-ansi/node_modules/ansi-regex/package.json +61 -0
- package/_standalone/__node_modules/@mariozechner/pi-tui/node_modules/.bin/marked +2 -2
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/core/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/hash-node/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/signature-v4/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/dist-es/index.js +14 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/LICENSE +201 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/dist-es/index.js +2 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/_standalone/__node_modules/@smithy/util-stream/node_modules/@smithy/util-utf8/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/_standalone/__node_modules/bignumber.js/doc/API.html +2249 -0
- package/_standalone/__node_modules/degenerator/node_modules/.bin/escodegen +2 -2
- package/_standalone/__node_modules/degenerator/node_modules/.bin/esgenerate +2 -2
- package/_standalone/__node_modules/degenerator/node_modules/.bin/esparse +2 -2
- package/_standalone/__node_modules/degenerator/node_modules/.bin/esvalidate +2 -2
- package/_standalone/__node_modules/entities/LICENSE +11 -0
- package/_standalone/__node_modules/entities/dist/decode-codepoint.js +46 -0
- package/_standalone/__node_modules/entities/dist/decode.js +544 -0
- package/_standalone/__node_modules/entities/dist/encode.js +90 -0
- package/_standalone/__node_modules/entities/dist/escape.js +132 -0
- package/_standalone/__node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/_standalone/__node_modules/entities/dist/generated/decode-data-xml.js +5 -0
- package/_standalone/__node_modules/entities/dist/generated/encode-html.js +12 -0
- package/_standalone/__node_modules/entities/dist/index.js +91 -0
- package/_standalone/__node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
- package/_standalone/__node_modules/entities/dist/internal/decode-shared.js +17 -0
- package/_standalone/__node_modules/entities/dist/internal/encode-shared.js +93 -0
- package/_standalone/__node_modules/entities/package.json +83 -0
- package/_standalone/__node_modules/entities/src/decode-codepoint.ts +50 -0
- package/_standalone/__node_modules/entities/src/decode.ts +671 -0
- package/_standalone/__node_modules/entities/src/encode.ts +95 -0
- package/_standalone/__node_modules/entities/src/escape.ts +160 -0
- package/_standalone/__node_modules/entities/src/generated/decode-data-html.ts +7 -0
- package/_standalone/__node_modules/entities/src/generated/decode-data-xml.ts +7 -0
- package/_standalone/__node_modules/entities/src/generated/encode-html.ts +18 -0
- package/_standalone/__node_modules/entities/src/index.ts +162 -0
- package/_standalone/__node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/_standalone/__node_modules/entities/src/internal/decode-shared.ts +18 -0
- package/_standalone/__node_modules/entities/src/internal/encode-shared.ts +123 -0
- package/_standalone/__node_modules/escodegen/node_modules/.bin/esparse +2 -2
- package/_standalone/__node_modules/escodegen/node_modules/.bin/esvalidate +2 -2
- package/_standalone/__node_modules/global-agent/node_modules/.bin/semver +2 -2
- package/_standalone/__node_modules/has-flag/index.js +8 -0
- package/_standalone/__node_modules/has-flag/license +9 -0
- package/_standalone/__node_modules/has-flag/package.json +46 -0
- package/_standalone/__node_modules/jsdom/node_modules/.bin/specificity +2 -2
- package/_standalone/__node_modules/koffi/doc/benchmarks.md +126 -0
- package/_standalone/__node_modules/koffi/doc/callbacks.md +210 -0
- package/_standalone/__node_modules/koffi/doc/contribute.md +148 -0
- package/_standalone/__node_modules/koffi/doc/functions.md +250 -0
- package/_standalone/__node_modules/koffi/doc/index.md +61 -0
- package/_standalone/__node_modules/koffi/doc/input.md +471 -0
- package/_standalone/__node_modules/koffi/doc/migration.md +159 -0
- package/_standalone/__node_modules/koffi/doc/misc.md +180 -0
- package/_standalone/__node_modules/koffi/doc/output.md +305 -0
- package/_standalone/__node_modules/koffi/doc/packaging.md +88 -0
- package/_standalone/__node_modules/koffi/doc/platforms.md +36 -0
- package/_standalone/__node_modules/koffi/doc/pointers.md +328 -0
- package/_standalone/__node_modules/koffi/doc/start.md +118 -0
- package/_standalone/__node_modules/koffi/doc/unions.md +186 -0
- package/_standalone/__node_modules/koffi/doc/variables.md +102 -0
- package/_standalone/__node_modules/postcss/node_modules/.bin/nanoid +2 -2
- package/_standalone/__node_modules/supports-color/browser.js +5 -0
- package/_standalone/__node_modules/supports-color/index.js +135 -0
- package/_standalone/__node_modules/supports-color/license +9 -0
- package/_standalone/__node_modules/supports-color/package.json +53 -0
- package/_standalone/__node_modules/tough-cookie/node_modules/.bin/tldts +2 -2
- package/_standalone/__node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/_standalone/__node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/_standalone/__node_modules/yaml/dist/doc/Document.js +337 -0
- package/_standalone/__node_modules/yaml/dist/doc/anchors.js +76 -0
- package/_standalone/__node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/_standalone/__node_modules/yaml/dist/doc/createNode.js +90 -0
- package/_standalone/__node_modules/yaml/dist/doc/directives.js +178 -0
- package/_standalone/server.js +1 -1
- package/dist/server/handlers/mcp-agents.d.ts +1 -0
- package/dist/server/handlers/mcp-agents.d.ts.map +1 -1
- package/dist/server/handlers/mcp-agents.js +230 -7
- package/dist/server/handlers/mcp-agents.js.map +1 -1
- package/dist/server/http.d.ts +7 -4
- package/dist/server/http.d.ts.map +1 -1
- package/dist/server/http.js +2 -0
- package/dist/server/http.js.map +1 -1
- package/dist/server/mcp-agent-registry.d.ts +4 -0
- package/dist/server/mcp-agent-registry.d.ts.map +1 -0
- package/dist/server/mcp-agent-registry.js +266 -0
- package/dist/server/mcp-agent-registry.js.map +1 -0
- package/package.json +1 -1
- package/runtime-manifest.json +1 -1
- package/scripts/prepare-standalone.mjs +0 -1
- package/scripts/smoke-desktop-app.mjs +82 -8
- package/scripts/verify-desktop-runtime.mjs +2 -1
- package/scripts/verify-standalone.mjs +12 -0
- package/static-web/.mindos-build-version +1 -1
- package/static-web/_next/static/chunks/{1430-a3447cf370715cad.js → 1430-c4ffa328888515c1.js} +1 -1
- package/{_standalone/__next/static/chunks/7166-d6d8489fdf67d180.js → static-web/_next/static/chunks/1957-723ac4eb5200214c.js} +3 -3
- package/static-web/_next/static/chunks/{2280-2277c97eae59ded9.js → 2737-f4970f0684c334d6.js} +2 -2
- package/{_standalone/__next/static/chunks/5200-2447cea5eb41a922.js → static-web/_next/static/chunks/5200-6c82e5ce54a95b4b.js} +2 -2
- package/static-web/_next/static/chunks/{1998.c8edc5601fa7362f.js → 6728.e1841cddb63308b0.js} +1 -1
- package/static-web/_next/static/chunks/{6947.51e37852cef26113.js → 6947.fb89346ef2f6be17.js} +1 -1
- package/static-web/_next/static/chunks/app/_not-found/{page-ec6fa498a07e6fd9.js → page-eaedcec1b693c03c.js} +1 -1
- package/{_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js → static-web/_next/static/chunks/app/agents/[agentKey]/page-1dac12945bfbaf35.js} +1 -1
- package/{_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js → static-web/_next/static/chunks/app/agents/page-7ff2e39ca12eb20a.js} +1 -1
- package/static-web/_next/static/chunks/app/capture/history/page-51db96203209a441.js +1 -0
- package/static-web/_next/static/chunks/app/capture/page-3bf09d1f5e1c379c.js +1 -0
- package/static-web/_next/static/chunks/app/changelog/page-01dc22b6d2230c7f.js +1 -0
- package/static-web/_next/static/chunks/app/changes/page-c9f8d5632a001849.js +1 -0
- package/{_standalone/__next/static/chunks/app/echo/[segment]/page-c5ea40ac04f2dc29.js → static-web/_next/static/chunks/app/echo/[segment]/page-44b6b8e7fd0bbe31.js} +2 -2
- package/static-web/_next/static/chunks/app/echo/page-c9f8d5632a001849.js +1 -0
- package/static-web/_next/static/chunks/app/{error-c46d1b03d5e3289c.js → error-1cfcd6abd93c3837.js} +1 -1
- package/static-web/_next/static/chunks/app/explore/{page-5d6dd4af8d1bb468.js → page-117fcf54b8b9765c.js} +1 -1
- package/static-web/_next/static/chunks/app/global-error-11b333dcf222bc09.js +1 -0
- package/{_standalone/__next/static/chunks/app/help/page-3f0a1a8e51249cb2.js → static-web/_next/static/chunks/app/help/page-6efb8aa3a3c169fa.js} +1 -1
- package/static-web/_next/static/chunks/app/inbox/history/page-913645bbd6161116.js +1 -0
- package/static-web/_next/static/chunks/app/{layout-7aa371fe2615cd3e.js → layout-24a31ea28c556e82.js} +38 -38
- package/static-web/_next/static/chunks/app/login/page-7f9aca3d51266bec.js +1 -0
- package/{_standalone/__next/static/chunks/app/page-5c9489e28657376e.js → static-web/_next/static/chunks/app/page-35662964020c0ea9.js} +1 -1
- package/static-web/_next/static/chunks/app/settings/{page-4b75d6c17f42d565.js → page-f816f13a34613538.js} +1 -1
- package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-a1027871dc33ffbd.js} +1 -1
- package/static-web/_next/static/chunks/app/todo/page-54c3ec77f662ff73.js +1 -0
- package/static-web/_next/static/chunks/app/trash/page-50622e3df2047204.js +1 -0
- package/static-web/_next/static/chunks/app/view/[...path]/{error-f73092e638a4e999.js → error-c9a3f6de7c963c74.js} +1 -1
- package/static-web/_next/static/chunks/app/view/[...path]/{not-found-80e5f4054819b372.js → not-found-5a4f2b4fbe28d617.js} +1 -1
- package/{_standalone/__next/static/chunks/app/view/[...path]/page-ffe3c61100e25591.js → static-web/_next/static/chunks/app/view/[...path]/page-b10d3819827da1c2.js} +2 -2
- package/{_standalone/__next/static/chunks/app/wiki/page-4c9bc816069b6f2a.js → static-web/_next/static/chunks/app/wiki/page-7afd3b97c1ea1b8c.js} +2 -2
- package/static-web/_next/static/chunks/{main-app-23adfdc06470abb6.js → main-app-8a6081b103b8f494.js} +1 -1
- package/static-web/_next/static/chunks/webpack-7d8c24c6af17dd51.js +1 -0
- package/static-web/help/index.html +3 -3
- package/static-web/index.html +3 -3
- package/static-web/setup/index.html +3 -3
- package/static-web/static-web-manifest.json +1 -1
- package/static-web/wiki/index.html +3 -3
- package/_standalone/__next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
- package/_standalone/__next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
- package/_standalone/__next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
- package/_standalone/__next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
- package/_standalone/__next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
- package/_standalone/__next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
- package/_standalone/__next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
- package/_standalone/__next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
- package/_standalone/__next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
- package/_standalone/__next/static/chunks/app/trash/page-e1bfaeeca2de6ab4.js +0 -1
- package/_standalone/__next/static/chunks/webpack-e39fda9494843875.js +0 -1
- package/static-web/_next/static/chunks/app/capture/history/page-d157ce945ad84c23.js +0 -1
- package/static-web/_next/static/chunks/app/capture/page-ae4d683afdc7a7b2.js +0 -1
- package/static-web/_next/static/chunks/app/changelog/page-5a39d8fe531f4d45.js +0 -1
- package/static-web/_next/static/chunks/app/changes/page-64cf8d751245eee9.js +0 -1
- package/static-web/_next/static/chunks/app/echo/page-64cf8d751245eee9.js +0 -1
- package/static-web/_next/static/chunks/app/global-error-d42727c6c6c48879.js +0 -1
- package/static-web/_next/static/chunks/app/inbox/history/page-b2930c2ef04e00b0.js +0 -1
- package/static-web/_next/static/chunks/app/login/page-a4f9f9053c75ae8d.js +0 -1
- package/static-web/_next/static/chunks/app/todo/page-c7629a0c102c634f.js +0 -1
- package/static-web/_next/static/chunks/app/trash/page-e1bfaeeca2de6ab4.js +0 -1
- package/static-web/_next/static/chunks/webpack-e39fda9494843875.js +0 -1
- /package/_standalone/__next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
- /package/_standalone/__next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
- /package/static-web/_next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_buildManifest.js +0 -0
- /package/static-web/_next/static/{DFngZEGZSufSm5RuKPkYN → 3FkuJxcda957EywJ5ZWWG}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import { replaceCodePoint } from "./decode-codepoint.js";
|
|
2
|
+
import { htmlDecodeTree } from "./generated/decode-data-html.js";
|
|
3
|
+
import { xmlDecodeTree } from "./generated/decode-data-xml.js";
|
|
4
|
+
import { BinTrieFlags } from "./internal/bin-trie-flags.js";
|
|
5
|
+
|
|
6
|
+
const enum CharCodes {
|
|
7
|
+
NUM = 35, // "#"
|
|
8
|
+
SEMI = 59, // ";"
|
|
9
|
+
EQUALS = 61, // "="
|
|
10
|
+
ZERO = 48, // "0"
|
|
11
|
+
NINE = 57, // "9"
|
|
12
|
+
LOWER_A = 97, // "a"
|
|
13
|
+
LOWER_F = 102, // "f"
|
|
14
|
+
LOWER_X = 120, // "x"
|
|
15
|
+
LOWER_Z = 122, // "z"
|
|
16
|
+
UPPER_A = 65, // "A"
|
|
17
|
+
UPPER_F = 70, // "F"
|
|
18
|
+
UPPER_Z = 90, // "Z"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Bit that needs to be set to convert an upper case ASCII character to lower case */
|
|
22
|
+
const TO_LOWER_BIT = 0b10_0000;
|
|
23
|
+
|
|
24
|
+
function isNumber(code: number): boolean {
|
|
25
|
+
return code >= CharCodes.ZERO && code <= CharCodes.NINE;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function isHexadecimalCharacter(code: number): boolean {
|
|
29
|
+
return (
|
|
30
|
+
(code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F) ||
|
|
31
|
+
(code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F)
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function isAsciiAlphaNumeric(code: number): boolean {
|
|
36
|
+
return (
|
|
37
|
+
(code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z) ||
|
|
38
|
+
(code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z) ||
|
|
39
|
+
isNumber(code)
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Checks if the given character is a valid end character for an entity in an attribute.
|
|
45
|
+
*
|
|
46
|
+
* Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
|
|
47
|
+
* See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
|
|
48
|
+
* @param code Code point to decode.
|
|
49
|
+
*/
|
|
50
|
+
function isEntityInAttributeInvalidEnd(code: number): boolean {
|
|
51
|
+
return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const enum EntityDecoderState {
|
|
55
|
+
EntityStart,
|
|
56
|
+
NumericStart,
|
|
57
|
+
NumericDecimal,
|
|
58
|
+
NumericHex,
|
|
59
|
+
NamedEntity,
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Decoding mode for named entities.
|
|
64
|
+
*/
|
|
65
|
+
export enum DecodingMode {
|
|
66
|
+
/** Entities in text nodes that can end with any character. */
|
|
67
|
+
Legacy = 0,
|
|
68
|
+
/** Only allow entities terminated with a semicolon. */
|
|
69
|
+
Strict = 1,
|
|
70
|
+
/** Entities in attributes have limitations on ending characters. */
|
|
71
|
+
Attribute = 2,
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Producers for character reference errors as defined in the HTML spec.
|
|
76
|
+
*/
|
|
77
|
+
export interface EntityErrorProducer {
|
|
78
|
+
missingSemicolonAfterCharacterReference(): void;
|
|
79
|
+
absenceOfDigitsInNumericCharacterReference(
|
|
80
|
+
consumedCharacters: number,
|
|
81
|
+
): void;
|
|
82
|
+
validateNumericCharacterReference(code: number): void;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Token decoder with support of writing partial entities.
|
|
87
|
+
*/
|
|
88
|
+
export class EntityDecoder {
|
|
89
|
+
constructor(
|
|
90
|
+
/** The tree used to decode entities. */
|
|
91
|
+
// biome-ignore lint/correctness/noUnusedPrivateClassMembers: False positive
|
|
92
|
+
private readonly decodeTree: Uint16Array,
|
|
93
|
+
/**
|
|
94
|
+
* The function that is called when a codepoint is decoded.
|
|
95
|
+
*
|
|
96
|
+
* For multi-byte named entities, this will be called multiple times,
|
|
97
|
+
* with the second codepoint, and the same `consumed` value.
|
|
98
|
+
* @param codepoint The decoded codepoint.
|
|
99
|
+
* @param consumed The number of bytes consumed by the decoder.
|
|
100
|
+
*/
|
|
101
|
+
private readonly emitCodePoint: (cp: number, consumed: number) => void,
|
|
102
|
+
/** An object that is used to produce errors. */
|
|
103
|
+
private readonly errors?: EntityErrorProducer | undefined,
|
|
104
|
+
) {}
|
|
105
|
+
|
|
106
|
+
/** The current state of the decoder. */
|
|
107
|
+
private state = EntityDecoderState.EntityStart;
|
|
108
|
+
/** Characters that were consumed while parsing an entity. */
|
|
109
|
+
private consumed = 1;
|
|
110
|
+
/**
|
|
111
|
+
* The result of the entity.
|
|
112
|
+
*
|
|
113
|
+
* Either the result index of a numeric entity, or the codepoint of a
|
|
114
|
+
* numeric entity.
|
|
115
|
+
*/
|
|
116
|
+
private result = 0;
|
|
117
|
+
|
|
118
|
+
/** The current index in the decode tree. */
|
|
119
|
+
private treeIndex = 0;
|
|
120
|
+
/** The number of characters that were consumed in excess. */
|
|
121
|
+
private excess = 1;
|
|
122
|
+
/** The mode in which the decoder is operating. */
|
|
123
|
+
private decodeMode = DecodingMode.Strict;
|
|
124
|
+
/** The number of characters that have been consumed in the current run. */
|
|
125
|
+
private runConsumed = 0;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Resets the instance to make it reusable.
|
|
129
|
+
* @param decodeMode Entity decoding mode to use.
|
|
130
|
+
*/
|
|
131
|
+
startEntity(decodeMode: DecodingMode): void {
|
|
132
|
+
this.decodeMode = decodeMode;
|
|
133
|
+
this.state = EntityDecoderState.EntityStart;
|
|
134
|
+
this.result = 0;
|
|
135
|
+
this.treeIndex = 0;
|
|
136
|
+
this.excess = 1;
|
|
137
|
+
this.consumed = 1;
|
|
138
|
+
this.runConsumed = 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
143
|
+
* If the entity is incomplete, the decoder will return -1.
|
|
144
|
+
*
|
|
145
|
+
* Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
|
|
146
|
+
* entity is incomplete, and resume when the next string is written.
|
|
147
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
148
|
+
* @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
|
|
149
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
150
|
+
*/
|
|
151
|
+
write(input: string, offset: number): number {
|
|
152
|
+
switch (this.state) {
|
|
153
|
+
case EntityDecoderState.EntityStart: {
|
|
154
|
+
if (input.charCodeAt(offset) === CharCodes.NUM) {
|
|
155
|
+
this.state = EntityDecoderState.NumericStart;
|
|
156
|
+
this.consumed += 1;
|
|
157
|
+
return this.stateNumericStart(input, offset + 1);
|
|
158
|
+
}
|
|
159
|
+
this.state = EntityDecoderState.NamedEntity;
|
|
160
|
+
return this.stateNamedEntity(input, offset);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
case EntityDecoderState.NumericStart: {
|
|
164
|
+
return this.stateNumericStart(input, offset);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
case EntityDecoderState.NumericDecimal: {
|
|
168
|
+
return this.stateNumericDecimal(input, offset);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
case EntityDecoderState.NumericHex: {
|
|
172
|
+
return this.stateNumericHex(input, offset);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
case EntityDecoderState.NamedEntity: {
|
|
176
|
+
return this.stateNamedEntity(input, offset);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Switches between the numeric decimal and hexadecimal states.
|
|
183
|
+
*
|
|
184
|
+
* Equivalent to the `Numeric character reference state` in the HTML spec.
|
|
185
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
186
|
+
* @param offset The current offset.
|
|
187
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
188
|
+
*/
|
|
189
|
+
private stateNumericStart(input: string, offset: number): number {
|
|
190
|
+
if (offset >= input.length) {
|
|
191
|
+
return -1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
|
|
195
|
+
this.state = EntityDecoderState.NumericHex;
|
|
196
|
+
this.consumed += 1;
|
|
197
|
+
return this.stateNumericHex(input, offset + 1);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
this.state = EntityDecoderState.NumericDecimal;
|
|
201
|
+
return this.stateNumericDecimal(input, offset);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Parses a hexadecimal numeric entity.
|
|
206
|
+
*
|
|
207
|
+
* Equivalent to the `Hexademical character reference state` in the HTML spec.
|
|
208
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
209
|
+
* @param offset The current offset.
|
|
210
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
211
|
+
*/
|
|
212
|
+
private stateNumericHex(input: string, offset: number): number {
|
|
213
|
+
while (offset < input.length) {
|
|
214
|
+
const char = input.charCodeAt(offset);
|
|
215
|
+
if (isNumber(char) || isHexadecimalCharacter(char)) {
|
|
216
|
+
// Convert hex digit to value (0-15); 'a'/'A' -> 10.
|
|
217
|
+
const digit =
|
|
218
|
+
char <= CharCodes.NINE
|
|
219
|
+
? char - CharCodes.ZERO
|
|
220
|
+
: (char | TO_LOWER_BIT) - CharCodes.LOWER_A + 10;
|
|
221
|
+
this.result = this.result * 16 + digit;
|
|
222
|
+
this.consumed++;
|
|
223
|
+
offset++;
|
|
224
|
+
} else {
|
|
225
|
+
return this.emitNumericEntity(char, 3);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return -1; // Incomplete entity
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Parses a decimal numeric entity.
|
|
233
|
+
*
|
|
234
|
+
* Equivalent to the `Decimal character reference state` in the HTML spec.
|
|
235
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
236
|
+
* @param offset The current offset.
|
|
237
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
238
|
+
*/
|
|
239
|
+
private stateNumericDecimal(input: string, offset: number): number {
|
|
240
|
+
while (offset < input.length) {
|
|
241
|
+
const char = input.charCodeAt(offset);
|
|
242
|
+
if (isNumber(char)) {
|
|
243
|
+
this.result = this.result * 10 + (char - CharCodes.ZERO);
|
|
244
|
+
this.consumed++;
|
|
245
|
+
offset++;
|
|
246
|
+
} else {
|
|
247
|
+
return this.emitNumericEntity(char, 2);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return -1; // Incomplete entity
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Validate and emit a numeric entity.
|
|
255
|
+
*
|
|
256
|
+
* Implements the logic from the `Hexademical character reference start
|
|
257
|
+
* state` and `Numeric character reference end state` in the HTML spec.
|
|
258
|
+
* @param lastCp The last code point of the entity. Used to see if the
|
|
259
|
+
* entity was terminated with a semicolon.
|
|
260
|
+
* @param expectedLength The minimum number of characters that should be
|
|
261
|
+
* consumed. Used to validate that at least one digit
|
|
262
|
+
* was consumed.
|
|
263
|
+
* @returns The number of characters that were consumed.
|
|
264
|
+
*/
|
|
265
|
+
private emitNumericEntity(lastCp: number, expectedLength: number): number {
|
|
266
|
+
// Ensure we consumed at least one digit.
|
|
267
|
+
if (this.consumed <= expectedLength) {
|
|
268
|
+
this.errors?.absenceOfDigitsInNumericCharacterReference(
|
|
269
|
+
this.consumed,
|
|
270
|
+
);
|
|
271
|
+
return 0;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// Figure out if this is a legit end of the entity
|
|
275
|
+
if (lastCp === CharCodes.SEMI) {
|
|
276
|
+
this.consumed += 1;
|
|
277
|
+
} else if (this.decodeMode === DecodingMode.Strict) {
|
|
278
|
+
return 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
this.emitCodePoint(replaceCodePoint(this.result), this.consumed);
|
|
282
|
+
|
|
283
|
+
if (this.errors) {
|
|
284
|
+
if (lastCp !== CharCodes.SEMI) {
|
|
285
|
+
this.errors.missingSemicolonAfterCharacterReference();
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
this.errors.validateNumericCharacterReference(this.result);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
return this.consumed;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Parses a named entity.
|
|
296
|
+
*
|
|
297
|
+
* Equivalent to the `Named character reference state` in the HTML spec.
|
|
298
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
299
|
+
* @param offset The current offset.
|
|
300
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
301
|
+
*/
|
|
302
|
+
private stateNamedEntity(input: string, offset: number): number {
|
|
303
|
+
const { decodeTree } = this;
|
|
304
|
+
let current = decodeTree[this.treeIndex];
|
|
305
|
+
// The length is the number of bytes of the value, including the current byte.
|
|
306
|
+
let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
307
|
+
|
|
308
|
+
while (offset < input.length) {
|
|
309
|
+
// Handle compact runs (possibly inline): valueLength == 0 and SEMI_REQUIRED bit set.
|
|
310
|
+
if (valueLength === 0 && (current & BinTrieFlags.FLAG13) !== 0) {
|
|
311
|
+
const runLength =
|
|
312
|
+
(current & BinTrieFlags.BRANCH_LENGTH) >> 7; /* 2..63 */
|
|
313
|
+
|
|
314
|
+
// If we are starting a run, check the first char.
|
|
315
|
+
if (this.runConsumed === 0) {
|
|
316
|
+
const firstChar = current & BinTrieFlags.JUMP_TABLE;
|
|
317
|
+
if (input.charCodeAt(offset) !== firstChar) {
|
|
318
|
+
return this.result === 0
|
|
319
|
+
? 0
|
|
320
|
+
: this.emitNotTerminatedNamedEntity();
|
|
321
|
+
}
|
|
322
|
+
offset++;
|
|
323
|
+
this.excess++;
|
|
324
|
+
this.runConsumed++;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// Check remaining characters in the run.
|
|
328
|
+
while (this.runConsumed < runLength) {
|
|
329
|
+
if (offset >= input.length) {
|
|
330
|
+
return -1;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
const charIndexInPacked = this.runConsumed - 1;
|
|
334
|
+
const packedWord =
|
|
335
|
+
decodeTree[
|
|
336
|
+
this.treeIndex + 1 + (charIndexInPacked >> 1)
|
|
337
|
+
];
|
|
338
|
+
const expectedChar =
|
|
339
|
+
charIndexInPacked % 2 === 0
|
|
340
|
+
? packedWord & 0xff
|
|
341
|
+
: (packedWord >> 8) & 0xff;
|
|
342
|
+
|
|
343
|
+
if (input.charCodeAt(offset) !== expectedChar) {
|
|
344
|
+
this.runConsumed = 0;
|
|
345
|
+
return this.result === 0
|
|
346
|
+
? 0
|
|
347
|
+
: this.emitNotTerminatedNamedEntity();
|
|
348
|
+
}
|
|
349
|
+
offset++;
|
|
350
|
+
this.excess++;
|
|
351
|
+
this.runConsumed++;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
this.runConsumed = 0;
|
|
355
|
+
this.treeIndex += 1 + (runLength >> 1);
|
|
356
|
+
current = decodeTree[this.treeIndex];
|
|
357
|
+
valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (offset >= input.length) break;
|
|
361
|
+
|
|
362
|
+
const char = input.charCodeAt(offset);
|
|
363
|
+
|
|
364
|
+
/*
|
|
365
|
+
* Implicit semicolon handling for nodes that require a semicolon but
|
|
366
|
+
* don't have an explicit ';' branch stored in the trie. If we have
|
|
367
|
+
* a value on the current node, it requires a semicolon, and the
|
|
368
|
+
* current input character is a semicolon, emit the entity using the
|
|
369
|
+
* current node (without descending further).
|
|
370
|
+
*/
|
|
371
|
+
if (
|
|
372
|
+
char === CharCodes.SEMI &&
|
|
373
|
+
valueLength !== 0 &&
|
|
374
|
+
(current & BinTrieFlags.FLAG13) !== 0
|
|
375
|
+
) {
|
|
376
|
+
return this.emitNamedEntityData(
|
|
377
|
+
this.treeIndex,
|
|
378
|
+
valueLength,
|
|
379
|
+
this.consumed + this.excess,
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
this.treeIndex = determineBranch(
|
|
384
|
+
decodeTree,
|
|
385
|
+
current,
|
|
386
|
+
this.treeIndex + Math.max(1, valueLength),
|
|
387
|
+
char,
|
|
388
|
+
);
|
|
389
|
+
|
|
390
|
+
if (this.treeIndex < 0) {
|
|
391
|
+
return this.result === 0 ||
|
|
392
|
+
// If we are parsing an attribute
|
|
393
|
+
(this.decodeMode === DecodingMode.Attribute &&
|
|
394
|
+
// We shouldn't have consumed any characters after the entity,
|
|
395
|
+
(valueLength === 0 ||
|
|
396
|
+
// And there should be no invalid characters.
|
|
397
|
+
isEntityInAttributeInvalidEnd(char)))
|
|
398
|
+
? 0
|
|
399
|
+
: this.emitNotTerminatedNamedEntity();
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
current = decodeTree[this.treeIndex];
|
|
403
|
+
valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
404
|
+
|
|
405
|
+
// If the branch is a value, store it and continue
|
|
406
|
+
if (valueLength !== 0) {
|
|
407
|
+
// If the entity is terminated by a semicolon, we are done.
|
|
408
|
+
if (char === CharCodes.SEMI) {
|
|
409
|
+
return this.emitNamedEntityData(
|
|
410
|
+
this.treeIndex,
|
|
411
|
+
valueLength,
|
|
412
|
+
this.consumed + this.excess,
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// If we encounter a non-terminated (legacy) entity while parsing strictly, then ignore it.
|
|
417
|
+
if (
|
|
418
|
+
this.decodeMode !== DecodingMode.Strict &&
|
|
419
|
+
(current & BinTrieFlags.FLAG13) === 0
|
|
420
|
+
) {
|
|
421
|
+
this.result = this.treeIndex;
|
|
422
|
+
this.consumed += this.excess;
|
|
423
|
+
this.excess = 0;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
// Increment offset & excess for next iteration
|
|
427
|
+
offset++;
|
|
428
|
+
this.excess++;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
return -1;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Emit a named entity that was not terminated with a semicolon.
|
|
436
|
+
* @returns The number of characters consumed.
|
|
437
|
+
*/
|
|
438
|
+
private emitNotTerminatedNamedEntity(): number {
|
|
439
|
+
const { result, decodeTree } = this;
|
|
440
|
+
|
|
441
|
+
const valueLength =
|
|
442
|
+
(decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
443
|
+
|
|
444
|
+
this.emitNamedEntityData(result, valueLength, this.consumed);
|
|
445
|
+
this.errors?.missingSemicolonAfterCharacterReference();
|
|
446
|
+
|
|
447
|
+
return this.consumed;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Emit a named entity.
|
|
452
|
+
* @param result The index of the entity in the decode tree.
|
|
453
|
+
* @param valueLength The number of bytes in the entity.
|
|
454
|
+
* @param consumed The number of characters consumed.
|
|
455
|
+
* @returns The number of characters consumed.
|
|
456
|
+
*/
|
|
457
|
+
private emitNamedEntityData(
|
|
458
|
+
result: number,
|
|
459
|
+
valueLength: number,
|
|
460
|
+
consumed: number,
|
|
461
|
+
): number {
|
|
462
|
+
const { decodeTree } = this;
|
|
463
|
+
|
|
464
|
+
this.emitCodePoint(
|
|
465
|
+
valueLength === 1
|
|
466
|
+
? decodeTree[result] &
|
|
467
|
+
~(BinTrieFlags.VALUE_LENGTH | BinTrieFlags.FLAG13)
|
|
468
|
+
: decodeTree[result + 1],
|
|
469
|
+
consumed,
|
|
470
|
+
);
|
|
471
|
+
if (valueLength === 3) {
|
|
472
|
+
// For multi-byte values, we need to emit the second byte.
|
|
473
|
+
this.emitCodePoint(decodeTree[result + 2], consumed);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
return consumed;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Signal to the parser that the end of the input was reached.
|
|
481
|
+
*
|
|
482
|
+
* Remaining data will be emitted and relevant errors will be produced.
|
|
483
|
+
* @returns The number of characters consumed.
|
|
484
|
+
*/
|
|
485
|
+
end(): number {
|
|
486
|
+
switch (this.state) {
|
|
487
|
+
case EntityDecoderState.NamedEntity: {
|
|
488
|
+
// Emit a named entity if we have one.
|
|
489
|
+
return this.result !== 0 &&
|
|
490
|
+
(this.decodeMode !== DecodingMode.Attribute ||
|
|
491
|
+
this.result === this.treeIndex)
|
|
492
|
+
? this.emitNotTerminatedNamedEntity()
|
|
493
|
+
: 0;
|
|
494
|
+
}
|
|
495
|
+
// Otherwise, emit a numeric entity if we have one.
|
|
496
|
+
case EntityDecoderState.NumericDecimal: {
|
|
497
|
+
return this.emitNumericEntity(0, 2);
|
|
498
|
+
}
|
|
499
|
+
case EntityDecoderState.NumericHex: {
|
|
500
|
+
return this.emitNumericEntity(0, 3);
|
|
501
|
+
}
|
|
502
|
+
case EntityDecoderState.NumericStart: {
|
|
503
|
+
this.errors?.absenceOfDigitsInNumericCharacterReference(
|
|
504
|
+
this.consumed,
|
|
505
|
+
);
|
|
506
|
+
return 0;
|
|
507
|
+
}
|
|
508
|
+
case EntityDecoderState.EntityStart: {
|
|
509
|
+
// Return 0 if we have no entity.
|
|
510
|
+
return 0;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Creates a function that decodes entities in a string.
|
|
518
|
+
* @param decodeTree The decode tree.
|
|
519
|
+
* @returns A function that decodes entities in a string.
|
|
520
|
+
*/
|
|
521
|
+
function getDecoder(decodeTree: Uint16Array) {
|
|
522
|
+
let returnValue = "";
|
|
523
|
+
const decoder = new EntityDecoder(
|
|
524
|
+
decodeTree,
|
|
525
|
+
(data) => (returnValue += String.fromCodePoint(data)),
|
|
526
|
+
);
|
|
527
|
+
|
|
528
|
+
return function decodeWithTrie(
|
|
529
|
+
input: string,
|
|
530
|
+
decodeMode: DecodingMode,
|
|
531
|
+
): string {
|
|
532
|
+
let lastIndex = 0;
|
|
533
|
+
let offset = 0;
|
|
534
|
+
|
|
535
|
+
while ((offset = input.indexOf("&", offset)) >= 0) {
|
|
536
|
+
returnValue += input.slice(lastIndex, offset);
|
|
537
|
+
|
|
538
|
+
decoder.startEntity(decodeMode);
|
|
539
|
+
|
|
540
|
+
const length = decoder.write(
|
|
541
|
+
input,
|
|
542
|
+
// Skip the "&"
|
|
543
|
+
offset + 1,
|
|
544
|
+
);
|
|
545
|
+
|
|
546
|
+
if (length < 0) {
|
|
547
|
+
lastIndex = offset + decoder.end();
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
lastIndex = offset + length;
|
|
552
|
+
// If `length` is 0, skip the current `&` and continue.
|
|
553
|
+
offset = length === 0 ? lastIndex + 1 : lastIndex;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
const result = returnValue + input.slice(lastIndex);
|
|
557
|
+
|
|
558
|
+
// Make sure we don't keep a reference to the final string.
|
|
559
|
+
returnValue = "";
|
|
560
|
+
|
|
561
|
+
return result;
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Determines the branch of the current node that is taken given the current
|
|
567
|
+
* character. This function is used to traverse the trie.
|
|
568
|
+
* @param decodeTree The trie.
|
|
569
|
+
* @param current The current node.
|
|
570
|
+
* @param nodeIndex Index immediately after the current node header.
|
|
571
|
+
* @param char The current character.
|
|
572
|
+
* @returns The index of the next node, or -1 if no branch is taken.
|
|
573
|
+
*/
|
|
574
|
+
export function determineBranch(
|
|
575
|
+
decodeTree: Uint16Array,
|
|
576
|
+
current: number,
|
|
577
|
+
nodeIndex: number,
|
|
578
|
+
char: number,
|
|
579
|
+
): number {
|
|
580
|
+
const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
581
|
+
const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
|
|
582
|
+
|
|
583
|
+
// Case 1: Single branch encoded in jump offset
|
|
584
|
+
if (branchCount === 0) {
|
|
585
|
+
return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
// Case 2: Multiple branches encoded in jump table
|
|
589
|
+
if (jumpOffset) {
|
|
590
|
+
const value = char - jumpOffset;
|
|
591
|
+
|
|
592
|
+
return value < 0 || value >= branchCount
|
|
593
|
+
? -1
|
|
594
|
+
: decodeTree[nodeIndex + value] - 1;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
// Case 3: Multiple branches encoded in packed dictionary (two keys per uint16)
|
|
598
|
+
const packedKeySlots = (branchCount + 1) >> 1;
|
|
599
|
+
|
|
600
|
+
/*
|
|
601
|
+
* Treat packed keys as a virtual sorted array of length `branchCount`.
|
|
602
|
+
* Key(i) = low byte for even i, high byte for odd i in slot i>>1.
|
|
603
|
+
*/
|
|
604
|
+
let lo = 0;
|
|
605
|
+
let hi = branchCount - 1;
|
|
606
|
+
|
|
607
|
+
while (lo <= hi) {
|
|
608
|
+
const mid = (lo + hi) >>> 1;
|
|
609
|
+
const slot = mid >> 1;
|
|
610
|
+
const packed = decodeTree[nodeIndex + slot];
|
|
611
|
+
const midKey = (packed >> ((mid & 1) * 8)) & 0xff;
|
|
612
|
+
|
|
613
|
+
if (midKey < char) {
|
|
614
|
+
lo = mid + 1;
|
|
615
|
+
} else if (midKey > char) {
|
|
616
|
+
hi = mid - 1;
|
|
617
|
+
} else {
|
|
618
|
+
return decodeTree[nodeIndex + packedKeySlots + mid];
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
return -1;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
const htmlDecoder = /* #__PURE__ */ getDecoder(htmlDecodeTree);
|
|
626
|
+
const xmlDecoder = /* #__PURE__ */ getDecoder(xmlDecodeTree);
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Decodes an HTML string.
|
|
630
|
+
* @param htmlString The string to decode.
|
|
631
|
+
* @param mode The decoding mode.
|
|
632
|
+
* @returns The decoded string.
|
|
633
|
+
*/
|
|
634
|
+
export function decodeHTML(
|
|
635
|
+
htmlString: string,
|
|
636
|
+
mode: DecodingMode = DecodingMode.Legacy,
|
|
637
|
+
): string {
|
|
638
|
+
return htmlDecoder(htmlString, mode);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Decodes an HTML string in an attribute.
|
|
643
|
+
* @param htmlAttribute The string to decode.
|
|
644
|
+
* @returns The decoded string.
|
|
645
|
+
*/
|
|
646
|
+
export function decodeHTMLAttribute(htmlAttribute: string): string {
|
|
647
|
+
return htmlDecoder(htmlAttribute, DecodingMode.Attribute);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Decodes an HTML string, requiring all entities to be terminated by a semicolon.
|
|
652
|
+
* @param htmlString The string to decode.
|
|
653
|
+
* @returns The decoded string.
|
|
654
|
+
*/
|
|
655
|
+
export function decodeHTMLStrict(htmlString: string): string {
|
|
656
|
+
return htmlDecoder(htmlString, DecodingMode.Strict);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Decodes an XML string, requiring all entities to be terminated by a semicolon.
|
|
661
|
+
* @param xmlString The string to decode.
|
|
662
|
+
* @returns The decoded string.
|
|
663
|
+
*/
|
|
664
|
+
export function decodeXML(xmlString: string): string {
|
|
665
|
+
return xmlDecoder(xmlString, DecodingMode.Strict);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
export { replaceCodePoint } from "./decode-codepoint.js";
|
|
669
|
+
// Re-export for use by eg. htmlparser2
|
|
670
|
+
export { htmlDecodeTree } from "./generated/decode-data-html.js";
|
|
671
|
+
export { xmlDecodeTree } from "./generated/decode-data-xml.js";
|