@openclaw/imessage 2026.9.5 → 2026.9.7
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/icon.png +0 -0
- package/dist/.setup/{accounts-Dv0uksBG.mjs → accounts-nzcU0cq2.mjs} +4 -7
- package/dist/.setup/{actions.runtime-B-qGAkYG.mjs → actions.runtime-DdBN29zj.mjs} +3 -5
- package/dist/.setup/{api-_NoJAo2x.mjs → api-B9Qx21G-.mjs} +6 -5
- package/dist/.setup/{api-DcUWvBmD.mjs → api-D2S6FhGw.mjs} +7 -7
- package/dist/.setup/{approval-handler.runtime-CkG235P7.mjs → approval-handler.runtime-DKSq0DWq.mjs} +9 -9
- package/dist/.setup/{approval-reactions-CX1-6KeG.mjs → approval-reactions-Bp33xc83.mjs} +5 -5
- package/dist/.setup/{channel-CCbYCQiN.mjs → channel-9fyvuN_p.mjs} +110 -152
- package/dist/.setup/channel.runtime-n-MPKL8k.mjs +92 -0
- package/dist/.setup/{config-schema-CCbTcJEV.mjs → config-schema-4Q3_EqYt.mjs} +9 -1
- package/dist/.setup/{group-policy-BoOAkmoQ.mjs → group-policy-90pw4tyG.mjs} +65 -335
- package/dist/.setup/{media-contract-BpPh5Oh1.mjs → media-contract-CagwSMvo.mjs} +1 -1
- package/dist/.setup/{message-tool-api-DZSH-2gY.mjs → message-tool-api-D032l82H.mjs} +3 -18
- package/dist/.setup/{monitor-CSeWJ3Qh.mjs → monitor-fv9nRuTH.mjs} +235 -344
- package/dist/.setup/{question-reactions-lm8OxWbb.mjs → question-reactions-Cy-dmU_j.mjs} +1 -1
- package/dist/.setup/{remote-file-4RbwiXYh.mjs → remote-file-DRPCaVmg.mjs} +70 -21
- package/dist/.setup/rolldown-runtime-BBjsoOtd.mjs +27 -0
- package/dist/.setup/{sanitize-outbound-o1ePXajW.mjs → sanitize-outbound-3MLljgtY.mjs} +86 -24
- package/dist/.setup/{send-DXiUWygv.mjs → send-Cu9nl757.mjs} +29 -94
- package/dist/.setup/setup-core-8MDdYHj5.mjs +226 -0
- package/dist/.setup/{channel.runtime-Kw4iCQax.mjs → setup-surface-tGXFDdWh.mjs} +6 -103
- package/dist/.setup/state-migrations-B-Q7bO0Y.mjs +47 -0
- package/dist/.setup/{targets-Cc9vthzI.mjs → targets-BicBiYsM.mjs} +10 -16
- package/dist/api.js +7 -7
- 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 +168 -7
- package/dist/media-contract-api.js +1 -1
- package/dist/message-tool-api.js +1 -1
- package/dist/runtime-api.js +6 -6
- package/dist/setup-entry.js +1 -1
- package/dist/src/{send-receipt-db.worker.js → chat-db.worker.js} +12 -2
- package/node_modules/typebox/build/compile/code.mjs +1 -2
- package/node_modules/typebox/build/compile/validator.mjs +5 -1
- package/node_modules/typebox/build/format/iri.mjs +16 -9
- package/node_modules/typebox/build/guard/emit.mjs +2 -2
- package/node_modules/typebox/build/guard/guard.d.mts +7 -5
- package/node_modules/typebox/build/guard/guard.mjs +14 -9
- package/node_modules/typebox/build/guard/index.mjs +6 -0
- package/node_modules/typebox/build/guard/unicode/unicode.d.mts +6 -0
- package/node_modules/typebox/build/guard/unicode/unicode.mjs +35 -0
- package/node_modules/typebox/build/guard/{string.mjs → unicode/unicode_segment.mjs} +16 -19
- package/node_modules/typebox/build/schema/build.mjs +2 -3
- package/node_modules/typebox/build/schema/engine/_pathing.d.mts +1 -0
- package/node_modules/typebox/build/schema/engine/_pathing.mjs +11 -0
- package/node_modules/typebox/build/schema/engine/_refine.mjs +13 -5
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/format.mjs +9 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/properties.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/ref.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/ref.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/schema.mjs +24 -24
- package/node_modules/typebox/build/schema/parse.mjs +3 -0
- package/node_modules/typebox/build/schema/pointer/pointer.d.mts +1 -6
- package/node_modules/typebox/build/schema/pointer/pointer.mjs +47 -64
- package/node_modules/typebox/build/system/settings/internal.d.mts +2 -0
- package/node_modules/typebox/build/system/settings/internal.mjs +20 -0
- package/node_modules/typebox/build/system/settings/settings.d.mts +11 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +14 -0
- package/node_modules/typebox/build/type/extends/inference.d.mts +1 -1
- package/node_modules/typebox/build/type/extends/inference.mjs +15 -2
- package/node_modules/typebox/build/type/extends/tuple.d.mts +2 -1
- package/node_modules/typebox/build/type/extends/tuple.mjs +21 -1
- package/node_modules/typebox/build/value/parse/parse.mjs +10 -4
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +3 -1
- package/node_modules/zod/README.md +2 -2
- package/node_modules/zod/compile.cjs +19 -0
- package/node_modules/zod/index.cjs +19 -0
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +8 -7
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v4/classic/external.ts +2 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
- package/node_modules/zod/src/v4/classic/schemas.ts +243 -168
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +60 -9
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +265 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +40 -2
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +95 -1
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +234 -38
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
- package/node_modules/zod/src/v4/core/api.ts +44 -28
- package/node_modules/zod/src/v4/core/checks.ts +62 -102
- package/node_modules/zod/src/v4/core/compile.ts +218 -93
- package/node_modules/zod/src/v4/core/core.ts +1 -3
- package/node_modules/zod/src/v4/core/doc.ts +6 -2
- package/node_modules/zod/src/v4/core/errors.ts +3 -6
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +185 -81
- package/node_modules/zod/src/v4/core/memoizer.ts +75 -28
- package/node_modules/zod/src/v4/core/parse.ts +37 -16
- package/node_modules/zod/src/v4/core/regexes.ts +14 -4
- package/node_modules/zod/src/v4/core/schemas.ts +296 -132
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +399 -2
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
- package/node_modules/zod/src/v4/core/to-json-schema.ts +9 -7
- package/node_modules/zod/src/v4/core/util.ts +218 -147
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/locales/ar.ts +2 -0
- package/node_modules/zod/src/v4/locales/az.ts +2 -0
- package/node_modules/zod/src/v4/locales/be.ts +2 -0
- package/node_modules/zod/src/v4/locales/bg.ts +2 -0
- package/node_modules/zod/src/v4/locales/bn.ts +2 -0
- package/node_modules/zod/src/v4/locales/ca.ts +2 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +2 -0
- package/node_modules/zod/src/v4/locales/cs.ts +2 -0
- package/node_modules/zod/src/v4/locales/da.ts +2 -0
- package/node_modules/zod/src/v4/locales/de.ts +2 -0
- package/node_modules/zod/src/v4/locales/el.ts +2 -0
- package/node_modules/zod/src/v4/locales/en.ts +2 -0
- package/node_modules/zod/src/v4/locales/eo.ts +2 -0
- package/node_modules/zod/src/v4/locales/es.ts +2 -0
- package/node_modules/zod/src/v4/locales/fa.ts +2 -0
- package/node_modules/zod/src/v4/locales/fi.ts +2 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +2 -0
- package/node_modules/zod/src/v4/locales/fr.ts +2 -0
- package/node_modules/zod/src/v4/locales/gu.ts +2 -0
- package/node_modules/zod/src/v4/locales/he.ts +2 -0
- package/node_modules/zod/src/v4/locales/hi.ts +2 -0
- package/node_modules/zod/src/v4/locales/hr.ts +2 -0
- package/node_modules/zod/src/v4/locales/hu.ts +2 -0
- package/node_modules/zod/src/v4/locales/hy.ts +2 -0
- package/node_modules/zod/src/v4/locales/id.ts +2 -0
- package/node_modules/zod/src/v4/locales/index.ts +1 -0
- package/node_modules/zod/src/v4/locales/is.ts +2 -0
- package/node_modules/zod/src/v4/locales/it.ts +2 -0
- package/node_modules/zod/src/v4/locales/ja.ts +2 -0
- package/node_modules/zod/src/v4/locales/ka.ts +2 -0
- package/node_modules/zod/src/v4/locales/km.ts +2 -0
- package/node_modules/zod/src/v4/locales/kn.ts +2 -0
- package/node_modules/zod/src/v4/locales/ko.ts +2 -0
- package/node_modules/zod/src/v4/locales/lt.ts +2 -0
- package/node_modules/zod/src/v4/locales/mk.ts +2 -0
- package/node_modules/zod/src/v4/locales/ms.ts +2 -0
- package/node_modules/zod/src/v4/locales/ne.ts +2 -0
- package/node_modules/zod/src/v4/locales/nl.ts +2 -0
- package/node_modules/zod/src/v4/locales/nn.ts +2 -0
- package/node_modules/zod/src/v4/locales/no.ts +2 -0
- package/node_modules/zod/src/v4/locales/ota.ts +2 -0
- package/node_modules/zod/src/v4/locales/pl.ts +2 -0
- package/node_modules/zod/src/v4/locales/ps.ts +2 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +2 -0
- package/node_modules/zod/src/v4/locales/pt.ts +2 -0
- package/node_modules/zod/src/v4/locales/ro.ts +2 -0
- package/node_modules/zod/src/v4/locales/ru.ts +2 -0
- package/node_modules/zod/src/v4/locales/sk.ts +2 -0
- package/node_modules/zod/src/v4/locales/sl.ts +2 -0
- package/node_modules/zod/src/v4/locales/sv.ts +2 -0
- package/node_modules/zod/src/v4/locales/ta.ts +2 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +2 -0
- package/node_modules/zod/src/v4/locales/tk.ts +2 -0
- package/node_modules/zod/src/v4/locales/tr.ts +2 -0
- package/node_modules/zod/src/v4/locales/uk.ts +2 -0
- package/node_modules/zod/src/v4/locales/ur.ts +2 -0
- package/node_modules/zod/src/v4/locales/uz.ts +2 -0
- package/node_modules/zod/src/v4/locales/vi.ts +2 -0
- package/node_modules/zod/src/v4/locales/yo.ts +2 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +2 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +2 -0
- package/node_modules/zod/src/v4/mini/external.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +32 -7
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +86 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +23 -0
- package/node_modules/zod/v3/ZodError.cjs +19 -0
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +19 -0
- package/node_modules/zod/v4/classic/checks.cjs +19 -0
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/classic/errors.cjs +19 -0
- package/node_modules/zod/v4/classic/external.cjs +22 -1
- package/node_modules/zod/v4/classic/external.d.cts +1 -1
- package/node_modules/zod/v4/classic/external.d.ts +1 -1
- package/node_modules/zod/v4/classic/external.js +1 -1
- package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
- package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
- package/node_modules/zod/v4/classic/in-out.cjs +19 -0
- package/node_modules/zod/v4/classic/index.cjs +19 -0
- package/node_modules/zod/v4/classic/iso.cjs +19 -0
- package/node_modules/zod/v4/classic/parse.cjs +19 -0
- package/node_modules/zod/v4/classic/schemas.cjs +100 -35
- package/node_modules/zod/v4/classic/schemas.d.cts +15 -1
- package/node_modules/zod/v4/classic/schemas.d.ts +15 -1
- package/node_modules/zod/v4/classic/schemas.js +77 -33
- package/node_modules/zod/v4/core/api.cjs +45 -22
- package/node_modules/zod/v4/core/api.d.cts +12 -6
- package/node_modules/zod/v4/core/api.d.ts +12 -6
- package/node_modules/zod/v4/core/api.js +25 -22
- package/node_modules/zod/v4/core/checks.cjs +51 -97
- package/node_modules/zod/v4/core/checks.d.cts +17 -1
- package/node_modules/zod/v4/core/checks.d.ts +17 -1
- package/node_modules/zod/v4/core/checks.js +31 -96
- package/node_modules/zod/v4/core/compile.cjs +173 -78
- package/node_modules/zod/v4/core/compile.d.cts +18 -4
- package/node_modules/zod/v4/core/compile.d.ts +18 -4
- package/node_modules/zod/v4/core/compile.js +154 -79
- package/node_modules/zod/v4/core/core.cjs +20 -1
- package/node_modules/zod/v4/core/core.js +1 -1
- package/node_modules/zod/v4/core/doc.cjs +26 -2
- package/node_modules/zod/v4/core/doc.js +7 -2
- package/node_modules/zod/v4/core/errors.cjs +21 -5
- package/node_modules/zod/v4/core/errors.js +2 -5
- package/node_modules/zod/v4/core/index.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
- package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +188 -72
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +170 -74
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/memoizer.cjs +111 -23
- package/node_modules/zod/v4/core/memoizer.js +69 -23
- package/node_modules/zod/v4/core/parse.cjs +56 -16
- package/node_modules/zod/v4/core/parse.js +37 -16
- package/node_modules/zod/v4/core/regexes.cjs +31 -6
- package/node_modules/zod/v4/core/regexes.d.cts +3 -0
- package/node_modules/zod/v4/core/regexes.d.ts +3 -0
- package/node_modules/zod/v4/core/regexes.js +10 -4
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/schemas.cjs +302 -114
- package/node_modules/zod/v4/core/schemas.d.cts +28 -8
- package/node_modules/zod/v4/core/schemas.d.ts +28 -8
- package/node_modules/zod/v4/core/schemas.js +279 -113
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +28 -7
- package/node_modules/zod/v4/core/to-json-schema.d.cts +4 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +4 -3
- package/node_modules/zod/v4/core/to-json-schema.js +7 -6
- package/node_modules/zod/v4/core/util.cjs +177 -143
- package/node_modules/zod/v4/core/util.d.cts +25 -4
- package/node_modules/zod/v4/core/util.d.ts +25 -4
- package/node_modules/zod/v4/core/util.js +156 -143
- package/node_modules/zod/v4/core/versions.cjs +21 -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 +19 -0
- package/node_modules/zod/v4/index.cjs +19 -0
- package/node_modules/zod/v4/locales/ar.cjs +2 -0
- package/node_modules/zod/v4/locales/ar.js +2 -0
- package/node_modules/zod/v4/locales/az.cjs +2 -0
- package/node_modules/zod/v4/locales/az.js +2 -0
- package/node_modules/zod/v4/locales/be.cjs +2 -0
- package/node_modules/zod/v4/locales/be.js +2 -0
- package/node_modules/zod/v4/locales/bg.cjs +2 -0
- package/node_modules/zod/v4/locales/bg.js +2 -0
- package/node_modules/zod/v4/locales/bn.cjs +2 -0
- package/node_modules/zod/v4/locales/bn.js +2 -0
- package/node_modules/zod/v4/locales/ca.cjs +2 -0
- package/node_modules/zod/v4/locales/ca.js +2 -0
- package/node_modules/zod/v4/locales/ckb.cjs +2 -0
- package/node_modules/zod/v4/locales/ckb.js +2 -0
- package/node_modules/zod/v4/locales/cs.cjs +2 -0
- package/node_modules/zod/v4/locales/cs.js +2 -0
- package/node_modules/zod/v4/locales/da.cjs +2 -0
- package/node_modules/zod/v4/locales/da.js +2 -0
- package/node_modules/zod/v4/locales/de.cjs +2 -0
- package/node_modules/zod/v4/locales/de.js +2 -0
- package/node_modules/zod/v4/locales/el.cjs +2 -0
- package/node_modules/zod/v4/locales/el.js +2 -0
- package/node_modules/zod/v4/locales/en.cjs +2 -0
- package/node_modules/zod/v4/locales/en.js +2 -0
- package/node_modules/zod/v4/locales/eo.cjs +2 -0
- package/node_modules/zod/v4/locales/eo.js +2 -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 +2 -0
- package/node_modules/zod/v4/locales/fa.js +2 -0
- package/node_modules/zod/v4/locales/fi.cjs +2 -0
- package/node_modules/zod/v4/locales/fi.js +2 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +2 -0
- package/node_modules/zod/v4/locales/fr-CA.js +2 -0
- package/node_modules/zod/v4/locales/fr.cjs +2 -0
- package/node_modules/zod/v4/locales/fr.js +2 -0
- package/node_modules/zod/v4/locales/gu.cjs +2 -0
- package/node_modules/zod/v4/locales/gu.js +2 -0
- package/node_modules/zod/v4/locales/he.cjs +2 -0
- package/node_modules/zod/v4/locales/he.js +2 -0
- package/node_modules/zod/v4/locales/hi.cjs +2 -0
- package/node_modules/zod/v4/locales/hi.js +2 -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 +2 -0
- package/node_modules/zod/v4/locales/hu.js +2 -0
- package/node_modules/zod/v4/locales/hy.cjs +2 -0
- package/node_modules/zod/v4/locales/hy.js +2 -0
- package/node_modules/zod/v4/locales/id.cjs +2 -0
- package/node_modules/zod/v4/locales/id.js +2 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -1
- package/node_modules/zod/v4/locales/index.d.cts +1 -0
- package/node_modules/zod/v4/locales/index.d.ts +1 -0
- package/node_modules/zod/v4/locales/index.js +1 -0
- package/node_modules/zod/v4/locales/is.cjs +2 -0
- package/node_modules/zod/v4/locales/is.js +2 -0
- package/node_modules/zod/v4/locales/it.cjs +2 -0
- package/node_modules/zod/v4/locales/it.js +2 -0
- package/node_modules/zod/v4/locales/ja.cjs +2 -0
- package/node_modules/zod/v4/locales/ja.js +2 -0
- package/node_modules/zod/v4/locales/ka.cjs +2 -0
- package/node_modules/zod/v4/locales/ka.js +2 -0
- package/node_modules/zod/v4/locales/km.cjs +2 -0
- package/node_modules/zod/v4/locales/km.js +2 -0
- package/node_modules/zod/v4/locales/kn.cjs +2 -0
- package/node_modules/zod/v4/locales/kn.js +2 -0
- package/node_modules/zod/v4/locales/ko.cjs +2 -0
- package/node_modules/zod/v4/locales/ko.js +2 -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 +2 -0
- package/node_modules/zod/v4/locales/mk.js +2 -0
- package/node_modules/zod/v4/locales/ms.cjs +2 -0
- package/node_modules/zod/v4/locales/ms.js +2 -0
- package/node_modules/zod/v4/locales/ne.cjs +2 -0
- package/node_modules/zod/v4/locales/ne.js +2 -0
- package/node_modules/zod/v4/locales/nl.cjs +2 -0
- package/node_modules/zod/v4/locales/nl.js +2 -0
- package/node_modules/zod/v4/locales/nn.cjs +2 -0
- package/node_modules/zod/v4/locales/nn.js +2 -0
- package/node_modules/zod/v4/locales/no.cjs +2 -0
- package/node_modules/zod/v4/locales/no.js +2 -0
- package/node_modules/zod/v4/locales/ota.cjs +2 -0
- package/node_modules/zod/v4/locales/ota.js +2 -0
- package/node_modules/zod/v4/locales/pl.cjs +2 -0
- package/node_modules/zod/v4/locales/pl.js +2 -0
- package/node_modules/zod/v4/locales/ps.cjs +2 -0
- package/node_modules/zod/v4/locales/ps.js +2 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +2 -0
- package/node_modules/zod/v4/locales/pt-BR.js +2 -0
- package/node_modules/zod/v4/locales/pt.cjs +2 -0
- package/node_modules/zod/v4/locales/pt.js +2 -0
- package/node_modules/zod/v4/locales/ro.cjs +2 -0
- package/node_modules/zod/v4/locales/ro.js +2 -0
- package/node_modules/zod/v4/locales/ru.cjs +2 -0
- package/node_modules/zod/v4/locales/ru.js +2 -0
- package/node_modules/zod/v4/locales/sk.cjs +2 -0
- package/node_modules/zod/v4/locales/sk.js +2 -0
- package/node_modules/zod/v4/locales/sl.cjs +2 -0
- package/node_modules/zod/v4/locales/sl.js +2 -0
- package/node_modules/zod/v4/locales/sv.cjs +2 -0
- package/node_modules/zod/v4/locales/sv.js +2 -0
- package/node_modules/zod/v4/locales/ta.cjs +2 -0
- package/node_modules/zod/v4/locales/ta.js +2 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +2 -0
- package/node_modules/zod/v4/locales/th.js +2 -0
- package/node_modules/zod/v4/locales/tk.cjs +2 -0
- package/node_modules/zod/v4/locales/tk.js +2 -0
- package/node_modules/zod/v4/locales/tr.cjs +2 -0
- package/node_modules/zod/v4/locales/tr.js +2 -0
- package/node_modules/zod/v4/locales/uk.cjs +2 -0
- package/node_modules/zod/v4/locales/uk.js +2 -0
- package/node_modules/zod/v4/locales/ur.cjs +2 -0
- package/node_modules/zod/v4/locales/ur.js +2 -0
- package/node_modules/zod/v4/locales/uz.cjs +2 -0
- package/node_modules/zod/v4/locales/uz.js +2 -0
- package/node_modules/zod/v4/locales/vi.cjs +2 -0
- package/node_modules/zod/v4/locales/vi.js +2 -0
- package/node_modules/zod/v4/locales/yo.cjs +2 -0
- package/node_modules/zod/v4/locales/yo.js +2 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +2 -0
- package/node_modules/zod/v4/locales/zh-CN.js +2 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +2 -0
- package/node_modules/zod/v4/locales/zh-TW.js +2 -0
- package/node_modules/zod/v4/mini/checks.cjs +19 -0
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/mini/external.cjs +22 -1
- package/node_modules/zod/v4/mini/external.d.cts +1 -1
- package/node_modules/zod/v4/mini/external.d.ts +1 -1
- package/node_modules/zod/v4/mini/external.js +1 -1
- package/node_modules/zod/v4/mini/in-out.cjs +19 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +19 -0
- package/node_modules/zod/v4/mini/schemas.cjs +44 -8
- package/node_modules/zod/v4/mini/schemas.d.cts +6 -1
- package/node_modules/zod/v4/mini/schemas.d.ts +6 -1
- package/node_modules/zod/v4/mini/schemas.js +21 -6
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/openclaw.plugin.json +14 -0
- package/package.json +7 -7
- package/dist/.setup/rolldown-runtime-D7D4PA-g.mjs +0 -13
- package/dist/.setup/state-contract-DvahEY4X.mjs +0 -56
- package/dist/.setup/state-migrations-CIwg07l5.mjs +0 -277
- /package/node_modules/typebox/build/guard/{string.d.mts → unicode/unicode_segment.d.mts} +0 -0
package/assets/icon.png
CHANGED
|
Binary file
|
|
@@ -6,9 +6,8 @@ import path from "node:path";
|
|
|
6
6
|
import { createAccountListHelpers } from "openclaw/plugin-sdk/account-helpers";
|
|
7
7
|
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
8
8
|
import os from "node:os";
|
|
9
|
-
import fs
|
|
9
|
+
import fs from "node:fs/promises";
|
|
10
10
|
import { normalizeScpRemoteHost } from "openclaw/plugin-sdk/host-runtime";
|
|
11
|
-
import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
|
|
12
11
|
//#region extensions/imessage/src/cli-path.ts
|
|
13
12
|
const localCliPathCache = /* @__PURE__ */ new Map();
|
|
14
13
|
const MACH_O_MAGICS = /* @__PURE__ */ new Set([
|
|
@@ -151,6 +150,7 @@ function getCachedIMessageRemoteHost(params) {
|
|
|
151
150
|
async function resolveIMessageRemoteHost(params) {
|
|
152
151
|
const configured = normalizeScpRemoteHost(params.remoteHost);
|
|
153
152
|
if (configured) return configured;
|
|
153
|
+
const { logVerbose } = await import("openclaw/plugin-sdk/runtime-env");
|
|
154
154
|
if (params.remoteHost?.trim()) logVerbose("imessage: ignoring unsafe configured remoteHost value");
|
|
155
155
|
const key = cacheKey(params.cliPath);
|
|
156
156
|
if (detectedRemoteHosts.has(key)) {
|
|
@@ -167,7 +167,7 @@ async function resolveIMessageRemoteHost(params) {
|
|
|
167
167
|
const lookup = (async () => {
|
|
168
168
|
let detected;
|
|
169
169
|
try {
|
|
170
|
-
detected = parseRemoteHost(await fs
|
|
170
|
+
detected = parseRemoteHost(await fs.readFile(key, "utf8"));
|
|
171
171
|
} catch (error) {
|
|
172
172
|
const code = error?.code;
|
|
173
173
|
if (code !== "ENOENT" && code !== "ENOTDIR") logVerbose(`imessage: failed to inspect cliPath ${params.cliPath}: ${String(error)}`);
|
|
@@ -190,9 +190,6 @@ async function resolveIMessageRemoteHost(params) {
|
|
|
190
190
|
const { listAccountIds, resolveDefaultAccountId, resolveAccountConfig: resolveMergedIMessageAccountConfig } = createAccountListHelpers("imessage", { implicitDefaultAccount: { channelKeys: ["cliPath", "dbPath"] } });
|
|
191
191
|
const listIMessageAccountIds = listAccountIds;
|
|
192
192
|
const resolveDefaultIMessageAccountId = resolveDefaultAccountId;
|
|
193
|
-
function resolveIMessageAccountConfig(cfg, accountId) {
|
|
194
|
-
return resolveAccountEntry(cfg.channels?.imessage?.accounts, accountId);
|
|
195
|
-
}
|
|
196
193
|
function asStreamingConfigObject(value) {
|
|
197
194
|
return asOptionalRecord(value);
|
|
198
195
|
}
|
|
@@ -214,7 +211,7 @@ function mergeIMessageStreamingConfig(base, account) {
|
|
|
214
211
|
};
|
|
215
212
|
}
|
|
216
213
|
function mergeIMessageAccountConfig(cfg, accountId) {
|
|
217
|
-
const accountConfig =
|
|
214
|
+
const accountConfig = resolveAccountEntry(cfg.channels?.imessage?.accounts, accountId);
|
|
218
215
|
const merged = resolveMergedIMessageAccountConfig(cfg, accountId);
|
|
219
216
|
const streaming = mergeIMessageStreamingConfig((cfg.channels?.imessage)?.streaming, accountConfig?.streaming);
|
|
220
217
|
return streaming !== void 0 ? {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as resolveIMessageMessageId, n as sanitizeIMessageFinalOutboundText, o as createIMessageRpcClient, s as runIMessageCliJsonCommand
|
|
2
|
-
import { n as authorizeIMessageResourceReference, t as withIMessageRemoteFile } from "./remote-file-
|
|
1
|
+
import { E as normalizeDirectChatIdentifier, m as resolveIMessageMessageId, n as sanitizeIMessageFinalOutboundText, o as createIMessageRpcClient, s as runIMessageCliJsonCommand } from "./sanitize-outbound-3MLljgtY.mjs";
|
|
2
|
+
import { n as authorizeIMessageResourceReference, t as withIMessageRemoteFile } from "./remote-file-DRPCaVmg.mjs";
|
|
3
3
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { basename, parse, win32 } from "node:path";
|
|
5
5
|
import { asDateTimestampMs, parseStrictInteger, resolveExpiresAtMsFromDurationMs } from "openclaw/plugin-sdk/number-runtime";
|
|
@@ -144,9 +144,7 @@ async function withTempFile(input, options, fn) {
|
|
|
144
144
|
}
|
|
145
145
|
const imessageActionsRuntime = {
|
|
146
146
|
resolveIMessageMessageId,
|
|
147
|
-
|
|
148
|
-
await authorizeIMessageResourceReference(params);
|
|
149
|
-
},
|
|
147
|
+
authorizeMessageReference: authorizeIMessageResourceReference,
|
|
150
148
|
resolveChatGuidForTarget: resolveIMessageActionChatGuid,
|
|
151
149
|
async sendReaction(params) {
|
|
152
150
|
await runIMessageAction(params.options, "tapback", {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "./targets-
|
|
2
|
-
import "./accounts-
|
|
3
|
-
import "./message-tool-api-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import "./targets-BicBiYsM.mjs";
|
|
2
|
+
import "./accounts-nzcU0cq2.mjs";
|
|
3
|
+
import "./message-tool-api-D032l82H.mjs";
|
|
4
|
+
import "./group-policy-90pw4tyG.mjs";
|
|
5
|
+
import { s as imessageSetupContract } from "./setup-core-8MDdYHj5.mjs";
|
|
6
|
+
import { n as createIMessagePluginBase, r as imessageSetupWizard } from "./channel-9fyvuN_p.mjs";
|
|
6
7
|
import "./conversation-bindings-GDQ_Laxj.mjs";
|
|
7
8
|
import { createAllowedChatSenderMatcher as createAllowedChatSenderMatcher$1, parseChatAllowTargetPrefixes, parseChatTargetPrefixesOrThrow as parseChatTargetPrefixesOrThrow$1, resolveServicePrefixedAllowTarget, resolveServicePrefixedChatTarget as resolveServicePrefixedChatTarget$1, resolveServicePrefixedOrChatAllowTarget as resolveServicePrefixedOrChatAllowTarget$1, resolveServicePrefixedTarget } from "openclaw/plugin-sdk/channel-targets";
|
|
8
9
|
//#region extensions/imessage/src/channel.setup.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as looksLikeIMessageExplicitTargetId, c as parseIMessageTarget, i as isAllowedIMessageSender, l as looksLikeIMessageTargetId, n as inferIMessageTargetChatType, o as normalizeIMessageHandle, s as parseIMessageAllowTarget, t as formatIMessageChatTarget, u as normalizeIMessageMessagingTarget } from "./targets-
|
|
2
|
-
import { a as resolveDefaultIMessageAccountId, i as listIMessageAccountIds, o as resolveIMessageAccount, r as listEnabledIMessageAccounts } from "./accounts-
|
|
3
|
-
import { o as IMESSAGE_ACTIONS, s as IMESSAGE_ACTION_NAMES } from "./message-tool-api-
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
6
|
-
import { t as imessagePlugin } from "./channel-
|
|
1
|
+
import { a as looksLikeIMessageExplicitTargetId, c as parseIMessageTarget, i as isAllowedIMessageSender, l as looksLikeIMessageTargetId, n as inferIMessageTargetChatType, o as normalizeIMessageHandle, s as parseIMessageAllowTarget, t as formatIMessageChatTarget, u as normalizeIMessageMessagingTarget } from "./targets-BicBiYsM.mjs";
|
|
2
|
+
import { a as resolveDefaultIMessageAccountId, i as listIMessageAccountIds, o as resolveIMessageAccount, r as listEnabledIMessageAccounts } from "./accounts-nzcU0cq2.mjs";
|
|
3
|
+
import { o as IMESSAGE_ACTIONS, s as IMESSAGE_ACTION_NAMES } from "./message-tool-api-D032l82H.mjs";
|
|
4
|
+
import { S as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS } from "./sanitize-outbound-3MLljgtY.mjs";
|
|
5
|
+
import { a as matchIMessageAcpConversation, d as probeIMessage, i as resolveIMessageInboundConversationId, o as normalizeIMessageAcpConversationId, r as resolveIMessageGroupToolPolicy, s as resolveIMessageConversationIdFromTarget, t as resolveIMessageGroupRequireMention } from "./group-policy-90pw4tyG.mjs";
|
|
6
|
+
import { t as imessagePlugin } from "./channel-9fyvuN_p.mjs";
|
|
7
7
|
import { t as createIMessageConversationBindingManager } from "./conversation-bindings-GDQ_Laxj.mjs";
|
|
8
|
-
import { a as resolveServicePrefixedChatTarget, c as imessageSetupPlugin, i as resolveServicePrefixedAllowTarget, n as parseChatAllowTargetPrefixes, o as resolveServicePrefixedOrChatAllowTarget, r as parseChatTargetPrefixesOrThrow, s as resolveServicePrefixedTarget, t as createAllowedChatSenderMatcher } from "./api-
|
|
8
|
+
import { a as resolveServicePrefixedChatTarget, c as imessageSetupPlugin, i as resolveServicePrefixedAllowTarget, n as parseChatAllowTargetPrefixes, o as resolveServicePrefixedOrChatAllowTarget, r as parseChatTargetPrefixesOrThrow, s as resolveServicePrefixedTarget, t as createAllowedChatSenderMatcher } from "./api-B9Qx21G-.mjs";
|
|
9
9
|
import { t as IMESSAGE_LEGACY_OUTBOUND_SEND_DEP_KEYS } from "./outbound-send-deps-B-QEsLSM.mjs";
|
|
10
10
|
export { DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, IMESSAGE_ACTIONS, IMESSAGE_ACTION_NAMES, IMESSAGE_LEGACY_OUTBOUND_SEND_DEP_KEYS, createAllowedChatSenderMatcher, createIMessageConversationBindingManager, formatIMessageChatTarget, imessagePlugin, imessageSetupPlugin, inferIMessageTargetChatType, isAllowedIMessageSender, listEnabledIMessageAccounts, listIMessageAccountIds, looksLikeIMessageExplicitTargetId, looksLikeIMessageTargetId, matchIMessageAcpConversation, normalizeIMessageAcpConversationId, normalizeIMessageHandle, normalizeIMessageMessagingTarget, parseChatAllowTargetPrefixes, parseChatTargetPrefixesOrThrow, parseIMessageAllowTarget, parseIMessageTarget, probeIMessage, resolveDefaultIMessageAccountId, resolveIMessageAccount, resolveIMessageConversationIdFromTarget, resolveIMessageGroupRequireMention, resolveIMessageGroupToolPolicy, resolveIMessageInboundConversationId, resolveServicePrefixedAllowTarget, resolveServicePrefixedChatTarget, resolveServicePrefixedOrChatAllowTarget, resolveServicePrefixedTarget };
|
package/dist/.setup/{approval-handler.runtime-CkG235P7.mjs → approval-handler.runtime-DKSq0DWq.mjs}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as parseIMessageTarget, u as normalizeIMessageMessagingTarget } from "./targets-
|
|
2
|
-
import { o as resolveIMessageAccount } from "./accounts-
|
|
3
|
-
import { n as getCachedIMessagePrivateApiStatus } from "./message-tool-api-
|
|
4
|
-
import { i as extractMarkdownFormatRuns } from "./sanitize-outbound-
|
|
5
|
-
import {
|
|
6
|
-
import { a as unregisterIMessageApprovalReactionTarget, c as buildIMessageApprovalConversationKeyForTarget, i as registerIMessageApprovalReactionTarget } from "./approval-reactions-
|
|
7
|
-
import { a as iMessageApprovalPollTargets, c as iMessageApprovalControlBindings, i as buildApprovalPollOptions, o as mapSentPollOptionsToDecisions, t as sendMessageIMessage } from "./send-
|
|
1
|
+
import { c as parseIMessageTarget, u as normalizeIMessageMessagingTarget } from "./targets-BicBiYsM.mjs";
|
|
2
|
+
import { o as resolveIMessageAccount } from "./accounts-nzcU0cq2.mjs";
|
|
3
|
+
import { n as getCachedIMessagePrivateApiStatus } from "./message-tool-api-D032l82H.mjs";
|
|
4
|
+
import { i as extractMarkdownFormatRuns } from "./sanitize-outbound-3MLljgtY.mjs";
|
|
5
|
+
import { c as getIMessageApprovalApprovers } from "./group-policy-90pw4tyG.mjs";
|
|
6
|
+
import { a as unregisterIMessageApprovalReactionTarget, c as buildIMessageApprovalConversationKeyForTarget, i as registerIMessageApprovalReactionTarget } from "./approval-reactions-Bp33xc83.mjs";
|
|
7
|
+
import { a as iMessageApprovalPollTargets, c as iMessageApprovalControlBindings, i as buildApprovalPollOptions, o as mapSentPollOptionsToDecisions, t as sendMessageIMessage } from "./send-Cu9nl757.mjs";
|
|
8
8
|
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
9
|
-
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
10
9
|
import { createActionGate } from "openclaw/plugin-sdk/channel-actions";
|
|
10
|
+
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
11
11
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
12
12
|
import { buildApprovalNativeControlsPromptText, buildApprovalReactionPendingContent } from "openclaw/plugin-sdk/approval-reaction-runtime";
|
|
13
13
|
import { buildChannelApprovalExpiredText, buildChannelApprovalResolvedText, createChannelApprovalNativeRuntimeAdapter, resolvePreparedApprovalAccountId } from "openclaw/plugin-sdk/approval-handler-runtime";
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
//#region extensions/imessage/src/approval-handler.runtime.ts
|
|
16
16
|
const log = createSubsystemLogger("imessage/approvals");
|
|
17
|
-
const loadIMessageActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-
|
|
17
|
+
const loadIMessageActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-DdBN29zj.mjs"), "imessageActionsRuntime");
|
|
18
18
|
const DEFAULT_PROBE_TIMEOUT_MS = 5e3;
|
|
19
19
|
const APPROVAL_POLL_ORDERING_DELAY_MS = 1100;
|
|
20
20
|
function buildPendingPayload(params) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { c as parseIMessageTarget, o as normalizeIMessageHandle } from "./targets-
|
|
3
|
-
import { c as
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BBjsoOtd.mjs";
|
|
2
|
+
import { c as parseIMessageTarget, o as normalizeIMessageHandle } from "./targets-BicBiYsM.mjs";
|
|
3
|
+
import { c as getIMessageApprovalApprovers, l as imessageApprovalAuth } from "./group-policy-90pw4tyG.mjs";
|
|
4
4
|
import { n as getOptionalIMessageRuntime } from "./runtime-Cza4CY5T.mjs";
|
|
5
5
|
import { n as normalizeIMessageGuid, t as resolveIMessageReactionContext } from "./reaction-context-Br-vAJFp.mjs";
|
|
6
6
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -128,7 +128,7 @@ function readPersistedPollTarget(value) {
|
|
|
128
128
|
...typeof rawConversation.chatId === "string" || typeof rawConversation.chatId === "number" ? { chatId: rawConversation.chatId } : {},
|
|
129
129
|
...typeof rawConversation.handle === "string" ? { handle: rawConversation.handle.trim() } : {}
|
|
130
130
|
};
|
|
131
|
-
if (!accountId || !messageId || !approvalId || expiresAtMs === void 0 || !allowedDecisions || target.approvalKind !== "exec" && target.approvalKind !== "plugin" || !normalizeConversationKey(conversation)) return null;
|
|
131
|
+
if (!accountId || !messageId || !approvalId || expiresAtMs === void 0 || !allowedDecisions || target.approvalKind !== "exec" && target.approvalKind !== "plugin" && target.approvalKind !== "system-agent" || !normalizeConversationKey(conversation)) return null;
|
|
132
132
|
return {
|
|
133
133
|
accountId,
|
|
134
134
|
conversation,
|
|
@@ -305,7 +305,7 @@ async function registerIMessageApprovalReactionTarget(params) {
|
|
|
305
305
|
const messageId = params.messageId.trim();
|
|
306
306
|
const approvalId = params.approvalId.trim();
|
|
307
307
|
const allowedDecisions = listApprovalReactionBindings({ allowedDecisions: params.allowedDecisions }).map((binding) => binding.decision);
|
|
308
|
-
if (!accountId || !messageId || !approvalId || params.approvalKind !== "exec" && params.approvalKind !== "plugin" || allowedDecisions.length === 0) return null;
|
|
308
|
+
if (!accountId || !messageId || !approvalId || params.approvalKind !== "exec" && params.approvalKind !== "plugin" && params.approvalKind !== "system-agent" || allowedDecisions.length === 0) return null;
|
|
309
309
|
const target = {
|
|
310
310
|
approvalId,
|
|
311
311
|
approvalKind: params.approvalKind,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { a as looksLikeIMessageExplicitTargetId, c as parseIMessageTarget, d as isIMessagePhoneLikeHandle, n as inferIMessageTargetChatType, o as normalizeIMessageHandle, u as normalizeIMessageMessagingTarget } from "./targets-
|
|
2
|
-
import { a as resolveDefaultIMessageAccountId, i as listIMessageAccountIds, o as resolveIMessageAccount, t as collectIMessageDuplicateAccountSourceWarnings } from "./accounts-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { a as looksLikeIMessageExplicitTargetId, c as parseIMessageTarget, d as isIMessagePhoneLikeHandle, n as inferIMessageTargetChatType, o as normalizeIMessageHandle, u as normalizeIMessageMessagingTarget } from "./targets-BicBiYsM.mjs";
|
|
2
|
+
import { a as resolveDefaultIMessageAccountId, i as listIMessageAccountIds, o as resolveIMessageAccount, t as collectIMessageDuplicateAccountSourceWarnings } from "./accounts-nzcU0cq2.mjs";
|
|
3
|
+
import { D as resolveIMessageDirectChatService, n as sanitizeIMessageFinalOutboundText, r as sanitizeOutboundText } from "./sanitize-outbound-3MLljgtY.mjs";
|
|
4
|
+
import { a as matchIMessageAcpConversation, c as getIMessageApprovalApprovers, l as imessageApprovalAuth, o as normalizeIMessageAcpConversationId, r as resolveIMessageGroupToolPolicy, s as resolveIMessageConversationIdFromTarget, t as resolveIMessageGroupRequireMention, u as imessageMessageActions } from "./group-policy-90pw4tyG.mjs";
|
|
5
|
+
import { i as createIMessageSetupWizardProxy, s as imessageSetupContract } from "./setup-core-8MDdYHj5.mjs";
|
|
5
6
|
import { t as createIMessageConversationBindingManager } from "./conversation-bindings-GDQ_Laxj.mjs";
|
|
6
|
-
import { t as IMessageChannelConfigSchema } from "./config-schema-
|
|
7
|
-
import { n as resolveIMessageAttachmentRoots, r as resolveIMessageRemoteAttachmentRoots } from "./media-contract-
|
|
7
|
+
import { t as IMessageChannelConfigSchema } from "./config-schema-4Q3_EqYt.mjs";
|
|
8
|
+
import { n as resolveIMessageAttachmentRoots, r as resolveIMessageRemoteAttachmentRoots } from "./media-contract-CagwSMvo.mjs";
|
|
8
9
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
10
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
10
11
|
import { buildDmGroupAccountAllowlistAdapter } from "openclaw/plugin-sdk/allowlist-config-edit";
|
|
@@ -29,8 +30,7 @@ import { createRestrictSendersChannelSecurity } from "openclaw/plugin-sdk/channe
|
|
|
29
30
|
import { createChannelPluginBase, getChatChannelMeta } from "openclaw/plugin-sdk/core";
|
|
30
31
|
//#region extensions/imessage/src/approval-text.ts
|
|
31
32
|
function replaceApprovalIdPlaceholder(text, approvalId) {
|
|
32
|
-
|
|
33
|
-
return (text ?? "").replace(/\/approve\s+<id>/g, `/approve ${safeApprovalId}`);
|
|
33
|
+
return (text ?? "").replace(/\/approve\s+<id>/g, () => `/approve ${approvalId}`);
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region extensions/imessage/src/approval-native.ts
|
|
@@ -92,7 +92,7 @@ const imessageApproval = createApproverRestrictedNativeApprovalCapabilityFromFor
|
|
|
92
92
|
approvalKind,
|
|
93
93
|
request
|
|
94
94
|
}),
|
|
95
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
95
|
+
load: async () => (await import("./approval-handler.runtime-DKSq0DWq.mjs")).imessageApprovalNativeRuntime
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
const imessageApprovalRouting = imessageApproval.routing;
|
|
@@ -146,12 +146,6 @@ function shouldSuppressLocalIMessageExecApprovalPrompt(params) {
|
|
|
146
146
|
nativeSessionOnly: true
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function appendIMessageReactionHint(params) {
|
|
150
|
-
return addApprovalReactionHintToText({
|
|
151
|
-
text: params.text ?? "",
|
|
152
|
-
allowedDecisions: params.allowedDecisions
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
149
|
function buildIMessageExecPendingPayload(params) {
|
|
156
150
|
const allowedDecisions = resolveExecApprovalRequestAllowedDecisions(params.request.request);
|
|
157
151
|
const command = resolveExecApprovalCommandDisplay(params.request.request).commandText;
|
|
@@ -174,7 +168,7 @@ function buildIMessageExecPendingPayload(params) {
|
|
|
174
168
|
});
|
|
175
169
|
return {
|
|
176
170
|
...payload,
|
|
177
|
-
text:
|
|
171
|
+
text: addApprovalReactionHintToText({
|
|
178
172
|
text: replaceApprovalIdPlaceholder(payload.text, params.request.id),
|
|
179
173
|
allowedDecisions
|
|
180
174
|
})
|
|
@@ -190,7 +184,7 @@ function buildIMessagePluginPendingPayload(params) {
|
|
|
190
184
|
});
|
|
191
185
|
return {
|
|
192
186
|
...payload,
|
|
193
|
-
text:
|
|
187
|
+
text: addApprovalReactionHintToText({
|
|
194
188
|
text: replaceApprovalIdPlaceholder(payload.text, params.request.id),
|
|
195
189
|
allowedDecisions
|
|
196
190
|
})
|
|
@@ -206,10 +200,7 @@ const imessageDoctor = {
|
|
|
206
200
|
//#endregion
|
|
207
201
|
//#region extensions/imessage/src/shared.ts
|
|
208
202
|
const IMESSAGE_CHANNEL = "imessage";
|
|
209
|
-
async
|
|
210
|
-
return await import("./channel.runtime-Kw4iCQax.mjs");
|
|
211
|
-
}
|
|
212
|
-
const imessageSetupWizard = createIMessageSetupWizardProxy(async () => (await loadIMessageChannelRuntime$1()).imessageSetupWizard);
|
|
203
|
+
const imessageSetupWizard = createIMessageSetupWizardProxy(async () => (await import("./setup-surface-tGXFDdWh.mjs")).imessageSetupWizard);
|
|
213
204
|
const imessageConfigAdapter = createScopedChannelConfigAdapter({
|
|
214
205
|
sectionKey: IMESSAGE_CHANNEL,
|
|
215
206
|
listAccountIds: listIMessageAccountIds,
|
|
@@ -223,7 +214,7 @@ const imessageConfigAdapter = createScopedChannelConfigAdapter({
|
|
|
223
214
|
"name"
|
|
224
215
|
],
|
|
225
216
|
resolveAllowFrom: (account) => account.config.allowFrom,
|
|
226
|
-
formatAllowFrom:
|
|
217
|
+
formatAllowFrom: formatTrimmedAllowFromEntries,
|
|
227
218
|
resolveDefaultTo: (account) => account.config.defaultTo
|
|
228
219
|
});
|
|
229
220
|
const imessageSecurityAdapter = createRestrictSendersChannelSecurity({
|
|
@@ -249,51 +240,45 @@ function createIMessagePluginBase(params) {
|
|
|
249
240
|
exposure: { configured: false }
|
|
250
241
|
},
|
|
251
242
|
setupWizard: params.setupWizard,
|
|
252
|
-
capabilities: {
|
|
253
|
-
chatTypes: ["direct", "group"],
|
|
254
|
-
media: true,
|
|
255
|
-
tts: { voice: {
|
|
256
|
-
synthesisTarget: "audio-file",
|
|
257
|
-
audioFileFormats: [
|
|
258
|
-
"mp3",
|
|
259
|
-
"caf",
|
|
260
|
-
"audio/mpeg",
|
|
261
|
-
"audio/x-caf"
|
|
262
|
-
],
|
|
263
|
-
preferAudioFileFormat: "caf"
|
|
264
|
-
} },
|
|
265
|
-
reactions: true,
|
|
266
|
-
edit: true,
|
|
267
|
-
unsend: true,
|
|
268
|
-
reply: true,
|
|
269
|
-
effects: true,
|
|
270
|
-
groupManagement: true
|
|
271
|
-
},
|
|
272
243
|
reload: {
|
|
273
244
|
configPrefixes: ["channels.imessage"],
|
|
274
245
|
noopPrefixes: ["messages.inbound"]
|
|
275
246
|
},
|
|
276
247
|
configSchema: IMessageChannelConfigSchema,
|
|
277
|
-
config: {
|
|
278
|
-
...imessageConfigAdapter,
|
|
279
|
-
isConfigured: (account) => account.configured,
|
|
280
|
-
describeAccount: (account) => describeAccountSnapshot({
|
|
281
|
-
account,
|
|
282
|
-
configured: account.configured
|
|
283
|
-
})
|
|
284
|
-
},
|
|
285
248
|
security: imessageSecurityAdapter,
|
|
286
249
|
setupContract: params.setupContract
|
|
287
250
|
}),
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
251
|
+
capabilities: {
|
|
252
|
+
chatTypes: ["direct", "group"],
|
|
253
|
+
media: true,
|
|
254
|
+
tts: { voice: {
|
|
255
|
+
synthesisTarget: "audio-file",
|
|
256
|
+
audioFileFormats: [
|
|
257
|
+
"mp3",
|
|
258
|
+
"caf",
|
|
259
|
+
"audio/mpeg",
|
|
260
|
+
"audio/x-caf"
|
|
261
|
+
],
|
|
262
|
+
preferAudioFileFormat: "caf"
|
|
263
|
+
} },
|
|
264
|
+
reactions: true,
|
|
265
|
+
edit: true,
|
|
266
|
+
unsend: true,
|
|
267
|
+
reply: true,
|
|
268
|
+
effects: true,
|
|
269
|
+
groupManagement: true
|
|
270
|
+
},
|
|
271
|
+
config: {
|
|
272
|
+
...imessageConfigAdapter,
|
|
273
|
+
isConfigured: (account) => account.configured,
|
|
274
|
+
describeAccount: (account) => describeAccountSnapshot({
|
|
275
|
+
account,
|
|
276
|
+
configured: account.configured
|
|
296
277
|
})
|
|
278
|
+
},
|
|
279
|
+
messaging: {
|
|
280
|
+
resolveInboundAttachmentRoots: resolveIMessageAttachmentRoots,
|
|
281
|
+
resolveRemoteInboundAttachmentRoots: resolveIMessageRemoteAttachmentRoots
|
|
297
282
|
}
|
|
298
283
|
};
|
|
299
284
|
}
|
|
@@ -309,7 +294,27 @@ async function probeIMessageStatusAccount(params) {
|
|
|
309
294
|
}
|
|
310
295
|
//#endregion
|
|
311
296
|
//#region extensions/imessage/src/channel.ts
|
|
312
|
-
const loadIMessageChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
297
|
+
const loadIMessageChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-n-MPKL8k.mjs"));
|
|
298
|
+
async function sendIMessageOutbound(ctx, kind, options = {}) {
|
|
299
|
+
return await (await loadIMessageChannelRuntime()).sendIMessageOutbound({
|
|
300
|
+
cfg: ctx.cfg,
|
|
301
|
+
to: ctx.to,
|
|
302
|
+
text: ctx.text,
|
|
303
|
+
accountId: ctx.accountId ?? void 0,
|
|
304
|
+
deps: ctx.deps,
|
|
305
|
+
replyToId: ctx.replyToId ?? void 0,
|
|
306
|
+
assertDirectAdapterHandoff: ctx.assertDirectAdapterHandoff,
|
|
307
|
+
onPlatformSendDispatch: ctx.onPlatformSendDispatch,
|
|
308
|
+
...options,
|
|
309
|
+
...kind === "media" ? {
|
|
310
|
+
mediaUrl: ctx.mediaUrl,
|
|
311
|
+
mediaAccess: ctx.mediaAccess,
|
|
312
|
+
mediaLocalRoots: ctx.mediaLocalRoots,
|
|
313
|
+
mediaReadFile: ctx.mediaReadFile,
|
|
314
|
+
audioAsVoice: ctx.audioAsVoice
|
|
315
|
+
} : {}
|
|
316
|
+
});
|
|
317
|
+
}
|
|
313
318
|
function toIMessageMessageSendResult(result, kind, replyToId) {
|
|
314
319
|
const receipt = result.receipt ?? createMessageReceiptFromOutboundResults({
|
|
315
320
|
results: result.messageId ? [{
|
|
@@ -325,8 +330,8 @@ function toIMessageMessageSendResult(result, kind, replyToId) {
|
|
|
325
330
|
...result.meta && Object.keys(result.meta).length > 0 ? { meta: result.meta } : {}
|
|
326
331
|
};
|
|
327
332
|
}
|
|
328
|
-
const loadIMessageApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-
|
|
329
|
-
const loadIMessageQuestionReactionsModule = createLazyRuntimeModule(() => import("./question-reactions-
|
|
333
|
+
const loadIMessageApprovalReactionsModule = createLazyRuntimeModule(() => import("./approval-reactions-Bp33xc83.mjs").then((n) => n.t));
|
|
334
|
+
const loadIMessageQuestionReactionsModule = createLazyRuntimeModule(() => import("./question-reactions-Cy-dmU_j.mjs").then((n) => n.r));
|
|
330
335
|
async function prepareForwardedIMessageApprovalPayload(params) {
|
|
331
336
|
const prepared = (await loadIMessageApprovalReactionsModule()).addIMessageApprovalReactionHintToStructuredPayload(params);
|
|
332
337
|
if (prepared) Object.assign(params.payload, prepared);
|
|
@@ -359,33 +364,10 @@ const imessageMessageAdapter = defineChannelMessageAdapter({
|
|
|
359
364
|
} },
|
|
360
365
|
send: {
|
|
361
366
|
text: async (ctx) => {
|
|
362
|
-
return toIMessageMessageSendResult(await (
|
|
363
|
-
cfg: ctx.cfg,
|
|
364
|
-
to: ctx.to,
|
|
365
|
-
text: ctx.text,
|
|
366
|
-
accountId: ctx.accountId ?? void 0,
|
|
367
|
-
deps: ctx.deps,
|
|
368
|
-
replyToId: ctx.replyToId ?? void 0,
|
|
369
|
-
assertDirectAdapterHandoff: ctx.assertDirectAdapterHandoff,
|
|
370
|
-
onPlatformSendDispatch: ctx.onPlatformSendDispatch,
|
|
371
|
-
conversationReadOrigin: ctx.conversationReadOrigin
|
|
372
|
-
}), "text", ctx.replyToId);
|
|
367
|
+
return toIMessageMessageSendResult(await sendIMessageOutbound(ctx, "text", { conversationReadOrigin: ctx.conversationReadOrigin }), "text", ctx.replyToId);
|
|
373
368
|
},
|
|
374
369
|
media: async (ctx) => {
|
|
375
|
-
return toIMessageMessageSendResult(await (
|
|
376
|
-
cfg: ctx.cfg,
|
|
377
|
-
to: ctx.to,
|
|
378
|
-
text: ctx.text,
|
|
379
|
-
mediaUrl: ctx.mediaUrl,
|
|
380
|
-
mediaAccess: ctx.mediaAccess,
|
|
381
|
-
mediaLocalRoots: ctx.mediaLocalRoots,
|
|
382
|
-
mediaReadFile: ctx.mediaReadFile,
|
|
383
|
-
audioAsVoice: ctx.audioAsVoice,
|
|
384
|
-
accountId: ctx.accountId ?? void 0,
|
|
385
|
-
deps: ctx.deps,
|
|
386
|
-
replyToId: ctx.replyToId ?? void 0,
|
|
387
|
-
assertDirectAdapterHandoff: ctx.assertDirectAdapterHandoff,
|
|
388
|
-
onPlatformSendDispatch: ctx.onPlatformSendDispatch,
|
|
370
|
+
return toIMessageMessageSendResult(await sendIMessageOutbound(ctx, "media", {
|
|
389
371
|
conversationReadOrigin: ctx.conversationReadOrigin,
|
|
390
372
|
...ctx.onDeliveryResult ? { onDeliveryResult: async (acceptedResult) => {
|
|
391
373
|
await ctx.onDeliveryResult?.(toIMessageMessageSendResult(acceptedResult, ctx.audioAsVoice ? "voice" : "media", ctx.replyToId));
|
|
@@ -394,12 +376,6 @@ const imessageMessageAdapter = defineChannelMessageAdapter({
|
|
|
394
376
|
}
|
|
395
377
|
}
|
|
396
378
|
});
|
|
397
|
-
function buildIMessageBaseSessionKey(params) {
|
|
398
|
-
return buildOutboundBaseSessionKey({
|
|
399
|
-
...params,
|
|
400
|
-
channel: "imessage"
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
379
|
function isCanonicalIMessageDirectHandle(raw, normalized) {
|
|
404
380
|
const trimmed = raw.trim();
|
|
405
381
|
if (!trimmed || !normalized) return false;
|
|
@@ -408,6 +384,10 @@ function isCanonicalIMessageDirectHandle(raw, normalized) {
|
|
|
408
384
|
}
|
|
409
385
|
function resolveIMessageOutboundSessionRoute(params) {
|
|
410
386
|
const parsed = parseIMessageTarget(params.target);
|
|
387
|
+
let peer;
|
|
388
|
+
let from;
|
|
389
|
+
let to;
|
|
390
|
+
let recipientSessionExact = false;
|
|
411
391
|
if (parsed.kind === "handle") {
|
|
412
392
|
const handle = normalizeIMessageHandle(parsed.to);
|
|
413
393
|
if (!handle) return null;
|
|
@@ -415,48 +395,37 @@ function resolveIMessageOutboundSessionRoute(params) {
|
|
|
415
395
|
cfg: params.cfg,
|
|
416
396
|
accountId: params.accountId
|
|
417
397
|
});
|
|
418
|
-
|
|
419
|
-
|
|
398
|
+
from = to = `${resolveIMessageDirectChatService(parsed.serviceExplicit ? parsed.service : account.config.service) ?? "auto"}:${handle}`;
|
|
399
|
+
peer = {
|
|
420
400
|
kind: "direct",
|
|
421
401
|
id: handle
|
|
422
402
|
};
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
sessionKey: baseSessionKey,
|
|
431
|
-
baseSessionKey,
|
|
432
|
-
recipientSessionExact: isCanonicalIMessageDirectHandle(parsed.to, handle),
|
|
433
|
-
peer,
|
|
434
|
-
chatType: "direct",
|
|
435
|
-
from: directTarget,
|
|
436
|
-
to: directTarget
|
|
403
|
+
recipientSessionExact = isCanonicalIMessageDirectHandle(parsed.to, handle);
|
|
404
|
+
} else {
|
|
405
|
+
const peerId = parsed.kind === "chat_id" ? String(parsed.chatId) : parsed.kind === "chat_guid" ? parsed.chatGuid : parsed.chatIdentifier;
|
|
406
|
+
if (!peerId) return null;
|
|
407
|
+
peer = {
|
|
408
|
+
kind: "group",
|
|
409
|
+
id: peerId
|
|
437
410
|
};
|
|
411
|
+
from = `imessage:group:${peerId}`;
|
|
412
|
+
to = `${parsed.kind}:${peerId}`;
|
|
438
413
|
}
|
|
439
|
-
const
|
|
440
|
-
if (!peerId) return null;
|
|
441
|
-
const peer = {
|
|
442
|
-
kind: "group",
|
|
443
|
-
id: peerId
|
|
444
|
-
};
|
|
445
|
-
const baseSessionKey = buildIMessageBaseSessionKey({
|
|
414
|
+
const baseSessionKey = buildOutboundBaseSessionKey({
|
|
446
415
|
cfg: params.cfg,
|
|
416
|
+
channel: "imessage",
|
|
447
417
|
agentId: params.agentId,
|
|
448
418
|
accountId: params.accountId,
|
|
449
419
|
peer
|
|
450
420
|
});
|
|
451
|
-
const toPrefix = parsed.kind === "chat_id" ? "chat_id" : parsed.kind === "chat_guid" ? "chat_guid" : "chat_identifier";
|
|
452
421
|
return {
|
|
453
422
|
sessionKey: baseSessionKey,
|
|
454
423
|
baseSessionKey,
|
|
455
|
-
recipientSessionExact
|
|
424
|
+
recipientSessionExact,
|
|
456
425
|
peer,
|
|
457
|
-
chatType:
|
|
458
|
-
from
|
|
459
|
-
to
|
|
426
|
+
chatType: peer.kind,
|
|
427
|
+
from,
|
|
428
|
+
to
|
|
460
429
|
};
|
|
461
430
|
}
|
|
462
431
|
const imessagePlugin = createChatChannelPlugin({
|
|
@@ -576,6 +545,19 @@ const imessagePlugin = createChatChannelPlugin({
|
|
|
576
545
|
}
|
|
577
546
|
} },
|
|
578
547
|
security: imessageSecurityAdapter,
|
|
548
|
+
threading: { resolveReplyTransport: ({ cfg, accountId, replyToId, currentMessageId, replyToCurrent, replyToIsExplicit, replyDelivery }) => {
|
|
549
|
+
if (resolveIMessageAccount({
|
|
550
|
+
cfg,
|
|
551
|
+
accountId
|
|
552
|
+
}).config.actions?.reply === false) return { replyToId: null };
|
|
553
|
+
const existingReplyToId = normalizeOptionalString(replyToId);
|
|
554
|
+
const explicitCurrentReply = replyToIsExplicit === true && replyToCurrent === true;
|
|
555
|
+
const implicitReplyToId = replyToCurrent === false || replyDelivery?.replyToMode === "off" && !explicitCurrentReply ? void 0 : normalizeOptionalString(currentMessageId);
|
|
556
|
+
return {
|
|
557
|
+
replyToId: existingReplyToId ?? implicitReplyToId ?? null,
|
|
558
|
+
...!existingReplyToId && !explicitCurrentReply && implicitReplyToId ? { replyToIdSource: "implicit" } : {}
|
|
559
|
+
};
|
|
560
|
+
} },
|
|
579
561
|
outbound: {
|
|
580
562
|
base: {
|
|
581
563
|
deliveryMode: "direct",
|
|
@@ -610,38 +592,14 @@ const imessagePlugin = createChatChannelPlugin({
|
|
|
610
592
|
},
|
|
611
593
|
attachedResults: {
|
|
612
594
|
channel: "imessage",
|
|
613
|
-
sendText:
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
onPlatformSendDispatch
|
|
622
|
-
}),
|
|
623
|
-
sendMedia: async ({ cfg, to, text, mediaUrl, mediaAccess, mediaLocalRoots, mediaReadFile, audioAsVoice, accountId, deps, replyToId, onDeliveryResult, assertDirectAdapterHandoff, onPlatformSendDispatch }) => await (await loadIMessageChannelRuntime()).sendIMessageOutbound({
|
|
624
|
-
cfg,
|
|
625
|
-
to,
|
|
626
|
-
text,
|
|
627
|
-
mediaUrl,
|
|
628
|
-
mediaAccess,
|
|
629
|
-
mediaLocalRoots,
|
|
630
|
-
mediaReadFile,
|
|
631
|
-
audioAsVoice,
|
|
632
|
-
accountId: accountId ?? void 0,
|
|
633
|
-
deps,
|
|
634
|
-
replyToId: replyToId ?? void 0,
|
|
635
|
-
assertDirectAdapterHandoff,
|
|
636
|
-
onPlatformSendDispatch,
|
|
637
|
-
...onDeliveryResult ? { onDeliveryResult: async (result) => {
|
|
638
|
-
await onDeliveryResult({
|
|
639
|
-
channel: "imessage",
|
|
640
|
-
...toIMessageMessageSendResult(result, audioAsVoice ? "voice" : "media", replyToId),
|
|
641
|
-
messageId: result.messageId
|
|
642
|
-
});
|
|
643
|
-
} } : {}
|
|
644
|
-
})
|
|
595
|
+
sendText: (ctx) => sendIMessageOutbound(ctx, "text"),
|
|
596
|
+
sendMedia: (ctx) => sendIMessageOutbound(ctx, "media", ctx.onDeliveryResult ? { onDeliveryResult: async (result) => {
|
|
597
|
+
await ctx.onDeliveryResult?.({
|
|
598
|
+
channel: "imessage",
|
|
599
|
+
...toIMessageMessageSendResult(result, ctx.audioAsVoice ? "voice" : "media", ctx.replyToId),
|
|
600
|
+
messageId: result.messageId
|
|
601
|
+
});
|
|
602
|
+
} } : {})
|
|
645
603
|
}
|
|
646
604
|
}
|
|
647
605
|
});
|