@explyt/ai-agent 0.1.0-rc.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -15
- package/THIRD-PARTY-NOTICES.md +153 -5
- package/agent-docs/README.md +43 -0
- package/agent-docs/mcp.md +111 -0
- package/agent-docs/rules.md +92 -0
- package/agent-docs/settings.md +54 -0
- package/agent-docs/skills.md +90 -0
- package/dist/app-bridge.bundle.js +67 -0
- package/dist/cli/engine.js +680 -135
- package/dist/cli/index.js +152 -194
- package/dist/extensions/bash.js +1 -0
- package/dist/extensions/custom-provider.js +1 -0
- package/dist/extensions/hello.js +1 -1
- package/dist/extensions/identity.js +1 -0
- package/dist/extensions/mcp.js +1 -0
- package/dist/extensions/misc-hacks.js +1 -0
- package/dist/extensions/policy.js +1 -1
- package/dist/extensions/rules.js +1 -0
- package/dist/extensions/skills.js +1 -0
- package/dist/mcp-adapter.js +602 -0
- package/dist/mcp-keyring-helper.cjs +89 -0
- package/dist/mcp-script-worker.mjs +130 -0
- package/node_modules/acorn/CHANGELOG.md +998 -0
- package/node_modules/acorn/LICENSE +21 -0
- package/node_modules/acorn/README.md +309 -0
- package/node_modules/acorn/bin/acorn +4 -0
- package/node_modules/acorn/dist/acorn.d.mts +897 -0
- package/node_modules/acorn/dist/acorn.d.ts +897 -0
- package/node_modules/acorn/dist/acorn.js +6342 -0
- package/node_modules/acorn/dist/acorn.mjs +6313 -0
- package/node_modules/acorn/dist/bin.js +90 -0
- package/node_modules/acorn/package.json +50 -0
- package/node_modules/default-browser/package.json +1 -1
- package/node_modules/default-browser/windows.js +3 -1
- package/node_modules/fast-uri/index.js +221 -49
- package/node_modules/fast-uri/lib/schemes.js +9 -4
- package/node_modules/fast-uri/lib/utils.js +396 -92
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/fast-uri/test/equal.test.js +31 -3
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +2 -0
- package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/fast-uri/test/parse.test.js +7 -3
- package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +139 -0
- package/node_modules/fast-uri/test/security.test.js +75 -3
- package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/jose/dist/types/index.d.ts +1 -2
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +12 -25
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +18 -31
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +12 -25
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +24 -49
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +15 -30
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +29 -51
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +5 -8
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +7 -9
- package/node_modules/jose/dist/types/jwks/local.d.ts +10 -13
- package/node_modules/jose/dist/types/jwks/remote.d.ts +30 -42
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +8 -13
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +14 -26
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +10 -19
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +14 -26
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +19 -33
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +17 -32
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +20 -27
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +32 -42
- package/node_modules/jose/dist/types/jwt/sign.d.ts +10 -21
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +13 -28
- package/node_modules/jose/dist/types/jwt/verify.d.ts +19 -22
- package/node_modules/jose/dist/types/key/export.d.ts +10 -10
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +15 -22
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +12 -19
- package/node_modules/jose/dist/types/key/import.d.ts +25 -31
- package/node_modules/jose/dist/types/types.d.ts +186 -319
- package/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +5 -7
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +6 -5
- package/node_modules/jose/dist/types/util/errors.d.ts +50 -88
- package/node_modules/jose/dist/webapi/index.js +70 -32
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +6 -8
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +25 -26
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +14 -10
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +34 -71
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +38 -49
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +100 -161
- package/node_modules/jose/dist/webapi/jwk/embedded.js +29 -18
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +51 -64
- package/node_modules/jose/dist/webapi/jwks/local.js +55 -74
- package/node_modules/jose/dist/webapi/jwks/remote.js +91 -160
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +19 -20
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +7 -8
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +22 -30
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +11 -23
- package/node_modules/jose/dist/webapi/jws/general/sign.js +55 -71
- package/node_modules/jose/dist/webapi/jws/general/verify.js +45 -41
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +12 -22
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +44 -100
- package/node_modules/jose/dist/webapi/jwt/sign.js +18 -50
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +33 -63
- package/node_modules/jose/dist/webapi/jwt/verify.js +12 -14
- package/node_modules/jose/dist/webapi/key/export.js +32 -41
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +32 -45
- package/node_modules/jose/dist/webapi/key/generate_secret.js +35 -39
- package/node_modules/jose/dist/webapi/key/import.js +48 -52
- package/node_modules/jose/dist/webapi/lib/asn1.js +128 -164
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +72 -41
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +75 -127
- package/node_modules/jose/dist/webapi/lib/deflate.js +36 -40
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +102 -93
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +178 -177
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +72 -107
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +62 -61
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +44 -72
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +82 -103
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +134 -185
- package/node_modules/jose/dist/webapi/lib/key.js +147 -124
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +13 -8
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +8 -6
- package/node_modules/jose/dist/webapi/lib/key_management.js +169 -229
- package/node_modules/jose/dist/webapi/lib/validate.js +122 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +14 -37
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -31
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +18 -23
- package/node_modules/jose/dist/webapi/util/errors.js +94 -84
- package/node_modules/jose/package.json +17 -81
- package/node_modules/pi-mcp-adapter/CHANGELOG.md +156 -0
- package/node_modules/pi-mcp-adapter/README.md +121 -13
- package/node_modules/pi-mcp-adapter/agent-dir.ts +12 -4
- package/node_modules/pi-mcp-adapter/agent-plugin-loader.ts +1 -1
- package/node_modules/pi-mcp-adapter/cli.js +188 -5
- package/node_modules/pi-mcp-adapter/commands.ts +136 -20
- package/node_modules/pi-mcp-adapter/config.ts +74 -15
- package/node_modules/pi-mcp-adapter/direct-tools.ts +134 -72
- package/node_modules/pi-mcp-adapter/dist/agent-dir.d.ts +10 -0
- package/node_modules/pi-mcp-adapter/dist/agent-dir.js +63 -0
- package/node_modules/pi-mcp-adapter/dist/agent-dir.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/agent-plugin-loader.d.ts +8 -0
- package/node_modules/pi-mcp-adapter/dist/agent-plugin-loader.js +356 -0
- package/node_modules/pi-mcp-adapter/dist/agent-plugin-loader.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/config.d.ts +123 -0
- package/node_modules/pi-mcp-adapter/dist/config.js +1088 -0
- package/node_modules/pi-mcp-adapter/dist/config.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/mcp-bearer-store.d.ts +24 -0
- package/node_modules/pi-mcp-adapter/dist/mcp-bearer-store.js +336 -0
- package/node_modules/pi-mcp-adapter/dist/mcp-bearer-store.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/metadata-cache.d.ts +19 -0
- package/node_modules/pi-mcp-adapter/dist/metadata-cache.js +319 -0
- package/node_modules/pi-mcp-adapter/dist/metadata-cache.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/package-mcp-loader.d.ts +2 -0
- package/node_modules/pi-mcp-adapter/dist/package-mcp-loader.js +156 -0
- package/node_modules/pi-mcp-adapter/dist/package-mcp-loader.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/resource-tools.d.ts +1 -0
- package/node_modules/pi-mcp-adapter/dist/resource-tools.js +15 -0
- package/node_modules/pi-mcp-adapter/dist/resource-tools.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/types.d.ts +566 -0
- package/node_modules/pi-mcp-adapter/dist/types.js +287 -0
- package/node_modules/pi-mcp-adapter/dist/types.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/ui-app-bridge-helpers.d.ts +6 -0
- package/node_modules/pi-mcp-adapter/dist/ui-app-bridge-helpers.js +37 -0
- package/node_modules/pi-mcp-adapter/dist/ui-app-bridge-helpers.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/ui-stream-types.d.ts +104 -0
- package/node_modules/pi-mcp-adapter/dist/ui-stream-types.js +59 -0
- package/node_modules/pi-mcp-adapter/dist/ui-stream-types.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/ui-tool-visibility.d.ts +4 -0
- package/node_modules/pi-mcp-adapter/dist/ui-tool-visibility.js +27 -0
- package/node_modules/pi-mcp-adapter/dist/ui-tool-visibility.js.map +1 -0
- package/node_modules/pi-mcp-adapter/dist/utils.d.ts +32 -0
- package/node_modules/pi-mcp-adapter/dist/utils.js +338 -0
- package/node_modules/pi-mcp-adapter/dist/utils.js.map +1 -0
- package/node_modules/pi-mcp-adapter/failure-backoff.ts +23 -0
- package/node_modules/pi-mcp-adapter/host-html-template.ts +0 -8
- package/node_modules/pi-mcp-adapter/index.ts +434 -36
- package/node_modules/pi-mcp-adapter/init.ts +102 -35
- package/node_modules/pi-mcp-adapter/lifecycle.ts +323 -28
- package/node_modules/pi-mcp-adapter/mcp-auth-flow.ts +161 -37
- package/node_modules/pi-mcp-adapter/mcp-auth.ts +60 -2
- package/node_modules/pi-mcp-adapter/mcp-bearer-store.ts +385 -0
- package/node_modules/pi-mcp-adapter/mcp-callback-server.ts +27 -3
- package/node_modules/pi-mcp-adapter/mcp-code.ts +6 -0
- package/node_modules/pi-mcp-adapter/mcp-oauth-provider.ts +155 -16
- package/node_modules/pi-mcp-adapter/mcp-output-guard.ts +95 -7
- package/node_modules/pi-mcp-adapter/mcp-panel.ts +87 -22
- package/node_modules/pi-mcp-adapter/mcp-probe.ts +18 -4
- package/node_modules/pi-mcp-adapter/mcp-references.ts +376 -0
- package/node_modules/pi-mcp-adapter/mcp-script-worker.mjs +22 -20
- package/node_modules/pi-mcp-adapter/mcp-setup-panel.ts +2 -1
- package/node_modules/pi-mcp-adapter/mcp-status.ts +8 -19
- package/node_modules/pi-mcp-adapter/metadata-cache.ts +66 -14
- package/node_modules/pi-mcp-adapter/namespace-tools.ts +276 -0
- package/node_modules/pi-mcp-adapter/npx-resolver.ts +81 -26
- package/node_modules/pi-mcp-adapter/package-mcp-loader.ts +168 -0
- package/node_modules/pi-mcp-adapter/package.json +29 -8
- package/node_modules/pi-mcp-adapter/proxy-modes.ts +229 -50
- package/node_modules/pi-mcp-adapter/request-headers-command.ts +330 -0
- package/node_modules/pi-mcp-adapter/search-ranking.ts +167 -16
- package/node_modules/pi-mcp-adapter/server-manager.ts +243 -14
- package/node_modules/pi-mcp-adapter/session-recovery.ts +15 -2
- package/node_modules/pi-mcp-adapter/state.ts +1 -3
- package/node_modules/pi-mcp-adapter/tool-approval.ts +63 -9
- package/node_modules/pi-mcp-adapter/tool-metadata.ts +62 -4
- package/node_modules/pi-mcp-adapter/tool-result-renderer.ts +195 -15
- package/node_modules/pi-mcp-adapter/types.ts +229 -29
- package/node_modules/pi-mcp-adapter/ui-server.ts +41 -36
- package/node_modules/pi-mcp-adapter/ui-session.ts +2 -1
- package/node_modules/pi-mcp-adapter/utils.ts +91 -19
- package/node_modules/pi-subagents/CHANGELOG.md +582 -0
- package/node_modules/pi-subagents/README.md +6 -0
- package/node_modules/pi-subagents/agents/claude-code-writer.md +15 -0
- package/node_modules/pi-subagents/agents/claude-code.md +15 -0
- package/node_modules/pi-subagents/agents/codex-exec-writer.md +15 -0
- package/node_modules/pi-subagents/agents/codex-exec.md +15 -0
- package/node_modules/pi-subagents/agents/cursor-agent-writer.md +14 -0
- package/node_modules/pi-subagents/agents/cursor-agent.md +14 -0
- package/node_modules/pi-subagents/agents/oracle.md +9 -5
- package/node_modules/pi-subagents/agents/researcher.md +1 -1
- package/node_modules/pi-subagents/agents/reviewer.md +15 -4
- package/node_modules/pi-subagents/agents/scout.md +3 -3
- package/node_modules/pi-subagents/agents/worker.md +3 -2
- package/node_modules/pi-subagents/async-retention-discovery-worker.mjs +180 -0
- package/node_modules/pi-subagents/docs/agents.md +164 -14
- package/node_modules/pi-subagents/docs/configuration.md +204 -24
- package/node_modules/pi-subagents/docs/extension-api.md +146 -11
- package/node_modules/pi-subagents/docs/missions.md +5 -3
- package/node_modules/pi-subagents/docs/models.md +74 -8
- package/node_modules/pi-subagents/docs/observability.md +100 -12
- package/node_modules/pi-subagents/docs/tool-reference.md +185 -46
- package/node_modules/pi-subagents/docs/workflows.md +317 -5
- package/node_modules/pi-subagents/index.ts +10 -1
- package/node_modules/pi-subagents/install.mjs +1 -1
- package/node_modules/pi-subagents/package.json +7 -2
- package/node_modules/pi-subagents/prompts/council.md +60 -0
- package/node_modules/pi-subagents/prompts/parallel-review.md +5 -1
- package/node_modules/pi-subagents/prompts/review-loop.md +11 -7
- package/node_modules/pi-subagents/skills/council-mode/SKILL.md +59 -0
- package/node_modules/pi-subagents/skills/council-mode/references/pass-contracts.md +150 -0
- package/node_modules/pi-subagents/skills/pi-subagents/SKILL.md +87 -25
- package/node_modules/pi-subagents/skills/pi-subagents/references/constraints-and-recipes.md +40 -221
- package/node_modules/pi-subagents/skills/pi-subagents/references/execution-controls.md +136 -26
- package/node_modules/pi-subagents/skills/pi-subagents/references/management-authoring-rpc.md +8 -8
- package/node_modules/pi-subagents/skills/pi-subagents/references/multi-lane-orchestration.md +51 -0
- package/node_modules/pi-subagents/skills/pi-subagents/references/prompting-and-roles.md +99 -46
- package/node_modules/pi-subagents/skills/pi-subagents/references/review-and-validation.md +73 -0
- package/node_modules/pi-subagents/src/agents/agent-management.ts +541 -442
- package/node_modules/pi-subagents/src/agents/agent-refinements.ts +4 -4
- package/node_modules/pi-subagents/src/agents/agent-serializer.ts +20 -4
- package/node_modules/pi-subagents/src/agents/agents.ts +1177 -267
- package/node_modules/pi-subagents/src/agents/builtin-names.ts +15 -0
- package/node_modules/pi-subagents/src/agents/runtime-agent-events.ts +70 -0
- package/node_modules/pi-subagents/src/agents/runtime-agent-registry.ts +429 -0
- package/node_modules/pi-subagents/src/agents/skills.ts +1 -1
- package/node_modules/pi-subagents/src/api/agents.ts +12 -0
- package/node_modules/pi-subagents/src/api/background-work.ts +12 -3
- package/node_modules/pi-subagents/src/api/delegation.ts +0 -7
- package/node_modules/pi-subagents/src/api/external-job-provider.ts +195 -0
- package/node_modules/pi-subagents/src/api/external-runs.ts +237 -84
- package/node_modules/pi-subagents/src/api/preflight.ts +140 -42
- package/node_modules/pi-subagents/src/api/project-panes.ts +2 -0
- package/node_modules/pi-subagents/src/api/shared-types.ts +5 -0
- package/node_modules/pi-subagents/src/extension/config.ts +134 -2
- package/node_modules/pi-subagents/src/extension/doctor.ts +54 -6
- package/node_modules/pi-subagents/src/extension/fanout-child.ts +9 -6
- package/node_modules/pi-subagents/src/extension/index.ts +361 -118
- package/node_modules/pi-subagents/src/extension/public-execution.ts +149 -10
- package/node_modules/pi-subagents/src/extension/rpc.ts +229 -23
- package/node_modules/pi-subagents/src/extension/schemas.ts +81 -58
- package/node_modules/pi-subagents/src/extension/tool-description.ts +70 -31
- package/node_modules/pi-subagents/src/extension/tool-result.ts +19 -0
- package/node_modules/pi-subagents/src/inspectors/herdr/actions.ts +16 -10
- package/node_modules/pi-subagents/src/inspectors/herdr/client.ts +3 -3
- package/node_modules/pi-subagents/src/inspectors/herdr/focus.ts +55 -0
- package/node_modules/pi-subagents/src/inspectors/herdr/inspector-runner.ts +10 -4
- package/node_modules/pi-subagents/src/inspectors/herdr/project-panes.ts +230 -50
- package/node_modules/pi-subagents/src/inspectors/herdr/session-roots-codec.ts +42 -0
- package/node_modules/pi-subagents/src/inspectors/herdr/shell-command.ts +16 -0
- package/node_modules/pi-subagents/src/integrations/herdr-status.ts +75 -5
- package/node_modules/pi-subagents/src/intercom/intercom-bridge.ts +9 -5
- package/node_modules/pi-subagents/src/intercom/native-supervisor-channel.ts +51 -52
- package/node_modules/pi-subagents/src/intercom/result-intercom.ts +2 -0
- package/node_modules/pi-subagents/src/missions/goal-driver.ts +3 -1
- package/node_modules/pi-subagents/src/missions/lifecycle.ts +10 -8
- package/node_modules/pi-subagents/src/missions/store.ts +16 -16
- package/node_modules/pi-subagents/src/missions/workflow-state.ts +8 -4
- package/node_modules/pi-subagents/src/profiles/profiles.ts +8 -7
- package/node_modules/pi-subagents/src/runs/background/active-async-capacity.ts +517 -0
- package/node_modules/pi-subagents/src/runs/background/active-run-index.ts +100 -3
- package/node_modules/pi-subagents/src/runs/background/async-execution.ts +630 -184
- package/node_modules/pi-subagents/src/runs/background/async-job-tracker.ts +143 -33
- package/node_modules/pi-subagents/src/runs/background/async-resume.ts +117 -44
- package/node_modules/pi-subagents/src/runs/background/async-retention.ts +903 -0
- package/node_modules/pi-subagents/src/runs/background/async-status-snapshot.ts +48 -0
- package/node_modules/pi-subagents/src/runs/background/async-status.ts +235 -69
- package/node_modules/pi-subagents/src/runs/background/auto-drain.ts +2 -1
- package/node_modules/pi-subagents/src/runs/background/chain-append.ts +44 -51
- package/node_modules/pi-subagents/src/runs/background/chain-root-attachment.ts +79 -8
- package/node_modules/pi-subagents/src/runs/background/completion-dedupe.ts +5 -1
- package/node_modules/pi-subagents/src/runs/background/completion-replay.ts +33 -13
- package/node_modules/pi-subagents/src/runs/background/control-channel.ts +108 -73
- package/node_modules/pi-subagents/src/runs/background/fleet-view.ts +125 -45
- package/node_modules/pi-subagents/src/runs/background/index-segment.ts +59 -0
- package/node_modules/pi-subagents/src/runs/background/inspect-rpc.ts +443 -0
- package/node_modules/pi-subagents/src/runs/background/notify.ts +272 -10
- package/node_modules/pi-subagents/src/runs/background/owned-process-tree.ts +104 -0
- package/node_modules/pi-subagents/src/runs/background/process-terminal.ts +33 -3
- package/node_modules/pi-subagents/src/runs/background/result-delivery-ownership.ts +45 -0
- package/node_modules/pi-subagents/src/runs/background/result-files.ts +519 -0
- package/node_modules/pi-subagents/src/runs/background/result-watcher.ts +329 -54
- package/node_modules/pi-subagents/src/runs/background/resume-guidance.ts +35 -12
- package/node_modules/pi-subagents/src/runs/background/retained-children.ts +85 -18
- package/node_modules/pi-subagents/src/runs/background/run-id-query.ts +7 -0
- package/node_modules/pi-subagents/src/runs/background/run-id-resolver.ts +37 -29
- package/node_modules/pi-subagents/src/runs/background/run-status.ts +204 -32
- package/node_modules/pi-subagents/src/runs/background/scheduled-runs.ts +228 -40
- package/node_modules/pi-subagents/src/runs/background/stale-run-reconciler.ts +42 -16
- package/node_modules/pi-subagents/src/runs/background/steering.ts +18 -15
- package/node_modules/pi-subagents/src/runs/background/subagent-runner.ts +1419 -546
- package/node_modules/pi-subagents/src/runs/background/subagent-wait.ts +105 -44
- package/node_modules/pi-subagents/src/runs/background/terminal-run-index.ts +138 -0
- package/node_modules/pi-subagents/src/runs/background/wait-completions.ts +54 -4
- package/node_modules/pi-subagents/src/runs/background/wait-config.ts +23 -9
- package/node_modules/pi-subagents/src/runs/background/wait-subscriptions.ts +81 -2
- package/node_modules/pi-subagents/src/runs/background/wait-tool.ts +28 -19
- package/node_modules/pi-subagents/src/runs/foreground/async-dismiss-action.ts +2 -1
- package/node_modules/pi-subagents/src/runs/foreground/async-steering-action.ts +23 -16
- package/node_modules/pi-subagents/src/runs/foreground/async-stop-action.ts +23 -2
- package/node_modules/pi-subagents/src/runs/foreground/execution.ts +730 -168
- package/node_modules/pi-subagents/src/runs/foreground/foreground-control.ts +21 -0
- package/node_modules/pi-subagents/src/runs/foreground/foreground-history.ts +26 -3
- package/node_modules/pi-subagents/src/runs/foreground/prompt-audit.ts +172 -0
- package/node_modules/pi-subagents/src/runs/foreground/subagent-executor.ts +2705 -1726
- package/node_modules/pi-subagents/src/runs/foreground/workflow-detach-reconcile.ts +299 -0
- package/node_modules/pi-subagents/src/runs/foreground/workflow-foreground-steering.ts +6 -5
- package/node_modules/pi-subagents/src/runs/shared/abort-recovery.ts +119 -0
- package/node_modules/pi-subagents/src/runs/shared/acceptance.ts +183 -39
- package/node_modules/pi-subagents/src/runs/shared/agent-contract.ts +1 -1
- package/node_modules/pi-subagents/src/runs/shared/async-status-projection.ts +597 -0
- package/node_modules/pi-subagents/src/runs/shared/background-process-options.ts +9 -0
- package/node_modules/pi-subagents/src/runs/shared/capability-ceiling.ts +1 -0
- package/node_modules/pi-subagents/src/runs/shared/chain-outputs.ts +1 -3
- package/node_modules/pi-subagents/src/runs/shared/child-identity.ts +51 -0
- package/node_modules/pi-subagents/src/runs/shared/child-launch-plan.ts +151 -0
- package/node_modules/pi-subagents/src/runs/shared/child-protocol.ts +21 -7
- package/node_modules/pi-subagents/src/runs/shared/claude-code-adapter.ts +129 -0
- package/node_modules/pi-subagents/src/runs/shared/codex-exec-adapter.ts +129 -0
- package/node_modules/pi-subagents/src/runs/shared/completion-evidence.ts +89 -0
- package/node_modules/pi-subagents/src/runs/shared/completion-guard.ts +163 -6
- package/node_modules/pi-subagents/src/runs/shared/cursor-agent-adapter.ts +114 -0
- package/node_modules/pi-subagents/src/runs/shared/dynamic-fanout.ts +4 -4
- package/node_modules/pi-subagents/src/runs/shared/extension-bindings.ts +78 -0
- package/node_modules/pi-subagents/src/runs/shared/external-cli-contract.ts +167 -0
- package/node_modules/pi-subagents/src/runs/shared/external-cli-preflight.ts +122 -0
- package/node_modules/pi-subagents/src/runs/shared/external-cli-runner.ts +353 -54
- package/node_modules/pi-subagents/src/runs/shared/external-job-bridge.ts +460 -0
- package/node_modules/pi-subagents/src/runs/shared/external-job-runner.ts +389 -0
- package/node_modules/pi-subagents/src/runs/shared/fast-mode-extension.ts +10 -0
- package/node_modules/pi-subagents/src/runs/shared/host-step-status.ts +231 -0
- package/node_modules/pi-subagents/src/runs/shared/lane-metadata.ts +105 -0
- package/node_modules/pi-subagents/src/runs/shared/launch-cwd.ts +16 -0
- package/node_modules/pi-subagents/src/runs/shared/llm-intent-arbiter.ts +302 -0
- package/node_modules/pi-subagents/src/runs/shared/long-running-guard.ts +2 -1
- package/node_modules/pi-subagents/src/runs/shared/mcp-config-sources.ts +422 -0
- package/node_modules/pi-subagents/src/runs/shared/mcp-direct-tool-allowlist.ts +230 -153
- package/node_modules/pi-subagents/src/runs/shared/mcp-direct-tool-grant.ts +194 -0
- package/node_modules/pi-subagents/src/runs/shared/model-exclusions.ts +305 -0
- package/node_modules/pi-subagents/src/runs/shared/model-fallback.ts +300 -62
- package/node_modules/pi-subagents/src/runs/shared/model-scope.ts +106 -39
- package/node_modules/pi-subagents/src/runs/shared/mutation-evidence.ts +199 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-events.ts +75 -65
- package/node_modules/pi-subagents/src/runs/shared/nested-render.ts +9 -5
- package/node_modules/pi-subagents/src/runs/shared/orca-progress-tabs.ts +499 -0
- package/node_modules/pi-subagents/src/runs/shared/parallel-handoff.ts +464 -10
- package/node_modules/pi-subagents/src/runs/shared/parallel-utils.ts +38 -20
- package/node_modules/pi-subagents/src/runs/shared/permissions.ts +6 -2
- package/node_modules/pi-subagents/src/runs/shared/pi-args.ts +279 -21
- package/node_modules/pi-subagents/src/runs/shared/pi-spawn.ts +69 -35
- package/node_modules/pi-subagents/src/runs/shared/process-signal.ts +13 -0
- package/node_modules/pi-subagents/src/runs/shared/run-fanout-budget.ts +280 -0
- package/node_modules/pi-subagents/src/runs/shared/run-history.ts +21 -1
- package/node_modules/pi-subagents/src/runs/shared/session-lease.ts +0 -6
- package/node_modules/pi-subagents/src/runs/shared/single-output.ts +93 -24
- package/node_modules/pi-subagents/src/runs/shared/structured-output.ts +46 -5
- package/node_modules/pi-subagents/src/runs/shared/subagent-control.ts +66 -7
- package/node_modules/pi-subagents/src/runs/shared/subagent-prompt-runtime.ts +195 -44
- package/node_modules/pi-subagents/src/runs/shared/subagent-startup-retry.ts +12 -0
- package/node_modules/pi-subagents/src/runs/shared/task-intent.ts +36 -9
- package/node_modules/pi-subagents/src/runs/shared/tool-availability.ts +1 -3
- package/node_modules/pi-subagents/src/runs/shared/tool-timeout.ts +93 -0
- package/node_modules/pi-subagents/src/runs/shared/workflow-graph.ts +17 -23
- package/node_modules/pi-subagents/src/runs/shared/worktree-cleanup-plan.ts +847 -0
- package/node_modules/pi-subagents/src/runs/shared/worktree.ts +49 -7
- package/node_modules/pi-subagents/src/shared/agent-stream-options.ts +5 -0
- package/node_modules/pi-subagents/src/shared/artifacts.ts +2 -6
- package/node_modules/pi-subagents/src/shared/atomic-json.ts +24 -2
- package/node_modules/pi-subagents/src/shared/capacity-resilient-json.ts +102 -0
- package/node_modules/pi-subagents/src/shared/child-session-name.ts +46 -0
- package/node_modules/pi-subagents/src/shared/completion-owner.ts +14 -0
- package/node_modules/pi-subagents/src/shared/display-text.ts +50 -0
- package/node_modules/pi-subagents/src/shared/extension-context.ts +24 -0
- package/node_modules/pi-subagents/src/shared/file-system-retry.ts +49 -1
- package/node_modules/pi-subagents/src/shared/fork-context.ts +80 -13
- package/node_modules/pi-subagents/src/shared/fork-session-cwd.ts +27 -0
- package/node_modules/pi-subagents/src/shared/formatters.ts +18 -3
- package/node_modules/pi-subagents/src/shared/launch-contract.ts +20 -6
- package/node_modules/pi-subagents/src/shared/model-info.ts +20 -0
- package/node_modules/pi-subagents/src/shared/node-executable.ts +21 -0
- package/node_modules/pi-subagents/src/shared/prompt-resources.ts +0 -40
- package/node_modules/pi-subagents/src/shared/pruned-fork.ts +450 -0
- package/node_modules/pi-subagents/src/shared/session-file-trust.ts +19 -0
- package/node_modules/pi-subagents/src/shared/session-tokens.ts +14 -3
- package/node_modules/pi-subagents/src/shared/settings.ts +25 -130
- package/node_modules/pi-subagents/src/shared/shortcuts.ts +17 -0
- package/node_modules/pi-subagents/src/shared/thinking-ceiling.ts +52 -0
- package/node_modules/pi-subagents/src/shared/types.ts +788 -64
- package/node_modules/pi-subagents/src/shared/utils.ts +52 -85
- package/node_modules/pi-subagents/src/shared/watch-strategy.ts +10 -0
- package/node_modules/pi-subagents/src/shared/workflow-child-permit.ts +207 -0
- package/node_modules/pi-subagents/src/slash/delegation-adapters.ts +1 -9
- package/node_modules/pi-subagents/src/slash/delegation-request.ts +0 -4
- package/node_modules/pi-subagents/src/slash/prompt-template-bridge.ts +37 -1
- package/node_modules/pi-subagents/src/slash/slash-commands.ts +457 -135
- package/node_modules/pi-subagents/src/slash/slash-live-state.ts +28 -14
- package/node_modules/pi-subagents/src/slash/subagents-admin.ts +5 -0
- package/node_modules/pi-subagents/src/tui/fleet-status.ts +402 -71
- package/node_modules/pi-subagents/src/tui/fleet-transcript.ts +12 -53
- package/node_modules/pi-subagents/src/tui/fleet.ts +500 -53
- package/node_modules/pi-subagents/src/tui/render-helpers.ts +31 -0
- package/node_modules/pi-subagents/src/tui/render.ts +1192 -192
- package/node_modules/pi-subagents/src/watchdog/change-signature.ts +41 -2
- package/node_modules/pi-subagents/src/watchdog/lsp-diagnostics.ts +1 -0
- package/node_modules/pi-subagents/src/watchdog/permission-arbiter.ts +60 -51
- package/node_modules/pi-subagents/src/watchdog/review.ts +4 -3
- package/node_modules/pi-subagents/src/watchdog/turn-delta.ts +1 -1
- package/node_modules/pi-subagents/src/workflows/chat-progress.ts +17 -6
- package/node_modules/pi-subagents/src/workflows/host-command.ts +235 -0
- package/node_modules/pi-subagents/src/workflows/scripted-workflow.ts +1654 -174
- package/node_modules/pi-subagents/src/workflows/workflow-child-summary.ts +121 -0
- package/node_modules/pi-subagents/src/workflows/workflow-preflight.ts +270 -0
- package/node_modules/pi-subagents/src/workflows/workflow-receipt.ts +366 -0
- package/node_modules/pi-subagents/src/workflows/workflow-resources.ts +150 -0
- package/node_modules/pi-subagents/src/workflows/workflow-settlement.ts +246 -0
- package/node_modules/zod/README.md +29 -2
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +21 -2
- package/node_modules/zod/index.d.cts +1 -2
- package/node_modules/zod/index.d.ts +1 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +20 -8
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +5 -2
- package/node_modules/zod/src/v3/ZodError.ts +22 -12
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
- package/node_modules/zod/src/v3/types.ts +5 -5
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/compat.ts +26 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +59 -44
- package/node_modules/zod/src/v4/classic/external.ts +14 -9
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +363 -78
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +10 -4
- package/node_modules/zod/src/v4/classic/schemas.ts +640 -375
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +186 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +3 -3
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +261 -13
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +582 -10
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +12 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +85 -9
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +301 -12
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +79 -3
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +222 -6
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +44 -3
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1812 -204
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +87 -35
- package/node_modules/zod/src/v4/core/checks.ts +119 -146
- package/node_modules/zod/src/v4/core/compile.ts +2313 -0
- package/node_modules/zod/src/v4/core/core.ts +99 -22
- package/node_modules/zod/src/v4/core/doc.ts +17 -9
- package/node_modules/zod/src/v4/core/errors.ts +113 -25
- package/node_modules/zod/src/v4/core/index.ts +3 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +8 -3
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +424 -156
- package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +164 -50
- package/node_modules/zod/src/v4/core/regexes.ts +42 -15
- package/node_modules/zod/src/v4/core/registries.ts +2 -2
- package/node_modules/zod/src/v4/core/schemas.ts +1000 -538
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +283 -48
- package/node_modules/zod/src/v4/core/util.ts +454 -157
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +5 -0
- package/node_modules/zod/src/v4/locales/az.ts +5 -0
- package/node_modules/zod/src/v4/locales/be.ts +12 -0
- package/node_modules/zod/src/v4/locales/bg.ts +5 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +5 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +5 -0
- package/node_modules/zod/src/v4/locales/da.ts +7 -2
- package/node_modules/zod/src/v4/locales/de.ts +5 -0
- package/node_modules/zod/src/v4/locales/el.ts +3 -0
- package/node_modules/zod/src/v4/locales/en.ts +17 -4
- package/node_modules/zod/src/v4/locales/eo.ts +5 -0
- package/node_modules/zod/src/v4/locales/es.ts +4 -0
- package/node_modules/zod/src/v4/locales/fa.ts +5 -0
- package/node_modules/zod/src/v4/locales/fi.ts +5 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +5 -0
- package/node_modules/zod/src/v4/locales/fr.ts +21 -14
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +8 -1
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +4 -0
- package/node_modules/zod/src/v4/locales/hu.ts +5 -0
- package/node_modules/zod/src/v4/locales/hy.ts +11 -0
- package/node_modules/zod/src/v4/locales/id.ts +5 -0
- package/node_modules/zod/src/v4/locales/index.ts +11 -0
- package/node_modules/zod/src/v4/locales/is.ts +5 -0
- package/node_modules/zod/src/v4/locales/it.ts +5 -0
- package/node_modules/zod/src/v4/locales/ja.ts +5 -0
- package/node_modules/zod/src/v4/locales/ka.ts +5 -0
- package/node_modules/zod/src/v4/locales/km.ts +5 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +5 -0
- package/node_modules/zod/src/v4/locales/lt.ts +4 -0
- package/node_modules/zod/src/v4/locales/mk.ts +5 -0
- package/node_modules/zod/src/v4/locales/ms.ts +5 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +5 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +7 -2
- package/node_modules/zod/src/v4/locales/ota.ts +5 -0
- package/node_modules/zod/src/v4/locales/pl.ts +5 -0
- package/node_modules/zod/src/v4/locales/ps.ts +5 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +101 -58
- package/node_modules/zod/src/v4/locales/ro.ts +3 -0
- package/node_modules/zod/src/v4/locales/ru.ts +12 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +5 -0
- package/node_modules/zod/src/v4/locales/sv.ts +7 -2
- package/node_modules/zod/src/v4/locales/ta.ts +5 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +5 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +5 -0
- package/node_modules/zod/src/v4/locales/uk.ts +5 -0
- package/node_modules/zod/src/v4/locales/ur.ts +5 -0
- package/node_modules/zod/src/v4/locales/uz.ts +3 -0
- package/node_modules/zod/src/v4/locales/vi.ts +5 -0
- package/node_modules/zod/src/v4/locales/yo.ts +5 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +5 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +5 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +12 -1
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/parse.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +167 -63
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +158 -5
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +44 -0
- package/node_modules/zod/v3/ZodError.cjs +41 -12
- package/node_modules/zod/v3/ZodError.d.cts +1 -1
- package/node_modules/zod/v3/ZodError.d.ts +1 -1
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +26 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +21 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.d.cts +9 -11
- package/node_modules/zod/v4/classic/compat.d.ts +9 -11
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +62 -34
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +51 -27
- package/node_modules/zod/v4/classic/external.d.cts +5 -2
- package/node_modules/zod/v4/classic/external.d.ts +5 -2
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +21 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +30 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +23 -1
- package/node_modules/zod/v4/classic/parse.d.cts +17 -4
- package/node_modules/zod/v4/classic/parse.d.ts +17 -4
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +591 -426
- package/node_modules/zod/v4/classic/schemas.d.cts +68 -19
- package/node_modules/zod/v4/classic/schemas.d.ts +68 -19
- package/node_modules/zod/v4/classic/schemas.js +564 -424
- package/node_modules/zod/v4/core/api.cjs +66 -24
- package/node_modules/zod/v4/core/api.d.cts +22 -12
- package/node_modules/zod/v4/core/api.d.ts +22 -12
- package/node_modules/zod/v4/core/api.js +44 -24
- package/node_modules/zod/v4/core/checks.cjs +88 -128
- package/node_modules/zod/v4/core/checks.d.cts +29 -13
- package/node_modules/zod/v4/core/checks.d.ts +29 -13
- package/node_modules/zod/v4/core/checks.js +68 -127
- package/node_modules/zod/v4/core/compile.cjs +1908 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1858 -0
- package/node_modules/zod/v4/core/core.cjs +101 -19
- package/node_modules/zod/v4/core/core.d.cts +16 -4
- package/node_modules/zod/v4/core/core.d.ts +16 -4
- package/node_modules/zod/v4/core/core.js +83 -20
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.d.cts +3 -1
- package/node_modules/zod/v4/core/doc.d.ts +3 -1
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +126 -25
- package/node_modules/zod/v4/core/errors.d.cts +4 -0
- package/node_modules/zod/v4/core/errors.d.ts +4 -0
- package/node_modules/zod/v4/core/errors.js +107 -25
- package/node_modules/zod/v4/core/index.cjs +24 -1
- package/node_modules/zod/v4/core/index.d.cts +3 -0
- package/node_modules/zod/v4/core/index.d.ts +3 -0
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
- package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/parse.cjs +148 -46
- package/node_modules/zod/v4/core/parse.d.cts +14 -11
- package/node_modules/zod/v4/core/parse.d.ts +14 -11
- package/node_modules/zod/v4/core/parse.js +127 -45
- package/node_modules/zod/v4/core/regexes.cjs +54 -17
- package/node_modules/zod/v4/core/regexes.d.cts +5 -0
- package/node_modules/zod/v4/core/regexes.d.ts +5 -0
- package/node_modules/zod/v4/core/regexes.js +32 -15
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +785 -386
- package/node_modules/zod/v4/core/schemas.d.cts +123 -34
- package/node_modules/zod/v4/core/schemas.d.ts +123 -34
- package/node_modules/zod/v4/core/schemas.js +753 -386
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
- package/node_modules/zod/v4/core/to-json-schema.d.cts +45 -5
- package/node_modules/zod/v4/core/to-json-schema.d.ts +45 -5
- package/node_modules/zod/v4/core/to-json-schema.js +247 -44
- package/node_modules/zod/v4/core/util.cjs +372 -157
- package/node_modules/zod/v4/core/util.d.cts +79 -1
- package/node_modules/zod/v4/core/util.d.ts +79 -1
- package/node_modules/zod/v4/core/util.js +341 -156
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +34 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +5 -0
- package/node_modules/zod/v4/locales/ar.js +5 -0
- package/node_modules/zod/v4/locales/az.cjs +5 -0
- package/node_modules/zod/v4/locales/az.js +5 -0
- package/node_modules/zod/v4/locales/be.cjs +12 -0
- package/node_modules/zod/v4/locales/be.js +12 -0
- package/node_modules/zod/v4/locales/bg.cjs +5 -0
- package/node_modules/zod/v4/locales/bg.js +5 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +5 -0
- package/node_modules/zod/v4/locales/ca.js +5 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +5 -0
- package/node_modules/zod/v4/locales/cs.js +5 -0
- package/node_modules/zod/v4/locales/da.cjs +7 -2
- package/node_modules/zod/v4/locales/da.js +7 -2
- package/node_modules/zod/v4/locales/de.cjs +5 -0
- package/node_modules/zod/v4/locales/de.js +5 -0
- package/node_modules/zod/v4/locales/el.cjs +3 -0
- package/node_modules/zod/v4/locales/el.js +3 -0
- package/node_modules/zod/v4/locales/en.cjs +16 -4
- package/node_modules/zod/v4/locales/en.js +16 -4
- package/node_modules/zod/v4/locales/eo.cjs +5 -0
- package/node_modules/zod/v4/locales/eo.js +5 -0
- package/node_modules/zod/v4/locales/es.cjs +4 -0
- package/node_modules/zod/v4/locales/es.js +4 -0
- package/node_modules/zod/v4/locales/fa.cjs +5 -0
- package/node_modules/zod/v4/locales/fa.js +5 -0
- package/node_modules/zod/v4/locales/fi.cjs +5 -0
- package/node_modules/zod/v4/locales/fi.js +5 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
- package/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/node_modules/zod/v4/locales/fr.cjs +18 -14
- package/node_modules/zod/v4/locales/fr.js +18 -14
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +7 -0
- package/node_modules/zod/v4/locales/he.js +7 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +4 -0
- package/node_modules/zod/v4/locales/hr.js +4 -0
- package/node_modules/zod/v4/locales/hu.cjs +5 -0
- package/node_modules/zod/v4/locales/hu.js +5 -0
- package/node_modules/zod/v4/locales/hy.cjs +11 -0
- package/node_modules/zod/v4/locales/hy.js +11 -0
- package/node_modules/zod/v4/locales/id.cjs +5 -0
- package/node_modules/zod/v4/locales/id.js +5 -0
- package/node_modules/zod/v4/locales/index.cjs +43 -2
- package/node_modules/zod/v4/locales/index.d.cts +11 -0
- package/node_modules/zod/v4/locales/index.d.ts +11 -0
- package/node_modules/zod/v4/locales/index.js +11 -0
- package/node_modules/zod/v4/locales/is.cjs +5 -0
- package/node_modules/zod/v4/locales/is.js +5 -0
- package/node_modules/zod/v4/locales/it.cjs +5 -0
- package/node_modules/zod/v4/locales/it.js +5 -0
- package/node_modules/zod/v4/locales/ja.cjs +5 -0
- package/node_modules/zod/v4/locales/ja.js +5 -0
- package/node_modules/zod/v4/locales/ka.cjs +5 -0
- package/node_modules/zod/v4/locales/ka.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +5 -0
- package/node_modules/zod/v4/locales/km.js +5 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +5 -0
- package/node_modules/zod/v4/locales/ko.js +5 -0
- package/node_modules/zod/v4/locales/lt.cjs +4 -0
- package/node_modules/zod/v4/locales/lt.js +4 -0
- package/node_modules/zod/v4/locales/mk.cjs +5 -0
- package/node_modules/zod/v4/locales/mk.js +5 -0
- package/node_modules/zod/v4/locales/ms.cjs +5 -0
- package/node_modules/zod/v4/locales/ms.js +5 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +5 -0
- package/node_modules/zod/v4/locales/nl.js +5 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +7 -2
- package/node_modules/zod/v4/locales/no.js +7 -2
- package/node_modules/zod/v4/locales/ota.cjs +5 -0
- package/node_modules/zod/v4/locales/ota.js +5 -0
- package/node_modules/zod/v4/locales/pl.cjs +5 -0
- package/node_modules/zod/v4/locales/pl.js +5 -0
- package/node_modules/zod/v4/locales/ps.cjs +5 -0
- package/node_modules/zod/v4/locales/ps.js +5 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +89 -55
- package/node_modules/zod/v4/locales/pt.js +89 -55
- package/node_modules/zod/v4/locales/ro.cjs +3 -0
- package/node_modules/zod/v4/locales/ro.js +3 -0
- package/node_modules/zod/v4/locales/ru.cjs +12 -0
- package/node_modules/zod/v4/locales/ru.js +12 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +5 -0
- package/node_modules/zod/v4/locales/sl.js +5 -0
- package/node_modules/zod/v4/locales/sv.cjs +7 -2
- package/node_modules/zod/v4/locales/sv.js +7 -2
- package/node_modules/zod/v4/locales/ta.cjs +5 -0
- package/node_modules/zod/v4/locales/ta.js +5 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +5 -0
- package/node_modules/zod/v4/locales/th.js +5 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +5 -0
- package/node_modules/zod/v4/locales/tr.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +5 -0
- package/node_modules/zod/v4/locales/uk.js +5 -0
- package/node_modules/zod/v4/locales/ur.cjs +5 -0
- package/node_modules/zod/v4/locales/ur.js +5 -0
- package/node_modules/zod/v4/locales/uz.cjs +3 -0
- package/node_modules/zod/v4/locales/uz.js +3 -0
- package/node_modules/zod/v4/locales/vi.cjs +5 -0
- package/node_modules/zod/v4/locales/vi.js +5 -0
- package/node_modules/zod/v4/locales/yo.cjs +5 -0
- package/node_modules/zod/v4/locales/yo.js +5 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/node_modules/zod/v4/mini/checks.cjs +21 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +33 -1
- package/node_modules/zod/v4/mini/external.d.cts +5 -2
- package/node_modules/zod/v4/mini/external.d.ts +5 -2
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +22 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +117 -53
- package/node_modules/zod/v4/mini/schemas.d.cts +49 -14
- package/node_modules/zod/v4/mini/schemas.d.ts +49 -14
- package/node_modules/zod/v4/mini/schemas.js +92 -51
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/package.json +172 -11
- package/dist/acp/index.js +0 -62
- package/dist/extensions/tool-gradle.js +0 -1
- package/dist/extensions/usage.js +0 -1
- package/node_modules/jose/dist/webapi/lib/base64.js +0 -22
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -28
- package/node_modules/jose/dist/webapi/lib/helpers.js +0 -42
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -26
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -17
- package/node_modules/jose/dist/webapi/lib/options.js +0 -48
- package/node_modules/jose/dist/webapi/lib/signing.js +0 -26
- package/node_modules/jose/dist/webapi/lib/type_checks.js +0 -35
- package/node_modules/pi-subagents/src/runs/foreground/chain-clarify.ts +0 -1354
- package/node_modules/pi-subagents/src/runs/foreground/chain-execution.ts +0 -1530
- package/node_modules/pi-subagents/src/runs/shared/turn-budget.ts +0 -98
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/LICENSE +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/README.md +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/bin.mjs +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/compose-collection.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/compose-doc.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/compose-node.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/compose-scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/composer.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/resolve-block-map.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/resolve-block-scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/resolve-block-seq.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/resolve-end.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/resolve-flow-collection.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/resolve-flow-scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/resolve-props.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/util-contains-newline.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/util-empty-scalar-position.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/util-flow-indent-check.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/compose/util-map-includes.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/doc/Document.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/doc/anchors.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/doc/applyReviver.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/doc/createNode.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/doc/directives.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/errors.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/index.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/log.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/Alias.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/Collection.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/Node.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/Pair.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/Scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/YAMLMap.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/YAMLSeq.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/addPairToJSMap.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/identity.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/nodes/toJS.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/parse/cst-scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/parse/cst-stringify.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/parse/cst-visit.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/parse/cst.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/parse/lexer.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/parse/line-counter.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/parse/parser.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/public-api.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/Schema.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/common/map.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/common/null.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/common/seq.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/common/string.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/core/bool.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/core/float.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/core/int.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/core/schema.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/json/schema.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/tags.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/binary.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/bool.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/float.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/int.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/merge.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/omap.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/pairs.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/schema.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/set.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/schema/yaml-1.1/timestamp.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/stringify/foldFlowLines.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/stringify/stringify.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/stringify/stringifyCollection.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/stringify/stringifyComment.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/stringify/stringifyDocument.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/stringify/stringifyNumber.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/stringify/stringifyPair.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/stringify/stringifyString.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/util.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/dist/visit.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/index.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/browser/package.json +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/cli.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/cli.mjs +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/compose-collection.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/compose-collection.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/compose-doc.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/compose-doc.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/compose-node.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/compose-node.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/compose-scalar.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/compose-scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/composer.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/composer.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-block-map.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-block-map.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-block-scalar.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-block-scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-block-seq.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-block-seq.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-end.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-end.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-flow-collection.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-flow-collection.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-flow-scalar.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-flow-scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-props.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/resolve-props.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/util-contains-newline.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/util-contains-newline.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/util-empty-scalar-position.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/util-empty-scalar-position.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/util-flow-indent-check.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/util-flow-indent-check.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/util-map-includes.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/compose/util-map-includes.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/Document.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/Document.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/anchors.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/anchors.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/applyReviver.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/applyReviver.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/createNode.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/createNode.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/directives.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/doc/directives.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/errors.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/errors.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/index.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/index.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/log.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/log.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Alias.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Alias.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Collection.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Collection.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Node.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Node.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Pair.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Pair.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Scalar.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/Scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/YAMLMap.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/YAMLMap.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/YAMLSeq.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/YAMLSeq.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/addPairToJSMap.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/addPairToJSMap.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/identity.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/identity.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/toJS.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/nodes/toJS.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/options.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/cst-scalar.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/cst-scalar.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/cst-stringify.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/cst-stringify.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/cst-visit.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/cst-visit.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/cst.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/cst.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/lexer.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/lexer.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/line-counter.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/line-counter.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/parser.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/parse/parser.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/public-api.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/public-api.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/Schema.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/Schema.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/common/map.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/common/map.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/common/null.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/common/null.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/common/seq.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/common/seq.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/common/string.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/common/string.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/core/bool.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/core/bool.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/core/float.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/core/float.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/core/int.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/core/int.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/core/schema.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/core/schema.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/json/schema.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/json/schema.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/json-schema.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/tags.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/tags.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/types.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/binary.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/binary.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/bool.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/bool.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/float.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/float.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/int.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/int.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/merge.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/merge.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/omap.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/omap.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/pairs.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/pairs.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/schema.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/schema.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/set.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/set.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/timestamp.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/schema/yaml-1.1/timestamp.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/foldFlowLines.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/foldFlowLines.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringify.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringify.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyCollection.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyCollection.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyComment.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyComment.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyDocument.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyDocument.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyNumber.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyNumber.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyPair.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyPair.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyString.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/stringify/stringifyString.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/test-events.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/test-events.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/util.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/util.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/visit.d.ts +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/dist/visit.js +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/package.json +0 -0
- /package/node_modules/{yaml → pi-subagents/node_modules/yaml}/util.js +0 -0
package/dist/cli/index.js
CHANGED
|
@@ -1,46 +1,59 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The single user-facing entry point of @explyt/ai-agent.
|
|
3
3
|
//
|
|
4
|
-
//
|
|
4
|
+
// The public npm package is a TERMINAL product:
|
|
5
5
|
//
|
|
6
|
-
// npx @explyt/ai-agent
|
|
7
|
-
// npx @explyt/ai-agent
|
|
8
|
-
// npx @explyt/ai-agent
|
|
6
|
+
// npx @explyt/ai-agent a human: start the terminal UI
|
|
7
|
+
// npx @explyt/ai-agent tui the same, spelled explicitly
|
|
8
|
+
// npx @explyt/ai-agent login a human, once: store a provider credential
|
|
9
|
+
// npx @explyt/ai-agent logout a human: remove the stored credentials
|
|
9
10
|
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
11
|
+
// ACP is NOT part of the public package. The `acp` subcommand still parses so an old
|
|
12
|
+
// IDE configuration fails with a migration message instead of "Unknown command", but
|
|
13
|
+
// the public artifact ships no adapter: IDE integration lives in the Explyt managed
|
|
14
|
+
// backend, which Neo downloads, verifies and launches locally. The SAME wrapper file
|
|
15
|
+
// also ships inside that backend artifact, where the adapter IS present next to it --
|
|
16
|
+
// there `acp` works exactly as before.
|
|
13
17
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
18
|
+
// There is deliberately no `install`. The agent registers nothing and writes to no
|
|
19
|
+
// user configuration: every run isolates the engine to the extensions WE ship, so
|
|
20
|
+
// the tool set is a property of the version pinned by the user rather than of the
|
|
21
|
+
// machine.
|
|
17
22
|
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
23
|
+
// `login` runs the engine's interactive UI against the agent's OWN configuration
|
|
24
|
+
// directory (see `agentConfigDir`): a fresh one holds no credentials, and the engine
|
|
25
|
+
// offers no non-interactive way to store them. It no longer routes through the ACP
|
|
26
|
+
// adapter -- the wrapper spawns the engine directly, with the same isolation flags
|
|
27
|
+
// the adapter would have added, so the public artifact needs no adapter for it.
|
|
28
|
+
//
|
|
29
|
+
// HARD RULE for ACP mode (backend artifact only): stdout carries protocol frames
|
|
30
|
+
// only. Any stray write corrupts the stream and the client drops the connection, so
|
|
31
|
+
// all diagnostics in this file go to stderr.
|
|
21
32
|
|
|
22
|
-
import {
|
|
23
|
-
import { existsSync } from "node:fs";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { dirname, join, relative } from "node:path";
|
|
33
|
+
import { spawnSync } from "node:child_process";
|
|
34
|
+
import { closeSync, existsSync, openSync } from "node:fs";
|
|
35
|
+
import { readFile, rm } from "node:fs/promises";
|
|
36
|
+
import { dirname, join } from "node:path";
|
|
27
37
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
28
38
|
import {
|
|
39
|
+
AGENT_DIR_ENV,
|
|
29
40
|
ENGINE_PACKAGE,
|
|
30
|
-
|
|
41
|
+
PACKAGE_DIR_ENV,
|
|
42
|
+
engineEnv,
|
|
31
43
|
engineEntrypointFrom,
|
|
44
|
+
engineShimDir,
|
|
45
|
+
ensureAgentSettings,
|
|
46
|
+
ensureEngineShim,
|
|
32
47
|
findEnginePackageDir,
|
|
33
48
|
findEngineShimDir,
|
|
34
49
|
findPackageRoot,
|
|
35
50
|
helpText,
|
|
36
|
-
|
|
37
|
-
isExcludedFromInstall,
|
|
51
|
+
interactiveStdin,
|
|
38
52
|
parseArgs,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
selfRegistrations,
|
|
42
|
-
shouldCopyBeforeRegistering,
|
|
53
|
+
terminalEngineArgs,
|
|
54
|
+
withAgentDir,
|
|
43
55
|
withEnginePath,
|
|
56
|
+
withIsolation,
|
|
44
57
|
} from "./engine.js";
|
|
45
58
|
|
|
46
59
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
@@ -57,14 +70,10 @@ if (!packageRoot) fail("cannot locate the package root (no package.json above th
|
|
|
57
70
|
/**
|
|
58
71
|
* How to reach the engine that ships alongside this package.
|
|
59
72
|
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* that shim is a generated `pi.cmd` and Node refuses to spawn `.cmd` without
|
|
65
|
-
* `shell: true` (CVE-2024-27980) -- see engineEntrypointFrom.
|
|
66
|
-
* - `binDir`, still required for ACP mode: the adapter spawns the bare command
|
|
67
|
-
* `pi`, so the shim has to be on PATH for it.
|
|
73
|
+
* The entrypoint is what terminal runs spawn (`process.execPath <entrypoint>`, never
|
|
74
|
+
* a `.bin` shim -- see `engineEntrypointFrom`); `binDir` is still located for ACP
|
|
75
|
+
* mode, where the adapter spawns the bare command `pi` and the shim has to be on
|
|
76
|
+
* PATH for it.
|
|
68
77
|
*
|
|
69
78
|
* The engine is a peer dependency, so npm places it next to us and the user never
|
|
70
79
|
* installs it separately; npm may hoist it anywhere, hence the upward search.
|
|
@@ -81,7 +90,14 @@ async function findEngine() {
|
|
|
81
90
|
}
|
|
82
91
|
if (!entrypoint || !existsSync(entrypoint)) return null;
|
|
83
92
|
const binDir = findEngineShimDir(packageRoot) ?? findEngineShimDir(here);
|
|
84
|
-
|
|
93
|
+
// The engine presents itself under our name from a manifest copy in a directory we
|
|
94
|
+
// own, handed to it through PI_PACKAGE_DIR; see `ensureEngineShim` for why that and not
|
|
95
|
+
// the installed manifest. A failed shim is reported and the engine runs unbranded.
|
|
96
|
+
const shim = ensureEngineShim(engineDir, engineShimDir(process.env));
|
|
97
|
+
if (shim.status === "failed") {
|
|
98
|
+
process.stderr.write(`explyt-ai-agent: engine keeps its own name: ${shim.detail}\n`);
|
|
99
|
+
}
|
|
100
|
+
return { engineDir, entrypoint, binDir, shimDir: shim.shimDir };
|
|
85
101
|
}
|
|
86
102
|
|
|
87
103
|
async function requireEngine() {
|
|
@@ -91,23 +107,11 @@ async function requireEngine() {
|
|
|
91
107
|
`the agent engine is missing (looked for ${ENGINE_PACKAGE} next to ${packageRoot}).\n` +
|
|
92
108
|
" It is a peer dependency, so npm 7+ installs it automatically; an installer run\n" +
|
|
93
109
|
" with --legacy-peer-deps skips peers entirely. Try again with:\n" +
|
|
94
|
-
" npm cache clean --force && npx -y @explyt/ai-agent@<version>
|
|
110
|
+
" npm cache clean --force && npx -y @explyt/ai-agent@<version>",
|
|
95
111
|
);
|
|
96
112
|
}
|
|
97
113
|
|
|
98
|
-
/**
|
|
99
|
-
function run(file, argv, env) {
|
|
100
|
-
return new Promise((resolvePromise) => {
|
|
101
|
-
const child = spawn(file, argv, { stdio: "inherit", env });
|
|
102
|
-
child.on("error", (error) => {
|
|
103
|
-
if (error?.code === "ENOENT") fail(`cannot execute ${file} (not found)`);
|
|
104
|
-
fail(`cannot execute ${file}: ${error.message}`);
|
|
105
|
-
});
|
|
106
|
-
child.on("exit", (code, signal) => resolvePromise(signal ? 1 : code ?? 0));
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/** Version of this package, used to pin the configuration snippet we print. */
|
|
114
|
+
/** Version of this package, printed by `--version`. */
|
|
111
115
|
async function selfVersion() {
|
|
112
116
|
try {
|
|
113
117
|
const manifest = JSON.parse(await readFile(join(packageRoot, "package.json"), "utf8"));
|
|
@@ -137,162 +141,89 @@ if (args.version) {
|
|
|
137
141
|
process.exit(0);
|
|
138
142
|
}
|
|
139
143
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
*/
|
|
148
|
-
function settingsPath() {
|
|
149
|
-
return join(homedir(), ".pi", "agent", "settings.json");
|
|
150
|
-
}
|
|
144
|
+
// A bare invocation is the terminal UI. It used to mean "ACP when stdin is a pipe";
|
|
145
|
+
// that heuristic is gone with the public ACP surface -- an IDE that wants ACP runs
|
|
146
|
+
// the managed backend, which passes `acp` explicitly.
|
|
147
|
+
const wantsAcp = args.command === "acp";
|
|
148
|
+
const wantsLogin = args.command === "login";
|
|
149
|
+
const wantsLogout = args.command === "logout";
|
|
150
|
+
const wantsTui = args.command === "tui" || (!args.command && !wantsAcp);
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
/** Registrations pointing at us, right now. Absent/unreadable settings mean none. */
|
|
159
|
-
async function currentRegistrations() {
|
|
160
|
-
const path = settingsPath();
|
|
161
|
-
try {
|
|
162
|
-
const settings = JSON.parse(await readFile(path, "utf8"));
|
|
163
|
-
return selfRegistrations(settings.packages, {
|
|
164
|
-
packageRoot,
|
|
165
|
-
installedRoot,
|
|
166
|
-
settingsDir: dirname(path),
|
|
167
|
-
});
|
|
168
|
-
} catch {
|
|
169
|
-
return [];
|
|
170
|
-
}
|
|
152
|
+
if (!args.command && args.rest[0] && !args.rest[0].startsWith("-")) {
|
|
153
|
+
// An unknown first word is a mistyped command, not a request to start the UI.
|
|
154
|
+
// Flags are forwarded to the engine untouched.
|
|
155
|
+
fail(`unknown command: ${args.rest[0]}\n\n${helpText()}`, 2);
|
|
171
156
|
}
|
|
172
157
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
const
|
|
183
|
-
await rm(staging, { recursive: true, force: true });
|
|
184
|
-
await mkdir(dirname(target), { recursive: true });
|
|
185
|
-
await cp(packageRoot, staging, {
|
|
186
|
-
recursive: true,
|
|
187
|
-
dereference: true,
|
|
188
|
-
filter: (source) => {
|
|
189
|
-
const relativePath = relative(packageRoot, source);
|
|
190
|
-
return relativePath === "" || !isExcludedFromInstall(relativePath);
|
|
191
|
-
},
|
|
192
|
-
});
|
|
193
|
-
let hadPrevious = false;
|
|
194
|
-
if (existsSync(target)) {
|
|
195
|
-
await rename(target, previous);
|
|
196
|
-
hadPrevious = true;
|
|
197
|
-
}
|
|
158
|
+
// `logout` is the disposal half of `login`: it deletes the credential file inside
|
|
159
|
+
// the agent's own configuration directory and touches nothing else there -- the
|
|
160
|
+
// model catalogue, settings and sessions survive, exactly as the engine would leave
|
|
161
|
+
// them after its own logout.
|
|
162
|
+
if (wantsLogout) {
|
|
163
|
+
// The SAME resolution `login` and `tui` use to point the engine at its directory:
|
|
164
|
+
// a second spelling here could one day delete from a directory login never wrote to.
|
|
165
|
+
const agentDir = withAgentDir(process.env)[AGENT_DIR_ENV];
|
|
166
|
+
const authFile = join(agentDir, "auth.json");
|
|
167
|
+
const existed = existsSync(authFile);
|
|
198
168
|
try {
|
|
199
|
-
await
|
|
169
|
+
await rm(authFile, { force: true });
|
|
200
170
|
} catch (error) {
|
|
201
|
-
|
|
202
|
-
await rm(staging, { recursive: true, force: true });
|
|
203
|
-
throw error;
|
|
171
|
+
fail(`cannot remove the stored credentials at ${authFile}: ${error.message}`);
|
|
204
172
|
}
|
|
205
|
-
|
|
173
|
+
process.stderr.write(existed
|
|
174
|
+
? `explyt-ai-agent: credentials removed (${authFile})\n`
|
|
175
|
+
: `explyt-ai-agent: no stored credentials at ${authFile}\n`);
|
|
176
|
+
process.exit(0);
|
|
206
177
|
}
|
|
207
178
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
fail("Explyt AI Agent is not registered; nothing to remove", 1);
|
|
223
|
-
}
|
|
224
|
-
for (const source of removalSources({ packageRoot, installedRoot })) {
|
|
225
|
-
await runEngine(["remove", source, ...args.rest]);
|
|
226
|
-
if ((await currentRegistrations()).length === 0) {
|
|
227
|
-
// Only our own copy is removed. A checkout registered in place belongs to
|
|
228
|
-
// the developer and must survive.
|
|
229
|
-
await rm(installedRoot, { recursive: true, force: true }).catch(() => {});
|
|
230
|
-
process.stdout.write("Explyt AI Agent unregistered.\n");
|
|
231
|
-
process.exit(0);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
fail(`could not unregister Explyt AI Agent; check ${settingsPath()}`, 1);
|
|
179
|
+
// TERMINAL MODES: tui and login. Both run the engine's interactive UI directly,
|
|
180
|
+
// pinned to this package's resources and to the agent's own state directory. The
|
|
181
|
+
// difference is only where keystrokes come from: `login` may be launched by another
|
|
182
|
+
// program with a piped stdin, so the controlling terminal is consulted before
|
|
183
|
+
// giving up; the TUI is only ever started by a human.
|
|
184
|
+
if (wantsTui || wantsLogin) {
|
|
185
|
+
const stdinFd = interactiveStdin({ isTTY: process.stdin.isTTY, openTty: () => openSync("/dev/tty", "r") });
|
|
186
|
+
if (stdinFd === null) {
|
|
187
|
+
fail(
|
|
188
|
+
`\`${wantsLogin ? "login" : "tui"}\` is interactive and found no terminal to read from.\n` +
|
|
189
|
+
" Run it yourself in a shell:\n" +
|
|
190
|
+
` ${process.execPath} ${fileURLToPath(import.meta.url)} ${wantsLogin ? "login" : "tui"}`,
|
|
191
|
+
2,
|
|
192
|
+
);
|
|
235
193
|
}
|
|
236
194
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
//
|
|
240
|
-
|
|
241
|
-
if (
|
|
242
|
-
|
|
243
|
-
await copySelfInto(installedRoot);
|
|
244
|
-
copiedTo = installedRoot;
|
|
245
|
-
} catch (error) {
|
|
246
|
-
fail(`cannot copy the package into ${installedRoot}: ${error.message}`);
|
|
247
|
-
}
|
|
195
|
+
const engine = await requireEngine();
|
|
196
|
+
const env = engineEnv(process.env, undefined, { shimDir: engine.shimDir });
|
|
197
|
+
// The engine's own header must not flash before ours; see SEEDED_SETTINGS.
|
|
198
|
+
const settings = ensureAgentSettings(env[AGENT_DIR_ENV]);
|
|
199
|
+
if (settings.status === "failed") {
|
|
200
|
+
process.stderr.write(`explyt-ai-agent: engine settings not seeded: ${settings.detail}\n`);
|
|
248
201
|
}
|
|
249
|
-
|
|
250
|
-
//
|
|
251
|
-
//
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
// build, and an unpinned client config would later resolve a different one,
|
|
258
|
-
// leaving the registered extensions and the running adapter out of step.
|
|
259
|
-
const spec = version ? `${SELF_PACKAGE}@${version}` : SELF_PACKAGE;
|
|
260
|
-
process.stdout.write(
|
|
261
|
-
"Explyt AI Agent registered.\n" +
|
|
262
|
-
(kind === "copied"
|
|
263
|
-
// Worth stating where the registered copy lives: it is ours, not the npx
|
|
264
|
-
// cache, so clearing the npm cache cannot break the registration.
|
|
265
|
-
? `Installed into ${source}\n`
|
|
266
|
-
: `Registered in place: ${source}\n`) +
|
|
267
|
-
"Point your IDE at it with:\n" +
|
|
268
|
-
` {"command": "npx", "args": ["-y", "${spec}", "acp"]}\n` +
|
|
269
|
-
"Restart the IDE afterwards, since it reads its configuration at startup.\n",
|
|
270
|
-
);
|
|
202
|
+
// `login` is ephemeral (NO_SESSION_FLAG); the TUI keeps its sessions. A login that
|
|
203
|
+
// asks for a stored session is refused here, before anything is spawned: the engine
|
|
204
|
+
// would accept the flag and silently do nothing with it.
|
|
205
|
+
let argv;
|
|
206
|
+
try {
|
|
207
|
+
argv = terminalEngineArgs(engine.entrypoint, packageRoot, args.rest, { login: wantsLogin });
|
|
208
|
+
} catch (error) {
|
|
209
|
+
fail(error.message, 2);
|
|
271
210
|
}
|
|
272
|
-
process.exit(code);
|
|
273
|
-
}
|
|
274
211
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
process.exit(
|
|
212
|
+
const child = spawnSync(process.execPath, argv, {
|
|
213
|
+
stdio: [stdinFd, "inherit", "inherit"],
|
|
214
|
+
env,
|
|
215
|
+
});
|
|
216
|
+
if (stdinFd !== 0) closeSync(stdinFd);
|
|
217
|
+
if (child.error) fail(`cannot start the agent engine: ${child.error.message}`);
|
|
218
|
+
// A signalled child has no exit code; report it as a shell would.
|
|
219
|
+
if (child.signal) process.exit(1);
|
|
220
|
+
process.exit(child.status ?? 1);
|
|
283
221
|
}
|
|
284
222
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
//
|
|
288
|
-
//
|
|
289
|
-
// one place the `.bin` shim is still needed, and the adapter handles the Windows
|
|
290
|
-
// `.cmd` case itself.
|
|
291
|
-
process.env.PATH = withEnginePath(process.env, engine.binDir).PATH;
|
|
292
|
-
|
|
293
|
-
// Two layouts must both work, so the adapter is located rather than hardcoded:
|
|
294
|
-
// published: dist/cli/index.js -> dist/acp/index.js
|
|
295
|
-
// dev source: cli/index.mjs -> vendor/pi-acp/dist/index.js
|
|
223
|
+
// ACP MODE. Only reachable with an explicit `acp`, and only functional in the
|
|
224
|
+
// managed-backend (or debug) artifact, where the adapter ships next to this file:
|
|
225
|
+
// backend artifact: dist/cli/index.js -> dist/acp/index.js
|
|
226
|
+
// dev source: cli/index.mjs -> vendor/pi-acp/dist/index.js
|
|
296
227
|
const adapterCandidates = [
|
|
297
228
|
join(here, "..", "acp", "index.js"),
|
|
298
229
|
join(packageRoot, "dist", "acp", "index.js"),
|
|
@@ -300,16 +231,43 @@ const adapterCandidates = [
|
|
|
300
231
|
];
|
|
301
232
|
const adapter = adapterCandidates.find((candidate) => existsSync(candidate));
|
|
302
233
|
if (!adapter) {
|
|
234
|
+
// The public terminal package: fail with a migration message rather than
|
|
235
|
+
// "unknown command", because this is exactly what an old IDE entry runs.
|
|
303
236
|
fail(
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
"
|
|
237
|
+
"ACP is not included in the public terminal package.\n" +
|
|
238
|
+
" IDE integration is provided by the Explyt managed backend, which the Neo plugin\n" +
|
|
239
|
+
" downloads and manages. Update the IDE configuration to use it, or pin the last\n" +
|
|
240
|
+
" ACP-capable version of this package.",
|
|
307
241
|
);
|
|
308
242
|
}
|
|
309
243
|
|
|
244
|
+
// Hand the bundled engine to the adapter by putting our shim first on PATH. The
|
|
245
|
+
// adapter spawns the bare command `pi`, so this makes it select ours -- this is the
|
|
246
|
+
// one place the `.bin` shim is still needed, and the adapter handles the Windows
|
|
247
|
+
// `.cmd` case itself.
|
|
248
|
+
const engine = await requireEngine();
|
|
249
|
+
process.env.PATH = withEnginePath(process.env, engine.binDir).PATH;
|
|
250
|
+
|
|
251
|
+
// Point the engine at THIS agent's configuration directory rather than the
|
|
252
|
+
// `~/.pi/agent` of a pi the user may also run by hand. Set here, in our own process,
|
|
253
|
+
// because the adapter hands `process.env` to every engine it spawns -- and because
|
|
254
|
+
// an IDE backend can pass us no environment of its own. The directory is the SAME
|
|
255
|
+
// one the terminal product uses, so a credential stored with `login` is visible to
|
|
256
|
+
// the managed backend. Both spellings of the variable are set: the branded engine
|
|
257
|
+
// reads one, the bundled extensions and the adapter read the other. The shim goes in
|
|
258
|
+
// too, so every engine the adapter spawns presents itself under our name.
|
|
259
|
+
// `Object.assign` can add and overwrite, but it cannot REMOVE. When the shim failed,
|
|
260
|
+
// `engineEnv` answers without the override -- yet a value exported by the user's shell
|
|
261
|
+
// would survive in `process.env` and reach every engine the adapter spawns, pointing
|
|
262
|
+
// them at a package directory this launch did not build. RQ-13 asks for no override at
|
|
263
|
+
// all in that case, so the inherited one goes first.
|
|
264
|
+
if (!engine.shimDir) delete process.env[PACKAGE_DIR_ENV];
|
|
265
|
+
Object.assign(process.env, engineEnv(process.env, undefined, { shimDir: engine.shimDir }));
|
|
266
|
+
|
|
310
267
|
// The adapter self-starts on import: loading the module builds the ACP connection
|
|
311
268
|
// and resumes stdin. So it is imported for its side effect, never called as an API.
|
|
312
269
|
// Strip our own subcommand first — the adapter parses argv itself and would reject
|
|
313
|
-
// `acp` as an unknown argument
|
|
314
|
-
|
|
270
|
+
// `acp` as an unknown argument — and pin the extension set to this package, so the
|
|
271
|
+
// engine never merges in whatever the user registered globally.
|
|
272
|
+
process.argv = [process.argv[0], process.argv[1], ...withIsolation(args.rest, packageRoot)];
|
|
315
273
|
await import(pathToFileURL(adapter).href);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const bS=b;(function(bl,bm){const bR=b,bn=bl();while(!![]){try{const bo=-parseInt(bR(0x177))/0x1*(parseInt(bR(0x1d4))/0x2)+parseInt(bR(0x349))/0x3*(parseInt(bR(0x2d8))/0x4)+parseInt(bR(0x290))/0x5+parseInt(bR(0x36b))/0x6*(parseInt(bR(0x237))/0x7)+-parseInt(bR(0x2cf))/0x8*(parseInt(bR(0x377))/0x9)+parseInt(bR(0x2e4))/0xa+-parseInt(bR(0x243))/0xb;if(bo===bm)break;else bn['push'](bn['shift']());}catch(bp){bn['push'](bn['shift']());}}}(a,0xcf4d7));import{getAgentDir as c,hasTrustRequiringProjectResources,ProjectTrustStore,SettingsManager}from'@earendil-works/pi-coding-agent';import{join as d}from'node:path';import{randomBytes}from'node:crypto';import{existsSync,mkdirSync,promises as e,readdirSync,readFileSync,renameSync,writeFileSync}from'node:fs';import{join}from'node:path';var f=bS(0x246);function g(){const bT=bS;return'j-'+randomBytes(0x4)[bT(0x1aa)](bT(0x18d));}var h=0x10;function i(bl,bm=existsSync){const bU=bS;for(let bn=0x0;bn<h;bn+=0x1){const bo=g();if(!bm(j(bl,bo)))return bo;}throw new Error(bU(0x26a)+bl+bU(0x1cd)+h+bU(0x2d6));}function b(c,d){const e=a();return b=function(f,g){f=f-0x172;let h=e[f];if(b['lVkDer']===undefined){var i=function(m){const n='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let o='',p='';for(let q=0x0,r,s,t=0x0;s=m['charAt'](t++);~s&&(r=q%0x4?r*0x40+s:s,q++%0x4)?o+=String['fromCharCode'](0xff&r>>(-0x2*q&0x6)):0x0){s=n['indexOf'](s);}for(let u=0x0,v=o['length'];u<v;u++){p+='%'+('00'+o['charCodeAt'](u)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(p);};b['NHOWlB']=i,c=arguments,b['lVkDer']=!![];}const j=e[0x0],k=f+j,l=c[k];return!l?(h=b['NHOWlB'](h),c[k]=h):h=l,h;},b(c,d);}function j(bl,bm){const bV=bS;return join(bl,bm+bV(0x218));}function k(bl,bm){const bW=bS;return join(bl,bm+bW(0x23f));}function l(bl){const bX=bS,bm=bl[bX(0x32a)]??i(bl[bX(0x2d9)],bl[bX(0x2eb)]);return{'jobId':bm,'sessionId':bl[bX(0x2ae)],'enginePid':bl[bX(0x2e9)],'mode':bl[bX(0x2b6)],'command':bl[bX(0x314)],'cwd':bl[bX(0x350)],'pid':null,'startedAt':new Date(bl[bX(0x2fd)])[bX(0x20f)](),'state':bX(0x283),'exitCode':null,'signal':null,'exitObserved':![],'treeStopIncomplete':![],'outcomeReport':bX(0x378),'outputPath':k(bl[bX(0x2d9)],bm)};}var m=new Set();function n(bl,bm,bn={}){const bY=bS,bo=bn[bY(0x1c1)]??mkdirSync;!m[bY(0x231)](bl)&&(bo(bl,{'recursive':!![]}),m[bY(0x20e)](bl));const bp=j(bl,bm[bY(0x32a)]),bq=bp+'.'+process[bY(0x358)]+bY(0x36c),br=JSON[bY(0x1c8)](bm);try{writeFileSync(bq,br,{'mode':0x180});}catch(bs){if(bs[bY(0x35b)]!==bY(0x20d))throw bs;bo(bl,{'recursive':!![]}),writeFileSync(bq,br,{'mode':0x180});}renameSync(bq,bp);}function o(bl){const bZ=bS;try{return JSON[bZ(0x341)](readFileSync(bl,bZ(0x26f)));}catch{return void 0x0;}}function p(bl){const c0=bS;let bm;try{bm=readdirSync(bl);}catch{return[];}return bm[c0(0x34a)](bn=>bn[c0(0x232)](c0(0x218)))[c0(0x264)](bn=>o(join(bl,bn)))[c0(0x34a)](bn=>bn!==void 0x0);}async function q(bl,bm){const c1=bS,bn=await e[c1(0x268)](bl)[c1(0x2f6)](()=>[]);await Promise[c1(0x1a5)](bn[c1(0x34a)](bo=>bo===bm+c1(0x218)||bo===bm+c1(0x23f)||bo[c1(0x2f3)](bm+'.'))[c1(0x264)](bo=>e['rm'](join(bl,bo),{'force':!![]})[c1(0x2f6)](()=>void 0x0)));}import{spawn as r}from'node:child_process';import{constants,promises as s}from'node:fs';import{join as t}from'node:path';import{getShellConfig}from'@earendil-works/pi-coding-agent';import{join as u}from'node:path';function v(bl=process[bS(0x2aa)]){const c2=bS;return u(bl[c2(0x2d0)]??c2(0x1e8),c2(0x17b),c2(0x238));}function w(bl){const c3=bS;return bl?.[c3(0x35b)];}async function x(bl,bm,bn){const c4=bS;if(bn[c4(0x21a)]===c4(0x313))try{const bo=await bn[c4(0x293)]([v(bn[c4(0x2aa)]),'/F','/T',c4(0x2a4),String(bl)]);if(bo[c4(0x35b)]===0x0)return{'outcome':c4(0x2c7)};if(bo[c4(0x35b)]===0x80)return{'outcome':c4(0x2df)};return{'outcome':c4(0x193),'detail':c4(0x194)+bo[c4(0x35b)]+':\x20'+bo[c4(0x34b)][c4(0x32c)](0x0,0x200)};}catch(bp){return{'outcome':c4(0x193),'detail':c4(0x276)+String(bp)};}else try{return bn[c4(0x289)](-bl,bm),{'outcome':c4(0x2c7)};}catch(bq){if(w(bq)===c4(0x205))return{'outcome':c4(0x193),'detail':c4(0x227)};try{return bn[c4(0x289)](bl,bm),{'outcome':c4(0x2c7)};}catch(br){if(w(br)===c4(0x205))return{'outcome':c4(0x193),'detail':c4(0x1c2)};return{'outcome':c4(0x2df)};}}}import{spawn as y}from'node:child_process';var z=0x1000;function A(bl=y){return bm=>new Promise((bn,bo)=>{const c5=b,[bp,...bq]=bm,br=bl(bp,bq,{'stdio':[c5(0x29e),c5(0x195),c5(0x195)],'windowsHide':!![],'shell':![]});let bs='';const bt=bu=>{const c6=c5;if(bs[c6(0x374)]<z)bs+=bu[c6(0x1aa)](c6(0x26f))[c6(0x32c)](0x0,z-bs[c6(0x374)]);};br[c5(0x1df)]?.['on'](c5(0x1ca),bt),br[c5(0x36d)]?.['on'](c5(0x1ca),bt),br[c5(0x1ea)](c5(0x225),bo),br[c5(0x1ea)](c5(0x32d),bu=>bn({'code':bu,'output':bs}));});}import{delimiter,join as B}from'node:path';import{getAgentDir}from'@earendil-works/pi-coding-agent';function C(){const c7=bS,bl=B(getAgentDir(),c7(0x2ed)),bm=Object[c7(0x2e5)](process[c7(0x2aa)])[c7(0x1d6)](br=>br[c7(0x36f)]()===c7(0x1f0))??c7(0x2f2),bn=process[c7(0x2aa)][bm]??'',bo=bn[c7(0x31e)](delimiter)[c7(0x34a)](Boolean),bp=bo[c7(0x2a7)](bl),bq=bp?bn:[bl,bn][c7(0x34a)](Boolean)[c7(0x37b)](delimiter);return{...process[c7(0x2aa)],[bm]:bq};}var D=0x64;function E(bl,bm){return new Promise((bn,bo)=>{const c8=b;let bp=![],bq=![],br=null,bs,bt;const bu=bm?.[c8(0x25d)]??((bK,bL)=>setTimeout(bK,bL)[c8(0x371)]()),bv=bm?.[c8(0x18f)]??(bK=>clearTimeout(bK)),bw=()=>bm?bm[c8(0x31d)]():Promise[c8(0x181)]();let bx=bl[c8(0x1df)]===null,by=bl[c8(0x36d)]===null;const bz=()=>{const c9=c8;bs&&(bv(bs),bs=void 0x0),bt&&(bv(bt),bt=void 0x0),bl[c9(0x1b7)](c9(0x225),bH),bl[c9(0x1b7)](c9(0x292),bI),bl[c9(0x1b7)](c9(0x32d),bJ),bl[c9(0x1df)]?.[c9(0x1b7)](c9(0x1e2),bF),bl[c9(0x36d)]?.[c9(0x1b7)](c9(0x1e2),bG),bl[c9(0x1df)]?.[c9(0x1b7)](c9(0x1ca),bE),bl[c9(0x36d)]?.[c9(0x1b7)](c9(0x1ca),bE);},bA=bK=>{const ca=c8;if(bp)return;bp=!![],bz(),bl[ca(0x1df)]?.[ca(0x18c)](),bl[ca(0x36d)]?.[ca(0x18c)](),bB(),void bw()[ca(0x280)](()=>{if(bt)bv(bt);bt=void 0x0,bn(bK);});},bB=()=>{const cb=c8;if(!bm||bm[cb(0x24c)]===void 0x0||bt||!bm[cb(0x2b3)]())return;bt=bu(()=>{const cc=cb;bt=void 0x0,bm[cc(0x1e7)]?.();if(!bp)bA(br);},bm[cb(0x24c)]);},bC=()=>{if(!bq||bp)return;bx&&by&&bA(br);},bD=()=>{const cd=c8;if(bs)bv(bs);if(bm?.[cd(0x2b3)]()){bs=void 0x0,bB(),void bm[cd(0x31d)]()[cd(0x280)](()=>{if(bq&&!bp)bD();});return;}bt&&(bv(bt),bt=void 0x0),bs=bu(()=>bA(br),D);},bE=()=>{if(bq&&!bp)bD();},bF=()=>{bx=!![],bC();},bG=()=>{by=!![],bC();},bH=bK=>{if(bp)return;bp=!![],bz(),bo(bK);},bI=bK=>{bq=!![],br=bK,bC(),!bp&&bD();},bJ=bK=>{bA(bK);};bl[c8(0x1df)]?.[c8(0x1ea)](c8(0x1e2),bF),bl[c8(0x36d)]?.[c8(0x1ea)](c8(0x1e2),bG),bl[c8(0x1df)]?.['on'](c8(0x1ca),bE),bl[c8(0x36d)]?.['on'](c8(0x1ca),bE),bl[c8(0x1ea)](c8(0x225),bH),bl[c8(0x1ea)](c8(0x292),bI),bl[c8(0x1ea)](c8(0x32d),bJ);});}import{promises as F,watch}from'node:fs';import{join as G}from'node:path';var H=0xfa,I=0x5dc,J=/^(j-[0-9a-f-]+)\.([^.]+)\.ctl$/,K=class{[bS(0x2fc)];[bS(0x257)];[bS(0x320)]=![];[bS(0x1a1)]=![];[bS(0x2b9)]=0x0;[bS(0x364)];constructor(bl){const ce=bS;this[ce(0x364)]=bl;}[bS(0x245)](){const cf=bS,bl=this[cf(0x364)][cf(0x31b)]??L;this[cf(0x2fc)]=bl(this[cf(0x364)][cf(0x2d9)],bn=>{const cg=cf;if(bn==null||J[cg(0x2a6)](String(bn)))void this[cg(0x295)]();});const bm=()=>{const ch=cf;void this[ch(0x295)]();if(!this[ch(0x1a1)])this[ch(0x257)]=this[ch(0x364)][ch(0x355)][ch(0x25d)](bm,H);};this[cf(0x257)]=this[cf(0x364)][cf(0x355)][cf(0x25d)](bm,H);}[bS(0x296)](){const ci=bS;this[ci(0x1a1)]=!![],this[ci(0x2b9)]+=0x1,this[ci(0x2fc)]?.[ci(0x32d)](),this[ci(0x2fc)]=void 0x0;if(this[ci(0x257)])this[ci(0x364)][ci(0x355)][ci(0x18f)](this[ci(0x257)]);this[ci(0x257)]=void 0x0;}async[bS(0x295)](){const cj=bS;if(this[cj(0x320)]||this[cj(0x1a1)])return;this[cj(0x320)]=!![];const bl=this[cj(0x2b9)];try{const bm=await F[cj(0x268)](this[cj(0x364)][cj(0x2d9)])[cj(0x2f6)](()=>[]);for(const bn of bm){if(this[cj(0x2b9)]!==bl)return;const bo=J[cj(0x1fa)](bn);if(!bo||!this[cj(0x364)][cj(0x23a)](bo[0x1]))continue;await this[cj(0x37f)](G(this[cj(0x364)][cj(0x2d9)],bn),bo[0x1],bo[0x2],bl);}}finally{this[cj(0x320)]=![];}}async[bS(0x37f)](bl,bm,bn,bo){const ck=bS,bp=bl+ck(0x318);try{await F[ck(0x1f6)](bl,bp);}catch{return;}try{const bq=JSON[ck(0x341)](await F[ck(0x30a)](bp,ck(0x26f)));if(this[ck(0x2b9)]!==bo)return;const br=typeof bq[ck(0x222)]===ck(0x2b0)?bq[ck(0x222)]:bn;if(typeof bq[ck(0x27e)]!==ck(0x20a)||this[ck(0x364)][ck(0x355)][ck(0x2fd)]()-bq[ck(0x27e)]>I)return;if(bq[ck(0x19b)]!==ck(0x323)&&bq[ck(0x19b)]!==ck(0x296)){this[ck(0x364)][ck(0x35e)](bm,br,ck(0x1d0));return;}const bs=await this[ck(0x364)][ck(0x21c)]({'jobId':bm,'requestId':br,'action':bq[ck(0x19b)],'by':ck(0x35a),'requestedAt':bq[ck(0x27e)]});this[ck(0x364)][ck(0x35e)](bm,br,bs);}catch{}finally{await F['rm'](bp,{'force':!![]})[ck(0x2f6)](()=>void 0x0);}}};function L(bl,bm){const cl=bS;try{const bn=watch(bl,{'persistent':![]},(bo,bp)=>bm(bp));return bn['on'](cl(0x225),()=>void 0x0),bn;}catch{return void 0x0;}}import{promises as M}from'node:fs';import{DEFAULT_MAX_BYTES,DEFAULT_MAX_LINES,truncateTail}from'@earendil-works/pi-coding-agent';function N(bl){const cm=bS;return Array[cm(0x22f)](bl)[cm(0x34a)](bm=>{const cn=cm,bn=bm[cn(0x228)](0x0);if(bn===void 0x0)return![];if(bn===0x9||bn===0xa||bn===0xd)return!![];if(bn<=0x1f)return![];if(bn>=0xfff9&&bn<=0xfffb)return![];return!![];})[cm(0x37b)]('');}async function O(bl,bm){const co=bS,bn=await M[co(0x35d)](bl,'r');try{const {size:bo}=await bn[co(0x2c8)](),bp=Math[co(0x2ec)](bo-bm,0x0),bq=Buffer[co(0x189)](bo-bp);let br=0x0;while(br<bq[co(0x374)]){const {bytesRead:bu}=await bn[co(0x270)](bq,br,bq[co(0x374)]-br,bp+br);if(bu<=0x0)break;br+=bu;}const bs=bq[co(0x1ab)](0x0,br);let bt=0x0;if(bp>0x0){while(bt<bs[co(0x374)]&&(bs[bt]&0xc0)===0x80)bt++;}return bs[co(0x1ab)](bt);}finally{await bn[co(0x32d)]();}}function P(bl,bm){const cp=bS;if(bm===void 0x0)return bl;const bn=bl[cp(0x31e)]('\x0a'),bo=bn['at'](-0x1)===''?0x1:0x0;if(bn[cp(0x374)]-bo<=bm)return bl;return bn[cp(0x32c)](bn[cp(0x374)]-bo-bm)[cp(0x37b)]('\x0a');}function Q(bl){const cq=bS,bm=truncateTail(bl,{'maxLines':DEFAULT_MAX_LINES,'maxBytes':DEFAULT_MAX_BYTES});return{'text':bm[cq(0x312)],'truncated':bm[cq(0x357)],'tailLines':bm[cq(0x2f8)],'tailBytes':bm[cq(0x30f)]};}async function R(bl,bm){const cr=bS;let bn;try{bn=await O(bl,DEFAULT_MAX_BYTES*0x4);}catch(bo){const bp=bo[cr(0x35b)]??cr(0x380);throw new Error(cr(0x279)+bl+':\x20'+bp+'\x20'+bo[cr(0x2da)]);}return Q(P(N(bn[cr(0x1aa)](cr(0x26f))),bm));}var S={'fg-finalize':{'pending':bS(0x25e)},'stop-before-signal':{'pending':bS(0x25e)},'kill-returns-outcome':{'pending':bS(0x25e)},'send':{'pending':bS(0x26e)},'message-start':{'pending':bS(0x1f4),'sending':bS(0x1f4)},'agent-settled-without-start':{'sending':bS(0x378)},'resend-limit':{'pending':bS(0x25e)}};function T(bl){const cs=bS;return bl===cs(0x1f4)||bl===cs(0x25e);}function U(bl,bm){const ct=bS;if(T(bl[ct(0x344)]))return![];const bn=S[bm][bl[ct(0x344)]];if(bn===void 0x0)return![];return bl[ct(0x344)]=bn,!![];}import{promises as V}from'node:fs';var W=0x7d0,X=0xbb8,Y={'now':()=>Date[bS(0x2fd)](),'setTimeout':(bl,bm)=>setTimeout(bl,bm)[bS(0x371)](),'clearTimeout':bl=>clearTimeout(bl)};function Z(bl,bm,bn){const cu=bS,{record:bo}=bl;if(bo[cu(0x1f9)]!==cu(0x283)||bo[cu(0x18a)]||bl[cu(0x33f)])return![];return bl[cu(0x33f)]={'reason':bm,'by':bn},bo[cu(0x2c3)]=bm,bo[cu(0x220)]=bn,!![];}function a0(bl,bm,bn){return new Promise(bo=>{const cv=b;let bp=![];const bq=bm[cv(0x25d)](()=>{if(bp)return;bp=!![],bo(![]);},bn);void bl[cv(0x27d)][cv(0x280)](()=>{const cw=cv;if(bp)return;bp=!![],bm[cw(0x18f)](bq),bo(!![]);});});}function a1(bl,bm,bn,bo){const cx=bS;if(bl[cx(0x317)])return bl[cx(0x317)];return bl[cx(0x317)]=((async()=>{const cy=cx,{record:bp}=bl;let bq=![];const br=[],bs=bl[cy(0x2cc)]?.[cy(0x358)],bt=()=>bs!==void 0x0&&bl[cy(0x2cc)]!==void 0x0&&!bp[cy(0x18a)],bu=async bw=>{const cz=cy;if(!bt())return![];const bx=await x(bs,bw,bo);if(bx[cz(0x2a0)]===cz(0x193))return bq=!![],bp[cz(0x1fd)]=!![],![];if(bx[cz(0x2a0)]===cz(0x2c7))br[cz(0x265)](bo[cz(0x21a)]===cz(0x313)?cz(0x293):bw);return bx[cz(0x2a0)]===cz(0x2c7);};if(!bm[cy(0x354)]&&bo[cy(0x21a)]!==cy(0x313)){const bw=await bu(cy(0x342));if(bw&&await a0(bl,bn,W))return{'outcome':cy(0x1a1),'exitObserved':!![],'treeStopIncomplete':bq,'sent':br};}!bq&&await bu(cy(0x302));const bv=await a0(bl,bn,bm[cy(0x2af)]??X);return{'outcome':cy(0x1a1),'exitObserved':bv||bp[cy(0x18a)],'treeStopIncomplete':bq,'sent':br};})()),bl[cx(0x317)];}var a2=0x5*0x400**0x3,a3=0xc8,a4=class{[bS(0x1f0)];[bS(0x17e)];[bS(0x28e)]=0x0;[bS(0x235)]=![];[bS(0x1e6)];[bS(0x272)];[bS(0x28a)]=[];[bS(0x217)]=0x0;[bS(0x2f0)]=![];[bS(0x1a3)]=![];[bS(0x250)]=![];[bS(0x359)]=[];[bS(0x1da)];[bS(0x21a)];[bS(0x2cd)];[bS(0x2c0)];[bS(0x355)];constructor(bl){const cA=bS;this[cA(0x1f0)]=bl[cA(0x1f0)],this[cA(0x17e)]=bl[cA(0x17e)]??a2,this[cA(0x1da)]=bl[cA(0x1da)]??[],this[cA(0x21a)]=bl[cA(0x21a)]??process[cA(0x21a)],this[cA(0x2cd)]=bl[cA(0x2cd)],this[cA(0x2c0)]=bl[cA(0x2c0)],this[cA(0x355)]=bl[cA(0x355)]??Y;}async[bS(0x35d)](){const cB=bS;this[cB(0x272)]=await V[cB(0x35d)](this[cB(0x1f0)],'wx',this[cB(0x21a)]===cB(0x313)?void 0x0:0x180);}[bS(0x382)](bl,bm){const cC=bS;this[cC(0x1da)]=bl,this[cC(0x2cd)]=bm[cC(0x2cd)],this[cC(0x2c0)]=bm[cC(0x2c0)];}[bS(0x1c7)](){const cD=bS;if(this[cD(0x250)])return![];return this[cD(0x2f0)]||this[cD(0x28a)][cD(0x374)]>0x0;}[bS(0x33e)](){const cE=bS;if(!this[cE(0x1c7)]())return Promise[cE(0x181)]();return new Promise(bl=>this[cE(0x359)][cE(0x265)](bl));}[bS(0x356)](bl){const cF=bS;if(this[cF(0x1a3)]||this[cF(0x235)]||this[cF(0x1e6)])return;const bm=this[cF(0x17e)]-this[cF(0x28e)]-this[cF(0x217)];let bn=bl;bl[cF(0x374)]>bm&&(bn=bl[cF(0x1ab)](0x0,Math[cF(0x2ec)](bm,0x0)),this[cF(0x235)]=!![]);bn[cF(0x374)]>0x0&&(this[cF(0x28a)][cF(0x265)](bn),this[cF(0x217)]+=bn[cF(0x374)]);if(this[cF(0x235)])this[cF(0x2cd)]?.();void this[cF(0x2b5)]();}async[bS(0x2b5)](){const cG=bS;if(this[cG(0x2f0)])return;this[cG(0x2f0)]=!![];for(const bl of this[cG(0x1da)])bl[cG(0x297)]();try{while(this[cG(0x28a)][cG(0x374)]>0x0&&this[cG(0x272)]&&!this[cG(0x1e6)]){const bm=this[cG(0x28a)][cG(0x2ce)](),bn=this[cG(0x28e)];try{await this[cG(0x363)](bm);}catch(bo){try{await this[cG(0x363)](bm,this[cG(0x28e)]-bn);}catch{this[cG(0x1e6)]=bo instanceof Error?bo:new Error(String(bo)),this[cG(0x28a)]=[],this[cG(0x2c0)]?.(this[cG(0x1e6)]);}}finally{this[cG(0x217)]-=bm[cG(0x374)];}}}finally{this[cG(0x2f0)]=![];for(const bq of this[cG(0x1da)])if(!bq[cG(0x352)])bq[cG(0x200)]();const bp=this[cG(0x359)];this[cG(0x359)]=[];for(const br of bp)br();}}async[bS(0x363)](bl,bm=0x0){const cH=bS;while(bm<bl[cH(0x374)]){const {bytesWritten:bn}=await this[cH(0x272)][cH(0x1b9)](bl,bm,bl[cH(0x374)]-bm,this[cH(0x28e)]);if(bn<=0x0)throw new Error(cH(0x2e2)+this[cH(0x1f0)]+cH(0x1ef)+(bl[cH(0x374)]-bm)+cH(0x336));bm+=bn,this[cH(0x28e)]+=bn;}}async[bS(0x32d)](){const cI=bS;this[cI(0x1a3)]=!![],await this[cI(0x33e)](),this[cI(0x343)](),await this[cI(0x334)]();}async[bS(0x213)](){const cJ=bS;this[cJ(0x1a3)]=!![],this[cJ(0x250)]=!![],this[cJ(0x28a)]=[],this[cJ(0x217)]=0x0;const bl=this[cJ(0x359)];this[cJ(0x359)]=[];for(const bo of bl)bo();this[cJ(0x343)]();let bm;const bn=new Promise(bp=>bm=this[cJ(0x355)][cJ(0x25d)](bp,a3));await Promise[cJ(0x233)]([this[cJ(0x334)](),bn]),this[cJ(0x355)][cJ(0x18f)](bm);}[bS(0x343)](){const cK=bS;this[cK(0x1da)]=[],this[cK(0x2cd)]=void 0x0,this[cK(0x2c0)]=void 0x0;}async[bS(0x334)](){const cL=bS,bl=this[cL(0x272)];this[cL(0x272)]=void 0x0,await bl?.[cL(0x32d)]()[cL(0x2f6)](()=>void 0x0);}},a5=0x1d4c0,a6=0x36ee80,a7=0x8,a8=0x2bc,a9=0x1388,aa=0xafc8,ab=0x400,ac=0x1e*0xea60,ad=0xea60,ae=0x7530,af=bS(0x32f),ag=[/\(y\/n\)/i,/\[y(es)?\/n(o)?\]/i,/press enter/i,/continue\?/i,/overwrite\?/i,/\?\s*$/],ah=bS(0x178),ai=class{[bS(0x32e)]=new Map();[bS(0x355)];[bS(0x21a)];[bS(0x289)];[bS(0x1bb)];[bS(0x2f4)];[bS(0x212)];[bS(0x2aa)];[bS(0x1dc)];[bS(0x2e9)];[bS(0x33c)];[bS(0x28f)];[bS(0x1c0)];[bS(0x1f5)]=![];[bS(0x1e5)];constructor(bl){const cM=bS;this[cM(0x1e5)]=bl,this[cM(0x355)]=bl[cM(0x355)]??Y,this[cM(0x21a)]=bl[cM(0x21a)]??process[cM(0x21a)],this[cM(0x2e9)]=bl[cM(0x2e9)]??process[cM(0x358)],this[cM(0x1bb)]=bl[cM(0x234)]??r,this[cM(0x2f4)]=bl[cM(0x2f4)]??(()=>getShellConfig()),this[cM(0x212)]=bl[cM(0x212)]??(()=>void 0x0),this[cM(0x2aa)]=bl[cM(0x2aa)]??C,this[cM(0x1dc)]=bl[cM(0x24d)]??n,this[cM(0x289)]={'platform':this[cM(0x21a)],'kill':bl[cM(0x289)]??((bm,bn)=>process[cM(0x289)](bm,bn)),'taskkill':bl[cM(0x293)]??A()};}[bS(0x37f)](bl,bm){const cN=bS;if(!U(bl[cN(0x21d)],bm))return![];if(!this[cN(0x1f5)])this[cN(0x2be)](bl[cN(0x21d)]);return!![];}[bS(0x2be)](bl){const cO=bS;try{return this[cO(0x1dc)](this[cO(0x1e5)][cO(0x2d9)],bl),!![];}catch(bm){const bn=cO(0x2a3)+bm[cO(0x2da)];return bl[cO(0x1ee)]??=bn,this[cO(0x1e5)][cO(0x2a5)]?.(cO(0x365)+bl[cO(0x32a)]+':\x20'+bn),![];}}[bS(0x23c)](bl,bm){const cP=bS;bm[cP(0x2f6)](bn=>this[cP(0x1e5)][cP(0x2a5)]?.(cP(0x230)+bl+cP(0x309)+(bn?.[cP(0x2da)]??String(bn))));}[bS(0x203)](){const cQ=bS;return[...this[cQ(0x32e)][cQ(0x1c4)]()][cQ(0x34a)](bl=>bl[cQ(0x21d)][cQ(0x1f9)]===cQ(0x283)&&(bl[cQ(0x21d)][cQ(0x2b6)]===cQ(0x339)||bl[cQ(0x21d)][cQ(0x1b5)]));}async[bS(0x245)](bl){const cR=bS;this[cR(0x17c)](bl[cR(0x2b6)]);const bm=bl[cR(0x2b6)]===cR(0x251)?bl[cR(0x327)]??a5:bl[cR(0x327)],bn=this[cR(0x355)][cR(0x2fd)](),bo=l({'dir':this[cR(0x1e5)][cR(0x2d9)],'sessionId':this[cR(0x1e5)][cR(0x2ae)],'enginePid':this[cR(0x2e9)],'mode':bl[cR(0x2b6)],'command':bl[cR(0x314)],'cwd':bl[cR(0x350)],'now':bn,'jobId':bl[cR(0x32a)]});n(this[cR(0x1e5)][cR(0x2d9)],bo);const {job:bp,resolveExited:bq,resolveSpawnAttempted:br}=this[cR(0x201)](bo);try{const bs=await this[cR(0x273)](bl[cR(0x350)]);await bp[cR(0x23e)][cR(0x35d)]();const {child:bt,killedByCut:bu}=await this[cR(0x2b8)](bp,bl,bs,bq);bp[cR(0x2cc)]=bt,bo[cR(0x358)]=bt[cR(0x358)]??null,br();if(bp[cR(0x33a)]||this[cR(0x1f5)]){Z(bp,cR(0x204),cR(0x204));if(bt[cR(0x358)]!==void 0x0&&!bu)await x(bt[cR(0x358)],cR(0x302),this[cR(0x289)]);bp[cR(0x2cc)]=void 0x0;throw new Error(cR(0x29b));}return this[cR(0x248)](bp,bt,bl,bm,bn),bp;}catch(bv){await this[cR(0x368)](bp,bv),br();if(bv instanceof Error)bv[cR(0x32a)]=bo[cR(0x32a)];throw bv;}}[bS(0x17c)](bl){const cS=bS;if(bl!==cS(0x339))return;const bm=this[cS(0x203)]();if(bm[cS(0x374)]>=a7)throw new Error(cS(0x2ca)+a7+cS(0x34f)+bm[cS(0x264)](bn=>bn[cS(0x21d)][cS(0x32a)])[cS(0x37b)](',\x20')+cS(0x2d2));}[bS(0x201)](bl){const cT=bS;let bm,bn,bo,bp;const bq={'record':bl,'writer':new a4({'path':bl[cT(0x2a1)],'capBytes':this[cT(0x1e5)][cT(0x17e)],'platform':this[cT(0x21a)],'clock':this[cT(0x355)]}),'child':void 0x0,'exited':new Promise(br=>bn=br),'spawnAttempted':new Promise(br=>bp=br),'settled':new Promise(br=>bo=br),'wait':new Promise(br=>bm=br),'resolveWait':br=>bm(br),'settle':br=>bo(br),'terminal':![]};return void bq[cT(0x269)][cT(0x280)](br=>bq[cT(0x27f)](br)),this[cT(0x32e)][cT(0x198)](bl[cT(0x32a)],bq),this[cT(0x2c5)](),{'job':bq,'resolveExited':bn,'resolveSpawnAttempted':bp};}async[bS(0x273)](bl){const cU=bS,bm=this[cU(0x2f4)]();if(bm[cU(0x239)]===cU(0x338))throw new Error(af);try{await s[cU(0x22e)](bl,constants[cU(0x24e)]);}catch{throw new Error(cU(0x224)+bl+cU(0x183));}return bm;}[bS(0x1eb)](bl){const cV=bS,bm={...this[cV(0x2aa)]()};for(const bn of[cV(0x184),cV(0x2d4),cV(0x19c),cV(0x271),cV(0x18b)])delete bm[bn];return Object[cV(0x185)](bm,bl??{}),bm;}async[bS(0x2b8)](bl,bm,bn,bo){const cW=bS,bp=this[cW(0x1eb)](bm[cW(0x300)]),bq=this[cW(0x212)](),br=bq?bq+'\x0a'+bm[cW(0x314)]:bm[cW(0x314)],bs=bn[cW(0x256)]===cW(0x1d9)?''+ah+br:br,bt=this[cW(0x1bb)](bn[cW(0x329)],[...bn[cW(0x202)],bs],{'cwd':bm[cW(0x350)],'detached':this[cW(0x21a)]!==cW(0x313),'env':bp,'stdio':[cW(0x29e),cW(0x195),cW(0x195)],'windowsHide':!![]});bl[cW(0x1c5)]=bt;const bu=new Promise((bw,bx)=>{const cX=cW;bt[cX(0x1ea)](cX(0x234),()=>bw()),bt[cX(0x1ea)](cX(0x225),by=>bx(by));});bt[cW(0x1ea)](cW(0x292),(bw,bx)=>{const cY=cW;if(bl[cY(0x33a)])return;bl[cY(0x21d)][cY(0x18a)]=!![],bl[cY(0x21d)][cY(0x253)]=bw,bl[cY(0x21d)][cY(0x275)]=bx,bo();}),await bu;const bv=bl[cW(0x1c5)]===void 0x0;return bl[cW(0x1c5)]=void 0x0,{'child':bt,'killedByCut':bv};}[bS(0x248)](bl,bm,bn,bo,bp){const cZ=bS,bq=bl[cZ(0x21d)];this[cZ(0x2be)](bq),this[cZ(0x188)](bl,bm,bn[cZ(0x197)]),bm[cZ(0x1ea)](cZ(0x225),br=>this[cZ(0x23c)](cZ(0x281),this[cZ(0x2cb)](bl,{'reason':cZ(0x180),'by':cZ(0x180)},String(br)))),this[cZ(0x1e5)][cZ(0x199)]?.({'jobId':bq[cZ(0x32a)],'event':cZ(0x1af),'at':this[cZ(0x355)][cZ(0x2fd)](),'pid':bq[cZ(0x358)]??-0x1,'outputPath':bq[cZ(0x2a1)],'mode':bq[cZ(0x2b6)]});if(bo!==void 0x0)this[cZ(0x2e7)](bl,bo,bp);if(bn[cZ(0x2b6)]===cZ(0x339))this[cZ(0x252)](bl);this[cZ(0x1c9)](bl,bn[cZ(0x275)]),this[cZ(0x23c)](cZ(0x211),this[cZ(0x211)](bl,E(bm,{'writerBusy':()=>bl[cZ(0x23e)][cZ(0x1c7)](),'writerIdle':()=>bl[cZ(0x23e)][cZ(0x33e)](),'setTimeout':(br,bs)=>this[cZ(0x355)][cZ(0x25d)](br,bs),'clearTimeout':br=>this[cZ(0x355)][cZ(0x18f)](br),'writerGraceMs':ae,'onWriterGraceElapsed':()=>{const d0=cZ;bl[d0(0x21d)][d0(0x1ee)]??=d0(0x1ae),bl[d0(0x186)]=!![],this[d0(0x23c)](d0(0x2c1),bl[d0(0x23e)][d0(0x213)]());}})));}async[bS(0x368)](bl,bm){const d1=bS;if(bl[d1(0x2cc)]?.[d1(0x358)]!==void 0x0&&!bl[d1(0x33a)]){const bn=bl[d1(0x2cc)][d1(0x358)];bl[d1(0x2cc)]=void 0x0,await x(bn,d1(0x302),this[d1(0x289)])[d1(0x2f6)](()=>void 0x0);}bl[d1(0x1c5)]=void 0x0,await this[d1(0x209)](bl,bm);}[bS(0x188)](bl,bm,bn){const d2=bS,bo=[bm[d2(0x1df)],bm[d2(0x36d)]][d2(0x34a)](br=>br!==null),bp=bl[d2(0x23e)];bp[d2(0x382)](bo,{'onCap':()=>this[d2(0x23c)](d2(0x322),this[d2(0x2cb)](bl,{'reason':d2(0x1a9),'by':d2(0x1a9)})),'onFailure':br=>{const d3=d2;bl[d3(0x21d)][d3(0x1ee)]=br[d3(0x2da)],bl[d3(0x186)]=!![],this[d3(0x23c)](d3(0x226),this[d3(0x2cb)](bl,{'reason':d3(0x180),'by':d3(0x180)}));}});const bq=br=>{const d4=d2;if(bl[d4(0x33a)])return;bp[d4(0x356)](br),bn?.(br);};for(const br of bo)br['on'](d2(0x1ca),bq);}async[bS(0x211)](bl,bm){const d5=bS;let bn=null;try{bn=await bm;}catch{}if(bl[d5(0x21d)][d5(0x1f9)]!==d5(0x283)||bl[d5(0x33a)])return;if(bl[d5(0x317)])await bl[d5(0x317)][d5(0x2f6)](()=>void 0x0);if(bl[d5(0x33a)])return;await bl[d5(0x23e)][d5(0x32d)]();if(bl[d5(0x33a)])return;const bo=bl[d5(0x21d)];if(bl[d5(0x186)])bo[d5(0x1f9)]=d5(0x193);else{if(bl[d5(0x33f)])bo[d5(0x1f9)]=d5(0x266);else bo[d5(0x1ee)]?bo[d5(0x1f9)]=d5(0x193):bo[d5(0x1f9)]=(bn??bo[d5(0x253)])===0x0?d5(0x340):d5(0x193);}if(bo[d5(0x253)]===null&&bn!==null)bo[d5(0x253)]=bn;this[d5(0x2e0)](bl);}[bS(0x2e0)](bl){const d6=bS;if(bl[d6(0x33a)])return;bl[d6(0x33a)]=!![];const bm=bl[d6(0x21d)];bm[d6(0x25c)]=new Date(this[d6(0x355)][d6(0x2fd)]())[d6(0x20f)](),this[d6(0x335)](bl),bl[d6(0x19e)]?.(),bl[d6(0x2cc)]=void 0x0;if(bm[d6(0x2b6)]===d6(0x251)&&!bm[d6(0x1b5)])U(bm,d6(0x223));if(!this[d6(0x1f5)]&&!this[d6(0x2be)](bm)&&bm[d6(0x1f9)]===d6(0x340))bm[d6(0x1f9)]=d6(0x193);this[d6(0x1e5)][d6(0x199)]?.({'jobId':bm[d6(0x32a)],'event':d6(0x292),'at':this[d6(0x355)][d6(0x2fd)](),'state':bm[d6(0x1f9)],'exitCode':bm[d6(0x253)],'signal':bm[d6(0x275)],'killReason':bm[d6(0x2c3)],'stoppedBy':bm[d6(0x220)],'exitObserved':bm[d6(0x18a)],'treeStopIncomplete':bm[d6(0x1fd)]}),bl[d6(0x30d)](bm);if((bm[d6(0x2b6)]===d6(0x339)||bm[d6(0x1b5)])&&bm[d6(0x344)]===d6(0x378)&&!this[d6(0x1f5)])this[d6(0x1e5)][d6(0x206)]?.(bl);if(!this[d6(0x1f5)])this[d6(0x316)](bl);}[bS(0x316)](bl,bm=ac){const d7=bS;if(bl[d7(0x214)])this[d7(0x355)][d7(0x18f)](bl[d7(0x214)]);bl[d7(0x214)]=this[d7(0x355)][d7(0x25d)](()=>{const d8=d7;bl[d8(0x214)]=void 0x0;if(this[d8(0x1f5)]||bl[d8(0x21d)][d8(0x324)]===![])return;if(!T(bl[d8(0x21d)][d8(0x344)])){this[d8(0x316)](bl,ad);return;}this[d8(0x23c)](d8(0x1a7),this[d8(0x1a2)](bl));},bm);}async[bS(0x1a2)](bl){const d9=bS,bm=bl[d9(0x21d)];let bn;try{bn=await(this[d9(0x1e5)][d9(0x1d5)]??R)(bm[d9(0x2a1)]);}catch{return;}if(this[d9(0x1f5)])return;bm[d9(0x351)]={'text':bn[d9(0x370)],'truncated':bn[d9(0x357)],'bytes':bn[d9(0x337)],'lines':bn[d9(0x267)]},bm[d9(0x324)]=![];if(!this[d9(0x2be)](bm)){bm[d9(0x324)]=void 0x0,bm[d9(0x351)]=void 0x0,this[d9(0x316)](bl,ad);return;}const bo=this[d9(0x1e5)][d9(0x210)]??(bp=>s['rm'](bp,{'force':!![]}));await bo(bm[d9(0x2a1)])[d9(0x2f6)](()=>void 0x0),this[d9(0x1e5)][d9(0x199)]?.({'jobId':bm[d9(0x32a)],'event':d9(0x2a9),'at':this[d9(0x355)][d9(0x2fd)]()});}async[bS(0x209)](bl,bm){const da=bS,bn=bl[da(0x21d)];if(bl[da(0x33a)])return;if(this[da(0x1f5)]&&bl[da(0x33f)])return;U(bn,da(0x223)),bn[da(0x1f9)]=da(0x193),bn[da(0x253)]=null,bn[da(0x18a)]=![],bn[da(0x1ee)]=bm instanceof Error?bm[da(0x2da)]:String(bm),await bl[da(0x23e)][da(0x32d)]();if(bm?.[da(0x35b)]===da(0x332))bl[da(0x28c)]=!![];else await s['rm'](bn[da(0x2a1)],{'force':!![]})[da(0x2f6)](()=>void 0x0);this[da(0x2e0)](bl);}[bS(0x2e7)](bl,bm,bn){const db=bS;if(bl[db(0x1cb)])this[db(0x355)][db(0x18f)](bl[db(0x1cb)]);const bo=Math[db(0x2ec)](bm-(this[db(0x355)][db(0x2fd)]()-bn),0x0);bl[db(0x1cb)]=this[db(0x355)][db(0x25d)](()=>{const dc=db;bl[dc(0x1cb)]=void 0x0,bl[dc(0x21d)][dc(0x2b6)]===dc(0x251)&&!bl[dc(0x21d)][dc(0x1b5)]?this[dc(0x23c)](dc(0x1ce),this[dc(0x323)](bl[dc(0x21d)][dc(0x32a)],dc(0x1d7))):this[dc(0x23c)](dc(0x2c6),this[dc(0x2cb)](bl,{'reason':dc(0x1d7),'by':dc(0x1d7)}));},bo);}[bS(0x252)](bl){const dd=bS;let bm=bl[dd(0x23e)][dd(0x28e)],bn=this[dd(0x355)][dd(0x2fd)](),bo=-0x1;const bp=()=>{const de=dd;if(bl[de(0x33a)])return;const bq=bl[de(0x23e)][de(0x28e)];if(bq!==bm)bm=bq,bn=this[de(0x355)][de(0x2fd)]();else!bl[de(0x2e3)]&&bq!==bo&&this[de(0x355)][de(0x2fd)]()-bn>=aa&&(bo=bq,this[de(0x23c)](de(0x1bc),this[de(0x1e1)](bl)));bl[de(0x219)]=this[de(0x355)][de(0x25d)](bp,a9);};bl[dd(0x219)]=this[dd(0x355)][dd(0x25d)](bp,a9);}async[bS(0x1e1)](bl){const df=bS;let bm='';try{bm=(await O(bl[df(0x21d)][df(0x2a1)],ab))[df(0x1aa)](df(0x26f));}catch{return;}const bn=bm[df(0x1bf)]()[df(0x31e)]('\x0a')['at'](-0x1)??'';!bl[df(0x2e3)]&&ag[df(0x21e)](bo=>bo[df(0x2a6)](bn))&&(bl[df(0x2e3)]=!![],this[df(0x1e5)][df(0x288)]?.(bl,bm));}[bS(0x1c9)](bl,bm){const dg=bS;if(!bm)return;const bn=()=>this[dg(0x23c)](dg(0x2e1),this[dg(0x2cb)](bl,{'reason':dg(0x241),'by':dg(0x241)}));if(bm[dg(0x26b)]){bn();return;}bm[dg(0x2f1)](dg(0x241),bn,{'once':!![]}),bl[dg(0x19e)]=()=>bm[dg(0x19a)](dg(0x241),bn);}[bS(0x335)](bl){const dh=bS;if(bl[dh(0x1cb)])this[dh(0x355)][dh(0x18f)](bl[dh(0x1cb)]);if(bl[dh(0x219)])this[dh(0x355)][dh(0x18f)](bl[dh(0x219)]);bl[dh(0x1cb)]=void 0x0,bl[dh(0x219)]=void 0x0;}[bS(0x375)](bl){const di=bS;if(bl[di(0x214)])this[di(0x355)][di(0x18f)](bl[di(0x214)]);bl[di(0x214)]=void 0x0;}async[bS(0x296)](bl,bm,bn,bo){const dj=bS,bp=this[dj(0x32e)][dj(0x333)](bl);if(!bp)return dj(0x1d0);if(bp[dj(0x21d)][dj(0x1f9)]!==dj(0x283)||bp[dj(0x21d)][dj(0x18a)]||!bp[dj(0x2cc)])return dj(0x34d);if(bo)U(bp[dj(0x21d)],bo);return this[dj(0x2cb)](bp,{'reason':bm,'by':bn});}async[bS(0x2cb)](bl,bm,bn){const dk=bS,bo=bl[dk(0x33f)]?.[dk(0x1cc)]===bm[dk(0x1cc)]&&bl[dk(0x33f)]?.['by']===bm['by']&&!bl[dk(0x317)];if(!bo&&!Z(bl,bm[dk(0x1cc)],bm['by'])){if(bl[dk(0x317)])return bl[dk(0x317)];return{'outcome':dk(0x34d),'exitObserved':bl[dk(0x21d)][dk(0x18a)],'treeStopIncomplete':bl[dk(0x21d)][dk(0x1fd)],'sent':[]};}if(bn)bl[dk(0x21d)][dk(0x1ee)]??=bn;bl[dk(0x21d)][dk(0x2b6)]===dk(0x251)&&!bl[dk(0x21d)][dk(0x1b5)]&&bm['by']===dk(0x35a)&&U(bl[dk(0x21d)],dk(0x2bf));this[dk(0x2be)](bl[dk(0x21d)]);const bp=await a1(bl,bm,this[dk(0x355)],this[dk(0x289)]);if(!bp[dk(0x18a)]&&!bl[dk(0x33a)]){bl[dk(0x21d)][dk(0x1f9)]=dk(0x266),bl[dk(0x21d)][dk(0x18a)]=![];if(bm[dk(0x1cc)]===dk(0x204))await bl[dk(0x23e)][dk(0x213)]();else await bl[dk(0x23e)][dk(0x32d)]();this[dk(0x2e0)](bl);}return bp;}async[bS(0x323)](bl,bm){const dl=bS,bn=this[dl(0x32e)][dl(0x333)](bl);if(!bn)return dl(0x1d0);const bo=bn[dl(0x21d)];if(bo[dl(0x2b6)]===dl(0x339)||bo[dl(0x1b5)])return dl(0x21f);if(bo[dl(0x1f9)]!==dl(0x283)||bo[dl(0x18a)]||bn[dl(0x33f)]||!bn[dl(0x2cc)]||bo[dl(0x344)]!==dl(0x378))return dl(0x34d);bo[dl(0x1b5)]=bm,bn[dl(0x19e)]?.(),bn[dl(0x19e)]=void 0x0;if(bn[dl(0x1cb)])this[dl(0x355)][dl(0x18f)](bn[dl(0x1cb)]);return bn[dl(0x1cb)]=void 0x0,this[dl(0x252)](bn),this[dl(0x2be)](bo),this[dl(0x1e5)][dl(0x199)]?.({'jobId':bl,'event':dl(0x29a),'at':this[dl(0x355)][dl(0x2fd)](),'by':bm}),bn[dl(0x27f)](bo),dl(0x29a);}[bS(0x2c5)](){const dm=bS;if(this[dm(0x33c)])return;this[dm(0x33c)]=new K({'dir':this[dm(0x1e5)][dm(0x2d9)],'clock':this[dm(0x355)],'owns':bl=>this[dm(0x32e)][dm(0x231)](bl),'execute':bl=>this[dm(0x1fb)](bl),'ack':(bl,bm,bn)=>this[dm(0x1e5)][dm(0x199)]?.({'jobId':bl,'event':dm(0x2fb),'at':this[dm(0x355)][dm(0x2fd)](),'requestId':bm,'outcome':bn})}),this[dm(0x33c)][dm(0x245)]();}async[bS(0x1fb)](bl){const dn=bS,bm=this[dn(0x32e)][dn(0x333)](bl[dn(0x32a)]);if(!bm)return dn(0x1d0);if(bm[dn(0x21d)][dn(0x1f9)]!==dn(0x283))return dn(0x34d);if(bl[dn(0x19b)]===dn(0x323))return this[dn(0x323)](bl[dn(0x32a)],dn(0x35a));if(bm[dn(0x21d)][dn(0x18a)]||!bm[dn(0x2cc)])return dn(0x34d);if(!Z(bm,dn(0x35a),dn(0x35a)))return bm[dn(0x33f)]&&!bm[dn(0x33a)]?dn(0x307):dn(0x34d);return this[dn(0x23c)](dn(0x191),this[dn(0x2cb)](bm,{'reason':dn(0x35a),'by':dn(0x35a)})),dn(0x307);}[bS(0x2d5)](){const dp=bS,bl=this[dp(0x1e5)][dp(0x18e)]??process;this[dp(0x28f)]=()=>{const dq=dp;for(const bm of this[dq(0x32e)][dq(0x1c4)]()){if(!Z(bm,dq(0x204),dq(0x204))||!bm[dq(0x2cc)]?.[dq(0x358)])continue;if(this[dq(0x21a)]===dq(0x313))this[dq(0x23c)](dq(0x24a),this[dq(0x289)][dq(0x293)]([v(this[dq(0x289)][dq(0x2aa)]),'/F','/T',dq(0x2a4),String(bm[dq(0x2cc)][dq(0x358)])]));else try{this[dq(0x289)][dq(0x289)](-bm[dq(0x2cc)][dq(0x358)],dq(0x302));}catch{}}};for(const bm of[dp(0x342),dp(0x1b4),dp(0x258)])bl['on'](bm,this[dp(0x28f)]);this[dp(0x1c0)]=this[dp(0x28f)],bl['on'](dp(0x292),this[dp(0x1c0)]);}[bS(0x384)](){const dr=bS,bl=this[dr(0x1e5)][dr(0x18e)]??process;if(this[dr(0x28f)]){for(const bm of[dr(0x342),dr(0x1b4),dr(0x258)])bl[dr(0x366)](bm,this[dr(0x28f)]);}if(this[dr(0x1c0)])bl[dr(0x366)](dr(0x292),this[dr(0x1c0)]);this[dr(0x28f)]=void 0x0,this[dr(0x1c0)]=void 0x0;}async[bS(0x204)](bl=a8){const ds=bS;this[ds(0x1f5)]=!![],this[ds(0x33c)]?.[ds(0x296)](),this[ds(0x33c)]=void 0x0,this[ds(0x384)]();let bm;const bn=new Promise(bq=>bm=this[ds(0x355)][ds(0x25d)](bq,bl)),bo=[...this[ds(0x32e)][ds(0x1c4)]()][ds(0x264)](async bq=>{const dt=ds;bq[dt(0x21d)][dt(0x1f9)]===dt(0x283)&&!bq[dt(0x21d)][dt(0x18a)]&&bq[dt(0x2cc)]&&(U(bq[dt(0x21d)],dt(0x2bf)),await this[dt(0x2cb)](bq,{'reason':dt(0x204),'by':dt(0x204),'skipGrace':!![],'forceDeadlineMs':bl})),await bq[dt(0x269)];});await Promise[ds(0x233)]([Promise[ds(0x1a5)](bo),bn]),this[ds(0x355)][ds(0x18f)](bm);const bp=[...this[ds(0x32e)][ds(0x1c4)]()][ds(0x34a)](bq=>!bq[ds(0x33a)])[ds(0x264)](async bq=>{const du=ds;Z(bq,du(0x204),du(0x204));const br=bq[du(0x1c5)];br?.[du(0x358)]!==void 0x0&&(bq[du(0x1c5)]=void 0x0,await x(br[du(0x358)],du(0x302),this[du(0x289)])[du(0x2f6)](()=>void 0x0)),bq[du(0x21d)][du(0x1f9)]=du(0x266),bq[du(0x21d)][du(0x18a)]=![],await bq[du(0x23e)][du(0x213)](),this[du(0x2e0)](bq);});await Promise[ds(0x1a5)](bp);for(const bq of this[ds(0x32e)][ds(0x1c4)]()){this[ds(0x375)](bq);if(bq[ds(0x28c)])await s['rm'](j(this[ds(0x1e5)][ds(0x2d9)],bq[ds(0x21d)][ds(0x32a)]),{'force':!![]})[ds(0x2f6)](()=>void 0x0);else await q(this[ds(0x1e5)][ds(0x2d9)],bq[ds(0x21d)][ds(0x32a)]);}}};async function aj(bl,bm=ak){const dv=bS,bn=[];for(const bq of p(bl)){if(bm(bq[dv(0x2e9)]))continue;await q(bl,bq[dv(0x32a)]),bn[dv(0x265)](bq[dv(0x32a)]);}const bo=await s[dv(0x268)](bl)[dv(0x2f6)](()=>[]),bp=new Set(bo[dv(0x34a)](br=>br[dv(0x232)](dv(0x218)))[dv(0x264)](br=>br[dv(0x32c)](0x0,-dv(0x218)[dv(0x374)])));for(const br of bo){const bs=/^(j-[0-9a-f]+)\.(.+\.ctl|.+\.ctl\.taken|.+\.tmp)$/[dv(0x1fa)](br);if(!bs||bp[dv(0x231)](bs[0x1]))continue;await s['rm'](t(bl,br),{'force':!![]})[dv(0x2f6)](()=>void 0x0);}return bn;}function ak(bl){const dw=bS;try{return process[dw(0x289)](bl,0x0),!![];}catch(bm){return bm[dw(0x35b)]===dw(0x205);}}var al=0x927c0,am=class extends Error{[bS(0x1b6)];constructor(bl,bm){const dx=bS;super(dx(0x328)+bl+':\x20'+bm),this[dx(0x1b6)]=bl;}};function an(bl){const dy=bS;if(bl===void 0x0)return void 0x0;if(typeof bl!==dy(0x20a)||!Number[dy(0x221)](bl)||bl<=0x0)throw new am(dy(0x1d7),dy(0x2dd));if(bl*0x3e8>a6)throw new am(dy(0x1d7),dy(0x240)+a6/0x3e8+dy(0x30b));return bl*0x3e8;}function ao(bl){const dz=bS;if(typeof bl[dz(0x314)]!==dz(0x2b0)||bl[dz(0x314)][dz(0x374)]===0x0)throw new am(dz(0x314),dz(0x348));if(bl[dz(0x339)]!==void 0x0&&typeof bl[dz(0x339)]!==dz(0x1a0))throw new am(dz(0x339),dz(0x1d8));const bm=an(bl[dz(0x1d7)]);return{'command':bl[dz(0x314)],'timeoutMs':bm,'timeoutSeconds':bl[dz(0x1d7)],'background':bl[dz(0x339)]===!![]};}function ap(bl){const dA=bS;if(typeof bl!==dA(0x2b0)||bl[dA(0x374)]===0x0)throw new am(dA(0x32a),dA(0x348));return bl;}function aq(bl){const dB=bS,bm=ap(bl[dB(0x32a)]);if(bl[dB(0x267)]!==void 0x0&&(!Number[dB(0x1ac)](bl[dB(0x267)])||bl[dB(0x267)]<0x1))throw new am(dB(0x267),dB(0x1b8));if(bl[dB(0x2b1)]!==void 0x0&&(!Number[dB(0x1ac)](bl[dB(0x2b1)])||bl[dB(0x2b1)]<0x0||bl[dB(0x2b1)]>al))throw new am(dB(0x2b1),dB(0x2ad)+al);return{'jobId':bm,'tailLines':bl[dB(0x267)],'waitMs':bl[dB(0x2b1)]??0x0};}var ar=bS(0x301);function as(bl){const dC=bS;return dC(0x346)+bl;}function at(bl,bm,bn){const dD=bS,bo=bl[dD(0x1b5)]===dD(0x1d7)?dD(0x29c)+(bn??a5/0x3e8)+dD(0x347)+bl[dD(0x32a)]+dD(0x1a4):dD(0x299)+bl[dD(0x32a)]+dD(0x37a);return[bm[dD(0x1bf)](),bo][dD(0x34a)](bp=>bp[dD(0x374)]>0x0)[dD(0x37b)]('\x0a\x0a');}function au(bl){const dE=bS;return dE(0x1bd)+bl+dE(0x23d);}function av(bl){const dF=bS,bm=[dF(0x207)+bl[dF(0x32a)]+dF(0x37e)+bl[dF(0x1f9)]];if(bl[dF(0x1f9)]!==dF(0x283)){bm[dF(0x265)](bl[dF(0x253)]===null?bl[dF(0x275)]?dF(0x2ba)+bl[dF(0x275)]:dF(0x208):dF(0x274)+bl[dF(0x253)]);if(bl[dF(0x2c3)])bm[dF(0x265)](dF(0x2f9)+bl[dF(0x2c3)]+dF(0x1d1)+bl[dF(0x220)]+')');if(!bl[dF(0x18a)])bm[dF(0x265)](dF(0x175));if(bl[dF(0x1fd)])bm[dF(0x265)](dF(0x259));}return bm[dF(0x37b)]('\x20')+'.';}function a(){const et=['zMLUAxnO','BgfZDeXPBMvqyxj0AwfS','D3jPDgLUzW','ywrKrxzLBNrmAxn0zw5LCG','uefusa','C3rHCNrZv2L0Aa','C2HLBgXdB25MAwC','lIbgDwXSig91Dhb1DdOG','y2f0y2G','zgLZB3DU','B3v0Chv0tgLUzxm','kgTPBgXLzdOG','yxbWzw5KrgvJB2rLzfrLEhq','y3rSlwfJAW','D2f0y2HLCG','BM93','DgvYBwLUywWTAM9IlwfKDMLZB3j5','z2v0twfUywDLCG','C2vZC2LVBKvUDG','vgHLihvZzxiGC3rVChbLzcb0AgLZignVBw1HBMqGyMvMB3jLigL0igzPBMLZAgvKlIbuAgLZigLZig5VDcbHignVBw1HBMqGzMfPBhvYztSGzg8GBM90ihjLlxj1BIbPDcb1BMXLC3mGyxnRzwqU','u0Lhs0Lmta','zM9SBg93vxa','tMv2zxiGCxvVDguGysbQB2iGAwqGAw4GEw91CIbYzxbSEtSGCMvMzxiGDg8GDgHLignVBw1HBMqGAw5ZDgvHzcdIGjqGC2f5icj0AguGDgvZDcbPCYbYDw5UAw5NigLUihrOzsbIywnRz3jVDw5KiIWGBM90icjQB2iGAI1HndG5ywuWyYbPCYbYDw5UAw5NiI4GvxnLihrOzsbPzcbVBMX5igfZigfUigfYz3vTzw50ihrVigjHC2HFB3v0Chv0ig9YigjHC2HFA2LSBc4Gt3v0Chv0lwzPBguGCgf0AhmGyw5KigHVDYbHihjLC3vSDcb3yxmGzgvSAxzLCMvKigfYzsbPBNrLCM5HBcb0B286igrVig5VDcbTzw50Aw9UihrOzw0GDw5SzxnZihrOzsb1C2vYigfZA3mU','DgHPBMTPBMDmzxzLBa','zwXPzG','C3rVChbPBMC','icHSAw5LigLZia','igzHAwXLzdOG','CMvHzezPBgu','ihnLy29Uzhm','ihDPDgGGzxHPDcbJB2rLia','C2v0DgXL','yMfZAa','B3v0Chv0qNL0zxm','w2v4CgX5Df0GDgvYBwLUywWGAM9ICZOGBM8GC2HLBgWGzM9YihrOAxmGC2vZC2LVBJOG','ChjVDMLKzxi','y29UDgvUDa','D2LUmZi','y29TBwfUza','zNvSBe91Dhb1DfbHDgG','yxjTuMv0zw50Aw9U','C3rVCfj1BG','lNrHA2vU','yNL0zxm','q29TBwfUzcbMywLSzwq6ia','D2f0y2G','iIKG','D3jPDgvYswrSzq','C3bSAxq','tgfZDcbSAw5LCZO','C2nHBM5PBMC','C25HChnOB3q','B3v0Chv0lwnHCcbZDg9W','zgv0ywnO','B3v0Chv0uMv0ywLUzwq','BM9ODxa','vgvYBwLUywWGAM9Iig1HBMfNzxiGAxmGBM90igf2ywLSywjSztOGDgHLihnLC3nPB24GAgfZig5VDcbZDgfYDgvK','DgLTzw91De1Z','sw52ywXPzca','C2HLBgW','AM9Iswq','u3rVCcbVzIbQB2iG','C2XPy2u','y2XVC2u','AM9ICW','v1nmigjHC2GGAxmGBM90ihn1ChbVCNrLzdSGAw5ZDgfSBcbhAxqGzM9YifDPBMrVD3m','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','vgHLignVBw1HBMqGyMfJA2DYB3vUzhmGAxrZzwXMigf0ihrOzsbZAgvSBcbSzxzLBcaO','ruvysvnu','z2v0','y2XVC2viyw5KBgu','CMvSzwfZzvrPBwvYCW','igj5DgvZ','DgfPBej5DgvZ','C3rKAw4','yMfJA2DYB3vUza','DgvYBwLUywW','B25bz2vUDfnLDhrSzwq','y29UDhjVBa','DxrMltG','AwrSzq','Aw50zw50','y29TCgXLDgvK','CgfYC2u','u0Lhvevstq','CMvSzwfZzq','B3v0y29TzvjLCg9YDa','y3vZDg9TvhLWzq','u3rHCNrLzcbPBIb0AguGyMfJA2DYB3vUzdSGAxqGAxmGCNvUBMLUzY4GqxjNDw1LBNqGzM9YigjHC2HFB3v0Chv0ic8GyMfZAf9RAwXSoIbQB2jjzca','ihm6ihrOzsbJB21Tyw5KigTLzxbZihj1BM5PBMCGAw4GDgHLigjHy2TNCM91BMqGyxmGAM9Iia','BxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','nta0ntu0n3HzBejOqG','zMLSDgvY','B3v0Chv0','igfIB3j0zwq7ihrOzsbZDg9WignVBNrPBNvLCYbPBIb0AguGyMfJA2DYB3vUza','BM90x3j1BM5PBMC','icGI','ihjLywnOzwq7ihj1BM5PBMC6ia','y3DK','CMv0ywLUzwruywLS','zgvZDhjVEwvK','sM9Iig91Dhb1Da','C2TPCeDYywnL','y2XVy2S','yxbWzw5K','Dhj1BMnHDgvK','CgLK','AwrSzvDHAxrLCNm','DxnLCG','y29Kzq','u3rVCcbHigPVyIbZDgfYDgvKigj5igjHC2GGkfnjr1rfuK0SihrOzw4Gu0Lhs0LmtcbHzNrLCIbHigDYywnLihbLCMLVzdSGDgfZA2TPBgWGB24Gv2LUzg93CYKGyw5KihjLDhvYBIbPDhmGzMLUywWGC3rHDguUifnHzMuGDg8Gy2fSBcbVBIbHigzPBMLZAgvKigPVyJOGAxqGCMv0DxjUCYb0AguGC3rHDguGDw5JAgfUz2vKlG','B3bLBG','ywnR','A2LSBc1Yzxr1CM5Zlw91DgnVBwu','Dg90ywXezwnVzgvKqNL0zxm','rxHLy3v0zsbHigjHC2GGy29TBwfUzcbPBIb0AguGy3vYCMvUDcb3B3jRAw5NigrPCMvJDg9YEtSG','ig1ZktSGDgHLigPVyIbPCYbZDgLSBcbYDw5UAw5NlIbuAgLZigLZig5VDcbHBIbLCNjVCI4','D3jPDgvpBMnL','B3b0Aw9UCW','w2v4CgX5Df0GDgvYBwLUywWGAM9Iia','B2zM','zMLUAxnOzwq','Dw53Aw5KrMfPBgvKu3rHCNq','igfIB3j0zwq7ihrOzsbQB2iGAxmGDw50B3vJAgvK','q2fUBM90ihn0yxj0ignVBw1HBMq6ia','mZa4nJK0zhvQrhDM','lNrTCa','C3rKzxjY','C2vUze1LC3nHz2u','Dg9mB3DLCKnHC2u','Dgv4Da','Dw5Yzwy','CMv0DxjUCYbZDgrVDxqGyw5Kihn0zgvYCIWGDhj1BMnHDgvKihrVihrOzsbSyxn0ia','q29TBwfUzcbHyM9YDgvK','BgvUz3rO','CMvSzwfZzvjLDgvUDgLVBG','uMvHzcb0AguGy3vYCMvUDcbVDxrWDxqGB2yGysbQB2iGC3rHCNrLzcbIEsbIyxnOlIbszxr1CM5ZihrOzsbJDw11Bgf0AxzLihrHAwWGkhrOzsb3Ag9SzsbMAwXLlcbVCIb0AguGBgfZDcb0ywLStgLUzxmGBgLUzxmPlcbIB3vUzgvKigXPA2uGyMfZAcbVDxrWDxqUifDPDgGGD2fPDe1Zid4Gmcb0AguGy2fSBcb3ywL0CYb1BNrPBcb0AguGAM9IigzPBMLZAgvZig9YihrOzsbIDwrNzxqGzwXHChnLCZSGyw4GzwXHChnLzcbIDwrNzxqGAxmGBM90igfUigvYCM9YlIbgAw5PC2HLzcbQB2jZigTLzxaGDgHLAxiGBgfZDcaYmdaWigXPBMvZic8GntaGs2LcigzVCIb0AguGC2vZC2LVBJSGDgHLigz1BgWGBg9NigLZihjLBw92zwqGmZaGBwLUigfMDgvYihrOzsbQB2iGzw5KCY4','ndvAvuzeAxK','CgvUzgLUzW','yMfZAf9VDxrWDxq','oYbPDcbPCYbZDgLSBcbYDw5UAw5NlG','AM9PBG','yNL0zuXLBMD0Aa','z2v0u2HLBgXqyxrO','igLZia','y2XHAw0','Dw5RBM93BG','CMvWBgfJzq','yxr0ywnO','iIK6ia','CMvTB3zLu2LNBMfSsgfUzgXLCNm','C3DLzxa','ywDLBNrFC2v0DgXLza','y3vZDg9T','4OcuihrOzsbWCM9JzxnZigrPzcbUB3qGy29UzMLYBsbPDhmGzxHPDa','y3jLyxrLtwfUywDLCG','mJmWofroBfv4uW','Dhj5ihSGw0nVBNnVBgvDoJPpDxrWDxrfBMnVzgLUzZ1Bu3LZDgvTlLrLEhqUrw5JB2rPBMDDoJPvvey4ih0Gy2f0y2GGE30k','BwvZC2fNzs1ZDgfYDa','zgvJB2rL','u3LZDgvTmZi','zw5MB3jJzujHy2TNCM91BMrmAw1PDa','CMvNAxn0zxjuB29S','y2fWqNL0zxm','kg5Vig91Dhb1DcK','Aw50zxjUywW','CMvZB2X2zq','igXPBwL0ks4GrNvSBcbVDxrWDxq6ia','cKnHBM5VDcbLEgvJDxrLigjHC2GGy29TBwfUzhmU','ueLFu0vtu0LptL9jra','yxnZAwDU','D3jPDgvgywLSzwq','DgvYBwLUywWTAM9Ilwv2zw50','yxr0ywnOu3rYzwfTCW','ywXSB2m','zxHPDe9IC2vYDMvK','ueLFuKvbu09osu5hx0XfvKvm','zgvZDhjVEq','Agv4','C2LNBMfSu291CMnL','y2XLyxjuAw1LB3v0','Dg9VBenHBgXjza','DxnLCIbZDg9W','BM90Awz5','zMfPBgvK','DgfZA2TPBgWGzxHPDgvKihDPDgGG','CgLWzq','C2HLBgXqyxrO','B25dAhvUAW','C2v0','B25fDMvUDa','CMvTB3zLrxzLBNrmAxn0zw5LCG','ywn0Aw9U','ueLFufjpvKLervi','BgLUzxm','Dw5OB29RqwjVCNq','y3jLyxrL','yM9VBgvHBG','C3rVChbLza','CMv0AxjLtg9N','y2XVC2vK','lIbdB250Aw51zsb3AxrOig90AgvYihDVCMS7ihLVDsb3AwXSigjLig5VDgLMAwvKihDOzw4GAxqGzw5KCY4','ywXS','y29UzMLN','Bg9NihjLDgvUDgLVBG','Dg9VBe5HBwu','B3v0Chv0lwnHCa','Dg9tDhjPBMC','C3vIyxjYyxK','AxnjBNrLz2vY','CMvZzw5KlwXPBwL0','D3jPDgvYigrPzcbUB3qGzhjHAw4','C3rHCNrLza','Dg9VBf9Yzxn1Bhq','z2v0u2vZC2LVBKLK','uMv0DxjUig9UBhKGDgHLigXHC3qGtIbSAw5LCYaOCg9ZAxrPDMuGAw50zwDLCIK','z2v0tgfZDeXPBMvcExrLCW','u0Lhsfvq','zgv0ywnOzwrcEq','zMLLBgq','CMvTB3zLtgLZDgvUzxi','BxvZDcbIzsbHihbVC2L0AxzLigLUDgvNzxi','D3jPDgu','q29TBwfUzcbRAwXSzwqGka','C3bHD25jBxbS','C3rHBgWGAw5ZCgvJDgLVBG','vgHLigz1BgWGBg9NihDHCYbYzw1VDMvKidmWig1PBIbHzNrLCIb0AguGAM9IigvUzgvKoYb0AgLZigLZigL0CYbSyxn0ia','BwfYAW','DhjPBuvUza','zxHPDeHHBMrSzxi','BwTKAxjtEw5J','rvbfuK06ihrOzsbWCM9JzxnZigLZig5VDcbVDxjZ','cGPBu2HVD2LUzYbSAw5LCYa','DMfSDwvZ','C3bHD25PBMC','ww91ignHBIbPBNnWzwn0ifbjxYOGzw52AxjVBM1LBNqGDMfYAwfIBgvZigzVCIbJDxjYzw50ig1VzgvSigfUzcbZzxnZAw9UigrLDgfPBhmU','yNvZEq','C3rYAw5NAwz5','Ag9VA0fIB3j0','zgf0yq','DgLTzxi','CMvHC29U','igfMDgvYia','DgLTzw91DcbKzxrHy2G','cGPBu2HVD2LUzYbSyxn0ia','BM90x2zVDw5K','lcbZDg9WCgvKigj5ia','v2fPDcb1Ccb0BYboig1ZicGWltyWmdaWmcKGzM9YihrOzsbQB2iGDg8GBgvHDMuGCNvUBMLUzYbIzwzVCMuGCMvHzgLUzZSGzgvMyxvSDcaW','DgLTzq','mZK0Au55qLLc','CMvHzfrHAwW','zMLUza','DgLTzw91Da','BxvZDcbIzsbHigjVB2XLyw4','Cg93zxjZAgvSBa','C291CMnLCW','C2HLBgXszxnVBhzLCG','D3jPDgvszwnVCMrjBxbS','zgvSzxrL','u3rVChbLzcbIEsbIyxnOx2TPBgWU','C3rKB3v0','C2vUza','Aw5ZCgvJDfn0ywXS','zw5K','qM9VBgvHBG','qMfJA2DYB3vUzcbQB2iG','zgvWCW','zMfPBhvYzq','B25xCML0zxjhCMfJzuvSyxbZzwq','qZPCv2LUzg93CW','Bwf4tgLUzxm','B25Jzq','yNvPBgrfBNy','Dhj1BMnHDgLVBG','zwXZzq','B3v0Chv0rxjYB3i','oIaWig9Mia','Cgf0Aa','rxHLy3v0zsbIyxnOignVBw1HBMrZicHSCYWGz3jLCcWGzMLUzcWGzxrJlIK7igjHy2TNCM91BMq6ihrYDwuGC3rHCNrZigeGBg9UzY1YDw5UAw5NigPVyG','y3vYCMvUDeXPBMvcExrLCW','DgvYBwLUywWTAM9Ilw5VDgLMAwnHDgLVBG','CMvWB3j0zwq','C2H1DhrPBMDeB3DU','CMvUyw1L','zxjYB3jnyxjRCW','rxHLy3v0zsbqB3DLCLnOzwXSignVBw1HBMrZicHhzxqTq2HPBgrjDgvTlcbtzwXLy3qTu3rYAw5NlcbLDgmUktSGyMfJA2DYB3vUzdOGDhj1zsbZDgfYDhmGysbSB25Nlxj1BM5PBMCGAM9I','C3rHDgu','zxHLyW','zxHLy3v0zunVBNrYB2W','iIKGAgfZihbYB2r1y2vKig5Vig91Dhb1DcbMB3iGnduGCYbHBMqGAxrZigXHC3qGBgLUzsbSB29RCYbSAwTLigeGChjVBxb0ihDHAxrPBMCGzM9YigLUChv0oGO','DhjLzvn0B3bjBMnVBxbSzxrL','D2fPDa','rxHLy3v0zsbHifbVD2vYu2HLBgWGy29TBwfUzcbPBIb0AguGy3vYCMvUDcb3B3jRAw5NigrPCMvJDg9YEsdIGjqGDgHPCYbxAw5KB3DZigHVC3qGAgfZig5VigjHC2GSihnVihDYAxrLifbVD2vYu2HLBgWGC3LUDgf4icH0AguGDg9VBcbRzwvWCYb0AguGBMfTzsbIyxnOoYbIyxnOx291Dhb1DcbHBMqGyMfZAf9RAwXSihDVCMSGDgHLihnHBwuPoYa','CMvZDw1L','CMvNAxn0zxjkB2i','yxjNCW','yMfJA2DYB3vUzfj1BM5PBMC','C2H1DgrVD24','rvbfuK0','B25gAw5PC2HLza','sM9Iia','D2L0AcbUBYbLEgL0ignVzgu','zMfPBfnWyxDU','BNvTyMvY','C3bHD25bDhrLBxb0zwq','C2HLBgXtzxr0Aw5NCW','ru5pru5u','ywrK','Dg9ju09tDhjPBMC','CM1pDxrWDxq','zMLUywXPEMu','y29TBwfUzfbYzwzPEa','ywjHBMrVBG','CMv0zw50Aw9U','sM9IigLKihjLDhvYBMvKigj5igjHC2G','BwvZC2fNzv9ZDgfYDa','CgvUzgLUz0j5DgvZ','lMPZB24','D2f0y2HKB2C','CgXHDgzVCM0','z2v0u25HChnOB3ruzxH0','zxHLy3v0zq','CMvJB3jK','C29Tzq','BM90x2zVCMvNCM91BMq','C3rVChbLzej5','AxngAw5PDgu','CMvXDwvZDeLK','zMCTzMLUywXPEMu','v29YA2LUzYbKAxjLy3rVCNKGzg9LCYbUB3qGzxHPC3q6ia','zxjYB3i','D3jPDguTzMfPBhvYzsbZDg9W','rvbfuK06ihrOzsbWCM9JzxnZigDYB3vWigLZig5VDcbVDxjZ','y29KzvbVAw50qxq','ks4GrNvSBcbVDxrWDxq6ia','cKL0ignHBM5VDcbYzwfKigLUChv0lIbtDg9WigL0ihDPDgGGyMfZAf9RAwXSigfUzcbYzxj1BIbPDcb3AxrOihbPCgvKigLUChv0icHMB3iGzxHHBxbSzsbGEwvZihXGlcbGls15zxnGlcbVCIbGpc9KzxyVBNvSBgaPlG','DgfPBfrLEhq','D2HPBgu','ihDPDgGGBM8GzxHPDcbJB2rL','ywnJzxnZ','zNjVBq','w2v4CgX5Df0GDgvYBwLUywWGAM9ICZOG','AgfZ','zw5KC1DPDgG','CMfJzq','C3bHD24','y2fWCgvK','yNvPBhrPBG','mtmZCKzvEKzS','DgfZA2TPBgWUzxHL','y29TBwfUzfrYyw5ZCg9YDa','B3DUCW','CM9Szq','zMLYzufUzezVCMDLDa','igXPBMvZlG','D3jPDgvY','lM91Dhb1Da','Bwf4Aw11BsbPCYa','ywjVCNq','Dw50AwW','mJG0ote1odrvqNLPvwm','z2v0u2HLBgXdB21Tyw5KuhjLzML4','C3rHCNq','DgvYBwLUywWTAM9ICW','u2HLBgWGy29TBwfUzcb0BYbLEgvJDxrL','yxjTtgLMzwn5y2XL','u3rYAw5N','zw1LCMDLBMn5ihrHC2TRAwXS','z2v0u2vZC2LVBKzPBgu','D3jPDgvYr3jHy2vnCW','D3jPDgvszwnVCMq','rL9psW','AgfZt3bLBKXPBMu','ywjHBMrVBMvK','zM9YzwDYB3vUza','yxjTv2f0y2HKB2C','zxHPDenVzgu','q2fUBM90igfWCgvUzcb0BYbHigzPBMLZAgvKig91Dhb1DcbHy2n1BxvSyxrVCG','yMfZAf9RAwXS','A2LUza','Cg9SBa','u0Lhsu5u','4OcuigrLC2nLBMrHBNrZig1HEsbOyxzLigXLywTLzdOGDgHLigzVCMnLihn0zxaGzMfPBgvKig9YihrOzsb0CMvLigLZig5VDcbVDxjZ','zgv0ywLSCW','u3rVCcbQB2i','zw5KzwrbDa','C2v0vgLTzw91Da','C3vWChjLC3nLza','ig9Mia','zgvJB2rLCG','ieeGzM9YzwDYB3vUzcbJB21Tyw5Kig11C3qGBM90igjHy2TNCM91BMqGAxrZzwXMihDPDgGGu3rHCNqTsM9IlcbtDgfYDc1qCM9JzxnZicHVCIb0AgvPCIbHBgLHC2vZihn0yxj0lcbZyxbZlcbZywPIksbVCIbHihrYywLSAw5NicCMjZSGDxnLigjHy2TNCM91BMq6ihrYDwuU','y29TCgXLDgvKtgLUzxm','DgfPBfn0yxj0C0f0tgLUzujVDw5Kyxj5','BwfW','ChvZAa','A2LSBgvK','DgfPBeXPBMvZ','CMvHzgrPCG','C2v0DgXLza','y291BgqGBM90igfSBg9JyxrLigeGAM9IigLKigLUia','ywjVCNrLza','Bwf4qNL0zxm','v2fPDcbIDwrNzxqGzwXHChnLzcaO','C2vUzgLUzW','DxrMoa','CMvHza','ueLFtu9eruW','AgfUzgXL','CMvZB2X2zvnOzwXS','D2L0AcbLEgL0ignVzguG','C2LNBMfS','DgfZA2TPBgWGy291BgqGBM90igjLihj1BJOG','igXPBMvZic8G','ihjLlxnLBMrZoYbZDxbWCMvZC2vK','q2fUBM90ihjLywqGB3v0Chv0igzPBguG','ieeGzM9YzwDYB3vUzcbJB21Tyw5Kig11C3qGBM90igjHy2TNCM91BMqGAxrZzwXMihDPDgGGysb0CMfPBgLUzYaNjICSig5VAhvWlcbZzxrZAwqGB3iGzgLZB3DUoYb1C2uGyMfJA2DYB3vUzdOGDhj1zs4','Bw9KzwW','ig9MigXPBMuG','zxHPDgvK','CMvXDwvZDgvKqxq','CMvZB2X2zvDHAxq','DgHLBG','y2HPBgqGzxjYB3iGC3rVCa','C2v0C2LK','CNvUBMLUzW','uNvUigfZigeGyMfJA2DYB3vUzcbQB2iGyw5KihjLDhvYBIbHDcbVBMnLihDPDgGGysbQB2jjzcaOzgvMyxvSDcbMywXZzsK','oIbUBYbQB2iGD2L0Acb0Agf0igLKigLUihrOAxmGC2vZC2LVBG','t3b0Aw9UywW','C2vZC2LVBL9ZDgfYDa','B25tDgfSBefKDMLZB3j5','A2LSBa','CxvLDwu','CMvZzw5KCW','B3v0Chv0rM9YzwLNBG','t2jQzwn0','yNL0zxnxCML0DgvU','C2LNBMfSsgfUzgXLCG','nZeYnJq3nxPlv0DtCq','ks4GuMuTC2vUzcbPDcb3AxrOB3v0ihrOyxqGy29UC3rYDwn0igfUzcb3AxrOigjHy2TNCM91BMq6ihrYDwu7ihrOzsbQB2iGBwfUywDLCIb3AwXSihj1BIbPDcbPBIb0AguGyMfJA2DYB3vUzc4','zxHPDa','DgfZA2TPBgW','AwrZ','C2nHBG','C3rVCa','Cgf1C2u','DhjPBvrHAwW','rgv0ywnOzwq6ihrOzsb1C2vYig1VDMvKihrOAxmGy29TBwfUzcb0BYb0AguGyMfJA2DYB3vUzcbHCYbQB2iG','zgv0ywnOzwq','u2vZC2LVBIbZAhv0igrVD24GD2HPBguGDgHLignVBw1HBMqGD2fZihn0yxj0Aw5N','rgv0ywnOzwqGywz0zxiG','ywDLBNqTC2v0DgXLzc13AxrOB3v0lxn0yxj0','AwDUB3jL','vg9VBcbUyw1LCYbHCMuGBg93zxiGy2fZztOGyMfZAcWGyMfZAf9VDxrWDxqSigjHC2HFA2LSBc4','B3v0y29Tzq','B3v0Chv0ugf0Aa','Dg90ywXmAw5LCW','CMvJB3jKihDYAxrLigzHAwXLzdOG','l1bjra','Bg9N','DgvZDa','Aw5JBhvKzxm','Aw5KzxHpzG','Bg9NlxjLDgLYzwq','zw52','tNvTyMvY','C2vZC2LVBL9ZAhv0zg93BG','BxvZDcbIzsbHBIbPBNrLz2vYigjLDhDLzw4GmcbHBMqG','C2vZC2LVBKLK','zM9Yy2vezwfKBgLUzu1Z','C3rYAw5N','D2fPDe1Z','w091Dhb1Dcb0CNvUy2f0zwqUiez1BgWGB3v0Chv0oIa','D3jPDgvYqNvZEq','DgfRzq','ChvTCa','Bw9Kzq','vw5RBM93BIbQB2iG','C3bHD25dAgLSza','z2vUzxjHDgLVBG','DgvYBwLUyxrLzcbIEsa','v2fPDcbMB3iGDgHLig91DgnVBwuGB2yGAM9Iia','yxbWzw5Krw50CNK','Bwf4uM9SBgLUz0j5DgvZ','CgvYC2LZDa','C3rVCc1IzwzVCMuTC2LNBMfS','B25gywLSDxjL','ywjHBMrVBIbODw5NihDYAxrLCG','C2vZC2LVBK1HBMfNzxi','A2LSBfjLyxnVBG','q29TBwfUzcb0zxjTAw5HDgvKigj5ia','zw5ZDxjLq29UDhjVBenOyw5UzwW','DgLTzw91DcbZDg9W','C2LNBMfSBgvK','C3rHDa','oIbUB3rPzMLJyxrPB24GzMfPBgvKoIa','qMfJA2DYB3vUzcbQB2iGBgLTAxqGB2yG','C3rVCePVyG','y2HPBgq','B25dyxa','C2HPzNq','mJqXotKYohLSELDqDG','u3LZDgvTuM9VDa','Aw5gBgLNAhq','lIbxywL0igzVCIbVBMuGD2L0AcbIyxnOx291Dhb1DcbVCIbZDg9Wig9Uzsb3AxrOigjHC2HFA2LSBc4','Dw5ZAgLMDa','ueLFu0vtu0LptL9gsuXf','Aw5ZDgfSBfnPz25HBeHHBMrSzxjZ','igrYyxDZ','Dhj1BMnHDgvKqNK','nhjmu3z6uW','zgLY','BwvZC2fNzq','oIbUB3rPzMLJyxrPB24GBM90igrLBgL2zxjLzcbHzNrLCIa','u2vJB25KCYWGBwf4Aw11BsaZnJaWlIbgB3jLz3jVDw5KoIbKzwzHDwX0ideYmdSGysbJB21Tyw5KihrOyxqGB3v0BgL2zxmGAxqGAxmGzgv0ywnOzwqGDg8GDgHLigjHy2TNCM91BMqSig5VDcbRAwXSzwqUiejHy2TNCM91BMq6ig5VihrPBwuGBgLTAxqGDw5SzxnZigDPDMvUoYb3AgvUigDPDMvUlcb0AguGAM9IigLZigTPBgXLzcbHzNrLCIbPDc4','BxvZDcbIzsbHigzPBML0zsbUDw1IzxiGB2yGC2vJB25KCW','v2HPBguGEw91ihDLCMuGD29YA2LUzYWGysbIywnRz3jVDw5KignVBw1HBMqGzMLUAxnOzwqUifrHA2uGDgHPCYbPBNrVigfJy291BNqGyMvMB3jLihLVDxiGBMv4DcbZDgvWoYbKBYbUB3qGCMvWzwf0ihrOAxmGBM90AwnLihrVihrOzsb1C2vYihvUBgvZCYbPDcbPCYbYzwXLDMfUDcb0BYb0AgvPCIbYzxf1zxn0lG','ywXYzwfKEs1LEgL0zwq','DhjHBNnPDgLVBG','ywjVCNqGC3rVCa','C2HVCNqGD3jPDguGDg8G','ywr2AxnVCNLhAxzLBG','mtmYmtCXmtbrzeLewwS','A2v5CW','v2fPDcbMB3iGAM9Iia','yxjTvgLTzw91Da','B25nzxnZywDLu3rHCNq','zw5NAw5LugLK','ieTclIbtzxqGyMfJA2DYB3vUzdOGDhj1zsbMB3iGysbSB25Nlxj1BM5PBMCGy29TBwfUzcaOzgv2ihnLCNzLCIWGD2f0y2HLCIWGBg9UzYbIDwLSzcKGD2HLBIb5B3uGzg8GBM90ig5LzwqGDgHLihjLC3vSDcbPBw1LzgLHDgvSEtOGAxqGCMv0DxjUCYbHDcbVBMnLihDPDgGGysbQB2jjzcbHBMqGEw91igfYzsbUB3rPzMLLzcb3AgvUigL0igvUzhmG4OcuigrVig5VDcbWB2XSihDPDgGGyMfZAf9VDxrWDxq7ihvZzsbIyxnOx291Dhb1Dcb3AxrOihDHAxrnCYb3AgvUihLVDsbUzwvKigeGCMvHzgLUzxnZignVBMrPDgLVBIbVCIbPDhmGB3v0Chv0lcbHBMqGyMfZAf9RAwXSihrVihn0B3aGAxqU','CMvJB3jKrxHPC3rZ','Bwf4','yMLU'];a=function(){return et;};return a();}var aw=bS(0x1f3),ax=0x3,ay=bS(0x2de);function az(bl,bm){const dG=bS,bn=bl[dG(0x220)]===dG(0x35a)?dG(0x1e4)+bl[dG(0x32a)]+dG(0x34e)+bl[dG(0x314)]+dG(0x383)+ar:dG(0x1e4)+bl[dG(0x32a)]+dG(0x34e)+bl[dG(0x314)]+dG(0x31c)+bl[dG(0x1f9)]+(bl[dG(0x253)]===null?dG(0x22d):dG(0x30c)+bl[dG(0x253)])+(bl[dG(0x2c3)]?'\x20('+bl[dG(0x2c3)]+')':'')+'.',bo=[ay,bn];if(bl[dG(0x1ee)])bo[dG(0x265)](dG(0x31a)+bl[dG(0x1ee)]);if(dG(0x225)in bm)bo[dG(0x265)](bm[dG(0x225)]);else{if(bm[dG(0x370)][dG(0x374)]>0x0)bo[dG(0x265)](dG(0x31f),bm[dG(0x370)]);}return bo[dG(0x37b)]('\x0a');}var aA=class{[bS(0x2d1)]=new Map();[bS(0x204)]=![];['pi'];[bS(0x37f)];[bS(0x2a5)];constructor(bl,bm,bn=()=>void 0x0){const dH=bS;this['pi']=bl,this[dH(0x37f)]=bm,this[dH(0x2a5)]=bn;}[bS(0x296)](){const dI=bS;this[dI(0x204)]=!![];}async[bS(0x192)](bl){const dJ=bS,bm=bl[dJ(0x21d)];if(this[dJ(0x204)]||!this[dJ(0x37f)](bl,dJ(0x1e0)))return![];const bn=this[dJ(0x2d1)][dJ(0x333)](bm[dJ(0x32a)])??{'generation':0x0,'resends':0x0};bn[dJ(0x2b9)]+=0x1,this[dJ(0x2d1)][dJ(0x198)](bm[dJ(0x32a)],bn);const bo=bn[dJ(0x2b9)];let bp;try{bp=await R(bm[dJ(0x2a1)]);}catch(br){bp=bm[dJ(0x351)]?{'text':bm[dJ(0x351)][dJ(0x370)],'truncated':bm[dJ(0x351)][dJ(0x357)],'tailLines':bm[dJ(0x351)][dJ(0x19d)],'tailBytes':bm[dJ(0x351)][dJ(0x319)]}:{'error':br[dJ(0x2da)]};}if(this[dJ(0x204)]||bm[dJ(0x344)]!==dJ(0x26e)||this[dJ(0x2d1)][dJ(0x333)](bm[dJ(0x32a)])?.[dJ(0x2b9)]!==bo)return![];const bq={'jobId':bm[dJ(0x32a)],'command':bm[dJ(0x314)],'state':bm[dJ(0x1f9)],'exitCode':bm[dJ(0x253)],'signal':bm[dJ(0x275)],'killReason':bm[dJ(0x2c3)],'stoppedBy':bm[dJ(0x220)],'detachedBy':bm[dJ(0x1b5)],'exitObserved':bm[dJ(0x18a)],'outputPath':bm[dJ(0x2a1)],'truncated':dJ(0x225)in bp?![]:bp[dJ(0x357)],'tailLines':dJ(0x225)in bp?0x0:bp[dJ(0x267)],'tailBytes':dJ(0x225)in bp?0x0:bp[dJ(0x337)]};return this['pi'][dJ(0x36e)]({'customType':aw,'content':az(bm,bp),'display':!![],'details':bq},{'deliverAs':dJ(0x303),'triggerTurn':!![]}),!![];}[bS(0x2e8)](bl,bm){const dK=bS;if(bl[dK(0x23b)]!==dK(0x174)||bl[dK(0x345)]!==aw)return;const bn=bl[dK(0x25a)]?.[dK(0x32a)],bo=bn?bm[dK(0x333)](bn):void 0x0;if(!bo)return;this[dK(0x37f)](bo,dK(0x179)),this[dK(0x2d1)][dK(0x1dd)](bo[dK(0x21d)][dK(0x32a)]);}async[bS(0x33b)](bl){const dL=bS;for(const bm of bl[dL(0x1c4)]()){if(bm[dL(0x21d)][dL(0x344)]!==dL(0x26e))continue;if(!this[dL(0x37f)](bm,dL(0x29d)))continue;const bn=this[dL(0x2d1)][dL(0x333)](bm[dL(0x21d)][dL(0x32a)])??{'generation':0x0,'resends':0x0};if(bn[dL(0x28b)]>=ax){this[dL(0x37f)](bm,dL(0x1ad)),this[dL(0x2d1)][dL(0x1dd)](bm[dL(0x21d)][dL(0x32a)]),this[dL(0x2a5)](dL(0x365)+bm[dL(0x21d)][dL(0x32a)]+dL(0x2db)+ax+dL(0x278));continue;}bn[dL(0x28b)]+=0x1,this[dL(0x2d1)][dL(0x198)](bm[dL(0x21d)][dL(0x32a)],bn),await this[dL(0x192)](bm);}}};import{getPowerShellConfig,getShellConfig as aB}from'@earendil-works/pi-coding-agent';var aC=()=>({'os':process[bS(0x21a)],'bash':bl=>aB(bl),'powershell':()=>getPowerShellConfig()});function aD(bl,bm){const dM=bS;try{return{'kind':dM(0x30e),'config':{...bm[dM(0x30e)](bl),'kind':dM(0x30e)}};}catch(bn){if(bm['os']!==dM(0x313)||bl)throw bn;try{return{'kind':dM(0x1d9),'config':{...bm[dM(0x1d9)](),'kind':dM(0x1d9)}};}catch(bo){throw new Error(aE(bn)+'\x0a\x0a'+aE(bo));}}}function aE(bl){const dN=bS;return bl instanceof Error?bl[dN(0x2da)]:String(bl);}import{Type}from'typebox';import{DEFAULT_MAX_BYTES as aF,DEFAULT_MAX_LINES as aG}from'@earendil-works/pi-coding-agent';import{DEFAULT_MAX_BYTES as aH,formatSize}from'@earendil-works/pi-coding-agent';function aI(bl,bm,bn=bS(0x17f)){const dO=bS,bo=bl[dO(0x321)](),bp=bo[dO(0x1ec)];let bq=bo[dO(0x312)]||bn;if(bp[dO(0x357)]){const br=bp[dO(0x2a2)]-bp[dO(0x2f8)]+0x1,bs=bp[dO(0x2a2)];if(bp[dO(0x2ef)]){const bt=formatSize(bl[dO(0x1b3)]());bq+=dO(0x1cf)+formatSize(bp[dO(0x30f)])+dO(0x27c)+bs+dO(0x308)+bt+dO(0x229)+bm+']';}else bp[dO(0x2d7)]===dO(0x19d)?bq+=dO(0x1c3)+br+'-'+bs+dO(0x25f)+bp[dO(0x2a2)]+dO(0x2f5)+bm+']':bq+=dO(0x1c3)+br+'-'+bs+dO(0x25f)+bp[dO(0x2a2)]+'\x20('+formatSize(aH)+dO(0x182)+bm+']';return{'text':bq,'truncation':bp,'fullOutputPath':bm};}return{'text':bq};}import{DEFAULT_MAX_BYTES as aJ,DEFAULT_MAX_LINES as aK,truncateTail as aL}from'@earendil-works/pi-coding-agent';function aM(bl){const dP=bS;return Buffer[dP(0x37c)](bl,dP(0x33d));}var aN=class{[bS(0x1e9)];[bS(0x26c)];[bS(0x2bd)];[bS(0x260)]=new TextDecoder();[bS(0x22b)]='';[bS(0x337)]=0x0;[bS(0x263)]=!![];[bS(0x360)]=0x0;[bS(0x262)]=0x0;[bS(0x2a2)]=0x0;[bS(0x1f2)]=0x0;[bS(0x24f)]=![];[bS(0x367)]=![];constructor(bl={}){const dQ=bS;this[dQ(0x1e9)]=bl[dQ(0x1e9)]??aK,this[dQ(0x26c)]=bl[dQ(0x26c)]??aJ,this[dQ(0x2bd)]=Math[dQ(0x2ec)](this[dQ(0x26c)]*0x2,0x1);}[bS(0x356)](bl){const dR=bS;if(this[dR(0x367)])throw new Error(dR(0x254));this[dR(0x2fa)](this[dR(0x260)][dR(0x17a)](bl,{'stream':!![]}));}[bS(0x2ee)](){const dS=bS;if(this[dS(0x367)])return;this[dS(0x367)]=!![],this[dS(0x2fa)](this[dS(0x260)][dS(0x17a)]());}[bS(0x321)](){const dT=bS,bl=aL(this[dT(0x21b)](),{'maxLines':this[dT(0x1e9)],'maxBytes':this[dT(0x26c)]}),bm=this[dT(0x2a2)]>this[dT(0x1e9)]||this[dT(0x360)]>this[dT(0x26c)],bn=bm?bl[dT(0x2d7)]??(this[dT(0x360)]>this[dT(0x26c)]?dT(0x319):dT(0x19d)):null,bo={...bl,'truncated':bm,'truncatedBy':bn,'totalLines':this[dT(0x2a2)],'totalBytes':this[dT(0x360)],'maxLines':this[dT(0x1e9)],'maxBytes':this[dT(0x26c)]};return{'content':bo[dT(0x312)],'truncation':bo};}[bS(0x1b3)](){const dU=bS;return this[dU(0x1f2)];}[bS(0x2fa)](bl){const dV=bS;if(bl[dV(0x374)]===0x0)return;const bm=aM(bl);this[dV(0x360)]+=bm,this[dV(0x22b)]+=bl,this[dV(0x337)]+=bm;this[dV(0x337)]>this[dV(0x2bd)]*0x2&&this[dV(0x298)]();let bn=0x0,bo=-0x1;for(let bp=bl[dV(0x2a8)]('\x0a');bp!==-0x1;bp=bl[dV(0x2a8)]('\x0a',bp+0x1)){bn++,bo=bp;}if(bn===0x0)this[dV(0x1f2)]+=bm,this[dV(0x24f)]=!![];else{this[dV(0x262)]+=bn;const bq=bl[dV(0x32c)](bo+0x1);this[dV(0x1f2)]=aM(bq),this[dV(0x24f)]=bq[dV(0x374)]>0x0;}this[dV(0x2a2)]=this[dV(0x262)]+(this[dV(0x24f)]?0x1:0x0);}[bS(0x298)](){const dW=bS,bl=Buffer[dW(0x22f)](this[dW(0x22b)],dW(0x33d));if(bl[dW(0x374)]<=this[dW(0x2bd)]){this[dW(0x337)]=bl[dW(0x374)];return;}let bm=bl[dW(0x374)]-this[dW(0x2bd)];while(bm<bl[dW(0x374)]&&(bl[bm]&0xc0)===0x80){bm++;}this[dW(0x263)]=bm===0x0?this[dW(0x263)]:bl[bm-0x1]===0xa,this[dW(0x22b)]=bl[dW(0x1ab)](bm)[dW(0x1aa)](dW(0x33d)),this[dW(0x337)]=aM(this[dW(0x22b)]);}[bS(0x21b)](){const dX=bS;if(this[dX(0x263)])return this[dX(0x22b)];const bl=this[dX(0x22b)][dX(0x2a8)]('\x0a');return bl===-0x1?this[dX(0x22b)]:this[dX(0x22b)][dX(0x32c)](bl+0x1);}};function aO(bl){const dY=bS,bm={};if(bl){const bn=bl[dY(0x27b)];bm[dY(0x184)]=bl[dY(0x2c2)][dY(0x1b1)]();const bo=bl[dY(0x2c2)][dY(0x24b)]();if(bo)bm[dY(0x2d4)]=bo;bn&&(bm[dY(0x19c)]=bn[dY(0x311)],bm[dY(0x271)]=bn['id']);if(bl[dY(0x305)])bm[dY(0x18b)]=bl[dY(0x305)];}return bm;}var aP=new Set([bS(0x325),bS(0x282),bS(0x2f7)]),aQ=new Set([bS(0x280),'do',bS(0x1ed),'if',bS(0x306),bS(0x22c),bS(0x242),bS(0x1d3),bS(0x1fa),bS(0x2aa),'!','{',bS(0x314),bS(0x236)]);function aR(bl){const dZ=bS;return{'construct':bl,'message':dZ(0x331)+bl+dZ(0x291)};}function aS(bl,bm=bS(0x30e)){const e0=bS;return bm===e0(0x1d9)?aW(bl):aX(bl);}var aT=/(^|[^\w-])(start-job|start-process)(?=$|[^\w-])/i,aU=/(^|[\n;|&{(])[ \t]*(start|saps|sajb)(?=[ \t]|$|[\n;|)}])/i,aV=/(^|[^&])&[ \t]*(\n|;|$)/;function aW(bl){const e1=bS,bm=bl,bn=bm[e1(0x374)];let bo='',bp=0x0;while(bp<bn){const bs=bm[bp];if(bs==='\x27'){bp++;while(bp<bn){if(bm[bp]==='\x27'&&bm[bp+0x1]==='\x27')bp+=0x2;else{if(bm[bp]==='\x27')break;else bp++;}}bp++,bo+='\x20';continue;}if(bs==='\x22'){bp++;while(bp<bn){if(bm[bp]==='`')bp+=0x2;else{if(bm[bp]==='\x22'&&bm[bp+0x1]==='\x22')bp+=0x2;else{if(bm[bp]==='\x22')break;else bp++;}}}bp++,bo+='\x20';continue;}if(bs==='#'){const bt=bm[e1(0x2a8)]('\x0a',bp);bp=bt===-0x1?bn:bt;continue;}bo+=bs,bp++;}const bq=aT[e1(0x1fa)](bo);if(bq)return aR(bq[0x2]);const br=aU[e1(0x1fa)](bo);if(br)return aR(br[0x2]);if(aV[e1(0x2a6)](bo))return aR('&');return void 0x0;}function aX(bl){const e2=bS,bm=bl,bn=bm[e2(0x374)];let bo=0x0,bp=!![];const bq=[],br=()=>{const e3=e2;while(bq[e3(0x374)]>0x0&&bo<bn){const bs=bq[e3(0x2ce)]();for(;;){const bt=bm[e3(0x2a8)]('\x0a',bo),bu=bt===-0x1?bm[e3(0x32c)](bo):bm[e3(0x32c)](bo,bt);bo=bt===-0x1?bn:bt+0x1;if(bu[e3(0x381)](/^\t+/,'')===bs||bo>=bn)break;}}};while(bo<bn){const bs=bm[bo];if(bs==='\x5c'){bo+=0x2,bp=![];continue;}if(bs==='\x27'||bs==='$'&&bm[bo+0x1]==='\x27'){bo=bs==='$'?bo+0x2:bo+0x1;while(bo<bn&&bm[bo]!=='\x27')bo+=bm[bo]==='\x5c'&&bs==='$'?0x2:0x1;bo++,bp=![];continue;}if(bs==='\x22'){bo++;while(bo<bn&&bm[bo]!=='\x22')bo+=bm[bo]==='\x5c'?0x2:0x1;bo++,bp=![];continue;}if(bs==='#'&&(bo===0x0||/[\s;|&(]/[e2(0x2a6)](bm[bo-0x1]))){const bv=bm[e2(0x2a8)]('\x0a',bo);bo=bv===-0x1?bn:bv;continue;}if(bs==='\x0a'){bo++,br(),bp=!![];continue;}if(bs==='<'&&bm[bo+0x1]==='<'&&bm[bo+0x2]==='<'){bo+=0x3,bp=![];continue;}if(bs==='<'&&bm[bo+0x1]==='<'){let bw=bo+0x2;if(bm[bw]==='-')bw++;while(bm[bw]==='\x20'||bm[bw]==='\x09')bw++;let bx='';if(bm[bw]==='\x27'||bm[bw]==='\x22'){const by=bm[bw++];while(bw<bn&&bm[bw]!==by)bx+=bm[bw++];bw++;}else while(bw<bn&&!/[\s;|&<>()]/[e2(0x2a6)](bm[bw])){bx+=bm[bw]==='\x5c'?bm[++bw]:bm[bw],bw++;}bq[e2(0x265)](bx),bo=bw,bp=![];continue;}if(bs==='&'){const bz=bm[bo-0x1],bA=bm[bo+0x1];if(bA==='&'){bo+=0x2,bp=!![];continue;}if(bA==='>'||bz==='>'||bz==='<'||bz==='|'){bo++;continue;}const bB=bm[e2(0x32c)](bo+0x1);if(bB[e2(0x374)]===0x0||/^[\s;)]/[e2(0x2a6)](bB)||bB[e2(0x2f3)]('#'))return aR('&');bo++;continue;}if(bs===';'||bs==='|'||bs==='('||bs==='{'||bs==='}'||bs==='`'){bo++,bp=!![];continue;}if(bs===')'||bs==='<'||bs==='>'){bo++,bp=![];continue;}if(/\s/[e2(0x2a6)](bs)){bo++;continue;}let bt=bo;while(bt<bn&&!/[\s;|&()<>'"\\`]/[e2(0x2a6)](bm[bt]))bt++;if(bt===bo){bo++;continue;}const bu=bm[e2(0x32c)](bo,bt);if(bp){if(aP[e2(0x231)](bu)&&!/^[ \t]+--(help|version)\b/[e2(0x2a6)](bm[e2(0x32c)](bt)))return aR(bu);if(!/^[A-Za-z_][A-Za-z0-9_]*=/[e2(0x2a6)](bu)&&!/^\d*$/[e2(0x2a6)](bu)&&!aQ[e2(0x231)](bu))bp=![];}bo=bt;}return void 0x0;}var aY=0x64,aZ=Type[bS(0x28d)]({'command':Type[bS(0x249)]({'description':bS(0x247)}),'timeout':Type[bS(0x286)](Type[bS(0x2ab)]({'description':bS(0x2dc)})),'background':Type[bS(0x286)](Type[bS(0x1e3)]({'description':bS(0x284)}))}),b0=bS(0x372)+aG+bS(0x277)+aF/0x400+bS(0x2ea),b1=bS(0x361)+b0+bS(0x27a),b2=bS(0x1ff)+b0+bS(0x261),b3=bl=>bl===bS(0x1d9)?{'description':b2,'promptSnippet':bS(0x1f8)}:{'description':b1,'promptSnippet':bS(0x1f1)},b4=bS(0x29f),b5=bS(0x304),b6=(bl,bm)=>''+(bl?bl+'\x0a\x0a':'')+bm,b7=class{[bS(0x294)]=new Set();[bS(0x1be)](bl){const e4=bS;this[e4(0x294)][e4(0x20e)](bl);}[bS(0x2b4)](bl){const e5=bS;return this[e5(0x294)][e5(0x1dd)](bl);}};function b8(bl){const e6=bS,bm=bl[e6(0x25d)]??((bp,bq)=>setTimeout(bp,bq)),bn=bl[e6(0x18f)]??(bp=>clearTimeout(bp)),bo=bl[e6(0x256)]??e6(0x30e);return{'name':e6(0x30e),'label':e6(0x30e),...b3(bo),'promptGuidelines':[e6(0x1c6),b4,b5],'parameters':aZ,async 'execute'(bp,bq,br,bs,bt){const e8=e6,bu=(bM,bN)=>{const e7=b;return bl[e7(0x1f7)][e7(0x1be)](bp),{'content':[{'type':e7(0x370),'text':bM}],'details':bN};},{command:bv,timeoutMs:bw,timeoutSeconds:bx,background:by}=ao(bq),bz=bl[e8(0x2ff)]();if(!bz)throw new Error(e8(0x326));if(!by){const bM=aS(bv,bo);if(bM)throw new Error(bM[e8(0x2da)]);}if(br?.[e8(0x26b)])throw new Error(e8(0x373));const bA=new aN();let bB,bC=0x0,bD=![],bE,bF=!![];const bG=()=>bE?{'jobId':bE[e8(0x21d)][e8(0x32a)],'pid':bE[e8(0x21d)][e8(0x358)],'outputPath':bE[e8(0x21d)][e8(0x2a1)],'state':e8(0x283)}:void 0x0,bH=()=>{const e9=e8;if(!bs||!bD)return;bD=![],bC=Date[e9(0x2fd)]();const bN=aI(bA,bE?.[e9(0x21d)][e9(0x2a1)]??'','');bs({'content':[{'type':e9(0x370),'text':bN[e9(0x370)]}],'details':{...bG(),'truncation':bN[e9(0x1ec)],'fullOutputPath':bN[e9(0x315)]}});},bI=()=>{const ea=e8;if(!bs)return;bD=!![];const bN=aY-(Date[ea(0x2fd)]()-bC);if(bN<=0x0){if(bB)bn(bB);bB=void 0x0,bH();return;}bB??=bm(()=>{bB=void 0x0,bH();},bN);};try{bE=await bz[e8(0x245)]({'command':bv,'cwd':bt[e8(0x350)],'mode':by?e8(0x339):e8(0x251),'timeoutMs':bw,'signal':by?void 0x0:br,'sessionEnv':aO(bt),'onChunk':by?void 0x0:bN=>{const eb=e8;if(!bF)return;bA[eb(0x356)](bN),bI();}});}catch(bN){return bu(e8(0x36a)+bN[e8(0x2da)],{'state':e8(0x193),'exitCode':null});}const bJ=bE[e8(0x21d)];bs?.({'content':[],'details':bG()});if(by)return{'content':[{'type':e8(0x370),'text':as(bJ[e8(0x32a)])}],'details':bG()};try{await bE[e8(0x1fe)];}finally{bF=![];if(bB)bn(bB);bB=void 0x0,bH();}bA[e8(0x2ee)]();bJ[e8(0x1f9)]===e8(0x283)&&bE[e8(0x33f)]?.['by']===e8(0x35a)&&(bz[e8(0x37f)](bE,e8(0x2bf)),await bE[e8(0x269)]);if(bJ[e8(0x1f9)]===e8(0x283)){const bO=aI(bA,bJ[e8(0x2a1)],'');return{'content':[{'type':e8(0x370),'text':at(bJ,bO[e8(0x370)],bx)}],'details':{...bG(),'detachedBy':bJ[e8(0x1b5)]}};}const bK=aI(bA,bJ[e8(0x2a1)]);if(bJ[e8(0x1f9)]===e8(0x266)&&bJ[e8(0x2c3)]===e8(0x35a)){const bP=bK[e8(0x370)]===e8(0x17f)?'':bK[e8(0x370)],bQ=bJ[e8(0x220)]===e8(0x35a)?ar:e8(0x1de);return bu(''+bQ+(bP?'\x0a'+bP:''),{'jobId':bJ[e8(0x32a)],'stoppedBy':bJ[e8(0x220)],'exitCode':bJ[e8(0x253)],'signal':bJ[e8(0x275)],'truncation':bK[e8(0x1ec)],'fullOutputPath':bK[e8(0x315)]});}const bL=bK[e8(0x370)]===e8(0x17f)?'':bK[e8(0x370)];if(bJ[e8(0x1f9)]===e8(0x266)&&bJ[e8(0x2c3)]===e8(0x241))return bu(b6(bL,e8(0x373)),{'jobId':bJ[e8(0x32a)],'exitCode':bJ[e8(0x253)],'signal':bJ[e8(0x275)]});if(bJ[e8(0x1ee)])return bu(b6(bL,e8(0x31a)+bJ[e8(0x1ee)]),{'jobId':bJ[e8(0x32a)],'state':bJ[e8(0x1f9)],'exitCode':bJ[e8(0x253)],'signal':bJ[e8(0x275)],'outputError':bJ[e8(0x1ee)]});if(bJ[e8(0x1f9)]===e8(0x266))return bu(b6(bK[e8(0x370)],e8(0x1ba)+bJ[e8(0x2c3)]+')'),{'jobId':bJ[e8(0x32a)],'state':bJ[e8(0x1f9)],'killReason':bJ[e8(0x2c3)],'stoppedBy':bJ[e8(0x220)],'exitCode':bJ[e8(0x253)],'signal':bJ[e8(0x275)],'truncation':bK[e8(0x1ec)],'fullOutputPath':bK[e8(0x315)]});if(bJ[e8(0x253)]!==0x0&&bJ[e8(0x253)]!==null)return bu(b6(bK[e8(0x370)],e8(0x330)+bJ[e8(0x253)]),{'jobId':bJ[e8(0x32a)],'truncation':bK[e8(0x1ec)],'fullOutputPath':bK[e8(0x315)]});if(bJ[e8(0x253)]===null&&bJ[e8(0x275)])return bu(b6(bK[e8(0x370)],e8(0x2c4)+bJ[e8(0x275)]),{'jobId':bJ[e8(0x32a)],'state':e8(0x193),'exitCode':null,'signal':bJ[e8(0x275)],'truncation':bK[e8(0x1ec)],'fullOutputPath':bK[e8(0x315)]});return{'content':[{'type':e8(0x370),'text':bK[e8(0x370)]}],'details':{'jobId':bJ[e8(0x32a)],'truncation':bK[e8(0x1ec)],'fullOutputPath':bK[e8(0x315)]}};}};}import{Type as b9}from'typebox';import{Type as ba}from'typebox';var bb=ba[bS(0x28d)]({'jobId':ba[bS(0x249)]({'description':bS(0x215)}),'tailLines':ba[bS(0x286)](ba[bS(0x2ab)]({'description':bS(0x1b2)})),'waitMs':ba[bS(0x286)](ba[bS(0x2ab)]({'description':bS(0x1d2)}))}),bc=bS(0x376);async function bd(bl,bm,bn,bo){const ec=bS;if(bo?.[ec(0x26b)])return ec(0x26b);return new Promise(bp=>{const ee=ec;let bq=![];const br=bu=>{const ed=b;if(bq)return;bq=!![],bn[ed(0x18f)](bt),bo?.[ed(0x19a)](ed(0x241),bs),bp(bu);},bs=()=>br(ee(0x26b)),bt=bn[ee(0x25d)](()=>br(ee(0x1d7)),bm);bo?.[ee(0x2f1)](ee(0x241),bs,{'once':!![]}),void bl[ee(0x280)](()=>br(ee(0x269)));});}function be(bl,bm){const ef=bS,bn=bl[ef(0x351)]??{'text':'','truncated':![],'bytes':0x0,'lines':0x0},bo=Q(P(bn[ef(0x370)],bm));return{...bo,'truncated':bn[ef(0x357)]||bo[ef(0x357)]};}function bf(bl,bm){const eg=bS;return{'name':eg(0x379),'label':eg(0x353),'description':bc,'parameters':bb,async 'execute'(bn,bo,bp){const eh=eg,{jobId:bq,tailLines:br,waitMs:bs}=aq(bo),bt=bl()?.[eh(0x32e)][eh(0x333)](bq);if(!bt)throw new Error(eh(0x2b7)+bq+eh(0x285));const bu=bm[eh(0x2fd)]();let bv=![];if(bs>0x0&&bt[eh(0x21d)][eh(0x1f9)]===eh(0x283)){const bB=await bd(bt[eh(0x269)],bs,bm,bp);if(bB===eh(0x26b))throw new Error(eh(0x2e6)+bq+eh(0x369));bv=bB===eh(0x1d7)&&bt[eh(0x21d)][eh(0x1f9)]===eh(0x283);}const bw=bm[eh(0x2fd)]()-bu,bx=bt[eh(0x21d)];let by=bx[eh(0x324)]===![],bz;if(by)bz=be(bx,br);else{if(bx[eh(0x1f9)]===eh(0x193)&&bx[eh(0x358)]===null&&!bx[eh(0x18a)])bz={'text':'','truncated':![],'tailLines':0x0,'tailBytes':0x0};else try{bz=await R(bx[eh(0x2a1)],br);}catch(bC){if(bx[eh(0x324)]!==![])throw bC;by=!![],bz=be(bx,br);}}const bA=[bv?eh(0x26d)+bs+eh(0x362):av(bx)];if(bx[eh(0x358)]===null&&bx[eh(0x1f9)]===eh(0x193)&&bx[eh(0x1ee)])bA[eh(0x265)](eh(0x31a)+bx[eh(0x1ee)]);if(by)bA[eh(0x2d3)](au(bz[eh(0x267)]));if(bz[eh(0x370)][eh(0x374)]>0x0)bA[eh(0x265)](bz[eh(0x370)]);if(bz[eh(0x357)]&&!by)bA[eh(0x265)](eh(0x2b2)+bx[eh(0x2a1)]+']');return{'content':[{'type':eh(0x370),'text':bA[eh(0x37b)]('\x0a')}],'details':{'jobId':bq,'state':bx[eh(0x1f9)],'exitCode':bx[eh(0x253)],'signal':bx[eh(0x275)],'killReason':bx[eh(0x2c3)],'stoppedBy':bx[eh(0x220)],'exitObserved':bx[eh(0x18a)],'outputPath':bx[eh(0x2a1)],'truncated':bz[eh(0x357)],'waitedMs':bw,'timedOut':bv,'logRetired':by}};}};}var bg=b9[bS(0x28d)]({'jobId':b9[bS(0x249)]({'description':bS(0x215)})});function bh(bl,bm=Y){const ei=bS;return{'name':ei(0x255),'label':ei(0x25b),'description':ei(0x35c),'parameters':bg,async 'execute'(bn,bo,bp){const ej=ei,bq=ap(bo[ej(0x32a)]),br=bl(),bs=br?.[ej(0x32e)][ej(0x333)](bq);if(!bs||!br)throw new Error(ej(0x2b7)+bq+ej(0x285));const bt=bs[ej(0x21d)];if(bp?.[ej(0x26b)])throw new Error(ej(0x32b)+bq+ej(0x369));if(bt[ej(0x1f9)]===ej(0x283)&&bs[ej(0x2cc)]===void 0x0&&!bt[ej(0x18a)])await bs[ej(0x20b)];const bu=bt[ej(0x1f9)]===ej(0x283)&&!bt[ej(0x18a)]&&bs[ej(0x2cc)]!==void 0x0;br[ej(0x37f)](bs,bu?ej(0x2bf):ej(0x35f));if(bu)br[ej(0x296)](bq,ej(0x35a),ej(0x27b),null)[ej(0x2f6)](()=>void 0x0);if(await bd(bs[ej(0x269)],al,bm,bp)===ej(0x26b))throw new Error(ej(0x2bb)+bq+ej(0x34c));return{'content':[{'type':ej(0x370),'text':av(bt)}],'details':{'jobId':bq,'state':bt[ej(0x1f9)],'exitCode':bt[ej(0x253)],'signal':bt[ej(0x275)],'killReason':bt[ej(0x2c3)],'stoppedBy':bt[ej(0x220)],'exitObserved':bt[ej(0x18a)],'treeStopIncomplete':bt[ej(0x1fd)]}};}};}var bi=bS(0x187);function bj(bl,bm=c()){const ek=bS,bn=!hasTrustRequiringProjectResources(bl)||new ProjectTrustStore(bm)[ek(0x333)](bl)===!![],bo=SettingsManager[ek(0x19f)](bl,bm,{'projectTrusted':bn});return{'shellPath':bo[ek(0x37d)](),'commandPrefix':bo[ek(0x244)]()};}function bk(bl,bm={}){const el=bS,bn=bm[el(0x355)]??Y;let bo,bp;const bq=new b7(),br=bt=>bl[el(0x17d)](b8({'getManager':()=>bo,'clock':bn,'errorMarks':bq,'kind':bt}));br(el(0x30e)),bl['on'](el(0x1b0),async bt=>{const em=el;if(bt[em(0x1a8)]===em(0x30e)&&bq[em(0x2b4)](bt[em(0x190)]))return{'isError':!![]};return void 0x0;}),bl[el(0x17d)](bf(()=>bo,bn)),bl[el(0x17d)](bh(()=>bo,bn));const bs=bm[el(0x2a5)]??(bt=>console[el(0x225)](bt));bl['on'](el(0x287),async(bt,bu)=>{const en=el;if(bo)await bo[en(0x204)]();const bv=(bm[en(0x2d9)]??(()=>d(c(),f)))();await(bm[en(0x172)]??aj)(bv);const bw=(bm[en(0x20c)]??bj)(bu[en(0x350)]);let bx,by;try{bx=aD(bw[en(0x196)],bm[en(0x1db)]??aC());}catch(bF){by=bF,bs(en(0x310)+(bF?.[en(0x2da)]??String(bF)));}const bz=()=>{const eo=en;if(!bx)throw by;return bx[eo(0x1a6)];};br(bx?.[en(0x256)]??en(0x30e));const bA=new aA(bl,(bG,bH)=>bE[en(0x37f)](bG,bH),bs);bp=bA;const bB=bG=>bl[en(0x2bc)](bi,bG),bC=bG=>bA[en(0x192)](bG)[en(0x2f6)](bH=>bs(en(0x365)+bG[en(0x21d)][en(0x32a)]+en(0x2c9)+(bH?.[en(0x2da)]??String(bH)))),bD=bm[en(0x176)]??(bG=>new ai(bG)),bE=bD({'dir':bv,'sessionId':bu[en(0x2c2)][en(0x1b1)](),'clock':bn,'taskkill':A(),'shellConfig':bz,'commandPrefix':()=>bw[en(0x212)],'log':bs,'onEvent':bB,'onFinished':bC,'onStallAdvisory':(bG,bH)=>{const ep=en;bl[ep(0x36e)]({'customType':ep(0x2fe),'content':ep(0x1e4)+bG[ep(0x21d)][ep(0x32a)]+ep(0x34e)+bG[ep(0x21d)][ep(0x314)]+ep(0x1fc)+(bH[ep(0x1bf)]()[ep(0x31e)]('\x0a')['at'](-0x1)??'')+ep(0x22a),'display':!![],'details':{'jobId':bG[ep(0x21d)][ep(0x32a)]}},{'deliverAs':ep(0x303),'triggerTurn':!![]});}});bo=bE,bo[en(0x2d5)]();}),bl['on'](el(0x216),async bt=>{const eq=el;if(bo&&bp)bp[eq(0x2e8)](bt[eq(0x2da)],bo[eq(0x32e)]);}),bl['on'](el(0x173),async()=>{const er=el;if(bo&&bp)await bp[er(0x33b)](bo[er(0x32e)]);}),bl['on'](el(0x2ac),async()=>{const es=el;bp?.[es(0x296)]();const bt=bo;bo=void 0x0,bp=void 0x0,await bt?.[es(0x204)]();});}export{bi as JOB_EVENT_TYPE,bk as default,bj as readShellSettings};
|