@openclaw/zalouser 2026.7.1-beta.2 → 2026.7.1-beta.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/dist/{accounts.runtime-B2F5jsIG.js → accounts.runtime-BK4FKoae.js} +1 -1
- package/dist/{api-B5U4x8bt.js → api-Ckk_hPfU.js} +15 -23
- package/dist/api.js +5 -5
- package/dist/{channel-upZiqJWv.js → channel-C0ARGeer.js} +47 -18
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-B3igcfqh.js → channel.runtime-DYblgvY5.js} +2 -2
- package/dist/{channel.setup-CJlEzAJP.js → channel.setup-Ba0dtXCS.js} +2 -2
- package/dist/{monitor-aip0K1Yf.js → monitor-D3DfqQDG.js} +3 -3
- package/dist/runtime-api.js +5 -5
- package/dist/{send-wLAr1heH.js → send-D1GpX8wV.js} +10 -8
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-DBnm8O4H.js → setup-surface-BsD-g2tO.js} +2 -2
- package/dist/{shared-DmWesmOn.js → shared-CqSIPdjp.js} +1 -1
- package/dist/{zalo-js-3qIiveMW.js → zalo-js-CygJB5qD.js} +10 -6
- package/node_modules/pako/README.md +9 -31
- package/node_modules/pako/dist/pako.es5.js +149 -77
- package/node_modules/pako/dist/pako.es5.min.js +2 -2
- package/node_modules/pako/dist/pako.esm.mjs +146 -78
- package/node_modules/pako/dist/pako.js +146 -78
- package/node_modules/pako/dist/pako.min.js +2 -2
- package/node_modules/pako/dist/pako_deflate.es5.js +85 -56
- package/node_modules/pako/dist/pako_deflate.es5.min.js +2 -2
- package/node_modules/pako/dist/pako_deflate.js +83 -55
- package/node_modules/pako/dist/pako_deflate.min.js +2 -2
- package/node_modules/pako/dist/pako_inflate.es5.js +62 -19
- package/node_modules/pako/dist/pako_inflate.es5.min.js +2 -2
- package/node_modules/pako/dist/pako_inflate.js +61 -21
- package/node_modules/pako/dist/pako_inflate.min.js +2 -2
- package/node_modules/pako/lib/deflate.js +16 -9
- package/node_modules/pako/lib/inflate.js +51 -14
- package/node_modules/pako/lib/utils/strings.js +1 -1
- package/node_modules/pako/lib/zlib/README +1 -1
- package/node_modules/pako/lib/zlib/deflate.js +65 -44
- package/node_modules/pako/lib/zlib/inflate.js +5 -2
- package/node_modules/pako/lib/zlib/inftrees.js +1 -1
- package/node_modules/pako/package.json +14 -5
- package/node_modules/semver/classes/range.js +6 -2
- package/node_modules/semver/package.json +1 -1
- package/node_modules/typebox/build/compile/validator.d.mts +2 -7
- package/node_modules/typebox/build/compile/validator.mjs +6 -36
- package/node_modules/typebox/build/error/errors.d.mts +1 -7
- package/node_modules/typebox/build/format/_idna.mjs +36 -6
- package/node_modules/typebox/build/format/_puny.mjs +4 -1
- package/node_modules/typebox/build/format/uuid.d.mts +2 -2
- package/node_modules/typebox/build/format/uuid.mjs +3 -3
- package/node_modules/typebox/build/guard/emit.d.mts +0 -4
- package/node_modules/typebox/build/guard/emit.mjs +0 -8
- package/node_modules/typebox/build/guard/guard.d.mts +4 -8
- package/node_modules/typebox/build/guard/guard.mjs +5 -13
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
- package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
- package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
- package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
- package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/types/index.mjs +0 -1
- package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
- package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
- package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
- package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
- package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
- package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
- package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
- package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
- package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
- package/node_modules/typebox/build/type/action/index.d.mts +7 -4
- package/node_modules/typebox/build/type/action/index.mjs +7 -4
- package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
- package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
- package/node_modules/typebox/build/type/action/module.d.mts +8 -7
- package/node_modules/typebox/build/type/action/module.mjs +7 -6
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
- package/node_modules/typebox/build/type/action/with.d.mts +11 -0
- package/node_modules/typebox/build/type/action/with.mjs +11 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/index.mjs +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
- package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
- package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
- package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
- package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
- package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
- package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
- package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
- package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
- package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
- package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
- package/node_modules/typebox/build/type/extends/object.mjs +25 -3
- package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
- package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/record.mjs +23 -0
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
- package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
- package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
- package/node_modules/typebox/build/type/extends/union.mjs +2 -2
- package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
- package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
- package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
- package/node_modules/typebox/build/type/script/parser.mjs +22 -22
- package/node_modules/typebox/build/type/script/script.d.mts +3 -4
- package/node_modules/typebox/build/type/script/script.mjs +3 -2
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
- package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
- package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
- package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
- package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
- package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
- package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
- package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
- package/node_modules/typebox/build/type/types/call.d.mts +3 -3
- package/node_modules/typebox/build/type/types/call.mjs +3 -2
- package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
- package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
- package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
- package/node_modules/typebox/build/type/types/enum.mjs +5 -0
- package/node_modules/typebox/build/type/types/index.d.mts +1 -4
- package/node_modules/typebox/build/type/types/index.mjs +1 -4
- package/node_modules/typebox/build/type/types/number.d.mts +1 -1
- package/node_modules/typebox/build/type/types/number.mjs +1 -1
- package/node_modules/typebox/build/type/types/record.d.mts +13 -7
- package/node_modules/typebox/build/type/types/record.mjs +15 -9
- package/node_modules/typebox/build/type/types/static.d.mts +2 -5
- package/node_modules/typebox/build/typebox.d.mts +4 -8
- package/node_modules/typebox/build/typebox.mjs +4 -8
- package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
- package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
- package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
- package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
- package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
- package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
- package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
- package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/index.d.mts +0 -1
- package/node_modules/typebox/build/value/index.mjs +0 -1
- package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
- package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
- package/node_modules/typebox/build/value/value.d.mts +0 -1
- package/node_modules/typebox/build/value/value.mjs +0 -1
- package/node_modules/typebox/package.json +25 -25
- package/node_modules/typebox/readme.md +97 -80
- package/npm-shrinkwrap.json +23 -13
- package/package.json +5 -5
- package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
- package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
- package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
- package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
- package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
- package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
- package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
- package/node_modules/typebox/build/type/action/options.d.mts +0 -11
- package/node_modules/typebox/build/type/action/options.mjs +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
- package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
- package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
- package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/base.d.mts +0 -50
- package/node_modules/typebox/build/type/types/base.mjs +0 -84
- package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
- package/node_modules/typebox/build/type/types/promise.mjs +0 -29
- package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
- package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
- package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
- package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
- package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
- package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
- package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
- package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
- package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
- package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
- package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
- package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
- package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getZaloUserInfo, t as checkZaloAuthenticated } from "./zalo-js-
|
|
1
|
+
import { n as getZaloUserInfo, t as checkZaloAuthenticated } from "./zalo-js-CygJB5qD.js";
|
|
2
2
|
export { checkZaloAuthenticated, getZaloUserInfo };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "./setup-surface-
|
|
2
|
-
import "./shared-
|
|
3
|
-
import { n as parseZalouserOutboundTarget } from "./channel-
|
|
1
|
+
import "./setup-surface-BsD-g2tO.js";
|
|
2
|
+
import "./shared-CqSIPdjp.js";
|
|
3
|
+
import { n as parseZalouserOutboundTarget } from "./channel-C0ARGeer.js";
|
|
4
4
|
import "./security-audit-DhK2UscX.js";
|
|
5
|
-
import { i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, t as checkZaloAuthenticated } from "./zalo-js-
|
|
6
|
-
import "./channel.setup-
|
|
7
|
-
import { i as sendMessageZalouser, n as sendImageZalouser, r as sendLinkZalouser } from "./send-
|
|
5
|
+
import { i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, t as checkZaloAuthenticated } from "./zalo-js-CygJB5qD.js";
|
|
6
|
+
import "./channel.setup-Ba0dtXCS.js";
|
|
7
|
+
import { i as sendMessageZalouser, n as sendImageZalouser, r as sendLinkZalouser } from "./send-D1GpX8wV.js";
|
|
8
8
|
import { stringEnum } from "openclaw/plugin-sdk/channel-actions";
|
|
9
9
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
10
|
+
import { jsonResult } from "openclaw/plugin-sdk/tool-results";
|
|
10
11
|
import { Type } from "typebox";
|
|
11
12
|
//#region extensions/zalouser/src/tool.ts
|
|
12
13
|
const ACTIONS = [
|
|
@@ -27,15 +28,6 @@ const ZalouserToolSchema = Type.Object({
|
|
|
27
28
|
query: Type.Optional(Type.String({ description: "Search query" })),
|
|
28
29
|
url: Type.Optional(Type.String({ description: "URL for media/link" }))
|
|
29
30
|
}, { additionalProperties: false });
|
|
30
|
-
function json(payload) {
|
|
31
|
-
return {
|
|
32
|
-
content: [{
|
|
33
|
-
type: "text",
|
|
34
|
-
text: JSON.stringify(payload, null, 2)
|
|
35
|
-
}],
|
|
36
|
-
details: payload
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
31
|
function resolveAmbientZalouserTarget(context) {
|
|
40
32
|
const deliveryContext = context?.deliveryContext;
|
|
41
33
|
const rawTarget = deliveryContext?.to;
|
|
@@ -67,7 +59,7 @@ async function executeZalouserTool(_toolCallId, params, _signal, _onUpdate, cont
|
|
|
67
59
|
isGroup: target.isGroup
|
|
68
60
|
});
|
|
69
61
|
if (!result.ok) throw new Error(result.error || "Failed to send message");
|
|
70
|
-
return
|
|
62
|
+
return jsonResult({
|
|
71
63
|
success: true,
|
|
72
64
|
messageId: result.messageId
|
|
73
65
|
});
|
|
@@ -82,7 +74,7 @@ async function executeZalouserTool(_toolCallId, params, _signal, _onUpdate, cont
|
|
|
82
74
|
isGroup: target.isGroup
|
|
83
75
|
});
|
|
84
76
|
if (!result.ok) throw new Error(result.error || "Failed to send image");
|
|
85
|
-
return
|
|
77
|
+
return jsonResult({
|
|
86
78
|
success: true,
|
|
87
79
|
messageId: result.messageId
|
|
88
80
|
});
|
|
@@ -96,17 +88,17 @@ async function executeZalouserTool(_toolCallId, params, _signal, _onUpdate, cont
|
|
|
96
88
|
isGroup: target.isGroup
|
|
97
89
|
});
|
|
98
90
|
if (!result.ok) throw new Error(result.error || "Failed to send link");
|
|
99
|
-
return
|
|
91
|
+
return jsonResult({
|
|
100
92
|
success: true,
|
|
101
93
|
messageId: result.messageId
|
|
102
94
|
});
|
|
103
95
|
}
|
|
104
|
-
case "friends": return
|
|
105
|
-
case "groups": return
|
|
106
|
-
case "me": return
|
|
96
|
+
case "friends": return jsonResult(await listZaloFriendsMatching(params.profile, params.query));
|
|
97
|
+
case "groups": return jsonResult(await listZaloGroupsMatching(params.profile, params.query));
|
|
98
|
+
case "me": return jsonResult(await getZaloUserInfo(params.profile) ?? { error: "Not authenticated" });
|
|
107
99
|
case "status": {
|
|
108
100
|
const authenticated = await checkZaloAuthenticated(params.profile);
|
|
109
|
-
return
|
|
101
|
+
return jsonResult({
|
|
110
102
|
authenticated,
|
|
111
103
|
output: authenticated ? "authenticated" : "not authenticated"
|
|
112
104
|
});
|
|
@@ -116,7 +108,7 @@ async function executeZalouserTool(_toolCallId, params, _signal, _onUpdate, cont
|
|
|
116
108
|
throw new Error(`Unknown action: ${String(params.action)}. Valid actions: send, image, link, friends, groups, me, status`);
|
|
117
109
|
}
|
|
118
110
|
} catch (err) {
|
|
119
|
-
return
|
|
111
|
+
return jsonResult({ error: formatErrorMessage(err) });
|
|
120
112
|
}
|
|
121
113
|
}
|
|
122
114
|
function createZalouserTool(context) {
|
package/dist/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as zalouserSetupWizard } from "./setup-surface-
|
|
2
|
-
import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-
|
|
3
|
-
import { t as zalouserPlugin } from "./channel-
|
|
1
|
+
import { n as zalouserSetupWizard } from "./setup-surface-BsD-g2tO.js";
|
|
2
|
+
import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-CqSIPdjp.js";
|
|
3
|
+
import { t as zalouserPlugin } from "./channel-C0ARGeer.js";
|
|
4
4
|
import { n as isZalouserMutableGroupEntry, t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
|
|
5
|
-
import { t as zalouserSetupPlugin } from "./channel.setup-
|
|
6
|
-
import { t as createZalouserTool } from "./api-
|
|
5
|
+
import { t as zalouserSetupPlugin } from "./channel.setup-Ba0dtXCS.js";
|
|
6
|
+
import { t as createZalouserTool } from "./api-Ckk_hPfU.js";
|
|
7
7
|
export { collectZalouserSecurityAuditFindings, createZalouserSetupWizardProxy, createZalouserTool, isZalouserMutableGroupEntry, zalouserPlugin, zalouserSetupAdapter, zalouserSetupPlugin, zalouserSetupWizard };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DEFAULT_ACCOUNT_ID, c as isNumericTargetId, d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, l as normalizeAccountId, m as resolveZalouserAccountSync, n as createZalouserSetupWizardProxy, o as chunkTextForOutbound, p as resolveDefaultZalouserAccountId, r as zalouserSetupAdapter, s as isDangerousNameMatchingEnabled, t as createZalouserPluginBase, u as sendPayloadWithChunkedTextAndMedia } from "./shared-
|
|
1
|
+
import { a as DEFAULT_ACCOUNT_ID, c as isNumericTargetId, d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, l as normalizeAccountId, m as resolveZalouserAccountSync, n as createZalouserSetupWizardProxy, o as chunkTextForOutbound, p as resolveDefaultZalouserAccountId, r as zalouserSetupAdapter, s as isDangerousNameMatchingEnabled, t as createZalouserPluginBase, u as sendPayloadWithChunkedTextAndMedia } from "./shared-CqSIPdjp.js";
|
|
2
2
|
import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
3
3
|
import { createAccountStatusSink, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
4
|
import { buildPassiveProbedChannelStatusSummary, coerceStatusIssueAccountId, readStatusIssueFields } from "openclaw/plugin-sdk/extension-shared";
|
|
@@ -8,7 +8,7 @@ import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString } fro
|
|
|
8
8
|
import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/core";
|
|
9
9
|
import { createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
10
10
|
import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
|
|
11
|
-
import { createEmptyChannelResult
|
|
11
|
+
import { createEmptyChannelResult } from "openclaw/plugin-sdk/channel-send-result";
|
|
12
12
|
import { createStaticReplyToModeResolver } from "openclaw/plugin-sdk/conversation-runtime";
|
|
13
13
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
14
14
|
//#region extensions/zalouser/src/group-policy.ts
|
|
@@ -193,6 +193,7 @@ function resolveZalouserOutboundSessionRoute(params) {
|
|
|
193
193
|
agentId: params.agentId,
|
|
194
194
|
channel: "zalouser",
|
|
195
195
|
accountId: params.accountId,
|
|
196
|
+
recipientSessionExact: isGroup,
|
|
196
197
|
peer: {
|
|
197
198
|
kind: isGroup ? "group" : "direct",
|
|
198
199
|
id: peerId
|
|
@@ -204,7 +205,7 @@ function resolveZalouserOutboundSessionRoute(params) {
|
|
|
204
205
|
}
|
|
205
206
|
//#endregion
|
|
206
207
|
//#region extensions/zalouser/src/channel.adapters.ts
|
|
207
|
-
const loadZalouserChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
208
|
+
const loadZalouserChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel.runtime-DYblgvY5.js"));
|
|
208
209
|
const ZALOUSER_TEXT_CHUNK_LIMIT = 2e3;
|
|
209
210
|
function resolveZalouserQrProfile(accountId) {
|
|
210
211
|
const normalized = normalizeAccountId(accountId);
|
|
@@ -217,6 +218,12 @@ function resolveZalouserOutboundChunkMode(cfg, accountId) {
|
|
|
217
218
|
function resolveZalouserOutboundTextChunkLimit(cfg, accountId) {
|
|
218
219
|
return getZalouserRuntime().channel.text.resolveTextChunkLimit(cfg, "zalouser", accountId, { fallbackLimit: ZALOUSER_TEXT_CHUNK_LIMIT });
|
|
219
220
|
}
|
|
221
|
+
function toZalouserMessageSendResult(result) {
|
|
222
|
+
return {
|
|
223
|
+
messageId: result.messageId,
|
|
224
|
+
receipt: result.receipt
|
|
225
|
+
};
|
|
226
|
+
}
|
|
220
227
|
function resolveZalouserGroupPolicyEntry(params) {
|
|
221
228
|
const account = resolveZalouserAccountSync({
|
|
222
229
|
cfg: params.cfg,
|
|
@@ -237,29 +244,32 @@ function resolveZalouserRequireMention(params) {
|
|
|
237
244
|
if (typeof entry?.requireMention === "boolean") return entry.requireMention;
|
|
238
245
|
return true;
|
|
239
246
|
}
|
|
240
|
-
async function sendZalouserTextFromContext({ to, text, accountId, cfg }) {
|
|
247
|
+
async function sendZalouserTextFromContext({ to, text, accountId, cfg, onDeliveryResult }) {
|
|
241
248
|
const { sendMessageZalouser } = await loadZalouserChannelRuntime$1();
|
|
242
249
|
const account = resolveZalouserAccountSync({
|
|
243
250
|
cfg,
|
|
244
251
|
accountId
|
|
245
252
|
});
|
|
246
253
|
const target = parseZalouserOutboundTarget(to);
|
|
247
|
-
return await sendMessageZalouser(target.threadId, text, {
|
|
254
|
+
return toZalouserMessageSendResult(await sendMessageZalouser(target.threadId, text, {
|
|
248
255
|
profile: account.profile,
|
|
249
256
|
isGroup: target.isGroup,
|
|
250
257
|
textMode: "markdown",
|
|
251
258
|
textChunkMode: resolveZalouserOutboundChunkMode(cfg, account.accountId),
|
|
252
|
-
textChunkLimit: resolveZalouserOutboundTextChunkLimit(cfg, account.accountId)
|
|
253
|
-
|
|
259
|
+
textChunkLimit: resolveZalouserOutboundTextChunkLimit(cfg, account.accountId),
|
|
260
|
+
onDeliveryResult: async (progress) => {
|
|
261
|
+
await onDeliveryResult?.(toZalouserMessageSendResult(progress));
|
|
262
|
+
}
|
|
263
|
+
}));
|
|
254
264
|
}
|
|
255
|
-
async function sendZalouserMediaFromContext({ to, text, mediaUrl, accountId, cfg, mediaLocalRoots, mediaReadFile }) {
|
|
265
|
+
async function sendZalouserMediaFromContext({ to, text, mediaUrl, accountId, cfg, mediaLocalRoots, mediaReadFile, onDeliveryResult }) {
|
|
256
266
|
const { sendMessageZalouser } = await loadZalouserChannelRuntime$1();
|
|
257
267
|
const account = resolveZalouserAccountSync({
|
|
258
268
|
cfg,
|
|
259
269
|
accountId
|
|
260
270
|
});
|
|
261
271
|
const target = parseZalouserOutboundTarget(to);
|
|
262
|
-
return await sendMessageZalouser(target.threadId, text, {
|
|
272
|
+
return toZalouserMessageSendResult(await sendMessageZalouser(target.threadId, text, {
|
|
263
273
|
profile: account.profile,
|
|
264
274
|
isGroup: target.isGroup,
|
|
265
275
|
mediaUrl,
|
|
@@ -267,14 +277,33 @@ async function sendZalouserMediaFromContext({ to, text, mediaUrl, accountId, cfg
|
|
|
267
277
|
mediaReadFile,
|
|
268
278
|
textMode: "markdown",
|
|
269
279
|
textChunkMode: resolveZalouserOutboundChunkMode(cfg, account.accountId),
|
|
270
|
-
textChunkLimit: resolveZalouserOutboundTextChunkLimit(cfg, account.accountId)
|
|
280
|
+
textChunkLimit: resolveZalouserOutboundTextChunkLimit(cfg, account.accountId),
|
|
281
|
+
onDeliveryResult: async (progress) => {
|
|
282
|
+
await onDeliveryResult?.(toZalouserMessageSendResult(progress));
|
|
283
|
+
}
|
|
284
|
+
}));
|
|
285
|
+
}
|
|
286
|
+
function adaptZalouserOutboundProgress(onDeliveryResult) {
|
|
287
|
+
return onDeliveryResult ? async (result) => {
|
|
288
|
+
await onDeliveryResult(toZalouserOutboundDeliveryResult(result));
|
|
289
|
+
} : void 0;
|
|
290
|
+
}
|
|
291
|
+
function toZalouserOutboundDeliveryResult(result) {
|
|
292
|
+
return createEmptyChannelResult("zalouser", {
|
|
293
|
+
messageId: result.messageId ?? result.receipt.primaryPlatformMessageId ?? result.receipt.platformMessageIds[0],
|
|
294
|
+
receipt: result.receipt
|
|
271
295
|
});
|
|
272
296
|
}
|
|
273
|
-
const zalouserRawSendResultAdapter =
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
})
|
|
297
|
+
const zalouserRawSendResultAdapter = {
|
|
298
|
+
sendText: async ({ onDeliveryResult, ...ctx }) => toZalouserOutboundDeliveryResult(await sendZalouserTextFromContext({
|
|
299
|
+
...ctx,
|
|
300
|
+
onDeliveryResult: adaptZalouserOutboundProgress(onDeliveryResult)
|
|
301
|
+
})),
|
|
302
|
+
sendMedia: async ({ onDeliveryResult, ...ctx }) => toZalouserOutboundDeliveryResult(await sendZalouserMediaFromContext({
|
|
303
|
+
...ctx,
|
|
304
|
+
onDeliveryResult: adaptZalouserOutboundProgress(onDeliveryResult)
|
|
305
|
+
}))
|
|
306
|
+
};
|
|
278
307
|
const zalouserMessageAdapter = defineChannelMessageAdapter({
|
|
279
308
|
id: "zalouser",
|
|
280
309
|
durableFinal: { capabilities: {
|
|
@@ -535,8 +564,8 @@ function collectZalouserStatusIssues(accounts) {
|
|
|
535
564
|
}
|
|
536
565
|
//#endregion
|
|
537
566
|
//#region extensions/zalouser/src/channel.ts
|
|
538
|
-
const loadZalouserChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
539
|
-
const zalouserSetupWizardProxy = createZalouserSetupWizardProxy(async () => (await import("./setup-surface-
|
|
567
|
+
const loadZalouserChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-DYblgvY5.js"));
|
|
568
|
+
const zalouserSetupWizardProxy = createZalouserSetupWizardProxy(async () => (await import("./setup-surface-BsD-g2tO.js").then((n) => n.t)).zalouserSetupWizard);
|
|
540
569
|
function mapUser(params) {
|
|
541
570
|
return {
|
|
542
571
|
kind: "user",
|
|
@@ -653,7 +682,7 @@ const zalouserPlugin = createChatChannelPlugin({
|
|
|
653
682
|
setStatus: ctx.setStatus
|
|
654
683
|
});
|
|
655
684
|
ctx.log?.info(`[${account.accountId}] starting zalouser provider${userLabel}`);
|
|
656
|
-
const { monitorZalouserProvider } = await import("./monitor-
|
|
685
|
+
const { monitorZalouserProvider } = await import("./monitor-D3DfqQDG.js");
|
|
657
686
|
return monitorZalouserProvider({
|
|
658
687
|
account,
|
|
659
688
|
config: ctx.cfg,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as zalouserPlugin } from "./channel-
|
|
1
|
+
import { t as zalouserPlugin } from "./channel-C0ARGeer.js";
|
|
2
2
|
export { zalouserPlugin };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
|
|
2
|
-
import { a as listZaloGroupMembers, b as waitForZaloQrLogin, c as logoutZaloProfile, i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, y as startZaloQrLogin } from "./zalo-js-
|
|
3
|
-
import { a as sendReactionZalouser, i as sendMessageZalouser } from "./send-
|
|
2
|
+
import { a as listZaloGroupMembers, b as waitForZaloQrLogin, c as logoutZaloProfile, i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, y as startZaloQrLogin } from "./zalo-js-CygJB5qD.js";
|
|
3
|
+
import { a as sendReactionZalouser, i as sendMessageZalouser } from "./send-D1GpX8wV.js";
|
|
4
4
|
import { resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
|
|
5
5
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
6
6
|
//#region extensions/zalouser/src/probe.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as zalouserSetupWizard } from "./setup-surface-
|
|
2
|
-
import { r as zalouserSetupAdapter, t as createZalouserPluginBase } from "./shared-
|
|
1
|
+
import { n as zalouserSetupWizard } from "./setup-surface-BsD-g2tO.js";
|
|
2
|
+
import { r as zalouserSetupAdapter, t as createZalouserPluginBase } from "./shared-CqSIPdjp.js";
|
|
3
3
|
//#region extensions/zalouser/src/channel.setup.ts
|
|
4
4
|
const zalouserSetupPlugin = { ...createZalouserPluginBase({
|
|
5
5
|
setupWizard: zalouserSetupWizard,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as formatZalouserMessageSidFull, c as findZalouserGroupEntry, l as isZalouserGroupEntryAllowed, o as resolveZalouserMessageSid, r as getZalouserRuntime, s as buildZalouserGroupCandidates } from "./channel-
|
|
2
|
-
import { o as listZaloGroups, r as listZaloFriends, u as resolveZaloGroupContext, v as startZaloListener } from "./zalo-js-
|
|
3
|
-
import { i as sendMessageZalouser, o as sendSeenZalouser, s as sendTypingZalouser, t as sendDeliveredZalouser } from "./send-
|
|
1
|
+
import { a as formatZalouserMessageSidFull, c as findZalouserGroupEntry, l as isZalouserGroupEntryAllowed, o as resolveZalouserMessageSid, r as getZalouserRuntime, s as buildZalouserGroupCandidates } from "./channel-C0ARGeer.js";
|
|
2
|
+
import { o as listZaloGroups, r as listZaloFriends, u as resolveZaloGroupContext, v as startZaloListener } from "./zalo-js-CygJB5qD.js";
|
|
3
|
+
import { i as sendMessageZalouser, o as sendSeenZalouser, s as sendTypingZalouser, t as sendDeliveredZalouser } from "./send-D1GpX8wV.js";
|
|
4
4
|
import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { mergeAllowlist, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as zalouserSetupWizard } from "./setup-surface-
|
|
2
|
-
import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-
|
|
3
|
-
import { i as setZalouserRuntime, t as zalouserPlugin } from "./channel-
|
|
1
|
+
import { n as zalouserSetupWizard } from "./setup-surface-BsD-g2tO.js";
|
|
2
|
+
import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-CqSIPdjp.js";
|
|
3
|
+
import { i as setZalouserRuntime, t as zalouserPlugin } from "./channel-C0ARGeer.js";
|
|
4
4
|
import { n as isZalouserMutableGroupEntry, t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
|
|
5
|
-
import { t as zalouserSetupPlugin } from "./channel.setup-
|
|
6
|
-
import { t as createZalouserTool } from "./api-
|
|
5
|
+
import { t as zalouserSetupPlugin } from "./channel.setup-Ba0dtXCS.js";
|
|
6
|
+
import { t as createZalouserTool } from "./api-Ckk_hPfU.js";
|
|
7
7
|
import { createChannelMessageReplyPipeline } from "openclaw/plugin-sdk/channel-outbound";
|
|
8
8
|
import { buildBaseAccountStatusSnapshot } from "openclaw/plugin-sdk/status-helpers";
|
|
9
9
|
import { formatAllowFromLowercase, mergeAllowlist, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as TextStyle, _ as sendZaloTypingEvent, f as sendZaloDeliveredEvent, g as sendZaloTextMessage, h as sendZaloSeenEvent, m as sendZaloReaction, p as sendZaloLink, x as createZalouserSendReceipt } from "./zalo-js-
|
|
1
|
+
import { S as TextStyle, _ as sendZaloTypingEvent, f as sendZaloDeliveredEvent, g as sendZaloTextMessage, h as sendZaloSeenEvent, m as sendZaloReaction, p as sendZaloLink, x as createZalouserSendReceipt } from "./zalo-js-CygJB5qD.js";
|
|
2
2
|
//#region extensions/zalouser/src/text-styles.ts
|
|
3
3
|
const ESCAPE_SENTINEL_START = "";
|
|
4
4
|
const ESCAPE_SENTINEL_END = "";
|
|
@@ -394,26 +394,28 @@ function stripCodeFenceIndent(line, indent) {
|
|
|
394
394
|
const ZALO_TEXT_LIMIT = 2e3;
|
|
395
395
|
const DEFAULT_TEXT_CHUNK_MODE = "length";
|
|
396
396
|
async function sendMessageZalouser(threadId, text, options = {}) {
|
|
397
|
-
const
|
|
397
|
+
const { onDeliveryResult, ...transportOptions } = options;
|
|
398
|
+
const prepared = transportOptions.textMode === "markdown" ? parseZalouserTextStyles(text) : {
|
|
398
399
|
text,
|
|
399
|
-
styles:
|
|
400
|
+
styles: transportOptions.textStyles
|
|
400
401
|
};
|
|
401
|
-
const textChunkLimit =
|
|
402
|
-
const chunks = splitStyledText(prepared.text, (prepared.styles?.length ?? 0) > 0 ? prepared.styles : void 0, textChunkLimit,
|
|
402
|
+
const textChunkLimit = transportOptions.textChunkLimit ?? ZALO_TEXT_LIMIT;
|
|
403
|
+
const chunks = splitStyledText(prepared.text, (prepared.styles?.length ?? 0) > 0 ? prepared.styles : void 0, textChunkLimit, transportOptions.textChunkMode);
|
|
403
404
|
let lastResult = null;
|
|
404
405
|
for (const [index, chunk] of chunks.entries()) {
|
|
405
406
|
const chunkOptions = index === 0 ? {
|
|
406
|
-
...
|
|
407
|
+
...transportOptions,
|
|
407
408
|
textStyles: chunk.styles
|
|
408
409
|
} : {
|
|
409
|
-
...
|
|
410
|
+
...transportOptions,
|
|
410
411
|
caption: void 0,
|
|
411
412
|
mediaLocalRoots: void 0,
|
|
412
413
|
mediaUrl: void 0,
|
|
413
414
|
textStyles: chunk.styles
|
|
414
415
|
};
|
|
415
416
|
const result = await sendZaloTextMessage(threadId, chunk.text, chunkOptions);
|
|
416
|
-
if (!result.ok)
|
|
417
|
+
if (!result.ok) throw new Error(result.error || "Failed to send Zalouser message");
|
|
418
|
+
await onDeliveryResult?.(result);
|
|
417
419
|
lastResult = result;
|
|
418
420
|
}
|
|
419
421
|
return lastResult ?? {
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as zalouserSetupPlugin } from "./channel.setup-
|
|
1
|
+
import { t as zalouserSetupPlugin } from "./channel.setup-Ba0dtXCS.js";
|
|
2
2
|
export { zalouserSetupPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, m as resolveZalouserAccountSync, p as resolveDefaultZalouserAccountId } from "./shared-
|
|
2
|
-
import { b as waitForZaloQrLogin, c as logoutZaloProfile, d as resolveZaloGroupsByEntries, l as resolveZaloAllowFromEntries, y as startZaloQrLogin } from "./zalo-js-
|
|
1
|
+
import { d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, m as resolveZalouserAccountSync, p as resolveDefaultZalouserAccountId } from "./shared-CqSIPdjp.js";
|
|
2
|
+
import { b as waitForZaloQrLogin, c as logoutZaloProfile, d as resolveZaloGroupsByEntries, l as resolveZaloAllowFromEntries, y as startZaloQrLogin } from "./zalo-js-CygJB5qD.js";
|
|
3
3
|
import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { DEFAULT_ACCOUNT_ID, addWildcardAllowFrom, createSetupTranslator, formatCliCommand, formatDocsLink, formatResolvedUnresolvedNote, mergeAllowFromEntries, normalizeAccountId, patchScopedAccountConfig } from "openclaw/plugin-sdk/setup";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
@@ -18,7 +18,7 @@ import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
|
18
18
|
import { z } from "zod";
|
|
19
19
|
import { createDangerousNameMatchingMutableAllowlistWarningCollector } from "openclaw/plugin-sdk/channel-policy";
|
|
20
20
|
//#region extensions/zalouser/src/accounts.ts
|
|
21
|
-
const loadZalouserAccountsRuntime = createLazyRuntimeModule(() => import("./accounts.runtime-
|
|
21
|
+
const loadZalouserAccountsRuntime = createLazyRuntimeModule(() => import("./accounts.runtime-BK4FKoae.js"));
|
|
22
22
|
const { listAccountIds: listZalouserAccountIds, resolveDefaultAccountId: resolveDefaultZalouserAccountId } = createAccountListHelpers("zalouser", { implicitDefaultAccount: {
|
|
23
23
|
channelKeys: ["profile"],
|
|
24
24
|
envVars: ["ZALOUSER_PROFILE", "ZCA_PROFILE"]
|
|
@@ -10,7 +10,7 @@ import { asDateTimestampMs, asFiniteNumberInRange, isFutureDateTimestampMs, pars
|
|
|
10
10
|
import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
|
|
11
11
|
import { privateFileStoreSync, readRegularFileSync, statRegularFileSync, withTimeout } from "openclaw/plugin-sdk/security-runtime";
|
|
12
12
|
import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
|
|
13
|
-
import { sleep } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
13
|
+
import { sleep, truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
14
14
|
//#region extensions/zalouser/src/zca-constants.ts
|
|
15
15
|
const ThreadType = {
|
|
16
16
|
User: 0,
|
|
@@ -49,7 +49,7 @@ const TextStyle = {
|
|
|
49
49
|
};
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region extensions/zalouser/src/reaction.ts
|
|
52
|
-
const REACTION_ALIAS_MAP = new Map([
|
|
52
|
+
const REACTION_ALIAS_MAP = /* @__PURE__ */ new Map([
|
|
53
53
|
["like", Reactions.LIKE],
|
|
54
54
|
["👍", Reactions.LIKE],
|
|
55
55
|
[":+1:", Reactions.LIKE],
|
|
@@ -637,6 +637,9 @@ function toInboundMessage(message, ownUserId) {
|
|
|
637
637
|
raw: message
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
+
function truncatePayloadText(text) {
|
|
641
|
+
return truncateUtf16Safe(text, 2e3);
|
|
642
|
+
}
|
|
640
643
|
function zalouserSessionExists(profileInput) {
|
|
641
644
|
return readCredentials(normalizeProfile(profileInput)) !== null;
|
|
642
645
|
}
|
|
@@ -728,7 +731,7 @@ async function listZaloGroupMembers(profileInput, groupId) {
|
|
|
728
731
|
avatar: member.avatar || void 0
|
|
729
732
|
});
|
|
730
733
|
}
|
|
731
|
-
const uniqueIds = Array.from(new Set([
|
|
734
|
+
const uniqueIds = Array.from(/* @__PURE__ */ new Set([
|
|
732
735
|
...memberIds,
|
|
733
736
|
...memVerIds,
|
|
734
737
|
...currentById.keys()
|
|
@@ -794,7 +797,7 @@ async function sendZaloTextMessage(threadId, text, options = {}) {
|
|
|
794
797
|
contentType: media.contentType,
|
|
795
798
|
kind: media.kind
|
|
796
799
|
});
|
|
797
|
-
const payloadText = (text || options.caption || "")
|
|
800
|
+
const payloadText = truncatePayloadText(text || options.caption || "");
|
|
798
801
|
const textStyles = clampTextStyles(payloadText, options.textStyles);
|
|
799
802
|
if (media.kind === "audio") {
|
|
800
803
|
let textMessageId;
|
|
@@ -840,7 +843,7 @@ async function sendZaloTextMessage(threadId, text, options = {}) {
|
|
|
840
843
|
})
|
|
841
844
|
};
|
|
842
845
|
}
|
|
843
|
-
const payloadText = text
|
|
846
|
+
const payloadText = truncatePayloadText(text);
|
|
844
847
|
const textStyles = clampTextStyles(payloadText, options.textStyles);
|
|
845
848
|
const messageId = extractSendMessageId(await api.sendMessage(textStyles ? {
|
|
846
849
|
msg: payloadText,
|
|
@@ -1194,7 +1197,8 @@ async function startZaloListener(params) {
|
|
|
1194
1197
|
params.onError(error);
|
|
1195
1198
|
};
|
|
1196
1199
|
const onError = (error) => {
|
|
1197
|
-
|
|
1200
|
+
const wrapped = error instanceof Error ? error : new Error(String(error));
|
|
1201
|
+
failListener(wrapped);
|
|
1198
1202
|
};
|
|
1199
1203
|
const onClosed = (code, reason) => {
|
|
1200
1204
|
failListener(/* @__PURE__ */ new Error(`Zalo listener closed (${code}): ${reason || "no reason"}`));
|
|
@@ -8,7 +8,7 @@ pako
|
|
|
8
8
|
|
|
9
9
|
__Why pako is cool:__
|
|
10
10
|
|
|
11
|
-
- Results are binary equal to well known [zlib](http://www.zlib.net/) (now contains ported zlib v1.2
|
|
11
|
+
- Results are binary equal to well known [zlib](http://www.zlib.net/) (now contains ported zlib v1.3.2).
|
|
12
12
|
- Almost as fast in modern JS engines as C implementation (see benchmarks).
|
|
13
13
|
- Works in browsers, you can browserify any separate component.
|
|
14
14
|
|
|
@@ -19,30 +19,16 @@ develop native C modules for CPU-intensive tasks. Enjoy the result!
|
|
|
19
19
|
__Benchmarks:__
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
node
|
|
22
|
+
node v24, 1mb input sample:
|
|
23
23
|
|
|
24
24
|
```
|
|
25
|
-
deflate-
|
|
26
|
-
deflate-pako x 10.
|
|
27
|
-
deflate-zlib x
|
|
28
|
-
gzip-pako x
|
|
29
|
-
inflate-
|
|
30
|
-
inflate-
|
|
31
|
-
|
|
32
|
-
ungzip-pako x 115 ops/sec ±1.92% (80 runs sampled)
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
node v14.15.0 (google's zlib), 1mb output sample:
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
deflate-imaya x 4.93 ops/sec ±3.09% (16 runs sampled)
|
|
39
|
-
deflate-pako x 10.22 ops/sec ±0.33% (29 runs sampled)
|
|
40
|
-
deflate-zlib x 18.48 ops/sec ±0.24% (48 runs sampled)
|
|
41
|
-
gzip-pako x 10.16 ops/sec ±0.25% (28 runs sampled)
|
|
42
|
-
inflate-imaya x 110 ops/sec ±0.41% (77 runs sampled)
|
|
43
|
-
inflate-pako x 134 ops/sec ±0.66% (83 runs sampled)
|
|
44
|
-
inflate-zlib x 402 ops/sec ±0.74% (87 runs sampled)
|
|
45
|
-
ungzip-pako x 113 ops/sec ±0.62% (80 runs sampled)
|
|
25
|
+
deflate-pako x 14.27 ops/sec ±3.41% (37 runs sampled)
|
|
26
|
+
deflate-pako-zlib-hash x 10.60 ops/sec ±0.50% (29 runs sampled)
|
|
27
|
+
deflate-zlib x 30.30 ops/sec ±0.61% (51 runs sampled)
|
|
28
|
+
gzip-pako x 13.48 ops/sec ±0.50% (36 runs sampled)
|
|
29
|
+
inflate-pako x 138 ops/sec ±1.26% (75 runs sampled)
|
|
30
|
+
inflate-zlib x 397 ops/sec ±1.37% (81 runs sampled)
|
|
31
|
+
ungzip-pako x 125 ops/sec ±1.46% (73 runs sampled)
|
|
46
32
|
```
|
|
47
33
|
|
|
48
34
|
zlib's test is partially affected by marshalling (that make sense for inflate only).
|
|
@@ -143,14 +129,6 @@ Pako does not contain some specific zlib functions:
|
|
|
143
129
|
modes.
|
|
144
130
|
|
|
145
131
|
|
|
146
|
-
pako for enterprise
|
|
147
|
-
-------------------
|
|
148
|
-
|
|
149
|
-
Available as part of the Tidelift Subscription
|
|
150
|
-
|
|
151
|
-
The maintainers of pako and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pako?utm_source=npm-pako&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
152
|
-
|
|
153
|
-
|
|
154
132
|
Authors
|
|
155
133
|
-------
|
|
156
134
|
|