@zergai/ztc 0.5.0-beta.1 → 0.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -46
- package/THIRD_PARTY_NOTICES.md +7 -2
- package/bin/zmux-darwin-arm64 +0 -0
- package/bin/ztc-audio-darwin-arm64 +0 -0
- package/bin/ztc-capture-darwin-arm64 +0 -0
- package/bin/ztc-computer-darwin-arm64 +0 -0
- package/bin/ztc-llm-darwin-arm64 +0 -0
- package/bin/ztc-tts-darwin-arm64 +0 -0
- package/bin/ztc-tui-darwin-arm64 +0 -0
- package/bin/zterm-darwin-arm64 +0 -0
- package/dist/App.js +26 -9
- package/dist/agent/agent.d.ts +77 -0
- package/dist/agent/agent.js +618 -94
- package/dist/agent/backends/account_login.js +3 -1
- package/dist/agent/backends/anthropic.js +4 -3
- package/dist/agent/backends/bedrock.d.ts +20 -0
- package/dist/agent/backends/bedrock.js +175 -0
- package/dist/agent/backends/claude_cli.js +8 -0
- package/dist/agent/backends/codex_app_server.js +2 -0
- package/dist/agent/backends/codex_auth.d.ts +5 -2
- package/dist/agent/backends/codex_auth.js +131 -31
- package/dist/agent/backends/gemini.js +1 -1
- package/dist/agent/backends/http_error.d.ts +2 -0
- package/dist/agent/backends/http_error.js +4 -0
- package/dist/agent/backends/index.d.ts +3 -0
- package/dist/agent/backends/index.js +16 -0
- package/dist/agent/backends/model_pool.d.ts +20 -0
- package/dist/agent/backends/model_pool.js +98 -0
- package/dist/agent/backends/openai.js +2 -0
- package/dist/agent/backends/openai_compatible.js +8 -3
- package/dist/agent/backends/openai_responses.d.ts +14 -3
- package/dist/agent/backends/openai_responses.js +91 -26
- package/dist/agent/backends/responses_reasoning.d.ts +5 -0
- package/dist/agent/backends/responses_reasoning.js +23 -0
- package/dist/agent/backends/transport_errors.d.ts +6 -0
- package/dist/agent/backends/transport_errors.js +11 -0
- package/dist/agent/backends/types.d.ts +25 -2
- package/dist/agent/backends/types.js +4 -0
- package/dist/agent/backends/zrouter_stream.d.ts +16 -0
- package/dist/agent/backends/zrouter_stream.js +162 -17
- package/dist/agent/background_workers.d.ts +68 -0
- package/dist/agent/background_workers.js +139 -0
- package/dist/agent/commands/accounts.d.ts +9 -1
- package/dist/agent/commands/accounts.js +13 -5
- package/dist/agent/commands/auth.d.ts +30 -1
- package/dist/agent/commands/auth.js +166 -35
- package/dist/agent/commands/command_refusal.d.ts +8 -0
- package/dist/agent/commands/command_refusal.js +8 -0
- package/dist/agent/commands/compact.js +16 -10
- package/dist/agent/commands/config.js +386 -80
- package/dist/agent/commands/connect.d.ts +20 -0
- package/dist/agent/commands/connect.js +150 -0
- package/dist/agent/commands/credential_redaction.d.ts +12 -0
- package/dist/agent/commands/credential_redaction.js +46 -0
- package/dist/agent/commands/credential_status.d.ts +72 -0
- package/dist/agent/commands/credential_status.js +181 -0
- package/dist/agent/commands/direct_credential_prompt.d.ts +71 -0
- package/dist/agent/commands/direct_credential_prompt.js +422 -0
- package/dist/agent/commands/effort.d.ts +1 -0
- package/dist/agent/commands/effort.js +16 -34
- package/dist/agent/commands/goal.d.ts +0 -4
- package/dist/agent/commands/goal.js +48 -10
- package/dist/agent/commands/handoff.d.ts +6 -0
- package/dist/agent/commands/handoff.js +17 -0
- package/dist/agent/commands/help.js +1 -1
- package/dist/agent/commands/inbox.js +3 -0
- package/dist/agent/commands/index.js +5 -3
- package/dist/agent/commands/keybindings.js +4 -3
- package/dist/agent/commands/mirror.js +29 -16
- package/dist/agent/commands/model.js +83 -4
- package/dist/agent/commands/models.d.ts +1 -1
- package/dist/agent/commands/models.js +89 -67
- package/dist/agent/commands/openai_compat_wizard.d.ts +3 -2
- package/dist/agent/commands/openai_compat_wizard.js +53 -15
- package/dist/agent/commands/provider_choices.d.ts +56 -0
- package/dist/agent/commands/provider_choices.js +72 -3
- package/dist/agent/commands/provider_model_defaults.d.ts +7 -0
- package/dist/agent/commands/provider_model_defaults.js +11 -0
- package/dist/agent/commands/provider_selection.d.ts +27 -2
- package/dist/agent/commands/provider_selection.js +143 -8
- package/dist/agent/commands/reasoning_page.d.ts +33 -0
- package/dist/agent/commands/reasoning_page.js +595 -0
- package/dist/agent/commands/reasoning_picker.d.ts +14 -0
- package/dist/agent/commands/reasoning_picker.js +99 -0
- package/dist/agent/commands/reasoning_settings.d.ts +18 -0
- package/dist/agent/commands/reasoning_settings.js +46 -0
- package/dist/agent/commands/settings.d.ts +2 -0
- package/dist/agent/commands/settings.js +689 -264
- package/dist/agent/commands/status.js +13 -44
- package/dist/agent/commands/types.d.ts +108 -2
- package/dist/agent/commands/update.d.ts +18 -0
- package/dist/agent/commands/update.js +55 -96
- package/dist/agent/completion_state.d.ts +18 -0
- package/dist/agent/completion_state.js +35 -3
- package/dist/agent/factory.d.ts +9 -1
- package/dist/agent/factory.js +61 -17
- package/dist/agent/loop_policy.d.ts +14 -0
- package/dist/agent/loop_policy.js +9 -0
- package/dist/agent/request_encoder.d.ts +6 -0
- package/dist/agent/request_encoder.js +36 -6
- package/dist/agent/result_emit_cap.d.ts +1 -0
- package/dist/agent/result_emit_cap.js +1 -0
- package/dist/agent/runaway_output.d.ts +32 -0
- package/dist/agent/runaway_output.js +80 -0
- package/dist/agent/runtime/command_execution_policy.d.ts +6 -0
- package/dist/agent/runtime/command_execution_policy.js +39 -0
- package/dist/agent/runtime/evidence.d.ts +17 -1
- package/dist/agent/runtime/evidence.js +58 -8
- package/dist/agent/runtime/execution_context.js +7 -3
- package/dist/agent/runtime/read_only_command.d.ts +15 -0
- package/dist/agent/runtime/read_only_command.js +265 -0
- package/dist/agent/runtime/recovery.js +2 -38
- package/dist/agent/runtime/source_verification.js +3 -1
- package/dist/agent/runtime/tool_checkpoints.js +5 -1
- package/dist/agent/runtime/tool_runtime.js +15 -1
- package/dist/agent/runtime/tool_scheduler.js +3 -1
- package/dist/agent/subagent.d.ts +4 -0
- package/dist/agent/subagent.js +195 -23
- package/dist/agent/system_prompt.d.ts +3 -1
- package/dist/agent/system_prompt.js +3 -1
- package/dist/agent/tool_response_store.d.ts +9 -0
- package/dist/agent/tool_response_store.js +39 -3
- package/dist/agent/tool_result_parsing.d.ts +2 -0
- package/dist/agent/tool_result_parsing.js +1 -0
- package/dist/agent/tool_result_presentation.d.ts +21 -0
- package/dist/agent/tool_result_presentation.js +237 -0
- package/dist/agent/tools/apply_patch.js +130 -42
- package/dist/agent/tools/deferred.js +22 -2
- package/dist/agent/tools/delegate.js +182 -49
- package/dist/agent/tools/edit_view.d.ts +13 -0
- package/dist/agent/tools/edit_view.js +134 -0
- package/dist/agent/tools/file.js +54 -16
- package/dist/agent/tools/recall_tool_response.d.ts +6 -0
- package/dist/agent/tools/recall_tool_response.js +60 -17
- package/dist/agent/tools/screenshot.js +5 -3
- package/dist/agent/tools/search.js +18 -9
- package/dist/agent/tools/shell.d.ts +1 -1
- package/dist/agent/tools/shell.js +48 -10
- package/dist/agent/tools/sim_domain_tools.js +7 -1
- package/dist/agent/tools/tool_groups.d.ts +34 -0
- package/dist/agent/tools/tool_groups.js +112 -0
- package/dist/agent/tools/types.d.ts +10 -0
- package/dist/app/activity.js +2 -1
- package/dist/app/agent_runner.js +13 -4
- package/dist/app/ask_user_response.d.ts +6 -0
- package/dist/app/ask_user_response.js +26 -0
- package/dist/app/command_context.js +11 -5
- package/dist/app/launch_notices.d.ts +10 -0
- package/dist/app/launch_notices.js +20 -0
- package/dist/app/selection_completion.d.ts +30 -1
- package/dist/app/selection_completion.js +191 -28
- package/dist/app/session_manager.d.ts +5 -0
- package/dist/app/session_manager.js +50 -12
- package/dist/app/session_messages.d.ts +3 -0
- package/dist/app/session_messages.js +34 -12
- package/dist/app/workspace_admission_details.d.ts +7 -0
- package/dist/app/workspace_admission_details.js +45 -1
- package/dist/cli_args.js +1 -1
- package/dist/cli_main.js +20 -3
- package/dist/cli_ratatui.d.ts +95 -3
- package/dist/cli_ratatui.js +654 -161
- package/dist/components/InputArea.js +1 -1
- package/dist/config/compaction.d.ts +2 -1
- package/dist/config/compaction.js +2 -1
- package/dist/config/defaults.js +20 -48
- package/dist/config/provider_api_key_env.d.ts +76 -0
- package/dist/config/provider_api_key_env.js +148 -0
- package/dist/config/resolved.d.ts +4 -4
- package/dist/config/types.d.ts +102 -1
- package/dist/config.d.ts +70 -8
- package/dist/config.js +253 -63
- package/dist/diagnostics/session_export.d.ts +1 -0
- package/dist/diagnostics/session_export.js +81 -13
- package/dist/emulation/catalog.d.ts +2 -0
- package/dist/emulation/catalog.js +50 -21
- package/dist/emulation/tool_adapters.d.ts +6 -0
- package/dist/emulation/tool_adapters.js +30 -0
- package/dist/emulation/ztc_addendum.d.ts +22 -0
- package/dist/emulation/ztc_addendum.js +37 -0
- package/dist/events.d.ts +3 -0
- package/dist/headless.d.ts +35 -1
- package/dist/headless.js +209 -14
- package/dist/headless_cli.js +6 -0
- package/dist/headless_cli_args.d.ts +4 -0
- package/dist/headless_cli_args.js +2 -0
- package/dist/headless_output_schema.d.ts +46 -0
- package/dist/headless_output_schema.js +386 -0
- package/dist/headless_trajectory.d.ts +44 -0
- package/dist/headless_trajectory.js +113 -0
- package/dist/library.d.ts +6 -3
- package/dist/library.js +8 -4
- package/dist/lsp/client.js +4 -1
- package/dist/lsp/servers.js +2 -0
- package/dist/onboarding/first_run.d.ts +26 -6
- package/dist/onboarding/first_run.js +63 -45
- package/dist/onboarding/router_tips.d.ts +7 -0
- package/dist/onboarding/router_tips.js +38 -0
- package/dist/onboarding/setup.js +1 -1
- package/dist/onboarding/wordmark.d.ts +7 -0
- package/dist/onboarding/wordmark.js +14 -0
- package/dist/onboarding/zergai_login.d.ts +48 -0
- package/dist/onboarding/zergai_login.js +60 -0
- package/dist/prompts/subagent_worker.j2 +20 -0
- package/dist/prompts/tool_delegate_task.j2 +5 -14
- package/dist/router_auth.d.ts +37 -3
- package/dist/router_auth.js +221 -73
- package/dist/runtime_info.d.ts +19 -6
- package/dist/runtime_info.js +64 -28
- package/dist/session.d.ts +9 -0
- package/dist/session.js +41 -8
- package/dist/session_handoff_contract.d.ts +13 -0
- package/dist/session_handoff_contract.js +81 -15
- package/dist/session_media.d.ts +5 -0
- package/dist/session_media.js +2 -1
- package/dist/simulation/domain_types.d.ts +3 -3
- package/dist/simulation/living/context.d.ts +9 -9
- package/dist/simulation/living/definition.d.ts +1 -1
- package/dist/simulation/living/open-world.d.ts +3 -3
- package/dist/simulation/living/recall.d.ts +1 -1
- package/dist/simulation/living/types.d.ts +18 -18
- package/dist/simulation/orchestration/world_response.d.ts +2 -2
- package/dist/simulation/toolkit/dynamic_meetings.d.ts +1 -1
- package/dist/simulation/toolkit/dynamic_state.d.ts +1 -1
- package/dist/simulation/world/bootstrap_schema.d.ts +1 -1
- package/dist/simulation/world/gm_schema.d.ts +8 -8
- package/dist/skills/loader.js +3 -1
- package/dist/types.d.ts +6 -2
- package/dist/ui/core/input.d.ts +5 -1
- package/dist/ui/core/input.js +5 -1
- package/dist/ui/core/input_segments.d.ts +5 -1
- package/dist/ui/core/input_segments.js +5 -3
- package/dist/ui/ratatui/headless_pane_manager.d.ts +3 -1
- package/dist/ui/ratatui/headless_pane_manager.js +16 -5
- package/dist/ui/ratatui/input.js +4 -3
- package/dist/ui/ratatui/process.js +22 -13
- package/dist/ui/ratatui/protocol.d.ts +14 -0
- package/dist/ui/ratatui/protocol.js +2 -0
- package/dist/ui/scrollback.d.ts +17 -0
- package/dist/ui/scrollback.js +138 -4
- package/dist/ui/terminal_image.d.ts +129 -0
- package/dist/ui/terminal_image.js +516 -0
- package/dist/ui/transcript_render_cache.d.ts +4 -4
- package/dist/ui/transcript_render_cache.js +7 -4
- package/dist/ui/views/app.d.ts +7 -3
- package/dist/ui/views/app.js +13 -6
- package/dist/ui/views/completion_menu.js +18 -10
- package/dist/ui/views/input_area.d.ts +1 -2
- package/dist/ui/views/input_area.js +2 -2
- package/dist/ui/views/message_list.d.ts +8 -1
- package/dist/ui/views/message_list.js +176 -45
- package/dist/ui/views/status_bar.js +7 -1
- package/dist/ui/views/theme.d.ts +2 -0
- package/dist/ui/views/theme.js +2 -0
- package/dist/ui/widgets/color_panel.js +4 -3
- package/dist/ui/widgets/form.d.ts +8 -1
- package/dist/ui/widgets/form.js +36 -22
- package/dist/ui/widgets/index.d.ts +1 -1
- package/dist/ui/widgets/index.js +1 -1
- package/dist/ui/widgets/log_view.js +4 -3
- package/dist/ui/widgets/navigator_panel.js +5 -4
- package/dist/ui/widgets/panel_frame.d.ts +2 -0
- package/dist/ui/widgets/panel_frame.js +14 -0
- package/dist/ui/widgets/prompt_viewer.js +2 -1
- package/dist/ui/widgets/questionnaire.js +3 -3
- package/dist/ui/widgets/reasoning_track.d.ts +60 -0
- package/dist/ui/widgets/reasoning_track.js +218 -0
- package/dist/ui/widgets/resume_panel.js +15 -10
- package/dist/ui/widgets/rewind_panel.js +4 -16
- package/dist/ui/widgets/select.d.ts +90 -4
- package/dist/ui/widgets/select.js +305 -135
- package/dist/ui/widgets/settings_panel.d.ts +21 -1
- package/dist/ui/widgets/settings_panel.js +266 -45
- package/dist/ui/widgets/status_line_panel.js +6 -5
- package/dist/ui/widgets/text_input.d.ts +4 -0
- package/dist/ui/widgets/text_input.js +20 -13
- package/dist/ui/widgets/types.d.ts +2 -0
- package/dist/utils/compaction.d.ts +24 -4
- package/dist/utils/compaction.js +228 -44
- package/dist/utils/context.js +1 -0
- package/dist/utils/debug_log.d.ts +12 -0
- package/dist/utils/debug_log.js +25 -3
- package/dist/utils/deepseek.d.ts +3 -1
- package/dist/utils/deepseek.js +29 -1
- package/dist/utils/docker_target.d.ts +28 -0
- package/dist/utils/docker_target.js +89 -0
- package/dist/utils/ephemeral.js +2 -0
- package/dist/utils/fireworks.d.ts +4 -4
- package/dist/utils/fireworks.js +11 -7
- package/dist/utils/idle_compaction.d.ts +32 -0
- package/dist/utils/idle_compaction.js +113 -0
- package/dist/utils/mid_turn_compaction.d.ts +12 -0
- package/dist/utils/mid_turn_compaction.js +17 -0
- package/dist/utils/open_url.d.ts +4 -0
- package/dist/utils/open_url.js +10 -0
- package/dist/utils/openrouter_prices.d.ts +165 -0
- package/dist/utils/openrouter_prices.js +313 -0
- package/dist/utils/router_catalog.d.ts +13 -0
- package/dist/utils/router_catalog.js +30 -3
- package/dist/utils/sandbox.d.ts +12 -0
- package/dist/utils/sandbox.js +23 -5
- package/dist/utils/session_interactivity.d.ts +21 -0
- package/dist/utils/session_interactivity.js +28 -0
- package/dist/utils/shell.d.ts +7 -0
- package/dist/utils/shell.js +43 -7
- package/dist/utils/subprocess_env.d.ts +27 -0
- package/dist/utils/subprocess_env.js +69 -3
- package/dist/utils/tool_output_copies.d.ts +44 -0
- package/dist/utils/tool_output_copies.js +196 -0
- package/dist/utils/tool_result_message.d.ts +7 -0
- package/dist/utils/tool_result_message.js +11 -0
- package/dist/utils/tool_trace.d.ts +15 -0
- package/dist/utils/tool_trace.js +40 -9
- package/dist/web/event_history_store.d.ts +2 -0
- package/dist/web/event_history_store.js +31 -6
- package/dist/web/mirror_client.d.ts +3 -0
- package/dist/web/mirror_stream.d.ts +11 -0
- package/dist/web/mirror_stream.js +23 -3
- package/dist/worker/executor.js +3 -1
- package/dist/worker/toolsets.d.ts +1 -1
- package/dist/worker/toolsets.js +4 -3
- package/dist/worker/types.d.ts +6 -0
- package/dist/worker/worker_models.d.ts +17 -0
- package/dist/worker/worker_models.js +79 -0
- package/dist/zlm-embed.mjs +53761 -10916
- package/node_modules/@zerg/model-contracts/README.md +16 -5
- package/node_modules/@zerg/model-contracts/index.d.ts +7 -3
- package/node_modules/@zerg/model-contracts/index.js +40 -18
- package/node_modules/abort-controller/LICENSE +21 -0
- package/node_modules/abort-controller/README.md +98 -0
- package/node_modules/abort-controller/browser.js +13 -0
- package/node_modules/abort-controller/browser.mjs +11 -0
- package/node_modules/abort-controller/dist/abort-controller.d.ts +43 -0
- package/node_modules/abort-controller/dist/abort-controller.js +127 -0
- package/node_modules/abort-controller/dist/abort-controller.js.map +1 -0
- package/node_modules/abort-controller/dist/abort-controller.mjs +118 -0
- package/node_modules/abort-controller/dist/abort-controller.mjs.map +1 -0
- package/node_modules/abort-controller/dist/abort-controller.umd.js +5 -0
- package/node_modules/abort-controller/dist/abort-controller.umd.js.map +1 -0
- package/node_modules/abort-controller/package.json +97 -0
- package/node_modules/abort-controller/polyfill.js +21 -0
- package/node_modules/abort-controller/polyfill.mjs +19 -0
- package/node_modules/bluebird/LICENSE +1 -1
- package/node_modules/bluebird/README.md +8 -2
- package/node_modules/bluebird/js/browser/bluebird.core.js +325 -150
- package/node_modules/bluebird/js/browser/bluebird.core.min.js +4 -4
- package/node_modules/bluebird/js/browser/bluebird.js +362 -165
- package/node_modules/bluebird/js/browser/bluebird.min.js +5 -5
- package/node_modules/bluebird/js/release/async.js +15 -56
- package/node_modules/bluebird/js/release/debuggability.js +118 -25
- package/node_modules/bluebird/js/release/finally.js +37 -2
- package/node_modules/bluebird/js/release/generators.js +1 -1
- package/node_modules/bluebird/js/release/join.js +4 -7
- package/node_modules/bluebird/js/release/map.js +10 -3
- package/node_modules/bluebird/js/release/promise.js +89 -43
- package/node_modules/bluebird/js/release/promise_array.js +2 -0
- package/node_modules/bluebird/js/release/props.js +1 -1
- package/node_modules/bluebird/js/release/reduce.js +16 -5
- package/node_modules/bluebird/js/release/schedule.js +6 -5
- package/node_modules/bluebird/js/release/settle.js +4 -0
- package/node_modules/bluebird/js/release/util.js +53 -11
- package/node_modules/bluebird/package.json +7 -5
- package/node_modules/buffer/AUTHORS.md +3 -0
- package/node_modules/buffer/README.md +1 -1
- package/node_modules/buffer/index.d.ts +11 -3
- package/node_modules/buffer/index.js +424 -135
- package/node_modules/buffer/package.json +8 -11
- package/node_modules/compress-commons/README.md +1 -1
- package/node_modules/compress-commons/lib/archivers/archive-entry.js +6 -16
- package/node_modules/compress-commons/lib/archivers/archive-output-stream.js +79 -98
- package/node_modules/compress-commons/lib/archivers/zip/constants.js +99 -70
- package/node_modules/compress-commons/lib/archivers/zip/general-purpose-bit.js +70 -92
- package/node_modules/compress-commons/lib/archivers/zip/unix-stat.js +19 -53
- package/node_modules/compress-commons/lib/archivers/zip/util.js +49 -49
- package/node_modules/compress-commons/lib/archivers/zip/zip-archive-entry.js +356 -389
- package/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js +335 -404
- package/node_modules/compress-commons/lib/compress-commons.js +18 -13
- package/node_modules/compress-commons/lib/util/index.js +11 -21
- package/node_modules/compress-commons/node_modules/readable-stream/README.md +116 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/_stream_duplex.js +4 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/_stream_passthrough.js +4 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/_stream_readable.js +4 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/_stream_transform.js +4 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/_stream_writable.js +4 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/shims/process.js +19 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js +52 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/buffer_list.js +157 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/compose.js +194 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/destroy.js +290 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplex.js +143 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/duplexify.js +378 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +286 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/from.js +98 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/lazy_transform.js +51 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/legacy.js +94 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/operators.js +457 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/passthrough.js +39 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/pipeline.js +471 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/readable.js +1290 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/state.js +39 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/transform.js +180 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/utils.js +327 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/streams/writable.js +819 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/internal/validators.js +530 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/ours/browser.js +35 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/ours/errors.js +343 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/ours/index.js +65 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/ours/primordials.js +124 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/ours/util/inspect.js +55 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/ours/util.js +148 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/stream/promises.js +43 -0
- package/node_modules/compress-commons/node_modules/readable-stream/lib/stream.js +143 -0
- package/node_modules/compress-commons/node_modules/readable-stream/package.json +89 -0
- package/node_modules/compress-commons/package.json +13 -10
- package/node_modules/crc32-stream/README.md +8 -8
- package/node_modules/crc32-stream/lib/crc32-stream.js +4 -23
- package/node_modules/crc32-stream/lib/deflate-crc32-stream.js +5 -27
- package/node_modules/crc32-stream/lib/index.js +7 -6
- package/node_modules/crc32-stream/node_modules/readable-stream/README.md +116 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/_stream_duplex.js +4 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/_stream_passthrough.js +4 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/_stream_readable.js +4 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/_stream_transform.js +4 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/_stream_writable.js +4 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/shims/process.js +19 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js +52 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +157 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/compose.js +194 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +290 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplex.js +143 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/duplexify.js +378 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +286 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/from.js +98 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/lazy_transform.js +51 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/legacy.js +94 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/operators.js +457 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/passthrough.js +39 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +471 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/readable.js +1290 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/state.js +39 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/transform.js +180 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/utils.js +327 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/streams/writable.js +819 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/internal/validators.js +530 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/ours/browser.js +35 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/ours/errors.js +343 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/ours/index.js +65 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/ours/primordials.js +124 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util/inspect.js +55 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/ours/util.js +148 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/stream/promises.js +43 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/lib/stream.js +143 -0
- package/node_modules/crc32-stream/node_modules/readable-stream/package.json +89 -0
- package/node_modules/crc32-stream/package.json +9 -10
- package/node_modules/event-target-shim/LICENSE +22 -0
- package/node_modules/event-target-shim/README.md +293 -0
- package/node_modules/event-target-shim/dist/event-target-shim.js +871 -0
- package/node_modules/event-target-shim/dist/event-target-shim.js.map +1 -0
- package/node_modules/event-target-shim/dist/event-target-shim.mjs +862 -0
- package/node_modules/event-target-shim/dist/event-target-shim.mjs.map +1 -0
- package/node_modules/event-target-shim/dist/event-target-shim.umd.js +6 -0
- package/node_modules/event-target-shim/dist/event-target-shim.umd.js.map +1 -0
- package/node_modules/event-target-shim/index.d.ts +399 -0
- package/node_modules/event-target-shim/package.json +82 -0
- package/node_modules/events/.airtap.yml +15 -0
- package/node_modules/events/.github/FUNDING.yml +12 -0
- package/node_modules/events/.travis.yml +18 -0
- package/node_modules/events/History.md +118 -0
- package/node_modules/events/LICENSE +22 -0
- package/node_modules/events/Readme.md +50 -0
- package/node_modules/events/events.js +497 -0
- package/node_modules/events/package.json +37 -0
- package/node_modules/events/security.md +10 -0
- package/node_modules/events/tests/add-listeners.js +111 -0
- package/node_modules/events/tests/check-listener-leaks.js +101 -0
- package/node_modules/events/tests/common.js +104 -0
- package/node_modules/events/tests/errors.js +13 -0
- package/node_modules/events/tests/events-list.js +28 -0
- package/node_modules/events/tests/events-once.js +234 -0
- package/node_modules/events/tests/index.js +64 -0
- package/node_modules/events/tests/legacy-compat.js +16 -0
- package/node_modules/events/tests/listener-count.js +37 -0
- package/node_modules/events/tests/listeners-side-effects.js +56 -0
- package/node_modules/events/tests/listeners.js +168 -0
- package/node_modules/events/tests/max-listeners.js +47 -0
- package/node_modules/events/tests/method-names.js +35 -0
- package/node_modules/events/tests/modify-in-emit.js +90 -0
- package/node_modules/events/tests/num-args.js +60 -0
- package/node_modules/events/tests/once.js +83 -0
- package/node_modules/events/tests/prepend.js +31 -0
- package/node_modules/events/tests/remove-all-listeners.js +133 -0
- package/node_modules/events/tests/remove-listeners.js +212 -0
- package/node_modules/events/tests/set-max-listeners-side-effects.js +31 -0
- package/node_modules/events/tests/special-event-names.js +45 -0
- package/node_modules/events/tests/subclass.js +66 -0
- package/node_modules/events/tests/symbols.js +25 -0
- package/node_modules/exceljs/lib/stream/xlsx/workbook-reader.js +5 -1
- package/node_modules/exceljs/lib/stream/xlsx/workbook-writer.js +2 -2
- package/node_modules/exceljs/lib/utils/zip-archive.js +85 -0
- package/node_modules/exceljs/package.json +3 -3
- package/node_modules/fs-extra/LICENSE +15 -0
- package/node_modules/fs-extra/README.md +294 -0
- package/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
- package/node_modules/fs-extra/lib/copy/copy.js +182 -0
- package/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/node_modules/fs-extra/lib/ensure/file.js +66 -0
- package/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
- package/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
- package/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/node_modules/fs-extra/lib/fs/index.js +146 -0
- package/node_modules/fs-extra/lib/index.js +16 -0
- package/node_modules/fs-extra/lib/json/index.js +16 -0
- package/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/node_modules/fs-extra/lib/move/index.js +7 -0
- package/node_modules/fs-extra/lib/move/move-sync.js +55 -0
- package/node_modules/fs-extra/lib/move/move.js +59 -0
- package/node_modules/fs-extra/lib/output-file/index.js +31 -0
- package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/node_modules/fs-extra/lib/util/stat.js +159 -0
- package/node_modules/fs-extra/lib/util/utimes.js +36 -0
- package/node_modules/fs-extra/package.json +71 -0
- package/node_modules/is-stream/index.d.ts +90 -0
- package/node_modules/is-stream/index.js +37 -0
- package/node_modules/is-stream/license +9 -0
- package/node_modules/is-stream/package.json +48 -0
- package/node_modules/is-stream/readme.md +57 -0
- package/node_modules/jsonfile/LICENSE +15 -0
- package/node_modules/jsonfile/README.md +230 -0
- package/node_modules/jsonfile/index.js +88 -0
- package/node_modules/jsonfile/package.json +40 -0
- package/node_modules/jsonfile/utils.js +18 -0
- package/node_modules/node-int64/.npmignore +3 -0
- package/node_modules/node-int64/Int64.js +268 -0
- package/node_modules/node-int64/LICENSE +19 -0
- package/node_modules/node-int64/README.md +78 -0
- package/node_modules/node-int64/package.json +27 -0
- package/node_modules/node-int64/test.js +120 -0
- package/node_modules/process/.eslintrc +21 -0
- package/node_modules/process/LICENSE +22 -0
- package/node_modules/process/README.md +26 -0
- package/node_modules/process/browser.js +184 -0
- package/node_modules/process/index.js +2 -0
- package/node_modules/process/package.json +27 -0
- package/node_modules/process/test.js +199 -0
- package/node_modules/universalify/LICENSE +20 -0
- package/node_modules/universalify/README.md +76 -0
- package/node_modules/universalify/index.js +24 -0
- package/node_modules/universalify/package.json +34 -0
- package/node_modules/unzipper/README.md +206 -176
- package/node_modules/unzipper/eslint.config.mjs +29 -0
- package/node_modules/unzipper/lib/BufferStream.js +9 -15
- package/node_modules/unzipper/lib/Decrypt.js +58 -36
- package/node_modules/unzipper/lib/NoopStream.js +5 -10
- package/node_modules/unzipper/lib/Open/directory.js +140 -127
- package/node_modules/unzipper/lib/Open/index.js +72 -32
- package/node_modules/unzipper/lib/Open/unzip.js +68 -74
- package/node_modules/unzipper/lib/PullStream.js +50 -55
- package/node_modules/unzipper/lib/extract.js +26 -18
- package/node_modules/unzipper/lib/parse.js +119 -118
- package/node_modules/unzipper/lib/parseBuffer.js +55 -0
- package/node_modules/unzipper/lib/parseExtraField.js +17 -14
- package/node_modules/unzipper/lib/parseOne.js +23 -27
- package/node_modules/unzipper/package.json +12 -13
- package/node_modules/unzipper/unzip.js +0 -6
- package/node_modules/zip-stream/README.md +5 -5
- package/node_modules/zip-stream/index.js +143 -169
- package/node_modules/zip-stream/node_modules/readable-stream/README.md +116 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/_stream_duplex.js +4 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/_stream_passthrough.js +4 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/_stream_readable.js +4 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/_stream_transform.js +4 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/_stream_writable.js +4 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/shims/process.js +19 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js +52 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +157 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/compose.js +194 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +290 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/duplex.js +143 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/duplexify.js +378 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +286 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/from.js +98 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/lazy_transform.js +51 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/legacy.js +94 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/operators.js +457 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/passthrough.js +39 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +471 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/readable.js +1290 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/state.js +39 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/transform.js +180 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/utils.js +327 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/streams/writable.js +819 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/internal/validators.js +530 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/ours/browser.js +35 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/ours/errors.js +343 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/ours/index.js +65 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/ours/primordials.js +124 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/ours/util/inspect.js +55 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/ours/util.js +148 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/stream/promises.js +43 -0
- package/node_modules/zip-stream/node_modules/readable-stream/lib/stream.js +143 -0
- package/node_modules/zip-stream/node_modules/readable-stream/package.json +89 -0
- package/node_modules/zip-stream/package.json +15 -12
- package/node_modules/zip-stream/utils.js +21 -0
- package/package.json +22 -10
- package/packages/exceljs/PROVENANCE.md +24 -1
- package/packages/exceljs/lib/stream/xlsx/workbook-reader.js +5 -1
- package/packages/exceljs/lib/stream/xlsx/workbook-writer.js +2 -2
- package/packages/exceljs/lib/utils/zip-archive.js +85 -0
- package/packages/exceljs/package.json +3 -3
- package/packages/model-contracts/README.md +16 -5
- package/packages/model-contracts/index.d.ts +7 -3
- package/packages/model-contracts/index.js +40 -18
- package/scripts/install-macos-app.mjs +10 -1
- package/node_modules/archiver/LICENSE +0 -22
- package/node_modules/archiver/README.md +0 -94
- package/node_modules/archiver/index.js +0 -84
- package/node_modules/archiver/lib/core.js +0 -974
- package/node_modules/archiver/lib/error.js +0 -40
- package/node_modules/archiver/lib/plugins/json.js +0 -110
- package/node_modules/archiver/lib/plugins/tar.js +0 -167
- package/node_modules/archiver/lib/plugins/zip.js +0 -120
- package/node_modules/archiver/package.json +0 -60
- package/node_modules/archiver-utils/LICENSE +0 -22
- package/node_modules/archiver-utils/README.md +0 -7
- package/node_modules/archiver-utils/file.js +0 -209
- package/node_modules/archiver-utils/index.js +0 -156
- package/node_modules/archiver-utils/node_modules/readable-stream/.travis.yml +0 -34
- package/node_modules/archiver-utils/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/archiver-utils/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/archiver-utils/node_modules/readable-stream/README.md +0 -58
- package/node_modules/archiver-utils/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/node_modules/archiver-utils/node_modules/readable-stream/duplex-browser.js +0 -1
- package/node_modules/archiver-utils/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/archiver-utils/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/archiver-utils/node_modules/readable-stream/package.json +0 -52
- package/node_modules/archiver-utils/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/archiver-utils/node_modules/readable-stream/readable-browser.js +0 -7
- package/node_modules/archiver-utils/node_modules/readable-stream/readable.js +0 -19
- package/node_modules/archiver-utils/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/archiver-utils/node_modules/readable-stream/writable-browser.js +0 -1
- package/node_modules/archiver-utils/node_modules/readable-stream/writable.js +0 -8
- package/node_modules/archiver-utils/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/archiver-utils/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/archiver-utils/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/archiver-utils/node_modules/safe-buffer/index.js +0 -62
- package/node_modules/archiver-utils/node_modules/safe-buffer/package.json +0 -37
- package/node_modules/archiver-utils/node_modules/string_decoder/.travis.yml +0 -50
- package/node_modules/archiver-utils/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/archiver-utils/node_modules/string_decoder/README.md +0 -47
- package/node_modules/archiver-utils/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/archiver-utils/node_modules/string_decoder/package.json +0 -31
- package/node_modules/archiver-utils/package.json +0 -54
- package/node_modules/async/CHANGELOG.md +0 -351
- package/node_modules/async/LICENSE +0 -19
- package/node_modules/async/README.md +0 -59
- package/node_modules/async/all.js +0 -119
- package/node_modules/async/allLimit.js +0 -46
- package/node_modules/async/allSeries.js +0 -45
- package/node_modules/async/any.js +0 -122
- package/node_modules/async/anyLimit.js +0 -47
- package/node_modules/async/anySeries.js +0 -46
- package/node_modules/async/apply.js +0 -11
- package/node_modules/async/applyEach.js +0 -57
- package/node_modules/async/applyEachSeries.js +0 -37
- package/node_modules/async/asyncify.js +0 -118
- package/node_modules/async/auto.js +0 -333
- package/node_modules/async/autoInject.js +0 -182
- package/node_modules/async/bower.json +0 -17
- package/node_modules/async/cargo.js +0 -63
- package/node_modules/async/cargoQueue.js +0 -71
- package/node_modules/async/compose.js +0 -55
- package/node_modules/async/concat.js +0 -115
- package/node_modules/async/concatLimit.js +0 -60
- package/node_modules/async/concatSeries.js +0 -41
- package/node_modules/async/constant.js +0 -14
- package/node_modules/async/detect.js +0 -96
- package/node_modules/async/detectLimit.js +0 -48
- package/node_modules/async/detectSeries.js +0 -47
- package/node_modules/async/dir.js +0 -43
- package/node_modules/async/dist/async.js +0 -6061
- package/node_modules/async/dist/async.min.js +0 -1
- package/node_modules/async/dist/async.mjs +0 -5948
- package/node_modules/async/doDuring.js +0 -68
- package/node_modules/async/doUntil.js +0 -46
- package/node_modules/async/doWhilst.js +0 -68
- package/node_modules/async/during.js +0 -78
- package/node_modules/async/each.js +0 -129
- package/node_modules/async/eachLimit.js +0 -50
- package/node_modules/async/eachOf.js +0 -185
- package/node_modules/async/eachOfLimit.js +0 -47
- package/node_modules/async/eachOfSeries.js +0 -39
- package/node_modules/async/eachSeries.js +0 -44
- package/node_modules/async/ensureAsync.js +0 -67
- package/node_modules/async/every.js +0 -119
- package/node_modules/async/everyLimit.js +0 -46
- package/node_modules/async/everySeries.js +0 -45
- package/node_modules/async/filter.js +0 -93
- package/node_modules/async/filterLimit.js +0 -45
- package/node_modules/async/filterSeries.js +0 -43
- package/node_modules/async/find.js +0 -96
- package/node_modules/async/findLimit.js +0 -48
- package/node_modules/async/findSeries.js +0 -47
- package/node_modules/async/flatMap.js +0 -115
- package/node_modules/async/flatMapLimit.js +0 -60
- package/node_modules/async/flatMapSeries.js +0 -41
- package/node_modules/async/foldl.js +0 -153
- package/node_modules/async/foldr.js +0 -41
- package/node_modules/async/forEach.js +0 -129
- package/node_modules/async/forEachLimit.js +0 -50
- package/node_modules/async/forEachOf.js +0 -185
- package/node_modules/async/forEachOfLimit.js +0 -47
- package/node_modules/async/forEachOfSeries.js +0 -39
- package/node_modules/async/forEachSeries.js +0 -44
- package/node_modules/async/forever.js +0 -68
- package/node_modules/async/groupBy.js +0 -108
- package/node_modules/async/groupByLimit.js +0 -71
- package/node_modules/async/groupBySeries.js +0 -36
- package/node_modules/async/index.js +0 -588
- package/node_modules/async/inject.js +0 -153
- package/node_modules/async/internal/DoublyLinkedList.js +0 -92
- package/node_modules/async/internal/Heap.js +0 -120
- package/node_modules/async/internal/applyEach.js +0 -29
- package/node_modules/async/internal/asyncEachOfLimit.js +0 -75
- package/node_modules/async/internal/awaitify.js +0 -28
- package/node_modules/async/internal/breakLoop.js +0 -10
- package/node_modules/async/internal/consoleFunc.js +0 -31
- package/node_modules/async/internal/createTester.js +0 -40
- package/node_modules/async/internal/eachOfLimit.js +0 -90
- package/node_modules/async/internal/filter.js +0 -55
- package/node_modules/async/internal/getIterator.js +0 -11
- package/node_modules/async/internal/initialParams.js +0 -14
- package/node_modules/async/internal/isArrayLike.js +0 -10
- package/node_modules/async/internal/iterator.js +0 -57
- package/node_modules/async/internal/map.js +0 -30
- package/node_modules/async/internal/once.js +0 -17
- package/node_modules/async/internal/onlyOnce.js +0 -15
- package/node_modules/async/internal/parallel.js +0 -34
- package/node_modules/async/internal/promiseCallback.js +0 -23
- package/node_modules/async/internal/queue.js +0 -294
- package/node_modules/async/internal/range.js +0 -14
- package/node_modules/async/internal/reject.js +0 -26
- package/node_modules/async/internal/setImmediate.js +0 -34
- package/node_modules/async/internal/withoutIndex.js +0 -10
- package/node_modules/async/internal/wrapAsync.js +0 -34
- package/node_modules/async/log.js +0 -41
- package/node_modules/async/map.js +0 -142
- package/node_modules/async/mapLimit.js +0 -45
- package/node_modules/async/mapSeries.js +0 -44
- package/node_modules/async/mapValues.js +0 -152
- package/node_modules/async/mapValuesLimit.js +0 -61
- package/node_modules/async/mapValuesSeries.js +0 -37
- package/node_modules/async/memoize.js +0 -91
- package/node_modules/async/nextTick.js +0 -52
- package/node_modules/async/package.json +0 -75
- package/node_modules/async/parallel.js +0 -180
- package/node_modules/async/parallelLimit.js +0 -41
- package/node_modules/async/priorityQueue.js +0 -60
- package/node_modules/async/queue.js +0 -24
- package/node_modules/async/race.js +0 -67
- package/node_modules/async/reduce.js +0 -153
- package/node_modules/async/reduceRight.js +0 -41
- package/node_modules/async/reflect.js +0 -78
- package/node_modules/async/reflectAll.js +0 -93
- package/node_modules/async/reject.js +0 -87
- package/node_modules/async/rejectLimit.js +0 -45
- package/node_modules/async/rejectSeries.js +0 -43
- package/node_modules/async/retry.js +0 -159
- package/node_modules/async/retryable.js +0 -77
- package/node_modules/async/select.js +0 -93
- package/node_modules/async/selectLimit.js +0 -45
- package/node_modules/async/selectSeries.js +0 -43
- package/node_modules/async/seq.js +0 -79
- package/node_modules/async/series.js +0 -186
- package/node_modules/async/setImmediate.js +0 -45
- package/node_modules/async/some.js +0 -122
- package/node_modules/async/someLimit.js +0 -47
- package/node_modules/async/someSeries.js +0 -46
- package/node_modules/async/sortBy.js +0 -190
- package/node_modules/async/timeout.js +0 -89
- package/node_modules/async/times.js +0 -50
- package/node_modules/async/timesLimit.js +0 -43
- package/node_modules/async/timesSeries.js +0 -32
- package/node_modules/async/transform.js +0 -173
- package/node_modules/async/tryEach.js +0 -78
- package/node_modules/async/unmemoize.js +0 -25
- package/node_modules/async/until.js +0 -61
- package/node_modules/async/waterfall.js +0 -105
- package/node_modules/async/whilst.js +0 -78
- package/node_modules/async/wrapSync.js +0 -118
- package/node_modules/big-integer/BigInteger.d.ts +0 -2393
- package/node_modules/big-integer/BigInteger.js +0 -1453
- package/node_modules/big-integer/BigInteger.min.js +0 -1
- package/node_modules/big-integer/LICENSE +0 -24
- package/node_modules/big-integer/README.md +0 -589
- package/node_modules/big-integer/bower.json +0 -29
- package/node_modules/big-integer/package.json +0 -48
- package/node_modules/big-integer/tsconfig.json +0 -24
- package/node_modules/binary/.npmignore +0 -1
- package/node_modules/binary/.travis.yml +0 -4
- package/node_modules/binary/README.markdown +0 -177
- package/node_modules/binary/example/buf.js +0 -11
- package/node_modules/binary/example/parse.js +0 -10
- package/node_modules/binary/example/stream.js +0 -12
- package/node_modules/binary/index.js +0 -397
- package/node_modules/binary/lib/vars.js +0 -28
- package/node_modules/binary/package.json +0 -38
- package/node_modules/binary/perf/loop.js +0 -92
- package/node_modules/binary/perf/small.js +0 -80
- package/node_modules/binary/test/bu.js +0 -46
- package/node_modules/binary/test/deferred.js +0 -20
- package/node_modules/binary/test/dots.js +0 -23
- package/node_modules/binary/test/eof.js +0 -41
- package/node_modules/binary/test/flush.js +0 -17
- package/node_modules/binary/test/from_buffer.js +0 -14
- package/node_modules/binary/test/get_buffer.js +0 -28
- package/node_modules/binary/test/immediate.js +0 -18
- package/node_modules/binary/test/interval.js +0 -38
- package/node_modules/binary/test/into_buffer.js +0 -35
- package/node_modules/binary/test/into_stream.js +0 -43
- package/node_modules/binary/test/loop.js +0 -44
- package/node_modules/binary/test/loop_scan.js +0 -54
- package/node_modules/binary/test/lu.js +0 -46
- package/node_modules/binary/test/negbs.js +0 -29
- package/node_modules/binary/test/negls.js +0 -29
- package/node_modules/binary/test/nested.js +0 -35
- package/node_modules/binary/test/not_enough_buf.js +0 -17
- package/node_modules/binary/test/not_enough_parse.js +0 -19
- package/node_modules/binary/test/parse.js +0 -54
- package/node_modules/binary/test/peek.js +0 -40
- package/node_modules/binary/test/pipe.js +0 -49
- package/node_modules/binary/test/posbs.js +0 -29
- package/node_modules/binary/test/posls.js +0 -29
- package/node_modules/binary/test/scan.js +0 -33
- package/node_modules/binary/test/scan_buf.js +0 -18
- package/node_modules/binary/test/scan_buf_null.js +0 -16
- package/node_modules/binary/test/skip.js +0 -58
- package/node_modules/binary/test/split.js +0 -34
- package/node_modules/bl/.travis.yml +0 -17
- package/node_modules/bl/BufferList.js +0 -396
- package/node_modules/bl/LICENSE.md +0 -13
- package/node_modules/bl/README.md +0 -247
- package/node_modules/bl/bl.js +0 -84
- package/node_modules/bl/package.json +0 -37
- package/node_modules/bl/test/convert.js +0 -21
- package/node_modules/bl/test/indexOf.js +0 -492
- package/node_modules/bl/test/isBufferList.js +0 -32
- package/node_modules/bl/test/test.js +0 -869
- package/node_modules/buffer-crc32/LICENSE +0 -19
- package/node_modules/buffer-crc32/README.md +0 -47
- package/node_modules/buffer-crc32/index.js +0 -111
- package/node_modules/buffer-crc32/package.json +0 -39
- package/node_modules/buffer-indexof-polyfill/.eslintrc +0 -33
- package/node_modules/buffer-indexof-polyfill/.travis.yml +0 -17
- package/node_modules/buffer-indexof-polyfill/LICENSE +0 -22
- package/node_modules/buffer-indexof-polyfill/README.md +0 -33
- package/node_modules/buffer-indexof-polyfill/index.js +0 -73
- package/node_modules/buffer-indexof-polyfill/init-buffer.js +0 -8
- package/node_modules/buffer-indexof-polyfill/package.json +0 -34
- package/node_modules/buffer-indexof-polyfill/test/indexof.js +0 -128
- package/node_modules/buffers/README.markdown +0 -122
- package/node_modules/buffers/examples/slice.js +0 -9
- package/node_modules/buffers/examples/splice.js +0 -17
- package/node_modules/buffers/index.js +0 -269
- package/node_modules/buffers/package.json +0 -14
- package/node_modules/buffers/test/buffers.js +0 -209
- package/node_modules/chainsaw/.npmignore +0 -1
- package/node_modules/chainsaw/README.markdown +0 -157
- package/node_modules/chainsaw/examples/add_do.js +0 -25
- package/node_modules/chainsaw/examples/prompt.js +0 -67
- package/node_modules/chainsaw/index.js +0 -145
- package/node_modules/chainsaw/package.json +0 -23
- package/node_modules/chainsaw/test/chainsaw.js +0 -418
- package/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/concat-map/LICENSE +0 -18
- package/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/concat-map/index.js +0 -13
- package/node_modules/concat-map/package.json +0 -43
- package/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/end-of-stream/LICENSE +0 -21
- package/node_modules/end-of-stream/README.md +0 -54
- package/node_modules/end-of-stream/index.js +0 -96
- package/node_modules/end-of-stream/package.json +0 -37
- package/node_modules/fs-constants/LICENSE +0 -21
- package/node_modules/fs-constants/README.md +0 -26
- package/node_modules/fs-constants/browser.js +0 -1
- package/node_modules/fs-constants/index.js +0 -1
- package/node_modules/fs-constants/package.json +0 -19
- package/node_modules/fs.realpath/LICENSE +0 -43
- package/node_modules/fs.realpath/README.md +0 -33
- package/node_modules/fs.realpath/index.js +0 -66
- package/node_modules/fs.realpath/old.js +0 -303
- package/node_modules/fs.realpath/package.json +0 -26
- package/node_modules/fstream/.travis.yml +0 -9
- package/node_modules/fstream/LICENSE +0 -15
- package/node_modules/fstream/README.md +0 -76
- package/node_modules/fstream/examples/filter-pipe.js +0 -134
- package/node_modules/fstream/examples/pipe.js +0 -118
- package/node_modules/fstream/examples/reader.js +0 -68
- package/node_modules/fstream/examples/symlink-write.js +0 -27
- package/node_modules/fstream/fstream.js +0 -35
- package/node_modules/fstream/lib/abstract.js +0 -85
- package/node_modules/fstream/lib/collect.js +0 -70
- package/node_modules/fstream/lib/dir-reader.js +0 -252
- package/node_modules/fstream/lib/dir-writer.js +0 -174
- package/node_modules/fstream/lib/file-reader.js +0 -150
- package/node_modules/fstream/lib/file-writer.js +0 -107
- package/node_modules/fstream/lib/get-type.js +0 -33
- package/node_modules/fstream/lib/link-reader.js +0 -53
- package/node_modules/fstream/lib/link-writer.js +0 -95
- package/node_modules/fstream/lib/proxy-reader.js +0 -95
- package/node_modules/fstream/lib/proxy-writer.js +0 -111
- package/node_modules/fstream/lib/reader.js +0 -255
- package/node_modules/fstream/lib/socket-reader.js +0 -36
- package/node_modules/fstream/lib/writer.js +0 -390
- package/node_modules/fstream/package.json +0 -28
- package/node_modules/glob/LICENSE +0 -21
- package/node_modules/glob/README.md +0 -378
- package/node_modules/glob/common.js +0 -238
- package/node_modules/glob/glob.js +0 -790
- package/node_modules/glob/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/glob/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/glob/node_modules/balanced-match/README.md +0 -97
- package/node_modules/glob/node_modules/balanced-match/index.js +0 -62
- package/node_modules/glob/node_modules/balanced-match/package.json +0 -48
- package/node_modules/glob/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/glob/node_modules/brace-expansion/README.md +0 -151
- package/node_modules/glob/node_modules/brace-expansion/index.js +0 -438
- package/node_modules/glob/node_modules/brace-expansion/package.json +0 -50
- package/node_modules/glob/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/glob/node_modules/minimatch/README.md +0 -267
- package/node_modules/glob/node_modules/minimatch/minimatch.js +0 -1005
- package/node_modules/glob/node_modules/minimatch/package.json +0 -33
- package/node_modules/glob/package.json +0 -55
- package/node_modules/glob/sync.js +0 -486
- package/node_modules/inflight/LICENSE +0 -15
- package/node_modules/inflight/README.md +0 -37
- package/node_modules/inflight/inflight.js +0 -54
- package/node_modules/inflight/package.json +0 -29
- package/node_modules/lazystream/LICENSE +0 -23
- package/node_modules/lazystream/README.md +0 -114
- package/node_modules/lazystream/lib/lazystream.js +0 -54
- package/node_modules/lazystream/node_modules/readable-stream/.travis.yml +0 -34
- package/node_modules/lazystream/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/lazystream/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/lazystream/node_modules/readable-stream/README.md +0 -58
- package/node_modules/lazystream/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/node_modules/lazystream/node_modules/readable-stream/duplex-browser.js +0 -1
- package/node_modules/lazystream/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/lazystream/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/node_modules/lazystream/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/node_modules/lazystream/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/node_modules/lazystream/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/node_modules/lazystream/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/lazystream/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/lazystream/node_modules/readable-stream/package.json +0 -52
- package/node_modules/lazystream/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/lazystream/node_modules/readable-stream/readable-browser.js +0 -7
- package/node_modules/lazystream/node_modules/readable-stream/readable.js +0 -19
- package/node_modules/lazystream/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/lazystream/node_modules/readable-stream/writable-browser.js +0 -1
- package/node_modules/lazystream/node_modules/readable-stream/writable.js +0 -8
- package/node_modules/lazystream/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/lazystream/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/lazystream/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/lazystream/node_modules/safe-buffer/index.js +0 -62
- package/node_modules/lazystream/node_modules/safe-buffer/package.json +0 -37
- package/node_modules/lazystream/node_modules/string_decoder/.travis.yml +0 -50
- package/node_modules/lazystream/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/lazystream/node_modules/string_decoder/README.md +0 -47
- package/node_modules/lazystream/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/lazystream/node_modules/string_decoder/package.json +0 -31
- package/node_modules/lazystream/package.json +0 -46
- package/node_modules/lazystream/test/data.md +0 -13
- package/node_modules/lazystream/test/fs_test.js +0 -69
- package/node_modules/lazystream/test/helper.js +0 -39
- package/node_modules/lazystream/test/pipe_test.js +0 -36
- package/node_modules/lazystream/test/readable_test.js +0 -90
- package/node_modules/lazystream/test/writable_test.js +0 -59
- package/node_modules/listenercount/.npmignore +0 -2
- package/node_modules/listenercount/LICENSE.md +0 -5
- package/node_modules/listenercount/README.md +0 -50
- package/node_modules/listenercount/circle.yml +0 -6
- package/node_modules/listenercount/index.js +0 -16
- package/node_modules/listenercount/package.json +0 -27
- package/node_modules/listenercount/test/test.js +0 -31
- package/node_modules/lodash.defaults/LICENSE +0 -47
- package/node_modules/lodash.defaults/README.md +0 -18
- package/node_modules/lodash.defaults/index.js +0 -668
- package/node_modules/lodash.defaults/package.json +0 -17
- package/node_modules/lodash.difference/LICENSE +0 -47
- package/node_modules/lodash.difference/README.md +0 -18
- package/node_modules/lodash.difference/index.js +0 -1170
- package/node_modules/lodash.difference/package.json +0 -17
- package/node_modules/lodash.flatten/LICENSE +0 -47
- package/node_modules/lodash.flatten/README.md +0 -18
- package/node_modules/lodash.flatten/index.js +0 -349
- package/node_modules/lodash.flatten/package.json +0 -17
- package/node_modules/lodash.isplainobject/LICENSE +0 -47
- package/node_modules/lodash.isplainobject/README.md +0 -18
- package/node_modules/lodash.isplainobject/index.js +0 -139
- package/node_modules/lodash.isplainobject/package.json +0 -17
- package/node_modules/lodash.union/LICENSE +0 -47
- package/node_modules/lodash.union/README.md +0 -18
- package/node_modules/lodash.union/index.js +0 -1181
- package/node_modules/lodash.union/package.json +0 -17
- package/node_modules/minimist/.eslintrc +0 -29
- package/node_modules/minimist/.github/FUNDING.yml +0 -12
- package/node_modules/minimist/.nycrc +0 -14
- package/node_modules/minimist/CHANGELOG.md +0 -298
- package/node_modules/minimist/LICENSE +0 -18
- package/node_modules/minimist/README.md +0 -121
- package/node_modules/minimist/example/parse.js +0 -4
- package/node_modules/minimist/index.js +0 -263
- package/node_modules/minimist/package.json +0 -75
- package/node_modules/minimist/test/all_bool.js +0 -34
- package/node_modules/minimist/test/bool.js +0 -177
- package/node_modules/minimist/test/dash.js +0 -43
- package/node_modules/minimist/test/default_bool.js +0 -37
- package/node_modules/minimist/test/dotted.js +0 -24
- package/node_modules/minimist/test/kv_short.js +0 -32
- package/node_modules/minimist/test/long.js +0 -33
- package/node_modules/minimist/test/num.js +0 -38
- package/node_modules/minimist/test/parse.js +0 -209
- package/node_modules/minimist/test/parse_modified.js +0 -11
- package/node_modules/minimist/test/proto.js +0 -64
- package/node_modules/minimist/test/short.js +0 -69
- package/node_modules/minimist/test/stop_early.js +0 -17
- package/node_modules/minimist/test/unknown.js +0 -104
- package/node_modules/minimist/test/whitespace.js +0 -10
- package/node_modules/mkdirp/LICENSE +0 -21
- package/node_modules/mkdirp/bin/cmd.js +0 -33
- package/node_modules/mkdirp/bin/usage.txt +0 -12
- package/node_modules/mkdirp/index.js +0 -102
- package/node_modules/mkdirp/package.json +0 -33
- package/node_modules/mkdirp/readme.markdown +0 -100
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -33
- package/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/path-is-absolute/license +0 -21
- package/node_modules/path-is-absolute/package.json +0 -43
- package/node_modules/path-is-absolute/readme.md +0 -59
- package/node_modules/readdir-glob/LICENSE +0 -201
- package/node_modules/readdir-glob/README.md +0 -85
- package/node_modules/readdir-glob/index.js +0 -243
- package/node_modules/readdir-glob/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/readdir-glob/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/readdir-glob/node_modules/balanced-match/README.md +0 -97
- package/node_modules/readdir-glob/node_modules/balanced-match/index.js +0 -62
- package/node_modules/readdir-glob/node_modules/balanced-match/package.json +0 -48
- package/node_modules/readdir-glob/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
- package/node_modules/readdir-glob/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/readdir-glob/node_modules/brace-expansion/README.md +0 -157
- package/node_modules/readdir-glob/node_modules/brace-expansion/index.js +0 -394
- package/node_modules/readdir-glob/node_modules/brace-expansion/package.json +0 -49
- package/node_modules/readdir-glob/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/readdir-glob/node_modules/minimatch/README.md +0 -296
- package/node_modules/readdir-glob/node_modules/minimatch/lib/path.js +0 -4
- package/node_modules/readdir-glob/node_modules/minimatch/minimatch.js +0 -996
- package/node_modules/readdir-glob/node_modules/minimatch/package.json +0 -35
- package/node_modules/readdir-glob/package.json +0 -43
- package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/rimraf/README.md +0 -101
- package/node_modules/rimraf/bin.js +0 -50
- package/node_modules/rimraf/package.json +0 -29
- package/node_modules/rimraf/rimraf.js +0 -372
- package/node_modules/tar-stream/LICENSE +0 -21
- package/node_modules/tar-stream/README.md +0 -168
- package/node_modules/tar-stream/extract.js +0 -257
- package/node_modules/tar-stream/headers.js +0 -295
- package/node_modules/tar-stream/index.js +0 -2
- package/node_modules/tar-stream/pack.js +0 -255
- package/node_modules/tar-stream/package.json +0 -58
- package/node_modules/tar-stream/sandbox.js +0 -11
- package/node_modules/traverse/.npmignore +0 -1
- package/node_modules/traverse/LICENSE +0 -24
- package/node_modules/traverse/README.markdown +0 -247
- package/node_modules/traverse/examples/json.js +0 -16
- package/node_modules/traverse/examples/leaves.js +0 -15
- package/node_modules/traverse/examples/negative.js +0 -8
- package/node_modules/traverse/examples/stringify.js +0 -38
- package/node_modules/traverse/index.js +0 -322
- package/node_modules/traverse/package.json +0 -18
- package/node_modules/traverse/test/circular.js +0 -114
- package/node_modules/traverse/test/date.js +0 -35
- package/node_modules/traverse/test/equal.js +0 -219
- package/node_modules/traverse/test/instance.js +0 -17
- package/node_modules/traverse/test/interface.js +0 -42
- package/node_modules/traverse/test/json.js +0 -47
- package/node_modules/traverse/test/leaves.js +0 -21
- package/node_modules/traverse/test/mutability.js +0 -203
- package/node_modules/traverse/test/negative.js +0 -20
- package/node_modules/traverse/test/obj.js +0 -15
- package/node_modules/traverse/test/stop.js +0 -41
- package/node_modules/traverse/test/stringify.js +0 -36
- package/node_modules/traverse/test/super_deep.js +0 -54
- package/node_modules/unzipper/.circleci/config.yml +0 -13
- package/node_modules/unzipper/.travis.yml +0 -21
- package/node_modules/unzipper/lib/Buffer.js +0 -12
- package/node_modules/unzipper/node_modules/readable-stream/.travis.yml +0 -34
- package/node_modules/unzipper/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/unzipper/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/unzipper/node_modules/readable-stream/README.md +0 -58
- package/node_modules/unzipper/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/node_modules/unzipper/node_modules/readable-stream/duplex-browser.js +0 -1
- package/node_modules/unzipper/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/unzipper/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/node_modules/unzipper/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/node_modules/unzipper/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/node_modules/unzipper/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/node_modules/unzipper/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/node_modules/unzipper/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/node_modules/unzipper/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/node_modules/unzipper/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/unzipper/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/unzipper/node_modules/readable-stream/package.json +0 -52
- package/node_modules/unzipper/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/unzipper/node_modules/readable-stream/readable-browser.js +0 -7
- package/node_modules/unzipper/node_modules/readable-stream/readable.js +0 -19
- package/node_modules/unzipper/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/unzipper/node_modules/readable-stream/writable-browser.js +0 -1
- package/node_modules/unzipper/node_modules/readable-stream/writable.js +0 -8
- package/node_modules/unzipper/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/unzipper/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/unzipper/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/unzipper/node_modules/safe-buffer/index.js +0 -62
- package/node_modules/unzipper/node_modules/safe-buffer/package.json +0 -37
- package/node_modules/unzipper/node_modules/string_decoder/.travis.yml +0 -50
- package/node_modules/unzipper/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/unzipper/node_modules/string_decoder/README.md +0 -47
- package/node_modules/unzipper/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/unzipper/node_modules/string_decoder/package.json +0 -31
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -29
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/zip-stream/node_modules/archiver-utils/LICENSE +0 -22
- package/node_modules/zip-stream/node_modules/archiver-utils/README.md +0 -6
- package/node_modules/zip-stream/node_modules/archiver-utils/file.js +0 -209
- package/node_modules/zip-stream/node_modules/archiver-utils/index.js +0 -149
- package/node_modules/zip-stream/node_modules/archiver-utils/package.json +0 -54
- /package/node_modules/{archiver-utils → compress-commons}/node_modules/readable-stream/LICENSE +0 -0
- /package/node_modules/{lazystream → crc32-stream}/node_modules/readable-stream/LICENSE +0 -0
- /package/node_modules/{unzipper → zip-stream}/node_modules/readable-stream/LICENSE +0 -0
|
@@ -350,6 +350,7 @@ export class SessionManager {
|
|
|
350
350
|
return false;
|
|
351
351
|
}
|
|
352
352
|
this.deps.setMessages(this.preserveCheckpointSources(result.messages, checkpointSources));
|
|
353
|
+
this.deps.setContextUsage?.(result.tokensAfter, true);
|
|
353
354
|
const newStatus = getContextStatus(result.messages, model, configStore.getModelContextWindow(model));
|
|
354
355
|
const verb = describeCompaction(result);
|
|
355
356
|
this.deps.addMessage({
|
|
@@ -375,13 +376,17 @@ export class SessionManager {
|
|
|
375
376
|
* Used when API returns "prompt too long" error.
|
|
376
377
|
*/
|
|
377
378
|
async forceCompact() {
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
const rewritten = await this.compactHistory(30, 5, undefined, undefined, 'target');
|
|
380
|
+
return rewritten !== null;
|
|
381
|
+
}
|
|
382
|
+
async compactHistory(percent = 30, keepRecentMin = 5, signal, sourceMessages, historyMode = 'handoff') {
|
|
383
|
+
const messages = sourceMessages ?? this.deps.getMessages();
|
|
384
|
+
if (messages.length < 3 || signal?.aborted)
|
|
385
|
+
return null;
|
|
381
386
|
const model = configStore.getModel();
|
|
382
387
|
const onUsage = this.deps.getUsageObserver?.();
|
|
383
388
|
const activityFinished = onUsage?.workerStarted?.();
|
|
384
|
-
const summarizer = this.buildSummarizer(onUsage);
|
|
389
|
+
const summarizer = this.buildSummarizer(onUsage, signal, messages);
|
|
385
390
|
const checkpointSources = this.captureCheckpointSources(messages);
|
|
386
391
|
this.deps.debugLog('[SessionManager.forceCompact] Forcing aggressive compaction');
|
|
387
392
|
try {
|
|
@@ -389,19 +394,24 @@ export class SessionManager {
|
|
|
389
394
|
// Forced recovery must shrink even when the history already fits 30% of
|
|
390
395
|
// that window; otherwise the next request repeats the same rejection.
|
|
391
396
|
const targetTokens = Math.max(1, Math.min(Math.floor((getContextWindowSize(model, configStore.getModelContextWindow(model)) || estimateConversationTokens(messages)) * 0.3), Math.floor(estimateConversationTokens(messages) / 2)));
|
|
392
|
-
const result = await compactMessages(messages, model, summarizer,
|
|
397
|
+
const result = await compactMessages(messages, model, summarizer, percent, keepRecentMin, targetTokens, undefined, historyMode);
|
|
398
|
+
if (signal?.aborted)
|
|
399
|
+
return null;
|
|
393
400
|
if (result.removed === 0) {
|
|
394
401
|
this.deps.debugLog('[SessionManager.forceCompact] Nothing to compact — all messages are recent or system');
|
|
395
|
-
return
|
|
402
|
+
return null;
|
|
396
403
|
}
|
|
397
|
-
this.
|
|
404
|
+
const rewritten = this.preserveCheckpointSources(result.messages, checkpointSources);
|
|
405
|
+
if (this.deps.setMessages)
|
|
406
|
+
this.deps.setMessages(rewritten);
|
|
407
|
+
this.deps.setContextUsage?.(result.tokensAfter, true);
|
|
398
408
|
const newStatus = getContextStatus(result.messages, model, configStore.getModelContextWindow(model));
|
|
399
409
|
this.deps.debugLog(`[SessionManager.forceCompact] Compacted ${result.removed} msgs: ${formatTokenCount(result.tokensBefore)} → ${formatTokenCount(result.tokensAfter)} (${Math.round(newStatus.percentage)}%)`);
|
|
400
|
-
return
|
|
410
|
+
return rewritten;
|
|
401
411
|
}
|
|
402
412
|
catch (err) {
|
|
403
413
|
this.deps.debugLog(`[SessionManager.forceCompact] Error: ${err.message}`);
|
|
404
|
-
return
|
|
414
|
+
return null;
|
|
405
415
|
}
|
|
406
416
|
finally {
|
|
407
417
|
activityFinished?.();
|
|
@@ -413,7 +423,8 @@ export class SessionManager {
|
|
|
413
423
|
startAutoSave(intervalMs) {
|
|
414
424
|
this.stopAutoSave();
|
|
415
425
|
this.autoSaveTimer = setInterval(() => {
|
|
416
|
-
|
|
426
|
+
// ZTC exits on an unhandled rejection; a failed background save once closed it mid-turn (2026-10-27).
|
|
427
|
+
void this.save().catch(error => this.deps.debugLog(`[SessionManager.save] Background save failed: ${String(error)}`));
|
|
417
428
|
}, intervalMs);
|
|
418
429
|
}
|
|
419
430
|
/**
|
|
@@ -465,9 +476,36 @@ export class SessionManager {
|
|
|
465
476
|
// Accepted corrections and original unresolved calls are never replaced
|
|
466
477
|
// by a summarizer's guess about delivery or completion. Read live state
|
|
467
478
|
// after the summarizer awaits so newly accepted sources also survive.
|
|
468
|
-
|
|
479
|
+
const summaryIndex = rebound.findIndex(message => message.metadata?.compactionSummary === true && !before.has(message.id));
|
|
480
|
+
if (summaryIndex < 0)
|
|
481
|
+
return [...rebound, ...structuredClone(sources)];
|
|
482
|
+
return [...rebound.slice(0, summaryIndex),
|
|
483
|
+
...structuredClone(sources.filter(message => before.has(message.id))),
|
|
484
|
+
...rebound.slice(summaryIndex),
|
|
485
|
+
...structuredClone(sources.filter(message => !before.has(message.id)))];
|
|
486
|
+
}
|
|
487
|
+
buildSummarizer(onUsage, signal, messages) {
|
|
488
|
+
const handoff = this.deps.getHandoffSummarizer?.(signal, messages);
|
|
489
|
+
if (handoff) {
|
|
490
|
+
const summarize = async (msgs) => {
|
|
491
|
+
summarize.handoffWritten = false;
|
|
492
|
+
try {
|
|
493
|
+
const summary = await handoff(msgs);
|
|
494
|
+
if (summary.trim()) {
|
|
495
|
+
summarize.handoffWritten = handoff.handoffWritten === true;
|
|
496
|
+
return summary;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
catch (err) {
|
|
500
|
+
this.deps.debugLog(`[SessionManager.buildSummarizer] Handoff failed: ${err.message}`);
|
|
501
|
+
}
|
|
502
|
+
return this.cheapSummarizer(onUsage)(msgs);
|
|
503
|
+
};
|
|
504
|
+
return summarize;
|
|
505
|
+
}
|
|
506
|
+
return this.cheapSummarizer(onUsage);
|
|
469
507
|
}
|
|
470
|
-
|
|
508
|
+
cheapSummarizer(onUsage) {
|
|
471
509
|
const provider = configStore.getProvider();
|
|
472
510
|
const apiKey = configStore.getApiKey(provider);
|
|
473
511
|
return async (msgs) => {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { Message } from '../types.js';
|
|
2
|
+
export declare const INTERRUPTED_TURN_MARKER: string;
|
|
3
|
+
export declare function interruptedTurnMarker(): Message;
|
|
4
|
+
export declare function isInterruptedTurnMarker(message: Message): boolean;
|
|
2
5
|
/** Preserve authored sources while bounding historical tool-result copies. */
|
|
3
6
|
export declare function prepareSessionMessages(messages: readonly Message[]): Message[];
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { describeDiagnosticTruncation, redactDiagnosticValue } from '../diagnostics/session_export.js';
|
|
2
2
|
import { stripEphemeralMessages } from '../utils/ephemeral.js';
|
|
3
|
+
export const INTERRUPTED_TURN_MARKER = 'The previous turn was interrupted by the user before it finished. '
|
|
4
|
+
+ 'Its partial output is context, not a completed result; continue the task or ask what to do next.';
|
|
5
|
+
export function interruptedTurnMarker() {
|
|
6
|
+
return {
|
|
7
|
+
id: `interrupted_turn_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`,
|
|
8
|
+
role: 'user',
|
|
9
|
+
content: INTERRUPTED_TURN_MARKER,
|
|
10
|
+
timestamp: new Date(),
|
|
11
|
+
metadata: { interruptedTurn: true, synthetic: true, hostContext: true, preserveUserBoundary: true },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export function isInterruptedTurnMarker(message) {
|
|
15
|
+
return message.metadata?.interruptedTurn === true;
|
|
16
|
+
}
|
|
17
|
+
/** Marks a result this module shortened, so a resumed session saved again keeps it as written. */
|
|
18
|
+
const SHORTENED = '\n[truncated — ';
|
|
3
19
|
/** Preserve authored sources while bounding historical tool-result copies. */
|
|
4
20
|
export function prepareSessionMessages(messages) {
|
|
5
21
|
const TOOL_RESULT_PERSIST_CAP = 2000;
|
|
@@ -8,6 +24,7 @@ export function prepareSessionMessages(messages) {
|
|
|
8
24
|
const credentialContext = messages.map(message => ({
|
|
9
25
|
content: message.content, args: message.toolCalls?.map(call => call.args) ?? [],
|
|
10
26
|
}));
|
|
27
|
+
// A resumed session reads a shortened result's rest with recall_tool_response, from the session store.
|
|
11
28
|
return stripEphemeralMessages(messages).map(m => {
|
|
12
29
|
if (!m.metadata?.toolResult)
|
|
13
30
|
return m;
|
|
@@ -20,11 +37,10 @@ export function prepareSessionMessages(messages) {
|
|
|
20
37
|
const trimmed = results.map(r => {
|
|
21
38
|
if (typeof r.content !== 'string' || r.content.length <= TOOL_RESULT_PERSIST_CAP)
|
|
22
39
|
return r;
|
|
23
|
-
const content = r.content.slice(0, TOOL_RESULT_PERSIST_CAP) + '…';
|
|
24
40
|
const prior = m.metadata?.toolResultTruncation;
|
|
25
41
|
const previous = prior && typeof prior === 'object'
|
|
26
42
|
? prior[r.tool_use_id] : undefined;
|
|
27
|
-
|
|
43
|
+
const recorded = previous && typeof previous === 'object' && 'originalBytes' in previous && 'retainedBytes' in previous
|
|
28
44
|
&& 'sha256' in previous && 'reference' in previous && 'availability' in previous
|
|
29
45
|
&& typeof previous.originalBytes === 'number' && Number.isSafeInteger(previous.originalBytes)
|
|
30
46
|
&& typeof previous.retainedBytes === 'number' && Number.isSafeInteger(previous.retainedBytes)
|
|
@@ -32,18 +48,24 @@ export function prepareSessionMessages(messages) {
|
|
|
32
48
|
&& typeof previous.sha256 === 'string' && /^[a-f0-9]{64}$/.test(previous.sha256)
|
|
33
49
|
&& previous.reference === `sha256:${previous.sha256}`
|
|
34
50
|
&& (previous.availability === 'unavailable' || previous.availability === 'truncated')
|
|
35
|
-
|
|
51
|
+
? previous : null;
|
|
52
|
+
// Shortened on an earlier save and loaded back by a resumed session; sessions saved
|
|
53
|
+
// before 2026-10-26 end the cut with '…'. Either is kept as written.
|
|
54
|
+
if (r.content.startsWith(SHORTENED, TOOL_RESULT_PERSIST_CAP)
|
|
55
|
+
|| (recorded && r.content === r.content.slice(0, TOOL_RESULT_PERSIST_CAP) + '…')) {
|
|
36
56
|
// An already trimmed checkpoint carries the original source identity.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const redacted = redactDiagnosticValue({ credentialContext, fullText: r.content,
|
|
43
|
-
retainedText: content }, { propertyNames: path => path.length > 0 });
|
|
44
|
-
const { field: _field, ...provenance } = describeDiagnosticTruncation('content', redacted.fullText, redacted.retainedText, 'unavailable');
|
|
45
|
-
truncations[r.tool_use_id] = provenance;
|
|
57
|
+
if (recorded)
|
|
58
|
+
truncations[r.tool_use_id] = { originalBytes: recorded.originalBytes,
|
|
59
|
+
retainedBytes: recorded.retainedBytes, sha256: recorded.sha256,
|
|
60
|
+
reference: recorded.reference, availability: recorded.availability };
|
|
61
|
+
return r;
|
|
46
62
|
}
|
|
63
|
+
const content = r.content.slice(0, TOOL_RESULT_PERSIST_CAP)
|
|
64
|
+
+ `${SHORTENED}${r.content.length} chars total; recall_tool_response tool_use_id=${r.tool_use_id} returns all of it]`;
|
|
65
|
+
const redacted = redactDiagnosticValue({ credentialContext, fullText: r.content,
|
|
66
|
+
retainedText: content }, { propertyNames: path => path.length > 0 });
|
|
67
|
+
const { field: _field, ...provenance } = describeDiagnosticTruncation('content', redacted.fullText, redacted.retainedText, 'unavailable');
|
|
68
|
+
truncations[r.tool_use_id] = provenance;
|
|
47
69
|
return { ...r, content };
|
|
48
70
|
});
|
|
49
71
|
const prior = m.metadata?.toolResultTruncation;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import type { WorkspaceCollisionSnapshot } from '../workspace_collision.js';
|
|
2
2
|
/** Display only: preserve the canonical inspection and its admission fingerprint. */
|
|
3
3
|
export declare function formatWorkspaceAdmissionDetails(snapshot: WorkspaceCollisionSnapshot): string;
|
|
4
|
+
/**
|
|
5
|
+
* The question the Workspace overlap chooser asks, in plain sentences built
|
|
6
|
+
* from the snapshot: which other sessions share this checkout or branch, what
|
|
7
|
+
* one is working on, and which files you both changed. Never the snapshot's
|
|
8
|
+
* reason strings, which carry session ids and evidence terms.
|
|
9
|
+
*/
|
|
10
|
+
export declare function describeWorkspaceOverlap(snapshot: WorkspaceCollisionSnapshot): string;
|
|
@@ -17,10 +17,54 @@ export function formatWorkspaceAdmissionDetails(snapshot) {
|
|
|
17
17
|
lines.push('Peer identity unavailable; inspect /sessions active for current evidence.');
|
|
18
18
|
return lines.join('\n');
|
|
19
19
|
}
|
|
20
|
+
const ASK = 'How should this session continue?';
|
|
21
|
+
const SHOWN_FILES = 3;
|
|
22
|
+
/**
|
|
23
|
+
* The question the Workspace overlap chooser asks, in plain sentences built
|
|
24
|
+
* from the snapshot: which other sessions share this checkout or branch, what
|
|
25
|
+
* one is working on, and which files you both changed. Never the snapshot's
|
|
26
|
+
* reason strings, which carry session ids and evidence terms.
|
|
27
|
+
*/
|
|
28
|
+
export function describeWorkspaceOverlap(snapshot) {
|
|
29
|
+
const { current, peers } = snapshot;
|
|
30
|
+
if (peers.length === 0)
|
|
31
|
+
return `ZTC could not confirm whether other sessions are using this checkout. ${ASK}`;
|
|
32
|
+
const branch = current.branch === null ? null : display(current.branch, 80, '');
|
|
33
|
+
const here = peers.filter(peer => current.repositoryRoot !== null && peer.repositoryRoot === current.repositoryRoot);
|
|
34
|
+
const sameBranch = branch !== null && peers.some(peer => peer.branch === current.branch);
|
|
35
|
+
// Each session by the id /sessions shows, so it can be found there.
|
|
36
|
+
const who = (group) => {
|
|
37
|
+
const ids = group.slice(0, MAX_PEERS).map(peer => display(peer.sessionId, 48, 'unknown session'));
|
|
38
|
+
const named = `(${ids.join(', ')}${group.length > MAX_PEERS ? ', …' : ''})`;
|
|
39
|
+
return group.length === 1 ? `Another ZTC session ${named} is` : `${group.length} other ZTC sessions ${named} are`;
|
|
40
|
+
};
|
|
41
|
+
const onBranch = sameBranch ? `, on branch ${branch}` : '';
|
|
42
|
+
const sentences = [here.length > 0
|
|
43
|
+
? `${who(here)} open in this checkout${onBranch}.`
|
|
44
|
+
: sameBranch
|
|
45
|
+
? `${who(peers)} on branch ${branch} in another checkout of this repository.`
|
|
46
|
+
: `${who(peers)} open in another checkout of this repository.`];
|
|
47
|
+
const task = peers.length === 1 ? peers[0].work?.task?.text : undefined;
|
|
48
|
+
if (task)
|
|
49
|
+
sentences.push(`It is working on “${display(task, 58, '')}”.`);
|
|
50
|
+
const shared = [...new Set(peers.flatMap(peer => peer.observedPaths.filter(path => current.observedPaths.includes(path))))]
|
|
51
|
+
.map(path => display(path, 80, ''));
|
|
52
|
+
if (shared.length > 0)
|
|
53
|
+
sentences.push(`You have both changed ${listFiles(shared)}.`);
|
|
54
|
+
// The warning is advisory: nothing stops either session.
|
|
55
|
+
sentences.push('ZTC does not lock files, so edits from both sessions can clash.');
|
|
56
|
+
return [...sentences, ASK].join(' ');
|
|
57
|
+
}
|
|
58
|
+
/** "a and b", "a, b and c", or the first three and how many more. */
|
|
59
|
+
function listFiles(paths) {
|
|
60
|
+
if (paths.length > SHOWN_FILES)
|
|
61
|
+
return `${paths.slice(0, SHOWN_FILES).join(', ')} and ${paths.length - SHOWN_FILES} more files`;
|
|
62
|
+
return paths.length === 1 ? paths[0] : `${paths.slice(0, -1).join(', ')} and ${paths.at(-1)}`;
|
|
63
|
+
}
|
|
20
64
|
function display(value, limit, unknown) {
|
|
21
65
|
const text = (value ?? '').replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029\u202a-\u202e\u2066-\u2069]/gu, ' ').trim();
|
|
22
66
|
if (text.length === 0)
|
|
23
67
|
return unknown;
|
|
24
68
|
const characters = Array.from(text);
|
|
25
|
-
return characters.length <= limit ? text : characters.slice(0, limit - 1).join('') + '…';
|
|
69
|
+
return characters.length <= limit ? text : characters.slice(0, limit - 1).join('').trimEnd() + '…';
|
|
26
70
|
}
|
package/dist/cli_args.js
CHANGED
|
@@ -4,7 +4,7 @@ const BOOLEAN_FLAGS = new Set([
|
|
|
4
4
|
]);
|
|
5
5
|
const REQUIRED_VALUE_FLAGS = new Set([
|
|
6
6
|
'--layout', '--layout-refresh-ms', '--layout-workers',
|
|
7
|
-
'--cwd', '--name', '--session-id', '--session-file', '--mode', '--agent-domain', '--domain-paths', '--embedded', '--embedded-rom', '--embedded-workflow', '--embedded-runtime-tick-ms', '--embedded-runtime-frame-budget', '--bench', '--bench-workflow', '--num-zergs', '--provider', '--model', '--auth-mode', '--router-url', '--profile', '--effort', '--thinking', '--emulation', '--prompt', '--max-iterations', '--timeout', '--output', '--voyager-task', '--voyager-max-rounds', '--mirror-port', '--navigator-group', '--connect-zerg',
|
|
7
|
+
'--cwd', '--name', '--session-id', '--session-file', '--mode', '--agent-domain', '--domain-paths', '--embedded', '--embedded-rom', '--embedded-workflow', '--embedded-runtime-tick-ms', '--embedded-runtime-frame-budget', '--bench', '--bench-workflow', '--num-zergs', '--provider', '--model', '--auth-mode', '--router-url', '--profile', '--effort', '--thinking', '--emulation', '--prompt', '--max-iterations', '--timeout', '--output', '--output-schema', '--trajectory-jsonl', '--voyager-task', '--voyager-max-rounds', '--mirror-port', '--navigator-group', '--connect-zerg',
|
|
8
8
|
]);
|
|
9
9
|
const OPTIONAL_VALUE_FLAGS = new Set(['--resume', '--continue', '-c', '--sfx']);
|
|
10
10
|
/** Separate prompt text from options before the legacy flag consumers see it. */
|
package/dist/cli_main.js
CHANGED
|
@@ -109,7 +109,7 @@ if (commandArgs[0] === 'config' && commandArgs[1] === 'reset') {
|
|
|
109
109
|
const { configStore } = await import('./config.js');
|
|
110
110
|
const { createInterface } = await import('node:readline/promises');
|
|
111
111
|
const path = configStore.getConfigPath();
|
|
112
|
-
console.log(`Factory reset settings and
|
|
112
|
+
console.log(`Factory reset settings and the ZergAI login for ${path}. This deletes the API keys, OpenAI-compatible endpoint, account registrations, voice keys and MCP servers saved there. Sessions and managed account directories will be kept.`);
|
|
113
113
|
const input = createInterface({ input: process.stdin, output: process.stdout });
|
|
114
114
|
let answer;
|
|
115
115
|
try {
|
|
@@ -264,7 +264,7 @@ if (args.includes('--help') || args.includes('-h')) {
|
|
|
264
264
|
ZTC - Zerg Terminal Client v${version}
|
|
265
265
|
|
|
266
266
|
Usage: ztc [options] [prompt]
|
|
267
|
-
ztc auth <login|status|logout>
|
|
267
|
+
ztc auth <login|cancel|status|readiness|billing|logout>
|
|
268
268
|
ztc inbox list|show <req-ID>|receive --file <request.json> [--json]
|
|
269
269
|
ztc config reset [--profile <name>]
|
|
270
270
|
ztc resume [id]
|
|
@@ -361,6 +361,11 @@ Headless Mode (for automation/CI):
|
|
|
361
361
|
--verbose Show detailed debug output
|
|
362
362
|
--output <file> Save final assistant response to file
|
|
363
363
|
Set ZTC_HEADLESS_SHELL_MODE=stub to keep headless shell calls inert
|
|
364
|
+
--output-schema <file>
|
|
365
|
+
Require each prompt's final response to be JSON valid against
|
|
366
|
+
this schema (one repair turn; writes only validated JSON; exit 3)
|
|
367
|
+
--trajectory-jsonl <path>
|
|
368
|
+
Append tool_call/tool_result/file_change records as JSONL
|
|
364
369
|
|
|
365
370
|
Voyager Loop Mode (autonomous computer use with auto-continuation):
|
|
366
371
|
--voyager-loop Enable Voyager loop (auto-continue until task complete)
|
|
@@ -475,7 +480,7 @@ Keyboard Shortcuts:
|
|
|
475
480
|
Esc Close completion, keep input
|
|
476
481
|
Ctrl+U Clear input line
|
|
477
482
|
Ctrl+W Delete word
|
|
478
|
-
|
|
483
|
+
Home Move to start of line
|
|
479
484
|
Ctrl+E Move to end of line
|
|
480
485
|
Ctrl+I Paste image from clipboard
|
|
481
486
|
`);
|
|
@@ -707,6 +712,12 @@ if (outputIndex >= 0) {
|
|
|
707
712
|
headlessOutputFile = outputArg;
|
|
708
713
|
}
|
|
709
714
|
}
|
|
715
|
+
const headlessOutputSchemaFile = args.includes('--output-schema')
|
|
716
|
+
? required_flag_value('--output-schema', 'Error: --output-schema requires a JSON Schema file')
|
|
717
|
+
: undefined;
|
|
718
|
+
const headlessTrajectoryJsonl = args.includes('--trajectory-jsonl')
|
|
719
|
+
? required_flag_value('--trajectory-jsonl', 'Error: --trajectory-jsonl requires a path')
|
|
720
|
+
: undefined;
|
|
710
721
|
// Parse --pane flag for child pane mode (fullscreen, no scrollback)
|
|
711
722
|
const paneMode = args.includes('--pane');
|
|
712
723
|
const humanSimPane = args.includes('--human-sim-pane');
|
|
@@ -1262,6 +1273,10 @@ async function main() {
|
|
|
1262
1273
|
}
|
|
1263
1274
|
}
|
|
1264
1275
|
debugLog('[main] Running in headless mode');
|
|
1276
|
+
// Start the git scan before loading the headless module graph so the two
|
|
1277
|
+
// overlap; HeadlessApp.init joins this scan instead of starting another.
|
|
1278
|
+
const { prefetchStartupGitSnapshot } = await import('./runtime_info.js');
|
|
1279
|
+
prefetchStartupGitSnapshot(process.cwd());
|
|
1265
1280
|
const { runHeadless } = await import('./headless.js');
|
|
1266
1281
|
await runHeadless({
|
|
1267
1282
|
detachEnvironment: args.includes('--detach-environment'),
|
|
@@ -1279,6 +1294,8 @@ async function main() {
|
|
|
1279
1294
|
timeout: headlessTimeout,
|
|
1280
1295
|
verbose: headlessVerbose,
|
|
1281
1296
|
outputFile: headlessOutputFile,
|
|
1297
|
+
outputSchemaFile: headlessOutputSchemaFile,
|
|
1298
|
+
trajectoryJsonl: headlessTrajectoryJsonl,
|
|
1282
1299
|
computerUse: computerUseMode,
|
|
1283
1300
|
ml: mlMode,
|
|
1284
1301
|
muxMode: muxMode,
|
package/dist/cli_ratatui.d.ts
CHANGED
|
@@ -117,7 +117,6 @@ export declare class RatatuiApp {
|
|
|
117
117
|
*/
|
|
118
118
|
private killRing;
|
|
119
119
|
private killRingIndex;
|
|
120
|
-
private showYankHint;
|
|
121
120
|
private static readonly KILL_RING_MAX;
|
|
122
121
|
private agent;
|
|
123
122
|
/** Mode the current `agent` was built for. Lets runAgent rebuild the agent
|
|
@@ -194,6 +193,8 @@ export declare class RatatuiApp {
|
|
|
194
193
|
private lastRenderIntervalMs;
|
|
195
194
|
private lastInputAt;
|
|
196
195
|
private lastInputToRenderMs;
|
|
196
|
+
private lastCacheActivityAt;
|
|
197
|
+
private idleCompaction;
|
|
197
198
|
private debug;
|
|
198
199
|
private exitResolve;
|
|
199
200
|
private readonly exitComplete;
|
|
@@ -220,6 +221,7 @@ export declare class RatatuiApp {
|
|
|
220
221
|
private desktopShareCapture;
|
|
221
222
|
private readonly desktopShareRequests;
|
|
222
223
|
private desktopTaskRelayUnsubscribe;
|
|
224
|
+
private streamAttemptStart;
|
|
223
225
|
private currentRunStreamed;
|
|
224
226
|
private _promptTooLongRetried;
|
|
225
227
|
private toolGroups;
|
|
@@ -245,6 +247,8 @@ export declare class RatatuiApp {
|
|
|
245
247
|
private pendingBusTrigger;
|
|
246
248
|
private flushingQueue;
|
|
247
249
|
private agentTurnOwner;
|
|
250
|
+
/** Required selects published to the mirror, by id, with their option values. */
|
|
251
|
+
private readonly requiredMirrorWidgets;
|
|
248
252
|
private readonly agentTurnSettlements;
|
|
249
253
|
private cancelledTurnOwner;
|
|
250
254
|
private escapeStopArm;
|
|
@@ -402,12 +406,16 @@ export declare class RatatuiApp {
|
|
|
402
406
|
private transcriptCols;
|
|
403
407
|
private transcriptExpandToolOutputs;
|
|
404
408
|
private transcriptShowThinking;
|
|
409
|
+
/** Images the terminal has been sent for Kitty placeholders (see ui/terminal_image.ts). */
|
|
410
|
+
private readonly kittyImageUploads;
|
|
405
411
|
/** Per-message render cache: a rebuild only re-renders messages whose
|
|
406
412
|
* rendering inputs changed (see ui/transcript_render_cache.ts). */
|
|
407
413
|
private readonly transcriptRenderCache;
|
|
408
414
|
/** Fingerprint of the last transcript actually shipped, so an idle rebuild
|
|
409
415
|
* (identical content) skips re-serialising and re-sending the whole buffer. */
|
|
410
416
|
private transcriptShipped;
|
|
417
|
+
/** Rows of the transcript last built for zmux: a compact select sits right under them (see render). */
|
|
418
|
+
private transcriptRows;
|
|
411
419
|
private static TRANSCRIPT_REBUILD_THROTTLE_MS;
|
|
412
420
|
private desktopMode;
|
|
413
421
|
private desktopRuntime;
|
|
@@ -432,6 +440,8 @@ export declare class RatatuiApp {
|
|
|
432
440
|
* leak to new child panes (which should use configStore.getModel()). */
|
|
433
441
|
private overseerModelOverride;
|
|
434
442
|
private paneMode;
|
|
443
|
+
/** Turns completed in this session, which pace Zerg Router login tips. */
|
|
444
|
+
private routerTipTurns;
|
|
435
445
|
private computerUseMode;
|
|
436
446
|
private mlMode;
|
|
437
447
|
private numZergsGrid;
|
|
@@ -444,6 +454,12 @@ export declare class RatatuiApp {
|
|
|
444
454
|
private benchWorkflowId;
|
|
445
455
|
private backgroundPollTimer;
|
|
446
456
|
private intakePollTimer;
|
|
457
|
+
/** Stops refreshConnectedState from following config changes. */
|
|
458
|
+
private stopFollowingConfig;
|
|
459
|
+
/** Stops refreshConnectedState from following a ZergAI login's wait. */
|
|
460
|
+
private stopFollowingLogin;
|
|
461
|
+
/** The connection snapshot last given to which mirror server, as JSON. */
|
|
462
|
+
private publishedConnection;
|
|
447
463
|
private intakeNotifications;
|
|
448
464
|
private readonly BACKGROUND_POLL_INTERVAL;
|
|
449
465
|
private zmuxLayoutPaneCount;
|
|
@@ -486,6 +502,7 @@ export declare class RatatuiApp {
|
|
|
486
502
|
private flushLocalStreamDelta;
|
|
487
503
|
/** Close the displayed phase before another kind of output starts. */
|
|
488
504
|
private finishLocalStreamingMessages;
|
|
505
|
+
private dropStreamingMessages;
|
|
489
506
|
private clearLocalStreamDelta;
|
|
490
507
|
private rememberToolOutputFull;
|
|
491
508
|
private makeToolOutputMetadata;
|
|
@@ -533,6 +550,13 @@ export declare class RatatuiApp {
|
|
|
533
550
|
* command that changes what the agent should be.
|
|
534
551
|
*/
|
|
535
552
|
private reloadAgentInPlace;
|
|
553
|
+
/**
|
|
554
|
+
* The rebuild commands ask for after they saved a change. When the current
|
|
555
|
+
* route cannot reach a model yet (no key, signed out), the saved change still
|
|
556
|
+
* stands: the agent is dropped and the next message builds one or asks for
|
|
557
|
+
* the missing key.
|
|
558
|
+
*/
|
|
559
|
+
private reloadAgentAfterCommand;
|
|
536
560
|
/** Change the active config while retaining this renderer's session and transcript. */
|
|
537
561
|
private switchConfigProfileInPlace;
|
|
538
562
|
/**
|
|
@@ -540,6 +564,12 @@ export declare class RatatuiApp {
|
|
|
540
564
|
* Live changes are pushed over the socket afterwards (`set_keybindings`).
|
|
541
565
|
*/
|
|
542
566
|
private zmuxKeymapEnv;
|
|
567
|
+
/**
|
|
568
|
+
* A required select ends only in one of its choices. The browser offers no
|
|
569
|
+
* Close for it, and an answer that is none of its options (a null close
|
|
570
|
+
* included) leaves it open on both sides.
|
|
571
|
+
*/
|
|
572
|
+
private refusesMirrorClose;
|
|
543
573
|
private clearLegacyCommandPrompt;
|
|
544
574
|
private buildCommandContext;
|
|
545
575
|
/**
|
|
@@ -704,6 +734,14 @@ export declare class RatatuiApp {
|
|
|
704
734
|
private cancelStreamTypewriter;
|
|
705
735
|
private pruneStreamTypewriters;
|
|
706
736
|
private messageToScrollbackLines;
|
|
737
|
+
/**
|
|
738
|
+
* Whether the launch welcome draws the ZTC wordmark. It shows only whole:
|
|
739
|
+
* once the launch transcript cannot fit above the open connect prompt (see
|
|
740
|
+
* render), the welcome leaves it out for the rest of the session, as the
|
|
741
|
+
* site's film drops the banner on a short screen.
|
|
742
|
+
*/
|
|
743
|
+
private showsLaunchWordmark;
|
|
744
|
+
private launchWordmarkFits;
|
|
707
745
|
private messageHeaderToScrollbackLine;
|
|
708
746
|
private renderMarkdownToScrollback;
|
|
709
747
|
private processMarkdownLine;
|
|
@@ -781,6 +819,8 @@ export declare class RatatuiApp {
|
|
|
781
819
|
* in the persisted session file. See utils/ephemeral.ts.
|
|
782
820
|
*/
|
|
783
821
|
private addSystemMessage;
|
|
822
|
+
/** Escape or Ctrl+C while a ZergAI login waits: stop it, as /auth cancel does. */
|
|
823
|
+
private stopWaitingLogin;
|
|
784
824
|
/**
|
|
785
825
|
* Codex-style interrupt notice: the run stopped, the transcript so far stays.
|
|
786
826
|
* Marked with `interrupted` so the renderer can style it and so tests can
|
|
@@ -823,8 +863,12 @@ export declare class RatatuiApp {
|
|
|
823
863
|
* of every spawned ZTC pane.
|
|
824
864
|
*
|
|
825
865
|
* Inline fills the terminal except for one shell row. The transcript remains
|
|
826
|
-
* in terminal scrollback when it no longer fits the live view.
|
|
827
|
-
*
|
|
866
|
+
* in terminal scrollback when it no longer fits the live view.
|
|
867
|
+
*
|
|
868
|
+
* The desktop app runs in mux mode too, but ZTerm draws its tab strip and
|
|
869
|
+
* status bar outside the grid it reports, at launch and on resize alike, so
|
|
870
|
+
* every row is ours. Taking the zmux rule left a blank row under the status
|
|
871
|
+
* line.
|
|
828
872
|
*/
|
|
829
873
|
private viewportHeightFor;
|
|
830
874
|
private handleTuiEvent;
|
|
@@ -877,6 +921,50 @@ export declare class RatatuiApp {
|
|
|
877
921
|
*/
|
|
878
922
|
private setInputToText;
|
|
879
923
|
private handleSubmit;
|
|
924
|
+
/**
|
|
925
|
+
* Whether a typed message can reach a model, judged by the route the agent
|
|
926
|
+
* would be built for. Besides a buildable route, agent construction falls back
|
|
927
|
+
* to a legacy platform login outside direct routing (never for Modal). A route
|
|
928
|
+
* that fails to resolve keeps the older check, so agent construction reports
|
|
929
|
+
* its specific error.
|
|
930
|
+
*/
|
|
931
|
+
private resolveSendRoute;
|
|
932
|
+
/**
|
|
933
|
+
* The one owner of the connected state the composer placeholder and the
|
|
934
|
+
* status dot show: whether a message could reach a model now. It runs after
|
|
935
|
+
* every command and after every saved or reloaded config change, which
|
|
936
|
+
* covers keys saved or removed from prompts and the settings panel,
|
|
937
|
+
* provider and route switches, ZergAI login and logout, and the launch
|
|
938
|
+
* prompt.
|
|
939
|
+
*/
|
|
940
|
+
private refreshConnectedState;
|
|
941
|
+
/**
|
|
942
|
+
* Give the mirror's settings page the Connection state (the ZergAI login
|
|
943
|
+
* and each key's source, masked) when it changed or the mirror is new.
|
|
944
|
+
*/
|
|
945
|
+
private publishConnectionState;
|
|
946
|
+
/** True while the composer holds text, including keys still in the typing buffer. */
|
|
947
|
+
private composerHasDraft;
|
|
948
|
+
/** The connect prompt ZTC opens by itself at launch (see showConnectPrompt). */
|
|
949
|
+
/**
|
|
950
|
+
* Whether this launch asks how to connect (see the call in start), short of
|
|
951
|
+
* a draft typed while ZTC started, which only the moment of asking knows.
|
|
952
|
+
* The launch readout leaves the ways to connect to the prompt when it asks.
|
|
953
|
+
*/
|
|
954
|
+
private launchConnectPromptWanted;
|
|
955
|
+
private showLaunchConnectPrompt;
|
|
956
|
+
/** Launch notices held until the launch connect flow ends; null when none are held. */
|
|
957
|
+
private heldLaunchNotices;
|
|
958
|
+
/** Show a launch notice (saved work, a task handoff), or hold it while the launch choice runs. */
|
|
959
|
+
private showLaunchNotice;
|
|
960
|
+
private releaseLaunchNotices;
|
|
961
|
+
/**
|
|
962
|
+
* Ask for the API key a direct route is missing, then send `input` as typed.
|
|
963
|
+
* On cancel the text goes back to the composer. Only input typed in this
|
|
964
|
+
* terminal or its mirror asks: queued input and pane children keep the setup
|
|
965
|
+
* message, and an open widget is never replaced.
|
|
966
|
+
*/
|
|
967
|
+
private askForSendCredential;
|
|
880
968
|
private localWorkspace;
|
|
881
969
|
private retireWorkspaceChoice;
|
|
882
970
|
/** Only accepted-but-unadmitted sources belong to this local pause. */
|
|
@@ -1076,6 +1164,7 @@ export declare class RatatuiApp {
|
|
|
1076
1164
|
* Start the auto-save timer
|
|
1077
1165
|
*/
|
|
1078
1166
|
private startAutoSave;
|
|
1167
|
+
private idleCompactionInput;
|
|
1079
1168
|
/**
|
|
1080
1169
|
* Save the current session to disk
|
|
1081
1170
|
*/
|
|
@@ -1125,6 +1214,7 @@ export declare class RatatuiApp {
|
|
|
1125
1214
|
private recordHandoffCorrection;
|
|
1126
1215
|
private captureHandoffCorrections;
|
|
1127
1216
|
private markHandoffDelivery;
|
|
1217
|
+
private buildHandoffSummarizer;
|
|
1128
1218
|
private ensureSessionManager;
|
|
1129
1219
|
/**
|
|
1130
1220
|
* Whether a message draws a row in the transcript.
|
|
@@ -1313,6 +1403,8 @@ export declare class RatatuiApp {
|
|
|
1313
1403
|
* can never make `/resume` feel hung.
|
|
1314
1404
|
*/
|
|
1315
1405
|
private openResumePanel;
|
|
1406
|
+
/** /rewind and two idle Escapes open the picker only between turns. */
|
|
1407
|
+
private openRewindPanelWhenIdle;
|
|
1316
1408
|
/**
|
|
1317
1409
|
* Explicit /rewind prompt picker. Lists the prompts of this session and rewinds
|
|
1318
1410
|
* to the chosen one: everything from that prompt on leaves the transcript and
|