@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
|
@@ -6,10 +6,19 @@
|
|
|
6
6
|
* from the session's disk-backed store. An executed recall always returns
|
|
7
7
|
* bounded source bytes: selector intent alone cannot prove that the final
|
|
8
8
|
* request retains the full original result after historical preview limits.
|
|
9
|
+
*
|
|
10
|
+
* The store and the plain-text copies of shortened output (tool_output_copies.ts)
|
|
11
|
+
* cover for each other (user 2026-10-26): a recalled result names its copy and
|
|
12
|
+
* writes it again when the OS has cleared it, and a copy answers when the store
|
|
13
|
+
* no longer holds the result. A command's whole stdout, stderr or failed output
|
|
14
|
+
* exists only as a copy, read with `part`.
|
|
9
15
|
*/
|
|
16
|
+
import { createHash } from 'node:crypto';
|
|
17
|
+
import { readFile } from 'node:fs/promises';
|
|
10
18
|
import { ToolCapability } from '../runtime/capabilities.js';
|
|
11
19
|
import { captureHelperRequirements } from './helper_requirements.js';
|
|
12
20
|
import { describeOffloadPlaceholderFormat } from '../tool_response_store.js';
|
|
21
|
+
import { copyMatchesDigest, COPY_PARTS, findCopy, readCopyChunk, saveCopy } from '../../utils/tool_output_copies.js';
|
|
13
22
|
export const recallToolResponseTool = captureHelperRequirements({
|
|
14
23
|
capabilities: [ToolCapability.FILE_READ],
|
|
15
24
|
definition: {
|
|
@@ -17,7 +26,9 @@ export const recallToolResponseTool = captureHelperRequirements({
|
|
|
17
26
|
description: 'Rehydrates a previously offloaded tool result. ' +
|
|
18
27
|
`Use this when a tool result appears in context as a "${describeOffloadPlaceholderFormat()}" placeholder ` +
|
|
19
28
|
'and you need the original data. Source bytes are returned directly here; large original results may remain previews. ' +
|
|
20
|
-
'Use cursor and max_bytes for bounded source retrieval; repeat at nextCursor until complete. Find forgotten IDs with session_evidence. Missing sources remain unknown.'
|
|
29
|
+
'Use cursor and max_bytes for bounded source retrieval; repeat at nextCursor until complete. Find forgotten IDs with session_evidence. Missing sources remain unknown. ' +
|
|
30
|
+
'Also reads the full output that a "full output: <file> (also recall_tool_response ...)" note names: the reply gives that file, which read_file and search can open; ' +
|
|
31
|
+
'part=stdout, stderr or output reads a command\'s whole output.',
|
|
21
32
|
parameters: {
|
|
22
33
|
type: 'object',
|
|
23
34
|
properties: {
|
|
@@ -27,6 +38,7 @@ export const recallToolResponseTool = captureHelperRequirements({
|
|
|
27
38
|
},
|
|
28
39
|
cursor: { type: 'integer', description: 'UTF-8 byte cursor, default0.', minimum: 0 },
|
|
29
40
|
max_bytes: { type: 'integer', description: 'Maximum source bytes, default8192, maximum32768.', minimum: 1, maximum: 32768 },
|
|
41
|
+
part: { type: 'string', enum: [...COPY_PARTS], description: 'result (default): the tool result. stdout, stderr, output: a command\'s whole output, as its note names it.' },
|
|
30
42
|
},
|
|
31
43
|
required: ['tool_use_id'],
|
|
32
44
|
},
|
|
@@ -44,29 +56,60 @@ export const recallToolResponseTool = captureHelperRequirements({
|
|
|
44
56
|
if (!context) {
|
|
45
57
|
throw new Error('recall_tool_response: missing ToolContext (store unavailable).');
|
|
46
58
|
}
|
|
59
|
+
const part = (args.part ?? 'result');
|
|
60
|
+
if (!COPY_PARTS.includes(part))
|
|
61
|
+
throw new Error(`recall_tool_response: part must be one of ${COPY_PARTS.join(', ')}.`);
|
|
62
|
+
const cursor = args.cursor, maxBytes = args.max_bytes;
|
|
63
|
+
if (maxBytes !== undefined && (!Number.isSafeInteger(maxBytes) || maxBytes <= 0 || maxBytes > 32768))
|
|
64
|
+
throw new RangeError('maxBytes must be an integer between 1 and 32768');
|
|
65
|
+
if (cursor !== undefined && (!Number.isSafeInteger(cursor) || cursor < 0))
|
|
66
|
+
throw new RangeError('cursor must be a nonnegative safe byte offset');
|
|
47
67
|
const store = context.toolResponseStore;
|
|
48
|
-
const chunk = await store.getChunk(id, {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
68
|
+
const chunk = part === 'result' ? await store.getChunk(id, { cursor, maxBytes }) : null;
|
|
69
|
+
if (chunk !== null) {
|
|
70
|
+
// Mark recalled so the selector treats this entry as priority-4 from now
|
|
71
|
+
// on — it gets a budget allocation but cannot starve newer turns.
|
|
72
|
+
if (chunk.complete && args.cursor === undefined && args.max_bytes === undefined)
|
|
73
|
+
store.markRecalled(id);
|
|
74
|
+
const meta = store.getMeta(id);
|
|
75
|
+
// The copy is written again when the OS has cleared it; an ephemeral result keeps none.
|
|
76
|
+
const content = meta?.ephemeral ? null : await store.get(id);
|
|
77
|
+
const folder = store.outputCopyDir();
|
|
78
|
+
const file = content === null || !folder ? null : saveCopy(folder, id, 'result', content);
|
|
52
79
|
return JSON.stringify({
|
|
53
|
-
ok:
|
|
80
|
+
ok: true,
|
|
54
81
|
tool_use_id: id,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
82
|
+
meta,
|
|
83
|
+
...chunk,
|
|
84
|
+
...(file ? { file } : {}),
|
|
58
85
|
});
|
|
59
86
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
if (
|
|
63
|
-
|
|
64
|
-
|
|
87
|
+
const folder = store.outputCopyDir();
|
|
88
|
+
const file = folder ? findCopy(folder, id, part) : null;
|
|
89
|
+
if (file && !copyMatchesDigest(file)) {
|
|
90
|
+
return JSON.stringify({ ok: false, tool_use_id: id, ...(part === 'result' ? {} : { part }), file, verification: 'unknown',
|
|
91
|
+
availability: 'unavailable', error: 'the copy at this file does not match the digest recorded when it was written; it was changed after the call' });
|
|
92
|
+
}
|
|
93
|
+
// A result's copy stands in for the session's source only when it matches the digest recorded for that result.
|
|
94
|
+
const recorded = part === 'result' ? store.getMeta(id)?.result_sha256 ?? store.evidence.getSnapshot().records
|
|
95
|
+
.flatMap(record => record.kind === 'observation' && record.source.toolCallId === id ? [record.resultSha256] : [])[0] : undefined;
|
|
96
|
+
if (file && recorded && createHash('sha256').update(await readFile(file)).digest('hex') !== recorded) {
|
|
97
|
+
return JSON.stringify({ ok: false, tool_use_id: id, file, verification: 'unknown', availability: 'unavailable',
|
|
98
|
+
error: 'the copy at this file does not match the result recorded for this call; it was changed or belongs to another result' });
|
|
99
|
+
}
|
|
100
|
+
const copied = file ? readCopyChunk(file, cursor, maxBytes) : null;
|
|
101
|
+
if (file && copied) {
|
|
102
|
+
return JSON.stringify({ ok: true, tool_use_id: id, part, file, ...copied, availability: 'copy' });
|
|
103
|
+
}
|
|
65
104
|
return JSON.stringify({
|
|
66
|
-
ok:
|
|
105
|
+
ok: false,
|
|
67
106
|
tool_use_id: id,
|
|
68
|
-
|
|
69
|
-
|
|
107
|
+
...(part === 'result' ? {} : { part }),
|
|
108
|
+
verification: 'unknown', availability: 'unavailable',
|
|
109
|
+
sourceDiscovery: store.getDirectoryAdmission(),
|
|
110
|
+
error: part === 'result'
|
|
111
|
+
? 'offloaded response no longer available (session may have been rotated or the file removed)'
|
|
112
|
+
: `no ${part} copy for this call (the OS may have cleared it, or the output was never shortened)`,
|
|
70
113
|
});
|
|
71
114
|
},
|
|
72
115
|
});
|
|
@@ -4,6 +4,7 @@ import { readFile, unlink } from 'fs/promises';
|
|
|
4
4
|
import { tmpdir } from 'os';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
import { ToolCapability } from '../runtime/capabilities.js';
|
|
7
|
+
import { buildUserSubprocessEnv } from '../../utils/subprocess_env.js';
|
|
7
8
|
const execAsync = promisify(exec);
|
|
8
9
|
// --- Helper Functions ---
|
|
9
10
|
async function getWindowListMac() {
|
|
@@ -648,14 +649,15 @@ export const runAndMonitorTool = {
|
|
|
648
649
|
required: ['command']
|
|
649
650
|
}
|
|
650
651
|
},
|
|
651
|
-
execute: async (args) => {
|
|
652
|
+
execute: async (args, context) => {
|
|
652
653
|
const command = String(args.command);
|
|
653
654
|
const waitMs = args.waitMs !== undefined ? Number(args.waitMs) : 2000;
|
|
654
655
|
const appName = args.app ? String(args.app) : undefined;
|
|
655
656
|
// Launch the application
|
|
656
657
|
try {
|
|
657
|
-
// Use spawn behavior - don't wait for command to finish
|
|
658
|
-
|
|
658
|
+
// Use spawn behavior - don't wait for command to finish. The command is
|
|
659
|
+
// model-chosen, so it gets the tool-child env, never ZTC's credentials.
|
|
660
|
+
execAsync(command, { timeout: 5000, env: buildUserSubprocessEnv(context?.subprocessEnv) }).catch(() => { });
|
|
659
661
|
}
|
|
660
662
|
catch {
|
|
661
663
|
// Ignore - app may have launched successfully even if command returns
|
|
@@ -2,6 +2,8 @@ import { spawn } from 'child_process';
|
|
|
2
2
|
import { resolve } from 'path';
|
|
3
3
|
import { existsSync } from 'fs';
|
|
4
4
|
import { ToolCapability } from '../runtime/capabilities.js';
|
|
5
|
+
import { buildUserSubprocessEnv } from '../../utils/subprocess_env.js';
|
|
6
|
+
import { containerPath, dockerTarget } from '../../utils/docker_target.js';
|
|
5
7
|
const SEARCH_TIMEOUT_MS = 30_000;
|
|
6
8
|
const MAX_OUTPUT_BYTES = 1_048_576;
|
|
7
9
|
const HOME_EXCLUDES = [
|
|
@@ -24,7 +26,7 @@ function runCommand(command, args, cwd, opts) {
|
|
|
24
26
|
const timeoutMs = opts?.timeoutMs ?? SEARCH_TIMEOUT_MS;
|
|
25
27
|
const maxBytes = opts?.maxBytes ?? MAX_OUTPUT_BYTES;
|
|
26
28
|
return new Promise((resolveResult, reject) => {
|
|
27
|
-
const child = spawn(command, args, { cwd });
|
|
29
|
+
const child = spawn(command, args, { cwd, env: buildUserSubprocessEnv(opts?.env) });
|
|
28
30
|
let stdout = '';
|
|
29
31
|
let stderr = '';
|
|
30
32
|
let outBytes = 0;
|
|
@@ -130,14 +132,19 @@ export const searchTool = {
|
|
|
130
132
|
execute: async (args, context) => {
|
|
131
133
|
const baseCwd = context?.cwd || process.cwd();
|
|
132
134
|
const pattern = String(args.pattern || '');
|
|
133
|
-
const
|
|
135
|
+
const docker = dockerTarget();
|
|
136
|
+
const searchPath = docker ? containerPath(docker, String(args.path || '.')) : resolve(baseCwd, String(args.path || '.'));
|
|
137
|
+
// `docker exec` reports a missing executable as exit 126/127, which takes the grep fallback below.
|
|
138
|
+
const search = (command, commandArgs, opts) => docker
|
|
139
|
+
? runCommand('docker', ['exec', '-w', docker.workdir, docker.container, command, ...commandArgs], baseCwd, { ...opts, env: context?.subprocessEnv })
|
|
140
|
+
: runCommand(command, commandArgs, baseCwd, { ...opts, env: context?.subprocessEnv });
|
|
134
141
|
const glob = args.glob ? String(args.glob) : undefined;
|
|
135
142
|
const outputMode = args.output_mode === 'files' ? 'files' : 'content';
|
|
136
143
|
const maxResults = Math.max(1, Math.min(200, parseInt(String(args.max_results || '20'), 10)));
|
|
137
144
|
if (!pattern) {
|
|
138
145
|
throw new Error('Search pattern is required');
|
|
139
146
|
}
|
|
140
|
-
const inRepo = isInsideGitRepo(searchPath);
|
|
147
|
+
const inRepo = docker ? false : isInsideGitRepo(searchPath);
|
|
141
148
|
const rgArgs = [];
|
|
142
149
|
rgArgs.push('--max-filesize', '1M');
|
|
143
150
|
if (!inRepo) {
|
|
@@ -158,10 +165,11 @@ export const searchTool = {
|
|
|
158
165
|
if (glob) {
|
|
159
166
|
rgArgs.push('-g', glob);
|
|
160
167
|
}
|
|
161
|
-
|
|
168
|
+
// --regexp keeps a pattern that starts with "-" from being parsed as a flag.
|
|
169
|
+
rgArgs.push('--regexp', pattern, searchPath);
|
|
162
170
|
let result = null;
|
|
163
171
|
try {
|
|
164
|
-
result = await
|
|
172
|
+
result = await search('rg', rgArgs);
|
|
165
173
|
}
|
|
166
174
|
catch {
|
|
167
175
|
result = null;
|
|
@@ -173,15 +181,16 @@ export const searchTool = {
|
|
|
173
181
|
// expensive traversal with an even slower tool.
|
|
174
182
|
if (!result || (result.code !== 0 && result.code !== 1 && !result.timedOut && !result.truncated)) {
|
|
175
183
|
// -H forces the filename even for a single-file search; -l lists files
|
|
176
|
-
// only, matching the files-mode contract.
|
|
177
|
-
|
|
184
|
+
// only, matching the files-mode contract. -E reads the pattern as an
|
|
185
|
+
// extended regex, the grep syntax closest to ripgrep's (| + ? {n}).
|
|
186
|
+
const grepArgs = outputMode === 'files' ? ['-R', '-E', '-l', '-H'] : ['-R', '-E', '-n', '-H'];
|
|
178
187
|
if (!inRepo) {
|
|
179
188
|
for (const ex of HOME_EXCLUDES) {
|
|
180
189
|
grepArgs.push(`--exclude-dir=${ex}`);
|
|
181
190
|
}
|
|
182
191
|
}
|
|
183
|
-
grepArgs.push(pattern, searchPath);
|
|
184
|
-
const fallback = await
|
|
192
|
+
grepArgs.push('-e', pattern, searchPath);
|
|
193
|
+
const fallback = await search('grep', grepArgs, { timeoutMs: SEARCH_TIMEOUT_MS });
|
|
185
194
|
normalizePermissionErrors(fallback);
|
|
186
195
|
if (fallback.code !== 0 && fallback.code !== 1 && !fallback.timedOut) {
|
|
187
196
|
throw new Error(fallback.stderr || 'Search failed');
|
|
@@ -5,7 +5,7 @@ export declare const FAILURE_OUTPUT_LIMIT = 2000;
|
|
|
5
5
|
* stack traces live at the end, so a head-only slice hides the one line that
|
|
6
6
|
* explains the failure. Pure and exported for unit tests.
|
|
7
7
|
*/
|
|
8
|
-
export declare function summarizeCommandFailure(output: string, limit?: number): string;
|
|
8
|
+
export declare function summarizeCommandFailure(output: string, limit?: number, copies?: readonly string[]): string;
|
|
9
9
|
/**
|
|
10
10
|
* R6/F7: actionable hints require observed diagnostics or executor evidence.
|
|
11
11
|
* A nonzero predicate outcome alone establishes neither cause nor completeness.
|
|
@@ -8,19 +8,24 @@ import { assertTemporaryRootSafe, isPathWithinRoot } from '../../utils/temporary
|
|
|
8
8
|
import { parseCheckedCommandPlan } from '../runtime/checked_commands.js';
|
|
9
9
|
import { parseVerificationRequest } from '../runtime/source_verification_contract.js';
|
|
10
10
|
import { createCommandVerification, finishCommandVerification, projectCurrentVerification } from '../runtime/source_verification.js';
|
|
11
|
+
import { containerPath, dockerTarget } from '../../utils/docker_target.js';
|
|
12
|
+
import { isEphemeralToolCall } from '../../utils/ephemeral_tools.js';
|
|
13
|
+
import { COPY_ADVICE, copyNote, saveCopy, unnamedCopy } from '../../utils/tool_output_copies.js';
|
|
14
|
+
import { isReadOnlyShellCommand } from '../runtime/read_only_command.js';
|
|
11
15
|
export const FAILURE_OUTPUT_LIMIT = 2000;
|
|
12
16
|
/**
|
|
13
17
|
* Bound failure output without losing the tail: build and test summaries and
|
|
14
18
|
* stack traces live at the end, so a head-only slice hides the one line that
|
|
15
19
|
* explains the failure. Pure and exported for unit tests.
|
|
16
20
|
*/
|
|
17
|
-
export function summarizeCommandFailure(output, limit = FAILURE_OUTPUT_LIMIT) {
|
|
21
|
+
export function summarizeCommandFailure(output, limit = FAILURE_OUTPUT_LIMIT, copies = []) {
|
|
18
22
|
if (output.length <= limit)
|
|
19
23
|
return output;
|
|
20
24
|
const headLength = Math.floor(limit / 2);
|
|
21
25
|
const tailLength = limit - headLength;
|
|
22
26
|
const omitted = output.length - limit;
|
|
23
|
-
|
|
27
|
+
const named = copies.length ? `; ${copies.join('; ')}; ${COPY_ADVICE}` : '';
|
|
28
|
+
return `${output.slice(0, headLength)}\n… [${omitted} characters omitted${named}] …\n${output.slice(-tailLength)}`;
|
|
24
29
|
}
|
|
25
30
|
/**
|
|
26
31
|
* R6/F7: actionable hints require observed diagnostics or executor evidence.
|
|
@@ -66,7 +71,17 @@ function executionObservation(policy) {
|
|
|
66
71
|
? { observed_at: new Date(observed).toISOString(), elapsed_ms: elapsed } : {}) };
|
|
67
72
|
}
|
|
68
73
|
// --- Shell Tool ---
|
|
74
|
+
/** Docker mode cannot run checked plans or capture host source inputs, so it does not offer them. */
|
|
75
|
+
function forExecutionTarget(parameters) {
|
|
76
|
+
if (!dockerTarget())
|
|
77
|
+
return parameters;
|
|
78
|
+
const { checked: _checked, verification: _verification, ...properties } = parameters.properties;
|
|
79
|
+
return { ...parameters, properties, required: ['command'] };
|
|
80
|
+
}
|
|
69
81
|
function resolveRunCommandCwd(args, context) {
|
|
82
|
+
const docker = dockerTarget();
|
|
83
|
+
if (docker)
|
|
84
|
+
return containerPath(docker, args.cwd ? String(args.cwd) : '.');
|
|
70
85
|
const baseCwd = context?.cwd || process.cwd();
|
|
71
86
|
return args.cwd ? resolve(baseCwd, String(args.cwd)) : baseCwd;
|
|
72
87
|
}
|
|
@@ -74,16 +89,22 @@ export const runCommandTool = {
|
|
|
74
89
|
isErrorResult: failedCommandReceipt,
|
|
75
90
|
resolveExecutionCwd: resolveRunCommandCwd,
|
|
76
91
|
capabilities: [ToolCapability.SHELL_EXEC],
|
|
92
|
+
// A foreground shell line that only reads (ls, du, find, grep, git log, ...)
|
|
93
|
+
// runs alongside the other reads in its response.
|
|
94
|
+
readOnlyCall: args => args.background !== true && args.checked === undefined
|
|
95
|
+
&& typeof args.command === 'string' && isReadOnlyShellCommand(args.command),
|
|
77
96
|
definition: {
|
|
78
97
|
name: 'run_command',
|
|
79
98
|
overlapsProviderHarness: true,
|
|
80
|
-
description:
|
|
81
|
-
|
|
99
|
+
description: dockerTarget()
|
|
100
|
+
? 'Run shell text with bash inside the Docker container, from its working directory unless cwd is given. For long builds or tests, start a background job or bound the output you read.'
|
|
101
|
+
: 'Run either ordinary shell text or an explicit checked literal-argv plan. For builds/tests prefer checked steps and bounded managed logs instead of piping shell text into tail. Checked pipelines report every declared stage and gate later steps; they do not certify source/build correctness or child-script internals. Local macOS/Linux Bash only. Calls that only read (ls, cat, grep, find, du, git status/log/diff) run at the same time when sent in one response. Output that is too long is shortened and names a file holding all of it; read or grep that file instead of running the command again. A tree walk such as du or find costs the same on every call: measure a tree once at the depth you need (du -h -d 4 DIR) rather than one level per call.',
|
|
102
|
+
parameters: forExecutionTarget({
|
|
82
103
|
type: 'object',
|
|
83
104
|
properties: {
|
|
84
105
|
command: {
|
|
85
106
|
type: 'string',
|
|
86
|
-
description: 'Shell command to execute'
|
|
107
|
+
description: 'Shell command to execute. Give exactly one of command or checked.'
|
|
87
108
|
},
|
|
88
109
|
checked: {
|
|
89
110
|
type: 'object', description: 'Mutually exclusive with command. Up to 8 ordered steps, each with up to 8 concurrent pipeline stages. Literal executable/args only; default acceptable_exit_codes [0]. A later step runs only after every prior declared stage is accepted. Explicit predicates may accept 1 or 141; exit 141 is not proven SIGPIPE. Total normalized plan ≤16KiB.',
|
|
@@ -127,8 +148,9 @@ export const runCommandTool = {
|
|
|
127
148
|
description: 'Optional text written to the command stdin. Prefer this over heredocs or nested quoting for multi-line payloads (e.g. git commit -F -).'
|
|
128
149
|
}
|
|
129
150
|
},
|
|
130
|
-
oneOf
|
|
131
|
-
|
|
151
|
+
// No top-level oneOf for "exactly one of command or checked": Anthropic, Bedrock, Vertex and Azure reject one,
|
|
152
|
+
// which failed every Claude model through OpenRouter (2026-10-27). execute enforces it, and both say so.
|
|
153
|
+
}),
|
|
132
154
|
},
|
|
133
155
|
execute: async (args, context) => {
|
|
134
156
|
const hasChecked = Object.hasOwn(args, 'checked');
|
|
@@ -146,7 +168,10 @@ export const runCommandTool = {
|
|
|
146
168
|
if (hasChecked && !checked)
|
|
147
169
|
throw new Error('run_command: invalid checked plan');
|
|
148
170
|
if (!hasChecked && (args.command === undefined || args.command === null)) {
|
|
149
|
-
|
|
171
|
+
// Name what arrived instead: GPT-OSS sent cmd three times while the error named only command (2026-10-27).
|
|
172
|
+
const received = Object.keys(args).slice(0, 8).join(', ');
|
|
173
|
+
throw new Error(`run_command: command argument is required but was not provided${received ? `; received ${received}` : ''}. `
|
|
174
|
+
+ 'Pass the whole shell line as command, a string: {"command": "ls -la"}.');
|
|
150
175
|
}
|
|
151
176
|
const command = checked ? JSON.stringify(checked) : String(args.command);
|
|
152
177
|
if (command === 'undefined' || command.trim() === '') {
|
|
@@ -234,10 +259,16 @@ export const runCommandTool = {
|
|
|
234
259
|
return JSON.stringify(result);
|
|
235
260
|
}
|
|
236
261
|
const initialVerification = verificationRequest ? await createCommandVerification(verificationRequest, cwd, command, checked ? 'checked' : 'shell') : undefined;
|
|
262
|
+
// Shortened output keeps a full copy in the session's folder, except an ephemeral tool's, which stays in memory.
|
|
263
|
+
const storeConfig = context?.toolResponseStore?.getConfig();
|
|
264
|
+
const copyFolder = context?.toolResponseStore?.outputCopyDir() ?? null;
|
|
265
|
+
const outputCopy = !copyFolder || isEphemeralToolCall('run_command', args, storeConfig?.ephemeralToolNames, storeConfig?.ephemeralToolRules)
|
|
266
|
+
? undefined : context?.toolCallId ? { folder: copyFolder, id: context.toolCallId, recallable: true }
|
|
267
|
+
: { folder: copyFolder, id: unnamedCopy(), recallable: false };
|
|
237
268
|
let launchPolicy;
|
|
238
269
|
let result;
|
|
239
270
|
try {
|
|
240
|
-
result = await runShellCommand(command, cwd, context?.signal, timeoutMs, { ...shellOptions,
|
|
271
|
+
result = await runShellCommand(command, cwd, context?.signal, timeoutMs, { ...shellOptions, outputCopy,
|
|
241
272
|
onExecutionPolicy: policy => { launchPolicy = policy; },
|
|
242
273
|
onOutput: (stream, chunk) => {
|
|
243
274
|
try {
|
|
@@ -282,7 +313,14 @@ export const runCommandTool = {
|
|
|
282
313
|
// Handle non-zero exit codes
|
|
283
314
|
if (result.exitCode !== 0) {
|
|
284
315
|
const output = [result.stdout, result.stderr].filter(Boolean).join('\n').trim();
|
|
285
|
-
const
|
|
316
|
+
const recallId = outputCopy?.recallable ? outputCopy.id : undefined;
|
|
317
|
+
const streamCopies = ['stdout', 'stderr'].flatMap(stream => {
|
|
318
|
+
const path = result.outputCopies?.[stream];
|
|
319
|
+
return path ? [copyNote(stream, path, recallId, stream)] : [];
|
|
320
|
+
});
|
|
321
|
+
const combined = streamCopies.length === 0 && outputCopy && output.length > FAILURE_OUTPUT_LIMIT
|
|
322
|
+
? saveCopy(outputCopy.folder, outputCopy.id, 'output', output) : null;
|
|
323
|
+
const outputSnippet = summarizeCommandFailure(output, FAILURE_OUTPUT_LIMIT, combined ? [copyNote('output', combined, recallId, 'output')] : streamCopies) || '(no output)';
|
|
286
324
|
// R6/F7: retain the failed status; hints distinguish observed causes from
|
|
287
325
|
// unknown completeness without guessing which compound stage failed.
|
|
288
326
|
const hint = shellErrorHint(result.exitCode, result.stderr ?? '', Boolean(result.stdout?.trim()), result.timedOut === true);
|
|
@@ -220,7 +220,13 @@ function buildToolsFromPreset(rawToolDefs) {
|
|
|
220
220
|
description: def.description,
|
|
221
221
|
parameters: {
|
|
222
222
|
type: 'object',
|
|
223
|
-
properties: Object.fromEntries(Object.entries(def.parameters).map(([
|
|
223
|
+
properties: Object.fromEntries(Object.entries(def.parameters).map(([name, parameter]) => {
|
|
224
|
+
const schema = structuredClone(parameter);
|
|
225
|
+
// YAML may use a boolean required flag; JSON Schema uses an array.
|
|
226
|
+
if (typeof schema.required === 'boolean')
|
|
227
|
+
delete schema.required;
|
|
228
|
+
return [name, schema];
|
|
229
|
+
})),
|
|
224
230
|
required: def.required,
|
|
225
231
|
},
|
|
226
232
|
},
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ToolDefinition } from '../../types.js';
|
|
3
|
+
import type { Tool } from './types.js';
|
|
4
|
+
declare const configSchema: z.ZodObject<{
|
|
5
|
+
loaderName: z.ZodString;
|
|
6
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
toolNames: z.ZodArray<z.ZodString>;
|
|
10
|
+
}, z.core.$strict>>;
|
|
11
|
+
startLoadedGroups: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type ToolGroupsConfig = z.input<typeof configSchema>;
|
|
14
|
+
export declare function parseToolGroupsConfig(value: unknown): ToolGroupsConfig;
|
|
15
|
+
/** Session-owned schema visibility. Loading never adds a dispatch permission. */
|
|
16
|
+
export declare class ToolGroupRuntime {
|
|
17
|
+
private readonly dynamic;
|
|
18
|
+
readonly tools: Tool[];
|
|
19
|
+
private readonly requestOrder;
|
|
20
|
+
private readonly grouped;
|
|
21
|
+
private readonly loaded;
|
|
22
|
+
private readonly groups;
|
|
23
|
+
private readonly definitions;
|
|
24
|
+
private readonly loader;
|
|
25
|
+
constructor(raw: ToolGroupsConfig, tools: Tool[], dynamic: boolean);
|
|
26
|
+
load(group: unknown): {
|
|
27
|
+
group: string;
|
|
28
|
+
tools: ToolDefinition[];
|
|
29
|
+
};
|
|
30
|
+
private updateDescription;
|
|
31
|
+
private loadedDefinitions;
|
|
32
|
+
requestDefinitions(base: ToolDefinition[], available: Tool[]): ToolDefinition[];
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const name = z.string().regex(/^[A-Za-z0-9_-]+$/);
|
|
3
|
+
const configSchema = z.object({
|
|
4
|
+
loaderName: name,
|
|
5
|
+
groups: z.array(z.object({
|
|
6
|
+
name,
|
|
7
|
+
description: z.string().min(1).regex(/^[^\r\n]+$/),
|
|
8
|
+
toolNames: z.array(name),
|
|
9
|
+
}).strict()),
|
|
10
|
+
startLoadedGroups: z.array(name).default([]),
|
|
11
|
+
}).strict();
|
|
12
|
+
export function parseToolGroupsConfig(value) {
|
|
13
|
+
return configSchema.parse(value);
|
|
14
|
+
}
|
|
15
|
+
/** Session-owned schema visibility. Loading never adds a dispatch permission. */
|
|
16
|
+
export class ToolGroupRuntime {
|
|
17
|
+
dynamic;
|
|
18
|
+
tools;
|
|
19
|
+
requestOrder = new Set();
|
|
20
|
+
grouped = new Set();
|
|
21
|
+
loaded = new Set();
|
|
22
|
+
groups;
|
|
23
|
+
definitions;
|
|
24
|
+
loader;
|
|
25
|
+
constructor(raw, tools, dynamic) {
|
|
26
|
+
this.dynamic = dynamic;
|
|
27
|
+
const config = configSchema.parse(raw);
|
|
28
|
+
this.definitions = new Map(tools.map(tool => [tool.definition.name, tool.definition]));
|
|
29
|
+
this.groups = new Map();
|
|
30
|
+
for (const group of config.groups) {
|
|
31
|
+
if (this.groups.has(group.name))
|
|
32
|
+
throw new Error(`Duplicate tool group: ${group.name}`);
|
|
33
|
+
this.groups.set(group.name, group);
|
|
34
|
+
for (const toolName of group.toolNames) {
|
|
35
|
+
if (!this.definitions.has(toolName))
|
|
36
|
+
throw new Error(`Tool group ${group.name} references unavailable tool: ${toolName}`);
|
|
37
|
+
this.grouped.add(toolName);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (this.definitions.has(config.loaderName))
|
|
41
|
+
throw new Error(`Tool group loader name collides with a registered tool: ${config.loaderName}`);
|
|
42
|
+
for (const group of config.startLoadedGroups) {
|
|
43
|
+
if (!this.groups.has(group))
|
|
44
|
+
throw new Error(`Undeclared start-loaded tool group: ${group}`);
|
|
45
|
+
this.loaded.add(group);
|
|
46
|
+
}
|
|
47
|
+
if (dynamic) {
|
|
48
|
+
this.loader = {
|
|
49
|
+
definition: { name: config.loaderName, description: '', parameters: {
|
|
50
|
+
type: 'object', properties: { group: { type: 'string', description: 'Declared group to load.' } },
|
|
51
|
+
required: ['group'], additionalProperties: false,
|
|
52
|
+
} },
|
|
53
|
+
effect: 'read',
|
|
54
|
+
// The next request already carries the loaded schemas; echoing them here would send them twice.
|
|
55
|
+
execute: async (args) => {
|
|
56
|
+
const { group, tools: loaded } = this.load(args.group);
|
|
57
|
+
return JSON.stringify({ group, tools: loaded.map(definition => definition.name) });
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
this.updateDescription();
|
|
61
|
+
this.tools = [...tools, this.loader];
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const startNames = new Set(this.loadedDefinitions().map(definition => definition.name));
|
|
65
|
+
this.tools = tools.filter(tool => !this.grouped.has(tool.definition.name) || startNames.has(tool.definition.name));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
load(group) {
|
|
69
|
+
if (!this.dynamic)
|
|
70
|
+
throw new Error('Tool group loading is unavailable on Codex; start a new session with the required groups.');
|
|
71
|
+
if (typeof group !== 'string' || !this.groups.has(group))
|
|
72
|
+
throw new Error(`Undeclared tool group: ${String(group)}`);
|
|
73
|
+
this.loaded.add(group);
|
|
74
|
+
this.updateDescription();
|
|
75
|
+
return { group, tools: this.groups.get(group).toolNames.map(name => structuredClone(this.definitions.get(name))) };
|
|
76
|
+
}
|
|
77
|
+
updateDescription() {
|
|
78
|
+
if (!this.loader)
|
|
79
|
+
return;
|
|
80
|
+
const unloaded = [...this.groups].filter(([name]) => !this.loaded.has(name))
|
|
81
|
+
.map(([name, group]) => `${name}: ${group.description} (${group.toolNames.length} tools)`);
|
|
82
|
+
this.loader.definition = { ...this.loader.definition, description: 'Load a declared tool group for the rest of this session. Unloaded groups:\n'
|
|
83
|
+
+ (unloaded.join('\n') || '(none)') };
|
|
84
|
+
}
|
|
85
|
+
loadedDefinitions() {
|
|
86
|
+
const seen = new Set();
|
|
87
|
+
const output = [];
|
|
88
|
+
for (const group of this.loaded) {
|
|
89
|
+
for (const name of this.groups.get(group).toolNames) {
|
|
90
|
+
if (seen.has(name))
|
|
91
|
+
continue;
|
|
92
|
+
seen.add(name);
|
|
93
|
+
output.push(this.definitions.get(name));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return output;
|
|
97
|
+
}
|
|
98
|
+
requestDefinitions(base, available) {
|
|
99
|
+
const byName = new Map(available.map(tool => [tool.definition.name, tool.definition]));
|
|
100
|
+
const ungrouped = base.filter(definition => !this.grouped.has(definition.name));
|
|
101
|
+
if (this.loader && !ungrouped.some(definition => definition.name === this.loader.definition.name)) {
|
|
102
|
+
const definition = byName.get(this.loader.definition.name);
|
|
103
|
+
if (definition)
|
|
104
|
+
ungrouped.push(definition);
|
|
105
|
+
}
|
|
106
|
+
const candidates = [...ungrouped, ...this.loadedDefinitions().filter(definition => byName.has(definition.name))];
|
|
107
|
+
const visible = new Map(candidates.map(definition => [definition.name, definition]));
|
|
108
|
+
for (const definition of candidates)
|
|
109
|
+
this.requestOrder.add(definition.name);
|
|
110
|
+
return [...this.requestOrder].flatMap(name => visible.has(name) ? [visible.get(name)] : []);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -24,6 +24,13 @@ export interface ToolContext {
|
|
|
24
24
|
onOutput?: (stream: 'stdout' | 'stderr', chunk: string) => void;
|
|
25
25
|
toolResponseStore: ToolResponseStore;
|
|
26
26
|
discoveredTools: Set<string>;
|
|
27
|
+
/** The lead's background workers (delegate_task `background: true`). */
|
|
28
|
+
backgroundWorkers?: import('../background_workers.js').BackgroundWorkers;
|
|
29
|
+
/** The lead's current task and environment, for a worker's brief. */
|
|
30
|
+
leadBrief?: {
|
|
31
|
+
task: string;
|
|
32
|
+
environment?: string;
|
|
33
|
+
};
|
|
27
34
|
availableTools?: Tool[];
|
|
28
35
|
workflowTimeoutMs?: number;
|
|
29
36
|
/** Host-owned initial read slice; the agent waits after recording the tool pair. */
|
|
@@ -48,6 +55,9 @@ export interface Tool {
|
|
|
48
55
|
resolveExecutionCwd?: (args: Record<string, unknown>, context?: ToolContext) => string;
|
|
49
56
|
/** Explicit scheduling opt-in; only read effects may run concurrently. */
|
|
50
57
|
parallelSafe?: boolean;
|
|
58
|
+
/** Per-call opt-in for a tool whose effect depends on its arguments: true
|
|
59
|
+
* when this call only reads, so it may run alongside the other reads. */
|
|
60
|
+
readOnlyCall?: (args: Record<string, unknown>) => boolean;
|
|
51
61
|
isErrorResult?: (content: string) => boolean;
|
|
52
62
|
capabilities?: ToolCapability[];
|
|
53
63
|
/** Host scheduling boundary. When omitted, capabilities are mapped
|
package/dist/app/activity.js
CHANGED
|
@@ -60,6 +60,7 @@ export function applyAgentEventToState(previous, event) {
|
|
|
60
60
|
? { ...previous, toolProgress: undefined } : previous;
|
|
61
61
|
case 'stream_start':
|
|
62
62
|
case 'stream_end':
|
|
63
|
+
case 'stream_reset':
|
|
63
64
|
return { ...previous, status: 'streaming', startedAt, error: undefined, requestRetry: undefined, waiting: undefined, toolProgress: undefined };
|
|
64
65
|
case 'reasoning_delta':
|
|
65
66
|
if (previous.status === 'thinking' && previous.startedAt && previous.error === undefined && !previous.requestRetry && !previous.waiting && !previous.toolProgress) {
|
|
@@ -150,7 +151,7 @@ export function formatApiRetryNotice(event) {
|
|
|
150
151
|
const attempts = event.phase === 'recovery'
|
|
151
152
|
? `recovery attempt ${event.attempt - event.maxAttempts + 1}; current task retained`
|
|
152
153
|
: `attempt ${event.attempt}/${event.maxAttempts}`;
|
|
153
|
-
return `⚠️ ${event.reason}. Retrying in ${event.delay / 1000}s... (${attempts})`;
|
|
154
|
+
return `⚠️ ${event.reason.replace(/\.$/, '')}. Retrying in ${event.delay / 1000}s... (${attempts})`;
|
|
154
155
|
}
|
|
155
156
|
/**
|
|
156
157
|
* Placeholder text for the composer while the agent is active.
|
package/dist/app/agent_runner.js
CHANGED
|
@@ -13,10 +13,12 @@ import { RouterConfigurationError } from '../router_auth.js';
|
|
|
13
13
|
import { setBackgroundRegistry, getBackgroundRegistry, clearBackgroundRegistry } from '../agent/tools/index.js';
|
|
14
14
|
import { BackgroundTaskRegistry } from '../agent/background_registry.js';
|
|
15
15
|
import { InProcessWorkerExecutor, setWorkerExecutor, clearWorkerExecutor } from '../worker/index.js';
|
|
16
|
+
import { createWorkerModels } from '../worker/worker_models.js';
|
|
16
17
|
import { configureWorkflowRegistry, shutdownAndClearWorkflowRegistry } from '../workflows/registry_handle.js';
|
|
17
18
|
import { workflowsEnabled } from '../workflows/config.js';
|
|
18
19
|
import { isCodexAppServerProvider, normalizeProviderId } from '../agent/backends/provider_ids.js';
|
|
19
20
|
import { admitPermissionProvider, projectPermissionPolicy, resolvePermissionProfile } from '../config/permissions.js';
|
|
21
|
+
import { resolveCompactionTriggerMode } from '../config/compaction.js';
|
|
20
22
|
/**
|
|
21
23
|
* Ensure the BackgroundTaskRegistry tracks the current shared executor.
|
|
22
24
|
* Reuses the existing registry if one is already set — background tasks
|
|
@@ -87,16 +89,19 @@ export function createAgentWithConfig(overrides = {}) {
|
|
|
87
89
|
// Set up shared WorkerExecutor so delegate/background/batch can access the API
|
|
88
90
|
if (resolvedBackend) {
|
|
89
91
|
admitPermissionProvider(permissionProfile, projectPermissionPolicy(config), resolvedBackend.provider);
|
|
92
|
+
// Workers run on their own model pool when configured, otherwise on the lead's model.
|
|
93
|
+
const workerModels = config.workers?.models.length ? createWorkerModels(config.workers, { connection: configStore.getRouterCatalogConnection(), conversationId: overrides.sessionId,
|
|
94
|
+
openRouterPreferences: () => configStore.get().openRouter }) : null;
|
|
90
95
|
const executor = new InProcessWorkerExecutor({
|
|
91
|
-
provider: resolvedBackend.provider,
|
|
92
|
-
apiKey: resolvedBackend.apiKey,
|
|
93
|
-
model: resolvedBackend.model,
|
|
96
|
+
provider: workerModels ? 'openai_compatible' : resolvedBackend.provider,
|
|
97
|
+
apiKey: workerModels ? 'worker-model-pool' : resolvedBackend.apiKey,
|
|
98
|
+
model: workerModels?.model ?? resolvedBackend.model,
|
|
94
99
|
hooks: config.hooks,
|
|
95
100
|
sessionId: overrides.sessionId || 'ztc-session',
|
|
96
101
|
mode: overrides.mode || 'normal',
|
|
97
102
|
paneId: overrides.paneId,
|
|
98
103
|
approvalRequester: overrides.hookApprovalRequester,
|
|
99
|
-
backend: resolvedBackend.backend,
|
|
104
|
+
backend: workerModels?.backend ?? resolvedBackend.backend,
|
|
100
105
|
toolPermissions: config.toolPermissions,
|
|
101
106
|
permissionProfile,
|
|
102
107
|
commandPolicy: { profileId: config.permissionProfile ?? 'trusted', profile: permissionProfile, sandbox: config.sandbox },
|
|
@@ -129,6 +134,10 @@ export function createAgentWithConfig(overrides = {}) {
|
|
|
129
134
|
openaiCompatibleBaseUrl: configStore.getOpenAICompatibleSettings().baseUrl,
|
|
130
135
|
emulationId: configStore.getEmulationId(),
|
|
131
136
|
cwd: cwdProvider(),
|
|
137
|
+
midTurnCompactThresholdPercent: configStore.getAutoCompactThreshold(),
|
|
138
|
+
midTurnCompactWindow: configStore.getModelContextWindow(),
|
|
139
|
+
midTurnCompactTokenBudget: resolveCompactionTriggerMode(config) === 'tokens'
|
|
140
|
+
? configStore.getContextTokenBudget() : undefined,
|
|
132
141
|
...agentOverrides,
|
|
133
142
|
});
|
|
134
143
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import type { AskUserQuestion } from '../agent/tools/ask_user.js';
|
|
2
2
|
/** Keep the chosen option distinct from any prose the user adds. */
|
|
3
3
|
export declare function formatAskUserResponse(questions: AskUserQuestion[], answers: Record<string, string | string[]>): string;
|
|
4
|
+
/**
|
|
5
|
+
* The person's view of an answer message: one "question → answer" line per question. The model receives the JSON
|
|
6
|
+
* that formatAskUserResponse writes for several questions; drawn as is, it showed under "You" as raw JSON
|
|
7
|
+
* (2026-10-27). Content that is not that JSON is returned unchanged.
|
|
8
|
+
*/
|
|
9
|
+
export declare function displayAskUserResponse(content: string): string;
|