coaia-visualizer 1.6.4 → 1.6.6
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/README.md +2 -1
- package/app/api/charts/[id]/route.ts +6 -1
- package/app/api/charts/route.ts +6 -1
- package/components/asterion-foundation-card.tsx +175 -0
- package/components/asterion-session-context-badge.tsx +148 -0
- package/components/asterion-session-lineage-card.tsx +119 -0
- package/components/chart-detail-editable.tsx +19 -3
- package/components/chart-detail.tsx +3 -0
- package/components/metadata-projections.tsx +50 -16
- package/components/narrative-beats.tsx +16 -3
- package/dist/cli.js +0 -0
- package/index.tsx +13 -2
- package/lib/asterion-metadata.ts +704 -0
- package/lib/chart-editor.ts +20 -12
- package/lib/jsonl-parser.ts +5 -0
- package/lib/types.ts +100 -0
- package/mcp/dist/api-client.d.ts +138 -0
- package/mcp/dist/api-client.d.ts.map +1 -0
- package/mcp/dist/api-client.js +115 -0
- package/mcp/dist/api-client.js.map +1 -0
- package/mcp/dist/index.d.ts +2 -0
- package/mcp/dist/index.d.ts.map +1 -0
- package/mcp/dist/index.js +286 -0
- package/mcp/dist/index.js.map +1 -0
- package/mcp/dist/tools/index.d.ts +18 -0
- package/mcp/dist/tools/index.d.ts.map +1 -0
- package/mcp/dist/tools/index.js +322 -0
- package/mcp/dist/tools/index.js.map +1 -0
- package/mcp/node_modules/.package-lock.json +194 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/LICENSE +21 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/README.md +105 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts +2 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.js +129 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.d.ts +773 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.js +206 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.d.ts +2 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.js +393 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts +22 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.js +91 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts +56 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.js +147 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.d.ts +2 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.js +51 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts +17 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.js +61 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts +20 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.js +47 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.d.ts +2 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.js +74 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts +112 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.js +182 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.d.ts +2 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.js +408 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts +46 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.js +116 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts +28 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js +69 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.d.ts +2 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.js +87 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts +157 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js +297 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts +13 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js +31 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.d.ts +2 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.js +27 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts +39 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js +2 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts +26425 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.js +997 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.js.map +1 -0
- package/mcp/node_modules/@modelcontextprotocol/sdk/package.json +61 -0
- package/mcp/node_modules/@types/node/LICENSE +21 -0
- package/mcp/node_modules/@types/node/README.md +15 -0
- package/mcp/node_modules/@types/node/assert/strict.d.ts +111 -0
- package/mcp/node_modules/@types/node/assert.d.ts +1078 -0
- package/mcp/node_modules/@types/node/async_hooks.d.ts +603 -0
- package/mcp/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/mcp/node_modules/@types/node/buffer.d.ts +1934 -0
- package/mcp/node_modules/@types/node/child_process.d.ts +1476 -0
- package/mcp/node_modules/@types/node/cluster.d.ts +578 -0
- package/mcp/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/mcp/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/mcp/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/mcp/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/mcp/node_modules/@types/node/console.d.ts +452 -0
- package/mcp/node_modules/@types/node/constants.d.ts +21 -0
- package/mcp/node_modules/@types/node/crypto.d.ts +4545 -0
- package/mcp/node_modules/@types/node/dgram.d.ts +600 -0
- package/mcp/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/mcp/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/mcp/node_modules/@types/node/dns.d.ts +923 -0
- package/mcp/node_modules/@types/node/domain.d.ts +170 -0
- package/mcp/node_modules/@types/node/events.d.ts +976 -0
- package/mcp/node_modules/@types/node/fs/promises.d.ts +1295 -0
- package/mcp/node_modules/@types/node/fs.d.ts +4461 -0
- package/mcp/node_modules/@types/node/globals.d.ts +172 -0
- package/mcp/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/mcp/node_modules/@types/node/http.d.ts +2089 -0
- package/mcp/node_modules/@types/node/http2.d.ts +2644 -0
- package/mcp/node_modules/@types/node/https.d.ts +579 -0
- package/mcp/node_modules/@types/node/index.d.ts +97 -0
- package/mcp/node_modules/@types/node/inspector.d.ts +253 -0
- package/mcp/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/mcp/node_modules/@types/node/module.d.ts +891 -0
- package/mcp/node_modules/@types/node/net.d.ts +1057 -0
- package/mcp/node_modules/@types/node/os.d.ts +506 -0
- package/mcp/node_modules/@types/node/package.json +145 -0
- package/mcp/node_modules/@types/node/path.d.ts +200 -0
- package/mcp/node_modules/@types/node/perf_hooks.d.ts +968 -0
- package/mcp/node_modules/@types/node/process.d.ts +2084 -0
- package/mcp/node_modules/@types/node/punycode.d.ts +117 -0
- package/mcp/node_modules/@types/node/querystring.d.ts +152 -0
- package/mcp/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/mcp/node_modules/@types/node/readline.d.ts +594 -0
- package/mcp/node_modules/@types/node/repl.d.ts +428 -0
- package/mcp/node_modules/@types/node/sea.d.ts +153 -0
- package/mcp/node_modules/@types/node/sqlite.d.ts +721 -0
- package/mcp/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/mcp/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/mcp/node_modules/@types/node/stream/web.d.ts +622 -0
- package/mcp/node_modules/@types/node/stream.d.ts +1664 -0
- package/mcp/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/mcp/node_modules/@types/node/test.d.ts +2163 -0
- package/mcp/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/mcp/node_modules/@types/node/timers.d.ts +287 -0
- package/mcp/node_modules/@types/node/tls.d.ts +1319 -0
- package/mcp/node_modules/@types/node/trace_events.d.ts +197 -0
- package/mcp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/mcp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/mcp/node_modules/@types/node/ts5.6/index.d.ts +97 -0
- package/mcp/node_modules/@types/node/tty.d.ts +208 -0
- package/mcp/node_modules/@types/node/url.d.ts +984 -0
- package/mcp/node_modules/@types/node/util.d.ts +2606 -0
- package/mcp/node_modules/@types/node/v8.d.ts +920 -0
- package/mcp/node_modules/@types/node/vm.d.ts +1000 -0
- package/mcp/node_modules/@types/node/wasi.d.ts +181 -0
- package/mcp/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/mcp/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/mcp/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/mcp/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/mcp/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/mcp/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/mcp/node_modules/@types/node/worker_threads.d.ts +784 -0
- package/mcp/node_modules/@types/node/zlib.d.ts +747 -0
- package/mcp/node_modules/bytes/History.md +97 -0
- package/mcp/node_modules/bytes/LICENSE +23 -0
- package/mcp/node_modules/bytes/Readme.md +152 -0
- package/mcp/node_modules/bytes/index.js +170 -0
- package/mcp/node_modules/bytes/package.json +42 -0
- package/mcp/node_modules/content-type/HISTORY.md +29 -0
- package/mcp/node_modules/content-type/LICENSE +22 -0
- package/mcp/node_modules/content-type/README.md +94 -0
- package/mcp/node_modules/content-type/index.js +225 -0
- package/mcp/node_modules/content-type/package.json +42 -0
- package/mcp/node_modules/depd/History.md +103 -0
- package/mcp/node_modules/depd/LICENSE +22 -0
- package/mcp/node_modules/depd/Readme.md +280 -0
- package/mcp/node_modules/depd/index.js +538 -0
- package/mcp/node_modules/depd/lib/browser/index.js +77 -0
- package/mcp/node_modules/depd/package.json +45 -0
- package/mcp/node_modules/dotenv/CHANGELOG.md +621 -0
- package/mcp/node_modules/dotenv/LICENSE +23 -0
- package/mcp/node_modules/dotenv/README-es.md +774 -0
- package/mcp/node_modules/dotenv/README.md +774 -0
- package/mcp/node_modules/dotenv/SECURITY.md +1 -0
- package/mcp/node_modules/dotenv/config.d.ts +1 -0
- package/mcp/node_modules/dotenv/config.js +9 -0
- package/mcp/node_modules/dotenv/lib/cli-options.js +17 -0
- package/mcp/node_modules/dotenv/lib/env-options.js +28 -0
- package/mcp/node_modules/dotenv/lib/main.d.ts +179 -0
- package/mcp/node_modules/dotenv/lib/main.js +431 -0
- package/mcp/node_modules/dotenv/package.json +62 -0
- package/mcp/node_modules/http-errors/HISTORY.md +186 -0
- package/mcp/node_modules/http-errors/LICENSE +23 -0
- package/mcp/node_modules/http-errors/README.md +169 -0
- package/mcp/node_modules/http-errors/index.js +290 -0
- package/mcp/node_modules/http-errors/package.json +54 -0
- package/mcp/node_modules/iconv-lite/LICENSE +21 -0
- package/mcp/node_modules/iconv-lite/README.md +138 -0
- package/mcp/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/mcp/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/mcp/node_modules/iconv-lite/encodings/index.js +23 -0
- package/mcp/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/mcp/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/mcp/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/mcp/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/mcp/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/mcp/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/mcp/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/mcp/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/mcp/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/mcp/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/mcp/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/mcp/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/mcp/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/mcp/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/mcp/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/mcp/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/mcp/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/mcp/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/mcp/node_modules/iconv-lite/lib/index.js +182 -0
- package/mcp/node_modules/iconv-lite/lib/streams.js +105 -0
- package/mcp/node_modules/iconv-lite/package.json +70 -0
- package/mcp/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/mcp/node_modules/inherits/LICENSE +16 -0
- package/mcp/node_modules/inherits/README.md +42 -0
- package/mcp/node_modules/inherits/inherits.js +9 -0
- package/mcp/node_modules/inherits/inherits_browser.js +27 -0
- package/mcp/node_modules/inherits/package.json +29 -0
- package/mcp/node_modules/raw-body/LICENSE +22 -0
- package/mcp/node_modules/raw-body/README.md +223 -0
- package/mcp/node_modules/raw-body/index.d.ts +85 -0
- package/mcp/node_modules/raw-body/index.js +336 -0
- package/mcp/node_modules/raw-body/package.json +46 -0
- package/mcp/node_modules/safer-buffer/LICENSE +21 -0
- package/mcp/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/mcp/node_modules/safer-buffer/Readme.md +156 -0
- package/mcp/node_modules/safer-buffer/dangerous.js +58 -0
- package/mcp/node_modules/safer-buffer/package.json +34 -0
- package/mcp/node_modules/safer-buffer/safer.js +77 -0
- package/mcp/node_modules/safer-buffer/tests.js +406 -0
- package/mcp/node_modules/setprototypeof/LICENSE +13 -0
- package/mcp/node_modules/setprototypeof/README.md +31 -0
- package/mcp/node_modules/setprototypeof/index.d.ts +2 -0
- package/mcp/node_modules/setprototypeof/index.js +17 -0
- package/mcp/node_modules/setprototypeof/package.json +38 -0
- package/mcp/node_modules/setprototypeof/test/index.js +24 -0
- package/mcp/node_modules/statuses/HISTORY.md +87 -0
- package/mcp/node_modules/statuses/LICENSE +23 -0
- package/mcp/node_modules/statuses/README.md +139 -0
- package/mcp/node_modules/statuses/codes.json +65 -0
- package/mcp/node_modules/statuses/index.js +146 -0
- package/mcp/node_modules/statuses/package.json +49 -0
- package/mcp/node_modules/toidentifier/HISTORY.md +9 -0
- package/mcp/node_modules/toidentifier/LICENSE +21 -0
- package/mcp/node_modules/toidentifier/README.md +61 -0
- package/mcp/node_modules/toidentifier/index.js +32 -0
- package/mcp/node_modules/toidentifier/package.json +38 -0
- package/mcp/node_modules/typescript/LICENSE.txt +55 -0
- package/mcp/node_modules/typescript/README.md +50 -0
- package/mcp/node_modules/typescript/SECURITY.md +41 -0
- package/mcp/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/mcp/node_modules/typescript/bin/tsc +2 -0
- package/mcp/node_modules/typescript/bin/tsserver +2 -0
- package/mcp/node_modules/typescript/lib/_tsc.js +133818 -0
- package/mcp/node_modules/typescript/lib/_tsserver.js +659 -0
- package/mcp/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- package/mcp/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/lib.d.ts +22 -0
- package/mcp/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/mcp/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/mcp/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/mcp/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
- package/mcp/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/mcp/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/mcp/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/mcp/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/mcp/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/mcp/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/mcp/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/mcp/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/mcp/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/mcp/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/mcp/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/mcp/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/mcp/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/mcp/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/mcp/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/mcp/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/mcp/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/mcp/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/mcp/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/mcp/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/mcp/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/mcp/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/mcp/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/mcp/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/mcp/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/mcp/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/mcp/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
- package/mcp/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/mcp/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/mcp/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/mcp/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/mcp/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/mcp/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/mcp/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/mcp/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/mcp/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
- package/mcp/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/mcp/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/mcp/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/mcp/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/mcp/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
- package/mcp/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/mcp/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
- package/mcp/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/tsc.js +8 -0
- package/mcp/node_modules/typescript/lib/tsserver.js +8 -0
- package/mcp/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/mcp/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/mcp/node_modules/typescript/lib/typesMap.json +497 -0
- package/mcp/node_modules/typescript/lib/typescript.d.ts +11437 -0
- package/mcp/node_modules/typescript/lib/typescript.js +200276 -0
- package/mcp/node_modules/typescript/lib/typingsInstaller.js +8 -0
- package/mcp/node_modules/typescript/lib/watchGuard.js +53 -0
- package/mcp/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
- package/mcp/node_modules/typescript/package.json +120 -0
- package/mcp/node_modules/undici-types/LICENSE +21 -0
- package/mcp/node_modules/undici-types/README.md +6 -0
- package/mcp/node_modules/undici-types/agent.d.ts +31 -0
- package/mcp/node_modules/undici-types/api.d.ts +43 -0
- package/mcp/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/mcp/node_modules/undici-types/cache.d.ts +36 -0
- package/mcp/node_modules/undici-types/client.d.ts +108 -0
- package/mcp/node_modules/undici-types/connector.d.ts +34 -0
- package/mcp/node_modules/undici-types/content-type.d.ts +21 -0
- package/mcp/node_modules/undici-types/cookies.d.ts +28 -0
- package/mcp/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/mcp/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/mcp/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/mcp/node_modules/undici-types/errors.d.ts +149 -0
- package/mcp/node_modules/undici-types/eventsource.d.ts +61 -0
- package/mcp/node_modules/undici-types/fetch.d.ts +209 -0
- package/mcp/node_modules/undici-types/file.d.ts +39 -0
- package/mcp/node_modules/undici-types/filereader.d.ts +54 -0
- package/mcp/node_modules/undici-types/formdata.d.ts +108 -0
- package/mcp/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/mcp/node_modules/undici-types/global-origin.d.ts +7 -0
- package/mcp/node_modules/undici-types/handlers.d.ts +15 -0
- package/mcp/node_modules/undici-types/header.d.ts +4 -0
- package/mcp/node_modules/undici-types/index.d.ts +71 -0
- package/mcp/node_modules/undici-types/interceptors.d.ts +17 -0
- package/mcp/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/mcp/node_modules/undici-types/mock-client.d.ts +25 -0
- package/mcp/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/mcp/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/mcp/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/mcp/node_modules/undici-types/package.json +55 -0
- package/mcp/node_modules/undici-types/patch.d.ts +33 -0
- package/mcp/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/mcp/node_modules/undici-types/pool.d.ts +39 -0
- package/mcp/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/mcp/node_modules/undici-types/readable.d.ts +65 -0
- package/mcp/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/mcp/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/mcp/node_modules/undici-types/util.d.ts +18 -0
- package/mcp/node_modules/undici-types/webidl.d.ts +228 -0
- package/mcp/node_modules/undici-types/websocket.d.ts +150 -0
- package/mcp/node_modules/unpipe/HISTORY.md +4 -0
- package/mcp/node_modules/unpipe/LICENSE +22 -0
- package/mcp/node_modules/unpipe/README.md +43 -0
- package/mcp/node_modules/unpipe/index.js +69 -0
- package/mcp/node_modules/unpipe/package.json +27 -0
- package/mcp/node_modules/zod/LICENSE +21 -0
- package/mcp/node_modules/zod/README.md +208 -0
- package/mcp/node_modules/zod/index.cjs +33 -0
- package/mcp/node_modules/zod/index.d.cts +4 -0
- package/mcp/node_modules/zod/index.d.ts +4 -0
- package/mcp/node_modules/zod/index.js +4 -0
- package/mcp/node_modules/zod/package.json +118 -0
- package/mcp/node_modules/zod/src/index.ts +4 -0
- package/mcp/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/mcp/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/mcp/node_modules/zod/src/v3/errors.ts +13 -0
- package/mcp/node_modules/zod/src/v3/external.ts +6 -0
- package/mcp/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/mcp/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/mcp/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/mcp/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/mcp/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/mcp/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/mcp/node_modules/zod/src/v3/index.ts +4 -0
- package/mcp/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/mcp/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/mcp/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/mcp/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/mcp/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/mcp/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/mcp/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/mcp/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/mcp/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/mcp/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/mcp/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/mcp/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/mcp/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/mcp/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/mcp/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/mcp/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/mcp/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/mcp/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/mcp/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/mcp/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/mcp/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/mcp/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/mcp/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/mcp/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/mcp/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/mcp/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/mcp/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/mcp/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/mcp/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/mcp/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/mcp/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/mcp/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/mcp/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/mcp/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/mcp/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/mcp/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/mcp/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/mcp/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/mcp/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/mcp/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/mcp/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/mcp/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/mcp/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/mcp/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/mcp/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/mcp/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/mcp/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/mcp/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/mcp/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/mcp/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/mcp/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/mcp/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/mcp/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/mcp/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/mcp/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/mcp/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/mcp/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/mcp/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/mcp/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/mcp/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/mcp/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/mcp/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/mcp/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/mcp/node_modules/zod/src/v3/types.ts +5136 -0
- package/mcp/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/mcp/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/mcp/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/mcp/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/mcp/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/mcp/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/mcp/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/mcp/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/mcp/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/mcp/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/mcp/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/mcp/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/mcp/node_modules/zod/src/v4/core/config.ts +15 -0
- package/mcp/node_modules/zod/src/v4/core/core.ts +134 -0
- package/mcp/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/mcp/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/mcp/node_modules/zod/src/v4/core/function.ts +176 -0
- package/mcp/node_modules/zod/src/v4/core/index.ts +15 -0
- package/mcp/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/mcp/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/mcp/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/mcp/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/mcp/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/mcp/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/mcp/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/mcp/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/mcp/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/mcp/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/mcp/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/mcp/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/mcp/node_modules/zod/src/v4/core/util.ts +775 -0
- package/mcp/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/mcp/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/mcp/node_modules/zod/src/v4/index.ts +4 -0
- package/mcp/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/mcp/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/mcp/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/mcp/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/mcp/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/mcp/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/mcp/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/mcp/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/mcp/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/mcp/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/mcp/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/mcp/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/mcp/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/mcp/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/mcp/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/mcp/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/mcp/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/mcp/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/mcp/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/mcp/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/mcp/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/mcp/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/mcp/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/mcp/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/mcp/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/mcp/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/mcp/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/mcp/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/mcp/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/mcp/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/mcp/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/mcp/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/mcp/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/mcp/node_modules/zod/v3/ZodError.cjs +138 -0
- package/mcp/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/mcp/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/mcp/node_modules/zod/v3/ZodError.js +133 -0
- package/mcp/node_modules/zod/v3/errors.cjs +17 -0
- package/mcp/node_modules/zod/v3/errors.d.cts +5 -0
- package/mcp/node_modules/zod/v3/errors.d.ts +5 -0
- package/mcp/node_modules/zod/v3/errors.js +9 -0
- package/mcp/node_modules/zod/v3/external.cjs +22 -0
- package/mcp/node_modules/zod/v3/external.d.cts +6 -0
- package/mcp/node_modules/zod/v3/external.d.ts +6 -0
- package/mcp/node_modules/zod/v3/external.js +6 -0
- package/mcp/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/mcp/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/mcp/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/mcp/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/mcp/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/mcp/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/mcp/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/mcp/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/mcp/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/mcp/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/mcp/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/mcp/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/mcp/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/mcp/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/mcp/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/mcp/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/mcp/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/mcp/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/mcp/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/mcp/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/mcp/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/mcp/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/mcp/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/mcp/node_modules/zod/v3/helpers/util.js +133 -0
- package/mcp/node_modules/zod/v3/index.cjs +33 -0
- package/mcp/node_modules/zod/v3/index.d.cts +4 -0
- package/mcp/node_modules/zod/v3/index.d.ts +4 -0
- package/mcp/node_modules/zod/v3/index.js +4 -0
- package/mcp/node_modules/zod/v3/locales/en.cjs +111 -0
- package/mcp/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/mcp/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/mcp/node_modules/zod/v3/locales/en.js +109 -0
- package/mcp/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/mcp/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/mcp/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/mcp/node_modules/zod/v3/standard-schema.js +1 -0
- package/mcp/node_modules/zod/v3/types.cjs +3775 -0
- package/mcp/node_modules/zod/v3/types.d.cts +1031 -0
- package/mcp/node_modules/zod/v3/types.d.ts +1031 -0
- package/mcp/node_modules/zod/v3/types.js +3693 -0
- package/mcp/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/mcp/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/mcp/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/mcp/node_modules/zod/v4/classic/checks.js +1 -0
- package/mcp/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/mcp/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/mcp/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/mcp/node_modules/zod/v4/classic/coerce.js +17 -0
- package/mcp/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/mcp/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/mcp/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/mcp/node_modules/zod/v4/classic/compat.js +27 -0
- package/mcp/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/mcp/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/mcp/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/mcp/node_modules/zod/v4/classic/errors.js +41 -0
- package/mcp/node_modules/zod/v4/classic/external.cjs +70 -0
- package/mcp/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/mcp/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/mcp/node_modules/zod/v4/classic/external.js +18 -0
- package/mcp/node_modules/zod/v4/classic/index.cjs +33 -0
- package/mcp/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/mcp/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/mcp/node_modules/zod/v4/classic/index.js +4 -0
- package/mcp/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/mcp/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/mcp/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/mcp/node_modules/zod/v4/classic/iso.js +30 -0
- package/mcp/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/mcp/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/mcp/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/mcp/node_modules/zod/v4/classic/parse.js +6 -0
- package/mcp/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/mcp/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/mcp/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/mcp/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/mcp/node_modules/zod/v4/core/api.cjs +1039 -0
- package/mcp/node_modules/zod/v4/core/api.d.cts +284 -0
- package/mcp/node_modules/zod/v4/core/api.d.ts +284 -0
- package/mcp/node_modules/zod/v4/core/api.js +906 -0
- package/mcp/node_modules/zod/v4/core/checks.cjs +591 -0
- package/mcp/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/mcp/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/mcp/node_modules/zod/v4/core/checks.js +565 -0
- package/mcp/node_modules/zod/v4/core/core.cjs +67 -0
- package/mcp/node_modules/zod/v4/core/core.d.cts +49 -0
- package/mcp/node_modules/zod/v4/core/core.d.ts +49 -0
- package/mcp/node_modules/zod/v4/core/core.js +61 -0
- package/mcp/node_modules/zod/v4/core/doc.cjs +39 -0
- package/mcp/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/mcp/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/mcp/node_modules/zod/v4/core/doc.js +35 -0
- package/mcp/node_modules/zod/v4/core/errors.cjs +226 -0
- package/mcp/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/mcp/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/mcp/node_modules/zod/v4/core/errors.js +195 -0
- package/mcp/node_modules/zod/v4/core/function.cjs +102 -0
- package/mcp/node_modules/zod/v4/core/function.d.cts +52 -0
- package/mcp/node_modules/zod/v4/core/function.d.ts +52 -0
- package/mcp/node_modules/zod/v4/core/function.js +75 -0
- package/mcp/node_modules/zod/v4/core/index.cjs +44 -0
- package/mcp/node_modules/zod/v4/core/index.d.cts +15 -0
- package/mcp/node_modules/zod/v4/core/index.d.ts +15 -0
- package/mcp/node_modules/zod/v4/core/index.js +15 -0
- package/mcp/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/mcp/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/mcp/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/mcp/node_modules/zod/v4/core/json-schema.js +1 -0
- package/mcp/node_modules/zod/v4/core/parse.cjs +87 -0
- package/mcp/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/mcp/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/mcp/node_modules/zod/v4/core/parse.js +57 -0
- package/mcp/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/mcp/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/mcp/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/mcp/node_modules/zod/v4/core/regexes.js +95 -0
- package/mcp/node_modules/zod/v4/core/registries.cjs +56 -0
- package/mcp/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/mcp/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/mcp/node_modules/zod/v4/core/registries.js +51 -0
- package/mcp/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/mcp/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/mcp/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/mcp/node_modules/zod/v4/core/schemas.js +1717 -0
- package/mcp/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/mcp/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/mcp/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/mcp/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/mcp/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/mcp/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/mcp/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/mcp/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/mcp/node_modules/zod/v4/core/util.cjs +539 -0
- package/mcp/node_modules/zod/v4/core/util.d.cts +183 -0
- package/mcp/node_modules/zod/v4/core/util.d.ts +183 -0
- package/mcp/node_modules/zod/v4/core/util.js +493 -0
- package/mcp/node_modules/zod/v4/core/versions.cjs +8 -0
- package/mcp/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/mcp/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/mcp/node_modules/zod/v4/core/versions.js +5 -0
- package/mcp/node_modules/zod/v4/index.cjs +22 -0
- package/mcp/node_modules/zod/v4/index.d.cts +3 -0
- package/mcp/node_modules/zod/v4/index.d.ts +3 -0
- package/mcp/node_modules/zod/v4/index.js +3 -0
- package/mcp/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ar.js +116 -0
- package/mcp/node_modules/zod/v4/locales/az.cjs +141 -0
- package/mcp/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/az.js +115 -0
- package/mcp/node_modules/zod/v4/locales/be.cjs +190 -0
- package/mcp/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/be.js +164 -0
- package/mcp/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/mcp/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ca.js +118 -0
- package/mcp/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/mcp/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/cs.js +135 -0
- package/mcp/node_modules/zod/v4/locales/de.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/de.js +116 -0
- package/mcp/node_modules/zod/v4/locales/en.cjs +145 -0
- package/mcp/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/mcp/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/mcp/node_modules/zod/v4/locales/en.js +117 -0
- package/mcp/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/mcp/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/mcp/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/mcp/node_modules/zod/v4/locales/eo.js +116 -0
- package/mcp/node_modules/zod/v4/locales/es.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/es.js +117 -0
- package/mcp/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/mcp/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/fa.js +122 -0
- package/mcp/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/mcp/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/fi.js +122 -0
- package/mcp/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/mcp/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/fr.js +116 -0
- package/mcp/node_modules/zod/v4/locales/he.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/he.js +117 -0
- package/mcp/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/hu.js +117 -0
- package/mcp/node_modules/zod/v4/locales/id.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/id.js +116 -0
- package/mcp/node_modules/zod/v4/locales/index.cjs +84 -0
- package/mcp/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/mcp/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/mcp/node_modules/zod/v4/locales/index.js +39 -0
- package/mcp/node_modules/zod/v4/locales/it.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/it.js +117 -0
- package/mcp/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/mcp/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ja.js +115 -0
- package/mcp/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/kh.js +117 -0
- package/mcp/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/mcp/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ko.js +121 -0
- package/mcp/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/mcp/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/mk.js +118 -0
- package/mcp/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ms.js +116 -0
- package/mcp/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/nl.js +117 -0
- package/mcp/node_modules/zod/v4/locales/no.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/no.js +116 -0
- package/mcp/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ota.js +117 -0
- package/mcp/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/pl.js +117 -0
- package/mcp/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/mcp/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ps.js +122 -0
- package/mcp/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/pt.js +116 -0
- package/mcp/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/mcp/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ru.js +164 -0
- package/mcp/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/sl.js +117 -0
- package/mcp/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/mcp/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/sv.js +118 -0
- package/mcp/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ta.js +117 -0
- package/mcp/node_modules/zod/v4/locales/th.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/th.js +117 -0
- package/mcp/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/mcp/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/mcp/node_modules/zod/v4/locales/tr.js +115 -0
- package/mcp/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ua.js +117 -0
- package/mcp/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/ur.js +117 -0
- package/mcp/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/vi.js +116 -0
- package/mcp/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/mcp/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/mcp/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/mcp/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/mcp/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/mcp/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/mcp/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/mcp/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/mcp/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/mcp/node_modules/zod/v4/mini/checks.js +1 -0
- package/mcp/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/mcp/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/mcp/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/mcp/node_modules/zod/v4/mini/coerce.js +17 -0
- package/mcp/node_modules/zod/v4/mini/external.cjs +62 -0
- package/mcp/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/mcp/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/mcp/node_modules/zod/v4/mini/external.js +13 -0
- package/mcp/node_modules/zod/v4/mini/index.cjs +32 -0
- package/mcp/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/mcp/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/mcp/node_modules/zod/v4/mini/index.js +3 -0
- package/mcp/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/mcp/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/mcp/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/mcp/node_modules/zod/v4/mini/iso.js +30 -0
- package/mcp/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/mcp/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/mcp/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/mcp/node_modules/zod/v4/mini/parse.js +1 -0
- package/mcp/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/mcp/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/mcp/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/mcp/node_modules/zod/v4/mini/schemas.js +732 -0
- package/mcp/node_modules/zod/v4-mini/index.cjs +17 -0
- package/mcp/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/mcp/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/mcp/node_modules/zod/v4-mini/index.js +1 -0
- package/mcp/package-lock.json +210 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Please report any security vulnerabilities to security@dotenvx.com.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const re = /^dotenv_config_(encoding|path|quiet|debug|override|DOTENV_KEY)=(.+)$/
|
|
2
|
+
|
|
3
|
+
module.exports = function optionMatcher (args) {
|
|
4
|
+
const options = args.reduce(function (acc, cur) {
|
|
5
|
+
const matches = cur.match(re)
|
|
6
|
+
if (matches) {
|
|
7
|
+
acc[matches[1]] = matches[2]
|
|
8
|
+
}
|
|
9
|
+
return acc
|
|
10
|
+
}, {})
|
|
11
|
+
|
|
12
|
+
if (!('quiet' in options)) {
|
|
13
|
+
options.quiet = 'true'
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return options
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// ../config.js accepts options via environment variables
|
|
2
|
+
const options = {}
|
|
3
|
+
|
|
4
|
+
if (process.env.DOTENV_CONFIG_ENCODING != null) {
|
|
5
|
+
options.encoding = process.env.DOTENV_CONFIG_ENCODING
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
if (process.env.DOTENV_CONFIG_PATH != null) {
|
|
9
|
+
options.path = process.env.DOTENV_CONFIG_PATH
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (process.env.DOTENV_CONFIG_QUIET != null) {
|
|
13
|
+
options.quiet = process.env.DOTENV_CONFIG_QUIET
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (process.env.DOTENV_CONFIG_DEBUG != null) {
|
|
17
|
+
options.debug = process.env.DOTENV_CONFIG_DEBUG
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (process.env.DOTENV_CONFIG_OVERRIDE != null) {
|
|
21
|
+
options.override = process.env.DOTENV_CONFIG_OVERRIDE
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (process.env.DOTENV_CONFIG_DOTENV_KEY != null) {
|
|
25
|
+
options.DOTENV_KEY = process.env.DOTENV_CONFIG_DOTENV_KEY
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
module.exports = options
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// TypeScript Version: 3.0
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import type { URL } from 'url';
|
|
4
|
+
|
|
5
|
+
export interface DotenvParseOutput {
|
|
6
|
+
[name: string]: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface DotenvPopulateOutput {
|
|
10
|
+
[name: string]: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Parses a string or buffer in the .env file format into an object.
|
|
15
|
+
*
|
|
16
|
+
* See https://dotenvx.com/docs
|
|
17
|
+
*
|
|
18
|
+
* @param src - contents to be parsed. example: `'DB_HOST=localhost'`
|
|
19
|
+
* @returns an object with keys and values based on `src`. example: `{ DB_HOST : 'localhost' }`
|
|
20
|
+
*/
|
|
21
|
+
export function parse<T extends DotenvParseOutput = DotenvParseOutput>(
|
|
22
|
+
src: string | Buffer
|
|
23
|
+
): T;
|
|
24
|
+
|
|
25
|
+
export interface DotenvConfigOptions {
|
|
26
|
+
/**
|
|
27
|
+
* Default: `path.resolve(process.cwd(), '.env')`
|
|
28
|
+
*
|
|
29
|
+
* Specify a custom path if your file containing environment variables is located elsewhere.
|
|
30
|
+
* Can also be an array of strings, specifying multiple paths.
|
|
31
|
+
*
|
|
32
|
+
* example: `require('dotenv').config({ path: '/custom/path/to/.env' })`
|
|
33
|
+
* example: `require('dotenv').config({ path: ['/path/to/first.env', '/path/to/second.env'] })`
|
|
34
|
+
*/
|
|
35
|
+
path?: string | string[] | URL;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Default: `utf8`
|
|
39
|
+
*
|
|
40
|
+
* Specify the encoding of your file containing environment variables.
|
|
41
|
+
*
|
|
42
|
+
* example: `require('dotenv').config({ encoding: 'latin1' })`
|
|
43
|
+
*/
|
|
44
|
+
encoding?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Default: `false`
|
|
48
|
+
*
|
|
49
|
+
* Suppress all output (except errors).
|
|
50
|
+
*
|
|
51
|
+
* example: `require('dotenv').config({ quiet: true })`
|
|
52
|
+
*/
|
|
53
|
+
quiet?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Default: `false`
|
|
57
|
+
*
|
|
58
|
+
* Turn on logging to help debug why certain keys or values are not being set as you expect.
|
|
59
|
+
*
|
|
60
|
+
* example: `require('dotenv').config({ debug: process.env.DEBUG })`
|
|
61
|
+
*/
|
|
62
|
+
debug?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Default: `false`
|
|
66
|
+
*
|
|
67
|
+
* Override any environment variables that have already been set on your machine with values from your .env file.
|
|
68
|
+
*
|
|
69
|
+
* example: `require('dotenv').config({ override: true })`
|
|
70
|
+
*/
|
|
71
|
+
override?: boolean;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Default: `process.env`
|
|
75
|
+
*
|
|
76
|
+
* Specify an object to write your secrets to. Defaults to process.env environment variables.
|
|
77
|
+
*
|
|
78
|
+
* example: `const processEnv = {}; require('dotenv').config({ processEnv: processEnv })`
|
|
79
|
+
*/
|
|
80
|
+
processEnv?: DotenvPopulateInput;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Default: `undefined`
|
|
84
|
+
*
|
|
85
|
+
* Pass the DOTENV_KEY directly to config options. Defaults to looking for process.env.DOTENV_KEY environment variable. Note this only applies to decrypting .env.vault files. If passed as null or undefined, or not passed at all, dotenv falls back to its traditional job of parsing a .env file.
|
|
86
|
+
*
|
|
87
|
+
* example: `require('dotenv').config({ DOTENV_KEY: 'dotenv://:key_1234…@dotenvx.com/vault/.env.vault?environment=production' })`
|
|
88
|
+
*/
|
|
89
|
+
DOTENV_KEY?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface DotenvConfigOutput {
|
|
93
|
+
error?: DotenvError;
|
|
94
|
+
parsed?: DotenvParseOutput;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
type DotenvError = Error & {
|
|
98
|
+
code:
|
|
99
|
+
| 'MISSING_DATA'
|
|
100
|
+
| 'INVALID_DOTENV_KEY'
|
|
101
|
+
| 'NOT_FOUND_DOTENV_ENVIRONMENT'
|
|
102
|
+
| 'DECRYPTION_FAILED'
|
|
103
|
+
| 'OBJECT_REQUIRED';
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface DotenvPopulateOptions {
|
|
107
|
+
/**
|
|
108
|
+
* Default: `false`
|
|
109
|
+
*
|
|
110
|
+
* Turn on logging to help debug why certain keys or values are not being set as you expect.
|
|
111
|
+
*
|
|
112
|
+
* example: `require('dotenv').config({ debug: process.env.DEBUG })`
|
|
113
|
+
*/
|
|
114
|
+
debug?: boolean;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Default: `false`
|
|
118
|
+
*
|
|
119
|
+
* Override any environment variables that have already been set on your machine with values from your .env file.
|
|
120
|
+
*
|
|
121
|
+
* example: `require('dotenv').config({ override: true })`
|
|
122
|
+
*/
|
|
123
|
+
override?: boolean;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface DotenvPopulateInput {
|
|
127
|
+
[name: string]: string | undefined;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Loads `.env` file contents into process.env by default. If `DOTENV_KEY` is present, it smartly attempts to load encrypted `.env.vault` file contents into process.env.
|
|
132
|
+
*
|
|
133
|
+
* See https://dotenvx.com/docs
|
|
134
|
+
*
|
|
135
|
+
* @param options - additional options. example: `{ path: './custom/path', encoding: 'latin1', quiet: false, debug: true, override: false }`
|
|
136
|
+
* @returns an object with a `parsed` key if successful or `error` key if an error occurred. example: { parsed: { KEY: 'value' } }
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
export function config(options?: DotenvConfigOptions): DotenvConfigOutput;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Loads `.env` file contents into process.env.
|
|
143
|
+
*
|
|
144
|
+
* See https://dotenvx.com/docs
|
|
145
|
+
*
|
|
146
|
+
* @param options - additional options. example: `{ path: './custom/path', encoding: 'latin1', quiet: false, debug: true, override: false }`
|
|
147
|
+
* @returns an object with a `parsed` key if successful or `error` key if an error occurred. example: { parsed: { KEY: 'value' } }
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
export function configDotenv(options?: DotenvConfigOptions): DotenvConfigOutput;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Loads `source` json contents into `target` like process.env.
|
|
154
|
+
*
|
|
155
|
+
* See https://dotenvx.com/docs
|
|
156
|
+
*
|
|
157
|
+
* @param processEnv - the target JSON object. in most cases use process.env but you can also pass your own JSON object
|
|
158
|
+
* @param parsed - the source JSON object
|
|
159
|
+
* @param options - additional options. example: `{ quiet: false, debug: true, override: false }`
|
|
160
|
+
* @returns an object with the keys and values that were actually set
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
163
|
+
export function populate(
|
|
164
|
+
processEnv: DotenvPopulateInput,
|
|
165
|
+
parsed: DotenvPopulateInput,
|
|
166
|
+
options?: DotenvConfigOptions
|
|
167
|
+
): DotenvPopulateOutput;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Decrypt ciphertext
|
|
171
|
+
*
|
|
172
|
+
* See https://dotenvx.com/docs
|
|
173
|
+
*
|
|
174
|
+
* @param encrypted - the encrypted ciphertext string
|
|
175
|
+
* @param keyStr - the decryption key string
|
|
176
|
+
* @returns {string}
|
|
177
|
+
*
|
|
178
|
+
*/
|
|
179
|
+
export function decrypt(encrypted: string, keyStr: string): string;
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
const fs = require('fs')
|
|
2
|
+
const path = require('path')
|
|
3
|
+
const os = require('os')
|
|
4
|
+
const crypto = require('crypto')
|
|
5
|
+
const packageJson = require('../package.json')
|
|
6
|
+
|
|
7
|
+
const version = packageJson.version
|
|
8
|
+
|
|
9
|
+
// Array of tips to display randomly
|
|
10
|
+
const TIPS = [
|
|
11
|
+
'🔐 encrypt with Dotenvx: https://dotenvx.com',
|
|
12
|
+
'🔐 prevent committing .env to code: https://dotenvx.com/precommit',
|
|
13
|
+
'🔐 prevent building .env in docker: https://dotenvx.com/prebuild',
|
|
14
|
+
'🤖 agentic secret storage: https://dotenvx.com/as2',
|
|
15
|
+
'⚡️ secrets for agents: https://dotenvx.com/as2',
|
|
16
|
+
'🛡️ auth for agents: https://vestauth.com',
|
|
17
|
+
'🛠️ run anywhere with `dotenvx run -- yourcommand`',
|
|
18
|
+
'⚙️ specify custom .env file path with { path: \'/custom/path/.env\' }',
|
|
19
|
+
'⚙️ enable debug logging with { debug: true }',
|
|
20
|
+
'⚙️ override existing env vars with { override: true }',
|
|
21
|
+
'⚙️ suppress all logs with { quiet: true }',
|
|
22
|
+
'⚙️ write to custom object with { processEnv: myObject }',
|
|
23
|
+
'⚙️ load multiple .env files with { path: [\'.env.local\', \'.env\'] }'
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
// Get a random tip from the tips array
|
|
27
|
+
function _getRandomTip () {
|
|
28
|
+
return TIPS[Math.floor(Math.random() * TIPS.length)]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function parseBoolean (value) {
|
|
32
|
+
if (typeof value === 'string') {
|
|
33
|
+
return !['false', '0', 'no', 'off', ''].includes(value.toLowerCase())
|
|
34
|
+
}
|
|
35
|
+
return Boolean(value)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function supportsAnsi () {
|
|
39
|
+
return process.stdout.isTTY // && process.env.TERM !== 'dumb'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function dim (text) {
|
|
43
|
+
return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg
|
|
47
|
+
|
|
48
|
+
// Parse src into an Object
|
|
49
|
+
function parse (src) {
|
|
50
|
+
const obj = {}
|
|
51
|
+
|
|
52
|
+
// Convert buffer to string
|
|
53
|
+
let lines = src.toString()
|
|
54
|
+
|
|
55
|
+
// Convert line breaks to same format
|
|
56
|
+
lines = lines.replace(/\r\n?/mg, '\n')
|
|
57
|
+
|
|
58
|
+
let match
|
|
59
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
60
|
+
const key = match[1]
|
|
61
|
+
|
|
62
|
+
// Default undefined or null to empty string
|
|
63
|
+
let value = (match[2] || '')
|
|
64
|
+
|
|
65
|
+
// Remove whitespace
|
|
66
|
+
value = value.trim()
|
|
67
|
+
|
|
68
|
+
// Check if double quoted
|
|
69
|
+
const maybeQuote = value[0]
|
|
70
|
+
|
|
71
|
+
// Remove surrounding quotes
|
|
72
|
+
value = value.replace(/^(['"`])([\s\S]*)\1$/mg, '$2')
|
|
73
|
+
|
|
74
|
+
// Expand newlines if double quoted
|
|
75
|
+
if (maybeQuote === '"') {
|
|
76
|
+
value = value.replace(/\\n/g, '\n')
|
|
77
|
+
value = value.replace(/\\r/g, '\r')
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Add to object
|
|
81
|
+
obj[key] = value
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return obj
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function _parseVault (options) {
|
|
88
|
+
options = options || {}
|
|
89
|
+
|
|
90
|
+
const vaultPath = _vaultPath(options)
|
|
91
|
+
options.path = vaultPath // parse .env.vault
|
|
92
|
+
const result = DotenvModule.configDotenv(options)
|
|
93
|
+
if (!result.parsed) {
|
|
94
|
+
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`)
|
|
95
|
+
err.code = 'MISSING_DATA'
|
|
96
|
+
throw err
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// handle scenario for comma separated keys - for use with key rotation
|
|
100
|
+
// example: DOTENV_KEY="dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=prod,dotenv://:key_7890@dotenvx.com/vault/.env.vault?environment=prod"
|
|
101
|
+
const keys = _dotenvKey(options).split(',')
|
|
102
|
+
const length = keys.length
|
|
103
|
+
|
|
104
|
+
let decrypted
|
|
105
|
+
for (let i = 0; i < length; i++) {
|
|
106
|
+
try {
|
|
107
|
+
// Get full key
|
|
108
|
+
const key = keys[i].trim()
|
|
109
|
+
|
|
110
|
+
// Get instructions for decrypt
|
|
111
|
+
const attrs = _instructions(result, key)
|
|
112
|
+
|
|
113
|
+
// Decrypt
|
|
114
|
+
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key)
|
|
115
|
+
|
|
116
|
+
break
|
|
117
|
+
} catch (error) {
|
|
118
|
+
// last key
|
|
119
|
+
if (i + 1 >= length) {
|
|
120
|
+
throw error
|
|
121
|
+
}
|
|
122
|
+
// try next key
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Parse decrypted .env string
|
|
127
|
+
return DotenvModule.parse(decrypted)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function _warn (message) {
|
|
131
|
+
console.error(`[dotenv@${version}][WARN] ${message}`)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function _debug (message) {
|
|
135
|
+
console.log(`[dotenv@${version}][DEBUG] ${message}`)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function _log (message) {
|
|
139
|
+
console.log(`[dotenv@${version}] ${message}`)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function _dotenvKey (options) {
|
|
143
|
+
// prioritize developer directly setting options.DOTENV_KEY
|
|
144
|
+
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
145
|
+
return options.DOTENV_KEY
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// secondary infra already contains a DOTENV_KEY environment variable
|
|
149
|
+
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
|
|
150
|
+
return process.env.DOTENV_KEY
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// fallback to empty string
|
|
154
|
+
return ''
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function _instructions (result, dotenvKey) {
|
|
158
|
+
// Parse DOTENV_KEY. Format is a URI
|
|
159
|
+
let uri
|
|
160
|
+
try {
|
|
161
|
+
uri = new URL(dotenvKey)
|
|
162
|
+
} catch (error) {
|
|
163
|
+
if (error.code === 'ERR_INVALID_URL') {
|
|
164
|
+
const err = new Error('INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development')
|
|
165
|
+
err.code = 'INVALID_DOTENV_KEY'
|
|
166
|
+
throw err
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
throw error
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Get decrypt key
|
|
173
|
+
const key = uri.password
|
|
174
|
+
if (!key) {
|
|
175
|
+
const err = new Error('INVALID_DOTENV_KEY: Missing key part')
|
|
176
|
+
err.code = 'INVALID_DOTENV_KEY'
|
|
177
|
+
throw err
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Get environment
|
|
181
|
+
const environment = uri.searchParams.get('environment')
|
|
182
|
+
if (!environment) {
|
|
183
|
+
const err = new Error('INVALID_DOTENV_KEY: Missing environment part')
|
|
184
|
+
err.code = 'INVALID_DOTENV_KEY'
|
|
185
|
+
throw err
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Get ciphertext payload
|
|
189
|
+
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`
|
|
190
|
+
const ciphertext = result.parsed[environmentKey] // DOTENV_VAULT_PRODUCTION
|
|
191
|
+
if (!ciphertext) {
|
|
192
|
+
const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`)
|
|
193
|
+
err.code = 'NOT_FOUND_DOTENV_ENVIRONMENT'
|
|
194
|
+
throw err
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return { ciphertext, key }
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function _vaultPath (options) {
|
|
201
|
+
let possibleVaultPath = null
|
|
202
|
+
|
|
203
|
+
if (options && options.path && options.path.length > 0) {
|
|
204
|
+
if (Array.isArray(options.path)) {
|
|
205
|
+
for (const filepath of options.path) {
|
|
206
|
+
if (fs.existsSync(filepath)) {
|
|
207
|
+
possibleVaultPath = filepath.endsWith('.vault') ? filepath : `${filepath}.vault`
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
} else {
|
|
211
|
+
possibleVaultPath = options.path.endsWith('.vault') ? options.path : `${options.path}.vault`
|
|
212
|
+
}
|
|
213
|
+
} else {
|
|
214
|
+
possibleVaultPath = path.resolve(process.cwd(), '.env.vault')
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (fs.existsSync(possibleVaultPath)) {
|
|
218
|
+
return possibleVaultPath
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
return null
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function _resolveHome (envPath) {
|
|
225
|
+
return envPath[0] === '~' ? path.join(os.homedir(), envPath.slice(1)) : envPath
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function _configVault (options) {
|
|
229
|
+
const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || (options && options.debug))
|
|
230
|
+
const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || (options && options.quiet))
|
|
231
|
+
|
|
232
|
+
if (debug || !quiet) {
|
|
233
|
+
_log('Loading env from encrypted .env.vault')
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const parsed = DotenvModule._parseVault(options)
|
|
237
|
+
|
|
238
|
+
let processEnv = process.env
|
|
239
|
+
if (options && options.processEnv != null) {
|
|
240
|
+
processEnv = options.processEnv
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
DotenvModule.populate(processEnv, parsed, options)
|
|
244
|
+
|
|
245
|
+
return { parsed }
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function configDotenv (options) {
|
|
249
|
+
const dotenvPath = path.resolve(process.cwd(), '.env')
|
|
250
|
+
let encoding = 'utf8'
|
|
251
|
+
let processEnv = process.env
|
|
252
|
+
if (options && options.processEnv != null) {
|
|
253
|
+
processEnv = options.processEnv
|
|
254
|
+
}
|
|
255
|
+
let debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || (options && options.debug))
|
|
256
|
+
let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || (options && options.quiet))
|
|
257
|
+
|
|
258
|
+
if (options && options.encoding) {
|
|
259
|
+
encoding = options.encoding
|
|
260
|
+
} else {
|
|
261
|
+
if (debug) {
|
|
262
|
+
_debug('No encoding is specified. UTF-8 is used by default')
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
let optionPaths = [dotenvPath] // default, look for .env
|
|
267
|
+
if (options && options.path) {
|
|
268
|
+
if (!Array.isArray(options.path)) {
|
|
269
|
+
optionPaths = [_resolveHome(options.path)]
|
|
270
|
+
} else {
|
|
271
|
+
optionPaths = [] // reset default
|
|
272
|
+
for (const filepath of options.path) {
|
|
273
|
+
optionPaths.push(_resolveHome(filepath))
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// Build the parsed data in a temporary object (because we need to return it). Once we have the final
|
|
279
|
+
// parsed data, we will combine it with process.env (or options.processEnv if provided).
|
|
280
|
+
let lastError
|
|
281
|
+
const parsedAll = {}
|
|
282
|
+
for (const path of optionPaths) {
|
|
283
|
+
try {
|
|
284
|
+
// Specifying an encoding returns a string instead of a buffer
|
|
285
|
+
const parsed = DotenvModule.parse(fs.readFileSync(path, { encoding }))
|
|
286
|
+
|
|
287
|
+
DotenvModule.populate(parsedAll, parsed, options)
|
|
288
|
+
} catch (e) {
|
|
289
|
+
if (debug) {
|
|
290
|
+
_debug(`Failed to load ${path} ${e.message}`)
|
|
291
|
+
}
|
|
292
|
+
lastError = e
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const populated = DotenvModule.populate(processEnv, parsedAll, options)
|
|
297
|
+
|
|
298
|
+
// handle user settings DOTENV_CONFIG_ options inside .env file(s)
|
|
299
|
+
debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug)
|
|
300
|
+
quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet)
|
|
301
|
+
|
|
302
|
+
if (debug || !quiet) {
|
|
303
|
+
const keysCount = Object.keys(populated).length
|
|
304
|
+
const shortPaths = []
|
|
305
|
+
for (const filePath of optionPaths) {
|
|
306
|
+
try {
|
|
307
|
+
const relative = path.relative(process.cwd(), filePath)
|
|
308
|
+
shortPaths.push(relative)
|
|
309
|
+
} catch (e) {
|
|
310
|
+
if (debug) {
|
|
311
|
+
_debug(`Failed to load ${filePath} ${e.message}`)
|
|
312
|
+
}
|
|
313
|
+
lastError = e
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(',')} ${dim(`-- tip: ${_getRandomTip()}`)}`)
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (lastError) {
|
|
321
|
+
return { parsed: parsedAll, error: lastError }
|
|
322
|
+
} else {
|
|
323
|
+
return { parsed: parsedAll }
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// Populates process.env from .env file
|
|
328
|
+
function config (options) {
|
|
329
|
+
// fallback to original dotenv if DOTENV_KEY is not set
|
|
330
|
+
if (_dotenvKey(options).length === 0) {
|
|
331
|
+
return DotenvModule.configDotenv(options)
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
const vaultPath = _vaultPath(options)
|
|
335
|
+
|
|
336
|
+
// dotenvKey exists but .env.vault file does not exist
|
|
337
|
+
if (!vaultPath) {
|
|
338
|
+
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`)
|
|
339
|
+
|
|
340
|
+
return DotenvModule.configDotenv(options)
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return DotenvModule._configVault(options)
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
function decrypt (encrypted, keyStr) {
|
|
347
|
+
const key = Buffer.from(keyStr.slice(-64), 'hex')
|
|
348
|
+
let ciphertext = Buffer.from(encrypted, 'base64')
|
|
349
|
+
|
|
350
|
+
const nonce = ciphertext.subarray(0, 12)
|
|
351
|
+
const authTag = ciphertext.subarray(-16)
|
|
352
|
+
ciphertext = ciphertext.subarray(12, -16)
|
|
353
|
+
|
|
354
|
+
try {
|
|
355
|
+
const aesgcm = crypto.createDecipheriv('aes-256-gcm', key, nonce)
|
|
356
|
+
aesgcm.setAuthTag(authTag)
|
|
357
|
+
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`
|
|
358
|
+
} catch (error) {
|
|
359
|
+
const isRange = error instanceof RangeError
|
|
360
|
+
const invalidKeyLength = error.message === 'Invalid key length'
|
|
361
|
+
const decryptionFailed = error.message === 'Unsupported state or unable to authenticate data'
|
|
362
|
+
|
|
363
|
+
if (isRange || invalidKeyLength) {
|
|
364
|
+
const err = new Error('INVALID_DOTENV_KEY: It must be 64 characters long (or more)')
|
|
365
|
+
err.code = 'INVALID_DOTENV_KEY'
|
|
366
|
+
throw err
|
|
367
|
+
} else if (decryptionFailed) {
|
|
368
|
+
const err = new Error('DECRYPTION_FAILED: Please check your DOTENV_KEY')
|
|
369
|
+
err.code = 'DECRYPTION_FAILED'
|
|
370
|
+
throw err
|
|
371
|
+
} else {
|
|
372
|
+
throw error
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// Populate process.env with parsed values
|
|
378
|
+
function populate (processEnv, parsed, options = {}) {
|
|
379
|
+
const debug = Boolean(options && options.debug)
|
|
380
|
+
const override = Boolean(options && options.override)
|
|
381
|
+
const populated = {}
|
|
382
|
+
|
|
383
|
+
if (typeof parsed !== 'object') {
|
|
384
|
+
const err = new Error('OBJECT_REQUIRED: Please check the processEnv argument being passed to populate')
|
|
385
|
+
err.code = 'OBJECT_REQUIRED'
|
|
386
|
+
throw err
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
// Set process.env
|
|
390
|
+
for (const key of Object.keys(parsed)) {
|
|
391
|
+
if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
392
|
+
if (override === true) {
|
|
393
|
+
processEnv[key] = parsed[key]
|
|
394
|
+
populated[key] = parsed[key]
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (debug) {
|
|
398
|
+
if (override === true) {
|
|
399
|
+
_debug(`"${key}" is already defined and WAS overwritten`)
|
|
400
|
+
} else {
|
|
401
|
+
_debug(`"${key}" is already defined and was NOT overwritten`)
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
} else {
|
|
405
|
+
processEnv[key] = parsed[key]
|
|
406
|
+
populated[key] = parsed[key]
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return populated
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
const DotenvModule = {
|
|
414
|
+
configDotenv,
|
|
415
|
+
_configVault,
|
|
416
|
+
_parseVault,
|
|
417
|
+
config,
|
|
418
|
+
decrypt,
|
|
419
|
+
parse,
|
|
420
|
+
populate
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
module.exports.configDotenv = DotenvModule.configDotenv
|
|
424
|
+
module.exports._configVault = DotenvModule._configVault
|
|
425
|
+
module.exports._parseVault = DotenvModule._parseVault
|
|
426
|
+
module.exports.config = DotenvModule.config
|
|
427
|
+
module.exports.decrypt = DotenvModule.decrypt
|
|
428
|
+
module.exports.parse = DotenvModule.parse
|
|
429
|
+
module.exports.populate = DotenvModule.populate
|
|
430
|
+
|
|
431
|
+
module.exports = DotenvModule
|