@openclaw/signal 2026.9.5 → 2026.9.7
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/assets/icon.png +0 -0
- package/dist/.setup/{accounts-BV6tDOTc.mjs → accounts-DMtj2E-4.mjs} +6 -35
- package/dist/.setup/api-DEB0Obj8.mjs +16 -0
- package/dist/.setup/{api-Cu01dJRP.mjs → api-DmCb6e7E.mjs} +10 -10
- package/dist/.setup/{approval-auth-BBI9BTRm.mjs → approval-auth-CszS7gwf.mjs} +7 -13
- package/dist/.setup/{approval-handler.runtime-Clf_1IZj.mjs → approval-handler.runtime-D9ofZcZW.mjs} +10 -29
- package/dist/.setup/{approval-reactions-B25QoVJc.mjs → approval-reactions-BKkjIAoi.mjs} +25 -36
- package/dist/.setup/{channel-gMpZmqLx.mjs → channel-DrUxv5cf.mjs} +567 -136
- package/dist/.setup/{client-BseAt7F7.mjs → client-AXcDteBZ.mjs} +63 -152
- package/dist/.setup/client-adapter-c_O1ouxZ.mjs +30 -0
- package/dist/.setup/{config-schema-aQwwMGUj.mjs → config-schema-DvxZ18SD.mjs} +3 -13
- package/dist/.setup/{doctor-contract-api-Rbq_sRTI.mjs → doctor-contract-api-Db9V9gsY.mjs} +212 -91
- package/dist/.setup/{identity-YXPmgFMu.mjs → identity-B3JyPqGO.mjs} +2 -6
- package/dist/.setup/{install-signal-cli-bXeTrTyL.mjs → install-signal-cli-ChvjzM6X.mjs} +27 -61
- package/dist/.setup/legacy-transport-QIpaMNST.mjs +18 -0
- package/dist/.setup/{monitor-DAMQw1pZ.mjs → monitor-BfwQr78f.mjs} +102 -130
- package/dist/.setup/{probe-IKCS9D-z.mjs → probe-BYLzra6D.mjs} +9 -9
- package/dist/.setup/{reaction-runtime-api-BnQGHcrB.mjs → reaction-runtime-api-DDi5x2wC.mjs} +3 -17
- package/dist/.setup/{question-reactions-DSNAD0cd.mjs → reaction-targets-CEdyjtrC.mjs} +11 -8
- package/dist/.setup/{rpc-context-CwwADZ1b.mjs → rpc-context-D26RxFIm.mjs} +1 -1
- package/dist/.setup/runtime-8sxUF217.mjs +8 -0
- package/dist/.setup/{send-CcetN4rk.mjs → send-DEjrbpIC.mjs} +25 -55
- package/dist/.setup/{channel.runtime-Dqc18A1e.mjs → setup-surface-Drt-4t3R.mjs} +4 -6
- package/dist/.setup/transport-detection-BVUDE42e.mjs +25 -0
- package/dist/.setup/{transport-policy-5VSnj5ma.mjs → transport-policy-B6C_LogW.mjs} +19 -1
- package/dist/.setup/transport-probes.runtime-DwXEHnXr.mjs +2 -0
- package/dist/api.js +10 -10
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +1 -1
- package/dist/reaction-runtime-api.js +1 -1
- package/dist/runtime-api.js +2 -19
- package/dist/setup-entry.js +1 -1
- package/node_modules/@openclaw/fs-safe/CHANGELOG.md +1289 -0
- package/node_modules/@openclaw/fs-safe/LICENSE +22 -0
- package/node_modules/@openclaw/fs-safe/README.md +672 -0
- package/node_modules/@openclaw/fs-safe/SECURITY.md +45 -0
- package/node_modules/@openclaw/fs-safe/dist/absolute-path.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +323 -0
- package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +41 -0
- package/node_modules/@openclaw/fs-safe/dist/advanced.js +40 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-crc32.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-crc32.js +19 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-deadline.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-deadline.js +101 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-durability.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-durability.js +180 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-entry.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-entry.js +85 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-errors.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-errors.js +23 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-gzip-tail.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-gzip-tail.js +99 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-input.d.ts +18 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-input.js +98 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-kind.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-kind.js +71 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-limits.d.ts +56 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-limits.js +131 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-merge.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-merge.js +282 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-parser-errors.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-parser-errors.js +12 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-plan.d.ts +85 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-plan.js +119 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-read.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-read.js +234 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-staging.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-staging.js +308 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.d.ts +27 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.js +127 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.d.ts +29 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.js +203 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-admission.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-admission.js +96 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.js +160 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.d.ts +21 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.js +267 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.js +10 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.js +30 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.js +150 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-manifest.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-manifest.js +24 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.js +149 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-preflight.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-preflight.js +21 -0
- package/node_modules/@openclaw/fs-safe/dist/archive.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/archive.js +332 -0
- package/node_modules/@openclaw/fs-safe/dist/async-lock.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/async-lock.js +17 -0
- package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/atomic.js +4 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.js +15 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read.js +143 -0
- package/node_modules/@openclaw/fs-safe/dist/byte-budget.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/byte-budget.js +9 -0
- package/node_modules/@openclaw/fs-safe/dist/byte-view.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/byte-view.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/clone-metadata.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/clone-metadata.js +36 -0
- package/node_modules/@openclaw/fs-safe/dist/config.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/config.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/containment.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/containment.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-file-input.d.ts +21 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-file-input.js +71 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-policy.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-policy.js +8 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-publication.d.ts +18 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-publication.js +29 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.js +245 -0
- package/node_modules/@openclaw/fs-safe/dist/copy.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/copy.js +143 -0
- package/node_modules/@openclaw/fs-safe/dist/create-owned-file.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/create-owned-file.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/create.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/create.js +388 -0
- package/node_modules/@openclaw/fs-safe/dist/creation-boundary.d.ts +60 -0
- package/node_modules/@openclaw/fs-safe/dist/creation-boundary.js +371 -0
- package/node_modules/@openclaw/fs-safe/dist/deny-mutation-match.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/deny-mutation-match.js +71 -0
- package/node_modules/@openclaw/fs-safe/dist/deny-mutations.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/deny-mutations.js +96 -0
- package/node_modules/@openclaw/fs-safe/dist/device-path.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/device-path.js +139 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-durability.d.ts +43 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-durability.js +286 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-entry-path.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-entry-path.js +21 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-guard.d.ts +54 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-guard.js +176 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +39 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +285 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-receipt.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-receipt.js +121 -0
- package/node_modules/@openclaw/fs-safe/dist/durability.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/durability.js +3 -0
- package/node_modules/@openclaw/fs-safe/dist/effective-uid.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/effective-uid.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/error-detail.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/error-detail.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/errors.js +27 -0
- package/node_modules/@openclaw/fs-safe/dist/file-cleanup.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/file-cleanup.js +81 -0
- package/node_modules/@openclaw/fs-safe/dist/file-contents.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/file-contents.js +40 -0
- package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.js +190 -0
- package/node_modules/@openclaw/fs-safe/dist/file-hash.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/file-hash.js +296 -0
- package/node_modules/@openclaw/fs-safe/dist/file-identity.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/file-identity.js +56 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.js +98 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +58 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +303 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.js +66 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-held.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-held.js +392 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.d.ts +40 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.js +209 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.js +275 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-options.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-options.js +58 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-registration.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-registration.js +90 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.js +288 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +199 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.js +341 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock.js +66 -0
- package/node_modules/@openclaw/fs-safe/dist/file-observation.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/file-observation.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +174 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +110 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +319 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +128 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +62 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store.js +360 -0
- package/node_modules/@openclaw/fs-safe/dist/file-sync.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/file-sync.js +19 -0
- package/node_modules/@openclaw/fs-safe/dist/filename.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/filename.js +138 -0
- package/node_modules/@openclaw/fs-safe/dist/fs.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/fs.js +30 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +281 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.js +81 -0
- package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.js +68 -0
- package/node_modules/@openclaw/fs-safe/dist/guest-native-python.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +127 -0
- package/node_modules/@openclaw/fs-safe/dist/guest.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/guest.js +433 -0
- package/node_modules/@openclaw/fs-safe/dist/home-dir.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/home-dir.js +149 -0
- package/node_modules/@openclaw/fs-safe/dist/index.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/index.js +5 -0
- package/node_modules/@openclaw/fs-safe/dist/install-path.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/install-path.js +136 -0
- package/node_modules/@openclaw/fs-safe/dist/json-document-store.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/json-document-store.js +105 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.js +154 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.js +355 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.js +65 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.d.ts +44 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.js +210 -0
- package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/json-store.js +15 -0
- package/node_modules/@openclaw/fs-safe/dist/json-stringify.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/json-stringify.js +7 -0
- package/node_modules/@openclaw/fs-safe/dist/json.d.ts +49 -0
- package/node_modules/@openclaw/fs-safe/dist/json.js +323 -0
- package/node_modules/@openclaw/fs-safe/dist/local-file-access.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/local-file-access.js +81 -0
- package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.js +84 -0
- package/node_modules/@openclaw/fs-safe/dist/local-roots.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/local-roots.js +160 -0
- package/node_modules/@openclaw/fs-safe/dist/lock-config.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/lock-config.js +12 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.d.ts +30 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.js +224 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path-stage.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path-stage.js +56 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path.js +390 -0
- package/node_modules/@openclaw/fs-safe/dist/mutation-authority.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/mutation-authority.js +41 -0
- package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +199 -0
- package/node_modules/@openclaw/fs-safe/dist/native-binding.js +8 -0
- package/node_modules/@openclaw/fs-safe/dist/native-config.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/native-config.js +71 -0
- package/node_modules/@openclaw/fs-safe/dist/native-directory-observation.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/native-directory-observation.js +37 -0
- package/node_modules/@openclaw/fs-safe/dist/native-fallback-warning.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/native-fallback-warning.js +11 -0
- package/node_modules/@openclaw/fs-safe/dist/native-operations.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/native-operations.js +111 -0
- package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.js +147 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.js +252 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +478 -0
- package/node_modules/@openclaw/fs-safe/dist/native-policy-directory-observation.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/native-policy-directory-observation.js +61 -0
- package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.js +209 -0
- package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.js +8 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +45 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +442 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-symlink.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-symlink.js +303 -0
- package/node_modules/@openclaw/fs-safe/dist/native.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/native.js +209 -0
- package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.js +46 -0
- package/node_modules/@openclaw/fs-safe/dist/opened-realpath.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/opened-realpath.js +102 -0
- package/node_modules/@openclaw/fs-safe/dist/output.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/output.js +139 -0
- package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.js +46 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch-worker.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch-worker.js +54 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch.js +64 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl.js +39 -0
- package/node_modules/@openclaw/fs-safe/dist/path-case.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/path-case.js +136 -0
- package/node_modules/@openclaw/fs-safe/dist/path-policy.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/path-policy.js +49 -0
- package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +104 -0
- package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.js +37 -0
- package/node_modules/@openclaw/fs-safe/dist/path-segment-route.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/path-segment-route.js +24 -0
- package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.js +394 -0
- package/node_modules/@openclaw/fs-safe/dist/path.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/path.js +185 -0
- package/node_modules/@openclaw/fs-safe/dist/permission-exec.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/permission-exec.js +194 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions-public.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions-public.js +4 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions-windows.d.ts +48 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions-windows.js +319 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions.d.ts +52 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions.js +131 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.js +421 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.d.ts +38 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.js +205 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.d.ts +18 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.js +70 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-open.d.ts +30 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-open.js +98 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-operation.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-operation.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +35 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-mode.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-mode.js +31 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +185 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts +68 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +300 -0
- package/node_modules/@openclaw/fs-safe/dist/positional-read.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/positional-read.js +36 -0
- package/node_modules/@openclaw/fs-safe/dist/private-directory.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/private-directory.js +30 -0
- package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff-sync.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff-sync.js +72 -0
- package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.d.ts +53 -0
- package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.js +358 -0
- package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +341 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +60 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.d.ts +27 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file.js +332 -0
- package/node_modules/@openclaw/fs-safe/dist/read-open-flags.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/read-open-flags.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/read-opened-file.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/read-opened-file.js +18 -0
- package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/realpath.js +43 -0
- package/node_modules/@openclaw/fs-safe/dist/recursive-mkdir-path.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/recursive-mkdir-path.js +8 -0
- package/node_modules/@openclaw/fs-safe/dist/regular-file.d.ts +37 -0
- package/node_modules/@openclaw/fs-safe/dist/regular-file.js +317 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-directory.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-directory.js +275 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-buffer.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-buffer.js +36 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.js +369 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.js +101 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +46 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +168 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-destination.d.ts +21 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-destination.js +123 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-mode.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-mode.js +10 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-mutation.d.ts +26 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-mutation.js +47 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-rename-policy.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-rename-policy.js +30 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.d.ts +49 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.js +368 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +55 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file.js +356 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-directory-replacement.d.ts +26 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-directory-replacement.js +193 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-file-types.d.ts +50 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-file-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-file.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-file.js +121 -0
- package/node_modules/@openclaw/fs-safe/dist/root-boundary.d.ts +29 -0
- package/node_modules/@openclaw/fs-safe/dist/root-boundary.js +186 -0
- package/node_modules/@openclaw/fs-safe/dist/root-context.d.ts +43 -0
- package/node_modules/@openclaw/fs-safe/dist/root-context.js +233 -0
- package/node_modules/@openclaw/fs-safe/dist/root-create-input.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/root-create-input.js +93 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.js +225 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.js +28 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +46 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +433 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory.js +141 -0
- package/node_modules/@openclaw/fs-safe/dist/root-entries.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/root-entries.js +61 -0
- package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/root-errors.js +92 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.js +81 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file.d.ts +46 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file.js +205 -0
- package/node_modules/@openclaw/fs-safe/dist/root-handle-context.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/root-handle-context.js +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-impl.d.ts +117 -0
- package/node_modules/@openclaw/fs-safe/dist/root-impl.js +1446 -0
- package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.js +205 -0
- package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/root-observed-path.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/root-observed-path.js +90 -0
- package/node_modules/@openclaw/fs-safe/dist/root-options.d.ts +84 -0
- package/node_modules/@openclaw/fs-safe/dist/root-options.js +18 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-errors.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-errors.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +160 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-observation.d.ts +55 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-observation.js +180 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-stat.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-stat.js +151 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path.d.ts +53 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path.js +440 -0
- package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/root-paths.d.ts +58 -0
- package/node_modules/@openclaw/fs-safe/dist/root-paths.js +296 -0
- package/node_modules/@openclaw/fs-safe/dist/root-public-types.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/root-public-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/root-read-admission.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/root-read-admission.js +86 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.js +87 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove-receipt.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove-receipt.js +37 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove.js +464 -0
- package/node_modules/@openclaw/fs-safe/dist/root-symlink-policy.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/root-symlink-policy.js +34 -0
- package/node_modules/@openclaw/fs-safe/dist/root-walk.d.ts +48 -0
- package/node_modules/@openclaw/fs-safe/dist/root-walk.js +234 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-admission.d.ts +65 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +299 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.js +23 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.d.ts +43 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.js +180 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-lock-binding.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-lock-binding.js +162 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-mode.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-mode.js +72 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-publication.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-publication.js +85 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-verification.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-verification.js +95 -0
- package/node_modules/@openclaw/fs-safe/dist/root.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/root.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.js +80 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +29 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-file.js +333 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-read-async.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-read-async.js +58 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.js +68 -0
- package/node_modules/@openclaw/fs-safe/dist/secret.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/secret.js +3 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.js +79 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-file.d.ts +31 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-file.js +298 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.d.ts +29 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.js +176 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.js +110 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +301 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +28 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +132 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +442 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-context.d.ts +18 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-context.js +60 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.d.ts +41 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.js +113 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.d.ts +31 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.js +48 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +113 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.d.ts +67 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.js +374 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-registration.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-registration.js +47 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.js +79 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +228 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-target.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-target.js +55 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-types.d.ts +68 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.js +282 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-directory.d.ts +27 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-directory.js +148 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.js +57 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-file-types.d.ts +55 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-file-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-symlink-types.d.ts +39 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-symlink-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/stat-observation.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/stat-observation.js +57 -0
- package/node_modules/@openclaw/fs-safe/dist/store.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/store.js +3 -0
- package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.js +88 -0
- package/node_modules/@openclaw/fs-safe/dist/string-coerce.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/string-coerce.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/suppressed-error.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/suppressed-error.js +15 -0
- package/node_modules/@openclaw/fs-safe/dist/symlink-parents.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/symlink-parents.js +109 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.js +88 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-target.d.ts +31 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-target.js +236 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.js +387 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +150 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.d.ts +42 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.js +341 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.js +398 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-ownership.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-ownership.js +52 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +39 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/temp.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/temp.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/test-hooks.d.ts +35 -0
- package/node_modules/@openclaw/fs-safe/dist/test-hooks.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/text-atomic.js +18 -0
- package/node_modules/@openclaw/fs-safe/dist/timing.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/timing.js +59 -0
- package/node_modules/@openclaw/fs-safe/dist/trash.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/trash.js +245 -0
- package/node_modules/@openclaw/fs-safe/dist/types.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/unicode-path.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/unicode-path.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/walk.d.ts +37 -0
- package/node_modules/@openclaw/fs-safe/dist/walk.js +207 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-alias.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-alias.js +88 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-hints.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +93 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-native.d.ts +36 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-native.js +73 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-scan.d.ts +28 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-scan.js +300 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-stream.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-stream.js +32 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-types.d.ts +60 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/watch.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/watch.js +530 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-command.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-command.js +34 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-owner.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-owner.js +100 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.d.ts +39 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.js +122 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.js +21 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-bridge.cs +336 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-bridge.ps1 +90 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-command.d.ts +33 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-command.js +414 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.js +112 -0
- package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +49 -0
- package/node_modules/@openclaw/fs-safe/dist/write-open-flags.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/write-open-flags.js +27 -0
- package/node_modules/@openclaw/fs-safe/dist/write-queue.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/write-queue.js +15 -0
- package/node_modules/@openclaw/fs-safe/docs/advanced.md +271 -0
- package/node_modules/@openclaw/fs-safe/docs/archive.md +859 -0
- package/node_modules/@openclaw/fs-safe/docs/assets/readme-banner.jpg +0 -0
- package/node_modules/@openclaw/fs-safe/docs/atomic.md +611 -0
- package/node_modules/@openclaw/fs-safe/docs/config.md +136 -0
- package/node_modules/@openclaw/fs-safe/docs/contributing.md +360 -0
- package/node_modules/@openclaw/fs-safe/docs/copy.md +199 -0
- package/node_modules/@openclaw/fs-safe/docs/creation.md +132 -0
- package/node_modules/@openclaw/fs-safe/docs/directory-identity.md +85 -0
- package/node_modules/@openclaw/fs-safe/docs/durability.md +445 -0
- package/node_modules/@openclaw/fs-safe/docs/entries.md +109 -0
- package/node_modules/@openclaw/fs-safe/docs/errors.md +240 -0
- package/node_modules/@openclaw/fs-safe/docs/file-contents.md +68 -0
- package/node_modules/@openclaw/fs-safe/docs/file-store.md +369 -0
- package/node_modules/@openclaw/fs-safe/docs/filename.md +110 -0
- package/node_modules/@openclaw/fs-safe/docs/guest.md +152 -0
- package/node_modules/@openclaw/fs-safe/docs/in-place-write.md +81 -0
- package/node_modules/@openclaw/fs-safe/docs/index.md +87 -0
- package/node_modules/@openclaw/fs-safe/docs/install-path.md +216 -0
- package/node_modules/@openclaw/fs-safe/docs/install.md +252 -0
- package/node_modules/@openclaw/fs-safe/docs/json-store.md +240 -0
- package/node_modules/@openclaw/fs-safe/docs/json.md +225 -0
- package/node_modules/@openclaw/fs-safe/docs/local-roots.md +150 -0
- package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +205 -0
- package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.6.md +48 -0
- package/node_modules/@openclaw/fs-safe/docs/mutation-policy-proof.md +69 -0
- package/node_modules/@openclaw/fs-safe/docs/native-helper.md +193 -0
- package/node_modules/@openclaw/fs-safe/docs/native.md +351 -0
- package/node_modules/@openclaw/fs-safe/docs/output.md +193 -0
- package/node_modules/@openclaw/fs-safe/docs/path-case.md +64 -0
- package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +74 -0
- package/node_modules/@openclaw/fs-safe/docs/path-scope.md +159 -0
- package/node_modules/@openclaw/fs-safe/docs/path-suffix-aliases.md +204 -0
- package/node_modules/@openclaw/fs-safe/docs/path.md +219 -0
- package/node_modules/@openclaw/fs-safe/docs/permissions.md +352 -0
- package/node_modules/@openclaw/fs-safe/docs/positional-read.md +63 -0
- package/node_modules/@openclaw/fs-safe/docs/private-file-store.md +68 -0
- package/node_modules/@openclaw/fs-safe/docs/public-api.md +188 -0
- package/node_modules/@openclaw/fs-safe/docs/quickstart.md +154 -0
- package/node_modules/@openclaw/fs-safe/docs/reading.md +196 -0
- package/node_modules/@openclaw/fs-safe/docs/regular-file.md +193 -0
- package/node_modules/@openclaw/fs-safe/docs/retained-file.md +115 -0
- package/node_modules/@openclaw/fs-safe/docs/root.md +571 -0
- package/node_modules/@openclaw/fs-safe/docs/secret-file.md +318 -0
- package/node_modules/@openclaw/fs-safe/docs/secure-file.md +112 -0
- package/node_modules/@openclaw/fs-safe/docs/security-model.md +272 -0
- package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +599 -0
- package/node_modules/@openclaw/fs-safe/docs/staged-file.md +192 -0
- package/node_modules/@openclaw/fs-safe/docs/staged-symlink.md +124 -0
- package/node_modules/@openclaw/fs-safe/docs/store.md +129 -0
- package/node_modules/@openclaw/fs-safe/docs/temp.md +780 -0
- package/node_modules/@openclaw/fs-safe/docs/test-hooks.md +110 -0
- package/node_modules/@openclaw/fs-safe/docs/testing.md +399 -0
- package/node_modules/@openclaw/fs-safe/docs/timing.md +123 -0
- package/node_modules/@openclaw/fs-safe/docs/types.md +217 -0
- package/node_modules/@openclaw/fs-safe/docs/walk.md +283 -0
- package/node_modules/@openclaw/fs-safe/docs/watch.md +251 -0
- package/node_modules/@openclaw/fs-safe/docs/writing.md +662 -0
- package/node_modules/@openclaw/fs-safe/package.json +204 -0
- package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +29 -0
- package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +29 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +32 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +32 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +32 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +32 -0
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +29 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +38 -0
- package/node_modules/immediate/LICENSE.txt +20 -0
- package/node_modules/immediate/README.md +93 -0
- package/node_modules/immediate/dist/immediate.js +75 -0
- package/node_modules/immediate/dist/immediate.min.js +1 -0
- package/node_modules/immediate/lib/browser.js +69 -0
- package/node_modules/immediate/lib/index.js +73 -0
- package/node_modules/immediate/package.json +42 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/jszip/.codeclimate.yml +16 -0
- package/node_modules/jszip/.editorconfig +8 -0
- package/node_modules/jszip/.eslintrc.js +43 -0
- package/node_modules/jszip/.github/FUNDING.yml +1 -0
- package/node_modules/jszip/.github/actions/setup/action.yml +23 -0
- package/node_modules/jszip/.github/workflows/benchmark.yml +38 -0
- package/node_modules/jszip/.github/workflows/main.yml +55 -0
- package/node_modules/jszip/CHANGES.md +210 -0
- package/node_modules/jszip/LICENSE.markdown +651 -0
- package/node_modules/jszip/README.markdown +33 -0
- package/node_modules/jszip/dist/jszip.js +11586 -0
- package/node_modules/jszip/dist/jszip.min.js +13 -0
- package/node_modules/jszip/index.d.ts +344 -0
- package/node_modules/jszip/lib/base64.js +106 -0
- package/node_modules/jszip/lib/compressedObject.js +74 -0
- package/node_modules/jszip/lib/compressions.js +14 -0
- package/node_modules/jszip/lib/crc32.js +77 -0
- package/node_modules/jszip/lib/defaults.js +11 -0
- package/node_modules/jszip/lib/external.js +18 -0
- package/node_modules/jszip/lib/flate.js +85 -0
- package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
- package/node_modules/jszip/lib/generate/index.js +57 -0
- package/node_modules/jszip/lib/index.js +55 -0
- package/node_modules/jszip/lib/license_header.js +11 -0
- package/node_modules/jszip/lib/load.js +88 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
- package/node_modules/jszip/lib/nodejsUtils.js +57 -0
- package/node_modules/jszip/lib/object.js +384 -0
- package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
- package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
- package/node_modules/jszip/lib/reader/DataReader.js +116 -0
- package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
- package/node_modules/jszip/lib/reader/StringReader.js +38 -0
- package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
- package/node_modules/jszip/lib/reader/readerFor.js +28 -0
- package/node_modules/jszip/lib/signature.js +7 -0
- package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
- package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
- package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
- package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
- package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
- package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
- package/node_modules/jszip/lib/support.js +38 -0
- package/node_modules/jszip/lib/utf8.js +275 -0
- package/node_modules/jszip/lib/utils.js +510 -0
- package/node_modules/jszip/lib/zipEntries.js +261 -0
- package/node_modules/jszip/lib/zipEntry.js +293 -0
- package/node_modules/jszip/lib/zipObject.js +133 -0
- package/node_modules/jszip/package.json +67 -0
- package/node_modules/jszip/sponsors.md +21 -0
- package/node_modules/jszip/tsconfig.json +101 -0
- package/node_modules/jszip/vendor/FileSaver.js +247 -0
- package/node_modules/lie/README.md +62 -0
- package/node_modules/lie/dist/lie.js +350 -0
- package/node_modules/lie/dist/lie.min.js +1 -0
- package/node_modules/lie/dist/lie.polyfill.js +358 -0
- package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
- package/node_modules/lie/lib/browser.js +273 -0
- package/node_modules/lie/lib/index.js +298 -0
- package/node_modules/lie/license.md +7 -0
- package/node_modules/lie/lie.d.ts +244 -0
- package/node_modules/lie/package.json +69 -0
- package/node_modules/lie/polyfill.js +4 -0
- package/node_modules/pako/CHANGELOG.md +164 -0
- package/node_modules/pako/LICENSE +21 -0
- package/node_modules/pako/README.md +191 -0
- package/node_modules/pako/dist/pako.js +6818 -0
- package/node_modules/pako/dist/pako.min.js +1 -0
- package/node_modules/pako/dist/pako_deflate.js +3997 -0
- package/node_modules/pako/dist/pako_deflate.min.js +1 -0
- package/node_modules/pako/dist/pako_inflate.js +3300 -0
- package/node_modules/pako/dist/pako_inflate.min.js +1 -0
- package/node_modules/pako/index.js +14 -0
- package/node_modules/pako/lib/deflate.js +400 -0
- package/node_modules/pako/lib/inflate.js +423 -0
- package/node_modules/pako/lib/utils/common.js +105 -0
- package/node_modules/pako/lib/utils/strings.js +187 -0
- package/node_modules/pako/lib/zlib/README +59 -0
- package/node_modules/pako/lib/zlib/adler32.js +51 -0
- package/node_modules/pako/lib/zlib/constants.js +68 -0
- package/node_modules/pako/lib/zlib/crc32.js +59 -0
- package/node_modules/pako/lib/zlib/deflate.js +1874 -0
- package/node_modules/pako/lib/zlib/gzheader.js +58 -0
- package/node_modules/pako/lib/zlib/inffast.js +345 -0
- package/node_modules/pako/lib/zlib/inflate.js +1556 -0
- package/node_modules/pako/lib/zlib/inftrees.js +343 -0
- package/node_modules/pako/lib/zlib/messages.js +32 -0
- package/node_modules/pako/lib/zlib/trees.js +1222 -0
- package/node_modules/pako/lib/zlib/zstream.js +47 -0
- package/node_modules/pako/package.json +44 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +25 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +52 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/setimmediate/LICENSE.txt +20 -0
- package/node_modules/setimmediate/package.json +30 -0
- package/node_modules/setimmediate/setImmediate.js +186 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +31 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/zod/README.md +2 -2
- package/node_modules/zod/compile.cjs +19 -0
- package/node_modules/zod/index.cjs +19 -0
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +8 -7
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v4/classic/external.ts +2 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
- package/node_modules/zod/src/v4/classic/schemas.ts +243 -168
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +60 -9
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +265 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +40 -2
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +95 -1
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +234 -38
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
- package/node_modules/zod/src/v4/core/api.ts +44 -28
- package/node_modules/zod/src/v4/core/checks.ts +62 -102
- package/node_modules/zod/src/v4/core/compile.ts +218 -93
- package/node_modules/zod/src/v4/core/core.ts +1 -3
- package/node_modules/zod/src/v4/core/doc.ts +6 -2
- package/node_modules/zod/src/v4/core/errors.ts +3 -6
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +185 -81
- package/node_modules/zod/src/v4/core/memoizer.ts +75 -28
- package/node_modules/zod/src/v4/core/parse.ts +37 -16
- package/node_modules/zod/src/v4/core/regexes.ts +14 -4
- package/node_modules/zod/src/v4/core/schemas.ts +296 -132
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +399 -2
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
- package/node_modules/zod/src/v4/core/to-json-schema.ts +9 -7
- package/node_modules/zod/src/v4/core/util.ts +218 -147
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/locales/ar.ts +2 -0
- package/node_modules/zod/src/v4/locales/az.ts +2 -0
- package/node_modules/zod/src/v4/locales/be.ts +2 -0
- package/node_modules/zod/src/v4/locales/bg.ts +2 -0
- package/node_modules/zod/src/v4/locales/bn.ts +2 -0
- package/node_modules/zod/src/v4/locales/ca.ts +2 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +2 -0
- package/node_modules/zod/src/v4/locales/cs.ts +2 -0
- package/node_modules/zod/src/v4/locales/da.ts +2 -0
- package/node_modules/zod/src/v4/locales/de.ts +2 -0
- package/node_modules/zod/src/v4/locales/el.ts +2 -0
- package/node_modules/zod/src/v4/locales/en.ts +2 -0
- package/node_modules/zod/src/v4/locales/eo.ts +2 -0
- package/node_modules/zod/src/v4/locales/es.ts +2 -0
- package/node_modules/zod/src/v4/locales/fa.ts +2 -0
- package/node_modules/zod/src/v4/locales/fi.ts +2 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +2 -0
- package/node_modules/zod/src/v4/locales/fr.ts +2 -0
- package/node_modules/zod/src/v4/locales/gu.ts +2 -0
- package/node_modules/zod/src/v4/locales/he.ts +2 -0
- package/node_modules/zod/src/v4/locales/hi.ts +2 -0
- package/node_modules/zod/src/v4/locales/hr.ts +2 -0
- package/node_modules/zod/src/v4/locales/hu.ts +2 -0
- package/node_modules/zod/src/v4/locales/hy.ts +2 -0
- package/node_modules/zod/src/v4/locales/id.ts +2 -0
- package/node_modules/zod/src/v4/locales/index.ts +1 -0
- package/node_modules/zod/src/v4/locales/is.ts +2 -0
- package/node_modules/zod/src/v4/locales/it.ts +2 -0
- package/node_modules/zod/src/v4/locales/ja.ts +2 -0
- package/node_modules/zod/src/v4/locales/ka.ts +2 -0
- package/node_modules/zod/src/v4/locales/km.ts +2 -0
- package/node_modules/zod/src/v4/locales/kn.ts +2 -0
- package/node_modules/zod/src/v4/locales/ko.ts +2 -0
- package/node_modules/zod/src/v4/locales/lt.ts +2 -0
- package/node_modules/zod/src/v4/locales/mk.ts +2 -0
- package/node_modules/zod/src/v4/locales/ms.ts +2 -0
- package/node_modules/zod/src/v4/locales/ne.ts +2 -0
- package/node_modules/zod/src/v4/locales/nl.ts +2 -0
- package/node_modules/zod/src/v4/locales/nn.ts +2 -0
- package/node_modules/zod/src/v4/locales/no.ts +2 -0
- package/node_modules/zod/src/v4/locales/ota.ts +2 -0
- package/node_modules/zod/src/v4/locales/pl.ts +2 -0
- package/node_modules/zod/src/v4/locales/ps.ts +2 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +2 -0
- package/node_modules/zod/src/v4/locales/pt.ts +2 -0
- package/node_modules/zod/src/v4/locales/ro.ts +2 -0
- package/node_modules/zod/src/v4/locales/ru.ts +2 -0
- package/node_modules/zod/src/v4/locales/sk.ts +2 -0
- package/node_modules/zod/src/v4/locales/sl.ts +2 -0
- package/node_modules/zod/src/v4/locales/sv.ts +2 -0
- package/node_modules/zod/src/v4/locales/ta.ts +2 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +2 -0
- package/node_modules/zod/src/v4/locales/tk.ts +2 -0
- package/node_modules/zod/src/v4/locales/tr.ts +2 -0
- package/node_modules/zod/src/v4/locales/uk.ts +2 -0
- package/node_modules/zod/src/v4/locales/ur.ts +2 -0
- package/node_modules/zod/src/v4/locales/uz.ts +2 -0
- package/node_modules/zod/src/v4/locales/vi.ts +2 -0
- package/node_modules/zod/src/v4/locales/yo.ts +2 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +2 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +2 -0
- package/node_modules/zod/src/v4/mini/external.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +32 -7
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +86 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +23 -0
- package/node_modules/zod/v3/ZodError.cjs +19 -0
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +19 -0
- package/node_modules/zod/v4/classic/checks.cjs +19 -0
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/classic/errors.cjs +19 -0
- package/node_modules/zod/v4/classic/external.cjs +22 -1
- package/node_modules/zod/v4/classic/external.d.cts +1 -1
- package/node_modules/zod/v4/classic/external.d.ts +1 -1
- package/node_modules/zod/v4/classic/external.js +1 -1
- package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
- package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
- package/node_modules/zod/v4/classic/in-out.cjs +19 -0
- package/node_modules/zod/v4/classic/index.cjs +19 -0
- package/node_modules/zod/v4/classic/iso.cjs +19 -0
- package/node_modules/zod/v4/classic/parse.cjs +19 -0
- package/node_modules/zod/v4/classic/schemas.cjs +100 -35
- package/node_modules/zod/v4/classic/schemas.d.cts +15 -1
- package/node_modules/zod/v4/classic/schemas.d.ts +15 -1
- package/node_modules/zod/v4/classic/schemas.js +77 -33
- package/node_modules/zod/v4/core/api.cjs +45 -22
- package/node_modules/zod/v4/core/api.d.cts +12 -6
- package/node_modules/zod/v4/core/api.d.ts +12 -6
- package/node_modules/zod/v4/core/api.js +25 -22
- package/node_modules/zod/v4/core/checks.cjs +51 -97
- package/node_modules/zod/v4/core/checks.d.cts +17 -1
- package/node_modules/zod/v4/core/checks.d.ts +17 -1
- package/node_modules/zod/v4/core/checks.js +31 -96
- package/node_modules/zod/v4/core/compile.cjs +173 -78
- package/node_modules/zod/v4/core/compile.d.cts +18 -4
- package/node_modules/zod/v4/core/compile.d.ts +18 -4
- package/node_modules/zod/v4/core/compile.js +154 -79
- package/node_modules/zod/v4/core/core.cjs +20 -1
- package/node_modules/zod/v4/core/core.js +1 -1
- package/node_modules/zod/v4/core/doc.cjs +26 -2
- package/node_modules/zod/v4/core/doc.js +7 -2
- package/node_modules/zod/v4/core/errors.cjs +21 -5
- package/node_modules/zod/v4/core/errors.js +2 -5
- package/node_modules/zod/v4/core/index.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
- package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +188 -72
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +170 -74
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/memoizer.cjs +111 -23
- package/node_modules/zod/v4/core/memoizer.js +69 -23
- package/node_modules/zod/v4/core/parse.cjs +56 -16
- package/node_modules/zod/v4/core/parse.js +37 -16
- package/node_modules/zod/v4/core/regexes.cjs +31 -6
- package/node_modules/zod/v4/core/regexes.d.cts +3 -0
- package/node_modules/zod/v4/core/regexes.d.ts +3 -0
- package/node_modules/zod/v4/core/regexes.js +10 -4
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/schemas.cjs +302 -114
- package/node_modules/zod/v4/core/schemas.d.cts +28 -8
- package/node_modules/zod/v4/core/schemas.d.ts +28 -8
- package/node_modules/zod/v4/core/schemas.js +279 -113
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +28 -7
- package/node_modules/zod/v4/core/to-json-schema.d.cts +4 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +4 -3
- package/node_modules/zod/v4/core/to-json-schema.js +7 -6
- package/node_modules/zod/v4/core/util.cjs +177 -143
- package/node_modules/zod/v4/core/util.d.cts +25 -4
- package/node_modules/zod/v4/core/util.d.ts +25 -4
- package/node_modules/zod/v4/core/util.js +156 -143
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +19 -0
- package/node_modules/zod/v4/index.cjs +19 -0
- package/node_modules/zod/v4/locales/ar.cjs +2 -0
- package/node_modules/zod/v4/locales/ar.js +2 -0
- package/node_modules/zod/v4/locales/az.cjs +2 -0
- package/node_modules/zod/v4/locales/az.js +2 -0
- package/node_modules/zod/v4/locales/be.cjs +2 -0
- package/node_modules/zod/v4/locales/be.js +2 -0
- package/node_modules/zod/v4/locales/bg.cjs +2 -0
- package/node_modules/zod/v4/locales/bg.js +2 -0
- package/node_modules/zod/v4/locales/bn.cjs +2 -0
- package/node_modules/zod/v4/locales/bn.js +2 -0
- package/node_modules/zod/v4/locales/ca.cjs +2 -0
- package/node_modules/zod/v4/locales/ca.js +2 -0
- package/node_modules/zod/v4/locales/ckb.cjs +2 -0
- package/node_modules/zod/v4/locales/ckb.js +2 -0
- package/node_modules/zod/v4/locales/cs.cjs +2 -0
- package/node_modules/zod/v4/locales/cs.js +2 -0
- package/node_modules/zod/v4/locales/da.cjs +2 -0
- package/node_modules/zod/v4/locales/da.js +2 -0
- package/node_modules/zod/v4/locales/de.cjs +2 -0
- package/node_modules/zod/v4/locales/de.js +2 -0
- package/node_modules/zod/v4/locales/el.cjs +2 -0
- package/node_modules/zod/v4/locales/el.js +2 -0
- package/node_modules/zod/v4/locales/en.cjs +2 -0
- package/node_modules/zod/v4/locales/en.js +2 -0
- package/node_modules/zod/v4/locales/eo.cjs +2 -0
- package/node_modules/zod/v4/locales/eo.js +2 -0
- package/node_modules/zod/v4/locales/es.cjs +2 -0
- package/node_modules/zod/v4/locales/es.js +2 -0
- package/node_modules/zod/v4/locales/fa.cjs +2 -0
- package/node_modules/zod/v4/locales/fa.js +2 -0
- package/node_modules/zod/v4/locales/fi.cjs +2 -0
- package/node_modules/zod/v4/locales/fi.js +2 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +2 -0
- package/node_modules/zod/v4/locales/fr-CA.js +2 -0
- package/node_modules/zod/v4/locales/fr.cjs +2 -0
- package/node_modules/zod/v4/locales/fr.js +2 -0
- package/node_modules/zod/v4/locales/gu.cjs +2 -0
- package/node_modules/zod/v4/locales/gu.js +2 -0
- package/node_modules/zod/v4/locales/he.cjs +2 -0
- package/node_modules/zod/v4/locales/he.js +2 -0
- package/node_modules/zod/v4/locales/hi.cjs +2 -0
- package/node_modules/zod/v4/locales/hi.js +2 -0
- package/node_modules/zod/v4/locales/hr.cjs +2 -0
- package/node_modules/zod/v4/locales/hr.js +2 -0
- package/node_modules/zod/v4/locales/hu.cjs +2 -0
- package/node_modules/zod/v4/locales/hu.js +2 -0
- package/node_modules/zod/v4/locales/hy.cjs +2 -0
- package/node_modules/zod/v4/locales/hy.js +2 -0
- package/node_modules/zod/v4/locales/id.cjs +2 -0
- package/node_modules/zod/v4/locales/id.js +2 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -1
- package/node_modules/zod/v4/locales/index.d.cts +1 -0
- package/node_modules/zod/v4/locales/index.d.ts +1 -0
- package/node_modules/zod/v4/locales/index.js +1 -0
- package/node_modules/zod/v4/locales/is.cjs +2 -0
- package/node_modules/zod/v4/locales/is.js +2 -0
- package/node_modules/zod/v4/locales/it.cjs +2 -0
- package/node_modules/zod/v4/locales/it.js +2 -0
- package/node_modules/zod/v4/locales/ja.cjs +2 -0
- package/node_modules/zod/v4/locales/ja.js +2 -0
- package/node_modules/zod/v4/locales/ka.cjs +2 -0
- package/node_modules/zod/v4/locales/ka.js +2 -0
- package/node_modules/zod/v4/locales/km.cjs +2 -0
- package/node_modules/zod/v4/locales/km.js +2 -0
- package/node_modules/zod/v4/locales/kn.cjs +2 -0
- package/node_modules/zod/v4/locales/kn.js +2 -0
- package/node_modules/zod/v4/locales/ko.cjs +2 -0
- package/node_modules/zod/v4/locales/ko.js +2 -0
- package/node_modules/zod/v4/locales/lt.cjs +2 -0
- package/node_modules/zod/v4/locales/lt.js +2 -0
- package/node_modules/zod/v4/locales/mk.cjs +2 -0
- package/node_modules/zod/v4/locales/mk.js +2 -0
- package/node_modules/zod/v4/locales/ms.cjs +2 -0
- package/node_modules/zod/v4/locales/ms.js +2 -0
- package/node_modules/zod/v4/locales/ne.cjs +2 -0
- package/node_modules/zod/v4/locales/ne.js +2 -0
- package/node_modules/zod/v4/locales/nl.cjs +2 -0
- package/node_modules/zod/v4/locales/nl.js +2 -0
- package/node_modules/zod/v4/locales/nn.cjs +2 -0
- package/node_modules/zod/v4/locales/nn.js +2 -0
- package/node_modules/zod/v4/locales/no.cjs +2 -0
- package/node_modules/zod/v4/locales/no.js +2 -0
- package/node_modules/zod/v4/locales/ota.cjs +2 -0
- package/node_modules/zod/v4/locales/ota.js +2 -0
- package/node_modules/zod/v4/locales/pl.cjs +2 -0
- package/node_modules/zod/v4/locales/pl.js +2 -0
- package/node_modules/zod/v4/locales/ps.cjs +2 -0
- package/node_modules/zod/v4/locales/ps.js +2 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +2 -0
- package/node_modules/zod/v4/locales/pt-BR.js +2 -0
- package/node_modules/zod/v4/locales/pt.cjs +2 -0
- package/node_modules/zod/v4/locales/pt.js +2 -0
- package/node_modules/zod/v4/locales/ro.cjs +2 -0
- package/node_modules/zod/v4/locales/ro.js +2 -0
- package/node_modules/zod/v4/locales/ru.cjs +2 -0
- package/node_modules/zod/v4/locales/ru.js +2 -0
- package/node_modules/zod/v4/locales/sk.cjs +2 -0
- package/node_modules/zod/v4/locales/sk.js +2 -0
- package/node_modules/zod/v4/locales/sl.cjs +2 -0
- package/node_modules/zod/v4/locales/sl.js +2 -0
- package/node_modules/zod/v4/locales/sv.cjs +2 -0
- package/node_modules/zod/v4/locales/sv.js +2 -0
- package/node_modules/zod/v4/locales/ta.cjs +2 -0
- package/node_modules/zod/v4/locales/ta.js +2 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +2 -0
- package/node_modules/zod/v4/locales/th.js +2 -0
- package/node_modules/zod/v4/locales/tk.cjs +2 -0
- package/node_modules/zod/v4/locales/tk.js +2 -0
- package/node_modules/zod/v4/locales/tr.cjs +2 -0
- package/node_modules/zod/v4/locales/tr.js +2 -0
- package/node_modules/zod/v4/locales/uk.cjs +2 -0
- package/node_modules/zod/v4/locales/uk.js +2 -0
- package/node_modules/zod/v4/locales/ur.cjs +2 -0
- package/node_modules/zod/v4/locales/ur.js +2 -0
- package/node_modules/zod/v4/locales/uz.cjs +2 -0
- package/node_modules/zod/v4/locales/uz.js +2 -0
- package/node_modules/zod/v4/locales/vi.cjs +2 -0
- package/node_modules/zod/v4/locales/vi.js +2 -0
- package/node_modules/zod/v4/locales/yo.cjs +2 -0
- package/node_modules/zod/v4/locales/yo.js +2 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +2 -0
- package/node_modules/zod/v4/locales/zh-CN.js +2 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +2 -0
- package/node_modules/zod/v4/locales/zh-TW.js +2 -0
- package/node_modules/zod/v4/mini/checks.cjs +19 -0
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/mini/external.cjs +22 -1
- package/node_modules/zod/v4/mini/external.d.cts +1 -1
- package/node_modules/zod/v4/mini/external.d.ts +1 -1
- package/node_modules/zod/v4/mini/external.js +1 -1
- package/node_modules/zod/v4/mini/in-out.cjs +19 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +19 -0
- package/node_modules/zod/v4/mini/schemas.cjs +44 -8
- package/node_modules/zod/v4/mini/schemas.d.cts +6 -1
- package/node_modules/zod/v4/mini/schemas.d.ts +6 -1
- package/node_modules/zod/v4/mini/schemas.js +21 -6
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/package.json +7 -5
- package/dist/.setup/api-DbdeJVQ8.mjs +0 -17
- package/dist/.setup/client-adapter-dvFa47YL.mjs +0 -63
- package/dist/.setup/rolldown-runtime-8H4AJuhK.mjs +0 -14
- package/dist/.setup/send.runtime-B7C4IP23.mjs +0 -2
- package/dist/.setup/transport-detection-CqyR2vG8.mjs +0 -571
- package/dist/.setup/transport-detection.runtime-CW1lp2d9.mjs +0 -2
- package/dist/.setup/transport-probes.runtime-WprAyBbL.mjs +0 -2
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { a as migrateLegacySignalTransportConfig, i as clearLegacySignalTransportFieldsForAccount, n as normalizeCompatibilityConfig, r as repairSignalAccountKeys } from "./doctor-contract-api-Db9V9gsY.mjs";
|
|
1
2
|
import { a as normalizeSignalTransportUrl, i as normalizeSignalTransportHost, o as resolveSignalAccountEntry, s as resolveSignalAccountKey, t as assertSignalSocketTransport } from "./transport-url-CAC0JcuI.mjs";
|
|
2
|
-
import { a as isSignalManagedNativeConnectionUrlForBind, i as assignSignalManagedNativePort, o as isValidSignalManagedNativePort, r as allocateSignalManagedNativePort, s as
|
|
3
|
-
import { a as resolveSignalAccountConfig, i as resolveSignalAccount, n as listSignalAccountIds, o as resolveSignalReplyToMode, r as resolveDefaultSignalAccountId, s as resolveSignalTransport } from "./accounts-
|
|
4
|
-
import { n as normalizeSignalMessagingTarget, t as looksLikeSignalTargetId } from "./normalize-l_b99hap.mjs";
|
|
5
|
-
import { a as resolveSignalTarget, r as listSignalAliasDirectoryEntries } from "./approval-auth-
|
|
6
|
-
import { c as resolveSignalSender, l as looksLikeUuid, o as resolveSignalPeerId, s as resolveSignalRecipient } from "./identity-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
3
|
+
import { a as isSignalManagedNativeConnectionUrlForBind, c as resolveLocalSignalTransportPort, i as assignSignalManagedNativePort, o as isValidSignalManagedNativePort, r as allocateSignalManagedNativePort, s as reserveSignalTransportPorts } from "./transport-policy-B6C_LogW.mjs";
|
|
4
|
+
import { a as resolveSignalAccountConfig, i as resolveSignalAccount, n as listSignalAccountIds, o as resolveSignalReplyToMode, r as resolveDefaultSignalAccountId, s as resolveSignalTransport, t as listEnabledSignalAccounts } from "./accounts-DMtj2E-4.mjs";
|
|
5
|
+
import { n as normalizeSignalMessagingTarget, r as normalizeSignalReactionRecipient, t as looksLikeSignalTargetId } from "./normalize-l_b99hap.mjs";
|
|
6
|
+
import { a as resolveSignalTarget, n as signalApprovalAuth, r as listSignalAliasDirectoryEntries, t as getSignalApprovalApprovers } from "./approval-auth-CszS7gwf.mjs";
|
|
7
|
+
import { c as resolveSignalSender, l as looksLikeUuid, o as resolveSignalPeerId, s as resolveSignalRecipient } from "./identity-B3JyPqGO.mjs";
|
|
8
|
+
import { n as sendReactionSignal, t as removeReactionSignal } from "./reaction-runtime-api-DDi5x2wC.mjs";
|
|
9
|
+
import { t as getOptionalSignalRuntime } from "./runtime-8sxUF217.mjs";
|
|
10
|
+
import { t as detectSignalTransport } from "./transport-detection-BVUDE42e.mjs";
|
|
11
|
+
import { t as SignalChannelConfigSchema } from "./config-schema-DvxZ18SD.mjs";
|
|
10
12
|
import { describeAccountSnapshot, resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/account-helpers";
|
|
11
13
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
12
14
|
import { buildDmGroupAccountAllowlistAdapter } from "openclaw/plugin-sdk/allowlist-config-edit";
|
|
@@ -19,14 +21,24 @@ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
|
19
21
|
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
|
|
20
22
|
import { questionGatewayRuntime } from "openclaw/plugin-sdk/question-gateway-runtime";
|
|
21
23
|
import { chunkText, resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking";
|
|
22
|
-
import { buildOutboundBaseSessionKey } from "openclaw/plugin-sdk/routing";
|
|
23
|
-
import { buildBaseChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
24
|
+
import { buildOutboundBaseSessionKey, parseAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
|
25
|
+
import { buildBaseChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState, resolveReactionLevel } from "openclaw/plugin-sdk/status-helpers";
|
|
24
26
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
25
|
-
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
27
|
+
import { FormatCapabilityProfile, markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithAttributedRanges, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
26
28
|
import { normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/account-resolution";
|
|
29
|
+
import { createApproverRestrictedNativeApprovalCapabilityFromForwardingRoutes } from "openclaw/plugin-sdk/approval-delivery-runtime";
|
|
30
|
+
import { createLazyChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
|
|
31
|
+
import { shouldSuppressLocalNativeExecApprovalPrompt } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
32
|
+
import { buildApprovalReactionPendingContentForRequest } from "openclaw/plugin-sdk/approval-reaction-runtime";
|
|
27
33
|
import { normalizeE164 } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
34
|
+
import { formatMediaPlaceholderText } from "openclaw/plugin-sdk/channel-inbound";
|
|
35
|
+
import { kindFromMime } from "openclaw/plugin-sdk/media-runtime";
|
|
36
|
+
import { createActionGate, jsonResult, readStringParam, resolveReactionMessageId } from "openclaw/plugin-sdk/channel-actions";
|
|
37
|
+
import { parseStrictNonNegativeInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
28
38
|
import { createChannelPluginBase, getChatChannelMeta } from "openclaw/plugin-sdk/core";
|
|
29
39
|
import { parseAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
|
|
40
|
+
import { getExecApprovalReplyMetadata } from "openclaw/plugin-sdk/approval-reply-runtime";
|
|
41
|
+
import { isMessagePresentationInteractiveBlock, normalizeMessagePresentation, renderMessagePresentationFallbackText } from "openclaw/plugin-sdk/interactive-runtime";
|
|
30
42
|
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
31
43
|
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
32
44
|
import { patchTopLevelChannelConfigSection } from "openclaw/plugin-sdk/setup";
|
|
@@ -34,6 +46,282 @@ import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$2, createCliPathTextInput, cre
|
|
|
34
46
|
import { formatCliCommand, formatDocsLink } from "openclaw/plugin-sdk/setup-tools";
|
|
35
47
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
36
48
|
import { createRestrictSendersChannelSecurity } from "openclaw/plugin-sdk/channel-policy";
|
|
49
|
+
//#region extensions/signal/src/approval-native.ts
|
|
50
|
+
function isSignalApprovalTransportEnabled(params) {
|
|
51
|
+
return resolveSignalAccount({
|
|
52
|
+
cfg: params.cfg,
|
|
53
|
+
accountId: params.accountId
|
|
54
|
+
}).enabled;
|
|
55
|
+
}
|
|
56
|
+
const signalApproval = createApproverRestrictedNativeApprovalCapabilityFromForwardingRoutes({
|
|
57
|
+
channel: "signal",
|
|
58
|
+
channelLabel: "Signal",
|
|
59
|
+
authorizeActorAction: (params) => signalApprovalAuth.authorizeActorAction(params),
|
|
60
|
+
routing: {
|
|
61
|
+
defaultForwardingMode: "session",
|
|
62
|
+
isTransportEnabled: isSignalApprovalTransportEnabled,
|
|
63
|
+
listAccountIds: listSignalAccountIds,
|
|
64
|
+
resolveDefaultAccountId: resolveDefaultSignalAccountId,
|
|
65
|
+
normalizeTo: normalizeSignalMessagingTarget,
|
|
66
|
+
resolveApprovers: getSignalApprovalApprovers,
|
|
67
|
+
suppressExplicitTargetFallback: false,
|
|
68
|
+
isOriginTargetAllowed: ({ cfg, accountId, target }) => !isSignalGroupTarget(target.to) || getSignalApprovalApprovers({
|
|
69
|
+
cfg,
|
|
70
|
+
accountId
|
|
71
|
+
}).length > 0
|
|
72
|
+
},
|
|
73
|
+
describeExecApprovalSetup: ({ accountId }) => {
|
|
74
|
+
return `Signal supports native exec approvals for this account when \`approvals.exec.enabled\` is true and the route allows Signal. Link Signal and keep the gateway running; configure \`${accountId && accountId !== "default" ? `channels.signal.accounts.${accountId}` : "channels.signal"}.allowFrom\` to restrict approvers.`;
|
|
75
|
+
},
|
|
76
|
+
render: {
|
|
77
|
+
exec: { buildPendingPayload: ({ request, nowMs }) => buildApprovalReactionPendingContentForRequest({
|
|
78
|
+
request,
|
|
79
|
+
nowMs
|
|
80
|
+
}).manualFallbackPayload },
|
|
81
|
+
plugin: { buildPendingPayload: ({ request, nowMs }) => buildApprovalReactionPendingContentForRequest({
|
|
82
|
+
request,
|
|
83
|
+
nowMs
|
|
84
|
+
}).manualFallbackPayload }
|
|
85
|
+
},
|
|
86
|
+
createNativeRuntime: (routing) => createLazyChannelApprovalNativeRuntimeAdapter({
|
|
87
|
+
capabilityBoundary: true,
|
|
88
|
+
eventKinds: [
|
|
89
|
+
"exec",
|
|
90
|
+
"plugin",
|
|
91
|
+
"system-agent"
|
|
92
|
+
],
|
|
93
|
+
isConfigured: ({ cfg, accountId, context }) => Boolean(context) && routing.isNativeApprovalHandlerConfigured({
|
|
94
|
+
cfg,
|
|
95
|
+
accountId
|
|
96
|
+
}),
|
|
97
|
+
shouldHandle: ({ cfg, accountId, context, approvalKind, request }) => Boolean(context) && routing.shouldHandleApprovalRequest({
|
|
98
|
+
cfg,
|
|
99
|
+
accountId,
|
|
100
|
+
approvalKind,
|
|
101
|
+
request
|
|
102
|
+
}),
|
|
103
|
+
load: async () => (await import("./approval-handler.runtime-D9ofZcZW.mjs")).signalApprovalNativeRuntime
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
const signalApprovalRouting = signalApproval.routing;
|
|
107
|
+
function isSignalNativeApprovalHandlerConfigured(params) {
|
|
108
|
+
return signalApprovalRouting.isNativeApprovalHandlerConfigured(params);
|
|
109
|
+
}
|
|
110
|
+
function resolveSignalSessionTargetFromSessionKey(sessionKey) {
|
|
111
|
+
const rest = parseAgentSessionKey(sessionKey)?.rest ?? normalizeOptionalString(sessionKey);
|
|
112
|
+
if (!rest || !normalizeLowercaseStringOrEmpty(rest).startsWith("signal:")) return null;
|
|
113
|
+
return normalizeSignalMessagingTarget(rest.slice(7)) ?? null;
|
|
114
|
+
}
|
|
115
|
+
function shouldSuppressLocalSignalExecApprovalPrompt(params) {
|
|
116
|
+
return shouldSuppressLocalNativeExecApprovalPrompt({
|
|
117
|
+
...params,
|
|
118
|
+
isTransportEnabled: isSignalApprovalTransportEnabled,
|
|
119
|
+
isSessionRouteEligible: ({ cfg, accountId, metadata }) => {
|
|
120
|
+
if (getSignalApprovalApprovers({
|
|
121
|
+
cfg,
|
|
122
|
+
accountId
|
|
123
|
+
}).length > 0) return true;
|
|
124
|
+
const sessionTarget = resolveSignalSessionTargetFromSessionKey(metadata.sessionKey);
|
|
125
|
+
return Boolean(sessionTarget && !isSignalGroupTarget(sessionTarget));
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function isSignalGroupTarget(to) {
|
|
130
|
+
return normalizeLowercaseStringOrEmpty(to).startsWith("group:");
|
|
131
|
+
}
|
|
132
|
+
const signalApprovalCapability = signalApproval.capability;
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region extensions/signal/src/format.ts
|
|
135
|
+
const SIGNAL_STYLE_MAP = {
|
|
136
|
+
bold: "BOLD",
|
|
137
|
+
italic: "ITALIC",
|
|
138
|
+
strikethrough: "STRIKETHROUGH",
|
|
139
|
+
code: "MONOSPACE",
|
|
140
|
+
code_block: "MONOSPACE",
|
|
141
|
+
spoiler: "SPOILER"
|
|
142
|
+
};
|
|
143
|
+
const SIGNAL_FORMAT_PROFILE = FormatCapabilityProfile.define({
|
|
144
|
+
mechanism: "ranges",
|
|
145
|
+
constructs: {
|
|
146
|
+
underline: "strip",
|
|
147
|
+
codeLanguage: "fallback",
|
|
148
|
+
linkLabel: "fallback",
|
|
149
|
+
heading: "fallback",
|
|
150
|
+
bulletList: "fallback",
|
|
151
|
+
orderedList: "fallback",
|
|
152
|
+
taskList: "fallback",
|
|
153
|
+
table: "fallback",
|
|
154
|
+
blockquote: "fallback",
|
|
155
|
+
image: "fallback",
|
|
156
|
+
mention: "strip"
|
|
157
|
+
},
|
|
158
|
+
chunk: {
|
|
159
|
+
limit: 4e3,
|
|
160
|
+
unit: "chars"
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
function stripEquivalentSignalLinks(ir) {
|
|
164
|
+
const normalize = (value, preserveSuffixCase) => {
|
|
165
|
+
const normalized = value.trim().replace(/^(?:https?:\/\/)?(?:www\.)?/i, "").replace(/\/+$/, "");
|
|
166
|
+
return preserveSuffixCase ? normalized.replace(/^[^/?#]+/, (host) => host.toLowerCase()) : normalizeLowercaseStringOrEmpty(normalized);
|
|
167
|
+
};
|
|
168
|
+
return {
|
|
169
|
+
...ir,
|
|
170
|
+
links: ir.links.filter((link) => {
|
|
171
|
+
const label = ir.text.slice(link.start, link.end);
|
|
172
|
+
const href = link.href.trim();
|
|
173
|
+
const preserveSuffixCase = /^https?:\/\//i.test(href);
|
|
174
|
+
return normalize(label, preserveSuffixCase) !== normalize(href.replace(/^mailto:/, ""), preserveSuffixCase);
|
|
175
|
+
})
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function renderSignalText(ir) {
|
|
179
|
+
const rendered = renderMarkdownWithAttributedRanges(stripEquivalentSignalLinks(ir), {
|
|
180
|
+
styleMap: SIGNAL_STYLE_MAP,
|
|
181
|
+
annotationStyleMap: { assistant_transcript_role: "MONOSPACE" },
|
|
182
|
+
trimEnd: true
|
|
183
|
+
}, SIGNAL_FORMAT_PROFILE);
|
|
184
|
+
return {
|
|
185
|
+
text: rendered.text,
|
|
186
|
+
styles: rendered.ranges
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function markdownToSignalIR(markdown, options) {
|
|
190
|
+
return markdownToIR(markdown ?? "", {
|
|
191
|
+
assistantTranscriptRoleHeaders: true,
|
|
192
|
+
linkify: true,
|
|
193
|
+
enableSpoilers: true,
|
|
194
|
+
headingStyle: "rich",
|
|
195
|
+
blockquotePrefix: "> ",
|
|
196
|
+
tableMode: options.tableMode
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function markdownToSignalText(markdown, options = {}) {
|
|
200
|
+
return renderSignalText(markdownToSignalIR(markdown, options));
|
|
201
|
+
}
|
|
202
|
+
function markdownToSignalTextChunks(markdown, limit, options = {}) {
|
|
203
|
+
const ir = markdownToSignalIR(markdown, options);
|
|
204
|
+
if (ir.listItems && ir.text.length > limit) ir.listItems = ir.listItems.map((item) => ({ ...item }));
|
|
205
|
+
return renderMarkdownIRChunksWithinLimit({
|
|
206
|
+
ir,
|
|
207
|
+
limit,
|
|
208
|
+
assistantTranscriptRoleMessageBoundaries: true,
|
|
209
|
+
renderChunk: renderSignalText,
|
|
210
|
+
measureRendered: (rendered) => rendered.text.length
|
|
211
|
+
}).map(({ rendered }) => rendered);
|
|
212
|
+
}
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region extensions/signal/src/media-text.ts
|
|
215
|
+
function formatAttachmentKindCount(kind, count) {
|
|
216
|
+
if (kind === "attachment") return `${count} file${count > 1 ? "s" : ""}`;
|
|
217
|
+
return `${count} ${kind}${count > 1 ? "s" : ""}`;
|
|
218
|
+
}
|
|
219
|
+
/** Keeps Signal's established multi-attachment text while sharing single-item rendering. */
|
|
220
|
+
function formatSignalMediaText(media) {
|
|
221
|
+
if (media.length <= 1) return formatMediaPlaceholderText(media);
|
|
222
|
+
const kindCounts = /* @__PURE__ */ new Map();
|
|
223
|
+
for (const entry of media) {
|
|
224
|
+
const kind = entry.kind && entry.kind !== "unknown" ? entry.kind : kindFromMime(entry.contentType) ?? "attachment";
|
|
225
|
+
kindCounts.set(kind, (kindCounts.get(kind) ?? 0) + 1);
|
|
226
|
+
}
|
|
227
|
+
return `[${[...kindCounts.entries()].map(([kind, count]) => formatAttachmentKindCount(kind, count)).join(" + ")} attached]`;
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region extensions/signal/src/reaction-level.ts
|
|
231
|
+
function resolveSignalReactionLevel(params) {
|
|
232
|
+
const account = resolveSignalAccount({
|
|
233
|
+
cfg: params.cfg,
|
|
234
|
+
accountId: params.accountId
|
|
235
|
+
});
|
|
236
|
+
return resolveReactionLevel({
|
|
237
|
+
value: account.config.reactionLevel,
|
|
238
|
+
defaultLevel: "minimal",
|
|
239
|
+
invalidFallback: "minimal"
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region extensions/signal/src/message-actions.ts
|
|
244
|
+
const providerId = "signal";
|
|
245
|
+
const GROUP_PREFIX = "group:";
|
|
246
|
+
function resolveSignalReactionTarget(raw) {
|
|
247
|
+
const withoutSignal = raw.trim().replace(/^signal:/i, "").trim();
|
|
248
|
+
if (!withoutSignal) return {};
|
|
249
|
+
if (normalizeLowercaseStringOrEmpty(withoutSignal).startsWith(GROUP_PREFIX)) {
|
|
250
|
+
const groupId = withoutSignal.slice(6).trim();
|
|
251
|
+
return groupId ? { groupId } : {};
|
|
252
|
+
}
|
|
253
|
+
return { recipient: normalizeSignalReactionRecipient(withoutSignal) };
|
|
254
|
+
}
|
|
255
|
+
const signalMessageActions = {
|
|
256
|
+
describeMessageTool: ({ cfg, accountId }) => {
|
|
257
|
+
const configuredAccounts = accountId ? [resolveSignalAccount({
|
|
258
|
+
cfg,
|
|
259
|
+
accountId
|
|
260
|
+
})].filter((account) => account.enabled && account.configured) : listEnabledSignalAccounts(cfg).filter((account) => account.configured);
|
|
261
|
+
if (configuredAccounts.length === 0) return null;
|
|
262
|
+
return { actions: configuredAccounts.some((account) => createActionGate(account.config.actions)("reactions")) ? ["send", "react"] : ["send"] };
|
|
263
|
+
},
|
|
264
|
+
supportsAction: ({ action }) => action === "react",
|
|
265
|
+
prepareSendPayload: ({ ctx, payload, replyToId, replyToIdSource }) => {
|
|
266
|
+
if (ctx.action !== "send") return null;
|
|
267
|
+
const normalizedReplyToId = replyToId?.trim();
|
|
268
|
+
if (!normalizedReplyToId) return payload;
|
|
269
|
+
return replyToIdSource === "implicit" ? payload : {
|
|
270
|
+
...payload,
|
|
271
|
+
replyToId: normalizedReplyToId
|
|
272
|
+
};
|
|
273
|
+
},
|
|
274
|
+
handleAction: async ({ action, params, cfg, accountId, toolContext, assertDirectAdapterHandoff }) => {
|
|
275
|
+
if (action === "send") throw new Error("Send should be handled by outbound, not actions handler.");
|
|
276
|
+
if (action === "react") {
|
|
277
|
+
const account = resolveSignalAccount({
|
|
278
|
+
cfg,
|
|
279
|
+
accountId
|
|
280
|
+
});
|
|
281
|
+
if (!account.enabled) throw new Error(`Signal account "${account.accountId}" is disabled.`);
|
|
282
|
+
if (!account.configured) throw new Error(`Signal account "${account.accountId}" is not configured.`);
|
|
283
|
+
const reactionLevelInfo = resolveSignalReactionLevel({
|
|
284
|
+
cfg,
|
|
285
|
+
accountId: account.accountId
|
|
286
|
+
});
|
|
287
|
+
if (!reactionLevelInfo.agentReactionsEnabled) throw new Error(`Signal agent reactions disabled (reactionLevel="${reactionLevelInfo.level}"). Set channels.signal.reactionLevel to "minimal" or "extensive" to enable.`);
|
|
288
|
+
if (!createActionGate(account.config.actions)("reactions")) throw new Error("Signal reactions are disabled via actions.reactions.");
|
|
289
|
+
const target = resolveSignalReactionTarget(readStringParam(params, "to", {
|
|
290
|
+
required: true,
|
|
291
|
+
label: "recipient (UUID, phone number, or group)"
|
|
292
|
+
}));
|
|
293
|
+
if (!target.recipient && !target.groupId) throw new Error("recipient or group required");
|
|
294
|
+
const messageIdRaw = resolveReactionMessageId({
|
|
295
|
+
args: params,
|
|
296
|
+
toolContext
|
|
297
|
+
});
|
|
298
|
+
const messageId = messageIdRaw != null ? String(messageIdRaw) : void 0;
|
|
299
|
+
if (!messageId) throw new Error("messageId (timestamp) required. Provide messageId explicitly or react to the current inbound message.");
|
|
300
|
+
const targetAuthor = readStringParam(params, "targetAuthor");
|
|
301
|
+
const targetAuthorUuid = readStringParam(params, "targetAuthorUuid");
|
|
302
|
+
if (target.groupId && !targetAuthor && !targetAuthorUuid) throw new Error("targetAuthor or targetAuthorUuid required for group reactions.");
|
|
303
|
+
const emoji = readStringParam(params, "emoji", { allowEmpty: true });
|
|
304
|
+
const remove = typeof params.remove === "boolean" ? params.remove : void 0;
|
|
305
|
+
const timestamp = parseStrictNonNegativeInteger(messageId);
|
|
306
|
+
if (timestamp === void 0) throw new Error(`Invalid messageId: ${messageId}. Expected numeric timestamp.`);
|
|
307
|
+
if (!emoji) throw new Error(`Emoji required to ${remove ? "remove" : "add"} reaction.`);
|
|
308
|
+
await (remove ? removeReactionSignal : sendReactionSignal)(target.recipient ?? "", timestamp, emoji, {
|
|
309
|
+
cfg,
|
|
310
|
+
accountId: account.accountId,
|
|
311
|
+
groupId: target.groupId,
|
|
312
|
+
targetAuthor,
|
|
313
|
+
targetAuthorUuid,
|
|
314
|
+
...assertDirectAdapterHandoff ? { assertDirectAdapterHandoff } : {}
|
|
315
|
+
});
|
|
316
|
+
return jsonResult({
|
|
317
|
+
ok: true,
|
|
318
|
+
[remove ? "removed" : "added"]: emoji
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
throw new Error(`Action ${action} not supported for ${providerId}.`);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
//#endregion
|
|
37
325
|
//#region extensions/signal/src/outbound-session.ts
|
|
38
326
|
function resolveSignalOutboundTarget(target) {
|
|
39
327
|
const normalized = normalizeSignalMessagingTarget(target);
|
|
@@ -79,6 +367,219 @@ function resolveSignalOutboundTarget(target) {
|
|
|
79
367
|
};
|
|
80
368
|
}
|
|
81
369
|
//#endregion
|
|
370
|
+
//#region extensions/signal/src/presentation-fallback.ts
|
|
371
|
+
/** Materialize presentation content once before Signal's text-only delivery funnels. */
|
|
372
|
+
function materializeSignalPresentationFallback(payload, presentationOverride) {
|
|
373
|
+
const reactionPayload = questionGatewayRuntime.prepareReactionPayloadForDelivery({
|
|
374
|
+
payload,
|
|
375
|
+
presentation: presentationOverride ?? payload.presentation
|
|
376
|
+
});
|
|
377
|
+
if (reactionPayload) return reactionPayload;
|
|
378
|
+
const presentation = presentationOverride ?? normalizeMessagePresentation(payload.presentation);
|
|
379
|
+
if (!presentation) return payload;
|
|
380
|
+
const currentText = payload.text?.trim() ?? "";
|
|
381
|
+
const fallbackPresentation = Boolean(getExecApprovalReplyMetadata(payload) && currentText) ? {
|
|
382
|
+
...presentation,
|
|
383
|
+
blocks: presentation.blocks.filter((block) => !isMessagePresentationInteractiveBlock(block))
|
|
384
|
+
} : presentation;
|
|
385
|
+
const presentationFallback = renderMessagePresentationFallbackText({ presentation: fallbackPresentation });
|
|
386
|
+
const text = currentText.includes(presentationFallback) ? currentText : [currentText, presentationFallback].filter(Boolean).join("\n\n");
|
|
387
|
+
const { presentation: _presentation, ...withoutPresentation } = payload;
|
|
388
|
+
return {
|
|
389
|
+
...withoutPresentation,
|
|
390
|
+
text
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region extensions/signal/src/reply-authors-state.ts
|
|
395
|
+
const signalReplyAuthorState = {
|
|
396
|
+
memoryReplyContexts: /* @__PURE__ */ new Map(),
|
|
397
|
+
persistentStoreDisabled: false
|
|
398
|
+
};
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region extensions/signal/src/reply-authors.ts
|
|
401
|
+
const PERSISTENT_NAMESPACE = "signal.reply-authors.v1";
|
|
402
|
+
const PERSISTENT_MAX_ENTRIES = 5e3;
|
|
403
|
+
const DEFAULT_REPLY_AUTHOR_TTL_MS = 6048e5;
|
|
404
|
+
const { memoryReplyContexts } = signalReplyAuthorState;
|
|
405
|
+
function openSignalReplyAuthorStore() {
|
|
406
|
+
if (signalReplyAuthorState.persistentStoreDisabled) return;
|
|
407
|
+
const runtime = getOptionalSignalRuntime();
|
|
408
|
+
try {
|
|
409
|
+
return runtime?.state.openKeyedStore({
|
|
410
|
+
namespace: PERSISTENT_NAMESPACE,
|
|
411
|
+
maxEntries: PERSISTENT_MAX_ENTRIES,
|
|
412
|
+
defaultTtlMs: DEFAULT_REPLY_AUTHOR_TTL_MS
|
|
413
|
+
});
|
|
414
|
+
} catch (error) {
|
|
415
|
+
signalReplyAuthorState.persistentStoreDisabled = true;
|
|
416
|
+
runtime?.logging.getChildLogger({
|
|
417
|
+
plugin: "signal",
|
|
418
|
+
feature: "reply-author-state"
|
|
419
|
+
}).warn("Signal persistent reply author state unavailable", { error: String(error) });
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function buildSignalReplyAuthorStoreKey(params) {
|
|
424
|
+
const conversationKey = normalizeSignalMessagingTarget(params.to);
|
|
425
|
+
const replyToId = normalizeOptionalString(params.replyToId);
|
|
426
|
+
if (!conversationKey || !replyToId) return;
|
|
427
|
+
return `account=${normalizeLowercaseStringOrEmpty(normalizeOptionalString(params.accountId) ?? DEFAULT_ACCOUNT_ID)}|to=${conversationKey}|id=${replyToId}`;
|
|
428
|
+
}
|
|
429
|
+
function pruneMemoryReplyContexts(now = Date.now()) {
|
|
430
|
+
for (const [key, record] of memoryReplyContexts) if (record.expiresAt <= now) memoryReplyContexts.delete(key);
|
|
431
|
+
while (memoryReplyContexts.size > PERSISTENT_MAX_ENTRIES) {
|
|
432
|
+
const oldestKey = memoryReplyContexts.keys().next().value;
|
|
433
|
+
if (!oldestKey) break;
|
|
434
|
+
memoryReplyContexts.delete(oldestKey);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
function resolveReplyContext(record) {
|
|
438
|
+
if (!record) return;
|
|
439
|
+
if (record.kind === "ambiguous") return { ambiguous: true };
|
|
440
|
+
const author = normalizeOptionalString(record.author);
|
|
441
|
+
if (!author) return;
|
|
442
|
+
const body = normalizeOptionalString(record.body);
|
|
443
|
+
const media = record.media;
|
|
444
|
+
return {
|
|
445
|
+
author,
|
|
446
|
+
...body ? { body } : {},
|
|
447
|
+
...media?.length ? { media } : {}
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
function resolveSourceTimestamp(value) {
|
|
451
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value > 0 ? value : Date.now();
|
|
452
|
+
}
|
|
453
|
+
function mergeReplyContext(current, next) {
|
|
454
|
+
if (!current) return next;
|
|
455
|
+
if (current.kind === "ambiguous") return current;
|
|
456
|
+
if (next.kind === "ambiguous") return next;
|
|
457
|
+
if (current.author !== next.author) {
|
|
458
|
+
const { author: _author, body: _body, media: _media, ...identity } = next;
|
|
459
|
+
return {
|
|
460
|
+
...identity,
|
|
461
|
+
kind: "ambiguous"
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
return next.sourceTimestamp >= current.sourceTimestamp ? next : current;
|
|
465
|
+
}
|
|
466
|
+
async function registerSignalReplyContext(params) {
|
|
467
|
+
const store = openSignalReplyAuthorStore();
|
|
468
|
+
const key = buildSignalReplyAuthorStoreKey(params);
|
|
469
|
+
const author = normalizeOptionalString(params.author);
|
|
470
|
+
const body = normalizeOptionalString(params.body);
|
|
471
|
+
const media = params.media?.map((entry) => ({
|
|
472
|
+
contentType: normalizeOptionalString(entry.contentType),
|
|
473
|
+
kind: entry.kind ?? void 0
|
|
474
|
+
}));
|
|
475
|
+
const conversationKey = normalizeSignalMessagingTarget(params.to);
|
|
476
|
+
const replyToId = normalizeOptionalString(params.replyToId);
|
|
477
|
+
const accountKey = normalizeLowercaseStringOrEmpty(normalizeOptionalString(params.accountId) ?? DEFAULT_ACCOUNT_ID);
|
|
478
|
+
const sourceTimestamp = resolveSourceTimestamp(params.sourceTimestamp);
|
|
479
|
+
if (!key || !author || !conversationKey || !replyToId) return;
|
|
480
|
+
const registeredAt = Date.now();
|
|
481
|
+
const record = {
|
|
482
|
+
kind: "resolved",
|
|
483
|
+
author,
|
|
484
|
+
...body ? { body } : {},
|
|
485
|
+
...media?.length ? { media } : {},
|
|
486
|
+
accountId: accountKey,
|
|
487
|
+
conversationKey,
|
|
488
|
+
replyToId,
|
|
489
|
+
sourceTimestamp,
|
|
490
|
+
registeredAt
|
|
491
|
+
};
|
|
492
|
+
const expiresAt = registeredAt + DEFAULT_REPLY_AUTHOR_TTL_MS;
|
|
493
|
+
const usesComparisons = Boolean(store?.observe && store.compareAndApply);
|
|
494
|
+
if (!store || !store.update && !usesComparisons) {
|
|
495
|
+
const next = mergeReplyContext(memoryReplyContexts.get(key), record);
|
|
496
|
+
memoryReplyContexts.set(key, {
|
|
497
|
+
...next,
|
|
498
|
+
expiresAt
|
|
499
|
+
});
|
|
500
|
+
pruneMemoryReplyContexts(registeredAt);
|
|
501
|
+
if (store) {
|
|
502
|
+
signalReplyAuthorState.persistentStoreDisabled = true;
|
|
503
|
+
getOptionalSignalRuntime()?.logging.getChildLogger({
|
|
504
|
+
plugin: "signal",
|
|
505
|
+
feature: "reply-author-state"
|
|
506
|
+
}).warn("Signal persistent reply author state lacks atomic updates");
|
|
507
|
+
}
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
const cachedBeforeUpdate = memoryReplyContexts.get(key);
|
|
511
|
+
const cacheReplyContext = (next) => {
|
|
512
|
+
const current = memoryReplyContexts.get(key);
|
|
513
|
+
const changedDuringUpdate = usesComparisons && current !== cachedBeforeUpdate;
|
|
514
|
+
if (!next) {
|
|
515
|
+
if (!changedDuringUpdate) memoryReplyContexts.delete(key);
|
|
516
|
+
return;
|
|
517
|
+
}
|
|
518
|
+
const concurrent = changedDuringUpdate && current && current.expiresAt > registeredAt ? current : void 0;
|
|
519
|
+
memoryReplyContexts.set(key, {
|
|
520
|
+
...concurrent ? mergeReplyContext(concurrent, next) : next,
|
|
521
|
+
expiresAt: Math.max(expiresAt, concurrent?.expiresAt ?? expiresAt)
|
|
522
|
+
});
|
|
523
|
+
};
|
|
524
|
+
let updateEvaluated = false;
|
|
525
|
+
let nextRecord;
|
|
526
|
+
try {
|
|
527
|
+
let updated = false;
|
|
528
|
+
if (store.observe && store.compareAndApply) {
|
|
529
|
+
let observation = await store.observe(key);
|
|
530
|
+
for (;;) {
|
|
531
|
+
updateEvaluated = true;
|
|
532
|
+
nextRecord = mergeReplyContext(observation.value, record);
|
|
533
|
+
const result = await store.compareAndApply(key, observation.comparison, {
|
|
534
|
+
operation: "update",
|
|
535
|
+
action: "set",
|
|
536
|
+
value: nextRecord
|
|
537
|
+
});
|
|
538
|
+
if (result.status !== "conflict") {
|
|
539
|
+
updated = result.status === "applied";
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
observation = result.current;
|
|
543
|
+
}
|
|
544
|
+
} else if (store.update) updated = await store.update(key, (current) => {
|
|
545
|
+
updateEvaluated = true;
|
|
546
|
+
nextRecord = mergeReplyContext(current, record);
|
|
547
|
+
return nextRecord;
|
|
548
|
+
});
|
|
549
|
+
cacheReplyContext(updated ? nextRecord : void 0);
|
|
550
|
+
pruneMemoryReplyContexts(registeredAt);
|
|
551
|
+
} catch (error) {
|
|
552
|
+
if (!updateEvaluated) try {
|
|
553
|
+
nextRecord = mergeReplyContext(await store.lookup(key), record);
|
|
554
|
+
} catch {
|
|
555
|
+
nextRecord = void 0;
|
|
556
|
+
}
|
|
557
|
+
if (nextRecord || updateEvaluated) cacheReplyContext(nextRecord);
|
|
558
|
+
pruneMemoryReplyContexts(registeredAt);
|
|
559
|
+
getOptionalSignalRuntime()?.logging.getChildLogger({
|
|
560
|
+
plugin: "signal",
|
|
561
|
+
feature: "reply-author-state"
|
|
562
|
+
}).warn("Signal persistent reply author state failed", { error: String(error) });
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
async function resolveSignalReplyContextWithPersistence(params) {
|
|
566
|
+
const store = openSignalReplyAuthorStore();
|
|
567
|
+
const key = buildSignalReplyAuthorStoreKey(params);
|
|
568
|
+
if (!key) return;
|
|
569
|
+
pruneMemoryReplyContexts();
|
|
570
|
+
const memoryContext = resolveReplyContext(memoryReplyContexts.get(key));
|
|
571
|
+
if (!store || memoryContext) return memoryContext;
|
|
572
|
+
try {
|
|
573
|
+
return resolveReplyContext(await store.lookup(key));
|
|
574
|
+
} catch (error) {
|
|
575
|
+
getOptionalSignalRuntime()?.logging.getChildLogger({
|
|
576
|
+
plugin: "signal",
|
|
577
|
+
feature: "reply-author-state"
|
|
578
|
+
}).warn("Signal persistent reply author lookup failed", { error: String(error) });
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
//#endregion
|
|
82
583
|
//#region extensions/signal/src/setup-transport.ts
|
|
83
584
|
function managedTransportOptions(transport) {
|
|
84
585
|
const { kind: _kind, ...options } = transport;
|
|
@@ -173,23 +674,7 @@ function prepareSignalManagedNativeTransport(params) {
|
|
|
173
674
|
if (!normalizeOptionalString(accountConfig.account) && !accountConfig.transport) continue;
|
|
174
675
|
const accountPorts = portsByAccountId.get(normalizedAccountId) ?? /* @__PURE__ */ new Set();
|
|
175
676
|
portsByAccountId.set(normalizedAccountId, accountPorts);
|
|
176
|
-
|
|
177
|
-
if (transport?.kind === "managed-native") {
|
|
178
|
-
if (transport.socketPath !== void 0) continue;
|
|
179
|
-
if (transport.httpPort !== void 0) accountPorts.add(transport.httpPort);
|
|
180
|
-
else implicitManagedAccountIds.push(normalizedAccountId);
|
|
181
|
-
if (transport.url && !isSignalManagedNativeConnectionUrlForBind(transport)) {
|
|
182
|
-
const localConnectionPort = resolveLocalSignalTransportPort(transport.url);
|
|
183
|
-
if (localConnectionPort !== void 0) accountPorts.add(localConnectionPort);
|
|
184
|
-
}
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
if (transport?.kind === "external-native" || transport?.kind === "container") {
|
|
188
|
-
const localPort = resolveLocalSignalTransportPort(transport.url);
|
|
189
|
-
if (localPort !== void 0) accountPorts.add(localPort);
|
|
190
|
-
continue;
|
|
191
|
-
}
|
|
192
|
-
implicitManagedAccountIds.push(normalizedAccountId);
|
|
677
|
+
if (reserveSignalTransportPorts(accountConfig.transport, accountPorts)) implicitManagedAccountIds.push(normalizedAccountId);
|
|
193
678
|
}
|
|
194
679
|
const currentReservedPorts = /* @__PURE__ */ new Set();
|
|
195
680
|
for (const accountPorts of portsByAccountId.values()) for (const httpPort of accountPorts) currentReservedPorts.add(httpPort);
|
|
@@ -229,8 +714,8 @@ async function probeSignalTransport(params) {
|
|
|
229
714
|
overrides: managedTransportOptions(params.transport)
|
|
230
715
|
}) : params.transport;
|
|
231
716
|
const resolved = resolveSignalTransport(transport);
|
|
232
|
-
if (resolved.kind === "container") return (params.probeContainer ?? (await import("./transport-probes.runtime-
|
|
233
|
-
return (params.probeNative ?? (await import("./transport-probes.runtime-
|
|
717
|
+
if (resolved.kind === "container") return (params.probeContainer ?? (await import("./transport-probes.runtime-DwXEHnXr.mjs")).containerCheck)(resolved.baseUrl, timeoutMs, params.account);
|
|
718
|
+
return (params.probeNative ?? (await import("./transport-probes.runtime-DwXEHnXr.mjs")).nativeCheck)(resolved.baseUrl, timeoutMs);
|
|
234
719
|
}
|
|
235
720
|
function writeSignalAccountTransport(params) {
|
|
236
721
|
const transport = normalizeTransport(params.transport);
|
|
@@ -347,9 +832,7 @@ function buildSignalSetupPatch(input) {
|
|
|
347
832
|
url: normalizeSignalTransportUrl(input.httpUrl)
|
|
348
833
|
} : input.cliPath || input.httpHost || input.httpPort ? {
|
|
349
834
|
kind: "managed-native",
|
|
350
|
-
...input
|
|
351
|
-
...input.httpHost ? { httpHost: input.httpHost } : {},
|
|
352
|
-
...input.httpPort ? { httpPort: Number(input.httpPort) } : {}
|
|
835
|
+
...managedTransportOverridesFromSetupInput(input)
|
|
353
836
|
} : void 0;
|
|
354
837
|
return {
|
|
355
838
|
...account ? { account } : {},
|
|
@@ -442,11 +925,7 @@ function createSignalCliPathTextInput(shouldPrompt) {
|
|
|
442
925
|
return createCliPathTextInput({
|
|
443
926
|
inputKey: "cliPath",
|
|
444
927
|
message: "signal-cli path",
|
|
445
|
-
resolvePath:
|
|
446
|
-
cfg,
|
|
447
|
-
accountId,
|
|
448
|
-
credentialValues
|
|
449
|
-
}),
|
|
928
|
+
resolvePath: resolveSignalCliPath,
|
|
450
929
|
shouldPrompt
|
|
451
930
|
});
|
|
452
931
|
}
|
|
@@ -489,7 +968,7 @@ const signalSetupAdapterBase = createPatchedAccountSetupAdapter({
|
|
|
489
968
|
if (!input.signalNumber && !input.httpUrl && !input.httpHost && !input.httpPort && !input.cliPath) return "Signal requires --signal-number or --http-url/--http-host/--http-port/--cli-path.";
|
|
490
969
|
return null;
|
|
491
970
|
} }),
|
|
492
|
-
buildPatch:
|
|
971
|
+
buildPatch: buildSignalSetupPatch
|
|
493
972
|
});
|
|
494
973
|
function restorePromotedSignalDefaultAccount(cfg) {
|
|
495
974
|
const signal = cfg.channels?.signal;
|
|
@@ -512,11 +991,7 @@ function restorePromotedSignalDefaultAccount(cfg) {
|
|
|
512
991
|
const signalSetupAdapter = {
|
|
513
992
|
...signalSetupAdapterBase,
|
|
514
993
|
namedAccountPromotionKeys: [],
|
|
515
|
-
prepareAccountConfigInput:
|
|
516
|
-
cfg,
|
|
517
|
-
accountId,
|
|
518
|
-
input
|
|
519
|
-
}),
|
|
994
|
+
prepareAccountConfigInput: prepareSignalSetupInput,
|
|
520
995
|
singleAccountKeysToMove: [
|
|
521
996
|
"signalNumber",
|
|
522
997
|
"account",
|
|
@@ -586,7 +1061,7 @@ function createSignalSetupWizardProxy(loadWizard) {
|
|
|
586
1061
|
const signalDoctor = {
|
|
587
1062
|
normalizeCompatibilityConfig,
|
|
588
1063
|
cleanStaleConfig: async ({ cfg }) => {
|
|
589
|
-
const { detectSignalTransport } = await import("./transport-detection
|
|
1064
|
+
const { detectSignalTransport } = await import("./transport-detection-BVUDE42e.mjs").then((n) => n.n);
|
|
590
1065
|
const transport = await migrateLegacySignalTransportConfig({
|
|
591
1066
|
cfg,
|
|
592
1067
|
detect: detectSignalTransport
|
|
@@ -600,16 +1075,13 @@ const signalDoctor = {
|
|
|
600
1075
|
//#endregion
|
|
601
1076
|
//#region extensions/signal/src/shared.ts
|
|
602
1077
|
const SIGNAL_CHANNEL = "signal";
|
|
603
|
-
async
|
|
604
|
-
return await import("./channel.runtime-Dqc18A1e.mjs");
|
|
605
|
-
}
|
|
606
|
-
const signalSetupWizard = createSignalSetupWizardProxy(async () => (await loadSignalChannelRuntime()).signalSetupWizard);
|
|
1078
|
+
const signalSetupWizard = createSignalSetupWizardProxy(async () => (await import("./setup-surface-Drt-4t3R.mjs")).signalSetupWizard);
|
|
607
1079
|
const signalConfigAdapter = {
|
|
608
1080
|
...createScopedChannelConfigAdapter({
|
|
609
1081
|
sectionKey: SIGNAL_CHANNEL,
|
|
610
|
-
listAccountIds:
|
|
611
|
-
resolveAccount: adaptScopedAccountAccessor(
|
|
612
|
-
defaultAccountId:
|
|
1082
|
+
listAccountIds: listSignalAccountIds,
|
|
1083
|
+
resolveAccount: adaptScopedAccountAccessor(resolveSignalAccount),
|
|
1084
|
+
defaultAccountId: resolveDefaultSignalAccountId,
|
|
613
1085
|
clearBaseFields: [
|
|
614
1086
|
"account",
|
|
615
1087
|
"accountUuid",
|
|
@@ -617,8 +1089,7 @@ const signalConfigAdapter = {
|
|
|
617
1089
|
"name"
|
|
618
1090
|
],
|
|
619
1091
|
resolveAllowFrom: (account) => account.config.allowFrom,
|
|
620
|
-
formatAllowFrom: (allowFrom) => normalizeStringifiedEntries(allowFrom).map((entry) => entry === "*" ? "*" : normalizeE164(entry.replace(/^signal:/i, ""))).filter(Boolean)
|
|
621
|
-
resolveDefaultTo: (account) => account.config.defaultTo
|
|
1092
|
+
formatAllowFrom: (allowFrom) => normalizeStringifiedEntries(allowFrom).map((entry) => entry === "*" ? "*" : normalizeE164(entry.replace(/^signal:/i, ""))).filter(Boolean)
|
|
622
1093
|
}),
|
|
623
1094
|
resolveDefaultTo({ cfg, accountId }) {
|
|
624
1095
|
const raw = resolveSignalAccount({
|
|
@@ -657,11 +1128,6 @@ function createSignalPluginBase(params) {
|
|
|
657
1128
|
id: SIGNAL_CHANNEL,
|
|
658
1129
|
meta: { ...getChatChannelMeta(SIGNAL_CHANNEL) },
|
|
659
1130
|
setupWizard: params.setupWizard,
|
|
660
|
-
capabilities: {
|
|
661
|
-
chatTypes: ["direct", "group"],
|
|
662
|
-
media: true,
|
|
663
|
-
reactions: true
|
|
664
|
-
},
|
|
665
1131
|
streaming: { blockStreamingCoalesceDefaults: {
|
|
666
1132
|
minChars: 1500,
|
|
667
1133
|
idleMs: 1e3
|
|
@@ -672,27 +1138,32 @@ function createSignalPluginBase(params) {
|
|
|
672
1138
|
},
|
|
673
1139
|
configSchema: SignalChannelConfigSchema,
|
|
674
1140
|
doctor: signalDoctor,
|
|
675
|
-
config: {
|
|
676
|
-
...signalConfigAdapter,
|
|
677
|
-
isConfigured: (account) => account.configured,
|
|
678
|
-
describeAccount: (account) => describeAccountSnapshot({
|
|
679
|
-
account,
|
|
680
|
-
configured: account.configured,
|
|
681
|
-
extra: { baseUrl: account.baseUrl }
|
|
682
|
-
})
|
|
683
|
-
},
|
|
684
1141
|
security: signalSecurityAdapter,
|
|
685
1142
|
setupContract: params.setupContract
|
|
686
1143
|
}),
|
|
1144
|
+
capabilities: {
|
|
1145
|
+
chatTypes: ["direct", "group"],
|
|
1146
|
+
media: true,
|
|
1147
|
+
reactions: true
|
|
1148
|
+
},
|
|
1149
|
+
config: {
|
|
1150
|
+
...signalConfigAdapter,
|
|
1151
|
+
isConfigured: (account) => account.configured,
|
|
1152
|
+
describeAccount: (account) => describeAccountSnapshot({
|
|
1153
|
+
account,
|
|
1154
|
+
configured: account.configured,
|
|
1155
|
+
extra: { baseUrl: account.baseUrl }
|
|
1156
|
+
})
|
|
1157
|
+
},
|
|
687
1158
|
messaging: { defaultMarkdownTableMode: "bullets" }
|
|
688
1159
|
};
|
|
689
1160
|
}
|
|
690
1161
|
//#endregion
|
|
691
1162
|
//#region extensions/signal/src/channel.ts
|
|
692
|
-
const loadSignalMonitorModule = createLazyRuntimeModule(() => import("./monitor-
|
|
693
|
-
const loadSignalProbeModule = createLazyRuntimeModule(() => import("./probe-
|
|
694
|
-
const loadSignalSendRuntime = createLazyRuntimeModule(() => import("./send
|
|
695
|
-
const loadSignalApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-
|
|
1163
|
+
const loadSignalMonitorModule = createLazyRuntimeModule(() => import("./monitor-BfwQr78f.mjs").then((n) => n.n));
|
|
1164
|
+
const loadSignalProbeModule = createLazyRuntimeModule(() => import("./probe-BYLzra6D.mjs").then((n) => n.n));
|
|
1165
|
+
const loadSignalSendRuntime = createLazyRuntimeModule(() => import("./send-DEjrbpIC.mjs").then((n) => n.i));
|
|
1166
|
+
const loadSignalApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-BKkjIAoi.mjs").then((n) => n.n));
|
|
696
1167
|
async function resolveSignalSendContext(params) {
|
|
697
1168
|
return {
|
|
698
1169
|
send: resolveOutboundSendDep(params.deps, "signal") ?? (await loadSignalSendRuntime()).sendMessageSignal,
|
|
@@ -711,14 +1182,8 @@ function resolveSignalSendTarget(params) {
|
|
|
711
1182
|
}
|
|
712
1183
|
async function sendSignalOutbound(params) {
|
|
713
1184
|
const accountId = params.accountId ?? void 0;
|
|
714
|
-
const { send, maxBytes } = await resolveSignalSendContext(
|
|
715
|
-
|
|
716
|
-
accountId
|
|
717
|
-
});
|
|
718
|
-
const to = resolveSignalSendTarget({
|
|
719
|
-
...params,
|
|
720
|
-
accountId
|
|
721
|
-
});
|
|
1185
|
+
const { send, maxBytes } = await resolveSignalSendContext(params);
|
|
1186
|
+
const to = resolveSignalSendTarget(params);
|
|
722
1187
|
const replyOptions = await resolveSignalReplyOptions({
|
|
723
1188
|
cfg: params.cfg,
|
|
724
1189
|
to,
|
|
@@ -737,26 +1202,25 @@ async function sendSignalOutbound(params) {
|
|
|
737
1202
|
...replyOptions
|
|
738
1203
|
});
|
|
739
1204
|
}
|
|
740
|
-
function resolveSignalReplyOptions(params) {
|
|
1205
|
+
async function resolveSignalReplyOptions(params) {
|
|
741
1206
|
const replyToId = normalizeOptionalString(params.replyToId);
|
|
742
|
-
if (!replyToId) return
|
|
1207
|
+
if (!replyToId) return {};
|
|
743
1208
|
const accountId = resolveSignalAccount({
|
|
744
1209
|
cfg: params.cfg,
|
|
745
1210
|
accountId: params.accountId
|
|
746
1211
|
}).accountId;
|
|
747
|
-
|
|
1212
|
+
const persistedContext = await resolveSignalReplyContextWithPersistence({
|
|
748
1213
|
accountId,
|
|
749
1214
|
to: params.to,
|
|
750
1215
|
replyToId
|
|
751
|
-
}).then((persistedContext) => {
|
|
752
|
-
const replyToAuthor = persistedContext?.ambiguous === true ? void 0 : persistedContext?.author;
|
|
753
|
-
const replyToBody = persistedContext?.ambiguous === true ? "" : [persistedContext?.body, formatSignalMediaText(persistedContext?.media ?? [])].filter(Boolean).join("\n");
|
|
754
|
-
return {
|
|
755
|
-
replyToId,
|
|
756
|
-
...replyToAuthor ? { replyToAuthor } : {},
|
|
757
|
-
...replyToBody ? { replyToBody } : {}
|
|
758
|
-
};
|
|
759
1216
|
});
|
|
1217
|
+
const replyToAuthor = persistedContext?.ambiguous === true ? void 0 : persistedContext?.author;
|
|
1218
|
+
const replyToBody = persistedContext?.ambiguous === true ? "" : [persistedContext?.body, formatSignalMediaText(persistedContext?.media ?? [])].filter(Boolean).join("\n");
|
|
1219
|
+
return {
|
|
1220
|
+
replyToId,
|
|
1221
|
+
...replyToAuthor ? { replyToAuthor } : {},
|
|
1222
|
+
...replyToBody ? { replyToBody } : {}
|
|
1223
|
+
};
|
|
760
1224
|
}
|
|
761
1225
|
function inferSignalTargetChatType(rawTo) {
|
|
762
1226
|
let to = rawTo.trim();
|
|
@@ -791,19 +1255,14 @@ const signalMessageAdapter = defineChannelMessageAdapter({
|
|
|
791
1255
|
media: sendSignalOutbound
|
|
792
1256
|
}
|
|
793
1257
|
});
|
|
794
|
-
function buildSignalBaseSessionKey(params) {
|
|
795
|
-
return buildOutboundBaseSessionKey({
|
|
796
|
-
...params,
|
|
797
|
-
channel: "signal"
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
1258
|
function resolveSignalOutboundSessionRoute(params) {
|
|
801
1259
|
const target = params.resolvedTarget?.to ?? params.target;
|
|
802
1260
|
const resolved = resolveSignalOutboundTarget(target);
|
|
803
1261
|
if (!resolved) return null;
|
|
804
1262
|
const normalizedTarget = target.replace(/^signal:/i, "").trim();
|
|
805
1263
|
const recipientSessionExact = resolved.chatType === "group" || /^\+?\d{3,15}$/.test(normalizedTarget) ? true : "direct-alias";
|
|
806
|
-
const baseSessionKey =
|
|
1264
|
+
const baseSessionKey = buildOutboundBaseSessionKey({
|
|
1265
|
+
channel: "signal",
|
|
807
1266
|
cfg: params.cfg,
|
|
808
1267
|
agentId: params.agentId,
|
|
809
1268
|
accountId: params.accountId,
|
|
@@ -817,23 +1276,15 @@ function resolveSignalOutboundSessionRoute(params) {
|
|
|
817
1276
|
};
|
|
818
1277
|
}
|
|
819
1278
|
async function sendFormattedSignalText(ctx) {
|
|
820
|
-
const { send, maxBytes } = await resolveSignalSendContext(
|
|
821
|
-
cfg: ctx.cfg,
|
|
822
|
-
accountId: ctx.accountId ?? void 0,
|
|
823
|
-
deps: ctx.deps
|
|
824
|
-
});
|
|
1279
|
+
const { send, maxBytes } = await resolveSignalSendContext(ctx);
|
|
825
1280
|
const limit = resolveTextChunkLimit(ctx.cfg, "signal", ctx.accountId ?? void 0, { fallbackLimit: 4e3 });
|
|
826
|
-
const to = resolveSignalSendTarget(
|
|
827
|
-
cfg: ctx.cfg,
|
|
828
|
-
accountId: ctx.accountId ?? void 0,
|
|
829
|
-
to: ctx.to
|
|
830
|
-
});
|
|
1281
|
+
const to = resolveSignalSendTarget(ctx);
|
|
831
1282
|
const tableMode = resolveMarkdownTableMode({
|
|
832
1283
|
cfg: ctx.cfg,
|
|
833
1284
|
channel: "signal",
|
|
834
1285
|
accountId: ctx.accountId ?? void 0
|
|
835
1286
|
});
|
|
836
|
-
let chunks =
|
|
1287
|
+
let chunks = markdownToSignalTextChunks(ctx.text, limit ?? Number.POSITIVE_INFINITY, { tableMode });
|
|
837
1288
|
if (chunks.length === 0 && ctx.text) chunks = [{
|
|
838
1289
|
text: ctx.text,
|
|
839
1290
|
styles: []
|
|
@@ -875,16 +1326,8 @@ async function sendFormattedSignalText(ctx) {
|
|
|
875
1326
|
}
|
|
876
1327
|
async function sendFormattedSignalMedia(ctx) {
|
|
877
1328
|
ctx.abortSignal?.throwIfAborted();
|
|
878
|
-
const { send, maxBytes } = await resolveSignalSendContext(
|
|
879
|
-
|
|
880
|
-
accountId: ctx.accountId ?? void 0,
|
|
881
|
-
deps: ctx.deps
|
|
882
|
-
});
|
|
883
|
-
const to = resolveSignalSendTarget({
|
|
884
|
-
cfg: ctx.cfg,
|
|
885
|
-
accountId: ctx.accountId ?? void 0,
|
|
886
|
-
to: ctx.to
|
|
887
|
-
});
|
|
1329
|
+
const { send, maxBytes } = await resolveSignalSendContext(ctx);
|
|
1330
|
+
const to = resolveSignalSendTarget(ctx);
|
|
888
1331
|
const tableMode = resolveMarkdownTableMode({
|
|
889
1332
|
cfg: ctx.cfg,
|
|
890
1333
|
channel: "signal",
|
|
@@ -923,20 +1366,8 @@ async function registerDeliveredSignalApprovalPayloadForReactions(params) {
|
|
|
923
1366
|
const targetAuthor = normalizeOptionalString(account.config.account);
|
|
924
1367
|
const targetAuthorUuid = normalizeOptionalString(account.config.accountUuid);
|
|
925
1368
|
if (!targetAuthor && !targetAuthorUuid) return;
|
|
926
|
-
const {
|
|
927
|
-
|
|
928
|
-
cfg: params.cfg,
|
|
929
|
-
target: {
|
|
930
|
-
...params.target,
|
|
931
|
-
accountId: account.accountId
|
|
932
|
-
},
|
|
933
|
-
payload: params.payload,
|
|
934
|
-
results: params.results,
|
|
935
|
-
targetAuthor,
|
|
936
|
-
targetAuthorUuid
|
|
937
|
-
});
|
|
938
|
-
const { registerSignalApprovalReactionTargetForDeliveredPayload } = await loadSignalApprovalReactionsModule();
|
|
939
|
-
await registerSignalApprovalReactionTargetForDeliveredPayload({
|
|
1369
|
+
const { registerSignalReactionTargetsForDeliveredPayload } = await import("./reaction-targets-CEdyjtrC.mjs").then((n) => n.t);
|
|
1370
|
+
await registerSignalReactionTargetsForDeliveredPayload({
|
|
940
1371
|
cfg: params.cfg,
|
|
941
1372
|
target: {
|
|
942
1373
|
...params.target,
|
|
@@ -1007,7 +1438,7 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
1007
1438
|
targetPrefixes: ["signal"],
|
|
1008
1439
|
normalizeTarget: normalizeSignalMessagingTarget,
|
|
1009
1440
|
inferTargetChatType: ({ to }) => inferSignalTargetChatType(to),
|
|
1010
|
-
resolveOutboundSessionRoute:
|
|
1441
|
+
resolveOutboundSessionRoute: resolveSignalOutboundSessionRoute,
|
|
1011
1442
|
targetResolver: {
|
|
1012
1443
|
looksLikeId: looksLikeSignalTargetId,
|
|
1013
1444
|
hint: "<E.164|uuid:ID|group:ID|signal:group:ID|signal:+E.164>",
|
|
@@ -1123,7 +1554,7 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
1123
1554
|
} },
|
|
1124
1555
|
security: signalSecurityAdapter,
|
|
1125
1556
|
threading: {
|
|
1126
|
-
resolveReplyToMode:
|
|
1557
|
+
resolveReplyToMode: resolveSignalReplyToMode,
|
|
1127
1558
|
matchesToolContextTarget: ({ target, toolContext }) => {
|
|
1128
1559
|
const normalizedTarget = normalizeSignalMessagingTarget(target);
|
|
1129
1560
|
if (!normalizedTarget) return false;
|
|
@@ -1200,4 +1631,4 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
1200
1631
|
}
|
|
1201
1632
|
});
|
|
1202
1633
|
//#endregion
|
|
1203
|
-
export { normalizeSignalAccountInput as a, signalNumberTextInput as c, probeSignalTransport as d, writeSignalAccountTransport as f, createSignalCliPathTextInput as i, signalSetupContract as l, createSignalPluginBase as n, signalCompletionNote as o,
|
|
1634
|
+
export { resolveSignalReactionLevel as _, normalizeSignalAccountInput as a, markdownToSignalTextChunks as b, signalNumberTextInput as c, probeSignalTransport as d, writeSignalAccountTransport as f, signalMessageActions as g, resolveSignalOutboundTarget as h, createSignalCliPathTextInput as i, signalSetupContract as l, materializeSignalPresentationFallback as m, createSignalPluginBase as n, signalCompletionNote as o, registerSignalReplyContext as p, signalSetupWizard as r, signalDmPolicy as s, signalPlugin as t, prepareSignalManagedNativeTransport as u, formatSignalMediaText as v, isSignalNativeApprovalHandlerConfigured as x, markdownToSignalText as y };
|