@code-yeongyu/senpi 2026.6.4 → 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 +39 -1
- package/README.md +19 -4
- package/dist/bun/cli.d.ts.map +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 +12 -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.map +1 -1
- package/dist/cli-main.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- 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 +4 -8
- 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/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.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 +1 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +25 -13
- 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/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.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +3 -9
- 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.map +1 -1
- package/dist/self-update-bootstrap.js.map +1 -1
- 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.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.map +1 -1
- package/dist/utils/open-browser.js.map +1 -1
- 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/extensions.md +1 -1
- package/docs/packages.md +3 -1
- package/docs/prompt-templates.md +1 -1
- 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/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/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- 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/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.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 +174 -29
- 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 +178 -54
- 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 +1 -1
- 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 +1 -1
- 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.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.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 +13 -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,86 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `node:test` module facilitates the creation of JavaScript tests.
|
|
3
|
-
* To access it:
|
|
4
|
-
*
|
|
5
|
-
* ```js
|
|
6
|
-
* import test from 'node:test';
|
|
7
|
-
* ```
|
|
8
|
-
*
|
|
9
|
-
* This module is only available under the `node:` scheme. The following will not
|
|
10
|
-
* work:
|
|
11
|
-
*
|
|
12
|
-
* ```js
|
|
13
|
-
* import test from 'node:test';
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* Tests created via the `test` module consist of a single function that is
|
|
17
|
-
* processed in one of three ways:
|
|
18
|
-
*
|
|
19
|
-
* 1. A synchronous function that is considered failing if it throws an exception,
|
|
20
|
-
* and is considered passing otherwise.
|
|
21
|
-
* 2. A function that returns a `Promise` that is considered failing if the `Promise` rejects, and is considered passing if the `Promise` fulfills.
|
|
22
|
-
* 3. A function that receives a callback function. If the callback receives any
|
|
23
|
-
* truthy value as its first argument, the test is considered failing. If a
|
|
24
|
-
* falsy value is passed as the first argument to the callback, the test is
|
|
25
|
-
* considered passing. If the test function receives a callback function and
|
|
26
|
-
* also returns a `Promise`, the test will fail.
|
|
27
|
-
*
|
|
28
|
-
* The following example illustrates how tests are written using the `test` module.
|
|
29
|
-
*
|
|
30
|
-
* ```js
|
|
31
|
-
* test('synchronous passing test', (t) => {
|
|
32
|
-
* // This test passes because it does not throw an exception.
|
|
33
|
-
* assert.strictEqual(1, 1);
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* test('synchronous failing test', (t) => {
|
|
37
|
-
* // This test fails because it throws an exception.
|
|
38
|
-
* assert.strictEqual(1, 2);
|
|
39
|
-
* });
|
|
40
|
-
*
|
|
41
|
-
* test('asynchronous passing test', async (t) => {
|
|
42
|
-
* // This test passes because the Promise returned by the async
|
|
43
|
-
* // function is settled and not rejected.
|
|
44
|
-
* assert.strictEqual(1, 1);
|
|
45
|
-
* });
|
|
46
|
-
*
|
|
47
|
-
* test('asynchronous failing test', async (t) => {
|
|
48
|
-
* // This test fails because the Promise returned by the async
|
|
49
|
-
* // function is rejected.
|
|
50
|
-
* assert.strictEqual(1, 2);
|
|
51
|
-
* });
|
|
52
|
-
*
|
|
53
|
-
* test('failing test using Promises', (t) => {
|
|
54
|
-
* // Promises can be used directly as well.
|
|
55
|
-
* return new Promise((resolve, reject) => {
|
|
56
|
-
* setImmediate(() => {
|
|
57
|
-
* reject(new Error('this will cause the test to fail'));
|
|
58
|
-
* });
|
|
59
|
-
* });
|
|
60
|
-
* });
|
|
61
|
-
*
|
|
62
|
-
* test('callback passing test', (t, done) => {
|
|
63
|
-
* // done() is the callback function. When the setImmediate() runs, it invokes
|
|
64
|
-
* // done() with no arguments.
|
|
65
|
-
* setImmediate(done);
|
|
66
|
-
* });
|
|
67
|
-
*
|
|
68
|
-
* test('callback failing test', (t, done) => {
|
|
69
|
-
* // When the setImmediate() runs, done() is invoked with an Error object and
|
|
70
|
-
* // the test fails.
|
|
71
|
-
* setImmediate(() => {
|
|
72
|
-
* done(new Error('callback failure'));
|
|
73
|
-
* });
|
|
74
|
-
* });
|
|
75
|
-
* ```
|
|
76
|
-
*
|
|
77
|
-
* If any tests fail, the process exit code is set to `1`.
|
|
78
|
-
* @since v18.0.0, v16.17.0
|
|
79
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/test.js)
|
|
80
|
-
*/
|
|
81
1
|
declare module "node:test" {
|
|
82
|
-
import { AssertMethodNames } from "node:assert";
|
|
83
|
-
import { Readable } from "node:stream";
|
|
2
|
+
import { AssertMethodNames, AssertPredicate } from "node:assert";
|
|
3
|
+
import { Readable, ReadableEventMap } from "node:stream";
|
|
4
|
+
import { TestEvent } from "node:test/reporters";
|
|
84
5
|
import { URL } from "node:url";
|
|
85
6
|
import TestFn = test.TestFn;
|
|
86
7
|
import TestOptions = test.TestOptions;
|
|
@@ -190,6 +111,16 @@ declare module "node:test" {
|
|
|
190
111
|
function only(name?: string, fn?: SuiteFn): Promise<void>;
|
|
191
112
|
function only(options?: TestOptions, fn?: SuiteFn): Promise<void>;
|
|
192
113
|
function only(fn?: SuiteFn): Promise<void>;
|
|
114
|
+
/**
|
|
115
|
+
* This flips the pass/fail reporting for a specific test or suite: a flagged test
|
|
116
|
+
* case must throw in order to pass, and a flagged test case that does not throw
|
|
117
|
+
* fails.
|
|
118
|
+
* @since v25.5.0
|
|
119
|
+
*/
|
|
120
|
+
function expectFailure(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
|
|
121
|
+
function expectFailure(name?: string, fn?: SuiteFn): Promise<void>;
|
|
122
|
+
function expectFailure(options?: TestOptions, fn?: SuiteFn): Promise<void>;
|
|
123
|
+
function expectFailure(fn?: SuiteFn): Promise<void>;
|
|
193
124
|
}
|
|
194
125
|
/**
|
|
195
126
|
* Shorthand for skipping a test. This is the same as calling {@link test} with `options.skip` set to `true`.
|
|
@@ -215,6 +146,11 @@ declare module "node:test" {
|
|
|
215
146
|
function only(name?: string, fn?: TestFn): Promise<void>;
|
|
216
147
|
function only(options?: TestOptions, fn?: TestFn): Promise<void>;
|
|
217
148
|
function only(fn?: TestFn): Promise<void>;
|
|
149
|
+
// added in v25.5.0, undocumented
|
|
150
|
+
function expectFailure(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
|
|
151
|
+
function expectFailure(name?: string, fn?: TestFn): Promise<void>;
|
|
152
|
+
function expectFailure(options?: TestOptions, fn?: TestFn): Promise<void>;
|
|
153
|
+
function expectFailure(fn?: TestFn): Promise<void>;
|
|
218
154
|
/**
|
|
219
155
|
* The type of a function passed to {@link test}. The first argument to this function is a {@link TestContext} object.
|
|
220
156
|
* If the test uses callbacks, the callback function is passed as the second argument.
|
|
@@ -236,14 +172,22 @@ declare module "node:test" {
|
|
|
236
172
|
}
|
|
237
173
|
interface RunOptions {
|
|
238
174
|
/**
|
|
239
|
-
* If a number is provided, then that many
|
|
175
|
+
* If a number is provided, then that many tests would run asynchronously (they are still managed by the single-threaded event loop).
|
|
240
176
|
* If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time.
|
|
241
177
|
* @default false
|
|
242
178
|
*/
|
|
243
179
|
concurrency?: number | boolean | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* Specifies the current working directory to be used by the test runner.
|
|
182
|
+
* Serves as the base path for resolving files according to the
|
|
183
|
+
* [test runner execution model](https://nodejs.org/docs/latest-v25.x/api/test.html#test-runner-execution-model).
|
|
184
|
+
* @since v23.0.0
|
|
185
|
+
* @default process.cwd()
|
|
186
|
+
*/
|
|
187
|
+
cwd?: string | undefined;
|
|
244
188
|
/**
|
|
245
189
|
* An array containing the list of files to run. If omitted, files are run according to the
|
|
246
|
-
* [test runner execution model](https://nodejs.org/docs/latest-
|
|
190
|
+
* [test runner execution model](https://nodejs.org/docs/latest-v25.x/api/test.html#test-runner-execution-model).
|
|
247
191
|
*/
|
|
248
192
|
files?: readonly string[] | undefined;
|
|
249
193
|
/**
|
|
@@ -256,7 +200,7 @@ declare module "node:test" {
|
|
|
256
200
|
/**
|
|
257
201
|
* An array containing the list of glob patterns to match test files.
|
|
258
202
|
* This option cannot be used together with `files`. If omitted, files are run according to the
|
|
259
|
-
* [test runner execution model](https://nodejs.org/docs/latest-
|
|
203
|
+
* [test runner execution model](https://nodejs.org/docs/latest-v25.x/api/test.html#test-runner-execution-model).
|
|
260
204
|
* @since v22.6.0
|
|
261
205
|
*/
|
|
262
206
|
globPatterns?: readonly string[] | undefined;
|
|
@@ -337,7 +281,14 @@ declare module "node:test" {
|
|
|
337
281
|
*/
|
|
338
282
|
shard?: TestShard | undefined;
|
|
339
283
|
/**
|
|
340
|
-
*
|
|
284
|
+
* A file path where the test runner will
|
|
285
|
+
* store the state of the tests to allow rerunning only the failed tests on a next run.
|
|
286
|
+
* @since v24.7.0
|
|
287
|
+
* @default undefined
|
|
288
|
+
*/
|
|
289
|
+
rerunFailuresFilePath?: string | undefined;
|
|
290
|
+
/**
|
|
291
|
+
* enable [code coverage](https://nodejs.org/docs/latest-v25.x/api/test.html#collecting-code-coverage) collection.
|
|
341
292
|
* @since v22.10.0
|
|
342
293
|
* @default false
|
|
343
294
|
*/
|
|
@@ -383,6 +334,32 @@ declare module "node:test" {
|
|
|
383
334
|
* @default 0
|
|
384
335
|
*/
|
|
385
336
|
functionCoverage?: number | undefined;
|
|
337
|
+
/**
|
|
338
|
+
* Specify environment variables to be passed along to the test process.
|
|
339
|
+
* This options is not compatible with `isolation='none'`. These variables will override
|
|
340
|
+
* those from the main process, and are not merged with `process.env`.
|
|
341
|
+
* @since v25.6.0
|
|
342
|
+
* @default process.env
|
|
343
|
+
*/
|
|
344
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
345
|
+
}
|
|
346
|
+
interface TestsStreamEventMap extends ReadableEventMap {
|
|
347
|
+
"data": [data: TestEvent];
|
|
348
|
+
"test:coverage": [data: EventData.TestCoverage];
|
|
349
|
+
"test:complete": [data: EventData.TestComplete];
|
|
350
|
+
"test:dequeue": [data: EventData.TestDequeue];
|
|
351
|
+
"test:diagnostic": [data: EventData.TestDiagnostic];
|
|
352
|
+
"test:enqueue": [data: EventData.TestEnqueue];
|
|
353
|
+
"test:fail": [data: EventData.TestFail];
|
|
354
|
+
"test:interrupted": [data: EventData.TestInterrupted];
|
|
355
|
+
"test:pass": [data: EventData.TestPass];
|
|
356
|
+
"test:plan": [data: EventData.TestPlan];
|
|
357
|
+
"test:start": [data: EventData.TestStart];
|
|
358
|
+
"test:stderr": [data: EventData.TestStderr];
|
|
359
|
+
"test:stdout": [data: EventData.TestStdout];
|
|
360
|
+
"test:summary": [data: EventData.TestSummary];
|
|
361
|
+
"test:watch:drained": [];
|
|
362
|
+
"test:watch:restarted": [];
|
|
386
363
|
}
|
|
387
364
|
/**
|
|
388
365
|
* A successful call to `run()` will return a new `TestsStream` object, streaming a series of events representing the execution of the tests.
|
|
@@ -391,94 +368,63 @@ declare module "node:test" {
|
|
|
391
368
|
* @since v18.9.0, v16.19.0
|
|
392
369
|
*/
|
|
393
370
|
interface TestsStream extends Readable {
|
|
394
|
-
|
|
395
|
-
addListener
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
addListener(
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
once(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
|
|
448
|
-
once(event: "test:watch:drained", listener: () => void): this;
|
|
449
|
-
once(event: string, listener: (...args: any[]) => void): this;
|
|
450
|
-
prependListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
|
|
451
|
-
prependListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
|
|
452
|
-
prependListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this;
|
|
453
|
-
prependListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this;
|
|
454
|
-
prependListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this;
|
|
455
|
-
prependListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this;
|
|
456
|
-
prependListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this;
|
|
457
|
-
prependListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this;
|
|
458
|
-
prependListener(event: "test:start", listener: (data: EventData.TestStart) => void): this;
|
|
459
|
-
prependListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this;
|
|
460
|
-
prependListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
|
|
461
|
-
prependListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
|
|
462
|
-
prependListener(event: "test:watch:drained", listener: () => void): this;
|
|
463
|
-
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
464
|
-
prependOnceListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
|
|
465
|
-
prependOnceListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
|
|
466
|
-
prependOnceListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this;
|
|
467
|
-
prependOnceListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this;
|
|
468
|
-
prependOnceListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this;
|
|
469
|
-
prependOnceListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this;
|
|
470
|
-
prependOnceListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this;
|
|
471
|
-
prependOnceListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this;
|
|
472
|
-
prependOnceListener(event: "test:start", listener: (data: EventData.TestStart) => void): this;
|
|
473
|
-
prependOnceListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this;
|
|
474
|
-
prependOnceListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
|
|
475
|
-
prependOnceListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
|
|
476
|
-
prependOnceListener(event: "test:watch:drained", listener: () => void): this;
|
|
477
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
371
|
+
// #region InternalEventEmitter
|
|
372
|
+
addListener<E extends keyof TestsStreamEventMap>(
|
|
373
|
+
eventName: E,
|
|
374
|
+
listener: (...args: TestsStreamEventMap[E]) => void,
|
|
375
|
+
): this;
|
|
376
|
+
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
377
|
+
emit<E extends keyof TestsStreamEventMap>(eventName: E, ...args: TestsStreamEventMap[E]): boolean;
|
|
378
|
+
emit(eventName: string | symbol, ...args: any[]): boolean;
|
|
379
|
+
listenerCount<E extends keyof TestsStreamEventMap>(
|
|
380
|
+
eventName: E,
|
|
381
|
+
listener?: (...args: TestsStreamEventMap[E]) => void,
|
|
382
|
+
): number;
|
|
383
|
+
listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
|
|
384
|
+
listeners<E extends keyof TestsStreamEventMap>(eventName: E): ((...args: TestsStreamEventMap[E]) => void)[];
|
|
385
|
+
listeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
386
|
+
off<E extends keyof TestsStreamEventMap>(
|
|
387
|
+
eventName: E,
|
|
388
|
+
listener: (...args: TestsStreamEventMap[E]) => void,
|
|
389
|
+
): this;
|
|
390
|
+
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
391
|
+
on<E extends keyof TestsStreamEventMap>(
|
|
392
|
+
eventName: E,
|
|
393
|
+
listener: (...args: TestsStreamEventMap[E]) => void,
|
|
394
|
+
): this;
|
|
395
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
396
|
+
once<E extends keyof TestsStreamEventMap>(
|
|
397
|
+
eventName: E,
|
|
398
|
+
listener: (...args: TestsStreamEventMap[E]) => void,
|
|
399
|
+
): this;
|
|
400
|
+
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
401
|
+
prependListener<E extends keyof TestsStreamEventMap>(
|
|
402
|
+
eventName: E,
|
|
403
|
+
listener: (...args: TestsStreamEventMap[E]) => void,
|
|
404
|
+
): this;
|
|
405
|
+
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
406
|
+
prependOnceListener<E extends keyof TestsStreamEventMap>(
|
|
407
|
+
eventName: E,
|
|
408
|
+
listener: (...args: TestsStreamEventMap[E]) => void,
|
|
409
|
+
): this;
|
|
410
|
+
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
411
|
+
rawListeners<E extends keyof TestsStreamEventMap>(
|
|
412
|
+
eventName: E,
|
|
413
|
+
): ((...args: TestsStreamEventMap[E]) => void)[];
|
|
414
|
+
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
415
|
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
416
|
+
removeAllListeners<E extends keyof TestsStreamEventMap>(eventName?: E): this;
|
|
417
|
+
removeAllListeners(eventName?: string | symbol): this;
|
|
418
|
+
removeListener<E extends keyof TestsStreamEventMap>(
|
|
419
|
+
eventName: E,
|
|
420
|
+
listener: (...args: TestsStreamEventMap[E]) => void,
|
|
421
|
+
): this;
|
|
422
|
+
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
423
|
+
// #endregion
|
|
478
424
|
}
|
|
479
425
|
namespace EventData {
|
|
480
426
|
interface Error extends globalThis.Error {
|
|
481
|
-
cause:
|
|
427
|
+
cause: unknown;
|
|
482
428
|
}
|
|
483
429
|
interface LocationInfo {
|
|
484
430
|
/**
|
|
@@ -698,7 +644,7 @@ declare module "node:test" {
|
|
|
698
644
|
/**
|
|
699
645
|
* The type of the test, used to denote whether this is a suite.
|
|
700
646
|
*/
|
|
701
|
-
type?: "suite";
|
|
647
|
+
type?: "suite" | "test";
|
|
702
648
|
};
|
|
703
649
|
/**
|
|
704
650
|
* The test name.
|
|
@@ -768,7 +714,13 @@ declare module "node:test" {
|
|
|
768
714
|
* The type of the test, used to denote whether this is a suite.
|
|
769
715
|
* @since v20.0.0, v19.9.0, v18.17.0
|
|
770
716
|
*/
|
|
771
|
-
type?: "suite";
|
|
717
|
+
type?: "suite" | "test";
|
|
718
|
+
/**
|
|
719
|
+
* The attempt number of the test run,
|
|
720
|
+
* present only when using the `--test-rerun-failures` flag.
|
|
721
|
+
* @since v24.7.0
|
|
722
|
+
*/
|
|
723
|
+
attempt?: number;
|
|
772
724
|
};
|
|
773
725
|
/**
|
|
774
726
|
* The test name.
|
|
@@ -791,6 +743,13 @@ declare module "node:test" {
|
|
|
791
743
|
*/
|
|
792
744
|
skip?: string | boolean;
|
|
793
745
|
}
|
|
746
|
+
interface TestInterrupted {
|
|
747
|
+
/**
|
|
748
|
+
* An array of objects containing information about the
|
|
749
|
+
* interrupted tests.
|
|
750
|
+
*/
|
|
751
|
+
tests: TestStart[];
|
|
752
|
+
}
|
|
794
753
|
interface TestPass extends LocationInfo {
|
|
795
754
|
/**
|
|
796
755
|
* Additional execution metadata.
|
|
@@ -804,7 +763,19 @@ declare module "node:test" {
|
|
|
804
763
|
* The type of the test, used to denote whether this is a suite.
|
|
805
764
|
* @since 20.0.0, 19.9.0, 18.17.0
|
|
806
765
|
*/
|
|
807
|
-
type?: "suite";
|
|
766
|
+
type?: "suite" | "test";
|
|
767
|
+
/**
|
|
768
|
+
* The attempt number of the test run,
|
|
769
|
+
* present only when using the `--test-rerun-failures` flag.
|
|
770
|
+
* @since v24.7.0
|
|
771
|
+
*/
|
|
772
|
+
attempt?: number;
|
|
773
|
+
/**
|
|
774
|
+
* The attempt number the test passed on,
|
|
775
|
+
* present only when using the `--test-rerun-failures` flag.
|
|
776
|
+
* @since v24.7.0
|
|
777
|
+
*/
|
|
778
|
+
passed_on_attempt?: number;
|
|
808
779
|
};
|
|
809
780
|
/**
|
|
810
781
|
* The test name.
|
|
@@ -1011,6 +982,49 @@ declare module "node:test" {
|
|
|
1011
982
|
* @since v18.8.0, v16.18.0
|
|
1012
983
|
*/
|
|
1013
984
|
readonly name: string;
|
|
985
|
+
/**
|
|
986
|
+
* Indicated whether the test succeeded.
|
|
987
|
+
* @since v21.7.0, v20.12.0
|
|
988
|
+
*/
|
|
989
|
+
readonly passed: boolean;
|
|
990
|
+
/**
|
|
991
|
+
* The failure reason for the test/case; wrapped and available via `context.error.cause`.
|
|
992
|
+
* @since v21.7.0, v20.12.0
|
|
993
|
+
*/
|
|
994
|
+
readonly error: EventData.Error | null;
|
|
995
|
+
/**
|
|
996
|
+
* Number of times the test has been attempted.
|
|
997
|
+
* @since v21.7.0, v20.12.0
|
|
998
|
+
*/
|
|
999
|
+
readonly attempt: number;
|
|
1000
|
+
/**
|
|
1001
|
+
* The unique identifier of the worker running the current test file. This value is
|
|
1002
|
+
* derived from the `NODE_TEST_WORKER_ID` environment variable. When running tests
|
|
1003
|
+
* with `--test-isolation=process` (the default), each test file runs in a separate
|
|
1004
|
+
* child process and is assigned a worker ID from 1 to N, where N is the number of
|
|
1005
|
+
* concurrent workers. When running with `--test-isolation=none`, all tests run in
|
|
1006
|
+
* the same process and the worker ID is always 1. This value is `undefined` when
|
|
1007
|
+
* not running in a test context.
|
|
1008
|
+
*
|
|
1009
|
+
* This property is useful for splitting resources (like database connections or
|
|
1010
|
+
* server ports) across concurrent test files:
|
|
1011
|
+
*
|
|
1012
|
+
* ```js
|
|
1013
|
+
* import { test } from 'node:test';
|
|
1014
|
+
* import { process } from 'node:process';
|
|
1015
|
+
*
|
|
1016
|
+
* test('database operations', async (t) => {
|
|
1017
|
+
* // Worker ID is available via context
|
|
1018
|
+
* console.log(`Running in worker ${t.workerId}`);
|
|
1019
|
+
*
|
|
1020
|
+
* // Or via environment variable (available at import time)
|
|
1021
|
+
* const workerId = process.env.NODE_TEST_WORKER_ID;
|
|
1022
|
+
* // Use workerId to allocate separate resources per worker
|
|
1023
|
+
* });
|
|
1024
|
+
* ```
|
|
1025
|
+
* @since v25.8.0
|
|
1026
|
+
*/
|
|
1027
|
+
readonly workerId: number | undefined;
|
|
1014
1028
|
/**
|
|
1015
1029
|
* This function is used to set the number of assertions and subtests that are expected to run
|
|
1016
1030
|
* within the test. If the number of assertions and subtests that run does not match the
|
|
@@ -1179,7 +1193,7 @@ declare module "node:test" {
|
|
|
1179
1193
|
* highlighting.
|
|
1180
1194
|
* @since v22.14.0
|
|
1181
1195
|
* @param value A value to serialize to a string. If Node.js was started with
|
|
1182
|
-
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-
|
|
1196
|
+
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--test-update-snapshots)
|
|
1183
1197
|
* flag, the serialized value is written to
|
|
1184
1198
|
* `path`. Otherwise, the serialized value is compared to the contents of the
|
|
1185
1199
|
* existing snapshot file.
|
|
@@ -1202,7 +1216,7 @@ declare module "node:test" {
|
|
|
1202
1216
|
* ```
|
|
1203
1217
|
* @since v22.3.0
|
|
1204
1218
|
* @param value A value to serialize to a string. If Node.js was started with
|
|
1205
|
-
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-
|
|
1219
|
+
* the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--test-update-snapshots)
|
|
1206
1220
|
* flag, the serialized value is written to
|
|
1207
1221
|
* the snapshot file. Otherwise, the serialized value is compared to the
|
|
1208
1222
|
* corresponding value in the existing snapshot file.
|
|
@@ -1265,6 +1279,11 @@ declare module "node:test" {
|
|
|
1265
1279
|
* @since v22.6.0
|
|
1266
1280
|
*/
|
|
1267
1281
|
readonly filePath: string | undefined;
|
|
1282
|
+
/**
|
|
1283
|
+
* The name of the suite and each of its ancestors, separated by `>`.
|
|
1284
|
+
* @since v22.3.0, v20.16.0
|
|
1285
|
+
*/
|
|
1286
|
+
readonly fullName: string;
|
|
1268
1287
|
/**
|
|
1269
1288
|
* The name of the suite.
|
|
1270
1289
|
* @since v18.8.0, v16.18.0
|
|
@@ -1286,6 +1305,17 @@ declare module "node:test" {
|
|
|
1286
1305
|
* @default false
|
|
1287
1306
|
*/
|
|
1288
1307
|
concurrency?: number | boolean | undefined;
|
|
1308
|
+
/**
|
|
1309
|
+
* If truthy, the test is expected to fail. If a non-empty string is provided, that string is displayed
|
|
1310
|
+
* in the test results as the reason why the test is expected to fail. If a
|
|
1311
|
+
* `RegExp`, `Function`, `Object`, or `Error` is provided directly (without wrapping in `{ match: … }`), the test passes
|
|
1312
|
+
* only if the thrown error matches, following the behavior of
|
|
1313
|
+
* `assert.throws`. To provide both a reason and validation, pass an object
|
|
1314
|
+
* with `label` (string) and `match` (RegExp, Function, Object, or Error).
|
|
1315
|
+
* @since v25.5.0
|
|
1316
|
+
* @default false
|
|
1317
|
+
*/
|
|
1318
|
+
expectFailure?: boolean | string | AssertPredicate | undefined;
|
|
1289
1319
|
/**
|
|
1290
1320
|
* If truthy, and the test context is configured to run `only` tests, then this test will be
|
|
1291
1321
|
* run. Otherwise, the test is skipped.
|
|
@@ -1332,7 +1362,7 @@ declare module "node:test" {
|
|
|
1332
1362
|
* describe('tests', async () => {
|
|
1333
1363
|
* before(() => console.log('about to run some test'));
|
|
1334
1364
|
* it('is a subtest', () => {
|
|
1335
|
-
*
|
|
1365
|
+
* // Some relevant assertion here
|
|
1336
1366
|
* });
|
|
1337
1367
|
* });
|
|
1338
1368
|
* ```
|
|
@@ -1348,7 +1378,7 @@ declare module "node:test" {
|
|
|
1348
1378
|
* describe('tests', async () => {
|
|
1349
1379
|
* after(() => console.log('finished running tests'));
|
|
1350
1380
|
* it('is a subtest', () => {
|
|
1351
|
-
*
|
|
1381
|
+
* // Some relevant assertion here
|
|
1352
1382
|
* });
|
|
1353
1383
|
* });
|
|
1354
1384
|
* ```
|
|
@@ -1364,7 +1394,7 @@ declare module "node:test" {
|
|
|
1364
1394
|
* describe('tests', async () => {
|
|
1365
1395
|
* beforeEach(() => console.log('about to run a test'));
|
|
1366
1396
|
* it('is a subtest', () => {
|
|
1367
|
-
*
|
|
1397
|
+
* // Some relevant assertion here
|
|
1368
1398
|
* });
|
|
1369
1399
|
* });
|
|
1370
1400
|
* ```
|
|
@@ -1381,7 +1411,7 @@ declare module "node:test" {
|
|
|
1381
1411
|
* describe('tests', async () => {
|
|
1382
1412
|
* afterEach(() => console.log('finished running a test'));
|
|
1383
1413
|
* it('is a subtest', () => {
|
|
1384
|
-
*
|
|
1414
|
+
* // Some relevant assertion here
|
|
1385
1415
|
* });
|
|
1386
1416
|
* });
|
|
1387
1417
|
* ```
|
|
@@ -1449,19 +1479,40 @@ declare module "node:test" {
|
|
|
1449
1479
|
*/
|
|
1450
1480
|
cache?: boolean | undefined;
|
|
1451
1481
|
/**
|
|
1452
|
-
*
|
|
1453
|
-
*
|
|
1454
|
-
*
|
|
1455
|
-
*
|
|
1456
|
-
* If
|
|
1482
|
+
* Optional mocked exports. The `default` property, if
|
|
1483
|
+
* provided, is used as the mocked module's default export. All other own
|
|
1484
|
+
* enumerable properties are used as named exports.
|
|
1485
|
+
* **This option cannot be used with `defaultExport` or `namedExports`.**
|
|
1486
|
+
* * If the mock is a CommonJS or builtin module, `exports.default` is used as
|
|
1487
|
+
* the value of `module.exports`.
|
|
1488
|
+
* * If `exports.default` is not provided for a CommonJS or builtin mock,
|
|
1489
|
+
* `module.exports` defaults to an empty object.
|
|
1490
|
+
* * If named exports are provided with a non-object default export, the mock
|
|
1491
|
+
* throws an exception when used as a CommonJS or builtin module.
|
|
1492
|
+
*/
|
|
1493
|
+
exports?: object | undefined;
|
|
1494
|
+
/**
|
|
1495
|
+
* An optional value used as the mocked module's default
|
|
1496
|
+
* export. If this value is not provided, ESM mocks do not include a default
|
|
1497
|
+
* export. If the mock is a CommonJS or builtin module, this setting is used as
|
|
1498
|
+
* the value of `module.exports`. If this value is not provided, CJS and builtin
|
|
1499
|
+
* mocks use an empty object as the value of `module.exports`.
|
|
1500
|
+
* **This option cannot be used with `options.exports`.**
|
|
1501
|
+
* This option is deprecated and will be removed in a later version.
|
|
1502
|
+
* Prefer `options.exports.default`.
|
|
1503
|
+
* @deprecated
|
|
1457
1504
|
*/
|
|
1458
1505
|
defaultExport?: any;
|
|
1459
1506
|
/**
|
|
1460
|
-
* An object whose keys and values are used to
|
|
1461
|
-
*
|
|
1462
|
-
*
|
|
1463
|
-
*
|
|
1464
|
-
*
|
|
1507
|
+
* An optional object whose keys and values are used to
|
|
1508
|
+
* create the named exports of the mock module. If the mock is a CommonJS or
|
|
1509
|
+
* builtin module, these values are copied onto `module.exports`. Therefore, if a
|
|
1510
|
+
* mock is created with both named exports and a non-object default export, the
|
|
1511
|
+
* mock will throw an exception when used as a CJS or builtin module.
|
|
1512
|
+
* **This option cannot be used with `options.exports`.**
|
|
1513
|
+
* This option is deprecated and will be removed in a later version.
|
|
1514
|
+
* Prefer `options.exports`.
|
|
1515
|
+
* @deprecated
|
|
1465
1516
|
*/
|
|
1466
1517
|
namedExports?: object | undefined;
|
|
1467
1518
|
}
|
|
@@ -1630,16 +1681,94 @@ declare module "node:test" {
|
|
|
1630
1681
|
options?: MockFunctionOptions,
|
|
1631
1682
|
): Mock<((value: MockedObject[MethodName]) => void) | Implementation>;
|
|
1632
1683
|
/**
|
|
1633
|
-
* This function is used to mock the exports of ECMAScript modules, CommonJS modules,
|
|
1634
|
-
* Any references to the original module prior to mocking are not impacted.
|
|
1684
|
+
* This function is used to mock the exports of ECMAScript modules, CommonJS modules, JSON modules, and
|
|
1685
|
+
* Node.js builtin modules. Any references to the original module prior to mocking are not impacted. In
|
|
1686
|
+
* order to enable module mocking, Node.js must be started with the
|
|
1687
|
+
* [`--experimental-test-module-mocks`](https://nodejs.org/docs/latest-v25.x/api/cli.html#--experimental-test-module-mocks)
|
|
1688
|
+
* command-line flag.
|
|
1689
|
+
*
|
|
1690
|
+
* **Note**: [module customization hooks](https://nodejs.org/docs/latest-v25.x/api/module.html#customization-hooks) registered via the **synchronous** API effect resolution of
|
|
1691
|
+
* the `specifier` provided to `mock.module`. Customization hooks registered via the **asynchronous**
|
|
1692
|
+
* API are currently ignored (because the test runner's loader is synchronous, and node does not
|
|
1693
|
+
* support multi-chain / cross-chain loading).
|
|
1694
|
+
*
|
|
1695
|
+
* The following example demonstrates how a mock is created for a module.
|
|
1696
|
+
*
|
|
1697
|
+
* ```js
|
|
1698
|
+
* test('mocks a builtin module in both module systems', async (t) => {
|
|
1699
|
+
* // Create a mock of 'node:readline' with a named export named 'foo', which
|
|
1700
|
+
* // does not exist in the original 'node:readline' module.
|
|
1701
|
+
* const mock = t.mock.module('node:readline', {
|
|
1702
|
+
* exports: { foo: () => 42 },
|
|
1703
|
+
* });
|
|
1704
|
+
*
|
|
1705
|
+
* let esmImpl = await import('node:readline');
|
|
1706
|
+
* let cjsImpl = require('node:readline');
|
|
1635
1707
|
*
|
|
1636
|
-
*
|
|
1708
|
+
* // cursorTo() is an export of the original 'node:readline' module.
|
|
1709
|
+
* assert.strictEqual(esmImpl.cursorTo, undefined);
|
|
1710
|
+
* assert.strictEqual(cjsImpl.cursorTo, undefined);
|
|
1711
|
+
* assert.strictEqual(esmImpl.fn(), 42);
|
|
1712
|
+
* assert.strictEqual(cjsImpl.fn(), 42);
|
|
1713
|
+
*
|
|
1714
|
+
* mock.restore();
|
|
1715
|
+
*
|
|
1716
|
+
* // The mock is restored, so the original builtin module is returned.
|
|
1717
|
+
* esmImpl = await import('node:readline');
|
|
1718
|
+
* cjsImpl = require('node:readline');
|
|
1719
|
+
*
|
|
1720
|
+
* assert.strictEqual(typeof esmImpl.cursorTo, 'function');
|
|
1721
|
+
* assert.strictEqual(typeof cjsImpl.cursorTo, 'function');
|
|
1722
|
+
* assert.strictEqual(esmImpl.fn, undefined);
|
|
1723
|
+
* assert.strictEqual(cjsImpl.fn, undefined);
|
|
1724
|
+
* });
|
|
1725
|
+
* ```
|
|
1637
1726
|
* @since v22.3.0
|
|
1638
1727
|
* @experimental
|
|
1639
1728
|
* @param specifier A string identifying the module to mock.
|
|
1640
1729
|
* @param options Optional configuration options for the mock module.
|
|
1641
1730
|
*/
|
|
1642
1731
|
module(specifier: string | URL, options?: MockModuleOptions): MockModuleContext;
|
|
1732
|
+
/**
|
|
1733
|
+
* Creates a mock for a property value on an object. This allows you to track and control access to a specific property,
|
|
1734
|
+
* including how many times it is read (getter) or written (setter), and to restore the original value after mocking.
|
|
1735
|
+
*
|
|
1736
|
+
* ```js
|
|
1737
|
+
* test('mocks a property value', (t) => {
|
|
1738
|
+
* const obj = { foo: 42 };
|
|
1739
|
+
* const prop = t.mock.property(obj, 'foo', 100);
|
|
1740
|
+
*
|
|
1741
|
+
* assert.strictEqual(obj.foo, 100);
|
|
1742
|
+
* assert.strictEqual(prop.mock.accessCount(), 1);
|
|
1743
|
+
* assert.strictEqual(prop.mock.accesses[0].type, 'get');
|
|
1744
|
+
* assert.strictEqual(prop.mock.accesses[0].value, 100);
|
|
1745
|
+
*
|
|
1746
|
+
* obj.foo = 200;
|
|
1747
|
+
* assert.strictEqual(prop.mock.accessCount(), 2);
|
|
1748
|
+
* assert.strictEqual(prop.mock.accesses[1].type, 'set');
|
|
1749
|
+
* assert.strictEqual(prop.mock.accesses[1].value, 200);
|
|
1750
|
+
*
|
|
1751
|
+
* prop.mock.restore();
|
|
1752
|
+
* assert.strictEqual(obj.foo, 42);
|
|
1753
|
+
* });
|
|
1754
|
+
* ```
|
|
1755
|
+
* @since v24.3.0
|
|
1756
|
+
* @param object The object whose value is being mocked.
|
|
1757
|
+
* @param propertyName The identifier of the property on `object` to mock.
|
|
1758
|
+
* @param value An optional value used as the mock value
|
|
1759
|
+
* for `object[propertyName]`. **Default:** The original property value.
|
|
1760
|
+
* @returns A proxy to the mocked object. The mocked object contains a
|
|
1761
|
+
* special `mock` property, which is an instance of [`MockPropertyContext`][], and
|
|
1762
|
+
* can be used for inspecting and changing the behavior of the mocked property.
|
|
1763
|
+
*/
|
|
1764
|
+
property<
|
|
1765
|
+
MockedObject extends object,
|
|
1766
|
+
PropertyName extends keyof MockedObject,
|
|
1767
|
+
>(
|
|
1768
|
+
object: MockedObject,
|
|
1769
|
+
property: PropertyName,
|
|
1770
|
+
value?: MockedObject[PropertyName],
|
|
1771
|
+
): MockedObject & { mock: MockPropertyContext<MockedObject[PropertyName]> };
|
|
1643
1772
|
/**
|
|
1644
1773
|
* This function restores the default behavior of all mocks that were previously
|
|
1645
1774
|
* created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be
|
|
@@ -1809,6 +1938,70 @@ declare module "node:test" {
|
|
|
1809
1938
|
*/
|
|
1810
1939
|
restore(): void;
|
|
1811
1940
|
}
|
|
1941
|
+
/**
|
|
1942
|
+
* @since v24.3.0
|
|
1943
|
+
*/
|
|
1944
|
+
class MockPropertyContext<PropertyType = any> {
|
|
1945
|
+
/**
|
|
1946
|
+
* A getter that returns a copy of the internal array used to track accesses (get/set) to
|
|
1947
|
+
* the mocked property. Each entry in the array is an object with the following properties:
|
|
1948
|
+
*/
|
|
1949
|
+
readonly accesses: Array<{
|
|
1950
|
+
type: "get" | "set";
|
|
1951
|
+
value: PropertyType;
|
|
1952
|
+
stack: Error;
|
|
1953
|
+
}>;
|
|
1954
|
+
/**
|
|
1955
|
+
* This function returns the number of times that the property was accessed.
|
|
1956
|
+
* This function is more efficient than checking `ctx.accesses.length` because
|
|
1957
|
+
* `ctx.accesses` is a getter that creates a copy of the internal access tracking array.
|
|
1958
|
+
* @returns The number of times that the property was accessed (read or written).
|
|
1959
|
+
*/
|
|
1960
|
+
accessCount(): number;
|
|
1961
|
+
/**
|
|
1962
|
+
* This function is used to change the value returned by the mocked property getter.
|
|
1963
|
+
* @param value The new value to be set as the mocked property value.
|
|
1964
|
+
*/
|
|
1965
|
+
mockImplementation(value: PropertyType): void;
|
|
1966
|
+
/**
|
|
1967
|
+
* This function is used to change the behavior of an existing mock for a single
|
|
1968
|
+
* invocation. Once invocation `onAccess` has occurred, the mock will revert to
|
|
1969
|
+
* whatever behavior it would have used had `mockImplementationOnce()` not been
|
|
1970
|
+
* called.
|
|
1971
|
+
*
|
|
1972
|
+
* The following example creates a mock function using `t.mock.property()`, calls the
|
|
1973
|
+
* mock property, changes the mock implementation to a different value for the
|
|
1974
|
+
* next invocation, and then resumes its previous behavior.
|
|
1975
|
+
*
|
|
1976
|
+
* ```js
|
|
1977
|
+
* test('changes a mock behavior once', (t) => {
|
|
1978
|
+
* const obj = { foo: 1 };
|
|
1979
|
+
*
|
|
1980
|
+
* const prop = t.mock.property(obj, 'foo', 5);
|
|
1981
|
+
*
|
|
1982
|
+
* assert.strictEqual(obj.foo, 5);
|
|
1983
|
+
* prop.mock.mockImplementationOnce(25);
|
|
1984
|
+
* assert.strictEqual(obj.foo, 25);
|
|
1985
|
+
* assert.strictEqual(obj.foo, 5);
|
|
1986
|
+
* });
|
|
1987
|
+
* ```
|
|
1988
|
+
* @param value The value to be used as the mock's
|
|
1989
|
+
* implementation for the invocation number specified by `onAccess`.
|
|
1990
|
+
* @param onAccess The invocation number that will use `value`. If
|
|
1991
|
+
* the specified invocation has already occurred then an exception is thrown.
|
|
1992
|
+
* **Default:** The number of the next invocation.
|
|
1993
|
+
*/
|
|
1994
|
+
mockImplementationOnce(value: PropertyType, onAccess?: number): void;
|
|
1995
|
+
/**
|
|
1996
|
+
* Resets the access history of the mocked property.
|
|
1997
|
+
*/
|
|
1998
|
+
resetAccesses(): void;
|
|
1999
|
+
/**
|
|
2000
|
+
* Resets the implementation of the mock property to its original behavior. The
|
|
2001
|
+
* mock can still be used after calling this function.
|
|
2002
|
+
*/
|
|
2003
|
+
restore(): void;
|
|
2004
|
+
}
|
|
1812
2005
|
interface MockTimersOptions {
|
|
1813
2006
|
apis: ReadonlyArray<"setInterval" | "setTimeout" | "setImmediate" | "Date">;
|
|
1814
2007
|
now?: number | Date | undefined;
|
|
@@ -1824,7 +2017,6 @@ declare module "node:test" {
|
|
|
1824
2017
|
* The `MockTracker` provides a top-level `timers` export
|
|
1825
2018
|
* which is a `MockTimers` instance.
|
|
1826
2019
|
* @since v20.4.0
|
|
1827
|
-
* @experimental
|
|
1828
2020
|
*/
|
|
1829
2021
|
interface MockTimers {
|
|
1830
2022
|
/**
|
|
@@ -1877,24 +2069,28 @@ declare module "node:test" {
|
|
|
1877
2069
|
*/
|
|
1878
2070
|
enable(options?: MockTimersOptions): void;
|
|
1879
2071
|
/**
|
|
1880
|
-
*
|
|
1881
|
-
*
|
|
1882
|
-
*
|
|
2072
|
+
* Sets the current Unix timestamp that will be used as reference for any mocked
|
|
2073
|
+
* `Date` objects.
|
|
2074
|
+
*
|
|
1883
2075
|
* ```js
|
|
1884
2076
|
* import assert from 'node:assert';
|
|
1885
2077
|
* import { test } from 'node:test';
|
|
1886
|
-
*
|
|
1887
|
-
*
|
|
1888
|
-
*
|
|
1889
|
-
*
|
|
1890
|
-
* //
|
|
1891
|
-
*
|
|
1892
|
-
*
|
|
1893
|
-
*
|
|
2078
|
+
*
|
|
2079
|
+
* test('runAll functions following the given order', (context) => {
|
|
2080
|
+
* const now = Date.now();
|
|
2081
|
+
* const setTime = 1000;
|
|
2082
|
+
* // Date.now is not mocked
|
|
2083
|
+
* assert.deepStrictEqual(Date.now(), now);
|
|
2084
|
+
*
|
|
2085
|
+
* context.mock.timers.enable({ apis: ['Date'] });
|
|
2086
|
+
* context.mock.timers.setTime(setTime);
|
|
2087
|
+
* // Date.now is now 1000
|
|
2088
|
+
* assert.strictEqual(Date.now(), setTime);
|
|
1894
2089
|
* });
|
|
1895
2090
|
* ```
|
|
2091
|
+
* @since v21.2.0, v20.11.0
|
|
1896
2092
|
*/
|
|
1897
|
-
setTime(
|
|
2093
|
+
setTime(milliseconds: number): void;
|
|
1898
2094
|
/**
|
|
1899
2095
|
* This function restores the default behavior of all mocks that were previously
|
|
1900
2096
|
* created by this `MockTimers` instance and disassociates the mocks
|
|
@@ -2081,83 +2277,3 @@ declare module "node:test" {
|
|
|
2081
2277
|
}[keyof T];
|
|
2082
2278
|
export = test;
|
|
2083
2279
|
}
|
|
2084
|
-
|
|
2085
|
-
/**
|
|
2086
|
-
* The `node:test/reporters` module exposes the builtin-reporters for `node:test`.
|
|
2087
|
-
* To access it:
|
|
2088
|
-
*
|
|
2089
|
-
* ```js
|
|
2090
|
-
* import test from 'node:test/reporters';
|
|
2091
|
-
* ```
|
|
2092
|
-
*
|
|
2093
|
-
* This module is only available under the `node:` scheme. The following will not
|
|
2094
|
-
* work:
|
|
2095
|
-
*
|
|
2096
|
-
* ```js
|
|
2097
|
-
* import test from 'node:test/reporters';
|
|
2098
|
-
* ```
|
|
2099
|
-
* @since v19.9.0
|
|
2100
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/test/reporters.js)
|
|
2101
|
-
*/
|
|
2102
|
-
declare module "node:test/reporters" {
|
|
2103
|
-
import { Transform, TransformOptions } from "node:stream";
|
|
2104
|
-
import { EventData } from "node:test";
|
|
2105
|
-
|
|
2106
|
-
type TestEvent =
|
|
2107
|
-
| { type: "test:coverage"; data: EventData.TestCoverage }
|
|
2108
|
-
| { type: "test:complete"; data: EventData.TestComplete }
|
|
2109
|
-
| { type: "test:dequeue"; data: EventData.TestDequeue }
|
|
2110
|
-
| { type: "test:diagnostic"; data: EventData.TestDiagnostic }
|
|
2111
|
-
| { type: "test:enqueue"; data: EventData.TestEnqueue }
|
|
2112
|
-
| { type: "test:fail"; data: EventData.TestFail }
|
|
2113
|
-
| { type: "test:pass"; data: EventData.TestPass }
|
|
2114
|
-
| { type: "test:plan"; data: EventData.TestPlan }
|
|
2115
|
-
| { type: "test:start"; data: EventData.TestStart }
|
|
2116
|
-
| { type: "test:stderr"; data: EventData.TestStderr }
|
|
2117
|
-
| { type: "test:stdout"; data: EventData.TestStdout }
|
|
2118
|
-
| { type: "test:summary"; data: EventData.TestSummary }
|
|
2119
|
-
| { type: "test:watch:drained"; data: undefined };
|
|
2120
|
-
type TestEventGenerator = AsyncGenerator<TestEvent, void>;
|
|
2121
|
-
|
|
2122
|
-
interface ReporterConstructorWrapper<T extends new(...args: any[]) => Transform> {
|
|
2123
|
-
new(...args: ConstructorParameters<T>): InstanceType<T>;
|
|
2124
|
-
(...args: ConstructorParameters<T>): InstanceType<T>;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
/**
|
|
2128
|
-
* The `dot` reporter outputs the test results in a compact format,
|
|
2129
|
-
* where each passing test is represented by a `.`,
|
|
2130
|
-
* and each failing test is represented by a `X`.
|
|
2131
|
-
* @since v20.0.0
|
|
2132
|
-
*/
|
|
2133
|
-
function dot(source: TestEventGenerator): AsyncGenerator<"\n" | "." | "X", void>;
|
|
2134
|
-
/**
|
|
2135
|
-
* The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format.
|
|
2136
|
-
* @since v20.0.0
|
|
2137
|
-
*/
|
|
2138
|
-
function tap(source: TestEventGenerator): AsyncGenerator<string, void>;
|
|
2139
|
-
class SpecReporter extends Transform {
|
|
2140
|
-
constructor();
|
|
2141
|
-
}
|
|
2142
|
-
/**
|
|
2143
|
-
* The `spec` reporter outputs the test results in a human-readable format.
|
|
2144
|
-
* @since v20.0.0
|
|
2145
|
-
*/
|
|
2146
|
-
const spec: ReporterConstructorWrapper<typeof SpecReporter>;
|
|
2147
|
-
/**
|
|
2148
|
-
* The `junit` reporter outputs test results in a jUnit XML format.
|
|
2149
|
-
* @since v21.0.0
|
|
2150
|
-
*/
|
|
2151
|
-
function junit(source: TestEventGenerator): AsyncGenerator<string, void>;
|
|
2152
|
-
class LcovReporter extends Transform {
|
|
2153
|
-
constructor(opts?: Omit<TransformOptions, "writableObjectMode">);
|
|
2154
|
-
}
|
|
2155
|
-
/**
|
|
2156
|
-
* The `lcov` reporter outputs test coverage when used with the
|
|
2157
|
-
* [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--experimental-test-coverage) flag.
|
|
2158
|
-
* @since v22.0.0
|
|
2159
|
-
*/
|
|
2160
|
-
const lcov: LcovReporter;
|
|
2161
|
-
|
|
2162
|
-
export { dot, junit, lcov, spec, tap, TestEvent };
|
|
2163
|
-
}
|