@wirecat/zoom-cli 0.83.0 → 0.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/contracts/wirecat.json +34 -1
- package/dist/account-removal.d.ts +1 -1
- package/dist/account-removal.d.ts.map +1 -1
- package/dist/account-removal.js +1 -1
- package/dist/account-removal.js.map +1 -1
- package/dist/agent-skill.js +1 -1
- package/dist/agent-skill.js.map +1 -1
- package/dist/answer-entities.d.ts +1 -1
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +1 -1
- package/dist/answer-entities.js.map +1 -1
- package/dist/answer-output.d.ts +2 -2
- package/dist/answer-output.d.ts.map +1 -1
- package/dist/answer-output.js +1 -1
- package/dist/answer-output.js.map +1 -1
- package/dist/answer-policy.d.ts.map +1 -1
- package/dist/answer-policy.js +1 -2
- package/dist/answer-policy.js.map +1 -1
- package/dist/answers.js +1 -1
- package/dist/answers.js.map +1 -1
- package/dist/api.d.ts +2 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +1 -1
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -2
- package/dist/archive-commands.js.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +1 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/archive-transcripts.d.ts +1 -1
- package/dist/archive-transcripts.d.ts.map +1 -1
- package/dist/archive-transcripts.js +1 -2
- package/dist/archive-transcripts.js.map +1 -1
- package/dist/bin/main.js +3 -3
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +11 -11
- package/dist/bundle/answer-policy-OQQWAUHH.js +33 -0
- package/dist/bundle/chunk-3YDF76DP.js +922 -0
- package/dist/bundle/chunk-AEWYRB6F.js +8 -0
- package/dist/bundle/{chunk-OGTN2KVG.js → chunk-AF2Z6VOG.js} +4 -14
- package/dist/bundle/{chunk-26TW5RZ6.js → chunk-DAYBU7WR.js} +61 -94
- package/dist/bundle/{chunk-2DK5BBFF.js → chunk-JD63PEI3.js} +3 -8
- package/dist/bundle/{chunk-H6A4NWYJ.js → chunk-L5ZYKXAY.js} +114 -128
- package/dist/bundle/{chunk-R6IA5UQB.js → chunk-W4TDCCT3.js} +8 -2
- package/dist/bundle/{chunk-XEOZTA3H.js → chunk-W6YFWJDR.js} +2 -5
- package/dist/bundle/{chunk-434YFJAE.js → chunk-WSGD5Q6L.js} +3 -9
- package/dist/bundle/config-MP5YLHEY.js +29 -0
- package/dist/bundle/{folders-ROKVKSCT.js → folders-B2GKJOC2.js} +2 -7
- package/dist/bundle/{main-GCK3VYAA.js → main-YZPLPXB7.js} +19 -41
- package/dist/bundle/{output-file-RYIOIXMD.js → output-file-PKA7MJEP.js} +3 -11
- package/dist/bundle/{program-OYLVYA4Z.js → program-7JY6XJ6K.js} +642 -801
- package/dist/bundle/run-log-ML7ZCWXD.js +54 -0
- package/dist/bundle/store-connection-LQGKS3DN.js +21 -0
- package/dist/bundle/streaming-PRGWGNHY.js +12 -0
- package/dist/bundle/tokens-57RJVBK6.js +18 -0
- package/dist/bundle/zm.js +4 -161
- package/dist/bundle/{zoom-app-4F4YY4OI.js → zoom-app-EYJST6GF.js} +5 -13
- package/dist/chat-file.d.ts +1 -1
- package/dist/chat-file.d.ts.map +1 -1
- package/dist/commands.js +1 -1
- package/dist/commands.js.map +1 -1
- package/dist/config-issues.d.ts +1 -1
- package/dist/config-issues.d.ts.map +1 -1
- package/dist/config-issues.js +1 -1
- package/dist/config-issues.js.map +1 -1
- package/dist/config.d.ts +1 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -2
- package/dist/config.js.map +1 -1
- package/dist/contacts-commands.d.ts +1 -1
- package/dist/contacts-commands.d.ts.map +1 -1
- package/dist/contacts-commands.js +1 -1
- package/dist/contacts-commands.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/execution.d.ts +1 -1
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +1 -1
- package/dist/execution.js.map +1 -1
- package/dist/files.d.ts +2 -2
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +1 -1
- package/dist/files.js.map +1 -1
- package/dist/first-screen.js +1 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/identity.d.ts +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +6 -0
- package/dist/identity.js.map +1 -1
- package/dist/ingestion-search-commands.d.ts +1 -1
- package/dist/ingestion-search-commands.d.ts.map +1 -1
- package/dist/ingestion-search-commands.js +1 -1
- package/dist/ingestion-search-commands.js.map +1 -1
- package/dist/local-transcription-commands.d.ts +1 -1
- package/dist/local-transcription-commands.d.ts.map +1 -1
- package/dist/local-transcription-commands.js +1 -2
- package/dist/local-transcription-commands.js.map +1 -1
- package/dist/local-transcription.d.ts +1 -2
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +3 -3
- package/dist/local-transcription.js.map +1 -1
- package/dist/meeting-commands.d.ts +1 -1
- package/dist/meeting-commands.d.ts.map +1 -1
- package/dist/meeting-commands.js +1 -2
- package/dist/meeting-commands.js.map +1 -1
- package/dist/meeting-communications-binding.d.ts +1 -2
- package/dist/meeting-communications-binding.d.ts.map +1 -1
- package/dist/meeting-communications-binding.js.map +1 -1
- package/dist/meeting-context-commands.d.ts +1 -1
- package/dist/meeting-context-commands.d.ts.map +1 -1
- package/dist/meeting-context-commands.js +1 -1
- package/dist/meeting-context-commands.js.map +1 -1
- package/dist/meeting-context.d.ts +2 -4
- package/dist/meeting-context.d.ts.map +1 -1
- package/dist/meeting-context.js +1 -1
- package/dist/meeting-context.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +1 -2
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-integration.d.ts +1 -1
- package/dist/meeting-integration.d.ts.map +1 -1
- package/dist/meeting-integration.js +1 -1
- package/dist/meeting-integration.js.map +1 -1
- package/dist/meeting-inventory.d.ts +1 -1
- package/dist/meeting-inventory.d.ts.map +1 -1
- package/dist/meeting-inventory.js +1 -1
- package/dist/meeting-inventory.js.map +1 -1
- package/dist/meeting-preparation.d.ts +1 -2
- package/dist/meeting-preparation.d.ts.map +1 -1
- package/dist/meeting-preparation.js +1 -1
- package/dist/meeting-preparation.js.map +1 -1
- package/dist/meeting-project-candidates.d.ts +1 -1
- package/dist/meeting-project-candidates.d.ts.map +1 -1
- package/dist/meeting-project-evidence-commands.d.ts +1 -1
- package/dist/meeting-project-evidence-commands.d.ts.map +1 -1
- package/dist/meeting-project-evidence-commands.js +1 -2
- package/dist/meeting-project-evidence-commands.js.map +1 -1
- package/dist/meeting-read-command-bindings.js +1 -1
- package/dist/meeting-read-command-bindings.js.map +1 -1
- package/dist/meeting-review-commands.d.ts +1 -3
- package/dist/meeting-review-commands.d.ts.map +1 -1
- package/dist/meeting-review-commands.js +1 -2
- package/dist/meeting-review-commands.js.map +1 -1
- package/dist/meeting-search-commands.d.ts +2 -3
- package/dist/meeting-search-commands.d.ts.map +1 -1
- package/dist/meeting-search-commands.js +2 -4
- package/dist/meeting-search-commands.js.map +1 -1
- package/dist/meeting-searches-commands.d.ts +1 -2
- package/dist/meeting-searches-commands.d.ts.map +1 -1
- package/dist/meeting-searches-commands.js +1 -2
- package/dist/meeting-searches-commands.js.map +1 -1
- package/dist/meeting-selection-options.d.ts +1 -1
- package/dist/meeting-selection-options.d.ts.map +1 -1
- package/dist/meeting-selection-options.js +1 -2
- package/dist/meeting-selection-options.js.map +1 -1
- package/dist/meeting-semantic-commands.d.ts +1 -2
- package/dist/meeting-semantic-commands.d.ts.map +1 -1
- package/dist/meeting-semantic-commands.js +1 -1
- package/dist/meeting-semantic-commands.js.map +1 -1
- package/dist/meeting-semantic.d.ts +2 -2
- package/dist/meeting-semantic.d.ts.map +1 -1
- package/dist/meeting-semantic.js +1 -1
- package/dist/meeting-semantic.js.map +1 -1
- package/dist/meeting-source.d.ts +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-stats-commands.d.ts +1 -3
- package/dist/meeting-stats-commands.d.ts.map +1 -1
- package/dist/meeting-stats-commands.js +1 -2
- package/dist/meeting-stats-commands.js.map +1 -1
- package/dist/models-commands.d.ts +1 -1
- package/dist/models-commands.d.ts.map +1 -1
- package/dist/models-commands.js +1 -1
- package/dist/models-commands.js.map +1 -1
- package/dist/occurrence-schedule.d.ts +1 -1
- package/dist/occurrence-schedule.d.ts.map +1 -1
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +1 -2
- package/dist/permissions.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/program-bindings.js +1 -1
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +1 -2
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/progress-commands.d.ts +1 -1
- package/dist/progress-commands.d.ts.map +1 -1
- package/dist/progress-commands.js +1 -2
- package/dist/progress-commands.js.map +1 -1
- package/dist/read-only.js +1 -1
- package/dist/read-only.js.map +1 -1
- package/dist/recording-archive.d.ts.map +1 -1
- package/dist/recording-archive.js +1 -2
- package/dist/recording-archive.js.map +1 -1
- package/dist/recording-manifest.js +1 -1
- package/dist/recording-manifest.js.map +1 -1
- package/dist/recording-partial-store.d.ts +2 -3
- package/dist/recording-partial-store.d.ts.map +1 -1
- package/dist/recording-partial-store.js +1 -1
- package/dist/recording-partial-store.js.map +1 -1
- package/dist/recording-promotion-store.d.ts +1 -2
- package/dist/recording-promotion-store.d.ts.map +1 -1
- package/dist/recording-promotion-store.js +1 -2
- package/dist/recording-promotion-store.js.map +1 -1
- package/dist/recording-schedule-commands.d.ts +1 -1
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +1 -1
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/recording-schedule-store.js +1 -1
- package/dist/recording-schedule-store.js.map +1 -1
- package/dist/recording-schedule-systemd.js +1 -1
- package/dist/recording-schedule-systemd.js.map +1 -1
- package/dist/recording-schedule.d.ts +1 -1
- package/dist/recording-schedule.d.ts.map +1 -1
- package/dist/recording-schedule.js +1 -1
- package/dist/recording-schedule.js.map +1 -1
- package/dist/recording-sync-store.d.ts +1 -1
- package/dist/recording-sync-store.d.ts.map +1 -1
- package/dist/recording-sync-store.js +1 -2
- package/dist/recording-sync-store.js.map +1 -1
- package/dist/recording-sync.d.ts +1 -1
- package/dist/recording-sync.d.ts.map +1 -1
- package/dist/recording-sync.js +1 -1
- package/dist/recording-sync.js.map +1 -1
- package/dist/recording-writer-lease.d.ts +1 -1
- package/dist/recording-writer-lease.d.ts.map +1 -1
- package/dist/recording-writer-lease.js +1 -1
- package/dist/recording-writer-lease.js.map +1 -1
- package/dist/recordings.d.ts +1 -1
- package/dist/recordings.d.ts.map +1 -1
- package/dist/recordings.js.map +1 -1
- package/dist/remote-meetings.d.ts +19 -19
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +1 -1
- package/dist/remote-meetings.js.map +1 -1
- package/dist/request-events.d.ts +1 -1
- package/dist/request-events.d.ts.map +1 -1
- package/dist/request-events.js +1 -1
- package/dist/request-events.js.map +1 -1
- package/dist/run-log.d.ts +1 -1
- package/dist/run-log.d.ts.map +1 -1
- package/dist/run-log.js +1 -1
- package/dist/run-log.js.map +1 -1
- package/dist/run.d.ts +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +1 -2
- package/dist/run.js.map +1 -1
- package/dist/series-inventory.d.ts +2 -2
- package/dist/series-inventory.js +1 -1
- package/dist/series-inventory.js.map +1 -1
- package/dist/setup-commands.d.ts +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +1 -1
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +1 -2
- package/dist/store-commands.js.map +1 -1
- package/dist/store-connection.d.ts +1 -3
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +14 -14
- package/dist/store-connection.js.map +1 -1
- package/dist/sync-progress.d.ts +4 -4
- package/dist/sync-progress.d.ts.map +1 -1
- package/dist/sync-progress.js +1 -1
- package/dist/sync-progress.js.map +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +1 -1
- package/dist/tokens.js.map +1 -1
- package/dist/unified-search.d.ts +1 -1
- package/dist/unified-search.d.ts.map +1 -1
- package/dist/upcoming-meetings.d.ts +2 -2
- package/dist/upcoming-meetings.js +1 -1
- package/dist/upcoming-meetings.js.map +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +1 -2
- package/dist/upgrade.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watch-commands.d.ts +1 -2
- package/dist/watch-commands.d.ts.map +1 -1
- package/dist/watch-commands.js +1 -2
- package/dist/watch-commands.js.map +1 -1
- package/dist/watch-service.d.ts +1 -1
- package/dist/watch-service.d.ts.map +1 -1
- package/dist/watch-service.js +1 -1
- package/dist/watch-service.js.map +1 -1
- package/dist/zoom-app.d.ts +2 -2
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +1 -1
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-search-commands.d.ts +1 -1
- package/dist/zoom-search-commands.d.ts.map +1 -1
- package/dist/zoom-search-commands.js +1 -1
- package/dist/zoom-search-commands.js.map +1 -1
- package/dist/zoom-session.d.ts +1 -1
- package/dist/zoom-session.d.ts.map +1 -1
- package/dist/zoom-session.js +1 -1
- package/dist/zoom-session.js.map +1 -1
- package/package.json +3 -3
- package/scenarios/person-in-meetings.md +1 -1
- package/skills/zoom-cli/SKILL.md +1 -1
- package/skills/zoom-cli/references/people-and-projects.md +5 -5
- package/skills/zoom-cli/references/prepare.md +2 -2
- package/dist/bundle/agent-3HDWEZ5M.js +0 -47
- package/dist/bundle/all-profiles-RY2OMSDL.js +0 -321
- package/dist/bundle/answer-policy-IFVXPPGW.js +0 -131
- package/dist/bundle/anthropic-36VPSF7B.js +0 -91
- package/dist/bundle/app-server-ZVJVUGB7.js +0 -267
- package/dist/bundle/bun-F4M4KCNA.js +0 -169
- package/dist/bundle/bun-sqlite-IOPYIUA7.js +0 -76
- package/dist/bundle/chunk-2IBKKVVZ.js +0 -335
- package/dist/bundle/chunk-2S54TM4N.js +0 -230
- package/dist/bundle/chunk-3AQHKXVR.js +0 -161
- package/dist/bundle/chunk-3CW2C7ZA.js +0 -217
- package/dist/bundle/chunk-3KUEZK5Z.js +0 -73
- package/dist/bundle/chunk-3PXUQFHX.js +0 -2333
- package/dist/bundle/chunk-3QN5KDFZ.js +0 -3012
- package/dist/bundle/chunk-575JMTDR.js +0 -562
- package/dist/bundle/chunk-5B2LV4MS.js +0 -26
- package/dist/bundle/chunk-5WL5RHOO.js +0 -167
- package/dist/bundle/chunk-6C7ESL5N.js +0 -295
- package/dist/bundle/chunk-6E4KLYNP.js +0 -229
- package/dist/bundle/chunk-7JDXR75Q.js +0 -465
- package/dist/bundle/chunk-AK3H2C65.js +0 -1349
- package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
- package/dist/bundle/chunk-AQLUAQXJ.js +0 -1259
- package/dist/bundle/chunk-ASTLGFTR.js +0 -12270
- package/dist/bundle/chunk-ATHBB7OU.js +0 -106
- package/dist/bundle/chunk-B2NM65RD.js +0 -80
- package/dist/bundle/chunk-B4KHDXJE.js +0 -64
- package/dist/bundle/chunk-BAFC7WNI.js +0 -276
- package/dist/bundle/chunk-BBGJQMRI.js +0 -34
- package/dist/bundle/chunk-BTLZYRIW.js +0 -1007
- package/dist/bundle/chunk-BZDS2X6Y.js +0 -5150
- package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
- package/dist/bundle/chunk-CDQUW25G.js +0 -3752
- package/dist/bundle/chunk-CJWGJBHW.js +0 -1044
- package/dist/bundle/chunk-D72URWJE.js +0 -532
- package/dist/bundle/chunk-D7RCUODT.js +0 -185
- package/dist/bundle/chunk-DFDN6AUB.js +0 -21
- package/dist/bundle/chunk-DNCLQPOM.js +0 -7
- package/dist/bundle/chunk-DQJECJUE.js +0 -2257
- package/dist/bundle/chunk-E4JQ3MCW.js +0 -2338
- package/dist/bundle/chunk-E4ODYLEK.js +0 -209
- package/dist/bundle/chunk-EE45N67Q.js +0 -86
- package/dist/bundle/chunk-EEEU4MKK.js +0 -210
- package/dist/bundle/chunk-ESN3W2MZ.js +0 -2624
- package/dist/bundle/chunk-ETIZGA4P.js +0 -340
- package/dist/bundle/chunk-F44QK6CK.js +0 -52
- package/dist/bundle/chunk-FH2UFNH6.js +0 -54
- package/dist/bundle/chunk-FTH6WGYO.js +0 -24
- package/dist/bundle/chunk-FWACRG4X.js +0 -160
- package/dist/bundle/chunk-FXBHOCJK.js +0 -24600
- package/dist/bundle/chunk-G5SZL7G2.js +0 -150
- package/dist/bundle/chunk-G6CHEFAG.js +0 -108
- package/dist/bundle/chunk-GHJD7PE6.js +0 -1068
- package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
- package/dist/bundle/chunk-HKLRI2LB.js +0 -555
- package/dist/bundle/chunk-HMD4FZYY.js +0 -133
- package/dist/bundle/chunk-HO4JGD4Q.js +0 -16
- package/dist/bundle/chunk-HTQTIKWP.js +0 -928
- package/dist/bundle/chunk-HUAHLO6N.js +0 -29
- package/dist/bundle/chunk-IANKXHSE.js +0 -46
- package/dist/bundle/chunk-IQZXFWFI.js +0 -170
- package/dist/bundle/chunk-ISQ23VKV.js +0 -123
- package/dist/bundle/chunk-JEH33ZCD.js +0 -58
- package/dist/bundle/chunk-JUNQYWQ2.js +0 -228
- package/dist/bundle/chunk-JUXMVQWJ.js +0 -799
- package/dist/bundle/chunk-KHQDWYCG.js +0 -82
- package/dist/bundle/chunk-KYRYD4CR.js +0 -38
- package/dist/bundle/chunk-LBGT6W4R.js +0 -377
- package/dist/bundle/chunk-LN7HRYTH.js +0 -80
- package/dist/bundle/chunk-MEB7HBTM.js +0 -95
- package/dist/bundle/chunk-MEEFWYX3.js +0 -388
- package/dist/bundle/chunk-MNOAMJ6H.js +0 -94
- package/dist/bundle/chunk-MYHPXJDG.js +0 -142
- package/dist/bundle/chunk-NGI37RFW.js +0 -692
- package/dist/bundle/chunk-NZMWD7Y3.js +0 -68149
- package/dist/bundle/chunk-O6IECJRM.js +0 -54
- package/dist/bundle/chunk-OBWL3BUV.js +0 -800
- package/dist/bundle/chunk-OEEWVKJX.js +0 -53
- package/dist/bundle/chunk-OQYZ3W4K.js +0 -374
- package/dist/bundle/chunk-P3ZCTYGW.js +0 -101
- package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
- package/dist/bundle/chunk-PVEBAHFU.js +0 -100
- package/dist/bundle/chunk-R2B6PUVI.js +0 -206
- package/dist/bundle/chunk-RLOH7RDN.js +0 -362
- package/dist/bundle/chunk-RQ4AXSCJ.js +0 -616
- package/dist/bundle/chunk-RYGTCRFZ.js +0 -140
- package/dist/bundle/chunk-S4PXWIE4.js +0 -408
- package/dist/bundle/chunk-SDZZYZLL.js +0 -58
- package/dist/bundle/chunk-SHQAYUK6.js +0 -1199
- package/dist/bundle/chunk-T3W4V4A6.js +0 -63
- package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
- package/dist/bundle/chunk-TDWPOSPR.js +0 -198
- package/dist/bundle/chunk-TER3N27H.js +0 -353
- package/dist/bundle/chunk-TMTNP7QN.js +0 -214
- package/dist/bundle/chunk-TO5UEWXR.js +0 -288
- package/dist/bundle/chunk-TXDR6YSF.js +0 -23
- package/dist/bundle/chunk-TY7NDMFY.js +0 -46
- package/dist/bundle/chunk-UAWSINMC.js +0 -875
- package/dist/bundle/chunk-UBH7YF3C.js +0 -9354
- package/dist/bundle/chunk-UEAE3JUU.js +0 -46576
- package/dist/bundle/chunk-UHR363OD.js +0 -357
- package/dist/bundle/chunk-UM52A76S.js +0 -259
- package/dist/bundle/chunk-URP6BTHN.js +0 -624
- package/dist/bundle/chunk-UWQEAA6S.js +0 -13
- package/dist/bundle/chunk-VR7QZGRU.js +0 -185
- package/dist/bundle/chunk-VRH5PBSL.js +0 -755
- package/dist/bundle/chunk-VTLQTQKY.js +0 -1756
- package/dist/bundle/chunk-VTYNLTDW.js +0 -331
- package/dist/bundle/chunk-WY7XG6TE.js +0 -76
- package/dist/bundle/chunk-XH23ML2V.js +0 -195
- package/dist/bundle/chunk-XYF76A26.js +0 -27556
- package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
- package/dist/bundle/chunk-ZDYJAEVB.js +0 -84
- package/dist/bundle/chunk-ZJ63HDBT.js +0 -71
- package/dist/bundle/chunk-ZT4ZPUIO.js +0 -218
- package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
- package/dist/bundle/cli-JK6PQSSN.js +0 -1270
- package/dist/bundle/command-contract-F3QNBKPX.js +0 -46
- package/dist/bundle/command-server-entry-DJLGN62J.js +0 -176
- package/dist/bundle/config-TYYMV3HV.js +0 -118
- package/dist/bundle/decode-ZZICNNFF.js +0 -31
- package/dist/bundle/dispatch-FKMIPCPQ.js +0 -412
- package/dist/bundle/dist-NQPF25XI.js +0 -322
- package/dist/bundle/dist-PAKDDIBT.js +0 -191
- package/dist/bundle/dist-XUFQCJXW.js +0 -7577
- package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
- package/dist/bundle/embed-T64EUKUI.js +0 -38
- package/dist/bundle/embedder-ZEKISZXI.js +0 -111
- package/dist/bundle/failure-XTWBYI2A.js +0 -25
- package/dist/bundle/first-run-ZFNY4RRH.js +0 -29
- package/dist/bundle/first-screen-LPGCHRHZ.js +0 -47
- package/dist/bundle/instructions-4H7UREH2.js +0 -11
- package/dist/bundle/mcp-5HFPWC3W.js +0 -167
- package/dist/bundle/meeting-combined-7HDPOUPB.js +0 -28
- package/dist/bundle/meeting-model-MVUW7UPQ.js +0 -26
- package/dist/bundle/meeting-semantic-IF633WGX.js +0 -23
- package/dist/bundle/meetings-RY2AAPHV.js +0 -332
- package/dist/bundle/node-KM3CUABH.js +0 -2340
- package/dist/bundle/node-P3PUHKYH.js +0 -176
- package/dist/bundle/node-TLZSIHIJ.js +0 -21
- package/dist/bundle/node-sqlite-ASAZJNHE.js +0 -74
- package/dist/bundle/oauth-4U3OCK3W.js +0 -20
- package/dist/bundle/oauth-AJARLPSY.js +0 -46
- package/dist/bundle/open-SEJRY2ZI.js +0 -23
- package/dist/bundle/openai-FZDSC2AA.js +0 -28
- package/dist/bundle/process-AFIXYXWL.js +0 -91
- package/dist/bundle/prompt-BCRD64F4.js +0 -17
- package/dist/bundle/public-SVJILCNI.js +0 -206
- package/dist/bundle/recognize-25ITJWGX.js +0 -26
- package/dist/bundle/remote-5FBAJX7O.js +0 -32
- package/dist/bundle/rerank-2HGWWORY.js +0 -52
- package/dist/bundle/run-log-7HRF4Y47.js +0 -145
- package/dist/bundle/serve-RL35MSJD.js +0 -199
- package/dist/bundle/server-QUSBWACP.js +0 -229
- package/dist/bundle/server-SCK2SRDK.js +0 -96
- package/dist/bundle/services-BGRIQNDC.js +0 -609
- package/dist/bundle/speech-4W3ZMTFK.js +0 -89
- package/dist/bundle/sqlite-runtime-K3KLRZCV.js +0 -20
- package/dist/bundle/state-GYL4C74G.js +0 -36
- package/dist/bundle/store-27UQMNEO.js +0 -189
- package/dist/bundle/store-NLYH5SQX.js +0 -316
- package/dist/bundle/store-connection-CZILWRSR.js +0 -112
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +0 -84
- package/dist/bundle/streaming-73EKEGPF.js +0 -18
- package/dist/bundle/surface-CV3C4RV2.js +0 -82
- package/dist/bundle/tokens-PY3S22LY.js +0 -27
- /package/dist/bundle/{chunk-7ECP5ZQR.js → chunk-7O7XM37N.js} +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
MAX_SECRET_INPUT,
|
|
5
|
-
bufferedInput,
|
|
6
|
-
inputPolicy
|
|
7
|
-
} from "./chunk-KHQDWYCG.js";
|
|
8
|
-
import {
|
|
9
|
-
CliError
|
|
10
|
-
} from "./chunk-IANKXHSE.js";
|
|
11
|
-
import {
|
|
12
|
-
__name
|
|
13
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
14
|
-
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
|
-
import { createInterface } from "node:readline";
|
|
17
|
-
import { Writable } from "node:stream";
|
|
18
|
-
var EMPTY_TRIES = 3;
|
|
19
|
-
var pasteHint = /* @__PURE__ */ __name((platform = process.platform) => `Nothing arrived. To paste in a terminal, use ${platform === "darwin" ? "Cmd+V" : "Ctrl+Shift+V (or right-click \u2192 Paste)"}.`, "pasteHint");
|
|
20
|
-
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
21
|
-
const policy = inputPolicy(input);
|
|
22
|
-
const signals = [givenSignal, policy.signal].filter((one) => one !== void 0);
|
|
23
|
-
const signal = signals.length ? AbortSignal.any(signals) : void 0;
|
|
24
|
-
const cancelled = /* @__PURE__ */ __name(() => new CliError("cancelled", "cancelled \u2014 nothing was stored"), "cancelled");
|
|
25
|
-
if (signal?.aborted)
|
|
26
|
-
throw cancelled();
|
|
27
|
-
if (input.isTTY && policy.noInput)
|
|
28
|
-
throw new CliError("validation_error", "interactive input is disabled \u2014 provide the input through a pipe", {
|
|
29
|
-
reason: "input.required"
|
|
30
|
-
});
|
|
31
|
-
if (!input.isTTY) {
|
|
32
|
-
return (await bufferedInput(input, {
|
|
33
|
-
maxBytes: Math.min(policy.maxBytes ?? MAX_SECRET_INPUT, MAX_SECRET_INPUT),
|
|
34
|
-
...signal ? { signal } : {}
|
|
35
|
-
})).toString("utf8").trim();
|
|
36
|
-
}
|
|
37
|
-
let muted = false;
|
|
38
|
-
const shim = new Writable({
|
|
39
|
-
write(chunk, _encoding, done) {
|
|
40
|
-
if (!muted)
|
|
41
|
-
output.write(chunk);
|
|
42
|
-
done();
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
const reader = createInterface({ input, output: shim, terminal: true });
|
|
46
|
-
const abort = /* @__PURE__ */ __name(() => reader.close(), "abort");
|
|
47
|
-
let bytes = 0;
|
|
48
|
-
let inputFailure;
|
|
49
|
-
const data = /* @__PURE__ */ __name((chunk) => {
|
|
50
|
-
bytes += Buffer.byteLength(chunk);
|
|
51
|
-
if (bytes > Math.min(policy.maxBytes ?? MAX_SECRET_INPUT, MAX_SECRET_INPUT)) {
|
|
52
|
-
inputFailure = new CliError("validation_error", "secret input exceeds its byte limit", {
|
|
53
|
-
reason: "input.too-large",
|
|
54
|
-
retryable: false
|
|
55
|
-
});
|
|
56
|
-
reader.close();
|
|
57
|
-
}
|
|
58
|
-
}, "data");
|
|
59
|
-
const inputError = /* @__PURE__ */ __name((error) => {
|
|
60
|
-
inputFailure = error;
|
|
61
|
-
reader.close();
|
|
62
|
-
}, "inputError");
|
|
63
|
-
input.on("data", data).on("error", inputError);
|
|
64
|
-
try {
|
|
65
|
-
const answer = await new Promise((resolve, reject) => {
|
|
66
|
-
const cancel = /* @__PURE__ */ __name(() => reject(inputFailure ?? cancelled()), "cancel");
|
|
67
|
-
reader.once("SIGINT", cancel);
|
|
68
|
-
reader.once("close", cancel);
|
|
69
|
-
signal?.addEventListener("abort", abort, { once: true });
|
|
70
|
-
const ask = /* @__PURE__ */ __name((tries) => {
|
|
71
|
-
muted = false;
|
|
72
|
-
reader.question(prompt, (line) => {
|
|
73
|
-
if (echo || line.trim() || tries >= EMPTY_TRIES)
|
|
74
|
-
return resolve(line);
|
|
75
|
-
output.write(`
|
|
76
|
-
${pasteHint()}
|
|
77
|
-
`);
|
|
78
|
-
ask(tries + 1);
|
|
79
|
-
});
|
|
80
|
-
muted = !echo;
|
|
81
|
-
}, "ask");
|
|
82
|
-
ask(1);
|
|
83
|
-
});
|
|
84
|
-
if (!echo && !answer.trim())
|
|
85
|
-
throw new CliError("validation_error", `nothing arrived after ${EMPTY_TRIES} tries. ${pasteHint()}`, {
|
|
86
|
-
reason: "input.empty"
|
|
87
|
-
});
|
|
88
|
-
return answer.trim();
|
|
89
|
-
} finally {
|
|
90
|
-
input.off("data", data).off("error", inputError);
|
|
91
|
-
signal?.removeEventListener("abort", abort);
|
|
92
|
-
reader.close();
|
|
93
|
-
output.write("\n");
|
|
94
|
-
}
|
|
95
|
-
}, "readSecret");
|
|
96
|
-
|
|
97
|
-
export {
|
|
98
|
-
pasteHint,
|
|
99
|
-
readSecret
|
|
100
|
-
};
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
singleLine
|
|
5
|
-
} from "./chunk-BBGJQMRI.js";
|
|
6
|
-
import {
|
|
7
|
-
__name
|
|
8
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
-
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
11
|
-
var FIRST_PARTY_TOOLS = [
|
|
12
|
-
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
13
|
-
{ name: "max", package: "@wirecat/max-cli" },
|
|
14
|
-
{ name: "wa", package: "@wirecat/whatsapp-cli" },
|
|
15
|
-
{ name: "zm", package: "@wirecat/zoom-cli" },
|
|
16
|
-
{ name: "drive", package: "@wirecat/drive-cli" },
|
|
17
|
-
{ name: "memo", package: "@wirecat/cli-memo" },
|
|
18
|
-
{ name: "mail", package: "@wirecat/mail-cli" },
|
|
19
|
-
// memo reads email today; the name is held for a tool of its own.
|
|
20
|
-
{ name: "email" }
|
|
21
|
-
];
|
|
22
|
-
var BUILT_IN_COMMANDS = ["help", "version", "shortcuts", "doctor", "update", "upgrade", "app"];
|
|
23
|
-
var RESERVED_NAMES = [
|
|
24
|
-
...FIRST_PARTY_TOOLS.map((tool) => tool.name),
|
|
25
|
-
...BUILT_IN_COMMANDS,
|
|
26
|
-
"wcat"
|
|
27
|
-
];
|
|
28
|
-
var TOOL_NAME = /^[a-z][a-z0-9-]{0,39}$/;
|
|
29
|
-
var PROGRAM_PREFIX = "wcat-";
|
|
30
|
-
var DESCRIBE_FLAG = "--wcat-describe";
|
|
31
|
-
var DESCRIBE_MAX_BYTES = 64 * 1024;
|
|
32
|
-
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
33
|
-
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
35
|
-
var DESCRIBE_FORMAT = 1;
|
|
36
|
-
var DESCRIBE_MANIFEST_FORMAT = 2;
|
|
37
|
-
var describeAnswer = /* @__PURE__ */ __name((tool, manifest) => {
|
|
38
|
-
const answer = {
|
|
39
|
-
wcat_describe: DESCRIBE_FORMAT,
|
|
40
|
-
name: tool.command,
|
|
41
|
-
version: tool.version,
|
|
42
|
-
description: tool.description,
|
|
43
|
-
...tool.docs ? { docs_url: tool.docs } : {}
|
|
44
|
-
};
|
|
45
|
-
if (!manifest)
|
|
46
|
-
return answer;
|
|
47
|
-
const full = {
|
|
48
|
-
...answer,
|
|
49
|
-
wcat_describe: DESCRIBE_MANIFEST_FORMAT,
|
|
50
|
-
desktop: manifest.desktop,
|
|
51
|
-
manifest_sha256: manifest.sha256
|
|
52
|
-
};
|
|
53
|
-
return Buffer.byteLength(`${JSON.stringify(full)}
|
|
54
|
-
`) > DESCRIBE_MAX_BYTES ? answer : full;
|
|
55
|
-
}, "describeAnswer");
|
|
56
|
-
var MAX_TEXT = 200;
|
|
57
|
-
var clean = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim() !== "" ? singleLine(value.trim()).slice(0, MAX_TEXT) : void 0, "clean");
|
|
58
|
-
var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
59
|
-
let answer;
|
|
60
|
-
try {
|
|
61
|
-
answer = JSON.parse(text);
|
|
62
|
-
} catch {
|
|
63
|
-
return void 0;
|
|
64
|
-
}
|
|
65
|
-
if (typeof answer !== "object" || answer === null || !("wcat_describe" in answer))
|
|
66
|
-
return void 0;
|
|
67
|
-
const { version, description, docs_url: docs, manifest_sha256: sha } = answer;
|
|
68
|
-
const url = clean(docs);
|
|
69
|
-
return {
|
|
70
|
-
version: clean(version) ?? "",
|
|
71
|
-
description: clean(description) ?? "",
|
|
72
|
-
...url && /^https?:\/\//.test(url) ? { docs: url } : {},
|
|
73
|
-
...typeof sha === "string" && /^[0-9a-f]{64}$/.test(sha) ? { manifestSha256: sha } : {}
|
|
74
|
-
};
|
|
75
|
-
}, "parseDescribe");
|
|
76
|
-
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
78
|
-
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
79
|
-
import { join } from "node:path";
|
|
80
|
-
var SHIM_FORMAT = 2;
|
|
81
|
-
var MARK = /^(?:#|REM) wirecat-shim (\d+) (launcher|shortcut) (\S+)\r?$/m;
|
|
82
|
-
var NOTE = {
|
|
83
|
-
launcher: "Written by @wirecat/cli-base. Any WireCat tool rewrites it when it breaks; it is safe to delete.",
|
|
84
|
-
shortcut: "Made by `wcat shortcuts add`; `wcat shortcuts remove` takes it out."
|
|
85
|
-
};
|
|
86
|
-
var shellQuote = /* @__PURE__ */ __name((text) => `'${text.replaceAll("'", `'\\''`)}'`, "shellQuote");
|
|
87
|
-
var launcherBody = /* @__PURE__ */ __name((dir, target, name) => [
|
|
88
|
-
'ok() { [ -f "$1" ] && [ -x "$1" ]; }',
|
|
89
|
-
`dir=${shellQuote(dir)}`,
|
|
90
|
-
`target=${shellQuote(join(dir, target))}`,
|
|
91
|
-
'if ! ok "$target"; then',
|
|
92
|
-
' for t in "$dir"/wcat-*; do',
|
|
93
|
-
' if ok "$t"; then target=$t; break; fi',
|
|
94
|
-
" done",
|
|
95
|
-
"fi",
|
|
96
|
-
`if ok "$target"; then exec "$target" ${DISPATCH_FLAG} "$@"; fi`,
|
|
97
|
-
'if [ -z "$WIRECAT_LAUNCHER_SKIP" ]; then',
|
|
98
|
-
" WIRECAT_LAUNCHER_SKIP=1; export WIRECAT_LAUNCHER_SKIP",
|
|
99
|
-
" set -f; oldifs=$IFS; IFS=:",
|
|
100
|
-
" for d in $PATH; do",
|
|
101
|
-
` if [ -n "$d" ] && [ "$d" != "$dir" ] && ok "$d/${name}"; then IFS=$oldifs; exec "$d/${name}" "$@"; fi`,
|
|
102
|
-
" done",
|
|
103
|
-
" IFS=$oldifs; set +f",
|
|
104
|
-
"fi",
|
|
105
|
-
`printf '%s\\n' "${name}: $target is missing and no other ${name}-* program was found in $dir or on PATH." \\`,
|
|
106
|
-
` "This launcher is safe to delete: $dir/${name}" >&2`,
|
|
107
|
-
"exit 127"
|
|
108
|
-
], "launcherBody");
|
|
109
|
-
var shimFiles = /* @__PURE__ */ __name((kind, { dir, name, target, platform }) => {
|
|
110
|
-
const mark = `wirecat-shim ${SHIM_FORMAT} ${kind} ${target}`;
|
|
111
|
-
const extra = kind === "launcher" ? ` ${DISPATCH_FLAG}` : "";
|
|
112
|
-
if (platform !== "win32")
|
|
113
|
-
return [
|
|
114
|
-
{
|
|
115
|
-
path: join(dir, name),
|
|
116
|
-
text: [
|
|
117
|
-
"#!/bin/sh",
|
|
118
|
-
`# ${mark}`,
|
|
119
|
-
`# ${NOTE[kind]}`,
|
|
120
|
-
...kind === "launcher" ? launcherBody(dir, target, name) : [`exec ${shellQuote(join(dir, target))} "$@"`],
|
|
121
|
-
""
|
|
122
|
-
].join("\n")
|
|
123
|
-
}
|
|
124
|
-
];
|
|
125
|
-
return [
|
|
126
|
-
{
|
|
127
|
-
path: join(dir, `${name}.cmd`),
|
|
128
|
-
text: ["@ECHO off", `REM ${mark}`, `REM ${NOTE[kind]}`, `"%~dp0${target}"${extra} %*`, ""].join("\r\n")
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
path: join(dir, `${name}.ps1`),
|
|
132
|
-
text: [
|
|
133
|
-
`# ${mark}`,
|
|
134
|
-
`# ${NOTE[kind]}`,
|
|
135
|
-
// PowerShell hands a .cmd its arguments unquoted, so `a&b` would run `b`; npm and pnpm write a .ps1 beside
|
|
136
|
-
// their .cmd, and it is started instead whenever it is there.
|
|
137
|
-
`$stem = Join-Path $PSScriptRoot "${target.replace(/\.(cmd|exe|bat)$/i, "")}"`,
|
|
138
|
-
`$target = if (Test-Path -LiteralPath "$stem.ps1") { "$stem.ps1" } else { Join-Path $PSScriptRoot "${target}" }`,
|
|
139
|
-
"if ($MyInvocation.ExpectingInput) {",
|
|
140
|
-
` $input | & $target${extra} @args`,
|
|
141
|
-
"} else {",
|
|
142
|
-
` & $target${extra} @args`,
|
|
143
|
-
"}",
|
|
144
|
-
"exit $LASTEXITCODE",
|
|
145
|
-
""
|
|
146
|
-
].join("\r\n")
|
|
147
|
-
}
|
|
148
|
-
];
|
|
149
|
-
}, "shimFiles");
|
|
150
|
-
var parseShim = /* @__PURE__ */ __name((text) => {
|
|
151
|
-
const found = MARK.exec(text.split("\n", 3).join("\n"));
|
|
152
|
-
if (!found)
|
|
153
|
-
return void 0;
|
|
154
|
-
return { format: Number(found[1]), kind: found[2], target: found[3] };
|
|
155
|
-
}, "parseShim");
|
|
156
|
-
var MAX_SHIM_BYTES = 4096;
|
|
157
|
-
var fileState = /* @__PURE__ */ __name((path) => {
|
|
158
|
-
let stat;
|
|
159
|
-
try {
|
|
160
|
-
stat = lstatSync(path);
|
|
161
|
-
} catch (error) {
|
|
162
|
-
return error.code === "ENOENT" ? { state: "missing" } : { state: "foreign" };
|
|
163
|
-
}
|
|
164
|
-
if (!stat.isFile() || stat.size > MAX_SHIM_BYTES)
|
|
165
|
-
return { state: "foreign" };
|
|
166
|
-
try {
|
|
167
|
-
const text = readFileSync(path, "utf8");
|
|
168
|
-
const mark = parseShim(text);
|
|
169
|
-
return mark ? { state: "ours", mark, text } : { state: "foreign" };
|
|
170
|
-
} catch {
|
|
171
|
-
return { state: "foreign" };
|
|
172
|
-
}
|
|
173
|
-
}, "fileState");
|
|
174
|
-
var exists = /* @__PURE__ */ __name((path) => {
|
|
175
|
-
try {
|
|
176
|
-
return statSync(path).isFile();
|
|
177
|
-
} catch {
|
|
178
|
-
return false;
|
|
179
|
-
}
|
|
180
|
-
}, "exists");
|
|
181
|
-
var writeShim = /* @__PURE__ */ __name(({ path, text }) => {
|
|
182
|
-
const temporary = `${path}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;
|
|
183
|
-
try {
|
|
184
|
-
writeFileSync(temporary, text, { mode: 493 });
|
|
185
|
-
renameSync(temporary, path);
|
|
186
|
-
} finally {
|
|
187
|
-
rmSync(temporary, { force: true });
|
|
188
|
-
}
|
|
189
|
-
}, "writeShim");
|
|
190
|
-
|
|
191
|
-
export {
|
|
192
|
-
FIRST_PARTY_TOOLS,
|
|
193
|
-
BUILT_IN_COMMANDS,
|
|
194
|
-
TOOL_NAME,
|
|
195
|
-
PROGRAM_PREFIX,
|
|
196
|
-
DESCRIBE_FLAG,
|
|
197
|
-
DESCRIBE_MAX_BYTES,
|
|
198
|
-
DISPATCH_FLAG,
|
|
199
|
-
describeAnswer,
|
|
200
|
-
parseDescribe,
|
|
201
|
-
SHIM_FORMAT,
|
|
202
|
-
shimFiles,
|
|
203
|
-
fileState,
|
|
204
|
-
exists,
|
|
205
|
-
writeShim
|
|
206
|
-
};
|
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
isCliFailure
|
|
5
|
-
} from "./chunk-B2NM65RD.js";
|
|
6
|
-
import {
|
|
7
|
-
secretNamed,
|
|
8
|
-
withoutSecrets
|
|
9
|
-
} from "./chunk-MNOAMJ6H.js";
|
|
10
|
-
import {
|
|
11
|
-
isContentKey
|
|
12
|
-
} from "./chunk-3QN5KDFZ.js";
|
|
13
|
-
import {
|
|
14
|
-
__name
|
|
15
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
16
|
-
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
18
|
-
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
19
|
-
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
20
|
-
if (event.event === "store")
|
|
21
|
-
return `${MARK.store} ${event.operation.padEnd(16)} ${event.table} ${event.op} ${event.n}`;
|
|
22
|
-
if (event.event === "progress")
|
|
23
|
-
return `${MARK.progress} ${event.operation.padEnd(16)} ${Object.entries(event.counts).map(([field, count]) => `${count} ${field}`).join(" ")}`;
|
|
24
|
-
if (event.event === "warning") {
|
|
25
|
-
const counts = Object.entries(event.counts ?? {}).map(([field, count]) => `${count} ${field}`);
|
|
26
|
-
return [`${MARK.warning} ${(event.operation ?? "").padEnd(16)} ${event.code}`, ...counts, event.detail].filter(Boolean).join(" ");
|
|
27
|
-
}
|
|
28
|
-
const parts = [];
|
|
29
|
-
if (event.event === "cache") {
|
|
30
|
-
parts.push(event.reason);
|
|
31
|
-
if (event.ageMs !== void 0)
|
|
32
|
-
parts.push(`cached ${age(event.ageMs)}`);
|
|
33
|
-
} else {
|
|
34
|
-
if (event.opcode !== void 0)
|
|
35
|
-
parts.push(`op ${event.opcode}`, `seq ${event.seq}`);
|
|
36
|
-
if (event.method !== void 0 || event.endpointTemplate !== void 0)
|
|
37
|
-
parts.push([event.method, event.endpointTemplate].filter(Boolean).join(" "));
|
|
38
|
-
if (event.status !== void 0)
|
|
39
|
-
parts.push(`${event.status}`);
|
|
40
|
-
if (event.attempt !== void 0 && event.attempt > 1)
|
|
41
|
-
parts.push(`attempt ${event.attempt}`);
|
|
42
|
-
if (event.waitMs !== void 0)
|
|
43
|
-
parts.push(`waited ${age(event.waitMs)}`);
|
|
44
|
-
}
|
|
45
|
-
if (event.ids)
|
|
46
|
-
for (const [name, value] of Object.entries(event.ids))
|
|
47
|
-
parts.push(`${name} ${value}`);
|
|
48
|
-
if (event.event !== "cache") {
|
|
49
|
-
if (event.durationMs !== void 0)
|
|
50
|
-
parts.push(`${event.durationMs}ms`);
|
|
51
|
-
if (event.bytes !== void 0)
|
|
52
|
-
parts.push(size(event.bytes));
|
|
53
|
-
}
|
|
54
|
-
if (event.counts)
|
|
55
|
-
for (const [field, count] of Object.entries(event.counts))
|
|
56
|
-
parts.push(`${count} ${field}`);
|
|
57
|
-
if (event.event !== "cache") {
|
|
58
|
-
if (event.errorCode)
|
|
59
|
-
parts.push(event.errorCode);
|
|
60
|
-
if (event.providerError)
|
|
61
|
-
parts.push(event.providerError);
|
|
62
|
-
}
|
|
63
|
-
return `${MARK[event.event]} ${event.operation.padEnd(16)} ${parts.join(" ")}`.trimEnd();
|
|
64
|
-
}, "renderEvent");
|
|
65
|
-
var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!", store: "+", progress: "\u2026" };
|
|
66
|
-
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
67
|
-
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
68
|
-
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
70
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
71
|
-
import { createHash } from "node:crypto";
|
|
72
|
-
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
74
|
-
import { homedir } from "node:os";
|
|
75
|
-
var MESSAGE_AT_MOST = 500;
|
|
76
|
-
var CAUSES_AT_MOST = 5;
|
|
77
|
-
var FRAMES_AT_MOST = 15;
|
|
78
|
-
var errorDetailOf = /* @__PURE__ */ __name((error, response) => {
|
|
79
|
-
const details = isCliFailure(error) ? { ...error.details } : {};
|
|
80
|
-
const thrown = error instanceof Error ? error : void 0;
|
|
81
|
-
const code = isCliFailure(error) ? error.code : codeOf(error);
|
|
82
|
-
const reason = typeof details.reason === "string" ? details.reason : void 0;
|
|
83
|
-
const causeCode = typeof details.cause_code === "string" && /^[A-Za-z0-9_.-]{1,40}$/.test(details.cause_code) ? details.cause_code : void 0;
|
|
84
|
-
const message = thrown ? redactText(thrown.message) : void 0;
|
|
85
|
-
const operation = stringOf(details.operation) ?? response?.operation;
|
|
86
|
-
const status = numberOf(details.status) ?? response?.status;
|
|
87
|
-
const method = stringOf(details.method) ?? response?.method;
|
|
88
|
-
const endpoint = stringOf(details.endpoint) ?? response?.endpointTemplate;
|
|
89
|
-
const key = providerErrorKey(details.provider_error) ?? providerErrorKey(response?.providerError);
|
|
90
|
-
const protocol = key !== void 0 && method === void 0 && endpoint === void 0;
|
|
91
|
-
const http = method !== void 0 || endpoint !== void 0 || status !== void 0 && !protocol ? {
|
|
92
|
-
...method === void 0 ? {} : { method: method.toUpperCase().slice(0, 16) },
|
|
93
|
-
...endpoint === void 0 ? {} : { endpoint_template: endpointTemplate(endpoint) },
|
|
94
|
-
...status === void 0 ? {} : { status }
|
|
95
|
-
} : void 0;
|
|
96
|
-
const causes = causesOf(thrown?.cause ?? details.cause);
|
|
97
|
-
const stack = framesOf(thrown);
|
|
98
|
-
return {
|
|
99
|
-
class: classOf(error),
|
|
100
|
-
...code === void 0 ? {} : { code },
|
|
101
|
-
...reason === void 0 ? {} : { reason },
|
|
102
|
-
...causeCode === void 0 ? {} : { cause_code: causeCode },
|
|
103
|
-
...message ? { message } : {},
|
|
104
|
-
...operation === void 0 ? {} : { operation },
|
|
105
|
-
...http ? { http } : {},
|
|
106
|
-
...key === void 0 ? {} : { provider: { key, ...protocol && status !== void 0 ? { code: status } : {} } },
|
|
107
|
-
...causes.length > 0 ? { causes } : {},
|
|
108
|
-
...stack.length > 0 ? { stack } : {}
|
|
109
|
-
};
|
|
110
|
-
}, "errorDetailOf");
|
|
111
|
-
var stringOf = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim() !== "" ? value.trim() : void 0, "stringOf");
|
|
112
|
-
var numberOf = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isInteger(value) ? value : void 0, "numberOf");
|
|
113
|
-
var classOf = /* @__PURE__ */ __name((error) => {
|
|
114
|
-
if (!(error instanceof Error))
|
|
115
|
-
return error === null ? "null" : typeof error;
|
|
116
|
-
const constructed = error.constructor?.name;
|
|
117
|
-
return constructed && constructed !== "Error" && constructed !== error.name ? constructed : error.name;
|
|
118
|
-
}, "classOf");
|
|
119
|
-
var codeOf = /* @__PURE__ */ __name((error) => {
|
|
120
|
-
const code = error?.code;
|
|
121
|
-
return typeof code === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(code) ? code : void 0;
|
|
122
|
-
}, "codeOf");
|
|
123
|
-
var causesOf = /* @__PURE__ */ __name((first) => {
|
|
124
|
-
const causes = [];
|
|
125
|
-
const seen = /* @__PURE__ */ new Set();
|
|
126
|
-
for (let cause = first; cause !== void 0 && cause !== null && causes.length < CAUSES_AT_MOST; ) {
|
|
127
|
-
if (seen.has(cause))
|
|
128
|
-
break;
|
|
129
|
-
seen.add(cause);
|
|
130
|
-
const message = cause instanceof Error ? redactText(cause.message) : void 0;
|
|
131
|
-
causes.push({ class: classOf(cause), ...message ? { message } : {} });
|
|
132
|
-
cause = cause instanceof Error ? cause.cause : void 0;
|
|
133
|
-
}
|
|
134
|
-
return causes;
|
|
135
|
-
}, "causesOf");
|
|
136
|
-
var framesOf = /* @__PURE__ */ __name((error, limit = FRAMES_AT_MOST) => {
|
|
137
|
-
const stack = error instanceof Error && typeof error.stack === "string" ? error.stack : "";
|
|
138
|
-
return stack.split("\n").filter((line) => line.trimStart().startsWith("at ")).flatMap((line) => {
|
|
139
|
-
const match = /^\s*at (?:async )?(?:(.+?) \()?(.+?):(\d+):\d+\)?$/.exec(line);
|
|
140
|
-
if (!match)
|
|
141
|
-
return [];
|
|
142
|
-
const [, fn, path = "", lineNumber] = match;
|
|
143
|
-
if (path.startsWith("node:"))
|
|
144
|
-
return [];
|
|
145
|
-
return [`${fn ?? "<anonymous>"} ${fileOf(path)}:${lineNumber}`];
|
|
146
|
-
}).slice(0, limit);
|
|
147
|
-
}, "framesOf");
|
|
148
|
-
var fileOf = /* @__PURE__ */ __name((path) => {
|
|
149
|
-
const plain = path.replace(/^file:\/\//, "");
|
|
150
|
-
const packaged = /\/node_modules\/((?:@[^/]+\/)?[^/]+\/.+)$/.exec(plain)?.[1];
|
|
151
|
-
if (packaged)
|
|
152
|
-
return packaged.replace(/\/(?:dist|src)\//, "/");
|
|
153
|
-
return /(?:^|\/)(?:dist|src)\/(.+)$/.exec(plain)?.[1] ?? plain.split("/").at(-1) ?? "?";
|
|
154
|
-
}, "fileOf");
|
|
155
|
-
var endpointTemplate = /* @__PURE__ */ __name((raw) => {
|
|
156
|
-
const trimmed = raw.trim().split(/[?#]/)[0] ?? "";
|
|
157
|
-
const origin = /^[a-z][a-z0-9+.-]*:\/\/(?:[^@/]*@)?([^/]*)/i.exec(trimmed);
|
|
158
|
-
const path = origin ? trimmed.slice(origin[0].length) : trimmed;
|
|
159
|
-
const scheme = origin ? `${trimmed.slice(0, trimmed.indexOf("://"))}://${origin[1]}` : "";
|
|
160
|
-
const parts = path.split("/");
|
|
161
|
-
const segments = parts.map((segment, at) => {
|
|
162
|
-
if (segment === "" || /^[:{].+/.test(segment))
|
|
163
|
-
return segment;
|
|
164
|
-
if (at >= 2 && parts[at - 2] === "rest" && /^\d+$/.test(parts[at - 1] ?? ""))
|
|
165
|
-
return ":token";
|
|
166
|
-
if (/^bot\d+:/.test(segment) || /^\d{6,}:[\w-]{20,}$/.test(segment))
|
|
167
|
-
return ":token";
|
|
168
|
-
if (/^-?\d+$/.test(segment) || /^[0-9a-f-]{16,}$/i.test(segment))
|
|
169
|
-
return ":id";
|
|
170
|
-
if (!/^[A-Za-z0-9._~-]{1,40}$/.test(segment))
|
|
171
|
-
return ":value";
|
|
172
|
-
return segment;
|
|
173
|
-
});
|
|
174
|
-
return `${scheme}${segments.join("/")}`.slice(0, 300);
|
|
175
|
-
}, "endpointTemplate");
|
|
176
|
-
var INTERNATIONAL_PHONE = /\+\d[\d\s()-]{6,}\d/.source;
|
|
177
|
-
var BARE_PHONE = /(^|[^\w-])\d{11,15}\b/.source;
|
|
178
|
-
var MESSENGER_ID = /\b\d+(?:-\d+)?(?::\d+)?@(?:s\.whatsapp\.net|g\.us|c\.us|lid|broadcast|newsletter)\b/g;
|
|
179
|
-
var redactText = /* @__PURE__ */ __name((text) => {
|
|
180
|
-
const home = homedir();
|
|
181
|
-
let out = home && home !== "/" ? text.split(home).join("~") : text;
|
|
182
|
-
out = withoutSecrets(out.replace(/"[^"\n]*"|“[^”\n]*”|«[^»\n]*»/g, '"[redacted]"')).replace(/\b(bearer|basic|token|key|password|secret)(\s*[:=]\s*|\s+)[^\s'"]+/gi, "$1$2[redacted]").replace(MESSENGER_ID, "[id]").replace(/[\w.+-]+@[\w-]+\.[\w.-]+/g, "[email]").replace(new RegExp(INTERNATIONAL_PHONE, "g"), "[number]").replace(new RegExp(BARE_PHONE, "g"), "$1[number]").replace(/\bbot\d+:[\w-]+/g, "bot[token]").replace(/\b\d{6,}:[\w-]{20,}\b/g, "[token]").replace(/(\?|&)[^\s#]*/g, "$1[redacted]").replace(/\b[A-Za-z0-9_-]{40,}\b/g, "[redacted]");
|
|
183
|
-
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
184
|
-
}, "redactText");
|
|
185
|
-
|
|
186
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
187
|
-
var REDACTED = "[redacted]";
|
|
188
|
-
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
189
|
-
if (!record)
|
|
190
|
-
return false;
|
|
191
|
-
if (fromFlag)
|
|
192
|
-
return true;
|
|
193
|
-
if (persistent)
|
|
194
|
-
return false;
|
|
195
|
-
return caller !== void 0 || viaOf(env) !== "desktop";
|
|
196
|
-
}, "keepsSuccess");
|
|
197
|
-
var calls = new AsyncLocalStorage();
|
|
198
|
-
var withCaller = /* @__PURE__ */ __name((caller, work) => calls.run(caller, work), "withCaller");
|
|
199
|
-
var currentCaller = /* @__PURE__ */ __name(() => calls.getStore(), "currentCaller");
|
|
200
|
-
var clientHash = /* @__PURE__ */ __name((id) => createHash("sha256").update(id).digest("hex").slice(0, 8), "clientHash");
|
|
201
|
-
var viaOf = /* @__PURE__ */ __name((env) => env.WIRECAT_CALLER?.trim() === "desktop" ? "desktop" : "cli", "viaOf");
|
|
202
|
-
var agentOf = /* @__PURE__ */ __name((env) => {
|
|
203
|
-
const named = env.AI_AGENT?.trim().split("_")[0];
|
|
204
|
-
const kind = (named && plainWord(named) ? named.toLowerCase() : void 0) ?? (env.CLAUDECODE ? "claude-code" : void 0) ?? (env.CODEX_THREAD_ID || env.CODEX_SESSION_ID || env.CODEX_SANDBOX ? "codex" : void 0) ?? (env.GEMINI_CLI ? "gemini-cli" : void 0) ?? (env.OPENCODE ? "opencode" : void 0) ?? (env.CURSOR_AGENT ? "cursor" : void 0) ?? // Only `exec` is the agent's own command: OpenClaw also sets `tui-local` for what the owner types in its TUI.
|
|
205
|
-
(env.OPENCLAW_SHELL?.trim() === "exec" ? "openclaw" : void 0);
|
|
206
|
-
if (!kind)
|
|
207
|
-
return void 0;
|
|
208
|
-
const session = sessionOf(kind, env);
|
|
209
|
-
return {
|
|
210
|
-
kind,
|
|
211
|
-
session_id: session && SESSION.test(session) ? session : null,
|
|
212
|
-
// OpenClaw passes the sender and chat ids of a chat-started run in this variable; only its presence is kept.
|
|
213
|
-
...kind === "openclaw" && env.OPENCLAW_CHANNEL_CONTEXT?.trim() ? { from_chat: true } : {}
|
|
214
|
-
};
|
|
215
|
-
}, "agentOf");
|
|
216
|
-
var SESSION = /^[A-Za-z0-9._:-]{1,128}$/;
|
|
217
|
-
var SESSION_VARIABLE = {
|
|
218
|
-
"claude-code": "CLAUDE_CODE_SESSION_ID",
|
|
219
|
-
codex: "CODEX_THREAD_ID",
|
|
220
|
-
opencode: "OPENCODE_SESSION_ID",
|
|
221
|
-
"hermes-agent": "HERMES_SESSION_ID"
|
|
222
|
-
};
|
|
223
|
-
var sessionOf = /* @__PURE__ */ __name((kind, env) => {
|
|
224
|
-
const variable = SESSION_VARIABLE[kind];
|
|
225
|
-
return (variable === void 0 ? void 0 : env[variable]?.trim()) || void 0;
|
|
226
|
-
}, "sessionOf");
|
|
227
|
-
var plainWord = /* @__PURE__ */ __name((word) => /^[A-Za-z][A-Za-z0-9.-]{0,39}$/.test(word), "plainWord");
|
|
228
|
-
var secretInputs = /* @__PURE__ */ new WeakSet();
|
|
229
|
-
var secretInput = /* @__PURE__ */ __name((input) => {
|
|
230
|
-
secretInputs.add(input);
|
|
231
|
-
return input;
|
|
232
|
-
}, "secretInput");
|
|
233
|
-
var secretShaped = /* @__PURE__ */ __name((word) => /:\/\/[^/@\s:]+:[^/@\s]+@/.test(word) || /(^|[^A-Za-z0-9_-])[A-Za-z0-9_-]{40,}($|[^A-Za-z0-9_-])/.test(word), "secretShaped");
|
|
234
|
-
var withoutPhones = /* @__PURE__ */ __name((word) => word.replace(new RegExp(INTERNATIONAL_PHONE, "g"), REDACTED).replace(new RegExp(BARE_PHONE, "g"), `$1${REDACTED}`), "withoutPhones");
|
|
235
|
-
var maskArgv = /* @__PURE__ */ __name((program, words, { keep = false } = {}) => {
|
|
236
|
-
const argv = [];
|
|
237
|
-
let unknownCommand;
|
|
238
|
-
let current = program;
|
|
239
|
-
let positional = 0;
|
|
240
|
-
let profileSeen = false;
|
|
241
|
-
let lost = false;
|
|
242
|
-
const raw = /* @__PURE__ */ __name((word) => keep && !secretShaped(word) ? withoutPhones(withoutSecrets(word, REDACTED)) : REDACTED, "raw");
|
|
243
|
-
const keptValue = /* @__PURE__ */ __name((name, value, input) => keep ? input && secretInputs.has(input) || secretNamed(name) ? REDACTED : raw(value) : maskedValue(name, value, input?.argChoices), "keptValue");
|
|
244
|
-
const optionFor = /* @__PURE__ */ __name((flag) => {
|
|
245
|
-
for (let at = current; at; at = at.parent) {
|
|
246
|
-
const found = at.options.find((option) => option.long === flag || option.short === flag);
|
|
247
|
-
if (found)
|
|
248
|
-
return found;
|
|
249
|
-
}
|
|
250
|
-
return void 0;
|
|
251
|
-
}, "optionFor");
|
|
252
|
-
for (let at = 0; at < words.length; at++) {
|
|
253
|
-
const word = words[at];
|
|
254
|
-
if (word === "--") {
|
|
255
|
-
argv.push("--");
|
|
256
|
-
for (let after = at + 1; after < words.length; after++)
|
|
257
|
-
argv.push(raw(words[after]));
|
|
258
|
-
break;
|
|
259
|
-
}
|
|
260
|
-
if (word.startsWith("-") && word.length > 1 && !NUMBER.test(word)) {
|
|
261
|
-
const equals = word.indexOf("=");
|
|
262
|
-
const flag = equals > 0 ? word.slice(0, equals) : word;
|
|
263
|
-
if (!/^--?[A-Za-z0-9][A-Za-z0-9-]*$/.test(flag)) {
|
|
264
|
-
argv.push(raw(word));
|
|
265
|
-
continue;
|
|
266
|
-
}
|
|
267
|
-
const option = optionFor(flag);
|
|
268
|
-
const name = option?.attributeName() ?? flag.replace(/^-+/, "");
|
|
269
|
-
if (equals > 0) {
|
|
270
|
-
argv.push(`${flag}=${keptValue(name, word.slice(equals + 1), option)}`);
|
|
271
|
-
continue;
|
|
272
|
-
}
|
|
273
|
-
argv.push(flag);
|
|
274
|
-
if (!option && keep && secretNamed(name) && words[at + 1] !== void 0 && !words[at + 1]?.startsWith("-")) {
|
|
275
|
-
at += 1;
|
|
276
|
-
argv.push(REDACTED);
|
|
277
|
-
continue;
|
|
278
|
-
}
|
|
279
|
-
if (!option || !(option.required || option.optional))
|
|
280
|
-
continue;
|
|
281
|
-
const takes = /* @__PURE__ */ __name((next) => next !== void 0 && (option.required || !next.startsWith("-") || NUMBER.test(next)), "takes");
|
|
282
|
-
if (takes(words[at + 1])) {
|
|
283
|
-
at += 1;
|
|
284
|
-
argv.push(keptValue(name, words[at], option));
|
|
285
|
-
while (option.variadic && words[at + 1] !== void 0 && !words[at + 1].startsWith("-")) {
|
|
286
|
-
at += 1;
|
|
287
|
-
argv.push(keptValue(name, words[at], option));
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
continue;
|
|
291
|
-
}
|
|
292
|
-
if (!lost && positional === 0) {
|
|
293
|
-
const sub = current.commands.find((one) => one.name() === word || one.aliases().includes(word));
|
|
294
|
-
if (sub) {
|
|
295
|
-
argv.push(word);
|
|
296
|
-
current = sub;
|
|
297
|
-
continue;
|
|
298
|
-
}
|
|
299
|
-
if (current === program && !profileSeen) {
|
|
300
|
-
profileSeen = true;
|
|
301
|
-
argv.push(keep ? raw(word) : PROFILE.test(word) && withoutPhones(withoutSecrets(word)) === word ? word : REDACTED);
|
|
302
|
-
continue;
|
|
303
|
-
}
|
|
304
|
-
if (current.commands.length > 0 && current.registeredArguments.length === 0) {
|
|
305
|
-
lost = true;
|
|
306
|
-
unknownCommand = commandLike(word);
|
|
307
|
-
argv.push(keep ? raw(word) : unknownCommand);
|
|
308
|
-
continue;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
const declared = lost ? void 0 : current.registeredArguments;
|
|
312
|
-
const argument = declared?.[Math.min(positional, declared.length - 1)];
|
|
313
|
-
positional += 1;
|
|
314
|
-
argv.push(secretInputs.has(current) ? REDACTED : argument ? keptValue(argument.name(), word, argument) : raw(word));
|
|
315
|
-
}
|
|
316
|
-
return { argv, ...unknownCommand === void 0 ? {} : { unknownCommand } };
|
|
317
|
-
}, "maskArgv");
|
|
318
|
-
var NUMBER = /^-?\d+(\.\d+)?$/;
|
|
319
|
-
var PROFILE = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/;
|
|
320
|
-
var commandLike = /* @__PURE__ */ __name((word) => /^[a-z][a-z0-9-]{0,31}$/i.test(word) && withoutSecrets(word) === word ? word : REDACTED, "commandLike");
|
|
321
|
-
var maskedValue = /* @__PURE__ */ __name((name, value, choices) => {
|
|
322
|
-
if (isContentKey(name))
|
|
323
|
-
return REDACTED;
|
|
324
|
-
if (name === "profile")
|
|
325
|
-
return PROFILE.test(value) ? value : REDACTED;
|
|
326
|
-
if (name === "json" || name === "fields")
|
|
327
|
-
return /^[a-z0-9_.,]{1,200}$/.test(value) ? value : REDACTED;
|
|
328
|
-
if (choices?.includes(value))
|
|
329
|
-
return value;
|
|
330
|
-
return safeShape(value) ? value : REDACTED;
|
|
331
|
-
}, "maskedValue");
|
|
332
|
-
var safeShape = /* @__PURE__ */ __name((value) => NUMBER.test(value) && !/^\d{11,}$/.test(value) || /^\d+(ms|s|m|h|d|w)$/.test(value) || /^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/.test(value) || value === "true" || value === "false", "safeShape");
|
|
333
|
-
var runContextOf = /* @__PURE__ */ __name(({ bin, command, program, argv, env, recordInput = false, caller }) => {
|
|
334
|
-
const masked = program && argv ? maskArgv(program, argv, { keep: recordInput === true }) : void 0;
|
|
335
|
-
const ifFailed = program && argv && recordInput === "failed" ? maskArgv(program, argv, { keep: true }) : void 0;
|
|
336
|
-
const agent = caller ? caller.agent : agentOf(env);
|
|
337
|
-
return {
|
|
338
|
-
cliCommand: command ? `${bin} ${command}` : bin,
|
|
339
|
-
...masked ? { argv: masked.argv } : {},
|
|
340
|
-
...ifFailed ? { argvIfFailed: ifFailed.argv } : {},
|
|
341
|
-
...masked?.unknownCommand === void 0 ? {} : { unknownCommand: masked.unknownCommand },
|
|
342
|
-
...agent ? { agent } : {},
|
|
343
|
-
via: caller?.via ?? viaOf(env),
|
|
344
|
-
...caller?.mcp ? { mcp: caller.mcp } : {}
|
|
345
|
-
};
|
|
346
|
-
}, "runContextOf");
|
|
347
|
-
|
|
348
|
-
export {
|
|
349
|
-
providerErrorKey,
|
|
350
|
-
renderEvent,
|
|
351
|
-
errorDetailOf,
|
|
352
|
-
framesOf,
|
|
353
|
-
endpointTemplate,
|
|
354
|
-
keepsSuccess,
|
|
355
|
-
withCaller,
|
|
356
|
-
currentCaller,
|
|
357
|
-
clientHash,
|
|
358
|
-
agentOf,
|
|
359
|
-
secretInput,
|
|
360
|
-
maskArgv,
|
|
361
|
-
runContextOf
|
|
362
|
-
};
|