@openclaw/signal 2026.9.4 → 2026.9.5
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/activity.svg +40 -0
- package/assets/icon.png +0 -0
- package/dist/{accounts-DO4HMqaK.js → .setup/accounts-BV6tDOTc.mjs} +20 -5
- package/dist/.setup/api-Cu01dJRP.mjs +12 -0
- package/dist/.setup/api-DbdeJVQ8.mjs +17 -0
- package/dist/{approval-auth-pNCKKotV.js → .setup/approval-auth-BBI9BTRm.mjs} +3 -3
- package/dist/{approval-handler.runtime-DCPJkIqo.js → .setup/approval-handler.runtime-Clf_1IZj.mjs} +11 -11
- package/dist/{approval-reactions-CjhdkJ8P.js → .setup/approval-reactions-B25QoVJc.mjs} +14 -14
- package/dist/{channel-CyQvEuyA.js → .setup/channel-gMpZmqLx.mjs} +56 -33
- package/dist/{channel.runtime--koF_1H0.js → .setup/channel.runtime-Dqc18A1e.mjs} +3 -3
- package/dist/{client-B3C0ciqU.js → .setup/client-BseAt7F7.mjs} +311 -41
- package/dist/{client-adapter-CNc5wzzs.js → .setup/client-adapter-dvFa47YL.mjs} +1 -1
- package/dist/{config-schema-DfEbpMVQ.js → .setup/config-schema-aQwwMGUj.mjs} +19 -3
- package/dist/{doctor-contract-api-D0SnglP4.js → .setup/doctor-contract-api-Rbq_sRTI.mjs} +79 -15
- package/dist/{install-signal-cli-QlEIfWBv.js → .setup/install-signal-cli-bXeTrTyL.mjs} +3 -4
- package/dist/{monitor-BiNWxMB3.js → .setup/monitor-DAMQw1pZ.mjs} +32 -20
- package/dist/{probe-kOJqyjWz.js → .setup/probe-IKCS9D-z.mjs} +3 -3
- package/dist/{question-reactions-BFR9Mf-O.js → .setup/question-reactions-DSNAD0cd.mjs} +3 -3
- package/dist/{reaction-runtime-api-CWqDv5-q.js → .setup/reaction-runtime-api-BnQGHcrB.mjs} +6 -5
- package/dist/{rpc-context-dXSy4NtF.js → .setup/rpc-context-CwwADZ1b.mjs} +1 -1
- package/dist/{send-Bz0x0JC1.js → .setup/send-CcetN4rk.mjs} +7 -6
- package/dist/{send.runtime-CeV1p7Sq.js → .setup/send.runtime-B7C4IP23.mjs} +1 -1
- package/dist/{transport-detection-Do2pYMAH.js → .setup/transport-detection-CqyR2vG8.mjs} +50 -21
- package/dist/{transport-detection.runtime-QasZp3BE.js → .setup/transport-detection.runtime-CW1lp2d9.mjs} +1 -1
- package/dist/{transport-policy-DxvSMHp9.js → .setup/transport-policy-5VSnj5ma.mjs} +2 -33
- package/dist/.setup/transport-probes.runtime-WprAyBbL.mjs +2 -0
- package/dist/.setup/transport-url-CAC0JcuI.mjs +55 -0
- package/dist/api.js +11 -16
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/contract-api.js +4 -4
- package/dist/doctor-contract-api.js +1 -1
- package/dist/reaction-runtime-api.js +1 -1
- package/dist/runtime-api.js +9 -9
- package/dist/setup-entry.js +2 -1
- package/node_modules/zod/README.md +27 -0
- package/node_modules/zod/compile.cjs +77 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +2 -2
- package/node_modules/zod/index.d.cts +1 -2
- package/node_modules/zod/index.d.ts +1 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/package.json +13 -2
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +5 -2
- package/node_modules/zod/src/v3/ZodError.ts +22 -12
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
- package/node_modules/zod/src/v3/types.ts +5 -5
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/compat.ts +26 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +59 -44
- package/node_modules/zod/src/v4/classic/external.ts +12 -9
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +140 -78
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +10 -4
- package/node_modules/zod/src/v4/classic/schemas.ts +452 -262
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +135 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +30 -1
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +720 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +155 -13
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +11 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +274 -6
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +425 -10
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +281 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +47 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +183 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +12 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +46 -9
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +245 -12
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +234 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +33 -2
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +127 -5
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +11 -2
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1585 -173
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +48 -12
- package/node_modules/zod/src/v4/core/checks.ts +57 -44
- package/node_modules/zod/src/v4/core/compile.ts +2188 -0
- package/node_modules/zod/src/v4/core/core.ts +98 -19
- package/node_modules/zod/src/v4/core/doc.ts +11 -7
- package/node_modules/zod/src/v4/core/errors.ts +115 -24
- package/node_modules/zod/src/v4/core/index.ts +3 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +6 -1
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +257 -93
- package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
- package/node_modules/zod/src/v4/core/memoizer.ts +284 -0
- package/node_modules/zod/src/v4/core/parse.ts +131 -38
- package/node_modules/zod/src/v4/core/regexes.ts +30 -13
- package/node_modules/zod/src/v4/core/registries.ts +2 -2
- package/node_modules/zod/src/v4/core/schemas.ts +759 -461
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +969 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +1639 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +31 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +275 -42
- package/node_modules/zod/src/v4/core/util.ts +268 -42
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +3 -0
- package/node_modules/zod/src/v4/locales/az.ts +3 -0
- package/node_modules/zod/src/v4/locales/be.ts +10 -0
- package/node_modules/zod/src/v4/locales/bg.ts +3 -0
- package/node_modules/zod/src/v4/locales/bn.ts +121 -0
- package/node_modules/zod/src/v4/locales/ca.ts +3 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +138 -0
- package/node_modules/zod/src/v4/locales/cs.ts +3 -0
- package/node_modules/zod/src/v4/locales/da.ts +5 -2
- package/node_modules/zod/src/v4/locales/de.ts +3 -0
- package/node_modules/zod/src/v4/locales/el.ts +1 -0
- package/node_modules/zod/src/v4/locales/en.ts +15 -4
- package/node_modules/zod/src/v4/locales/eo.ts +3 -0
- package/node_modules/zod/src/v4/locales/es.ts +2 -0
- package/node_modules/zod/src/v4/locales/fa.ts +3 -0
- package/node_modules/zod/src/v4/locales/fi.ts +3 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +3 -0
- package/node_modules/zod/src/v4/locales/fr.ts +19 -14
- package/node_modules/zod/src/v4/locales/gu.ts +121 -0
- package/node_modules/zod/src/v4/locales/he.ts +6 -1
- package/node_modules/zod/src/v4/locales/hi.ts +124 -0
- package/node_modules/zod/src/v4/locales/hr.ts +2 -0
- package/node_modules/zod/src/v4/locales/hu.ts +3 -0
- package/node_modules/zod/src/v4/locales/hy.ts +9 -0
- package/node_modules/zod/src/v4/locales/id.ts +3 -0
- package/node_modules/zod/src/v4/locales/index.ts +10 -0
- package/node_modules/zod/src/v4/locales/is.ts +3 -0
- package/node_modules/zod/src/v4/locales/it.ts +3 -0
- package/node_modules/zod/src/v4/locales/ja.ts +3 -0
- package/node_modules/zod/src/v4/locales/ka.ts +3 -0
- package/node_modules/zod/src/v4/locales/km.ts +3 -0
- package/node_modules/zod/src/v4/locales/kn.ts +124 -0
- package/node_modules/zod/src/v4/locales/ko.ts +3 -0
- package/node_modules/zod/src/v4/locales/lt.ts +2 -0
- package/node_modules/zod/src/v4/locales/mk.ts +3 -0
- package/node_modules/zod/src/v4/locales/ms.ts +3 -0
- package/node_modules/zod/src/v4/locales/ne.ts +126 -0
- package/node_modules/zod/src/v4/locales/nl.ts +3 -0
- package/node_modules/zod/src/v4/locales/nn.ts +119 -0
- package/node_modules/zod/src/v4/locales/no.ts +5 -2
- package/node_modules/zod/src/v4/locales/ota.ts +3 -0
- package/node_modules/zod/src/v4/locales/pl.ts +3 -0
- package/node_modules/zod/src/v4/locales/ps.ts +3 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +159 -0
- package/node_modules/zod/src/v4/locales/pt.ts +99 -58
- package/node_modules/zod/src/v4/locales/ro.ts +1 -0
- package/node_modules/zod/src/v4/locales/ru.ts +10 -0
- package/node_modules/zod/src/v4/locales/sk.ts +121 -0
- package/node_modules/zod/src/v4/locales/sl.ts +3 -0
- package/node_modules/zod/src/v4/locales/sv.ts +5 -2
- package/node_modules/zod/src/v4/locales/ta.ts +3 -0
- package/node_modules/zod/src/v4/locales/th.ts +3 -0
- package/node_modules/zod/src/v4/locales/tk.ts +111 -0
- package/node_modules/zod/src/v4/locales/tr.ts +3 -0
- package/node_modules/zod/src/v4/locales/uk.ts +3 -0
- package/node_modules/zod/src/v4/locales/ur.ts +3 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/locales/vi.ts +3 -0
- package/node_modules/zod/src/v4/locales/yo.ts +3 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +3 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +3 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +10 -1
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/parse.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +135 -56
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +72 -5
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +21 -0
- package/node_modules/zod/v3/ZodError.cjs +22 -12
- package/node_modules/zod/v3/ZodError.d.cts +1 -1
- package/node_modules/zod/v3/ZodError.d.ts +1 -1
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/types.cjs +7 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +2 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/compat.d.cts +9 -11
- package/node_modules/zod/v4/classic/compat.d.ts +9 -11
- package/node_modules/zod/v4/classic/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +43 -34
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +30 -27
- package/node_modules/zod/v4/classic/external.d.cts +5 -2
- package/node_modules/zod/v4/classic/external.d.ts +5 -2
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +136 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +136 -75
- package/node_modules/zod/v4/classic/in-out.cjs +63 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +2 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +11 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +4 -1
- package/node_modules/zod/v4/classic/parse.d.cts +17 -4
- package/node_modules/zod/v4/classic/parse.d.ts +17 -4
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +498 -398
- package/node_modules/zod/v4/classic/schemas.d.cts +53 -18
- package/node_modules/zod/v4/classic/schemas.d.ts +53 -18
- package/node_modules/zod/v4/classic/schemas.js +492 -396
- package/node_modules/zod/v4/core/api.cjs +23 -4
- package/node_modules/zod/v4/core/api.d.cts +13 -9
- package/node_modules/zod/v4/core/api.d.ts +13 -9
- package/node_modules/zod/v4/core/api.js +21 -4
- package/node_modules/zod/v4/core/checks.cjs +37 -31
- package/node_modules/zod/v4/core/checks.d.cts +13 -13
- package/node_modules/zod/v4/core/checks.d.ts +13 -13
- package/node_modules/zod/v4/core/checks.js +37 -31
- package/node_modules/zod/v4/core/compile.cjs +1813 -0
- package/node_modules/zod/v4/core/compile.d.cts +51 -0
- package/node_modules/zod/v4/core/compile.d.ts +51 -0
- package/node_modules/zod/v4/core/compile.js +1783 -0
- package/node_modules/zod/v4/core/core.cjs +81 -18
- package/node_modules/zod/v4/core/core.d.cts +16 -4
- package/node_modules/zod/v4/core/core.d.ts +16 -4
- package/node_modules/zod/v4/core/core.js +82 -19
- package/node_modules/zod/v4/core/doc.cjs +5 -7
- package/node_modules/zod/v4/core/doc.d.cts +3 -1
- package/node_modules/zod/v4/core/doc.d.ts +3 -1
- package/node_modules/zod/v4/core/doc.js +5 -7
- package/node_modules/zod/v4/core/errors.cjs +110 -25
- package/node_modules/zod/v4/core/errors.d.cts +4 -0
- package/node_modules/zod/v4/core/errors.d.ts +4 -0
- package/node_modules/zod/v4/core/errors.js +110 -25
- package/node_modules/zod/v4/core/index.cjs +5 -1
- package/node_modules/zod/v4/core/index.d.cts +3 -0
- package/node_modules/zod/v4/core/index.d.ts +3 -0
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +4 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.js +4 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +264 -95
- package/node_modules/zod/v4/core/json-schema-processors.js +243 -97
- package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
- package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
- package/node_modules/zod/v4/core/memoizer.cjs +272 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +265 -0
- package/node_modules/zod/v4/core/parse.cjs +96 -34
- package/node_modules/zod/v4/core/parse.d.cts +14 -11
- package/node_modules/zod/v4/core/parse.d.ts +14 -11
- package/node_modules/zod/v4/core/parse.js +94 -33
- package/node_modules/zod/v4/core/regexes.cjs +27 -15
- package/node_modules/zod/v4/core/regexes.d.cts +2 -0
- package/node_modules/zod/v4/core/regexes.d.ts +2 -0
- package/node_modules/zod/v4/core/regexes.js +24 -13
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +537 -326
- package/node_modules/zod/v4/core/schemas.d.cts +100 -31
- package/node_modules/zod/v4/core/schemas.d.ts +100 -31
- package/node_modules/zod/v4/core/schemas.js +526 -325
- package/node_modules/zod/v4/core/to-json-schema.cjs +242 -39
- package/node_modules/zod/v4/core/to-json-schema.d.cts +42 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +42 -3
- package/node_modules/zod/v4/core/to-json-schema.js +241 -39
- package/node_modules/zod/v4/core/util.cjs +212 -31
- package/node_modules/zod/v4/core/util.d.cts +58 -1
- package/node_modules/zod/v4/core/util.d.ts +58 -1
- package/node_modules/zod/v4/core/util.js +202 -30
- package/node_modules/zod/v4/core/versions.cjs +2 -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 +195 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +15 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +3 -0
- package/node_modules/zod/v4/locales/ar.js +3 -0
- package/node_modules/zod/v4/locales/az.cjs +3 -0
- package/node_modules/zod/v4/locales/az.js +3 -0
- package/node_modules/zod/v4/locales/be.cjs +10 -0
- package/node_modules/zod/v4/locales/be.js +10 -0
- package/node_modules/zod/v4/locales/bg.cjs +3 -0
- package/node_modules/zod/v4/locales/bg.js +3 -0
- package/node_modules/zod/v4/locales/bn.cjs +138 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +111 -0
- package/node_modules/zod/v4/locales/ca.cjs +3 -0
- package/node_modules/zod/v4/locales/ca.js +3 -0
- package/node_modules/zod/v4/locales/ckb.cjs +158 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +131 -0
- package/node_modules/zod/v4/locales/cs.cjs +3 -0
- package/node_modules/zod/v4/locales/cs.js +3 -0
- package/node_modules/zod/v4/locales/da.cjs +5 -2
- package/node_modules/zod/v4/locales/da.js +5 -2
- package/node_modules/zod/v4/locales/de.cjs +3 -0
- package/node_modules/zod/v4/locales/de.js +3 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +14 -4
- package/node_modules/zod/v4/locales/en.js +14 -4
- package/node_modules/zod/v4/locales/eo.cjs +3 -0
- package/node_modules/zod/v4/locales/eo.js +3 -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 +3 -0
- package/node_modules/zod/v4/locales/fa.js +3 -0
- package/node_modules/zod/v4/locales/fi.cjs +3 -0
- package/node_modules/zod/v4/locales/fi.js +3 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +3 -0
- package/node_modules/zod/v4/locales/fr-CA.js +3 -0
- package/node_modules/zod/v4/locales/fr.cjs +16 -14
- package/node_modules/zod/v4/locales/fr.js +16 -14
- package/node_modules/zod/v4/locales/gu.cjs +138 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +111 -0
- package/node_modules/zod/v4/locales/he.cjs +5 -0
- package/node_modules/zod/v4/locales/he.js +5 -0
- package/node_modules/zod/v4/locales/hi.cjs +136 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +109 -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 +3 -0
- package/node_modules/zod/v4/locales/hu.js +3 -0
- package/node_modules/zod/v4/locales/hy.cjs +9 -0
- package/node_modules/zod/v4/locales/hy.js +9 -0
- package/node_modules/zod/v4/locales/id.cjs +3 -0
- package/node_modules/zod/v4/locales/id.js +3 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -2
- package/node_modules/zod/v4/locales/index.d.cts +10 -0
- package/node_modules/zod/v4/locales/index.d.ts +10 -0
- package/node_modules/zod/v4/locales/index.js +10 -0
- package/node_modules/zod/v4/locales/is.cjs +3 -0
- package/node_modules/zod/v4/locales/is.js +3 -0
- package/node_modules/zod/v4/locales/it.cjs +3 -0
- package/node_modules/zod/v4/locales/it.js +3 -0
- package/node_modules/zod/v4/locales/ja.cjs +3 -0
- package/node_modules/zod/v4/locales/ja.js +3 -0
- package/node_modules/zod/v4/locales/ka.cjs +3 -0
- package/node_modules/zod/v4/locales/ka.js +3 -0
- package/node_modules/zod/v4/locales/km.cjs +3 -0
- package/node_modules/zod/v4/locales/km.js +3 -0
- package/node_modules/zod/v4/locales/kn.cjs +141 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +114 -0
- package/node_modules/zod/v4/locales/ko.cjs +3 -0
- package/node_modules/zod/v4/locales/ko.js +3 -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 +3 -0
- package/node_modules/zod/v4/locales/mk.js +3 -0
- package/node_modules/zod/v4/locales/ms.cjs +3 -0
- package/node_modules/zod/v4/locales/ms.js +3 -0
- package/node_modules/zod/v4/locales/ne.cjs +136 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +109 -0
- package/node_modules/zod/v4/locales/nl.cjs +3 -0
- package/node_modules/zod/v4/locales/nl.js +3 -0
- package/node_modules/zod/v4/locales/nn.cjs +138 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +111 -0
- package/node_modules/zod/v4/locales/no.cjs +5 -2
- package/node_modules/zod/v4/locales/no.js +5 -2
- package/node_modules/zod/v4/locales/ota.cjs +3 -0
- package/node_modules/zod/v4/locales/ota.js +3 -0
- package/node_modules/zod/v4/locales/pl.cjs +3 -0
- package/node_modules/zod/v4/locales/pl.js +3 -0
- package/node_modules/zod/v4/locales/ps.cjs +3 -0
- package/node_modules/zod/v4/locales/ps.js +3 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +168 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +141 -0
- package/node_modules/zod/v4/locales/pt.cjs +87 -55
- package/node_modules/zod/v4/locales/pt.js +87 -55
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +10 -0
- package/node_modules/zod/v4/locales/ru.js +10 -0
- package/node_modules/zod/v4/locales/sk.cjs +141 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +114 -0
- package/node_modules/zod/v4/locales/sl.cjs +3 -0
- package/node_modules/zod/v4/locales/sl.js +3 -0
- package/node_modules/zod/v4/locales/sv.cjs +5 -2
- package/node_modules/zod/v4/locales/sv.js +5 -2
- package/node_modules/zod/v4/locales/ta.cjs +3 -0
- package/node_modules/zod/v4/locales/ta.js +3 -0
- package/node_modules/zod/v4/locales/th.cjs +3 -0
- package/node_modules/zod/v4/locales/th.js +3 -0
- package/node_modules/zod/v4/locales/tk.cjs +132 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +105 -0
- package/node_modules/zod/v4/locales/tr.cjs +3 -0
- package/node_modules/zod/v4/locales/tr.js +3 -0
- package/node_modules/zod/v4/locales/uk.cjs +3 -0
- package/node_modules/zod/v4/locales/uk.js +3 -0
- package/node_modules/zod/v4/locales/ur.cjs +3 -0
- package/node_modules/zod/v4/locales/ur.js +3 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +3 -0
- package/node_modules/zod/v4/locales/vi.js +3 -0
- package/node_modules/zod/v4/locales/yo.cjs +3 -0
- package/node_modules/zod/v4/locales/yo.js +3 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +3 -0
- package/node_modules/zod/v4/locales/zh-CN.js +3 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +3 -0
- package/node_modules/zod/v4/locales/zh-TW.js +3 -0
- package/node_modules/zod/v4/mini/checks.cjs +2 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +12 -1
- package/node_modules/zod/v4/mini/external.d.cts +5 -2
- package/node_modules/zod/v4/mini/external.d.ts +5 -2
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +63 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/parse.cjs +3 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +75 -47
- package/node_modules/zod/v4/mini/schemas.d.cts +43 -13
- package/node_modules/zod/v4/mini/schemas.d.ts +43 -13
- package/node_modules/zod/v4/mini/schemas.js +71 -45
- package/openclaw.plugin.json +35 -42
- package/package.json +8 -6
- package/dist/transport-probes.runtime-DV7x4VWu.js +0 -2
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- /package/dist/{identity-YXPmgFMu.js → .setup/identity-YXPmgFMu.mjs} +0 -0
- /package/dist/{normalize-l_b99hap.js → .setup/normalize-l_b99hap.mjs} +0 -0
- /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2
|
+
<!--
|
|
3
|
+
Source: simple-icons@16.31.0, icons/signal.svg
|
|
4
|
+
https://www.npmjs.com/package/simple-icons/v/16.31.0
|
|
5
|
+
https://github.com/simple-icons/simple-icons
|
|
6
|
+
|
|
7
|
+
# CC0 1.0 Universal
|
|
8
|
+
|
|
9
|
+
## Statement of Purpose
|
|
10
|
+
|
|
11
|
+
The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an “owner”) of an original work of authorship and/or a database (each, a “Work”).
|
|
12
|
+
|
|
13
|
+
Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works (“Commons”) that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
|
|
14
|
+
|
|
15
|
+
For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the “Affirmer”), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
|
|
16
|
+
|
|
17
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights (“Copyright and Related Rights”). Copyright and Related Rights include, but are not limited to, the following:
|
|
18
|
+
1. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
|
|
19
|
+
2. moral rights retained by the original author(s) and/or performer(s);
|
|
20
|
+
3. publicity and privacy rights pertaining to a person’s image or likeness depicted in a Work;
|
|
21
|
+
4. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(i), below;
|
|
22
|
+
5. rights protecting the extraction, dissemination, use and reuse of data in a Work;
|
|
23
|
+
6. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
|
|
24
|
+
7. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
|
|
25
|
+
|
|
26
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “Waiver”). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer’s heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer’s express Statement of Purpose.
|
|
27
|
+
|
|
28
|
+
3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer’s express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer’s Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the “License”). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer’s express Statement of Purpose.
|
|
29
|
+
|
|
30
|
+
4. Limitations and Disclaimers.
|
|
31
|
+
1. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
|
|
32
|
+
2. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
|
|
33
|
+
3. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person’s Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
|
|
34
|
+
4. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
|
|
35
|
+
|
|
36
|
+
For more information, please see <https://creativecommons.org/publicdomain/zero/1.0>.
|
|
37
|
+
Names and marks remain the property of their respective owners.
|
|
38
|
+
-->
|
|
39
|
+
<path fill="currentColor" stroke="none" d="M12 0q-.934 0-1.83.139l.17 1.111a11 11 0 0 1 3.32 0l.172-1.111A12 12 0 0 0 12 0M9.152.34A12 12 0 0 0 5.77 1.742l.584.961a10.8 10.8 0 0 1 3.066-1.27zm5.696 0-.268 1.094a10.8 10.8 0 0 1 3.066 1.27l.584-.962A12 12 0 0 0 14.848.34M12 2.25a9.75 9.75 0 0 0-8.539 14.459c.074.134.1.292.064.441l-1.013 4.338 4.338-1.013a.62.62 0 0 1 .441.064A9.7 9.7 0 0 0 12 21.75c5.385 0 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25m-7.092.068a12 12 0 0 0-2.59 2.59l.909.664a11 11 0 0 1 2.345-2.345zm14.184 0-.664.909a11 11 0 0 1 2.345 2.345l.909-.664a12 12 0 0 0-2.59-2.59M1.742 5.77A12 12 0 0 0 .34 9.152l1.094.268a10.8 10.8 0 0 1 1.269-3.066zm20.516 0-.961.584a10.8 10.8 0 0 1 1.27 3.066l1.093-.268a12 12 0 0 0-1.402-3.383M.138 10.168A12 12 0 0 0 0 12q0 .934.139 1.83l1.111-.17A11 11 0 0 1 1.125 12q0-.848.125-1.66zm23.723.002-1.111.17q.125.812.125 1.66c0 .848-.042 1.12-.125 1.66l1.111.172a12.1 12.1 0 0 0 0-3.662M1.434 14.58l-1.094.268a12 12 0 0 0 .96 2.591l-.265 1.14 1.096.255.36-1.539-.188-.365a10.8 10.8 0 0 1-.87-2.35m21.133 0a10.8 10.8 0 0 1-1.27 3.067l.962.584a12 12 0 0 0 1.402-3.383zm-1.793 3.848a11 11 0 0 1-2.345 2.345l.664.909a12 12 0 0 0 2.59-2.59zm-19.959 1.1L.357 21.48a1.8 1.8 0 0 0 2.162 2.161l1.954-.455-.256-1.095-1.953.455a.675.675 0 0 1-.81-.81l.454-1.954zm16.832 1.769a10.8 10.8 0 0 1-3.066 1.27l.268 1.093a12 12 0 0 0 3.382-1.402zm-10.94.213-1.54.36.256 1.095 1.139-.266c.814.415 1.683.74 2.591.961l.268-1.094a10.8 10.8 0 0 1-2.35-.869zm3.634 1.24-.172 1.111a12.1 12.1 0 0 0 3.662 0l-.17-1.111q-.812.125-1.66.125a11 11 0 0 1-1.66-.125" />
|
|
40
|
+
</svg>
|
package/assets/icon.png
ADDED
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as normalizeSignalTransportHost, n as buildSignalSocketUrl, o as resolveSignalAccountEntry, r as buildSignalTransportHttpUrl, t as assertSignalSocketTransport } from "./transport-url-CAC0JcuI.mjs";
|
|
2
|
+
import { a as isSignalManagedNativeConnectionUrlForBind, i as assignSignalManagedNativePort, n as DEFAULT_SIGNAL_MANAGED_NATIVE_PORT, r as allocateSignalManagedNativePort, s as resolveLocalSignalTransportPort } from "./transport-policy-5VSnj5ma.mjs";
|
|
2
3
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
|
-
import { DEFAULT_ACCOUNT_ID, createAccountListHelpers, normalizeAccountId,
|
|
4
|
+
import { DEFAULT_ACCOUNT_ID, createAccountListHelpers, normalizeAccountId, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
|
|
4
5
|
//#region extensions/signal/src/accounts.ts
|
|
5
6
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal", {
|
|
6
7
|
normalizeAccountId,
|
|
@@ -15,6 +16,7 @@ function resolveSignalAccountConfig(cfg, accountId) {
|
|
|
15
16
|
channelConfig: accountId === DEFAULT_ACCOUNT_ID ? channelConfig : shared,
|
|
16
17
|
accounts: cfg.channels?.signal?.accounts,
|
|
17
18
|
accountId,
|
|
19
|
+
channelId: "signal",
|
|
18
20
|
nestedObjectKeys: ["aliases"]
|
|
19
21
|
});
|
|
20
22
|
if (accountId === DEFAULT_ACCOUNT_ID && channelConfig?.transport) return {
|
|
@@ -30,6 +32,15 @@ function isSignalAccountEnabled(cfg, config) {
|
|
|
30
32
|
return cfg.channels?.signal?.enabled !== false && config.enabled !== false;
|
|
31
33
|
}
|
|
32
34
|
function resolveSignalManagedNativePort(params) {
|
|
35
|
+
if (params.transport?.kind === "managed-native" && params.transport.socketPath !== void 0) {
|
|
36
|
+
assertSignalSocketTransport(params.transport);
|
|
37
|
+
if (isSignalAccountEnabled(params.cfg, params.accountConfig)) for (const accountId of listSignalAccountIds(params.cfg)) {
|
|
38
|
+
if (normalizeAccountId(accountId) === params.accountId) continue;
|
|
39
|
+
const sibling = resolveSignalAccountConfig(params.cfg, accountId);
|
|
40
|
+
if (isSignalAccountEnabled(params.cfg, sibling) && sibling.transport?.kind === "managed-native" && sibling.transport.socketPath === params.transport.socketPath) throw new Error(`Signal managed native accounts "${params.accountId}" and "${accountId}" share transport.socketPath. Assign each account a distinct socket path.`);
|
|
41
|
+
}
|
|
42
|
+
return DEFAULT_SIGNAL_MANAGED_NATIVE_PORT;
|
|
43
|
+
}
|
|
33
44
|
if (!isSignalAccountEnabled(params.cfg, params.accountConfig)) return params.transport?.kind === "managed-native" && params.transport.httpPort !== void 0 ? params.transport.httpPort : DEFAULT_SIGNAL_MANAGED_NATIVE_PORT;
|
|
34
45
|
if (params.transport?.kind === "managed-native" && params.transport.httpPort !== void 0) {
|
|
35
46
|
const explicitPort = params.transport.httpPort;
|
|
@@ -57,6 +68,7 @@ function resolveSignalManagedNativePort(params) {
|
|
|
57
68
|
continue;
|
|
58
69
|
}
|
|
59
70
|
if (transport?.kind === "managed-native") {
|
|
71
|
+
if (transport.socketPath !== void 0) continue;
|
|
60
72
|
if (transport.httpPort !== void 0) reservedPorts.add(transport.httpPort);
|
|
61
73
|
else implicitManagedAccountIds.push(accountId);
|
|
62
74
|
if (transport.url && !isSignalManagedNativeConnectionUrlForBind(transport)) {
|
|
@@ -79,13 +91,16 @@ function resolveSignalTransport(transport, managedNativePort = DEFAULT_SIGNAL_MA
|
|
|
79
91
|
kind: transport.kind,
|
|
80
92
|
baseUrl: transport.url.trim()
|
|
81
93
|
};
|
|
82
|
-
|
|
94
|
+
if (transport?.kind === "managed-native") assertSignalSocketTransport(transport);
|
|
95
|
+
const managedTransport = transport?.kind === "managed-native" && transport.socketPath === void 0 ? assignSignalManagedNativePort(transport, transport.httpPort ?? managedNativePort) : transport;
|
|
83
96
|
const httpHost = normalizeSignalTransportHost(normalizeOptionalString(managedTransport?.httpHost) ?? "127.0.0.1");
|
|
84
97
|
const httpPort = managedTransport?.httpPort ?? managedNativePort;
|
|
85
98
|
const configPath = normalizeOptionalString(managedTransport?.configPath);
|
|
99
|
+
const connectionUrl = normalizeOptionalString(managedTransport?.url);
|
|
86
100
|
return {
|
|
87
101
|
kind: "managed-native",
|
|
88
|
-
baseUrl:
|
|
102
|
+
baseUrl: managedTransport?.socketPath !== void 0 ? buildSignalSocketUrl(managedTransport.socketPath) : connectionUrl ?? buildSignalTransportHttpUrl(httpHost, httpPort),
|
|
103
|
+
...managedTransport?.socketPath !== void 0 ? { socketPath: managedTransport.socketPath } : {},
|
|
89
104
|
cliPath: normalizeOptionalString(managedTransport?.cliPath) ?? "signal-cli",
|
|
90
105
|
...configPath ? { configPath } : {},
|
|
91
106
|
httpHost,
|
|
@@ -131,7 +146,7 @@ function normalizeSignalReplyToMode(value) {
|
|
|
131
146
|
function resolveSignalReplyToMode(params) {
|
|
132
147
|
const accountId = normalizeAccountId(params.accountId ?? resolveDefaultSignalAccountId(params.cfg));
|
|
133
148
|
const signalConfig = params.cfg.channels?.signal;
|
|
134
|
-
const accountConfig =
|
|
149
|
+
const accountConfig = resolveSignalAccountEntry(signalConfig?.accounts, accountId);
|
|
135
150
|
const chatType = params.chatType === "direct" || params.chatType === "group" ? params.chatType : void 0;
|
|
136
151
|
if (chatType) {
|
|
137
152
|
const accountScoped = normalizeSignalReplyToMode(accountConfig?.replyToModeByChatType?.[chatType]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId, t as listEnabledSignalAccounts } from "./accounts-BV6tDOTc.mjs";
|
|
2
|
+
import { n as normalizeSignalMessagingTarget, t as looksLikeSignalTargetId } from "./normalize-l_b99hap.mjs";
|
|
3
|
+
import { a as normalizeSignalAllowRecipient, c as resolveSignalSender, i as isSignalSenderAllowed, l as looksLikeUuid, n as formatSignalSenderDisplay, o as resolveSignalPeerId, r as formatSignalSenderId, s as resolveSignalRecipient, t as formatSignalPairingIdLine } from "./identity-YXPmgFMu.mjs";
|
|
4
|
+
import { c as resolveSignalReactionLevel, d as markdownToSignalTextChunks, s as signalMessageActions, t as detectSignalTransport, u as markdownToSignalText } from "./transport-detection-CqyR2vG8.mjs";
|
|
5
|
+
import { n as sendReactionSignal, t as removeReactionSignal } from "./reaction-runtime-api-BnQGHcrB.mjs";
|
|
6
|
+
import { a as normalizeSignalAccountInput, d as probeSignalTransport, f as writeSignalAccountTransport, p as resolveSignalOutboundTarget, t as signalPlugin, u as prepareSignalManagedNativeTransport } from "./channel-gMpZmqLx.mjs";
|
|
7
|
+
import { t as signalSetupPlugin } from "./api-DbdeJVQ8.mjs";
|
|
8
|
+
import { r as installSignalCli } from "./install-signal-cli-bXeTrTyL.mjs";
|
|
9
|
+
import { t as monitorSignalProvider } from "./monitor-DAMQw1pZ.mjs";
|
|
10
|
+
import { n as sendReadReceiptSignal, r as sendTypingSignal, t as sendMessageSignal } from "./send-CcetN4rk.mjs";
|
|
11
|
+
import { t as probeSignal } from "./probe-IKCS9D-z.mjs";
|
|
12
|
+
export { detectSignalTransport, formatSignalPairingIdLine, formatSignalSenderDisplay, formatSignalSenderId, installSignalCli, isSignalSenderAllowed, listEnabledSignalAccounts, listSignalAccountIds, looksLikeSignalTargetId, looksLikeUuid, markdownToSignalText, markdownToSignalTextChunks, monitorSignalProvider, normalizeSignalAccountInput, normalizeSignalAllowRecipient, normalizeSignalMessagingTarget, prepareSignalManagedNativeTransport, probeSignal, probeSignalTransport, removeReactionSignal, resolveDefaultSignalAccountId, resolveSignalAccount, resolveSignalOutboundTarget, resolveSignalPeerId, resolveSignalReactionLevel, resolveSignalRecipient, resolveSignalSender, sendMessageSignal, sendReactionSignal, sendReadReceiptSignal, sendTypingSignal, signalMessageActions, signalPlugin, signalSetupPlugin, writeSignalAccountTransport };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./accounts-BV6tDOTc.mjs";
|
|
2
|
+
import "./normalize-l_b99hap.mjs";
|
|
3
|
+
import "./identity-YXPmgFMu.mjs";
|
|
4
|
+
import "./transport-detection-CqyR2vG8.mjs";
|
|
5
|
+
import "./reaction-runtime-api-BnQGHcrB.mjs";
|
|
6
|
+
import { l as signalSetupContract, n as createSignalPluginBase, r as signalSetupWizard } from "./channel-gMpZmqLx.mjs";
|
|
7
|
+
import "./install-signal-cli-bXeTrTyL.mjs";
|
|
8
|
+
import "./monitor-DAMQw1pZ.mjs";
|
|
9
|
+
import "./send-CcetN4rk.mjs";
|
|
10
|
+
import "./probe-IKCS9D-z.mjs";
|
|
11
|
+
//#region extensions/signal/src/channel.setup.ts
|
|
12
|
+
const signalSetupPlugin = { ...createSignalPluginBase({
|
|
13
|
+
setupWizard: signalSetupWizard,
|
|
14
|
+
setupContract: signalSetupContract
|
|
15
|
+
}) };
|
|
16
|
+
//#endregion
|
|
17
|
+
export { signalSetupPlugin as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as resolveSignalAccount } from "./accounts-
|
|
2
|
-
import { n as normalizeSignalMessagingTarget, t as looksLikeSignalTargetId } from "./normalize-l_b99hap.
|
|
3
|
-
import { l as looksLikeUuid } from "./identity-YXPmgFMu.
|
|
1
|
+
import { i as resolveSignalAccount } from "./accounts-BV6tDOTc.mjs";
|
|
2
|
+
import { n as normalizeSignalMessagingTarget, t as looksLikeSignalTargetId } from "./normalize-l_b99hap.mjs";
|
|
3
|
+
import { l as looksLikeUuid } from "./identity-YXPmgFMu.mjs";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
6
6
|
import { normalizeE164 } from "openclaw/plugin-sdk/text-utility-runtime";
|
package/dist/{approval-handler.runtime-DCPJkIqo.js → .setup/approval-handler.runtime-Clf_1IZj.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as resolveDefaultSignalAccountId } from "./accounts-
|
|
2
|
-
import { n as normalizeSignalMessagingTarget } from "./normalize-l_b99hap.
|
|
3
|
-
import { a as resolveSignalTarget } from "./approval-auth-
|
|
4
|
-
import { a as registerSignalApprovalReactionTarget, c as resolveSignalApprovalTargetAuthorKeys, l as unregisterSignalApprovalReactionTarget, r as hasSignalApprovalReactionApprovers, s as resolveSignalApprovalConversationKey } from "./approval-reactions-
|
|
5
|
-
import { r as sendTypingSignal, t as sendMessageSignal } from "./send-
|
|
1
|
+
import { r as resolveDefaultSignalAccountId } from "./accounts-BV6tDOTc.mjs";
|
|
2
|
+
import { n as normalizeSignalMessagingTarget } from "./normalize-l_b99hap.mjs";
|
|
3
|
+
import { a as resolveSignalTarget } from "./approval-auth-BBI9BTRm.mjs";
|
|
4
|
+
import { a as registerSignalApprovalReactionTarget, c as resolveSignalApprovalTargetAuthorKeys, l as unregisterSignalApprovalReactionTarget, r as hasSignalApprovalReactionApprovers, s as resolveSignalApprovalConversationKey } from "./approval-reactions-B25QoVJc.mjs";
|
|
5
|
+
import { r as sendTypingSignal, t as sendMessageSignal } from "./send-CcetN4rk.mjs";
|
|
6
6
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
7
7
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
8
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
@@ -140,9 +140,9 @@ const signalApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
|
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
interactions: {
|
|
143
|
-
bindPending: ({ entry, request, view, pendingPayload }) => {
|
|
143
|
+
bindPending: async ({ entry, request, view, pendingPayload }) => {
|
|
144
144
|
if (!entry.reactionsActive) return null;
|
|
145
|
-
return registerSignalApprovalReactionTarget({
|
|
145
|
+
return await registerSignalApprovalReactionTarget({
|
|
146
146
|
accountId: entry.accountId,
|
|
147
147
|
conversationKey: entry.conversationKey,
|
|
148
148
|
messageId: entry.messageId,
|
|
@@ -159,15 +159,15 @@ const signalApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
|
|
|
159
159
|
ttlMs: Math.max(1, view.expiresAtMs - Date.now())
|
|
160
160
|
}) ? true : null;
|
|
161
161
|
},
|
|
162
|
-
unbindPending: ({ entry }) => {
|
|
163
|
-
unregisterSignalApprovalReactionTarget({
|
|
162
|
+
unbindPending: async ({ entry }) => {
|
|
163
|
+
await unregisterSignalApprovalReactionTarget({
|
|
164
164
|
accountId: entry.accountId,
|
|
165
165
|
conversationKey: entry.conversationKey,
|
|
166
166
|
messageId: entry.messageId
|
|
167
167
|
});
|
|
168
168
|
},
|
|
169
|
-
cancelDelivered: ({ entry }) => {
|
|
170
|
-
unregisterSignalApprovalReactionTarget({
|
|
169
|
+
cancelDelivered: async ({ entry }) => {
|
|
170
|
+
await unregisterSignalApprovalReactionTarget({
|
|
171
171
|
accountId: entry.accountId,
|
|
172
172
|
conversationKey: entry.conversationKey,
|
|
173
173
|
messageId: entry.messageId
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.
|
|
2
|
-
import { n as normalizeSignalMessagingTarget } from "./normalize-l_b99hap.
|
|
3
|
-
import { a as resolveSignalTarget, i as resolveSignalDeliveredConversationKey, n as signalApprovalAuth, t as getSignalApprovalApprovers } from "./approval-auth-
|
|
4
|
-
import { l as looksLikeUuid } from "./identity-YXPmgFMu.
|
|
5
|
-
import { i as getOptionalSignalRuntime } from "./transport-detection-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
+
import { n as normalizeSignalMessagingTarget } from "./normalize-l_b99hap.mjs";
|
|
3
|
+
import { a as resolveSignalTarget, i as resolveSignalDeliveredConversationKey, n as signalApprovalAuth, t as getSignalApprovalApprovers } from "./approval-auth-BBI9BTRm.mjs";
|
|
4
|
+
import { l as looksLikeUuid } from "./identity-YXPmgFMu.mjs";
|
|
5
|
+
import { i as getOptionalSignalRuntime } from "./transport-detection-CqyR2vG8.mjs";
|
|
6
6
|
import { createLazyRuntimeSurface } from "openclaw/plugin-sdk/lazy-runtime";
|
|
7
7
|
import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
|
|
8
8
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -189,7 +189,7 @@ function readPersistedTarget(target) {
|
|
|
189
189
|
function hasSignalApprovalReactionApprovers(params) {
|
|
190
190
|
return getSignalApprovalApprovers(params).length > 0;
|
|
191
191
|
}
|
|
192
|
-
function registerSignalApprovalReactionTarget(params) {
|
|
192
|
+
async function registerSignalApprovalReactionTarget(params) {
|
|
193
193
|
const key = buildReactionTargetKey(params);
|
|
194
194
|
const approvalId = params.approvalId.trim();
|
|
195
195
|
const targetAuthorKeys = Array.from(new Set(params.targetAuthorKeys.map((entry) => normalizeSignalApprovalTargetAuthorKey(entry)).filter((entry) => Boolean(entry))));
|
|
@@ -214,7 +214,7 @@ function registerSignalApprovalReactionTarget(params) {
|
|
|
214
214
|
targetAuthorKeys,
|
|
215
215
|
route
|
|
216
216
|
};
|
|
217
|
-
signalApprovalReactionTargets.register(key, target, { ttlMs: params.ttlMs });
|
|
217
|
+
await signalApprovalReactionTargets.register(key, target, { ttlMs: params.ttlMs });
|
|
218
218
|
return target;
|
|
219
219
|
}
|
|
220
220
|
function formatSignalApprovalTerminalTruth(approval) {
|
|
@@ -257,7 +257,7 @@ function listDeliveredSignalMessageIdsWithVisibleHint(params) {
|
|
|
257
257
|
const ids = candidates.filter((result) => resultsWithVisibleText.length > 0 ? hasApprovalReactionHintText(readSignalDeliveryVisibleText(result)) : hasApprovalReactionHintText(params.payload.text)).map((result) => normalizeOptionalString(result.messageId)).filter((messageId) => Boolean(messageId && messageId !== "unknown"));
|
|
258
258
|
return Array.from(new Set(ids));
|
|
259
259
|
}
|
|
260
|
-
function registerSignalApprovalReactionTargetForDeliveredPayload(params) {
|
|
260
|
+
async function registerSignalApprovalReactionTargetForDeliveredPayload(params) {
|
|
261
261
|
if (normalizeLowercaseStringOrEmpty(params.target.channel) !== "signal") return false;
|
|
262
262
|
const metadata = getExecApprovalReplyMetadata(params.payload);
|
|
263
263
|
if (!metadata?.allowedDecisions || metadata.allowedDecisions.length === 0) return false;
|
|
@@ -283,11 +283,11 @@ function registerSignalApprovalReactionTargetForDeliveredPayload(params) {
|
|
|
283
283
|
if (!route) return false;
|
|
284
284
|
const targetAuthorKeys = resolveSignalApprovalTargetAuthorKeys(params);
|
|
285
285
|
if (targetAuthorKeys.length === 0) return false;
|
|
286
|
-
|
|
286
|
+
const registrations = [];
|
|
287
287
|
for (const messageId of listDeliveredSignalMessageIdsWithVisibleHint({
|
|
288
288
|
payload: params.payload,
|
|
289
289
|
results: params.results
|
|
290
|
-
}))
|
|
290
|
+
})) registrations.push(registerSignalApprovalReactionTarget({
|
|
291
291
|
accountId: normalizeAccountId(params.target.accountId ?? void 0),
|
|
292
292
|
conversationKey,
|
|
293
293
|
messageId,
|
|
@@ -298,13 +298,13 @@ function registerSignalApprovalReactionTargetForDeliveredPayload(params) {
|
|
|
298
298
|
route,
|
|
299
299
|
routeAllowed: true,
|
|
300
300
|
ttlMs: params.ttlMs
|
|
301
|
-
}))
|
|
302
|
-
return
|
|
301
|
+
}));
|
|
302
|
+
return (await Promise.all(registrations)).some(Boolean);
|
|
303
303
|
}
|
|
304
|
-
function unregisterSignalApprovalReactionTarget(params) {
|
|
304
|
+
async function unregisterSignalApprovalReactionTarget(params) {
|
|
305
305
|
const key = buildReactionTargetKey(params);
|
|
306
306
|
if (!key) return;
|
|
307
|
-
signalApprovalReactionTargets.delete(key);
|
|
307
|
+
await signalApprovalReactionTargets.delete(key);
|
|
308
308
|
}
|
|
309
309
|
function resolveTarget(params) {
|
|
310
310
|
const target = params.target;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
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 resolveLocalSignalTransportPort } from "./transport-policy-5VSnj5ma.mjs";
|
|
3
|
+
import { a as resolveSignalAccountConfig, i as resolveSignalAccount, n as listSignalAccountIds, o as resolveSignalReplyToMode, r as resolveDefaultSignalAccountId, s as resolveSignalTransport } from "./accounts-BV6tDOTc.mjs";
|
|
4
|
+
import { n as normalizeSignalMessagingTarget, t as looksLikeSignalTargetId } from "./normalize-l_b99hap.mjs";
|
|
5
|
+
import { a as resolveSignalTarget, r as listSignalAliasDirectoryEntries } from "./approval-auth-BBI9BTRm.mjs";
|
|
6
|
+
import { c as resolveSignalSender, l as looksLikeUuid, o as resolveSignalPeerId, s as resolveSignalRecipient } from "./identity-YXPmgFMu.mjs";
|
|
7
|
+
import { c as resolveSignalReactionLevel, d as markdownToSignalTextChunks, l as formatSignalMediaText, m as signalApprovalCapability, o as materializeSignalPresentationFallback, p as shouldSuppressLocalSignalExecApprovalPrompt, r as resolveSignalReplyContextWithPersistence, s as signalMessageActions, t as detectSignalTransport } from "./transport-detection-CqyR2vG8.mjs";
|
|
8
|
+
import { a as migrateLegacySignalTransportConfig, i as clearLegacySignalTransportFieldsForAccount, n as normalizeCompatibilityConfig, r as repairSignalAccountKeys } from "./doctor-contract-api-Rbq_sRTI.mjs";
|
|
9
|
+
import { t as SignalChannelConfigSchema } from "./config-schema-aQwwMGUj.mjs";
|
|
9
10
|
import { describeAccountSnapshot, resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/account-helpers";
|
|
10
11
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
11
12
|
import { buildDmGroupAccountAllowlistAdapter } from "openclaw/plugin-sdk/allowlist-config-edit";
|
|
@@ -22,7 +23,7 @@ import { buildOutboundBaseSessionKey } from "openclaw/plugin-sdk/routing";
|
|
|
22
23
|
import { buildBaseChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
23
24
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
24
25
|
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
25
|
-
import { normalizeAccountId as normalizeAccountId$1
|
|
26
|
+
import { normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/account-resolution";
|
|
26
27
|
import { normalizeE164 } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
27
28
|
import { createChannelPluginBase, getChatChannelMeta } from "openclaw/plugin-sdk/core";
|
|
28
29
|
import { parseAllowFromEntries } from "openclaw/plugin-sdk/allow-from";
|
|
@@ -84,11 +85,14 @@ function managedTransportOptions(transport) {
|
|
|
84
85
|
return options;
|
|
85
86
|
}
|
|
86
87
|
function normalizeTransport(transport) {
|
|
87
|
-
if (transport.kind === "managed-native")
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
if (transport.kind === "managed-native") {
|
|
89
|
+
assertSignalSocketTransport(transport);
|
|
90
|
+
return {
|
|
91
|
+
...transport,
|
|
92
|
+
...transport.url ? { url: normalizeSignalTransportUrl(transport.url) } : {},
|
|
93
|
+
...transport.httpHost ? { httpHost: normalizeSignalTransportHost(transport.httpHost) } : {}
|
|
94
|
+
};
|
|
95
|
+
}
|
|
92
96
|
return {
|
|
93
97
|
...transport,
|
|
94
98
|
url: normalizeSignalTransportUrl(transport.url)
|
|
@@ -107,21 +111,21 @@ function assertSignalLocalEndpointDoesNotConflictWithManagedSibling(params) {
|
|
|
107
111
|
const targetAccountId = normalizeAccountId$1(params.accountId);
|
|
108
112
|
for (const accountId of listSignalAccountIds(params.cfg)) {
|
|
109
113
|
if (normalizeAccountId$1(accountId) === targetAccountId) continue;
|
|
110
|
-
if (
|
|
114
|
+
if (resolveSignalAccountEntry(params.cfg.channels?.signal?.accounts, accountId)?.enabled === false) continue;
|
|
111
115
|
const siblingAccount = resolveSignalAccount({
|
|
112
116
|
cfg: params.cfg,
|
|
113
117
|
accountId
|
|
114
118
|
});
|
|
115
119
|
if (!siblingAccount.configured) continue;
|
|
116
120
|
const siblingTransport = siblingAccount.transport;
|
|
117
|
-
if (siblingTransport?.kind !== "managed-native" || siblingTransport.httpPort !== localPort) continue;
|
|
121
|
+
if (siblingTransport?.kind !== "managed-native" || siblingTransport.socketPath !== void 0 || siblingTransport.httpPort !== localPort) continue;
|
|
118
122
|
throw new Error(`Signal ${params.transport.kind} account "${targetAccountId}" uses local port ${localPort}, which conflicts with managed native account "${accountId}". Choose a distinct transport URL.`);
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
125
|
function resolveConfiguredSignalTransport(cfg, accountId) {
|
|
122
126
|
const signal = cfg.channels?.signal;
|
|
123
127
|
const normalizedAccountId = normalizeAccountId$1(accountId);
|
|
124
|
-
return normalizedAccountId === DEFAULT_ACCOUNT_ID$2 ? signal?.transport ??
|
|
128
|
+
return normalizedAccountId === DEFAULT_ACCOUNT_ID$2 ? signal?.transport ?? resolveSignalAccountEntry(signal?.accounts, normalizedAccountId)?.transport : resolveSignalAccountEntry(signal?.accounts, normalizedAccountId)?.transport;
|
|
125
129
|
}
|
|
126
130
|
function alignManagedConnectionUrlAfterBindChange(params) {
|
|
127
131
|
if (params.hasUrlOverride || !params.existing?.url || !isSignalManagedNativeConnectionUrlForBind(params.existing)) return assignSignalManagedNativePort(params.prepared, params.httpPort);
|
|
@@ -145,6 +149,15 @@ function alignManagedConnectionUrlAfterBindChange(params) {
|
|
|
145
149
|
function prepareSignalManagedNativeTransport(params) {
|
|
146
150
|
const existing = resolveConfiguredSignalTransport(params.cfg, params.accountId);
|
|
147
151
|
const existingManaged = existing?.kind === "managed-native" ? existing : void 0;
|
|
152
|
+
const socketCandidate = {
|
|
153
|
+
kind: "managed-native",
|
|
154
|
+
...existingManaged,
|
|
155
|
+
...params.overrides
|
|
156
|
+
};
|
|
157
|
+
if (socketCandidate.socketPath !== void 0) {
|
|
158
|
+
assertSignalSocketTransport(socketCandidate);
|
|
159
|
+
return socketCandidate;
|
|
160
|
+
}
|
|
148
161
|
const preferredPort = params.overrides?.httpPort ?? existingManaged?.httpPort;
|
|
149
162
|
const prepared = {
|
|
150
163
|
kind: "managed-native",
|
|
@@ -162,6 +175,7 @@ function prepareSignalManagedNativeTransport(params) {
|
|
|
162
175
|
portsByAccountId.set(normalizedAccountId, accountPorts);
|
|
163
176
|
const transport = accountConfig.transport;
|
|
164
177
|
if (transport?.kind === "managed-native") {
|
|
178
|
+
if (transport.socketPath !== void 0) continue;
|
|
165
179
|
if (transport.httpPort !== void 0) accountPorts.add(transport.httpPort);
|
|
166
180
|
else implicitManagedAccountIds.push(normalizedAccountId);
|
|
167
181
|
if (transport.url && !isSignalManagedNativeConnectionUrlForBind(transport)) {
|
|
@@ -215,8 +229,8 @@ async function probeSignalTransport(params) {
|
|
|
215
229
|
overrides: managedTransportOptions(params.transport)
|
|
216
230
|
}) : params.transport;
|
|
217
231
|
const resolved = resolveSignalTransport(transport);
|
|
218
|
-
if (resolved.kind === "container") return (params.probeContainer ?? (await import("./transport-probes.runtime-
|
|
219
|
-
return (params.probeNative ?? (await import("./transport-probes.runtime-
|
|
232
|
+
if (resolved.kind === "container") return (params.probeContainer ?? (await import("./transport-probes.runtime-WprAyBbL.mjs")).containerCheck)(resolved.baseUrl, timeoutMs, params.account);
|
|
233
|
+
return (params.probeNative ?? (await import("./transport-probes.runtime-WprAyBbL.mjs")).nativeCheck)(resolved.baseUrl, timeoutMs);
|
|
220
234
|
}
|
|
221
235
|
function writeSignalAccountTransport(params) {
|
|
222
236
|
const transport = normalizeTransport(params.transport);
|
|
@@ -373,7 +387,7 @@ function managedTransportOverridesFromSetupInput(input) {
|
|
|
373
387
|
function resolveSignalSetupAccount(params) {
|
|
374
388
|
const accountId = normalizeAccountId$1(params.accountId ?? resolveDefaultSignalAccountId(params.cfg));
|
|
375
389
|
const signal = params.cfg.channels?.signal;
|
|
376
|
-
return
|
|
390
|
+
return resolveSignalAccountEntry(signal?.accounts, accountId)?.account ?? signal?.account;
|
|
377
391
|
}
|
|
378
392
|
async function promptSignalAllowFrom(params) {
|
|
379
393
|
return promptParsedAllowFromForAccount({
|
|
@@ -479,12 +493,13 @@ const signalSetupAdapterBase = createPatchedAccountSetupAdapter({
|
|
|
479
493
|
});
|
|
480
494
|
function restorePromotedSignalDefaultAccount(cfg) {
|
|
481
495
|
const signal = cfg.channels?.signal;
|
|
482
|
-
const
|
|
483
|
-
|
|
496
|
+
const promotedKey = resolveSignalAccountKey(signal?.accounts, DEFAULT_ACCOUNT_ID$2);
|
|
497
|
+
const promoted = promotedKey === void 0 ? void 0 : signal?.accounts?.[promotedKey];
|
|
498
|
+
if (!signal?.transport || signal.account || !promoted?.account || promotedKey === void 0) return cfg;
|
|
484
499
|
const { account, transport: _shadowedTransport, ...remainingDefault } = promoted;
|
|
485
500
|
const accounts = { ...signal.accounts };
|
|
486
|
-
|
|
487
|
-
|
|
501
|
+
delete accounts[promotedKey];
|
|
502
|
+
accounts[DEFAULT_ACCOUNT_ID$2] = remainingDefault;
|
|
488
503
|
return patchTopLevelChannelConfigSection({
|
|
489
504
|
cfg,
|
|
490
505
|
channel,
|
|
@@ -496,6 +511,7 @@ function restorePromotedSignalDefaultAccount(cfg) {
|
|
|
496
511
|
}
|
|
497
512
|
const signalSetupAdapter = {
|
|
498
513
|
...signalSetupAdapterBase,
|
|
514
|
+
namedAccountPromotionKeys: [],
|
|
499
515
|
prepareAccountConfigInput: ({ cfg, accountId, input }) => prepareSignalSetupInput({
|
|
500
516
|
cfg,
|
|
501
517
|
accountId,
|
|
@@ -570,18 +586,22 @@ function createSignalSetupWizardProxy(loadWizard) {
|
|
|
570
586
|
const signalDoctor = {
|
|
571
587
|
normalizeCompatibilityConfig,
|
|
572
588
|
cleanStaleConfig: async ({ cfg }) => {
|
|
573
|
-
const { detectSignalTransport } = await import("./transport-detection.runtime-
|
|
574
|
-
|
|
589
|
+
const { detectSignalTransport } = await import("./transport-detection.runtime-CW1lp2d9.mjs");
|
|
590
|
+
const transport = await migrateLegacySignalTransportConfig({
|
|
575
591
|
cfg,
|
|
576
592
|
detect: detectSignalTransport
|
|
577
593
|
});
|
|
594
|
+
return {
|
|
595
|
+
...transport,
|
|
596
|
+
warnings: [...repairSignalAccountKeys({ cfg: transport.config }).warnings ?? [], ...transport.warnings ?? []]
|
|
597
|
+
};
|
|
578
598
|
}
|
|
579
599
|
};
|
|
580
600
|
//#endregion
|
|
581
601
|
//#region extensions/signal/src/shared.ts
|
|
582
602
|
const SIGNAL_CHANNEL = "signal";
|
|
583
603
|
async function loadSignalChannelRuntime() {
|
|
584
|
-
return await import("./channel.runtime
|
|
604
|
+
return await import("./channel.runtime-Dqc18A1e.mjs");
|
|
585
605
|
}
|
|
586
606
|
const signalSetupWizard = createSignalSetupWizardProxy(async () => (await loadSignalChannelRuntime()).signalSetupWizard);
|
|
587
607
|
const signalConfigAdapter = {
|
|
@@ -669,10 +689,10 @@ function createSignalPluginBase(params) {
|
|
|
669
689
|
}
|
|
670
690
|
//#endregion
|
|
671
691
|
//#region extensions/signal/src/channel.ts
|
|
672
|
-
const loadSignalMonitorModule = createLazyRuntimeModule(() => import("./monitor-
|
|
673
|
-
const loadSignalProbeModule = createLazyRuntimeModule(() => import("./probe-
|
|
674
|
-
const loadSignalSendRuntime = createLazyRuntimeModule(() => import("./send.runtime-
|
|
675
|
-
const loadSignalApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-
|
|
692
|
+
const loadSignalMonitorModule = createLazyRuntimeModule(() => import("./monitor-DAMQw1pZ.mjs").then((n) => n.n));
|
|
693
|
+
const loadSignalProbeModule = createLazyRuntimeModule(() => import("./probe-IKCS9D-z.mjs").then((n) => n.n));
|
|
694
|
+
const loadSignalSendRuntime = createLazyRuntimeModule(() => import("./send.runtime-B7C4IP23.mjs"));
|
|
695
|
+
const loadSignalApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-B25QoVJc.mjs").then((n) => n.n));
|
|
676
696
|
async function resolveSignalSendContext(params) {
|
|
677
697
|
return {
|
|
678
698
|
send: resolveOutboundSendDep(params.deps, "signal") ?? (await loadSignalSendRuntime()).sendMessageSignal,
|
|
@@ -713,6 +733,7 @@ async function sendSignalOutbound(params) {
|
|
|
713
733
|
...params.mediaReadFile ? { mediaReadFile: params.mediaReadFile } : {},
|
|
714
734
|
maxBytes,
|
|
715
735
|
accountId,
|
|
736
|
+
assertDirectAdapterHandoff: params.assertDirectAdapterHandoff,
|
|
716
737
|
...replyOptions
|
|
717
738
|
});
|
|
718
739
|
}
|
|
@@ -843,6 +864,7 @@ async function sendFormattedSignalText(ctx) {
|
|
|
843
864
|
accountId: ctx.accountId ?? void 0,
|
|
844
865
|
textMode: "plain",
|
|
845
866
|
textStyles: chunk.styles,
|
|
867
|
+
assertDirectAdapterHandoff: ctx.assertDirectAdapterHandoff,
|
|
846
868
|
...replyOptions
|
|
847
869
|
});
|
|
848
870
|
const deliveryResult = attachChannelToResult("signal", attachSignalVisibleText(result, chunk.text));
|
|
@@ -888,6 +910,7 @@ async function sendFormattedSignalMedia(ctx) {
|
|
|
888
910
|
accountId: ctx.accountId ?? void 0,
|
|
889
911
|
textMode: "plain",
|
|
890
912
|
textStyles: formatted.styles,
|
|
913
|
+
assertDirectAdapterHandoff: ctx.assertDirectAdapterHandoff,
|
|
891
914
|
...replyOptions
|
|
892
915
|
});
|
|
893
916
|
return attachChannelToResult("signal", attachSignalVisibleText(result, formatted.text));
|
|
@@ -900,7 +923,7 @@ async function registerDeliveredSignalApprovalPayloadForReactions(params) {
|
|
|
900
923
|
const targetAuthor = normalizeOptionalString(account.config.account);
|
|
901
924
|
const targetAuthorUuid = normalizeOptionalString(account.config.accountUuid);
|
|
902
925
|
if (!targetAuthor && !targetAuthorUuid) return;
|
|
903
|
-
const { registerSignalQuestionReactionTargetForDeliveredPayload } = await import("./question-reactions-
|
|
926
|
+
const { registerSignalQuestionReactionTargetForDeliveredPayload } = await import("./question-reactions-DSNAD0cd.mjs").then((n) => n.n);
|
|
904
927
|
registerSignalQuestionReactionTargetForDeliveredPayload({
|
|
905
928
|
cfg: params.cfg,
|
|
906
929
|
target: {
|
|
@@ -913,7 +936,7 @@ async function registerDeliveredSignalApprovalPayloadForReactions(params) {
|
|
|
913
936
|
targetAuthorUuid
|
|
914
937
|
});
|
|
915
938
|
const { registerSignalApprovalReactionTargetForDeliveredPayload } = await loadSignalApprovalReactionsModule();
|
|
916
|
-
registerSignalApprovalReactionTargetForDeliveredPayload({
|
|
939
|
+
await registerSignalApprovalReactionTargetForDeliveredPayload({
|
|
917
940
|
cfg: params.cfg,
|
|
918
941
|
target: {
|
|
919
942
|
...params.target,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as resolveSignalAccount, n as listSignalAccountIds } from "./accounts-
|
|
2
|
-
import { c as signalNumberTextInput, i as createSignalCliPathTextInput, o as signalCompletionNote, s as signalDmPolicy } from "./channel-
|
|
3
|
-
import {
|
|
1
|
+
import { i as resolveSignalAccount, n as listSignalAccountIds } from "./accounts-BV6tDOTc.mjs";
|
|
2
|
+
import { c as signalNumberTextInput, i as createSignalCliPathTextInput, o as signalCompletionNote, s as signalDmPolicy } from "./channel-gMpZmqLx.mjs";
|
|
3
|
+
import { r as installSignalCli } from "./install-signal-cli-bXeTrTyL.mjs";
|
|
4
4
|
import { createDetectedBinaryStatus, createSetupTranslator, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
|
|
5
5
|
import { detectBinary } from "openclaw/plugin-sdk/setup-tools";
|
|
6
6
|
//#region extensions/signal/src/setup-surface.ts
|