@openclaw/imessage 2026.9.3 → 2026.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/activity.svg +40 -0
- package/assets/icon.png +0 -0
- package/dist/{actions.runtime-CzvR20qT.js → .setup/actions.runtime-B-qGAkYG.mjs} +106 -176
- package/dist/.setup/api-DcUWvBmD.mjs +10 -0
- package/dist/.setup/api-_NoJAo2x.mjs +14 -0
- package/dist/{approval-handler.runtime-B6JGnxQf.js → .setup/approval-handler.runtime-CkG235P7.mjs} +27 -27
- package/dist/{approval-reactions-BM_AwHPq.js → .setup/approval-reactions-CX1-6KeG.mjs} +32 -32
- package/dist/{channel-B6qtBfCj.js → .setup/channel-CCbYCQiN.mjs} +29 -17
- package/dist/{channel.runtime-C2lcFXWn.js → .setup/channel.runtime-Kw4iCQax.mjs} +7 -5
- package/dist/{group-policy-Duro87b4.js → .setup/group-policy-BoOAkmoQ.mjs} +35 -75
- package/dist/{media-contract-pns3TSS5.js → .setup/media-contract-BpPh5Oh1.mjs} +1 -1
- package/dist/.setup/message-tool-api-DZSH-2gY.mjs +148 -0
- package/dist/{monitor-Dj3TAimI.js → .setup/monitor-CSeWJ3Qh.mjs} +231 -154
- package/dist/{question-reactions-9tBYB1_F.js → .setup/question-reactions-lm8OxWbb.mjs} +2 -2
- package/dist/{remote-file-5n5LznCa.js → .setup/remote-file-4RbwiXYh.mjs} +11 -8
- package/dist/{sanitize-outbound-C6UF2cvr.js → .setup/sanitize-outbound-o1ePXajW.mjs} +83 -47
- package/dist/{send-CIHiLtcY.js → .setup/send-DXiUWygv.mjs} +157 -173
- package/dist/{state-migrations-D-fyHVcb.js → .setup/state-migrations-CIwg07l5.mjs} +3 -3
- package/dist/{message-tool-api-CUoFESHj.js → .setup/targets-Cc9vthzI.mjs} +53 -155
- package/dist/api.js +9 -14
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/contract-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/media-contract-api.js +1 -1
- package/dist/message-tool-api.js +1 -1
- package/dist/runtime-api.js +7 -6
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-entry.js +2 -1
- package/dist/src/send-receipt-db.worker.js +35 -0
- package/node_modules/typebox/build/compile/validator.d.mts +1 -1
- package/node_modules/typebox/build/compile/validator.mjs +1 -1
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +7 -5
- package/node_modules/typebox/build/format/iri.mjs +5 -1
- package/node_modules/typebox/build/guard/emit.mjs +2 -4
- package/node_modules/typebox/build/guard/guard.mjs +6 -18
- package/node_modules/typebox/build/guard/string.mjs +16 -24
- package/node_modules/typebox/build/schema/build.mjs +2 -2
- package/node_modules/typebox/build/schema/check.mjs +1 -1
- package/node_modules/typebox/build/schema/compile.d.mts +3 -2
- package/node_modules/typebox/build/schema/compile.mjs +8 -8
- package/node_modules/typebox/build/schema/engine/_context.d.mts +6 -7
- package/node_modules/typebox/build/schema/engine/_context.mjs +23 -15
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +2 -2
- package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +5 -5
- package/node_modules/typebox/build/schema/engine/_refine.mjs +4 -7
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +34 -16
- package/node_modules/typebox/build/schema/engine/_stack.mjs +148 -104
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +8 -8
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +26 -18
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/allOf.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/boolean.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/const.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/const.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/contains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/contains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +3 -6
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +11 -7
- package/node_modules/typebox/build/schema/engine/enum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/enum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/format.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/format.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/if.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/if.mjs +7 -15
- package/node_modules/typebox/build/schema/engine/items.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/items.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maximum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minContains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +5 -5
- package/node_modules/typebox/build/schema/engine/minItems.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minLength.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minimum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/not.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/not.mjs +4 -8
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +6 -11
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -7
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/properties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/properties.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +4 -10
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +11 -7
- package/node_modules/typebox/build/schema/engine/ref.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/ref.mjs +19 -15
- package/node_modules/typebox/build/schema/engine/required.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/required.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/schema.d.mts +7 -7
- package/node_modules/typebox/build/schema/engine/schema.mjs +137 -133
- package/node_modules/typebox/build/schema/engine/type.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/type.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +5 -9
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +5 -9
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +2 -6
- package/node_modules/typebox/build/schema/errors.d.mts +2 -2
- package/node_modules/typebox/build/schema/errors.mjs +8 -14
- package/node_modules/typebox/build/schema/intern/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
- package/node_modules/typebox/build/schema/intern/intern.d.mts +11 -0
- package/node_modules/typebox/build/schema/intern/intern.mjs +293 -0
- package/node_modules/typebox/build/schema/meta/draft_2019_09.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_2019_09.mjs +288 -0
- package/node_modules/typebox/build/schema/meta/draft_2020_12.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_2020_12.mjs +300 -0
- package/node_modules/typebox/build/schema/meta/draft_3.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_3.mjs +143 -0
- package/node_modules/typebox/build/schema/meta/draft_4.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_4.mjs +149 -0
- package/node_modules/typebox/build/schema/meta/draft_6.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_6.mjs +155 -0
- package/node_modules/typebox/build/schema/meta/draft_7.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_7.mjs +172 -0
- package/node_modules/typebox/build/schema/meta/index.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/index.mjs +2 -0
- package/node_modules/typebox/build/schema/meta/meta.d.mts +9 -0
- package/node_modules/typebox/build/schema/meta/meta.mjs +15 -0
- package/node_modules/typebox/build/schema/meta/schema.d.mts +6 -0
- package/node_modules/typebox/build/schema/meta/schema.mjs +1 -0
- package/node_modules/typebox/build/schema/parse.d.mts +1 -0
- package/node_modules/typebox/build/schema/parse.mjs +10 -5
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +8 -3
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +268 -139
- package/node_modules/typebox/build/schema/schema.d.mts +2 -0
- package/node_modules/typebox/build/schema/schema.mjs +2 -0
- package/node_modules/typebox/build/value/errors/errors.d.mts +2 -12
- package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +59 -89
- package/node_modules/zod/README.md +27 -0
- package/node_modules/zod/compile.cjs +77 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +2 -2
- package/node_modules/zod/index.d.cts +1 -2
- package/node_modules/zod/index.d.ts +1 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/package.json +13 -2
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +5 -2
- package/node_modules/zod/src/v3/ZodError.ts +22 -12
- package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
- package/node_modules/zod/src/v3/tests/object.test.ts +3 -6
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/string.test.ts +6 -0
- package/node_modules/zod/src/v3/types.ts +5 -5
- package/node_modules/zod/src/v4/classic/checks.ts +1 -0
- package/node_modules/zod/src/v4/classic/compat.ts +26 -18
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +59 -44
- package/node_modules/zod/src/v4/classic/external.ts +12 -9
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +140 -78
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +2 -2
- package/node_modules/zod/src/v4/classic/iso.ts +2 -72
- package/node_modules/zod/src/v4/classic/parse.ts +10 -4
- package/node_modules/zod/src/v4/classic/schemas.ts +452 -262
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +135 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +30 -1
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +278 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +2 -1
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +720 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +30 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +32 -18
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +31 -7
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +155 -13
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +11 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +112 -2
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +274 -6
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +425 -10
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +2 -9
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +1 -2
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +21 -2
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +281 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +47 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +136 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +183 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +3 -10
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +12 -1
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +12 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +46 -9
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +245 -12
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +234 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +49 -16
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +51 -4
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +20 -2
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +186 -18
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +33 -2
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +127 -5
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +18 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +11 -2
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +1585 -173
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +45 -30
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +39 -2
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
- package/node_modules/zod/src/v4/core/api.ts +48 -12
- package/node_modules/zod/src/v4/core/checks.ts +57 -44
- package/node_modules/zod/src/v4/core/compile.ts +2188 -0
- package/node_modules/zod/src/v4/core/core.ts +98 -19
- package/node_modules/zod/src/v4/core/doc.ts +11 -7
- package/node_modules/zod/src/v4/core/errors.ts +115 -24
- package/node_modules/zod/src/v4/core/index.ts +3 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +6 -1
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +257 -93
- package/node_modules/zod/src/v4/core/json-schema.ts +2 -1
- package/node_modules/zod/src/v4/core/memoizer.ts +284 -0
- package/node_modules/zod/src/v4/core/parse.ts +131 -38
- package/node_modules/zod/src/v4/core/regexes.ts +30 -13
- package/node_modules/zod/src/v4/core/registries.ts +2 -2
- package/node_modules/zod/src/v4/core/schemas.ts +759 -461
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +969 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +1639 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +1 -2
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +3 -3
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +31 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +275 -42
- package/node_modules/zod/src/v4/core/util.ts +268 -42
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/index.ts +3 -3
- package/node_modules/zod/src/v4/locales/ar.ts +3 -0
- package/node_modules/zod/src/v4/locales/az.ts +3 -0
- package/node_modules/zod/src/v4/locales/be.ts +10 -0
- package/node_modules/zod/src/v4/locales/bg.ts +3 -0
- package/node_modules/zod/src/v4/locales/bn.ts +121 -0
- package/node_modules/zod/src/v4/locales/ca.ts +3 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +138 -0
- package/node_modules/zod/src/v4/locales/cs.ts +3 -0
- package/node_modules/zod/src/v4/locales/da.ts +5 -2
- package/node_modules/zod/src/v4/locales/de.ts +3 -0
- package/node_modules/zod/src/v4/locales/el.ts +1 -0
- package/node_modules/zod/src/v4/locales/en.ts +15 -4
- package/node_modules/zod/src/v4/locales/eo.ts +3 -0
- package/node_modules/zod/src/v4/locales/es.ts +2 -0
- package/node_modules/zod/src/v4/locales/fa.ts +3 -0
- package/node_modules/zod/src/v4/locales/fi.ts +3 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +3 -0
- package/node_modules/zod/src/v4/locales/fr.ts +19 -14
- package/node_modules/zod/src/v4/locales/gu.ts +121 -0
- package/node_modules/zod/src/v4/locales/he.ts +6 -1
- package/node_modules/zod/src/v4/locales/hi.ts +124 -0
- package/node_modules/zod/src/v4/locales/hr.ts +2 -0
- package/node_modules/zod/src/v4/locales/hu.ts +3 -0
- package/node_modules/zod/src/v4/locales/hy.ts +9 -0
- package/node_modules/zod/src/v4/locales/id.ts +3 -0
- package/node_modules/zod/src/v4/locales/index.ts +10 -0
- package/node_modules/zod/src/v4/locales/is.ts +3 -0
- package/node_modules/zod/src/v4/locales/it.ts +3 -0
- package/node_modules/zod/src/v4/locales/ja.ts +3 -0
- package/node_modules/zod/src/v4/locales/ka.ts +3 -0
- package/node_modules/zod/src/v4/locales/km.ts +3 -0
- package/node_modules/zod/src/v4/locales/kn.ts +124 -0
- package/node_modules/zod/src/v4/locales/ko.ts +3 -0
- package/node_modules/zod/src/v4/locales/lt.ts +2 -0
- package/node_modules/zod/src/v4/locales/mk.ts +3 -0
- package/node_modules/zod/src/v4/locales/ms.ts +3 -0
- package/node_modules/zod/src/v4/locales/ne.ts +126 -0
- package/node_modules/zod/src/v4/locales/nl.ts +3 -0
- package/node_modules/zod/src/v4/locales/nn.ts +119 -0
- package/node_modules/zod/src/v4/locales/no.ts +5 -2
- package/node_modules/zod/src/v4/locales/ota.ts +3 -0
- package/node_modules/zod/src/v4/locales/pl.ts +3 -0
- package/node_modules/zod/src/v4/locales/ps.ts +3 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +159 -0
- package/node_modules/zod/src/v4/locales/pt.ts +99 -58
- package/node_modules/zod/src/v4/locales/ro.ts +1 -0
- package/node_modules/zod/src/v4/locales/ru.ts +10 -0
- package/node_modules/zod/src/v4/locales/sk.ts +121 -0
- package/node_modules/zod/src/v4/locales/sl.ts +3 -0
- package/node_modules/zod/src/v4/locales/sv.ts +5 -2
- package/node_modules/zod/src/v4/locales/ta.ts +3 -0
- package/node_modules/zod/src/v4/locales/th.ts +3 -0
- package/node_modules/zod/src/v4/locales/tk.ts +111 -0
- package/node_modules/zod/src/v4/locales/tr.ts +3 -0
- package/node_modules/zod/src/v4/locales/uk.ts +3 -0
- package/node_modules/zod/src/v4/locales/ur.ts +3 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/locales/vi.ts +3 -0
- package/node_modules/zod/src/v4/locales/yo.ts +3 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +3 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +3 -0
- package/node_modules/zod/src/v4/mini/checks.ts +1 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +10 -1
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/parse.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +135 -56
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +33 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +62 -1
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +35 -1
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +23 -4
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +9 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +72 -5
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +65 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +21 -0
- package/node_modules/zod/v3/ZodError.cjs +22 -12
- package/node_modules/zod/v3/ZodError.d.cts +1 -1
- package/node_modules/zod/v3/ZodError.d.ts +1 -1
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/types.cjs +7 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +2 -1
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/compat.d.cts +9 -11
- package/node_modules/zod/v4/classic/compat.d.ts +9 -11
- package/node_modules/zod/v4/classic/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +43 -34
- package/node_modules/zod/v4/classic/errors.d.cts +3 -4
- package/node_modules/zod/v4/classic/errors.d.ts +3 -4
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +30 -27
- package/node_modules/zod/v4/classic/external.d.cts +5 -2
- package/node_modules/zod/v4/classic/external.d.ts +5 -2
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +136 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +136 -75
- package/node_modules/zod/v4/classic/in-out.cjs +63 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +2 -2
- package/node_modules/zod/v4/classic/index.d.cts +1 -2
- package/node_modules/zod/v4/classic/index.d.ts +1 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +11 -22
- package/node_modules/zod/v4/classic/iso.d.cts +2 -17
- package/node_modules/zod/v4/classic/iso.d.ts +2 -17
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +4 -1
- package/node_modules/zod/v4/classic/parse.d.cts +17 -4
- package/node_modules/zod/v4/classic/parse.d.ts +17 -4
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +498 -398
- package/node_modules/zod/v4/classic/schemas.d.cts +53 -18
- package/node_modules/zod/v4/classic/schemas.d.ts +53 -18
- package/node_modules/zod/v4/classic/schemas.js +492 -396
- package/node_modules/zod/v4/core/api.cjs +23 -4
- package/node_modules/zod/v4/core/api.d.cts +13 -9
- package/node_modules/zod/v4/core/api.d.ts +13 -9
- package/node_modules/zod/v4/core/api.js +21 -4
- package/node_modules/zod/v4/core/checks.cjs +37 -31
- package/node_modules/zod/v4/core/checks.d.cts +13 -13
- package/node_modules/zod/v4/core/checks.d.ts +13 -13
- package/node_modules/zod/v4/core/checks.js +37 -31
- package/node_modules/zod/v4/core/compile.cjs +1813 -0
- package/node_modules/zod/v4/core/compile.d.cts +51 -0
- package/node_modules/zod/v4/core/compile.d.ts +51 -0
- package/node_modules/zod/v4/core/compile.js +1783 -0
- package/node_modules/zod/v4/core/core.cjs +81 -18
- package/node_modules/zod/v4/core/core.d.cts +16 -4
- package/node_modules/zod/v4/core/core.d.ts +16 -4
- package/node_modules/zod/v4/core/core.js +82 -19
- package/node_modules/zod/v4/core/doc.cjs +5 -7
- package/node_modules/zod/v4/core/doc.d.cts +3 -1
- package/node_modules/zod/v4/core/doc.d.ts +3 -1
- package/node_modules/zod/v4/core/doc.js +5 -7
- package/node_modules/zod/v4/core/errors.cjs +110 -25
- package/node_modules/zod/v4/core/errors.d.cts +4 -0
- package/node_modules/zod/v4/core/errors.d.ts +4 -0
- package/node_modules/zod/v4/core/errors.js +110 -25
- package/node_modules/zod/v4/core/index.cjs +5 -1
- package/node_modules/zod/v4/core/index.d.cts +3 -0
- package/node_modules/zod/v4/core/index.d.ts +3 -0
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +4 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +2 -2
- package/node_modules/zod/v4/core/json-schema-generator.js +4 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +264 -95
- package/node_modules/zod/v4/core/json-schema-processors.js +243 -97
- package/node_modules/zod/v4/core/json-schema.d.cts +2 -1
- package/node_modules/zod/v4/core/json-schema.d.ts +2 -1
- package/node_modules/zod/v4/core/memoizer.cjs +272 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +265 -0
- package/node_modules/zod/v4/core/parse.cjs +96 -34
- package/node_modules/zod/v4/core/parse.d.cts +14 -11
- package/node_modules/zod/v4/core/parse.d.ts +14 -11
- package/node_modules/zod/v4/core/parse.js +94 -33
- package/node_modules/zod/v4/core/regexes.cjs +27 -15
- package/node_modules/zod/v4/core/regexes.d.cts +2 -0
- package/node_modules/zod/v4/core/regexes.d.ts +2 -0
- package/node_modules/zod/v4/core/regexes.js +24 -13
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +537 -326
- package/node_modules/zod/v4/core/schemas.d.cts +100 -31
- package/node_modules/zod/v4/core/schemas.d.ts +100 -31
- package/node_modules/zod/v4/core/schemas.js +526 -325
- package/node_modules/zod/v4/core/to-json-schema.cjs +242 -39
- package/node_modules/zod/v4/core/to-json-schema.d.cts +42 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +42 -3
- package/node_modules/zod/v4/core/to-json-schema.js +241 -39
- package/node_modules/zod/v4/core/util.cjs +212 -31
- package/node_modules/zod/v4/core/util.d.cts +58 -1
- package/node_modules/zod/v4/core/util.d.ts +58 -1
- package/node_modules/zod/v4/core/util.js +202 -30
- package/node_modules/zod/v4/core/versions.cjs +2 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +195 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +15 -5
- package/node_modules/zod/v4/index.d.cts +2 -2
- package/node_modules/zod/v4/index.d.ts +2 -2
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +3 -0
- package/node_modules/zod/v4/locales/ar.js +3 -0
- package/node_modules/zod/v4/locales/az.cjs +3 -0
- package/node_modules/zod/v4/locales/az.js +3 -0
- package/node_modules/zod/v4/locales/be.cjs +10 -0
- package/node_modules/zod/v4/locales/be.js +10 -0
- package/node_modules/zod/v4/locales/bg.cjs +3 -0
- package/node_modules/zod/v4/locales/bg.js +3 -0
- package/node_modules/zod/v4/locales/bn.cjs +138 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +111 -0
- package/node_modules/zod/v4/locales/ca.cjs +3 -0
- package/node_modules/zod/v4/locales/ca.js +3 -0
- package/node_modules/zod/v4/locales/ckb.cjs +158 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +131 -0
- package/node_modules/zod/v4/locales/cs.cjs +3 -0
- package/node_modules/zod/v4/locales/cs.js +3 -0
- package/node_modules/zod/v4/locales/da.cjs +5 -2
- package/node_modules/zod/v4/locales/da.js +5 -2
- package/node_modules/zod/v4/locales/de.cjs +3 -0
- package/node_modules/zod/v4/locales/de.js +3 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +14 -4
- package/node_modules/zod/v4/locales/en.js +14 -4
- package/node_modules/zod/v4/locales/eo.cjs +3 -0
- package/node_modules/zod/v4/locales/eo.js +3 -0
- package/node_modules/zod/v4/locales/es.cjs +2 -0
- package/node_modules/zod/v4/locales/es.js +2 -0
- package/node_modules/zod/v4/locales/fa.cjs +3 -0
- package/node_modules/zod/v4/locales/fa.js +3 -0
- package/node_modules/zod/v4/locales/fi.cjs +3 -0
- package/node_modules/zod/v4/locales/fi.js +3 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +3 -0
- package/node_modules/zod/v4/locales/fr-CA.js +3 -0
- package/node_modules/zod/v4/locales/fr.cjs +16 -14
- package/node_modules/zod/v4/locales/fr.js +16 -14
- package/node_modules/zod/v4/locales/gu.cjs +138 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +111 -0
- package/node_modules/zod/v4/locales/he.cjs +5 -0
- package/node_modules/zod/v4/locales/he.js +5 -0
- package/node_modules/zod/v4/locales/hi.cjs +136 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +109 -0
- package/node_modules/zod/v4/locales/hr.cjs +2 -0
- package/node_modules/zod/v4/locales/hr.js +2 -0
- package/node_modules/zod/v4/locales/hu.cjs +3 -0
- package/node_modules/zod/v4/locales/hu.js +3 -0
- package/node_modules/zod/v4/locales/hy.cjs +9 -0
- package/node_modules/zod/v4/locales/hy.js +9 -0
- package/node_modules/zod/v4/locales/id.cjs +3 -0
- package/node_modules/zod/v4/locales/id.js +3 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -2
- package/node_modules/zod/v4/locales/index.d.cts +10 -0
- package/node_modules/zod/v4/locales/index.d.ts +10 -0
- package/node_modules/zod/v4/locales/index.js +10 -0
- package/node_modules/zod/v4/locales/is.cjs +3 -0
- package/node_modules/zod/v4/locales/is.js +3 -0
- package/node_modules/zod/v4/locales/it.cjs +3 -0
- package/node_modules/zod/v4/locales/it.js +3 -0
- package/node_modules/zod/v4/locales/ja.cjs +3 -0
- package/node_modules/zod/v4/locales/ja.js +3 -0
- package/node_modules/zod/v4/locales/ka.cjs +3 -0
- package/node_modules/zod/v4/locales/ka.js +3 -0
- package/node_modules/zod/v4/locales/km.cjs +3 -0
- package/node_modules/zod/v4/locales/km.js +3 -0
- package/node_modules/zod/v4/locales/kn.cjs +141 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +114 -0
- package/node_modules/zod/v4/locales/ko.cjs +3 -0
- package/node_modules/zod/v4/locales/ko.js +3 -0
- package/node_modules/zod/v4/locales/lt.cjs +2 -0
- package/node_modules/zod/v4/locales/lt.js +2 -0
- package/node_modules/zod/v4/locales/mk.cjs +3 -0
- package/node_modules/zod/v4/locales/mk.js +3 -0
- package/node_modules/zod/v4/locales/ms.cjs +3 -0
- package/node_modules/zod/v4/locales/ms.js +3 -0
- package/node_modules/zod/v4/locales/ne.cjs +136 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +109 -0
- package/node_modules/zod/v4/locales/nl.cjs +3 -0
- package/node_modules/zod/v4/locales/nl.js +3 -0
- package/node_modules/zod/v4/locales/nn.cjs +138 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +111 -0
- package/node_modules/zod/v4/locales/no.cjs +5 -2
- package/node_modules/zod/v4/locales/no.js +5 -2
- package/node_modules/zod/v4/locales/ota.cjs +3 -0
- package/node_modules/zod/v4/locales/ota.js +3 -0
- package/node_modules/zod/v4/locales/pl.cjs +3 -0
- package/node_modules/zod/v4/locales/pl.js +3 -0
- package/node_modules/zod/v4/locales/ps.cjs +3 -0
- package/node_modules/zod/v4/locales/ps.js +3 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +168 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +141 -0
- package/node_modules/zod/v4/locales/pt.cjs +87 -55
- package/node_modules/zod/v4/locales/pt.js +87 -55
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +10 -0
- package/node_modules/zod/v4/locales/ru.js +10 -0
- package/node_modules/zod/v4/locales/sk.cjs +141 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +114 -0
- package/node_modules/zod/v4/locales/sl.cjs +3 -0
- package/node_modules/zod/v4/locales/sl.js +3 -0
- package/node_modules/zod/v4/locales/sv.cjs +5 -2
- package/node_modules/zod/v4/locales/sv.js +5 -2
- package/node_modules/zod/v4/locales/ta.cjs +3 -0
- package/node_modules/zod/v4/locales/ta.js +3 -0
- package/node_modules/zod/v4/locales/th.cjs +3 -0
- package/node_modules/zod/v4/locales/th.js +3 -0
- package/node_modules/zod/v4/locales/tk.cjs +132 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +105 -0
- package/node_modules/zod/v4/locales/tr.cjs +3 -0
- package/node_modules/zod/v4/locales/tr.js +3 -0
- package/node_modules/zod/v4/locales/uk.cjs +3 -0
- package/node_modules/zod/v4/locales/uk.js +3 -0
- package/node_modules/zod/v4/locales/ur.cjs +3 -0
- package/node_modules/zod/v4/locales/ur.js +3 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +3 -0
- package/node_modules/zod/v4/locales/vi.js +3 -0
- package/node_modules/zod/v4/locales/yo.cjs +3 -0
- package/node_modules/zod/v4/locales/yo.js +3 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +3 -0
- package/node_modules/zod/v4/locales/zh-CN.js +3 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +3 -0
- package/node_modules/zod/v4/locales/zh-TW.js +3 -0
- package/node_modules/zod/v4/mini/checks.cjs +2 -1
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +12 -1
- package/node_modules/zod/v4/mini/external.d.cts +5 -2
- package/node_modules/zod/v4/mini/external.d.ts +5 -2
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +63 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/parse.cjs +3 -1
- package/node_modules/zod/v4/mini/parse.d.cts +1 -1
- package/node_modules/zod/v4/mini/parse.d.ts +1 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +75 -47
- package/node_modules/zod/v4/mini/schemas.d.cts +43 -13
- package/node_modules/zod/v4/mini/schemas.d.ts +43 -13
- package/node_modules/zod/v4/mini/schemas.js +71 -45
- package/openclaw.plugin.json +15 -28
- package/package.json +12 -7
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/dist/{accounts-CCirBEIm.js → .setup/accounts-Dv0uksBG.mjs} +2 -2
- /package/dist/{config-schema-CCbTcJEV.js → .setup/config-schema-CCbTcJEV.mjs} +0 -0
- /package/dist/{conversation-bindings-GDQ_Laxj.js → .setup/conversation-bindings-GDQ_Laxj.mjs} +0 -0
- /package/dist/{outbound-send-deps-B-QEsLSM.js → .setup/outbound-send-deps-B-QEsLSM.mjs} +0 -0
- /package/dist/{reaction-context-Br-vAJFp.js → .setup/reaction-context-Br-vAJFp.mjs} +0 -0
- /package/dist/{rolldown-runtime-D7D4PA-g.js → .setup/rolldown-runtime-D7D4PA-g.mjs} +0 -0
- /package/dist/{runtime-Cza4CY5T.js → .setup/runtime-Cza4CY5T.mjs} +0 -0
- /package/dist/{state-contract-DvahEY4X.js → .setup/state-contract-DvahEY4X.mjs} +0 -0
package/dist/{approval-handler.runtime-B6JGnxQf.js → .setup/approval-handler.runtime-CkG235P7.mjs}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
1
|
+
import { c as parseIMessageTarget, u as normalizeIMessageMessagingTarget } from "./targets-Cc9vthzI.mjs";
|
|
2
|
+
import { o as resolveIMessageAccount } from "./accounts-Dv0uksBG.mjs";
|
|
3
|
+
import { n as getCachedIMessagePrivateApiStatus } from "./message-tool-api-DZSH-2gY.mjs";
|
|
4
|
+
import { i as extractMarkdownFormatRuns } from "./sanitize-outbound-o1ePXajW.mjs";
|
|
5
|
+
import { s as getIMessageApprovalApprovers } from "./group-policy-BoOAkmoQ.mjs";
|
|
6
|
+
import { a as unregisterIMessageApprovalReactionTarget, c as buildIMessageApprovalConversationKeyForTarget, i as registerIMessageApprovalReactionTarget } from "./approval-reactions-CX1-6KeG.mjs";
|
|
7
|
+
import { a as iMessageApprovalPollTargets, c as iMessageApprovalControlBindings, i as buildApprovalPollOptions, o as mapSentPollOptionsToDecisions, t as sendMessageIMessage } from "./send-DXiUWygv.mjs";
|
|
7
8
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
8
9
|
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
9
10
|
import { createActionGate } from "openclaw/plugin-sdk/channel-actions";
|
|
@@ -13,7 +14,7 @@ import { buildChannelApprovalExpiredText, buildChannelApprovalResolvedText, crea
|
|
|
13
14
|
import { setTimeout } from "node:timers/promises";
|
|
14
15
|
//#region extensions/imessage/src/approval-handler.runtime.ts
|
|
15
16
|
const log = createSubsystemLogger("imessage/approvals");
|
|
16
|
-
const loadIMessageActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-
|
|
17
|
+
const loadIMessageActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-B-qGAkYG.mjs"), "imessageActionsRuntime");
|
|
17
18
|
const DEFAULT_PROBE_TIMEOUT_MS = 5e3;
|
|
18
19
|
const APPROVAL_POLL_ORDERING_DELAY_MS = 1100;
|
|
19
20
|
function buildPendingPayload(params) {
|
|
@@ -128,7 +129,7 @@ async function deliverIMessageApprovalPoll(params) {
|
|
|
128
129
|
});
|
|
129
130
|
if (optionDecisions.length !== options.length) {
|
|
130
131
|
log.error("imessage approvals: imsg poll response did not return a complete option mapping");
|
|
131
|
-
iMessageApprovalPollTargets.registerTombstone({
|
|
132
|
+
await iMessageApprovalPollTargets.registerTombstone({
|
|
132
133
|
accountId: resolveIMessageAccount({
|
|
133
134
|
cfg: params.cfg,
|
|
134
135
|
accountId: params.target.accountId
|
|
@@ -144,7 +145,7 @@ async function deliverIMessageApprovalPoll(params) {
|
|
|
144
145
|
cfg: params.cfg,
|
|
145
146
|
accountId: params.target.accountId
|
|
146
147
|
}).accountId;
|
|
147
|
-
if (!iMessageApprovalPollTargets.register({
|
|
148
|
+
if (!await iMessageApprovalPollTargets.register({
|
|
148
149
|
accountId,
|
|
149
150
|
conversation: { chatGuid },
|
|
150
151
|
...pollGuid ? { pollGuid } : {},
|
|
@@ -153,7 +154,7 @@ async function deliverIMessageApprovalPoll(params) {
|
|
|
153
154
|
optionDecisions,
|
|
154
155
|
expiresAtMs: params.expiresAtMs
|
|
155
156
|
})) {
|
|
156
|
-
iMessageApprovalPollTargets.registerTombstone({
|
|
157
|
+
await iMessageApprovalPollTargets.registerTombstone({
|
|
157
158
|
accountId,
|
|
158
159
|
conversation: { chatGuid },
|
|
159
160
|
...pollGuid ? { pollGuid } : {},
|
|
@@ -218,20 +219,22 @@ async function recoverIMessageApprovalTextFallback(params) {
|
|
|
218
219
|
}
|
|
219
220
|
}
|
|
220
221
|
/** Clear both controls together; a stale binding would resolve a dead approval. */
|
|
221
|
-
function clearIMessageApprovalBindings(entry) {
|
|
222
|
+
async function clearIMessageApprovalBindings(entry) {
|
|
222
223
|
const accountId = entry.accountId?.trim();
|
|
223
224
|
if (!accountId) return;
|
|
224
|
-
|
|
225
|
+
const deletions = [];
|
|
226
|
+
for (const messageId of [entry.messageId, entry.hintMessageId]) if (messageId && (!entry.poll || entry.reactionFallbackVisible)) deletions.push(unregisterIMessageApprovalReactionTarget({
|
|
225
227
|
accountId,
|
|
226
228
|
conversation: entry.conversation,
|
|
227
229
|
messageId
|
|
228
|
-
});
|
|
229
|
-
if (entry.poll) iMessageApprovalPollTargets.unregister({
|
|
230
|
+
}));
|
|
231
|
+
if (entry.poll) deletions.push(iMessageApprovalPollTargets.unregister({
|
|
230
232
|
accountId,
|
|
231
233
|
conversation: entry.conversation,
|
|
232
234
|
pollGuid: entry.poll.pollGuid,
|
|
233
235
|
optionDecisions: entry.poll.optionDecisions
|
|
234
|
-
});
|
|
236
|
+
}));
|
|
237
|
+
await Promise.all(deletions);
|
|
235
238
|
}
|
|
236
239
|
function shouldThreadApprovalUpdate(to) {
|
|
237
240
|
try {
|
|
@@ -243,7 +246,7 @@ function shouldThreadApprovalUpdate(to) {
|
|
|
243
246
|
return true;
|
|
244
247
|
}
|
|
245
248
|
const eagerlyBoundApprovalEntries = /* @__PURE__ */ new WeakSet();
|
|
246
|
-
function bindIMessageApprovalEntry(params) {
|
|
249
|
+
async function bindIMessageApprovalEntry(params) {
|
|
247
250
|
const accountId = params.entry.accountId?.trim();
|
|
248
251
|
if (!accountId) {
|
|
249
252
|
log.error(`imessage approvals: refusing to bind reaction target for ${params.approvalId}; missing accountId in prepared entry`);
|
|
@@ -254,7 +257,7 @@ function bindIMessageApprovalEntry(params) {
|
|
|
254
257
|
log.error(`imessage approvals: refusing to bind reaction target for ${params.approvalId}; approval already expired at bind time`);
|
|
255
258
|
return null;
|
|
256
259
|
}
|
|
257
|
-
const
|
|
260
|
+
const reactionRegistrations = params.entry.poll && !params.entry.reactionFallbackVisible ? [] : [params.entry.messageId, params.entry.hintMessageId].filter((messageId) => Boolean(messageId)).map((messageId) => registerIMessageApprovalReactionTarget({
|
|
258
261
|
accountId,
|
|
259
262
|
conversation: params.entry.conversation,
|
|
260
263
|
messageId,
|
|
@@ -262,8 +265,8 @@ function bindIMessageApprovalEntry(params) {
|
|
|
262
265
|
approvalKind: params.approvalKind,
|
|
263
266
|
allowedDecisions: params.allowedDecisions,
|
|
264
267
|
ttlMs
|
|
265
|
-
}))
|
|
266
|
-
const
|
|
268
|
+
}));
|
|
269
|
+
const pollRegistration = params.entry.poll ? params.pollTargetWasRegisteredDuringDelivery || iMessageApprovalPollTargets.register({
|
|
267
270
|
accountId,
|
|
268
271
|
conversation: params.entry.conversation,
|
|
269
272
|
pollGuid: params.entry.poll.pollGuid,
|
|
@@ -272,7 +275,8 @@ function bindIMessageApprovalEntry(params) {
|
|
|
272
275
|
optionDecisions: params.entry.poll.optionDecisions,
|
|
273
276
|
expiresAtMs: params.expiresAtMs
|
|
274
277
|
}) : false;
|
|
275
|
-
|
|
278
|
+
const [reactionTargets, pollBound] = await Promise.all([Promise.all(reactionRegistrations), pollRegistration]);
|
|
279
|
+
return reactionTargets.some(Boolean) || pollBound ? true : null;
|
|
276
280
|
}
|
|
277
281
|
const imessageApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter({
|
|
278
282
|
eventKinds: [
|
|
@@ -391,7 +395,7 @@ const imessageApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter(
|
|
|
391
395
|
optionDecisions: poll.optionDecisions
|
|
392
396
|
} } : {}
|
|
393
397
|
};
|
|
394
|
-
if (bindIMessageApprovalEntry({
|
|
398
|
+
if (await bindIMessageApprovalEntry({
|
|
395
399
|
entry,
|
|
396
400
|
approvalId: view.approvalId,
|
|
397
401
|
approvalKind: view.approvalKind,
|
|
@@ -424,12 +428,8 @@ const imessageApprovalNativeRuntime = createChannelApprovalNativeRuntimeAdapter(
|
|
|
424
428
|
expiresAtMs: view.expiresAtMs
|
|
425
429
|
});
|
|
426
430
|
},
|
|
427
|
-
unbindPending: ({ entry }) =>
|
|
428
|
-
|
|
429
|
-
},
|
|
430
|
-
cancelDelivered: ({ entry }) => {
|
|
431
|
-
clearIMessageApprovalBindings(entry);
|
|
432
|
-
}
|
|
431
|
+
unbindPending: ({ entry }) => clearIMessageApprovalBindings(entry),
|
|
432
|
+
cancelDelivered: ({ entry }) => clearIMessageApprovalBindings(entry)
|
|
433
433
|
},
|
|
434
434
|
observe: { onDeliveryError: ({ error, request }) => {
|
|
435
435
|
log.error(`imessage approvals: failed to send request ${request.id}: ${String(error)}`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as getOptionalIMessageRuntime } from "./runtime-Cza4CY5T.
|
|
5
|
-
import { n as normalizeIMessageGuid, t as resolveIMessageReactionContext } from "./reaction-context-Br-vAJFp.
|
|
6
|
-
import { createLazyRuntimeSurface } from "openclaw/plugin-sdk/lazy-runtime";
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
+
import { c as parseIMessageTarget, o as normalizeIMessageHandle } from "./targets-Cc9vthzI.mjs";
|
|
3
|
+
import { c as imessageApprovalAuth, s as getIMessageApprovalApprovers } from "./group-policy-BoOAkmoQ.mjs";
|
|
4
|
+
import { n as getOptionalIMessageRuntime } from "./runtime-Cza4CY5T.mjs";
|
|
5
|
+
import { n as normalizeIMessageGuid, t as resolveIMessageReactionContext } from "./reaction-context-Br-vAJFp.mjs";
|
|
7
6
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
|
+
import { createLazyRuntimeSurface } from "openclaw/plugin-sdk/lazy-runtime";
|
|
8
8
|
import { asDateTimestampMs, isFutureDateTimestampMs, resolveExpiresAtMsFromDurationMs } from "openclaw/plugin-sdk/number-runtime";
|
|
9
9
|
import { addApprovalReactionHintToText, approvalReactionDecisionSetsMatch, buildApprovalReactionDeliveredBindingMarker, buildApprovalReactionHint, createApprovalReactionTargetStore, listApprovalReactionBindings, normalizeApprovalReactionDecision, readApprovalReactionDecisionList, readApprovalReactionDeliveredBinding, readApprovalReactionPresentationBinding, readApprovalReactionTargetRecord, resolveTypedApprovalReactionTarget, settleApprovalReaction } from "openclaw/plugin-sdk/approval-reaction-runtime";
|
|
10
10
|
import { createPluginStateErrorReporter } from "openclaw/plugin-sdk/plugin-state-runtime";
|
|
@@ -72,7 +72,7 @@ const pendingReactionPollTargets = /* @__PURE__ */ new Map();
|
|
|
72
72
|
function prunePendingReactionPollTargets(nowMs = Date.now()) {
|
|
73
73
|
for (const [key, target] of pendingReactionPollTargets.entries()) if (!isFutureDateTimestampMs(target.expiresAtMs, { nowMs })) pendingReactionPollTargets.delete(key);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function resolveIMessageApprovalReactionPollExpiry(ttlMs) {
|
|
76
76
|
const nowMs = asDateTimestampMs(Date.now());
|
|
77
77
|
if (nowMs === void 0) return;
|
|
78
78
|
const expiresAtMs = resolveExpiresAtMsFromDurationMs(ttlMs ?? DEFAULT_REACTION_TARGET_TTL_MS$1, { nowMs }) ?? resolveExpiresAtMsFromDurationMs(DEFAULT_REACTION_TARGET_TTL_MS$1, { nowMs });
|
|
@@ -139,9 +139,8 @@ function readPersistedPollTarget(value) {
|
|
|
139
139
|
expiresAtMs
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function recordIMessageApprovalReactionPollTarget(params) {
|
|
143
|
-
const expiry =
|
|
144
|
-
if (!expiry || params.keys.length === 0) return null;
|
|
142
|
+
async function recordIMessageApprovalReactionPollTarget(params) {
|
|
143
|
+
const { expiry } = params;
|
|
145
144
|
const target = {
|
|
146
145
|
accountId: params.accountId,
|
|
147
146
|
conversation: params.conversation,
|
|
@@ -152,19 +151,22 @@ function recordIMessageApprovalReactionPollTarget(params) {
|
|
|
152
151
|
expiresAtMs: expiry.expiresAtMs
|
|
153
152
|
};
|
|
154
153
|
const store = getPendingReactionPollTargetStore();
|
|
154
|
+
const writes = [];
|
|
155
155
|
for (const key of params.keys) {
|
|
156
156
|
pendingReactionPollTargets.set(key, target);
|
|
157
|
-
store
|
|
157
|
+
if (store) writes.push(store.register(key, target, { ttlMs: expiry.ttlMs }).catch(disablePendingReactionPollTargetStore));
|
|
158
158
|
}
|
|
159
159
|
prunePendingReactionPollTargets();
|
|
160
|
-
|
|
160
|
+
await Promise.all(writes);
|
|
161
161
|
}
|
|
162
|
-
function deleteIMessageApprovalReactionPollTargets(keys) {
|
|
162
|
+
async function deleteIMessageApprovalReactionPollTargets(keys) {
|
|
163
163
|
const store = getPendingReactionPollTargetStore();
|
|
164
|
+
const deletions = [];
|
|
164
165
|
for (const key of keys) {
|
|
165
166
|
pendingReactionPollTargets.delete(key);
|
|
166
|
-
store
|
|
167
|
+
if (store) deletions.push(store.delete(key).catch(disablePendingReactionPollTargetStore));
|
|
167
168
|
}
|
|
169
|
+
await Promise.all(deletions);
|
|
168
170
|
}
|
|
169
171
|
async function listPendingIMessageApprovalReactionPollTargets(params) {
|
|
170
172
|
const accountId = params.accountId.trim();
|
|
@@ -298,7 +300,7 @@ function addIMessageApprovalReactionHintToStructuredPayload(params) {
|
|
|
298
300
|
};
|
|
299
301
|
}
|
|
300
302
|
const APPROVE_COMMAND_LINE_RE = /\/approve(?:@[^\s]+)?\s+([A-Za-z0-9][A-Za-z0-9._:-]*)\s+(.+)$/i;
|
|
301
|
-
function registerIMessageApprovalReactionTarget(params) {
|
|
303
|
+
async function registerIMessageApprovalReactionTarget(params) {
|
|
302
304
|
const accountId = params.accountId.trim();
|
|
303
305
|
const messageId = params.messageId.trim();
|
|
304
306
|
const approvalId = params.approvalId.trim();
|
|
@@ -315,7 +317,9 @@ function registerIMessageApprovalReactionTarget(params) {
|
|
|
315
317
|
messageId
|
|
316
318
|
});
|
|
317
319
|
if (keys.length === 0) return null;
|
|
318
|
-
const expiry =
|
|
320
|
+
const expiry = resolveIMessageApprovalReactionPollExpiry(params.ttlMs);
|
|
321
|
+
if (!expiry) return null;
|
|
322
|
+
await Promise.all([recordIMessageApprovalReactionPollTarget({
|
|
319
323
|
keys,
|
|
320
324
|
accountId,
|
|
321
325
|
conversation: params.conversation,
|
|
@@ -323,10 +327,8 @@ function registerIMessageApprovalReactionTarget(params) {
|
|
|
323
327
|
approvalId,
|
|
324
328
|
approvalKind: params.approvalKind,
|
|
325
329
|
allowedDecisions,
|
|
326
|
-
|
|
327
|
-
});
|
|
328
|
-
if (!expiry) return null;
|
|
329
|
-
for (const key of keys) imessageApprovalReactionTargets.register(key, target, { ttlMs: expiry.ttlMs });
|
|
330
|
+
expiry
|
|
331
|
+
}), ...keys.map((key) => imessageApprovalReactionTargets.register(key, target, { ttlMs: expiry.ttlMs }))]);
|
|
330
332
|
return target;
|
|
331
333
|
}
|
|
332
334
|
function listDeliveredIMessageApprovalGuids(params) {
|
|
@@ -350,7 +352,7 @@ function listDeliveredIMessageApprovalGuids(params) {
|
|
|
350
352
|
return deliveries.map((delivery) => delivery.guid);
|
|
351
353
|
}
|
|
352
354
|
/** Bind a typed forwarded approval after iMessage returns the stable tapback GUID. */
|
|
353
|
-
function registerIMessageApprovalReactionTargetForDeliveredPayload(params) {
|
|
355
|
+
async function registerIMessageApprovalReactionTargetForDeliveredPayload(params) {
|
|
354
356
|
if (params.target.channel.trim().toLowerCase() !== "imessage") return false;
|
|
355
357
|
const binding = readApprovalReactionDeliveredBinding({
|
|
356
358
|
payload: params.payload,
|
|
@@ -361,11 +363,10 @@ function registerIMessageApprovalReactionTargetForDeliveredPayload(params) {
|
|
|
361
363
|
if (!binding) return false;
|
|
362
364
|
const conversation = buildIMessageApprovalConversationKeyForTarget(params.target.to);
|
|
363
365
|
if (!conversation) return false;
|
|
364
|
-
|
|
365
|
-
for (const messageId of listDeliveredIMessageApprovalGuids({
|
|
366
|
+
const registrations = listDeliveredIMessageApprovalGuids({
|
|
366
367
|
binding,
|
|
367
368
|
results: params.results
|
|
368
|
-
}))
|
|
369
|
+
}).map((messageId) => registerIMessageApprovalReactionTarget({
|
|
369
370
|
accountId: params.accountId,
|
|
370
371
|
conversation,
|
|
371
372
|
messageId,
|
|
@@ -373,13 +374,12 @@ function registerIMessageApprovalReactionTargetForDeliveredPayload(params) {
|
|
|
373
374
|
approvalKind: binding.approvalKind,
|
|
374
375
|
allowedDecisions: binding.allowedDecisions,
|
|
375
376
|
ttlMs: params.ttlMs
|
|
376
|
-
}))
|
|
377
|
-
return
|
|
377
|
+
}));
|
|
378
|
+
return (await Promise.all(registrations)).some(Boolean);
|
|
378
379
|
}
|
|
379
|
-
function unregisterIMessageApprovalReactionTarget(params) {
|
|
380
|
+
async function unregisterIMessageApprovalReactionTarget(params) {
|
|
380
381
|
const keys = enumerateApprovalTargetKeys(params);
|
|
381
|
-
|
|
382
|
-
deleteIMessageApprovalReactionPollTargets(keys);
|
|
382
|
+
await Promise.all([...keys.map((key) => imessageApprovalReactionTargets.delete(key)), deleteIMessageApprovalReactionPollTargets(keys)]);
|
|
383
383
|
}
|
|
384
384
|
function resolveTarget(params) {
|
|
385
385
|
const target = resolveTypedApprovalReactionTarget(params);
|
|
@@ -477,12 +477,12 @@ async function handleIMessageApprovalReaction(params) {
|
|
|
477
477
|
}),
|
|
478
478
|
authorizeActorAction: (input) => imessageApprovalAuth.authorizeActorAction(input),
|
|
479
479
|
loadResolver: loadResolveApprovalOverGateway,
|
|
480
|
-
clearTarget: () => {
|
|
481
|
-
|
|
480
|
+
clearTarget: async () => {
|
|
481
|
+
await Promise.all(event.messageIdCandidates.map((candidate) => unregisterIMessageApprovalReactionTarget({
|
|
482
482
|
accountId: params.accountId,
|
|
483
483
|
conversation: event.conversation,
|
|
484
484
|
messageId: candidate
|
|
485
|
-
});
|
|
485
|
+
})));
|
|
486
486
|
},
|
|
487
487
|
onResolved: (result) => {
|
|
488
488
|
const outcome = result.applied ? "resolved" : "already resolved";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as createIMessageConversationBindingManager } from "./conversation-bindings-GDQ_Laxj.
|
|
6
|
-
import { t as IMessageChannelConfigSchema } from "./config-schema-CCbTcJEV.
|
|
7
|
-
import { n as resolveIMessageAttachmentRoots, r as resolveIMessageRemoteAttachmentRoots } from "./media-contract-
|
|
1
|
+
import { a as looksLikeIMessageExplicitTargetId, c as parseIMessageTarget, d as isIMessagePhoneLikeHandle, n as inferIMessageTargetChatType, o as normalizeIMessageHandle, u as normalizeIMessageMessagingTarget } from "./targets-Cc9vthzI.mjs";
|
|
2
|
+
import { a as resolveDefaultIMessageAccountId, i as listIMessageAccountIds, o as resolveIMessageAccount, t as collectIMessageDuplicateAccountSourceWarnings } from "./accounts-Dv0uksBG.mjs";
|
|
3
|
+
import { b as resolveIMessageDirectChatService, n as sanitizeIMessageFinalOutboundText, r as sanitizeOutboundText } from "./sanitize-outbound-o1ePXajW.mjs";
|
|
4
|
+
import { _ as imessageSetupContract, a as normalizeIMessageAcpConversationId, c as imessageApprovalAuth, i as matchIMessageAcpConversation, l as imessageMessageActions, m as createIMessageSetupWizardProxy, n as resolveIMessageGroupToolPolicy, o as resolveIMessageConversationIdFromTarget, s as getIMessageApprovalApprovers, t as resolveIMessageGroupRequireMention } from "./group-policy-BoOAkmoQ.mjs";
|
|
5
|
+
import { t as createIMessageConversationBindingManager } from "./conversation-bindings-GDQ_Laxj.mjs";
|
|
6
|
+
import { t as IMessageChannelConfigSchema } from "./config-schema-CCbTcJEV.mjs";
|
|
7
|
+
import { n as resolveIMessageAttachmentRoots, r as resolveIMessageRemoteAttachmentRoots } from "./media-contract-BpPh5Oh1.mjs";
|
|
8
|
+
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
9
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
9
10
|
import { buildDmGroupAccountAllowlistAdapter } from "openclaw/plugin-sdk/allowlist-config-edit";
|
|
10
11
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter, formatTrimmedAllowFromEntries } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
@@ -18,7 +19,6 @@ import { chunkMarkdownText } from "openclaw/plugin-sdk/reply-runtime";
|
|
|
18
19
|
import { buildOutboundBaseSessionKey, normalizeAccountId, parseAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
|
19
20
|
import { collectStatusIssuesFromLastError, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
20
21
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
21
|
-
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
22
22
|
import { createApproverRestrictedNativeApprovalCapabilityFromForwardingRoutes } from "openclaw/plugin-sdk/approval-delivery-runtime";
|
|
23
23
|
import { createLazyChannelApprovalNativeRuntimeAdapter } from "openclaw/plugin-sdk/approval-handler-adapter-runtime";
|
|
24
24
|
import { shouldSuppressLocalNativeExecApprovalPrompt } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
@@ -75,6 +75,7 @@ const imessageApproval = createApproverRestrictedNativeApprovalCapabilityFromFor
|
|
|
75
75
|
}) }
|
|
76
76
|
},
|
|
77
77
|
createNativeRuntime: (routing) => createLazyChannelApprovalNativeRuntimeAdapter({
|
|
78
|
+
capabilityBoundary: true,
|
|
78
79
|
eventKinds: [
|
|
79
80
|
"exec",
|
|
80
81
|
"plugin",
|
|
@@ -91,7 +92,7 @@ const imessageApproval = createApproverRestrictedNativeApprovalCapabilityFromFor
|
|
|
91
92
|
approvalKind,
|
|
92
93
|
request
|
|
93
94
|
}),
|
|
94
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
95
|
+
load: async () => (await import("./approval-handler.runtime-CkG235P7.mjs")).imessageApprovalNativeRuntime
|
|
95
96
|
})
|
|
96
97
|
});
|
|
97
98
|
const imessageApprovalRouting = imessageApproval.routing;
|
|
@@ -206,7 +207,7 @@ const imessageDoctor = {
|
|
|
206
207
|
//#region extensions/imessage/src/shared.ts
|
|
207
208
|
const IMESSAGE_CHANNEL = "imessage";
|
|
208
209
|
async function loadIMessageChannelRuntime$1() {
|
|
209
|
-
return await import("./channel.runtime-
|
|
210
|
+
return await import("./channel.runtime-Kw4iCQax.mjs");
|
|
210
211
|
}
|
|
211
212
|
const imessageSetupWizard = createIMessageSetupWizardProxy(async () => (await loadIMessageChannelRuntime$1()).imessageSetupWizard);
|
|
212
213
|
const imessageConfigAdapter = createScopedChannelConfigAdapter({
|
|
@@ -308,7 +309,7 @@ async function probeIMessageStatusAccount(params) {
|
|
|
308
309
|
}
|
|
309
310
|
//#endregion
|
|
310
311
|
//#region extensions/imessage/src/channel.ts
|
|
311
|
-
const loadIMessageChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
312
|
+
const loadIMessageChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-Kw4iCQax.mjs"));
|
|
312
313
|
function toIMessageMessageSendResult(result, kind, replyToId) {
|
|
313
314
|
const receipt = result.receipt ?? createMessageReceiptFromOutboundResults({
|
|
314
315
|
results: result.messageId ? [{
|
|
@@ -324,8 +325,8 @@ function toIMessageMessageSendResult(result, kind, replyToId) {
|
|
|
324
325
|
...result.meta && Object.keys(result.meta).length > 0 ? { meta: result.meta } : {}
|
|
325
326
|
};
|
|
326
327
|
}
|
|
327
|
-
const loadIMessageApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-
|
|
328
|
-
const loadIMessageQuestionReactionsModule = createLazyRuntimeModule(() => import("./question-reactions-
|
|
328
|
+
const loadIMessageApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-CX1-6KeG.mjs").then((n) => n.t));
|
|
329
|
+
const loadIMessageQuestionReactionsModule = createLazyRuntimeModule(() => import("./question-reactions-lm8OxWbb.mjs").then((n) => n.r));
|
|
329
330
|
async function prepareForwardedIMessageApprovalPayload(params) {
|
|
330
331
|
const prepared = (await loadIMessageApprovalReactionsModule()).addIMessageApprovalReactionHintToStructuredPayload(params);
|
|
331
332
|
if (prepared) Object.assign(params.payload, prepared);
|
|
@@ -341,7 +342,7 @@ async function registerDeliveredIMessageApprovalPayload(params) {
|
|
|
341
342
|
payload: params.payload,
|
|
342
343
|
results: params.results
|
|
343
344
|
});
|
|
344
|
-
(await loadIMessageApprovalReactionsModule()).registerIMessageApprovalReactionTargetForDeliveredPayload({
|
|
345
|
+
await (await loadIMessageApprovalReactionsModule()).registerIMessageApprovalReactionTargetForDeliveredPayload({
|
|
345
346
|
accountId,
|
|
346
347
|
target: params.target,
|
|
347
348
|
payload: params.payload,
|
|
@@ -365,6 +366,8 @@ const imessageMessageAdapter = defineChannelMessageAdapter({
|
|
|
365
366
|
accountId: ctx.accountId ?? void 0,
|
|
366
367
|
deps: ctx.deps,
|
|
367
368
|
replyToId: ctx.replyToId ?? void 0,
|
|
369
|
+
assertDirectAdapterHandoff: ctx.assertDirectAdapterHandoff,
|
|
370
|
+
onPlatformSendDispatch: ctx.onPlatformSendDispatch,
|
|
368
371
|
conversationReadOrigin: ctx.conversationReadOrigin
|
|
369
372
|
}), "text", ctx.replyToId);
|
|
370
373
|
},
|
|
@@ -381,6 +384,8 @@ const imessageMessageAdapter = defineChannelMessageAdapter({
|
|
|
381
384
|
accountId: ctx.accountId ?? void 0,
|
|
382
385
|
deps: ctx.deps,
|
|
383
386
|
replyToId: ctx.replyToId ?? void 0,
|
|
387
|
+
assertDirectAdapterHandoff: ctx.assertDirectAdapterHandoff,
|
|
388
|
+
onPlatformSendDispatch: ctx.onPlatformSendDispatch,
|
|
384
389
|
conversationReadOrigin: ctx.conversationReadOrigin,
|
|
385
390
|
...ctx.onDeliveryResult ? { onDeliveryResult: async (acceptedResult) => {
|
|
386
391
|
await ctx.onDeliveryResult?.(toIMessageMessageSendResult(acceptedResult, ctx.audioAsVoice ? "voice" : "media", ctx.replyToId));
|
|
@@ -506,9 +511,12 @@ const imessagePlugin = createChatChannelPlugin({
|
|
|
506
511
|
if (!to) return null;
|
|
507
512
|
const chatType = inferIMessageTargetChatType(to);
|
|
508
513
|
if (!chatType) return null;
|
|
514
|
+
const parsed = parseIMessageTarget(to);
|
|
515
|
+
const display = parsed.kind === "handle" && !isCanonicalIMessageDirectHandle(parsed.to, normalizeIMessageHandle(parsed.to)) ? parsed.to.trim() : void 0;
|
|
509
516
|
return {
|
|
510
517
|
to,
|
|
511
518
|
kind: chatType === "direct" ? "user" : "group",
|
|
519
|
+
...display ? { display } : {},
|
|
512
520
|
source: "normalized"
|
|
513
521
|
};
|
|
514
522
|
}
|
|
@@ -602,15 +610,17 @@ const imessagePlugin = createChatChannelPlugin({
|
|
|
602
610
|
},
|
|
603
611
|
attachedResults: {
|
|
604
612
|
channel: "imessage",
|
|
605
|
-
sendText: async ({ cfg, to, text, accountId, deps, replyToId }) => await (await loadIMessageChannelRuntime()).sendIMessageOutbound({
|
|
613
|
+
sendText: async ({ cfg, to, text, accountId, deps, replyToId, assertDirectAdapterHandoff, onPlatformSendDispatch }) => await (await loadIMessageChannelRuntime()).sendIMessageOutbound({
|
|
606
614
|
cfg,
|
|
607
615
|
to,
|
|
608
616
|
text,
|
|
609
617
|
accountId: accountId ?? void 0,
|
|
610
618
|
deps,
|
|
611
|
-
replyToId: replyToId ?? void 0
|
|
619
|
+
replyToId: replyToId ?? void 0,
|
|
620
|
+
assertDirectAdapterHandoff,
|
|
621
|
+
onPlatformSendDispatch
|
|
612
622
|
}),
|
|
613
|
-
sendMedia: async ({ cfg, to, text, mediaUrl, mediaAccess, mediaLocalRoots, mediaReadFile, audioAsVoice, accountId, deps, replyToId, onDeliveryResult }) => await (await loadIMessageChannelRuntime()).sendIMessageOutbound({
|
|
623
|
+
sendMedia: async ({ cfg, to, text, mediaUrl, mediaAccess, mediaLocalRoots, mediaReadFile, audioAsVoice, accountId, deps, replyToId, onDeliveryResult, assertDirectAdapterHandoff, onPlatformSendDispatch }) => await (await loadIMessageChannelRuntime()).sendIMessageOutbound({
|
|
614
624
|
cfg,
|
|
615
625
|
to,
|
|
616
626
|
text,
|
|
@@ -622,6 +632,8 @@ const imessagePlugin = createChatChannelPlugin({
|
|
|
622
632
|
accountId: accountId ?? void 0,
|
|
623
633
|
deps,
|
|
624
634
|
replyToId: replyToId ?? void 0,
|
|
635
|
+
assertDirectAdapterHandoff,
|
|
636
|
+
onPlatformSendDispatch,
|
|
625
637
|
...onDeliveryResult ? { onDeliveryResult: async (result) => {
|
|
626
638
|
await onDeliveryResult({
|
|
627
639
|
channel: "imessage",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as resolveIMessageRemoteHost, o as resolveIMessageAccount, r as listEnabledIMessageAccounts, s as resolveIMessageDuplicateSourceOwner } from "./accounts-
|
|
2
|
-
import {
|
|
3
|
-
import { t as IMESSAGE_LEGACY_OUTBOUND_SEND_DEP_KEYS } from "./outbound-send-deps-B-QEsLSM.
|
|
4
|
-
import { t as sendMessageIMessage } from "./send-
|
|
5
|
-
import { t as monitorIMessageProvider } from "./monitor-
|
|
1
|
+
import { l as resolveIMessageRemoteHost, o as resolveIMessageAccount, r as listEnabledIMessageAccounts, s as resolveIMessageDuplicateSourceOwner } from "./accounts-Dv0uksBG.mjs";
|
|
2
|
+
import { b as normalizeIMessageCliPathForSetup, f as IMESSAGE_INSTALL_COMMAND, g as imessageDmPolicy, h as imessageCompletionNote, p as createIMessageCliPathTextInput, u as probeIMessage, v as imessageSetupStatusBase, y as isAutoManagedIMessageCliPath } from "./group-policy-BoOAkmoQ.mjs";
|
|
3
|
+
import { t as IMESSAGE_LEGACY_OUTBOUND_SEND_DEP_KEYS } from "./outbound-send-deps-B-QEsLSM.mjs";
|
|
4
|
+
import { t as sendMessageIMessage } from "./send-DXiUWygv.mjs";
|
|
5
|
+
import { t as monitorIMessageProvider } from "./monitor-CSeWJ3Qh.mjs";
|
|
6
6
|
import { createAccountStatusSink, resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/account-helpers";
|
|
@@ -213,6 +213,8 @@ async function sendIMessageOutbound(params) {
|
|
|
213
213
|
accountId: params.accountId ?? void 0,
|
|
214
214
|
replyToId: params.replyToId ?? void 0,
|
|
215
215
|
conversationReadOrigin: params.conversationReadOrigin,
|
|
216
|
+
assertDirectAdapterHandoff: params.assertDirectAdapterHandoff,
|
|
217
|
+
onPlatformSendDispatch: params.onPlatformSendDispatch,
|
|
216
218
|
...params.onDeliveryResult ? { onDeliveryResult: params.onDeliveryResult } : {}
|
|
217
219
|
});
|
|
218
220
|
const meta = {
|