@code-yeongyu/senpi 2026.6.3 → 2026.6.6-3
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/CHANGELOG.md +52 -4
- package/README.md +21 -4
- package/dist/bun/cli.d.ts.map +1 -1
- package/dist/bun/cli.js +1 -1
- package/dist/bun/cli.js.map +1 -1
- package/dist/bun/register-bedrock.d.ts.map +1 -1
- package/dist/bun/restore-sandbox-env.d.ts.map +1 -1
- package/dist/bun/restore-sandbox-env.js.map +1 -1
- package/dist/cli/args.d.ts +1 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +14 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/config-selector.d.ts.map +1 -1
- package/dist/cli/config-selector.js.map +1 -1
- package/dist/cli/file-processor.d.ts.map +1 -1
- package/dist/cli/file-processor.js.map +1 -1
- package/dist/cli/initial-message.d.ts +1 -1
- package/dist/cli/initial-message.d.ts.map +1 -1
- package/dist/cli/initial-message.js.map +1 -1
- package/dist/cli/list-models.d.ts.map +1 -1
- package/dist/cli/list-models.js.map +1 -1
- package/dist/cli/session-picker.d.ts.map +1 -1
- package/dist/cli/session-picker.js.map +1 -1
- package/dist/cli-main.d.ts +3 -0
- package/dist/cli-main.d.ts.map +1 -0
- package/dist/cli-main.js +10 -0
- package/dist/cli-main.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +46 -13
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +0 -8
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +32 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +51 -79
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-guidance.d.ts.map +1 -1
- package/dist/core/auth-guidance.js.map +1 -1
- package/dist/core/auth-storage.d.ts +4 -0
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +8 -11
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/bash-executor.d.ts.map +1 -1
- package/dist/core/bash-executor.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/index.d.ts.map +1 -1
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/defaults.d.ts.map +1 -1
- package/dist/core/diagnostics.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/build.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/build.js.map +1 -1
- package/dist/core/dynamic-prompt/exploration.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/exploration.js.map +1 -1
- package/dist/core/dynamic-prompt/identity.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/identity.js.map +1 -1
- package/dist/core/dynamic-prompt/index.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/intent-gate.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/intent-gate.js.map +1 -1
- package/dist/core/dynamic-prompt/parallel-tools.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/parallel-tools.js.map +1 -1
- package/dist/core/dynamic-prompt/policies.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/policies.js.map +1 -1
- package/dist/core/dynamic-prompt/style.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/style.js.map +1 -1
- package/dist/core/dynamic-prompt/tool-categorization.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/tool-categorization.js.map +1 -1
- package/dist/core/dynamic-prompt/tool-section.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/tool-section.js.map +1 -1
- package/dist/core/dynamic-prompt/types.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/verification.d.ts.map +1 -1
- package/dist/core/dynamic-prompt/verification.js.map +1 -1
- package/dist/core/event-bus.d.ts.map +1 -1
- package/dist/core/event-bus.js.map +1 -1
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js.map +1 -1
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -1
- package/dist/core/export-html/ansi-to-html.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template.js +19 -6
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -1
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- package/dist/core/extensions/builtin/anthropic-bash/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/anthropic-bash/index.js.map +1 -1
- package/dist/core/extensions/builtin/anthropic-web-search/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/anthropic-web-search/index.js.map +1 -1
- package/dist/core/extensions/builtin/bash-timeout/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/bash-timeout/index.js.map +1 -1
- package/dist/core/extensions/builtin/bash-timeout/timeout.d.ts.map +1 -1
- package/dist/core/extensions/builtin/bash-timeout/timeout.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/checkpoint-state.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/checkpoint-state.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/circuit-breaker.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/circuit-breaker.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/context-reduction.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/context-reduction.js +1 -1
- package/dist/core/extensions/builtin/compaction/context-reduction.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/degradation-monitor.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/degradation-monitor.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/index.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/openai-remote.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/openai-remote.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/overflow-detection.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/overflow-detection.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/per-turn-cap.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/policy.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/policy.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/prompts.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/prompts.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/repair-tool-pairs.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/repair-tool-pairs.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/restoration-tracker.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/restoration-tracker.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/speculative.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/speculative.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/state.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/state.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/todo-bridge.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/tool-truncation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/tool-truncation.js.map +1 -1
- package/dist/core/extensions/builtin/diff.d.ts.map +1 -1
- package/dist/core/extensions/builtin/diff.js.map +1 -1
- package/dist/core/extensions/builtin/files.d.ts.map +1 -1
- package/dist/core/extensions/builtin/files.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/apply.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/apply.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/constants.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/constants.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/errors.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/errors.js +0 -2
- package/dist/core/extensions/builtin/gpt-apply-patch/errors.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/extension.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/extension.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/params.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/params.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/parser.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/parser.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/patch-diff.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/patch-diff.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/patch-replace.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/patch-replace.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/preview-format.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/preview-format.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/preview.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/preview.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/seek-sequence.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/seek-sequence.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/streaming-parser.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/streaming-parser.js +7 -5
- package/dist/core/extensions/builtin/gpt-apply-patch/streaming-parser.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/streaming-render.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/streaming-render.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/text.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/text.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/tool.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/tool.js.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/types.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/workspace.d.ts.map +1 -1
- package/dist/core/extensions/builtin/gpt-apply-patch/workspace.js.map +1 -1
- package/dist/core/extensions/builtin/history-search/filter.d.ts.map +1 -1
- package/dist/core/extensions/builtin/history-search/filter.js.map +1 -1
- package/dist/core/extensions/builtin/history-search/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/history-search/index.js.map +1 -1
- package/dist/core/extensions/builtin/history-search/indexer.d.ts.map +1 -1
- package/dist/core/extensions/builtin/history-search/indexer.js.map +1 -1
- package/dist/core/extensions/builtin/history-search/overlay.d.ts.map +1 -1
- package/dist/core/extensions/builtin/history-search/overlay.js +3 -6
- package/dist/core/extensions/builtin/history-search/overlay.js.map +1 -1
- package/dist/core/extensions/builtin/history-search/types.d.ts.map +1 -1
- package/dist/core/extensions/builtin/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/kimi-web-search/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/kimi-web-search/index.js.map +1 -1
- package/dist/core/extensions/builtin/openai-web-search/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/openai-web-search/index.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/arity.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/arity.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/cli.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/cli.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/config.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/config.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/evaluate.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/evaluate.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/events.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/events.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/external-dir.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/external-dir.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/index.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/non-interactive.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/non-interactive.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/parsers.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/parsers.js +3 -1
- package/dist/core/extensions/builtin/permission-system/parsers.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/prompt.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/prompt.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/service.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/service.js +2 -5
- package/dist/core/extensions/builtin/permission-system/service.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/settings.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/settings.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/storage.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/storage.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/types.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/types.js +3 -5
- package/dist/core/extensions/builtin/permission-system/types.js.map +1 -1
- package/dist/core/extensions/builtin/permission-system/wildcard.d.ts.map +1 -1
- package/dist/core/extensions/builtin/permission-system/wildcard.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/claude-opus-4-5.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/claude-opus-4-5.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/claude-opus-4-6.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/claude-opus-4-6.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/claude-opus-4-7.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/claude-opus-4-7.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/file-operations.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/file-operations.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.2.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.2.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.3-codex.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.3-codex.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.4.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.4.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.5.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.5.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/gpt-5.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/index.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/kimi-k2-6.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/kimi-k2-6.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/presets.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/presets.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/settings.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-preset/settings.js.map +1 -1
- package/dist/core/extensions/builtin/prompt-url-widget.d.ts.map +1 -1
- package/dist/core/extensions/builtin/prompt-url-widget.js.map +1 -1
- package/dist/core/extensions/builtin/redraws.d.ts.map +1 -1
- package/dist/core/extensions/builtin/redraws.js.map +1 -1
- package/dist/core/extensions/builtin/service-tier.d.ts.map +1 -1
- package/dist/core/extensions/builtin/service-tier.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/index.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/loader.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/loader.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/overlay-format.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/overlay-format.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/overlay.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/overlay.js +13 -18
- package/dist/core/extensions/builtin/session-observer/overlay.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/scanner.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/scanner.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/text.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/text.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/transcript-entries.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/transcript-entries.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/transcript-format.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/transcript-format.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/transcript.d.ts.map +1 -1
- package/dist/core/extensions/builtin/session-observer/transcript.js.map +1 -1
- package/dist/core/extensions/builtin/session-observer/types.d.ts.map +1 -1
- package/dist/core/extensions/builtin/system-messages.d.ts.map +1 -1
- package/dist/core/extensions/builtin/system-messages.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/continuation/config.d.ts +1 -1
- package/dist/core/extensions/builtin/todotools/continuation/config.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/continuation/config.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/continuation/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/continuation/prompt.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/continuation/prompt.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/continuation/runtime.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/continuation/runtime.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/index.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/prompt.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/settings.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/settings.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/state.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/state.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/system-messages.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/system-messages.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/tools/todoread.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/tools/todoread.js.map +1 -1
- package/dist/core/extensions/builtin/todotools/tools/todowrite.d.ts.map +1 -1
- package/dist/core/extensions/builtin/todotools/tools/todowrite.js.map +1 -1
- package/dist/core/extensions/builtin/tool-pair-guard/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/tool-pair-guard/index.js.map +1 -1
- package/dist/core/extensions/builtin/tool-pair-guard/sanitize-anthropic-payload.d.ts.map +1 -1
- package/dist/core/extensions/builtin/tool-pair-guard/sanitize-anthropic-payload.js.map +1 -1
- package/dist/core/extensions/builtin/tool-pair-guard/sanitize-openai-chat-completions-payload.d.ts.map +1 -1
- package/dist/core/extensions/builtin/tool-pair-guard/sanitize-openai-chat-completions-payload.js.map +1 -1
- package/dist/core/extensions/builtin/tool-pair-guard/sanitize-openai-responses-payload.d.ts.map +1 -1
- package/dist/core/extensions/builtin/tool-pair-guard/sanitize-openai-responses-payload.js.map +1 -1
- package/dist/core/extensions/builtin/tps.d.ts.map +1 -1
- package/dist/core/extensions/builtin/tps.js.map +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +35 -43
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +1 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/extensions/wrapper.d.ts.map +1 -1
- package/dist/core/extensions/wrapper.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +17 -18
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/http-dispatcher.d.ts.map +1 -1
- package/dist/core/http-dispatcher.js.map +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/keybindings.d.ts +1 -1
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +0 -1
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/messages.d.ts.map +1 -1
- package/dist/core/messages.js.map +1 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +8 -10
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +2 -0
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/output-guard.d.ts.map +1 -1
- package/dist/core/output-guard.js.map +1 -1
- package/dist/core/package-manager.d.ts +3 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +47 -19
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/prompt-templates.d.ts.map +1 -1
- package/dist/core/prompt-templates.js.map +1 -1
- package/dist/core/provider-attribution.d.ts.map +1 -1
- package/dist/core/provider-attribution.js.map +1 -1
- package/dist/core/provider-display-names.d.ts.map +1 -1
- package/dist/core/provider-display-names.js +2 -0
- package/dist/core/provider-display-names.js.map +1 -1
- package/dist/core/resolve-config-value.d.ts.map +1 -1
- package/dist/core/resolve-config-value.js.map +1 -1
- package/dist/core/resource-loader.d.ts +1 -0
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +26 -53
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-cwd.d.ts.map +1 -1
- package/dist/core/session-cwd.js +0 -1
- package/dist/core/session-cwd.js.map +1 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +7 -11
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-work-barrier.d.ts.map +1 -1
- package/dist/core/session-work-barrier.js +5 -3
- package/dist/core/session-work-barrier.js.map +1 -1
- package/dist/core/settings-manager.d.ts +10 -2
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +77 -46
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/skills.d.ts.map +1 -1
- package/dist/core/skills.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +1 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/source-info.d.ts.map +1 -1
- package/dist/core/source-info.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/telemetry.d.ts.map +1 -1
- package/dist/core/telemetry.js.map +1 -1
- package/dist/core/thinking-levels.d.ts.map +1 -1
- package/dist/core/thinking-levels.js.map +1 -1
- package/dist/core/timings.d.ts.map +1 -1
- package/dist/core/timings.js.map +1 -1
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +9 -6
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/diff-render.d.ts.map +1 -1
- package/dist/core/tools/diff-render.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -1
- package/dist/core/tools/file-mutation-queue.js.map +1 -1
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +1 -1
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/grep.d.ts.map +1 -1
- package/dist/core/tools/grep.js +1 -1
- package/dist/core/tools/grep.js.map +1 -1
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/ls.d.ts.map +1 -1
- package/dist/core/tools/ls.js +1 -1
- package/dist/core/tools/ls.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +12 -18
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/path-utils.d.ts.map +1 -1
- package/dist/core/tools/path-utils.js.map +1 -1
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +1 -1
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -1
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -1
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +1 -2
- package/dist/core/tools/write.js.map +1 -1
- package/dist/core/trust-manager.d.ts +9 -0
- package/dist/core/trust-manager.d.ts.map +1 -0
- package/dist/core/trust-manager.js +133 -0
- package/dist/core/trust-manager.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +54 -2
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js.map +1 -1
- package/dist/modes/index.d.ts.map +1 -1
- package/dist/modes/interactive/components/armin.d.ts.map +1 -1
- package/dist/modes/interactive/components/armin.js +6 -10
- package/dist/modes/interactive/components/armin.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +2 -11
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js +6 -11
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -1
- package/dist/modes/interactive/components/bordered-loader.js +0 -3
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/branch-summary-message.js +1 -3
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/compaction-summary-message.js +1 -3
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +5 -15
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -1
- package/dist/modes/interactive/components/countdown-timer.js +0 -5
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -1
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-editor.js +1 -8
- package/dist/modes/interactive/components/custom-editor.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +1 -6
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -1
- package/dist/modes/interactive/components/daxnuts.js +6 -8
- package/dist/modes/interactive/components/daxnuts.js.map +1 -1
- package/dist/modes/interactive/components/diff.d.ts.map +1 -1
- package/dist/modes/interactive/components/diff.js +2 -2
- package/dist/modes/interactive/components/diff.js.map +1 -1
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -1
- package/dist/modes/interactive/components/dynamic-border.js +0 -1
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -1
- package/dist/modes/interactive/components/earendil-announcement.d.ts.map +1 -1
- package/dist/modes/interactive/components/earendil-announcement.js.map +1 -1
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-editor.js +1 -6
- package/dist/modes/interactive/components/extension-editor.js.map +1 -1
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-input.js +2 -8
- package/dist/modes/interactive/components/extension-input.js.map +1 -1
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-selector.js +1 -9
- package/dist/modes/interactive/components/extension-selector.js.map +1 -1
- package/dist/modes/interactive/components/favorite-models-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/favorite-models-selector.js +9 -15
- package/dist/modes/interactive/components/favorite-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +10 -3
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/index.d.ts +1 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -1
- package/dist/modes/interactive/components/index.js +1 -0
- package/dist/modes/interactive/components/index.js.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -1
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts +0 -1
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +6 -21
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/components/model-favorites.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-favorites.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +9 -22
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +3 -12
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +33 -58
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +0 -4
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/show-images-selector.js +0 -1
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/skill-invocation-message.js +1 -3
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/theme-selector.js +0 -2
- package/dist/modes/interactive/components/theme-selector.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +0 -1
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +9 -28
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector.js +18 -32
- package/dist/modes/interactive/components/tree-selector.js.map +1 -1
- package/dist/modes/interactive/components/trust-selector.d.ts +20 -0
- package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/trust-selector.js +81 -0
- package/dist/modes/interactive/components/trust-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message-selector.js +3 -6
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +0 -1
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +24 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +112 -101
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/session-info-format.d.ts.map +1 -1
- package/dist/modes/interactive/session-info-format.js.map +1 -1
- package/dist/modes/interactive/startup-tools.d.ts.map +1 -1
- package/dist/modes/interactive/startup-tools.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +0 -6
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/interactive/working-status.d.ts.map +1 -1
- package/dist/modes/interactive/working-status.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/provider-native-rendering.d.ts.map +1 -1
- package/dist/modes/provider-native-rendering.js.map +1 -1
- package/dist/modes/rpc/jsonl.d.ts.map +1 -1
- package/dist/modes/rpc/jsonl.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +7 -8
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +56 -9
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/self-update-bootstrap.d.ts +19 -0
- package/dist/self-update-bootstrap.d.ts.map +1 -0
- package/dist/self-update-bootstrap.js +160 -0
- package/dist/self-update-bootstrap.js.map +1 -0
- package/dist/senpi +46 -13
- package/dist/utils/ansi.d.ts.map +1 -1
- package/dist/utils/ansi.js.map +1 -1
- package/dist/utils/changelog.d.ts.map +1 -1
- package/dist/utils/changelog.js.map +1 -1
- package/dist/utils/child-process.d.ts.map +1 -1
- package/dist/utils/child-process.js.map +1 -1
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/clipboard-native.d.ts.map +1 -1
- package/dist/utils/clipboard-native.js.map +1 -1
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/deprecation.d.ts.map +1 -1
- package/dist/utils/deprecation.js.map +1 -1
- package/dist/utils/exif-orientation.d.ts.map +1 -1
- package/dist/utils/exif-orientation.js.map +1 -1
- package/dist/utils/frontmatter.d.ts.map +1 -1
- package/dist/utils/frontmatter.js.map +1 -1
- package/dist/utils/fs-watch.d.ts.map +1 -1
- package/dist/utils/fs-watch.js.map +1 -1
- package/dist/utils/git.d.ts.map +1 -1
- package/dist/utils/git.js +54 -22
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/html.d.ts.map +1 -1
- package/dist/utils/html.js.map +1 -1
- package/dist/utils/image-convert.d.ts.map +1 -1
- package/dist/utils/image-convert.js.map +1 -1
- package/dist/utils/image-resize-core.d.ts.map +1 -1
- package/dist/utils/image-resize-core.js.map +1 -1
- package/dist/utils/image-resize-worker.d.ts.map +1 -1
- package/dist/utils/image-resize-worker.js.map +1 -1
- package/dist/utils/image-resize.d.ts.map +1 -1
- package/dist/utils/image-resize.js.map +1 -1
- package/dist/utils/json.d.ts.map +1 -1
- package/dist/utils/json.js.map +1 -1
- package/dist/utils/mime.d.ts.map +1 -1
- package/dist/utils/mime.js.map +1 -1
- package/dist/utils/open-browser.d.ts +9 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +22 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/photon.d.ts.map +1 -1
- package/dist/utils/photon.js.map +1 -1
- package/dist/utils/pi-user-agent.d.ts.map +1 -1
- package/dist/utils/pi-user-agent.js.map +1 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/sleep.d.ts.map +1 -1
- package/dist/utils/sleep.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js.map +1 -1
- package/dist/utils/version-check.d.ts.map +1 -1
- package/dist/utils/version-check.js.map +1 -1
- package/dist/utils/windows-self-update.d.ts.map +1 -1
- package/dist/utils/windows-self-update.js.map +1 -1
- package/docs/containerization.md +111 -0
- package/docs/docs.json +4 -0
- package/docs/extensions.md +3 -1
- package/docs/index.md +1 -0
- package/docs/packages.md +3 -1
- package/docs/prompt-templates.md +1 -1
- package/docs/providers.md +3 -0
- package/docs/settings.md +10 -0
- package/docs/skills.md +3 -3
- package/docs/themes.md +1 -1
- package/docs/usage.md +15 -3
- package/examples/extensions/README.md +1 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/index.ts +531 -0
- package/examples/extensions/gondolin/package-lock.json +185 -0
- package/examples/extensions/gondolin/package.json +19 -0
- package/examples/extensions/minimal-mode.ts +6 -6
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +7 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +2 -27
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js +7 -20
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/agent-harness.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/branch-summarization.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +0 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/messages.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/prompt-templates.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js +0 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-repo.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js +0 -7
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/jsonl-storage.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js +3 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-repo.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js +0 -5
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/memory-storage.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/repo-utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js +0 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/session.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/uuid.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/session/uuid.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/skills.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/system-prompt.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js +0 -16
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/shell-output.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/utils/truncate.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/node.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/proxy.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/proxy.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +6 -6
- package/node_modules/@earendil-works/pi-ai/README.md +5 -1
- package/node_modules/@earendil-works/pi-ai/dist/api-registry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api-registry.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/cli.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/cli.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts +30 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +30 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images-api-registry.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/images.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +413 -65
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +385 -97
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/oauth.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot-headers.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot-headers.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-shared.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/google.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/openrouter.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/images/register-builtins.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +0 -7
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js +26 -9
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-completions.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-prompt-cache.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-prompt-cache.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses-shared.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/register-builtins.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/simple-options.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/transform-messages.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/transform-messages.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/session-resources.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/session-resources.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/stream.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/stream.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/context-transformer.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/context-transformer.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/gemma4.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/gemma4.js +10 -8
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/gemma4.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/hermes.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/hermes.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/json-mix.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/json-mix.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/morph-xml.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/morph-xml.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/xml-tool-tag-scanner.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/xml-tool-tag-scanner.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/yaml-xml.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/protocols/yaml-xml.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/stream-wrapper.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/stream-wrapper.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/tool-call-middleware/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/abort-signals.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +3 -7
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/hash.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/hash.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/headers.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/headers.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/node-http-proxy.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/anthropic.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/anthropic.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +13 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/oauth-page.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/oauth-page.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/openai-codex.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/pkce.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/pkce.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/sanitize-unicode.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/tool-pair-repair.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/tool-pair-repair.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/typebox-helpers.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/validation.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/validation.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +5 -5
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +0 -3
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/box.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/box.js +1 -6
- package/node_modules/@earendil-works/pi-tui/dist/components/box.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js +4 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/cancellable-loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +43 -54
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/image.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/image.js +0 -8
- package/node_modules/@earendil-works/pi-tui/dist/components/image.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/input.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/input.js +14 -14
- package/node_modules/@earendil-works/pi-tui/dist/components/input.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +11 -13
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +0 -11
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +4 -9
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +4 -12
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.js +0 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/spacer.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/text.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/text.js +0 -8
- package/node_modules/@earendil-works/pi-tui/dist/components/text.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js +0 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/truncated-text.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/editor-component.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -4
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keys.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keys.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/kill-ring.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/kill-ring.js +3 -1
- package/node_modules/@earendil-works/pi-tui/dist/kill-ring.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/slash-command-autocomplete.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/slash-command-autocomplete.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js +4 -6
- package/node_modules/@earendil-works/pi-tui/dist/stdin-buffer.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +24 -29
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/tui.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/tui.js +25 -27
- package/node_modules/@earendil-works/pi-tui/dist/tui.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/undo-stack.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/undo-stack.js +3 -1
- package/node_modules/@earendil-works/pi-tui/dist/undo-stack.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +14 -12
- package/node_modules/@earendil-works/pi-tui/dist/utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/word-navigation.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/word-navigation.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +3 -55
- package/node_modules/@types/node/assert.d.ts +49 -177
- package/node_modules/@types/node/async_hooks.d.ts +151 -43
- package/node_modules/@types/node/buffer.buffer.d.ts +2 -8
- package/node_modules/@types/node/buffer.d.ts +43 -212
- package/node_modules/@types/node/child_process.d.ts +23 -133
- package/node_modules/@types/node/cluster.d.ts +238 -384
- package/node_modules/@types/node/compatibility/iterators.d.ts +1 -0
- package/node_modules/@types/node/console.d.ts +45 -404
- package/node_modules/@types/node/constants.d.ts +3 -10
- package/node_modules/@types/node/crypto.d.ts +640 -1127
- package/node_modules/@types/node/dgram.d.ts +14 -77
- package/node_modules/@types/node/diagnostics_channel.d.ts +3 -29
- package/node_modules/@types/node/dns/promises.d.ts +4 -10
- package/node_modules/@types/node/dns.d.ts +130 -177
- package/node_modules/@types/node/domain.d.ts +12 -32
- package/node_modules/@types/node/events.d.ts +872 -840
- package/node_modules/@types/node/fs/promises.d.ts +193 -20
- package/node_modules/@types/node/fs.d.ts +754 -435
- package/node_modules/@types/node/globals.d.ts +8 -30
- package/node_modules/@types/node/globals.typedarray.d.ts +63 -0
- package/node_modules/@types/node/http.d.ts +363 -305
- package/node_modules/@types/node/http2.d.ts +545 -781
- package/node_modules/@types/node/https.d.ts +64 -243
- package/node_modules/@types/node/index.d.ts +26 -6
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +68 -57
- package/node_modules/@types/node/inspector.generated.d.ts +764 -410
- package/node_modules/@types/node/module.d.ts +53 -189
- package/node_modules/@types/node/net.d.ts +101 -207
- package/node_modules/@types/node/os.d.ts +11 -19
- package/node_modules/@types/node/package.json +13 -3
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +119 -141
- package/node_modules/@types/node/perf_hooks.d.ts +317 -673
- package/node_modules/@types/node/process.d.ts +277 -157
- package/node_modules/@types/node/punycode.d.ts +3 -31
- package/node_modules/@types/node/querystring.d.ts +3 -16
- package/node_modules/@types/node/quic.d.ts +897 -0
- package/node_modules/@types/node/readline/promises.d.ts +3 -6
- package/node_modules/@types/node/readline.d.ts +65 -152
- package/node_modules/@types/node/repl.d.ts +101 -109
- package/node_modules/@types/node/sea.d.ts +9 -115
- package/node_modules/@types/node/sqlite.d.ts +415 -68
- package/node_modules/@types/node/stream/consumers.d.ts +91 -15
- package/node_modules/@types/node/stream/iter.d.ts +301 -0
- package/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/node/stream/web.d.ts +179 -501
- package/node_modules/@types/node/stream.d.ts +577 -490
- package/node_modules/@types/node/string_decoder.d.ts +3 -43
- package/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@types/node/test.d.ts +402 -286
- package/node_modules/@types/node/timers/promises.d.ts +3 -18
- package/node_modules/@types/node/timers.d.ts +3 -141
- package/node_modules/@types/node/tls.d.ts +115 -241
- package/node_modules/@types/node/trace_events.d.ts +3 -97
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +2 -8
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +2 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +28 -6
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +119 -0
- package/node_modules/@types/node/tty.d.ts +57 -40
- package/node_modules/@types/node/url.d.ts +156 -584
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +167 -1096
- package/node_modules/@types/node/v8.d.ts +75 -15
- package/node_modules/@types/node/vm.d.ts +334 -198
- package/node_modules/@types/node/wasi.d.ts +24 -74
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +14 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +3 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +280 -393
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +7 -165
- package/node_modules/undici-types/agent.d.ts +13 -12
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +13 -12
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +34 -19
- package/node_modules/undici-types/connector.d.ts +4 -2
- package/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +18 -10
- package/node_modules/undici-types/dispatcher.d.ts +127 -104
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
- package/node_modules/undici-types/errors.d.ts +82 -54
- package/node_modules/undici-types/eventsource.d.ts +9 -4
- package/node_modules/undici-types/fetch.d.ts +22 -20
- package/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +8 -8
- package/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/undici-types/index.d.ts +67 -47
- package/node_modules/undici-types/interceptors.d.ts +71 -8
- package/node_modules/undici-types/mock-agent.d.ts +36 -18
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +6 -4
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +21 -20
- package/node_modules/undici-types/mock-pool.d.ts +6 -4
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +15 -13
- package/node_modules/undici-types/proxy-agent.d.ts +5 -4
- package/node_modules/undici-types/readable.d.ts +19 -16
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +19 -10
- package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +148 -29
- package/node_modules/undici-types/websocket.d.ts +48 -10
- package/npm-shrinkwrap.json +21 -21
- package/package.json +14 -8
- package/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/undici-types/filereader.d.ts +0 -54
|
@@ -1,15 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
declare module "node:util" {
|
|
2
|
+
export * as types from "node:util/types";
|
|
3
|
+
export type InspectStyle =
|
|
4
|
+
| "special"
|
|
5
|
+
| "number"
|
|
6
|
+
| "bigint"
|
|
7
|
+
| "boolean"
|
|
8
|
+
| "undefined"
|
|
9
|
+
| "null"
|
|
10
|
+
| "string"
|
|
11
|
+
| "symbol"
|
|
12
|
+
| "date"
|
|
13
|
+
| "name"
|
|
14
|
+
| "regexp"
|
|
15
|
+
| "module";
|
|
16
|
+
export interface InspectStyles extends Record<InspectStyle, InspectColor | ((value: string) => string)> {
|
|
17
|
+
regexp: {
|
|
18
|
+
(value: string): string;
|
|
19
|
+
colors: InspectColor[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export type InspectColorModifier =
|
|
23
|
+
| "reset"
|
|
24
|
+
| "bold"
|
|
25
|
+
| "dim"
|
|
26
|
+
| "italic"
|
|
27
|
+
| "underline"
|
|
28
|
+
| "blink"
|
|
29
|
+
| "inverse"
|
|
30
|
+
| "hidden"
|
|
31
|
+
| "strikethrough"
|
|
32
|
+
| "doubleunderline";
|
|
33
|
+
export type InspectColorForeground =
|
|
34
|
+
| "black"
|
|
35
|
+
| "red"
|
|
36
|
+
| "green"
|
|
37
|
+
| "yellow"
|
|
38
|
+
| "blue"
|
|
39
|
+
| "magenta"
|
|
40
|
+
| "cyan"
|
|
41
|
+
| "white"
|
|
42
|
+
| "gray"
|
|
43
|
+
| "redBright"
|
|
44
|
+
| "greenBright"
|
|
45
|
+
| "yellowBright"
|
|
46
|
+
| "blueBright"
|
|
47
|
+
| "magentaBright"
|
|
48
|
+
| "cyanBright"
|
|
49
|
+
| "whiteBright";
|
|
50
|
+
export type InspectColorBackground = `bg${Capitalize<InspectColorForeground>}`;
|
|
51
|
+
export type InspectColor = InspectColorModifier | InspectColorForeground | InspectColorBackground;
|
|
52
|
+
export interface InspectColors extends Record<InspectColor, [number, number]> {}
|
|
13
53
|
export interface InspectOptions {
|
|
14
54
|
/**
|
|
15
55
|
* If `true`, object's non-enumerable symbols and properties are included in the formatted result.
|
|
@@ -92,22 +132,26 @@ declare module "util" {
|
|
|
92
132
|
*/
|
|
93
133
|
numericSeparator?: boolean | undefined;
|
|
94
134
|
}
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
| "number"
|
|
98
|
-
| "bigint"
|
|
99
|
-
| "boolean"
|
|
100
|
-
| "undefined"
|
|
101
|
-
| "null"
|
|
102
|
-
| "string"
|
|
103
|
-
| "symbol"
|
|
104
|
-
| "date"
|
|
105
|
-
| "regexp"
|
|
106
|
-
| "module";
|
|
107
|
-
export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect
|
|
108
|
-
export interface InspectOptionsStylized extends InspectOptions {
|
|
109
|
-
stylize(text: string, styleType: Style): string;
|
|
135
|
+
export interface InspectContext extends Required<InspectOptions> {
|
|
136
|
+
stylize(text: string, styleType: InspectStyle): string;
|
|
110
137
|
}
|
|
138
|
+
import _inspect = inspect;
|
|
139
|
+
export interface Inspectable {
|
|
140
|
+
[inspect.custom](depth: number, options: InspectContext, inspect: typeof _inspect): any;
|
|
141
|
+
}
|
|
142
|
+
// TODO: Remove these in a future major
|
|
143
|
+
/** @deprecated Use `InspectStyle` instead. */
|
|
144
|
+
export type Style = Exclude<InspectStyle, "name">;
|
|
145
|
+
/** @deprecated Use the `Inspectable` interface instead. */
|
|
146
|
+
export type CustomInspectFunction = (depth: number, options: InspectContext) => any;
|
|
147
|
+
/** @deprecated Use `InspectContext` instead. */
|
|
148
|
+
export interface InspectOptionsStylized extends InspectContext {}
|
|
149
|
+
/** @deprecated Use `InspectColorModifier` instead. */
|
|
150
|
+
export type Modifiers = InspectColorModifier;
|
|
151
|
+
/** @deprecated Use `InspectColorForeground` instead. */
|
|
152
|
+
export type ForegroundColors = InspectColorForeground;
|
|
153
|
+
/** @deprecated Use `InspectColorBackground` instead. */
|
|
154
|
+
export type BackgroundColors = InspectColorBackground;
|
|
111
155
|
export interface CallSiteObject {
|
|
112
156
|
/**
|
|
113
157
|
* Returns the name of the function associated with this call site.
|
|
@@ -243,7 +287,7 @@ declare module "util" {
|
|
|
243
287
|
* @since v10.0.0
|
|
244
288
|
*/
|
|
245
289
|
export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
|
|
246
|
-
interface GetCallSitesOptions {
|
|
290
|
+
export interface GetCallSitesOptions {
|
|
247
291
|
/**
|
|
248
292
|
* Reconstruct the original location in the stacktrace from the source-map.
|
|
249
293
|
* Enabled by default with the flag `--enable-source-maps`.
|
|
@@ -254,6 +298,9 @@ declare module "util" {
|
|
|
254
298
|
* Returns an array of call site objects containing the stack of
|
|
255
299
|
* the caller function.
|
|
256
300
|
*
|
|
301
|
+
* Unlike accessing an `error.stack`, the result returned from this API is not
|
|
302
|
+
* interfered with `Error.prepareStackTrace`.
|
|
303
|
+
*
|
|
257
304
|
* ```js
|
|
258
305
|
* import { getCallSites } from 'node:util';
|
|
259
306
|
*
|
|
@@ -266,7 +313,7 @@ declare module "util" {
|
|
|
266
313
|
* console.log(`Function Name: ${callSite.functionName}`);
|
|
267
314
|
* console.log(`Script Name: ${callSite.scriptName}`);
|
|
268
315
|
* console.log(`Line Number: ${callSite.lineNumber}`);
|
|
269
|
-
* console.log(`Column Number: ${callSite.
|
|
316
|
+
* console.log(`Column Number: ${callSite.columnNumber}`);
|
|
270
317
|
* });
|
|
271
318
|
* // CallSite 1:
|
|
272
319
|
* // Function Name: exampleFunction
|
|
@@ -340,7 +387,7 @@ declare module "util" {
|
|
|
340
387
|
export function getSystemErrorName(err: number): string;
|
|
341
388
|
/**
|
|
342
389
|
* Enable or disable printing a stack trace on `SIGINT`. The API is only available on the main thread.
|
|
343
|
-
* @since
|
|
390
|
+
* @since 24.6.0
|
|
344
391
|
*/
|
|
345
392
|
export function setTraceSigInt(enable: boolean): void;
|
|
346
393
|
/**
|
|
@@ -372,19 +419,6 @@ declare module "util" {
|
|
|
372
419
|
* @since v22.12.0
|
|
373
420
|
*/
|
|
374
421
|
export function getSystemErrorMessage(err: number): string;
|
|
375
|
-
/**
|
|
376
|
-
* The `util.log()` method prints the given `string` to `stdout` with an included
|
|
377
|
-
* timestamp.
|
|
378
|
-
*
|
|
379
|
-
* ```js
|
|
380
|
-
* import util from 'node:util';
|
|
381
|
-
*
|
|
382
|
-
* util.log('Timestamped message.');
|
|
383
|
-
* ```
|
|
384
|
-
* @since v0.3.0
|
|
385
|
-
* @deprecated Since v6.0.0 - Use a third party module instead.
|
|
386
|
-
*/
|
|
387
|
-
export function log(string: string): void;
|
|
388
422
|
/**
|
|
389
423
|
* Returns the `string` after replacing any surrogate code points
|
|
390
424
|
* (or equivalently, any unpaired surrogate code units) with the
|
|
@@ -622,19 +656,11 @@ declare module "util" {
|
|
|
622
656
|
export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
|
|
623
657
|
export function inspect(object: any, options?: InspectOptions): string;
|
|
624
658
|
export namespace inspect {
|
|
625
|
-
|
|
626
|
-
let
|
|
627
|
-
|
|
628
|
-
};
|
|
659
|
+
const custom: unique symbol;
|
|
660
|
+
let colors: InspectColors;
|
|
661
|
+
let styles: InspectStyles;
|
|
629
662
|
let defaultOptions: InspectOptions;
|
|
630
|
-
/**
|
|
631
|
-
* Allows changing inspect settings from the repl.
|
|
632
|
-
*/
|
|
633
663
|
let replDefaults: InspectOptions;
|
|
634
|
-
/**
|
|
635
|
-
* That can be used to declare custom inspect functions.
|
|
636
|
-
*/
|
|
637
|
-
const custom: unique symbol;
|
|
638
664
|
}
|
|
639
665
|
/**
|
|
640
666
|
* Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray).
|
|
@@ -655,71 +681,6 @@ declare module "util" {
|
|
|
655
681
|
* @deprecated Since v4.0.0 - Use `isArray` instead.
|
|
656
682
|
*/
|
|
657
683
|
export function isArray(object: unknown): object is unknown[];
|
|
658
|
-
/**
|
|
659
|
-
* Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`.
|
|
660
|
-
*
|
|
661
|
-
* ```js
|
|
662
|
-
* import util from 'node:util';
|
|
663
|
-
*
|
|
664
|
-
* util.isRegExp(/some regexp/);
|
|
665
|
-
* // Returns: true
|
|
666
|
-
* util.isRegExp(new RegExp('another regexp'));
|
|
667
|
-
* // Returns: true
|
|
668
|
-
* util.isRegExp({});
|
|
669
|
-
* // Returns: false
|
|
670
|
-
* ```
|
|
671
|
-
* @since v0.6.0
|
|
672
|
-
* @deprecated Since v4.0.0 - Deprecated
|
|
673
|
-
*/
|
|
674
|
-
export function isRegExp(object: unknown): object is RegExp;
|
|
675
|
-
/**
|
|
676
|
-
* Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`.
|
|
677
|
-
*
|
|
678
|
-
* ```js
|
|
679
|
-
* import util from 'node:util';
|
|
680
|
-
*
|
|
681
|
-
* util.isDate(new Date());
|
|
682
|
-
* // Returns: true
|
|
683
|
-
* util.isDate(Date());
|
|
684
|
-
* // false (without 'new' returns a String)
|
|
685
|
-
* util.isDate({});
|
|
686
|
-
* // Returns: false
|
|
687
|
-
* ```
|
|
688
|
-
* @since v0.6.0
|
|
689
|
-
* @deprecated Since v4.0.0 - Use {@link types.isDate} instead.
|
|
690
|
-
*/
|
|
691
|
-
export function isDate(object: unknown): object is Date;
|
|
692
|
-
/**
|
|
693
|
-
* Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`.
|
|
694
|
-
*
|
|
695
|
-
* ```js
|
|
696
|
-
* import util from 'node:util';
|
|
697
|
-
*
|
|
698
|
-
* util.isError(new Error());
|
|
699
|
-
* // Returns: true
|
|
700
|
-
* util.isError(new TypeError());
|
|
701
|
-
* // Returns: true
|
|
702
|
-
* util.isError({ name: 'Error', message: 'an error occurred' });
|
|
703
|
-
* // Returns: false
|
|
704
|
-
* ```
|
|
705
|
-
*
|
|
706
|
-
* This method relies on `Object.prototype.toString()` behavior. It is
|
|
707
|
-
* possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`.
|
|
708
|
-
*
|
|
709
|
-
* ```js
|
|
710
|
-
* import util from 'node:util';
|
|
711
|
-
* const obj = { name: 'Error', message: 'an error occurred' };
|
|
712
|
-
*
|
|
713
|
-
* util.isError(obj);
|
|
714
|
-
* // Returns: false
|
|
715
|
-
* obj[Symbol.toStringTag] = 'Error';
|
|
716
|
-
* util.isError(obj);
|
|
717
|
-
* // Returns: true
|
|
718
|
-
* ```
|
|
719
|
-
* @since v0.6.0
|
|
720
|
-
* @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead.
|
|
721
|
-
*/
|
|
722
|
-
export function isError(object: unknown): object is Error;
|
|
723
684
|
/**
|
|
724
685
|
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and
|
|
725
686
|
* `extends` keywords to get language level inheritance support. Also note
|
|
@@ -782,6 +743,28 @@ declare module "util" {
|
|
|
782
743
|
* @legacy Use ES2015 class syntax and `extends` keyword instead.
|
|
783
744
|
*/
|
|
784
745
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
746
|
+
/**
|
|
747
|
+
* The `util.convertProcessSignalToExitCode()` method converts a signal name to its
|
|
748
|
+
* corresponding POSIX exit code. Following the POSIX standard, the exit code
|
|
749
|
+
* for a process terminated by a signal is calculated as `128 + signal number`.
|
|
750
|
+
*
|
|
751
|
+
* If `signal` is not a valid signal name, then an error will be thrown. See
|
|
752
|
+
* [`signal(7)`](https://man7.org/linux/man-pages/man7/signal.7.html) for a list of valid signals.
|
|
753
|
+
*
|
|
754
|
+
* ```js
|
|
755
|
+
* import { convertProcessSignalToExitCode } from 'node:util';
|
|
756
|
+
*
|
|
757
|
+
* console.log(convertProcessSignalToExitCode('SIGTERM')); // 143 (128 + 15)
|
|
758
|
+
* console.log(convertProcessSignalToExitCode('SIGKILL')); // 137 (128 + 9)
|
|
759
|
+
* ```
|
|
760
|
+
*
|
|
761
|
+
* This is particularly useful when working with processes to determine
|
|
762
|
+
* the exit code based on the signal that terminated the process.
|
|
763
|
+
* @since v25.4.0
|
|
764
|
+
* @param signal A signal name (e.g. `'SIGTERM'`)
|
|
765
|
+
* @returns The exit code corresponding to `signal`
|
|
766
|
+
*/
|
|
767
|
+
export function convertProcessSignalToExitCode(signal: NodeJS.Signals): number;
|
|
785
768
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
|
786
769
|
export interface DebugLogger extends DebugLoggerFunction {
|
|
787
770
|
/**
|
|
@@ -836,7 +819,7 @@ declare module "util" {
|
|
|
836
819
|
*
|
|
837
820
|
* ```js
|
|
838
821
|
* import { debuglog } from 'node:util';
|
|
839
|
-
* const log = debuglog('foo');
|
|
822
|
+
* const log = debuglog('foo-bar');
|
|
840
823
|
*
|
|
841
824
|
* log('hi there, it\'s foo-bar [%d]', 2333);
|
|
842
825
|
* ```
|
|
@@ -870,217 +853,15 @@ declare module "util" {
|
|
|
870
853
|
*/
|
|
871
854
|
export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
|
872
855
|
export { debuglog as debug };
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
* // Returns: false
|
|
883
|
-
* util.isBoolean(false);
|
|
884
|
-
* // Returns: true
|
|
885
|
-
* ```
|
|
886
|
-
* @since v0.11.5
|
|
887
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead.
|
|
888
|
-
*/
|
|
889
|
-
export function isBoolean(object: unknown): object is boolean;
|
|
890
|
-
/**
|
|
891
|
-
* Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`.
|
|
892
|
-
*
|
|
893
|
-
* ```js
|
|
894
|
-
* import util from 'node:util';
|
|
895
|
-
*
|
|
896
|
-
* util.isBuffer({ length: 0 });
|
|
897
|
-
* // Returns: false
|
|
898
|
-
* util.isBuffer([]);
|
|
899
|
-
* // Returns: false
|
|
900
|
-
* util.isBuffer(Buffer.from('hello world'));
|
|
901
|
-
* // Returns: true
|
|
902
|
-
* ```
|
|
903
|
-
* @since v0.11.5
|
|
904
|
-
* @deprecated Since v4.0.0 - Use `isBuffer` instead.
|
|
905
|
-
*/
|
|
906
|
-
export function isBuffer(object: unknown): object is Buffer;
|
|
907
|
-
/**
|
|
908
|
-
* Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`.
|
|
909
|
-
*
|
|
910
|
-
* ```js
|
|
911
|
-
* import util from 'node:util';
|
|
912
|
-
*
|
|
913
|
-
* function Foo() {}
|
|
914
|
-
* const Bar = () => {};
|
|
915
|
-
*
|
|
916
|
-
* util.isFunction({});
|
|
917
|
-
* // Returns: false
|
|
918
|
-
* util.isFunction(Foo);
|
|
919
|
-
* // Returns: true
|
|
920
|
-
* util.isFunction(Bar);
|
|
921
|
-
* // Returns: true
|
|
922
|
-
* ```
|
|
923
|
-
* @since v0.11.5
|
|
924
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead.
|
|
925
|
-
*/
|
|
926
|
-
export function isFunction(object: unknown): boolean;
|
|
927
|
-
/**
|
|
928
|
-
* Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`.
|
|
929
|
-
*
|
|
930
|
-
* ```js
|
|
931
|
-
* import util from 'node:util';
|
|
932
|
-
*
|
|
933
|
-
* util.isNull(0);
|
|
934
|
-
* // Returns: false
|
|
935
|
-
* util.isNull(undefined);
|
|
936
|
-
* // Returns: false
|
|
937
|
-
* util.isNull(null);
|
|
938
|
-
* // Returns: true
|
|
939
|
-
* ```
|
|
940
|
-
* @since v0.11.5
|
|
941
|
-
* @deprecated Since v4.0.0 - Use `value === null` instead.
|
|
942
|
-
*/
|
|
943
|
-
export function isNull(object: unknown): object is null;
|
|
944
|
-
/**
|
|
945
|
-
* Returns `true` if the given `object` is `null` or `undefined`. Otherwise,
|
|
946
|
-
* returns `false`.
|
|
947
|
-
*
|
|
948
|
-
* ```js
|
|
949
|
-
* import util from 'node:util';
|
|
950
|
-
*
|
|
951
|
-
* util.isNullOrUndefined(0);
|
|
952
|
-
* // Returns: false
|
|
953
|
-
* util.isNullOrUndefined(undefined);
|
|
954
|
-
* // Returns: true
|
|
955
|
-
* util.isNullOrUndefined(null);
|
|
956
|
-
* // Returns: true
|
|
957
|
-
* ```
|
|
958
|
-
* @since v0.11.5
|
|
959
|
-
* @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead.
|
|
960
|
-
*/
|
|
961
|
-
export function isNullOrUndefined(object: unknown): object is null | undefined;
|
|
962
|
-
/**
|
|
963
|
-
* Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`.
|
|
964
|
-
*
|
|
965
|
-
* ```js
|
|
966
|
-
* import util from 'node:util';
|
|
967
|
-
*
|
|
968
|
-
* util.isNumber(false);
|
|
969
|
-
* // Returns: false
|
|
970
|
-
* util.isNumber(Infinity);
|
|
971
|
-
* // Returns: true
|
|
972
|
-
* util.isNumber(0);
|
|
973
|
-
* // Returns: true
|
|
974
|
-
* util.isNumber(NaN);
|
|
975
|
-
* // Returns: true
|
|
976
|
-
* ```
|
|
977
|
-
* @since v0.11.5
|
|
978
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead.
|
|
979
|
-
*/
|
|
980
|
-
export function isNumber(object: unknown): object is number;
|
|
981
|
-
/**
|
|
982
|
-
* Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript).
|
|
983
|
-
* Otherwise, returns `false`.
|
|
984
|
-
*
|
|
985
|
-
* ```js
|
|
986
|
-
* import util from 'node:util';
|
|
987
|
-
*
|
|
988
|
-
* util.isObject(5);
|
|
989
|
-
* // Returns: false
|
|
990
|
-
* util.isObject(null);
|
|
991
|
-
* // Returns: false
|
|
992
|
-
* util.isObject({});
|
|
993
|
-
* // Returns: true
|
|
994
|
-
* util.isObject(() => {});
|
|
995
|
-
* // Returns: false
|
|
996
|
-
* ```
|
|
997
|
-
* @since v0.11.5
|
|
998
|
-
* @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead.
|
|
999
|
-
*/
|
|
1000
|
-
export function isObject(object: unknown): boolean;
|
|
1001
|
-
/**
|
|
1002
|
-
* Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`.
|
|
1003
|
-
*
|
|
1004
|
-
* ```js
|
|
1005
|
-
* import util from 'node:util';
|
|
1006
|
-
*
|
|
1007
|
-
* util.isPrimitive(5);
|
|
1008
|
-
* // Returns: true
|
|
1009
|
-
* util.isPrimitive('foo');
|
|
1010
|
-
* // Returns: true
|
|
1011
|
-
* util.isPrimitive(false);
|
|
1012
|
-
* // Returns: true
|
|
1013
|
-
* util.isPrimitive(null);
|
|
1014
|
-
* // Returns: true
|
|
1015
|
-
* util.isPrimitive(undefined);
|
|
1016
|
-
* // Returns: true
|
|
1017
|
-
* util.isPrimitive({});
|
|
1018
|
-
* // Returns: false
|
|
1019
|
-
* util.isPrimitive(() => {});
|
|
1020
|
-
* // Returns: false
|
|
1021
|
-
* util.isPrimitive(/^$/);
|
|
1022
|
-
* // Returns: false
|
|
1023
|
-
* util.isPrimitive(new Date());
|
|
1024
|
-
* // Returns: false
|
|
1025
|
-
* ```
|
|
1026
|
-
* @since v0.11.5
|
|
1027
|
-
* @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead.
|
|
1028
|
-
*/
|
|
1029
|
-
export function isPrimitive(object: unknown): boolean;
|
|
1030
|
-
/**
|
|
1031
|
-
* Returns `true` if the given `object` is a `string`. Otherwise, returns `false`.
|
|
1032
|
-
*
|
|
1033
|
-
* ```js
|
|
1034
|
-
* import util from 'node:util';
|
|
1035
|
-
*
|
|
1036
|
-
* util.isString('');
|
|
1037
|
-
* // Returns: true
|
|
1038
|
-
* util.isString('foo');
|
|
1039
|
-
* // Returns: true
|
|
1040
|
-
* util.isString(String('foo'));
|
|
1041
|
-
* // Returns: true
|
|
1042
|
-
* util.isString(5);
|
|
1043
|
-
* // Returns: false
|
|
1044
|
-
* ```
|
|
1045
|
-
* @since v0.11.5
|
|
1046
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead.
|
|
1047
|
-
*/
|
|
1048
|
-
export function isString(object: unknown): object is string;
|
|
1049
|
-
/**
|
|
1050
|
-
* Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`.
|
|
1051
|
-
*
|
|
1052
|
-
* ```js
|
|
1053
|
-
* import util from 'node:util';
|
|
1054
|
-
*
|
|
1055
|
-
* util.isSymbol(5);
|
|
1056
|
-
* // Returns: false
|
|
1057
|
-
* util.isSymbol('foo');
|
|
1058
|
-
* // Returns: false
|
|
1059
|
-
* util.isSymbol(Symbol('foo'));
|
|
1060
|
-
* // Returns: true
|
|
1061
|
-
* ```
|
|
1062
|
-
* @since v0.11.5
|
|
1063
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead.
|
|
1064
|
-
*/
|
|
1065
|
-
export function isSymbol(object: unknown): object is symbol;
|
|
1066
|
-
/**
|
|
1067
|
-
* Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`.
|
|
1068
|
-
*
|
|
1069
|
-
* ```js
|
|
1070
|
-
* import util from 'node:util';
|
|
1071
|
-
*
|
|
1072
|
-
* const foo = undefined;
|
|
1073
|
-
* util.isUndefined(5);
|
|
1074
|
-
* // Returns: false
|
|
1075
|
-
* util.isUndefined(foo);
|
|
1076
|
-
* // Returns: true
|
|
1077
|
-
* util.isUndefined(null);
|
|
1078
|
-
* // Returns: false
|
|
1079
|
-
* ```
|
|
1080
|
-
* @since v0.11.5
|
|
1081
|
-
* @deprecated Since v4.0.0 - Use `value === undefined` instead.
|
|
1082
|
-
*/
|
|
1083
|
-
export function isUndefined(object: unknown): object is undefined;
|
|
856
|
+
export interface DeprecateOptions {
|
|
857
|
+
/**
|
|
858
|
+
* When false do not change the prototype of object
|
|
859
|
+
* while emitting the deprecation warning.
|
|
860
|
+
* @since v25.2.0
|
|
861
|
+
* @default true
|
|
862
|
+
*/
|
|
863
|
+
modifyPrototype?: boolean | undefined;
|
|
864
|
+
}
|
|
1084
865
|
/**
|
|
1085
866
|
* The `util.deprecate()` method wraps `fn` (which may be a function or class) in
|
|
1086
867
|
* such a way that it is marked as deprecated.
|
|
@@ -1141,7 +922,16 @@ declare module "util" {
|
|
|
1141
922
|
* @param code A deprecation code. See the `list of deprecated APIs` for a list of codes.
|
|
1142
923
|
* @return The deprecated function wrapped to emit a warning.
|
|
1143
924
|
*/
|
|
1144
|
-
export function deprecate<T extends Function>(fn: T, msg: string, code?: string): T;
|
|
925
|
+
export function deprecate<T extends Function>(fn: T, msg: string, code?: string, options?: DeprecateOptions): T;
|
|
926
|
+
export interface IsDeepStrictEqualOptions {
|
|
927
|
+
/**
|
|
928
|
+
* If `true`, prototype and constructor
|
|
929
|
+
* comparison is skipped during deep strict equality check.
|
|
930
|
+
* @since v24.9.0
|
|
931
|
+
* @default false
|
|
932
|
+
*/
|
|
933
|
+
skipPrototype?: boolean | undefined;
|
|
934
|
+
}
|
|
1145
935
|
/**
|
|
1146
936
|
* Returns `true` if there is deep strict equality between `val1` and `val2`.
|
|
1147
937
|
* Otherwise, returns `false`.
|
|
@@ -1150,7 +940,7 @@ declare module "util" {
|
|
|
1150
940
|
* equality.
|
|
1151
941
|
* @since v9.0.0
|
|
1152
942
|
*/
|
|
1153
|
-
export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
|
|
943
|
+
export function isDeepStrictEqual(val1: unknown, val2: unknown, options?: IsDeepStrictEqualOptions): boolean;
|
|
1154
944
|
/**
|
|
1155
945
|
* Returns `str` with any ANSI escape codes removed.
|
|
1156
946
|
*
|
|
@@ -1325,7 +1115,7 @@ declare module "util" {
|
|
|
1325
1115
|
* ```
|
|
1326
1116
|
*
|
|
1327
1117
|
* If there is an `original[util.promisify.custom]` property present, `promisify`
|
|
1328
|
-
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-
|
|
1118
|
+
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-v25.x/api/util.html#custom-promisified-functions).
|
|
1329
1119
|
*
|
|
1330
1120
|
* `promisify()` assumes that `original` is a function taking a callback as its
|
|
1331
1121
|
* final argument in all cases. If `original` is not a function, `promisify()`
|
|
@@ -1416,61 +1206,6 @@ declare module "util" {
|
|
|
1416
1206
|
* @since v20.12.0
|
|
1417
1207
|
*/
|
|
1418
1208
|
export function parseEnv(content: string): NodeJS.Dict<string>;
|
|
1419
|
-
// https://nodejs.org/docs/latest/api/util.html#foreground-colors
|
|
1420
|
-
type ForegroundColors =
|
|
1421
|
-
| "black"
|
|
1422
|
-
| "blackBright"
|
|
1423
|
-
| "blue"
|
|
1424
|
-
| "blueBright"
|
|
1425
|
-
| "cyan"
|
|
1426
|
-
| "cyanBright"
|
|
1427
|
-
| "gray"
|
|
1428
|
-
| "green"
|
|
1429
|
-
| "greenBright"
|
|
1430
|
-
| "grey"
|
|
1431
|
-
| "magenta"
|
|
1432
|
-
| "magentaBright"
|
|
1433
|
-
| "red"
|
|
1434
|
-
| "redBright"
|
|
1435
|
-
| "white"
|
|
1436
|
-
| "whiteBright"
|
|
1437
|
-
| "yellow"
|
|
1438
|
-
| "yellowBright";
|
|
1439
|
-
// https://nodejs.org/docs/latest/api/util.html#background-colors
|
|
1440
|
-
type BackgroundColors =
|
|
1441
|
-
| "bgBlack"
|
|
1442
|
-
| "bgBlackBright"
|
|
1443
|
-
| "bgBlue"
|
|
1444
|
-
| "bgBlueBright"
|
|
1445
|
-
| "bgCyan"
|
|
1446
|
-
| "bgCyanBright"
|
|
1447
|
-
| "bgGray"
|
|
1448
|
-
| "bgGreen"
|
|
1449
|
-
| "bgGreenBright"
|
|
1450
|
-
| "bgGrey"
|
|
1451
|
-
| "bgMagenta"
|
|
1452
|
-
| "bgMagentaBright"
|
|
1453
|
-
| "bgRed"
|
|
1454
|
-
| "bgRedBright"
|
|
1455
|
-
| "bgWhite"
|
|
1456
|
-
| "bgWhiteBright"
|
|
1457
|
-
| "bgYellow"
|
|
1458
|
-
| "bgYellowBright";
|
|
1459
|
-
// https://nodejs.org/docs/latest/api/util.html#modifiers
|
|
1460
|
-
type Modifiers =
|
|
1461
|
-
| "blink"
|
|
1462
|
-
| "bold"
|
|
1463
|
-
| "dim"
|
|
1464
|
-
| "doubleunderline"
|
|
1465
|
-
| "framed"
|
|
1466
|
-
| "hidden"
|
|
1467
|
-
| "inverse"
|
|
1468
|
-
| "italic"
|
|
1469
|
-
| "none"
|
|
1470
|
-
| "overlined"
|
|
1471
|
-
| "reset"
|
|
1472
|
-
| "strikethrough"
|
|
1473
|
-
| "underline";
|
|
1474
1209
|
export interface StyleTextOptions {
|
|
1475
1210
|
/**
|
|
1476
1211
|
* When true, `stream` is checked to see if it can handle colors.
|
|
@@ -1525,142 +1260,19 @@ declare module "util" {
|
|
|
1525
1260
|
*
|
|
1526
1261
|
* The special format value `none` applies no additional styling to the text.
|
|
1527
1262
|
*
|
|
1528
|
-
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-
|
|
1263
|
+
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v25.x/api/util.html#modifiers).
|
|
1529
1264
|
* @param format A text format or an Array of text formats defined in `util.inspect.colors`.
|
|
1530
1265
|
* @param text The text to to be formatted.
|
|
1531
1266
|
* @since v20.12.0
|
|
1532
1267
|
*/
|
|
1533
1268
|
export function styleText(
|
|
1534
|
-
format:
|
|
1535
|
-
| ForegroundColors
|
|
1536
|
-
| BackgroundColors
|
|
1537
|
-
| Modifiers
|
|
1538
|
-
| Array<ForegroundColors | BackgroundColors | Modifiers>,
|
|
1269
|
+
format: InspectColor | readonly InspectColor[],
|
|
1539
1270
|
text: string,
|
|
1540
1271
|
options?: StyleTextOptions,
|
|
1541
1272
|
): string;
|
|
1542
|
-
/**
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
* ```js
|
|
1546
|
-
* const decoder = new TextDecoder();
|
|
1547
|
-
* const u8arr = new Uint8Array([72, 101, 108, 108, 111]);
|
|
1548
|
-
* console.log(decoder.decode(u8arr)); // Hello
|
|
1549
|
-
* ```
|
|
1550
|
-
* @since v8.3.0
|
|
1551
|
-
*/
|
|
1552
|
-
export class TextDecoder {
|
|
1553
|
-
/**
|
|
1554
|
-
* The encoding supported by the `TextDecoder` instance.
|
|
1555
|
-
*/
|
|
1556
|
-
readonly encoding: string;
|
|
1557
|
-
/**
|
|
1558
|
-
* The value will be `true` if decoding errors result in a `TypeError` being
|
|
1559
|
-
* thrown.
|
|
1560
|
-
*/
|
|
1561
|
-
readonly fatal: boolean;
|
|
1562
|
-
/**
|
|
1563
|
-
* The value will be `true` if the decoding result will include the byte order
|
|
1564
|
-
* mark.
|
|
1565
|
-
*/
|
|
1566
|
-
readonly ignoreBOM: boolean;
|
|
1567
|
-
constructor(
|
|
1568
|
-
encoding?: string,
|
|
1569
|
-
options?: {
|
|
1570
|
-
fatal?: boolean | undefined;
|
|
1571
|
-
ignoreBOM?: boolean | undefined;
|
|
1572
|
-
},
|
|
1573
|
-
);
|
|
1574
|
-
/**
|
|
1575
|
-
* Decodes the `input` and returns a string. If `options.stream` is `true`, any
|
|
1576
|
-
* incomplete byte sequences occurring at the end of the `input` are buffered
|
|
1577
|
-
* internally and emitted after the next call to `textDecoder.decode()`.
|
|
1578
|
-
*
|
|
1579
|
-
* If `textDecoder.fatal` is `true`, decoding errors that occur will result in a `TypeError` being thrown.
|
|
1580
|
-
* @param input An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data.
|
|
1581
|
-
*/
|
|
1582
|
-
decode(
|
|
1583
|
-
input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
|
|
1584
|
-
options?: {
|
|
1585
|
-
stream?: boolean | undefined;
|
|
1586
|
-
},
|
|
1587
|
-
): string;
|
|
1588
|
-
}
|
|
1589
|
-
export interface EncodeIntoResult {
|
|
1590
|
-
/**
|
|
1591
|
-
* The read Unicode code units of input.
|
|
1592
|
-
*/
|
|
1593
|
-
read: number;
|
|
1594
|
-
/**
|
|
1595
|
-
* The written UTF-8 bytes of output.
|
|
1596
|
-
*/
|
|
1597
|
-
written: number;
|
|
1598
|
-
}
|
|
1599
|
-
export { types };
|
|
1600
|
-
|
|
1601
|
-
//// TextEncoder/Decoder
|
|
1602
|
-
/**
|
|
1603
|
-
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All
|
|
1604
|
-
* instances of `TextEncoder` only support UTF-8 encoding.
|
|
1605
|
-
*
|
|
1606
|
-
* ```js
|
|
1607
|
-
* const encoder = new TextEncoder();
|
|
1608
|
-
* const uint8array = encoder.encode('this is some data');
|
|
1609
|
-
* ```
|
|
1610
|
-
*
|
|
1611
|
-
* The `TextEncoder` class is also available on the global object.
|
|
1612
|
-
* @since v8.3.0
|
|
1613
|
-
*/
|
|
1614
|
-
export class TextEncoder {
|
|
1615
|
-
/**
|
|
1616
|
-
* The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`.
|
|
1617
|
-
*/
|
|
1618
|
-
readonly encoding: string;
|
|
1619
|
-
/**
|
|
1620
|
-
* UTF-8 encodes the `input` string and returns a `Uint8Array` containing the
|
|
1621
|
-
* encoded bytes.
|
|
1622
|
-
* @param [input='an empty string'] The text to encode.
|
|
1623
|
-
*/
|
|
1624
|
-
encode(input?: string): NodeJS.NonSharedUint8Array;
|
|
1625
|
-
/**
|
|
1626
|
-
* UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object
|
|
1627
|
-
* containing the read Unicode code units and written UTF-8 bytes.
|
|
1628
|
-
*
|
|
1629
|
-
* ```js
|
|
1630
|
-
* const encoder = new TextEncoder();
|
|
1631
|
-
* const src = 'this is some data';
|
|
1632
|
-
* const dest = new Uint8Array(10);
|
|
1633
|
-
* const { read, written } = encoder.encodeInto(src, dest);
|
|
1634
|
-
* ```
|
|
1635
|
-
* @param src The text to encode.
|
|
1636
|
-
* @param dest The array to hold the encode result.
|
|
1637
|
-
*/
|
|
1638
|
-
encodeInto(src: string, dest: Uint8Array): EncodeIntoResult;
|
|
1639
|
-
}
|
|
1640
|
-
import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util";
|
|
1641
|
-
global {
|
|
1642
|
-
/**
|
|
1643
|
-
* `TextDecoder` class is a global reference for `import { TextDecoder } from 'node:util'`
|
|
1644
|
-
* https://nodejs.org/api/globals.html#textdecoder
|
|
1645
|
-
* @since v11.0.0
|
|
1646
|
-
*/
|
|
1647
|
-
var TextDecoder: typeof globalThis extends {
|
|
1648
|
-
onmessage: any;
|
|
1649
|
-
TextDecoder: infer TextDecoder;
|
|
1650
|
-
} ? TextDecoder
|
|
1651
|
-
: typeof _TextDecoder;
|
|
1652
|
-
/**
|
|
1653
|
-
* `TextEncoder` class is a global reference for `import { TextEncoder } from 'node:util'`
|
|
1654
|
-
* https://nodejs.org/api/globals.html#textencoder
|
|
1655
|
-
* @since v11.0.0
|
|
1656
|
-
*/
|
|
1657
|
-
var TextEncoder: typeof globalThis extends {
|
|
1658
|
-
onmessage: any;
|
|
1659
|
-
TextEncoder: infer TextEncoder;
|
|
1660
|
-
} ? TextEncoder
|
|
1661
|
-
: typeof _TextEncoder;
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1273
|
+
/** @deprecated This alias will be removed in a future version. Use the canonical `TextEncoderEncodeIntoResult` instead. */
|
|
1274
|
+
// TODO: remove in future major
|
|
1275
|
+
export interface EncodeIntoResult extends TextEncoderEncodeIntoResult {}
|
|
1664
1276
|
//// parseArgs
|
|
1665
1277
|
/**
|
|
1666
1278
|
* Provides a higher level API for command-line argument parsing than interacting
|
|
@@ -1691,12 +1303,10 @@ declare module "util" {
|
|
|
1691
1303
|
* @return The parsed command line arguments:
|
|
1692
1304
|
*/
|
|
1693
1305
|
export function parseArgs<T extends ParseArgsConfig>(config?: T): ParsedResults<T>;
|
|
1694
|
-
|
|
1695
1306
|
/**
|
|
1696
1307
|
* Type of argument used in {@link parseArgs}.
|
|
1697
1308
|
*/
|
|
1698
1309
|
export type ParseArgsOptionsType = "boolean" | "string";
|
|
1699
|
-
|
|
1700
1310
|
export interface ParseArgsOptionDescriptor {
|
|
1701
1311
|
/**
|
|
1702
1312
|
* Type of argument.
|
|
@@ -1771,23 +1381,19 @@ declare module "util" {
|
|
|
1771
1381
|
type IfDefaultsTrue<T, IfTrue, IfFalse> = T extends true ? IfTrue
|
|
1772
1382
|
: T extends false ? IfFalse
|
|
1773
1383
|
: IfTrue;
|
|
1774
|
-
|
|
1775
1384
|
// we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false`
|
|
1776
1385
|
type IfDefaultsFalse<T, IfTrue, IfFalse> = T extends false ? IfFalse
|
|
1777
1386
|
: T extends true ? IfTrue
|
|
1778
1387
|
: IfFalse;
|
|
1779
|
-
|
|
1780
1388
|
type ExtractOptionValue<T extends ParseArgsConfig, O extends ParseArgsOptionDescriptor> = IfDefaultsTrue<
|
|
1781
1389
|
T["strict"],
|
|
1782
1390
|
O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean,
|
|
1783
1391
|
string | boolean
|
|
1784
1392
|
>;
|
|
1785
|
-
|
|
1786
1393
|
type ApplyOptionalModifiers<O extends ParseArgsOptionsConfig, V extends Record<keyof O, unknown>> = (
|
|
1787
1394
|
& { -readonly [LongOption in keyof O]?: V[LongOption] }
|
|
1788
1395
|
& { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] }
|
|
1789
1396
|
) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object
|
|
1790
|
-
|
|
1791
1397
|
type ParsedValues<T extends ParseArgsConfig> =
|
|
1792
1398
|
& IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
|
|
1793
1399
|
& (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers<
|
|
@@ -1801,13 +1407,11 @@ declare module "util" {
|
|
|
1801
1407
|
}
|
|
1802
1408
|
>
|
|
1803
1409
|
: {});
|
|
1804
|
-
|
|
1805
1410
|
type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<
|
|
1806
1411
|
T["strict"],
|
|
1807
1412
|
IfDefaultsFalse<T["allowPositionals"], string[], []>,
|
|
1808
1413
|
IfDefaultsTrue<T["allowPositionals"], string[], []>
|
|
1809
1414
|
>;
|
|
1810
|
-
|
|
1811
1415
|
type PreciseTokenForOptions<
|
|
1812
1416
|
K extends string,
|
|
1813
1417
|
O extends ParseArgsOptionDescriptor,
|
|
@@ -1828,7 +1432,6 @@ declare module "util" {
|
|
|
1828
1432
|
inlineValue: undefined;
|
|
1829
1433
|
}
|
|
1830
1434
|
: OptionToken & { name: K };
|
|
1831
|
-
|
|
1832
1435
|
type TokenForOptions<
|
|
1833
1436
|
T extends ParseArgsConfig,
|
|
1834
1437
|
K extends keyof T["options"] = keyof T["options"],
|
|
@@ -1836,19 +1439,15 @@ declare module "util" {
|
|
|
1836
1439
|
? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions<K & string, T["options"][K]>
|
|
1837
1440
|
: OptionToken
|
|
1838
1441
|
: never;
|
|
1839
|
-
|
|
1840
1442
|
type ParsedOptionToken<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], TokenForOptions<T>, OptionToken>;
|
|
1841
|
-
|
|
1842
1443
|
type ParsedPositionalToken<T extends ParseArgsConfig> = IfDefaultsTrue<
|
|
1843
1444
|
T["strict"],
|
|
1844
1445
|
IfDefaultsFalse<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>,
|
|
1845
1446
|
IfDefaultsTrue<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>
|
|
1846
1447
|
>;
|
|
1847
|
-
|
|
1848
1448
|
type ParsedTokens<T extends ParseArgsConfig> = Array<
|
|
1849
1449
|
ParsedOptionToken<T> | ParsedPositionalToken<T> | { kind: "option-terminator"; index: number }
|
|
1850
1450
|
>;
|
|
1851
|
-
|
|
1852
1451
|
type PreciseParsedResults<T extends ParseArgsConfig> = IfDefaultsFalse<
|
|
1853
1452
|
T["tokens"],
|
|
1854
1453
|
{
|
|
@@ -1861,7 +1460,6 @@ declare module "util" {
|
|
|
1861
1460
|
positionals: ParsedPositionals<T>;
|
|
1862
1461
|
}
|
|
1863
1462
|
>;
|
|
1864
|
-
|
|
1865
1463
|
type OptionToken =
|
|
1866
1464
|
| { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean }
|
|
1867
1465
|
| {
|
|
@@ -1872,12 +1470,10 @@ declare module "util" {
|
|
|
1872
1470
|
value: undefined;
|
|
1873
1471
|
inlineValue: undefined;
|
|
1874
1472
|
};
|
|
1875
|
-
|
|
1876
1473
|
type Token =
|
|
1877
1474
|
| OptionToken
|
|
1878
1475
|
| { kind: "positional"; index: number; value: string }
|
|
1879
1476
|
| { kind: "option-terminator"; index: number };
|
|
1880
|
-
|
|
1881
1477
|
// If ParseArgsConfig extends T, then the user passed config constructed elsewhere.
|
|
1882
1478
|
// So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above.
|
|
1883
1479
|
type ParsedResults<T extends ParseArgsConfig> = ParseArgsConfig extends T ? {
|
|
@@ -1888,7 +1484,6 @@ declare module "util" {
|
|
|
1888
1484
|
tokens?: Token[];
|
|
1889
1485
|
}
|
|
1890
1486
|
: PreciseParsedResults<T>;
|
|
1891
|
-
|
|
1892
1487
|
/**
|
|
1893
1488
|
* An implementation of [the MIMEType class](https://bmeck.github.io/node-proposal-mime-api/).
|
|
1894
1489
|
*
|
|
@@ -1910,7 +1505,6 @@ declare module "util" {
|
|
|
1910
1505
|
* @param input The input MIME to parse.
|
|
1911
1506
|
*/
|
|
1912
1507
|
constructor(input: string | { toString: () => string });
|
|
1913
|
-
|
|
1914
1508
|
/**
|
|
1915
1509
|
* Gets and sets the type portion of the MIME.
|
|
1916
1510
|
*
|
|
@@ -2041,566 +1635,43 @@ declare module "util" {
|
|
|
2041
1635
|
*/
|
|
2042
1636
|
[Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>;
|
|
2043
1637
|
}
|
|
1638
|
+
// #region web types
|
|
1639
|
+
export interface TextDecodeOptions {
|
|
1640
|
+
stream?: boolean;
|
|
1641
|
+
}
|
|
1642
|
+
export interface TextDecoderCommon {
|
|
1643
|
+
readonly encoding: string;
|
|
1644
|
+
readonly fatal: boolean;
|
|
1645
|
+
readonly ignoreBOM: boolean;
|
|
1646
|
+
}
|
|
1647
|
+
export interface TextDecoderOptions {
|
|
1648
|
+
fatal?: boolean;
|
|
1649
|
+
ignoreBOM?: boolean;
|
|
1650
|
+
}
|
|
1651
|
+
export interface TextEncoderCommon {
|
|
1652
|
+
readonly encoding: string;
|
|
1653
|
+
}
|
|
1654
|
+
export interface TextEncoderEncodeIntoResult {
|
|
1655
|
+
read: number;
|
|
1656
|
+
written: number;
|
|
1657
|
+
}
|
|
1658
|
+
export interface TextDecoder extends TextDecoderCommon {
|
|
1659
|
+
decode(input?: NodeJS.AllowSharedBufferSource, options?: TextDecodeOptions): string;
|
|
1660
|
+
}
|
|
1661
|
+
export var TextDecoder: {
|
|
1662
|
+
prototype: TextDecoder;
|
|
1663
|
+
new(label?: string, options?: TextDecoderOptions): TextDecoder;
|
|
1664
|
+
};
|
|
1665
|
+
export interface TextEncoder extends TextEncoderCommon {
|
|
1666
|
+
encode(input?: string): NodeJS.NonSharedUint8Array;
|
|
1667
|
+
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
1668
|
+
}
|
|
1669
|
+
export var TextEncoder: {
|
|
1670
|
+
prototype: TextEncoder;
|
|
1671
|
+
new(): TextEncoder;
|
|
1672
|
+
};
|
|
1673
|
+
// #endregion
|
|
2044
1674
|
}
|
|
2045
|
-
declare module "util
|
|
2046
|
-
|
|
2047
|
-
/**
|
|
2048
|
-
* Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or
|
|
2049
|
-
* [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
|
|
2050
|
-
*
|
|
2051
|
-
* See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`.
|
|
2052
|
-
*
|
|
2053
|
-
* ```js
|
|
2054
|
-
* util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true
|
|
2055
|
-
* util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true
|
|
2056
|
-
* ```
|
|
2057
|
-
* @since v10.0.0
|
|
2058
|
-
*/
|
|
2059
|
-
function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike;
|
|
2060
|
-
/**
|
|
2061
|
-
* Returns `true` if the value is an `arguments` object.
|
|
2062
|
-
*
|
|
2063
|
-
* ```js
|
|
2064
|
-
* function foo() {
|
|
2065
|
-
* util.types.isArgumentsObject(arguments); // Returns true
|
|
2066
|
-
* }
|
|
2067
|
-
* ```
|
|
2068
|
-
* @since v10.0.0
|
|
2069
|
-
*/
|
|
2070
|
-
function isArgumentsObject(object: unknown): object is IArguments;
|
|
2071
|
-
/**
|
|
2072
|
-
* Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance.
|
|
2073
|
-
* This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is
|
|
2074
|
-
* desirable to test for both; See `util.types.isAnyArrayBuffer()` for that.
|
|
2075
|
-
*
|
|
2076
|
-
* ```js
|
|
2077
|
-
* util.types.isArrayBuffer(new ArrayBuffer()); // Returns true
|
|
2078
|
-
* util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false
|
|
2079
|
-
* ```
|
|
2080
|
-
* @since v10.0.0
|
|
2081
|
-
*/
|
|
2082
|
-
function isArrayBuffer(object: unknown): object is ArrayBuffer;
|
|
2083
|
-
/**
|
|
2084
|
-
* Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed
|
|
2085
|
-
* array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to
|
|
2086
|
-
* [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
|
|
2087
|
-
*
|
|
2088
|
-
* ```js
|
|
2089
|
-
* util.types.isArrayBufferView(new Int8Array()); // true
|
|
2090
|
-
* util.types.isArrayBufferView(Buffer.from('hello world')); // true
|
|
2091
|
-
* util.types.isArrayBufferView(new DataView(new ArrayBuffer(16))); // true
|
|
2092
|
-
* util.types.isArrayBufferView(new ArrayBuffer()); // false
|
|
2093
|
-
* ```
|
|
2094
|
-
* @since v10.0.0
|
|
2095
|
-
*/
|
|
2096
|
-
function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView;
|
|
2097
|
-
/**
|
|
2098
|
-
* Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function).
|
|
2099
|
-
* This only reports back what the JavaScript engine is seeing;
|
|
2100
|
-
* in particular, the return value may not match the original source code if
|
|
2101
|
-
* a transpilation tool was used.
|
|
2102
|
-
*
|
|
2103
|
-
* ```js
|
|
2104
|
-
* util.types.isAsyncFunction(function foo() {}); // Returns false
|
|
2105
|
-
* util.types.isAsyncFunction(async function foo() {}); // Returns true
|
|
2106
|
-
* ```
|
|
2107
|
-
* @since v10.0.0
|
|
2108
|
-
*/
|
|
2109
|
-
function isAsyncFunction(object: unknown): boolean;
|
|
2110
|
-
/**
|
|
2111
|
-
* Returns `true` if the value is a `BigInt64Array` instance.
|
|
2112
|
-
*
|
|
2113
|
-
* ```js
|
|
2114
|
-
* util.types.isBigInt64Array(new BigInt64Array()); // Returns true
|
|
2115
|
-
* util.types.isBigInt64Array(new BigUint64Array()); // Returns false
|
|
2116
|
-
* ```
|
|
2117
|
-
* @since v10.0.0
|
|
2118
|
-
*/
|
|
2119
|
-
function isBigInt64Array(value: unknown): value is BigInt64Array;
|
|
2120
|
-
/**
|
|
2121
|
-
* Returns `true` if the value is a BigInt object, e.g. created
|
|
2122
|
-
* by `Object(BigInt(123))`.
|
|
2123
|
-
*
|
|
2124
|
-
* ```js
|
|
2125
|
-
* util.types.isBigIntObject(Object(BigInt(123))); // Returns true
|
|
2126
|
-
* util.types.isBigIntObject(BigInt(123)); // Returns false
|
|
2127
|
-
* util.types.isBigIntObject(123); // Returns false
|
|
2128
|
-
* ```
|
|
2129
|
-
* @since v10.4.0
|
|
2130
|
-
*/
|
|
2131
|
-
function isBigIntObject(object: unknown): object is BigInt;
|
|
2132
|
-
/**
|
|
2133
|
-
* Returns `true` if the value is a `BigUint64Array` instance.
|
|
2134
|
-
*
|
|
2135
|
-
* ```js
|
|
2136
|
-
* util.types.isBigUint64Array(new BigInt64Array()); // Returns false
|
|
2137
|
-
* util.types.isBigUint64Array(new BigUint64Array()); // Returns true
|
|
2138
|
-
* ```
|
|
2139
|
-
* @since v10.0.0
|
|
2140
|
-
*/
|
|
2141
|
-
function isBigUint64Array(value: unknown): value is BigUint64Array;
|
|
2142
|
-
/**
|
|
2143
|
-
* Returns `true` if the value is a boolean object, e.g. created
|
|
2144
|
-
* by `new Boolean()`.
|
|
2145
|
-
*
|
|
2146
|
-
* ```js
|
|
2147
|
-
* util.types.isBooleanObject(false); // Returns false
|
|
2148
|
-
* util.types.isBooleanObject(true); // Returns false
|
|
2149
|
-
* util.types.isBooleanObject(new Boolean(false)); // Returns true
|
|
2150
|
-
* util.types.isBooleanObject(new Boolean(true)); // Returns true
|
|
2151
|
-
* util.types.isBooleanObject(Boolean(false)); // Returns false
|
|
2152
|
-
* util.types.isBooleanObject(Boolean(true)); // Returns false
|
|
2153
|
-
* ```
|
|
2154
|
-
* @since v10.0.0
|
|
2155
|
-
*/
|
|
2156
|
-
function isBooleanObject(object: unknown): object is Boolean;
|
|
2157
|
-
/**
|
|
2158
|
-
* Returns `true` if the value is any boxed primitive object, e.g. created
|
|
2159
|
-
* by `new Boolean()`, `new String()` or `Object(Symbol())`.
|
|
2160
|
-
*
|
|
2161
|
-
* For example:
|
|
2162
|
-
*
|
|
2163
|
-
* ```js
|
|
2164
|
-
* util.types.isBoxedPrimitive(false); // Returns false
|
|
2165
|
-
* util.types.isBoxedPrimitive(new Boolean(false)); // Returns true
|
|
2166
|
-
* util.types.isBoxedPrimitive(Symbol('foo')); // Returns false
|
|
2167
|
-
* util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true
|
|
2168
|
-
* util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true
|
|
2169
|
-
* ```
|
|
2170
|
-
* @since v10.11.0
|
|
2171
|
-
*/
|
|
2172
|
-
function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol;
|
|
2173
|
-
/**
|
|
2174
|
-
* Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance.
|
|
2175
|
-
*
|
|
2176
|
-
* ```js
|
|
2177
|
-
* const ab = new ArrayBuffer(20);
|
|
2178
|
-
* util.types.isDataView(new DataView(ab)); // Returns true
|
|
2179
|
-
* util.types.isDataView(new Float64Array()); // Returns false
|
|
2180
|
-
* ```
|
|
2181
|
-
*
|
|
2182
|
-
* See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
|
|
2183
|
-
* @since v10.0.0
|
|
2184
|
-
*/
|
|
2185
|
-
function isDataView(object: unknown): object is DataView;
|
|
2186
|
-
/**
|
|
2187
|
-
* Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
|
|
2188
|
-
*
|
|
2189
|
-
* ```js
|
|
2190
|
-
* util.types.isDate(new Date()); // Returns true
|
|
2191
|
-
* ```
|
|
2192
|
-
* @since v10.0.0
|
|
2193
|
-
*/
|
|
2194
|
-
function isDate(object: unknown): object is Date;
|
|
2195
|
-
/**
|
|
2196
|
-
* Returns `true` if the value is a native `External` value.
|
|
2197
|
-
*
|
|
2198
|
-
* A native `External` value is a special type of object that contains a
|
|
2199
|
-
* raw C++ pointer (`void*`) for access from native code, and has no other
|
|
2200
|
-
* properties. Such objects are created either by Node.js internals or native
|
|
2201
|
-
* addons. In JavaScript, they are
|
|
2202
|
-
* [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a
|
|
2203
|
-
* `null` prototype.
|
|
2204
|
-
*
|
|
2205
|
-
* ```c
|
|
2206
|
-
* #include <js_native_api.h>
|
|
2207
|
-
* #include <stdlib.h>
|
|
2208
|
-
* napi_value result;
|
|
2209
|
-
* static napi_value MyNapi(napi_env env, napi_callback_info info) {
|
|
2210
|
-
* int* raw = (int*) malloc(1024);
|
|
2211
|
-
* napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result);
|
|
2212
|
-
* if (status != napi_ok) {
|
|
2213
|
-
* napi_throw_error(env, NULL, "napi_create_external failed");
|
|
2214
|
-
* return NULL;
|
|
2215
|
-
* }
|
|
2216
|
-
* return result;
|
|
2217
|
-
* }
|
|
2218
|
-
* ...
|
|
2219
|
-
* DECLARE_NAPI_PROPERTY("myNapi", MyNapi)
|
|
2220
|
-
* ...
|
|
2221
|
-
* ```
|
|
2222
|
-
*
|
|
2223
|
-
* ```js
|
|
2224
|
-
* import native from 'napi_addon.node';
|
|
2225
|
-
* import { types } from 'node:util';
|
|
2226
|
-
*
|
|
2227
|
-
* const data = native.myNapi();
|
|
2228
|
-
* types.isExternal(data); // returns true
|
|
2229
|
-
* types.isExternal(0); // returns false
|
|
2230
|
-
* types.isExternal(new String('foo')); // returns false
|
|
2231
|
-
* ```
|
|
2232
|
-
*
|
|
2233
|
-
* For further information on `napi_create_external`, refer to
|
|
2234
|
-
* [`napi_create_external()`](https://nodejs.org/docs/latest-v22.x/api/n-api.html#napi_create_external).
|
|
2235
|
-
* @since v10.0.0
|
|
2236
|
-
*/
|
|
2237
|
-
function isExternal(object: unknown): boolean;
|
|
2238
|
-
/**
|
|
2239
|
-
* Returns `true` if the value is a built-in `Float16Array` instance.
|
|
2240
|
-
*
|
|
2241
|
-
* ```js
|
|
2242
|
-
* util.types.isFloat16Array(new ArrayBuffer()); // Returns false
|
|
2243
|
-
* util.types.isFloat16Array(new Float16Array()); // Returns true
|
|
2244
|
-
* util.types.isFloat16Array(new Float32Array()); // Returns false
|
|
2245
|
-
* ```
|
|
2246
|
-
* @since v22.16.0
|
|
2247
|
-
*/
|
|
2248
|
-
// This does NOT return a type predicate in v22.x.
|
|
2249
|
-
// The Float16Array feature does not yet exist in this version of Node.js.
|
|
2250
|
-
function isFloat16Array(object: unknown): boolean;
|
|
2251
|
-
/**
|
|
2252
|
-
* Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance.
|
|
2253
|
-
*
|
|
2254
|
-
* ```js
|
|
2255
|
-
* util.types.isFloat32Array(new ArrayBuffer()); // Returns false
|
|
2256
|
-
* util.types.isFloat32Array(new Float32Array()); // Returns true
|
|
2257
|
-
* util.types.isFloat32Array(new Float64Array()); // Returns false
|
|
2258
|
-
* ```
|
|
2259
|
-
* @since v10.0.0
|
|
2260
|
-
*/
|
|
2261
|
-
function isFloat32Array(object: unknown): object is Float32Array;
|
|
2262
|
-
/**
|
|
2263
|
-
* Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance.
|
|
2264
|
-
*
|
|
2265
|
-
* ```js
|
|
2266
|
-
* util.types.isFloat64Array(new ArrayBuffer()); // Returns false
|
|
2267
|
-
* util.types.isFloat64Array(new Uint8Array()); // Returns false
|
|
2268
|
-
* util.types.isFloat64Array(new Float64Array()); // Returns true
|
|
2269
|
-
* ```
|
|
2270
|
-
* @since v10.0.0
|
|
2271
|
-
*/
|
|
2272
|
-
function isFloat64Array(object: unknown): object is Float64Array;
|
|
2273
|
-
/**
|
|
2274
|
-
* Returns `true` if the value is a generator function.
|
|
2275
|
-
* This only reports back what the JavaScript engine is seeing;
|
|
2276
|
-
* in particular, the return value may not match the original source code if
|
|
2277
|
-
* a transpilation tool was used.
|
|
2278
|
-
*
|
|
2279
|
-
* ```js
|
|
2280
|
-
* util.types.isGeneratorFunction(function foo() {}); // Returns false
|
|
2281
|
-
* util.types.isGeneratorFunction(function* foo() {}); // Returns true
|
|
2282
|
-
* ```
|
|
2283
|
-
* @since v10.0.0
|
|
2284
|
-
*/
|
|
2285
|
-
function isGeneratorFunction(object: unknown): object is GeneratorFunction;
|
|
2286
|
-
/**
|
|
2287
|
-
* Returns `true` if the value is a generator object as returned from a
|
|
2288
|
-
* built-in generator function.
|
|
2289
|
-
* This only reports back what the JavaScript engine is seeing;
|
|
2290
|
-
* in particular, the return value may not match the original source code if
|
|
2291
|
-
* a transpilation tool was used.
|
|
2292
|
-
*
|
|
2293
|
-
* ```js
|
|
2294
|
-
* function* foo() {}
|
|
2295
|
-
* const generator = foo();
|
|
2296
|
-
* util.types.isGeneratorObject(generator); // Returns true
|
|
2297
|
-
* ```
|
|
2298
|
-
* @since v10.0.0
|
|
2299
|
-
*/
|
|
2300
|
-
function isGeneratorObject(object: unknown): object is Generator;
|
|
2301
|
-
/**
|
|
2302
|
-
* Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance.
|
|
2303
|
-
*
|
|
2304
|
-
* ```js
|
|
2305
|
-
* util.types.isInt8Array(new ArrayBuffer()); // Returns false
|
|
2306
|
-
* util.types.isInt8Array(new Int8Array()); // Returns true
|
|
2307
|
-
* util.types.isInt8Array(new Float64Array()); // Returns false
|
|
2308
|
-
* ```
|
|
2309
|
-
* @since v10.0.0
|
|
2310
|
-
*/
|
|
2311
|
-
function isInt8Array(object: unknown): object is Int8Array;
|
|
2312
|
-
/**
|
|
2313
|
-
* Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance.
|
|
2314
|
-
*
|
|
2315
|
-
* ```js
|
|
2316
|
-
* util.types.isInt16Array(new ArrayBuffer()); // Returns false
|
|
2317
|
-
* util.types.isInt16Array(new Int16Array()); // Returns true
|
|
2318
|
-
* util.types.isInt16Array(new Float64Array()); // Returns false
|
|
2319
|
-
* ```
|
|
2320
|
-
* @since v10.0.0
|
|
2321
|
-
*/
|
|
2322
|
-
function isInt16Array(object: unknown): object is Int16Array;
|
|
2323
|
-
/**
|
|
2324
|
-
* Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance.
|
|
2325
|
-
*
|
|
2326
|
-
* ```js
|
|
2327
|
-
* util.types.isInt32Array(new ArrayBuffer()); // Returns false
|
|
2328
|
-
* util.types.isInt32Array(new Int32Array()); // Returns true
|
|
2329
|
-
* util.types.isInt32Array(new Float64Array()); // Returns false
|
|
2330
|
-
* ```
|
|
2331
|
-
* @since v10.0.0
|
|
2332
|
-
*/
|
|
2333
|
-
function isInt32Array(object: unknown): object is Int32Array;
|
|
2334
|
-
/**
|
|
2335
|
-
* Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
|
|
2336
|
-
*
|
|
2337
|
-
* ```js
|
|
2338
|
-
* util.types.isMap(new Map()); // Returns true
|
|
2339
|
-
* ```
|
|
2340
|
-
* @since v10.0.0
|
|
2341
|
-
*/
|
|
2342
|
-
function isMap<T>(
|
|
2343
|
-
object: T | {},
|
|
2344
|
-
): object is T extends ReadonlyMap<any, any> ? (unknown extends T ? never : ReadonlyMap<any, any>)
|
|
2345
|
-
: Map<unknown, unknown>;
|
|
2346
|
-
/**
|
|
2347
|
-
* Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
|
|
2348
|
-
*
|
|
2349
|
-
* ```js
|
|
2350
|
-
* const map = new Map();
|
|
2351
|
-
* util.types.isMapIterator(map.keys()); // Returns true
|
|
2352
|
-
* util.types.isMapIterator(map.values()); // Returns true
|
|
2353
|
-
* util.types.isMapIterator(map.entries()); // Returns true
|
|
2354
|
-
* util.types.isMapIterator(map[Symbol.iterator]()); // Returns true
|
|
2355
|
-
* ```
|
|
2356
|
-
* @since v10.0.0
|
|
2357
|
-
*/
|
|
2358
|
-
function isMapIterator(object: unknown): boolean;
|
|
2359
|
-
/**
|
|
2360
|
-
* Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects).
|
|
2361
|
-
*
|
|
2362
|
-
* ```js
|
|
2363
|
-
* import * as ns from './a.js';
|
|
2364
|
-
*
|
|
2365
|
-
* util.types.isModuleNamespaceObject(ns); // Returns true
|
|
2366
|
-
* ```
|
|
2367
|
-
* @since v10.0.0
|
|
2368
|
-
*/
|
|
2369
|
-
function isModuleNamespaceObject(value: unknown): boolean;
|
|
2370
|
-
/**
|
|
2371
|
-
* Returns `true` if the value was returned by the constructor of a
|
|
2372
|
-
* [built-in `Error` type](https://tc39.es/ecma262/#sec-error-objects).
|
|
2373
|
-
*
|
|
2374
|
-
* ```js
|
|
2375
|
-
* console.log(util.types.isNativeError(new Error())); // true
|
|
2376
|
-
* console.log(util.types.isNativeError(new TypeError())); // true
|
|
2377
|
-
* console.log(util.types.isNativeError(new RangeError())); // true
|
|
2378
|
-
* ```
|
|
2379
|
-
*
|
|
2380
|
-
* Subclasses of the native error types are also native errors:
|
|
2381
|
-
*
|
|
2382
|
-
* ```js
|
|
2383
|
-
* class MyError extends Error {}
|
|
2384
|
-
* console.log(util.types.isNativeError(new MyError())); // true
|
|
2385
|
-
* ```
|
|
2386
|
-
*
|
|
2387
|
-
* A value being `instanceof` a native error class is not equivalent to `isNativeError()`
|
|
2388
|
-
* returning `true` for that value. `isNativeError()` returns `true` for errors
|
|
2389
|
-
* which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false`
|
|
2390
|
-
* for these errors:
|
|
2391
|
-
*
|
|
2392
|
-
* ```js
|
|
2393
|
-
* import { createContext, runInContext } from 'node:vm';
|
|
2394
|
-
* import { types } from 'node:util';
|
|
2395
|
-
*
|
|
2396
|
-
* const context = createContext({});
|
|
2397
|
-
* const myError = runInContext('new Error()', context);
|
|
2398
|
-
* console.log(types.isNativeError(myError)); // true
|
|
2399
|
-
* console.log(myError instanceof Error); // false
|
|
2400
|
-
* ```
|
|
2401
|
-
*
|
|
2402
|
-
* Conversely, `isNativeError()` returns `false` for all objects which were not
|
|
2403
|
-
* returned by the constructor of a native error. That includes values
|
|
2404
|
-
* which are `instanceof` native errors:
|
|
2405
|
-
*
|
|
2406
|
-
* ```js
|
|
2407
|
-
* const myError = { __proto__: Error.prototype };
|
|
2408
|
-
* console.log(util.types.isNativeError(myError)); // false
|
|
2409
|
-
* console.log(myError instanceof Error); // true
|
|
2410
|
-
* ```
|
|
2411
|
-
* @since v10.0.0
|
|
2412
|
-
*/
|
|
2413
|
-
function isNativeError(object: unknown): object is Error;
|
|
2414
|
-
/**
|
|
2415
|
-
* Returns `true` if the value is a number object, e.g. created
|
|
2416
|
-
* by `new Number()`.
|
|
2417
|
-
*
|
|
2418
|
-
* ```js
|
|
2419
|
-
* util.types.isNumberObject(0); // Returns false
|
|
2420
|
-
* util.types.isNumberObject(new Number(0)); // Returns true
|
|
2421
|
-
* ```
|
|
2422
|
-
* @since v10.0.0
|
|
2423
|
-
*/
|
|
2424
|
-
function isNumberObject(object: unknown): object is Number;
|
|
2425
|
-
/**
|
|
2426
|
-
* Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
|
|
2427
|
-
*
|
|
2428
|
-
* ```js
|
|
2429
|
-
* util.types.isPromise(Promise.resolve(42)); // Returns true
|
|
2430
|
-
* ```
|
|
2431
|
-
* @since v10.0.0
|
|
2432
|
-
*/
|
|
2433
|
-
function isPromise(object: unknown): object is Promise<unknown>;
|
|
2434
|
-
/**
|
|
2435
|
-
* Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance.
|
|
2436
|
-
*
|
|
2437
|
-
* ```js
|
|
2438
|
-
* const target = {};
|
|
2439
|
-
* const proxy = new Proxy(target, {});
|
|
2440
|
-
* util.types.isProxy(target); // Returns false
|
|
2441
|
-
* util.types.isProxy(proxy); // Returns true
|
|
2442
|
-
* ```
|
|
2443
|
-
* @since v10.0.0
|
|
2444
|
-
*/
|
|
2445
|
-
function isProxy(object: unknown): boolean;
|
|
2446
|
-
/**
|
|
2447
|
-
* Returns `true` if the value is a regular expression object.
|
|
2448
|
-
*
|
|
2449
|
-
* ```js
|
|
2450
|
-
* util.types.isRegExp(/abc/); // Returns true
|
|
2451
|
-
* util.types.isRegExp(new RegExp('abc')); // Returns true
|
|
2452
|
-
* ```
|
|
2453
|
-
* @since v10.0.0
|
|
2454
|
-
*/
|
|
2455
|
-
function isRegExp(object: unknown): object is RegExp;
|
|
2456
|
-
/**
|
|
2457
|
-
* Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
|
|
2458
|
-
*
|
|
2459
|
-
* ```js
|
|
2460
|
-
* util.types.isSet(new Set()); // Returns true
|
|
2461
|
-
* ```
|
|
2462
|
-
* @since v10.0.0
|
|
2463
|
-
*/
|
|
2464
|
-
function isSet<T>(
|
|
2465
|
-
object: T | {},
|
|
2466
|
-
): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>;
|
|
2467
|
-
/**
|
|
2468
|
-
* Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
|
|
2469
|
-
*
|
|
2470
|
-
* ```js
|
|
2471
|
-
* const set = new Set();
|
|
2472
|
-
* util.types.isSetIterator(set.keys()); // Returns true
|
|
2473
|
-
* util.types.isSetIterator(set.values()); // Returns true
|
|
2474
|
-
* util.types.isSetIterator(set.entries()); // Returns true
|
|
2475
|
-
* util.types.isSetIterator(set[Symbol.iterator]()); // Returns true
|
|
2476
|
-
* ```
|
|
2477
|
-
* @since v10.0.0
|
|
2478
|
-
*/
|
|
2479
|
-
function isSetIterator(object: unknown): boolean;
|
|
2480
|
-
/**
|
|
2481
|
-
* Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
|
|
2482
|
-
* This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is
|
|
2483
|
-
* desirable to test for both; See `util.types.isAnyArrayBuffer()` for that.
|
|
2484
|
-
*
|
|
2485
|
-
* ```js
|
|
2486
|
-
* util.types.isSharedArrayBuffer(new ArrayBuffer()); // Returns false
|
|
2487
|
-
* util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true
|
|
2488
|
-
* ```
|
|
2489
|
-
* @since v10.0.0
|
|
2490
|
-
*/
|
|
2491
|
-
function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer;
|
|
2492
|
-
/**
|
|
2493
|
-
* Returns `true` if the value is a string object, e.g. created
|
|
2494
|
-
* by `new String()`.
|
|
2495
|
-
*
|
|
2496
|
-
* ```js
|
|
2497
|
-
* util.types.isStringObject('foo'); // Returns false
|
|
2498
|
-
* util.types.isStringObject(new String('foo')); // Returns true
|
|
2499
|
-
* ```
|
|
2500
|
-
* @since v10.0.0
|
|
2501
|
-
*/
|
|
2502
|
-
function isStringObject(object: unknown): object is String;
|
|
2503
|
-
/**
|
|
2504
|
-
* Returns `true` if the value is a symbol object, created
|
|
2505
|
-
* by calling `Object()` on a `Symbol` primitive.
|
|
2506
|
-
*
|
|
2507
|
-
* ```js
|
|
2508
|
-
* const symbol = Symbol('foo');
|
|
2509
|
-
* util.types.isSymbolObject(symbol); // Returns false
|
|
2510
|
-
* util.types.isSymbolObject(Object(symbol)); // Returns true
|
|
2511
|
-
* ```
|
|
2512
|
-
* @since v10.0.0
|
|
2513
|
-
*/
|
|
2514
|
-
function isSymbolObject(object: unknown): object is Symbol;
|
|
2515
|
-
/**
|
|
2516
|
-
* Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance.
|
|
2517
|
-
*
|
|
2518
|
-
* ```js
|
|
2519
|
-
* util.types.isTypedArray(new ArrayBuffer()); // Returns false
|
|
2520
|
-
* util.types.isTypedArray(new Uint8Array()); // Returns true
|
|
2521
|
-
* util.types.isTypedArray(new Float64Array()); // Returns true
|
|
2522
|
-
* ```
|
|
2523
|
-
*
|
|
2524
|
-
* See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
|
|
2525
|
-
* @since v10.0.0
|
|
2526
|
-
*/
|
|
2527
|
-
function isTypedArray(object: unknown): object is NodeJS.TypedArray;
|
|
2528
|
-
/**
|
|
2529
|
-
* Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance.
|
|
2530
|
-
*
|
|
2531
|
-
* ```js
|
|
2532
|
-
* util.types.isUint8Array(new ArrayBuffer()); // Returns false
|
|
2533
|
-
* util.types.isUint8Array(new Uint8Array()); // Returns true
|
|
2534
|
-
* util.types.isUint8Array(new Float64Array()); // Returns false
|
|
2535
|
-
* ```
|
|
2536
|
-
* @since v10.0.0
|
|
2537
|
-
*/
|
|
2538
|
-
function isUint8Array(object: unknown): object is Uint8Array;
|
|
2539
|
-
/**
|
|
2540
|
-
* Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance.
|
|
2541
|
-
*
|
|
2542
|
-
* ```js
|
|
2543
|
-
* util.types.isUint8ClampedArray(new ArrayBuffer()); // Returns false
|
|
2544
|
-
* util.types.isUint8ClampedArray(new Uint8ClampedArray()); // Returns true
|
|
2545
|
-
* util.types.isUint8ClampedArray(new Float64Array()); // Returns false
|
|
2546
|
-
* ```
|
|
2547
|
-
* @since v10.0.0
|
|
2548
|
-
*/
|
|
2549
|
-
function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray;
|
|
2550
|
-
/**
|
|
2551
|
-
* Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance.
|
|
2552
|
-
*
|
|
2553
|
-
* ```js
|
|
2554
|
-
* util.types.isUint16Array(new ArrayBuffer()); // Returns false
|
|
2555
|
-
* util.types.isUint16Array(new Uint16Array()); // Returns true
|
|
2556
|
-
* util.types.isUint16Array(new Float64Array()); // Returns false
|
|
2557
|
-
* ```
|
|
2558
|
-
* @since v10.0.0
|
|
2559
|
-
*/
|
|
2560
|
-
function isUint16Array(object: unknown): object is Uint16Array;
|
|
2561
|
-
/**
|
|
2562
|
-
* Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance.
|
|
2563
|
-
*
|
|
2564
|
-
* ```js
|
|
2565
|
-
* util.types.isUint32Array(new ArrayBuffer()); // Returns false
|
|
2566
|
-
* util.types.isUint32Array(new Uint32Array()); // Returns true
|
|
2567
|
-
* util.types.isUint32Array(new Float64Array()); // Returns false
|
|
2568
|
-
* ```
|
|
2569
|
-
* @since v10.0.0
|
|
2570
|
-
*/
|
|
2571
|
-
function isUint32Array(object: unknown): object is Uint32Array;
|
|
2572
|
-
/**
|
|
2573
|
-
* Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance.
|
|
2574
|
-
*
|
|
2575
|
-
* ```js
|
|
2576
|
-
* util.types.isWeakMap(new WeakMap()); // Returns true
|
|
2577
|
-
* ```
|
|
2578
|
-
* @since v10.0.0
|
|
2579
|
-
*/
|
|
2580
|
-
function isWeakMap(object: unknown): object is WeakMap<object, unknown>;
|
|
2581
|
-
/**
|
|
2582
|
-
* Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance.
|
|
2583
|
-
*
|
|
2584
|
-
* ```js
|
|
2585
|
-
* util.types.isWeakSet(new WeakSet()); // Returns true
|
|
2586
|
-
* ```
|
|
2587
|
-
* @since v10.0.0
|
|
2588
|
-
*/
|
|
2589
|
-
function isWeakSet(object: unknown): object is WeakSet<object>;
|
|
2590
|
-
/**
|
|
2591
|
-
* Returns `true` if `value` is a `KeyObject`, `false` otherwise.
|
|
2592
|
-
* @since v16.2.0
|
|
2593
|
-
*/
|
|
2594
|
-
function isKeyObject(object: unknown): object is KeyObject;
|
|
2595
|
-
/**
|
|
2596
|
-
* Returns `true` if `value` is a `CryptoKey`, `false` otherwise.
|
|
2597
|
-
* @since v16.2.0
|
|
2598
|
-
*/
|
|
2599
|
-
function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
|
|
2600
|
-
}
|
|
2601
|
-
declare module "node:util" {
|
|
2602
|
-
export * from "util";
|
|
2603
|
-
}
|
|
2604
|
-
declare module "node:util/types" {
|
|
2605
|
-
export * from "util/types";
|
|
1675
|
+
declare module "util" {
|
|
1676
|
+
export * from "node:util";
|
|
2606
1677
|
}
|