@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,68 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* Workers (threads) are useful for performing CPU-intensive JavaScript operations.
|
|
10
|
-
* They do not help much with I/O-intensive work. The Node.js built-in
|
|
11
|
-
* asynchronous I/O operations are more efficient than Workers can be.
|
|
12
|
-
*
|
|
13
|
-
* Unlike `child_process` or `cluster`, `worker_threads` can share memory. They do
|
|
14
|
-
* so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
|
|
15
|
-
*
|
|
16
|
-
* ```js
|
|
17
|
-
* import {
|
|
18
|
-
* Worker,
|
|
19
|
-
* isMainThread,
|
|
20
|
-
* parentPort,
|
|
21
|
-
* workerData,
|
|
22
|
-
* } from 'node:worker_threads';
|
|
23
|
-
*
|
|
24
|
-
* if (!isMainThread) {
|
|
25
|
-
* const { parse } = await import('some-js-parsing-library');
|
|
26
|
-
* const script = workerData;
|
|
27
|
-
* parentPort.postMessage(parse(script));
|
|
28
|
-
* }
|
|
29
|
-
*
|
|
30
|
-
* export default function parseJSAsync(script) {
|
|
31
|
-
* return new Promise((resolve, reject) => {
|
|
32
|
-
* const worker = new Worker(new URL(import.meta.url), {
|
|
33
|
-
* workerData: script,
|
|
34
|
-
* });
|
|
35
|
-
* worker.on('message', resolve);
|
|
36
|
-
* worker.on('error', reject);
|
|
37
|
-
* worker.on('exit', (code) => {
|
|
38
|
-
* if (code !== 0)
|
|
39
|
-
* reject(new Error(`Worker stopped with exit code ${code}`));
|
|
40
|
-
* });
|
|
41
|
-
* });
|
|
42
|
-
* };
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* The above example spawns a Worker thread for each `parseJSAsync()` call. In
|
|
46
|
-
* practice, use a pool of Workers for these kinds of tasks. Otherwise, the
|
|
47
|
-
* overhead of creating Workers would likely exceed their benefit.
|
|
48
|
-
*
|
|
49
|
-
* When implementing a worker pool, use the `AsyncResource` API to inform
|
|
50
|
-
* diagnostic tools (e.g. to provide asynchronous stack traces) about the
|
|
51
|
-
* correlation between tasks and their outcomes. See `"Using AsyncResource for a Worker thread pool"` in the `async_hooks` documentation for an example implementation.
|
|
52
|
-
*
|
|
53
|
-
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
|
54
|
-
* specifically `argv` and `execArgv` options.
|
|
55
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/worker_threads.js)
|
|
56
|
-
*/
|
|
57
|
-
declare module "worker_threads" {
|
|
58
|
-
import { Context } from "node:vm";
|
|
59
|
-
import { EventEmitter, NodeEventTarget } from "node:events";
|
|
60
|
-
import { EventLoopUtilityFunction } from "node:perf_hooks";
|
|
1
|
+
declare module "node:worker_threads" {
|
|
2
|
+
import {
|
|
3
|
+
EventEmitter,
|
|
4
|
+
InternalEventEmitter,
|
|
5
|
+
InternalEventTargetEventProperties,
|
|
6
|
+
NodeEventTarget,
|
|
7
|
+
} from "node:events";
|
|
61
8
|
import { FileHandle } from "node:fs/promises";
|
|
9
|
+
import { Performance } from "node:perf_hooks";
|
|
62
10
|
import { Readable, Writable } from "node:stream";
|
|
63
11
|
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
|
64
12
|
import { URL } from "node:url";
|
|
65
|
-
import { HeapInfo } from "node:v8";
|
|
13
|
+
import { CPUProfileHandle, HeapInfo, HeapProfileHandle } from "node:v8";
|
|
14
|
+
import { Context } from "node:vm";
|
|
66
15
|
import { MessageEvent } from "undici-types";
|
|
67
16
|
const isInternalThread: boolean;
|
|
68
17
|
const isMainThread: boolean;
|
|
@@ -70,186 +19,12 @@ declare module "worker_threads" {
|
|
|
70
19
|
const resourceLimits: ResourceLimits;
|
|
71
20
|
const SHARE_ENV: unique symbol;
|
|
72
21
|
const threadId: number;
|
|
22
|
+
const threadName: string | null;
|
|
73
23
|
const workerData: any;
|
|
74
|
-
|
|
75
|
-
* Instances of the `worker.MessageChannel` class represent an asynchronous,
|
|
76
|
-
* two-way communications channel.
|
|
77
|
-
* The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
|
|
78
|
-
*
|
|
79
|
-
* ```js
|
|
80
|
-
* import { MessageChannel } from 'node:worker_threads';
|
|
81
|
-
*
|
|
82
|
-
* const { port1, port2 } = new MessageChannel();
|
|
83
|
-
* port1.on('message', (message) => console.log('received', message));
|
|
84
|
-
* port2.postMessage({ foo: 'bar' });
|
|
85
|
-
* // Prints: received { foo: 'bar' } from the `port1.on('message')` listener
|
|
86
|
-
* ```
|
|
87
|
-
* @since v10.5.0
|
|
88
|
-
*/
|
|
89
|
-
class MessageChannel {
|
|
90
|
-
readonly port1: MessagePort;
|
|
91
|
-
readonly port2: MessagePort;
|
|
92
|
-
}
|
|
93
|
-
interface WorkerPerformance {
|
|
94
|
-
eventLoopUtilization: EventLoopUtilityFunction;
|
|
95
|
-
}
|
|
96
|
-
type Transferable =
|
|
97
|
-
| ArrayBuffer
|
|
98
|
-
| MessagePort
|
|
99
|
-
| AbortSignal
|
|
100
|
-
| FileHandle
|
|
101
|
-
| ReadableStream
|
|
102
|
-
| WritableStream
|
|
103
|
-
| TransformStream;
|
|
24
|
+
interface WorkerPerformance extends Pick<Performance, "eventLoopUtilization"> {}
|
|
104
25
|
/** @deprecated Use `import { Transferable } from "node:worker_threads"` instead. */
|
|
26
|
+
// TODO: remove in a future major @types/node version.
|
|
105
27
|
type TransferListItem = Transferable;
|
|
106
|
-
/**
|
|
107
|
-
* Instances of the `worker.MessagePort` class represent one end of an
|
|
108
|
-
* asynchronous, two-way communications channel. It can be used to transfer
|
|
109
|
-
* structured data, memory regions and other `MessagePort`s between different `Worker`s.
|
|
110
|
-
*
|
|
111
|
-
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
|
|
112
|
-
* @since v10.5.0
|
|
113
|
-
*/
|
|
114
|
-
class MessagePort implements EventTarget {
|
|
115
|
-
/**
|
|
116
|
-
* Disables further sending of messages on either side of the connection.
|
|
117
|
-
* This method can be called when no further communication will happen over this `MessagePort`.
|
|
118
|
-
*
|
|
119
|
-
* The `'close' event` is emitted on both `MessagePort` instances that
|
|
120
|
-
* are part of the channel.
|
|
121
|
-
* @since v10.5.0
|
|
122
|
-
*/
|
|
123
|
-
close(): void;
|
|
124
|
-
/**
|
|
125
|
-
* Sends a JavaScript value to the receiving side of this channel. `value` is transferred in a way which is compatible with
|
|
126
|
-
* the [HTML structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
|
|
127
|
-
*
|
|
128
|
-
* In particular, the significant differences to `JSON` are:
|
|
129
|
-
*
|
|
130
|
-
* * `value` may contain circular references.
|
|
131
|
-
* * `value` may contain instances of builtin JS types such as `RegExp`s, `BigInt`s, `Map`s, `Set`s, etc.
|
|
132
|
-
* * `value` may contain typed arrays, both using `ArrayBuffer`s
|
|
133
|
-
* and `SharedArrayBuffer`s.
|
|
134
|
-
* * `value` may contain [`WebAssembly.Module`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) instances.
|
|
135
|
-
* * `value` may not contain native (C++-backed) objects other than:
|
|
136
|
-
*
|
|
137
|
-
* ```js
|
|
138
|
-
* import { MessageChannel } from 'node:worker_threads';
|
|
139
|
-
* const { port1, port2 } = new MessageChannel();
|
|
140
|
-
*
|
|
141
|
-
* port1.on('message', (message) => console.log(message));
|
|
142
|
-
*
|
|
143
|
-
* const circularData = {};
|
|
144
|
-
* circularData.foo = circularData;
|
|
145
|
-
* // Prints: { foo: [Circular] }
|
|
146
|
-
* port2.postMessage(circularData);
|
|
147
|
-
* ```
|
|
148
|
-
*
|
|
149
|
-
* `transferList` may be a list of [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), `MessagePort`, and `FileHandle` objects.
|
|
150
|
-
* After transferring, they are not usable on the sending side of the channel
|
|
151
|
-
* anymore (even if they are not contained in `value`). Unlike with `child processes`, transferring handles such as network sockets is currently
|
|
152
|
-
* not supported.
|
|
153
|
-
*
|
|
154
|
-
* If `value` contains [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances, those are accessible
|
|
155
|
-
* from either thread. They cannot be listed in `transferList`.
|
|
156
|
-
*
|
|
157
|
-
* `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
|
|
158
|
-
*
|
|
159
|
-
* ```js
|
|
160
|
-
* import { MessageChannel } from 'node:worker_threads';
|
|
161
|
-
* const { port1, port2 } = new MessageChannel();
|
|
162
|
-
*
|
|
163
|
-
* port1.on('message', (message) => console.log(message));
|
|
164
|
-
*
|
|
165
|
-
* const uint8Array = new Uint8Array([ 1, 2, 3, 4 ]);
|
|
166
|
-
* // This posts a copy of `uint8Array`:
|
|
167
|
-
* port2.postMessage(uint8Array);
|
|
168
|
-
* // This does not copy data, but renders `uint8Array` unusable:
|
|
169
|
-
* port2.postMessage(uint8Array, [ uint8Array.buffer ]);
|
|
170
|
-
*
|
|
171
|
-
* // The memory for the `sharedUint8Array` is accessible from both the
|
|
172
|
-
* // original and the copy received by `.on('message')`:
|
|
173
|
-
* const sharedUint8Array = new Uint8Array(new SharedArrayBuffer(4));
|
|
174
|
-
* port2.postMessage(sharedUint8Array);
|
|
175
|
-
*
|
|
176
|
-
* // This transfers a freshly created message port to the receiver.
|
|
177
|
-
* // This can be used, for example, to create communication channels between
|
|
178
|
-
* // multiple `Worker` threads that are children of the same parent thread.
|
|
179
|
-
* const otherChannel = new MessageChannel();
|
|
180
|
-
* port2.postMessage({ port: otherChannel.port1 }, [ otherChannel.port1 ]);
|
|
181
|
-
* ```
|
|
182
|
-
*
|
|
183
|
-
* The message object is cloned immediately, and can be modified after
|
|
184
|
-
* posting without having side effects.
|
|
185
|
-
*
|
|
186
|
-
* For more information on the serialization and deserialization mechanisms
|
|
187
|
-
* behind this API, see the `serialization API of the node:v8 module`.
|
|
188
|
-
* @since v10.5.0
|
|
189
|
-
*/
|
|
190
|
-
postMessage(value: any, transferList?: readonly Transferable[]): void;
|
|
191
|
-
/**
|
|
192
|
-
* If true, the `MessagePort` object will keep the Node.js event loop active.
|
|
193
|
-
* @since v18.1.0, v16.17.0
|
|
194
|
-
*/
|
|
195
|
-
hasRef(): boolean;
|
|
196
|
-
/**
|
|
197
|
-
* Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
|
|
198
|
-
* behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
|
|
199
|
-
*
|
|
200
|
-
* If listeners are attached or removed using `.on('message')`, the port
|
|
201
|
-
* is `ref()`ed and `unref()`ed automatically depending on whether
|
|
202
|
-
* listeners for the event exist.
|
|
203
|
-
* @since v10.5.0
|
|
204
|
-
*/
|
|
205
|
-
ref(): void;
|
|
206
|
-
/**
|
|
207
|
-
* Calling `unref()` on a port allows the thread to exit if this is the only
|
|
208
|
-
* active handle in the event system. If the port is already `unref()`ed calling `unref()` again has no effect.
|
|
209
|
-
*
|
|
210
|
-
* If listeners are attached or removed using `.on('message')`, the port is `ref()`ed and `unref()`ed automatically depending on whether
|
|
211
|
-
* listeners for the event exist.
|
|
212
|
-
* @since v10.5.0
|
|
213
|
-
*/
|
|
214
|
-
unref(): void;
|
|
215
|
-
/**
|
|
216
|
-
* Starts receiving messages on this `MessagePort`. When using this port
|
|
217
|
-
* as an event emitter, this is called automatically once `'message'` listeners are attached.
|
|
218
|
-
*
|
|
219
|
-
* This method exists for parity with the Web `MessagePort` API. In Node.js,
|
|
220
|
-
* it is only useful for ignoring messages when no event listener is present.
|
|
221
|
-
* Node.js also diverges in its handling of `.onmessage`. Setting it
|
|
222
|
-
* automatically calls `.start()`, but unsetting it lets messages queue up
|
|
223
|
-
* until a new handler is set or the port is discarded.
|
|
224
|
-
* @since v10.5.0
|
|
225
|
-
*/
|
|
226
|
-
start(): void;
|
|
227
|
-
addListener(event: "close", listener: (ev: Event) => void): this;
|
|
228
|
-
addListener(event: "message", listener: (value: any) => void): this;
|
|
229
|
-
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
230
|
-
addListener(event: string, listener: (arg: any) => void): this;
|
|
231
|
-
emit(event: "close", ev: Event): boolean;
|
|
232
|
-
emit(event: "message", value: any): boolean;
|
|
233
|
-
emit(event: "messageerror", error: Error): boolean;
|
|
234
|
-
emit(event: string, arg: any): boolean;
|
|
235
|
-
off(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
236
|
-
off(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
237
|
-
off(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
238
|
-
off(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
239
|
-
on(event: "close", listener: (ev: Event) => void): this;
|
|
240
|
-
on(event: "message", listener: (value: any) => void): this;
|
|
241
|
-
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
242
|
-
on(event: string, listener: (arg: any) => void): this;
|
|
243
|
-
once(event: "close", listener: (ev: Event) => void): this;
|
|
244
|
-
once(event: "message", listener: (value: any) => void): this;
|
|
245
|
-
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
246
|
-
once(event: string, listener: (arg: any) => void): this;
|
|
247
|
-
removeListener(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
248
|
-
removeListener(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
249
|
-
removeListener(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
250
|
-
removeListener(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
251
|
-
}
|
|
252
|
-
interface MessagePort extends NodeEventTarget {}
|
|
253
28
|
interface WorkerOptions {
|
|
254
29
|
/**
|
|
255
30
|
* List of arguments which would be stringified and appended to
|
|
@@ -300,6 +75,13 @@ declare module "worker_threads" {
|
|
|
300
75
|
*/
|
|
301
76
|
stackSizeMb?: number | undefined;
|
|
302
77
|
}
|
|
78
|
+
interface WorkerEventMap {
|
|
79
|
+
"error": [err: unknown];
|
|
80
|
+
"exit": [exitCode: number];
|
|
81
|
+
"message": [value: any];
|
|
82
|
+
"messageerror": [error: Error];
|
|
83
|
+
"online": [];
|
|
84
|
+
}
|
|
303
85
|
/**
|
|
304
86
|
* The `Worker` class represents an independent JavaScript execution thread.
|
|
305
87
|
* Most Node.js APIs are available inside of it.
|
|
@@ -364,7 +146,7 @@ declare module "worker_threads" {
|
|
|
364
146
|
* ```
|
|
365
147
|
* @since v10.5.0
|
|
366
148
|
*/
|
|
367
|
-
class Worker
|
|
149
|
+
class Worker implements EventEmitter {
|
|
368
150
|
/**
|
|
369
151
|
* If `stdin: true` was passed to the `Worker` constructor, this is a
|
|
370
152
|
* writable stream. The data written to this stream will be made available in
|
|
@@ -391,6 +173,12 @@ declare module "worker_threads" {
|
|
|
391
173
|
* @since v10.5.0
|
|
392
174
|
*/
|
|
393
175
|
readonly threadId: number;
|
|
176
|
+
/**
|
|
177
|
+
* A string identifier for the referenced thread or null if the thread is not running.
|
|
178
|
+
* Inside the worker thread, it is available as `require('node:worker_threads').threadName`.
|
|
179
|
+
* @since v24.6.0
|
|
180
|
+
*/
|
|
181
|
+
readonly threadName: string | null;
|
|
394
182
|
/**
|
|
395
183
|
* Provides the set of JS engine resource constraints for this Worker thread.
|
|
396
184
|
* If the `resourceLimits` option was passed to the `Worker` constructor,
|
|
@@ -441,7 +229,7 @@ declare module "worker_threads" {
|
|
|
441
229
|
* This method returns a `Promise` that will resolve to an object identical to `process.threadCpuUsage()`,
|
|
442
230
|
* or reject with an `ERR_WORKER_NOT_RUNNING` error if the worker is no longer running.
|
|
443
231
|
* This methods allows the statistics to be observed from outside the actual thread.
|
|
444
|
-
* @since
|
|
232
|
+
* @since v24.6.0
|
|
445
233
|
*/
|
|
446
234
|
cpuUsage(prev?: NodeJS.CpuUsage): Promise<NodeJS.CpuUsage>;
|
|
447
235
|
/**
|
|
@@ -458,9 +246,84 @@ declare module "worker_threads" {
|
|
|
458
246
|
* This method returns a `Promise` that will resolve to an object identical to `v8.getHeapStatistics()`,
|
|
459
247
|
* or reject with an `ERR_WORKER_NOT_RUNNING` error if the worker is no longer running.
|
|
460
248
|
* This methods allows the statistics to be observed from outside the actual thread.
|
|
461
|
-
* @since
|
|
249
|
+
* @since v24.0.0
|
|
462
250
|
*/
|
|
463
251
|
getHeapStatistics(): Promise<HeapInfo>;
|
|
252
|
+
/**
|
|
253
|
+
* Starting a CPU profile then return a Promise that fulfills with an error
|
|
254
|
+
* or an `CPUProfileHandle` object. This API supports `await using` syntax.
|
|
255
|
+
*
|
|
256
|
+
* ```js
|
|
257
|
+
* const { Worker } = require('node:worker_threads');
|
|
258
|
+
*
|
|
259
|
+
* const worker = new Worker(`
|
|
260
|
+
* const { parentPort } = require('worker_threads');
|
|
261
|
+
* parentPort.on('message', () => {});
|
|
262
|
+
* `, { eval: true });
|
|
263
|
+
*
|
|
264
|
+
* worker.on('online', async () => {
|
|
265
|
+
* const handle = await worker.startCpuProfile();
|
|
266
|
+
* const profile = await handle.stop();
|
|
267
|
+
* console.log(profile);
|
|
268
|
+
* worker.terminate();
|
|
269
|
+
* });
|
|
270
|
+
* ```
|
|
271
|
+
*
|
|
272
|
+
* `await using` example.
|
|
273
|
+
*
|
|
274
|
+
* ```js
|
|
275
|
+
* const { Worker } = require('node:worker_threads');
|
|
276
|
+
*
|
|
277
|
+
* const w = new Worker(`
|
|
278
|
+
* const { parentPort } = require('node:worker_threads');
|
|
279
|
+
* parentPort.on('message', () => {});
|
|
280
|
+
* `, { eval: true });
|
|
281
|
+
*
|
|
282
|
+
* w.on('online', async () => {
|
|
283
|
+
* // Stop profile automatically when return and profile will be discarded
|
|
284
|
+
* await using handle = await w.startCpuProfile();
|
|
285
|
+
* });
|
|
286
|
+
* ```
|
|
287
|
+
* @since v24.8.0
|
|
288
|
+
*/
|
|
289
|
+
startCpuProfile(): Promise<CPUProfileHandle>;
|
|
290
|
+
/**
|
|
291
|
+
* Starting a Heap profile then return a Promise that fulfills with an error
|
|
292
|
+
* or an `HeapProfileHandle` object. This API supports `await using` syntax.
|
|
293
|
+
*
|
|
294
|
+
* ```js
|
|
295
|
+
* const { Worker } = require('node:worker_threads');
|
|
296
|
+
*
|
|
297
|
+
* const worker = new Worker(`
|
|
298
|
+
* const { parentPort } = require('worker_threads');
|
|
299
|
+
* parentPort.on('message', () => {});
|
|
300
|
+
* `, { eval: true });
|
|
301
|
+
*
|
|
302
|
+
* worker.on('online', async () => {
|
|
303
|
+
* const handle = await worker.startHeapProfile();
|
|
304
|
+
* const profile = await handle.stop();
|
|
305
|
+
* console.log(profile);
|
|
306
|
+
* worker.terminate();
|
|
307
|
+
* });
|
|
308
|
+
* ```
|
|
309
|
+
*
|
|
310
|
+
* `await using` example.
|
|
311
|
+
*
|
|
312
|
+
* ```js
|
|
313
|
+
* const { Worker } = require('node:worker_threads');
|
|
314
|
+
*
|
|
315
|
+
* const w = new Worker(`
|
|
316
|
+
* const { parentPort } = require('node:worker_threads');
|
|
317
|
+
* parentPort.on('message', () => {});
|
|
318
|
+
* `, { eval: true });
|
|
319
|
+
*
|
|
320
|
+
* w.on('online', async () => {
|
|
321
|
+
* // Stop profile automatically when return and profile will be discarded
|
|
322
|
+
* await using handle = await w.startHeapProfile();
|
|
323
|
+
* });
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
startHeapProfile(): Promise<HeapProfileHandle>;
|
|
464
327
|
/**
|
|
465
328
|
* Calls `worker.terminate()` when the dispose scope is exited.
|
|
466
329
|
*
|
|
@@ -470,120 +333,22 @@ declare module "worker_threads" {
|
|
|
470
333
|
* // Worker is automatically terminate when the scope is exited.
|
|
471
334
|
* }
|
|
472
335
|
* ```
|
|
473
|
-
* @since
|
|
336
|
+
* @since v24.2.0
|
|
474
337
|
*/
|
|
475
338
|
[Symbol.asyncDispose](): Promise<void>;
|
|
476
|
-
addListener(event: "error", listener: (err: Error) => void): this;
|
|
477
|
-
addListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
478
|
-
addListener(event: "message", listener: (value: any) => void): this;
|
|
479
|
-
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
480
|
-
addListener(event: "online", listener: () => void): this;
|
|
481
|
-
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
482
|
-
emit(event: "error", err: Error): boolean;
|
|
483
|
-
emit(event: "exit", exitCode: number): boolean;
|
|
484
|
-
emit(event: "message", value: any): boolean;
|
|
485
|
-
emit(event: "messageerror", error: Error): boolean;
|
|
486
|
-
emit(event: "online"): boolean;
|
|
487
|
-
emit(event: string | symbol, ...args: any[]): boolean;
|
|
488
|
-
on(event: "error", listener: (err: Error) => void): this;
|
|
489
|
-
on(event: "exit", listener: (exitCode: number) => void): this;
|
|
490
|
-
on(event: "message", listener: (value: any) => void): this;
|
|
491
|
-
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
492
|
-
on(event: "online", listener: () => void): this;
|
|
493
|
-
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
494
|
-
once(event: "error", listener: (err: Error) => void): this;
|
|
495
|
-
once(event: "exit", listener: (exitCode: number) => void): this;
|
|
496
|
-
once(event: "message", listener: (value: any) => void): this;
|
|
497
|
-
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
498
|
-
once(event: "online", listener: () => void): this;
|
|
499
|
-
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
500
|
-
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
501
|
-
prependListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
502
|
-
prependListener(event: "message", listener: (value: any) => void): this;
|
|
503
|
-
prependListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
504
|
-
prependListener(event: "online", listener: () => void): this;
|
|
505
|
-
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
506
|
-
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
507
|
-
prependOnceListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
508
|
-
prependOnceListener(event: "message", listener: (value: any) => void): this;
|
|
509
|
-
prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
510
|
-
prependOnceListener(event: "online", listener: () => void): this;
|
|
511
|
-
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
512
|
-
removeListener(event: "error", listener: (err: Error) => void): this;
|
|
513
|
-
removeListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
514
|
-
removeListener(event: "message", listener: (value: any) => void): this;
|
|
515
|
-
removeListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
516
|
-
removeListener(event: "online", listener: () => void): this;
|
|
517
|
-
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
518
|
-
off(event: "error", listener: (err: Error) => void): this;
|
|
519
|
-
off(event: "exit", listener: (exitCode: number) => void): this;
|
|
520
|
-
off(event: "message", listener: (value: any) => void): this;
|
|
521
|
-
off(event: "messageerror", listener: (error: Error) => void): this;
|
|
522
|
-
off(event: "online", listener: () => void): this;
|
|
523
|
-
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
524
|
-
}
|
|
525
|
-
interface BroadcastChannel extends NodeJS.RefCounted {}
|
|
526
|
-
/**
|
|
527
|
-
* Instances of `BroadcastChannel` allow asynchronous one-to-many communication
|
|
528
|
-
* with all other `BroadcastChannel` instances bound to the same channel name.
|
|
529
|
-
*
|
|
530
|
-
* ```js
|
|
531
|
-
* 'use strict';
|
|
532
|
-
*
|
|
533
|
-
* import {
|
|
534
|
-
* isMainThread,
|
|
535
|
-
* BroadcastChannel,
|
|
536
|
-
* Worker,
|
|
537
|
-
* } from 'node:worker_threads';
|
|
538
|
-
*
|
|
539
|
-
* const bc = new BroadcastChannel('hello');
|
|
540
|
-
*
|
|
541
|
-
* if (isMainThread) {
|
|
542
|
-
* let c = 0;
|
|
543
|
-
* bc.onmessage = (event) => {
|
|
544
|
-
* console.log(event.data);
|
|
545
|
-
* if (++c === 10) bc.close();
|
|
546
|
-
* };
|
|
547
|
-
* for (let n = 0; n < 10; n++)
|
|
548
|
-
* new Worker(__filename);
|
|
549
|
-
* } else {
|
|
550
|
-
* bc.postMessage('hello from every worker');
|
|
551
|
-
* bc.close();
|
|
552
|
-
* }
|
|
553
|
-
* ```
|
|
554
|
-
* @since v15.4.0
|
|
555
|
-
*/
|
|
556
|
-
class BroadcastChannel extends EventTarget {
|
|
557
|
-
readonly name: string;
|
|
558
|
-
/**
|
|
559
|
-
* Invoked with a single \`MessageEvent\` argument when a message is received.
|
|
560
|
-
* @since v15.4.0
|
|
561
|
-
*/
|
|
562
|
-
onmessage: (message: MessageEvent) => void;
|
|
563
|
-
/**
|
|
564
|
-
* Invoked with a received message cannot be deserialized.
|
|
565
|
-
* @since v15.4.0
|
|
566
|
-
*/
|
|
567
|
-
onmessageerror: (message: MessageEvent) => void;
|
|
568
|
-
constructor(name: string);
|
|
569
|
-
/**
|
|
570
|
-
* Closes the `BroadcastChannel` connection.
|
|
571
|
-
* @since v15.4.0
|
|
572
|
-
*/
|
|
573
|
-
close(): void;
|
|
574
|
-
/**
|
|
575
|
-
* @since v15.4.0
|
|
576
|
-
* @param message Any cloneable JavaScript value.
|
|
577
|
-
*/
|
|
578
|
-
postMessage(message: unknown): void;
|
|
579
339
|
}
|
|
340
|
+
interface Worker extends InternalEventEmitter<WorkerEventMap> {}
|
|
580
341
|
/**
|
|
581
342
|
* Mark an object as not transferable. If `object` occurs in the transfer list of
|
|
582
|
-
* a `port.postMessage()` call,
|
|
343
|
+
* a [`port.postMessage()`](https://nodejs.org/docs/latest-v25.x/api/worker_threads.html#portpostmessagevalue-transferlist) call, an error is thrown. This is a no-op if
|
|
344
|
+
* `object` is a primitive value.
|
|
583
345
|
*
|
|
584
346
|
* In particular, this makes sense for objects that can be cloned, rather than
|
|
585
347
|
* transferred, and which are used by other objects on the sending side.
|
|
586
|
-
* For example, Node.js marks the `ArrayBuffer`s it uses for its
|
|
348
|
+
* For example, Node.js marks the `ArrayBuffer`s it uses for its
|
|
349
|
+
* [`Buffer` pool](https://nodejs.org/docs/latest-v25.x/api/buffer.html#static-method-bufferallocunsafesize) with this.
|
|
350
|
+
* `ArrayBuffer.prototype.transfer()` is disallowed on such array buffer
|
|
351
|
+
* instances.
|
|
587
352
|
*
|
|
588
353
|
* This operation cannot be undone.
|
|
589
354
|
*
|
|
@@ -597,11 +362,17 @@ declare module "worker_threads" {
|
|
|
597
362
|
* markAsUntransferable(pooledBuffer);
|
|
598
363
|
*
|
|
599
364
|
* const { port1 } = new MessageChannel();
|
|
600
|
-
*
|
|
365
|
+
* try {
|
|
366
|
+
* // This will throw an error, because pooledBuffer is not transferable.
|
|
367
|
+
* port1.postMessage(typedArray1, [ typedArray1.buffer ]);
|
|
368
|
+
* } catch (error) {
|
|
369
|
+
* // error.name === 'DataCloneError'
|
|
370
|
+
* }
|
|
601
371
|
*
|
|
602
372
|
* // The following line prints the contents of typedArray1 -- it still owns
|
|
603
|
-
* // its memory and has been
|
|
604
|
-
* // `markAsUntransferable()`, this would print an empty Uint8Array
|
|
373
|
+
* // its memory and has not been transferred. Without
|
|
374
|
+
* // `markAsUntransferable()`, this would print an empty Uint8Array and the
|
|
375
|
+
* // postMessage call would have succeeded.
|
|
605
376
|
* // typedArray2 is intact as well.
|
|
606
377
|
* console.log(typedArray1);
|
|
607
378
|
* console.log(typedArray2);
|
|
@@ -736,49 +507,165 @@ declare module "worker_threads" {
|
|
|
736
507
|
transferList: readonly Transferable[],
|
|
737
508
|
timeout?: number,
|
|
738
509
|
): Promise<void>;
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
MessagePort
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
* @since v15.0.0
|
|
774
|
-
*/
|
|
775
|
-
var MessagePort: typeof globalThis extends {
|
|
776
|
-
onmessage: any;
|
|
777
|
-
MessagePort: infer T;
|
|
778
|
-
} ? T
|
|
779
|
-
: typeof _MessagePort;
|
|
510
|
+
// #region web types
|
|
511
|
+
type LockMode = "exclusive" | "shared";
|
|
512
|
+
type Transferable =
|
|
513
|
+
| ArrayBuffer
|
|
514
|
+
| MessagePort
|
|
515
|
+
| AbortSignal
|
|
516
|
+
| FileHandle
|
|
517
|
+
| ReadableStream
|
|
518
|
+
| WritableStream
|
|
519
|
+
| TransformStream;
|
|
520
|
+
interface LockGrantedCallback<T> {
|
|
521
|
+
(lock: Lock | null): T;
|
|
522
|
+
}
|
|
523
|
+
interface LockInfo {
|
|
524
|
+
clientId: string;
|
|
525
|
+
mode: LockMode;
|
|
526
|
+
name: string;
|
|
527
|
+
}
|
|
528
|
+
interface LockManagerSnapshot {
|
|
529
|
+
held: LockInfo[];
|
|
530
|
+
pending: LockInfo[];
|
|
531
|
+
}
|
|
532
|
+
interface LockOptions {
|
|
533
|
+
ifAvailable?: boolean;
|
|
534
|
+
mode?: LockMode;
|
|
535
|
+
signal?: AbortSignal;
|
|
536
|
+
steal?: boolean;
|
|
537
|
+
}
|
|
538
|
+
interface StructuredSerializeOptions {
|
|
539
|
+
transfer?: Transferable[];
|
|
540
|
+
}
|
|
541
|
+
interface BroadcastChannelEventMap {
|
|
542
|
+
"message": MessageEvent;
|
|
543
|
+
"messageerror": MessageEvent;
|
|
780
544
|
}
|
|
545
|
+
interface BroadcastChannel
|
|
546
|
+
extends EventTarget, InternalEventTargetEventProperties<BroadcastChannelEventMap>, NodeJS.RefCounted
|
|
547
|
+
{
|
|
548
|
+
readonly name: string;
|
|
549
|
+
close(): void;
|
|
550
|
+
postMessage(message: any): void;
|
|
551
|
+
addEventListener<K extends keyof BroadcastChannelEventMap>(
|
|
552
|
+
type: K,
|
|
553
|
+
listener: (ev: BroadcastChannelEventMap[K]) => void,
|
|
554
|
+
options?: AddEventListenerOptions | boolean,
|
|
555
|
+
): void;
|
|
556
|
+
addEventListener(
|
|
557
|
+
type: string,
|
|
558
|
+
listener: EventListener | EventListenerObject,
|
|
559
|
+
options?: AddEventListenerOptions | boolean,
|
|
560
|
+
): void;
|
|
561
|
+
removeEventListener<K extends keyof BroadcastChannelEventMap>(
|
|
562
|
+
type: K,
|
|
563
|
+
listener: (ev: BroadcastChannelEventMap[K]) => void,
|
|
564
|
+
options?: EventListenerOptions | boolean,
|
|
565
|
+
): void;
|
|
566
|
+
removeEventListener(
|
|
567
|
+
type: string,
|
|
568
|
+
listener: EventListener | EventListenerObject,
|
|
569
|
+
options?: EventListenerOptions | boolean,
|
|
570
|
+
): void;
|
|
571
|
+
}
|
|
572
|
+
var BroadcastChannel: {
|
|
573
|
+
prototype: BroadcastChannel;
|
|
574
|
+
new(name: string): BroadcastChannel;
|
|
575
|
+
};
|
|
576
|
+
interface Lock {
|
|
577
|
+
readonly mode: LockMode;
|
|
578
|
+
readonly name: string;
|
|
579
|
+
}
|
|
580
|
+
// var Lock: {
|
|
581
|
+
// prototype: Lock;
|
|
582
|
+
// new(): Lock;
|
|
583
|
+
// };
|
|
584
|
+
interface LockManager {
|
|
585
|
+
query(): Promise<LockManagerSnapshot>;
|
|
586
|
+
request<T>(name: string, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
587
|
+
request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<Awaited<T>>;
|
|
588
|
+
}
|
|
589
|
+
// var LockManager: {
|
|
590
|
+
// prototype: LockManager;
|
|
591
|
+
// new(): LockManager;
|
|
592
|
+
// };
|
|
593
|
+
interface MessageChannel {
|
|
594
|
+
readonly port1: MessagePort;
|
|
595
|
+
readonly port2: MessagePort;
|
|
596
|
+
}
|
|
597
|
+
var MessageChannel: {
|
|
598
|
+
prototype: MessageChannel;
|
|
599
|
+
new(): MessageChannel;
|
|
600
|
+
};
|
|
601
|
+
interface MessagePortEventMap {
|
|
602
|
+
"close": Event;
|
|
603
|
+
"message": MessageEvent;
|
|
604
|
+
"messageerror": MessageEvent;
|
|
605
|
+
}
|
|
606
|
+
interface MessagePort extends NodeEventTarget, InternalEventTargetEventProperties<MessagePortEventMap> {
|
|
607
|
+
close(): void;
|
|
608
|
+
postMessage(message: any, transfer: Transferable[]): void;
|
|
609
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
610
|
+
start(): void;
|
|
611
|
+
hasRef(): boolean;
|
|
612
|
+
ref(): void;
|
|
613
|
+
unref(): void;
|
|
614
|
+
addEventListener<K extends keyof MessagePortEventMap>(
|
|
615
|
+
type: K,
|
|
616
|
+
listener: (ev: MessagePortEventMap[K]) => void,
|
|
617
|
+
options?: AddEventListenerOptions | boolean,
|
|
618
|
+
): void;
|
|
619
|
+
addEventListener(
|
|
620
|
+
type: string,
|
|
621
|
+
listener: EventListener | EventListenerObject,
|
|
622
|
+
options?: AddEventListenerOptions | boolean,
|
|
623
|
+
): void;
|
|
624
|
+
removeEventListener<K extends keyof MessagePortEventMap>(
|
|
625
|
+
type: K,
|
|
626
|
+
listener: (ev: MessagePortEventMap[K]) => void,
|
|
627
|
+
options?: EventListenerOptions | boolean,
|
|
628
|
+
): void;
|
|
629
|
+
removeEventListener(
|
|
630
|
+
type: string,
|
|
631
|
+
listener: EventListener | EventListenerObject,
|
|
632
|
+
options?: EventListenerOptions | boolean,
|
|
633
|
+
): void;
|
|
634
|
+
// #region NodeEventTarget
|
|
635
|
+
addListener(event: "close", listener: (ev: Event) => void): this;
|
|
636
|
+
addListener(event: "message", listener: (value: any) => void): this;
|
|
637
|
+
addListener(event: "messageerror", listener: (error: Error) => void): this;
|
|
638
|
+
addListener(event: string, listener: (arg: any) => void): this;
|
|
639
|
+
emit(event: "close", ev: Event): boolean;
|
|
640
|
+
emit(event: "message", value: any): boolean;
|
|
641
|
+
emit(event: "messageerror", error: Error): boolean;
|
|
642
|
+
emit(event: string, arg: any): boolean;
|
|
643
|
+
off(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
644
|
+
off(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
645
|
+
off(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
646
|
+
off(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
647
|
+
on(event: "close", listener: (ev: Event) => void): this;
|
|
648
|
+
on(event: "message", listener: (value: any) => void): this;
|
|
649
|
+
on(event: "messageerror", listener: (error: Error) => void): this;
|
|
650
|
+
on(event: string, listener: (arg: any) => void): this;
|
|
651
|
+
once(event: "close", listener: (ev: Event) => void): this;
|
|
652
|
+
once(event: "message", listener: (value: any) => void): this;
|
|
653
|
+
once(event: "messageerror", listener: (error: Error) => void): this;
|
|
654
|
+
once(event: string, listener: (arg: any) => void): this;
|
|
655
|
+
removeListener(event: "close", listener: (ev: Event) => void, options?: EventListenerOptions): this;
|
|
656
|
+
removeListener(event: "message", listener: (value: any) => void, options?: EventListenerOptions): this;
|
|
657
|
+
removeListener(event: "messageerror", listener: (error: Error) => void, options?: EventListenerOptions): this;
|
|
658
|
+
removeListener(event: string, listener: (arg: any) => void, options?: EventListenerOptions): this;
|
|
659
|
+
// #endregion
|
|
660
|
+
}
|
|
661
|
+
var MessagePort: {
|
|
662
|
+
prototype: MessagePort;
|
|
663
|
+
new(): MessagePort;
|
|
664
|
+
};
|
|
665
|
+
var locks: LockManager;
|
|
666
|
+
export import structuredClone = globalThis.structuredClone;
|
|
667
|
+
// #endregion
|
|
781
668
|
}
|
|
782
|
-
declare module "
|
|
783
|
-
export * from "worker_threads";
|
|
669
|
+
declare module "worker_threads" {
|
|
670
|
+
export * from "node:worker_threads";
|
|
784
671
|
}
|