@psnext/slingcli 2.4.20260507-3 → 2.4.20260509-2
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/LICENSE +1 -1
- package/README.md +1 -1
- package/bin/sling.js +39 -16
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/dist/agent-loop.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/dist/agent.js +4 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +526 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js +243 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +616 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +348 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/execution-env.js +3 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/factory.js +9 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js +102 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js +194 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/jsonl.js +92 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/memory.js +42 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo/shared.js +31 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +196 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/jsonl.js +170 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/storage/memory.js +90 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js +258 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js +30 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +16 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js +97 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js +26 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/dist/proxy.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/package.json +7 -5
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/cli.js +6 -6
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/env-api-keys.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +307 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.js +23 -0
- package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js +22 -0
- package/node_modules/@earendil-works/pi-ai/dist/images.js +14 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/index.js +4 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/models.generated.js +427 -122
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js +129 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js +34 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/providers/openai-codex-responses.js +1 -1
- package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/openai-completions.js +150 -122
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/providers/openai-responses-shared.js +14 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/openai-codex.js +25 -14
- package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/overflow.js +3 -0
- package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/package.json +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/bun/register-bedrock.js +4 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/args.js +1 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/config-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/list-models.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/session-picker.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/config.js +52 -30
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/agent-session.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/auth-storage.js +2 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/compaction/branch-summarization.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/compaction/compaction.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/utils.js +153 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/template.css +45 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/template.js +68 -4
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/loader.js +26 -12
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/keybindings.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/model-registry.js +3 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/model-resolver.js +2 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/package-manager.js +22 -5
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/provider-display-names.js +1 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/sdk.js +3 -3
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/bash.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/edit.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/find.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/grep.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/ls.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/read.js +3 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/render-utils.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/truncate.js +205 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/write.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/main.js +2 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/migrations.js +3 -3
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/bash-execution.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/bordered-loader.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/branch-summary-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/compaction-summary-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/config-selector.js +25 -3
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/custom-editor.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/custom-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/earendil-announcement.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/extension-editor.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/extension-input.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/extension-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/footer.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js +36 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/login-dialog.js +4 -3
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/model-selector.js +2 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/oauth-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/scoped-models-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/session-selector-search.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/session-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +4 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/show-images-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/skill-invocation-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/theme-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/thinking-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/tool-execution.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/tree-selector.js +3 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/user-message-selector.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/user-message.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/visual-truncate.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/interactive-mode.js +47 -32
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/dark.json +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/light.json +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/theme.js +1 -1
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/package-manager-cli.js +42 -39
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/clipboard.js +9 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/paths.js +16 -0
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/version-check.js +9 -2
- package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/package.json +9 -8
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/image.js +14 -7
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/markdown.js +24 -84
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/terminal-image.js +10 -4
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/tui.js +73 -4
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/utils.js +33 -7
- package/node_modules/{@mariozechner → @earendil-works}/pi-tui/package.json +3 -3
- package/node_modules/@mariozechner/clipboard/README.md +58 -0
- package/node_modules/@mariozechner/clipboard/index.d.ts +23 -0
- package/node_modules/@mariozechner/clipboard-linux-x64-gnu/README.md +3 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/http2.d.ts +4 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +1 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +1 -1
- package/node_modules/fast-xml-builder/CHANGELOG.md +4 -0
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +91 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -1
- package/node_modules/fast-xml-builder/package.json +3 -2
- package/node_modules/fast-xml-builder/src/fxb.d.ts +92 -3
- package/node_modules/fast-xml-builder/src/fxb.js +92 -31
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +87 -33
- package/node_modules/get-east-asian-width/lookup-data.js +15 -12
- package/node_modules/get-east-asian-width/lookup.js +25 -22
- package/node_modules/get-east-asian-width/package.json +1 -1
- package/node_modules/jiti/README.md +258 -0
- package/node_modules/jiti/dist/babel.cjs +257 -0
- package/node_modules/jiti/dist/jiti.cjs +1 -0
- package/node_modules/jiti/lib/jiti.mjs +29 -0
- package/node_modules/jiti/lib/types.d.ts +420 -0
- package/node_modules/jiti/package.json +146 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +5 -3
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +5 -3
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/namespace.js +3 -1
- package/node_modules/semver/README.md +19 -4
- package/node_modules/semver/bin/semver.js +14 -10
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/index.js +2 -0
- package/node_modules/semver/internal/re.js +1 -1
- package/node_modules/semver/package.json +3 -3
- package/node_modules/semver/range.bnf +5 -4
- package/node_modules/socks/package.json +2 -2
- package/node_modules/xml-naming/README.md +189 -0
- package/node_modules/xml-naming/package.json +54 -0
- package/node_modules/xml-naming/src/index.d.ts +74 -0
- package/node_modules/xml-naming/src/index.js +270 -0
- package/package.json +6 -6
- package/sling-default-packages.json +2 -1
- package/slingshot/index.js +442 -23
- package/node_modules/@mariozechner/jiti/dist/babel.cjs +0 -246
- package/node_modules/@mariozechner/jiti/dist/jiti.cjs +0 -1
- package/node_modules/@mariozechner/jiti/package.json +0 -96
- package/node_modules/@mariozechner/pi-agent-core/dist/index.js +0 -9
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/cli.js +0 -116
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/env-api-keys.js +0 -166
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/index.js +0 -15
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/models.generated.js +0 -16568
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/providers/amazon-bedrock.js +0 -753
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/providers/openai-codex-responses.js +0 -909
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses-shared.js +0 -479
- package/node_modules/@mariozechner/pi-agent-core/node_modules/@mariozechner/pi-ai/dist/utils/oauth/openai-codex.js +0 -374
- package/node_modules/@mariozechner/pi-ai/dist/api-registry.js +0 -44
- package/node_modules/@mariozechner/pi-ai/dist/bedrock-provider.js +0 -6
- package/node_modules/@mariozechner/pi-ai/dist/models.js +0 -71
- package/node_modules/@mariozechner/pi-ai/dist/oauth.js +0 -2
- package/node_modules/@mariozechner/pi-ai/dist/providers/anthropic.js +0 -951
- package/node_modules/@mariozechner/pi-ai/dist/providers/azure-openai-responses.js +0 -208
- package/node_modules/@mariozechner/pi-ai/dist/providers/cloudflare.js +0 -26
- package/node_modules/@mariozechner/pi-ai/dist/providers/faux.js +0 -368
- package/node_modules/@mariozechner/pi-ai/dist/providers/github-copilot-headers.js +0 -29
- package/node_modules/@mariozechner/pi-ai/dist/providers/google-shared.js +0 -329
- package/node_modules/@mariozechner/pi-ai/dist/providers/google-vertex.js +0 -442
- package/node_modules/@mariozechner/pi-ai/dist/providers/google.js +0 -400
- package/node_modules/@mariozechner/pi-ai/dist/providers/mistral.js +0 -535
- package/node_modules/@mariozechner/pi-ai/dist/providers/openai-completions.js +0 -908
- package/node_modules/@mariozechner/pi-ai/dist/providers/openai-responses.js +0 -220
- package/node_modules/@mariozechner/pi-ai/dist/providers/register-builtins.js +0 -243
- package/node_modules/@mariozechner/pi-ai/dist/providers/simple-options.js +0 -39
- package/node_modules/@mariozechner/pi-ai/dist/providers/transform-messages.js +0 -184
- package/node_modules/@mariozechner/pi-ai/dist/stream.js +0 -27
- package/node_modules/@mariozechner/pi-ai/dist/types.js +0 -2
- package/node_modules/@mariozechner/pi-ai/dist/utils/event-stream.js +0 -81
- package/node_modules/@mariozechner/pi-ai/dist/utils/hash.js +0 -14
- package/node_modules/@mariozechner/pi-ai/dist/utils/headers.js +0 -8
- package/node_modules/@mariozechner/pi-ai/dist/utils/json-parse.js +0 -113
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/anthropic.js +0 -335
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/github-copilot.js +0 -292
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/index.js +0 -121
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/oauth-page.js +0 -105
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/pkce.js +0 -31
- package/node_modules/@mariozechner/pi-ai/dist/utils/oauth/types.js +0 -2
- package/node_modules/@mariozechner/pi-ai/dist/utils/overflow.js +0 -146
- package/node_modules/@mariozechner/pi-ai/dist/utils/sanitize-unicode.js +0 -26
- package/node_modules/@mariozechner/pi-ai/dist/utils/typebox-helpers.js +0 -21
- package/node_modules/@mariozechner/pi-ai/dist/utils/validation.js +0 -281
- package/node_modules/@mariozechner/pi-ai/package.json +0 -108
- package/node_modules/@mariozechner/pi-coding-agent/dist/bun/register-bedrock.js +0 -4
- package/node_modules/@mariozechner/pi-coding-agent/dist/modes/interactive/components/keybinding-hints.js +0 -22
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/agent-loop.js +0 -458
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/agent.js +0 -398
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/index.js +0 -9
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/proxy.js +0 -278
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/dist/types.js +0 -2
- package/node_modules/@mariozechner/pi-coding-agent/node_modules/@mariozechner/pi-agent-core/package.json +0 -45
- package/node_modules/socks/.claude/settings.local.json +0 -26
- package/node_modules/std-env/LICENCE +0 -22
- package/node_modules/std-env/README.md +0 -118
- package/node_modules/std-env/dist/index.cjs +0 -1
- package/node_modules/std-env/dist/index.d.cts +0 -92
- package/node_modules/std-env/dist/index.d.mts +0 -92
- package/node_modules/std-env/dist/index.d.ts +0 -92
- package/node_modules/std-env/dist/index.mjs +0 -1
- package/node_modules/std-env/package.json +0 -46
- package/node_modules/yoctocolors/base.d.ts +0 -47
- package/node_modules/yoctocolors/base.js +0 -94
- package/node_modules/yoctocolors/index.d.ts +0 -2
- package/node_modules/yoctocolors/index.js +0 -2
- package/node_modules/yoctocolors/license +0 -9
- package/node_modules/yoctocolors/package.json +0 -69
- package/node_modules/yoctocolors/readme.md +0 -138
- /package/node_modules/{@mariozechner/pi-coding-agent/dist/core → @earendil-works/pi-agent-core/dist/harness}/compaction/utils.js +0 -0
- /package/node_modules/{@mariozechner/pi-coding-agent/dist/core/tools → @earendil-works/pi-agent-core/dist/harness/utils}/truncate.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-agent-core/dist/types.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/api-registry.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/bedrock-provider.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/models.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/oauth.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/providers/amazon-bedrock.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/anthropic.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/azure-openai-responses.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/cloudflare.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/faux.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/github-copilot-headers.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/google-shared.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/google-vertex.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/google.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/mistral.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/openai-responses.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/register-builtins.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/simple-options.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/providers/transform-messages.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/session-resources.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/stream.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/types.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-ai/dist/utils/diagnostics.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/event-stream.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/hash.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/headers.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/json-parse.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/anthropic.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/github-copilot.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/index.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/oauth-page.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/pkce.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/oauth/types.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/sanitize-unicode.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/typebox-helpers.js +0 -0
- /package/node_modules/{@mariozechner/pi-agent-core/node_modules/@mariozechner → @earendil-works}/pi-ai/dist/utils/validation.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/bun/cli.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/bun/restore-sandbox-env.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/file-processor.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli/initial-message.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/cli.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/agent-session-runtime.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/agent-session-services.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/auth-guidance.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/bash-executor.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/compaction/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/defaults.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/diagnostics.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/event-bus.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/exec.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/ansi-to-html.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/template.html +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/tool-renderer.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/vendor/highlight.min.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/export-html/vendor/marked.min.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/runner.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/types.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/extensions/wrapper.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/footer-data-provider.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/messages.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/output-guard.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/prompt-templates.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/resolve-config-value.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/resource-loader.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/session-cwd.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/session-manager.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/settings-manager.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/skills.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/slash-commands.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/source-info.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/system-prompt.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/telemetry.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/timings.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/edit-diff.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/file-mutation-queue.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/output-accumulator.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/path-utils.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/core/tools/tool-definition-wrapper.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/assets/clankolas.png +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/armin.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/countdown-timer.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/daxnuts.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/diff.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/dynamic-border.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/components/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/interactive/theme/theme-schema.json +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/print-mode.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/rpc/jsonl.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-client.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-mode.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/modes/rpc/rpc-types.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/changelog.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/child-process.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/clipboard-image.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/clipboard-native.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/exif-orientation.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/frontmatter.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/fs-watch.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/git.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/image-convert.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/image-resize.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/mime.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/photon.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/pi-user-agent.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/shell.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/sleep.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-coding-agent/dist/utils/tools-manager.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/autocomplete.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/box.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/cancellable-loader.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/editor.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/input.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/loader.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/select-list.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/settings-list.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/spacer.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/text.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/components/truncated-text.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/editor-component.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/fuzzy.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/index.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/keybindings.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/keys.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/kill-ring.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/stdin-buffer.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/terminal.js +0 -0
- /package/node_modules/{@mariozechner → @earendil-works}/pi-tui/dist/undo-stack.js +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/LICENSE +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-cli.mjs +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-hooks.mjs +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-native.mjs +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-register.d.mts +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti-register.mjs +0 -0
- /package/node_modules/{@mariozechner/jiti/lib/jiti.mjs → jiti/lib/jiti-static.mjs} +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti.cjs +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti.d.cts +0 -0
- /package/node_modules/{@mariozechner/jiti → jiti}/lib/jiti.d.mts +0 -0
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a new {@linkcode Jiti} instance with custom options.
|
|
3
|
+
*
|
|
4
|
+
* @param id - Instance id, usually the current filename.
|
|
5
|
+
* @param userOptions - Custom options to override the default options.
|
|
6
|
+
* @returns A {@linkcode Jiti} instance.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <caption>ESM Usage</caption>
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { createJiti } from "jiti";
|
|
13
|
+
*
|
|
14
|
+
* const jiti = createJiti(import.meta.url, { debug: true });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <caption>CommonJS Usage **(deprecated)**</caption>
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* const { createJiti } = require("jiti");
|
|
22
|
+
*
|
|
23
|
+
* const jiti = createJiti(__filename, { debug: true });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @since 2.0.0
|
|
27
|
+
*/
|
|
28
|
+
export declare function createJiti(id: string, userOptions?: JitiOptions): Jiti;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Jiti instance
|
|
32
|
+
*
|
|
33
|
+
* Calling `jiti()` is similar to CommonJS {@linkcode require()} but adds
|
|
34
|
+
* extra features such as TypeScript and ESM compatibility.
|
|
35
|
+
*
|
|
36
|
+
* **Note:** It is recommended to use
|
|
37
|
+
* {@linkcode Jiti.import | await jiti.import()} instead.
|
|
38
|
+
*/
|
|
39
|
+
export interface Jiti extends NodeRequire {
|
|
40
|
+
/**
|
|
41
|
+
* Resolved options
|
|
42
|
+
*/
|
|
43
|
+
options: JitiOptions;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* ESM import a module with additional TypeScript and ESM compatibility.
|
|
47
|
+
*
|
|
48
|
+
* If you need the default export of module, you can use
|
|
49
|
+
* `jiti.import(id, { default: true })` as shortcut to `mod?.default ?? mod`.
|
|
50
|
+
*/
|
|
51
|
+
import<T = unknown>(
|
|
52
|
+
id: string,
|
|
53
|
+
opts?: JitiResolveOptions & { default?: true },
|
|
54
|
+
): Promise<T>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Resolve with ESM import conditions.
|
|
58
|
+
*/
|
|
59
|
+
esmResolve(id: string, parentURL?: string): string;
|
|
60
|
+
esmResolve<T extends JitiResolveOptions = JitiResolveOptions>(
|
|
61
|
+
id: string,
|
|
62
|
+
opts?: T,
|
|
63
|
+
): T["try"] extends true ? string | undefined : string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Transform source code
|
|
67
|
+
*/
|
|
68
|
+
transform: (opts: TransformOptions) => string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Evaluate transformed code as a module
|
|
72
|
+
*/
|
|
73
|
+
evalModule: (source: string, options?: EvalModuleOptions) => unknown;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Jiti instance options
|
|
78
|
+
*/
|
|
79
|
+
export interface JitiOptions {
|
|
80
|
+
/**
|
|
81
|
+
* Filesystem source cache
|
|
82
|
+
*
|
|
83
|
+
* An string can be passed to set the custom cache directory.
|
|
84
|
+
*
|
|
85
|
+
* By default (when set to `true`), jiti uses
|
|
86
|
+
* `node_modules/.cache/jiti` (if exists) or `{TMP_DIR}/jiti`.
|
|
87
|
+
*
|
|
88
|
+
* This option can also be disabled using
|
|
89
|
+
* `JITI_FS_CACHE=false` environment variable.
|
|
90
|
+
*
|
|
91
|
+
* **Note:** It is recommended to keep this option
|
|
92
|
+
* enabled for better performance.
|
|
93
|
+
*
|
|
94
|
+
* @default true
|
|
95
|
+
*/
|
|
96
|
+
fsCache?: boolean | string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Rebuild the filesystem source cache
|
|
100
|
+
*
|
|
101
|
+
* This option can also be enabled using
|
|
102
|
+
* `JITI_REBUILD_FS_CACHE=true` environment variable.
|
|
103
|
+
*
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
106
|
+
rebuildFsCache?: boolean;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated Use the {@linkcode fsCache} option.
|
|
110
|
+
*
|
|
111
|
+
* @default true
|
|
112
|
+
*/
|
|
113
|
+
cache?: boolean | string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Runtime module cache
|
|
117
|
+
*
|
|
118
|
+
* Disabling allows editing code and importing same module multiple times.
|
|
119
|
+
*
|
|
120
|
+
* When enabled, jiti integrates with Node.js native CommonJS cache store.
|
|
121
|
+
*
|
|
122
|
+
* This option can also be disabled using
|
|
123
|
+
* `JITI_MODULE_CACHE=false` environment variable.
|
|
124
|
+
*
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
127
|
+
moduleCache?: boolean;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Use the {@linkcode moduleCache} option.
|
|
131
|
+
*
|
|
132
|
+
* @default true
|
|
133
|
+
*/
|
|
134
|
+
requireCache?: boolean;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Custom transform function
|
|
138
|
+
*/
|
|
139
|
+
transform?: (opts: TransformOptions) => TransformResult;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Enable verbose debugging.
|
|
143
|
+
*
|
|
144
|
+
* Can also be enabled using `JITI_DEBUG=1` environment variable.
|
|
145
|
+
*
|
|
146
|
+
* @default false
|
|
147
|
+
*/
|
|
148
|
+
debug?: boolean;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Enable sourcemaps for transformed code.
|
|
152
|
+
*
|
|
153
|
+
* Can also be disabled using `JITI_SOURCE_MAPS=0` environment variable.
|
|
154
|
+
*
|
|
155
|
+
* @default false
|
|
156
|
+
*/
|
|
157
|
+
sourceMaps?: boolean;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Jiti combines module exports with the `default` export using an
|
|
161
|
+
* internal Proxy to improve compatibility with mixed CJS/ESM usage.
|
|
162
|
+
* You can check the current implementation
|
|
163
|
+
* {@link https://github.com/unjs/jiti/blob/main/src/utils.ts#L105 here}.
|
|
164
|
+
*
|
|
165
|
+
* Can be disabled using `JITI_INTEROP_DEFAULT=0` environment variable.
|
|
166
|
+
*
|
|
167
|
+
* @default true
|
|
168
|
+
*/
|
|
169
|
+
interopDefault?: boolean;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Jiti hard source cache version.
|
|
173
|
+
*
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
cacheVersion?: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Supported extensions to resolve.
|
|
180
|
+
*
|
|
181
|
+
* @default [".js", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts", ".mtsx", ".ctsx", ".json"]
|
|
182
|
+
*/
|
|
183
|
+
extensions?: string[];
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Transform options
|
|
187
|
+
*/
|
|
188
|
+
transformOptions?: Omit<TransformOptions, "source">;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Resolve aliases
|
|
192
|
+
*
|
|
193
|
+
* You can use `JITI_ALIAS` environment variable to set aliases as
|
|
194
|
+
* a JSON string.
|
|
195
|
+
*
|
|
196
|
+
* @default {}
|
|
197
|
+
*/
|
|
198
|
+
alias?: Record<string, string>;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* List of modules (within `node_modules`) to always use native
|
|
202
|
+
* require/import for them.
|
|
203
|
+
*
|
|
204
|
+
* You can use `JITI_NATIVE_MODULES` environment variable to set
|
|
205
|
+
* native modules as a JSON string.
|
|
206
|
+
*
|
|
207
|
+
* @default []
|
|
208
|
+
*/
|
|
209
|
+
nativeModules?: string[];
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* List of modules (within `node_modules`) to transform them
|
|
213
|
+
* regardless of syntax.
|
|
214
|
+
*
|
|
215
|
+
* You can use `JITI_TRANSFORM_MODULES` environment variable to set
|
|
216
|
+
* transform modules as a JSON string.
|
|
217
|
+
*
|
|
218
|
+
* @default []
|
|
219
|
+
*/
|
|
220
|
+
transformModules?: string[];
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Parent module's {@linkcode ImportMeta | import.meta} context to use
|
|
224
|
+
* for ESM resolution.
|
|
225
|
+
*
|
|
226
|
+
* (Only used for `jiti/native` import)
|
|
227
|
+
*/
|
|
228
|
+
importMeta?: ImportMeta;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Try to use native require and import without jiti transformations first.
|
|
232
|
+
*
|
|
233
|
+
* Enabled if Bun is detected.
|
|
234
|
+
*
|
|
235
|
+
* @default false
|
|
236
|
+
*/
|
|
237
|
+
tryNative?: boolean;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Always use a temp file (instead of a `data:` URL) for the ESM
|
|
241
|
+
* evaluation fallback path.
|
|
242
|
+
*
|
|
243
|
+
* jiti automatically falls back to a temp file when the `data:` URL
|
|
244
|
+
* import fails with `ENAMETOOLONG` — which happens on filesystems with
|
|
245
|
+
* a strict `NAME_MAX` limit (e.g. ecryptfs-encrypted home directories
|
|
246
|
+
* on Linux, some macOS configurations) once the base64-encoded source
|
|
247
|
+
* exceeds the limit. Setting this to `true` forces the temp-file path
|
|
248
|
+
* up front, skipping the `data:` URL attempt.
|
|
249
|
+
*
|
|
250
|
+
* The temp file is written to `{TMP_DIR}/jiti-esm/` and cleaned up
|
|
251
|
+
* after import.
|
|
252
|
+
*
|
|
253
|
+
* Can also be enabled using the `JITI_ESM_EVAL_TEMP_FILE=true`
|
|
254
|
+
* environment variable.
|
|
255
|
+
*
|
|
256
|
+
* @default false
|
|
257
|
+
*/
|
|
258
|
+
esmEvalTempFile?: boolean;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Enable JSX support Enable JSX support using
|
|
262
|
+
* {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx | `@babel/plugin-transform-react-jsx`}.
|
|
263
|
+
*
|
|
264
|
+
* You can also use `JITI_JSX=1` environment variable to enable JSX support.
|
|
265
|
+
*
|
|
266
|
+
* @default false
|
|
267
|
+
*/
|
|
268
|
+
jsx?: boolean | JSXOptions;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Virtual modules - pre-loaded module objects that bypass filesystem resolution.
|
|
272
|
+
* Useful for bundled modules in compiled binaries (e.g., Bun).
|
|
273
|
+
*
|
|
274
|
+
* When a module ID matches a key in this map, the corresponding value is
|
|
275
|
+
* returned directly without any filesystem resolution or transformation.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```ts
|
|
279
|
+
* import * as typebox from "@sinclair/typebox";
|
|
280
|
+
*
|
|
281
|
+
* const jiti = createJiti(import.meta.url, {
|
|
282
|
+
* virtualModules: {
|
|
283
|
+
* "@sinclair/typebox": typebox,
|
|
284
|
+
* },
|
|
285
|
+
* });
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
virtualModules?: Record<string, unknown>;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Enable tsconfig paths resolution.
|
|
292
|
+
*
|
|
293
|
+
* - `true`: auto-discover `tsconfig.json` by walking up from the
|
|
294
|
+
* jiti instance's parent path
|
|
295
|
+
* - `string`: explicit path to a `tsconfig.json` file
|
|
296
|
+
* - `false` (default): disabled
|
|
297
|
+
*
|
|
298
|
+
* When enabled, jiti uses
|
|
299
|
+
* {@link https://github.com/privatenumber/get-tsconfig | get-tsconfig}
|
|
300
|
+
* to resolve TypeScript path aliases defined in `compilerOptions.paths`.
|
|
301
|
+
*
|
|
302
|
+
* @default false
|
|
303
|
+
*/
|
|
304
|
+
tsconfigPaths?: boolean | string;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
interface NodeRequire {
|
|
308
|
+
/**
|
|
309
|
+
* Module cache
|
|
310
|
+
*/
|
|
311
|
+
cache: ModuleCache;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @deprecated Prefer {@linkcode Jiti.import | await jiti.import()}
|
|
315
|
+
* for better compatibility.
|
|
316
|
+
*/
|
|
317
|
+
(id: string): any;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated Prefer {@linkcode Jiti.esmResolve | jiti.esmResolve}
|
|
321
|
+
* for better compatibility.
|
|
322
|
+
*/
|
|
323
|
+
resolve: {
|
|
324
|
+
/** @deprecated */
|
|
325
|
+
(id: string, options?: { paths?: string[] | undefined }): string;
|
|
326
|
+
/** @deprecated */
|
|
327
|
+
paths(request: string): string[] | null;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
/** @deprecated CommonJS API */
|
|
331
|
+
extensions: Record<
|
|
332
|
+
".js" | ".json" | ".node",
|
|
333
|
+
(m: NodeModule, filename: string) => any | undefined
|
|
334
|
+
>;
|
|
335
|
+
|
|
336
|
+
/** @deprecated CommonJS API */
|
|
337
|
+
main: NodeModule | undefined;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface NodeModule {
|
|
341
|
+
/**
|
|
342
|
+
* `true` if the module is running during the Node.js preload.
|
|
343
|
+
*/
|
|
344
|
+
isPreloading: boolean;
|
|
345
|
+
exports: any;
|
|
346
|
+
require: NodeRequire;
|
|
347
|
+
id: string;
|
|
348
|
+
filename: string;
|
|
349
|
+
loaded: boolean;
|
|
350
|
+
/**
|
|
351
|
+
* @deprecated since Node.js **v14.6.0** Please use
|
|
352
|
+
* {@linkcode NodeRequire.main | require.main} and
|
|
353
|
+
* {@linkcode NodeModule.children | module.children} instead.
|
|
354
|
+
*/
|
|
355
|
+
parent: NodeModule | null | undefined;
|
|
356
|
+
children: NodeModule[];
|
|
357
|
+
/**
|
|
358
|
+
* The directory name of the module.
|
|
359
|
+
* This is usually the same as the `path.dirname()` of the `module.id`.
|
|
360
|
+
*
|
|
361
|
+
* @since Node.js **v11.14.0**
|
|
362
|
+
*/
|
|
363
|
+
path: string;
|
|
364
|
+
paths: string[];
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export type ModuleCache = Record<string, NodeModule>;
|
|
368
|
+
|
|
369
|
+
export type EvalModuleOptions = Partial<{
|
|
370
|
+
id: string;
|
|
371
|
+
filename: string;
|
|
372
|
+
ext: string;
|
|
373
|
+
cache: ModuleCache;
|
|
374
|
+
/**
|
|
375
|
+
* @default true
|
|
376
|
+
*/
|
|
377
|
+
async: boolean;
|
|
378
|
+
forceTranspile: boolean;
|
|
379
|
+
}>;
|
|
380
|
+
|
|
381
|
+
export interface TransformOptions {
|
|
382
|
+
source: string;
|
|
383
|
+
filename?: string;
|
|
384
|
+
ts?: boolean;
|
|
385
|
+
retainLines?: boolean;
|
|
386
|
+
interopDefault?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* @default false
|
|
389
|
+
*/
|
|
390
|
+
async?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* @default false
|
|
393
|
+
*/
|
|
394
|
+
jsx?: boolean | JSXOptions;
|
|
395
|
+
babel?: Record<string, any>;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export interface TransformResult {
|
|
399
|
+
code: string;
|
|
400
|
+
error?: any;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export interface JitiResolveOptions {
|
|
404
|
+
conditions?: string[];
|
|
405
|
+
parentURL?: string | URL;
|
|
406
|
+
try?: boolean;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#options | Reference}
|
|
411
|
+
*/
|
|
412
|
+
export interface JSXOptions {
|
|
413
|
+
throwIfNamespace?: boolean;
|
|
414
|
+
runtime?: "classic" | "automatic";
|
|
415
|
+
importSource?: string;
|
|
416
|
+
pragma?: string;
|
|
417
|
+
pragmaFrag?: string;
|
|
418
|
+
useBuiltIns?: boolean;
|
|
419
|
+
useSpread?: boolean;
|
|
420
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jiti",
|
|
3
|
+
"version": "2.7.0",
|
|
4
|
+
"description": "Runtime typescript and ESM support for Node.js",
|
|
5
|
+
"repository": "unjs/jiti",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./lib/jiti.d.mts",
|
|
12
|
+
"default": "./lib/jiti.mjs"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./lib/jiti.d.cts",
|
|
16
|
+
"default": "./lib/jiti.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"./register": {
|
|
20
|
+
"types": "./lib/jiti-register.d.mts",
|
|
21
|
+
"import": "./lib/jiti-register.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./native": {
|
|
24
|
+
"types": "./lib/jiti.d.mts",
|
|
25
|
+
"import": "./lib/jiti-native.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./static": {
|
|
28
|
+
"types": "./lib/jiti.d.mts",
|
|
29
|
+
"import": "./lib/jiti-static.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"main": "./lib/jiti.cjs",
|
|
34
|
+
"module": "./lib/jiti.mjs",
|
|
35
|
+
"types": "./lib/jiti.d.cts",
|
|
36
|
+
"typesVersions": {
|
|
37
|
+
"*": {
|
|
38
|
+
"register": [
|
|
39
|
+
"./lib/jiti-register.d.mts"
|
|
40
|
+
],
|
|
41
|
+
"native": [
|
|
42
|
+
"./lib/jiti.d.mts"
|
|
43
|
+
],
|
|
44
|
+
"static": [
|
|
45
|
+
"./lib/jiti.d.mts"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"bin": {
|
|
50
|
+
"jiti": "./lib/jiti-cli.mjs"
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"lib",
|
|
54
|
+
"dist",
|
|
55
|
+
"register.cjs"
|
|
56
|
+
],
|
|
57
|
+
"scripts": {
|
|
58
|
+
"bench": "node test/bench.mjs && deno -A test/bench.mjs && bun --bun test/bench.mjs",
|
|
59
|
+
"build": "pnpm clean && pnpm rspack",
|
|
60
|
+
"build:rolldown": "pnpm clean && pnpm rolldown -c rolldown.config.mjs",
|
|
61
|
+
"clean": "rm -rf dist",
|
|
62
|
+
"dev": "pnpm clean && pnpm rspack --watch",
|
|
63
|
+
"jiti": "JITI_DEBUG=1 JITI_JSX=1 lib/jiti-cli.mjs",
|
|
64
|
+
"lint": "eslint . && prettier -c src lib test stubs",
|
|
65
|
+
"lint:fix": "eslint --fix . && prettier -w src lib test stubs",
|
|
66
|
+
"prepack": "pnpm build",
|
|
67
|
+
"release": "pnpm build && pnpm test && changelogen --release --push && npm publish",
|
|
68
|
+
"test": "pnpm lint && pnpm test:types && vitest run --coverage && pnpm test:node-register && pnpm test:bun && pnpm test:native",
|
|
69
|
+
"test:bun": "bun --bun test test/bun",
|
|
70
|
+
"test:native": "pnpm test:native:bun && pnpm test:native:node && pnpm test:native:deno",
|
|
71
|
+
"test:native:bun": "bun --bun test test/native/bun.test.ts",
|
|
72
|
+
"test:native:deno": "deno test -A --no-check test/native/deno.test.ts",
|
|
73
|
+
"test:native:node": "node --test --experimental-strip-types test/native/node.test.ts",
|
|
74
|
+
"test:node-register": "JITI_JSX=1 node --test test/node-register.test.mjs",
|
|
75
|
+
"test:types": "tsgo --noEmit"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@babel/core": "^7.29.0",
|
|
79
|
+
"@babel/helper-module-imports": "^7.28.6",
|
|
80
|
+
"@babel/helper-module-transforms": "^7.28.6",
|
|
81
|
+
"@babel/helper-plugin-utils": "^7.28.6",
|
|
82
|
+
"@babel/helper-simple-access": "^7.27.1",
|
|
83
|
+
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
84
|
+
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
|
85
|
+
"@babel/plugin-syntax-import-assertions": "^7.28.6",
|
|
86
|
+
"@babel/plugin-syntax-jsx": "^7.28.6",
|
|
87
|
+
"@babel/plugin-transform-explicit-resource-management": "^7.28.6",
|
|
88
|
+
"@babel/plugin-transform-export-namespace-from": "^7.27.1",
|
|
89
|
+
"@babel/plugin-transform-react-jsx": "^7.28.6",
|
|
90
|
+
"@babel/plugin-transform-typescript": "^7.28.6",
|
|
91
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
92
|
+
"@babel/template": "^7.28.6",
|
|
93
|
+
"@babel/traverse": "^7.29.0",
|
|
94
|
+
"@babel/types": "^7.29.0",
|
|
95
|
+
"@rspack/cli": "^2.0.1",
|
|
96
|
+
"@rspack/core": "^2.0.1",
|
|
97
|
+
"@types/babel__core": "^7.20.5",
|
|
98
|
+
"@types/babel__helper-module-imports": "^7.18.3",
|
|
99
|
+
"@types/babel__helper-plugin-utils": "^7.10.3",
|
|
100
|
+
"@types/babel__template": "^7.4.4",
|
|
101
|
+
"@types/babel__traverse": "^7.28.0",
|
|
102
|
+
"@types/node": "^25.6.0",
|
|
103
|
+
"@typescript/native-preview": "7.0.0-dev.20260505.1",
|
|
104
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
105
|
+
"acorn": "^8.16.0",
|
|
106
|
+
"babel-plugin-parameter-decorator": "^1.0.16",
|
|
107
|
+
"changelogen": "^0.6.2",
|
|
108
|
+
"config": "^4.4.1",
|
|
109
|
+
"consola": "^3.4.2",
|
|
110
|
+
"defu": "^6.1.7",
|
|
111
|
+
"destr": "^2.0.5",
|
|
112
|
+
"escape-string-regexp": "^5.0.0",
|
|
113
|
+
"eslint": "^10.3.0",
|
|
114
|
+
"eslint-config-unjs": "^0.6.2",
|
|
115
|
+
"estree-walker": "^3.0.3",
|
|
116
|
+
"etag": "^1.8.1",
|
|
117
|
+
"fast-glob": "^3.3.3",
|
|
118
|
+
"get-tsconfig": "^4.14.0",
|
|
119
|
+
"is-installed-globally": "^1.0.0",
|
|
120
|
+
"mime": "^4.1.0",
|
|
121
|
+
"mitata": "^1.0.34",
|
|
122
|
+
"mlly": "^1.8.2",
|
|
123
|
+
"moment-timezone": "^0.6.2",
|
|
124
|
+
"nano-jsx": "^0.2.1",
|
|
125
|
+
"pathe": "^2.0.3",
|
|
126
|
+
"pkg-types": "^2.3.1",
|
|
127
|
+
"preact": "^10.29.1",
|
|
128
|
+
"preact-render-to-string": "^6.6.7",
|
|
129
|
+
"prettier": "^3.8.3",
|
|
130
|
+
"react": "^19.2.5",
|
|
131
|
+
"react-dom": "^19.2.5",
|
|
132
|
+
"reflect-metadata": "^0.2.2",
|
|
133
|
+
"rolldown": "1.0.0-rc.18",
|
|
134
|
+
"solid-js": "^1.9.12",
|
|
135
|
+
"std-env": "^4.1.0",
|
|
136
|
+
"terser-webpack-plugin": "^5.5.0",
|
|
137
|
+
"tinyexec": "^1.1.2",
|
|
138
|
+
"ts-loader": "^9.5.7",
|
|
139
|
+
"typescript": "^5.9.3",
|
|
140
|
+
"vitest": "^4.1.5",
|
|
141
|
+
"vue": "^3.5.33",
|
|
142
|
+
"yoctocolors": "^2.1.2",
|
|
143
|
+
"zod": "^4.4.3"
|
|
144
|
+
},
|
|
145
|
+
"packageManager": "pnpm@10.30.3"
|
|
146
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js v7.5.
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v7.5.7 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled sat, 09 may 2026 05:45:39 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -3422,8 +3422,10 @@ Namespace.prototype._lookupImpl = function lookup(path, flatPath) {
|
|
|
3422
3422
|
// Otherwise try each nested namespace
|
|
3423
3423
|
} else {
|
|
3424
3424
|
for (var i = 0; i < this.nestedArray.length; ++i)
|
|
3425
|
-
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath)))
|
|
3425
|
+
if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath))) {
|
|
3426
3426
|
exact = found;
|
|
3427
|
+
break;
|
|
3428
|
+
}
|
|
3427
3429
|
}
|
|
3428
3430
|
|
|
3429
3431
|
// Set this even when null, so that when we walk up the tree we can quickly bail on repeated checks back down.
|