@desplega.ai/agent-swarm 1.172.0 → 2.0.0
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 +1 -1
- package/dist/{acp-adapter-fpecx1g1.js → acp-adapter-sj2g0m84.js} +18 -17
- package/dist/{actions-pw87a1a8.js → actions-fegk44gr.js} +65 -35
- package/dist/{amp-adapter-8jem2bc0.js → amp-adapter-ad8ft89x.js} +8 -7
- package/dist/{anthropic-messages-8ee2f22q.js → anthropic-messages-r6czkjv1.js} +7 -7
- package/dist/{app-wmf0m843.js → app-kfvgbvzy.js} +19 -13
- package/dist/{assistant-emp1e108.js → assistant-z7zdy9ja.js} +65 -38
- package/dist/{boot-reembed-1de4f4aj.js → boot-reembed-5c2z0mbe.js} +11 -9
- package/dist/{boot-reembed-4ymn9atn.js → boot-reembed-j8xa181e.js} +11 -9
- package/dist/{boot-scrub-sweep-adhk1s8c.js → boot-scrub-sweep-hnkn3rgt.js} +12 -10
- package/dist/{boot-seeds-8q637aew.js → boot-seeds-kwjq4d2z.js} +15 -13
- package/dist/{claude-adapter-t26cv8a4.js → claude-adapter-9vmvpvgd.js} +20 -19
- package/dist/{claude-managed-adapter-xgxhqrt2.js → claude-managed-adapter-k9qae05j.js} +7 -5
- package/dist/{claude-managed-setup-bnmjarjc.js → claude-managed-setup-q54zx5q2.js} +6 -4
- package/dist/{claude-sdk-session-gsfsh662.js → claude-sdk-session-9jye6cxr.js} +12698 -11995
- package/dist/{cli-k46r9hmk.js → cli-03gedhng.js} +16 -14
- package/dist/{cli-kb4ehzx5.js → cli-1e4b6bzh.js} +7 -7
- package/dist/{cli-d603qf86.js → cli-29jc5q7w.js} +10 -8
- package/dist/cli-2m1ktfzz.js +17795 -0
- package/dist/{cli-8vs9trd4.js → cli-3dj8k4vy.js} +1 -1
- package/dist/{cli-zxm9p3x4.js → cli-3fbmmawm.js} +5 -5
- package/dist/{cli-gmdajfw5.js → cli-4jxm2qtz.js} +4987 -1708
- package/dist/{cli-tadfgd0t.js → cli-5hkm7whv.js} +33 -4
- package/dist/{cli-6jb2rf77.js → cli-5t4f29ez.js} +3 -3
- package/dist/{cli-7a0sde2x.js → cli-6cagzc96.js} +9 -0
- package/dist/cli-6cvfxs8r.js +47 -0
- package/dist/{cli-pj6x9qce.js → cli-6jyj59nb.js} +2 -2
- package/dist/{cli-388egyf6.js → cli-6razj6t4.js} +2 -2
- package/dist/{cli-qsztpfry.js → cli-74ahz61x.js} +2 -2
- package/dist/{cli-4nz8p1p5.js → cli-7x0g4sn1.js} +15474 -16082
- package/dist/{cli-yatxqynm.js → cli-9ha6hs2d.js} +1 -290
- package/dist/{cli-81r1wjyv.js → cli-9nfx44eh.js} +1 -1
- package/dist/cli-9traj3dn.js +638 -0
- package/dist/{cli-smcrrmhy.js → cli-agzebbd5.js} +9 -9
- package/dist/{cli-bf7485pm.js → cli-apx87jne.js} +2 -2
- package/dist/{cli-ztrv9y21.js → cli-bzszjf2p.js} +3689 -1081
- package/dist/{cli-c5km5znr.js → cli-c8r3kzzb.js} +1 -1
- package/dist/{cli-hsem16hb.js → cli-cgtksawx.js} +7 -4
- package/dist/{cli-db3m6zdt.js → cli-d2qr7aj4.js} +1 -1
- package/dist/{cli-1hgat6pa.js → cli-d5f9ed5c.js} +5 -5
- package/dist/cli-e3g5mbkz.js +776 -0
- package/dist/{cli-7jykv7ef.js → cli-e6mpjhed.js} +1 -1
- package/dist/{cli-j6kpj9az.js → cli-ee9gtz70.js} +1553 -68
- package/dist/{cli-e0a9sk00.js → cli-eejsgvm4.js} +4 -4
- package/dist/{cli-tgpfnm6r.js → cli-ef1hg1wv.js} +518 -59
- package/dist/cli-f527ce74.js +781 -0
- package/dist/{cli-ppy4nnnh.js → cli-f7kr7svz.js} +2 -2
- package/dist/cli-hjwmhcg1.js +10622 -0
- package/dist/{cli-2bw3w47j.js → cli-hnhtk6cj.js} +1 -1
- package/dist/{cli-ywm1azg9.js → cli-hnmhtzvh.js} +6 -4
- package/dist/{cli-4fnb6884.js → cli-hvqbtna4.js} +7 -1259
- package/dist/{cli-pstq9888.js → cli-j0pfptdp.js} +220 -103
- package/dist/cli-jta2eyzc.js +619 -0
- package/dist/{cli-esnpehf5.js → cli-k382tshb.js} +12 -13
- package/dist/cli-k3dp5tpf.js +263 -0
- package/dist/{cli-wd0hz6ah.js → cli-kbrt8gqa.js} +9 -91
- package/dist/cli-kceah1eh.js +92 -0
- package/dist/{cli-prrt9fa0.js → cli-ke896fcf.js} +10 -10
- package/dist/{cli-nv4zd0b9.js → cli-kt6zqg0e.js} +6 -6
- package/dist/{cli-g6t9texm.js → cli-m50t4309.js} +5 -18
- package/dist/cli-n2wq4j7m.js +6985 -0
- package/dist/{cli-c2pq2rjb.js → cli-n3hzg89b.js} +46 -15
- package/dist/{cli-tmhsxhb8.js → cli-n5vwg842.js} +23 -6
- package/dist/{cli-5rv1j9ga.js → cli-ne236afy.js} +53 -7
- package/dist/cli-p0sg24zp.js +16 -0
- package/dist/{cli-d161g69q.js → cli-p1x85d2t.js} +50 -2
- package/dist/{cli-7pz3b7x5.js → cli-przpmdgr.js} +25 -0
- package/dist/{cli-g4f5pj26.js → cli-q0ke1yww.js} +111 -25
- package/dist/{cli-e3pmyt39.js → cli-q50942rs.js} +1 -1
- package/dist/{cli-r44t9wqc.js → cli-r106725k.js} +2 -2
- package/dist/{cli-gj81e47t.js → cli-r2pnvj8g.js} +2 -2
- package/dist/{cli-r8smj8b8.js → cli-r62a35ea.js} +19 -3
- package/dist/{cli-cd0hv9nh.js → cli-ra0xzggj.js} +2 -2
- package/dist/cli-rhs9pz33.js +294 -0
- package/dist/{cli-nyhb1r6x.js → cli-s2sp957d.js} +52 -29
- package/dist/{cli-1x7da0de.js → cli-s4setq91.js} +8 -8
- package/dist/{cli-xczpdp9e.js → cli-se8w6wny.js} +6 -6
- package/dist/cli-skxvvpap.js +10140 -0
- package/dist/{cli-014vns2y.js → cli-stfs0k5s.js} +208 -525
- package/dist/{cli-0p3enk35.js → cli-tqaazemc.js} +9 -1
- package/dist/{cli-cf69s3ew.js → cli-tr4sxp68.js} +3 -3
- package/dist/{cli-8hzfb6xz.js → cli-tsde1hdr.js} +15 -15
- package/dist/{cli-cceskcvt.js → cli-txqb9s38.js} +8 -8
- package/dist/{cli-aspcaef3.js → cli-v1yb0rqb.js} +6 -6
- package/dist/{cli-j1pmc07z.js → cli-vatyhshy.js} +268 -40
- package/dist/{cli-04emfe2q.js → cli-vdach5a9.js} +5 -5
- package/dist/{cli-7avy4v8w.js → cli-w1q7h2r2.js} +5 -3
- package/dist/{cli-rcp5aqdw.js → cli-w7m81tb7.js} +1 -1
- package/dist/{cli-hwwvy36w.js → cli-wayw93nt.js} +3 -3
- package/dist/cli-wmgrkscj.js +23254 -0
- package/dist/{cli-gp1rtyvk.js → cli-z5jjpaxw.js} +29 -6
- package/dist/{cli-451ks6aw.js → cli-zkpks3r3.js} +1 -1
- package/dist/cli.js +32 -48
- package/dist/{codex-adapter-m4tgdysy.js → codex-adapter-y81sssk0.js} +16 -15
- package/dist/{codex-login-841kv5fk.js → codex-login-f2rcfpp9.js} +3 -2
- package/dist/{codex-session-runner-ymwzm6ea.js → codex-session-runner-8vx4j6a9.js} +16 -15
- package/dist/{commands-n0hshcvs.js → commands-kcpvpcrr.js} +21 -10
- package/dist/{controller-hq5ggpcp.js → controller-ywrmt6yd.js} +5 -4
- package/dist/{controllers-connect-y07cqcvy.js → controllers-connect-kwpvj3rf.js} +45 -38
- package/dist/{cursor-adapter-q8pgv5qa.js → cursor-adapter-cehv1qns.js} +7 -6
- package/dist/{db-hkqvrdcb.js → db-k8ankj20.js} +13 -11
- package/dist/{db-4w7tmt1g.js → db-ww5d7jq3.js} +29 -9
- package/dist/{devin-adapter-xgtj680j.js → devin-adapter-x1022qb1.js} +3 -2
- package/dist/{dispatcher-5sd69y14.js → dispatcher-e8gq5m68.js} +41 -34
- package/dist/{docker-f503k9p0.js → docker-ff6y1190.js} +3 -2
- package/dist/{dsh-adapter-2h8m4cab.js → dsh-adapter-3epjm3af.js} +7 -6
- package/dist/{e2b-66xra4az.js → e2b-8ygwhg0f.js} +4 -3
- package/dist/{e2b-xwhyj8cw.js → e2b-swhnpw3n.js} +4 -3
- package/dist/{event-bus-vjtv82gm.js → event-bus-6axnngdj.js} +3 -2
- package/dist/external-channel-h3359cwn.js +52 -0
- package/dist/{google-generative-ai-7pavrbv7.js → google-generative-ai-g8db7x0f.js} +5 -3
- package/dist/{google-vertex-3f1jk41f.js → google-vertex-r2692q0r.js} +5 -3
- package/dist/{grok-adapter-8m9yqzbq.js → grok-adapter-0d4x7gkx.js} +19 -18
- package/dist/{handlers-s20xr10r.js → handlers-an1gzv21.js} +44 -37
- package/dist/{heartbeat-3k31q4g2.js → heartbeat-6dakeb61.js} +46 -39
- package/dist/{hook-gdn6a2fn.js → hook-6v6cv6d5.js} +12 -24
- package/dist/{hook-ygwerrdh.js → hook-sa5xye4y.js} +13 -12
- package/dist/{http-jdteeg81.js → http-r7f3eky0.js} +1598 -279
- package/dist/index-52j1aja4.js +3465 -0
- package/dist/{index-e0snym4t.js → index-7ep4gzdk.js} +41 -34
- package/dist/index-9gw58n4k.js +193 -0
- package/dist/index-9j87mcm8.js +56305 -0
- package/dist/index-bsmcresk.js +79424 -0
- package/dist/index-mh85qhec.js +475 -0
- package/dist/{index-vm3bm9t7.js → index-rmpw9a8q.js} +41 -34
- package/dist/{index-6ksewd5y.js → index-s2wxgzr0.js} +1015 -732
- package/dist/{index-tsszt7g9.js → index-v1v6n7hg.js} +46 -39
- package/dist/index-we27kd31.js +12810 -0
- package/dist/{index-ffqzqgwb.js → index-zk96aq1k.js} +11 -9
- package/dist/{keepalive-jekc896t.js → keepalive-be9vwy5h.js} +13 -11
- package/dist/{lead-4k9s9szx.js → lead-0861cwrf.js} +64 -57
- package/dist/{maintenance-shazch4n.js → maintenance-mzzgc8bn.js} +11 -9
- package/dist/node-c9we95xf.js +1 -1
- package/dist/{node-fkajaq96.js → node-mn1zs7an.js} +2 -1
- package/dist/{oauth-refresh-sweep-5gb36kn8.js → oauth-refresh-sweep-cpdnfwdj.js} +12 -10
- package/dist/{onboard-ydrbnvww.js → onboard-fh8qs4r3.js} +11 -3
- package/dist/{opencode-adapter-5zh0he20.js → opencode-adapter-nm42wwj8.js} +19 -14
- package/dist/{otel-impl-6pf5cv86.js → otel-impl-x6c1c9g4.js} +248 -869
- package/dist/{pi-mono-adapter-ef9wwx9m.js → pi-mono-adapter-9n2ya240.js} +245 -107
- package/dist/{pricing-refresh-s52nsa5q.js → pricing-refresh-qb0rv0ap.js} +13 -11
- package/dist/{rbac-roles-aq3msh4e.js → rbac-roles-1gzdwbh1.js} +12 -10
- package/dist/{rbac-roles-q5gb5e8v.js → rbac-roles-3mraey52.js} +13 -11
- package/dist/{render-v2-pd1rg54q.js → render-v2-agpa45zz.js} +19 -13
- package/dist/{resume-gw4a2c6v.js → resume-x0ydy9s9.js} +27 -21
- package/dist/{runtime-qfry88v2.js → runtime-sa2vr16g.js} +2 -2
- package/dist/{setup-jda1ksdh.js → setup-as9ga0d6.js} +2 -2
- package/dist/{virtual-modules-b3ga2m65.js → virtual-modules-9gkxqrap.js} +7 -6
- package/dist/{work-objects-tb7ycye8.js → work-objects-y5g1y7ev.js} +49 -37
- package/dist/{worker-njjccz5d.js → worker-860c3e38.js} +64 -57
- package/dist/{x-qfmygqqv.js → x-m477fr0h.js} +3 -2
- package/openapi.json +951 -356
- package/package.json +12 -13
- package/src/apps/catalog.generated.json +1309 -53
- package/src/apps/page-validator.ts +93 -31
- package/src/azure-devops/api.ts +94 -18
- package/src/azure-devops/auth.ts +32 -0
- package/src/azure-devops/boards-sync.ts +708 -0
- package/src/azure-devops/handlers.ts +52 -8
- package/src/azure-devops/html.ts +26 -0
- package/src/azure-devops/index.ts +15 -0
- package/src/azure-devops/templates.ts +86 -0
- package/src/azure-devops/types.ts +65 -1
- package/src/be/config-refs.ts +60 -0
- package/src/be/db/page-versions.ts +15 -0
- package/src/be/db/runtime.ts +35 -8
- package/src/be/db/skill-name-resolution.ts +36 -0
- package/src/be/db/tasks/read.ts +230 -0
- package/src/be/db/tasks/write.ts +7 -0
- package/src/be/db.ts +74 -13
- package/src/be/migrations/213_script_connections_sql.sql +79 -0
- package/src/be/migrations/215_swarm_config_export_to_env.sql +34 -0
- package/src/be/migrations/216_task_resolved_effort.sql +5 -0
- package/src/be/migrations/217_chat_sdk_state.sql +104 -0
- package/src/be/model-catalog-store.ts +5 -1
- package/src/be/model-tier-resolution.ts +12 -1
- package/src/be/model-validation.ts +5 -2
- package/src/be/models-catalog.ts +26 -1
- package/src/be/modelsdev-cache.json +198 -63
- package/src/be/modelsdev-cache.ts +9 -1
- package/src/be/script-connections.ts +47 -8
- package/src/be/script-credential-broker.ts +39 -2
- package/src/be/scripts/run-saved.ts +1 -0
- package/src/be/scripts/typecheck.ts +10 -8
- package/src/be/seed/runner.ts +13 -1
- package/src/be/seed/state-db.ts +5 -0
- package/src/be/seed/types.ts +6 -0
- package/src/be/seed-pricing.ts +19 -2
- package/src/be/seed-scripts/catalog/ops-catalog-audit.inline.ts +1 -1
- package/src/be/seed-scripts/catalog/ops-catalog-audit.ts +1 -1
- package/src/be/seed-skills/bundled-files.generated.json +10 -18
- package/src/be/seed-skills/index.ts +107 -3
- package/src/be/sql-connections.ts +118 -0
- package/src/be/swarm-config-guard.ts +53 -0
- package/src/cli.tsx +0 -16
- package/src/commands/onboard/non-interactive.ts +4 -2
- package/src/commands/profile-sync.ts +5 -3
- package/src/commands/provider-credentials.ts +52 -6
- package/src/commands/runner.ts +196 -56
- package/src/e2b/env.ts +5 -0
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/extensions/contract.ts +45 -0
- package/src/extensions/dispatcher.ts +7 -0
- package/src/extensions/post-bridge.ts +40 -0
- package/src/github/handlers.ts +11 -4
- package/src/heartbeat/templates.ts +8 -5
- package/src/hooks/hook.ts +0 -26
- package/src/http/all-routes.ts +0 -1
- package/src/http/config.ts +36 -17
- package/src/http/core.ts +4 -0
- package/src/http/index.ts +14 -2
- package/src/http/integrations.ts +88 -1
- package/src/http/mcp-oauth.ts +6 -13
- package/src/http/mcp.ts +15 -5
- package/src/http/page-proxy.ts +2 -4
- package/src/http/pages-public.ts +6 -5
- package/src/http/pages.ts +5 -14
- package/src/http/poll.ts +28 -68
- package/src/http/requested-by.ts +54 -0
- package/src/http/route-def.ts +7 -6
- package/src/http/script-connection-proxy.ts +51 -4
- package/src/http/script-connections.ts +5 -2
- package/src/http/scripts.ts +1 -0
- package/src/http/session-cost-recompute.ts +12 -2
- package/src/http/session-data.ts +4 -0
- package/src/http/stats.ts +1 -30
- package/src/http/tasks.ts +61 -5
- package/src/http/utils.ts +14 -0
- package/src/http/webhooks.ts +183 -2
- package/src/http/x.ts +1 -0
- package/src/integrations/chat-sdk/adapters.ts +129 -0
- package/src/integrations/chat-sdk/attachments.ts +232 -0
- package/src/integrations/chat-sdk/background.ts +36 -0
- package/src/integrations/chat-sdk/commands.ts +194 -0
- package/src/integrations/chat-sdk/config.ts +198 -0
- package/src/integrations/chat-sdk/discord-api.ts +63 -0
- package/src/integrations/chat-sdk/discord-gateway.ts +185 -0
- package/src/integrations/chat-sdk/handlers.ts +28 -0
- package/src/integrations/chat-sdk/inbound.ts +426 -0
- package/src/integrations/chat-sdk/limits.ts +48 -0
- package/src/integrations/chat-sdk/logger.ts +81 -0
- package/src/integrations/chat-sdk/outbound.ts +123 -0
- package/src/integrations/chat-sdk/relay.ts +172 -0
- package/src/integrations/chat-sdk/router.ts +169 -0
- package/src/integrations/chat-sdk/runtime.ts +351 -0
- package/src/integrations/chat-sdk/schema.ts +245 -0
- package/src/integrations/chat-sdk/state.ts +243 -0
- package/src/integrations/chat-sdk/status.ts +244 -0
- package/src/integrations/chat-sdk/steering.ts +58 -0
- package/src/integrations/chat-sdk/teams-origin.ts +77 -0
- package/src/integrations/chat-sdk/telegram-api.ts +56 -0
- package/src/integrations/chat-sdk/templates.ts +16 -0
- package/src/integrations/chat-sdk/test-hooks.ts +37 -0
- package/src/integrations/chat-sdk/thread-buffer.ts +100 -0
- package/src/integrations/chat-sdk/typing.ts +65 -0
- package/src/jira/adf.ts +3 -1
- package/src/kv-reserved-namespaces.ts +2 -0
- package/src/oauth/mcp-wrapper.ts +10 -6
- package/src/otel-impl.ts +2 -1
- package/src/pages/version.ts +4 -5
- package/src/prompts/base-prompt.ts +111 -45
- package/src/providers/acp-target-catalog.ts +6 -0
- package/src/providers/acp-targets.ts +56 -3
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/claude-adapter.ts +27 -2
- package/src/providers/claude-flag-settings.ts +133 -0
- package/src/providers/claude-managed-adapter.ts +1 -1
- package/src/providers/claude-sdk-session.ts +7 -0
- package/src/providers/claude-session-events.ts +6 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/providers/opencode-adapter.ts +268 -37
- package/src/providers/opencode-billing.ts +86 -0
- package/src/providers/opencode-swarm-plugin.ts +51 -0
- package/src/providers/pi-mono-adapter.ts +398 -153
- package/src/providers/pricing-sources.md +37 -3
- package/src/providers/reasoning-effort.ts +27 -0
- package/src/providers/types.ts +11 -2
- package/src/rbac/legacy-policy.ts +8 -2
- package/src/rbac/permissions.ts +21 -0
- package/src/scheduler/scheduler.ts +4 -2
- package/src/scripts-runtime/api-client.ts +15 -1
- package/src/scripts-runtime/api-types.ts +9 -1
- package/src/scripts-runtime/ctx.ts +1 -1
- package/src/scripts-runtime/loader.ts +19 -7
- package/src/scripts-runtime/mcp-client.ts +30 -19
- package/src/scripts-runtime/sdk-allowlist.ts +8 -6
- package/src/scripts-runtime/swarm-sdk.ts +0 -11
- package/src/scripts-runtime/types/stdlib.d.ts +27 -15
- package/src/scripts-runtime/types/swarm-extension.d.ts +63 -1
- package/src/scripts-runtime/types/swarm-sdk.d.ts +27 -15
- package/src/server.ts +52 -18
- package/src/slack/actions.ts +29 -1
- package/src/slack/app.ts +14 -2
- package/src/slack/assistant.ts +36 -2
- package/src/slack/channel-join.ts +3 -16
- package/src/slack/commands.ts +9 -1
- package/src/slack/event-dedup.ts +1 -1
- package/src/slack/external-channel-egress.ts +113 -0
- package/src/slack/external-channel.ts +309 -0
- package/src/slack/handlers.ts +61 -0
- package/src/slack/render-v2.ts +40 -47
- package/src/slack/work-objects.ts +5 -0
- package/src/tasks/additive-buffer.ts +4 -2
- package/src/tasks/context-key.ts +94 -2
- package/src/tasks/model-pin.ts +67 -0
- package/src/tasks/worker-follow-up.ts +4 -31
- package/src/telemetry.ts +2 -1
- package/src/tests/acp-adapter.test.ts +42 -0
- package/src/tests/api-drain-worker-e2e.test.ts +1 -6
- package/src/tests/apps-catalog-feedback.test.ts +310 -0
- package/src/tests/apps-catalog-inputs.test.ts +70 -0
- package/src/tests/apps-catalog-table.test.ts +113 -0
- package/src/tests/azure-devops-boards-sync.test.ts +584 -0
- package/src/tests/azure-devops-html.test.ts +13 -0
- package/src/tests/azure-devops-webhook-malformed.test.ts +4 -0
- package/src/tests/base-prompt.test.ts +58 -54
- package/src/tests/chat-sdk-commands.test.ts +191 -0
- package/src/tests/chat-sdk-config.test.ts +334 -0
- package/src/tests/chat-sdk-discord-api.test.ts +68 -0
- package/src/tests/chat-sdk-discord-gateway.test.ts +252 -0
- package/src/tests/chat-sdk-discord-webhook.test.ts +126 -0
- package/src/tests/chat-sdk-fields-sync.test.ts +50 -0
- package/src/tests/chat-sdk-harness.ts +146 -0
- package/src/tests/chat-sdk-inbound.test.ts +363 -0
- package/src/tests/chat-sdk-relay.test.ts +470 -0
- package/src/tests/chat-sdk-reload.test.ts +128 -0
- package/src/tests/chat-sdk-shutdown.test.ts +220 -0
- package/src/tests/chat-sdk-slack.test.ts +268 -0
- package/src/tests/chat-sdk-state.test.ts +163 -0
- package/src/tests/chat-sdk-status-route.test.ts +382 -0
- package/src/tests/chat-sdk-teams.test.ts +277 -0
- package/src/tests/chat-sdk-tools.test.ts +520 -0
- package/src/tests/chat-sdk-typing.test.ts +120 -0
- package/src/tests/chat-sdk-webhook-telegram.test.ts +200 -0
- package/src/tests/claude-adapter-binary.test.ts +144 -0
- package/src/tests/claude-flag-settings.test.ts +114 -0
- package/src/tests/claude-managed-adapter.test.ts +1 -1
- package/src/tests/claude-sdk-lifecycle.test.ts +148 -1
- package/src/tests/claude-sdk-process.fixture.ts +7 -0
- package/src/tests/claude-thinking-tokens.test.ts +57 -0
- package/src/tests/claude-worker-parity.test.ts +2 -7
- package/src/tests/config-env-export-chat-sdk.test.ts +11 -0
- package/src/tests/config-refs.test.ts +66 -0
- package/src/tests/context-key.test.ts +51 -0
- package/src/tests/cors-allowlist.test.ts +25 -0
- package/src/tests/create-page-tool.test.ts +18 -0
- package/src/tests/credential-check.test.ts +139 -0
- package/src/tests/credentials.test.ts +21 -0
- package/src/tests/db-runtime.test.ts +61 -0
- package/src/tests/db-task-read-contract.test.ts +20 -0
- package/src/tests/db-task-write-contract.test.ts +10 -0
- package/src/tests/deferred-task-wake.test.ts +52 -4
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/enabled-capabilities.test.ts +20 -0
- package/src/tests/entrypoint-api-readiness.test.ts +14 -8
- package/src/tests/entrypoint-config-env-export.test.ts +5 -2
- package/src/tests/entrypoint-export-to-env.test.ts +78 -0
- package/src/tests/explicit-model-validation.test.ts +105 -1
- package/src/tests/extensions-example-route-chat-channel.test.ts +154 -0
- package/src/tests/extensions-post-bridge.test.ts +51 -0
- package/src/tests/fetch-resolved-env.test.ts +128 -0
- package/src/tests/fixtures/azure-boards/workitem.commented.json +89 -0
- package/src/tests/fixtures/azure-boards/workitem.created.json +81 -0
- package/src/tests/fixtures/azure-boards/workitem.deleted.json +70 -0
- package/src/tests/fixtures/azure-boards/workitem.restored.json +82 -0
- package/src/tests/fixtures/azure-boards/workitem.updated.json +130 -0
- package/src/tests/fixtures/catalog-feedback-definition.json.txt +860 -0
- package/src/tests/fixtures/catalog-inputs-definition.json.txt +910 -0
- package/src/tests/fixtures/catalog-table-definition.json.txt +468 -0
- package/src/tests/fixtures/chat-sdk/telegram-private-text.json +10 -0
- package/src/tests/fixtures/extensions/route-chat-channel-to-agent/hooks.ts +27 -0
- package/src/tests/fixtures/extensions/route-chat-channel-to-agent/manifest.json +9 -0
- package/src/tests/fixtures/openai-compatible-registry-extension.child.ts +146 -0
- package/src/tests/fixtures/runner-identity-refresh.ts +3 -0
- package/src/tests/fixtures/runner-legacy-resume-prompt.ts +122 -0
- package/src/tests/github-handlers.test.ts +35 -0
- package/src/tests/harness-provider-resolution.test.ts +12 -0
- package/src/tests/heartbeat-checklist.test.ts +3 -2
- package/src/tests/hook-runtime-close.test.ts +0 -2
- package/src/tests/http-api-integration.test.ts +0 -25
- package/src/tests/migration-046-budgets.test.ts +17 -16
- package/src/tests/migration-217-chat-sdk-state.test.ts +113 -0
- package/src/tests/model-tier-resolution.test.ts +93 -0
- package/src/tests/models-catalog.test.ts +42 -1
- package/src/tests/node-env-runtime.test.ts +98 -0
- package/src/tests/openai-compatible-providers.test.ts +134 -0
- package/src/tests/openai-compatible-registry-extension.test.ts +42 -0
- package/src/tests/opencode-adapter.test.ts +348 -3
- package/src/tests/opencode-billing.test.ts +28 -0
- package/src/tests/opencode-helmcode-sdk.test.ts +201 -0
- package/src/tests/opencode-shell-env.test.ts +145 -0
- package/src/tests/openrouter-base-url.test.ts +101 -151
- package/src/tests/page-proxy.test.ts +1 -1
- package/src/tests/pages-browser-sdk.test.ts +76 -0
- package/src/tests/pages-feedback.test.ts +1 -1
- package/src/tests/paused-tasks-requested-by.test.ts +102 -0
- package/src/tests/pi-custom-provider-fake-server.test.ts +442 -0
- package/src/tests/pi-mono-adapter.test.ts +385 -5
- package/src/tests/pi-shell-env.test.ts +170 -0
- package/src/tests/prompt-template-remaining.test.ts +35 -0
- package/src/tests/rbac-engine.test.ts +11 -3
- package/src/tests/runner-exit-after-tasks.test.ts +0 -4
- package/src/tests/runner-identity-refresh.test.ts +3 -0
- package/src/tests/runner-legacy-resume-prompt.test.ts +64 -0
- package/src/tests/script-connections-sql.test.ts +675 -0
- package/src/tests/script-connections.test.ts +7 -1
- package/src/tests/scripts-http.test.ts +201 -1
- package/src/tests/scripts-only-gating.test.ts +2 -3
- package/src/tests/scripts-runtime.test.ts +58 -40
- package/src/tests/secret-scrubber.test.ts +86 -0
- package/src/tests/seed-skills-bundled-files.test.ts +45 -53
- package/src/tests/seed-skills-retire.test.ts +182 -0
- package/src/tests/send-task-requester-gate.test.ts +58 -0
- package/src/tests/session-cost-recompute-unit.test.ts +94 -0
- package/src/tests/skill-get-name-resolution.test.ts +137 -0
- package/src/tests/slack-channel-join.test.ts +4 -1
- package/src/tests/slack-external-channel-config.test.ts +65 -0
- package/src/tests/slack-external-channel-egress.test.ts +237 -0
- package/src/tests/slack-external-channel-guard.test.ts +280 -0
- package/src/tests/slack-external-channel-tools.test.ts +173 -0
- package/src/tests/slack-external-channel.test.ts +370 -0
- package/src/tests/slack-render-v2.test.ts +86 -10
- package/src/tests/sonnet-5-5-registry.test.ts +9 -1
- package/src/tests/spec-base-url.test.ts +16 -1
- package/src/tests/swarm-config-export-to-env.test.ts +267 -0
- package/src/tests/swarm-config-reserved-keys.test.ts +16 -0
- package/src/tests/swarm-diff.test.ts +1 -1
- package/src/tests/task-model-effort-rerun.test.ts +164 -0
- package/src/tests/task-session-prompts.test.ts +132 -0
- package/src/tests/task-tool-manifest.test.ts +14 -0
- package/src/tests/task-tools-ctx.test.ts +2 -0
- package/src/tests/tool-annotations.test.ts +6 -6
- package/src/tests/ui-logs-parser.test.ts +43 -0
- package/src/tests/used-by-route.test.ts +6 -0
- package/src/tests/vendored-openapi.test.ts +16 -1
- package/src/tests/vercel-ai-gateway.test.ts +149 -0
- package/src/tests/workflow-swarm-script.test.ts +38 -0
- package/src/tests/workflow-wait-filter.test.ts +5 -3
- package/src/tools/chat-access.ts +41 -0
- package/src/tools/chat-open-dm.ts +59 -0
- package/src/tools/chat-post.ts +74 -0
- package/src/tools/chat-read-thread.ts +100 -0
- package/src/tools/chat-reply.ts +75 -0
- package/src/tools/create-page.ts +3 -13
- package/src/tools/defer-task.ts +17 -0
- package/src/tools/model-catalog/index.ts +2 -1
- package/src/tools/register-chat-channel.ts +139 -0
- package/src/tools/send-task.ts +24 -0
- package/src/tools/skills/skill-get.ts +17 -9
- package/src/tools/slack-post.ts +6 -0
- package/src/tools/slack-read.ts +8 -0
- package/src/tools/slack-reply.ts +6 -0
- package/src/tools/slack-start-thread.ts +6 -0
- package/src/tools/slack-update.ts +6 -0
- package/src/tools/slack-upload-file.ts +6 -0
- package/src/tools/swarm-config/get-config.ts +2 -1
- package/src/tools/swarm-config/list-config.ts +2 -1
- package/src/tools/swarm-config/set-config.ts +16 -3
- package/src/tools/tool-config.ts +8 -6
- package/src/types.ts +12 -2
- package/src/utils/config-env-export.ts +74 -0
- package/src/utils/credentials.test.ts +92 -0
- package/src/utils/credentials.ts +52 -4
- package/src/utils/harness-provider.ts +15 -6
- package/src/utils/node-env.ts +24 -0
- package/src/utils/runtime-model-catalog.ts +11 -1
- package/src/utils/secret-scrubber.ts +71 -2
- package/src/utils/task-tool-manifest.ts +19 -2
- package/src/workflows/executors/swarm-script.ts +1 -0
- package/templates/skills/agent-browser/SKILL.md +1 -1
- package/templates/skills/agent-browser/content.md +1 -1
- package/templates/skills/apps/SKILL.md +749 -0
- package/templates/skills/apps/content.md +60 -22
- package/templates/skills/chat-sdk/config.json +14 -0
- package/templates/skills/chat-sdk/content.md +84 -0
- package/templates/skills/composio-gmail/content.md +7 -0
- package/templates/skills/composio-google-docs/content.md +1 -1
- package/templates/skills/email-domain-health/config.json +14 -0
- package/templates/skills/email-domain-health/content.md +131 -0
- package/templates/skills/kv-storage/content.md +2 -2
- package/templates/skills/pages/content.md +8 -10
- package/templates/skills/qa-loom/config.json +14 -0
- package/templates/skills/qa-loom/content.md +187 -0
- package/templates/skills/qa-loom/files/build-loom.mjs +221 -0
- package/templates/skills/qa-loom/files/run-qa.sh +57 -0
- package/templates/skills/slack-interaction/content.md +4 -0
- package/templates/skills/swarm-extensions/content.md +2 -0
- package/templates/skills/swarm-scripts/SKILL.md +4 -2
- package/templates/skills/swarm-scripts/config.json +1 -1
- package/templates/skills/swarm-scripts/content.md +4 -2
- package/templates/skills/workflow-iterate/content.md +38 -0
- package/dist/artifact-eczsknc3.js +0 -3843
- package/dist/cli-9xsmdpdt.js +0 -56377
- package/dist/cli-bd957dgb.js +0 -153
- package/dist/cli-q51yprfq.js +0 -1104
- package/dist/cli-t1ze64h3.js +0 -811
- package/dist/index-9ch1n761.js +0 -1102
- package/src/artifact-sdk/index.ts +0 -2
- package/src/artifact-sdk/localtunnel.d.ts +0 -20
- package/src/artifact-sdk/port.ts +0 -12
- package/src/artifact-sdk/server.ts +0 -183
- package/src/artifact-sdk/tunnel.ts +0 -19
- package/src/commands/artifact.ts +0 -249
- package/src/http/ecosystem.ts +0 -77
- package/src/tests/artifact-commands.test.ts +0 -92
- package/src/tests/artifact-sdk.test.ts +0 -793
- package/src/tests/register-service-security.test.ts +0 -194
- package/src/tools/list-services.ts +0 -107
- package/src/tools/register-service.ts +0 -177
- package/src/tools/unregister-service.ts +0 -73
- package/src/tools/update-service-status.ts +0 -96
- package/templates/skills/artifacts/config.json +0 -14
- package/templates/skills/artifacts/content.md +0 -344
- package/templates/skills/artifacts/files/examples/approval-flow.ts +0 -34
- package/templates/skills/artifacts/files/examples/hono-dashboard.ts +0 -31
- package/templates/skills/artifacts/files/examples/multi-artifact.ts +0 -20
- package/templates/skills/artifacts/files/examples/static-report.sh +0 -17
- package/dist/{azure-openai-responses-ap1gwxgr.js → azure-openai-responses-ygfreq4t.js} +5 -5
- package/dist/{cli-5rqrj7q0.js → cli-pw7ebjdt.js} +0 -0
- package/dist/{openai-codex-responses-33qhkkdy.js → openai-codex-responses-3bk0grnr.js} +4 -4
- package/dist/{openai-completions-s88xm3ns.js → openai-completions-5d4jpakc.js} +9 -9
- package/dist/{openai-responses-7xd2f2e2.js → openai-responses-krb51f59.js} +5 -5
- package/dist/{pi-messages-xszk613n.js → pi-messages-x9gzynm1.js} +3 -3
- /package/src/{artifact-sdk → pages}/browser-sdk.ts +0 -0
- /package/src/{artifact-sdk → pages}/feedback-overlay.ts +0 -0
|
@@ -39,12 +39,12 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
providerHeadersToRecord
|
|
41
41
|
} from "./cli-7kyk9jr3.js";
|
|
42
|
-
import {
|
|
43
|
-
getProviderEnvValue
|
|
44
|
-
} from "./cli-btbzvq95.js";
|
|
45
42
|
import {
|
|
46
43
|
parseStreamingJson
|
|
47
44
|
} from "./cli-1m2e086m.js";
|
|
45
|
+
import {
|
|
46
|
+
getProviderEnvValue
|
|
47
|
+
} from "./cli-btbzvq95.js";
|
|
48
48
|
import {
|
|
49
49
|
calculateCost,
|
|
50
50
|
collapseSystemMessages,
|
|
@@ -58,13 +58,11 @@ import {
|
|
|
58
58
|
appendAssistantMessageDiagnostic
|
|
59
59
|
} from "./cli-wnb9b2g3.js";
|
|
60
60
|
import {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} from "./cli-bd957dgb.js";
|
|
61
|
+
require_src
|
|
62
|
+
} from "./cli-f527ce74.js";
|
|
64
63
|
import {
|
|
65
64
|
__commonJS,
|
|
66
65
|
__require,
|
|
67
|
-
__toCommonJS,
|
|
68
66
|
__toESM
|
|
69
67
|
} from "./cli-bc05qbss.js";
|
|
70
68
|
|
|
@@ -1013,1256 +1011,6 @@ var require_dist_cjs8 = __commonJS(function(exports) {
|
|
|
1013
1011
|
exports.nodeProvider = nodeProvider;
|
|
1014
1012
|
});
|
|
1015
1013
|
|
|
1016
|
-
// node_modules/http-proxy-agent/node_modules/debug/node_modules/ms/index.js
|
|
1017
|
-
var require_ms = __commonJS(function(exports, module) {
|
|
1018
|
-
var s = 1000;
|
|
1019
|
-
var m = s * 60;
|
|
1020
|
-
var h2 = m * 60;
|
|
1021
|
-
var d2 = h2 * 24;
|
|
1022
|
-
var w = d2 * 7;
|
|
1023
|
-
var y = d2 * 365.25;
|
|
1024
|
-
module.exports = function(val, options) {
|
|
1025
|
-
options = options || {};
|
|
1026
|
-
var type = typeof val;
|
|
1027
|
-
if (type === "string" && val.length > 0) {
|
|
1028
|
-
return parse(val);
|
|
1029
|
-
} else if (type === "number" && isFinite(val)) {
|
|
1030
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
1031
|
-
}
|
|
1032
|
-
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
1033
|
-
};
|
|
1034
|
-
function parse(str) {
|
|
1035
|
-
str = String(str);
|
|
1036
|
-
if (str.length > 100) {
|
|
1037
|
-
return;
|
|
1038
|
-
}
|
|
1039
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
|
|
1040
|
-
if (!match) {
|
|
1041
|
-
return;
|
|
1042
|
-
}
|
|
1043
|
-
var n = parseFloat(match[1]);
|
|
1044
|
-
var type = (match[2] || "ms").toLowerCase();
|
|
1045
|
-
switch (type) {
|
|
1046
|
-
case "years":
|
|
1047
|
-
case "year":
|
|
1048
|
-
case "yrs":
|
|
1049
|
-
case "yr":
|
|
1050
|
-
case "y":
|
|
1051
|
-
return n * y;
|
|
1052
|
-
case "weeks":
|
|
1053
|
-
case "week":
|
|
1054
|
-
case "w":
|
|
1055
|
-
return n * w;
|
|
1056
|
-
case "days":
|
|
1057
|
-
case "day":
|
|
1058
|
-
case "d":
|
|
1059
|
-
return n * d2;
|
|
1060
|
-
case "hours":
|
|
1061
|
-
case "hour":
|
|
1062
|
-
case "hrs":
|
|
1063
|
-
case "hr":
|
|
1064
|
-
case "h":
|
|
1065
|
-
return n * h2;
|
|
1066
|
-
case "minutes":
|
|
1067
|
-
case "minute":
|
|
1068
|
-
case "mins":
|
|
1069
|
-
case "min":
|
|
1070
|
-
case "m":
|
|
1071
|
-
return n * m;
|
|
1072
|
-
case "seconds":
|
|
1073
|
-
case "second":
|
|
1074
|
-
case "secs":
|
|
1075
|
-
case "sec":
|
|
1076
|
-
case "s":
|
|
1077
|
-
return n * s;
|
|
1078
|
-
case "milliseconds":
|
|
1079
|
-
case "millisecond":
|
|
1080
|
-
case "msecs":
|
|
1081
|
-
case "msec":
|
|
1082
|
-
case "ms":
|
|
1083
|
-
return n;
|
|
1084
|
-
default:
|
|
1085
|
-
return;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
function fmtShort(ms) {
|
|
1089
|
-
var msAbs = Math.abs(ms);
|
|
1090
|
-
if (msAbs >= d2) {
|
|
1091
|
-
return Math.round(ms / d2) + "d";
|
|
1092
|
-
}
|
|
1093
|
-
if (msAbs >= h2) {
|
|
1094
|
-
return Math.round(ms / h2) + "h";
|
|
1095
|
-
}
|
|
1096
|
-
if (msAbs >= m) {
|
|
1097
|
-
return Math.round(ms / m) + "m";
|
|
1098
|
-
}
|
|
1099
|
-
if (msAbs >= s) {
|
|
1100
|
-
return Math.round(ms / s) + "s";
|
|
1101
|
-
}
|
|
1102
|
-
return ms + "ms";
|
|
1103
|
-
}
|
|
1104
|
-
function fmtLong(ms) {
|
|
1105
|
-
var msAbs = Math.abs(ms);
|
|
1106
|
-
if (msAbs >= d2) {
|
|
1107
|
-
return plural(ms, msAbs, d2, "day");
|
|
1108
|
-
}
|
|
1109
|
-
if (msAbs >= h2) {
|
|
1110
|
-
return plural(ms, msAbs, h2, "hour");
|
|
1111
|
-
}
|
|
1112
|
-
if (msAbs >= m) {
|
|
1113
|
-
return plural(ms, msAbs, m, "minute");
|
|
1114
|
-
}
|
|
1115
|
-
if (msAbs >= s) {
|
|
1116
|
-
return plural(ms, msAbs, s, "second");
|
|
1117
|
-
}
|
|
1118
|
-
return ms + " ms";
|
|
1119
|
-
}
|
|
1120
|
-
function plural(ms, msAbs, n, name) {
|
|
1121
|
-
var isPlural = msAbs >= n * 1.5;
|
|
1122
|
-
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
1123
|
-
}
|
|
1124
|
-
});
|
|
1125
|
-
|
|
1126
|
-
// node_modules/http-proxy-agent/node_modules/debug/src/common.js
|
|
1127
|
-
var require_common = __commonJS(function(exports, module) {
|
|
1128
|
-
function setup(env) {
|
|
1129
|
-
createDebug.debug = createDebug;
|
|
1130
|
-
createDebug.default = createDebug;
|
|
1131
|
-
createDebug.coerce = coerce;
|
|
1132
|
-
createDebug.disable = disable;
|
|
1133
|
-
createDebug.enable = enable;
|
|
1134
|
-
createDebug.enabled = enabled;
|
|
1135
|
-
createDebug.humanize = require_ms();
|
|
1136
|
-
createDebug.destroy = destroy;
|
|
1137
|
-
Object.keys(env).forEach((key) => {
|
|
1138
|
-
createDebug[key] = env[key];
|
|
1139
|
-
});
|
|
1140
|
-
createDebug.names = [];
|
|
1141
|
-
createDebug.skips = [];
|
|
1142
|
-
createDebug.formatters = {};
|
|
1143
|
-
function selectColor(namespace) {
|
|
1144
|
-
let hash = 0;
|
|
1145
|
-
for (let i2 = 0;i2 < namespace.length; i2++) {
|
|
1146
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i2);
|
|
1147
|
-
hash |= 0;
|
|
1148
|
-
}
|
|
1149
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
1150
|
-
}
|
|
1151
|
-
createDebug.selectColor = selectColor;
|
|
1152
|
-
function createDebug(namespace) {
|
|
1153
|
-
let prevTime;
|
|
1154
|
-
let enableOverride = null;
|
|
1155
|
-
let namespacesCache;
|
|
1156
|
-
let enabledCache;
|
|
1157
|
-
function debug(...args) {
|
|
1158
|
-
if (!debug.enabled) {
|
|
1159
|
-
return;
|
|
1160
|
-
}
|
|
1161
|
-
const self = debug;
|
|
1162
|
-
const curr = Number(new Date);
|
|
1163
|
-
const ms = curr - (prevTime || curr);
|
|
1164
|
-
self.diff = ms;
|
|
1165
|
-
self.prev = prevTime;
|
|
1166
|
-
self.curr = curr;
|
|
1167
|
-
prevTime = curr;
|
|
1168
|
-
args[0] = createDebug.coerce(args[0]);
|
|
1169
|
-
if (typeof args[0] !== "string") {
|
|
1170
|
-
args.unshift("%O");
|
|
1171
|
-
}
|
|
1172
|
-
let index = 0;
|
|
1173
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
1174
|
-
if (match === "%%") {
|
|
1175
|
-
return "%";
|
|
1176
|
-
}
|
|
1177
|
-
index++;
|
|
1178
|
-
const formatter = createDebug.formatters[format];
|
|
1179
|
-
if (typeof formatter === "function") {
|
|
1180
|
-
const val = args[index];
|
|
1181
|
-
match = formatter.call(self, val);
|
|
1182
|
-
args.splice(index, 1);
|
|
1183
|
-
index--;
|
|
1184
|
-
}
|
|
1185
|
-
return match;
|
|
1186
|
-
});
|
|
1187
|
-
createDebug.formatArgs.call(self, args);
|
|
1188
|
-
const logFn = self.log || createDebug.log;
|
|
1189
|
-
logFn.apply(self, args);
|
|
1190
|
-
}
|
|
1191
|
-
debug.namespace = namespace;
|
|
1192
|
-
debug.useColors = createDebug.useColors();
|
|
1193
|
-
debug.color = createDebug.selectColor(namespace);
|
|
1194
|
-
debug.extend = extend;
|
|
1195
|
-
debug.destroy = createDebug.destroy;
|
|
1196
|
-
Object.defineProperty(debug, "enabled", {
|
|
1197
|
-
enumerable: true,
|
|
1198
|
-
configurable: false,
|
|
1199
|
-
get: () => {
|
|
1200
|
-
if (enableOverride !== null) {
|
|
1201
|
-
return enableOverride;
|
|
1202
|
-
}
|
|
1203
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
1204
|
-
namespacesCache = createDebug.namespaces;
|
|
1205
|
-
enabledCache = createDebug.enabled(namespace);
|
|
1206
|
-
}
|
|
1207
|
-
return enabledCache;
|
|
1208
|
-
},
|
|
1209
|
-
set: (v) => {
|
|
1210
|
-
enableOverride = v;
|
|
1211
|
-
}
|
|
1212
|
-
});
|
|
1213
|
-
if (typeof createDebug.init === "function") {
|
|
1214
|
-
createDebug.init(debug);
|
|
1215
|
-
}
|
|
1216
|
-
return debug;
|
|
1217
|
-
}
|
|
1218
|
-
function extend(namespace, delimiter) {
|
|
1219
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
1220
|
-
newDebug.log = this.log;
|
|
1221
|
-
return newDebug;
|
|
1222
|
-
}
|
|
1223
|
-
function enable(namespaces) {
|
|
1224
|
-
createDebug.save(namespaces);
|
|
1225
|
-
createDebug.namespaces = namespaces;
|
|
1226
|
-
createDebug.names = [];
|
|
1227
|
-
createDebug.skips = [];
|
|
1228
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
1229
|
-
for (const ns of split) {
|
|
1230
|
-
if (ns[0] === "-") {
|
|
1231
|
-
createDebug.skips.push(ns.slice(1));
|
|
1232
|
-
} else {
|
|
1233
|
-
createDebug.names.push(ns);
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
function matchesTemplate(search, template) {
|
|
1238
|
-
let searchIndex = 0;
|
|
1239
|
-
let templateIndex = 0;
|
|
1240
|
-
let starIndex = -1;
|
|
1241
|
-
let matchIndex = 0;
|
|
1242
|
-
while (searchIndex < search.length) {
|
|
1243
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
1244
|
-
if (template[templateIndex] === "*") {
|
|
1245
|
-
starIndex = templateIndex;
|
|
1246
|
-
matchIndex = searchIndex;
|
|
1247
|
-
templateIndex++;
|
|
1248
|
-
} else {
|
|
1249
|
-
searchIndex++;
|
|
1250
|
-
templateIndex++;
|
|
1251
|
-
}
|
|
1252
|
-
} else if (starIndex !== -1) {
|
|
1253
|
-
templateIndex = starIndex + 1;
|
|
1254
|
-
matchIndex++;
|
|
1255
|
-
searchIndex = matchIndex;
|
|
1256
|
-
} else {
|
|
1257
|
-
return false;
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
1261
|
-
templateIndex++;
|
|
1262
|
-
}
|
|
1263
|
-
return templateIndex === template.length;
|
|
1264
|
-
}
|
|
1265
|
-
function disable() {
|
|
1266
|
-
const namespaces = [
|
|
1267
|
-
...createDebug.names,
|
|
1268
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
1269
|
-
].join(",");
|
|
1270
|
-
createDebug.enable("");
|
|
1271
|
-
return namespaces;
|
|
1272
|
-
}
|
|
1273
|
-
function enabled(name) {
|
|
1274
|
-
for (const skip of createDebug.skips) {
|
|
1275
|
-
if (matchesTemplate(name, skip)) {
|
|
1276
|
-
return false;
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
for (const ns of createDebug.names) {
|
|
1280
|
-
if (matchesTemplate(name, ns)) {
|
|
1281
|
-
return true;
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
return false;
|
|
1285
|
-
}
|
|
1286
|
-
function coerce(val) {
|
|
1287
|
-
if (val instanceof Error) {
|
|
1288
|
-
return val.stack || val.message;
|
|
1289
|
-
}
|
|
1290
|
-
return val;
|
|
1291
|
-
}
|
|
1292
|
-
function destroy() {
|
|
1293
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1294
|
-
}
|
|
1295
|
-
createDebug.enable(createDebug.load());
|
|
1296
|
-
return createDebug;
|
|
1297
|
-
}
|
|
1298
|
-
module.exports = setup;
|
|
1299
|
-
});
|
|
1300
|
-
|
|
1301
|
-
// node_modules/http-proxy-agent/node_modules/debug/src/browser.js
|
|
1302
|
-
var require_browser = __commonJS(function(exports, module) {
|
|
1303
|
-
exports.formatArgs = formatArgs;
|
|
1304
|
-
exports.save = save;
|
|
1305
|
-
exports.load = load;
|
|
1306
|
-
exports.useColors = useColors;
|
|
1307
|
-
exports.storage = localstorage();
|
|
1308
|
-
exports.destroy = (() => {
|
|
1309
|
-
let warned = false;
|
|
1310
|
-
return () => {
|
|
1311
|
-
if (!warned) {
|
|
1312
|
-
warned = true;
|
|
1313
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1314
|
-
}
|
|
1315
|
-
};
|
|
1316
|
-
})();
|
|
1317
|
-
exports.colors = [
|
|
1318
|
-
"#0000CC",
|
|
1319
|
-
"#0000FF",
|
|
1320
|
-
"#0033CC",
|
|
1321
|
-
"#0033FF",
|
|
1322
|
-
"#0066CC",
|
|
1323
|
-
"#0066FF",
|
|
1324
|
-
"#0099CC",
|
|
1325
|
-
"#0099FF",
|
|
1326
|
-
"#00CC00",
|
|
1327
|
-
"#00CC33",
|
|
1328
|
-
"#00CC66",
|
|
1329
|
-
"#00CC99",
|
|
1330
|
-
"#00CCCC",
|
|
1331
|
-
"#00CCFF",
|
|
1332
|
-
"#3300CC",
|
|
1333
|
-
"#3300FF",
|
|
1334
|
-
"#3333CC",
|
|
1335
|
-
"#3333FF",
|
|
1336
|
-
"#3366CC",
|
|
1337
|
-
"#3366FF",
|
|
1338
|
-
"#3399CC",
|
|
1339
|
-
"#3399FF",
|
|
1340
|
-
"#33CC00",
|
|
1341
|
-
"#33CC33",
|
|
1342
|
-
"#33CC66",
|
|
1343
|
-
"#33CC99",
|
|
1344
|
-
"#33CCCC",
|
|
1345
|
-
"#33CCFF",
|
|
1346
|
-
"#6600CC",
|
|
1347
|
-
"#6600FF",
|
|
1348
|
-
"#6633CC",
|
|
1349
|
-
"#6633FF",
|
|
1350
|
-
"#66CC00",
|
|
1351
|
-
"#66CC33",
|
|
1352
|
-
"#9900CC",
|
|
1353
|
-
"#9900FF",
|
|
1354
|
-
"#9933CC",
|
|
1355
|
-
"#9933FF",
|
|
1356
|
-
"#99CC00",
|
|
1357
|
-
"#99CC33",
|
|
1358
|
-
"#CC0000",
|
|
1359
|
-
"#CC0033",
|
|
1360
|
-
"#CC0066",
|
|
1361
|
-
"#CC0099",
|
|
1362
|
-
"#CC00CC",
|
|
1363
|
-
"#CC00FF",
|
|
1364
|
-
"#CC3300",
|
|
1365
|
-
"#CC3333",
|
|
1366
|
-
"#CC3366",
|
|
1367
|
-
"#CC3399",
|
|
1368
|
-
"#CC33CC",
|
|
1369
|
-
"#CC33FF",
|
|
1370
|
-
"#CC6600",
|
|
1371
|
-
"#CC6633",
|
|
1372
|
-
"#CC9900",
|
|
1373
|
-
"#CC9933",
|
|
1374
|
-
"#CCCC00",
|
|
1375
|
-
"#CCCC33",
|
|
1376
|
-
"#FF0000",
|
|
1377
|
-
"#FF0033",
|
|
1378
|
-
"#FF0066",
|
|
1379
|
-
"#FF0099",
|
|
1380
|
-
"#FF00CC",
|
|
1381
|
-
"#FF00FF",
|
|
1382
|
-
"#FF3300",
|
|
1383
|
-
"#FF3333",
|
|
1384
|
-
"#FF3366",
|
|
1385
|
-
"#FF3399",
|
|
1386
|
-
"#FF33CC",
|
|
1387
|
-
"#FF33FF",
|
|
1388
|
-
"#FF6600",
|
|
1389
|
-
"#FF6633",
|
|
1390
|
-
"#FF9900",
|
|
1391
|
-
"#FF9933",
|
|
1392
|
-
"#FFCC00",
|
|
1393
|
-
"#FFCC33"
|
|
1394
|
-
];
|
|
1395
|
-
function useColors() {
|
|
1396
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
1397
|
-
return true;
|
|
1398
|
-
}
|
|
1399
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
1400
|
-
return false;
|
|
1401
|
-
}
|
|
1402
|
-
let m;
|
|
1403
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
1404
|
-
}
|
|
1405
|
-
function formatArgs(args) {
|
|
1406
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
1407
|
-
if (!this.useColors) {
|
|
1408
|
-
return;
|
|
1409
|
-
}
|
|
1410
|
-
const c2 = "color: " + this.color;
|
|
1411
|
-
args.splice(1, 0, c2, "color: inherit");
|
|
1412
|
-
let index = 0;
|
|
1413
|
-
let lastC = 0;
|
|
1414
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
1415
|
-
if (match === "%%") {
|
|
1416
|
-
return;
|
|
1417
|
-
}
|
|
1418
|
-
index++;
|
|
1419
|
-
if (match === "%c") {
|
|
1420
|
-
lastC = index;
|
|
1421
|
-
}
|
|
1422
|
-
});
|
|
1423
|
-
args.splice(lastC, 0, c2);
|
|
1424
|
-
}
|
|
1425
|
-
exports.log = console.debug || console.log || (() => {});
|
|
1426
|
-
function save(namespaces) {
|
|
1427
|
-
try {
|
|
1428
|
-
if (namespaces) {
|
|
1429
|
-
exports.storage.setItem("debug", namespaces);
|
|
1430
|
-
} else {
|
|
1431
|
-
exports.storage.removeItem("debug");
|
|
1432
|
-
}
|
|
1433
|
-
} catch (error) {}
|
|
1434
|
-
}
|
|
1435
|
-
function load() {
|
|
1436
|
-
let r2;
|
|
1437
|
-
try {
|
|
1438
|
-
r2 = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
1439
|
-
} catch (error) {}
|
|
1440
|
-
if (!r2 && typeof process !== "undefined" && "env" in process) {
|
|
1441
|
-
r2 = process.env.DEBUG;
|
|
1442
|
-
}
|
|
1443
|
-
return r2;
|
|
1444
|
-
}
|
|
1445
|
-
function localstorage() {
|
|
1446
|
-
try {
|
|
1447
|
-
return localStorage;
|
|
1448
|
-
} catch (error) {}
|
|
1449
|
-
}
|
|
1450
|
-
module.exports = require_common()(exports);
|
|
1451
|
-
var { formatters } = module.exports;
|
|
1452
|
-
formatters.j = function(v) {
|
|
1453
|
-
try {
|
|
1454
|
-
return JSON.stringify(v);
|
|
1455
|
-
} catch (error) {
|
|
1456
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
1457
|
-
}
|
|
1458
|
-
};
|
|
1459
|
-
});
|
|
1460
|
-
|
|
1461
|
-
// node_modules/http-proxy-agent/node_modules/debug/src/node.js
|
|
1462
|
-
var require_node = __commonJS(function(exports, module) {
|
|
1463
|
-
var tty = __require("tty");
|
|
1464
|
-
var util = __require("util");
|
|
1465
|
-
exports.init = init;
|
|
1466
|
-
exports.log = log;
|
|
1467
|
-
exports.formatArgs = formatArgs;
|
|
1468
|
-
exports.save = save;
|
|
1469
|
-
exports.load = load;
|
|
1470
|
-
exports.useColors = useColors;
|
|
1471
|
-
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1472
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
1473
|
-
try {
|
|
1474
|
-
const supportsColor = (init_supports_color(), __toCommonJS(exports_supports_color));
|
|
1475
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
1476
|
-
exports.colors = [
|
|
1477
|
-
20,
|
|
1478
|
-
21,
|
|
1479
|
-
26,
|
|
1480
|
-
27,
|
|
1481
|
-
32,
|
|
1482
|
-
33,
|
|
1483
|
-
38,
|
|
1484
|
-
39,
|
|
1485
|
-
40,
|
|
1486
|
-
41,
|
|
1487
|
-
42,
|
|
1488
|
-
43,
|
|
1489
|
-
44,
|
|
1490
|
-
45,
|
|
1491
|
-
56,
|
|
1492
|
-
57,
|
|
1493
|
-
62,
|
|
1494
|
-
63,
|
|
1495
|
-
68,
|
|
1496
|
-
69,
|
|
1497
|
-
74,
|
|
1498
|
-
75,
|
|
1499
|
-
76,
|
|
1500
|
-
77,
|
|
1501
|
-
78,
|
|
1502
|
-
79,
|
|
1503
|
-
80,
|
|
1504
|
-
81,
|
|
1505
|
-
92,
|
|
1506
|
-
93,
|
|
1507
|
-
98,
|
|
1508
|
-
99,
|
|
1509
|
-
112,
|
|
1510
|
-
113,
|
|
1511
|
-
128,
|
|
1512
|
-
129,
|
|
1513
|
-
134,
|
|
1514
|
-
135,
|
|
1515
|
-
148,
|
|
1516
|
-
149,
|
|
1517
|
-
160,
|
|
1518
|
-
161,
|
|
1519
|
-
162,
|
|
1520
|
-
163,
|
|
1521
|
-
164,
|
|
1522
|
-
165,
|
|
1523
|
-
166,
|
|
1524
|
-
167,
|
|
1525
|
-
168,
|
|
1526
|
-
169,
|
|
1527
|
-
170,
|
|
1528
|
-
171,
|
|
1529
|
-
172,
|
|
1530
|
-
173,
|
|
1531
|
-
178,
|
|
1532
|
-
179,
|
|
1533
|
-
184,
|
|
1534
|
-
185,
|
|
1535
|
-
196,
|
|
1536
|
-
197,
|
|
1537
|
-
198,
|
|
1538
|
-
199,
|
|
1539
|
-
200,
|
|
1540
|
-
201,
|
|
1541
|
-
202,
|
|
1542
|
-
203,
|
|
1543
|
-
204,
|
|
1544
|
-
205,
|
|
1545
|
-
206,
|
|
1546
|
-
207,
|
|
1547
|
-
208,
|
|
1548
|
-
209,
|
|
1549
|
-
214,
|
|
1550
|
-
215,
|
|
1551
|
-
220,
|
|
1552
|
-
221
|
|
1553
|
-
];
|
|
1554
|
-
}
|
|
1555
|
-
} catch (error) {}
|
|
1556
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
1557
|
-
return /^debug_/i.test(key);
|
|
1558
|
-
}).reduce((obj, key) => {
|
|
1559
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k2) => {
|
|
1560
|
-
return k2.toUpperCase();
|
|
1561
|
-
});
|
|
1562
|
-
let val = process.env[key];
|
|
1563
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
1564
|
-
val = true;
|
|
1565
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
1566
|
-
val = false;
|
|
1567
|
-
} else if (val === "null") {
|
|
1568
|
-
val = null;
|
|
1569
|
-
} else {
|
|
1570
|
-
val = Number(val);
|
|
1571
|
-
}
|
|
1572
|
-
obj[prop] = val;
|
|
1573
|
-
return obj;
|
|
1574
|
-
}, {});
|
|
1575
|
-
function useColors() {
|
|
1576
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
1577
|
-
}
|
|
1578
|
-
function formatArgs(args) {
|
|
1579
|
-
const { namespace: name, useColors: useColors2 } = this;
|
|
1580
|
-
if (useColors2) {
|
|
1581
|
-
const c2 = this.color;
|
|
1582
|
-
const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);
|
|
1583
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
1584
|
-
args[0] = prefix + args[0].split(`
|
|
1585
|
-
`).join(`
|
|
1586
|
-
` + prefix);
|
|
1587
|
-
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
1588
|
-
} else {
|
|
1589
|
-
args[0] = getDate() + name + " " + args[0];
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
function getDate() {
|
|
1593
|
-
if (exports.inspectOpts.hideDate) {
|
|
1594
|
-
return "";
|
|
1595
|
-
}
|
|
1596
|
-
return new Date().toISOString() + " ";
|
|
1597
|
-
}
|
|
1598
|
-
function log(...args) {
|
|
1599
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + `
|
|
1600
|
-
`);
|
|
1601
|
-
}
|
|
1602
|
-
function save(namespaces) {
|
|
1603
|
-
if (namespaces) {
|
|
1604
|
-
process.env.DEBUG = namespaces;
|
|
1605
|
-
} else {
|
|
1606
|
-
delete process.env.DEBUG;
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
function load() {
|
|
1610
|
-
return process.env.DEBUG;
|
|
1611
|
-
}
|
|
1612
|
-
function init(debug) {
|
|
1613
|
-
debug.inspectOpts = {};
|
|
1614
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
1615
|
-
for (let i2 = 0;i2 < keys.length; i2++) {
|
|
1616
|
-
debug.inspectOpts[keys[i2]] = exports.inspectOpts[keys[i2]];
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
module.exports = require_common()(exports);
|
|
1620
|
-
var { formatters } = module.exports;
|
|
1621
|
-
formatters.o = function(v) {
|
|
1622
|
-
this.inspectOpts.colors = this.useColors;
|
|
1623
|
-
return util.inspect(v, this.inspectOpts).split(`
|
|
1624
|
-
`).map((str) => str.trim()).join(" ");
|
|
1625
|
-
};
|
|
1626
|
-
formatters.O = function(v) {
|
|
1627
|
-
this.inspectOpts.colors = this.useColors;
|
|
1628
|
-
return util.inspect(v, this.inspectOpts);
|
|
1629
|
-
};
|
|
1630
|
-
});
|
|
1631
|
-
|
|
1632
|
-
// node_modules/http-proxy-agent/node_modules/debug/src/index.js
|
|
1633
|
-
var require_src = __commonJS(function(exports, module) {
|
|
1634
|
-
if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
|
|
1635
|
-
module.exports = require_browser();
|
|
1636
|
-
} else {
|
|
1637
|
-
module.exports = require_node();
|
|
1638
|
-
}
|
|
1639
|
-
});
|
|
1640
|
-
|
|
1641
|
-
// node_modules/https-proxy-agent/node_modules/debug/node_modules/ms/index.js
|
|
1642
|
-
var require_ms2 = __commonJS(function(exports, module) {
|
|
1643
|
-
var s = 1000;
|
|
1644
|
-
var m = s * 60;
|
|
1645
|
-
var h2 = m * 60;
|
|
1646
|
-
var d2 = h2 * 24;
|
|
1647
|
-
var w = d2 * 7;
|
|
1648
|
-
var y = d2 * 365.25;
|
|
1649
|
-
module.exports = function(val, options) {
|
|
1650
|
-
options = options || {};
|
|
1651
|
-
var type = typeof val;
|
|
1652
|
-
if (type === "string" && val.length > 0) {
|
|
1653
|
-
return parse(val);
|
|
1654
|
-
} else if (type === "number" && isFinite(val)) {
|
|
1655
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
1656
|
-
}
|
|
1657
|
-
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
1658
|
-
};
|
|
1659
|
-
function parse(str) {
|
|
1660
|
-
str = String(str);
|
|
1661
|
-
if (str.length > 100) {
|
|
1662
|
-
return;
|
|
1663
|
-
}
|
|
1664
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
|
|
1665
|
-
if (!match) {
|
|
1666
|
-
return;
|
|
1667
|
-
}
|
|
1668
|
-
var n = parseFloat(match[1]);
|
|
1669
|
-
var type = (match[2] || "ms").toLowerCase();
|
|
1670
|
-
switch (type) {
|
|
1671
|
-
case "years":
|
|
1672
|
-
case "year":
|
|
1673
|
-
case "yrs":
|
|
1674
|
-
case "yr":
|
|
1675
|
-
case "y":
|
|
1676
|
-
return n * y;
|
|
1677
|
-
case "weeks":
|
|
1678
|
-
case "week":
|
|
1679
|
-
case "w":
|
|
1680
|
-
return n * w;
|
|
1681
|
-
case "days":
|
|
1682
|
-
case "day":
|
|
1683
|
-
case "d":
|
|
1684
|
-
return n * d2;
|
|
1685
|
-
case "hours":
|
|
1686
|
-
case "hour":
|
|
1687
|
-
case "hrs":
|
|
1688
|
-
case "hr":
|
|
1689
|
-
case "h":
|
|
1690
|
-
return n * h2;
|
|
1691
|
-
case "minutes":
|
|
1692
|
-
case "minute":
|
|
1693
|
-
case "mins":
|
|
1694
|
-
case "min":
|
|
1695
|
-
case "m":
|
|
1696
|
-
return n * m;
|
|
1697
|
-
case "seconds":
|
|
1698
|
-
case "second":
|
|
1699
|
-
case "secs":
|
|
1700
|
-
case "sec":
|
|
1701
|
-
case "s":
|
|
1702
|
-
return n * s;
|
|
1703
|
-
case "milliseconds":
|
|
1704
|
-
case "millisecond":
|
|
1705
|
-
case "msecs":
|
|
1706
|
-
case "msec":
|
|
1707
|
-
case "ms":
|
|
1708
|
-
return n;
|
|
1709
|
-
default:
|
|
1710
|
-
return;
|
|
1711
|
-
}
|
|
1712
|
-
}
|
|
1713
|
-
function fmtShort(ms) {
|
|
1714
|
-
var msAbs = Math.abs(ms);
|
|
1715
|
-
if (msAbs >= d2) {
|
|
1716
|
-
return Math.round(ms / d2) + "d";
|
|
1717
|
-
}
|
|
1718
|
-
if (msAbs >= h2) {
|
|
1719
|
-
return Math.round(ms / h2) + "h";
|
|
1720
|
-
}
|
|
1721
|
-
if (msAbs >= m) {
|
|
1722
|
-
return Math.round(ms / m) + "m";
|
|
1723
|
-
}
|
|
1724
|
-
if (msAbs >= s) {
|
|
1725
|
-
return Math.round(ms / s) + "s";
|
|
1726
|
-
}
|
|
1727
|
-
return ms + "ms";
|
|
1728
|
-
}
|
|
1729
|
-
function fmtLong(ms) {
|
|
1730
|
-
var msAbs = Math.abs(ms);
|
|
1731
|
-
if (msAbs >= d2) {
|
|
1732
|
-
return plural(ms, msAbs, d2, "day");
|
|
1733
|
-
}
|
|
1734
|
-
if (msAbs >= h2) {
|
|
1735
|
-
return plural(ms, msAbs, h2, "hour");
|
|
1736
|
-
}
|
|
1737
|
-
if (msAbs >= m) {
|
|
1738
|
-
return plural(ms, msAbs, m, "minute");
|
|
1739
|
-
}
|
|
1740
|
-
if (msAbs >= s) {
|
|
1741
|
-
return plural(ms, msAbs, s, "second");
|
|
1742
|
-
}
|
|
1743
|
-
return ms + " ms";
|
|
1744
|
-
}
|
|
1745
|
-
function plural(ms, msAbs, n, name) {
|
|
1746
|
-
var isPlural = msAbs >= n * 1.5;
|
|
1747
|
-
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
1748
|
-
}
|
|
1749
|
-
});
|
|
1750
|
-
|
|
1751
|
-
// node_modules/https-proxy-agent/node_modules/debug/src/common.js
|
|
1752
|
-
var require_common2 = __commonJS(function(exports, module) {
|
|
1753
|
-
function setup(env) {
|
|
1754
|
-
createDebug2.debug = createDebug2;
|
|
1755
|
-
createDebug2.default = createDebug2;
|
|
1756
|
-
createDebug2.coerce = coerce;
|
|
1757
|
-
createDebug2.disable = disable;
|
|
1758
|
-
createDebug2.enable = enable;
|
|
1759
|
-
createDebug2.enabled = enabled;
|
|
1760
|
-
createDebug2.humanize = require_ms2();
|
|
1761
|
-
createDebug2.destroy = destroy;
|
|
1762
|
-
Object.keys(env).forEach((key) => {
|
|
1763
|
-
createDebug2[key] = env[key];
|
|
1764
|
-
});
|
|
1765
|
-
createDebug2.names = [];
|
|
1766
|
-
createDebug2.skips = [];
|
|
1767
|
-
createDebug2.formatters = {};
|
|
1768
|
-
function selectColor(namespace) {
|
|
1769
|
-
let hash = 0;
|
|
1770
|
-
for (let i2 = 0;i2 < namespace.length; i2++) {
|
|
1771
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i2);
|
|
1772
|
-
hash |= 0;
|
|
1773
|
-
}
|
|
1774
|
-
return createDebug2.colors[Math.abs(hash) % createDebug2.colors.length];
|
|
1775
|
-
}
|
|
1776
|
-
createDebug2.selectColor = selectColor;
|
|
1777
|
-
function createDebug2(namespace) {
|
|
1778
|
-
let prevTime;
|
|
1779
|
-
let enableOverride = null;
|
|
1780
|
-
let namespacesCache;
|
|
1781
|
-
let enabledCache;
|
|
1782
|
-
function debug2(...args) {
|
|
1783
|
-
if (!debug2.enabled) {
|
|
1784
|
-
return;
|
|
1785
|
-
}
|
|
1786
|
-
const self = debug2;
|
|
1787
|
-
const curr = Number(new Date);
|
|
1788
|
-
const ms = curr - (prevTime || curr);
|
|
1789
|
-
self.diff = ms;
|
|
1790
|
-
self.prev = prevTime;
|
|
1791
|
-
self.curr = curr;
|
|
1792
|
-
prevTime = curr;
|
|
1793
|
-
args[0] = createDebug2.coerce(args[0]);
|
|
1794
|
-
if (typeof args[0] !== "string") {
|
|
1795
|
-
args.unshift("%O");
|
|
1796
|
-
}
|
|
1797
|
-
let index = 0;
|
|
1798
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
1799
|
-
if (match === "%%") {
|
|
1800
|
-
return "%";
|
|
1801
|
-
}
|
|
1802
|
-
index++;
|
|
1803
|
-
const formatter = createDebug2.formatters[format];
|
|
1804
|
-
if (typeof formatter === "function") {
|
|
1805
|
-
const val = args[index];
|
|
1806
|
-
match = formatter.call(self, val);
|
|
1807
|
-
args.splice(index, 1);
|
|
1808
|
-
index--;
|
|
1809
|
-
}
|
|
1810
|
-
return match;
|
|
1811
|
-
});
|
|
1812
|
-
createDebug2.formatArgs.call(self, args);
|
|
1813
|
-
const logFn = self.log || createDebug2.log;
|
|
1814
|
-
logFn.apply(self, args);
|
|
1815
|
-
}
|
|
1816
|
-
debug2.namespace = namespace;
|
|
1817
|
-
debug2.useColors = createDebug2.useColors();
|
|
1818
|
-
debug2.color = createDebug2.selectColor(namespace);
|
|
1819
|
-
debug2.extend = extend;
|
|
1820
|
-
debug2.destroy = createDebug2.destroy;
|
|
1821
|
-
Object.defineProperty(debug2, "enabled", {
|
|
1822
|
-
enumerable: true,
|
|
1823
|
-
configurable: false,
|
|
1824
|
-
get: () => {
|
|
1825
|
-
if (enableOverride !== null) {
|
|
1826
|
-
return enableOverride;
|
|
1827
|
-
}
|
|
1828
|
-
if (namespacesCache !== createDebug2.namespaces) {
|
|
1829
|
-
namespacesCache = createDebug2.namespaces;
|
|
1830
|
-
enabledCache = createDebug2.enabled(namespace);
|
|
1831
|
-
}
|
|
1832
|
-
return enabledCache;
|
|
1833
|
-
},
|
|
1834
|
-
set: (v) => {
|
|
1835
|
-
enableOverride = v;
|
|
1836
|
-
}
|
|
1837
|
-
});
|
|
1838
|
-
if (typeof createDebug2.init === "function") {
|
|
1839
|
-
createDebug2.init(debug2);
|
|
1840
|
-
}
|
|
1841
|
-
return debug2;
|
|
1842
|
-
}
|
|
1843
|
-
function extend(namespace, delimiter) {
|
|
1844
|
-
const newDebug = createDebug2(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
1845
|
-
newDebug.log = this.log;
|
|
1846
|
-
return newDebug;
|
|
1847
|
-
}
|
|
1848
|
-
function enable(namespaces) {
|
|
1849
|
-
createDebug2.save(namespaces);
|
|
1850
|
-
createDebug2.namespaces = namespaces;
|
|
1851
|
-
createDebug2.names = [];
|
|
1852
|
-
createDebug2.skips = [];
|
|
1853
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
1854
|
-
for (const ns of split) {
|
|
1855
|
-
if (ns[0] === "-") {
|
|
1856
|
-
createDebug2.skips.push(ns.slice(1));
|
|
1857
|
-
} else {
|
|
1858
|
-
createDebug2.names.push(ns);
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
function matchesTemplate(search, template) {
|
|
1863
|
-
let searchIndex = 0;
|
|
1864
|
-
let templateIndex = 0;
|
|
1865
|
-
let starIndex = -1;
|
|
1866
|
-
let matchIndex = 0;
|
|
1867
|
-
while (searchIndex < search.length) {
|
|
1868
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
1869
|
-
if (template[templateIndex] === "*") {
|
|
1870
|
-
starIndex = templateIndex;
|
|
1871
|
-
matchIndex = searchIndex;
|
|
1872
|
-
templateIndex++;
|
|
1873
|
-
} else {
|
|
1874
|
-
searchIndex++;
|
|
1875
|
-
templateIndex++;
|
|
1876
|
-
}
|
|
1877
|
-
} else if (starIndex !== -1) {
|
|
1878
|
-
templateIndex = starIndex + 1;
|
|
1879
|
-
matchIndex++;
|
|
1880
|
-
searchIndex = matchIndex;
|
|
1881
|
-
} else {
|
|
1882
|
-
return false;
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
1886
|
-
templateIndex++;
|
|
1887
|
-
}
|
|
1888
|
-
return templateIndex === template.length;
|
|
1889
|
-
}
|
|
1890
|
-
function disable() {
|
|
1891
|
-
const namespaces = [
|
|
1892
|
-
...createDebug2.names,
|
|
1893
|
-
...createDebug2.skips.map((namespace) => "-" + namespace)
|
|
1894
|
-
].join(",");
|
|
1895
|
-
createDebug2.enable("");
|
|
1896
|
-
return namespaces;
|
|
1897
|
-
}
|
|
1898
|
-
function enabled(name) {
|
|
1899
|
-
for (const skip of createDebug2.skips) {
|
|
1900
|
-
if (matchesTemplate(name, skip)) {
|
|
1901
|
-
return false;
|
|
1902
|
-
}
|
|
1903
|
-
}
|
|
1904
|
-
for (const ns of createDebug2.names) {
|
|
1905
|
-
if (matchesTemplate(name, ns)) {
|
|
1906
|
-
return true;
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
return false;
|
|
1910
|
-
}
|
|
1911
|
-
function coerce(val) {
|
|
1912
|
-
if (val instanceof Error) {
|
|
1913
|
-
return val.stack || val.message;
|
|
1914
|
-
}
|
|
1915
|
-
return val;
|
|
1916
|
-
}
|
|
1917
|
-
function destroy() {
|
|
1918
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1919
|
-
}
|
|
1920
|
-
createDebug2.enable(createDebug2.load());
|
|
1921
|
-
return createDebug2;
|
|
1922
|
-
}
|
|
1923
|
-
module.exports = setup;
|
|
1924
|
-
});
|
|
1925
|
-
|
|
1926
|
-
// node_modules/https-proxy-agent/node_modules/debug/src/browser.js
|
|
1927
|
-
var require_browser2 = __commonJS(function(exports, module) {
|
|
1928
|
-
exports.formatArgs = formatArgs;
|
|
1929
|
-
exports.save = save;
|
|
1930
|
-
exports.load = load;
|
|
1931
|
-
exports.useColors = useColors;
|
|
1932
|
-
exports.storage = localstorage();
|
|
1933
|
-
exports.destroy = (() => {
|
|
1934
|
-
let warned = false;
|
|
1935
|
-
return () => {
|
|
1936
|
-
if (!warned) {
|
|
1937
|
-
warned = true;
|
|
1938
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
1939
|
-
}
|
|
1940
|
-
};
|
|
1941
|
-
})();
|
|
1942
|
-
exports.colors = [
|
|
1943
|
-
"#0000CC",
|
|
1944
|
-
"#0000FF",
|
|
1945
|
-
"#0033CC",
|
|
1946
|
-
"#0033FF",
|
|
1947
|
-
"#0066CC",
|
|
1948
|
-
"#0066FF",
|
|
1949
|
-
"#0099CC",
|
|
1950
|
-
"#0099FF",
|
|
1951
|
-
"#00CC00",
|
|
1952
|
-
"#00CC33",
|
|
1953
|
-
"#00CC66",
|
|
1954
|
-
"#00CC99",
|
|
1955
|
-
"#00CCCC",
|
|
1956
|
-
"#00CCFF",
|
|
1957
|
-
"#3300CC",
|
|
1958
|
-
"#3300FF",
|
|
1959
|
-
"#3333CC",
|
|
1960
|
-
"#3333FF",
|
|
1961
|
-
"#3366CC",
|
|
1962
|
-
"#3366FF",
|
|
1963
|
-
"#3399CC",
|
|
1964
|
-
"#3399FF",
|
|
1965
|
-
"#33CC00",
|
|
1966
|
-
"#33CC33",
|
|
1967
|
-
"#33CC66",
|
|
1968
|
-
"#33CC99",
|
|
1969
|
-
"#33CCCC",
|
|
1970
|
-
"#33CCFF",
|
|
1971
|
-
"#6600CC",
|
|
1972
|
-
"#6600FF",
|
|
1973
|
-
"#6633CC",
|
|
1974
|
-
"#6633FF",
|
|
1975
|
-
"#66CC00",
|
|
1976
|
-
"#66CC33",
|
|
1977
|
-
"#9900CC",
|
|
1978
|
-
"#9900FF",
|
|
1979
|
-
"#9933CC",
|
|
1980
|
-
"#9933FF",
|
|
1981
|
-
"#99CC00",
|
|
1982
|
-
"#99CC33",
|
|
1983
|
-
"#CC0000",
|
|
1984
|
-
"#CC0033",
|
|
1985
|
-
"#CC0066",
|
|
1986
|
-
"#CC0099",
|
|
1987
|
-
"#CC00CC",
|
|
1988
|
-
"#CC00FF",
|
|
1989
|
-
"#CC3300",
|
|
1990
|
-
"#CC3333",
|
|
1991
|
-
"#CC3366",
|
|
1992
|
-
"#CC3399",
|
|
1993
|
-
"#CC33CC",
|
|
1994
|
-
"#CC33FF",
|
|
1995
|
-
"#CC6600",
|
|
1996
|
-
"#CC6633",
|
|
1997
|
-
"#CC9900",
|
|
1998
|
-
"#CC9933",
|
|
1999
|
-
"#CCCC00",
|
|
2000
|
-
"#CCCC33",
|
|
2001
|
-
"#FF0000",
|
|
2002
|
-
"#FF0033",
|
|
2003
|
-
"#FF0066",
|
|
2004
|
-
"#FF0099",
|
|
2005
|
-
"#FF00CC",
|
|
2006
|
-
"#FF00FF",
|
|
2007
|
-
"#FF3300",
|
|
2008
|
-
"#FF3333",
|
|
2009
|
-
"#FF3366",
|
|
2010
|
-
"#FF3399",
|
|
2011
|
-
"#FF33CC",
|
|
2012
|
-
"#FF33FF",
|
|
2013
|
-
"#FF6600",
|
|
2014
|
-
"#FF6633",
|
|
2015
|
-
"#FF9900",
|
|
2016
|
-
"#FF9933",
|
|
2017
|
-
"#FFCC00",
|
|
2018
|
-
"#FFCC33"
|
|
2019
|
-
];
|
|
2020
|
-
function useColors() {
|
|
2021
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
2022
|
-
return true;
|
|
2023
|
-
}
|
|
2024
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
2025
|
-
return false;
|
|
2026
|
-
}
|
|
2027
|
-
let m;
|
|
2028
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
2029
|
-
}
|
|
2030
|
-
function formatArgs(args) {
|
|
2031
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
2032
|
-
if (!this.useColors) {
|
|
2033
|
-
return;
|
|
2034
|
-
}
|
|
2035
|
-
const c2 = "color: " + this.color;
|
|
2036
|
-
args.splice(1, 0, c2, "color: inherit");
|
|
2037
|
-
let index = 0;
|
|
2038
|
-
let lastC = 0;
|
|
2039
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
2040
|
-
if (match === "%%") {
|
|
2041
|
-
return;
|
|
2042
|
-
}
|
|
2043
|
-
index++;
|
|
2044
|
-
if (match === "%c") {
|
|
2045
|
-
lastC = index;
|
|
2046
|
-
}
|
|
2047
|
-
});
|
|
2048
|
-
args.splice(lastC, 0, c2);
|
|
2049
|
-
}
|
|
2050
|
-
exports.log = console.debug || console.log || (() => {});
|
|
2051
|
-
function save(namespaces) {
|
|
2052
|
-
try {
|
|
2053
|
-
if (namespaces) {
|
|
2054
|
-
exports.storage.setItem("debug", namespaces);
|
|
2055
|
-
} else {
|
|
2056
|
-
exports.storage.removeItem("debug");
|
|
2057
|
-
}
|
|
2058
|
-
} catch (error) {}
|
|
2059
|
-
}
|
|
2060
|
-
function load() {
|
|
2061
|
-
let r2;
|
|
2062
|
-
try {
|
|
2063
|
-
r2 = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
2064
|
-
} catch (error) {}
|
|
2065
|
-
if (!r2 && typeof process !== "undefined" && "env" in process) {
|
|
2066
|
-
r2 = process.env.DEBUG;
|
|
2067
|
-
}
|
|
2068
|
-
return r2;
|
|
2069
|
-
}
|
|
2070
|
-
function localstorage() {
|
|
2071
|
-
try {
|
|
2072
|
-
return localStorage;
|
|
2073
|
-
} catch (error) {}
|
|
2074
|
-
}
|
|
2075
|
-
module.exports = require_common2()(exports);
|
|
2076
|
-
var { formatters } = module.exports;
|
|
2077
|
-
formatters.j = function(v) {
|
|
2078
|
-
try {
|
|
2079
|
-
return JSON.stringify(v);
|
|
2080
|
-
} catch (error) {
|
|
2081
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
2082
|
-
}
|
|
2083
|
-
};
|
|
2084
|
-
});
|
|
2085
|
-
|
|
2086
|
-
// node_modules/https-proxy-agent/node_modules/debug/src/node.js
|
|
2087
|
-
var require_node2 = __commonJS(function(exports, module) {
|
|
2088
|
-
var tty = __require("tty");
|
|
2089
|
-
var util = __require("util");
|
|
2090
|
-
exports.init = init;
|
|
2091
|
-
exports.log = log;
|
|
2092
|
-
exports.formatArgs = formatArgs;
|
|
2093
|
-
exports.save = save;
|
|
2094
|
-
exports.load = load;
|
|
2095
|
-
exports.useColors = useColors;
|
|
2096
|
-
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
2097
|
-
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
2098
|
-
try {
|
|
2099
|
-
const supportsColor = (init_supports_color(), __toCommonJS(exports_supports_color));
|
|
2100
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2101
|
-
exports.colors = [
|
|
2102
|
-
20,
|
|
2103
|
-
21,
|
|
2104
|
-
26,
|
|
2105
|
-
27,
|
|
2106
|
-
32,
|
|
2107
|
-
33,
|
|
2108
|
-
38,
|
|
2109
|
-
39,
|
|
2110
|
-
40,
|
|
2111
|
-
41,
|
|
2112
|
-
42,
|
|
2113
|
-
43,
|
|
2114
|
-
44,
|
|
2115
|
-
45,
|
|
2116
|
-
56,
|
|
2117
|
-
57,
|
|
2118
|
-
62,
|
|
2119
|
-
63,
|
|
2120
|
-
68,
|
|
2121
|
-
69,
|
|
2122
|
-
74,
|
|
2123
|
-
75,
|
|
2124
|
-
76,
|
|
2125
|
-
77,
|
|
2126
|
-
78,
|
|
2127
|
-
79,
|
|
2128
|
-
80,
|
|
2129
|
-
81,
|
|
2130
|
-
92,
|
|
2131
|
-
93,
|
|
2132
|
-
98,
|
|
2133
|
-
99,
|
|
2134
|
-
112,
|
|
2135
|
-
113,
|
|
2136
|
-
128,
|
|
2137
|
-
129,
|
|
2138
|
-
134,
|
|
2139
|
-
135,
|
|
2140
|
-
148,
|
|
2141
|
-
149,
|
|
2142
|
-
160,
|
|
2143
|
-
161,
|
|
2144
|
-
162,
|
|
2145
|
-
163,
|
|
2146
|
-
164,
|
|
2147
|
-
165,
|
|
2148
|
-
166,
|
|
2149
|
-
167,
|
|
2150
|
-
168,
|
|
2151
|
-
169,
|
|
2152
|
-
170,
|
|
2153
|
-
171,
|
|
2154
|
-
172,
|
|
2155
|
-
173,
|
|
2156
|
-
178,
|
|
2157
|
-
179,
|
|
2158
|
-
184,
|
|
2159
|
-
185,
|
|
2160
|
-
196,
|
|
2161
|
-
197,
|
|
2162
|
-
198,
|
|
2163
|
-
199,
|
|
2164
|
-
200,
|
|
2165
|
-
201,
|
|
2166
|
-
202,
|
|
2167
|
-
203,
|
|
2168
|
-
204,
|
|
2169
|
-
205,
|
|
2170
|
-
206,
|
|
2171
|
-
207,
|
|
2172
|
-
208,
|
|
2173
|
-
209,
|
|
2174
|
-
214,
|
|
2175
|
-
215,
|
|
2176
|
-
220,
|
|
2177
|
-
221
|
|
2178
|
-
];
|
|
2179
|
-
}
|
|
2180
|
-
} catch (error) {}
|
|
2181
|
-
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
2182
|
-
return /^debug_/i.test(key);
|
|
2183
|
-
}).reduce((obj, key) => {
|
|
2184
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k2) => {
|
|
2185
|
-
return k2.toUpperCase();
|
|
2186
|
-
});
|
|
2187
|
-
let val = process.env[key];
|
|
2188
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
2189
|
-
val = true;
|
|
2190
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
2191
|
-
val = false;
|
|
2192
|
-
} else if (val === "null") {
|
|
2193
|
-
val = null;
|
|
2194
|
-
} else {
|
|
2195
|
-
val = Number(val);
|
|
2196
|
-
}
|
|
2197
|
-
obj[prop] = val;
|
|
2198
|
-
return obj;
|
|
2199
|
-
}, {});
|
|
2200
|
-
function useColors() {
|
|
2201
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
2202
|
-
}
|
|
2203
|
-
function formatArgs(args) {
|
|
2204
|
-
const { namespace: name, useColors: useColors2 } = this;
|
|
2205
|
-
if (useColors2) {
|
|
2206
|
-
const c2 = this.color;
|
|
2207
|
-
const colorCode = "\x1B[3" + (c2 < 8 ? c2 : "8;5;" + c2);
|
|
2208
|
-
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
2209
|
-
args[0] = prefix + args[0].split(`
|
|
2210
|
-
`).join(`
|
|
2211
|
-
` + prefix);
|
|
2212
|
-
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
2213
|
-
} else {
|
|
2214
|
-
args[0] = getDate() + name + " " + args[0];
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
function getDate() {
|
|
2218
|
-
if (exports.inspectOpts.hideDate) {
|
|
2219
|
-
return "";
|
|
2220
|
-
}
|
|
2221
|
-
return new Date().toISOString() + " ";
|
|
2222
|
-
}
|
|
2223
|
-
function log(...args) {
|
|
2224
|
-
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + `
|
|
2225
|
-
`);
|
|
2226
|
-
}
|
|
2227
|
-
function save(namespaces) {
|
|
2228
|
-
if (namespaces) {
|
|
2229
|
-
process.env.DEBUG = namespaces;
|
|
2230
|
-
} else {
|
|
2231
|
-
delete process.env.DEBUG;
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
function load() {
|
|
2235
|
-
return process.env.DEBUG;
|
|
2236
|
-
}
|
|
2237
|
-
function init(debug2) {
|
|
2238
|
-
debug2.inspectOpts = {};
|
|
2239
|
-
const keys = Object.keys(exports.inspectOpts);
|
|
2240
|
-
for (let i2 = 0;i2 < keys.length; i2++) {
|
|
2241
|
-
debug2.inspectOpts[keys[i2]] = exports.inspectOpts[keys[i2]];
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
module.exports = require_common2()(exports);
|
|
2245
|
-
var { formatters } = module.exports;
|
|
2246
|
-
formatters.o = function(v) {
|
|
2247
|
-
this.inspectOpts.colors = this.useColors;
|
|
2248
|
-
return util.inspect(v, this.inspectOpts).split(`
|
|
2249
|
-
`).map((str) => str.trim()).join(" ");
|
|
2250
|
-
};
|
|
2251
|
-
formatters.O = function(v) {
|
|
2252
|
-
this.inspectOpts.colors = this.useColors;
|
|
2253
|
-
return util.inspect(v, this.inspectOpts);
|
|
2254
|
-
};
|
|
2255
|
-
});
|
|
2256
|
-
|
|
2257
|
-
// node_modules/https-proxy-agent/node_modules/debug/src/index.js
|
|
2258
|
-
var require_src2 = __commonJS(function(exports, module) {
|
|
2259
|
-
if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
|
|
2260
|
-
module.exports = require_browser2();
|
|
2261
|
-
} else {
|
|
2262
|
-
module.exports = require_node2();
|
|
2263
|
-
}
|
|
2264
|
-
});
|
|
2265
|
-
|
|
2266
1014
|
// node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js
|
|
2267
1015
|
var { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require_client2();
|
|
2268
1016
|
var { resolveEventStreamConfig, getEventStreamPlugin } = require_dist_cjs4();
|
|
@@ -5793,14 +4541,14 @@ function omit(obj, ...keys) {
|
|
|
5793
4541
|
}
|
|
5794
4542
|
|
|
5795
4543
|
// node_modules/https-proxy-agent/dist/index.js
|
|
5796
|
-
var import_debug3 = __toESM(
|
|
4544
|
+
var import_debug3 = __toESM(require_src(), 1);
|
|
5797
4545
|
import * as net3 from "net";
|
|
5798
4546
|
import * as tls2 from "tls";
|
|
5799
4547
|
import assert from "assert";
|
|
5800
4548
|
import { URL as URL3 } from "url";
|
|
5801
4549
|
|
|
5802
4550
|
// node_modules/https-proxy-agent/dist/parse-proxy-response.js
|
|
5803
|
-
var import_debug2 = __toESM(
|
|
4551
|
+
var import_debug2 = __toESM(require_src(), 1);
|
|
5804
4552
|
var debug2 = import_debug2.default("https-proxy-agent:parse-proxy-response");
|
|
5805
4553
|
function parseProxyResponse(socket) {
|
|
5806
4554
|
return new Promise((resolve, reject) => {
|