@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,487 +0,0 @@
|
|
|
1
|
-
import { a as isSignalManagedNativeConnectionUrlForBind, c as buildSignalTransportHttpUrl, i as assignSignalManagedNativePort, o as isValidSignalManagedNativePort, r as allocateSignalManagedNativePort, s as resolveLocalSignalTransportPort, u as normalizeSignalTransportUrl } from "./transport-policy-DxvSMHp9.js";
|
|
2
|
-
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
3
|
-
import { isRecord } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
4
|
-
import { defineChannelAliasMigration } from "openclaw/plugin-sdk/runtime-doctor";
|
|
5
|
-
//#region extensions/signal/src/config-compat.ts
|
|
6
|
-
const LEGACY_TRANSPORT_FIELDS = [
|
|
7
|
-
"configPath",
|
|
8
|
-
"httpUrl",
|
|
9
|
-
"httpHost",
|
|
10
|
-
"httpPort",
|
|
11
|
-
"cliPath",
|
|
12
|
-
"autoStart",
|
|
13
|
-
"startupTimeoutMs",
|
|
14
|
-
"receiveMode",
|
|
15
|
-
"ignoreStories"
|
|
16
|
-
];
|
|
17
|
-
const PENDING_LEGACY_TRANSPORT_WARNING = "- channels.signal: legacy auto transport is ambiguous while its endpoint is unavailable; bring the endpoint online and rerun openclaw doctor --fix, or replace the retired fields with an explicit account-owned transport in openclaw.json.";
|
|
18
|
-
const PENDING_LEGACY_INVALID_URL_WARNING = "- channels.signal: legacy httpUrl is invalid; keep the current config, correct httpUrl, then run openclaw doctor --fix.";
|
|
19
|
-
const PENDING_LEGACY_INVALID_HOST_WARNING = "- channels.signal: legacy httpHost is invalid; keep the current config, correct httpHost, then run openclaw doctor --fix.";
|
|
20
|
-
const PENDING_LEGACY_INVALID_PORT_WARNING = "- channels.signal: legacy httpPort must be an integer between 1 and 65535; correct httpPort, then run openclaw doctor --fix.";
|
|
21
|
-
const PENDING_LEGACY_CONTAINER_ACCOUNT_WARNING = "- channels.signal: legacy container transport requires an account number; add channels.signal.account (or the relevant channels.signal.accounts.*.account) and rerun openclaw doctor --fix.";
|
|
22
|
-
function isSignalTransportConfig(value) {
|
|
23
|
-
if (!isRecord(value)) return false;
|
|
24
|
-
if (value.kind === "managed-native") {
|
|
25
|
-
if (value.httpPort !== void 0 && !isValidSignalManagedNativePort(value.httpPort)) return false;
|
|
26
|
-
if (value.url === void 0) return true;
|
|
27
|
-
if (typeof value.url !== "string") return false;
|
|
28
|
-
try {
|
|
29
|
-
normalizeSignalTransportUrl(value.url);
|
|
30
|
-
return true;
|
|
31
|
-
} catch {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (value.kind !== "external-native" && value.kind !== "container" || typeof value.url !== "string") return false;
|
|
36
|
-
try {
|
|
37
|
-
normalizeSignalTransportUrl(value.url);
|
|
38
|
-
return true;
|
|
39
|
-
} catch {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function optionalString(value) {
|
|
44
|
-
return typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
45
|
-
}
|
|
46
|
-
function inherited(entry, parent, key) {
|
|
47
|
-
return Object.hasOwn(entry, key) ? entry[key] : parent[key];
|
|
48
|
-
}
|
|
49
|
-
function legacyBaseUrl(entry, parent) {
|
|
50
|
-
const url = optionalString(inherited(entry, parent, "httpUrl"));
|
|
51
|
-
if (url) return normalizeSignalTransportUrl(url);
|
|
52
|
-
const host = optionalString(inherited(entry, parent, "httpHost")) ?? "127.0.0.1";
|
|
53
|
-
const rawPort = inherited(entry, parent, "httpPort");
|
|
54
|
-
return buildSignalTransportHttpUrl(host, typeof rawPort === "number" ? rawPort : 8080);
|
|
55
|
-
}
|
|
56
|
-
function hasLegacyFields(entry) {
|
|
57
|
-
return LEGACY_TRANSPORT_FIELDS.some((field) => Object.hasOwn(entry, field));
|
|
58
|
-
}
|
|
59
|
-
function wasLegacySignalAccountConfigured(entry, parent) {
|
|
60
|
-
return Boolean(optionalString(inherited(entry, parent, "account")) || optionalString(inherited(entry, parent, "configPath")) || optionalString(inherited(entry, parent, "httpUrl")) || optionalString(inherited(entry, parent, "httpHost")) || optionalString(inherited(entry, parent, "cliPath")) || typeof inherited(entry, parent, "httpPort") === "number" || typeof inherited(entry, parent, "autoStart") === "boolean");
|
|
61
|
-
}
|
|
62
|
-
function hasInvalidLegacyHttpUrl(entries, parent) {
|
|
63
|
-
return entries.some((entry) => {
|
|
64
|
-
const httpUrl = optionalString(inherited(entry, parent, "httpUrl"));
|
|
65
|
-
if (!httpUrl) return false;
|
|
66
|
-
try {
|
|
67
|
-
normalizeSignalTransportUrl(httpUrl);
|
|
68
|
-
return false;
|
|
69
|
-
} catch {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function findInvalidLegacyDerivedEndpoint(entries, parent) {
|
|
75
|
-
for (const entry of entries) {
|
|
76
|
-
if (optionalString(inherited(entry, parent, "httpUrl"))) continue;
|
|
77
|
-
const rawPort = inherited(entry, parent, "httpPort");
|
|
78
|
-
if (rawPort !== void 0 && !isValidSignalManagedNativePort(rawPort)) return "port";
|
|
79
|
-
const host = optionalString(inherited(entry, parent, "httpHost")) ?? "127.0.0.1";
|
|
80
|
-
try {
|
|
81
|
-
buildSignalTransportHttpUrl(host, typeof rawPort === "number" ? rawPort : 8080);
|
|
82
|
-
} catch {
|
|
83
|
-
return "host";
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function hasInvalidManagedTransportPort(transports) {
|
|
88
|
-
return transports.some((transport) => transport?.kind === "managed-native" && transport.httpPort !== void 0 && !isValidSignalManagedNativePort(transport.httpPort));
|
|
89
|
-
}
|
|
90
|
-
function requiresDetection(entry, parent, apiMode) {
|
|
91
|
-
if (apiMode !== void 0 && apiMode !== "auto") return false;
|
|
92
|
-
return Boolean(optionalString(inherited(entry, parent, "httpUrl"))) || !resolveLegacyAutoStart(entry, parent);
|
|
93
|
-
}
|
|
94
|
-
function resolveLegacyAutoStart(entry, parent) {
|
|
95
|
-
const autoStart = inherited(entry, parent, "autoStart");
|
|
96
|
-
if (typeof autoStart === "boolean") return autoStart;
|
|
97
|
-
return !optionalString(inherited(entry, parent, "httpUrl"));
|
|
98
|
-
}
|
|
99
|
-
function resolveManagedConnectionUrl(entry, parent) {
|
|
100
|
-
const httpUrl = optionalString(inherited(entry, parent, "httpUrl"));
|
|
101
|
-
if (!httpUrl) return;
|
|
102
|
-
const normalizedUrl = normalizeSignalTransportUrl(httpUrl);
|
|
103
|
-
const endpoint = new URL(normalizedUrl);
|
|
104
|
-
const bindHost = (optionalString(inherited(entry, parent, "httpHost")) ?? "127.0.0.1").replace(/^\[|\]$/g, "").toLowerCase();
|
|
105
|
-
const rawBindPort = inherited(entry, parent, "httpPort");
|
|
106
|
-
const bindPort = typeof rawBindPort === "number" ? rawBindPort : 8080;
|
|
107
|
-
const endpointHost = endpoint.hostname.replace(/^\[|\]$/g, "").toLowerCase();
|
|
108
|
-
const endpointPort = endpoint.port ? Number.parseInt(endpoint.port, 10) : endpoint.protocol === "https:" ? 443 : 80;
|
|
109
|
-
return endpoint.protocol === "http:" && endpointHost === bindHost && endpointPort === bindPort ? void 0 : normalizedUrl;
|
|
110
|
-
}
|
|
111
|
-
function buildManagedNativeTransport(entry, parent) {
|
|
112
|
-
const value = (key) => inherited(entry, parent, key);
|
|
113
|
-
const configPath = optionalString(value("configPath"));
|
|
114
|
-
const cliPath = optionalString(value("cliPath"));
|
|
115
|
-
const url = resolveManagedConnectionUrl(entry, parent);
|
|
116
|
-
const httpHost = optionalString(value("httpHost"));
|
|
117
|
-
const httpPort = value("httpPort");
|
|
118
|
-
const startupTimeoutMs = value("startupTimeoutMs");
|
|
119
|
-
const receiveMode = value("receiveMode");
|
|
120
|
-
const ignoreStories = value("ignoreStories");
|
|
121
|
-
return {
|
|
122
|
-
kind: "managed-native",
|
|
123
|
-
...configPath ? { configPath } : {},
|
|
124
|
-
...cliPath ? { cliPath } : {},
|
|
125
|
-
...url ? { url } : {},
|
|
126
|
-
...httpHost ? { httpHost } : {},
|
|
127
|
-
...typeof httpPort === "number" ? { httpPort } : {},
|
|
128
|
-
...typeof startupTimeoutMs === "number" ? { startupTimeoutMs } : {},
|
|
129
|
-
...receiveMode === "on-start" || receiveMode === "manual" ? { receiveMode } : {},
|
|
130
|
-
...typeof ignoreStories === "boolean" ? { ignoreStories } : {}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function resolveLegacyTransportWithoutDetection(params) {
|
|
134
|
-
if (isSignalTransportConfig(params.entry.transport)) return params.entry.transport;
|
|
135
|
-
const baseUrl = legacyBaseUrl(params.entry, params.parent);
|
|
136
|
-
const autoStart = inherited(params.entry, params.parent, "autoStart");
|
|
137
|
-
if (params.apiMode === "container") return {
|
|
138
|
-
kind: "container",
|
|
139
|
-
url: baseUrl
|
|
140
|
-
};
|
|
141
|
-
if (params.apiMode === "native") return resolveLegacyAutoStart(params.entry, params.parent) ? buildManagedNativeTransport(params.entry, params.parent) : {
|
|
142
|
-
kind: "external-native",
|
|
143
|
-
url: baseUrl
|
|
144
|
-
};
|
|
145
|
-
if (requiresDetection(params.entry, params.parent, params.apiMode)) return;
|
|
146
|
-
if (autoStart === false) return {
|
|
147
|
-
kind: "external-native",
|
|
148
|
-
url: baseUrl
|
|
149
|
-
};
|
|
150
|
-
return buildManagedNativeTransport(params.entry, params.parent);
|
|
151
|
-
}
|
|
152
|
-
async function resolveLegacyTransport(params) {
|
|
153
|
-
const resolved = resolveLegacyTransportWithoutDetection(params);
|
|
154
|
-
if (resolved) return resolved;
|
|
155
|
-
const account = optionalString(inherited(params.entry, params.parent, "account"));
|
|
156
|
-
try {
|
|
157
|
-
const detected = await params.detect?.({
|
|
158
|
-
url: legacyBaseUrl(params.entry, params.parent),
|
|
159
|
-
...account ? { account } : {}
|
|
160
|
-
});
|
|
161
|
-
if (detected?.kind === "external-native" && resolveLegacyAutoStart(params.entry, params.parent)) return buildManagedNativeTransport(params.entry, params.parent);
|
|
162
|
-
return detected;
|
|
163
|
-
} catch {
|
|
164
|
-
if (resolveLegacyAutoStart(params.entry, params.parent)) return buildManagedNativeTransport(params.entry, params.parent);
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
function clearLegacyTransportFields(entry) {
|
|
169
|
-
for (const field of LEGACY_TRANSPORT_FIELDS) delete entry[field];
|
|
170
|
-
}
|
|
171
|
-
function hasRootSignalAccount(entries) {
|
|
172
|
-
const root = entries[0];
|
|
173
|
-
return entries.length === 1 || Boolean(optionalString(root?.account)) || isSignalTransportConfig(root?.transport);
|
|
174
|
-
}
|
|
175
|
-
function signalAccountIds(entries) {
|
|
176
|
-
const accounts = isRecord(entries[0]?.accounts) ? entries[0].accounts : {};
|
|
177
|
-
return Object.entries(accounts).filter(([, entry]) => isRecord(entry)).map(([accountId]) => accountId);
|
|
178
|
-
}
|
|
179
|
-
function isDefaultSignalAccountId(accountId) {
|
|
180
|
-
return Boolean(accountId?.trim()) && normalizeAccountId(accountId) === DEFAULT_ACCOUNT_ID;
|
|
181
|
-
}
|
|
182
|
-
function resolveSignalAccountKey(accounts, accountId) {
|
|
183
|
-
const normalizedAccountId = normalizeAccountId(accountId);
|
|
184
|
-
return Object.keys(accounts).find((key) => Boolean(key.trim()) && normalizeAccountId(key) === normalizedAccountId);
|
|
185
|
-
}
|
|
186
|
-
function nestedDefaultOwnsEffectiveTransport(entries) {
|
|
187
|
-
const accounts = isRecord(entries[0]?.accounts) ? entries[0].accounts : {};
|
|
188
|
-
const nestedDefaultKey = resolveSignalAccountKey(accounts, DEFAULT_ACCOUNT_ID);
|
|
189
|
-
const nestedDefault = nestedDefaultKey ? accounts[nestedDefaultKey] : void 0;
|
|
190
|
-
return isRecord(nestedDefault) && (isSignalTransportConfig(nestedDefault.transport) || hasLegacyFields(nestedDefault));
|
|
191
|
-
}
|
|
192
|
-
function isDiscardedTransportEntry(entries, index) {
|
|
193
|
-
if (index === 0) return !hasRootSignalAccount(entries) || nestedDefaultOwnsEffectiveTransport(entries);
|
|
194
|
-
return isDefaultSignalAccountId(signalAccountIds(entries)[index - 1]) && isSignalTransportConfig(entries[0]?.transport);
|
|
195
|
-
}
|
|
196
|
-
function shouldMaterializeTransport(entries, index) {
|
|
197
|
-
if (isDiscardedTransportEntry(entries, index)) return false;
|
|
198
|
-
const entry = entries[index];
|
|
199
|
-
const parent = entries[0];
|
|
200
|
-
return Boolean(entry && parent && (isSignalTransportConfig(entry.transport) || wasLegacySignalAccountConfigured(entry, parent)));
|
|
201
|
-
}
|
|
202
|
-
function clearLegacySignalTransportFieldsForAccount(params) {
|
|
203
|
-
const next = structuredClone(params.cfg);
|
|
204
|
-
const signal = next.channels?.signal;
|
|
205
|
-
if (!isRecord(signal)) return next;
|
|
206
|
-
if (isDefaultSignalAccountId(params.accountId)) {
|
|
207
|
-
clearLegacyTransportFields(signal);
|
|
208
|
-
delete signal.apiMode;
|
|
209
|
-
const accounts = isRecord(signal.accounts) ? signal.accounts : void 0;
|
|
210
|
-
const nestedDefaultKey = accounts ? resolveSignalAccountKey(accounts, DEFAULT_ACCOUNT_ID) : void 0;
|
|
211
|
-
const nestedDefault = nestedDefaultKey ? accounts?.[nestedDefaultKey] : void 0;
|
|
212
|
-
if (isRecord(nestedDefault)) {
|
|
213
|
-
clearLegacyTransportFields(nestedDefault);
|
|
214
|
-
delete nestedDefault.transport;
|
|
215
|
-
}
|
|
216
|
-
return next;
|
|
217
|
-
}
|
|
218
|
-
const accounts = isRecord(signal.accounts) ? signal.accounts : void 0;
|
|
219
|
-
const accountKey = accounts ? resolveSignalAccountKey(accounts, params.accountId) : void 0;
|
|
220
|
-
const account = accountKey ? accounts?.[accountKey] : void 0;
|
|
221
|
-
if (isRecord(account)) clearLegacyTransportFields(account);
|
|
222
|
-
return next;
|
|
223
|
-
}
|
|
224
|
-
function allocateMigratedManagedPorts(params) {
|
|
225
|
-
const reservedPorts = /* @__PURE__ */ new Set();
|
|
226
|
-
const rootIsAccount = hasRootSignalAccount(params.entries);
|
|
227
|
-
const nestedDefaultOffset = signalAccountIds(params.entries).findIndex((accountId) => isDefaultSignalAccountId(accountId));
|
|
228
|
-
const canonicalDefaultIndex = isSignalTransportConfig(params.entries[0]?.transport) ? 0 : nestedDefaultOffset >= 0 ? nestedDefaultOffset + 1 : rootIsAccount ? 0 : void 0;
|
|
229
|
-
for (const [index, transport] of params.transports.entries()) {
|
|
230
|
-
if (!transport || index === 0 && canonicalDefaultIndex !== 0) continue;
|
|
231
|
-
if (transport.kind !== "managed-native") {
|
|
232
|
-
const localPort = resolveLocalSignalTransportPort(transport.url);
|
|
233
|
-
if (localPort !== void 0) reservedPorts.add(localPort);
|
|
234
|
-
continue;
|
|
235
|
-
}
|
|
236
|
-
if (transport.url && !isSignalManagedNativeConnectionUrlForBind(transport)) {
|
|
237
|
-
const localConnectionPort = resolveLocalSignalTransportPort(transport.url);
|
|
238
|
-
if (localConnectionPort !== void 0) reservedPorts.add(localConnectionPort);
|
|
239
|
-
}
|
|
240
|
-
if (index === canonicalDefaultIndex || isRecord(params.entries[index]?.transport)) reservedPorts.add(transport.httpPort ?? 8080);
|
|
241
|
-
}
|
|
242
|
-
return params.transports.map((transport, index) => {
|
|
243
|
-
if (!transport || index === 0 && canonicalDefaultIndex !== 0) return transport;
|
|
244
|
-
if (transport.kind !== "managed-native") return transport;
|
|
245
|
-
if (isRecord(params.entries[index]?.transport) || index === canonicalDefaultIndex) return transport;
|
|
246
|
-
const rawPreferredPort = params.entries[index]?.httpPort;
|
|
247
|
-
const preferredPort = typeof rawPreferredPort === "number" ? rawPreferredPort : transport.httpPort;
|
|
248
|
-
const httpPort = allocateSignalManagedNativePort({
|
|
249
|
-
reservedPorts,
|
|
250
|
-
...typeof preferredPort === "number" ? { preferredPort } : {}
|
|
251
|
-
});
|
|
252
|
-
reservedPorts.add(httpPort);
|
|
253
|
-
return assignSignalManagedNativePort(transport, httpPort);
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
function applyMigratedSignalTransports(params) {
|
|
257
|
-
const next = structuredClone(params.cfg);
|
|
258
|
-
const nextSignal = next.channels?.signal;
|
|
259
|
-
if (!isRecord(nextSignal)) return;
|
|
260
|
-
const accountIds = signalAccountIds(params.entries);
|
|
261
|
-
const nextAccounts = isRecord(nextSignal.accounts) ? nextSignal.accounts : {};
|
|
262
|
-
const nextEntries = [nextSignal, ...Object.values(nextAccounts).filter(isRecord)];
|
|
263
|
-
const rootIsAccount = hasRootSignalAccount(params.entries);
|
|
264
|
-
const canonicalRootTransport = isSignalTransportConfig(params.entries[0]?.transport) ? params.entries[0].transport : void 0;
|
|
265
|
-
for (const [index, entry] of nextEntries.entries()) {
|
|
266
|
-
if (isDefaultSignalAccountId(index === 0 ? void 0 : accountIds[index - 1])) {
|
|
267
|
-
const defaultTransport = canonicalRootTransport ?? params.transports[index];
|
|
268
|
-
if (defaultTransport) nextSignal.transport = defaultTransport;
|
|
269
|
-
else delete nextSignal.transport;
|
|
270
|
-
delete entry.transport;
|
|
271
|
-
} else if (index === 0 && !rootIsAccount) delete entry.transport;
|
|
272
|
-
else if (params.transports[index]) entry.transport = params.transports[index];
|
|
273
|
-
else delete entry.transport;
|
|
274
|
-
clearLegacyTransportFields(entry);
|
|
275
|
-
}
|
|
276
|
-
delete nextSignal.apiMode;
|
|
277
|
-
return next;
|
|
278
|
-
}
|
|
279
|
-
function hasContainerTransportWithoutEffectiveAccount(cfg) {
|
|
280
|
-
const signal = cfg.channels?.signal;
|
|
281
|
-
if (!isRecord(signal)) return false;
|
|
282
|
-
const accounts = isRecord(signal.accounts) ? signal.accounts : {};
|
|
283
|
-
const rootTransport = isSignalTransportConfig(signal.transport) ? signal.transport : void 0;
|
|
284
|
-
const defaultKey = resolveSignalAccountKey(accounts, DEFAULT_ACCOUNT_ID);
|
|
285
|
-
const defaultEntry = defaultKey ? accounts[defaultKey] : void 0;
|
|
286
|
-
const defaultAccount = isRecord(defaultEntry) && defaultEntry.account !== void 0 ? optionalString(defaultEntry.account) : optionalString(signal.account);
|
|
287
|
-
const channelEnabled = signal.enabled !== false;
|
|
288
|
-
const defaultEnabled = !isRecord(defaultEntry) || defaultEntry.enabled !== false;
|
|
289
|
-
if (rootTransport?.kind === "container" && channelEnabled && defaultEnabled && !defaultAccount) return true;
|
|
290
|
-
for (const [accountId, entry] of Object.entries(accounts)) {
|
|
291
|
-
if (!isRecord(entry)) continue;
|
|
292
|
-
if (!channelEnabled || entry.enabled === false) continue;
|
|
293
|
-
const isDefaultAccount = isDefaultSignalAccountId(accountId);
|
|
294
|
-
if ((isDefaultAccount && rootTransport ? rootTransport : isSignalTransportConfig(entry.transport) ? entry.transport : void 0)?.kind !== "container" || isDefaultAccount && rootTransport) continue;
|
|
295
|
-
if (!(entry.account === void 0 ? optionalString(signal.account) : optionalString(entry.account))) return true;
|
|
296
|
-
}
|
|
297
|
-
return false;
|
|
298
|
-
}
|
|
299
|
-
async function migrateLegacySignalTransportConfig(params) {
|
|
300
|
-
const signal = params.cfg.channels?.signal;
|
|
301
|
-
if (!isRecord(signal)) return {
|
|
302
|
-
config: params.cfg,
|
|
303
|
-
changes: []
|
|
304
|
-
};
|
|
305
|
-
const accounts = isRecord(signal.accounts) ? signal.accounts : {};
|
|
306
|
-
if (!(Object.hasOwn(signal, "apiMode") || hasLegacyFields(signal) || Object.values(accounts).some((entry) => isRecord(entry) && hasLegacyFields(entry)))) return {
|
|
307
|
-
config: params.cfg,
|
|
308
|
-
changes: []
|
|
309
|
-
};
|
|
310
|
-
const apiMode = signal.apiMode;
|
|
311
|
-
const entries = [signal, ...Object.values(accounts).filter(isRecord)];
|
|
312
|
-
const legacyResolutionEntries = entries.filter((_, index) => shouldMaterializeTransport(entries, index)).filter((entry) => !isSignalTransportConfig(entry.transport));
|
|
313
|
-
const invalidDerivedEndpoint = findInvalidLegacyDerivedEndpoint(legacyResolutionEntries, signal);
|
|
314
|
-
if (invalidDerivedEndpoint) return {
|
|
315
|
-
config: params.cfg,
|
|
316
|
-
changes: [],
|
|
317
|
-
warnings: [invalidDerivedEndpoint === "port" ? PENDING_LEGACY_INVALID_PORT_WARNING : PENDING_LEGACY_INVALID_HOST_WARNING]
|
|
318
|
-
};
|
|
319
|
-
if (hasInvalidLegacyHttpUrl(legacyResolutionEntries, signal)) return {
|
|
320
|
-
config: params.cfg,
|
|
321
|
-
changes: [],
|
|
322
|
-
warnings: [PENDING_LEGACY_INVALID_URL_WARNING]
|
|
323
|
-
};
|
|
324
|
-
if (!params.detect && legacyResolutionEntries.some((entry) => requiresDetection(entry, signal, apiMode))) return {
|
|
325
|
-
config: params.cfg,
|
|
326
|
-
changes: [],
|
|
327
|
-
warnings: [PENDING_LEGACY_TRANSPORT_WARNING]
|
|
328
|
-
};
|
|
329
|
-
const resolvedTransports = await Promise.all(entries.map(async (entry, index) => !shouldMaterializeTransport(entries, index) ? void 0 : await resolveLegacyTransport({
|
|
330
|
-
entry,
|
|
331
|
-
parent: signal,
|
|
332
|
-
apiMode,
|
|
333
|
-
detect: params.detect
|
|
334
|
-
})));
|
|
335
|
-
if (hasInvalidManagedTransportPort(resolvedTransports)) return {
|
|
336
|
-
config: params.cfg,
|
|
337
|
-
changes: [],
|
|
338
|
-
warnings: [PENDING_LEGACY_INVALID_PORT_WARNING]
|
|
339
|
-
};
|
|
340
|
-
const transports = allocateMigratedManagedPorts({
|
|
341
|
-
entries,
|
|
342
|
-
transports: resolvedTransports
|
|
343
|
-
});
|
|
344
|
-
if (transports.some((transport, index) => shouldMaterializeTransport(entries, index) && !transport)) return {
|
|
345
|
-
config: params.cfg,
|
|
346
|
-
changes: [],
|
|
347
|
-
warnings: [PENDING_LEGACY_TRANSPORT_WARNING]
|
|
348
|
-
};
|
|
349
|
-
const next = applyMigratedSignalTransports({
|
|
350
|
-
cfg: params.cfg,
|
|
351
|
-
entries,
|
|
352
|
-
transports
|
|
353
|
-
});
|
|
354
|
-
if (!next) return {
|
|
355
|
-
config: params.cfg,
|
|
356
|
-
changes: []
|
|
357
|
-
};
|
|
358
|
-
if (hasContainerTransportWithoutEffectiveAccount(next)) return {
|
|
359
|
-
config: params.cfg,
|
|
360
|
-
changes: [],
|
|
361
|
-
warnings: [PENDING_LEGACY_CONTAINER_ACCOUNT_WARNING]
|
|
362
|
-
};
|
|
363
|
-
return {
|
|
364
|
-
config: next,
|
|
365
|
-
changes: ["Migrated channels.signal transport settings to concrete account-owned transport objects."]
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
function migrateLegacySignalTransportConfigSync(cfg) {
|
|
369
|
-
const signal = cfg.channels?.signal;
|
|
370
|
-
if (!isRecord(signal)) return {
|
|
371
|
-
config: cfg,
|
|
372
|
-
changes: []
|
|
373
|
-
};
|
|
374
|
-
const accounts = isRecord(signal.accounts) ? signal.accounts : {};
|
|
375
|
-
if (!(Object.hasOwn(signal, "apiMode") || hasLegacyFields(signal) || Object.values(accounts).some((entry) => isRecord(entry) && hasLegacyFields(entry)))) return {
|
|
376
|
-
config: cfg,
|
|
377
|
-
changes: []
|
|
378
|
-
};
|
|
379
|
-
const entries = [signal, ...Object.values(accounts).filter(isRecord)];
|
|
380
|
-
const legacyResolutionEntries = entries.filter((_, index) => shouldMaterializeTransport(entries, index)).filter((entry) => !isSignalTransportConfig(entry.transport));
|
|
381
|
-
const invalidDerivedEndpoint = findInvalidLegacyDerivedEndpoint(legacyResolutionEntries, signal);
|
|
382
|
-
if (invalidDerivedEndpoint) return {
|
|
383
|
-
config: cfg,
|
|
384
|
-
changes: [],
|
|
385
|
-
warnings: [invalidDerivedEndpoint === "port" ? PENDING_LEGACY_INVALID_PORT_WARNING : PENDING_LEGACY_INVALID_HOST_WARNING]
|
|
386
|
-
};
|
|
387
|
-
if (hasInvalidLegacyHttpUrl(legacyResolutionEntries, signal)) return {
|
|
388
|
-
config: cfg,
|
|
389
|
-
changes: [],
|
|
390
|
-
warnings: [PENDING_LEGACY_INVALID_URL_WARNING]
|
|
391
|
-
};
|
|
392
|
-
const resolvedTransports = entries.map((entry, index) => {
|
|
393
|
-
if (!shouldMaterializeTransport(entries, index)) return;
|
|
394
|
-
return resolveLegacyTransportWithoutDetection({
|
|
395
|
-
entry,
|
|
396
|
-
parent: signal,
|
|
397
|
-
apiMode: signal.apiMode
|
|
398
|
-
});
|
|
399
|
-
});
|
|
400
|
-
if (hasInvalidManagedTransportPort(resolvedTransports)) return {
|
|
401
|
-
config: cfg,
|
|
402
|
-
changes: [],
|
|
403
|
-
warnings: [PENDING_LEGACY_INVALID_PORT_WARNING]
|
|
404
|
-
};
|
|
405
|
-
const transports = allocateMigratedManagedPorts({
|
|
406
|
-
entries,
|
|
407
|
-
transports: resolvedTransports
|
|
408
|
-
});
|
|
409
|
-
if (transports.some((transport, index) => shouldMaterializeTransport(entries, index) && !transport)) return {
|
|
410
|
-
config: cfg,
|
|
411
|
-
changes: [],
|
|
412
|
-
warnings: [PENDING_LEGACY_TRANSPORT_WARNING]
|
|
413
|
-
};
|
|
414
|
-
const next = applyMigratedSignalTransports({
|
|
415
|
-
cfg,
|
|
416
|
-
entries,
|
|
417
|
-
transports
|
|
418
|
-
});
|
|
419
|
-
if (!next) return {
|
|
420
|
-
config: cfg,
|
|
421
|
-
changes: []
|
|
422
|
-
};
|
|
423
|
-
if (hasContainerTransportWithoutEffectiveAccount(next)) return {
|
|
424
|
-
config: cfg,
|
|
425
|
-
changes: [],
|
|
426
|
-
warnings: [PENDING_LEGACY_CONTAINER_ACCOUNT_WARNING]
|
|
427
|
-
};
|
|
428
|
-
return {
|
|
429
|
-
config: next,
|
|
430
|
-
changes: ["Migrated channels.signal transport settings to concrete account-owned transport objects."]
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
//#endregion
|
|
434
|
-
//#region extensions/signal/doctor-contract-api.ts
|
|
435
|
-
const RETIRED_SIGNAL_ACCOUNT_TRANSPORT_FIELDS = [
|
|
436
|
-
"configPath",
|
|
437
|
-
"httpUrl",
|
|
438
|
-
"httpHost",
|
|
439
|
-
"httpPort",
|
|
440
|
-
"cliPath",
|
|
441
|
-
"autoStart",
|
|
442
|
-
"startupTimeoutMs",
|
|
443
|
-
"receiveMode",
|
|
444
|
-
"ignoreStories"
|
|
445
|
-
];
|
|
446
|
-
function hasRetiredSignalAccountTransportFields(value) {
|
|
447
|
-
return isRecord(value) && RETIRED_SIGNAL_ACCOUNT_TRANSPORT_FIELDS.some((field) => Object.hasOwn(value, field));
|
|
448
|
-
}
|
|
449
|
-
function hasRetiredSignalAccountMapTransportFields(value) {
|
|
450
|
-
return isRecord(value) && Object.values(value).some(hasRetiredSignalAccountTransportFields);
|
|
451
|
-
}
|
|
452
|
-
const streamingAliasMigration = defineChannelAliasMigration({
|
|
453
|
-
channelId: "signal",
|
|
454
|
-
streaming: {
|
|
455
|
-
defaultMode: "partial",
|
|
456
|
-
deliveryOnly: true
|
|
457
|
-
},
|
|
458
|
-
accountStreamingReplacesRoot: true
|
|
459
|
-
});
|
|
460
|
-
const legacyConfigRules = [
|
|
461
|
-
...streamingAliasMigration.legacyConfigRules,
|
|
462
|
-
{
|
|
463
|
-
path: ["channels", "signal"],
|
|
464
|
-
message: "Signal transport config is now account-owned; run \"openclaw doctor --fix\" to migrate retired channels.signal transport fields.",
|
|
465
|
-
match: (value) => isRecord(value) && (Object.hasOwn(value, "apiMode") || hasRetiredSignalAccountTransportFields(value))
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
path: [
|
|
469
|
-
"channels",
|
|
470
|
-
"signal",
|
|
471
|
-
"accounts"
|
|
472
|
-
],
|
|
473
|
-
message: "Signal transport config is now account-owned; run \"openclaw doctor --fix\" to migrate retired per-account transport fields.",
|
|
474
|
-
match: hasRetiredSignalAccountMapTransportFields
|
|
475
|
-
}
|
|
476
|
-
];
|
|
477
|
-
function normalizeCompatibilityConfig({ cfg }) {
|
|
478
|
-
const streaming = streamingAliasMigration.normalizeChannelConfig({ cfg });
|
|
479
|
-
const transport = migrateLegacySignalTransportConfigSync(streaming.config);
|
|
480
|
-
return {
|
|
481
|
-
config: transport.config,
|
|
482
|
-
changes: [...streaming.changes, ...transport.changes],
|
|
483
|
-
...transport.warnings?.length ? { warnings: transport.warnings } : {}
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
//#endregion
|
|
487
|
-
export { migrateLegacySignalTransportConfig as i, normalizeCompatibilityConfig as n, clearLegacySignalTransportFieldsForAccount as r, legacyConfigRules as t };
|
package/dist/probe-Br9abaGp.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { t as detectSignalTransport } from "./transport-detection-Da06-LOL.js";
|
|
3
|
-
import { n as signalRpcRequest, t as signalCheck } from "./client-adapter-mXGeEHQJ.js";
|
|
4
|
-
import { runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
5
|
-
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
6
|
-
//#region extensions/signal/src/probe.ts
|
|
7
|
-
var probe_exports = /* @__PURE__ */ __exportAll({ probeSignal: () => probeSignal });
|
|
8
|
-
function parseSignalVersion(value) {
|
|
9
|
-
if (typeof value === "string" && value.trim()) return value.trim();
|
|
10
|
-
if (typeof value === "object" && value !== null) {
|
|
11
|
-
const version = value.version;
|
|
12
|
-
if (typeof version === "string" && version.trim()) return version.trim();
|
|
13
|
-
}
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
async function probeSignal(baseUrl, timeoutMs, options = {}) {
|
|
17
|
-
return await runChannelProbe(void 0, async () => {
|
|
18
|
-
const result = {
|
|
19
|
-
ok: false,
|
|
20
|
-
status: null,
|
|
21
|
-
error: null,
|
|
22
|
-
version: null
|
|
23
|
-
};
|
|
24
|
-
let transportKind;
|
|
25
|
-
try {
|
|
26
|
-
transportKind = await resolveProbeTransportKind(baseUrl, timeoutMs, options);
|
|
27
|
-
} catch (error) {
|
|
28
|
-
return {
|
|
29
|
-
...result,
|
|
30
|
-
error: formatErrorMessage(error)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
const check = await signalCheck(baseUrl, timeoutMs, { transportKind });
|
|
34
|
-
if (!check.ok) return {
|
|
35
|
-
...result,
|
|
36
|
-
status: check.status ?? null,
|
|
37
|
-
error: check.error ?? "unreachable"
|
|
38
|
-
};
|
|
39
|
-
try {
|
|
40
|
-
result.version = parseSignalVersion(await signalRpcRequest("version", void 0, {
|
|
41
|
-
baseUrl,
|
|
42
|
-
timeoutMs,
|
|
43
|
-
transportKind
|
|
44
|
-
}));
|
|
45
|
-
} catch (error) {
|
|
46
|
-
result.error = formatErrorMessage(error);
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
...result,
|
|
50
|
-
ok: true,
|
|
51
|
-
status: check.status ?? null
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
async function resolveProbeTransportKind(baseUrl, timeoutMs, options) {
|
|
56
|
-
if (options.transportKind) return options.transportKind;
|
|
57
|
-
if (options.apiMode === "container") return "container";
|
|
58
|
-
if (options.apiMode === "auto") return (await detectSignalTransport({
|
|
59
|
-
url: baseUrl,
|
|
60
|
-
timeoutMs
|
|
61
|
-
})).kind;
|
|
62
|
-
return "external-native";
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
export { probe_exports as n, probeSignal as t };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { o as resolveSignalTarget } from "./runtime-JPrGlV7h.js";
|
|
3
|
-
import { l as resolveSignalApprovalConversationKey, u as resolveSignalApprovalTargetAuthorKeys } from "./approval-reactions-DtL47gSK.js";
|
|
4
|
-
import { questionGatewayRuntime } from "openclaw/plugin-sdk/question-gateway-runtime";
|
|
5
|
-
import { normalizeAccountId } from "openclaw/plugin-sdk/routing";
|
|
6
|
-
//#region extensions/signal/src/question-reactions.ts
|
|
7
|
-
var question_reactions_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
-
maybeResolveSignalQuestionReaction: () => maybeResolveSignalQuestionReaction,
|
|
9
|
-
registerSignalQuestionReactionTargetForDeliveredPayload: () => registerSignalQuestionReactionTargetForDeliveredPayload
|
|
10
|
-
});
|
|
11
|
-
const TARGET_TTL_MS = 1440 * 60 * 1e3;
|
|
12
|
-
const targets = /* @__PURE__ */ new Map();
|
|
13
|
-
function storeTarget(key, binding, targetAuthorKeys) {
|
|
14
|
-
const existing = targets.get(key);
|
|
15
|
-
if (existing) clearTimeout(existing.cleanupTimer);
|
|
16
|
-
const target = {
|
|
17
|
-
...binding,
|
|
18
|
-
targetAuthorKeys,
|
|
19
|
-
terminal: false,
|
|
20
|
-
expiresAtMs: Date.now() + TARGET_TTL_MS,
|
|
21
|
-
cleanupTimer: setTimeout(() => {
|
|
22
|
-
if (targets.get(key) === target) targets.delete(key);
|
|
23
|
-
}, TARGET_TTL_MS)
|
|
24
|
-
};
|
|
25
|
-
target.cleanupTimer.unref?.();
|
|
26
|
-
targets.set(key, target);
|
|
27
|
-
questionGatewayRuntime.registerChannelDelivery({
|
|
28
|
-
questionId: binding.questionId,
|
|
29
|
-
deliveryId: `signal-reaction:${key}`,
|
|
30
|
-
finalize: () => {
|
|
31
|
-
target.terminal = true;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function buildKey(accountId, conversationKey, messageId) {
|
|
36
|
-
const values = [
|
|
37
|
-
accountId,
|
|
38
|
-
conversationKey,
|
|
39
|
-
messageId
|
|
40
|
-
].map((value) => value.trim());
|
|
41
|
-
return values.every(Boolean) ? values.join(":") : null;
|
|
42
|
-
}
|
|
43
|
-
function resolveConversationKey(params) {
|
|
44
|
-
try {
|
|
45
|
-
return resolveSignalTarget({
|
|
46
|
-
cfg: params.cfg,
|
|
47
|
-
accountId: params.accountId,
|
|
48
|
-
input: params.to
|
|
49
|
-
})?.to ?? resolveSignalApprovalConversationKey(params.to);
|
|
50
|
-
} catch {
|
|
51
|
-
return resolveSignalApprovalConversationKey(params.to);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function registerSignalQuestionReactionTargetForDeliveredPayload(params) {
|
|
55
|
-
const binding = questionGatewayRuntime.readReactionBinding(params.payload);
|
|
56
|
-
if (params.target.channel !== "signal" || !binding) return false;
|
|
57
|
-
const conversationKey = resolveConversationKey({
|
|
58
|
-
cfg: params.cfg,
|
|
59
|
-
...params.target
|
|
60
|
-
});
|
|
61
|
-
const targetAuthorKeys = resolveSignalApprovalTargetAuthorKeys(params);
|
|
62
|
-
if (!conversationKey || targetAuthorKeys.length === 0) return false;
|
|
63
|
-
const accountId = normalizeAccountId(params.target.accountId ?? void 0);
|
|
64
|
-
let registered = false;
|
|
65
|
-
for (const result of params.results) {
|
|
66
|
-
const messageId = result.channel === "signal" ? result.messageId.trim() : "";
|
|
67
|
-
const key = messageId && messageId !== "unknown" ? buildKey(accountId, conversationKey, messageId) : null;
|
|
68
|
-
if (!key) continue;
|
|
69
|
-
storeTarget(key, binding, targetAuthorKeys);
|
|
70
|
-
registered = true;
|
|
71
|
-
}
|
|
72
|
-
return registered;
|
|
73
|
-
}
|
|
74
|
-
async function maybeResolveSignalQuestionReaction(params) {
|
|
75
|
-
if (params.isRemove) return false;
|
|
76
|
-
const optionIndex = questionGatewayRuntime.resolveReactionIndex(params.reactionKey);
|
|
77
|
-
const key = buildKey(params.accountId, params.conversationKey, params.messageId);
|
|
78
|
-
if (optionIndex === void 0 || !key) return false;
|
|
79
|
-
const target = targets.get(key);
|
|
80
|
-
if (!target) return false;
|
|
81
|
-
if (!resolveSignalApprovalTargetAuthorKeys(params).some((authorKey) => target.targetAuthorKeys.includes(authorKey))) return false;
|
|
82
|
-
if (target.expiresAtMs <= Date.now() || target.terminal) {
|
|
83
|
-
target.terminal = true;
|
|
84
|
-
params.logDebug?.(`signal: stale question reaction ignored id=${target.questionId}`);
|
|
85
|
-
return true;
|
|
86
|
-
}
|
|
87
|
-
const optionValue = target.optionValues[optionIndex];
|
|
88
|
-
if (!optionValue) {
|
|
89
|
-
params.logDebug?.(`signal: out-of-range question reaction ignored id=${target.questionId}`);
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
try {
|
|
93
|
-
const result = await questionGatewayRuntime.resolveReaction({
|
|
94
|
-
cfg: params.cfg,
|
|
95
|
-
questionId: target.questionId,
|
|
96
|
-
optionValue,
|
|
97
|
-
senderId: params.actorId,
|
|
98
|
-
gatewayUrl: params.gatewayUrl,
|
|
99
|
-
clientDisplayName: `Signal question (${params.actorId})`
|
|
100
|
-
});
|
|
101
|
-
target.terminal = result?.status === "answered" || result?.status === "already-terminal";
|
|
102
|
-
if (result?.status === "already-terminal") params.logDebug?.(`signal: stale question reaction ignored id=${target.questionId}`);
|
|
103
|
-
} catch (error) {
|
|
104
|
-
params.logDebug?.(`signal: question reaction failed id=${target.questionId}: ${String(error)}`);
|
|
105
|
-
}
|
|
106
|
-
return true;
|
|
107
|
-
}
|
|
108
|
-
//#endregion
|
|
109
|
-
export { question_reactions_exports as n, registerSignalQuestionReactionTargetForDeliveredPayload as r, maybeResolveSignalQuestionReaction as t };
|