wherdr 0.0.0-stage → 1.2.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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/AgentView.DE2GDt4O.css +1 -0
- package/.output/public/_nuxt/BDI8xNSb.js +2 -0
- package/.output/public/_nuxt/BDNMzG2s.js +1 -0
- package/.output/public/_nuxt/BIA9pZvC.js +1 -0
- package/.output/public/_nuxt/Bd17z0YL.js +2 -0
- package/.output/public/_nuxt/BevNMnQ2.js +83 -0
- package/.output/public/_nuxt/BpQH8Ho1.js +1 -0
- package/.output/public/_nuxt/Bta8at9w.js +6 -0
- package/.output/public/_nuxt/CA9mI3eg.js +23 -0
- package/.output/public/_nuxt/CWwyK2XK.js +2 -0
- package/.output/public/_nuxt/CXG-cOdh.js +1 -0
- package/.output/public/_nuxt/Ci8N4mWR.js +1 -0
- package/.output/public/_nuxt/CjKICX3g.js +17 -0
- package/.output/public/_nuxt/D903WmCE.js +65 -0
- package/.output/public/_nuxt/DBu2-cEy.js +30 -0
- package/.output/public/_nuxt/DJE_XMLO.js +1 -0
- package/.output/public/_nuxt/DLLQgP0d.js +1 -0
- package/.output/public/_nuxt/DxO1TBoK.js +1 -0
- package/.output/public/_nuxt/SiL1FJ5s.js +3 -0
- package/.output/public/_nuxt/archivo-latin-ext-wght-normal.C4zznr8T.woff2 +0 -0
- package/.output/public/_nuxt/archivo-latin-wght-normal.E0tuGl4L.woff2 +0 -0
- package/.output/public/_nuxt/archivo-vietnamese-wght-normal.XAtsl5Q_.woff2 +0 -0
- package/.output/public/_nuxt/bLP7Jj-b.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/211609c0-be04-46c5-a6b0-566bc0c4a3dd.json +1 -0
- package/.output/public/_nuxt/e5N4AqCN.js +93 -0
- package/.output/public/_nuxt/entry.SHBiCXBL.css +2 -0
- package/.output/public/_nuxt/error-404.Bb87HomL.css +1 -0
- package/.output/public/_nuxt/error-500.Bwd7zAaE.css +1 -0
- package/.output/public/_nuxt/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/.output/public/_nuxt/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/.output/public/_nuxt/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/.output/public/_nuxt/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/.output/public/_nuxt/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/.output/public/_nuxt/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/.output/public/_nuxt/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-cyrillic-wght-normal.D73BlboJ.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-greek-wght-normal.Bw9x6K1M.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-latin-ext-wght-normal.DBQx-q_a.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-latin-wght-normal.B9CIFXIH.woff2 +0 -0
- package/.output/public/_nuxt/jetbrains-mono-vietnamese-wght-normal.Bt-aOZkq.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-awesome.DQ3_iAfa.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-codicons.CtEsfSAf.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-devicons.ZMSFX1sW.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-extension.Dai_ky39.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-material-1.BdvqkCqW.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-material-2.C_flbBWO.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-material-3.8xz7iX-Y.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-material-4.CO_PudDR.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-octicons.Hl4VEx8m.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-nerd-powerline.B_kAMxXr.woff2 +0 -0
- package/.output/public/_nuxt/wherdr-symbols.C1LsPKmg.woff2 +0 -0
- package/.output/public/_nuxt/yzABg5xl.js +1 -0
- package/.output/public/manifest-en.webmanifest +18 -0
- package/.output/public/manifest.webmanifest +18 -0
- package/.output/public/sw.js +99 -0
- package/.output/server/chunks/_/awake.mjs +170 -0
- package/.output/server/chunks/_/branding.mjs +28 -0
- package/.output/server/chunks/_/changes.mjs +199 -0
- package/.output/server/chunks/_/error-500.mjs +20 -0
- package/.output/server/chunks/_/machineOrder.mjs +40 -0
- package/.output/server/chunks/_/onboarding.mjs +26 -0
- package/.output/server/chunks/_/phone.mjs +343 -0
- package/.output/server/chunks/_/plugins.mjs +248 -0
- package/.output/server/chunks/_/projectBoard.mjs +275 -0
- package/.output/server/chunks/_/projectsActions.mjs +143 -0
- package/.output/server/chunks/_/projectsPlugin.mjs +56 -0
- package/.output/server/chunks/_/restart.mjs +459 -0
- package/.output/server/chunks/_/reveal.mjs +137 -0
- package/.output/server/chunks/_/worktrees.mjs +74 -0
- package/.output/server/chunks/_/ws.mjs +57 -0
- package/.output/server/chunks/nitro/nitro.mjs +20691 -0
- package/.output/server/chunks/raw/apple-touch-icon.mjs +7 -0
- package/.output/server/chunks/raw/build-nerd-font.mjs +7 -0
- package/.output/server/chunks/raw/build-terminal-font.mjs +7 -0
- package/.output/server/chunks/raw/check-leaks.mjs +5 -0
- package/.output/server/chunks/raw/dev.wherdr.open.mjs +7 -0
- package/.output/server/chunks/raw/docker-entrypoint.mjs +7 -0
- package/.output/server/chunks/raw/favicon-32.mjs +7 -0
- package/.output/server/chunks/raw/favicon.mjs +7 -0
- package/.output/server/chunks/raw/herdr-plugin.mjs +7 -0
- package/.output/server/chunks/raw/icon-192.mjs +7 -0
- package/.output/server/chunks/raw/icon-512-maskable.mjs +7 -0
- package/.output/server/chunks/raw/icon-512.mjs +7 -0
- package/.output/server/chunks/raw/icon-maskable.mjs +7 -0
- package/.output/server/chunks/raw/icon.mjs +7 -0
- package/.output/server/chunks/raw/install-claude-statusline.mjs +7 -0
- package/.output/server/chunks/raw/install-host-open.mjs +7 -0
- package/.output/server/chunks/raw/pack-output.mjs +5 -0
- package/.output/server/chunks/raw/reveal.mjs +7 -0
- package/.output/server/chunks/raw/wherdr-open.mjs +7 -0
- package/.output/server/chunks/routes/api/_..._.mjs +30 -0
- package/.output/server/chunks/routes/api/agents.post.mjs +30 -0
- package/.output/server/chunks/routes/api/ask-tab.post.mjs +49 -0
- package/.output/server/chunks/routes/api/attach.post.mjs +35 -0
- package/.output/server/chunks/routes/api/auth/disable.post.mjs +30 -0
- package/.output/server/chunks/routes/api/auth/lock-all.post.mjs +30 -0
- package/.output/server/chunks/routes/api/auth/lock.post.mjs +30 -0
- package/.output/server/chunks/routes/api/auth/login/options.post.mjs +30 -0
- package/.output/server/chunks/routes/api/auth/login/verify.post.mjs +30 -0
- package/.output/server/chunks/routes/api/auth/max-session.post.mjs +30 -0
- package/.output/server/chunks/routes/api/auth/register/options.post.mjs +30 -0
- package/.output/server/chunks/routes/api/auth/register/verify.post.mjs +30 -0
- package/.output/server/chunks/routes/api/auth/status.get.mjs +33 -0
- package/.output/server/chunks/routes/api/changes.get.mjs +38 -0
- package/.output/server/chunks/routes/api/chat/image.get.mjs +40 -0
- package/.output/server/chunks/routes/api/chat.get.mjs +93 -0
- package/.output/server/chunks/routes/api/choose.post.mjs +135 -0
- package/.output/server/chunks/routes/api/claude-statusline.post.mjs +35 -0
- package/.output/server/chunks/routes/api/close/status.get.mjs +36 -0
- package/.output/server/chunks/routes/api/close.post.mjs +37 -0
- package/.output/server/chunks/routes/api/codex-update.post.mjs +41 -0
- package/.output/server/chunks/routes/api/commands.get.mjs +42 -0
- package/.output/server/chunks/routes/api/config.get.mjs +86 -0
- package/.output/server/chunks/routes/api/dirs.get.mjs +33 -0
- package/.output/server/chunks/routes/api/dismiss.post.mjs +33 -0
- package/.output/server/chunks/routes/api/effort.post.mjs +36 -0
- package/.output/server/chunks/routes/api/efforts.get.mjs +37 -0
- package/.output/server/chunks/routes/api/file.post.mjs +34 -0
- package/.output/server/chunks/routes/api/gitroot.get.mjs +37 -0
- package/.output/server/chunks/routes/api/index.get.mjs +36 -0
- package/.output/server/chunks/routes/api/input.post.mjs +43 -0
- package/.output/server/chunks/routes/api/interrupt.post.mjs +48 -0
- package/.output/server/chunks/routes/api/isgit.get.mjs +37 -0
- package/.output/server/chunks/routes/api/machine/awake.get.mjs +39 -0
- package/.output/server/chunks/routes/api/machine/awake.post.mjs +40 -0
- package/.output/server/chunks/routes/api/machine/order.get.mjs +31 -0
- package/.output/server/chunks/routes/api/machine/order.post.mjs +36 -0
- package/.output/server/chunks/routes/api/machine/rename.post.mjs +39 -0
- package/.output/server/chunks/routes/api/menu.post.mjs +76 -0
- package/.output/server/chunks/routes/api/model.post.mjs +36 -0
- package/.output/server/chunks/routes/api/models.get.mjs +35 -0
- package/.output/server/chunks/routes/api/nav.post.mjs +58 -0
- package/.output/server/chunks/routes/api/onboarding.get.mjs +31 -0
- package/.output/server/chunks/routes/api/onboarding.post.mjs +34 -0
- package/.output/server/chunks/routes/api/phone.get.mjs +38 -0
- package/.output/server/chunks/routes/api/phone.post.mjs +38 -0
- package/.output/server/chunks/routes/api/plugins/actions.get.mjs +36 -0
- package/.output/server/chunks/routes/api/plugins/invoke.post.mjs +33 -0
- package/.output/server/chunks/routes/api/plugins/profiles.get.mjs +35 -0
- package/.output/server/chunks/routes/api/plugins/projects.get.mjs +37 -0
- package/.output/server/chunks/routes/api/plugins/projects.post.mjs +37 -0
- package/.output/server/chunks/routes/api/plugins/thread-limits.get.mjs +30 -0
- package/.output/server/chunks/routes/api/plugins/thread-limits.post.mjs +40 -0
- package/.output/server/chunks/routes/api/project/report.get.mjs +36 -0
- package/.output/server/chunks/routes/api/prompt.post.mjs +87 -0
- package/.output/server/chunks/routes/api/push/quiet.post.mjs +49 -0
- package/.output/server/chunks/routes/api/push/subscribe.post.mjs +51 -0
- package/.output/server/chunks/routes/api/push/test.post.mjs +32 -0
- package/.output/server/chunks/routes/api/push/unsubscribe.post.mjs +34 -0
- package/.output/server/chunks/routes/api/quotas.get.mjs +30 -0
- package/.output/server/chunks/routes/api/rename.post.mjs +36 -0
- package/.output/server/chunks/routes/api/requeue.post.mjs +34 -0
- package/.output/server/chunks/routes/api/restart.get.mjs +38 -0
- package/.output/server/chunks/routes/api/restart.post.mjs +39 -0
- package/.output/server/chunks/routes/api/reveal.post.mjs +31 -0
- package/.output/server/chunks/routes/api/screen-key.post.mjs +41 -0
- package/.output/server/chunks/routes/api/screen.get.mjs +76 -0
- package/.output/server/chunks/routes/api/search.get.mjs +76 -0
- package/.output/server/chunks/routes/api/seen.post.mjs +33 -0
- package/.output/server/chunks/routes/api/sessions.get.mjs +33 -0
- package/.output/server/chunks/routes/api/sessions.post.mjs +33 -0
- package/.output/server/chunks/routes/api/space.post.mjs +258 -0
- package/.output/server/chunks/routes/api/state.get.mjs +30 -0
- package/.output/server/chunks/routes/api/unqueue.post.mjs +35 -0
- package/.output/server/chunks/routes/api/update.get.mjs +78 -0
- package/.output/server/chunks/routes/api/upload.post.mjs +33 -0
- package/.output/server/chunks/routes/api/worktrees/remove.post.mjs +34 -0
- package/.output/server/chunks/routes/api/worktrees.get.mjs +31 -0
- package/.output/server/chunks/routes/favicon.ico.get.mjs +31 -0
- package/.output/server/chunks/routes/icons/_name_.get.mjs +31 -0
- package/.output/server/chunks/routes/renderer.mjs +358 -0
- package/.output/server/chunks/routes/uploads/_...name_.get.mjs +39 -0
- package/.output/server/chunks/routes/ws/_..._.mjs +32 -0
- package/.output/server/chunks/routes/ws/events.mjs +57 -0
- package/.output/server/chunks/routes/ws/mirror.mjs +157 -0
- package/.output/server/chunks/routes/ws/term.mjs +151 -0
- package/.output/server/chunks/virtual/_raw-helpers.mjs +12 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/precomputed.mjs +4 -0
- package/.output/server/index.mjs +26 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14616 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@hexagon/base64/package.json +73 -0
- package/.output/server/node_modules/@hexagon/base64/src/base64.js +190 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/esm/cbor/cbor.js +440 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/esm/cbor/cbor_internal.js +111 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/esm/index.js +1 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/esm/package.json +3 -0
- package/.output/server/node_modules/@levischuck/tiny-cbor/package.json +25 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/attestation.js +34 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/index.js +3 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/key_description.js +512 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/nonstandard.js +103 -0
- package/.output/server/node_modules/@peculiar/asn1-android/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-android/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-android/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-android/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-android/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-android/package.json +64 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attribute.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attributes/counter_signature.js +13 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attributes/index.js +8 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attributes/message_digest.js +8 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/attributes/signing_time.js +13 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/certificate_choices.js +64 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/content_info.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/encapsulated_content_info.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/encrypted_content_info.js +56 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/enveloped_data.js +60 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/index.js +24 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/issuer_and_serial_number.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/kek_recipient_info.js +53 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/key_agree_recipient_info.js +167 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/key_trans_recipient_info.js +51 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/object_identifiers.js +10 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/originator_info.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/other_key_attribute.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/password_recipient_info.js +32 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/recipient_info.js +75 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/recipient_infos.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/revocation_info_choice.js +54 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/signed_data.js +64 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/signer_identifier.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/signer_info.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/build/cjs/types.js +51 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-cms/package.json +65 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/build/cjs/attributes.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/build/cjs/certification_request.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/build/cjs/certification_request_info.js +34 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/build/cjs/index.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-csr/package.json +65 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/algorithms.js +14 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/ec_parameters.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/ec_private_key.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/ec_signature_value.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/index.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/object_identifiers.js +26 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/cjs/rfc3279.js +95 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/algorithms.js +10 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/ec_parameters.js +24 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/ec_private_key.js +32 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/ec_signature_value.js +21 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/index.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/object_identifiers.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/build/es2015/rfc3279.js +90 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-ecc/package.json +66 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/attribute.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/authenticated_safe.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/cert_bag.js +26 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/crl_bag.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/index.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/key_bag.js +12 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/pkcs8_shrouded_key_bag.js +12 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/secret_bag.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/bags/types.js +11 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/index.js +10 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/mac_data.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/object_identifiers.js +14 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/pfx.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/build/cjs/safe_bag.js +45 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-pfx/package.json +67 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/build/cjs/encrypted_private_key_info.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/build/cjs/index.js +5 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/build/cjs/private_key_info.js +54 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs8/package.json +63 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/build/cjs/index.js +301 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-pkcs9/package.json +67 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/algorithms.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/index.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/object_identifiers.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/other_prime_info.js +46 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/index.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsaes_oaep.js +45 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsassa_pkcs1_v1_5.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/parameters/rsassa_pss.js +53 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/rsa_private_key.js +79 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/cjs/rsa_public_key.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/algorithms.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/index.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/object_identifiers.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/other_prime_info.js +42 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/index.js +3 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsaes_oaep.js +41 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pkcs1_v1_5.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pss.js +49 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/rsa_private_key.js +75 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/build/es2015/rsa_public_key.js +21 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-rsa/package.json +64 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/convert.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/converters.js +148 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/decorators.js +52 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/enums.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/errors/index.js +4 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/errors/schema_validation.js +7 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/helper.js +44 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/index.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/objects.js +17 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/parser.js +313 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/schema.js +165 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/serializer.js +150 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/storage.js +5 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/types/bit_string.js +71 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/types/index.js +5 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/cjs/types/octet_string.js +45 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/convert.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/converters.js +143 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/decorators.js +43 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/enums.js +37 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/errors/index.js +1 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/errors/schema_validation.js +3 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/helper.js +39 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/index.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/objects.js +13 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/parser.js +308 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/schema.js +160 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/serializer.js +145 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/storage.js +2 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/types/bit_string.js +66 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/types/index.js +2 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/build/es2015/types/octet_string.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-schema/package.json +74 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/algorithm_identifier.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/attribute.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/certificate.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/certificate_list.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extension.js +41 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/authority_information_access.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/authority_key_identifier.js +48 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/basic_constraints.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/certificate_issuer.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/certificate_policies.js +136 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_delta_indicator.js +14 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_distribution_points.js +132 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_freshest.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_issuing_distribution_point.js +68 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_number.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/crl_reason.js +39 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/entrust_version_info.js +46 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/extended_key_usage.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/index.js +28 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/inhibit_any_policy.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/invalidity_date.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/issuer_alternative_name.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/key_usage.js +56 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/name_constraints.js +74 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/policy_constraints.js +33 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/policy_mappings.js +35 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/private_key_usage_period.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_alternative_name.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_directory_attributes.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_info_access.js +22 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/extensions/subject_key_identifier.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/general_name.js +132 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/general_names.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/index.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/ip_converter.js +177 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/name.js +110 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/object_identifiers.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/subject_public_key_info.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/tbs_cert_list.js +83 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/tbs_certificate.js +78 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/time.js +43 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/types.js +9 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/cjs/validity.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js +24 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/attribute.js +18 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/certificate.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extension.js +37 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_information_access.js +32 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js +43 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/basic_constraints.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_policies.js +129 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js +11 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_distribution_points.js +127 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js +64 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_number.js +17 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_reason.js +36 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js +41 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/extended_key_usage.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/index.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/inhibit_any_policy.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/invalidity_date.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/issuer_alternative_name.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/key_usage.js +52 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/name_constraints.js +69 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_mappings.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/private_key_usage_period.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_info_access.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js +5 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/general_name.js +127 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/general_names.js +17 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/index.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js +173 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/name.js +106 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/object_identifiers.js +13 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js +78 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js +74 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/time.js +40 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/types.js +6 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/build/es2015/validity.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-x509/package.json +64 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/aa_clear_attrs.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/aa_controls.js +44 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_cert_issuer.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_cert_validity_period.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attr_spec.js +19 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attribute_certificate.js +25 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/attribute_certificate_info.js +67 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/class_list.js +16 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/clearance.js +31 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/holder.js +41 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/ietf_attr_syntax.js +46 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/index.js +23 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/issuer_serial.js +30 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/object_digest_info.js +37 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/object_identifiers.js +17 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/proxy_info.js +20 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/role_syntax.js +29 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/security_category.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/svce_auth_info.js +27 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/target.js +79 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/build/cjs/v2_form.js +39 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/asn1-x509-attr/package.json +64 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/buffer-source.js +115 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/concat.js +41 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/equal.js +17 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/index.js +31 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/bytes/sequence.js +161 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/converters/convert.js +74 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/converters/defaults.js +72 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/converters/index.js +18 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/converters/registry.js +188 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/base64.js +48 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/base64url.js +26 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/binary.js +26 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/hex.js +229 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/index.js +10 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/utf16.js +24 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/encoding/utf8.js +13 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/index.js +10 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/legacy/buffer-source-converter.js +37 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/legacy/convert.js +72 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/legacy/functions.js +23 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/legacy/index.js +11 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/package.json +3 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/pem/index.js +14 -0
- package/.output/server/node_modules/@peculiar/utils/build/cjs/pem/pem.js +140 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/buffer-source.js +101 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/concat.js +37 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/equal.js +14 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/index.js +4 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/bytes/sequence.js +150 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/converters/convert.js +71 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/converters/defaults.js +68 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/converters/index.js +3 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/converters/registry.js +185 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/base64.js +40 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/base64url.js +19 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/binary.js +20 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/hex.js +220 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/index.js +6 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/utf16.js +19 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/encoding/utf8.js +8 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/index.js +6 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/legacy/buffer-source-converter.js +33 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/legacy/convert.js +68 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/legacy/functions.js +18 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/legacy/index.js +3 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/pem/index.js +1 -0
- package/.output/server/node_modules/@peculiar/utils/build/esm/pem/pem.js +129 -0
- package/.output/server/node_modules/@peculiar/utils/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/utils/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/utils/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/utils/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/utils/package.json +111 -0
- package/.output/server/node_modules/@peculiar/x509/build/x509.cjs.js +3445 -0
- package/.output/server/node_modules/@peculiar/x509/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/@peculiar/x509/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/@peculiar/x509/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/@peculiar/x509/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/@peculiar/x509/package.json +94 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/authentication/generateAuthenticationOptions.js +41 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/authentication/verifyAuthenticationResponse.js +171 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertAAGUIDToString.js +17 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertCOSEtoPKCS.js +21 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertCertBufferToPEM.js +31 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertPEMToBytes.js +11 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/convertX509PublicKeyToCOSE.js +73 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/cose.js +90 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/decodeAttestationObject.js +16 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/decodeAuthenticatorExtensions.js +34 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/decodeClientDataJSON.js +16 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/decodeCredentialPublicKey.js +11 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/fetch.js +14 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/generateChallenge.js +24 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/generateUserID.js +20 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/getCertificateInfo.js +77 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/index.js +17 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/isCertRevoked.js +96 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/index.js +11 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoBase64URL.js +72 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCBOR.js +35 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/digest.js +14 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/getRandomValues.js +11 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/getWebCrypto.js +49 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/importKey.js +8 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/index.js +7 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoAlg.js +20 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.js +19 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/unwrapEC2Signature.js +73 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verify.js +32 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyEC2.js +73 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyOKP.js +51 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoCrypto/verifyRSA.js +91 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/iso/isoUint8Array.js +79 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/logging.js +19 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/mapJWSAlgToCOSEAlg.js +31 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/mapX509SignatureAlgToCOSEAlg.js +35 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/matchExpectedRPID.js +41 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/parseAuthenticatorData.js +106 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/parseBackupFlags.js +25 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/toHash.js +12 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/validateCertificatePath.js +134 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/validateExtFIDOGenCEAAGUID.js +34 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/helpers/verifySignature.js +35 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/index.js +8 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/mdsTypes.js +17 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/parseJWT.js +12 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/verifyAttestationWithMetadata.js +159 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/verifyJWT.js +42 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/metadata/verifyMDSBlob.js +59 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/package.json +3 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/generateRegistrationOptions.js +181 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/constants.js +137 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/parseCertInfo.js +58 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/parsePubArea.js +94 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/tpm/verifyAttestationTPM.js +331 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationAndroidKey.js +120 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationAndroidSafetyNet.js +113 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationApple.js +58 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationFIDOU2F.js +48 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifications/verifyAttestationPacked.js +113 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/registration/verifyRegistrationResponse.js +213 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/android-key.js +171 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/android-safetynet.js +32 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/apple.js +25 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/defaultRootCerts/mds.js +74 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/metadataService.js +268 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/services/settingsService.js +74 -0
- package/.output/server/node_modules/@simplewebauthn/server/esm/types/index.js +1 -0
- package/.output/server/node_modules/@simplewebauthn/server/package.json +65 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1905 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7006 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1867 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +904 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +655 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/agent-base/dist/helpers.js +66 -0
- package/.output/server/node_modules/agent-base/dist/index.js +178 -0
- package/.output/server/node_modules/agent-base/package.json +46 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/api.js +57 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/base/buffer.js +153 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/base/index.js +8 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/base/node.js +638 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/base/reporter.js +123 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/constants/der.js +58 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/constants/index.js +21 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/decoders/der.js +335 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/decoders/index.js +6 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/decoders/pem.js +51 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/encoders/der.js +295 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/encoders/index.js +6 -0
- package/.output/server/node_modules/asn1.js/lib/asn1/encoders/pem.js +23 -0
- package/.output/server/node_modules/asn1.js/lib/asn1.js +11 -0
- package/.output/server/node_modules/asn1.js/package.json +36 -0
- package/.output/server/node_modules/asn1js/build/index.js +3266 -0
- package/.output/server/node_modules/asn1js/package.json +86 -0
- package/.output/server/node_modules/bn.js/lib/bn.js +3463 -0
- package/.output/server/node_modules/bn.js/package.json +36 -0
- package/.output/server/node_modules/buffer-equal-constant-time/index.js +41 -0
- package/.output/server/node_modules/buffer-equal-constant-time/package.json +21 -0
- package/.output/server/node_modules/debug/package.json +64 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/devalue/index.js +17 -0
- package/.output/server/node_modules/devalue/package.json +39 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/operations.js +221 -0
- package/.output/server/node_modules/devalue/src/parse.js +279 -0
- package/.output/server/node_modules/devalue/src/stringify.js +433 -0
- package/.output/server/node_modules/devalue/src/uneval.js +698 -0
- package/.output/server/node_modules/devalue/src/utils.js +190 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/package.json +46 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
- package/.output/server/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/.output/server/node_modules/hookable/package.json +54 -0
- package/.output/server/node_modules/http_ece/ece.js +528 -0
- package/.output/server/node_modules/http_ece/package.json +29 -0
- package/.output/server/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/.output/server/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/.output/server/node_modules/https-proxy-agent/package.json +50 -0
- package/.output/server/node_modules/inherits/inherits.js +9 -0
- package/.output/server/node_modules/inherits/inherits_browser.js +27 -0
- package/.output/server/node_modules/inherits/package.json +29 -0
- package/.output/server/node_modules/jwa/index.js +266 -0
- package/.output/server/node_modules/jwa/package.json +37 -0
- package/.output/server/node_modules/jws/index.js +22 -0
- package/.output/server/node_modules/jws/lib/data-stream.js +55 -0
- package/.output/server/node_modules/jws/lib/sign-stream.js +83 -0
- package/.output/server/node_modules/jws/lib/tostring.js +10 -0
- package/.output/server/node_modules/jws/lib/verify-stream.js +125 -0
- package/.output/server/node_modules/jws/package.json +34 -0
- package/.output/server/node_modules/minimalistic-assert/index.js +11 -0
- package/.output/server/node_modules/minimalistic-assert/package.json +19 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
- package/.output/server/node_modules/nostics/dist/index.mjs +194 -0
- package/.output/server/node_modules/nostics/package.json +126 -0
- package/.output/server/node_modules/pvtsutils/build/index.js +399 -0
- package/.output/server/node_modules/pvtsutils/package.json +76 -0
- package/.output/server/node_modules/pvutils/build/utils.js +361 -0
- package/.output/server/node_modules/pvutils/package.json +63 -0
- package/.output/server/node_modules/qrcode-terminal/package.json +47 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QR8bitByte.js +22 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRBitBuffer.js +38 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js +7 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRMaskPattern.js +10 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRMath.js +44 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRMode.js +6 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRPolynomial.js +66 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRRSBlock.js +298 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/QRUtil.js +272 -0
- package/.output/server/node_modules/qrcode-terminal/vendor/QRCode/index.js +462 -0
- package/.output/server/node_modules/reflect-metadata/Reflect.js +1415 -0
- package/.output/server/node_modules/reflect-metadata/package.json +68 -0
- package/.output/server/node_modules/safe-buffer/index.js +65 -0
- package/.output/server/node_modules/safe-buffer/package.json +51 -0
- package/.output/server/node_modules/safer-buffer/package.json +34 -0
- package/.output/server/node_modules/safer-buffer/safer.js +77 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/supports-color/index.js +202 -0
- package/.output/server/node_modules/supports-color/package.json +64 -0
- package/.output/server/node_modules/tslib/modules/index.js +70 -0
- package/.output/server/node_modules/tslib/modules/package.json +3 -0
- package/.output/server/node_modules/tslib/package.json +47 -0
- package/.output/server/node_modules/tslib/tslib.js +484 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/auto-injectable.js +46 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/index.js +20 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/inject-all-with-transform.js +13 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/inject-all.js +12 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/inject-with-transform.js +10 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/inject.js +12 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/injectable.js +21 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/registry.js +14 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/scoped.js +13 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/decorators/singleton.js +11 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/dependency-container.js +341 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/error-helpers.js +19 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/factories/index.js +8 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/factories/instance-caching-factory.js +12 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/factories/instance-per-container-caching-factory.js +14 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/factories/predicate-aware-class-factory.js +19 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/index.js +15 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/interceptors.js +17 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/lazy-helpers.js +54 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/class-provider.js +7 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/factory-provider.js +7 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/index.js +12 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/injection-token.js +24 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/provider.js +14 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/token-provider.js +7 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/providers/value-provider.js +7 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/reflection-helpers.js +27 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/registry-base.js +39 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/registry.js +6 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/resolution-context.js +8 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/types/disposable.js +13 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/types/index.js +4 -0
- package/.output/server/node_modules/tsyringe/dist/cjs/types/lifecycle.js +10 -0
- package/.output/server/node_modules/tsyringe/node_modules/tslib/package.json +37 -0
- package/.output/server/node_modules/tsyringe/node_modules/tslib/tslib.js +284 -0
- package/.output/server/node_modules/tsyringe/package.json +63 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
- package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +746 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.-hZVKou0.mjs +400 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BQWSw36o.mjs +192 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bjbp1C8D.mjs +224 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C5Bksi2B.mjs +49 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C_7zwq8E.mjs +11 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Dssd7L5I.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.jEy9BmRq.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.oZ7pkTV1.mjs +19 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.tQnRaXfX.mjs +240 -0
- package/.output/server/node_modules/unhead/dist/stream/client.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
- package/.output/server/node_modules/unhead/dist/stream/server.mjs +436 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
- package/.output/server/node_modules/unhead/package.json +179 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +687 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
- package/.output/server/node_modules/web-push/package.json +55 -0
- package/.output/server/node_modules/web-push/src/encryption-helper.js +62 -0
- package/.output/server/node_modules/web-push/src/index.js +21 -0
- package/.output/server/node_modules/web-push/src/urlsafe-base64-helper.js +13 -0
- package/.output/server/node_modules/web-push/src/vapid-helper.js +255 -0
- package/.output/server/node_modules/web-push/src/web-push-constants.js +17 -0
- package/.output/server/node_modules/web-push/src/web-push-error.js +16 -0
- package/.output/server/node_modules/web-push/src/web-push-lib.js +413 -0
- package/.output/server/package.json +67 -0
- package/LICENSE +21 -0
- package/README.md +963 -2
- package/bin/lib/commands.mjs +432 -0
- package/bin/lib/core.mjs +150 -0
- package/bin/lib/panel.mjs +208 -0
- package/bin/lib/runtime.mjs +74 -0
- package/bin/lib/service.mjs +133 -0
- package/bin/lib/tailnet.d.mts +32 -0
- package/bin/lib/tailnet.mjs +185 -0
- package/bin/wherdr.mjs +23 -0
- package/package.json +75 -4
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { m as machineFor, aB as herdrOn, H as HerdrError, f as findPane, a5 as splitId, Q as log, ad as underHome, aj as isGitRepo, o as fmt, aC as getState, F as sleep, aD as HERDR_CHILD_ENV, V as HOME, a1 as IN_DOCKER, aE as HERDR_BIN } from '../nitro/nitro.mjs';
|
|
2
|
+
import { execFile } from 'node:child_process';
|
|
3
|
+
import { b as binaryOn } from './projectBoard.mjs';
|
|
4
|
+
import { c as cleanProjectInput, r as repoArgument, a as projectCommandArgs, b as parseProfileList, s as setupHeader, t as tickerRunning, P as PROJECT_INPUTS, d as readOnlyMessage } from './projectsActions.mjs';
|
|
5
|
+
|
|
6
|
+
const PLUGIN_ID_RE = /^[A-Za-z0-9.:_-]{1,100}$/;
|
|
7
|
+
const ACTION_ID_RE = /^[A-Za-z0-9:_-]{1,100}$/;
|
|
8
|
+
const REMOTE_PROJECTS_SCRIPT = 'export HERDR_BIN_PATH="$1"; shift; bin="$1"; shift; exec "$bin" "$@"';
|
|
9
|
+
function actionContext(pane, workspaces = []) {
|
|
10
|
+
const context = { invocation_source: "wherdr" };
|
|
11
|
+
if (!pane) return context;
|
|
12
|
+
const local = (id) => id.includes("~") ? id.slice(id.indexOf("~") + 1) : id;
|
|
13
|
+
const workspace = workspaces.find((w) => w.id === pane.workspace);
|
|
14
|
+
return {
|
|
15
|
+
...context,
|
|
16
|
+
focused_pane_id: local(pane.id),
|
|
17
|
+
tab_id: local(pane.tab),
|
|
18
|
+
workspace_id: local(pane.workspace),
|
|
19
|
+
workspace_label: (workspace == null ? void 0 : workspace.label) || "",
|
|
20
|
+
workspace_cwd: pane.cwd || "",
|
|
21
|
+
focused_pane_cwd: pane.cwd || ""
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const AGENT_CONTEXTS = ["workspace", "tab", "pane"];
|
|
25
|
+
const READ_ONLY = /\b(list|lists|show|status|view|info|doctor|check|help|preview|inspect|lister|liste|voir|afficher|état|etat|vérifier|verifier|aide)\b/i;
|
|
26
|
+
function needsConfirm(a) {
|
|
27
|
+
return !(READ_ONLY.test(a.id.replace(/[_:]/g, "-")) || READ_ONLY.test(a.title));
|
|
28
|
+
}
|
|
29
|
+
function shortLabel(title, pluginName) {
|
|
30
|
+
const esc = pluginName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
31
|
+
const rest = title.replace(new RegExp(`^${esc}\\s*[:\xB7\u2014\u2013-]\\s*`, "i"), "").trim();
|
|
32
|
+
return rest ? rest[0].toUpperCase() + rest.slice(1) : title;
|
|
33
|
+
}
|
|
34
|
+
function normalizeActions(actions, plugins = []) {
|
|
35
|
+
const byId = new Map(plugins.filter((p) => p && p.plugin_id).map((p) => [p.plugin_id, p]));
|
|
36
|
+
const out = [];
|
|
37
|
+
for (const a of actions || []) {
|
|
38
|
+
const plugin = String((a == null ? void 0 : a.plugin_id) || "");
|
|
39
|
+
const id = String((a == null ? void 0 : a.action_id) || "");
|
|
40
|
+
if (!PLUGIN_ID_RE.test(plugin) || !ACTION_ID_RE.test(id)) continue;
|
|
41
|
+
const p = byId.get(plugin);
|
|
42
|
+
if (p && p.enabled === false) continue;
|
|
43
|
+
const ctx = (Array.isArray(a.contexts) ? a.contexts : []).map(String);
|
|
44
|
+
const agent = ctx.some((c) => AGENT_CONTEXTS.includes(c));
|
|
45
|
+
const machine = !ctx.length || ctx.includes("global");
|
|
46
|
+
if (!agent && !machine) continue;
|
|
47
|
+
const title = String(a.title || id).replace(/\s+/g, " ").trim().slice(0, 120) || id;
|
|
48
|
+
const description = a.description ? String(a.description).replace(/\s+/g, " ").trim().slice(0, 240) || null : null;
|
|
49
|
+
const pluginName = String((p == null ? void 0 : p.name) || plugin).trim() || plugin;
|
|
50
|
+
out.push({
|
|
51
|
+
plugin,
|
|
52
|
+
pluginName,
|
|
53
|
+
id,
|
|
54
|
+
title,
|
|
55
|
+
label: shortLabel(title, pluginName),
|
|
56
|
+
description,
|
|
57
|
+
agent,
|
|
58
|
+
machine,
|
|
59
|
+
confirm: needsConfirm({ id, title })
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return out.sort((x, y) => x.pluginName.localeCompare(y.pluginName) || x.label.localeCompare(y.label));
|
|
63
|
+
}
|
|
64
|
+
const ANSI = /\x1B(?:\[[0-?]*[ -/]*[@-~]|\][^\x07\x1B]*(?:\x07|\x1B\\)|[@-Z\\-_])/g;
|
|
65
|
+
function stripAnsi(text) {
|
|
66
|
+
return String(text || "").replace(ANSI, "").replace(/[\x00-\x08\x0B-\x1F\x7F]/g, "");
|
|
67
|
+
}
|
|
68
|
+
function outputTail(text, max = 300) {
|
|
69
|
+
const lines = stripAnsi(text).split("\n").map((l) => l.trim()).filter(Boolean);
|
|
70
|
+
let out = "";
|
|
71
|
+
for (let i = lines.length - 1; i >= 0; i--) {
|
|
72
|
+
const next = out ? `${lines[i]}
|
|
73
|
+
${out}` : lines[i];
|
|
74
|
+
if (next.length > max) {
|
|
75
|
+
if (!out) out = "\u2026" + lines[i].slice(-(max - 1));
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
out = next;
|
|
79
|
+
}
|
|
80
|
+
return out;
|
|
81
|
+
}
|
|
82
|
+
function logResult(log2) {
|
|
83
|
+
const status = (log2 == null ? void 0 : log2.status) === "succeeded" || (log2 == null ? void 0 : log2.status) === "failed" ? log2.status : "running";
|
|
84
|
+
const exitCode = typeof (log2 == null ? void 0 : log2.exit_code) === "number" ? log2.exit_code : null;
|
|
85
|
+
const output = status === "failed" ? outputTail(log2 == null ? void 0 : log2.stderr) || outputTail(log2 == null ? void 0 : log2.error) || outputTail(log2 == null ? void 0 : log2.stdout) : outputTail(log2 == null ? void 0 : log2.stdout) || outputTail(log2 == null ? void 0 : log2.stderr);
|
|
86
|
+
return { status, exitCode, output };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const CACHE_MS = 1e4;
|
|
90
|
+
const cache = /* @__PURE__ */ new Map();
|
|
91
|
+
async function listPluginActions(machineKey, fresh = false) {
|
|
92
|
+
const m = machineFor(machineKey);
|
|
93
|
+
const hit = cache.get(m.key);
|
|
94
|
+
if (!fresh && hit && Date.now() - hit.at < CACHE_MS) return hit.actions;
|
|
95
|
+
const [a, p] = await Promise.all([
|
|
96
|
+
herdrOn(m.key, "plugin.action.list", {}, 8e3),
|
|
97
|
+
herdrOn(m.key, "plugin.list", {}, 8e3).catch(() => ({ plugins: [] }))
|
|
98
|
+
]);
|
|
99
|
+
const actions = normalizeActions(a.actions || [], p.plugins || []);
|
|
100
|
+
cache.set(m.key, { at: Date.now(), actions });
|
|
101
|
+
return actions;
|
|
102
|
+
}
|
|
103
|
+
const WAIT_MS = 12e3;
|
|
104
|
+
function pluginInputFields(plugin, action) {
|
|
105
|
+
return plugin === "herdr-projects" ? PROJECT_INPUTS[action] || [] : [];
|
|
106
|
+
}
|
|
107
|
+
async function runProjects(m, bin, args, timeoutMs = 6e4) {
|
|
108
|
+
var _a;
|
|
109
|
+
if (m.exec) {
|
|
110
|
+
const herdrBin = "bin" in m && typeof m.bin === "string" && m.bin ? m.bin : "herdr";
|
|
111
|
+
const r = await m.exec(REMOTE_PROJECTS_SCRIPT, [herdrBin, bin, ...args], { timeoutMs });
|
|
112
|
+
return { code: (_a = r.code) != null ? _a : 1, stdout: r.stdout.toString("utf8").trim(), stderr: r.stderr.trim() };
|
|
113
|
+
}
|
|
114
|
+
return new Promise((resolve) => execFile(bin, args, {
|
|
115
|
+
env: { ...HERDR_CHILD_ENV, HERDR_BIN_PATH: HERDR_BIN },
|
|
116
|
+
timeout: timeoutMs,
|
|
117
|
+
maxBuffer: 1024 * 1024
|
|
118
|
+
}, (err, stdout, stderr) => resolve({
|
|
119
|
+
code: err ? typeof err.code === "number" ? err.code : 1 : 0,
|
|
120
|
+
stdout: String(stdout).trim(),
|
|
121
|
+
stderr: String(stderr || (err && !stdout ? err.message : "")).trim()
|
|
122
|
+
})));
|
|
123
|
+
}
|
|
124
|
+
async function projectsBin(m) {
|
|
125
|
+
const bin = await binaryOn(m);
|
|
126
|
+
if (!bin) throw new HerdrError("plugin_unavailable", "Projects binary not found");
|
|
127
|
+
return bin;
|
|
128
|
+
}
|
|
129
|
+
async function projectsCommand(m, args, lang = "en") {
|
|
130
|
+
const r = await runProjects(m, await projectsBin(m), args);
|
|
131
|
+
if (r.code !== 0) {
|
|
132
|
+
const error = r.stderr || r.stdout || `code ${r.code}`;
|
|
133
|
+
const readOnly = readOnlyMessage(error, { docker: m.local && IN_DOCKER });
|
|
134
|
+
if (readOnly) log(`herdr-projects ${args[0]}: ${error}`);
|
|
135
|
+
throw new HerdrError(readOnly ? "read_only" : "plugin_failed", readOnly || error);
|
|
136
|
+
}
|
|
137
|
+
return r.stdout;
|
|
138
|
+
}
|
|
139
|
+
async function withoutContainerTicker(m, run) {
|
|
140
|
+
if (!m.local || !IN_DOCKER) return run();
|
|
141
|
+
const bin = await projectsBin(m);
|
|
142
|
+
const before = await runProjects(m, bin, ["ticker", "status"]).catch(() => null);
|
|
143
|
+
try {
|
|
144
|
+
return await run();
|
|
145
|
+
} finally {
|
|
146
|
+
if (before && before.code === 0 && !tickerRunning(before.stdout)) {
|
|
147
|
+
const after = await runProjects(m, bin, ["ticker", "status"]).catch(() => null);
|
|
148
|
+
if (after && tickerRunning(after.stdout)) {
|
|
149
|
+
log("herdr-projects: ticker started in the container, stop requested (it will restart on the host)");
|
|
150
|
+
runProjects(m, bin, ["ticker", "stop"]).then((r) => r.code && log(`herdr-projects ticker stop: ${r.stderr || r.code}`));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
async function projectsDoctor(m) {
|
|
156
|
+
const bin = await projectsBin(m);
|
|
157
|
+
const [version, doctor] = await Promise.all([
|
|
158
|
+
runProjects(m, bin, ["--version"]).catch(() => null),
|
|
159
|
+
runProjects(m, bin, projectCommandArgs("doctor", {}, { session: m.session }))
|
|
160
|
+
]);
|
|
161
|
+
const home = m.local ? String(HERDR_CHILD_ENV.HOME || HOME) : m.home;
|
|
162
|
+
const full = stripAnsi([doctor.stdout, doctor.stderr].filter(Boolean).join("\n")).slice(-12e3);
|
|
163
|
+
return {
|
|
164
|
+
status: doctor.code === 0 ? "succeeded" : "failed",
|
|
165
|
+
exitCode: doctor.code,
|
|
166
|
+
output: outputTail(full),
|
|
167
|
+
full,
|
|
168
|
+
setup: setupHeader({ version: version && version.code === 0 ? version.stdout : null, binary: bin, home })
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
async function projectProfiles(machineKey) {
|
|
172
|
+
const m = machineFor(machineKey);
|
|
173
|
+
const r = await runProjects(m, await projectsBin(m), ["profile", "list"], 1e4);
|
|
174
|
+
return r.code === 0 ? parseProfileList(stripAnsi(r.stdout)) : null;
|
|
175
|
+
}
|
|
176
|
+
async function invokePluginAction(body) {
|
|
177
|
+
const plugin = String(body.plugin || "");
|
|
178
|
+
const action = String(body.action || "");
|
|
179
|
+
if (!PLUGIN_ID_RE.test(plugin) || !ACTION_ID_RE.test(action)) throw new HerdrError("bad_action", "Invalid action");
|
|
180
|
+
const paneId = body.pane_id ? String(body.pane_id) : "";
|
|
181
|
+
const pane = paneId ? findPane(paneId) : null;
|
|
182
|
+
if (paneId && !pane) throw new HerdrError("bad_pane", "Pane not found");
|
|
183
|
+
const m = machineFor(pane ? splitId(pane.id).machine : body.machine);
|
|
184
|
+
const known = (await listPluginActions(m.key, true)).find((a) => a.plugin === plugin && a.id === action);
|
|
185
|
+
if (!known) throw new HerdrError("plugin_action_not_found", "Action not found on this machine");
|
|
186
|
+
if (pane ? !known.agent : !known.machine) throw new HerdrError("bad_context", "Action not available here");
|
|
187
|
+
if (plugin === "herdr-projects" && action === "open-popup") {
|
|
188
|
+
throw new HerdrError("popup_unavailable", "The Projects panel is available in the Herdr client; its inputs are not reachable through the Herdr API.");
|
|
189
|
+
}
|
|
190
|
+
if (plugin === "herdr-projects" && action === "doctor") {
|
|
191
|
+
log(`plugin ${plugin}.${action}${m.local ? "" : ` on ${m.label}`} (command)`);
|
|
192
|
+
return projectsDoctor(m);
|
|
193
|
+
}
|
|
194
|
+
const fields = pluginInputFields(plugin, action);
|
|
195
|
+
if (fields.length) {
|
|
196
|
+
const input = cleanProjectInput(action, body.input);
|
|
197
|
+
if (!input) throw new HerdrError("bad_input", "Invalid plugin input");
|
|
198
|
+
if (action === "adopt-workspace" && (!pane || !pane.agent || !pane.cwd)) {
|
|
199
|
+
throw new HerdrError("bad_context", "This space needs an agent and its folder");
|
|
200
|
+
}
|
|
201
|
+
if (input.repo) {
|
|
202
|
+
const rm = input.machine ? machineFor(input.machine) : m;
|
|
203
|
+
const repo = underHome(input.repo, rm.home);
|
|
204
|
+
if (!repo || !await isGitRepo(repo, rm)) throw new HerdrError("bad_input", fmt("Not a Git repository: {path}", { path: input.repo }));
|
|
205
|
+
const arg = repoArgument(repo, rm, m);
|
|
206
|
+
if (!arg) throw new HerdrError("bad_input", fmt("Repository unusable from {machine}: {path}", { machine: m.label, path: `${repo}${rm === m ? "" : ` (${rm.label})`}` }));
|
|
207
|
+
input.repo = arg;
|
|
208
|
+
}
|
|
209
|
+
delete input.machine;
|
|
210
|
+
const lang = body.lang === "fr" ? "fr" : "en";
|
|
211
|
+
const args = projectCommandArgs(action, input, { pane: pane ? splitId(pane.id).local : void 0, cwd: (pane == null ? void 0 : pane.cwd) || void 0, session: m.session, lang });
|
|
212
|
+
const exec = async () => {
|
|
213
|
+
var _a;
|
|
214
|
+
const output = await projectsCommand(m, args, lang);
|
|
215
|
+
if (action === "new") {
|
|
216
|
+
const slug = (_a = /created `([^`]+)`/.exec(output)) == null ? void 0 : _a[1];
|
|
217
|
+
if (slug) {
|
|
218
|
+
try {
|
|
219
|
+
return { status: "succeeded", exitCode: 0, output: outputTail(`${output}
|
|
220
|
+
${await projectsCommand(m, projectCommandArgs("open", { slug }, { session: m.session }), lang)}`) };
|
|
221
|
+
} catch (e) {
|
|
222
|
+
return { status: "failed", exitCode: null, output: outputTail(`${output}
|
|
223
|
+
${e.message}`) };
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return { status: "succeeded", exitCode: 0, output: outputTail(output) };
|
|
228
|
+
};
|
|
229
|
+
return ["new", "open", "adopt-workspace"].includes(action) ? withoutContainerTicker(m, exec) : exec();
|
|
230
|
+
}
|
|
231
|
+
const context = actionContext(pane || null, getState().workspaces);
|
|
232
|
+
const r = await herdrOn(m.key, "plugin.action.invoke", { plugin_id: plugin, action_id: action, context }, 1e4);
|
|
233
|
+
const logId = r.log && r.log.log_id;
|
|
234
|
+
log(`plugin ${plugin}.${action}${pane ? ` (${pane.id})` : ""}${m.local ? "" : ` on ${m.label}`} started`);
|
|
235
|
+
let last = r.log;
|
|
236
|
+
const until = Date.now() + WAIT_MS;
|
|
237
|
+
while (logId && logResult(last).status === "running" && Date.now() < until) {
|
|
238
|
+
await sleep(400);
|
|
239
|
+
const l = await herdrOn(m.key, "plugin.log.list", { plugin_id: plugin, limit: 20 }, 5e3).catch(() => null);
|
|
240
|
+
last = (l && l.logs || []).find((x) => x.log_id === logId) || last;
|
|
241
|
+
}
|
|
242
|
+
const res = logResult(last);
|
|
243
|
+
log(`plugin ${plugin}.${action}: ${res.status}${res.exitCode !== null ? ` (${res.exitCode})` : ""}`);
|
|
244
|
+
return res;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export { invokePluginAction as i, listPluginActions as l, projectProfiles as p };
|
|
248
|
+
//# sourceMappingURL=plugins.mjs.map
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { execFile } from 'node:child_process';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { aF as currentMachineSlots, aG as paneBaseMachine, H as HerdrError, m as machineFor, aD as HERDR_CHILD_ENV, aE as HERDR_BIN, aB as herdrOn, aH as projectOf, aI as isProjectThread } from '../nitro/nitro.mjs';
|
|
4
|
+
|
|
5
|
+
const fold = (s) => s.normalize("NFD").replace(/[̀-ͯ]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, " ").trim();
|
|
6
|
+
const KINDS = [
|
|
7
|
+
["test", /^(a tester|to test|testing|to verify|a verifier|test)$/],
|
|
8
|
+
["decide", /^(a decider|to decide|decisions?|decide|questions?)$/],
|
|
9
|
+
["review", /^(a relire|relire|relecture|to review|review|reviews|code review|pr|prs|pull requests?|a valider|to validate)$/],
|
|
10
|
+
["blocked", /^(bloque(?:e|es|s)?|blocked|on hold|en attente|waiting|stuck)$/],
|
|
11
|
+
["doing", /^(en cours|in progress|doing|ongoing|wip|active)$/],
|
|
12
|
+
["queue", /^(en file|en file d attente|file d attente|file|in queue|queue|queued|up next)$/],
|
|
13
|
+
["todo", /^(a faire|todo|to do|to dos|todos|next|prochainement|soon)$/],
|
|
14
|
+
["backlog", /^(backlog|later|plus tard|idees|ideas|someday|un jour)$/],
|
|
15
|
+
["done", /^(fait|faits|done|termine|terminees?|finished|completed?)$/]
|
|
16
|
+
];
|
|
17
|
+
function listKind(title) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const f = fold(title);
|
|
20
|
+
return (_b = (_a = KINDS.find(([, re]) => re.test(f))) == null ? void 0 : _a[0]) != null ? _b : null;
|
|
21
|
+
}
|
|
22
|
+
const THREAD_ID = /\bt-\d{4,}\b/i;
|
|
23
|
+
const TASK_LINE = /^[-*+]\s+(?:\[([ xX])\](?:\s+|$))?(.*)$/;
|
|
24
|
+
const OWNER = /\s*\(([^()]{1,48})\)\s*$/;
|
|
25
|
+
const REFS = /\s*\[\s*t-\d{4,}(?:\s*[,;\s]\s*t-\d{4,})*\s*\]/gi;
|
|
26
|
+
const BADGE_COLORS = ["red", "orange", "amber", "green", "teal", "blue", "violet", "pink", "gray"];
|
|
27
|
+
const BADGE = /\[b:\s*([#\w-]*)\s*\((.*?)\)\](?:\(\s*((?:[^\s()]|\([^\s()]*\))*)\s*\))?/gi;
|
|
28
|
+
function badgeColor(raw) {
|
|
29
|
+
const c = raw.trim().toLowerCase();
|
|
30
|
+
if (BADGE_COLORS.includes(c)) return c;
|
|
31
|
+
if (c === "grey") return "gray";
|
|
32
|
+
const h = /^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(c);
|
|
33
|
+
if (!h) return null;
|
|
34
|
+
const x = h[1];
|
|
35
|
+
return "#" + (x.length === 3 ? [...x].map((d) => d + d).join("") : x);
|
|
36
|
+
}
|
|
37
|
+
function badgeTarget(raw) {
|
|
38
|
+
const v = (raw || "").trim();
|
|
39
|
+
if (/^t-\d{4,}$/i.test(v)) return { thread: v.toLowerCase() };
|
|
40
|
+
if (!/^https?:\/\//i.test(v)) return null;
|
|
41
|
+
try {
|
|
42
|
+
const u = new URL(v);
|
|
43
|
+
return u.protocol === "https:" || u.protocol === "http:" ? { href: u.href } : null;
|
|
44
|
+
} catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function takeBadges(input) {
|
|
49
|
+
const badges = [];
|
|
50
|
+
const text = input.replace(BADGE, (all, color, label, target) => {
|
|
51
|
+
const t = label.replace(/\s+/g, " ").trim();
|
|
52
|
+
if (!t) return all;
|
|
53
|
+
badges.push({ text: t, color: badgeColor(color), ...badgeTarget(target) || {} });
|
|
54
|
+
return " ";
|
|
55
|
+
});
|
|
56
|
+
return badges.length ? { text: text.replace(/\s{2,}/g, " ").trim(), badges } : { text: input, badges };
|
|
57
|
+
}
|
|
58
|
+
function parseTaskLine(line, kind = null) {
|
|
59
|
+
var _a;
|
|
60
|
+
const m = TASK_LINE.exec(line.trim());
|
|
61
|
+
if (!m) return null;
|
|
62
|
+
const free = takeBadges(m[2].trim());
|
|
63
|
+
let text = free.text.replace(REFS, "").trim();
|
|
64
|
+
let owner = null;
|
|
65
|
+
const o = OWNER.exec(text);
|
|
66
|
+
if (o && o.index > 0 && !(text[o.index] === "(" && text[o.index - 1] === "]")) {
|
|
67
|
+
owner = o[1].trim();
|
|
68
|
+
text = text.slice(0, o.index).trim();
|
|
69
|
+
}
|
|
70
|
+
let reason;
|
|
71
|
+
if (kind === "blocked") {
|
|
72
|
+
const cause = /\s+—\s*(?:bloqu[eé]e? par|blocked by)\s*:\s*(.+)$/i.exec(text);
|
|
73
|
+
if ((_a = cause == null ? void 0 : cause[1]) == null ? void 0 : _a.trim()) {
|
|
74
|
+
reason = cause[1].trim();
|
|
75
|
+
text = text.slice(0, cause.index).trim();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (!text) text = free.badges.map((b) => b.text).join(" \xB7 ");
|
|
79
|
+
if (!text) return null;
|
|
80
|
+
const ref = owner && THREAD_ID.exec(owner);
|
|
81
|
+
return { text, done: m[1] === "x" || m[1] === "X", owner, thread: ref ? ref[0].toLowerCase() : null, ...reason ? { reason } : {}, ...free.badges.length ? { badges: free.badges } : {} };
|
|
82
|
+
}
|
|
83
|
+
function parseTasks(md) {
|
|
84
|
+
const lists = [];
|
|
85
|
+
let cur = null;
|
|
86
|
+
let fence = false;
|
|
87
|
+
for (const raw of String(md || "").replace(/\r\n?/g, "\n").split("\n")) {
|
|
88
|
+
if (/^\s*(```|~~~)/.test(raw)) {
|
|
89
|
+
fence = !fence;
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
if (fence) continue;
|
|
93
|
+
const h = /^##\s+(.+?)\s*#*\s*$/.exec(raw);
|
|
94
|
+
if (h) {
|
|
95
|
+
cur = { title: h[1], kind: listKind(h[1]), tasks: [] };
|
|
96
|
+
lists.push(cur);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
if (/^#\s/.test(raw)) {
|
|
100
|
+
cur = null;
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if (!cur || /^\s/.test(raw)) continue;
|
|
104
|
+
const task = parseTaskLine(raw, cur.kind);
|
|
105
|
+
if (task) cur.tasks.push(task);
|
|
106
|
+
}
|
|
107
|
+
return lists;
|
|
108
|
+
}
|
|
109
|
+
const str = (v) => typeof v === "string" ? v : "";
|
|
110
|
+
function normalizeThreads(raw) {
|
|
111
|
+
if (!Array.isArray(raw)) return [];
|
|
112
|
+
const out = [];
|
|
113
|
+
for (const r of raw) {
|
|
114
|
+
if (!r || typeof r !== "object") continue;
|
|
115
|
+
const id = str(r.id);
|
|
116
|
+
if (!/^t-\d{4,}$/.test(id)) continue;
|
|
117
|
+
const token = str(r.group_token) || (str(r.status) === "resolved" ? "resolved" : "");
|
|
118
|
+
const resolved = str(r.status) === "resolved" || token === "resolved";
|
|
119
|
+
const rank2 = typeof r.rank === "number" && Number.isFinite(r.rank) ? r.rank : resolved ? 6 : 5;
|
|
120
|
+
out.push({
|
|
121
|
+
id,
|
|
122
|
+
title: str(r.title).trim() || id,
|
|
123
|
+
group: str(r.group) || (resolved ? "Resolved" : ""),
|
|
124
|
+
token,
|
|
125
|
+
rank: rank2,
|
|
126
|
+
resolved,
|
|
127
|
+
updated: str(r.updated),
|
|
128
|
+
created: str(r.created),
|
|
129
|
+
agentName: str(r.agent_name) || null,
|
|
130
|
+
machine: str(r.machine),
|
|
131
|
+
activity: str(r.activity).trim(),
|
|
132
|
+
percent: typeof r.percent === "number" && Number.isFinite(r.percent) ? Math.max(0, Math.min(100, Math.round(r.percent))) : null,
|
|
133
|
+
pr: /^https:\/\//.test(str(r.pr)) ? str(r.pr) : "",
|
|
134
|
+
report: typeof r.report === "string" && r.report.length > 0
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return out;
|
|
138
|
+
}
|
|
139
|
+
const num = (id) => Number(id.slice(2)) || 0;
|
|
140
|
+
const time = (iso) => {
|
|
141
|
+
const t = Date.parse(iso);
|
|
142
|
+
return Number.isFinite(t) ? t : 0;
|
|
143
|
+
};
|
|
144
|
+
function sortOpen(list) {
|
|
145
|
+
return [...list].sort((a, b) => a.rank - b.rank || num(b.id) - num(a.id));
|
|
146
|
+
}
|
|
147
|
+
function sortResolved(list) {
|
|
148
|
+
return [...list].sort((a, b) => time(b.updated) - time(a.updated) || num(b.id) - num(a.id));
|
|
149
|
+
}
|
|
150
|
+
function splitThreads(list) {
|
|
151
|
+
return {
|
|
152
|
+
open: sortOpen(list.filter((t) => !t.resolved)),
|
|
153
|
+
resolved: sortResolved(list.filter((t) => t.resolved))
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function maxParallelThreads(projectMd) {
|
|
157
|
+
const m = /^\+\+\+\r?\n([\s\S]*?)\r?\n\+\+\+/.exec(String(projectMd || ""));
|
|
158
|
+
if (!m) return null;
|
|
159
|
+
const top = m[1].split(/^\s*\[/m)[0];
|
|
160
|
+
const v = /^\s*max_parallel_threads\s*=\s*(\d+)\s*(?:#.*)?$/m.exec(top);
|
|
161
|
+
if (!v) return 10;
|
|
162
|
+
const n = Number(v[1]);
|
|
163
|
+
return n >= 1 ? n : null;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const TASKS_BYTES = 256 * 1024;
|
|
167
|
+
const PROJECT_HEAD_BYTES = 16 * 1024;
|
|
168
|
+
const REPORT_BYTES = 512 * 1024;
|
|
169
|
+
const THREADS_BYTES = 8 * 1024 * 1024;
|
|
170
|
+
const BIN_TTL_MS = 6e4;
|
|
171
|
+
const PLUGIN_ID = "herdr-projects";
|
|
172
|
+
function pluginBinary(plugins) {
|
|
173
|
+
const p = (plugins || []).find((x) => x && x.plugin_id === PLUGIN_ID && x.enabled !== false);
|
|
174
|
+
if (!p || typeof p.plugin_root !== "string" || !path.posix.isAbsolute(p.plugin_root)) return null;
|
|
175
|
+
for (const c of [...p.startup || [], ...p.actions || [], ...p.panes || []]) {
|
|
176
|
+
const argv = Array.isArray(c == null ? void 0 : c.command) ? c.command : [];
|
|
177
|
+
const bin = typeof argv[0] === "string" ? argv[0] : "";
|
|
178
|
+
if (!/(^|\/)herdr-projects$/.test(bin) || bin.split("/").includes("..")) continue;
|
|
179
|
+
return path.posix.isAbsolute(bin) ? bin : path.posix.join(p.plugin_root, bin);
|
|
180
|
+
}
|
|
181
|
+
return null;
|
|
182
|
+
}
|
|
183
|
+
const bins = /* @__PURE__ */ new Map();
|
|
184
|
+
function binaryOn(m) {
|
|
185
|
+
const hit = bins.get(m.key);
|
|
186
|
+
if (hit && Date.now() - hit.at < BIN_TTL_MS) return hit.bin;
|
|
187
|
+
const bin = herdrOn(m.key, "plugin.list", {}, 8e3).then((r) => pluginBinary(r.plugins || []));
|
|
188
|
+
bin.catch(() => bins.delete(m.key));
|
|
189
|
+
bins.set(m.key, { at: Date.now(), bin });
|
|
190
|
+
return bin;
|
|
191
|
+
}
|
|
192
|
+
async function projectDir(m, p) {
|
|
193
|
+
const slug = projectOf(p);
|
|
194
|
+
const cwd = (p.cwd || "").replace(/\/+$/, "");
|
|
195
|
+
if (!slug || !p.agent || isProjectThread(p) || !path.posix.isAbsolute(cwd)) return null;
|
|
196
|
+
if (path.posix.basename(cwd).toLowerCase() !== slug.toLowerCase()) return null;
|
|
197
|
+
const [tasks, project] = await m.fs.statMany([`${cwd}/TASKS.md`, `${cwd}/PROJECT.md`]);
|
|
198
|
+
if (!((tasks == null ? void 0 : tasks.isFile) || (project == null ? void 0 : project.isFile))) return null;
|
|
199
|
+
return { dir: cwd, slug: path.posix.basename(cwd) };
|
|
200
|
+
}
|
|
201
|
+
async function target(pane) {
|
|
202
|
+
const m = machineFor(pane.machine);
|
|
203
|
+
const bin = await binaryOn(m).catch(() => null);
|
|
204
|
+
if (!bin) return null;
|
|
205
|
+
const where = await projectDir(m, pane);
|
|
206
|
+
return where ? { m, bin, ...where } : null;
|
|
207
|
+
}
|
|
208
|
+
async function version(t) {
|
|
209
|
+
const [tasks, threads, project] = await t.m.fs.statMany([`${t.dir}/TASKS.md`, `${t.dir}/threads`, `${t.dir}/PROJECT.md`]);
|
|
210
|
+
const v = `${tasks ? `${tasks.size}.${tasks.mtimeMs}` : "-"}|${threads ? threads.mtimeMs : "-"}|${project ? project.mtimeMs : "-"}`;
|
|
211
|
+
return { v, tasks: (tasks == null ? void 0 : tasks.isFile) ? tasks : null, project: (project == null ? void 0 : project.isFile) ? project : null };
|
|
212
|
+
}
|
|
213
|
+
function threadList(t) {
|
|
214
|
+
const root = path.posix.dirname(t.dir);
|
|
215
|
+
const session = t.m.session && t.m.session !== "default" ? t.m.session : "";
|
|
216
|
+
const remote = t.m.exec;
|
|
217
|
+
if (remote) {
|
|
218
|
+
const herdrBin = t.m.bin || "herdr";
|
|
219
|
+
return remote('HERDR_BIN_PATH="$1" HERDR_SESSION="$2" exec "$3" --root "$4" thread list "$5" --json', [herdrBin, session, t.bin, root, t.slug], { timeoutMs: 15e3 }).then((r) => {
|
|
220
|
+
if (r.code !== 0) throw new Error(r.stderr.trim().split("\n").pop() || `code ${r.code}`);
|
|
221
|
+
if (r.stdout.length > THREADS_BYTES) throw new Error("thread list too long");
|
|
222
|
+
return r.stdout.toString("utf8");
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
const env = { ...HERDR_CHILD_ENV, HERDR_BIN_PATH: HERDR_BIN };
|
|
226
|
+
if (session) env.HERDR_SESSION = session;
|
|
227
|
+
return new Promise((resolve, reject) => {
|
|
228
|
+
execFile(t.bin, ["--root", root, "thread", "list", t.slug, "--json"], { env, timeout: 15e3, maxBuffer: THREADS_BYTES }, (err, out, stderr) => {
|
|
229
|
+
if (err) reject(new Error(String(stderr || err.message).trim().split("\n").pop()));
|
|
230
|
+
else resolve(String(out));
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
const lastThreads = /* @__PURE__ */ new Map();
|
|
235
|
+
async function readProjectBoard(pane, since) {
|
|
236
|
+
const t = await target(pane);
|
|
237
|
+
if (!t) return { available: false };
|
|
238
|
+
const ver = await version(t);
|
|
239
|
+
const machine = (await currentMachineSlots().catch(() => [])).find((s) => s.key === paneBaseMachine(pane));
|
|
240
|
+
if (machine == null ? void 0 : machine.max) ver.v += `|m${machine.open}/${machine.max}`;
|
|
241
|
+
if (since && since === ver.v) return { same: true, version: ver.v };
|
|
242
|
+
const [tasksText, projectText, threads] = await Promise.all([
|
|
243
|
+
ver.tasks ? t.m.fs.read(`${t.dir}/TASKS.md`, 0, Math.min(ver.tasks.size, TASKS_BYTES)).then((b) => b.toString("utf8")) : Promise.resolve(null),
|
|
244
|
+
ver.project ? t.m.fs.read(`${t.dir}/PROJECT.md`, 0, Math.min(ver.project.size, PROJECT_HEAD_BYTES)).then((b) => b.toString("utf8")).catch(() => "") : Promise.resolve(""),
|
|
245
|
+
threadList(t).then((out) => ({ list: normalizeThreads(JSON.parse(out)), error: void 0 })).then((r) => {
|
|
246
|
+
lastThreads.set(`${t.m.key}|${t.dir}`, r.list);
|
|
247
|
+
return r;
|
|
248
|
+
}).catch((e) => {
|
|
249
|
+
const last = lastThreads.get(`${t.m.key}|${t.dir}`);
|
|
250
|
+
return last ? { list: last, error: void 0 } : { list: [], error: e.message || "threads illisibles" };
|
|
251
|
+
})
|
|
252
|
+
]);
|
|
253
|
+
const { open, resolved } = splitThreads(threads.list);
|
|
254
|
+
const board = { slug: t.slug, lists: parseTasks(tasksText || ""), open, resolved, version: ver.v };
|
|
255
|
+
if (tasksText === null) board.tasksMissing = true;
|
|
256
|
+
if (threads.error) board.threadsError = threads.error;
|
|
257
|
+
const max = maxParallelThreads(projectText);
|
|
258
|
+
if (max && !threads.error) board.slots = { used: open.length, max };
|
|
259
|
+
if (machine == null ? void 0 : machine.max) board.machineSlots = { label: machine.label, open: machine.open, max: machine.max };
|
|
260
|
+
return board;
|
|
261
|
+
}
|
|
262
|
+
async function readThreadReport(pane, id) {
|
|
263
|
+
if (!/^t-\d{4,}$/.test(id)) throw new HerdrError("bad_thread", "invalid thread");
|
|
264
|
+
const t = await target(pane);
|
|
265
|
+
if (!t) throw new HerdrError("no_project", "project not found");
|
|
266
|
+
const file = `${t.dir}/threads/${id}.md`;
|
|
267
|
+
const st = await t.m.fs.stat(file).catch(() => null);
|
|
268
|
+
if (!st || !st.isFile) throw new HerdrError("no_report", "no report for this thread");
|
|
269
|
+
const len = Math.min(st.size, REPORT_BYTES);
|
|
270
|
+
const text = (await t.m.fs.read(file, 0, len)).toString("utf8");
|
|
271
|
+
return { id, text, truncated: st.size > REPORT_BYTES };
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export { readThreadReport as a, binaryOn as b, readProjectBoard as r };
|
|
275
|
+
//# sourceMappingURL=projectBoard.mjs.map
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { o as fmt } from '../nitro/nitro.mjs';
|
|
2
|
+
|
|
3
|
+
const PROJECT_INPUTS = {
|
|
4
|
+
new: ["name"],
|
|
5
|
+
"adopt-workspace": ["name"],
|
|
6
|
+
open: ["slug"],
|
|
7
|
+
pause: ["slug"],
|
|
8
|
+
resume: ["slug"]
|
|
9
|
+
};
|
|
10
|
+
const PROJECT_OPTIONAL = { new: ["goal", "repo", "machine", "coordinatorProfile", "threadProfile"], "adopt-workspace": ["goal", "task"] };
|
|
11
|
+
const PROJECT_REQUIRED = {
|
|
12
|
+
new: ["name"],
|
|
13
|
+
"adopt-workspace": ["name"],
|
|
14
|
+
open: ["slug"],
|
|
15
|
+
pause: ["slug"],
|
|
16
|
+
resume: ["slug"]
|
|
17
|
+
};
|
|
18
|
+
const INPUT_MAX = { name: 120, slug: 120, goal: 400, task: 400, repo: 1024, machine: 64, coordinatorProfile: 40, threadProfile: 40 };
|
|
19
|
+
function cleanProjectInput(action, raw) {
|
|
20
|
+
const fields = PROJECT_INPUTS[action];
|
|
21
|
+
if (!fields) return null;
|
|
22
|
+
const input = raw && typeof raw === "object" && !Array.isArray(raw) ? raw : {};
|
|
23
|
+
const out = {};
|
|
24
|
+
for (const key of [...fields, ...PROJECT_OPTIONAL[action] || []]) {
|
|
25
|
+
const v = input[key];
|
|
26
|
+
if (v === void 0 && !fields.includes(key)) continue;
|
|
27
|
+
if (typeof v !== "string") return null;
|
|
28
|
+
const s = v.replace(/\s+/g, " ").trim();
|
|
29
|
+
if (s.length > (INPUT_MAX[key] || 120)) return null;
|
|
30
|
+
if ((key === "name" || key === "slug") && s.startsWith("-")) return null;
|
|
31
|
+
if (s) out[key] = s;
|
|
32
|
+
}
|
|
33
|
+
if (out.name && !projectNameOk(out.name)) return null;
|
|
34
|
+
if (out.coordinatorProfile && !profileNameOk(out.coordinatorProfile) || out.threadProfile && !profileNameOk(out.threadProfile)) return null;
|
|
35
|
+
return (PROJECT_REQUIRED[action] || []).every((k) => out[k]) ? out : null;
|
|
36
|
+
}
|
|
37
|
+
function projectNameOk(name) {
|
|
38
|
+
const s = (name || "").trim();
|
|
39
|
+
return Boolean(s) && !/[/\\]|\.\./.test(s) && /[a-z0-9]/i.test(s);
|
|
40
|
+
}
|
|
41
|
+
function profileNameOk(name) {
|
|
42
|
+
return /^(?![-.])[A-Za-z0-9._-]{1,40}$/.test(name || "");
|
|
43
|
+
}
|
|
44
|
+
function parseProfileList(text) {
|
|
45
|
+
var _a, _b, _c;
|
|
46
|
+
const lines = text.split("\n");
|
|
47
|
+
const head = lines.findIndex((l) => l.startsWith("Profiles ("));
|
|
48
|
+
const defaults = ((_a = /^Defaults for new projects: (.*)$/m.exec(text)) == null ? void 0 : _a[1]) || "";
|
|
49
|
+
const thread = (_b = /\bthread_profile = ([^\s,]+)/.exec(defaults)) == null ? void 0 : _b[1];
|
|
50
|
+
const coordinator = (_c = /\bcoordinator_profile = ([^\s,]+)/.exec(defaults)) == null ? void 0 : _c[1];
|
|
51
|
+
if (head < 0 || !thread || !coordinator) return null;
|
|
52
|
+
const profiles = [];
|
|
53
|
+
for (const line of lines.slice(head + 1)) {
|
|
54
|
+
const m = /^ {2}(\S+) +(\S+)/.exec(line);
|
|
55
|
+
if (!m) break;
|
|
56
|
+
if (profileNameOk(m[1])) profiles.push({ name: m[1], agent: m[2] });
|
|
57
|
+
}
|
|
58
|
+
const allowed = (who) => {
|
|
59
|
+
var _a2, _b2, _c2;
|
|
60
|
+
const v = (_c2 = (_b2 = (_a2 = new RegExp(`^Allowed for ${who} in projects without their own list: (.*)$`, "m").exec(text)) == null ? void 0 : _a2[1]) == null ? void 0 : _b2.trim()) != null ? _c2 : "every profile";
|
|
61
|
+
if (v === "every profile") return null;
|
|
62
|
+
return v === "none" ? [] : v.split(",").map((s) => s.trim()).filter(Boolean);
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
profiles,
|
|
66
|
+
defaults: { thread, coordinator },
|
|
67
|
+
allowed: { thread: allowed("threads"), coordinator: allowed("the coordinator") }
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function repoArgument(path, repo, project) {
|
|
71
|
+
const same = repo.local ? project.local : !project.local && repo.profileId === project.profileId;
|
|
72
|
+
if (same) return /@[A-Za-z0-9._-]+$/.test(path) ? null : path;
|
|
73
|
+
if (!project.local || repo.local || !repo.profileId || !/^[A-Za-z0-9._-]+$/.test(repo.profileId)) return null;
|
|
74
|
+
return `${path}@${repo.profileId}`;
|
|
75
|
+
}
|
|
76
|
+
function goalWithTask(goal, task, lang = "en") {
|
|
77
|
+
const t = (task || "").trim();
|
|
78
|
+
if (!t) return goal;
|
|
79
|
+
if (!goal.trim()) return t;
|
|
80
|
+
const sep = /[.!?…]$/.test(goal) ? "" : ".";
|
|
81
|
+
return `${goal}${sep} ${lang === "fr" ? "T\xE2che en cours" : "Current task"}: ${t}`;
|
|
82
|
+
}
|
|
83
|
+
function projectCommandArgs(action, input, ctx) {
|
|
84
|
+
const session = ctx.session && ctx.session !== "default" ? ["--session", ctx.session] : [];
|
|
85
|
+
const goalArg = (g) => g ? ["--goal", g] : [];
|
|
86
|
+
if (action === "adopt-workspace") {
|
|
87
|
+
if (!ctx.pane || !ctx.cwd) throw new Error("pane and folder required");
|
|
88
|
+
return [
|
|
89
|
+
"adopt-workspace",
|
|
90
|
+
"--name",
|
|
91
|
+
input.name,
|
|
92
|
+
"--pane",
|
|
93
|
+
ctx.pane,
|
|
94
|
+
"--workspace-cwd",
|
|
95
|
+
ctx.cwd,
|
|
96
|
+
...goalArg(goalWithTask(input.goal || "", input.task, ctx.lang)),
|
|
97
|
+
...session
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
if (action === "new") {
|
|
101
|
+
return [
|
|
102
|
+
"new",
|
|
103
|
+
input.name,
|
|
104
|
+
...goalArg(input.goal || ""),
|
|
105
|
+
...input.repo ? ["--repo", input.repo] : [],
|
|
106
|
+
...input.coordinatorProfile ? ["--coordinator-profile", input.coordinatorProfile] : [],
|
|
107
|
+
...input.threadProfile ? ["--thread-profile", input.threadProfile] : []
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
if (action === "open") return ["open", input.slug, ...session];
|
|
111
|
+
if (action === "doctor") return ["doctor", ...session];
|
|
112
|
+
return [action, input.slug];
|
|
113
|
+
}
|
|
114
|
+
function setupHeader(o) {
|
|
115
|
+
const home = o.home.replace(/\/+$/, "");
|
|
116
|
+
const version = (o.version || "").replace(/^herdr-projects\s+/, "").trim();
|
|
117
|
+
return [
|
|
118
|
+
{ key: "version", value: version || "?", warn: !version },
|
|
119
|
+
{ key: "binary", value: o.binary, warn: Boolean(home) && !o.binary.startsWith(`${home}/`) },
|
|
120
|
+
{ key: "home", value: home || "?", warn: !home },
|
|
121
|
+
{ key: "config", value: home ? `${home}/.config/herdr/config.toml` : "?" }
|
|
122
|
+
];
|
|
123
|
+
}
|
|
124
|
+
function proposedRepo(root, home) {
|
|
125
|
+
const r = (root || "").trim().replace(/\/+$/, "");
|
|
126
|
+
const h = home.replace(/\/+$/, "");
|
|
127
|
+
return r.startsWith("/") && h && r.startsWith(`${h}/`) ? r : "";
|
|
128
|
+
}
|
|
129
|
+
function tickerRunning(status) {
|
|
130
|
+
return /^ticker: running\b/m.test(status || "");
|
|
131
|
+
}
|
|
132
|
+
function readOnlyMessage(error, o) {
|
|
133
|
+
var _a;
|
|
134
|
+
if (!/read-only file system|os error 30\b|EROFS/i.test(error)) return null;
|
|
135
|
+
const path = ((_a = /(\/[^:\n]*?):\s*Read-only file system/i.exec(error)) == null ? void 0 : _a[1]) || "";
|
|
136
|
+
if (o.docker) {
|
|
137
|
+
return path ? fmt("wherdr runs in Docker with your home folder read-only: herdr-projects cannot write to {path}. Mount its projects folder (~/.herdr-projects by default) read-write in docker-compose.yml (see README, \u201CHerdr plugins\u201D), then restart the container.", { path }) : "wherdr runs in Docker with your home folder read-only: herdr-projects cannot write. Mount its projects folder (~/.herdr-projects by default) read-write in docker-compose.yml (see README, \u201CHerdr plugins\u201D), then restart the container.";
|
|
138
|
+
}
|
|
139
|
+
return path ? fmt("herdr-projects cannot write to {path}: read-only file system.", { path }) : "herdr-projects cannot write: read-only file system.";
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export { PROJECT_INPUTS as P, projectCommandArgs as a, parseProfileList as b, cleanProjectInput as c, readOnlyMessage as d, proposedRepo as p, repoArgument as r, setupHeader as s, tickerRunning as t };
|
|
143
|
+
//# sourceMappingURL=projectsActions.mjs.map
|