@openclaw/feishu 2026.7.2-beta.7 → 2026.7.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/.setup/accounts-CfuPSCip.mjs +516 -0
- package/dist/.setup/app-registration-D18iu_PK.mjs +204 -0
- package/dist/.setup/channel-CiFS4inh.mjs +2661 -0
- package/dist/.setup/channel.runtime-B9LCBnp3.mjs +641 -0
- package/dist/.setup/client-DLqNWY5r.mjs +161 -0
- package/dist/.setup/conversation-id-CdLdoot3.mjs +143 -0
- package/dist/.setup/drive-Cy1tmfSn.mjs +934 -0
- package/dist/.setup/json-response-DXajw_FU.mjs +9 -0
- package/dist/.setup/legacy-state-migrations-api-CVW3tHfw.mjs +73 -0
- package/dist/.setup/legacy-state-migrations-api-jN6Z0iq0.mjs +2 -0
- package/dist/.setup/monitor-C4sFALTA.mjs +232 -0
- package/dist/.setup/monitor.account-Do7egFpi.mjs +5853 -0
- package/dist/.setup/probe-DbUBx0Px.mjs +162 -0
- package/dist/.setup/runtime-setter-api-CG-RC4_r.mjs +3 -0
- package/dist/.setup/secret-contract-DLaBl9m4.mjs +137 -0
- package/dist/.setup/secret-contract-api-ZtO0BWHd.mjs +3 -0
- package/dist/.setup/security-audit-Duuj2PkP.mjs +11 -0
- package/dist/.setup/security-audit-shared-BIHeF-S_.mjs +38 -0
- package/dist/.setup/send-DkB3ifwO.mjs +1264 -0
- package/dist/.setup/send-result-COI_ANtb.mjs +287 -0
- package/dist/.setup/session-conversation-CWBrUzmY.mjs +27 -0
- package/dist/.setup/setup-api-DY9H9ISg.mjs +3 -0
- package/dist/.setup/subagent-hooks-BQhuBlyy.mjs +235 -0
- package/dist/.setup/thread-bindings-V0bwk0A1.mjs +222 -0
- package/dist/api.js +256 -431
- package/dist/channel-plugin-api.js +1 -1
- package/dist/contract-api.js +3 -3
- package/dist/legacy-state-migrations-api.js +2 -0
- package/dist/runtime-api.js +3 -2
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/session-key-api.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +9 -3
- package/dist/subagent-hooks-api.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/README.md +0 -13
- package/node_modules/@larksuiteoapi/node-sdk/README.zh.md +0 -12
- package/node_modules/@larksuiteoapi/node-sdk/es/index.js +3084 -8950
- package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +3083 -8951
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/README.md +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/index.js +52 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/README.md +19 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/index.d.ts +32 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/index.js +139 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/tests/index.js +46 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/README.md +49 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/index.d.ts +31 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/index.js +112 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/package.json +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/tests/index.js +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/README.md +22 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/index.d.ts +45 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/index.js +86 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/README.md +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/index.d.ts +56 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/index.js +112 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/package.json +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/tests/index.js +158 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/util/fs.js +11 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/README.md +102 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/bench/index.js +87 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/bench/suite.js +46 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/index.js +335 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/package.json +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/tests/index.js +100 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/CHANGELOG.md +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/README.md +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/index.d.ts +10 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/index.js +38 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/index.js +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/README.md +19 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/index.d.ts +22 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/index.js +65 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/tests/index.js +60 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/.npmignore +3 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/README.md +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/index.d.ts +32 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/index.js +48 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/tests/index.js +33 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/README.md +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/index.d.ts +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/index.js +104 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/index.js +74 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/README.md +15 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/assert/strict.d.ts +68 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/assert.d.ts +1077 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/async_hooks.d.ts +711 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/buffer.d.ts +1799 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/child_process.d.ts +1362 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/console.d.ts +93 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/constants.d.ts +14 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/crypto.d.ts +3954 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dgram.d.ts +537 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/diagnostics_channel.d.ts +794 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dns/promises.d.ts +497 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dns.d.ts +876 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/domain.d.ts +150 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/events.d.ts +1008 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/fs/promises.d.ts +1471 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/fs.d.ts +4786 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/globals.d.ts +150 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/http.d.ts +2172 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/http2.d.ts +2489 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/https.d.ts +400 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/index.d.ts +115 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector.d.ts +264 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector.generated.d.ts +4406 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/module.d.ts +726 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/net.d.ts +970 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/os.d.ts +498 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/package.json +155 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path.d.ts +178 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/perf_hooks.d.ts +604 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/process.d.ts +2217 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/punycode.d.ts +89 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/querystring.d.ts +139 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/quic.d.ts +978 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/readline/promises.d.ts +158 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/readline.d.ts +508 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/repl.d.ts +420 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/sea.d.ts +47 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/sqlite.d.ts +1123 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/consumers.d.ts +114 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/iter.d.ts +451 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/web.d.ts +300 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream.d.ts +1806 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/string_decoder.d.ts +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/test.d.ts +2389 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/timers.d.ts +149 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/tls.d.ts +1193 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/trace_events.d.ts +103 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/index.d.ts +117 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.7/index.d.ts +117 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/tty.d.ts +225 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/url.d.ts +556 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/util.d.ts +1677 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/v8.d.ts +1062 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/vm.d.ts +1136 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/wasi.d.ts +131 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/worker_threads.d.ts +669 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/zlib.d.ts +589 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/CHANGELOG.md +62 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/README.md +297 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.js +728 -170
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/browser/axios.cjs +871 -188
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.js +871 -188
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/node/axios.cjs +1037 -225
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.cts +102 -74
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.ts +100 -68
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/fetch.js +64 -11
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/http.js +140 -67
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/xhr.js +52 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/Axios.js +43 -20
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosError.js +33 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosHeaders.js +124 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/InterceptorManager.js +107 -8
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/buildFullPath.js +41 -15
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/dispatchRequest.js +8 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/mergeConfig.js +19 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/defaults/index.js +2 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/combineURLs.js +11 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/composeSignals.js +12 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToJSON.js +11 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseHeaders.js +5 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js +5 -17
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +300 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/throttle.js +3 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/toFormData.js +17 -23
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/utils.js +151 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/package.json +21 -19
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/CHANGELOG.md +1 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/README.md +41 -46
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/index.d.ts +2 -13
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/lib/form_data.js +83 -75
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/lib/populate.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/package.json +7 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/README.md +553 -266
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.js +1985 -3177
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js +1244 -1966
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.js +2005 -3330
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/README.md +70 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/index.d.ts +193 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/index.js +1185 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/test.js +54 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/api/annotations.json +1 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/api/http.json +1 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/api.json +6 -12
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/descriptor.json +87 -170
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/descriptor.proto +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/source_context.json +1 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/type.json +7 -14
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/index.d.ts +703 -1066
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/package.json +52 -25
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/scripts/postinstall.js +32 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/common.js +8 -14
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/converter.js +51 -85
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/decoder.js +61 -205
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/encoder.js +7 -27
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/enum.js +5 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/field.js +19 -71
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index-light.js +29 -29
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index-minimal.js +13 -12
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index.js +6 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/mapfield.js +8 -26
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/message.js +11 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/method.js +7 -30
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/namespace.js +10 -26
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/object.js +31 -41
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/oneof.js +1 -12
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/parse.js +47 -169
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/reader.js +50 -412
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/reader_buffer.js +5 -31
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/root.js +4 -16
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/rpc/service.js +5 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/service.js +2 -15
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/tokenize.js +1 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/type.js +36 -80
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/typescript.jsdoc +15 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/longbits.js +6 -10
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/minimal.js +54 -71
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util.js +17 -51
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/verifier.js +14 -19
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/wrappers.js +3 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/writer.js +191 -424
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/writer_buffer.js +26 -41
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/tsconfig.json +5 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/CHANGELOG.md +0 -11
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/dist/qs.js +17 -17
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/parse.js +8 -19
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/utils.js +8 -47
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/package.json +5 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/parse.js +0 -230
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/utils.js +0 -194
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/README.md +6 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/agent.d.ts +30 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/client.d.ts +129 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/connector.d.ts +36 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/dispatcher.d.ts +253 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/errors.d.ts +177 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/fetch.d.ts +231 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/handlers.d.ts +14 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/header.d.ts +165 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/index.d.ts +93 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/interceptors.d.ts +80 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/package.json +55 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/round-robin-pool.d.ts +39 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/snapshot-agent.d.ts +113 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/webidl.d.ts +346 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/websocket.d.ts +188 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/lib/permessage-deflate.js +3 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/types/index.d.ts +698 -12522
- package/node_modules/typebox/build/compile/validator.d.mts +4 -1
- package/node_modules/typebox/build/guard/guard.d.mts +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +2 -5
- package/node_modules/typebox/build/guard/string.mjs +4 -16
- package/node_modules/typebox/build/schema/engine/_functions.mjs +15 -34
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -8
- package/node_modules/typebox/build/typebox.d.mts +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +32 -29
- package/openclaw.plugin.json +105 -190
- package/package.json +10 -26
- package/skills/feishu-doc/SKILL.md +0 -4
- package/skills/feishu-drive/SKILL.md +2 -5
- package/dist/accounts-u9X5Wsan.js +0 -469
- package/dist/app-registration-cN1bVV6s.js +0 -201
- package/dist/channel-CScE82zY.js +0 -2795
- package/dist/channel.runtime-B21e1E0r.js +0 -889
- package/dist/client-Dcbs6vml.js +0 -248
- package/dist/conversation-id-BeJL-wq7.js +0 -146
- package/dist/doctor-contract-BiD9tyIv.js +0 -102
- package/dist/doctor-contract-api.js +0 -2
- package/dist/drive-hSi_Utp0.js +0 -1075
- package/dist/json-response-CheljwGr.js +0 -9
- package/dist/media-CEUraFOR.js +0 -1348
- package/dist/monitor-DngbaA6a.js +0 -62
- package/dist/monitor.account-BnTWCw55.js +0 -7153
- package/dist/monitor.startup-CqH2tiJq.js +0 -143
- package/dist/probe-p3POS2RN.js +0 -219
- package/dist/secret-contract-BCpDLdg9.js +0 -73
- package/dist/security-audit-D7WK_BHh.js +0 -11
- package/dist/security-audit-shared-BgpY7AiJ.js +0 -33
- package/dist/send-result-B9_BpUPx.js +0 -770
- package/dist/session-conversation-BksWrfzm.js +0 -27
- package/dist/subagent-hooks-Cx1cX7rW.js +0 -239
- package/dist/thread-bindings-N3wkgkIN.js +0 -220
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/README.md +0 -70
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.d.ts +0 -87
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.generated.d.ts +0 -417
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.js +0 -1356
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.LICENSE +0 -201
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.d.ts +0 -20
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.generated.d.ts +0 -49
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.js +0 -951
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.d.ts +0 -19
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.generated.d.ts +0 -33
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.js +0 -1276
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/compiler/plugin.json +0 -126
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +0 -47
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/typescript.js +0 -25
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/aspromise.d.ts +0 -13
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/aspromise.js +0 -52
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/base64.d.ts +0 -32
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/base64.js +0 -146
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/codegen.d.ts +0 -31
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/codegen.js +0 -118
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/eventemitter.d.ts +0 -45
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/eventemitter.js +0 -86
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/fetch.d.ts +0 -56
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/fetch.js +0 -112
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/float.js +0 -335
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/path.d.ts +0 -22
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/path.js +0 -100
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/pool.d.ts +0 -32
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/pool.js +0 -48
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/utf8.d.ts +0 -24
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/utf8.js +0 -190
- package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1348
- package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -295
- package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
- package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1177
- package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -295
- package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
- package/node_modules/mdast-util-from-markdown/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/README.md +0 -69
- package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/index.d.ts +0 -50
- package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/package.json +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/LICENSE +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/README.md +0 -15
- package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/index.d.ts +0 -1123
- package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/package.json +0 -47
- package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/LICENSE +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/README.md +0 -82
- package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/index.d.ts +0 -63
- package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/package.json +0 -26
- package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/LICENSE +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/README.md +0 -15
- package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/index.d.ts +0 -119
- package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/package.json +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/index.d.ts +0 -6
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/index.js +0 -2132
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/package.json +0 -78
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/readme.md +0 -152
- package/node_modules/mdast-util-from-markdown/node_modules/debug/LICENSE +0 -20
- package/node_modules/mdast-util-from-markdown/node_modules/debug/README.md +0 -481
- package/node_modules/mdast-util-from-markdown/node_modules/debug/package.json +0 -64
- package/node_modules/mdast-util-from-markdown/node_modules/debug/src/browser.js +0 -272
- package/node_modules/mdast-util-from-markdown/node_modules/debug/src/common.js +0 -292
- package/node_modules/mdast-util-from-markdown/node_modules/debug/src/index.js +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/debug/src/node.js +0 -263
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.d.ts +0 -13
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.js +0 -32
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.js +0 -19
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/package.json +0 -90
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/readme.md +0 -136
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.js +0 -86
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.min.js +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.mjs +0 -84
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/index.d.ts +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/license +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.d.ts +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.js +0 -31
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.min.js +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.mjs +0 -29
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/readme.md +0 -112
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/default.js +0 -9
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/development.d.ts +0 -84
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/development.js +0 -238
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/package.json +0 -80
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/readme.md +0 -360
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/index.d.ts +0 -2
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/index.js +0 -5
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/lib/index.js +0 -108
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/package.json +0 -78
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/readme.md +0 -218
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.d.ts +0 -82
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.js +0 -68
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.d.ts +0 -16
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.js +0 -1152
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.js +0 -101
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.js +0 -717
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.js +0 -99
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.js +0 -445
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.js +0 -244
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.d.ts +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.js +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.js +0 -19
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.js +0 -141
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.d.ts +0 -35
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.js +0 -270
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.d.ts +0 -82
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.js +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.d.ts +0 -16
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.js +0 -1060
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.d.ts +0 -73
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.js +0 -85
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.js +0 -611
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.js +0 -79
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.d.ts +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.js +0 -362
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.js +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.d.ts +0 -8
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.js +0 -212
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.d.ts +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.js +0 -56
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.d.ts +0 -9
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.js +0 -18
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.d.ts +0 -13
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.js +0 -115
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/package.json +0 -100
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/readme.md +0 -488
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.d.ts +0 -35
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.js +0 -256
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.js +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -300
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -514
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -202
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -233
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -989
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -656
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -110
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -62
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -210
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.js +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.js +0 -241
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -460
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -177
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.js +0 -163
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -195
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -876
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.js +0 -560
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -102
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -55
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.js +0 -213
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -185
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/package.json +0 -74
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/readme.md +0 -171
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.js +0 -255
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.d.ts +0 -42
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.js +0 -206
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/readme.md +0 -234
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.js +0 -172
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.js +0 -148
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/package.json +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/readme.md +0 -224
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.js +0 -67
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.js +0 -64
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/package.json +0 -55
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/readme.md +0 -225
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.js +0 -169
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.d.ts +0 -36
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.js +0 -158
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/package.json +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/readme.md +0 -229
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.js +0 -44
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/readme.md +0 -205
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.d.ts +0 -195
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.js +0 -252
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.d.ts +0 -195
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.js +0 -246
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/readme.md +0 -446
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.js +0 -89
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.d.ts +0 -41
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.js +0 -81
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/readme.md +0 -219
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.js +0 -38
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.d.ts +0 -18
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.js +0 -27
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/package.json +0 -59
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/readme.md +0 -205
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.js +0 -143
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/package.json +0 -52
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/readme.md +0 -201
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.js +0 -53
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.d.ts +0 -14
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.js +0 -45
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/package.json +0 -63
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/readme.md +0 -179
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.d.ts +0 -14
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.js +0 -33
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/package.json +0 -47
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/readme.md +0 -176
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.js +0 -93
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/package.json +0 -47
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/readme.md +0 -193
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.js +0 -33
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/package.json +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.js +0 -32
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/package.json +0 -48
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/readme.md +0 -238
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.js +0 -107
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/package.json +0 -59
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.js +0 -228
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/package.json +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/readme.md +0 -181
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.js +0 -158
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.js +0 -44
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.js +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.js +0 -453
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.js +0 -109
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/package.json +0 -43
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/readme.md +0 -168
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/index.d.ts +0 -1312
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/package.json +0 -71
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/readme.md +0 -151
- package/node_modules/mdast-util-from-markdown/node_modules/ms/index.js +0 -162
- package/node_modules/mdast-util-from-markdown/node_modules/ms/license.md +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/ms/package.json +0 -38
- package/node_modules/mdast-util-from-markdown/node_modules/ms/readme.md +0 -59
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/index.d.ts +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/index.js +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.js +0 -84
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/package.json +0 -80
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/readme.md +0 -206
- package/node_modules/mdast-util-from-markdown/package.json +0 -99
- package/node_modules/mdast-util-from-markdown/readme.md +0 -535
- package/node_modules/mdast-util-gfm-table/index.d.ts +0 -54
- package/node_modules/mdast-util-gfm-table/index.js +0 -2
- package/node_modules/mdast-util-gfm-table/lib/index.d.ts +0 -51
- package/node_modules/mdast-util-gfm-table/lib/index.js +0 -300
- package/node_modules/mdast-util-gfm-table/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/LICENSE +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/README.md +0 -15
- package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/index.d.ts +0 -1123
- package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/package.json +0 -47
- package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/LICENSE +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/README.md +0 -15
- package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/index.d.ts +0 -119
- package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/package.json +0 -60
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/index.d.ts +0 -6
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/index.js +0 -2132
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/package.json +0 -78
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/readme.md +0 -152
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.js +0 -32
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.js +0 -19
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/package.json +0 -90
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/readme.md +0 -136
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.js +0 -86
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.min.js +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.mjs +0 -84
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/index.d.ts +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/license +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.d.ts +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.js +0 -31
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.min.js +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.mjs +0 -29
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/package.json +0 -57
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/readme.md +0 -112
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/default.js +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/development.d.ts +0 -84
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/development.js +0 -238
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/package.json +0 -80
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/readme.md +0 -360
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/index.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/index.js +0 -36
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/package.json +0 -73
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/readme.md +0 -150
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.d.ts +0 -171
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.js +0 -393
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/package.json +0 -77
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/readme.md +0 -344
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/index.d.ts +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/index.js +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/lib/index.d.ts +0 -3
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/lib/index.js +0 -45
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/license +0 -23
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/package.json +0 -78
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/readme.md +0 -200
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/index.d.ts +0 -16
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/index.js +0 -3
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.d.ts +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.js +0 -79
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +0 -17
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +0 -29
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.js +0 -30
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.js +0 -75
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.js +0 -76
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +0 -24
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +0 -69
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.js +0 -75
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +0 -15
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.js +0 -20
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +0 -63
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.js +0 -82
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts +0 -42
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.js +0 -45
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +0 -19
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +0 -76
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +0 -63
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +0 -24
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.js +0 -114
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +0 -62
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.js +0 -100
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +0 -17
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +0 -20
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.js +0 -23
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +0 -24
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.js +0 -69
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +0 -17
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.js +0 -15
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.d.ts +0 -14
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.js +0 -187
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.d.ts +0 -4
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.js +0 -39
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/types.d.ts +0 -965
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/types.js +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts +0 -4
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.js +0 -146
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.js +0 -33
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +0 -8
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +0 -38
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +0 -24
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +0 -19
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +0 -84
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +0 -19
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +0 -125
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts +0 -10
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +0 -33
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +0 -82
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +0 -34
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +0 -34
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +0 -35
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +0 -12
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +0 -41
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +0 -29
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.js +0 -174
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.js +0 -55
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/package.json +0 -132
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/readme.md +0 -750
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/index.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/index.js +0 -5
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/lib/index.js +0 -108
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/package.json +0 -78
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/readme.md +0 -218
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.d.ts +0 -195
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.js +0 -252
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.d.ts +0 -195
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.js +0 -246
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/package.json +0 -57
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/readme.md +0 -446
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.js +0 -38
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.d.ts +0 -18
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.js +0 -27
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/package.json +0 -59
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/readme.md +0 -205
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.js +0 -53
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.d.ts +0 -14
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.js +0 -45
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/package.json +0 -63
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/readme.md +0 -179
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.js +0 -158
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.js +0 -44
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.js +0 -4
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.js +0 -453
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.js +0 -109
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/package.json +0 -43
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/readme.md +0 -168
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/index.d.ts +0 -1312
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/index.js +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/package.json +0 -71
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/readme.md +0 -151
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.d.ts +0 -5
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.js +0 -7
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.d.ts +0 -111
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.js +0 -296
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/package.json +0 -103
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/readme.md +0 -351
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/index.d.ts +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/index.js +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.d.ts +0 -195
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.js +0 -312
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/package.json +0 -108
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/readme.md +0 -313
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/index.d.ts +0 -14
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/index.js +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.d.ts +0 -6
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.js +0 -7
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.d.ts +0 -6
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.js +0 -7
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.d.ts +0 -219
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.js +0 -399
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/package.json +0 -106
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/readme.md +0 -388
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/index.d.ts +0 -67
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/index.js +0 -118
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/package.json +0 -72
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/readme.md +0 -226
- package/node_modules/mdast-util-gfm-table/package.json +0 -101
- package/node_modules/mdast-util-gfm-table/readme.md +0 -605
- package/node_modules/micromark-extension-gfm-table/dev/index.d.ts +0 -55
- package/node_modules/micromark-extension-gfm-table/dev/index.js +0 -2
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +0 -38
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +0 -212
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +0 -11
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.js +0 -148
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +0 -14
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +0 -64
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +0 -18
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +0 -941
- package/node_modules/micromark-extension-gfm-table/index.d.ts +0 -55
- package/node_modules/micromark-extension-gfm-table/index.js +0 -2
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +0 -38
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.js +0 -202
- package/node_modules/micromark-extension-gfm-table/lib/html.d.ts +0 -11
- package/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/lib/html.js +0 -130
- package/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +0 -14
- package/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/lib/infer.js +0 -52
- package/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +0 -18
- package/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/lib/syntax.js +0 -819
- package/node_modules/micromark-extension-gfm-table/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.js +0 -86
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.min.js +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.mjs +0 -84
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/index.d.ts +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/license +0 -21
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.d.ts +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.js +0 -31
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.min.js +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.mjs +0 -29
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/package.json +0 -57
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/readme.md +0 -112
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/default.js +0 -9
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/development.d.ts +0 -84
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/development.js +0 -238
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/package.json +0 -80
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/readme.md +0 -360
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.d.ts +0 -37
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.js +0 -67
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.d.ts +0 -37
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.js +0 -64
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/package.json +0 -55
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/readme.md +0 -225
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.d.ts +0 -195
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.js +0 -252
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.d.ts +0 -195
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.js +0 -246
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/package.json +0 -57
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/readme.md +0 -446
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.js +0 -158
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.js +0 -44
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.js +0 -4
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.js +0 -453
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.js +0 -109
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/package.json +0 -43
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/readme.md +0 -168
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/index.d.ts +0 -1312
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/index.js +0 -2
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/package.json +0 -71
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/readme.md +0 -151
- package/node_modules/micromark-extension-gfm-table/package.json +0 -128
- package/node_modules/micromark-extension-gfm-table/readme.md +0 -515
- /package/dist/{audio-preflight.runtime-BBfC9elv.js → .setup/audio-preflight.runtime-BBfC9elv.mjs} +0 -0
- /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
- /package/dist/{runtime-C5JxBWZp.js → .setup/runtime-C5JxBWZp.mjs} +0 -0
- /package/dist/{targets-BUjQ1TcA.js → .setup/targets-BUjQ1TcA.mjs} +0 -0
- /package/node_modules/@larksuiteoapi/node-sdk/node_modules/{protobufjs/src/util/float.d.ts → @protobufjs/float/index.d.ts} +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/debug → @larksuiteoapi/node-sdk/node_modules/@types/node}/LICENSE +0 -0
package/dist/channel-CScE82zY.js
DELETED
|
@@ -1,2795 +0,0 @@
|
|
|
1
|
-
import { a as resolveDefaultFeishuAccountId, d as isRecord$1, i as listFeishuAccountIds, n as inspectFeishuCredentials, o as resolveFeishuAccount, r as listEnabledFeishuAccounts, s as resolveFeishuRuntimeAccount } from "./accounts-u9X5Wsan.js";
|
|
2
|
-
import { i as resolveReceiveIdType, n as looksLikeFeishuId, r as normalizeFeishuTarget } from "./targets-BUjQ1TcA.js";
|
|
3
|
-
import { A as resolveFeishuChatType, D as resolveFeishuGroupToolPolicy, N as createFeishuCardInteractionEnvelope, _ as canEnumerateAllFeishuPeers, a as readNativeFeishuCardJson, b as resolveFeishuChatReadPreliminaryAuthorization, g as canEnumerateAllFeishuGroups, h as authorizeFeishuChatMemberRead, k as normalizeFeishuChatType, m as assertFeishuChatReadAllowed, n as createFeishuSendReceipt, u as chunkFeishuMarkdown, v as isFeishuGroupReadAllowed, w as resolveFeishuGroupConfig, y as isFeishuGroupReadEnabled } from "./send-result-B9_BpUPx.js";
|
|
4
|
-
import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, n as buildFeishuModelOverrideParentCandidates, o as resolveConfiguredFeishuGroupSessionScope, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-BeJL-wq7.js";
|
|
5
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BiD9tyIv.js";
|
|
6
|
-
import { t as messageActionTargetAliases } from "./security-audit-D7WK_BHh.js";
|
|
7
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-BCpDLdg9.js";
|
|
8
|
-
import { t as collectFeishuSecurityAuditFindings } from "./security-audit-shared-BgpY7AiJ.js";
|
|
9
|
-
import { t as resolveFeishuSessionConversation } from "./session-conversation-BksWrfzm.js";
|
|
10
|
-
import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
|
|
11
|
-
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
12
|
-
import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from";
|
|
13
|
-
import { ToolAuthorizationError, createActionGate } from "openclaw/plugin-sdk/channel-actions";
|
|
14
|
-
import { adaptScopedAccountAccessor, createHybridChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
15
|
-
import { buildChannelOutboundSessionRoute, createChatChannelPlugin, stripChannelTargetPrefix } from "openclaw/plugin-sdk/channel-core";
|
|
16
|
-
import { createAccountStatusSink, createRuntimeOutboundDelegates, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-outbound";
|
|
17
|
-
import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
|
|
18
|
-
import { createAllowlistProviderGroupPolicyWarningCollector, projectConfigAccountIdWarningCollector } from "openclaw/plugin-sdk/channel-policy";
|
|
19
|
-
import { getSessionBindingService } from "openclaw/plugin-sdk/conversation-runtime";
|
|
20
|
-
import { applyDirectoryQueryAndLimit, createChannelDirectoryAdapter, createRuntimeDirectoryLiveAdapter, listDirectoryGroupEntriesFromMapKeysAndAllowFrom, listDirectoryUserEntriesFromAllowFrom, listDirectoryUserEntriesFromAllowFromAndMapKeys } from "openclaw/plugin-sdk/directory-runtime";
|
|
21
|
-
import { legacyInteractiveReplyToPresentation, normalizeLegacyInteractiveReply, normalizeMessagePresentation, renderMessagePresentationChartFallbackText, renderMessagePresentationFallbackText, renderMessagePresentationTableFallbackText, resolveLegacyInteractiveTextFallback } from "openclaw/plugin-sdk/interactive-runtime";
|
|
22
|
-
import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
23
|
-
import { buildProbeChannelStatusSummary, createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
24
|
-
import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
25
|
-
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
26
|
-
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$3 } from "openclaw/plugin-sdk/account-resolution";
|
|
27
|
-
import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
28
|
-
import { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
|
|
29
|
-
import { normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/account-id";
|
|
30
|
-
import { DmPolicySchema, GroupPolicySchema, buildChannelConfigSchema, buildGroupEntrySchema, buildMultiAccountChannelSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
31
|
-
import { z } from "zod";
|
|
32
|
-
import { buildSecretInputSchema, hasConfiguredSecretInput as hasConfiguredSecretInput$2 } from "openclaw/plugin-sdk/secret-input";
|
|
33
|
-
import fs from "node:fs";
|
|
34
|
-
import os from "node:os";
|
|
35
|
-
import path from "node:path";
|
|
36
|
-
import { normalizeAgentId } from "openclaw/plugin-sdk/routing";
|
|
37
|
-
import { deleteSessionEntry, isValidAgentHarnessSessionStoreEntry, listSessionEntries, loadTranscriptEventsSync, resolveSessionStoreBackupPaths, resolveStorePath } from "openclaw/plugin-sdk/session-store-runtime";
|
|
38
|
-
import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
|
|
39
|
-
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
40
|
-
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$2, createSetupTranslator, formatDocsLink, hasConfiguredSecretInput as hasConfiguredSecretInput$1, mergeAllowFromEntries, patchScopedAccountConfig, promptSingleChannelSecretInput, setSetupChannelEnabled, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
41
|
-
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
42
|
-
//#region extensions/feishu/src/approval-auth.ts
|
|
43
|
-
function normalizeFeishuApproverId(value) {
|
|
44
|
-
const trimmed = normalizeOptionalLowercaseString(normalizeFeishuTarget(String(value)));
|
|
45
|
-
return trimmed?.startsWith("ou_") ? trimmed : void 0;
|
|
46
|
-
}
|
|
47
|
-
const feishuApprovalAuth = createChannelApprovalAuth({
|
|
48
|
-
channelLabel: "Feishu",
|
|
49
|
-
resolveInputs: ({ cfg, accountId }) => {
|
|
50
|
-
return { allowFrom: resolveFeishuAccount({
|
|
51
|
-
cfg,
|
|
52
|
-
accountId
|
|
53
|
-
}).config.allowFrom };
|
|
54
|
-
},
|
|
55
|
-
normalizeApprover: normalizeFeishuApproverId
|
|
56
|
-
}).approvalAuth;
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region extensions/feishu/src/config-schema.ts
|
|
59
|
-
const ChannelActionsSchema = z.object({ reactions: z.boolean().optional() }).strict().optional();
|
|
60
|
-
const FeishuGroupPolicySchema = z.union([GroupPolicySchema, z.literal("allowall").transform(() => "open")]);
|
|
61
|
-
const FeishuDomainSchema = z.union([z.enum(["feishu", "lark"]), z.string().url().startsWith("https://")]);
|
|
62
|
-
const FeishuConnectionModeSchema = z.enum(["websocket", "webhook"]);
|
|
63
|
-
const TtsOverrideSchema = z.object({
|
|
64
|
-
auto: z.enum([
|
|
65
|
-
"off",
|
|
66
|
-
"always",
|
|
67
|
-
"inbound",
|
|
68
|
-
"tagged"
|
|
69
|
-
]).optional(),
|
|
70
|
-
enabled: z.boolean().optional(),
|
|
71
|
-
mode: z.enum(["final", "all"]).optional(),
|
|
72
|
-
provider: z.string().optional(),
|
|
73
|
-
persona: z.string().optional(),
|
|
74
|
-
personas: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
|
|
75
|
-
summaryModel: z.string().optional(),
|
|
76
|
-
modelOverrides: z.record(z.string(), z.unknown()).optional(),
|
|
77
|
-
providers: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
|
|
78
|
-
prefsPath: z.string().optional(),
|
|
79
|
-
maxTextLength: z.number().int().min(1).optional(),
|
|
80
|
-
timeoutMs: z.number().int().min(1e3).max(12e4).optional()
|
|
81
|
-
}).strict().optional();
|
|
82
|
-
const ToolPolicySchema = z.object({
|
|
83
|
-
allow: z.array(z.string()).optional(),
|
|
84
|
-
deny: z.array(z.string()).optional()
|
|
85
|
-
}).strict().optional();
|
|
86
|
-
const DmConfigSchema = z.object({
|
|
87
|
-
enabled: z.boolean().optional(),
|
|
88
|
-
systemPrompt: z.string().optional()
|
|
89
|
-
}).strict().optional();
|
|
90
|
-
const MarkdownConfigSchema = z.object({
|
|
91
|
-
mode: z.enum([
|
|
92
|
-
"native",
|
|
93
|
-
"escape",
|
|
94
|
-
"strip"
|
|
95
|
-
]).optional(),
|
|
96
|
-
tableMode: z.enum([
|
|
97
|
-
"native",
|
|
98
|
-
"ascii",
|
|
99
|
-
"simple"
|
|
100
|
-
]).optional()
|
|
101
|
-
}).strict().optional();
|
|
102
|
-
const RenderModeSchema = z.enum([
|
|
103
|
-
"auto",
|
|
104
|
-
"raw",
|
|
105
|
-
"card"
|
|
106
|
-
]).optional();
|
|
107
|
-
const BlockStreamingCoalesceSchema = z.object({
|
|
108
|
-
minChars: z.number().int().positive().optional(),
|
|
109
|
-
maxChars: z.number().int().positive().optional(),
|
|
110
|
-
idleMs: z.number().int().nonnegative().optional()
|
|
111
|
-
}).strict().optional();
|
|
112
|
-
const FeishuStreamingSchema = z.object({
|
|
113
|
-
mode: z.enum(["off", "partial"]).optional(),
|
|
114
|
-
chunkMode: z.enum(["length", "newline"]).optional(),
|
|
115
|
-
block: z.object({
|
|
116
|
-
enabled: z.boolean().optional(),
|
|
117
|
-
coalesce: BlockStreamingCoalesceSchema
|
|
118
|
-
}).strict().optional()
|
|
119
|
-
}).strict().optional();
|
|
120
|
-
const ChannelHeartbeatVisibilitySchema = z.object({
|
|
121
|
-
visibility: z.enum(["visible", "hidden"]).optional(),
|
|
122
|
-
intervalMs: z.number().int().positive().optional()
|
|
123
|
-
}).strict().optional();
|
|
124
|
-
/**
|
|
125
|
-
* Dynamic agent creation configuration.
|
|
126
|
-
* When enabled, a new agent is created for each unique DM user.
|
|
127
|
-
*/
|
|
128
|
-
const DynamicAgentCreationSchema = z.object({
|
|
129
|
-
enabled: z.boolean().optional(),
|
|
130
|
-
workspaceTemplate: z.string().optional(),
|
|
131
|
-
agentDirTemplate: z.string().optional(),
|
|
132
|
-
maxAgents: z.number().int().positive().optional()
|
|
133
|
-
}).strict().optional();
|
|
134
|
-
/**
|
|
135
|
-
* Feishu tools configuration.
|
|
136
|
-
* Controls which tool categories are enabled.
|
|
137
|
-
*
|
|
138
|
-
* Dependencies:
|
|
139
|
-
* - wiki requires doc (wiki content is edited via doc tools)
|
|
140
|
-
* - perm can work independently but is typically used with drive
|
|
141
|
-
*/
|
|
142
|
-
const FeishuToolsConfigSchema = z.object({
|
|
143
|
-
doc: z.boolean().optional(),
|
|
144
|
-
chat: z.boolean().optional(),
|
|
145
|
-
wiki: z.boolean().optional(),
|
|
146
|
-
drive: z.boolean().optional(),
|
|
147
|
-
perm: z.boolean().optional(),
|
|
148
|
-
scopes: z.boolean().optional(),
|
|
149
|
-
bitable: z.boolean().optional()
|
|
150
|
-
}).strict().optional();
|
|
151
|
-
/**
|
|
152
|
-
* Group session scope for routing Feishu group messages.
|
|
153
|
-
* - "group" (default): one session per group chat
|
|
154
|
-
* - "group_sender": one session per (group + sender)
|
|
155
|
-
* - "group_topic": one session per group topic thread (falls back to group if no topic)
|
|
156
|
-
* - "group_topic_sender": one session per (group + topic thread + sender),
|
|
157
|
-
* falls back to (group + sender) if no topic
|
|
158
|
-
*/
|
|
159
|
-
const GroupSessionScopeSchema = z.enum([
|
|
160
|
-
"group",
|
|
161
|
-
"group_sender",
|
|
162
|
-
"group_topic",
|
|
163
|
-
"group_topic_sender"
|
|
164
|
-
]).optional();
|
|
165
|
-
/**
|
|
166
|
-
* @deprecated Use groupSessionScope instead.
|
|
167
|
-
*
|
|
168
|
-
* Topic session isolation mode for group chats.
|
|
169
|
-
* - "disabled" (default): All messages in a group share one session
|
|
170
|
-
* - "enabled": Messages in different topics get separate sessions
|
|
171
|
-
*
|
|
172
|
-
* Topic routing uses Feishu topic-group `thread_id` when the event identifies a
|
|
173
|
-
* native topic group, and keeps `root_id` precedence for normal groups so
|
|
174
|
-
* reply-created threads stay on the initiating message session.
|
|
175
|
-
*/
|
|
176
|
-
const TopicSessionModeSchema = z.enum(["disabled", "enabled"]).optional();
|
|
177
|
-
const ReactionNotificationModeSchema = z.enum([
|
|
178
|
-
"off",
|
|
179
|
-
"own",
|
|
180
|
-
"all"
|
|
181
|
-
]).optional();
|
|
182
|
-
/**
|
|
183
|
-
* Reply-in-thread mode for group chats.
|
|
184
|
-
* - "disabled" (default): Bot replies are normal inline replies
|
|
185
|
-
* - "enabled": Bot replies create or continue a Feishu topic thread
|
|
186
|
-
*
|
|
187
|
-
* When enabled, the Feishu reply API is called with `reply_in_thread: true`,
|
|
188
|
-
* causing the reply to appear as a topic (话题) under the original message.
|
|
189
|
-
*/
|
|
190
|
-
const ReplyInThreadSchema = z.enum(["disabled", "enabled"]).optional();
|
|
191
|
-
const FeishuGroupSchema = buildGroupEntrySchema({
|
|
192
|
-
tools: ToolPolicySchema,
|
|
193
|
-
groupSessionScope: GroupSessionScopeSchema,
|
|
194
|
-
topicSessionMode: TopicSessionModeSchema,
|
|
195
|
-
replyInThread: ReplyInThreadSchema
|
|
196
|
-
}).omit({ toolsBySender: true });
|
|
197
|
-
const FeishuSharedConfigShape = {
|
|
198
|
-
webhookHost: z.string().optional(),
|
|
199
|
-
webhookPort: z.number().int().positive().optional(),
|
|
200
|
-
capabilities: z.array(z.string()).optional(),
|
|
201
|
-
markdown: MarkdownConfigSchema,
|
|
202
|
-
configWrites: z.boolean().optional(),
|
|
203
|
-
dmPolicy: DmPolicySchema.optional(),
|
|
204
|
-
allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
|
|
205
|
-
groupPolicy: FeishuGroupPolicySchema.optional(),
|
|
206
|
-
groupAllowFrom: z.array(z.union([z.string(), z.number()])).optional(),
|
|
207
|
-
groupSenderAllowFrom: z.array(z.union([z.string(), z.number()])).optional(),
|
|
208
|
-
requireMention: z.boolean().optional(),
|
|
209
|
-
groups: z.record(z.string(), FeishuGroupSchema.optional()).optional(),
|
|
210
|
-
historyLimit: z.number().int().min(0).optional(),
|
|
211
|
-
dmHistoryLimit: z.number().int().min(0).optional(),
|
|
212
|
-
dms: z.record(z.string(), DmConfigSchema).optional(),
|
|
213
|
-
textChunkLimit: z.number().int().positive().optional(),
|
|
214
|
-
mediaMaxMb: z.number().positive().optional(),
|
|
215
|
-
httpTimeoutMs: z.number().int().positive().max(3e5).optional(),
|
|
216
|
-
heartbeatVisibility: ChannelHeartbeatVisibilitySchema,
|
|
217
|
-
renderMode: RenderModeSchema,
|
|
218
|
-
streaming: FeishuStreamingSchema,
|
|
219
|
-
tools: FeishuToolsConfigSchema,
|
|
220
|
-
actions: ChannelActionsSchema,
|
|
221
|
-
replyInThread: ReplyInThreadSchema,
|
|
222
|
-
reactionNotifications: ReactionNotificationModeSchema,
|
|
223
|
-
typingIndicator: z.boolean().optional(),
|
|
224
|
-
resolveSenderNames: z.boolean().optional(),
|
|
225
|
-
allowBots: z.boolean().optional(),
|
|
226
|
-
vcAutoJoin: z.boolean().optional(),
|
|
227
|
-
tts: TtsOverrideSchema
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* Per-account configuration.
|
|
231
|
-
* All fields are optional - missing fields inherit from top-level config.
|
|
232
|
-
*/
|
|
233
|
-
const FeishuAccountConfigSchema = z.object({
|
|
234
|
-
enabled: z.boolean().optional(),
|
|
235
|
-
name: z.string().optional(),
|
|
236
|
-
appId: z.string().optional(),
|
|
237
|
-
appSecret: buildSecretInputSchema().optional(),
|
|
238
|
-
encryptKey: buildSecretInputSchema().optional(),
|
|
239
|
-
verificationToken: buildSecretInputSchema().optional(),
|
|
240
|
-
domain: FeishuDomainSchema.optional(),
|
|
241
|
-
connectionMode: FeishuConnectionModeSchema.optional(),
|
|
242
|
-
webhookPath: z.string().optional(),
|
|
243
|
-
...FeishuSharedConfigShape,
|
|
244
|
-
groupSessionScope: GroupSessionScopeSchema,
|
|
245
|
-
topicSessionMode: TopicSessionModeSchema
|
|
246
|
-
}).strict();
|
|
247
|
-
const FeishuChannelConfigSchema = buildChannelConfigSchema(buildMultiAccountChannelSchema(z.object({
|
|
248
|
-
enabled: z.boolean().optional(),
|
|
249
|
-
defaultAccount: z.string().optional(),
|
|
250
|
-
appId: z.string().optional(),
|
|
251
|
-
appSecret: buildSecretInputSchema().optional(),
|
|
252
|
-
encryptKey: buildSecretInputSchema().optional(),
|
|
253
|
-
verificationToken: buildSecretInputSchema().optional(),
|
|
254
|
-
domain: FeishuDomainSchema.optional().default("feishu"),
|
|
255
|
-
connectionMode: FeishuConnectionModeSchema.optional().default("websocket"),
|
|
256
|
-
webhookPath: z.string().optional().default("/feishu/events"),
|
|
257
|
-
...FeishuSharedConfigShape,
|
|
258
|
-
dmPolicy: DmPolicySchema.optional().default("pairing"),
|
|
259
|
-
reactionNotifications: ReactionNotificationModeSchema.optional().default("own"),
|
|
260
|
-
groupPolicy: FeishuGroupPolicySchema.optional().default("allowlist"),
|
|
261
|
-
requireMention: z.boolean().optional(),
|
|
262
|
-
groupSessionScope: GroupSessionScopeSchema,
|
|
263
|
-
topicSessionMode: TopicSessionModeSchema,
|
|
264
|
-
dynamicAgentCreation: DynamicAgentCreationSchema,
|
|
265
|
-
typingIndicator: z.boolean().optional().default(true),
|
|
266
|
-
resolveSenderNames: z.boolean().optional().default(true)
|
|
267
|
-
}).strict(), {
|
|
268
|
-
accountSchema: FeishuAccountConfigSchema,
|
|
269
|
-
optionalAccount: true
|
|
270
|
-
}).superRefine((value, ctx) => {
|
|
271
|
-
const defaultAccount = value.defaultAccount?.trim();
|
|
272
|
-
if (defaultAccount && value.accounts && Object.keys(value.accounts).length > 0) {
|
|
273
|
-
const normalizedDefaultAccount = normalizeAccountId$1(defaultAccount);
|
|
274
|
-
if (!Object.hasOwn(value.accounts, normalizedDefaultAccount)) ctx.addIssue({
|
|
275
|
-
code: z.ZodIssueCode.custom,
|
|
276
|
-
path: ["defaultAccount"],
|
|
277
|
-
message: `channels.feishu.defaultAccount="${defaultAccount}" does not match a configured account key`
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
const defaultConnectionMode = value.connectionMode ?? "websocket";
|
|
281
|
-
const defaultVerificationTokenConfigured = hasConfiguredSecretInput$2(value.verificationToken);
|
|
282
|
-
const defaultEncryptKeyConfigured = hasConfiguredSecretInput$2(value.encryptKey);
|
|
283
|
-
if (defaultConnectionMode === "webhook") {
|
|
284
|
-
if (!defaultVerificationTokenConfigured) ctx.addIssue({
|
|
285
|
-
code: z.ZodIssueCode.custom,
|
|
286
|
-
path: ["verificationToken"],
|
|
287
|
-
message: "channels.feishu.connectionMode=\"webhook\" requires channels.feishu.verificationToken"
|
|
288
|
-
});
|
|
289
|
-
if (!defaultEncryptKeyConfigured) ctx.addIssue({
|
|
290
|
-
code: z.ZodIssueCode.custom,
|
|
291
|
-
path: ["encryptKey"],
|
|
292
|
-
message: "channels.feishu.connectionMode=\"webhook\" requires channels.feishu.encryptKey"
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
for (const [accountId, account] of Object.entries(value.accounts ?? {})) {
|
|
296
|
-
if (!account) continue;
|
|
297
|
-
if ((account.connectionMode ?? defaultConnectionMode) !== "webhook") continue;
|
|
298
|
-
const accountVerificationTokenConfigured = hasConfiguredSecretInput$2(account.verificationToken) || defaultVerificationTokenConfigured;
|
|
299
|
-
const accountEncryptKeyConfigured = hasConfiguredSecretInput$2(account.encryptKey) || defaultEncryptKeyConfigured;
|
|
300
|
-
if (!accountVerificationTokenConfigured) ctx.addIssue({
|
|
301
|
-
code: z.ZodIssueCode.custom,
|
|
302
|
-
path: [
|
|
303
|
-
"accounts",
|
|
304
|
-
accountId,
|
|
305
|
-
"verificationToken"
|
|
306
|
-
],
|
|
307
|
-
message: `channels.feishu.accounts.${accountId}.connectionMode="webhook" requires a verificationToken (account-level or top-level)`
|
|
308
|
-
});
|
|
309
|
-
if (!accountEncryptKeyConfigured) ctx.addIssue({
|
|
310
|
-
code: z.ZodIssueCode.custom,
|
|
311
|
-
path: [
|
|
312
|
-
"accounts",
|
|
313
|
-
accountId,
|
|
314
|
-
"encryptKey"
|
|
315
|
-
],
|
|
316
|
-
message: `channels.feishu.accounts.${accountId}.connectionMode="webhook" requires an encryptKey (account-level or top-level)`
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
if (value.dmPolicy === "open") {
|
|
320
|
-
if (!(value.allowFrom ?? []).some((entry) => String(entry).trim() === "*")) ctx.addIssue({
|
|
321
|
-
code: z.ZodIssueCode.custom,
|
|
322
|
-
path: ["allowFrom"],
|
|
323
|
-
message: "channels.feishu.dmPolicy=\"open\" requires channels.feishu.allowFrom to include \"*\""
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
}), { jsonSchemaMode: "input" });
|
|
327
|
-
//#endregion
|
|
328
|
-
//#region extensions/feishu/src/directory.static.ts
|
|
329
|
-
function toFeishuDirectoryPeers(ids) {
|
|
330
|
-
return ids.map((id) => ({
|
|
331
|
-
kind: "user",
|
|
332
|
-
id
|
|
333
|
-
}));
|
|
334
|
-
}
|
|
335
|
-
function toFeishuDirectoryGroups(ids) {
|
|
336
|
-
return ids.map((id) => ({
|
|
337
|
-
kind: "group",
|
|
338
|
-
id
|
|
339
|
-
}));
|
|
340
|
-
}
|
|
341
|
-
async function listFeishuDirectoryPeers(params) {
|
|
342
|
-
const account = resolveFeishuAccount({
|
|
343
|
-
cfg: params.cfg,
|
|
344
|
-
accountId: params.accountId
|
|
345
|
-
});
|
|
346
|
-
return toFeishuDirectoryPeers(listDirectoryUserEntriesFromAllowFromAndMapKeys({
|
|
347
|
-
allowFrom: account.config.allowFrom,
|
|
348
|
-
map: account.config.dms,
|
|
349
|
-
query: params.query,
|
|
350
|
-
limit: params.limit,
|
|
351
|
-
normalizeAllowFromId: (entry) => normalizeFeishuTarget(entry) ?? entry,
|
|
352
|
-
normalizeMapKeyId: (entry) => normalizeFeishuTarget(entry) ?? entry
|
|
353
|
-
}).map((entry) => entry.id));
|
|
354
|
-
}
|
|
355
|
-
async function listFeishuDirectoryGroups(params) {
|
|
356
|
-
const account = resolveFeishuAccount({
|
|
357
|
-
cfg: params.cfg,
|
|
358
|
-
accountId: params.accountId
|
|
359
|
-
});
|
|
360
|
-
return toFeishuDirectoryGroups(listDirectoryGroupEntriesFromMapKeysAndAllowFrom({
|
|
361
|
-
groups: account.config.groups,
|
|
362
|
-
allowFrom: account.config.groupAllowFrom,
|
|
363
|
-
query: params.query,
|
|
364
|
-
limit: params.limit
|
|
365
|
-
}).map((entry) => entry.id));
|
|
366
|
-
}
|
|
367
|
-
async function listAuthorizedFeishuDirectoryPeers(params) {
|
|
368
|
-
return toFeishuDirectoryPeers(listDirectoryUserEntriesFromAllowFrom({
|
|
369
|
-
allowFrom: resolveFeishuAccount({
|
|
370
|
-
cfg: params.cfg,
|
|
371
|
-
accountId: params.accountId
|
|
372
|
-
}).config.allowFrom,
|
|
373
|
-
query: params.query,
|
|
374
|
-
limit: params.limit,
|
|
375
|
-
normalizeId: (entry) => normalizeFeishuTarget(entry) ?? entry
|
|
376
|
-
}).map((entry) => entry.id));
|
|
377
|
-
}
|
|
378
|
-
async function listAuthorizedFeishuDirectoryGroups(params) {
|
|
379
|
-
const account = resolveFeishuAccount({
|
|
380
|
-
cfg: params.cfg,
|
|
381
|
-
accountId: params.accountId
|
|
382
|
-
});
|
|
383
|
-
return toFeishuDirectoryGroups(applyDirectoryQueryAndLimit(listDirectoryGroupEntriesFromMapKeysAndAllowFrom({
|
|
384
|
-
groups: Object.fromEntries(Object.entries(account.config.groups ?? {}).filter(([, group]) => group?.enabled !== false)),
|
|
385
|
-
allowFrom: account.config.groupAllowFrom
|
|
386
|
-
}).filter((entry) => isFeishuGroupReadAllowed(params.cfg, account, entry.id, false)).map((entry) => entry.id), params));
|
|
387
|
-
}
|
|
388
|
-
//#endregion
|
|
389
|
-
//#region extensions/feishu/src/doctor.ts
|
|
390
|
-
const FEISHU_STATE_DIR = "feishu";
|
|
391
|
-
const BACKUP_PREFIX = "feishu-state-repair";
|
|
392
|
-
const BLANK_USER_MESSAGE_REPAIR_THRESHOLD = 3;
|
|
393
|
-
const SESSION_FILE_INSPECTION_MAX_BYTES = 16 * 1024 * 1024;
|
|
394
|
-
function timestampForPath(now = /* @__PURE__ */ new Date()) {
|
|
395
|
-
return now.toISOString().replaceAll(":", "-");
|
|
396
|
-
}
|
|
397
|
-
function toFeishuSessionEntry(value) {
|
|
398
|
-
if (!isRecord(value)) return {};
|
|
399
|
-
return {
|
|
400
|
-
sessionId: value.sessionId,
|
|
401
|
-
sessionFile: value.sessionFile
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
function countLabel(count, singular, plural = `${singular}s`) {
|
|
405
|
-
return `${count} ${count === 1 ? singular : plural}`;
|
|
406
|
-
}
|
|
407
|
-
function existsDir(dir) {
|
|
408
|
-
try {
|
|
409
|
-
return fs.statSync(dir).isDirectory();
|
|
410
|
-
} catch {
|
|
411
|
-
return false;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
function existsFile(filePath) {
|
|
415
|
-
try {
|
|
416
|
-
return fs.statSync(filePath).isFile();
|
|
417
|
-
} catch {
|
|
418
|
-
return false;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
function resolveFeishuAgentSessionsDir(agentId) {
|
|
422
|
-
return path.join(resolveStateDir(), "agents", normalizeAgentId(agentId), "sessions");
|
|
423
|
-
}
|
|
424
|
-
function safeReadDir(dir) {
|
|
425
|
-
try {
|
|
426
|
-
return fs.readdirSync(dir, { withFileTypes: true });
|
|
427
|
-
} catch {
|
|
428
|
-
return [];
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
function isPathWithinRoot(targetPath, rootPath) {
|
|
432
|
-
const resolvedTarget = path.resolve(targetPath);
|
|
433
|
-
const resolvedRoot = path.resolve(rootPath);
|
|
434
|
-
const relative = path.relative(resolvedRoot, resolvedTarget);
|
|
435
|
-
return relative !== "" && !relative.startsWith("..") && !path.isAbsolute(relative);
|
|
436
|
-
}
|
|
437
|
-
function formatDisplayPath(filePath) {
|
|
438
|
-
const home = os.homedir();
|
|
439
|
-
const resolved = path.resolve(filePath);
|
|
440
|
-
return resolved === home || resolved.startsWith(`${home}${path.sep}`) ? `~${resolved.slice(home.length)}` : resolved;
|
|
441
|
-
}
|
|
442
|
-
function formatFinding(finding) {
|
|
443
|
-
switch (finding.kind) {
|
|
444
|
-
case "corrupt-state-json": return `- Feishu local JSON state is corrupt: ${formatDisplayPath(finding.path)}`;
|
|
445
|
-
case "missing-session-transcript": return `- Feishu session ${finding.sessionKey} points to a missing transcript in ${formatDisplayPath(finding.storePath)}`;
|
|
446
|
-
case "invalid-session-transcript": return `- Feishu session ${finding.sessionKey} has an invalid transcript (${finding.reason}): ${formatDisplayPath(finding.path)}`;
|
|
447
|
-
case "blank-user-message-run": return `- Feishu session ${finding.sessionKey} contains ${finding.count} blank user messages: ${formatDisplayPath(finding.path)}`;
|
|
448
|
-
}
|
|
449
|
-
return finding;
|
|
450
|
-
}
|
|
451
|
-
function isFeishuSessionStoreKey(key) {
|
|
452
|
-
const normalized = key.trim().toLowerCase();
|
|
453
|
-
return /^agent:[^:]+:feishu(?::|$)/.test(normalized) || /^feishu(?::|$)/.test(normalized);
|
|
454
|
-
}
|
|
455
|
-
function isFeishuAcpBindingSessionKey(key) {
|
|
456
|
-
return /^agent:[^:]+:acp:binding:feishu(?::|$)/.test(key.trim().toLowerCase());
|
|
457
|
-
}
|
|
458
|
-
function normalizeMetadataString(value) {
|
|
459
|
-
return typeof value === "string" ? value.trim().toLowerCase() : "";
|
|
460
|
-
}
|
|
461
|
-
function isFeishuSessionEntry(key, value) {
|
|
462
|
-
if (isFeishuAcpBindingSessionKey(key)) return false;
|
|
463
|
-
if (isFeishuSessionStoreKey(key)) return true;
|
|
464
|
-
if (!isRecord(value)) return false;
|
|
465
|
-
if (normalizeMetadataString(value.channel) === "feishu" || normalizeMetadataString(value.lastChannel) === "feishu") return true;
|
|
466
|
-
if (normalizeMetadataString((isRecord(value.route) ? value.route : null)?.channel) === "feishu") return true;
|
|
467
|
-
if (normalizeMetadataString((isRecord(value.deliveryContext) ? value.deliveryContext : null)?.channel) === "feishu") return true;
|
|
468
|
-
if (normalizeMetadataString((isRecord(value.pendingFinalDeliveryContext) ? value.pendingFinalDeliveryContext : null)?.channel) === "feishu") return true;
|
|
469
|
-
const origin = isRecord(value.origin) ? value.origin : null;
|
|
470
|
-
const originProvider = normalizeMetadataString(origin?.provider);
|
|
471
|
-
const originSurface = normalizeMetadataString(origin?.surface);
|
|
472
|
-
const originFrom = normalizeMetadataString(origin?.from);
|
|
473
|
-
return originProvider === "feishu" || originSurface.startsWith("feishu") || originFrom.startsWith("feishu:");
|
|
474
|
-
}
|
|
475
|
-
function collectConfiguredAgentIds(cfg) {
|
|
476
|
-
const ids = /* @__PURE__ */ new Set();
|
|
477
|
-
ids.add(resolveConfiguredDefaultAgentId(cfg));
|
|
478
|
-
for (const agent of cfg.agents?.list ?? []) if (typeof agent.id === "string" && agent.id.trim()) ids.add(normalizeAgentId(agent.id));
|
|
479
|
-
return [...ids].toSorted();
|
|
480
|
-
}
|
|
481
|
-
function resolveConfiguredDefaultAgentId(cfg) {
|
|
482
|
-
const agents = cfg.agents?.list ?? [];
|
|
483
|
-
const chosen = agents.find((agent) => agent?.default) ?? agents[0];
|
|
484
|
-
return normalizeAgentId(typeof chosen?.id === "string" && chosen.id.trim() ? chosen.id : "main");
|
|
485
|
-
}
|
|
486
|
-
function collectFeishuSessionTargets(params) {
|
|
487
|
-
const byStorePath = /* @__PURE__ */ new Map();
|
|
488
|
-
const addTarget = (target) => {
|
|
489
|
-
const resolvedStorePath = path.resolve(target.storePath);
|
|
490
|
-
byStorePath.set(`${normalizeAgentId(target.agentId)}\0${resolvedStorePath}`, {
|
|
491
|
-
...target,
|
|
492
|
-
agentId: normalizeAgentId(target.agentId),
|
|
493
|
-
storePath: resolvedStorePath
|
|
494
|
-
});
|
|
495
|
-
};
|
|
496
|
-
for (const agentId of collectConfiguredAgentIds(params.cfg)) addTarget({
|
|
497
|
-
agentId,
|
|
498
|
-
storePath: resolveStorePath(params.cfg.session?.store, {
|
|
499
|
-
agentId,
|
|
500
|
-
env: params.env
|
|
501
|
-
})
|
|
502
|
-
});
|
|
503
|
-
const agentsDir = path.join(params.stateDir, "agents");
|
|
504
|
-
for (const agentDir of safeReadDir(agentsDir)) {
|
|
505
|
-
if (!agentDir.isDirectory()) continue;
|
|
506
|
-
const agentId = normalizeAgentId(agentDir.name);
|
|
507
|
-
const storePath = path.join(agentsDir, agentDir.name, "sessions", "sessions.json");
|
|
508
|
-
if (existsFile(storePath)) addTarget({
|
|
509
|
-
agentId,
|
|
510
|
-
storePath
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
return [...byStorePath.values()].toSorted((left, right) => left.storePath.localeCompare(right.storePath));
|
|
514
|
-
}
|
|
515
|
-
function collectJsonFiles(rootDir, limit = 200) {
|
|
516
|
-
const files = [];
|
|
517
|
-
const visit = (dir) => {
|
|
518
|
-
if (files.length >= limit) return;
|
|
519
|
-
for (const entry of safeReadDir(dir).toSorted((left, right) => left.name.localeCompare(right.name))) {
|
|
520
|
-
const fullPath = path.join(dir, entry.name);
|
|
521
|
-
if (entry.isDirectory()) {
|
|
522
|
-
visit(fullPath);
|
|
523
|
-
continue;
|
|
524
|
-
}
|
|
525
|
-
if (entry.isFile() && entry.name.endsWith(".json")) files.push(fullPath);
|
|
526
|
-
if (files.length >= limit) return;
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
if (existsDir(rootDir)) visit(rootDir);
|
|
530
|
-
return files;
|
|
531
|
-
}
|
|
532
|
-
function collectCorruptFeishuStateJsonFindings(feishuStateDir) {
|
|
533
|
-
const findings = [];
|
|
534
|
-
for (const filePath of collectJsonFiles(feishuStateDir)) try {
|
|
535
|
-
JSON.parse(fs.readFileSync(filePath, "utf-8"));
|
|
536
|
-
} catch {
|
|
537
|
-
findings.push({
|
|
538
|
-
kind: "corrupt-state-json",
|
|
539
|
-
path: filePath
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
return findings;
|
|
543
|
-
}
|
|
544
|
-
function resolveSessionTranscriptCandidates(params) {
|
|
545
|
-
const candidates = /* @__PURE__ */ new Set();
|
|
546
|
-
const sessionsDir = path.dirname(params.storePath);
|
|
547
|
-
const agentSessionsDir = resolveFeishuAgentSessionsDir(params.agentId);
|
|
548
|
-
const addSafeCandidate = (candidate) => {
|
|
549
|
-
const resolved = path.isAbsolute(candidate) ? path.resolve(candidate) : path.resolve(sessionsDir, candidate);
|
|
550
|
-
const isStoreCandidate = isPathWithinRoot(resolved, sessionsDir);
|
|
551
|
-
const isAgentSessionCandidate = isPathWithinRoot(resolved, agentSessionsDir);
|
|
552
|
-
if (resolved === sessionsDir || resolved === agentSessionsDir || !isStoreCandidate && !isAgentSessionCandidate) return false;
|
|
553
|
-
candidates.add(resolved);
|
|
554
|
-
return true;
|
|
555
|
-
};
|
|
556
|
-
if (typeof params.entry.sessionFile === "string" && params.entry.sessionFile.trim()) addSafeCandidate(params.entry.sessionFile.trim());
|
|
557
|
-
return [...candidates].toSorted();
|
|
558
|
-
}
|
|
559
|
-
function isSessionHeader(value) {
|
|
560
|
-
return isRecord(value) && value.type === "session" && typeof value.id === "string";
|
|
561
|
-
}
|
|
562
|
-
function isBlankUserMessage(value) {
|
|
563
|
-
if (!isRecord(value) || value.type !== "message" || !isRecord(value.message)) return false;
|
|
564
|
-
if (value.message.role !== "user") return false;
|
|
565
|
-
const content = value.message.content;
|
|
566
|
-
if (typeof content === "string") return content.trim().length === 0;
|
|
567
|
-
return Array.isArray(content) && content.length === 0;
|
|
568
|
-
}
|
|
569
|
-
function isUserMessage(value) {
|
|
570
|
-
return isRecord(value) && value.type === "message" && isRecord(value.message) && value.message.role === "user";
|
|
571
|
-
}
|
|
572
|
-
function inspectTranscriptEntries(params) {
|
|
573
|
-
let blankUserMessageRun = 0;
|
|
574
|
-
let maxBlankUserMessageRun = 0;
|
|
575
|
-
for (const entry of params.entries) if (isBlankUserMessage(entry)) {
|
|
576
|
-
blankUserMessageRun += 1;
|
|
577
|
-
maxBlankUserMessageRun = Math.max(maxBlankUserMessageRun, blankUserMessageRun);
|
|
578
|
-
} else if (isUserMessage(entry)) blankUserMessageRun = 0;
|
|
579
|
-
if (params.entries.length === 0) {
|
|
580
|
-
if (params.allowMissingSessionHeader) return null;
|
|
581
|
-
return {
|
|
582
|
-
kind: "invalid-session-transcript",
|
|
583
|
-
sessionKey: params.sessionKey,
|
|
584
|
-
storePath: params.storePath,
|
|
585
|
-
path: params.transcriptPath,
|
|
586
|
-
reason: "empty transcript"
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
const firstEntry = params.entries[0];
|
|
590
|
-
if (!isSessionHeader(firstEntry) && (!params.allowMissingSessionHeader || !isUserMessage(firstEntry) && !isBlankUserMessage(firstEntry))) return {
|
|
591
|
-
kind: "invalid-session-transcript",
|
|
592
|
-
sessionKey: params.sessionKey,
|
|
593
|
-
storePath: params.storePath,
|
|
594
|
-
path: params.transcriptPath,
|
|
595
|
-
reason: "invalid session header"
|
|
596
|
-
};
|
|
597
|
-
if ((params.malformedLines ?? 0) > 0) return {
|
|
598
|
-
kind: "invalid-session-transcript",
|
|
599
|
-
sessionKey: params.sessionKey,
|
|
600
|
-
storePath: params.storePath,
|
|
601
|
-
path: params.transcriptPath,
|
|
602
|
-
reason: `${params.malformedLines} malformed JSONL line(s)`
|
|
603
|
-
};
|
|
604
|
-
if (maxBlankUserMessageRun >= BLANK_USER_MESSAGE_REPAIR_THRESHOLD) return {
|
|
605
|
-
kind: "blank-user-message-run",
|
|
606
|
-
sessionKey: params.sessionKey,
|
|
607
|
-
storePath: params.storePath,
|
|
608
|
-
path: params.transcriptPath,
|
|
609
|
-
count: maxBlankUserMessageRun
|
|
610
|
-
};
|
|
611
|
-
return null;
|
|
612
|
-
}
|
|
613
|
-
function inspectSessionTranscript(params) {
|
|
614
|
-
let stat;
|
|
615
|
-
try {
|
|
616
|
-
stat = fs.statSync(params.transcriptPath);
|
|
617
|
-
} catch {
|
|
618
|
-
return null;
|
|
619
|
-
}
|
|
620
|
-
if (!stat.isFile()) return {
|
|
621
|
-
kind: "invalid-session-transcript",
|
|
622
|
-
sessionKey: params.sessionKey,
|
|
623
|
-
storePath: params.storePath,
|
|
624
|
-
path: params.transcriptPath,
|
|
625
|
-
reason: "not a file"
|
|
626
|
-
};
|
|
627
|
-
if (stat.size > SESSION_FILE_INSPECTION_MAX_BYTES) return null;
|
|
628
|
-
let raw;
|
|
629
|
-
try {
|
|
630
|
-
raw = fs.readFileSync(params.transcriptPath, "utf-8");
|
|
631
|
-
} catch {
|
|
632
|
-
return {
|
|
633
|
-
kind: "invalid-session-transcript",
|
|
634
|
-
sessionKey: params.sessionKey,
|
|
635
|
-
storePath: params.storePath,
|
|
636
|
-
path: params.transcriptPath,
|
|
637
|
-
reason: "unreadable"
|
|
638
|
-
};
|
|
639
|
-
}
|
|
640
|
-
const entries = [];
|
|
641
|
-
let malformedLines = 0;
|
|
642
|
-
for (const line of raw.split(/\r?\n/)) {
|
|
643
|
-
if (!line.trim()) continue;
|
|
644
|
-
try {
|
|
645
|
-
const entry = JSON.parse(line);
|
|
646
|
-
entries.push(entry);
|
|
647
|
-
} catch {
|
|
648
|
-
malformedLines += 1;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
return inspectTranscriptEntries({
|
|
652
|
-
...params,
|
|
653
|
-
entries,
|
|
654
|
-
malformedLines
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
function inspectCanonicalSessionTranscript(params) {
|
|
658
|
-
let entries;
|
|
659
|
-
try {
|
|
660
|
-
entries = loadTranscriptEventsSync({
|
|
661
|
-
agentId: params.agentId,
|
|
662
|
-
sessionId: params.sessionId,
|
|
663
|
-
sessionKey: params.sessionKey,
|
|
664
|
-
storePath: params.storePath
|
|
665
|
-
});
|
|
666
|
-
} catch {
|
|
667
|
-
return {
|
|
668
|
-
kind: "invalid-session-transcript",
|
|
669
|
-
sessionKey: params.sessionKey,
|
|
670
|
-
storePath: params.storePath,
|
|
671
|
-
path: params.storePath,
|
|
672
|
-
reason: "unreadable"
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
return inspectTranscriptEntries({
|
|
676
|
-
sessionKey: params.sessionKey,
|
|
677
|
-
storePath: params.storePath,
|
|
678
|
-
transcriptPath: params.storePath,
|
|
679
|
-
allowMissingSessionHeader: true,
|
|
680
|
-
entries
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
function collectFeishuSessionFindings(params) {
|
|
684
|
-
const sessionId = typeof params.entry.sessionId === "string" ? params.entry.sessionId.trim() : "";
|
|
685
|
-
if (sessionId) {
|
|
686
|
-
const finding = inspectCanonicalSessionTranscript({
|
|
687
|
-
agentId: params.agentId,
|
|
688
|
-
sessionId,
|
|
689
|
-
sessionKey: params.sessionKey,
|
|
690
|
-
storePath: params.storePath
|
|
691
|
-
});
|
|
692
|
-
return finding ? [finding] : [];
|
|
693
|
-
}
|
|
694
|
-
const transcriptCandidates = resolveSessionTranscriptCandidates(params);
|
|
695
|
-
const existing = transcriptCandidates.filter(existsFile);
|
|
696
|
-
if (transcriptCandidates.length > 0 && existing.length === 0) return [{
|
|
697
|
-
kind: "missing-session-transcript",
|
|
698
|
-
sessionKey: params.sessionKey,
|
|
699
|
-
storePath: params.storePath
|
|
700
|
-
}];
|
|
701
|
-
const findings = [];
|
|
702
|
-
for (const transcriptPath of existing) {
|
|
703
|
-
const finding = inspectSessionTranscript({
|
|
704
|
-
sessionKey: params.sessionKey,
|
|
705
|
-
storePath: params.storePath,
|
|
706
|
-
transcriptPath
|
|
707
|
-
});
|
|
708
|
-
if (finding) findings.push(finding);
|
|
709
|
-
}
|
|
710
|
-
return findings;
|
|
711
|
-
}
|
|
712
|
-
function hasCorruptFeishuStateJsonFinding(inspection) {
|
|
713
|
-
return inspection.findings.some((finding) => finding.kind === "corrupt-state-json");
|
|
714
|
-
}
|
|
715
|
-
function sessionEntryId(storePath, key) {
|
|
716
|
-
return `${path.resolve(storePath)}\0${key}`;
|
|
717
|
-
}
|
|
718
|
-
function collectRepairSessionEntries(inspection) {
|
|
719
|
-
const entriesById = /* @__PURE__ */ new Map();
|
|
720
|
-
for (const entry of inspection.sessionEntries) entriesById.set(sessionEntryId(entry.storePath, entry.key), entry);
|
|
721
|
-
const repairEntries = [];
|
|
722
|
-
const seen = /* @__PURE__ */ new Set();
|
|
723
|
-
for (const finding of inspection.findings) {
|
|
724
|
-
if (finding.kind === "corrupt-state-json") continue;
|
|
725
|
-
const id = sessionEntryId(finding.storePath, finding.sessionKey);
|
|
726
|
-
if (seen.has(id)) continue;
|
|
727
|
-
const entry = entriesById.get(id);
|
|
728
|
-
if (entry) {
|
|
729
|
-
repairEntries.push(entry);
|
|
730
|
-
seen.add(id);
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
return repairEntries.toSorted((left, right) => left.storePath.localeCompare(right.storePath) || left.key.localeCompare(right.key));
|
|
734
|
-
}
|
|
735
|
-
function inspectFeishuDoctorState(params) {
|
|
736
|
-
const env = params.env ?? process.env;
|
|
737
|
-
const stateDir = resolveStateDir(env, os.homedir);
|
|
738
|
-
const feishuStateDir = path.join(stateDir, FEISHU_STATE_DIR);
|
|
739
|
-
const findings = collectCorruptFeishuStateJsonFindings(feishuStateDir);
|
|
740
|
-
const sessionEntries = [];
|
|
741
|
-
for (const target of collectFeishuSessionTargets({
|
|
742
|
-
cfg: params.cfg,
|
|
743
|
-
env,
|
|
744
|
-
stateDir
|
|
745
|
-
})) for (const { sessionKey: key, entry } of listSessionEntries({
|
|
746
|
-
agentId: target.agentId,
|
|
747
|
-
storePath: target.storePath
|
|
748
|
-
}).filter(({ sessionKey, entry: sessionEntry }) => !isValidAgentHarnessSessionStoreEntry(sessionKey, sessionEntry) && isFeishuSessionEntry(sessionKey, sessionEntry)).toSorted((left, right) => left.sessionKey.localeCompare(right.sessionKey))) {
|
|
749
|
-
const sessionEntry = toFeishuSessionEntry(entry);
|
|
750
|
-
sessionEntries.push({
|
|
751
|
-
key,
|
|
752
|
-
storePath: target.storePath,
|
|
753
|
-
agentId: target.agentId,
|
|
754
|
-
entry: sessionEntry
|
|
755
|
-
});
|
|
756
|
-
findings.push(...collectFeishuSessionFindings({
|
|
757
|
-
sessionKey: key,
|
|
758
|
-
storePath: target.storePath,
|
|
759
|
-
agentId: target.agentId,
|
|
760
|
-
entry: sessionEntry
|
|
761
|
-
}));
|
|
762
|
-
}
|
|
763
|
-
return {
|
|
764
|
-
stateDir,
|
|
765
|
-
feishuStateDir,
|
|
766
|
-
findings,
|
|
767
|
-
sessionEntries
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
function ensureBackupDir(stateDir, now) {
|
|
771
|
-
const backupDir = path.join(stateDir, "backups", `${BACKUP_PREFIX}-${timestampForPath(now)}`);
|
|
772
|
-
fs.mkdirSync(backupDir, {
|
|
773
|
-
recursive: true,
|
|
774
|
-
mode: 448
|
|
775
|
-
});
|
|
776
|
-
return backupDir;
|
|
777
|
-
}
|
|
778
|
-
function resolveUniquePath(candidate) {
|
|
779
|
-
if (!fs.existsSync(candidate)) return candidate;
|
|
780
|
-
for (let index = 1; index < 1e3; index += 1) {
|
|
781
|
-
const next = `${candidate}.${index}`;
|
|
782
|
-
if (!fs.existsSync(next)) return next;
|
|
783
|
-
}
|
|
784
|
-
throw new Error(`Unable to resolve unique path for ${candidate}`);
|
|
785
|
-
}
|
|
786
|
-
function movePathToBackup(params) {
|
|
787
|
-
if (!fs.existsSync(params.sourcePath)) return false;
|
|
788
|
-
const targetPath = resolveUniquePath(path.join(params.backupDir, params.relativeTarget));
|
|
789
|
-
fs.mkdirSync(path.dirname(targetPath), {
|
|
790
|
-
recursive: true,
|
|
791
|
-
mode: 448
|
|
792
|
-
});
|
|
793
|
-
fs.renameSync(params.sourcePath, targetPath);
|
|
794
|
-
return true;
|
|
795
|
-
}
|
|
796
|
-
function copyStoreBackup(params) {
|
|
797
|
-
const targetDir = path.join(params.backupDir, "session-stores", params.agentId);
|
|
798
|
-
for (const sourcePath of resolveSessionStoreBackupPaths({
|
|
799
|
-
agentId: params.agentId,
|
|
800
|
-
storePath: params.storePath
|
|
801
|
-
})) {
|
|
802
|
-
if (!existsFile(sourcePath)) continue;
|
|
803
|
-
const targetPath = path.join(targetDir, path.basename(sourcePath));
|
|
804
|
-
fs.mkdirSync(path.dirname(targetPath), {
|
|
805
|
-
recursive: true,
|
|
806
|
-
mode: 448
|
|
807
|
-
});
|
|
808
|
-
fs.copyFileSync(sourcePath, resolveUniquePath(targetPath));
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
function collectSessionArtifactPaths(params) {
|
|
812
|
-
const artifacts = /* @__PURE__ */ new Set();
|
|
813
|
-
for (const transcriptPath of resolveSessionTranscriptCandidates(params)) {
|
|
814
|
-
artifacts.add(transcriptPath);
|
|
815
|
-
if (transcriptPath.endsWith(".jsonl")) {
|
|
816
|
-
const base = transcriptPath.slice(0, -6);
|
|
817
|
-
artifacts.add(`${base}.trajectory.jsonl`);
|
|
818
|
-
artifacts.add(`${base}.trajectory-path.json`);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
return [...artifacts].toSorted();
|
|
822
|
-
}
|
|
823
|
-
function archiveSessionArtifacts(params) {
|
|
824
|
-
const seen = /* @__PURE__ */ new Set();
|
|
825
|
-
let archived = 0;
|
|
826
|
-
for (const entry of params.entries) for (const artifactPath of collectSessionArtifactPaths({
|
|
827
|
-
storePath: params.storePath,
|
|
828
|
-
agentId: entry.agentId,
|
|
829
|
-
entry: entry.entry
|
|
830
|
-
})) {
|
|
831
|
-
if (seen.has(artifactPath) || !existsFile(artifactPath)) continue;
|
|
832
|
-
seen.add(artifactPath);
|
|
833
|
-
const archivedPath = resolveUniquePath(`${artifactPath}.deleted.${params.archiveTimestamp}`);
|
|
834
|
-
fs.renameSync(artifactPath, archivedPath);
|
|
835
|
-
archived += 1;
|
|
836
|
-
}
|
|
837
|
-
return archived;
|
|
838
|
-
}
|
|
839
|
-
async function repairFeishuDoctorState(params) {
|
|
840
|
-
const env = params.env ?? process.env;
|
|
841
|
-
const now = params.now ?? /* @__PURE__ */ new Date();
|
|
842
|
-
const inspection = params.inspection ?? inspectFeishuDoctorState({
|
|
843
|
-
cfg: params.cfg,
|
|
844
|
-
env
|
|
845
|
-
});
|
|
846
|
-
const backupDir = ensureBackupDir(inspection.stateDir, now);
|
|
847
|
-
const archiveTimestamp = timestampForPath(now);
|
|
848
|
-
const warnings = [];
|
|
849
|
-
const stateDirRepairAttempted = hasCorruptFeishuStateJsonFinding(inspection);
|
|
850
|
-
let rebuiltStateDir = false;
|
|
851
|
-
if (stateDirRepairAttempted) try {
|
|
852
|
-
rebuiltStateDir = movePathToBackup({
|
|
853
|
-
sourcePath: inspection.feishuStateDir,
|
|
854
|
-
backupDir,
|
|
855
|
-
relativeTarget: FEISHU_STATE_DIR
|
|
856
|
-
});
|
|
857
|
-
fs.mkdirSync(inspection.feishuStateDir, {
|
|
858
|
-
recursive: true,
|
|
859
|
-
mode: 448
|
|
860
|
-
});
|
|
861
|
-
} catch (error) {
|
|
862
|
-
warnings.push(`- Failed to rebuild Feishu local state: ${String(error)}`);
|
|
863
|
-
}
|
|
864
|
-
const entriesByStore = /* @__PURE__ */ new Map();
|
|
865
|
-
for (const entry of collectRepairSessionEntries(inspection)) {
|
|
866
|
-
const existing = entriesByStore.get(entry.storePath);
|
|
867
|
-
if (existing) existing.entries.push({
|
|
868
|
-
key: entry.key,
|
|
869
|
-
entry: entry.entry
|
|
870
|
-
});
|
|
871
|
-
else entriesByStore.set(entry.storePath, {
|
|
872
|
-
agentId: entry.agentId,
|
|
873
|
-
entries: [{
|
|
874
|
-
key: entry.key,
|
|
875
|
-
entry: entry.entry
|
|
876
|
-
}]
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
let removedSessionEntries = 0;
|
|
880
|
-
let touchedSessionStores = 0;
|
|
881
|
-
let archivedSessionArtifacts = 0;
|
|
882
|
-
for (const [storePath, group] of [...entriesByStore.entries()].toSorted(([left], [right]) => left.localeCompare(right))) try {
|
|
883
|
-
copyStoreBackup({
|
|
884
|
-
storePath,
|
|
885
|
-
backupDir,
|
|
886
|
-
agentId: group.agentId
|
|
887
|
-
});
|
|
888
|
-
const keys = new Set(group.entries.map((entry) => entry.key));
|
|
889
|
-
const removedEntries = [];
|
|
890
|
-
for (const key of keys) {
|
|
891
|
-
const currentEntry = listSessionEntries({
|
|
892
|
-
agentId: group.agentId,
|
|
893
|
-
storePath
|
|
894
|
-
}).find((candidate) => candidate.sessionKey === key)?.entry;
|
|
895
|
-
if (!currentEntry || isValidAgentHarnessSessionStoreEntry(key, currentEntry)) continue;
|
|
896
|
-
if (!await deleteSessionEntry({
|
|
897
|
-
agentId: group.agentId,
|
|
898
|
-
archiveTranscript: true,
|
|
899
|
-
sessionKey: key,
|
|
900
|
-
storePath
|
|
901
|
-
})) continue;
|
|
902
|
-
const entry = group.entries.find((candidate) => candidate.key === key);
|
|
903
|
-
if (entry) removedEntries.push(entry);
|
|
904
|
-
}
|
|
905
|
-
const removed = removedEntries.length;
|
|
906
|
-
removedSessionEntries += removed;
|
|
907
|
-
if (removed > 0) {
|
|
908
|
-
touchedSessionStores += 1;
|
|
909
|
-
archivedSessionArtifacts += archiveSessionArtifacts({
|
|
910
|
-
storePath,
|
|
911
|
-
entries: removedEntries.map((entry) => ({
|
|
912
|
-
agentId: group.agentId,
|
|
913
|
-
entry: entry.entry
|
|
914
|
-
})),
|
|
915
|
-
archiveTimestamp
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
} catch (error) {
|
|
919
|
-
warnings.push(`- Failed to archive Feishu sessions in ${formatDisplayPath(storePath)}: ${String(error)}`);
|
|
920
|
-
}
|
|
921
|
-
return {
|
|
922
|
-
backupDir,
|
|
923
|
-
stateDirRepairAttempted,
|
|
924
|
-
rebuiltStateDir,
|
|
925
|
-
removedSessionEntries,
|
|
926
|
-
touchedSessionStores,
|
|
927
|
-
archivedSessionArtifacts,
|
|
928
|
-
warnings
|
|
929
|
-
};
|
|
930
|
-
}
|
|
931
|
-
function formatPreviewWarning(inspection) {
|
|
932
|
-
const previewFindings = inspection.findings.slice(0, 5).map(formatFinding);
|
|
933
|
-
const remaining = inspection.findings.length - previewFindings.length;
|
|
934
|
-
const repairActions = [];
|
|
935
|
-
if (hasCorruptFeishuStateJsonFinding(inspection)) repairActions.push(`archive ${formatDisplayPath(inspection.feishuStateDir)}`);
|
|
936
|
-
const repairSessionEntries = collectRepairSessionEntries(inspection);
|
|
937
|
-
if (repairSessionEntries.length > 0) repairActions.push(`archive artifacts and remove ${countLabel(repairSessionEntries.length, "flagged Feishu-scoped session entry", "flagged Feishu-scoped session entries")}`);
|
|
938
|
-
const repairSummary = repairActions.length > 0 ? repairActions.join(" and ") : "apply targeted Feishu state cleanup";
|
|
939
|
-
return [
|
|
940
|
-
"- Feishu local channel state may need repair.",
|
|
941
|
-
...previewFindings,
|
|
942
|
-
...remaining > 0 ? [`- ...and ${remaining} more Feishu state finding(s).`] : [],
|
|
943
|
-
`- Repair will ${repairSummary}, while preserving Feishu App ID/secret config and healthy session entries.`,
|
|
944
|
-
"- Run \"openclaw doctor --fix\" to rebuild Feishu local state."
|
|
945
|
-
].join("\n");
|
|
946
|
-
}
|
|
947
|
-
function formatRepairChange(report) {
|
|
948
|
-
const stateRepairStatus = report.stateDirRepairAttempted ? report.rebuiltStateDir ? "yes" : "no existing state" : "not needed";
|
|
949
|
-
return [
|
|
950
|
-
"Feishu local state repaired.",
|
|
951
|
-
`- Backup dir: ${formatDisplayPath(report.backupDir)}`,
|
|
952
|
-
`- Rebuilt Feishu runtime state: ${stateRepairStatus}`,
|
|
953
|
-
`- Removed ${countLabel(report.removedSessionEntries, "Feishu-scoped session entry", "Feishu-scoped session entries")} from ${countLabel(report.touchedSessionStores, "session store")}.`,
|
|
954
|
-
`- Archived ${countLabel(report.archivedSessionArtifacts, "session artifact file")}.`,
|
|
955
|
-
"- Preserved Feishu App ID/secret config."
|
|
956
|
-
].join("\n");
|
|
957
|
-
}
|
|
958
|
-
function hasConfiguredFeishuChannel(cfg) {
|
|
959
|
-
return Boolean(cfg.channels?.feishu);
|
|
960
|
-
}
|
|
961
|
-
async function runFeishuDoctorSequence(params) {
|
|
962
|
-
if (!hasConfiguredFeishuChannel(params.cfg)) return {
|
|
963
|
-
changeNotes: [],
|
|
964
|
-
warningNotes: []
|
|
965
|
-
};
|
|
966
|
-
const inspection = inspectFeishuDoctorState({
|
|
967
|
-
cfg: params.cfg,
|
|
968
|
-
env: params.env
|
|
969
|
-
});
|
|
970
|
-
if (inspection.findings.length === 0) return {
|
|
971
|
-
changeNotes: [],
|
|
972
|
-
warningNotes: []
|
|
973
|
-
};
|
|
974
|
-
if (!params.shouldRepair) return {
|
|
975
|
-
changeNotes: [],
|
|
976
|
-
warningNotes: [formatPreviewWarning(inspection)]
|
|
977
|
-
};
|
|
978
|
-
const report = await repairFeishuDoctorState({
|
|
979
|
-
cfg: params.cfg,
|
|
980
|
-
env: params.env,
|
|
981
|
-
inspection
|
|
982
|
-
});
|
|
983
|
-
return {
|
|
984
|
-
changeNotes: [formatRepairChange(report)],
|
|
985
|
-
warningNotes: report.warnings
|
|
986
|
-
};
|
|
987
|
-
}
|
|
988
|
-
const feishuDoctor = {
|
|
989
|
-
legacyConfigRules,
|
|
990
|
-
normalizeCompatibilityConfig,
|
|
991
|
-
runConfigSequence: async ({ cfg, env, shouldRepair }) => await runFeishuDoctorSequence({
|
|
992
|
-
cfg,
|
|
993
|
-
env,
|
|
994
|
-
shouldRepair
|
|
995
|
-
})
|
|
996
|
-
};
|
|
997
|
-
//#endregion
|
|
998
|
-
//#region extensions/feishu/src/presentation-card.ts
|
|
999
|
-
const FEISHU_CARD_MAX_BYTES = 30 * 1024;
|
|
1000
|
-
const FEISHU_CARD_MAX_ELEMENTS = 200;
|
|
1001
|
-
function countFeishuCardElements(value, ancestors = /* @__PURE__ */ new Set()) {
|
|
1002
|
-
if (Array.isArray(value)) return value.reduce((count, entry) => count + countFeishuCardElements(entry, ancestors), 0);
|
|
1003
|
-
if (!value || typeof value !== "object") return 0;
|
|
1004
|
-
if (ancestors.has(value)) return 201;
|
|
1005
|
-
ancestors.add(value);
|
|
1006
|
-
const record = value;
|
|
1007
|
-
let count = typeof record.tag === "string" ? 1 : 0;
|
|
1008
|
-
for (const entry of Object.values(record)) {
|
|
1009
|
-
count += countFeishuCardElements(entry, ancestors);
|
|
1010
|
-
if (count > FEISHU_CARD_MAX_ELEMENTS) break;
|
|
1011
|
-
}
|
|
1012
|
-
ancestors.delete(value);
|
|
1013
|
-
return count;
|
|
1014
|
-
}
|
|
1015
|
-
function isFeishuCardWithinEnvelope(card) {
|
|
1016
|
-
try {
|
|
1017
|
-
return Buffer.byteLength(JSON.stringify(card), "utf8") <= FEISHU_CARD_MAX_BYTES && countFeishuCardElements(card) <= FEISHU_CARD_MAX_ELEMENTS;
|
|
1018
|
-
} catch {
|
|
1019
|
-
return false;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
function assertFeishuCardWithinEnvelope(card, label = "Feishu card") {
|
|
1023
|
-
if (!isFeishuCardWithinEnvelope(card)) throw new Error(`${label} exceeds the 30 KB or 200-element API limit.`);
|
|
1024
|
-
}
|
|
1025
|
-
function escapeFeishuCardMarkdownText(text) {
|
|
1026
|
-
return text.replace(/[&<>]/g, (char) => {
|
|
1027
|
-
switch (char) {
|
|
1028
|
-
case "&": return "&";
|
|
1029
|
-
case "<": return "<";
|
|
1030
|
-
case ">": return ">";
|
|
1031
|
-
default: return char;
|
|
1032
|
-
}
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
function resolveSafeFeishuButtonUrl(url) {
|
|
1036
|
-
const trimmed = url?.trim();
|
|
1037
|
-
if (!trimmed) return;
|
|
1038
|
-
try {
|
|
1039
|
-
const parsed = new URL(trimmed);
|
|
1040
|
-
return parsed.protocol === "https:" || parsed.protocol === "http:" ? trimmed : void 0;
|
|
1041
|
-
} catch {
|
|
1042
|
-
return;
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
function resolveFeishuButtonUrl(button) {
|
|
1046
|
-
if (button.action?.type === "url" || button.action?.type === "web-app") return button.action.url;
|
|
1047
|
-
if (button.action) return;
|
|
1048
|
-
return button.url ?? button.webApp?.url ?? button.web_app?.url;
|
|
1049
|
-
}
|
|
1050
|
-
function resolveFeishuCommandButtonValue(button) {
|
|
1051
|
-
if (button.action?.type === "command") return button.action.command;
|
|
1052
|
-
if (button.action) return;
|
|
1053
|
-
return button.value;
|
|
1054
|
-
}
|
|
1055
|
-
function mapFeishuButtonType(style) {
|
|
1056
|
-
if (style === "primary" || style === "success") return "primary";
|
|
1057
|
-
if (style === "danger") return "danger";
|
|
1058
|
-
return "default";
|
|
1059
|
-
}
|
|
1060
|
-
function buildFeishuPayloadButton(button) {
|
|
1061
|
-
const behaviors = [];
|
|
1062
|
-
const rendered = {
|
|
1063
|
-
tag: "button",
|
|
1064
|
-
text: {
|
|
1065
|
-
tag: "plain_text",
|
|
1066
|
-
content: button.label
|
|
1067
|
-
},
|
|
1068
|
-
type: mapFeishuButtonType(button.style)
|
|
1069
|
-
};
|
|
1070
|
-
const url = resolveFeishuButtonUrl(button);
|
|
1071
|
-
if (url) {
|
|
1072
|
-
const safeUrl = resolveSafeFeishuButtonUrl(url);
|
|
1073
|
-
if (safeUrl) behaviors.push({
|
|
1074
|
-
type: "open_url",
|
|
1075
|
-
default_url: safeUrl
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
const value = resolveFeishuCommandButtonValue(button);
|
|
1079
|
-
if (value) behaviors.push({
|
|
1080
|
-
type: "callback",
|
|
1081
|
-
value: createFeishuCardInteractionEnvelope({
|
|
1082
|
-
k: "quick",
|
|
1083
|
-
a: "feishu.payload.button",
|
|
1084
|
-
q: value
|
|
1085
|
-
})
|
|
1086
|
-
});
|
|
1087
|
-
if (behaviors.length === 0) return;
|
|
1088
|
-
rendered.behaviors = behaviors;
|
|
1089
|
-
return rendered;
|
|
1090
|
-
}
|
|
1091
|
-
function buildFeishuCardElementsForBlock(block) {
|
|
1092
|
-
if (block.type === "text") return [{
|
|
1093
|
-
tag: "markdown",
|
|
1094
|
-
content: escapeFeishuCardMarkdownText(block.text)
|
|
1095
|
-
}];
|
|
1096
|
-
if (block.type === "context") return [{
|
|
1097
|
-
tag: "markdown",
|
|
1098
|
-
content: `<font color='grey'>${escapeFeishuCardMarkdownText(block.text)}</font>`
|
|
1099
|
-
}];
|
|
1100
|
-
if (block.type === "divider") return [{ tag: "hr" }];
|
|
1101
|
-
if (block.type === "buttons") return block.buttons.map((button) => buildFeishuPayloadButton(button)).filter((button) => Boolean(button));
|
|
1102
|
-
if (block.type === "chart") return [{
|
|
1103
|
-
tag: "markdown",
|
|
1104
|
-
content: escapeFeishuCardMarkdownText(renderMessagePresentationChartFallbackText(block))
|
|
1105
|
-
}];
|
|
1106
|
-
if (block.type === "table") return [{
|
|
1107
|
-
tag: "markdown",
|
|
1108
|
-
content: escapeFeishuCardMarkdownText(renderMessagePresentationTableFallbackText(block))
|
|
1109
|
-
}];
|
|
1110
|
-
const labels = block.options.map((option) => `- ${option.label}`).join("\n");
|
|
1111
|
-
return [{
|
|
1112
|
-
tag: "markdown",
|
|
1113
|
-
content: `${escapeFeishuCardMarkdownText(block.placeholder?.trim() || "Options")}:\n${escapeFeishuCardMarkdownText(labels)}`
|
|
1114
|
-
}];
|
|
1115
|
-
}
|
|
1116
|
-
function resolvePresentationHeaderTemplate(tone) {
|
|
1117
|
-
if (tone === "danger") return "red";
|
|
1118
|
-
if (tone === "warning") return "orange";
|
|
1119
|
-
if (tone === "success") return "green";
|
|
1120
|
-
return "blue";
|
|
1121
|
-
}
|
|
1122
|
-
function buildFeishuPresentationCardElements(params) {
|
|
1123
|
-
const elements = [];
|
|
1124
|
-
const fallbackText = params.fallbackText?.trim();
|
|
1125
|
-
if (fallbackText) elements.push({
|
|
1126
|
-
tag: "markdown",
|
|
1127
|
-
content: escapeFeishuCardMarkdownText(fallbackText)
|
|
1128
|
-
});
|
|
1129
|
-
for (const block of params.presentation.blocks) for (const element of buildFeishuCardElementsForBlock(block)) elements.push(element);
|
|
1130
|
-
if (elements.length > 0) return elements;
|
|
1131
|
-
return [{
|
|
1132
|
-
tag: "markdown",
|
|
1133
|
-
content: renderMessagePresentationFallbackText({
|
|
1134
|
-
text: params.fallbackText,
|
|
1135
|
-
presentation: params.presentation.title ? {
|
|
1136
|
-
...params.presentation.tone ? { tone: params.presentation.tone } : {},
|
|
1137
|
-
blocks: params.presentation.blocks
|
|
1138
|
-
} : params.presentation
|
|
1139
|
-
})
|
|
1140
|
-
}];
|
|
1141
|
-
}
|
|
1142
|
-
function buildFeishuPresentationCard(params) {
|
|
1143
|
-
return {
|
|
1144
|
-
schema: "2.0",
|
|
1145
|
-
config: { width_mode: "fill" },
|
|
1146
|
-
...params.presentation.title ? { header: {
|
|
1147
|
-
title: {
|
|
1148
|
-
tag: "plain_text",
|
|
1149
|
-
content: params.presentation.title
|
|
1150
|
-
},
|
|
1151
|
-
template: resolvePresentationHeaderTemplate(params.presentation.tone)
|
|
1152
|
-
} } : {},
|
|
1153
|
-
body: { elements: buildFeishuPresentationCardElements(params) }
|
|
1154
|
-
};
|
|
1155
|
-
}
|
|
1156
|
-
//#endregion
|
|
1157
|
-
//#region extensions/feishu/src/session-route.ts
|
|
1158
|
-
function resolveFeishuOutboundSessionRoute(params) {
|
|
1159
|
-
const rawTarget = stripChannelTargetPrefix(params.target, "feishu", "lark");
|
|
1160
|
-
const target = normalizeFeishuTarget(rawTarget);
|
|
1161
|
-
if (!target) return null;
|
|
1162
|
-
const isGroup = resolveReceiveIdType(rawTarget) === "chat_id";
|
|
1163
|
-
const account = resolveFeishuAccount({
|
|
1164
|
-
cfg: params.cfg,
|
|
1165
|
-
accountId: params.accountId
|
|
1166
|
-
});
|
|
1167
|
-
const groupSessionScope = isGroup ? resolveConfiguredFeishuGroupSessionScope({
|
|
1168
|
-
groupConfig: resolveFeishuGroupConfig({
|
|
1169
|
-
cfg: account.config,
|
|
1170
|
-
groupId: target
|
|
1171
|
-
}),
|
|
1172
|
-
feishuCfg: account.config
|
|
1173
|
-
}) : void 0;
|
|
1174
|
-
const recipientSessionExact = isGroup ? target.startsWith("oc_") && groupSessionScope === "group" : target.startsWith("ou_");
|
|
1175
|
-
return buildChannelOutboundSessionRoute({
|
|
1176
|
-
cfg: params.cfg,
|
|
1177
|
-
agentId: params.agentId,
|
|
1178
|
-
channel: "feishu",
|
|
1179
|
-
accountId: params.accountId,
|
|
1180
|
-
recipientSessionExact,
|
|
1181
|
-
peer: {
|
|
1182
|
-
kind: isGroup ? "group" : "direct",
|
|
1183
|
-
id: target
|
|
1184
|
-
},
|
|
1185
|
-
chatType: isGroup ? "group" : "direct",
|
|
1186
|
-
from: isGroup ? `feishu:group:${target}` : `feishu:${target}`,
|
|
1187
|
-
to: target
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
//#endregion
|
|
1191
|
-
//#region extensions/feishu/src/setup-core.ts
|
|
1192
|
-
function setFeishuNamedAccountEnabled(cfg, accountId, enabled) {
|
|
1193
|
-
const feishuCfg = cfg.channels?.feishu;
|
|
1194
|
-
return {
|
|
1195
|
-
...cfg,
|
|
1196
|
-
channels: {
|
|
1197
|
-
...cfg.channels,
|
|
1198
|
-
feishu: {
|
|
1199
|
-
...feishuCfg,
|
|
1200
|
-
accounts: {
|
|
1201
|
-
...feishuCfg?.accounts,
|
|
1202
|
-
[accountId]: {
|
|
1203
|
-
...feishuCfg?.accounts?.[accountId],
|
|
1204
|
-
enabled
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
};
|
|
1210
|
-
}
|
|
1211
|
-
const feishuSetupAdapter = {
|
|
1212
|
-
resolveAccountId: ({ cfg, accountId }) => accountId?.trim() || resolveDefaultFeishuAccountId(cfg),
|
|
1213
|
-
applyAccountConfig: ({ cfg, accountId }) => {
|
|
1214
|
-
if (!accountId || accountId === DEFAULT_ACCOUNT_ID$2) return {
|
|
1215
|
-
...cfg,
|
|
1216
|
-
channels: {
|
|
1217
|
-
...cfg.channels,
|
|
1218
|
-
feishu: {
|
|
1219
|
-
...cfg.channels?.feishu,
|
|
1220
|
-
enabled: true
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
return setFeishuNamedAccountEnabled(cfg, accountId, true);
|
|
1225
|
-
}
|
|
1226
|
-
};
|
|
1227
|
-
const feishuSetupContract = defineChannelSetupContract({
|
|
1228
|
-
fields: {},
|
|
1229
|
-
legacyAdapter: feishuSetupAdapter
|
|
1230
|
-
});
|
|
1231
|
-
//#endregion
|
|
1232
|
-
//#region extensions/feishu/src/setup-surface.ts
|
|
1233
|
-
const t = createSetupTranslator();
|
|
1234
|
-
const channel = "feishu";
|
|
1235
|
-
const SCAN_TO_CREATE_TP = "ob_cli_app";
|
|
1236
|
-
const FEISHU_SETUP_FLOW_KEY = "_flow";
|
|
1237
|
-
function isFeishuConfigured(cfg) {
|
|
1238
|
-
const feishuCfg = cfg.channels?.feishu;
|
|
1239
|
-
const isAppIdConfigured = (value) => {
|
|
1240
|
-
if (normalizeOptionalString(value)) return true;
|
|
1241
|
-
if (!value || typeof value !== "object") return false;
|
|
1242
|
-
const rec = value;
|
|
1243
|
-
const source = normalizeOptionalString(rec.source)?.toLowerCase();
|
|
1244
|
-
const id = normalizeOptionalString(rec.id);
|
|
1245
|
-
if (source === "env" && id) return Boolean(normalizeOptionalString(process.env[id]));
|
|
1246
|
-
return hasConfiguredSecretInput$1(value);
|
|
1247
|
-
};
|
|
1248
|
-
const topLevelConfigured = isAppIdConfigured(feishuCfg?.appId) && hasConfiguredSecretInput$1(feishuCfg?.appSecret);
|
|
1249
|
-
const accountConfigured = Object.values(feishuCfg?.accounts ?? {}).some((account) => {
|
|
1250
|
-
if (!account || typeof account !== "object") return false;
|
|
1251
|
-
const hasOwnAppId = Object.hasOwn(account, "appId");
|
|
1252
|
-
const hasOwnAppSecret = Object.hasOwn(account, "appSecret");
|
|
1253
|
-
const accountAppIdConfigured = hasOwnAppId ? isAppIdConfigured(account.appId) : isAppIdConfigured(feishuCfg?.appId);
|
|
1254
|
-
const accountSecretConfigured = hasOwnAppSecret ? hasConfiguredSecretInput$1(account.appSecret) : hasConfiguredSecretInput$1(feishuCfg?.appSecret);
|
|
1255
|
-
return accountAppIdConfigured && accountSecretConfigured;
|
|
1256
|
-
});
|
|
1257
|
-
return topLevelConfigured || accountConfigured;
|
|
1258
|
-
}
|
|
1259
|
-
function formatFeishuStatusLine(status) {
|
|
1260
|
-
if (status === "needs-credentials") return `Feishu: ${t("wizard.channels.statusNeedsAppCredentials")}`;
|
|
1261
|
-
return `Feishu: ${t("wizard.channels.statusConfiguredConnectionNotVerified")}`;
|
|
1262
|
-
}
|
|
1263
|
-
/**
|
|
1264
|
-
* Patch feishu config at the correct location based on accountId.
|
|
1265
|
-
* - DEFAULT_ACCOUNT_ID → writes to top-level channels.feishu
|
|
1266
|
-
* - named account → writes to channels.feishu.accounts[accountId]
|
|
1267
|
-
*/
|
|
1268
|
-
function patchFeishuConfig(cfg, accountId, patch) {
|
|
1269
|
-
return patchScopedAccountConfig({
|
|
1270
|
-
cfg,
|
|
1271
|
-
channelKey: channel,
|
|
1272
|
-
accountId,
|
|
1273
|
-
patch: {
|
|
1274
|
-
enabled: true,
|
|
1275
|
-
...patch
|
|
1276
|
-
}
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
async function promptFeishuAllowFrom(params) {
|
|
1280
|
-
const feishuCfg = params.cfg.channels?.feishu;
|
|
1281
|
-
const resolvedAccountId = params.accountId ?? resolveDefaultFeishuAccountId(params.cfg);
|
|
1282
|
-
const existingAllowFrom = (resolvedAccountId !== DEFAULT_ACCOUNT_ID$2 ? feishuCfg?.accounts?.[resolvedAccountId] : void 0)?.allowFrom ?? feishuCfg?.allowFrom ?? [];
|
|
1283
|
-
await params.prompter.note([
|
|
1284
|
-
t("wizard.feishu.allowlistIntro"),
|
|
1285
|
-
t("wizard.feishu.allowlistFindUser"),
|
|
1286
|
-
t("wizard.feishu.examples"),
|
|
1287
|
-
"- ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
1288
|
-
"- on_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
1289
|
-
].join("\n"), t("wizard.feishu.allowlistTitle"));
|
|
1290
|
-
const mergedAllowFrom = mergeAllowFromEntries(existingAllowFrom, splitSetupEntries(await params.prompter.text({
|
|
1291
|
-
message: t("wizard.feishu.allowFromPrompt"),
|
|
1292
|
-
placeholder: "ou_xxxxx, ou_yyyyy",
|
|
1293
|
-
initialValue: existingAllowFrom.length > 0 ? existingAllowFrom.map(String).join(", ") : void 0
|
|
1294
|
-
})));
|
|
1295
|
-
return patchFeishuConfig(params.cfg, resolvedAccountId, { allowFrom: mergedAllowFrom });
|
|
1296
|
-
}
|
|
1297
|
-
async function noteFeishuCredentialHelp(prompter) {
|
|
1298
|
-
await prompter.note([
|
|
1299
|
-
t("wizard.feishu.credentialsStepOpenPlatform"),
|
|
1300
|
-
t("wizard.feishu.credentialsStepCreateApp"),
|
|
1301
|
-
t("wizard.feishu.credentialsStepGetCredentials"),
|
|
1302
|
-
t("wizard.feishu.credentialsStepPermissions"),
|
|
1303
|
-
t("wizard.feishu.credentialsStepPublish"),
|
|
1304
|
-
t("wizard.feishu.credentialsEnvTip"),
|
|
1305
|
-
t("wizard.channels.docs", { link: formatDocsLink("/channels/feishu", "feishu") })
|
|
1306
|
-
].join("\n"), t("wizard.feishu.credentialsTitle"));
|
|
1307
|
-
}
|
|
1308
|
-
async function promptFeishuAppId(params) {
|
|
1309
|
-
return (await params.prompter.text({
|
|
1310
|
-
message: t("wizard.feishu.appIdPrompt"),
|
|
1311
|
-
initialValue: params.initialValue,
|
|
1312
|
-
validate: (value) => value?.trim() ? void 0 : t("common.required")
|
|
1313
|
-
})).trim();
|
|
1314
|
-
}
|
|
1315
|
-
const feishuDmPolicy = createChannelDmPolicy({
|
|
1316
|
-
label: "Feishu",
|
|
1317
|
-
channel,
|
|
1318
|
-
resolveAccount: (cfg, accountId) => {
|
|
1319
|
-
const feishuCfg = cfg.channels?.feishu;
|
|
1320
|
-
const resolvedAccountId = accountId ?? resolveDefaultFeishuAccountId(cfg);
|
|
1321
|
-
const account = resolvedAccountId === DEFAULT_ACCOUNT_ID$2 ? void 0 : feishuCfg?.accounts?.[resolvedAccountId];
|
|
1322
|
-
return {
|
|
1323
|
-
accountId: resolvedAccountId,
|
|
1324
|
-
config: {
|
|
1325
|
-
dmPolicy: account?.dmPolicy ?? feishuCfg?.dmPolicy,
|
|
1326
|
-
allowFrom: account?.allowFrom ?? feishuCfg?.allowFrom
|
|
1327
|
-
}
|
|
1328
|
-
};
|
|
1329
|
-
},
|
|
1330
|
-
resolveAllowFrom: ({ policy }) => policy === "open" ? ["*"] : void 0,
|
|
1331
|
-
applyPatch: ({ cfg, account, patch }) => patchFeishuConfig(cfg, account.accountId, patch),
|
|
1332
|
-
promptAllowFrom: promptFeishuAllowFrom
|
|
1333
|
-
});
|
|
1334
|
-
function applyNewAppSecurityPolicy(cfg, accountId, openId, groupPolicy) {
|
|
1335
|
-
let next = cfg;
|
|
1336
|
-
if (openId) next = patchFeishuConfig(next, accountId, {
|
|
1337
|
-
dmPolicy: "allowlist",
|
|
1338
|
-
allowFrom: [openId]
|
|
1339
|
-
});
|
|
1340
|
-
const groupPatch = { groupPolicy };
|
|
1341
|
-
if (groupPolicy === "open") groupPatch.requireMention = true;
|
|
1342
|
-
next = patchFeishuConfig(next, accountId, groupPatch);
|
|
1343
|
-
return next;
|
|
1344
|
-
}
|
|
1345
|
-
const loadAppRegistrationModule = createLazyRuntimeModule(() => import("./app-registration-cN1bVV6s.js"));
|
|
1346
|
-
async function promptFeishuDomain(params) {
|
|
1347
|
-
return await params.prompter.select({
|
|
1348
|
-
message: t("wizard.feishu.domainPrompt"),
|
|
1349
|
-
options: [{
|
|
1350
|
-
value: "feishu",
|
|
1351
|
-
label: t("wizard.feishu.domainFeishu")
|
|
1352
|
-
}, {
|
|
1353
|
-
value: "lark",
|
|
1354
|
-
label: t("wizard.feishu.domainLark")
|
|
1355
|
-
}],
|
|
1356
|
-
initialValue: params.initialValue ?? "feishu"
|
|
1357
|
-
});
|
|
1358
|
-
}
|
|
1359
|
-
async function promptFeishuSetupMethod(prompter) {
|
|
1360
|
-
return await prompter.select({
|
|
1361
|
-
message: t("wizard.feishu.setupMethodPrompt"),
|
|
1362
|
-
options: [{
|
|
1363
|
-
value: "manual",
|
|
1364
|
-
label: t("wizard.feishu.setupMethodManual")
|
|
1365
|
-
}, {
|
|
1366
|
-
value: "scan",
|
|
1367
|
-
label: t("wizard.feishu.setupMethodScan")
|
|
1368
|
-
}],
|
|
1369
|
-
initialValue: "manual"
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
async function runScanToCreate(prompter, domain, beforePersistentEffect) {
|
|
1373
|
-
const { beginAppRegistration, initAppRegistration, pollAppRegistration, printQrCode } = await loadAppRegistrationModule();
|
|
1374
|
-
try {
|
|
1375
|
-
await initAppRegistration(domain);
|
|
1376
|
-
} catch {
|
|
1377
|
-
await prompter.note(t("wizard.feishu.scanUnavailable"), t("wizard.feishu.setupTitle"));
|
|
1378
|
-
return null;
|
|
1379
|
-
}
|
|
1380
|
-
await beforePersistentEffect?.();
|
|
1381
|
-
const begin = await beginAppRegistration(domain);
|
|
1382
|
-
await prompter.note(t("wizard.feishu.scanQr"), t("wizard.feishu.scanTitle"));
|
|
1383
|
-
await printQrCode(begin.qrUrl);
|
|
1384
|
-
const progress = prompter.progress(t("wizard.feishu.fetchingConfig"));
|
|
1385
|
-
const outcome = await pollAppRegistration({
|
|
1386
|
-
deviceCode: begin.deviceCode,
|
|
1387
|
-
interval: begin.interval,
|
|
1388
|
-
expireIn: begin.expireIn,
|
|
1389
|
-
initialDomain: domain,
|
|
1390
|
-
tp: SCAN_TO_CREATE_TP
|
|
1391
|
-
});
|
|
1392
|
-
switch (outcome.status) {
|
|
1393
|
-
case "success":
|
|
1394
|
-
progress.stop(t("wizard.feishu.scanCompleted"));
|
|
1395
|
-
return outcome.result;
|
|
1396
|
-
case "access_denied":
|
|
1397
|
-
progress.stop(t("wizard.feishu.scanDenied"));
|
|
1398
|
-
return null;
|
|
1399
|
-
case "expired":
|
|
1400
|
-
progress.stop(t("wizard.feishu.scanExpired"));
|
|
1401
|
-
return null;
|
|
1402
|
-
case "timeout":
|
|
1403
|
-
progress.stop(t("wizard.feishu.scanTimedOut"));
|
|
1404
|
-
return null;
|
|
1405
|
-
case "error":
|
|
1406
|
-
progress.stop(t("wizard.feishu.scanError", { error: outcome.message }));
|
|
1407
|
-
return null;
|
|
1408
|
-
}
|
|
1409
|
-
return null;
|
|
1410
|
-
}
|
|
1411
|
-
async function runNewAppFlow(params) {
|
|
1412
|
-
const { prompter, options } = params;
|
|
1413
|
-
let next = params.cfg;
|
|
1414
|
-
const targetAccountId = resolveDefaultFeishuAccountId(next);
|
|
1415
|
-
let appId;
|
|
1416
|
-
let appSecret = null;
|
|
1417
|
-
let appSecretProbeValue = null;
|
|
1418
|
-
let scanDomain;
|
|
1419
|
-
let scanOpenId;
|
|
1420
|
-
const currentDomain = (next.channels?.feishu)?.domain ?? "feishu";
|
|
1421
|
-
const setupMethod = await promptFeishuSetupMethod(prompter);
|
|
1422
|
-
const selectedDomain = await promptFeishuDomain({
|
|
1423
|
-
prompter,
|
|
1424
|
-
initialValue: currentDomain
|
|
1425
|
-
});
|
|
1426
|
-
scanDomain = selectedDomain;
|
|
1427
|
-
const scanResult = setupMethod === "scan" ? await runScanToCreate(prompter, selectedDomain, options?.beforePersistentEffect) : null;
|
|
1428
|
-
if (scanResult) {
|
|
1429
|
-
appId = scanResult.appId;
|
|
1430
|
-
appSecret = scanResult.appSecret;
|
|
1431
|
-
scanDomain = scanResult.domain;
|
|
1432
|
-
scanOpenId = scanResult.openId;
|
|
1433
|
-
} else {
|
|
1434
|
-
await noteFeishuCredentialHelp(prompter);
|
|
1435
|
-
appId = await promptFeishuAppId({
|
|
1436
|
-
prompter,
|
|
1437
|
-
initialValue: normalizeOptionalString(process.env.FEISHU_APP_ID)
|
|
1438
|
-
});
|
|
1439
|
-
const appSecretResult = await promptSingleChannelSecretInput({
|
|
1440
|
-
cfg: next,
|
|
1441
|
-
prompter,
|
|
1442
|
-
providerHint: "feishu",
|
|
1443
|
-
credentialLabel: "App Secret",
|
|
1444
|
-
secretInputMode: options?.secretInputMode,
|
|
1445
|
-
accountConfigured: false,
|
|
1446
|
-
canUseEnv: false,
|
|
1447
|
-
hasConfigToken: false,
|
|
1448
|
-
envPrompt: "",
|
|
1449
|
-
keepPrompt: t("wizard.feishu.appSecretKeep"),
|
|
1450
|
-
inputPrompt: t("wizard.feishu.appSecretPrompt"),
|
|
1451
|
-
preferredEnvVar: "FEISHU_APP_SECRET"
|
|
1452
|
-
});
|
|
1453
|
-
if (appSecretResult.action === "set") {
|
|
1454
|
-
appSecret = appSecretResult.value;
|
|
1455
|
-
appSecretProbeValue = appSecretResult.resolvedValue;
|
|
1456
|
-
}
|
|
1457
|
-
if (appId && appSecretProbeValue) {
|
|
1458
|
-
const { getAppOwnerOpenId } = await loadAppRegistrationModule();
|
|
1459
|
-
scanOpenId = await getAppOwnerOpenId({
|
|
1460
|
-
appId,
|
|
1461
|
-
appSecret: appSecretProbeValue,
|
|
1462
|
-
domain: selectedDomain
|
|
1463
|
-
});
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
const groupPolicy = await prompter.select({
|
|
1467
|
-
message: t("wizard.feishu.groupPolicyPrompt"),
|
|
1468
|
-
options: [
|
|
1469
|
-
{
|
|
1470
|
-
value: "allowlist",
|
|
1471
|
-
label: t("wizard.feishu.groupPolicyAllowlist")
|
|
1472
|
-
},
|
|
1473
|
-
{
|
|
1474
|
-
value: "open",
|
|
1475
|
-
label: t("wizard.feishu.groupPolicyOpen")
|
|
1476
|
-
},
|
|
1477
|
-
{
|
|
1478
|
-
value: "disabled",
|
|
1479
|
-
label: t("wizard.feishu.groupPolicyDisabled")
|
|
1480
|
-
}
|
|
1481
|
-
],
|
|
1482
|
-
initialValue: "allowlist"
|
|
1483
|
-
});
|
|
1484
|
-
const configProgress = prompter.progress(t("wizard.feishu.configuring"));
|
|
1485
|
-
await new Promise((resolve) => {
|
|
1486
|
-
setTimeout(resolve, 50);
|
|
1487
|
-
});
|
|
1488
|
-
if (appId && appSecret) next = patchFeishuConfig(next, targetAccountId, {
|
|
1489
|
-
appId,
|
|
1490
|
-
appSecret,
|
|
1491
|
-
connectionMode: "websocket",
|
|
1492
|
-
...scanDomain ? { domain: scanDomain } : {}
|
|
1493
|
-
});
|
|
1494
|
-
else if (scanDomain) next = patchFeishuConfig(next, targetAccountId, { domain: scanDomain });
|
|
1495
|
-
next = applyNewAppSecurityPolicy(next, targetAccountId, scanOpenId, groupPolicy);
|
|
1496
|
-
configProgress.stop(t("wizard.feishu.botConfigured"));
|
|
1497
|
-
return { cfg: next };
|
|
1498
|
-
}
|
|
1499
|
-
async function runEditFlow(params) {
|
|
1500
|
-
const { prompter, options } = params;
|
|
1501
|
-
const next = params.cfg;
|
|
1502
|
-
const feishuCfg = next.channels?.feishu;
|
|
1503
|
-
const resolveAppIdLabel = (value) => {
|
|
1504
|
-
const asString = normalizeOptionalString(value);
|
|
1505
|
-
if (asString) return asString;
|
|
1506
|
-
if (value && typeof value === "object") {
|
|
1507
|
-
const rec = value;
|
|
1508
|
-
if (normalizeOptionalString(rec.source) && normalizeOptionalString(rec.id)) return normalizeOptionalString(process.env[rec.id]) ?? `env:${String(rec.id)}`;
|
|
1509
|
-
if (hasConfiguredSecretInput$1(value)) return "(configured)";
|
|
1510
|
-
}
|
|
1511
|
-
};
|
|
1512
|
-
const existingAppId = resolveAppIdLabel(feishuCfg?.appId) ?? Object.values(feishuCfg?.accounts ?? {}).reduce((found, account) => {
|
|
1513
|
-
if (found) return found;
|
|
1514
|
-
if (account && typeof account === "object") return resolveAppIdLabel(account.appId);
|
|
1515
|
-
}, void 0);
|
|
1516
|
-
if (existingAppId) {
|
|
1517
|
-
if (!await prompter.confirm({
|
|
1518
|
-
message: t("wizard.feishu.existingBotPrompt", { appId: existingAppId }),
|
|
1519
|
-
initialValue: true
|
|
1520
|
-
})) return runNewAppFlow({
|
|
1521
|
-
cfg: next,
|
|
1522
|
-
prompter,
|
|
1523
|
-
options
|
|
1524
|
-
});
|
|
1525
|
-
} else return runNewAppFlow({
|
|
1526
|
-
cfg: next,
|
|
1527
|
-
prompter,
|
|
1528
|
-
options
|
|
1529
|
-
});
|
|
1530
|
-
await prompter.note(t("wizard.feishu.botConfigured"), "");
|
|
1531
|
-
return { cfg: next };
|
|
1532
|
-
}
|
|
1533
|
-
async function runFeishuLogin(params) {
|
|
1534
|
-
const { cfg, prompter } = params;
|
|
1535
|
-
const options = {};
|
|
1536
|
-
if (isFeishuConfigured(cfg)) {
|
|
1537
|
-
const result = await runEditFlow({
|
|
1538
|
-
cfg,
|
|
1539
|
-
prompter,
|
|
1540
|
-
options
|
|
1541
|
-
});
|
|
1542
|
-
if (result === null) return cfg;
|
|
1543
|
-
return result.cfg;
|
|
1544
|
-
}
|
|
1545
|
-
return (await runNewAppFlow({
|
|
1546
|
-
cfg,
|
|
1547
|
-
prompter,
|
|
1548
|
-
options
|
|
1549
|
-
})).cfg;
|
|
1550
|
-
}
|
|
1551
|
-
const feishuSetupWizard = {
|
|
1552
|
-
channel,
|
|
1553
|
-
resolveAccountIdForConfigure: ({ accountOverride, defaultAccountId, cfg }) => (typeof accountOverride === "string" && accountOverride.trim() ? accountOverride.trim() : void 0) ?? resolveDefaultFeishuAccountId(cfg) ?? defaultAccountId,
|
|
1554
|
-
resolveShouldPromptAccountIds: () => false,
|
|
1555
|
-
status: {
|
|
1556
|
-
configuredLabel: t("wizard.channels.statusConfigured"),
|
|
1557
|
-
unconfiguredLabel: t("wizard.channels.statusNeedsAppCredentials"),
|
|
1558
|
-
configuredHint: t("wizard.channels.statusConfigured"),
|
|
1559
|
-
unconfiguredHint: t("wizard.channels.statusNeedsAppCreds"),
|
|
1560
|
-
configuredScore: 2,
|
|
1561
|
-
unconfiguredScore: 0,
|
|
1562
|
-
resolveConfigured: ({ cfg }) => isFeishuConfigured(cfg),
|
|
1563
|
-
resolveStatusLines: async ({ cfg, accountId, configured }) => {
|
|
1564
|
-
const account = resolveFeishuAccount({
|
|
1565
|
-
cfg,
|
|
1566
|
-
accountId
|
|
1567
|
-
});
|
|
1568
|
-
let probeResult = null;
|
|
1569
|
-
if (configured && account.configured) try {
|
|
1570
|
-
const { probeFeishu } = await import("./probe-p3POS2RN.js").then((n) => n.n);
|
|
1571
|
-
probeResult = await probeFeishu(account);
|
|
1572
|
-
} catch {}
|
|
1573
|
-
if (!configured) return [formatFeishuStatusLine("needs-credentials")];
|
|
1574
|
-
if (probeResult?.ok) return [`Feishu: ${t("wizard.channels.statusConnectedAs", { name: probeResult.botName ?? probeResult.botOpenId ?? "bot" })}`];
|
|
1575
|
-
return [formatFeishuStatusLine("configured-unverified")];
|
|
1576
|
-
}
|
|
1577
|
-
},
|
|
1578
|
-
prepare: async ({ cfg, credentialValues }) => {
|
|
1579
|
-
if (isFeishuConfigured(cfg)) return { credentialValues: {
|
|
1580
|
-
...credentialValues,
|
|
1581
|
-
[FEISHU_SETUP_FLOW_KEY]: "edit"
|
|
1582
|
-
} };
|
|
1583
|
-
return { credentialValues: {
|
|
1584
|
-
...credentialValues,
|
|
1585
|
-
[FEISHU_SETUP_FLOW_KEY]: "new"
|
|
1586
|
-
} };
|
|
1587
|
-
},
|
|
1588
|
-
credentials: [],
|
|
1589
|
-
finalize: async ({ cfg, prompter, options, credentialValues }) => {
|
|
1590
|
-
if ((credentialValues[FEISHU_SETUP_FLOW_KEY] ?? "new") === "edit") {
|
|
1591
|
-
const result = await runEditFlow({
|
|
1592
|
-
cfg,
|
|
1593
|
-
prompter,
|
|
1594
|
-
options
|
|
1595
|
-
});
|
|
1596
|
-
if (result === null) return { cfg };
|
|
1597
|
-
return result;
|
|
1598
|
-
}
|
|
1599
|
-
return runNewAppFlow({
|
|
1600
|
-
cfg,
|
|
1601
|
-
prompter,
|
|
1602
|
-
options
|
|
1603
|
-
});
|
|
1604
|
-
},
|
|
1605
|
-
dmPolicy: feishuDmPolicy,
|
|
1606
|
-
disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
|
|
1607
|
-
};
|
|
1608
|
-
//#endregion
|
|
1609
|
-
//#region extensions/feishu/src/channel.ts
|
|
1610
|
-
function readFeishuMediaParam(params) {
|
|
1611
|
-
const media = params.media;
|
|
1612
|
-
if (typeof media !== "string") return;
|
|
1613
|
-
return media.trim() ? media : void 0;
|
|
1614
|
-
}
|
|
1615
|
-
function readBooleanParam(params, keys) {
|
|
1616
|
-
for (const key of keys) {
|
|
1617
|
-
const value = params[key];
|
|
1618
|
-
if (typeof value === "boolean") return value;
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
function hasLegacyFeishuCardCommandValue(actionValue) {
|
|
1622
|
-
return isRecord$1(actionValue) && actionValue.oc !== "ocf1" && (Boolean(typeof actionValue.command === "string" && actionValue.command.trim()) || Boolean(typeof actionValue.text === "string" && actionValue.text.trim()));
|
|
1623
|
-
}
|
|
1624
|
-
function containsLegacyFeishuCardCommandValue(node) {
|
|
1625
|
-
if (Array.isArray(node)) return node.some((item) => containsLegacyFeishuCardCommandValue(item));
|
|
1626
|
-
if (!isRecord$1(node)) return false;
|
|
1627
|
-
if (node.tag === "button" && hasLegacyFeishuCardCommandValue(node.value)) return true;
|
|
1628
|
-
if (node.tag === "button" && Array.isArray(node.behaviors) && node.behaviors.some((behavior) => isRecord$1(behavior) && hasLegacyFeishuCardCommandValue(behavior.value))) return true;
|
|
1629
|
-
return Object.values(node).some((value) => containsLegacyFeishuCardCommandValue(value));
|
|
1630
|
-
}
|
|
1631
|
-
const meta = {
|
|
1632
|
-
id: "feishu",
|
|
1633
|
-
label: "Feishu",
|
|
1634
|
-
selectionLabel: "Feishu/Lark (飞书)",
|
|
1635
|
-
docsPath: "/channels/feishu",
|
|
1636
|
-
docsLabel: "feishu",
|
|
1637
|
-
blurb: "飞书/Lark enterprise messaging.",
|
|
1638
|
-
aliases: ["lark"],
|
|
1639
|
-
order: 70,
|
|
1640
|
-
preferSessionLookupForAnnounceTarget: true
|
|
1641
|
-
};
|
|
1642
|
-
const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-B21e1E0r.js"), "feishuChannelRuntime");
|
|
1643
|
-
function toFeishuMessageSendResult(result, kind) {
|
|
1644
|
-
const receipt = result.receipt ?? createFeishuSendReceipt({
|
|
1645
|
-
messageId: result.messageId,
|
|
1646
|
-
chatId: result.chatId ?? "",
|
|
1647
|
-
kind
|
|
1648
|
-
});
|
|
1649
|
-
return {
|
|
1650
|
-
messageId: result.messageId || receipt.primaryPlatformMessageId,
|
|
1651
|
-
receipt
|
|
1652
|
-
};
|
|
1653
|
-
}
|
|
1654
|
-
const feishuMessageAdapter = defineChannelMessageAdapter({
|
|
1655
|
-
id: "feishu",
|
|
1656
|
-
durableFinal: { capabilities: {
|
|
1657
|
-
text: true,
|
|
1658
|
-
media: true
|
|
1659
|
-
} },
|
|
1660
|
-
send: {
|
|
1661
|
-
text: async (ctx) => {
|
|
1662
|
-
const sendText = (await loadFeishuChannelRuntime()).feishuOutbound.sendText;
|
|
1663
|
-
if (!sendText) throw new Error("Feishu text sending is not available.");
|
|
1664
|
-
const { onDeliveryResult, ...outboundCtx } = ctx;
|
|
1665
|
-
return toFeishuMessageSendResult(await sendText({
|
|
1666
|
-
...outboundCtx,
|
|
1667
|
-
...onDeliveryResult ? { onDeliveryResult: async (progress) => {
|
|
1668
|
-
await onDeliveryResult(toFeishuMessageSendResult(progress, "text"));
|
|
1669
|
-
} } : {}
|
|
1670
|
-
}), "text");
|
|
1671
|
-
},
|
|
1672
|
-
media: async (ctx) => {
|
|
1673
|
-
const sendMedia = (await loadFeishuChannelRuntime()).feishuOutbound.sendMedia;
|
|
1674
|
-
if (!sendMedia) throw new Error("Feishu media sending is not available.");
|
|
1675
|
-
const { onDeliveryResult, ...outboundCtx } = ctx;
|
|
1676
|
-
return toFeishuMessageSendResult(await sendMedia({
|
|
1677
|
-
...outboundCtx,
|
|
1678
|
-
...onDeliveryResult ? { onDeliveryResult: async (progress) => {
|
|
1679
|
-
await onDeliveryResult(toFeishuMessageSendResult(progress, "media"));
|
|
1680
|
-
} } : {}
|
|
1681
|
-
}), "media");
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
});
|
|
1685
|
-
async function createFeishuActionClient(account) {
|
|
1686
|
-
const { createFeishuClient } = await import("./client-Dcbs6vml.js").then((n) => n.t);
|
|
1687
|
-
return createFeishuClient(account);
|
|
1688
|
-
}
|
|
1689
|
-
async function resolveFeishuChatTypeById(params) {
|
|
1690
|
-
const client = await createFeishuActionClient(params.account);
|
|
1691
|
-
return resolveFeishuChatType(await params.runtime.getChatInfo(client, params.chatId));
|
|
1692
|
-
}
|
|
1693
|
-
async function resolveFeishuMessageChatType(params) {
|
|
1694
|
-
const knownChatType = normalizeFeishuChatType(params.message.chatType);
|
|
1695
|
-
if (knownChatType) return knownChatType;
|
|
1696
|
-
return resolveFeishuChatTypeById({
|
|
1697
|
-
account: params.account,
|
|
1698
|
-
chatId: params.message.chatId,
|
|
1699
|
-
runtime: params.runtime
|
|
1700
|
-
});
|
|
1701
|
-
}
|
|
1702
|
-
const collectFeishuSecurityWarnings = createAllowlistProviderGroupPolicyWarningCollector({
|
|
1703
|
-
providerConfigPresent: (cfg) => cfg.channels?.feishu !== void 0,
|
|
1704
|
-
resolveGroupPolicy: ({ cfg, accountId }) => resolveFeishuAccount({
|
|
1705
|
-
cfg,
|
|
1706
|
-
accountId
|
|
1707
|
-
}).config?.groupPolicy,
|
|
1708
|
-
collect: ({ cfg, accountId, groupPolicy }) => {
|
|
1709
|
-
if (groupPolicy !== "open") return [];
|
|
1710
|
-
return [`- Feishu[${resolveFeishuAccount({
|
|
1711
|
-
cfg,
|
|
1712
|
-
accountId
|
|
1713
|
-
}).accountId}] groups: groupPolicy="open" allows any member to trigger (mention-gated). Set channels.feishu.groupPolicy="allowlist" + channels.feishu.groupAllowFrom to restrict senders.`];
|
|
1714
|
-
}
|
|
1715
|
-
});
|
|
1716
|
-
function describeFeishuMessageTool({ cfg, accountId }) {
|
|
1717
|
-
const enabledAccounts = accountId ? [resolveFeishuAccount({
|
|
1718
|
-
cfg,
|
|
1719
|
-
accountId
|
|
1720
|
-
})].filter((account) => account.enabled && account.configured) : listEnabledFeishuAccounts(cfg);
|
|
1721
|
-
const enabled = enabledAccounts.length > 0 || !accountId && cfg.channels?.feishu?.enabled !== false && Boolean(inspectFeishuCredentials(cfg.channels?.feishu));
|
|
1722
|
-
if (enabledAccounts.length === 0) return {
|
|
1723
|
-
actions: [],
|
|
1724
|
-
capabilities: enabled ? ["presentation"] : []
|
|
1725
|
-
};
|
|
1726
|
-
const actions = /* @__PURE__ */ new Set([
|
|
1727
|
-
"send",
|
|
1728
|
-
"read",
|
|
1729
|
-
"edit",
|
|
1730
|
-
"thread-reply",
|
|
1731
|
-
"pin",
|
|
1732
|
-
"list-pins",
|
|
1733
|
-
"unpin",
|
|
1734
|
-
"member-info",
|
|
1735
|
-
"channel-info",
|
|
1736
|
-
"channel-list"
|
|
1737
|
-
]);
|
|
1738
|
-
if (accountId ? enabledAccounts.some((account) => isFeishuReactionsActionEnabled({
|
|
1739
|
-
cfg,
|
|
1740
|
-
account
|
|
1741
|
-
})) : areAnyFeishuReactionActionsEnabled(cfg)) {
|
|
1742
|
-
actions.add("react");
|
|
1743
|
-
actions.add("reactions");
|
|
1744
|
-
}
|
|
1745
|
-
return {
|
|
1746
|
-
actions: Array.from(actions),
|
|
1747
|
-
capabilities: enabled ? ["presentation"] : []
|
|
1748
|
-
};
|
|
1749
|
-
}
|
|
1750
|
-
const feishuConfigAdapter = createHybridChannelConfigAdapter({
|
|
1751
|
-
sectionKey: "feishu",
|
|
1752
|
-
listAccountIds: listFeishuAccountIds,
|
|
1753
|
-
resolveAccount: adaptScopedAccountAccessor(resolveFeishuAccount),
|
|
1754
|
-
defaultAccountId: resolveDefaultFeishuAccountId,
|
|
1755
|
-
clearBaseFields: [],
|
|
1756
|
-
resolveAllowFrom: (account) => account.config.allowFrom,
|
|
1757
|
-
formatAllowFrom: (allowFrom) => formatAllowFromLowercase({ allowFrom })
|
|
1758
|
-
});
|
|
1759
|
-
function isFeishuReactionsActionEnabled(params) {
|
|
1760
|
-
if (!params.account.enabled || !params.account.configured) return false;
|
|
1761
|
-
return createActionGate(params.account.config.actions ?? (params.cfg.channels?.feishu)?.actions)("reactions");
|
|
1762
|
-
}
|
|
1763
|
-
function areAnyFeishuReactionActionsEnabled(cfg) {
|
|
1764
|
-
for (const account of listEnabledFeishuAccounts(cfg)) if (isFeishuReactionsActionEnabled({
|
|
1765
|
-
cfg,
|
|
1766
|
-
account
|
|
1767
|
-
})) return true;
|
|
1768
|
-
return false;
|
|
1769
|
-
}
|
|
1770
|
-
function isFeishuGroupTopicSessionKey(sessionKey) {
|
|
1771
|
-
if (typeof sessionKey !== "string" || !sessionKey) return false;
|
|
1772
|
-
const parsed = parseFeishuConversationId({ conversationId: sessionKey });
|
|
1773
|
-
return parsed?.scope === "group_topic" || parsed?.scope === "group_topic_sender";
|
|
1774
|
-
}
|
|
1775
|
-
function resolveFeishuTopicAutoThreadAnchor(ctx) {
|
|
1776
|
-
if (ctx.action !== "send") return;
|
|
1777
|
-
if (!isFeishuGroupTopicSessionKey(ctx.sessionKey)) return;
|
|
1778
|
-
const inbound = ctx.toolContext?.currentMessageId;
|
|
1779
|
-
return typeof inbound === "string" && inbound.length > 0 ? inbound : void 0;
|
|
1780
|
-
}
|
|
1781
|
-
function buildFeishuSendReplyAnchor(ctx) {
|
|
1782
|
-
if (ctx.action === "thread-reply") return {
|
|
1783
|
-
replyToMessageId: resolveFeishuMessageId(ctx.params),
|
|
1784
|
-
replyInThread: true
|
|
1785
|
-
};
|
|
1786
|
-
const autoThreadId = resolveFeishuTopicAutoThreadAnchor(ctx);
|
|
1787
|
-
return {
|
|
1788
|
-
replyToMessageId: autoThreadId,
|
|
1789
|
-
replyInThread: autoThreadId !== void 0
|
|
1790
|
-
};
|
|
1791
|
-
}
|
|
1792
|
-
function isSupportedFeishuDirectConversationId(conversationId) {
|
|
1793
|
-
const trimmed = conversationId.trim();
|
|
1794
|
-
if (!trimmed || trimmed.includes(":")) return false;
|
|
1795
|
-
if (trimmed.startsWith("oc_") || trimmed.startsWith("on_")) return false;
|
|
1796
|
-
return true;
|
|
1797
|
-
}
|
|
1798
|
-
function normalizeFeishuAcpConversationId(conversationId) {
|
|
1799
|
-
const parsed = parseFeishuConversationId({ conversationId });
|
|
1800
|
-
if (!parsed || parsed.scope !== "group_topic" && parsed.scope !== "group_topic_sender" && !isSupportedFeishuDirectConversationId(parsed.canonicalConversationId)) return null;
|
|
1801
|
-
return {
|
|
1802
|
-
conversationId: parsed.canonicalConversationId,
|
|
1803
|
-
parentConversationId: parsed.scope === "group_topic" || parsed.scope === "group_topic_sender" ? parsed.chatId : void 0
|
|
1804
|
-
};
|
|
1805
|
-
}
|
|
1806
|
-
function matchFeishuAcpConversation(params) {
|
|
1807
|
-
const binding = normalizeFeishuAcpConversationId(params.bindingConversationId);
|
|
1808
|
-
if (!binding) return null;
|
|
1809
|
-
const incoming = parseFeishuConversationId({
|
|
1810
|
-
conversationId: params.conversationId,
|
|
1811
|
-
parentConversationId: params.parentConversationId
|
|
1812
|
-
});
|
|
1813
|
-
if (!incoming || incoming.scope !== "group_topic" && incoming.scope !== "group_topic_sender" && !isSupportedFeishuDirectConversationId(incoming.canonicalConversationId)) return null;
|
|
1814
|
-
const matchesCanonicalConversation = binding.conversationId === incoming.canonicalConversationId;
|
|
1815
|
-
const matchesParentTopicForSenderScopedConversation = incoming.scope === "group_topic_sender" && binding.parentConversationId === incoming.chatId && binding.conversationId === `${incoming.chatId}:topic:${incoming.topicId}`;
|
|
1816
|
-
if (!matchesCanonicalConversation && !matchesParentTopicForSenderScopedConversation) return null;
|
|
1817
|
-
return {
|
|
1818
|
-
conversationId: matchesParentTopicForSenderScopedConversation ? binding.conversationId : incoming.canonicalConversationId,
|
|
1819
|
-
parentConversationId: incoming.scope === "group_topic" || incoming.scope === "group_topic_sender" ? incoming.chatId : void 0,
|
|
1820
|
-
matchPriority: matchesCanonicalConversation ? 2 : 1
|
|
1821
|
-
};
|
|
1822
|
-
}
|
|
1823
|
-
function resolveFeishuSenderScopedCommandConversation(params) {
|
|
1824
|
-
const parentConversationId = params.parentConversationId?.trim();
|
|
1825
|
-
const threadId = params.threadId?.trim();
|
|
1826
|
-
const senderId = params.senderId?.trim();
|
|
1827
|
-
if (!parentConversationId || !threadId || !senderId) return;
|
|
1828
|
-
const expectedScopePrefix = `feishu:group:${normalizeLowercaseStringOrEmpty(parentConversationId)}:topic:${normalizeLowercaseStringOrEmpty(threadId)}:sender:`;
|
|
1829
|
-
const isSenderScopedSession = [params.sessionKey, params.parentSessionKey].some((candidate) => {
|
|
1830
|
-
const normalized = normalizeLowercaseStringOrEmpty(candidate ?? "");
|
|
1831
|
-
if (!normalized) return false;
|
|
1832
|
-
return normalized.replace(/^agent:[^:]+:/, "").startsWith(expectedScopePrefix);
|
|
1833
|
-
});
|
|
1834
|
-
const senderScopedConversationId = buildFeishuConversationId({
|
|
1835
|
-
chatId: parentConversationId,
|
|
1836
|
-
scope: "group_topic_sender",
|
|
1837
|
-
topicId: threadId,
|
|
1838
|
-
senderOpenId: senderId
|
|
1839
|
-
});
|
|
1840
|
-
if (isSenderScopedSession) return senderScopedConversationId;
|
|
1841
|
-
if (!params.sessionKey?.trim()) return;
|
|
1842
|
-
return getSessionBindingService().listBySession(params.sessionKey).find((binding) => {
|
|
1843
|
-
if (binding.conversation.channel !== "feishu" || binding.conversation.accountId !== params.accountId) return false;
|
|
1844
|
-
return binding.conversation.conversationId === senderScopedConversationId;
|
|
1845
|
-
})?.conversation.conversationId;
|
|
1846
|
-
}
|
|
1847
|
-
function resolveFeishuCommandConversation(params) {
|
|
1848
|
-
if (params.threadId) {
|
|
1849
|
-
const parentConversationId = parseFeishuTargetId(params.originatingTo) ?? parseFeishuTargetId(params.commandTo) ?? parseFeishuTargetId(params.fallbackTo);
|
|
1850
|
-
if (!parentConversationId) return null;
|
|
1851
|
-
return {
|
|
1852
|
-
conversationId: resolveFeishuSenderScopedCommandConversation({
|
|
1853
|
-
accountId: params.accountId,
|
|
1854
|
-
parentConversationId,
|
|
1855
|
-
threadId: params.threadId,
|
|
1856
|
-
senderId: params.senderId,
|
|
1857
|
-
sessionKey: params.sessionKey,
|
|
1858
|
-
parentSessionKey: params.parentSessionKey
|
|
1859
|
-
}) ?? buildFeishuConversationId({
|
|
1860
|
-
chatId: parentConversationId,
|
|
1861
|
-
scope: "group_topic",
|
|
1862
|
-
topicId: params.threadId
|
|
1863
|
-
}),
|
|
1864
|
-
parentConversationId
|
|
1865
|
-
};
|
|
1866
|
-
}
|
|
1867
|
-
const conversationId = parseFeishuDirectConversationId(params.originatingTo) ?? parseFeishuDirectConversationId(params.commandTo) ?? parseFeishuDirectConversationId(params.fallbackTo);
|
|
1868
|
-
return conversationId ? { conversationId } : null;
|
|
1869
|
-
}
|
|
1870
|
-
function jsonActionResult(details) {
|
|
1871
|
-
return {
|
|
1872
|
-
content: [{
|
|
1873
|
-
type: "text",
|
|
1874
|
-
text: JSON.stringify(details)
|
|
1875
|
-
}],
|
|
1876
|
-
details
|
|
1877
|
-
};
|
|
1878
|
-
}
|
|
1879
|
-
function readFirstString(params, keys, fallback) {
|
|
1880
|
-
for (const key of keys) {
|
|
1881
|
-
const value = params[key];
|
|
1882
|
-
if (typeof value === "string" && value.trim()) return value.trim();
|
|
1883
|
-
}
|
|
1884
|
-
if (typeof fallback === "string" && fallback.trim()) return fallback.trim();
|
|
1885
|
-
}
|
|
1886
|
-
const UNRESOLVED_RESPONSE_PREFIX_VAR_PATTERN = /\{[a-zA-Z][a-zA-Z0-9.]*\}/;
|
|
1887
|
-
function resolveFeishuMessageActionResponsePrefix(ctx) {
|
|
1888
|
-
const channel = ctx.cfg.channels?.feishu;
|
|
1889
|
-
const configured = (ctx.accountId ? channel?.accounts?.[ctx.accountId]?.responsePrefix : void 0) ?? channel?.responsePrefix ?? (channel === void 0 ? ctx.cfg.messages?.responsePrefix : void 0);
|
|
1890
|
-
if (!configured) return;
|
|
1891
|
-
const agentId = (ctx.agentId?.trim() || "main").toLowerCase();
|
|
1892
|
-
const identityName = ctx.cfg.agents?.list?.find((agent) => agent.id.trim().toLowerCase() === agentId)?.identity?.name?.trim();
|
|
1893
|
-
const resolved = configured === "auto" ? identityName ? `[${identityName}]` : void 0 : configured.replace(/\{(?:identity\.name|identityname)\}/gi, identityName ?? "$&");
|
|
1894
|
-
return resolved && !UNRESOLVED_RESPONSE_PREFIX_VAR_PATTERN.test(resolved) ? resolved : void 0;
|
|
1895
|
-
}
|
|
1896
|
-
function readOptionalPositiveInteger(params, keys) {
|
|
1897
|
-
for (const key of keys) {
|
|
1898
|
-
const parsed = parseStrictPositiveInteger(params[key]);
|
|
1899
|
-
if (parsed !== void 0) return parsed;
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
function resolveFeishuActionTarget(ctx) {
|
|
1903
|
-
return readFirstString(ctx.params, ["to", "target"], ctx.toolContext?.currentChannelId);
|
|
1904
|
-
}
|
|
1905
|
-
function resolveFeishuChatId(ctx) {
|
|
1906
|
-
const raw = readFirstString(ctx.params, [
|
|
1907
|
-
"chatId",
|
|
1908
|
-
"chat_id",
|
|
1909
|
-
"channelId",
|
|
1910
|
-
"channel_id",
|
|
1911
|
-
"to",
|
|
1912
|
-
"target"
|
|
1913
|
-
], ctx.toolContext?.currentChannelId);
|
|
1914
|
-
if (!raw) return;
|
|
1915
|
-
if (/^(user|dm|open_id):/i.test(raw)) return;
|
|
1916
|
-
if (/^(chat|group|channel):/i.test(raw)) return normalizeFeishuTarget(raw) ?? void 0;
|
|
1917
|
-
return raw;
|
|
1918
|
-
}
|
|
1919
|
-
function resolveFeishuMessageId(params) {
|
|
1920
|
-
return readFirstString(params, [
|
|
1921
|
-
"messageId",
|
|
1922
|
-
"message_id",
|
|
1923
|
-
"replyTo",
|
|
1924
|
-
"reply_to"
|
|
1925
|
-
]);
|
|
1926
|
-
}
|
|
1927
|
-
function resolveFeishuMessageReadTarget(ctx) {
|
|
1928
|
-
const explicitChatId = resolveFeishuChatId({ params: ctx.params });
|
|
1929
|
-
const currentChatId = resolveFeishuChatId({
|
|
1930
|
-
params: {},
|
|
1931
|
-
toolContext: ctx.toolContext
|
|
1932
|
-
});
|
|
1933
|
-
const chatId = explicitChatId ?? currentChatId;
|
|
1934
|
-
if (!chatId) return;
|
|
1935
|
-
const normalizedChatId = normalizeFeishuTarget(chatId) ?? chatId.trim();
|
|
1936
|
-
if (normalizedChatId !== (currentChatId ? normalizeFeishuTarget(currentChatId) ?? currentChatId.trim() : void 0)) return { chatId: normalizedChatId };
|
|
1937
|
-
return {
|
|
1938
|
-
chatId: normalizedChatId,
|
|
1939
|
-
chatType: ctx.toolContext?.currentChatType === "direct" ? "p2p" : ctx.toolContext?.currentChatType === "group" || ctx.toolContext?.currentChatType === "channel" ? "group" : void 0
|
|
1940
|
-
};
|
|
1941
|
-
}
|
|
1942
|
-
function assertFeishuMessageMatchesReadTarget(params) {
|
|
1943
|
-
if ((normalizeFeishuTarget(params.messageChatId) ?? params.messageChatId.trim()) !== params.authorizedChatId) throw new ToolAuthorizationError("Feishu message target is not allowed.");
|
|
1944
|
-
}
|
|
1945
|
-
async function authorizeFeishuMessageReadTarget(params) {
|
|
1946
|
-
const authorize = (chatType) => assertFeishuChatReadAllowed({
|
|
1947
|
-
cfg: params.ctx.cfg,
|
|
1948
|
-
account: params.account,
|
|
1949
|
-
chatId: params.target.chatId,
|
|
1950
|
-
chatType,
|
|
1951
|
-
ctx: params.ctx
|
|
1952
|
-
});
|
|
1953
|
-
if (params.target.chatType) return authorize(params.target.chatType);
|
|
1954
|
-
const preliminary = resolveFeishuChatReadPreliminaryAuthorization({
|
|
1955
|
-
cfg: params.ctx.cfg,
|
|
1956
|
-
account: params.account,
|
|
1957
|
-
chatId: params.target.chatId,
|
|
1958
|
-
ctx: params.ctx
|
|
1959
|
-
});
|
|
1960
|
-
if (preliminary.decision === "allow") return preliminary.chatId;
|
|
1961
|
-
if (preliminary.decision === "deny") throw new ToolAuthorizationError("Feishu read target is not allowed.");
|
|
1962
|
-
await getAuthorizedFeishuChatInfo({
|
|
1963
|
-
ctx: params.ctx,
|
|
1964
|
-
account: params.account,
|
|
1965
|
-
runtime: params.runtime,
|
|
1966
|
-
chatId: params.target.chatId
|
|
1967
|
-
});
|
|
1968
|
-
return preliminary.chatId;
|
|
1969
|
-
}
|
|
1970
|
-
async function getAuthorizedFeishuChatInfo(params) {
|
|
1971
|
-
const preliminary = resolveFeishuChatReadPreliminaryAuthorization({
|
|
1972
|
-
cfg: params.ctx.cfg,
|
|
1973
|
-
account: params.account,
|
|
1974
|
-
chatId: params.chatId,
|
|
1975
|
-
ctx: params.ctx
|
|
1976
|
-
});
|
|
1977
|
-
if (preliminary.decision === "deny") throw new ToolAuthorizationError("Feishu read target is not allowed.");
|
|
1978
|
-
const client = await createFeishuActionClient(params.account);
|
|
1979
|
-
let chat;
|
|
1980
|
-
try {
|
|
1981
|
-
chat = await params.runtime.getChatInfo(client, preliminary.chatId);
|
|
1982
|
-
} catch (error) {
|
|
1983
|
-
if (preliminary.decision === "needs-metadata") assertFeishuChatReadAllowed({
|
|
1984
|
-
cfg: params.ctx.cfg,
|
|
1985
|
-
account: params.account,
|
|
1986
|
-
chatId: preliminary.chatId,
|
|
1987
|
-
ctx: params.ctx
|
|
1988
|
-
});
|
|
1989
|
-
throw error;
|
|
1990
|
-
}
|
|
1991
|
-
assertFeishuChatReadAllowed({
|
|
1992
|
-
cfg: params.ctx.cfg,
|
|
1993
|
-
account: params.account,
|
|
1994
|
-
chatId: preliminary.chatId,
|
|
1995
|
-
chatType: resolveFeishuChatType(chat),
|
|
1996
|
-
ctx: params.ctx
|
|
1997
|
-
});
|
|
1998
|
-
return {
|
|
1999
|
-
chat,
|
|
2000
|
-
client
|
|
2001
|
-
};
|
|
2002
|
-
}
|
|
2003
|
-
async function getAuthorizedFeishuMessage(params) {
|
|
2004
|
-
const target = resolveFeishuMessageReadTarget(params.ctx);
|
|
2005
|
-
if (!target && params.ctx.conversationReadOrigin !== "direct-operator") throw new ToolAuthorizationError("Feishu message reads require a chat target or current conversation.");
|
|
2006
|
-
const authorizedChatId = target ? await authorizeFeishuMessageReadTarget({
|
|
2007
|
-
ctx: params.ctx,
|
|
2008
|
-
account: params.account,
|
|
2009
|
-
runtime: params.runtime,
|
|
2010
|
-
target
|
|
2011
|
-
}) : void 0;
|
|
2012
|
-
const message = await params.runtime.getMessageFeishu({
|
|
2013
|
-
cfg: params.ctx.cfg,
|
|
2014
|
-
messageId: params.messageId,
|
|
2015
|
-
accountId: params.ctx.accountId ?? void 0
|
|
2016
|
-
});
|
|
2017
|
-
if (!message) return null;
|
|
2018
|
-
if (authorizedChatId) assertFeishuMessageMatchesReadTarget({
|
|
2019
|
-
authorizedChatId,
|
|
2020
|
-
messageChatId: message.chatId
|
|
2021
|
-
});
|
|
2022
|
-
assertFeishuChatReadAllowed({
|
|
2023
|
-
cfg: params.ctx.cfg,
|
|
2024
|
-
account: params.account,
|
|
2025
|
-
chatId: message.chatId,
|
|
2026
|
-
chatType: await resolveFeishuMessageChatType({
|
|
2027
|
-
account: params.account,
|
|
2028
|
-
message,
|
|
2029
|
-
runtime: params.runtime
|
|
2030
|
-
}),
|
|
2031
|
-
ctx: params.ctx
|
|
2032
|
-
});
|
|
2033
|
-
return message;
|
|
2034
|
-
}
|
|
2035
|
-
async function requireAuthorizedFeishuMessage(params) {
|
|
2036
|
-
const message = await getAuthorizedFeishuMessage(params);
|
|
2037
|
-
if (!message) throw new Error(`Feishu message not found: ${params.messageId}`);
|
|
2038
|
-
return message;
|
|
2039
|
-
}
|
|
2040
|
-
function resolveFeishuMemberId(params) {
|
|
2041
|
-
return readFirstString(params, [
|
|
2042
|
-
"memberId",
|
|
2043
|
-
"member_id",
|
|
2044
|
-
"userId",
|
|
2045
|
-
"user_id",
|
|
2046
|
-
"openId",
|
|
2047
|
-
"open_id",
|
|
2048
|
-
"unionId",
|
|
2049
|
-
"union_id"
|
|
2050
|
-
]);
|
|
2051
|
-
}
|
|
2052
|
-
function resolveFeishuMemberIdType(params) {
|
|
2053
|
-
return resolveRequestedFeishuMemberIdType(params) ?? "open_id";
|
|
2054
|
-
}
|
|
2055
|
-
function resolveRequestedFeishuMemberIdType(params) {
|
|
2056
|
-
const raw = readFirstString(params, [
|
|
2057
|
-
"memberIdType",
|
|
2058
|
-
"member_id_type",
|
|
2059
|
-
"userIdType",
|
|
2060
|
-
"user_id_type"
|
|
2061
|
-
]);
|
|
2062
|
-
if (raw === "open_id" || raw === "user_id" || raw === "union_id") return raw;
|
|
2063
|
-
if (readFirstString(params, ["userId", "user_id"]) && !readFirstString(params, [
|
|
2064
|
-
"openId",
|
|
2065
|
-
"open_id",
|
|
2066
|
-
"unionId",
|
|
2067
|
-
"union_id"
|
|
2068
|
-
])) return "user_id";
|
|
2069
|
-
if (readFirstString(params, ["unionId", "union_id"]) && !readFirstString(params, ["openId", "open_id"])) return "union_id";
|
|
2070
|
-
if (readFirstString(params, ["openId", "open_id"])) return "open_id";
|
|
2071
|
-
}
|
|
2072
|
-
const feishuPlugin = createChatChannelPlugin({
|
|
2073
|
-
base: {
|
|
2074
|
-
id: "feishu",
|
|
2075
|
-
meta: { ...meta },
|
|
2076
|
-
capabilities: {
|
|
2077
|
-
chatTypes: ["direct", "channel"],
|
|
2078
|
-
polls: false,
|
|
2079
|
-
threads: true,
|
|
2080
|
-
media: true,
|
|
2081
|
-
tts: { voice: {
|
|
2082
|
-
synthesisTarget: "voice-note",
|
|
2083
|
-
transcodesAudio: true
|
|
2084
|
-
} },
|
|
2085
|
-
reactions: true,
|
|
2086
|
-
edit: true,
|
|
2087
|
-
reply: true
|
|
2088
|
-
},
|
|
2089
|
-
agentPrompt: { messageToolHints: () => [
|
|
2090
|
-
"- Feishu targeting: omit `target` to reply to the current conversation (auto-inferred). Explicit targets: `user:open_id` or `chat:chat_id`.",
|
|
2091
|
-
"- Feishu supports interactive cards plus native image, file, audio, and video/media delivery.",
|
|
2092
|
-
"- Feishu supports `send`, `read`, `edit`, `thread-reply`, pins, and channel/member lookup, plus reactions when enabled."
|
|
2093
|
-
] },
|
|
2094
|
-
groups: { resolveToolPolicy: resolveFeishuGroupToolPolicy },
|
|
2095
|
-
conversationBindings: {
|
|
2096
|
-
defaultTopLevelPlacement: "current",
|
|
2097
|
-
buildModelOverrideParentCandidates: ({ parentConversationId }) => buildFeishuModelOverrideParentCandidates(parentConversationId)
|
|
2098
|
-
},
|
|
2099
|
-
mentions: { stripPatterns: () => ["<at user_id=\"[^\"]*\">[^<]*</at>"] },
|
|
2100
|
-
reload: { configPrefixes: ["channels.feishu"] },
|
|
2101
|
-
doctor: feishuDoctor,
|
|
2102
|
-
configSchema: FeishuChannelConfigSchema,
|
|
2103
|
-
config: {
|
|
2104
|
-
...feishuConfigAdapter,
|
|
2105
|
-
deleteAccount: ({ cfg, accountId }) => {
|
|
2106
|
-
if (accountId === DEFAULT_ACCOUNT_ID$3) {
|
|
2107
|
-
const next = { ...cfg };
|
|
2108
|
-
const nextChannels = { ...cfg.channels };
|
|
2109
|
-
delete nextChannels.feishu;
|
|
2110
|
-
if (Object.keys(nextChannels).length > 0) next.channels = nextChannels;
|
|
2111
|
-
else delete next.channels;
|
|
2112
|
-
return next;
|
|
2113
|
-
}
|
|
2114
|
-
const feishuCfg = cfg.channels?.feishu;
|
|
2115
|
-
const accounts = { ...feishuCfg?.accounts };
|
|
2116
|
-
delete accounts[accountId];
|
|
2117
|
-
return {
|
|
2118
|
-
...cfg,
|
|
2119
|
-
channels: {
|
|
2120
|
-
...cfg.channels,
|
|
2121
|
-
feishu: {
|
|
2122
|
-
...feishuCfg,
|
|
2123
|
-
accounts: Object.keys(accounts).length > 0 ? accounts : void 0
|
|
2124
|
-
}
|
|
2125
|
-
}
|
|
2126
|
-
};
|
|
2127
|
-
},
|
|
2128
|
-
isConfigured: (account) => account.configured,
|
|
2129
|
-
describeAccount: (account) => describeAccountSnapshot({
|
|
2130
|
-
account,
|
|
2131
|
-
configured: account.configured,
|
|
2132
|
-
extra: {
|
|
2133
|
-
appId: account.appId,
|
|
2134
|
-
domain: account.domain
|
|
2135
|
-
}
|
|
2136
|
-
})
|
|
2137
|
-
},
|
|
2138
|
-
approvalCapability: feishuApprovalAuth,
|
|
2139
|
-
secrets: {
|
|
2140
|
-
secretTargetRegistryEntries,
|
|
2141
|
-
collectRuntimeConfigAssignments
|
|
2142
|
-
},
|
|
2143
|
-
actions: {
|
|
2144
|
-
messageActionTargetAliases,
|
|
2145
|
-
describeMessageTool: describeFeishuMessageTool,
|
|
2146
|
-
handleAction: async (ctx) => {
|
|
2147
|
-
const account = resolveFeishuAccount({
|
|
2148
|
-
cfg: ctx.cfg,
|
|
2149
|
-
accountId: ctx.accountId ?? void 0
|
|
2150
|
-
});
|
|
2151
|
-
if ((ctx.action === "react" || ctx.action === "reactions") && !isFeishuReactionsActionEnabled({
|
|
2152
|
-
cfg: ctx.cfg,
|
|
2153
|
-
account
|
|
2154
|
-
})) throw new Error("Feishu reactions are disabled via actions.reactions.");
|
|
2155
|
-
if (ctx.action === "send" || ctx.action === "thread-reply") {
|
|
2156
|
-
const to = resolveFeishuActionTarget(ctx);
|
|
2157
|
-
if (!to) throw new Error(`Feishu ${ctx.action} requires a target (to).`);
|
|
2158
|
-
const { replyToMessageId, replyInThread } = buildFeishuSendReplyAnchor(ctx);
|
|
2159
|
-
if (ctx.action === "thread-reply" && !replyToMessageId) throw new Error("Feishu thread-reply requires messageId.");
|
|
2160
|
-
const text = readFirstString(ctx.params, ["text", "message"]);
|
|
2161
|
-
const textCard = readNativeFeishuCardJson(text, { responsePrefix: resolveFeishuMessageActionResponsePrefix(ctx) });
|
|
2162
|
-
const interactive = normalizeLegacyInteractiveReply(ctx.params.interactive);
|
|
2163
|
-
const presentation = normalizeMessagePresentation(ctx.params.presentation) ?? (interactive ? legacyInteractiveReplyToPresentation(interactive) : void 0);
|
|
2164
|
-
const mediaUrl = readFeishuMediaParam(ctx.params);
|
|
2165
|
-
const audioAsVoice = readBooleanParam(ctx.params, ["asVoice", "audioAsVoice"]);
|
|
2166
|
-
if (textCard && !presentation) assertFeishuCardWithinEnvelope(textCard, "Feishu native card");
|
|
2167
|
-
const generatedCard = presentation ? buildFeishuPresentationCard({
|
|
2168
|
-
presentation,
|
|
2169
|
-
fallbackText: textCard ? void 0 : resolveLegacyInteractiveTextFallback({
|
|
2170
|
-
text,
|
|
2171
|
-
interactive
|
|
2172
|
-
})
|
|
2173
|
-
}) : void 0;
|
|
2174
|
-
const presentationCard = generatedCard && isFeishuCardWithinEnvelope(generatedCard) ? generatedCard : void 0;
|
|
2175
|
-
const presentationFellBack = Boolean(generatedCard && !presentationCard);
|
|
2176
|
-
const card = presentation ? presentationCard : textCard;
|
|
2177
|
-
if (card && mediaUrl) throw new Error(`Feishu ${ctx.action} does not support card with media.`);
|
|
2178
|
-
if (!card && !text && !mediaUrl && !presentationFellBack) throw new Error(`Feishu ${ctx.action} requires text/message, media, or card.`);
|
|
2179
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2180
|
-
const maybeSendMedia = runtime.feishuOutbound.sendMedia;
|
|
2181
|
-
if (mediaUrl && !maybeSendMedia) throw new Error("Feishu media sending is not available.");
|
|
2182
|
-
const sendMedia = maybeSendMedia;
|
|
2183
|
-
let result;
|
|
2184
|
-
if (presentationFellBack && presentation) {
|
|
2185
|
-
const sendPayload = runtime.feishuOutbound.sendPayload;
|
|
2186
|
-
if (!sendPayload) throw new Error("Feishu presentation fallback delivery is not available.");
|
|
2187
|
-
const fallbackText = textCard ? void 0 : text;
|
|
2188
|
-
result = await sendPayload({
|
|
2189
|
-
cfg: ctx.cfg,
|
|
2190
|
-
to,
|
|
2191
|
-
text: fallbackText ?? "",
|
|
2192
|
-
payload: {
|
|
2193
|
-
text: fallbackText,
|
|
2194
|
-
presentation,
|
|
2195
|
-
...mediaUrl ? { mediaUrl } : {},
|
|
2196
|
-
...audioAsVoice === void 0 ? {} : { audioAsVoice }
|
|
2197
|
-
},
|
|
2198
|
-
accountId: ctx.accountId ?? void 0,
|
|
2199
|
-
mediaLocalRoots: ctx.mediaLocalRoots,
|
|
2200
|
-
...replyInThread ? { threadId: replyToMessageId } : { replyToId: replyToMessageId },
|
|
2201
|
-
...audioAsVoice === void 0 ? {} : { audioAsVoice }
|
|
2202
|
-
});
|
|
2203
|
-
} else if (card) {
|
|
2204
|
-
if (containsLegacyFeishuCardCommandValue(card)) throw new Error("Feishu card buttons that trigger text or commands must use structured interaction envelopes.");
|
|
2205
|
-
result = await runtime.sendCardFeishu({
|
|
2206
|
-
cfg: ctx.cfg,
|
|
2207
|
-
to,
|
|
2208
|
-
card,
|
|
2209
|
-
accountId: ctx.accountId ?? void 0,
|
|
2210
|
-
replyToMessageId,
|
|
2211
|
-
replyInThread
|
|
2212
|
-
});
|
|
2213
|
-
} else if (mediaUrl) result = await sendMedia({
|
|
2214
|
-
cfg: ctx.cfg,
|
|
2215
|
-
to,
|
|
2216
|
-
text: text ?? "",
|
|
2217
|
-
mediaUrl,
|
|
2218
|
-
accountId: ctx.accountId ?? void 0,
|
|
2219
|
-
mediaLocalRoots: ctx.mediaLocalRoots,
|
|
2220
|
-
...replyInThread ? { threadId: replyToMessageId } : { replyToId: replyToMessageId },
|
|
2221
|
-
...audioAsVoice === true ? { audioAsVoice: true } : {}
|
|
2222
|
-
});
|
|
2223
|
-
else result = await runtime.sendMessageFeishu({
|
|
2224
|
-
cfg: ctx.cfg,
|
|
2225
|
-
to,
|
|
2226
|
-
text,
|
|
2227
|
-
accountId: ctx.accountId ?? void 0,
|
|
2228
|
-
replyToMessageId,
|
|
2229
|
-
replyInThread
|
|
2230
|
-
});
|
|
2231
|
-
return jsonActionResult({
|
|
2232
|
-
ok: true,
|
|
2233
|
-
channel: "feishu",
|
|
2234
|
-
action: ctx.action,
|
|
2235
|
-
...result
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
if (ctx.action === "read") {
|
|
2239
|
-
const messageId = resolveFeishuMessageId(ctx.params);
|
|
2240
|
-
if (!messageId) throw new Error("Feishu read requires messageId.");
|
|
2241
|
-
const message = await getAuthorizedFeishuMessage({
|
|
2242
|
-
ctx,
|
|
2243
|
-
account,
|
|
2244
|
-
runtime: await loadFeishuChannelRuntime(),
|
|
2245
|
-
messageId
|
|
2246
|
-
});
|
|
2247
|
-
if (!message) return {
|
|
2248
|
-
isError: true,
|
|
2249
|
-
content: [{
|
|
2250
|
-
type: "text",
|
|
2251
|
-
text: JSON.stringify({ error: `Feishu read failed or message not found: ${messageId}` })
|
|
2252
|
-
}],
|
|
2253
|
-
details: { error: `Feishu read failed or message not found: ${messageId}` }
|
|
2254
|
-
};
|
|
2255
|
-
return jsonActionResult({
|
|
2256
|
-
ok: true,
|
|
2257
|
-
channel: "feishu",
|
|
2258
|
-
action: "read",
|
|
2259
|
-
message
|
|
2260
|
-
});
|
|
2261
|
-
}
|
|
2262
|
-
if (ctx.action === "edit") {
|
|
2263
|
-
const messageId = resolveFeishuMessageId(ctx.params);
|
|
2264
|
-
if (!messageId) throw new Error("Feishu edit requires messageId.");
|
|
2265
|
-
const text = readFirstString(ctx.params, ["text", "message"]);
|
|
2266
|
-
const card = ctx.params.card && typeof ctx.params.card === "object" ? ctx.params.card : void 0;
|
|
2267
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2268
|
-
await requireAuthorizedFeishuMessage({
|
|
2269
|
-
ctx,
|
|
2270
|
-
account,
|
|
2271
|
-
runtime,
|
|
2272
|
-
messageId
|
|
2273
|
-
});
|
|
2274
|
-
return jsonActionResult({
|
|
2275
|
-
ok: true,
|
|
2276
|
-
channel: "feishu",
|
|
2277
|
-
action: "edit",
|
|
2278
|
-
...await runtime.editMessageFeishu({
|
|
2279
|
-
cfg: ctx.cfg,
|
|
2280
|
-
messageId,
|
|
2281
|
-
text,
|
|
2282
|
-
card,
|
|
2283
|
-
accountId: ctx.accountId ?? void 0
|
|
2284
|
-
})
|
|
2285
|
-
});
|
|
2286
|
-
}
|
|
2287
|
-
if (ctx.action === "pin") {
|
|
2288
|
-
const messageId = resolveFeishuMessageId(ctx.params);
|
|
2289
|
-
if (!messageId) throw new Error("Feishu pin requires messageId.");
|
|
2290
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2291
|
-
await requireAuthorizedFeishuMessage({
|
|
2292
|
-
ctx,
|
|
2293
|
-
account,
|
|
2294
|
-
runtime,
|
|
2295
|
-
messageId
|
|
2296
|
-
});
|
|
2297
|
-
return jsonActionResult({
|
|
2298
|
-
ok: true,
|
|
2299
|
-
channel: "feishu",
|
|
2300
|
-
action: "pin",
|
|
2301
|
-
pin: await runtime.createPinFeishu({
|
|
2302
|
-
cfg: ctx.cfg,
|
|
2303
|
-
messageId,
|
|
2304
|
-
accountId: ctx.accountId ?? void 0
|
|
2305
|
-
})
|
|
2306
|
-
});
|
|
2307
|
-
}
|
|
2308
|
-
if (ctx.action === "unpin") {
|
|
2309
|
-
const messageId = resolveFeishuMessageId(ctx.params);
|
|
2310
|
-
if (!messageId) throw new Error("Feishu unpin requires messageId.");
|
|
2311
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2312
|
-
await requireAuthorizedFeishuMessage({
|
|
2313
|
-
ctx,
|
|
2314
|
-
account,
|
|
2315
|
-
runtime,
|
|
2316
|
-
messageId
|
|
2317
|
-
});
|
|
2318
|
-
await runtime.removePinFeishu({
|
|
2319
|
-
cfg: ctx.cfg,
|
|
2320
|
-
messageId,
|
|
2321
|
-
accountId: ctx.accountId ?? void 0
|
|
2322
|
-
});
|
|
2323
|
-
return jsonActionResult({
|
|
2324
|
-
ok: true,
|
|
2325
|
-
channel: "feishu",
|
|
2326
|
-
action: "unpin",
|
|
2327
|
-
messageId
|
|
2328
|
-
});
|
|
2329
|
-
}
|
|
2330
|
-
if (ctx.action === "list-pins") {
|
|
2331
|
-
const chatId = resolveFeishuChatId(ctx);
|
|
2332
|
-
if (!chatId) throw new Error("Feishu list-pins requires chatId or channelId.");
|
|
2333
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2334
|
-
await getAuthorizedFeishuChatInfo({
|
|
2335
|
-
ctx,
|
|
2336
|
-
account,
|
|
2337
|
-
runtime,
|
|
2338
|
-
chatId
|
|
2339
|
-
});
|
|
2340
|
-
const { listPinsFeishu } = runtime;
|
|
2341
|
-
return jsonActionResult({
|
|
2342
|
-
ok: true,
|
|
2343
|
-
channel: "feishu",
|
|
2344
|
-
action: "list-pins",
|
|
2345
|
-
...await listPinsFeishu({
|
|
2346
|
-
cfg: ctx.cfg,
|
|
2347
|
-
chatId,
|
|
2348
|
-
startTime: readFirstString(ctx.params, ["startTime", "start_time"]),
|
|
2349
|
-
endTime: readFirstString(ctx.params, ["endTime", "end_time"]),
|
|
2350
|
-
pageSize: readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]),
|
|
2351
|
-
pageToken: readFirstString(ctx.params, ["pageToken", "page_token"]),
|
|
2352
|
-
accountId: ctx.accountId ?? void 0
|
|
2353
|
-
})
|
|
2354
|
-
});
|
|
2355
|
-
}
|
|
2356
|
-
if (ctx.action === "channel-info") {
|
|
2357
|
-
const chatId = resolveFeishuChatId(ctx);
|
|
2358
|
-
if (!chatId) throw new Error("Feishu channel-info requires chatId or channelId.");
|
|
2359
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2360
|
-
const { chat: channel, client } = await getAuthorizedFeishuChatInfo({
|
|
2361
|
-
ctx,
|
|
2362
|
-
account,
|
|
2363
|
-
runtime,
|
|
2364
|
-
chatId
|
|
2365
|
-
});
|
|
2366
|
-
const chatType = resolveFeishuChatType(channel);
|
|
2367
|
-
if (!(ctx.params.includeMembers === true || ctx.params.members === true)) return jsonActionResult({
|
|
2368
|
-
ok: true,
|
|
2369
|
-
provider: "feishu",
|
|
2370
|
-
action: "channel-info",
|
|
2371
|
-
channel
|
|
2372
|
-
});
|
|
2373
|
-
const requestedMemberIdType = resolveRequestedFeishuMemberIdType(ctx.params);
|
|
2374
|
-
const authorization = authorizeFeishuChatMemberRead({
|
|
2375
|
-
cfg: ctx.cfg,
|
|
2376
|
-
account,
|
|
2377
|
-
chatId,
|
|
2378
|
-
chatType,
|
|
2379
|
-
ctx,
|
|
2380
|
-
memberIdType: requestedMemberIdType
|
|
2381
|
-
});
|
|
2382
|
-
return jsonActionResult({
|
|
2383
|
-
ok: true,
|
|
2384
|
-
provider: "feishu",
|
|
2385
|
-
action: "channel-info",
|
|
2386
|
-
channel,
|
|
2387
|
-
members: authorization.kind === "direct" ? runtime.buildFeishuDirectChatMembers(authorization) : await runtime.getChatMembers(client, chatId, readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]), readFirstString(ctx.params, ["pageToken", "page_token"]), resolveFeishuMemberIdType(ctx.params))
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
if (ctx.action === "member-info") {
|
|
2391
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2392
|
-
const memberId = resolveFeishuMemberId(ctx.params);
|
|
2393
|
-
if (memberId) {
|
|
2394
|
-
const chatId = resolveFeishuChatId(ctx);
|
|
2395
|
-
if (!chatId) throw new Error("Feishu member-info requires chatId or channelId when memberId is provided.");
|
|
2396
|
-
const { chat, client } = await getAuthorizedFeishuChatInfo({
|
|
2397
|
-
ctx,
|
|
2398
|
-
account,
|
|
2399
|
-
runtime,
|
|
2400
|
-
chatId
|
|
2401
|
-
});
|
|
2402
|
-
const requestedMemberIdType = resolveRequestedFeishuMemberIdType(ctx.params);
|
|
2403
|
-
const memberIdType = resolveFeishuMemberIdType(ctx.params);
|
|
2404
|
-
const authorization = authorizeFeishuChatMemberRead({
|
|
2405
|
-
cfg: ctx.cfg,
|
|
2406
|
-
account,
|
|
2407
|
-
chatId,
|
|
2408
|
-
chatType: resolveFeishuChatType(chat),
|
|
2409
|
-
ctx,
|
|
2410
|
-
memberId,
|
|
2411
|
-
memberIdType: requestedMemberIdType
|
|
2412
|
-
});
|
|
2413
|
-
if (authorization.kind === "group") {
|
|
2414
|
-
await runtime.assertFeishuChatMember(client, chatId, memberId, memberIdType);
|
|
2415
|
-
return jsonActionResult({
|
|
2416
|
-
ok: true,
|
|
2417
|
-
channel: "feishu",
|
|
2418
|
-
action: "member-info",
|
|
2419
|
-
member: await runtime.getFeishuMemberInfo(client, memberId, memberIdType)
|
|
2420
|
-
});
|
|
2421
|
-
}
|
|
2422
|
-
return jsonActionResult({
|
|
2423
|
-
ok: true,
|
|
2424
|
-
channel: "feishu",
|
|
2425
|
-
action: "member-info",
|
|
2426
|
-
member: await runtime.getFeishuMemberInfo(client, authorization.memberId, authorization.memberIdType)
|
|
2427
|
-
});
|
|
2428
|
-
}
|
|
2429
|
-
const chatId = resolveFeishuChatId(ctx);
|
|
2430
|
-
if (!chatId) throw new Error("Feishu member-info requires memberId or chatId/channelId.");
|
|
2431
|
-
const { chat, client } = await getAuthorizedFeishuChatInfo({
|
|
2432
|
-
ctx,
|
|
2433
|
-
account,
|
|
2434
|
-
runtime,
|
|
2435
|
-
chatId
|
|
2436
|
-
});
|
|
2437
|
-
const requestedMemberIdType = resolveRequestedFeishuMemberIdType(ctx.params);
|
|
2438
|
-
const authorization = authorizeFeishuChatMemberRead({
|
|
2439
|
-
cfg: ctx.cfg,
|
|
2440
|
-
account,
|
|
2441
|
-
chatId,
|
|
2442
|
-
chatType: resolveFeishuChatType(chat),
|
|
2443
|
-
ctx,
|
|
2444
|
-
memberIdType: requestedMemberIdType
|
|
2445
|
-
});
|
|
2446
|
-
return jsonActionResult({
|
|
2447
|
-
ok: true,
|
|
2448
|
-
channel: "feishu",
|
|
2449
|
-
action: "member-info",
|
|
2450
|
-
...authorization.kind === "direct" ? runtime.buildFeishuDirectChatMembers(authorization) : await runtime.getChatMembers(client, chatId, readOptionalPositiveInteger(ctx.params, ["pageSize", "page_size"]), readFirstString(ctx.params, ["pageToken", "page_token"]), resolveFeishuMemberIdType(ctx.params))
|
|
2451
|
-
});
|
|
2452
|
-
}
|
|
2453
|
-
if (ctx.action === "channel-list") {
|
|
2454
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2455
|
-
const query = readFirstString(ctx.params, ["query"]);
|
|
2456
|
-
const limit = readOptionalPositiveInteger(ctx.params, ["limit"]);
|
|
2457
|
-
const scope = readFirstString(ctx.params, ["scope", "kind"]) ?? "all";
|
|
2458
|
-
const directOperator = ctx.conversationReadOrigin === "direct-operator";
|
|
2459
|
-
const listGroups = directOperator || canEnumerateAllFeishuGroups(ctx.cfg, account) ? runtime.listFeishuDirectoryGroupsLive : listAuthorizedFeishuDirectoryGroups;
|
|
2460
|
-
const listPeers = directOperator || canEnumerateAllFeishuPeers(account) ? runtime.listFeishuDirectoryPeersLive : listAuthorizedFeishuDirectoryPeers;
|
|
2461
|
-
const directoryParams = {
|
|
2462
|
-
cfg: ctx.cfg,
|
|
2463
|
-
query,
|
|
2464
|
-
limit,
|
|
2465
|
-
accountId: ctx.accountId ?? void 0,
|
|
2466
|
-
fallbackToStatic: false
|
|
2467
|
-
};
|
|
2468
|
-
const groupDirectoryParams = {
|
|
2469
|
-
...directoryParams,
|
|
2470
|
-
filter: directOperator ? (group) => isFeishuGroupReadEnabled(ctx.cfg, account, group.id) : canEnumerateAllFeishuGroups(ctx.cfg, account) ? (group) => isFeishuGroupReadAllowed(ctx.cfg, account, group.id, false) : void 0
|
|
2471
|
-
};
|
|
2472
|
-
if (scope === "groups" || scope === "group" || scope === "channels" || scope === "channel") return jsonActionResult({
|
|
2473
|
-
ok: true,
|
|
2474
|
-
channel: "feishu",
|
|
2475
|
-
action: "channel-list",
|
|
2476
|
-
groups: await listGroups(groupDirectoryParams)
|
|
2477
|
-
});
|
|
2478
|
-
if (scope === "peers" || scope === "peer" || scope === "members" || scope === "member" || scope === "users" || scope === "user") return jsonActionResult({
|
|
2479
|
-
ok: true,
|
|
2480
|
-
channel: "feishu",
|
|
2481
|
-
action: "channel-list",
|
|
2482
|
-
peers: await listPeers(directoryParams)
|
|
2483
|
-
});
|
|
2484
|
-
const [groups, peers] = await Promise.all([listGroups(groupDirectoryParams), listPeers(directoryParams)]);
|
|
2485
|
-
return jsonActionResult({
|
|
2486
|
-
ok: true,
|
|
2487
|
-
channel: "feishu",
|
|
2488
|
-
action: "channel-list",
|
|
2489
|
-
groups,
|
|
2490
|
-
peers
|
|
2491
|
-
});
|
|
2492
|
-
}
|
|
2493
|
-
if (ctx.action === "react") {
|
|
2494
|
-
const messageId = resolveFeishuMessageId(ctx.params);
|
|
2495
|
-
if (!messageId) throw new Error("Feishu reaction requires messageId.");
|
|
2496
|
-
const emoji = typeof ctx.params.emoji === "string" ? ctx.params.emoji.trim() : "";
|
|
2497
|
-
const remove = ctx.params.remove === true;
|
|
2498
|
-
const clearAll = ctx.params.clearAll === true;
|
|
2499
|
-
if (remove) {
|
|
2500
|
-
if (!emoji) throw new Error("Emoji is required to remove a Feishu reaction.");
|
|
2501
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2502
|
-
await requireAuthorizedFeishuMessage({
|
|
2503
|
-
ctx,
|
|
2504
|
-
account,
|
|
2505
|
-
runtime,
|
|
2506
|
-
messageId
|
|
2507
|
-
});
|
|
2508
|
-
const ownReaction = (await runtime.listReactionsFeishu({
|
|
2509
|
-
cfg: ctx.cfg,
|
|
2510
|
-
messageId,
|
|
2511
|
-
emojiType: emoji,
|
|
2512
|
-
accountId: ctx.accountId ?? void 0
|
|
2513
|
-
})).find((entry) => entry.operatorType === "app" && Boolean(account.appId) && entry.operatorId === account.appId);
|
|
2514
|
-
if (!ownReaction) return jsonActionResult({
|
|
2515
|
-
ok: true,
|
|
2516
|
-
removed: null
|
|
2517
|
-
});
|
|
2518
|
-
await runtime.removeReactionFeishu({
|
|
2519
|
-
cfg: ctx.cfg,
|
|
2520
|
-
messageId,
|
|
2521
|
-
reactionId: ownReaction.reactionId,
|
|
2522
|
-
accountId: ctx.accountId ?? void 0
|
|
2523
|
-
});
|
|
2524
|
-
return jsonActionResult({
|
|
2525
|
-
ok: true,
|
|
2526
|
-
removed: emoji
|
|
2527
|
-
});
|
|
2528
|
-
}
|
|
2529
|
-
if (!emoji) {
|
|
2530
|
-
if (!clearAll) throw new Error("Emoji is required to add a Feishu reaction. Set clearAll=true to remove all bot reactions.");
|
|
2531
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2532
|
-
await requireAuthorizedFeishuMessage({
|
|
2533
|
-
ctx,
|
|
2534
|
-
account,
|
|
2535
|
-
runtime,
|
|
2536
|
-
messageId
|
|
2537
|
-
});
|
|
2538
|
-
const reactions = await runtime.listReactionsFeishu({
|
|
2539
|
-
cfg: ctx.cfg,
|
|
2540
|
-
messageId,
|
|
2541
|
-
accountId: ctx.accountId ?? void 0
|
|
2542
|
-
});
|
|
2543
|
-
let removed = 0;
|
|
2544
|
-
const ownReactions = reactions.filter((entry) => entry.operatorType === "app" && Boolean(account.appId) && entry.operatorId === account.appId);
|
|
2545
|
-
for (const reaction of ownReactions) {
|
|
2546
|
-
await runtime.removeReactionFeishu({
|
|
2547
|
-
cfg: ctx.cfg,
|
|
2548
|
-
messageId,
|
|
2549
|
-
reactionId: reaction.reactionId,
|
|
2550
|
-
accountId: ctx.accountId ?? void 0
|
|
2551
|
-
});
|
|
2552
|
-
removed += 1;
|
|
2553
|
-
}
|
|
2554
|
-
return jsonActionResult({
|
|
2555
|
-
ok: true,
|
|
2556
|
-
removed
|
|
2557
|
-
});
|
|
2558
|
-
}
|
|
2559
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2560
|
-
await requireAuthorizedFeishuMessage({
|
|
2561
|
-
ctx,
|
|
2562
|
-
account,
|
|
2563
|
-
runtime,
|
|
2564
|
-
messageId
|
|
2565
|
-
});
|
|
2566
|
-
await runtime.addReactionFeishu({
|
|
2567
|
-
cfg: ctx.cfg,
|
|
2568
|
-
messageId,
|
|
2569
|
-
emojiType: emoji,
|
|
2570
|
-
accountId: ctx.accountId ?? void 0
|
|
2571
|
-
});
|
|
2572
|
-
return jsonActionResult({
|
|
2573
|
-
ok: true,
|
|
2574
|
-
added: emoji
|
|
2575
|
-
});
|
|
2576
|
-
}
|
|
2577
|
-
if (ctx.action === "reactions") {
|
|
2578
|
-
const messageId = resolveFeishuMessageId(ctx.params);
|
|
2579
|
-
if (!messageId) throw new Error("Feishu reactions lookup requires messageId.");
|
|
2580
|
-
const runtime = await loadFeishuChannelRuntime();
|
|
2581
|
-
await requireAuthorizedFeishuMessage({
|
|
2582
|
-
ctx,
|
|
2583
|
-
account,
|
|
2584
|
-
runtime,
|
|
2585
|
-
messageId
|
|
2586
|
-
});
|
|
2587
|
-
return jsonActionResult({
|
|
2588
|
-
ok: true,
|
|
2589
|
-
reactions: await runtime.listReactionsFeishu({
|
|
2590
|
-
cfg: ctx.cfg,
|
|
2591
|
-
messageId,
|
|
2592
|
-
accountId: ctx.accountId ?? void 0
|
|
2593
|
-
})
|
|
2594
|
-
});
|
|
2595
|
-
}
|
|
2596
|
-
throw new Error(`Unsupported Feishu action: "${ctx.action}"`);
|
|
2597
|
-
}
|
|
2598
|
-
},
|
|
2599
|
-
bindings: {
|
|
2600
|
-
compileConfiguredBinding: ({ conversationId }) => normalizeFeishuAcpConversationId(conversationId),
|
|
2601
|
-
matchInboundConversation: ({ compiledBinding, conversationId, parentConversationId }) => matchFeishuAcpConversation({
|
|
2602
|
-
bindingConversationId: compiledBinding.conversationId,
|
|
2603
|
-
conversationId,
|
|
2604
|
-
parentConversationId
|
|
2605
|
-
}),
|
|
2606
|
-
resolveCommandConversation: ({ accountId, threadId, senderId, sessionKey, parentSessionKey, originatingTo, commandTo, fallbackTo }) => resolveFeishuCommandConversation({
|
|
2607
|
-
accountId,
|
|
2608
|
-
threadId,
|
|
2609
|
-
senderId,
|
|
2610
|
-
sessionKey,
|
|
2611
|
-
parentSessionKey,
|
|
2612
|
-
originatingTo,
|
|
2613
|
-
commandTo,
|
|
2614
|
-
fallbackTo
|
|
2615
|
-
})
|
|
2616
|
-
},
|
|
2617
|
-
auth: { login: async ({ cfg }) => {
|
|
2618
|
-
const { createClackPrompter } = await import("openclaw/plugin-sdk/setup-runtime");
|
|
2619
|
-
const { replaceConfigFile } = await import("openclaw/plugin-sdk/config-mutation");
|
|
2620
|
-
const nextCfg = await runFeishuLogin({
|
|
2621
|
-
cfg,
|
|
2622
|
-
prompter: createClackPrompter()
|
|
2623
|
-
});
|
|
2624
|
-
if (nextCfg !== cfg) await replaceConfigFile({
|
|
2625
|
-
nextConfig: nextCfg,
|
|
2626
|
-
afterWrite: { mode: "auto" }
|
|
2627
|
-
});
|
|
2628
|
-
} },
|
|
2629
|
-
setup: feishuSetupAdapter,
|
|
2630
|
-
setupContract: feishuSetupContract,
|
|
2631
|
-
setupWizard: feishuSetupWizard,
|
|
2632
|
-
messaging: {
|
|
2633
|
-
targetPrefixes: ["feishu", "lark"],
|
|
2634
|
-
normalizeTarget: (raw) => normalizeFeishuTarget(raw) ?? void 0,
|
|
2635
|
-
resolveDeliveryTarget: ({ conversationId, parentConversationId }) => {
|
|
2636
|
-
const directId = parseFeishuDirectConversationId(conversationId);
|
|
2637
|
-
if (directId) return { to: `user:${directId}` };
|
|
2638
|
-
const parsed = parseFeishuConversationId({
|
|
2639
|
-
conversationId,
|
|
2640
|
-
parentConversationId
|
|
2641
|
-
});
|
|
2642
|
-
if (parsed?.topicId) return {
|
|
2643
|
-
to: `chat:${parentConversationId?.trim() || parsed.chatId}`,
|
|
2644
|
-
threadId: parsed.topicId
|
|
2645
|
-
};
|
|
2646
|
-
return { to: `chat:${parsed?.chatId ?? conversationId.trim()}` };
|
|
2647
|
-
},
|
|
2648
|
-
resolveSessionConversation: resolveFeishuSessionConversation,
|
|
2649
|
-
resolveOutboundSessionRoute: (params) => resolveFeishuOutboundSessionRoute(params),
|
|
2650
|
-
targetResolver: {
|
|
2651
|
-
looksLikeId: looksLikeFeishuId,
|
|
2652
|
-
hint: "<chatId|user:openId|chat:chatId>"
|
|
2653
|
-
}
|
|
2654
|
-
},
|
|
2655
|
-
directory: createChannelDirectoryAdapter({
|
|
2656
|
-
listPeers: async ({ cfg, query, limit, accountId }) => listFeishuDirectoryPeers({
|
|
2657
|
-
cfg,
|
|
2658
|
-
query: query ?? void 0,
|
|
2659
|
-
limit: limit ?? void 0,
|
|
2660
|
-
accountId: accountId ?? void 0
|
|
2661
|
-
}),
|
|
2662
|
-
listGroups: async ({ cfg, query, limit, accountId }) => listFeishuDirectoryGroups({
|
|
2663
|
-
cfg,
|
|
2664
|
-
query: query ?? void 0,
|
|
2665
|
-
limit: limit ?? void 0,
|
|
2666
|
-
accountId: accountId ?? void 0
|
|
2667
|
-
}),
|
|
2668
|
-
...createRuntimeDirectoryLiveAdapter({
|
|
2669
|
-
getRuntime: loadFeishuChannelRuntime,
|
|
2670
|
-
listPeersLive: (runtime) => async ({ cfg, query, limit, accountId }) => await runtime.listFeishuDirectoryPeersLive({
|
|
2671
|
-
cfg,
|
|
2672
|
-
query: query ?? void 0,
|
|
2673
|
-
limit: limit ?? void 0,
|
|
2674
|
-
accountId: accountId ?? void 0
|
|
2675
|
-
}),
|
|
2676
|
-
listGroupsLive: (runtime) => async ({ cfg, query, limit, accountId }) => await runtime.listFeishuDirectoryGroupsLive({
|
|
2677
|
-
cfg,
|
|
2678
|
-
query: query ?? void 0,
|
|
2679
|
-
limit: limit ?? void 0,
|
|
2680
|
-
accountId: accountId ?? void 0
|
|
2681
|
-
})
|
|
2682
|
-
})
|
|
2683
|
-
}),
|
|
2684
|
-
status: createComputedAccountStatusAdapter({
|
|
2685
|
-
defaultRuntime: createDefaultChannelRuntimeState(DEFAULT_ACCOUNT_ID$3, { port: null }),
|
|
2686
|
-
buildChannelSummary: ({ snapshot }) => buildProbeChannelStatusSummary(snapshot, { port: snapshot.port ?? null }),
|
|
2687
|
-
probeAccount: async ({ account }) => await (await loadFeishuChannelRuntime()).probeFeishu(account),
|
|
2688
|
-
resolveAccountSnapshot: ({ account, runtime }) => ({
|
|
2689
|
-
accountId: account.accountId,
|
|
2690
|
-
enabled: account.enabled,
|
|
2691
|
-
configured: account.configured,
|
|
2692
|
-
name: account.name,
|
|
2693
|
-
extra: {
|
|
2694
|
-
appId: account.appId,
|
|
2695
|
-
domain: account.domain,
|
|
2696
|
-
port: runtime?.port ?? null
|
|
2697
|
-
}
|
|
2698
|
-
})
|
|
2699
|
-
}),
|
|
2700
|
-
gateway: { startAccount: async (ctx) => {
|
|
2701
|
-
const { monitorFeishuProvider } = await import("./monitor-DngbaA6a.js");
|
|
2702
|
-
const account = resolveFeishuRuntimeAccount({
|
|
2703
|
-
cfg: ctx.cfg,
|
|
2704
|
-
accountId: ctx.accountId
|
|
2705
|
-
}, { requireEventSecrets: true });
|
|
2706
|
-
const port = account.config?.webhookPort ?? null;
|
|
2707
|
-
ctx.setStatus({
|
|
2708
|
-
accountId: ctx.accountId,
|
|
2709
|
-
port
|
|
2710
|
-
});
|
|
2711
|
-
ctx.log?.info(`starting feishu[${ctx.accountId}] (mode: ${account.config?.connectionMode ?? "websocket"})`);
|
|
2712
|
-
const statusSink = createAccountStatusSink({
|
|
2713
|
-
accountId: ctx.accountId,
|
|
2714
|
-
setStatus: ctx.setStatus
|
|
2715
|
-
});
|
|
2716
|
-
return monitorFeishuProvider({
|
|
2717
|
-
config: ctx.cfg,
|
|
2718
|
-
runtime: ctx.runtime,
|
|
2719
|
-
channelRuntime: ctx.channelRuntime,
|
|
2720
|
-
abortSignal: ctx.abortSignal,
|
|
2721
|
-
accountId: ctx.accountId,
|
|
2722
|
-
statusSink
|
|
2723
|
-
});
|
|
2724
|
-
} },
|
|
2725
|
-
message: feishuMessageAdapter
|
|
2726
|
-
},
|
|
2727
|
-
security: {
|
|
2728
|
-
collectWarnings: projectConfigAccountIdWarningCollector(collectFeishuSecurityWarnings),
|
|
2729
|
-
collectAuditFindings: ({ cfg }) => collectFeishuSecurityAuditFindings({ cfg })
|
|
2730
|
-
},
|
|
2731
|
-
pairing: { text: {
|
|
2732
|
-
idLabel: "feishuUserId",
|
|
2733
|
-
message: PAIRING_APPROVED_MESSAGE,
|
|
2734
|
-
normalizeAllowEntry: createPairingPrefixStripper(/^(feishu|user|open_id):/i),
|
|
2735
|
-
notify: async ({ cfg, id, message, accountId }) => {
|
|
2736
|
-
const { sendMessageFeishu } = await loadFeishuChannelRuntime();
|
|
2737
|
-
await sendMessageFeishu({
|
|
2738
|
-
cfg,
|
|
2739
|
-
to: id,
|
|
2740
|
-
text: message,
|
|
2741
|
-
accountId
|
|
2742
|
-
});
|
|
2743
|
-
}
|
|
2744
|
-
} },
|
|
2745
|
-
threading: { buildToolContext: ({ context, hasRepliedRef }) => ({
|
|
2746
|
-
currentChannelId: normalizeOptionalString(context.NativeChannelId) ?? normalizeOptionalString(context.To),
|
|
2747
|
-
currentChatType: context.ChatType === "direct" || context.ChatType === "group" || context.ChatType === "channel" ? context.ChatType : void 0,
|
|
2748
|
-
currentMessagingTarget: normalizeOptionalString(context.To),
|
|
2749
|
-
currentThreadTs: context.MessageThreadId != null ? String(context.MessageThreadId) : void 0,
|
|
2750
|
-
hasRepliedRef
|
|
2751
|
-
}) },
|
|
2752
|
-
outbound: {
|
|
2753
|
-
deliveryMode: "direct",
|
|
2754
|
-
chunker: chunkFeishuMarkdown,
|
|
2755
|
-
chunkerMode: "markdown",
|
|
2756
|
-
textChunkLimit: 4e3,
|
|
2757
|
-
sanitizeText: ({ text }) => sanitizeAssistantVisibleText(text),
|
|
2758
|
-
presentationCapabilities: {
|
|
2759
|
-
supported: true,
|
|
2760
|
-
buttons: true,
|
|
2761
|
-
selects: false,
|
|
2762
|
-
context: true,
|
|
2763
|
-
divider: true,
|
|
2764
|
-
limits: {
|
|
2765
|
-
actions: {
|
|
2766
|
-
maxActions: 20,
|
|
2767
|
-
maxActionsPerRow: 5,
|
|
2768
|
-
maxLabelLength: 40,
|
|
2769
|
-
maxValueBytes: 1024
|
|
2770
|
-
},
|
|
2771
|
-
text: {
|
|
2772
|
-
maxLength: 4e3,
|
|
2773
|
-
encoding: "characters",
|
|
2774
|
-
markdownDialect: "markdown"
|
|
2775
|
-
}
|
|
2776
|
-
}
|
|
2777
|
-
},
|
|
2778
|
-
renderPresentation: async (ctx) => {
|
|
2779
|
-
const renderPresentation = (await loadFeishuChannelRuntime()).feishuOutbound.renderPresentation;
|
|
2780
|
-
return renderPresentation ? await renderPresentation(ctx) : null;
|
|
2781
|
-
},
|
|
2782
|
-
sendPayload: async (ctx) => {
|
|
2783
|
-
const sendPayload = (await loadFeishuChannelRuntime()).feishuOutbound.sendPayload;
|
|
2784
|
-
if (!sendPayload) throw new Error("Feishu payload sending is not available.");
|
|
2785
|
-
return await sendPayload(ctx);
|
|
2786
|
-
},
|
|
2787
|
-
...createRuntimeOutboundDelegates({
|
|
2788
|
-
getRuntime: loadFeishuChannelRuntime,
|
|
2789
|
-
sendText: { resolve: (runtime) => runtime.feishuOutbound.sendText },
|
|
2790
|
-
sendMedia: { resolve: (runtime) => runtime.feishuOutbound.sendMedia }
|
|
2791
|
-
})
|
|
2792
|
-
}
|
|
2793
|
-
});
|
|
2794
|
-
//#endregion
|
|
2795
|
-
export { setFeishuNamedAccountEnabled as a, isFeishuCardWithinEnvelope as c, feishuSetupAdapter as i, listFeishuDirectoryGroups as l, feishuSetupWizard as n, assertFeishuCardWithinEnvelope as o, runFeishuLogin as r, buildFeishuPresentationCardElements as s, feishuPlugin as t, listFeishuDirectoryPeers as u };
|