@openclaw/signal 2026.7.2-beta.7 → 2026.7.34
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,652 +0,0 @@
|
|
|
1
|
-
import { u as normalizeSignalTransportUrl } from "./transport-policy-DxvSMHp9.js";
|
|
2
|
-
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId, t as listEnabledSignalAccounts } from "./accounts-DrStJjiK.js";
|
|
3
|
-
import { d as normalizeSignalMessagingTarget } from "./identity-BQ4OzXXk.js";
|
|
4
|
-
import { i as signalApprovalAuth, r as getSignalApprovalApprovers, t as getOptionalSignalRuntime } from "./runtime-JPrGlV7h.js";
|
|
5
|
-
import { n as sendReactionSignal, t as removeReactionSignal } from "./reaction-runtime-api-BjeDyKcz.js";
|
|
6
|
-
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
7
|
-
import { kindFromMime } from "openclaw/plugin-sdk/media-runtime";
|
|
8
|
-
import { questionGatewayRuntime } from "openclaw/plugin-sdk/question-gateway-runtime";
|
|
9
|
-
import { parseAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
|
10
|
-
import { resolveReactionLevel } from "openclaw/plugin-sdk/status-helpers";
|
|
11
|
-
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
12
|
-
import { FormatCapabilityProfile, markdownToIR, renderMarkdownIRChunksWithinLimit, renderMarkdownWithAttributedRanges } from "openclaw/plugin-sdk/text-chunking";
|
|
13
|
-
import { createChannelApprovalCapability } from "openclaw/plugin-sdk/approval-delivery-runtime";
|
|
14
|
-
import { createLazyChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
|
|
15
|
-
import { createChannelApproverDmTargetResolver, createChannelNativeOriginTargetResolver, createNativeApprovalChannelRouteGates, createNativeApprovalForwardingFallbackSuppressor, createNativeApprovalMessagingTargetResolvers, shouldSuppressLocalNativeExecApprovalPrompt } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
16
|
-
import { buildApprovalReactionPendingContentForRequest } from "openclaw/plugin-sdk/approval-reaction-runtime";
|
|
17
|
-
import { formatMediaPlaceholderText } from "openclaw/plugin-sdk/channel-inbound";
|
|
18
|
-
import { createActionGate, jsonResult, readStringParam, resolveReactionMessageId } from "openclaw/plugin-sdk/channel-actions";
|
|
19
|
-
import { parseStrictNonNegativeInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
20
|
-
import { getExecApprovalReplyMetadata } from "openclaw/plugin-sdk/approval-reply-runtime";
|
|
21
|
-
import { isMessagePresentationInteractiveBlock, normalizeMessagePresentation, renderMessagePresentationFallbackText } from "openclaw/plugin-sdk/interactive-runtime";
|
|
22
|
-
//#region extensions/signal/src/approval-native.ts
|
|
23
|
-
const DEFAULT_APPROVAL_FORWARDING_MODE = "session";
|
|
24
|
-
const { normalizeForwardTarget: normalizeSignalForwardTarget, normalizeTarget: normalizeSignalApprovalTarget, resolveSessionTarget: resolveSessionSignalOriginTarget, resolveTurnSourceTarget: resolveTurnSourceSignalOriginTarget } = createNativeApprovalMessagingTargetResolvers({
|
|
25
|
-
channel: "signal",
|
|
26
|
-
normalizeTo: normalizeSignalMessagingTarget
|
|
27
|
-
});
|
|
28
|
-
function isSignalApprovalTransportEnabled(params) {
|
|
29
|
-
return resolveSignalAccount({
|
|
30
|
-
cfg: params.cfg,
|
|
31
|
-
accountId: params.accountId
|
|
32
|
-
}).enabled;
|
|
33
|
-
}
|
|
34
|
-
const { canApprovalPotentiallyRouteToChannel: canApprovalPotentiallyRouteToSignal, canAnyApprovalPotentiallyRouteToChannel: canAnyApprovalPotentiallyRouteToSignal, isNativeApprovalHandlerConfigured: isSignalNativeApprovalHandlerConfiguredBase, isSessionApprovalEligible: isSignalSessionApprovalEligible, shouldHandleApprovalRequest: shouldHandleSignalApprovalRequest } = createNativeApprovalChannelRouteGates({
|
|
35
|
-
channel: "signal",
|
|
36
|
-
defaultForwardingMode: DEFAULT_APPROVAL_FORWARDING_MODE,
|
|
37
|
-
isTransportEnabled: isSignalApprovalTransportEnabled,
|
|
38
|
-
listAccountIds: listSignalAccountIds,
|
|
39
|
-
resolveDefaultAccountId: resolveDefaultSignalAccountId,
|
|
40
|
-
normalizeForwardTarget: normalizeSignalForwardTarget,
|
|
41
|
-
resolveTurnSourceTarget: resolveTurnSourceSignalOriginTarget
|
|
42
|
-
});
|
|
43
|
-
function isSignalNativeApprovalHandlerConfigured(params) {
|
|
44
|
-
return isSignalNativeApprovalHandlerConfiguredBase(params);
|
|
45
|
-
}
|
|
46
|
-
function resolveSignalSessionTargetFromSessionKey(sessionKey) {
|
|
47
|
-
const rest = parseAgentSessionKey(sessionKey)?.rest ?? normalizeOptionalString(sessionKey);
|
|
48
|
-
if (!rest || !normalizeLowercaseStringOrEmpty(rest).startsWith("signal:")) return null;
|
|
49
|
-
return normalizeSignalMessagingTarget(rest.slice(7)) ?? null;
|
|
50
|
-
}
|
|
51
|
-
function shouldSuppressLocalSignalExecApprovalPrompt(params) {
|
|
52
|
-
return shouldSuppressLocalNativeExecApprovalPrompt({
|
|
53
|
-
...params,
|
|
54
|
-
isTransportEnabled: isSignalApprovalTransportEnabled,
|
|
55
|
-
isSessionRouteEligible: ({ cfg, accountId, metadata }) => {
|
|
56
|
-
if (getSignalApprovalApprovers({
|
|
57
|
-
cfg,
|
|
58
|
-
accountId
|
|
59
|
-
}).length > 0) return true;
|
|
60
|
-
const sessionTarget = resolveSignalSessionTargetFromSessionKey(metadata.sessionKey);
|
|
61
|
-
return Boolean(sessionTarget && !isSignalGroupTarget(sessionTarget));
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
const resolveSignalOriginTargetBase = createChannelNativeOriginTargetResolver({
|
|
66
|
-
channel: "signal",
|
|
67
|
-
shouldHandleRequest: shouldHandleSignalApprovalRequest,
|
|
68
|
-
resolveTurnSourceTarget: resolveTurnSourceSignalOriginTarget,
|
|
69
|
-
resolveSessionTarget: resolveSessionSignalOriginTarget,
|
|
70
|
-
normalizeTarget: normalizeSignalApprovalTarget
|
|
71
|
-
});
|
|
72
|
-
function isSignalGroupTarget(to) {
|
|
73
|
-
return normalizeLowercaseStringOrEmpty(to).startsWith("group:");
|
|
74
|
-
}
|
|
75
|
-
function resolveSignalOriginTarget(params) {
|
|
76
|
-
const target = resolveSignalOriginTargetBase(params);
|
|
77
|
-
if (!target) return null;
|
|
78
|
-
if (isSignalGroupTarget(target.to) && getSignalApprovalApprovers({
|
|
79
|
-
cfg: params.cfg,
|
|
80
|
-
accountId: params.accountId
|
|
81
|
-
}).length === 0) return null;
|
|
82
|
-
return target;
|
|
83
|
-
}
|
|
84
|
-
const resolveSignalApproverDmTargets = createChannelApproverDmTargetResolver({
|
|
85
|
-
shouldHandleRequest: shouldHandleSignalApprovalRequest,
|
|
86
|
-
resolveApprovers: getSignalApprovalApprovers,
|
|
87
|
-
mapApprover: (approver, params) => {
|
|
88
|
-
const to = normalizeSignalMessagingTarget(approver);
|
|
89
|
-
if (!to) return null;
|
|
90
|
-
return {
|
|
91
|
-
to,
|
|
92
|
-
accountId: normalizeOptionalString(params.accountId)
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
const shouldSuppressSignalForwardingFallback = createNativeApprovalForwardingFallbackSuppressor({
|
|
97
|
-
channel: "signal",
|
|
98
|
-
normalizeForwardTarget: normalizeSignalForwardTarget,
|
|
99
|
-
resolveAccountId: ({ forwardingTarget, request }) => forwardingTarget.accountId ?? normalizeOptionalString(request.request.turnSourceAccountId),
|
|
100
|
-
resolveForwardingTargetForMatch: ({ forwardingTarget, accountId }) => ({
|
|
101
|
-
...forwardingTarget,
|
|
102
|
-
accountId
|
|
103
|
-
}),
|
|
104
|
-
isSessionRouteEligible: isSignalSessionApprovalEligible,
|
|
105
|
-
resolveOriginTarget: resolveSignalOriginTarget,
|
|
106
|
-
resolveApproverDmTargets: resolveSignalApproverDmTargets
|
|
107
|
-
});
|
|
108
|
-
function buildSignalExecPendingPayload(params) {
|
|
109
|
-
return buildApprovalReactionPendingContentForRequest(params).manualFallbackPayload;
|
|
110
|
-
}
|
|
111
|
-
function buildSignalPluginPendingPayload(params) {
|
|
112
|
-
return buildApprovalReactionPendingContentForRequest(params).manualFallbackPayload;
|
|
113
|
-
}
|
|
114
|
-
const signalApprovalCapability = createChannelApprovalCapability({
|
|
115
|
-
...signalApprovalAuth,
|
|
116
|
-
getActionAvailabilityState: ({ cfg, accountId, approvalKind }) => (approvalKind ? canApprovalPotentiallyRouteToSignal({
|
|
117
|
-
cfg,
|
|
118
|
-
accountId,
|
|
119
|
-
approvalKind
|
|
120
|
-
}) : canAnyApprovalPotentiallyRouteToSignal({
|
|
121
|
-
cfg,
|
|
122
|
-
accountId
|
|
123
|
-
})) ? { kind: "enabled" } : { kind: "disabled" },
|
|
124
|
-
getExecInitiatingSurfaceState: ({ cfg, accountId }) => canApprovalPotentiallyRouteToSignal({
|
|
125
|
-
cfg,
|
|
126
|
-
accountId,
|
|
127
|
-
approvalKind: "exec"
|
|
128
|
-
}) ? { kind: "enabled" } : { kind: "disabled" },
|
|
129
|
-
describeExecApprovalSetup: ({ accountId }) => {
|
|
130
|
-
return `Signal supports native exec approvals for this account when \`approvals.exec.enabled\` is true and the route allows Signal. Link Signal and keep the gateway running; configure \`${accountId && accountId !== "default" ? `channels.signal.accounts.${accountId}` : "channels.signal"}.allowFrom\` to restrict approvers.`;
|
|
131
|
-
},
|
|
132
|
-
delivery: {
|
|
133
|
-
hasConfiguredDmRoute: ({ cfg }) => listSignalAccountIds(cfg).some((accountId) => {
|
|
134
|
-
if (!canAnyApprovalPotentiallyRouteToSignal({
|
|
135
|
-
cfg,
|
|
136
|
-
accountId,
|
|
137
|
-
nativeSessionOnly: true
|
|
138
|
-
})) return false;
|
|
139
|
-
return getSignalApprovalApprovers({
|
|
140
|
-
cfg,
|
|
141
|
-
accountId
|
|
142
|
-
}).length > 0;
|
|
143
|
-
}),
|
|
144
|
-
shouldSuppressForwardingFallback: shouldSuppressSignalForwardingFallback
|
|
145
|
-
},
|
|
146
|
-
render: {
|
|
147
|
-
exec: { buildPendingPayload: ({ request, nowMs }) => buildSignalExecPendingPayload({
|
|
148
|
-
request,
|
|
149
|
-
nowMs
|
|
150
|
-
}) },
|
|
151
|
-
plugin: { buildPendingPayload: ({ request, nowMs }) => buildSignalPluginPendingPayload({
|
|
152
|
-
request,
|
|
153
|
-
nowMs
|
|
154
|
-
}) }
|
|
155
|
-
},
|
|
156
|
-
native: {
|
|
157
|
-
describeDeliveryCapabilities: ({ cfg, accountId, approvalKind, request }) => {
|
|
158
|
-
const originTarget = resolveSignalOriginTarget({
|
|
159
|
-
cfg,
|
|
160
|
-
accountId,
|
|
161
|
-
approvalKind,
|
|
162
|
-
request
|
|
163
|
-
});
|
|
164
|
-
const approverTargets = resolveSignalApproverDmTargets({
|
|
165
|
-
cfg,
|
|
166
|
-
accountId,
|
|
167
|
-
approvalKind,
|
|
168
|
-
request
|
|
169
|
-
});
|
|
170
|
-
return {
|
|
171
|
-
enabled: Boolean(originTarget) || approverTargets.length > 0,
|
|
172
|
-
preferredSurface: originTarget ? "origin" : "approver-dm",
|
|
173
|
-
supportsOriginSurface: Boolean(originTarget),
|
|
174
|
-
supportsApproverDmSurface: approverTargets.length > 0,
|
|
175
|
-
notifyOriginWhenDmOnly: true
|
|
176
|
-
};
|
|
177
|
-
},
|
|
178
|
-
resolveOriginTarget: resolveSignalOriginTarget,
|
|
179
|
-
resolveApproverDmTargets: resolveSignalApproverDmTargets
|
|
180
|
-
},
|
|
181
|
-
nativeRuntime: createLazyChannelApprovalNativeRuntimeAdapter({
|
|
182
|
-
eventKinds: ["exec", "plugin"],
|
|
183
|
-
isConfigured: ({ cfg, accountId, context }) => Boolean(context) && isSignalNativeApprovalHandlerConfigured({
|
|
184
|
-
cfg,
|
|
185
|
-
accountId
|
|
186
|
-
}),
|
|
187
|
-
shouldHandle: ({ cfg, accountId, context, approvalKind, request }) => Boolean(context) && shouldHandleSignalApprovalRequest({
|
|
188
|
-
cfg,
|
|
189
|
-
accountId,
|
|
190
|
-
approvalKind,
|
|
191
|
-
request
|
|
192
|
-
}),
|
|
193
|
-
load: async () => (await import("./approval-handler.runtime-C-XYgcxE.js")).signalApprovalNativeRuntime
|
|
194
|
-
})
|
|
195
|
-
});
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region extensions/signal/src/format.ts
|
|
198
|
-
const SIGNAL_STYLE_MAP = {
|
|
199
|
-
bold: "BOLD",
|
|
200
|
-
italic: "ITALIC",
|
|
201
|
-
strikethrough: "STRIKETHROUGH",
|
|
202
|
-
code: "MONOSPACE",
|
|
203
|
-
code_block: "MONOSPACE",
|
|
204
|
-
spoiler: "SPOILER"
|
|
205
|
-
};
|
|
206
|
-
const SIGNAL_FORMAT_PROFILE = FormatCapabilityProfile.define({
|
|
207
|
-
mechanism: "ranges",
|
|
208
|
-
constructs: {
|
|
209
|
-
underline: "strip",
|
|
210
|
-
codeLanguage: "fallback",
|
|
211
|
-
linkLabel: "fallback",
|
|
212
|
-
heading: "fallback",
|
|
213
|
-
bulletList: "fallback",
|
|
214
|
-
orderedList: "fallback",
|
|
215
|
-
taskList: "fallback",
|
|
216
|
-
table: "fallback",
|
|
217
|
-
blockquote: "fallback",
|
|
218
|
-
image: "fallback",
|
|
219
|
-
mention: "strip"
|
|
220
|
-
},
|
|
221
|
-
chunk: {
|
|
222
|
-
limit: 4e3,
|
|
223
|
-
unit: "chars"
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
function stripEquivalentSignalLinks(ir) {
|
|
227
|
-
const normalize = (value) => normalizeLowercaseStringOrEmpty(value).replace(/^(?:https?:\/\/)?(?:www\.)?/, "").replace(/\/+$/, "");
|
|
228
|
-
return {
|
|
229
|
-
...ir,
|
|
230
|
-
links: ir.links.filter((link) => {
|
|
231
|
-
const label = ir.text.slice(link.start, link.end).trim();
|
|
232
|
-
return normalize(label) !== normalize(link.href.trim().replace(/^mailto:/, ""));
|
|
233
|
-
})
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
function renderSignalText(ir) {
|
|
237
|
-
const rendered = renderMarkdownWithAttributedRanges(stripEquivalentSignalLinks(ir), {
|
|
238
|
-
styleMap: SIGNAL_STYLE_MAP,
|
|
239
|
-
annotationStyleMap: { assistant_transcript_role: "MONOSPACE" },
|
|
240
|
-
trimEnd: true
|
|
241
|
-
}, SIGNAL_FORMAT_PROFILE);
|
|
242
|
-
return {
|
|
243
|
-
text: rendered.text,
|
|
244
|
-
styles: rendered.ranges
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
function markdownToSignalIR(markdown, options) {
|
|
248
|
-
return markdownToIR(markdown ?? "", {
|
|
249
|
-
assistantTranscriptRoleHeaders: true,
|
|
250
|
-
linkify: true,
|
|
251
|
-
enableSpoilers: true,
|
|
252
|
-
headingStyle: "rich",
|
|
253
|
-
blockquotePrefix: "> ",
|
|
254
|
-
tableMode: options.tableMode
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
function markdownToSignalText(markdown, options = {}) {
|
|
258
|
-
return renderSignalText(markdownToSignalIR(markdown, options));
|
|
259
|
-
}
|
|
260
|
-
function markdownToSignalTextChunks(markdown, limit, options = {}) {
|
|
261
|
-
return renderMarkdownIRChunksWithinLimit({
|
|
262
|
-
ir: markdownToSignalIR(markdown, options),
|
|
263
|
-
limit,
|
|
264
|
-
assistantTranscriptRoleMessageBoundaries: true,
|
|
265
|
-
renderChunk: renderSignalText,
|
|
266
|
-
measureRendered: (rendered) => rendered.text.length
|
|
267
|
-
}).map(({ rendered }) => rendered);
|
|
268
|
-
}
|
|
269
|
-
//#endregion
|
|
270
|
-
//#region extensions/signal/src/media-text.ts
|
|
271
|
-
function formatAttachmentKindCount(kind, count) {
|
|
272
|
-
if (kind === "attachment") return `${count} file${count > 1 ? "s" : ""}`;
|
|
273
|
-
return `${count} ${kind}${count > 1 ? "s" : ""}`;
|
|
274
|
-
}
|
|
275
|
-
/** Keeps Signal's established multi-attachment text while sharing single-item rendering. */
|
|
276
|
-
function formatSignalMediaText(media) {
|
|
277
|
-
if (media.length <= 1) return formatMediaPlaceholderText(media);
|
|
278
|
-
const kindCounts = /* @__PURE__ */ new Map();
|
|
279
|
-
for (const entry of media) {
|
|
280
|
-
const kind = entry.kind && entry.kind !== "unknown" ? entry.kind : kindFromMime(entry.contentType) ?? "attachment";
|
|
281
|
-
kindCounts.set(kind, (kindCounts.get(kind) ?? 0) + 1);
|
|
282
|
-
}
|
|
283
|
-
return `[${[...kindCounts.entries()].map(([kind, count]) => formatAttachmentKindCount(kind, count)).join(" + ")} attached]`;
|
|
284
|
-
}
|
|
285
|
-
//#endregion
|
|
286
|
-
//#region extensions/signal/src/reaction-level.ts
|
|
287
|
-
/**
|
|
288
|
-
* Resolve the effective reaction level and its implications for Signal.
|
|
289
|
-
*
|
|
290
|
-
* Levels:
|
|
291
|
-
* - "off": No reactions at all
|
|
292
|
-
* - "ack": Only automatic ack reactions (👀 when processing), no agent reactions
|
|
293
|
-
* - "minimal": Agent can react, but sparingly (default)
|
|
294
|
-
* - "extensive": Agent can react liberally
|
|
295
|
-
*/
|
|
296
|
-
function resolveSignalReactionLevel(params) {
|
|
297
|
-
return resolveReactionLevel({
|
|
298
|
-
value: resolveSignalAccount({
|
|
299
|
-
cfg: params.cfg,
|
|
300
|
-
accountId: params.accountId
|
|
301
|
-
}).config.reactionLevel,
|
|
302
|
-
defaultLevel: "minimal",
|
|
303
|
-
invalidFallback: "minimal"
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
//#endregion
|
|
307
|
-
//#region extensions/signal/src/message-actions.ts
|
|
308
|
-
const providerId = "signal";
|
|
309
|
-
const GROUP_PREFIX = "group:";
|
|
310
|
-
function normalizeSignalReactionRecipient(raw) {
|
|
311
|
-
const trimmed = raw.trim();
|
|
312
|
-
if (!trimmed) return trimmed;
|
|
313
|
-
const withoutSignal = trimmed.replace(/^signal:/i, "").trim();
|
|
314
|
-
if (!withoutSignal) return withoutSignal;
|
|
315
|
-
if (normalizeLowercaseStringOrEmpty(withoutSignal).startsWith("uuid:")) return withoutSignal.slice(5).trim();
|
|
316
|
-
return withoutSignal;
|
|
317
|
-
}
|
|
318
|
-
function resolveSignalReactionTarget(raw) {
|
|
319
|
-
const trimmed = raw.trim();
|
|
320
|
-
if (!trimmed) return {};
|
|
321
|
-
const withoutSignal = trimmed.replace(/^signal:/i, "").trim();
|
|
322
|
-
if (!withoutSignal) return {};
|
|
323
|
-
if (normalizeLowercaseStringOrEmpty(withoutSignal).startsWith(GROUP_PREFIX)) {
|
|
324
|
-
const groupId = withoutSignal.slice(6).trim();
|
|
325
|
-
return groupId ? { groupId } : {};
|
|
326
|
-
}
|
|
327
|
-
return { recipient: normalizeSignalReactionRecipient(withoutSignal) };
|
|
328
|
-
}
|
|
329
|
-
async function mutateSignalReaction(params) {
|
|
330
|
-
const options = {
|
|
331
|
-
cfg: params.cfg,
|
|
332
|
-
accountId: params.accountId,
|
|
333
|
-
groupId: params.target.groupId,
|
|
334
|
-
targetAuthor: params.targetAuthor,
|
|
335
|
-
targetAuthorUuid: params.targetAuthorUuid
|
|
336
|
-
};
|
|
337
|
-
if (params.remove) {
|
|
338
|
-
await removeReactionSignal(params.target.recipient ?? "", params.timestamp, params.emoji, options);
|
|
339
|
-
return jsonResult({
|
|
340
|
-
ok: true,
|
|
341
|
-
removed: params.emoji
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
await sendReactionSignal(params.target.recipient ?? "", params.timestamp, params.emoji, options);
|
|
345
|
-
return jsonResult({
|
|
346
|
-
ok: true,
|
|
347
|
-
added: params.emoji
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
const signalMessageActions = {
|
|
351
|
-
describeMessageTool: ({ cfg, accountId }) => {
|
|
352
|
-
const configuredAccounts = accountId ? [resolveSignalAccount({
|
|
353
|
-
cfg,
|
|
354
|
-
accountId
|
|
355
|
-
})].filter((account) => account.enabled && account.configured) : listEnabledSignalAccounts(cfg).filter((account) => account.configured);
|
|
356
|
-
if (configuredAccounts.length === 0) return null;
|
|
357
|
-
const actions = /* @__PURE__ */ new Set(["send"]);
|
|
358
|
-
if (configuredAccounts.some((account) => createActionGate(account.config.actions)("reactions"))) actions.add("react");
|
|
359
|
-
return { actions: Array.from(actions) };
|
|
360
|
-
},
|
|
361
|
-
supportsAction: ({ action }) => action === "react",
|
|
362
|
-
prepareSendPayload: ({ ctx, payload, replyToId, replyToIdSource }) => {
|
|
363
|
-
if (ctx.action !== "send") return null;
|
|
364
|
-
const normalizedReplyToId = replyToId?.trim();
|
|
365
|
-
if (!normalizedReplyToId) return payload;
|
|
366
|
-
return replyToIdSource === "implicit" ? payload : {
|
|
367
|
-
...payload,
|
|
368
|
-
replyToId: normalizedReplyToId
|
|
369
|
-
};
|
|
370
|
-
},
|
|
371
|
-
handleAction: async ({ action, params, cfg, accountId, toolContext }) => {
|
|
372
|
-
if (action === "send") throw new Error("Send should be handled by outbound, not actions handler.");
|
|
373
|
-
if (action === "react") {
|
|
374
|
-
const account = resolveSignalAccount({
|
|
375
|
-
cfg,
|
|
376
|
-
accountId
|
|
377
|
-
});
|
|
378
|
-
if (!account.enabled) throw new Error(`Signal account "${account.accountId}" is disabled.`);
|
|
379
|
-
if (!account.configured) throw new Error(`Signal account "${account.accountId}" is not configured.`);
|
|
380
|
-
const reactionLevelInfo = resolveSignalReactionLevel({
|
|
381
|
-
cfg,
|
|
382
|
-
accountId: account.accountId
|
|
383
|
-
});
|
|
384
|
-
if (!reactionLevelInfo.agentReactionsEnabled) throw new Error(`Signal agent reactions disabled (reactionLevel="${reactionLevelInfo.level}"). Set channels.signal.reactionLevel to "minimal" or "extensive" to enable.`);
|
|
385
|
-
if (!createActionGate(account.config.actions)("reactions")) throw new Error("Signal reactions are disabled via actions.reactions.");
|
|
386
|
-
const target = resolveSignalReactionTarget(readStringParam(params, "to", {
|
|
387
|
-
required: true,
|
|
388
|
-
label: "recipient (UUID, phone number, or group)"
|
|
389
|
-
}));
|
|
390
|
-
if (!target.recipient && !target.groupId) throw new Error("recipient or group required");
|
|
391
|
-
const messageIdRaw = resolveReactionMessageId({
|
|
392
|
-
args: params,
|
|
393
|
-
toolContext
|
|
394
|
-
});
|
|
395
|
-
const messageId = messageIdRaw != null ? String(messageIdRaw) : void 0;
|
|
396
|
-
if (!messageId) throw new Error("messageId (timestamp) required. Provide messageId explicitly or react to the current inbound message.");
|
|
397
|
-
const targetAuthor = readStringParam(params, "targetAuthor");
|
|
398
|
-
const targetAuthorUuid = readStringParam(params, "targetAuthorUuid");
|
|
399
|
-
if (target.groupId && !targetAuthor && !targetAuthorUuid) throw new Error("targetAuthor or targetAuthorUuid required for group reactions.");
|
|
400
|
-
const emoji = readStringParam(params, "emoji", { allowEmpty: true });
|
|
401
|
-
const remove = typeof params.remove === "boolean" ? params.remove : void 0;
|
|
402
|
-
const timestamp = parseStrictNonNegativeInteger(messageId);
|
|
403
|
-
if (timestamp === void 0) throw new Error(`Invalid messageId: ${messageId}. Expected numeric timestamp.`);
|
|
404
|
-
if (remove) {
|
|
405
|
-
if (!emoji) throw new Error("Emoji required to remove reaction.");
|
|
406
|
-
return await mutateSignalReaction({
|
|
407
|
-
cfg,
|
|
408
|
-
accountId: account.accountId,
|
|
409
|
-
target,
|
|
410
|
-
timestamp,
|
|
411
|
-
emoji,
|
|
412
|
-
remove: true,
|
|
413
|
-
targetAuthor,
|
|
414
|
-
targetAuthorUuid
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
if (!emoji) throw new Error("Emoji required to add reaction.");
|
|
418
|
-
return await mutateSignalReaction({
|
|
419
|
-
cfg,
|
|
420
|
-
accountId: account.accountId,
|
|
421
|
-
target,
|
|
422
|
-
timestamp,
|
|
423
|
-
emoji,
|
|
424
|
-
remove: false,
|
|
425
|
-
targetAuthor,
|
|
426
|
-
targetAuthorUuid
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
throw new Error(`Action ${action} not supported for ${providerId}.`);
|
|
430
|
-
}
|
|
431
|
-
};
|
|
432
|
-
//#endregion
|
|
433
|
-
//#region extensions/signal/src/presentation-fallback.ts
|
|
434
|
-
/** Materialize presentation content once before Signal's text-only delivery funnels. */
|
|
435
|
-
function materializeSignalPresentationFallback(payload, presentationOverride) {
|
|
436
|
-
const reactionPayload = questionGatewayRuntime.prepareReactionPayloadForDelivery({
|
|
437
|
-
payload,
|
|
438
|
-
presentation: presentationOverride ?? payload.presentation
|
|
439
|
-
});
|
|
440
|
-
if (reactionPayload) return reactionPayload;
|
|
441
|
-
const presentation = presentationOverride ?? normalizeMessagePresentation(payload.presentation);
|
|
442
|
-
if (!presentation) return payload;
|
|
443
|
-
const currentText = payload.text?.trim() ?? "";
|
|
444
|
-
const presentationFallback = renderMessagePresentationFallbackText({ presentation: Boolean(getExecApprovalReplyMetadata(payload) && currentText) ? {
|
|
445
|
-
...presentation,
|
|
446
|
-
blocks: presentation.blocks.filter((block) => !isMessagePresentationInteractiveBlock(block))
|
|
447
|
-
} : presentation });
|
|
448
|
-
const text = currentText.includes(presentationFallback) ? currentText : [currentText, presentationFallback].filter(Boolean).join("\n\n");
|
|
449
|
-
const { presentation: _presentation, ...withoutPresentation } = payload;
|
|
450
|
-
return {
|
|
451
|
-
...withoutPresentation,
|
|
452
|
-
text
|
|
453
|
-
};
|
|
454
|
-
}
|
|
455
|
-
//#endregion
|
|
456
|
-
//#region extensions/signal/src/reply-authors-state.ts
|
|
457
|
-
const signalReplyAuthorState = {
|
|
458
|
-
memoryReplyContexts: /* @__PURE__ */ new Map(),
|
|
459
|
-
persistentStoreDisabled: false
|
|
460
|
-
};
|
|
461
|
-
//#endregion
|
|
462
|
-
//#region extensions/signal/src/reply-authors.ts
|
|
463
|
-
const PERSISTENT_NAMESPACE = "signal.reply-authors.v1";
|
|
464
|
-
const PERSISTENT_MAX_ENTRIES = 5e3;
|
|
465
|
-
const DEFAULT_REPLY_AUTHOR_TTL_MS = 10080 * 60 * 1e3;
|
|
466
|
-
const { memoryReplyContexts } = signalReplyAuthorState;
|
|
467
|
-
function openSignalReplyAuthorStore() {
|
|
468
|
-
if (signalReplyAuthorState.persistentStoreDisabled) return;
|
|
469
|
-
const runtime = getOptionalSignalRuntime();
|
|
470
|
-
try {
|
|
471
|
-
return runtime?.state.openKeyedStore({
|
|
472
|
-
namespace: PERSISTENT_NAMESPACE,
|
|
473
|
-
maxEntries: PERSISTENT_MAX_ENTRIES,
|
|
474
|
-
defaultTtlMs: DEFAULT_REPLY_AUTHOR_TTL_MS
|
|
475
|
-
});
|
|
476
|
-
} catch (error) {
|
|
477
|
-
signalReplyAuthorState.persistentStoreDisabled = true;
|
|
478
|
-
runtime?.logging.getChildLogger({
|
|
479
|
-
plugin: "signal",
|
|
480
|
-
feature: "reply-author-state"
|
|
481
|
-
}).warn("Signal persistent reply author state unavailable", { error: String(error) });
|
|
482
|
-
return;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
function buildSignalReplyAuthorStoreKey(params) {
|
|
486
|
-
const conversationKey = normalizeSignalMessagingTarget(params.to);
|
|
487
|
-
const replyToId = normalizeOptionalString(params.replyToId);
|
|
488
|
-
if (!conversationKey || !replyToId) return;
|
|
489
|
-
return `account=${normalizeLowercaseStringOrEmpty(normalizeOptionalString(params.accountId) ?? DEFAULT_ACCOUNT_ID)}|to=${conversationKey}|id=${replyToId}`;
|
|
490
|
-
}
|
|
491
|
-
function pruneMemoryReplyContexts(now = Date.now()) {
|
|
492
|
-
for (const [key, record] of memoryReplyContexts) if (record.expiresAt <= now) memoryReplyContexts.delete(key);
|
|
493
|
-
while (memoryReplyContexts.size > PERSISTENT_MAX_ENTRIES) {
|
|
494
|
-
const oldestKey = memoryReplyContexts.keys().next().value;
|
|
495
|
-
if (!oldestKey) break;
|
|
496
|
-
memoryReplyContexts.delete(oldestKey);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
function resolveReplyContext(record) {
|
|
500
|
-
if (!record) return;
|
|
501
|
-
if (record.kind === "ambiguous") return { ambiguous: true };
|
|
502
|
-
const author = normalizeOptionalString(record.author);
|
|
503
|
-
if (!author) return;
|
|
504
|
-
const body = normalizeOptionalString(record.body);
|
|
505
|
-
const media = record.media;
|
|
506
|
-
return {
|
|
507
|
-
author,
|
|
508
|
-
...body ? { body } : {},
|
|
509
|
-
...media?.length ? { media } : {}
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
function resolveSourceTimestamp(value) {
|
|
513
|
-
return typeof value === "number" && Number.isSafeInteger(value) && value > 0 ? value : Date.now();
|
|
514
|
-
}
|
|
515
|
-
function mergeReplyContext(current, next) {
|
|
516
|
-
if (!current) return next;
|
|
517
|
-
if (current.kind === "ambiguous") return current;
|
|
518
|
-
if (current.author !== next.author) {
|
|
519
|
-
const { author: _author, body: _body, media: _media, ...identity } = next;
|
|
520
|
-
return {
|
|
521
|
-
...identity,
|
|
522
|
-
kind: "ambiguous"
|
|
523
|
-
};
|
|
524
|
-
}
|
|
525
|
-
return next.sourceTimestamp >= current.sourceTimestamp ? next : current;
|
|
526
|
-
}
|
|
527
|
-
async function registerSignalReplyContext(params) {
|
|
528
|
-
const store = openSignalReplyAuthorStore();
|
|
529
|
-
const key = buildSignalReplyAuthorStoreKey(params);
|
|
530
|
-
const author = normalizeOptionalString(params.author);
|
|
531
|
-
const body = normalizeOptionalString(params.body);
|
|
532
|
-
const media = params.media?.map((entry) => ({
|
|
533
|
-
contentType: normalizeOptionalString(entry.contentType),
|
|
534
|
-
kind: entry.kind ?? void 0
|
|
535
|
-
}));
|
|
536
|
-
const conversationKey = normalizeSignalMessagingTarget(params.to);
|
|
537
|
-
const replyToId = normalizeOptionalString(params.replyToId);
|
|
538
|
-
const accountKey = normalizeLowercaseStringOrEmpty(normalizeOptionalString(params.accountId) ?? DEFAULT_ACCOUNT_ID);
|
|
539
|
-
const sourceTimestamp = resolveSourceTimestamp(params.sourceTimestamp);
|
|
540
|
-
if (!key || !author || !conversationKey || !replyToId) return;
|
|
541
|
-
const registeredAt = Date.now();
|
|
542
|
-
const record = {
|
|
543
|
-
kind: "resolved",
|
|
544
|
-
author,
|
|
545
|
-
...body ? { body } : {},
|
|
546
|
-
...media?.length ? { media } : {},
|
|
547
|
-
accountId: accountKey,
|
|
548
|
-
conversationKey,
|
|
549
|
-
replyToId,
|
|
550
|
-
sourceTimestamp,
|
|
551
|
-
registeredAt
|
|
552
|
-
};
|
|
553
|
-
const expiresAt = registeredAt + DEFAULT_REPLY_AUTHOR_TTL_MS;
|
|
554
|
-
if (!store) {
|
|
555
|
-
const next = mergeReplyContext(memoryReplyContexts.get(key), record);
|
|
556
|
-
memoryReplyContexts.set(key, {
|
|
557
|
-
...next,
|
|
558
|
-
expiresAt
|
|
559
|
-
});
|
|
560
|
-
pruneMemoryReplyContexts(registeredAt);
|
|
561
|
-
return;
|
|
562
|
-
}
|
|
563
|
-
if (!store.update) {
|
|
564
|
-
const next = mergeReplyContext(memoryReplyContexts.get(key), record);
|
|
565
|
-
memoryReplyContexts.set(key, {
|
|
566
|
-
...next,
|
|
567
|
-
expiresAt
|
|
568
|
-
});
|
|
569
|
-
pruneMemoryReplyContexts(registeredAt);
|
|
570
|
-
signalReplyAuthorState.persistentStoreDisabled = true;
|
|
571
|
-
getOptionalSignalRuntime()?.logging.getChildLogger({
|
|
572
|
-
plugin: "signal",
|
|
573
|
-
feature: "reply-author-state"
|
|
574
|
-
}).warn("Signal persistent reply author state lacks atomic updates");
|
|
575
|
-
return;
|
|
576
|
-
}
|
|
577
|
-
let updateEvaluated = false;
|
|
578
|
-
let nextRecord;
|
|
579
|
-
try {
|
|
580
|
-
if (await store.update(key, (current) => {
|
|
581
|
-
updateEvaluated = true;
|
|
582
|
-
nextRecord = mergeReplyContext(current, record);
|
|
583
|
-
return nextRecord;
|
|
584
|
-
}) && nextRecord) memoryReplyContexts.set(key, {
|
|
585
|
-
...nextRecord,
|
|
586
|
-
expiresAt
|
|
587
|
-
});
|
|
588
|
-
else memoryReplyContexts.delete(key);
|
|
589
|
-
pruneMemoryReplyContexts(registeredAt);
|
|
590
|
-
} catch (error) {
|
|
591
|
-
if (!updateEvaluated) try {
|
|
592
|
-
nextRecord = mergeReplyContext(await store.lookup(key), record);
|
|
593
|
-
} catch {
|
|
594
|
-
nextRecord = void 0;
|
|
595
|
-
}
|
|
596
|
-
const next = nextRecord;
|
|
597
|
-
if (next) memoryReplyContexts.set(key, {
|
|
598
|
-
...next,
|
|
599
|
-
expiresAt
|
|
600
|
-
});
|
|
601
|
-
else if (updateEvaluated) memoryReplyContexts.delete(key);
|
|
602
|
-
pruneMemoryReplyContexts(registeredAt);
|
|
603
|
-
getOptionalSignalRuntime()?.logging.getChildLogger({
|
|
604
|
-
plugin: "signal",
|
|
605
|
-
feature: "reply-author-state"
|
|
606
|
-
}).warn("Signal persistent reply author state failed", { error: String(error) });
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
async function resolveSignalReplyContextWithPersistence(params) {
|
|
610
|
-
const store = openSignalReplyAuthorStore();
|
|
611
|
-
const key = buildSignalReplyAuthorStoreKey(params);
|
|
612
|
-
if (!key) return;
|
|
613
|
-
if (!store) {
|
|
614
|
-
pruneMemoryReplyContexts();
|
|
615
|
-
return resolveReplyContext(memoryReplyContexts.get(key));
|
|
616
|
-
}
|
|
617
|
-
pruneMemoryReplyContexts();
|
|
618
|
-
const memoryContext = resolveReplyContext(memoryReplyContexts.get(key));
|
|
619
|
-
if (memoryContext) return memoryContext;
|
|
620
|
-
try {
|
|
621
|
-
return resolveReplyContext(await store.lookup(key));
|
|
622
|
-
} catch (error) {
|
|
623
|
-
getOptionalSignalRuntime()?.logging.getChildLogger({
|
|
624
|
-
plugin: "signal",
|
|
625
|
-
feature: "reply-author-state"
|
|
626
|
-
}).warn("Signal persistent reply author lookup failed", { error: String(error) });
|
|
627
|
-
return;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
//#endregion
|
|
631
|
-
//#region extensions/signal/src/transport-detection.ts
|
|
632
|
-
const DEFAULT_PROBE_TIMEOUT_MS = 1e4;
|
|
633
|
-
async function detectSignalTransport(params) {
|
|
634
|
-
const url = normalizeSignalTransportUrl(params.url);
|
|
635
|
-
const timeoutMs = params.timeoutMs ?? DEFAULT_PROBE_TIMEOUT_MS;
|
|
636
|
-
const probes = params.probeNative && params.probeContainer ? void 0 : await import("./transport-probes.runtime-CV6Qs0Og.js");
|
|
637
|
-
const probeNative = params.probeNative ?? probes?.nativeCheck;
|
|
638
|
-
const probeContainer = params.probeContainer ?? probes?.containerCheck;
|
|
639
|
-
if (!probeNative || !probeContainer) throw new Error("Signal transport probes are unavailable");
|
|
640
|
-
const [native, container] = await Promise.all([probeNative(url, timeoutMs).catch(() => ({ ok: false })), probeContainer(url, timeoutMs, params.account).catch(() => ({ ok: false }))]);
|
|
641
|
-
if (native.ok) return {
|
|
642
|
-
kind: "external-native",
|
|
643
|
-
url
|
|
644
|
-
};
|
|
645
|
-
if (container.ok) return {
|
|
646
|
-
kind: "container",
|
|
647
|
-
url
|
|
648
|
-
};
|
|
649
|
-
throw new Error(`Signal transport not reachable at ${url}`);
|
|
650
|
-
}
|
|
651
|
-
//#endregion
|
|
652
|
-
export { signalMessageActions as a, markdownToSignalText as c, shouldSuppressLocalSignalExecApprovalPrompt as d, signalApprovalCapability as f, materializeSignalPresentationFallback as i, markdownToSignalTextChunks as l, registerSignalReplyContext as n, resolveSignalReactionLevel as o, resolveSignalReplyContextWithPersistence as r, formatSignalMediaText as s, detectSignalTransport as t, isSignalNativeApprovalHandlerConfigured as u };
|