@geminilight/mindos-windows-arm64 1.0.6 → 1.0.8
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 +24 -24
- package/_standalone/__next/build-manifest.json +3 -3
- package/_standalone/__next/prerender-manifest.json +3 -3
- package/_standalone/__next/react-loadable-manifest.json +48 -7
- 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_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/_global-error.html +2 -2
- package/_standalone/__next/server/app/_global-error.rsc +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- package/_standalone/__next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/_standalone/__next/server/app/_not-found/page.js +1 -1
- 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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/bootstrap/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/connect/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/embedding/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/extract-pdf/route_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/file/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/git/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/graph/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/init/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/api/uninstall/route_client-reference-manifest.js +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_client-reference-manifest.js +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_client-reference-manifest.js +1 -1
- package/_standalone/__next/server/app/capture/history/page.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/inbox/history/page.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +8 -3
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +24 -24
- package/_standalone/__next/server/chunks/103.js +1 -1
- package/_standalone/__next/server/chunks/1976.js +1 -1
- package/_standalone/__next/server/chunks/6602.js +43 -66
- package/_standalone/__next/server/chunks/6646.js +16 -0
- package/_standalone/__next/server/chunks/8461.js +7 -7
- package/_standalone/__next/server/chunks/9868.js +2 -0
- package/_standalone/__next/server/chunks/{3219.js → 9969.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/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-c4ffa328888515c1.js → 1104-0822d9349a412b9b.js} +7 -2
- package/_standalone/__next/static/chunks/1655.0a559759973b42e9.js +1 -0
- package/_standalone/__next/static/chunks/{2073-3f913ebb13702b7e.js → 2073-fadffc82a27afdc7.js} +2 -2
- package/{static-web/_next/static/chunks/9216.d3339c27169b21bf.js → _standalone/__next/static/chunks/2245.ef71edb24c5232c2.js} +1 -1
- package/_standalone/__next/static/chunks/2258-2d3b5aac6a1fa92a.js +53 -0
- package/{static-web/_next/static/chunks/4937-4101fcdadacf46e3.js → _standalone/__next/static/chunks/2409-244f9b90dceb0c04.js} +1 -1
- package/_standalone/__next/static/chunks/3279-b49c25a4f2964b16.js +1 -0
- package/_standalone/__next/static/chunks/3807-115388f118106ca8.js +1 -0
- package/_standalone/__next/static/chunks/3966.ea75f9c5490955de.js +1 -0
- package/_standalone/__next/static/chunks/4010.48b219cb22dfa5d8.js +10 -0
- package/_standalone/__next/static/chunks/5026-7fed7ca22272c18f.js +1 -0
- package/_standalone/__next/static/chunks/5152-87e6ed56dfd7d17d.js +1 -0
- package/_standalone/__next/static/chunks/577.5e448c99068f1323.js +1 -0
- package/_standalone/__next/static/chunks/5913.a0a734f87b13f81a.js +1 -0
- package/_standalone/__next/static/chunks/596.9cbaf6ba90cb204f.js +7 -0
- package/_standalone/__next/static/chunks/6223-3fb90852221bda56.js +1 -0
- package/_standalone/__next/static/chunks/6343.582d063078c45d73.js +6 -0
- package/_standalone/__next/static/chunks/8174-50048777dc2469c0.js +1 -0
- package/_standalone/__next/static/chunks/{5913.3cee388e26959b62.js → 8294.cc9f9ff2f8b219ed.js} +1 -1
- package/_standalone/__next/static/chunks/8626-7da79d9ab2504eed.js +1 -0
- package/_standalone/__next/static/chunks/{8732.9002f42201b06fe8.js → 8732.87554c78e8825fac.js} +4 -4
- package/_standalone/__next/static/chunks/8922-3babcd35e18e9e4f.js +1 -0
- package/_standalone/__next/static/chunks/9440-eee639175695be7d.js +33 -0
- package/_standalone/__next/static/chunks/9479-b48d19e3588823c1.js +34 -0
- package/_standalone/__next/static/chunks/{9602.4e99e3525e5f062c.js → 9602.218427fc7b3d6b11.js} +1 -1
- package/_standalone/__next/static/chunks/app/agents/[agentKey]/page-ef111ea0a3368752.js +1 -0
- package/_standalone/__next/static/chunks/app/agents/page-aacead0f47cedb0d.js +1 -0
- package/_standalone/__next/static/chunks/app/layout-ed608bbf9585e78f.js +99 -0
- package/_standalone/__next/static/chunks/app/page-d22928276c36528c.js +1 -0
- package/_standalone/__next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-045afd8c0908f923.js} +1 -1
- package/{static-web/_next/static/chunks/app/setup/page-f5de08d0d588c778.js → _standalone/__next/static/chunks/app/setup/page-034a608f19d04653.js} +1 -1
- package/_standalone/__next/static/chunks/app/trash/page-251aaf5aac9d5a0b.js +1 -0
- package/_standalone/__next/static/chunks/app/view/[...path]/page-7e17c3d13fe2e275.js +12 -0
- package/_standalone/__next/static/chunks/webpack-1decda0633a8a874.js +1 -0
- package/_standalone/__next/static/css/5f000212c8b2e09a.css +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/@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/@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/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/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/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/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/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/public/agent-icons/claude.svg +1 -0
- package/_standalone/public/agent-icons/cursor.svg +1 -0
- package/_standalone/public/agent-icons/github-copilot.svg +1 -0
- package/_standalone/public/agent-icons/google.svg +1 -0
- package/_standalone/public/agent-icons/openai.svg +1 -0
- package/_standalone/public/agent-icons/windsurf.svg +1 -0
- package/bin/lib/stop.js +45 -0
- package/bin/lib/sync.js +32 -19
- package/dist/server/handlers/file.js +5 -2
- package/dist/server/handlers/file.js.map +1 -1
- package/dist/server/handlers/mcp-restart.d.ts +2 -0
- package/dist/server/handlers/mcp-restart.d.ts.map +1 -1
- package/dist/server/handlers/mcp-restart.js +45 -2
- package/dist/server/handlers/mcp-restart.js.map +1 -1
- package/dist/server/handlers/skills.d.ts.map +1 -1
- package/dist/server/handlers/skills.js +17 -3
- package/dist/server/handlers/skills.js.map +1 -1
- package/dist/server/handlers/sync.d.ts.map +1 -1
- package/dist/server/handlers/sync.js +28 -10
- package/dist/server/handlers/sync.js.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/runtime.d.ts.map +1 -1
- package/dist/server/runtime.js +20 -21
- package/dist/server/runtime.js.map +1 -1
- package/package.json +1 -1
- package/runtime-manifest.json +1 -1
- package/scripts/build-bun-binary.mjs +139 -6
- package/scripts/prepare-standalone.mjs +0 -1
- package/scripts/prepare-static-web.mjs +52 -4
- package/scripts/release.sh +1 -1
- package/scripts/setup.js +115 -2
- package/scripts/verify-standalone.mjs +12 -0
- package/static-web/.mindos-build-version +1 -1
- package/static-web/_next/static/chunks/{1430-c4ffa328888515c1.js → 1104-0822d9349a412b9b.js} +7 -2
- package/static-web/_next/static/chunks/1655.0a559759973b42e9.js +1 -0
- package/static-web/_next/static/chunks/{2073-3f913ebb13702b7e.js → 2073-fadffc82a27afdc7.js} +2 -2
- package/{_standalone/__next/static/chunks/9216.d3339c27169b21bf.js → static-web/_next/static/chunks/2245.ef71edb24c5232c2.js} +1 -1
- package/static-web/_next/static/chunks/2258-2d3b5aac6a1fa92a.js +53 -0
- package/{_standalone/__next/static/chunks/4937-4101fcdadacf46e3.js → static-web/_next/static/chunks/2409-244f9b90dceb0c04.js} +1 -1
- package/static-web/_next/static/chunks/3279-b49c25a4f2964b16.js +1 -0
- package/static-web/_next/static/chunks/3807-115388f118106ca8.js +1 -0
- package/static-web/_next/static/chunks/3966.ea75f9c5490955de.js +1 -0
- package/static-web/_next/static/chunks/4010.48b219cb22dfa5d8.js +10 -0
- package/static-web/_next/static/chunks/5026-7fed7ca22272c18f.js +1 -0
- package/static-web/_next/static/chunks/5152-87e6ed56dfd7d17d.js +1 -0
- package/static-web/_next/static/chunks/577.5e448c99068f1323.js +1 -0
- package/static-web/_next/static/chunks/5913.a0a734f87b13f81a.js +1 -0
- package/static-web/_next/static/chunks/596.9cbaf6ba90cb204f.js +7 -0
- package/static-web/_next/static/chunks/6223-3fb90852221bda56.js +1 -0
- package/static-web/_next/static/chunks/6343.582d063078c45d73.js +6 -0
- package/static-web/_next/static/chunks/8174-50048777dc2469c0.js +1 -0
- package/static-web/_next/static/chunks/{5913.3cee388e26959b62.js → 8294.cc9f9ff2f8b219ed.js} +1 -1
- package/static-web/_next/static/chunks/8626-7da79d9ab2504eed.js +1 -0
- package/static-web/_next/static/chunks/{8732.9002f42201b06fe8.js → 8732.87554c78e8825fac.js} +4 -4
- package/static-web/_next/static/chunks/8922-3babcd35e18e9e4f.js +1 -0
- package/static-web/_next/static/chunks/9440-eee639175695be7d.js +33 -0
- package/static-web/_next/static/chunks/9479-b48d19e3588823c1.js +34 -0
- package/static-web/_next/static/chunks/{9602.4e99e3525e5f062c.js → 9602.218427fc7b3d6b11.js} +1 -1
- package/static-web/_next/static/chunks/app/agents/[agentKey]/page-ef111ea0a3368752.js +1 -0
- package/static-web/_next/static/chunks/app/agents/page-aacead0f47cedb0d.js +1 -0
- package/static-web/_next/static/chunks/app/layout-ed608bbf9585e78f.js +99 -0
- package/static-web/_next/static/chunks/app/page-d22928276c36528c.js +1 -0
- package/static-web/_next/static/chunks/app/settings/{page-c9f44b3447a41431.js → page-045afd8c0908f923.js} +1 -1
- package/{_standalone/__next/static/chunks/app/setup/page-f5de08d0d588c778.js → static-web/_next/static/chunks/app/setup/page-034a608f19d04653.js} +1 -1
- package/static-web/_next/static/chunks/app/trash/page-251aaf5aac9d5a0b.js +1 -0
- package/static-web/_next/static/chunks/app/view/[...path]/page-7e17c3d13fe2e275.js +12 -0
- package/static-web/_next/static/chunks/webpack-1decda0633a8a874.js +1 -0
- package/static-web/_next/static/css/5f000212c8b2e09a.css +1 -0
- package/static-web/agent-icons/claude.svg +1 -0
- package/static-web/agent-icons/cursor.svg +1 -0
- package/static-web/agent-icons/github-copilot.svg +1 -0
- package/static-web/agent-icons/google.svg +1 -0
- package/static-web/agent-icons/openai.svg +1 -0
- package/static-web/agent-icons/windsurf.svg +1 -0
- package/static-web/help/index.html +5 -20
- package/static-web/index.html +8 -22
- package/static-web/setup/index.html +5 -20
- package/static-web/static-web-manifest.json +1 -1
- package/static-web/wiki/index.html +5 -20
- package/_standalone/__next/server/chunks/2037.js +0 -2
- package/_standalone/__next/server/chunks/9350.js +0 -11
- package/_standalone/__next/static/chunks/2288-4dcb8ad3ccbd651e.js +0 -1
- package/_standalone/__next/static/chunks/2461-a1073a0bd04c228a.js +0 -33
- package/_standalone/__next/static/chunks/3424-060f01a8983e438d.js +0 -1
- package/_standalone/__next/static/chunks/4172-4fc551f07f7d082f.js +0 -1
- package/_standalone/__next/static/chunks/4454-f582e17b76ccf1d1.js +0 -1
- package/_standalone/__next/static/chunks/47-41e1a06e6d389b69.js +0 -48
- package/_standalone/__next/static/chunks/5152-2db55438be7ecb94.js +0 -1
- package/_standalone/__next/static/chunks/5200-6c82e5ce54a95b4b.js +0 -6
- package/_standalone/__next/static/chunks/6274-f173cb227ad1ef21.js +0 -1
- package/_standalone/__next/static/chunks/6947.7e50e18da7dc4aef.js +0 -1
- package/_standalone/__next/static/chunks/725-3b648bf7929ff78d.js +0 -1
- package/_standalone/__next/static/chunks/9479-7b304601a56304cd.js +0 -32
- package/_standalone/__next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js +0 -1
- package/_standalone/__next/static/chunks/app/agents/page-6591b482a193e657.js +0 -1
- package/_standalone/__next/static/chunks/app/layout-5966cd317bbed698.js +0 -114
- package/_standalone/__next/static/chunks/app/page-5c9489e28657376e.js +0 -1
- package/_standalone/__next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
- package/_standalone/__next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
- package/_standalone/__next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
- package/_standalone/__next/static/css/0d2fd378b5449176.css +0 -1
- package/static-web/_next/static/chunks/2288-4dcb8ad3ccbd651e.js +0 -1
- package/static-web/_next/static/chunks/2461-a1073a0bd04c228a.js +0 -33
- package/static-web/_next/static/chunks/3424-060f01a8983e438d.js +0 -1
- package/static-web/_next/static/chunks/4172-4fc551f07f7d082f.js +0 -1
- package/static-web/_next/static/chunks/4454-f582e17b76ccf1d1.js +0 -1
- package/static-web/_next/static/chunks/47-41e1a06e6d389b69.js +0 -48
- package/static-web/_next/static/chunks/5152-2db55438be7ecb94.js +0 -1
- package/static-web/_next/static/chunks/5200-6c82e5ce54a95b4b.js +0 -6
- package/static-web/_next/static/chunks/6274-f173cb227ad1ef21.js +0 -1
- package/static-web/_next/static/chunks/6947.7e50e18da7dc4aef.js +0 -1
- package/static-web/_next/static/chunks/725-3b648bf7929ff78d.js +0 -1
- package/static-web/_next/static/chunks/9479-7b304601a56304cd.js +0 -32
- package/static-web/_next/static/chunks/app/agents/[agentKey]/page-44c493b744d18249.js +0 -1
- package/static-web/_next/static/chunks/app/agents/page-6591b482a193e657.js +0 -1
- package/static-web/_next/static/chunks/app/layout-5966cd317bbed698.js +0 -114
- package/static-web/_next/static/chunks/app/page-5c9489e28657376e.js +0 -1
- package/static-web/_next/static/chunks/app/trash/page-d87207a63591ee16.js +0 -1
- package/static-web/_next/static/chunks/app/view/[...path]/page-1898f4ae4ab28db0.js +0 -12
- package/static-web/_next/static/chunks/webpack-75abef9cbb1ea912.js +0 -1
- package/static-web/_next/static/css/0d2fd378b5449176.css +0 -1
- /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_buildManifest.js +0 -0
- /package/_standalone/__next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_ssgManifest.js +0 -0
- /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_buildManifest.js +0 -0
- /package/static-web/_next/static/{J9M4pgRyRHH7Ofbxuuklh → apol5mbXb7N_sqaKgpXN1}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Variable definitions
|
|
2
|
+
|
|
3
|
+
*New in Koffi 2.6*
|
|
4
|
+
|
|
5
|
+
To find an exported and declare a variable, use `lib.symbol(name, type)`. You need to specify its name and its type.
|
|
6
|
+
|
|
7
|
+
```c
|
|
8
|
+
int my_int = 42;
|
|
9
|
+
const char *my_string = NULL;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```js
|
|
13
|
+
const my_int = lib.symbol('my_int', 'int');
|
|
14
|
+
const my_string = lib.symbol('my_string', 'const char *');
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
You cannot directly manipulate these variables, use:
|
|
18
|
+
|
|
19
|
+
- [koffi.decode()](#decode-to-js-values) to read their value
|
|
20
|
+
- [koffi.encode()](#encode-to-c-memory) to change their valuèe
|
|
21
|
+
|
|
22
|
+
# Decode to JS values
|
|
23
|
+
|
|
24
|
+
*New in Koffi 2.2, changed in Koffi 2.3*
|
|
25
|
+
|
|
26
|
+
Use `koffi.decode()` to decode C pointers, wrapped as external objects or as simple numbers.
|
|
27
|
+
|
|
28
|
+
Some arguments are optional and this function can be called in several ways:
|
|
29
|
+
|
|
30
|
+
- `koffi.decode(value, type)`: no offset
|
|
31
|
+
- `koffi.decode(value, offset, type)`: explicit offset to add to the pointer before decoding
|
|
32
|
+
|
|
33
|
+
By default, Koffi expects NUL terminated strings when decoding them. See below if you need to specify the string length.
|
|
34
|
+
|
|
35
|
+
The following example illustrates how to decode an integer and a C string variable.
|
|
36
|
+
|
|
37
|
+
```c
|
|
38
|
+
int my_int = 42;
|
|
39
|
+
const char *my_string = "foobar";
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
const my_int = lib.symbol('my_int', 'int');
|
|
44
|
+
const my_string = lib.symbol('my_string', 'const char *');
|
|
45
|
+
|
|
46
|
+
console.log(koffi.decode(my_int, 'int')) // Prints 42
|
|
47
|
+
console.log(koffi.decode(my_string, 'const char *')) // Prints "foobar"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
There is also an optional ending `length` argument that you can use in two cases:
|
|
51
|
+
|
|
52
|
+
- Use it to give the number of bytes to decode in non-NUL terminated strings: `koffi.decode(value, 'char *', 5)`
|
|
53
|
+
- Decode consecutive values into an array. For example, here is how you can decode an array with 3 float values: `koffi.decode(value, 'float', 3)`. This is equivalent to `koffi.decode(value, koffi.array('float', 3))`.
|
|
54
|
+
|
|
55
|
+
The example below will decode the symbol `my_string` defined above but only the first three bytes.
|
|
56
|
+
|
|
57
|
+
```js
|
|
58
|
+
// Only decode 3 bytes from the C string my_string
|
|
59
|
+
console.log(koffi.decode(my_string, 'const char *', 3)) // Prints "foo"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
> [!NOTE]
|
|
63
|
+
> In Koffi 2.2 and earlier versions, the length argument is only used to decode strings and is ignored otherwise.
|
|
64
|
+
|
|
65
|
+
# Encode to C memory
|
|
66
|
+
|
|
67
|
+
*New in Koffi 2.6*
|
|
68
|
+
|
|
69
|
+
Use `koffi.encode()` to encode JS values into C symbols or pointers, wrapped as external objects or as simple numbers.
|
|
70
|
+
|
|
71
|
+
Some arguments are optional and this function can be called in several ways:
|
|
72
|
+
|
|
73
|
+
- `koffi.encode(ref, type, value)`: no offset
|
|
74
|
+
- `koffi.encode(ref, offset, type, value)`: explicit offset to add to the pointer before encoding
|
|
75
|
+
|
|
76
|
+
We'll reuse the examples shown above and change the variable values with `koffi.encode()`.
|
|
77
|
+
|
|
78
|
+
```c
|
|
79
|
+
int my_int = 42;
|
|
80
|
+
const char *my_string = NULL;
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
```js
|
|
84
|
+
const my_int = lib.symbol('my_int', 'int');
|
|
85
|
+
const my_string = lib.symbol('my_string', 'const char *');
|
|
86
|
+
|
|
87
|
+
console.log(koffi.decode(my_int, 'int')) // Prints 42
|
|
88
|
+
console.log(koffi.decode(my_string, 'const char *')) // Prints null
|
|
89
|
+
|
|
90
|
+
koffi.encode(my_int, 'int', -1);
|
|
91
|
+
koffi.encode(my_string, 'const char *', 'Hello World!');
|
|
92
|
+
|
|
93
|
+
console.log(koffi.decode(my_int, 'int')) // Prints -1
|
|
94
|
+
console.log(koffi.decode(my_string, 'const char *')) // Prints "Hello World!"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
When encoding strings (either directly or embedded in arrays or structs), the memory will be bound to the raw pointer value and managed by Koffi. You can assign to the same string again and again without any leak or risk of use-after-free.
|
|
98
|
+
|
|
99
|
+
There is also an optional ending `length` argument that you can use to encode an array. For example, here is how you can encode an array with 3 float values: `koffi.encode(symbol, 'float', [1, 2, 3], 3)`. This is equivalent to `koffi.encode(symbol, koffi.array('float', 3), [1, 2, 3])`.
|
|
100
|
+
|
|
101
|
+
> [!NOTE]
|
|
102
|
+
> The length argument did not work correctly before Koffi 2.6.11.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const os = require('os');
|
|
3
|
+
const tty = require('tty');
|
|
4
|
+
const hasFlag = require('has-flag');
|
|
5
|
+
|
|
6
|
+
const {env} = process;
|
|
7
|
+
|
|
8
|
+
let forceColor;
|
|
9
|
+
if (hasFlag('no-color') ||
|
|
10
|
+
hasFlag('no-colors') ||
|
|
11
|
+
hasFlag('color=false') ||
|
|
12
|
+
hasFlag('color=never')) {
|
|
13
|
+
forceColor = 0;
|
|
14
|
+
} else if (hasFlag('color') ||
|
|
15
|
+
hasFlag('colors') ||
|
|
16
|
+
hasFlag('color=true') ||
|
|
17
|
+
hasFlag('color=always')) {
|
|
18
|
+
forceColor = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if ('FORCE_COLOR' in env) {
|
|
22
|
+
if (env.FORCE_COLOR === 'true') {
|
|
23
|
+
forceColor = 1;
|
|
24
|
+
} else if (env.FORCE_COLOR === 'false') {
|
|
25
|
+
forceColor = 0;
|
|
26
|
+
} else {
|
|
27
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function translateLevel(level) {
|
|
32
|
+
if (level === 0) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
level,
|
|
38
|
+
hasBasic: true,
|
|
39
|
+
has256: level >= 2,
|
|
40
|
+
has16m: level >= 3
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
45
|
+
if (forceColor === 0) {
|
|
46
|
+
return 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (hasFlag('color=16m') ||
|
|
50
|
+
hasFlag('color=full') ||
|
|
51
|
+
hasFlag('color=truecolor')) {
|
|
52
|
+
return 3;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (hasFlag('color=256')) {
|
|
56
|
+
return 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
60
|
+
return 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const min = forceColor || 0;
|
|
64
|
+
|
|
65
|
+
if (env.TERM === 'dumb') {
|
|
66
|
+
return min;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (process.platform === 'win32') {
|
|
70
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
71
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
72
|
+
const osRelease = os.release().split('.');
|
|
73
|
+
if (
|
|
74
|
+
Number(osRelease[0]) >= 10 &&
|
|
75
|
+
Number(osRelease[2]) >= 10586
|
|
76
|
+
) {
|
|
77
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if ('CI' in env) {
|
|
84
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
85
|
+
return 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return min;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
92
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (env.COLORTERM === 'truecolor') {
|
|
96
|
+
return 3;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if ('TERM_PROGRAM' in env) {
|
|
100
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
101
|
+
|
|
102
|
+
switch (env.TERM_PROGRAM) {
|
|
103
|
+
case 'iTerm.app':
|
|
104
|
+
return version >= 3 ? 3 : 2;
|
|
105
|
+
case 'Apple_Terminal':
|
|
106
|
+
return 2;
|
|
107
|
+
// No default
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
112
|
+
return 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
116
|
+
return 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if ('COLORTERM' in env) {
|
|
120
|
+
return 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return min;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function getSupportLevel(stream) {
|
|
127
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
128
|
+
return translateLevel(level);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
module.exports = {
|
|
132
|
+
supportsColor: getSupportLevel,
|
|
133
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
134
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
135
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "supports-color",
|
|
3
|
+
"version": "7.2.0",
|
|
4
|
+
"description": "Detect whether a terminal supports color",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/supports-color",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=8"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"browser.js"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"color",
|
|
24
|
+
"colour",
|
|
25
|
+
"colors",
|
|
26
|
+
"terminal",
|
|
27
|
+
"console",
|
|
28
|
+
"cli",
|
|
29
|
+
"ansi",
|
|
30
|
+
"styles",
|
|
31
|
+
"tty",
|
|
32
|
+
"rgb",
|
|
33
|
+
"256",
|
|
34
|
+
"shell",
|
|
35
|
+
"xterm",
|
|
36
|
+
"command-line",
|
|
37
|
+
"support",
|
|
38
|
+
"supports",
|
|
39
|
+
"capability",
|
|
40
|
+
"detect",
|
|
41
|
+
"truecolor",
|
|
42
|
+
"16m"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"has-flag": "^4.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"ava": "^1.4.1",
|
|
49
|
+
"import-fresh": "^3.0.0",
|
|
50
|
+
"xo": "^0.24.0"
|
|
51
|
+
},
|
|
52
|
+
"browser": "browser.js"
|
|
53
|
+
}
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { Alias } from '../nodes/Alias.js';
|
|
2
|
+
import { isEmptyPath, collectionFromPath } from '../nodes/Collection.js';
|
|
3
|
+
import { NODE_TYPE, DOC, isNode, isCollection, isScalar } from '../nodes/identity.js';
|
|
4
|
+
import { Pair } from '../nodes/Pair.js';
|
|
5
|
+
import { toJS } from '../nodes/toJS.js';
|
|
6
|
+
import { Schema } from '../schema/Schema.js';
|
|
7
|
+
import { stringifyDocument } from '../stringify/stringifyDocument.js';
|
|
8
|
+
import { anchorNames, findNewAnchor, createNodeAnchors } from './anchors.js';
|
|
9
|
+
import { applyReviver } from './applyReviver.js';
|
|
10
|
+
import { createNode } from './createNode.js';
|
|
11
|
+
import { Directives } from './directives.js';
|
|
12
|
+
|
|
13
|
+
class Document {
|
|
14
|
+
constructor(value, replacer, options) {
|
|
15
|
+
/** A comment before this Document */
|
|
16
|
+
this.commentBefore = null;
|
|
17
|
+
/** A comment immediately after this Document */
|
|
18
|
+
this.comment = null;
|
|
19
|
+
/** Errors encountered during parsing. */
|
|
20
|
+
this.errors = [];
|
|
21
|
+
/** Warnings encountered during parsing. */
|
|
22
|
+
this.warnings = [];
|
|
23
|
+
Object.defineProperty(this, NODE_TYPE, { value: DOC });
|
|
24
|
+
let _replacer = null;
|
|
25
|
+
if (typeof replacer === 'function' || Array.isArray(replacer)) {
|
|
26
|
+
_replacer = replacer;
|
|
27
|
+
}
|
|
28
|
+
else if (options === undefined && replacer) {
|
|
29
|
+
options = replacer;
|
|
30
|
+
replacer = undefined;
|
|
31
|
+
}
|
|
32
|
+
const opt = Object.assign({
|
|
33
|
+
intAsBigInt: false,
|
|
34
|
+
keepSourceTokens: false,
|
|
35
|
+
logLevel: 'warn',
|
|
36
|
+
prettyErrors: true,
|
|
37
|
+
strict: true,
|
|
38
|
+
stringKeys: false,
|
|
39
|
+
uniqueKeys: true,
|
|
40
|
+
version: '1.2'
|
|
41
|
+
}, options);
|
|
42
|
+
this.options = opt;
|
|
43
|
+
let { version } = opt;
|
|
44
|
+
if (options?._directives) {
|
|
45
|
+
this.directives = options._directives.atDocument();
|
|
46
|
+
if (this.directives.yaml.explicit)
|
|
47
|
+
version = this.directives.yaml.version;
|
|
48
|
+
}
|
|
49
|
+
else
|
|
50
|
+
this.directives = new Directives({ version });
|
|
51
|
+
this.setSchema(version, options);
|
|
52
|
+
// @ts-expect-error We can't really know that this matches Contents.
|
|
53
|
+
this.contents =
|
|
54
|
+
value === undefined ? null : this.createNode(value, _replacer, options);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create a deep copy of this Document and its contents.
|
|
58
|
+
*
|
|
59
|
+
* Custom Node values that inherit from `Object` still refer to their original instances.
|
|
60
|
+
*/
|
|
61
|
+
clone() {
|
|
62
|
+
const copy = Object.create(Document.prototype, {
|
|
63
|
+
[NODE_TYPE]: { value: DOC }
|
|
64
|
+
});
|
|
65
|
+
copy.commentBefore = this.commentBefore;
|
|
66
|
+
copy.comment = this.comment;
|
|
67
|
+
copy.errors = this.errors.slice();
|
|
68
|
+
copy.warnings = this.warnings.slice();
|
|
69
|
+
copy.options = Object.assign({}, this.options);
|
|
70
|
+
if (this.directives)
|
|
71
|
+
copy.directives = this.directives.clone();
|
|
72
|
+
copy.schema = this.schema.clone();
|
|
73
|
+
// @ts-expect-error We can't really know that this matches Contents.
|
|
74
|
+
copy.contents = isNode(this.contents)
|
|
75
|
+
? this.contents.clone(copy.schema)
|
|
76
|
+
: this.contents;
|
|
77
|
+
if (this.range)
|
|
78
|
+
copy.range = this.range.slice();
|
|
79
|
+
return copy;
|
|
80
|
+
}
|
|
81
|
+
/** Adds a value to the document. */
|
|
82
|
+
add(value) {
|
|
83
|
+
if (assertCollection(this.contents))
|
|
84
|
+
this.contents.add(value);
|
|
85
|
+
}
|
|
86
|
+
/** Adds a value to the document. */
|
|
87
|
+
addIn(path, value) {
|
|
88
|
+
if (assertCollection(this.contents))
|
|
89
|
+
this.contents.addIn(path, value);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Create a new `Alias` node, ensuring that the target `node` has the required anchor.
|
|
93
|
+
*
|
|
94
|
+
* If `node` already has an anchor, `name` is ignored.
|
|
95
|
+
* Otherwise, the `node.anchor` value will be set to `name`,
|
|
96
|
+
* or if an anchor with that name is already present in the document,
|
|
97
|
+
* `name` will be used as a prefix for a new unique anchor.
|
|
98
|
+
* If `name` is undefined, the generated anchor will use 'a' as a prefix.
|
|
99
|
+
*/
|
|
100
|
+
createAlias(node, name) {
|
|
101
|
+
if (!node.anchor) {
|
|
102
|
+
const prev = anchorNames(this);
|
|
103
|
+
node.anchor =
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
105
|
+
!name || prev.has(name) ? findNewAnchor(name || 'a', prev) : name;
|
|
106
|
+
}
|
|
107
|
+
return new Alias(node.anchor);
|
|
108
|
+
}
|
|
109
|
+
createNode(value, replacer, options) {
|
|
110
|
+
let _replacer = undefined;
|
|
111
|
+
if (typeof replacer === 'function') {
|
|
112
|
+
value = replacer.call({ '': value }, '', value);
|
|
113
|
+
_replacer = replacer;
|
|
114
|
+
}
|
|
115
|
+
else if (Array.isArray(replacer)) {
|
|
116
|
+
const keyToStr = (v) => typeof v === 'number' || v instanceof String || v instanceof Number;
|
|
117
|
+
const asStr = replacer.filter(keyToStr).map(String);
|
|
118
|
+
if (asStr.length > 0)
|
|
119
|
+
replacer = replacer.concat(asStr);
|
|
120
|
+
_replacer = replacer;
|
|
121
|
+
}
|
|
122
|
+
else if (options === undefined && replacer) {
|
|
123
|
+
options = replacer;
|
|
124
|
+
replacer = undefined;
|
|
125
|
+
}
|
|
126
|
+
const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options ?? {};
|
|
127
|
+
const { onAnchor, setAnchors, sourceObjects } = createNodeAnchors(this,
|
|
128
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
129
|
+
anchorPrefix || 'a');
|
|
130
|
+
const ctx = {
|
|
131
|
+
aliasDuplicateObjects: aliasDuplicateObjects ?? true,
|
|
132
|
+
keepUndefined: keepUndefined ?? false,
|
|
133
|
+
onAnchor,
|
|
134
|
+
onTagObj,
|
|
135
|
+
replacer: _replacer,
|
|
136
|
+
schema: this.schema,
|
|
137
|
+
sourceObjects
|
|
138
|
+
};
|
|
139
|
+
const node = createNode(value, tag, ctx);
|
|
140
|
+
if (flow && isCollection(node))
|
|
141
|
+
node.flow = true;
|
|
142
|
+
setAnchors();
|
|
143
|
+
return node;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Convert a key and a value into a `Pair` using the current schema,
|
|
147
|
+
* recursively wrapping all values as `Scalar` or `Collection` nodes.
|
|
148
|
+
*/
|
|
149
|
+
createPair(key, value, options = {}) {
|
|
150
|
+
const k = this.createNode(key, null, options);
|
|
151
|
+
const v = this.createNode(value, null, options);
|
|
152
|
+
return new Pair(k, v);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Removes a value from the document.
|
|
156
|
+
* @returns `true` if the item was found and removed.
|
|
157
|
+
*/
|
|
158
|
+
delete(key) {
|
|
159
|
+
return assertCollection(this.contents) ? this.contents.delete(key) : false;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Removes a value from the document.
|
|
163
|
+
* @returns `true` if the item was found and removed.
|
|
164
|
+
*/
|
|
165
|
+
deleteIn(path) {
|
|
166
|
+
if (isEmptyPath(path)) {
|
|
167
|
+
if (this.contents == null)
|
|
168
|
+
return false;
|
|
169
|
+
// @ts-expect-error Presumed impossible if Strict extends false
|
|
170
|
+
this.contents = null;
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
return assertCollection(this.contents)
|
|
174
|
+
? this.contents.deleteIn(path)
|
|
175
|
+
: false;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Returns item at `key`, or `undefined` if not found. By default unwraps
|
|
179
|
+
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
180
|
+
* `true` (collections are always returned intact).
|
|
181
|
+
*/
|
|
182
|
+
get(key, keepScalar) {
|
|
183
|
+
return isCollection(this.contents)
|
|
184
|
+
? this.contents.get(key, keepScalar)
|
|
185
|
+
: undefined;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns item at `path`, or `undefined` if not found. By default unwraps
|
|
189
|
+
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
190
|
+
* `true` (collections are always returned intact).
|
|
191
|
+
*/
|
|
192
|
+
getIn(path, keepScalar) {
|
|
193
|
+
if (isEmptyPath(path))
|
|
194
|
+
return !keepScalar && isScalar(this.contents)
|
|
195
|
+
? this.contents.value
|
|
196
|
+
: this.contents;
|
|
197
|
+
return isCollection(this.contents)
|
|
198
|
+
? this.contents.getIn(path, keepScalar)
|
|
199
|
+
: undefined;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Checks if the document includes a value with the key `key`.
|
|
203
|
+
*/
|
|
204
|
+
has(key) {
|
|
205
|
+
return isCollection(this.contents) ? this.contents.has(key) : false;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Checks if the document includes a value at `path`.
|
|
209
|
+
*/
|
|
210
|
+
hasIn(path) {
|
|
211
|
+
if (isEmptyPath(path))
|
|
212
|
+
return this.contents !== undefined;
|
|
213
|
+
return isCollection(this.contents) ? this.contents.hasIn(path) : false;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
217
|
+
* boolean to add/remove the item from the set.
|
|
218
|
+
*/
|
|
219
|
+
set(key, value) {
|
|
220
|
+
if (this.contents == null) {
|
|
221
|
+
// @ts-expect-error We can't really know that this matches Contents.
|
|
222
|
+
this.contents = collectionFromPath(this.schema, [key], value);
|
|
223
|
+
}
|
|
224
|
+
else if (assertCollection(this.contents)) {
|
|
225
|
+
this.contents.set(key, value);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
230
|
+
* boolean to add/remove the item from the set.
|
|
231
|
+
*/
|
|
232
|
+
setIn(path, value) {
|
|
233
|
+
if (isEmptyPath(path)) {
|
|
234
|
+
// @ts-expect-error We can't really know that this matches Contents.
|
|
235
|
+
this.contents = value;
|
|
236
|
+
}
|
|
237
|
+
else if (this.contents == null) {
|
|
238
|
+
// @ts-expect-error We can't really know that this matches Contents.
|
|
239
|
+
this.contents = collectionFromPath(this.schema, Array.from(path), value);
|
|
240
|
+
}
|
|
241
|
+
else if (assertCollection(this.contents)) {
|
|
242
|
+
this.contents.setIn(path, value);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Change the YAML version and schema used by the document.
|
|
247
|
+
* A `null` version disables support for directives, explicit tags, anchors, and aliases.
|
|
248
|
+
* It also requires the `schema` option to be given as a `Schema` instance value.
|
|
249
|
+
*
|
|
250
|
+
* Overrides all previously set schema options.
|
|
251
|
+
*/
|
|
252
|
+
setSchema(version, options = {}) {
|
|
253
|
+
if (typeof version === 'number')
|
|
254
|
+
version = String(version);
|
|
255
|
+
let opt;
|
|
256
|
+
switch (version) {
|
|
257
|
+
case '1.1':
|
|
258
|
+
if (this.directives)
|
|
259
|
+
this.directives.yaml.version = '1.1';
|
|
260
|
+
else
|
|
261
|
+
this.directives = new Directives({ version: '1.1' });
|
|
262
|
+
opt = { resolveKnownTags: false, schema: 'yaml-1.1' };
|
|
263
|
+
break;
|
|
264
|
+
case '1.2':
|
|
265
|
+
case 'next':
|
|
266
|
+
if (this.directives)
|
|
267
|
+
this.directives.yaml.version = version;
|
|
268
|
+
else
|
|
269
|
+
this.directives = new Directives({ version });
|
|
270
|
+
opt = { resolveKnownTags: true, schema: 'core' };
|
|
271
|
+
break;
|
|
272
|
+
case null:
|
|
273
|
+
if (this.directives)
|
|
274
|
+
delete this.directives;
|
|
275
|
+
opt = null;
|
|
276
|
+
break;
|
|
277
|
+
default: {
|
|
278
|
+
const sv = JSON.stringify(version);
|
|
279
|
+
throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
// Not using `instanceof Schema` to allow for duck typing
|
|
283
|
+
if (options.schema instanceof Object)
|
|
284
|
+
this.schema = options.schema;
|
|
285
|
+
else if (opt)
|
|
286
|
+
this.schema = new Schema(Object.assign(opt, options));
|
|
287
|
+
else
|
|
288
|
+
throw new Error(`With a null YAML version, the { schema: Schema } option is required`);
|
|
289
|
+
}
|
|
290
|
+
// json & jsonArg are only used from toJSON()
|
|
291
|
+
toJS({ json, jsonArg, mapAsMap, maxAliasCount, onAnchor, reviver } = {}) {
|
|
292
|
+
const ctx = {
|
|
293
|
+
anchors: new Map(),
|
|
294
|
+
doc: this,
|
|
295
|
+
keep: !json,
|
|
296
|
+
mapAsMap: mapAsMap === true,
|
|
297
|
+
mapKeyWarned: false,
|
|
298
|
+
maxAliasCount: typeof maxAliasCount === 'number' ? maxAliasCount : 100
|
|
299
|
+
};
|
|
300
|
+
const res = toJS(this.contents, jsonArg ?? '', ctx);
|
|
301
|
+
if (typeof onAnchor === 'function')
|
|
302
|
+
for (const { count, res } of ctx.anchors.values())
|
|
303
|
+
onAnchor(res, count);
|
|
304
|
+
return typeof reviver === 'function'
|
|
305
|
+
? applyReviver(reviver, { '': res }, '', res)
|
|
306
|
+
: res;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* A JSON representation of the document `contents`.
|
|
310
|
+
*
|
|
311
|
+
* @param jsonArg Used by `JSON.stringify` to indicate the array index or
|
|
312
|
+
* property name.
|
|
313
|
+
*/
|
|
314
|
+
toJSON(jsonArg, onAnchor) {
|
|
315
|
+
return this.toJS({ json: true, jsonArg, mapAsMap: false, onAnchor });
|
|
316
|
+
}
|
|
317
|
+
/** A YAML representation of the document. */
|
|
318
|
+
toString(options = {}) {
|
|
319
|
+
if (this.errors.length > 0)
|
|
320
|
+
throw new Error('Document with errors cannot be stringified');
|
|
321
|
+
if ('indent' in options &&
|
|
322
|
+
(!Number.isInteger(options.indent) || Number(options.indent) <= 0)) {
|
|
323
|
+
const s = JSON.stringify(options.indent);
|
|
324
|
+
throw new Error(`"indent" option must be a positive integer, not ${s}`);
|
|
325
|
+
}
|
|
326
|
+
return stringifyDocument(this, options);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function assertCollection(contents) {
|
|
330
|
+
if (isCollection(contents))
|
|
331
|
+
return true;
|
|
332
|
+
throw new Error('Expected a YAML collection as document contents');
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export { Document };
|