Commit Graph

2949 Commits (64da91659037a61124dbb549c2000c75efc404da)

Author SHA1 Message Date
Tak Hoffman dc64a86eb8
fix(tests): refresh mattermost monitor mocks 8 months ago
Jackjin a0407c7254
fix(line): preserve underscores inside words in stripMarkdown (#47465)
Fixes #46185.

Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm test -- extensions/line/src/markdown-to-line.test.ts src/tts/prepare-text.test.ts

Note: `pnpm check` currently fails on unchanged `extensions/microsoft/speech-provider.test.ts` lines 108 and 139 on the rebased base, outside this PR diff.
8 months ago
Tak Hoffman e61ffa68f1
fix(tests): refresh generated schema contracts 8 months ago
Extra Small 69a0a0edc5
fix(tts): use Chinese voice for CJK text in edge-tts provider (openclaw#52355)
Verified:
- pnpm test -- extensions/microsoft/speech-provider.test.ts extensions/microsoft/tts.test.ts

Notes:
- Rebases and refactor-port completed onto current main.
- No required GitHub checks were reported for this branch at merge time.

Co-authored-by: Extra Small <littleshuai.bot@gmail.com>
8 months ago
Tak Hoffman f1970b8aef
fix(line): normalize canonical ACP targets (#56713) 8 months ago
Tak Hoffman 3ce48aff66
Memory: add configurable FTS5 tokenizer for CJK text support (openclaw#56707)
Verified:
- pnpm build
- pnpm check
- pnpm test -- extensions/memory-core/src/memory/manager-search.test.ts packages/memory-host-sdk/src/host/query-expansion.test.ts
- pnpm test -- extensions/memory-core/src/memory/index.test.ts -t "reindexes when extraPaths change"
- pnpm test -- src/config/schema.base.generated.test.ts
- pnpm test -- src/media-understanding/image.test.ts
- pnpm test

Co-authored-by: Mitsuyuki Osabe <24588751+carrotRakko@users.noreply.github.com>
8 months ago
Tak Hoffman 6f7ff545dd
fix(line): add ACP binding parity (#56700)
* fix(line): support ACP current-conversation binding

* fix(line): add ACP binding routing parity

* docs(changelog): note LINE ACP parity

* fix(line): accept canonical ACP binding targets
8 months ago
Masato Hoshino 9449e54f4f
feat(line): add outbound media support for image, video, and audio
pnpm install --frozen-lockfile
pnpm build
pnpm check
pnpm vitest run extensions/line/src/channel.sendPayload.test.ts extensions/line/src/send.test.ts extensions/line/src/outbound-media.test.ts

Co-authored-by: masatohoshino <246810661+masatohoshino@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
8 months ago
Peter Steinberger f9b1079283
build: cut 2026.3.28 stable 8 months ago
Vignesh Natarajan e2d0b7c583
chore(test): harden mattermost slash-http module mocks 8 months ago
Peter Steinberger 148a65fe90 refactor: share webhook channel status helpers 8 months ago
Vignesh Natarajan 19e52a1ba2
fix(memory/qmd): honor embedInterval independent of update interval 8 months ago
karesansui acbdafc4f4 fix: propagate webhook mode to health monitor snapshot
Webhook channels (LINE, Zalo, Nextcloud Talk, BlueBubbles) are
incorrectly flagged as stale-socket during quiet periods because
snapshot.mode is always undefined, making the mode !== "webhook"
guard in evaluateChannelHealth dead code.

Add mode: "webhook" to each webhook plugin's describeAccount and
propagate described.mode in getRuntimeSnapshot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 months ago
Peter Steinberger acca306665 fix: polish LINE status snapshot checks (#45701) (thanks @tamaosamu) 8 months ago
劉超 03941e2dbf fix(line): use configured field in collectStatusIssues instead of raw token
collectStatusIssues previously checked account.channelAccessToken directly,
but this field is stripped by projectSafeChannelAccountSnapshotFields for
security. This caused 'openclaw status' to always report WARN even when the
token is valid and the LINE provider starts successfully.

Use account.configured instead, which is already computed by
buildChannelAccountSnapshot and correctly reflects whether credentials
are present. This is consistent with how other channels (e.g. Telegram)
implement their status checks.

Fixes #45693
8 months ago
Peter Steinberger 5ebccf5e30 test: harden zalo webhook lifecycle tests 8 months ago
Peter Steinberger 9e1b524a00 fix: break mattermost runtime cycle 8 months ago
Peter Steinberger fcc9fd1623 fix: land LINE timing-safe signature validation (#55663) (thanks @gavyngong) 8 months ago
gavyngong 7626d18c64 fix(line): eliminate timing side-channel in HMAC signature validation
Pad both buffers to equal length before constant-time comparison.

Key fix: call timingSafeEqual unconditionally and store the result
before the && length check, ensuring the constant-time comparison
always runs regardless of buffer lengths. This avoids JavaScript's
&& short-circuit evaluation which would skip timingSafeEqual on
length mismatches, preserving the timing side-channel.

Changes:
- Pad hash and signature buffers to maxLen before comparison
- Store timingSafeEqual result before combining with length check
- Add explanatory comment about the short-circuit avoidance
8 months ago
Peter Steinberger f9281d1b9d build: bump aws sdk and tsdown 8 months ago
Harold Hunt fcee6fa047
Docs: add boundary AGENTS guides (#56647) 8 months ago
Peter Steinberger 3d69ad8308
fix: preserve Teams Entra JWT fallback on legacy validator errors 8 months ago
Peter Steinberger 5872f860c9 feat(xai): add plugin-owned x_search onboarding 8 months ago
Vignesh Natarajan 4e74e7e26c
fix(memory): resolve slugified qmd search paths (#50313) 8 months ago
Robin Waslander 3847ace25b
fix(telegram): preserve forum topic routing for /new and /reset (#56654)
Build a topic-qualified routing target (telegram:<chatId>:topic:<threadId>)
for native commands in forum groups so /new and /reset stay scoped to
the active topic instead of falling back to General.

General topic (threadId=1) correctly falls through to the base chat
target since Telegram rejects message_thread_id=1 on sends.

Add regression tests for topic routing and General topic edge case.

Fixes #35963
8 months ago
Brad Groux dc382b09be
fix(msteams): accept strict Bot Framework and Entra service tokens (#56631)
* msteams: log policy-based inbound drops at info level

* fix(msteams): validate Bot Framework and Entra service token issuers

---------

Co-authored-by: Brad Groux <bradgroux@users.noreply.github.com>
8 months ago
frischeDaten 81432d6b7e
fix(matrix): encrypt thumbnails in E2EE rooms using thumbnail_file (#54711)
Merged via squash.

Prepared head SHA: 92be0e1ac291ab988dc4da11e12768a6a2423067
Co-authored-by: frischeDaten <5878058+frischeDaten@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
8 months ago
Peter Steinberger 587e18cd3f chore: prepare 2026.3.28-beta.1 release 8 months ago
Peter Steinberger 45ecf5e2e9 fix(xai): narrow code execution config typing 8 months ago
Peter Steinberger 8a24cbf450 chore: bump version to 2026.3.28 8 months ago
OfflynAI cb00d44ae4
fix(matrix): load crypto-nodejs via createRequire to fix __dirname in ESM (#54566)
Merged via squash.

Prepared head SHA: 61d99628f9c9874dd29658b3cdccf03e8b1ba2dc
Co-authored-by: joelnishanth <140015627+joelnishanth@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
8 months ago
huntharo b7ab0ddb55 refactor(xai): move code_execution into plugin 8 months ago
Peter Steinberger 1617e0218f test(xai): add live x_search coverage 8 months ago
Peter Steinberger 887d7584d6 refactor(plugins): expose bundled onboard helpers 8 months ago
Peter Steinberger dba1b31243 fix(xai): repair extension test boundaries 8 months ago
Peter Steinberger 1e424990a2 fix(xai): restore config-backed auth discovery 8 months ago
Peter Steinberger 2a950157b1 refactor(xai): move x_search into plugin 8 months ago
huntharo 396bf20cc6 Tools: add xAI-backed code_execution 8 months ago
huntharo c8ed1638ea xAI: restore generic auth and x_search seams 8 months ago
huntharo 92fb4ad233 xAI: route x_search through public api seam 8 months ago
huntharo b918568b1e Rebase: reconcile xAI post-main conflicts 8 months ago
huntharo 9dd08a49a4 xAI: reuse fallback auth for runtime and discovery 8 months ago
huntharo fd748171b8 xAI: strip unsupported Responses reasoning params 8 months ago
huntharo d5fafbe3ce xAI: honor config-backed auth during provider bootstrap 8 months ago
huntharo 2d919cf63d xAI: reuse web search key for provider auth 8 months ago
huntharo 38e4b77e60 Tools: add x_search via xAI Responses 8 months ago
huntharo 5ed8ee6832 xAI: switch bundled provider defaults to Responses 8 months ago
Robin Waslander 4d6c8edd74
fix(telegram): skip empty text replies instead of crashing with GrammyError 400 (#56620)
Filter whitespace-only text chunks at the bot delivery fan-in before
they reach sendTelegramText(). Covers normal text replies, follow-up
text, and voice fallback text paths.

Media-only replies are unaffected. message_sent hook still fires with
success: false for suppressed empty replies.

Fixes #37278
8 months ago
Robin Waslander ab2ef7bbfc
fix(telegram): split long messages at word boundaries instead of mid-word (#56595)
Replace proportional text estimate with binary search for the largest
text prefix whose rendered Telegram HTML fits the character limit, then
split at the last whitespace boundary within that verified prefix.

Single words longer than the limit still hard-split (unavoidable).
Markdown formatting stays balanced across split points.

Fixes #36644
8 months ago
Robin Waslander 865160e572
fix(telegram): validate replyToMessageId before sending to Telegram API (#56587)
Add shared normalizeTelegramReplyToMessageId() that rejects non-numeric,
NaN, and mixed-content strings before they reach the Telegram Bot API.
Apply at all four API sinks: direct send, bot delivery, draft stream,
and bot helpers.

Prevents GrammyError 400 when non-numeric values from session metadata
slip through typed boundaries.

Fixes #37222
8 months ago