@openclaw/signal 2026.7.2-beta.7 → 2026.7.33
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/dist/.setup/accounts-Bz4HtP0g.mjs +59 -0
- package/dist/.setup/api-Q_S37MF_.mjs +16 -0
- package/dist/.setup/api-zi9Hs8Er.mjs +11 -0
- package/dist/{runtime-JPrGlV7h.js → .setup/approval-auth-CKMusyZI.mjs} +27 -36
- package/dist/{approval-handler.runtime-C-XYgcxE.js → .setup/approval-handler.runtime-eIT2knU-.mjs} +7 -7
- package/dist/{approval-reactions-DtL47gSK.js → .setup/approval-reactions-DoY1BVpl.mjs} +29 -38
- package/dist/{approval-resolver-B3m0D2R0.js → .setup/approval-resolver-BR0MioAA.mjs} +1 -2
- package/dist/{channel-CmbWaYlm.js → .setup/channel-DKzsFvG5.mjs} +90 -527
- package/dist/.setup/channel.runtime-jVmVayf_.mjs +66 -0
- package/dist/{client-BazXTH7O.js → .setup/client-adapter-BiGMiCr4.mjs} +236 -184
- package/dist/.setup/config-api-KS-qhQvD.mjs +2 -0
- package/dist/.setup/config-schema-BQRy2Glu.mjs +27 -0
- package/dist/{identity-BQ4OzXXk.js → .setup/identity-C8-yk4J9.mjs} +9 -21
- package/dist/{install-signal-cli-qJF7iC4h.js → .setup/install-signal-cli-BoniH0EF.mjs} +50 -88
- package/dist/.setup/message-actions-Cplx3XNC.mjs +529 -0
- package/dist/{monitor-BvIzkrYW.js → .setup/monitor-CZUTeDiv.mjs} +315 -610
- package/dist/.setup/probe-BXmpsFzO.mjs +48 -0
- package/dist/{reaction-runtime-api-BjeDyKcz.js → .setup/reaction-runtime-api-CAxalUfb.mjs} +7 -5
- package/dist/{rpc-context-CZUoE0-A.js → .setup/rpc-context-B-l6wiZj.mjs} +1 -1
- package/dist/{send-B_Ks4MZr.js → .setup/send-CF_VPaZJ.mjs} +41 -56
- package/dist/{send.runtime-CbuXycZT.js → .setup/send.runtime-DqumNf6-.mjs} +1 -1
- 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 +3 -3
- package/dist/reaction-runtime-api.js +1 -1
- package/dist/runtime-api.js +10 -11
- package/dist/setup-entry.js +2 -1
- package/node_modules/ws/lib/permessage-deflate.js +3 -1
- package/node_modules/ws/package.json +1 -1
- package/openclaw.plugin.json +408 -566
- package/package.json +20 -70
- package/dist/accounts-DrStJjiK.js +0 -147
- package/dist/channel.runtime-BRDaqr5-.js +0 -92
- package/dist/client-adapter-mXGeEHQJ.js +0 -56
- package/dist/config-schema-Y3dFGwdL.js +0 -219
- package/dist/doctor-contract-api-Dcte-QYB.js +0 -487
- package/dist/doctor-contract-api.js +0 -2
- package/dist/probe-Br9abaGp.js +0 -65
- package/dist/question-reactions-Ds48FtEu.js +0 -109
- package/dist/transport-detection-Da06-LOL.js +0 -652
- package/dist/transport-detection.runtime-D_190UUL.js +0 -2
- package/dist/transport-policy-DxvSMHp9.js +0 -99
- package/dist/transport-probes.runtime-CV6Qs0Og.js +0 -2
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -191
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -7
- package/node_modules/zod/mini/index.cjs +0 -32
- package/node_modules/zod/mini/index.d.cts +0 -3
- package/node_modules/zod/mini/index.d.ts +0 -3
- package/node_modules/zod/mini/index.js +0 -3
- package/node_modules/zod/mini/package.json +0 -7
- package/node_modules/zod/package.json +0 -135
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -3
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/node_modules/zod/src/v4/classic/external.ts +0 -52
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1823
- package/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -153
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -455
- package/node_modules/zod/src/v4/core/index.ts +0 -16
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/node_modules/zod/src/v4/core/regexes.ts +0 -190
- package/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
- package/node_modules/zod/src/v4/core/util.ts +0 -983
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/node_modules/zod/src/v4/locales/el.ts +0 -121
- package/node_modules/zod/src/v4/locales/en.ts +0 -123
- package/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/node_modules/zod/src/v4/locales/fr.ts +0 -132
- package/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/node_modules/zod/src/v4/locales/hr.ts +0 -131
- package/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/node_modules/zod/src/v4/locales/index.ts +0 -52
- package/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/node_modules/zod/src/v4/locales/ro.ts +0 -129
- package/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/node_modules/zod/src/v4/locales/uz.ts +0 -117
- package/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/zod/src/v4/mini/external.ts +0 -41
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
- package/node_modules/zod/src/v4-mini/index.ts +0 -3
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -7
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3777
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3695
- package/node_modules/zod/v4/classic/checks.cjs +0 -33
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/zod/v4/classic/compat.d.cts +0 -50
- package/node_modules/zod/v4/classic/compat.d.ts +0 -50
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -48
- package/node_modules/zod/v4/classic/external.cjs +0 -73
- package/node_modules/zod/v4/classic/external.d.cts +0 -16
- package/node_modules/zod/v4/classic/external.d.ts +0 -16
- package/node_modules/zod/v4/classic/external.js +0 -20
- package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/package.json +0 -7
- package/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/node_modules/zod/v4/classic/parse.d.cts +0 -31
- package/node_modules/zod/v4/classic/parse.d.ts +0 -31
- package/node_modules/zod/v4/classic/parse.js +0 -15
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
- package/node_modules/zod/v4/classic/schemas.js +0 -1395
- package/node_modules/zod/v4/core/api.cjs +0 -1227
- package/node_modules/zod/v4/core/api.d.cts +0 -325
- package/node_modules/zod/v4/core/api.d.ts +0 -325
- package/node_modules/zod/v4/core/api.js +0 -1087
- package/node_modules/zod/v4/core/checks.cjs +0 -601
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -575
- package/node_modules/zod/v4/core/core.cjs +0 -85
- package/node_modules/zod/v4/core/core.d.cts +0 -70
- package/node_modules/zod/v4/core/core.d.ts +0 -70
- package/node_modules/zod/v4/core/core.js +0 -78
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -216
- package/node_modules/zod/v4/core/errors.d.cts +0 -221
- package/node_modules/zod/v4/core/errors.d.ts +0 -221
- package/node_modules/zod/v4/core/errors.js +0 -185
- package/node_modules/zod/v4/core/index.cjs +0 -47
- package/node_modules/zod/v4/core/index.d.cts +0 -16
- package/node_modules/zod/v4/core/index.d.ts +0 -16
- package/node_modules/zod/v4/core/index.js +0 -16
- package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
- package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
- package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/package.json +0 -7
- package/node_modules/zod/v4/core/parse.cjs +0 -131
- package/node_modules/zod/v4/core/parse.d.cts +0 -49
- package/node_modules/zod/v4/core/parse.d.ts +0 -49
- package/node_modules/zod/v4/core/parse.js +0 -93
- package/node_modules/zod/v4/core/regexes.cjs +0 -172
- package/node_modules/zod/v4/core/regexes.d.cts +0 -85
- package/node_modules/zod/v4/core/regexes.d.ts +0 -85
- package/node_modules/zod/v4/core/regexes.js +0 -139
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -2270
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
- package/node_modules/zod/v4/core/schemas.js +0 -2239
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
- package/node_modules/zod/v4/core/to-json-schema.js +0 -448
- package/node_modules/zod/v4/core/util.cjs +0 -734
- package/node_modules/zod/v4/core/util.d.cts +0 -200
- package/node_modules/zod/v4/core/util.d.ts +0 -200
- package/node_modules/zod/v4/core/util.js +0 -674
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -133
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -106
- package/node_modules/zod/v4/locales/az.cjs +0 -132
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -105
- package/node_modules/zod/v4/locales/be.cjs +0 -183
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -156
- package/node_modules/zod/v4/locales/bg.cjs +0 -147
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/zod/v4/locales/bg.js +0 -120
- package/node_modules/zod/v4/locales/ca.cjs +0 -134
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -107
- package/node_modules/zod/v4/locales/cs.cjs +0 -138
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -111
- package/node_modules/zod/v4/locales/da.cjs +0 -142
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -115
- package/node_modules/zod/v4/locales/de.cjs +0 -135
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -108
- package/node_modules/zod/v4/locales/el.cjs +0 -136
- package/node_modules/zod/v4/locales/el.d.cts +0 -5
- package/node_modules/zod/v4/locales/el.d.ts +0 -4
- package/node_modules/zod/v4/locales/el.js +0 -109
- package/node_modules/zod/v4/locales/en.cjs +0 -140
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/zod/v4/locales/en.js +0 -113
- package/node_modules/zod/v4/locales/eo.cjs +0 -136
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/zod/v4/locales/eo.js +0 -109
- package/node_modules/zod/v4/locales/es.cjs +0 -159
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -132
- package/node_modules/zod/v4/locales/fa.cjs +0 -141
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -114
- package/node_modules/zod/v4/locales/fi.cjs +0 -139
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -112
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -107
- package/node_modules/zod/v4/locales/fr.cjs +0 -152
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -125
- package/node_modules/zod/v4/locales/he.cjs +0 -241
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -214
- package/node_modules/zod/v4/locales/hr.cjs +0 -149
- package/node_modules/zod/v4/locales/hr.d.cts +0 -5
- package/node_modules/zod/v4/locales/hr.d.ts +0 -4
- package/node_modules/zod/v4/locales/hr.js +0 -122
- package/node_modules/zod/v4/locales/hu.cjs +0 -135
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -108
- package/node_modules/zod/v4/locales/hy.cjs +0 -174
- package/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/zod/v4/locales/hy.js +0 -147
- package/node_modules/zod/v4/locales/id.cjs +0 -133
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -106
- package/node_modules/zod/v4/locales/index.cjs +0 -111
- package/node_modules/zod/v4/locales/index.d.cts +0 -52
- package/node_modules/zod/v4/locales/index.d.ts +0 -52
- package/node_modules/zod/v4/locales/index.js +0 -52
- package/node_modules/zod/v4/locales/is.cjs +0 -136
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/zod/v4/locales/is.js +0 -109
- package/node_modules/zod/v4/locales/it.cjs +0 -135
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -108
- package/node_modules/zod/v4/locales/ja.cjs +0 -134
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -107
- package/node_modules/zod/v4/locales/ka.cjs +0 -139
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/zod/v4/locales/ka.js +0 -112
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -137
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -110
- package/node_modules/zod/v4/locales/ko.cjs +0 -138
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -111
- package/node_modules/zod/v4/locales/lt.cjs +0 -230
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/zod/v4/locales/lt.js +0 -203
- package/node_modules/zod/v4/locales/mk.cjs +0 -136
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -109
- package/node_modules/zod/v4/locales/ms.cjs +0 -134
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -107
- package/node_modules/zod/v4/locales/nl.cjs +0 -137
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -110
- package/node_modules/zod/v4/locales/no.cjs +0 -135
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -108
- package/node_modules/zod/v4/locales/ota.cjs +0 -136
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -109
- package/node_modules/zod/v4/locales/package.json +0 -7
- package/node_modules/zod/v4/locales/pl.cjs +0 -136
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -109
- package/node_modules/zod/v4/locales/ps.cjs +0 -141
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -114
- package/node_modules/zod/v4/locales/pt.cjs +0 -135
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -108
- package/node_modules/zod/v4/locales/ro.cjs +0 -146
- package/node_modules/zod/v4/locales/ro.d.cts +0 -5
- package/node_modules/zod/v4/locales/ro.d.ts +0 -4
- package/node_modules/zod/v4/locales/ro.js +0 -119
- package/node_modules/zod/v4/locales/ru.cjs +0 -183
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -156
- package/node_modules/zod/v4/locales/sl.cjs +0 -136
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -109
- package/node_modules/zod/v4/locales/sv.cjs +0 -137
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -110
- package/node_modules/zod/v4/locales/ta.cjs +0 -137
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -110
- package/node_modules/zod/v4/locales/th.cjs +0 -137
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -110
- package/node_modules/zod/v4/locales/tr.cjs +0 -132
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/zod/v4/locales/tr.js +0 -105
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -135
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -108
- package/node_modules/zod/v4/locales/ur.cjs +0 -137
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -110
- package/node_modules/zod/v4/locales/uz.cjs +0 -137
- package/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/zod/v4/locales/uz.js +0 -110
- package/node_modules/zod/v4/locales/vi.cjs +0 -135
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -108
- package/node_modules/zod/v4/locales/yo.cjs +0 -134
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -107
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -109
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -107
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/zod/v4/mini/external.cjs +0 -63
- package/node_modules/zod/v4/mini/external.d.cts +0 -13
- package/node_modules/zod/v4/mini/external.d.ts +0 -13
- package/node_modules/zod/v4/mini/external.js +0 -14
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/zod/v4/mini/package.json +0 -7
- package/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
- package/node_modules/zod/v4/mini/schemas.js +0 -961
- package/node_modules/zod/v4/package.json +0 -7
- package/node_modules/zod/v4-mini/index.cjs +0 -32
- package/node_modules/zod/v4-mini/index.d.cts +0 -3
- package/node_modules/zod/v4-mini/index.d.ts +0 -3
- package/node_modules/zod/v4-mini/index.js +0 -3
- package/node_modules/zod/v4-mini/package.json +0 -7
- /package/dist/{rolldown-runtime-D7D4PA-g.js → .setup/rolldown-runtime-D7D4PA-g.mjs} +0 -0
|
@@ -1,44 +1,37 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i as migrateLegacySignalTransportConfig, n as normalizeCompatibilityConfig, r as clearLegacySignalTransportFieldsForAccount } from "./doctor-contract-api-Dcte-QYB.js";
|
|
7
|
-
import { t as SignalChannelConfigSchema } from "./config-schema-Y3dFGwdL.js";
|
|
1
|
+
import { a as resolveSignalReplyToMode, i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId } from "./accounts-Bz4HtP0g.mjs";
|
|
2
|
+
import { c as resolveSignalSender, d as normalizeSignalMessagingTarget, l as looksLikeUuid, o as resolveSignalPeerId, s as resolveSignalRecipient, u as looksLikeSignalTargetId } from "./identity-C8-yk4J9.mjs";
|
|
3
|
+
import { i as resolveSignalTarget, r as listSignalAliasDirectoryEntries } from "./approval-auth-CKMusyZI.mjs";
|
|
4
|
+
import { i as markdownToSignalTextChunks, n as resolveSignalReactionLevel, o as shouldSuppressLocalSignalExecApprovalPrompt, s as signalApprovalCapability, t as signalMessageActions } from "./message-actions-Cplx3XNC.mjs";
|
|
5
|
+
import { t as SignalChannelConfigSchema } from "./config-schema-BQRy2Glu.mjs";
|
|
8
6
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
9
7
|
import { buildDmGroupAccountAllowlistAdapter } from "openclaw/plugin-sdk/allowlist-config-edit";
|
|
10
8
|
import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
11
|
-
import {
|
|
9
|
+
import { defineChannelMessageAdapter, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
|
|
12
10
|
import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
|
|
13
11
|
import { attachChannelToResult } from "openclaw/plugin-sdk/channel-send-result";
|
|
14
12
|
import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
|
|
15
13
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
16
14
|
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
|
|
17
15
|
import { resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/media-runtime";
|
|
18
|
-
import { questionGatewayRuntime } from "openclaw/plugin-sdk/question-gateway-runtime";
|
|
19
16
|
import { chunkText, resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking";
|
|
20
17
|
import { buildOutboundBaseSessionKey } from "openclaw/plugin-sdk/routing";
|
|
21
18
|
import { buildBaseChannelStatusSummary, collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
22
19
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
23
20
|
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
24
|
-
import { normalizeAccountId as normalizeAccountId$1, resolveAccountEntry } from "openclaw/plugin-sdk/account-resolution";
|
|
25
21
|
import { normalizeE164 } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
26
22
|
import { createChannelPluginBase, getChatChannelMeta } from "openclaw/plugin-sdk/core";
|
|
27
|
-
import {
|
|
28
|
-
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
29
|
-
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
30
|
-
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$2, createCliPathTextInput, createDelegatedSetupWizardProxy, createDelegatedTextInputShouldPrompt, createPatchedAccountSetupAdapter, createSetupInputPresenceValidator, createSetupTranslator, patchChannelConfigForAccount, promptParsedAllowFromForAccount, setAccountAllowFromForChannel, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup-runtime";
|
|
23
|
+
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, createCliPathTextInput, createDelegatedSetupWizardProxy, createDelegatedTextInputShouldPrompt, createPatchedAccountSetupAdapter, createSetupInputPresenceValidator, createSetupTranslator, mergeAllowFromEntries, parseSetupEntriesAllowingWildcard, patchChannelConfigForAccount, promptParsedAllowFromForAccount, setAccountAllowFromForChannel, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup-runtime";
|
|
31
24
|
import { formatCliCommand, formatDocsLink } from "openclaw/plugin-sdk/setup-tools";
|
|
32
25
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
33
26
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
34
27
|
import { createRestrictSendersChannelSecurity } from "openclaw/plugin-sdk/channel-policy";
|
|
35
28
|
//#region extensions/signal/src/outbound-session.ts
|
|
36
29
|
function resolveSignalOutboundTarget(target) {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
const lowered = normalizeLowercaseStringOrEmpty(normalized);
|
|
30
|
+
const stripped = target.replace(/^signal:/i, "").trim();
|
|
31
|
+
const lowered = normalizeLowercaseStringOrEmpty(stripped);
|
|
40
32
|
if (lowered.startsWith("group:")) {
|
|
41
|
-
const groupId =
|
|
33
|
+
const groupId = stripped.slice(6).trim();
|
|
34
|
+
if (!groupId) return null;
|
|
42
35
|
return {
|
|
43
36
|
peer: {
|
|
44
37
|
kind: "group",
|
|
@@ -49,16 +42,10 @@ function resolveSignalOutboundTarget(target) {
|
|
|
49
42
|
to: `group:${groupId}`
|
|
50
43
|
};
|
|
51
44
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
chatType: "direct",
|
|
58
|
-
from: `signal:${normalized}`,
|
|
59
|
-
to: `signal:${normalized}`
|
|
60
|
-
};
|
|
61
|
-
const recipient = normalized;
|
|
45
|
+
let recipient = stripped.trim();
|
|
46
|
+
if (lowered.startsWith("username:")) recipient = stripped.slice(9).trim();
|
|
47
|
+
else if (lowered.startsWith("u:")) recipient = stripped.slice(2).trim();
|
|
48
|
+
if (!recipient) return null;
|
|
62
49
|
const uuidCandidate = normalizeLowercaseStringOrEmpty(recipient).startsWith("uuid:") ? recipient.slice(5) : recipient;
|
|
63
50
|
const sender = resolveSignalSender({
|
|
64
51
|
sourceUuid: looksLikeUuid(uuidCandidate) ? uuidCandidate : null,
|
|
@@ -77,221 +64,9 @@ function resolveSignalOutboundTarget(target) {
|
|
|
77
64
|
};
|
|
78
65
|
}
|
|
79
66
|
//#endregion
|
|
80
|
-
//#region extensions/signal/src/setup-transport.ts
|
|
81
|
-
function managedTransportOptions(transport) {
|
|
82
|
-
const { kind: _kind, ...options } = transport;
|
|
83
|
-
return options;
|
|
84
|
-
}
|
|
85
|
-
function normalizeTransport(transport) {
|
|
86
|
-
if (transport.kind === "managed-native") return {
|
|
87
|
-
...transport,
|
|
88
|
-
...transport.url ? { url: normalizeSignalTransportUrl(transport.url) } : {},
|
|
89
|
-
...transport.httpHost ? { httpHost: normalizeSignalTransportHost(transport.httpHost) } : {}
|
|
90
|
-
};
|
|
91
|
-
return {
|
|
92
|
-
...transport,
|
|
93
|
-
url: normalizeSignalTransportUrl(transport.url)
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
function assertSignalContainerTransportHasAccount(params) {
|
|
97
|
-
if (params.transport.kind !== "container" || params.cfg.channels?.signal?.enabled === false) return;
|
|
98
|
-
const account = resolveSignalAccountConfig(params.cfg, normalizeAccountId$1(params.accountId));
|
|
99
|
-
if (account.enabled === false || normalizeOptionalString(account.account)) return;
|
|
100
|
-
throw new Error("Signal container transport requires an account number for an enabled account.");
|
|
101
|
-
}
|
|
102
|
-
function assertSignalLocalEndpointDoesNotConflictWithManagedSibling(params) {
|
|
103
|
-
if (params.transport.kind === "managed-native") return;
|
|
104
|
-
const localPort = resolveLocalSignalTransportPort(params.transport.url);
|
|
105
|
-
if (localPort === void 0) return;
|
|
106
|
-
const targetAccountId = normalizeAccountId$1(params.accountId);
|
|
107
|
-
for (const accountId of listSignalAccountIds(params.cfg)) {
|
|
108
|
-
if (normalizeAccountId$1(accountId) === targetAccountId) continue;
|
|
109
|
-
if (resolveAccountEntry(params.cfg.channels?.signal?.accounts, accountId)?.enabled === false) continue;
|
|
110
|
-
const siblingAccount = resolveSignalAccount({
|
|
111
|
-
cfg: params.cfg,
|
|
112
|
-
accountId
|
|
113
|
-
});
|
|
114
|
-
if (!siblingAccount.configured) continue;
|
|
115
|
-
const siblingTransport = siblingAccount.transport;
|
|
116
|
-
if (siblingTransport?.kind !== "managed-native" || siblingTransport.httpPort !== localPort) continue;
|
|
117
|
-
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.`);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function resolveConfiguredSignalTransport(cfg, accountId) {
|
|
121
|
-
const signal = cfg.channels?.signal;
|
|
122
|
-
const normalizedAccountId = normalizeAccountId$1(accountId);
|
|
123
|
-
return normalizedAccountId === DEFAULT_ACCOUNT_ID$2 ? signal?.transport ?? resolveAccountEntry(signal?.accounts, normalizedAccountId)?.transport : resolveAccountEntry(signal?.accounts, normalizedAccountId)?.transport;
|
|
124
|
-
}
|
|
125
|
-
function alignManagedConnectionUrlAfterBindChange(params) {
|
|
126
|
-
if (params.hasUrlOverride || !params.existing?.url || !isSignalManagedNativeConnectionUrlForBind(params.existing)) return assignSignalManagedNativePort(params.prepared, params.httpPort);
|
|
127
|
-
const connectionUrl = new URL(params.existing.url);
|
|
128
|
-
connectionUrl.port = String(params.httpPort);
|
|
129
|
-
const alignedPortUrl = normalizeSignalTransportUrl(connectionUrl.toString());
|
|
130
|
-
const next = {
|
|
131
|
-
...params.prepared,
|
|
132
|
-
url: alignedPortUrl,
|
|
133
|
-
httpPort: params.httpPort
|
|
134
|
-
};
|
|
135
|
-
if (isSignalManagedNativeConnectionUrlForBind(next)) return next;
|
|
136
|
-
const bindHost = params.prepared.httpHost ?? "127.0.0.1";
|
|
137
|
-
const connectionHost = bindHost === "0.0.0.0" ? "127.0.0.1" : bindHost === "::" ? "::1" : bindHost;
|
|
138
|
-
connectionUrl.hostname = connectionHost.includes(":") ? `[${connectionHost}]` : connectionHost;
|
|
139
|
-
return {
|
|
140
|
-
...next,
|
|
141
|
-
url: normalizeSignalTransportUrl(connectionUrl.toString())
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
function prepareSignalManagedNativeTransport(params) {
|
|
145
|
-
const existing = resolveConfiguredSignalTransport(params.cfg, params.accountId);
|
|
146
|
-
const existingManaged = existing?.kind === "managed-native" ? existing : void 0;
|
|
147
|
-
const preferredPort = params.overrides?.httpPort ?? existingManaged?.httpPort;
|
|
148
|
-
const prepared = {
|
|
149
|
-
kind: "managed-native",
|
|
150
|
-
...existingManaged,
|
|
151
|
-
...params.overrides,
|
|
152
|
-
httpHost: params.overrides?.httpHost ?? existingManaged?.httpHost ?? "127.0.0.1"
|
|
153
|
-
};
|
|
154
|
-
const portsByAccountId = /* @__PURE__ */ new Map();
|
|
155
|
-
const implicitManagedAccountIds = [];
|
|
156
|
-
for (const accountId of listSignalAccountIds(params.cfg)) {
|
|
157
|
-
const normalizedAccountId = normalizeAccountId$1(accountId);
|
|
158
|
-
const accountConfig = resolveSignalAccountConfig(params.cfg, accountId);
|
|
159
|
-
if (!normalizeOptionalString(accountConfig.account) && !accountConfig.transport) continue;
|
|
160
|
-
const accountPorts = portsByAccountId.get(normalizedAccountId) ?? /* @__PURE__ */ new Set();
|
|
161
|
-
portsByAccountId.set(normalizedAccountId, accountPorts);
|
|
162
|
-
const transport = accountConfig.transport;
|
|
163
|
-
if (transport?.kind === "managed-native") {
|
|
164
|
-
if (transport.httpPort !== void 0) accountPorts.add(transport.httpPort);
|
|
165
|
-
else implicitManagedAccountIds.push(normalizedAccountId);
|
|
166
|
-
if (transport.url && !isSignalManagedNativeConnectionUrlForBind(transport)) {
|
|
167
|
-
const localConnectionPort = resolveLocalSignalTransportPort(transport.url);
|
|
168
|
-
if (localConnectionPort !== void 0) accountPorts.add(localConnectionPort);
|
|
169
|
-
}
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
if (transport?.kind === "external-native" || transport?.kind === "container") {
|
|
173
|
-
const localPort = resolveLocalSignalTransportPort(transport.url);
|
|
174
|
-
if (localPort !== void 0) accountPorts.add(localPort);
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
implicitManagedAccountIds.push(normalizedAccountId);
|
|
178
|
-
}
|
|
179
|
-
const currentReservedPorts = /* @__PURE__ */ new Set();
|
|
180
|
-
for (const accountPorts of portsByAccountId.values()) for (const httpPort of accountPorts) currentReservedPorts.add(httpPort);
|
|
181
|
-
for (const accountId of implicitManagedAccountIds) {
|
|
182
|
-
const accountPorts = portsByAccountId.get(accountId);
|
|
183
|
-
if (!accountPorts) continue;
|
|
184
|
-
const httpPort = allocateSignalManagedNativePort({ reservedPorts: currentReservedPorts });
|
|
185
|
-
currentReservedPorts.add(httpPort);
|
|
186
|
-
accountPorts.add(httpPort);
|
|
187
|
-
}
|
|
188
|
-
const targetAccountId = normalizeAccountId$1(params.accountId);
|
|
189
|
-
const reservedPorts = /* @__PURE__ */ new Set();
|
|
190
|
-
for (const [accountId, accountPorts] of portsByAccountId) {
|
|
191
|
-
if (accountId === targetAccountId) continue;
|
|
192
|
-
for (const httpPort of accountPorts) reservedPorts.add(httpPort);
|
|
193
|
-
}
|
|
194
|
-
if (prepared.url && (params.overrides?.url !== void 0 ? !isSignalManagedNativeConnectionUrlForBind(prepared) : Boolean(existingManaged?.url && !isSignalManagedNativeConnectionUrlForBind(existingManaged))) && prepared.url) {
|
|
195
|
-
const localConnectionPort = resolveLocalSignalTransportPort(prepared.url);
|
|
196
|
-
if (localConnectionPort !== void 0) reservedPorts.add(localConnectionPort);
|
|
197
|
-
}
|
|
198
|
-
if (params.overrides?.httpPort !== void 0 && reservedPorts.has(params.overrides.httpPort)) throw new Error(`Signal managed native port ${params.overrides.httpPort} is already reserved by another account or local transport endpoint.`);
|
|
199
|
-
return alignManagedConnectionUrlAfterBindChange({
|
|
200
|
-
existing: existingManaged,
|
|
201
|
-
prepared,
|
|
202
|
-
httpPort: allocateSignalManagedNativePort({
|
|
203
|
-
reservedPorts,
|
|
204
|
-
preferredPort
|
|
205
|
-
}),
|
|
206
|
-
hasUrlOverride: params.overrides?.url !== void 0
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
async function probeSignalTransport(params) {
|
|
210
|
-
const timeoutMs = params.timeoutMs ?? 1e4;
|
|
211
|
-
const resolved = resolveSignalTransport(params.transport.kind === "managed-native" ? prepareSignalManagedNativeTransport({
|
|
212
|
-
cfg: params.cfg,
|
|
213
|
-
accountId: params.accountId,
|
|
214
|
-
overrides: managedTransportOptions(params.transport)
|
|
215
|
-
}) : params.transport);
|
|
216
|
-
if (resolved.kind === "container") return (params.probeContainer ?? (await import("./transport-probes.runtime-CV6Qs0Og.js")).containerCheck)(resolved.baseUrl, timeoutMs, params.account);
|
|
217
|
-
return (params.probeNative ?? (await import("./transport-probes.runtime-CV6Qs0Og.js")).nativeCheck)(resolved.baseUrl, timeoutMs);
|
|
218
|
-
}
|
|
219
|
-
function writeSignalAccountTransport(params) {
|
|
220
|
-
const transport = normalizeTransport(params.transport);
|
|
221
|
-
assertSignalContainerTransportHasAccount({
|
|
222
|
-
cfg: params.cfg,
|
|
223
|
-
accountId: params.accountId,
|
|
224
|
-
transport
|
|
225
|
-
});
|
|
226
|
-
assertSignalLocalEndpointDoesNotConflictWithManagedSibling({
|
|
227
|
-
cfg: params.cfg,
|
|
228
|
-
accountId: params.accountId,
|
|
229
|
-
transport
|
|
230
|
-
});
|
|
231
|
-
const canonical = clearLegacySignalTransportFieldsForAccount({
|
|
232
|
-
cfg: patchChannelConfigForAccount({
|
|
233
|
-
cfg: params.cfg,
|
|
234
|
-
channel: "signal",
|
|
235
|
-
accountId: params.accountId,
|
|
236
|
-
patch: { transport }
|
|
237
|
-
}),
|
|
238
|
-
accountId: params.accountId
|
|
239
|
-
});
|
|
240
|
-
if (transport.kind === "managed-native") resolveSignalAccount({
|
|
241
|
-
cfg: canonical,
|
|
242
|
-
accountId: params.accountId
|
|
243
|
-
});
|
|
244
|
-
return canonical;
|
|
245
|
-
}
|
|
246
|
-
//#endregion
|
|
247
67
|
//#region extensions/signal/src/setup-core.ts
|
|
248
68
|
const t = createSetupTranslator();
|
|
249
69
|
const channel = "signal";
|
|
250
|
-
const signalSetupFields = {
|
|
251
|
-
signalNumber: {
|
|
252
|
-
kind: "string",
|
|
253
|
-
cli: {
|
|
254
|
-
flags: "--signal-number <e164>",
|
|
255
|
-
description: "Signal account number (E.164)"
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
signalTransport: {
|
|
259
|
-
kind: "choice",
|
|
260
|
-
choices: ["external-native", "container"],
|
|
261
|
-
cli: {
|
|
262
|
-
flags: "--signal-transport <kind>",
|
|
263
|
-
description: "Signal HTTP transport (external-native or container)"
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
cliPath: {
|
|
267
|
-
kind: "string",
|
|
268
|
-
cli: {
|
|
269
|
-
flags: "--cli-path <path>",
|
|
270
|
-
description: "signal-cli executable path"
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
httpUrl: {
|
|
274
|
-
kind: "string",
|
|
275
|
-
cli: {
|
|
276
|
-
flags: "--http-url <url>",
|
|
277
|
-
description: "Signal HTTP service URL"
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
httpHost: {
|
|
281
|
-
kind: "string",
|
|
282
|
-
cli: {
|
|
283
|
-
flags: "--http-host <host>",
|
|
284
|
-
description: "Signal HTTP daemon host"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
httpPort: {
|
|
288
|
-
kind: "string",
|
|
289
|
-
cli: {
|
|
290
|
-
flags: "--http-port <port>",
|
|
291
|
-
description: "Signal HTTP daemon port"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
70
|
const MIN_E164_DIGITS = 5;
|
|
296
71
|
const MAX_E164_DIGITS = 15;
|
|
297
72
|
const DIGITS_ONLY = /^\d+$/;
|
|
@@ -311,7 +86,7 @@ function isUuidLike(value) {
|
|
|
311
86
|
return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value);
|
|
312
87
|
}
|
|
313
88
|
function parseSignalAllowFromEntries(raw) {
|
|
314
|
-
return
|
|
89
|
+
return parseSetupEntriesAllowingWildcard(raw, (entry) => {
|
|
315
90
|
if (normalizeLowercaseStringOrEmpty(entry).startsWith("uuid:")) {
|
|
316
91
|
const id = entry.slice(5).trim();
|
|
317
92
|
if (!id) return { error: "Invalid uuid entry" };
|
|
@@ -324,53 +99,14 @@ function parseSignalAllowFromEntries(raw) {
|
|
|
324
99
|
});
|
|
325
100
|
}
|
|
326
101
|
function buildSignalSetupPatch(input) {
|
|
327
|
-
const transport = input.httpUrl ? {
|
|
328
|
-
kind: input.signalTransport ?? "external-native",
|
|
329
|
-
url: normalizeSignalTransportUrl(input.httpUrl)
|
|
330
|
-
} : input.cliPath || input.httpHost || input.httpPort ? {
|
|
331
|
-
kind: "managed-native",
|
|
332
|
-
...input.cliPath ? { cliPath: input.cliPath } : {},
|
|
333
|
-
...input.httpHost ? { httpHost: input.httpHost } : {},
|
|
334
|
-
...input.httpPort ? { httpPort: Number(input.httpPort) } : {}
|
|
335
|
-
} : void 0;
|
|
336
102
|
return {
|
|
337
103
|
...input.signalNumber ? { account: input.signalNumber } : {},
|
|
338
|
-
...transport ? { transport } : {}
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
async function prepareSignalSetupInput(params) {
|
|
342
|
-
if (!params.input.httpUrl || params.input.signalTransport) return params.input;
|
|
343
|
-
const account = normalizeSignalAccountInput(params.input.signalNumber) ?? normalizeSignalAccountInput(resolveSignalSetupAccount({
|
|
344
|
-
cfg: params.cfg,
|
|
345
|
-
accountId: params.accountId
|
|
346
|
-
})) ?? void 0;
|
|
347
|
-
try {
|
|
348
|
-
const detected = await detectSignalTransport({
|
|
349
|
-
url: params.input.httpUrl,
|
|
350
|
-
...account ? { account } : {}
|
|
351
|
-
});
|
|
352
|
-
return {
|
|
353
|
-
...params.input,
|
|
354
|
-
signalTransport: detected.kind === "container" ? "container" : "external-native"
|
|
355
|
-
};
|
|
356
|
-
} catch {
|
|
357
|
-
const existing = resolveConfiguredSignalTransport(params.cfg, params.accountId);
|
|
358
|
-
if (existing?.kind === "container" || existing?.kind === "external-native") return params.input;
|
|
359
|
-
throw new Error("Signal could not detect the HTTP transport; start the endpoint or pass --signal-transport external-native|container.");
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
function managedTransportOverridesFromSetupInput(input) {
|
|
363
|
-
return {
|
|
364
104
|
...input.cliPath ? { cliPath: input.cliPath } : {},
|
|
105
|
+
...input.httpUrl ? { httpUrl: input.httpUrl } : {},
|
|
365
106
|
...input.httpHost ? { httpHost: input.httpHost } : {},
|
|
366
107
|
...input.httpPort ? { httpPort: Number(input.httpPort) } : {}
|
|
367
108
|
};
|
|
368
109
|
}
|
|
369
|
-
function resolveSignalSetupAccount(params) {
|
|
370
|
-
const accountId = normalizeAccountId$1(params.accountId ?? resolveDefaultSignalAccountId(params.cfg));
|
|
371
|
-
const signal = params.cfg.channels?.signal;
|
|
372
|
-
return resolveAccountEntry(signal?.accounts, accountId)?.account ?? signal?.account;
|
|
373
|
-
}
|
|
374
110
|
async function promptSignalAllowFrom(params) {
|
|
375
111
|
return promptParsedAllowFromForAccount({
|
|
376
112
|
cfg: params.cfg,
|
|
@@ -397,28 +133,45 @@ async function promptSignalAllowFrom(params) {
|
|
|
397
133
|
cfg,
|
|
398
134
|
channel,
|
|
399
135
|
accountId,
|
|
400
|
-
allowFrom
|
|
401
|
-
setupSurface: signalSetupAdapter
|
|
136
|
+
allowFrom
|
|
402
137
|
})
|
|
403
138
|
});
|
|
404
139
|
}
|
|
405
|
-
const signalDmPolicy =
|
|
140
|
+
const signalDmPolicy = {
|
|
406
141
|
label: "Signal",
|
|
407
142
|
channel,
|
|
408
|
-
|
|
143
|
+
policyKey: "channels.signal.dmPolicy",
|
|
144
|
+
allowFromKey: "channels.signal.allowFrom",
|
|
145
|
+
resolveConfigKeys: (cfg, accountId) => (accountId ?? resolveDefaultSignalAccountId(cfg)) !== DEFAULT_ACCOUNT_ID$1 ? {
|
|
146
|
+
policyKey: `channels.signal.accounts.${accountId ?? resolveDefaultSignalAccountId(cfg)}.dmPolicy`,
|
|
147
|
+
allowFromKey: `channels.signal.accounts.${accountId ?? resolveDefaultSignalAccountId(cfg)}.allowFrom`
|
|
148
|
+
} : {
|
|
149
|
+
policyKey: "channels.signal.dmPolicy",
|
|
150
|
+
allowFromKey: "channels.signal.allowFrom"
|
|
151
|
+
},
|
|
152
|
+
getCurrent: (cfg, accountId) => resolveSignalAccount({
|
|
409
153
|
cfg,
|
|
410
154
|
accountId: accountId ?? resolveDefaultSignalAccountId(cfg)
|
|
155
|
+
}).config.dmPolicy ?? "pairing",
|
|
156
|
+
setPolicy: (cfg, policy, accountId) => patchChannelConfigForAccount({
|
|
157
|
+
cfg,
|
|
158
|
+
channel,
|
|
159
|
+
accountId: accountId ?? resolveDefaultSignalAccountId(cfg),
|
|
160
|
+
patch: policy === "open" ? {
|
|
161
|
+
dmPolicy: "open",
|
|
162
|
+
allowFrom: mergeAllowFromEntries(resolveSignalAccount({
|
|
163
|
+
cfg,
|
|
164
|
+
accountId: accountId ?? resolveDefaultSignalAccountId(cfg)
|
|
165
|
+
}).config.allowFrom, ["*"])
|
|
166
|
+
} : { dmPolicy: policy }
|
|
411
167
|
}),
|
|
412
|
-
setupSurface: () => signalSetupAdapter,
|
|
413
168
|
promptAllowFrom: promptSignalAllowFrom
|
|
414
|
-
}
|
|
169
|
+
};
|
|
415
170
|
function resolveSignalCliPath(params) {
|
|
416
|
-
|
|
171
|
+
return (typeof params.credentialValues.cliPath === "string" ? params.credentialValues.cliPath : void 0) ?? resolveSignalAccount({
|
|
417
172
|
cfg: params.cfg,
|
|
418
173
|
accountId: params.accountId
|
|
419
|
-
}).
|
|
420
|
-
if (transport.kind !== "managed-native") return;
|
|
421
|
-
return typeof params.credentialValues.cliPath === "string" ? params.credentialValues.cliPath : transport.cliPath;
|
|
174
|
+
}).config.cliPath ?? "signal-cli";
|
|
422
175
|
}
|
|
423
176
|
function createSignalCliPathTextInput(shouldPrompt) {
|
|
424
177
|
return createCliPathTextInput({
|
|
@@ -452,94 +205,14 @@ const signalCompletionNote = {
|
|
|
452
205
|
`Docs: ${formatDocsLink("/signal", "signal")}`
|
|
453
206
|
]
|
|
454
207
|
};
|
|
455
|
-
const
|
|
208
|
+
const signalSetupAdapter = createPatchedAccountSetupAdapter({
|
|
456
209
|
channelKey: channel,
|
|
457
|
-
validateInput: createSetupInputPresenceValidator({ validate: ({
|
|
458
|
-
if (input.signalTransport && input.signalTransport !== "external-native" && input.signalTransport !== "container") return "Signal --signal-transport must be external-native or container.";
|
|
459
|
-
if (input.signalTransport && !input.httpUrl) return "Signal --signal-transport requires --http-url.";
|
|
460
|
-
if (input.httpPort !== void 0 && !isValidSignalManagedNativePort(Number(input.httpPort))) return "Signal --http-port must be an integer between 1 and 65535.";
|
|
461
|
-
if (input.httpHost) try {
|
|
462
|
-
normalizeSignalTransportHost(input.httpHost);
|
|
463
|
-
} catch {
|
|
464
|
-
return "Signal --http-host must be a hostname or IP address.";
|
|
465
|
-
}
|
|
466
|
-
if (input.signalTransport === "container" && !normalizeSignalAccountInput(input.signalNumber) && !normalizeSignalAccountInput(resolveSignalSetupAccount({
|
|
467
|
-
cfg,
|
|
468
|
-
accountId
|
|
469
|
-
}))) return "Signal container transport requires --signal-number or an existing account.";
|
|
210
|
+
validateInput: createSetupInputPresenceValidator({ validate: ({ input }) => {
|
|
470
211
|
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.";
|
|
471
212
|
return null;
|
|
472
213
|
} }),
|
|
473
214
|
buildPatch: (input) => buildSignalSetupPatch(input)
|
|
474
215
|
});
|
|
475
|
-
function restorePromotedSignalDefaultAccount(cfg) {
|
|
476
|
-
const signal = cfg.channels?.signal;
|
|
477
|
-
const promoted = signal?.accounts?.[DEFAULT_ACCOUNT_ID$2];
|
|
478
|
-
if (!signal?.transport || signal.account || !promoted?.account) return cfg;
|
|
479
|
-
const { account, transport: _shadowedTransport, ...remainingDefault } = promoted;
|
|
480
|
-
const accounts = { ...signal.accounts };
|
|
481
|
-
if (Object.keys(remainingDefault).length === 0) delete accounts[DEFAULT_ACCOUNT_ID$2];
|
|
482
|
-
else accounts[DEFAULT_ACCOUNT_ID$2] = remainingDefault;
|
|
483
|
-
return {
|
|
484
|
-
...cfg,
|
|
485
|
-
channels: {
|
|
486
|
-
...cfg.channels,
|
|
487
|
-
signal: {
|
|
488
|
-
...signal,
|
|
489
|
-
account,
|
|
490
|
-
accounts
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
const signalSetupAdapter = {
|
|
496
|
-
...signalSetupAdapterBase,
|
|
497
|
-
prepareAccountConfigInput: ({ cfg, accountId, input }) => prepareSignalSetupInput({
|
|
498
|
-
cfg,
|
|
499
|
-
accountId,
|
|
500
|
-
input
|
|
501
|
-
}),
|
|
502
|
-
singleAccountKeysToMove: [
|
|
503
|
-
"signalNumber",
|
|
504
|
-
"account",
|
|
505
|
-
"cliPath",
|
|
506
|
-
"httpUrl",
|
|
507
|
-
"httpHost",
|
|
508
|
-
"httpPort"
|
|
509
|
-
],
|
|
510
|
-
applyAccountConfig: (params) => {
|
|
511
|
-
const accountId = normalizeAccountId$1(params.accountId);
|
|
512
|
-
const cfg = restorePromotedSignalDefaultAccount(params.cfg);
|
|
513
|
-
const previousTransport = resolveConfiguredSignalTransport(cfg, accountId);
|
|
514
|
-
const next = signalSetupAdapterBase.applyAccountConfig?.({
|
|
515
|
-
...params,
|
|
516
|
-
cfg,
|
|
517
|
-
accountId
|
|
518
|
-
}) ?? cfg;
|
|
519
|
-
const configuredTransport = resolveConfiguredSignalTransport(next, accountId);
|
|
520
|
-
if (configuredTransport && configuredTransport.kind !== "managed-native") return writeSignalAccountTransport({
|
|
521
|
-
cfg: next,
|
|
522
|
-
accountId,
|
|
523
|
-
transport: params.input.httpUrl && !params.input.signalTransport && (previousTransport?.kind === "container" || previousTransport?.kind === "external-native") ? {
|
|
524
|
-
...configuredTransport,
|
|
525
|
-
kind: previousTransport.kind
|
|
526
|
-
} : configuredTransport
|
|
527
|
-
});
|
|
528
|
-
return writeSignalAccountTransport({
|
|
529
|
-
cfg: next,
|
|
530
|
-
accountId,
|
|
531
|
-
transport: prepareSignalManagedNativeTransport({
|
|
532
|
-
cfg,
|
|
533
|
-
accountId,
|
|
534
|
-
overrides: managedTransportOverridesFromSetupInput(params.input)
|
|
535
|
-
})
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
const signalSetupContract = defineChannelSetupContract({
|
|
540
|
-
fields: signalSetupFields,
|
|
541
|
-
adapter: signalSetupAdapter
|
|
542
|
-
});
|
|
543
216
|
function createSignalSetupWizardProxy(loadWizard) {
|
|
544
217
|
return createDelegatedSetupWizardProxy({
|
|
545
218
|
channel,
|
|
@@ -564,22 +237,10 @@ function createSignalSetupWizardProxy(loadWizard) {
|
|
|
564
237
|
});
|
|
565
238
|
}
|
|
566
239
|
//#endregion
|
|
567
|
-
//#region extensions/signal/src/doctor.ts
|
|
568
|
-
const signalDoctor = {
|
|
569
|
-
normalizeCompatibilityConfig,
|
|
570
|
-
cleanStaleConfig: async ({ cfg }) => {
|
|
571
|
-
const { detectSignalTransport } = await import("./transport-detection.runtime-D_190UUL.js");
|
|
572
|
-
return await migrateLegacySignalTransportConfig({
|
|
573
|
-
cfg,
|
|
574
|
-
detect: detectSignalTransport
|
|
575
|
-
});
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
|
-
//#endregion
|
|
579
240
|
//#region extensions/signal/src/shared.ts
|
|
580
241
|
const SIGNAL_CHANNEL = "signal";
|
|
581
242
|
async function loadSignalChannelRuntime() {
|
|
582
|
-
return await import("./channel.runtime-
|
|
243
|
+
return await import("./channel.runtime-jVmVayf_.mjs");
|
|
583
244
|
}
|
|
584
245
|
const signalSetupWizard = createSignalSetupWizardProxy(async () => (await loadSignalChannelRuntime()).signalSetupWizard);
|
|
585
246
|
const signalConfigAdapter = {
|
|
@@ -590,8 +251,11 @@ const signalConfigAdapter = {
|
|
|
590
251
|
defaultAccountId: (cfg) => resolveDefaultSignalAccountId(cfg),
|
|
591
252
|
clearBaseFields: [
|
|
592
253
|
"account",
|
|
593
|
-
"
|
|
594
|
-
"
|
|
254
|
+
"configPath",
|
|
255
|
+
"httpUrl",
|
|
256
|
+
"httpHost",
|
|
257
|
+
"httpPort",
|
|
258
|
+
"cliPath",
|
|
595
259
|
"name"
|
|
596
260
|
],
|
|
597
261
|
resolveAllowFrom: (account) => account.config.allowFrom,
|
|
@@ -645,7 +309,6 @@ function createSignalPluginBase(params) {
|
|
|
645
309
|
} },
|
|
646
310
|
reload: { configPrefixes: ["channels.signal"] },
|
|
647
311
|
configSchema: SignalChannelConfigSchema,
|
|
648
|
-
doctor: signalDoctor,
|
|
649
312
|
config: {
|
|
650
313
|
...signalConfigAdapter,
|
|
651
314
|
isConfigured: (account) => account.configured,
|
|
@@ -656,17 +319,17 @@ function createSignalPluginBase(params) {
|
|
|
656
319
|
})
|
|
657
320
|
},
|
|
658
321
|
security: signalSecurityAdapter,
|
|
659
|
-
|
|
322
|
+
setup: params.setup
|
|
660
323
|
}),
|
|
661
324
|
messaging: { defaultMarkdownTableMode: "bullets" }
|
|
662
325
|
};
|
|
663
326
|
}
|
|
664
327
|
//#endregion
|
|
665
328
|
//#region extensions/signal/src/channel.ts
|
|
666
|
-
const loadSignalMonitorModule = createLazyRuntimeModule(() => import("./monitor-
|
|
667
|
-
const loadSignalProbeModule = createLazyRuntimeModule(() => import("./probe-
|
|
668
|
-
const loadSignalSendRuntime = createLazyRuntimeModule(() => import("./send.runtime-
|
|
669
|
-
const loadSignalApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-
|
|
329
|
+
const loadSignalMonitorModule = createLazyRuntimeModule(() => import("./monitor-CZUTeDiv.mjs").then((n) => n.n));
|
|
330
|
+
const loadSignalProbeModule = createLazyRuntimeModule(() => import("./probe-BXmpsFzO.mjs").then((n) => n.n));
|
|
331
|
+
const loadSignalSendRuntime = createLazyRuntimeModule(() => import("./send.runtime-DqumNf6-.mjs"));
|
|
332
|
+
const loadSignalApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-DoY1BVpl.mjs").then((n) => n.r));
|
|
670
333
|
async function resolveSignalSendContext(params) {
|
|
671
334
|
return {
|
|
672
335
|
send: resolveOutboundSendDep(params.deps, "signal") ?? (await loadSignalSendRuntime()).sendMessageSignal,
|
|
@@ -686,54 +349,15 @@ function resolveSignalSendTarget(params) {
|
|
|
686
349
|
}
|
|
687
350
|
async function sendSignalOutbound(params) {
|
|
688
351
|
const { send, maxBytes } = await resolveSignalSendContext(params);
|
|
689
|
-
|
|
690
|
-
const replyOptions = await resolveSignalReplyOptions({
|
|
691
|
-
cfg: params.cfg,
|
|
692
|
-
to,
|
|
693
|
-
accountId: params.accountId,
|
|
694
|
-
replyToId: params.replyToId
|
|
695
|
-
});
|
|
696
|
-
return await send(to, params.text, {
|
|
352
|
+
return await send(resolveSignalSendTarget(params), params.text, {
|
|
697
353
|
cfg: params.cfg,
|
|
698
354
|
...params.mediaUrl ? { mediaUrl: params.mediaUrl } : {},
|
|
699
355
|
...params.mediaLocalRoots?.length ? { mediaLocalRoots: params.mediaLocalRoots } : {},
|
|
700
356
|
...params.mediaReadFile ? { mediaReadFile: params.mediaReadFile } : {},
|
|
701
357
|
maxBytes,
|
|
702
|
-
accountId: params.accountId ?? void 0
|
|
703
|
-
...replyOptions
|
|
358
|
+
accountId: params.accountId ?? void 0
|
|
704
359
|
});
|
|
705
360
|
}
|
|
706
|
-
function resolveSignalReplyOptions(params) {
|
|
707
|
-
const replyToId = normalizeOptionalString(params.replyToId);
|
|
708
|
-
if (!replyToId) return Promise.resolve({});
|
|
709
|
-
const accountId = resolveSignalAccount({
|
|
710
|
-
cfg: params.cfg,
|
|
711
|
-
accountId: params.accountId
|
|
712
|
-
}).accountId;
|
|
713
|
-
return resolveSignalReplyContextWithPersistence({
|
|
714
|
-
accountId,
|
|
715
|
-
to: params.to,
|
|
716
|
-
replyToId
|
|
717
|
-
}).then((persistedContext) => {
|
|
718
|
-
const replyToAuthor = persistedContext?.ambiguous === true ? void 0 : persistedContext?.author;
|
|
719
|
-
const replyToBody = persistedContext?.ambiguous === true ? "" : [persistedContext?.body, formatSignalMediaText(persistedContext?.media ?? [])].filter(Boolean).join("\n");
|
|
720
|
-
return {
|
|
721
|
-
replyToId,
|
|
722
|
-
...replyToAuthor ? { replyToAuthor } : {},
|
|
723
|
-
...replyToBody ? { replyToBody } : {}
|
|
724
|
-
};
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
function inferSignalTargetChatType(rawTo) {
|
|
728
|
-
let to = rawTo.trim();
|
|
729
|
-
if (!to) return;
|
|
730
|
-
if (/^signal:/i.test(to)) to = to.replace(/^signal:/i, "").trim();
|
|
731
|
-
if (!to) return;
|
|
732
|
-
const lower = normalizeLowercaseStringOrEmpty(to);
|
|
733
|
-
if (lower.startsWith("group:")) return "group";
|
|
734
|
-
if (lower.startsWith("username:") || lower.startsWith("u:")) return "direct";
|
|
735
|
-
return "direct";
|
|
736
|
-
}
|
|
737
361
|
function attachSignalVisibleText(result, visibleText) {
|
|
738
362
|
const meta = "meta" in result && result.meta && typeof result.meta === "object" ? result.meta : {};
|
|
739
363
|
return {
|
|
@@ -756,8 +380,7 @@ const signalMessageAdapter = defineChannelMessageAdapter({
|
|
|
756
380
|
to: ctx.to,
|
|
757
381
|
text: ctx.text,
|
|
758
382
|
accountId: ctx.accountId ?? void 0,
|
|
759
|
-
deps: ctx.deps
|
|
760
|
-
replyToId: ctx.replyToId ?? void 0
|
|
383
|
+
deps: ctx.deps
|
|
761
384
|
}),
|
|
762
385
|
media: async (ctx) => await sendSignalOutbound({
|
|
763
386
|
cfg: ctx.cfg,
|
|
@@ -767,11 +390,20 @@ const signalMessageAdapter = defineChannelMessageAdapter({
|
|
|
767
390
|
mediaLocalRoots: ctx.mediaLocalRoots,
|
|
768
391
|
mediaReadFile: ctx.mediaReadFile,
|
|
769
392
|
accountId: ctx.accountId ?? void 0,
|
|
770
|
-
deps: ctx.deps
|
|
771
|
-
replyToId: ctx.replyToId ?? void 0
|
|
393
|
+
deps: ctx.deps
|
|
772
394
|
})
|
|
773
395
|
}
|
|
774
396
|
});
|
|
397
|
+
function inferSignalTargetChatType(rawTo) {
|
|
398
|
+
let to = rawTo.trim();
|
|
399
|
+
if (!to) return;
|
|
400
|
+
if (/^signal:/i.test(to)) to = to.replace(/^signal:/i, "").trim();
|
|
401
|
+
if (!to) return;
|
|
402
|
+
const lower = normalizeLowercaseStringOrEmpty(to);
|
|
403
|
+
if (lower.startsWith("group:")) return "group";
|
|
404
|
+
if (lower.startsWith("username:") || lower.startsWith("u:")) return "direct";
|
|
405
|
+
return "direct";
|
|
406
|
+
}
|
|
775
407
|
function buildSignalBaseSessionKey(params) {
|
|
776
408
|
return buildOutboundBaseSessionKey({
|
|
777
409
|
...params,
|
|
@@ -819,33 +451,17 @@ async function sendFormattedSignalText(ctx) {
|
|
|
819
451
|
text: ctx.text,
|
|
820
452
|
styles: []
|
|
821
453
|
}];
|
|
822
|
-
const nextReplyToId = createReplyToFanout({
|
|
823
|
-
replyToId: ctx.replyToId,
|
|
824
|
-
replyToIdSource: ctx.replyToIdSource,
|
|
825
|
-
replyToMode: ctx.replyToMode ?? resolveSignalReplyToMode({
|
|
826
|
-
cfg: ctx.cfg,
|
|
827
|
-
accountId: ctx.accountId,
|
|
828
|
-
chatType: inferSignalTargetChatType(to)
|
|
829
|
-
})
|
|
830
|
-
});
|
|
831
454
|
const results = [];
|
|
832
455
|
for (const chunk of chunks) {
|
|
833
456
|
ctx.abortSignal?.throwIfAborted();
|
|
834
|
-
const
|
|
835
|
-
const replyOptions = await resolveSignalReplyOptions({
|
|
836
|
-
cfg: ctx.cfg,
|
|
837
|
-
to,
|
|
838
|
-
accountId: ctx.accountId,
|
|
839
|
-
replyToId
|
|
840
|
-
});
|
|
841
|
-
const deliveryResult = attachChannelToResult("signal", attachSignalVisibleText(await send(to, chunk.text, {
|
|
457
|
+
const result = await send(to, chunk.text, {
|
|
842
458
|
cfg: ctx.cfg,
|
|
843
459
|
maxBytes,
|
|
844
460
|
accountId: ctx.accountId ?? void 0,
|
|
845
461
|
textMode: "plain",
|
|
846
|
-
textStyles: chunk.styles
|
|
847
|
-
|
|
848
|
-
|
|
462
|
+
textStyles: chunk.styles
|
|
463
|
+
});
|
|
464
|
+
const deliveryResult = attachChannelToResult("signal", attachSignalVisibleText(result, chunk.text));
|
|
849
465
|
results.push(deliveryResult);
|
|
850
466
|
await ctx.onDeliveryResult?.(deliveryResult);
|
|
851
467
|
}
|
|
@@ -872,13 +488,7 @@ async function sendFormattedSignalMedia(ctx) {
|
|
|
872
488
|
text: ctx.text,
|
|
873
489
|
styles: []
|
|
874
490
|
};
|
|
875
|
-
const
|
|
876
|
-
cfg: ctx.cfg,
|
|
877
|
-
to,
|
|
878
|
-
accountId: ctx.accountId,
|
|
879
|
-
replyToId: ctx.replyToId
|
|
880
|
-
});
|
|
881
|
-
return attachChannelToResult("signal", attachSignalVisibleText(await send(to, formatted.text, {
|
|
491
|
+
const result = await send(to, formatted.text, {
|
|
882
492
|
cfg: ctx.cfg,
|
|
883
493
|
mediaUrl: ctx.mediaUrl,
|
|
884
494
|
mediaLocalRoots: ctx.mediaLocalRoots,
|
|
@@ -886,9 +496,9 @@ async function sendFormattedSignalMedia(ctx) {
|
|
|
886
496
|
maxBytes,
|
|
887
497
|
accountId: ctx.accountId ?? void 0,
|
|
888
498
|
textMode: "plain",
|
|
889
|
-
textStyles: formatted.styles
|
|
890
|
-
|
|
891
|
-
|
|
499
|
+
textStyles: formatted.styles
|
|
500
|
+
});
|
|
501
|
+
return attachChannelToResult("signal", attachSignalVisibleText(result, formatted.text));
|
|
892
502
|
}
|
|
893
503
|
async function registerDeliveredSignalApprovalPayloadForReactions(params) {
|
|
894
504
|
const account = resolveSignalAccount({
|
|
@@ -898,18 +508,6 @@ async function registerDeliveredSignalApprovalPayloadForReactions(params) {
|
|
|
898
508
|
const targetAuthor = normalizeOptionalString(account.config.account);
|
|
899
509
|
const targetAuthorUuid = normalizeOptionalString(account.config.accountUuid);
|
|
900
510
|
if (!targetAuthor && !targetAuthorUuid) return;
|
|
901
|
-
const { registerSignalQuestionReactionTargetForDeliveredPayload } = await import("./question-reactions-Ds48FtEu.js").then((n) => n.n);
|
|
902
|
-
registerSignalQuestionReactionTargetForDeliveredPayload({
|
|
903
|
-
cfg: params.cfg,
|
|
904
|
-
target: {
|
|
905
|
-
...params.target,
|
|
906
|
-
accountId: account.accountId
|
|
907
|
-
},
|
|
908
|
-
payload: params.payload,
|
|
909
|
-
results: params.results,
|
|
910
|
-
targetAuthor,
|
|
911
|
-
targetAuthorUuid
|
|
912
|
-
});
|
|
913
511
|
const { registerSignalApprovalReactionTargetForDeliveredPayload } = await loadSignalApprovalReactionsModule();
|
|
914
512
|
registerSignalApprovalReactionTargetForDeliveredPayload({
|
|
915
513
|
cfg: params.cfg,
|
|
@@ -932,17 +530,11 @@ async function renderSignalApprovalPayloadForReactions(params) {
|
|
|
932
530
|
const targetAuthorUuid = normalizeOptionalString(account.config.accountUuid);
|
|
933
531
|
if (!targetAuthor && !targetAuthorUuid) return null;
|
|
934
532
|
const { addSignalApprovalReactionHintToStructuredPayload } = await loadSignalApprovalReactionsModule();
|
|
935
|
-
const payload = materializeSignalPresentationFallback(params.payload, params.presentation);
|
|
936
|
-
const questionPayload = questionGatewayRuntime.prepareReactionPayloadForDelivery({
|
|
937
|
-
payload: params.payload,
|
|
938
|
-
presentation: params.presentation
|
|
939
|
-
});
|
|
940
|
-
if (questionPayload) return questionPayload;
|
|
941
533
|
return addSignalApprovalReactionHintToStructuredPayload({
|
|
942
534
|
cfg: params.ctx.cfg,
|
|
943
535
|
accountId: params.ctx.accountId ?? void 0,
|
|
944
536
|
to: params.ctx.to,
|
|
945
|
-
payload,
|
|
537
|
+
payload: params.payload,
|
|
946
538
|
targetAuthor,
|
|
947
539
|
targetAuthorUuid
|
|
948
540
|
});
|
|
@@ -951,7 +543,7 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
951
543
|
base: {
|
|
952
544
|
...createSignalPluginBase({
|
|
953
545
|
setupWizard: signalSetupWizard,
|
|
954
|
-
|
|
546
|
+
setup: signalSetupAdapter
|
|
955
547
|
}),
|
|
956
548
|
actions: signalMessageActions,
|
|
957
549
|
approvalCapability: signalApprovalCapability,
|
|
@@ -1049,7 +641,7 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
1049
641
|
probeAccount: async ({ account, timeoutMs }) => {
|
|
1050
642
|
const baseUrl = account.baseUrl;
|
|
1051
643
|
const { probeSignal } = await loadSignalProbeModule();
|
|
1052
|
-
return await probeSignal(baseUrl, timeoutMs, {
|
|
644
|
+
return await probeSignal(baseUrl, timeoutMs, { apiMode: account.config?.apiMode ?? "auto" });
|
|
1053
645
|
},
|
|
1054
646
|
formatCapabilitiesProbe: ({ probe }) => probe?.version ? [{ text: `Signal daemon: ${probe.version}` }] : [],
|
|
1055
647
|
resolveAccountSnapshot: ({ account }) => ({
|
|
@@ -1088,30 +680,7 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
1088
680
|
}
|
|
1089
681
|
} },
|
|
1090
682
|
security: signalSecurityAdapter,
|
|
1091
|
-
threading: {
|
|
1092
|
-
resolveReplyToMode: (params) => resolveSignalReplyToMode(params),
|
|
1093
|
-
matchesToolContextTarget: ({ target, toolContext }) => {
|
|
1094
|
-
const normalizedTarget = normalizeSignalMessagingTarget(target);
|
|
1095
|
-
if (!normalizedTarget) return false;
|
|
1096
|
-
return [toolContext.currentMessagingTarget, toolContext.currentChannelId].some((currentTarget) => currentTarget != null && normalizeSignalMessagingTarget(currentTarget) === normalizedTarget);
|
|
1097
|
-
},
|
|
1098
|
-
buildToolContext: ({ cfg, accountId, context, hasRepliedRef }) => {
|
|
1099
|
-
const currentMessagingTarget = normalizeOptionalString(context.To);
|
|
1100
|
-
const currentChatType = context.ChatType === "direct" || context.ChatType === "group" ? context.ChatType : void 0;
|
|
1101
|
-
return {
|
|
1102
|
-
currentChannelId: normalizeOptionalString(context.NativeChannelId) ?? currentMessagingTarget,
|
|
1103
|
-
currentChatType,
|
|
1104
|
-
currentMessagingTarget,
|
|
1105
|
-
currentMessageId: context.ReplyToId ?? context.CurrentMessageId,
|
|
1106
|
-
replyToMode: resolveSignalReplyToMode({
|
|
1107
|
-
cfg,
|
|
1108
|
-
accountId,
|
|
1109
|
-
chatType: currentChatType
|
|
1110
|
-
}),
|
|
1111
|
-
hasRepliedRef
|
|
1112
|
-
};
|
|
1113
|
-
}
|
|
1114
|
-
},
|
|
683
|
+
threading: { resolveReplyToMode: (params) => resolveSignalReplyToMode(params) },
|
|
1115
684
|
outbound: {
|
|
1116
685
|
base: {
|
|
1117
686
|
deliveryMode: "direct",
|
|
@@ -1155,19 +724,16 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
1155
724
|
}),
|
|
1156
725
|
afterDeliverPayload: async (params) => await registerDeliveredSignalApprovalPayloadForReactions(params),
|
|
1157
726
|
renderPresentation: async (params) => await renderSignalApprovalPayloadForReactions(params),
|
|
1158
|
-
sendFormattedText: async ({ cfg, to, text, accountId, deps,
|
|
727
|
+
sendFormattedText: async ({ cfg, to, text, accountId, deps, abortSignal, onDeliveryResult }) => await sendFormattedSignalText({
|
|
1159
728
|
cfg,
|
|
1160
729
|
to,
|
|
1161
730
|
text,
|
|
1162
731
|
accountId,
|
|
1163
732
|
deps,
|
|
1164
|
-
replyToId,
|
|
1165
|
-
replyToIdSource,
|
|
1166
|
-
replyToMode,
|
|
1167
733
|
abortSignal,
|
|
1168
734
|
onDeliveryResult
|
|
1169
735
|
}),
|
|
1170
|
-
sendFormattedMedia: async ({ cfg, to, text, mediaUrl, mediaLocalRoots, mediaReadFile, accountId, deps,
|
|
736
|
+
sendFormattedMedia: async ({ cfg, to, text, mediaUrl, mediaLocalRoots, mediaReadFile, accountId, deps, abortSignal }) => await sendFormattedSignalMedia({
|
|
1171
737
|
cfg,
|
|
1172
738
|
to,
|
|
1173
739
|
text,
|
|
@@ -1176,21 +742,19 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
1176
742
|
mediaReadFile,
|
|
1177
743
|
accountId,
|
|
1178
744
|
deps,
|
|
1179
|
-
replyToId,
|
|
1180
745
|
abortSignal
|
|
1181
746
|
})
|
|
1182
747
|
},
|
|
1183
748
|
attachedResults: {
|
|
1184
749
|
channel: "signal",
|
|
1185
|
-
sendText: async ({ cfg, to, text, accountId, deps
|
|
750
|
+
sendText: async ({ cfg, to, text, accountId, deps }) => await sendSignalOutbound({
|
|
1186
751
|
cfg,
|
|
1187
752
|
to,
|
|
1188
753
|
text,
|
|
1189
754
|
accountId: accountId ?? void 0,
|
|
1190
|
-
deps
|
|
1191
|
-
replyToId
|
|
755
|
+
deps
|
|
1192
756
|
}),
|
|
1193
|
-
sendMedia: async ({ cfg, to, text, mediaUrl, mediaLocalRoots, mediaReadFile, accountId, deps
|
|
757
|
+
sendMedia: async ({ cfg, to, text, mediaUrl, mediaLocalRoots, mediaReadFile, accountId, deps }) => await sendSignalOutbound({
|
|
1194
758
|
cfg,
|
|
1195
759
|
to,
|
|
1196
760
|
text,
|
|
@@ -1198,11 +762,10 @@ const signalPlugin = createChatChannelPlugin({
|
|
|
1198
762
|
mediaLocalRoots,
|
|
1199
763
|
mediaReadFile,
|
|
1200
764
|
accountId: accountId ?? void 0,
|
|
1201
|
-
deps
|
|
1202
|
-
replyToId
|
|
765
|
+
deps
|
|
1203
766
|
})
|
|
1204
767
|
}
|
|
1205
768
|
}
|
|
1206
769
|
});
|
|
1207
770
|
//#endregion
|
|
1208
|
-
export { normalizeSignalAccountInput as a, signalNumberTextInput as c,
|
|
771
|
+
export { normalizeSignalAccountInput as a, signalNumberTextInput as c, createSignalCliPathTextInput as i, signalSetupAdapter as l, createSignalPluginBase as n, signalCompletionNote as o, signalSetupWizard as r, signalDmPolicy as s, signalPlugin as t, resolveSignalOutboundTarget as u };
|