Skip to content

Commit ecc49b5

Browse files
authored
refactor(tts): absorb speech core package (#118513)
* refactor(tts): absorb speech core package * fix(tts): preserve runtime SDK exports * refactor(tts): remove private package exports * test(tts): align canonical runtime mocks * test(tts): complete canonical settings mocks * chore(plugin-sdk): regenerate API baseline for #118513
1 parent d204661 commit ecc49b5

61 files changed

Lines changed: 2693 additions & 2711 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎config/knip.config.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,6 @@ const config = {
620620
entry: ["src/*.ts!", "src/host/embeddings-worker-child.ts!"],
621621
project: ["src/**/*.ts!"],
622622
},
623-
"packages/speech-core": {
624-
entry: ["runtime-api.ts!", "speaker.ts!", "voice-models.ts!"],
625-
project: ["**/*.ts!"],
626-
ignoreDependencies: ["openclaw"],
627-
},
628623
"packages/*": {
629624
entry: ["index.js!", "scripts/postinstall.js!"],
630625
project: ["index.js!", "scripts/**/*.js!"],

‎config/max-lines-baseline.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ packages/markdown-core/src/ir.ts
320320
packages/memory-host-sdk/src/host/session-files.ts
321321
packages/sdk/src/client.ts
322322
packages/sdk/src/index.test.ts
323-
packages/speech-core/src/tts.test.ts
324323
packages/tool-call-repair/src/stream-normalizer.test.ts
325324
packages/tool-call-repair/src/stream-normalizer.ts
326325
src/acp/control-plane/manager.test.ts

‎docs/.generated/plugin-sdk-api-baseline.sha256‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ e5e67ddf3cab38fcbf9220bc3160715897e2709d9a9ff6ff36f1ecc9453c2367 module/agent-c
66
74daa746deb548379d3f0d6eac3c4d082df1034c4360cc03bf51fee0f10a2e4d module/agent-harness
77
95a907e1c33305b9473be64cc8d723e1a12b909eda86b15b94cee91879fb6a89 module/agent-harness-runtime
88
5168648cd946abad8a92822889f13ceacc87ed502314a66190d0b1eb8ebe76ea module/agent-media-payload
9-
fd54eb654443d646d6430d2be99d1f25c32701f1c45aaa870ffe74aefc7d7f00 module/agent-runtime
9+
6ee8bb70cd7b8a5a976ee84cd0c6e632dbfa5e4a047f616cdc00fa5b27879b27 module/agent-runtime
1010
56b6d5fb6af3d95af1200065aca2e7d4f59e5fa59740505fe6ff433077ef6646 module/allow-from
1111
55cea5390d68839ca7768b4a0cc570b17b65fa0fa3bc4d76130ef0f16cb79ede module/allowlist-config-edit
1212
7ddd81bd5f55de9adf64bf4d92d012f24b37b6da0a72805a3a220d8feff24ca3 module/approval-auth-runtime
@@ -29,7 +29,7 @@ c0f910ebfa3dbf283145fb1e3b9c016d03e853ef13e70402b09f3b9d9c2f4ab0 module/channel
2929
9a5aaf650f9242523bb57bdc2556c323ab64e55aa11e25e2685b73b23ee12534 module/channel-dm-policy
3030
ba41c40956d6b4565605fa38c2d12f4b8471a0f8afe842798716b9032ee4d74a module/channel-entry-contract
3131
982f29a18e07228e3da82cae67d06ff38249592a29c2fd28f01f0d2016ff80d9 module/channel-feedback
32-
d645d24bcb7a5f68cc46c692ad0d1fbd19be0a99996f31e9479ce9cffce301c1 module/channel-inbound
32+
1d13edd07a8ae8e21ece6c542cb0cde22e5b6e11d3bb9b2bfaa5ebd2a5239bf8 module/channel-inbound
3333
76bb7f531f3702c801e8fe7479e9e499f601fb361a4303afdcb45fc0da440e4b module/channel-inbound-debounce
3434
df567ce2f4a4ba8a0937f825c46e83763412a724e36b72ce727dc4203c7dd134 module/channel-ingress-runtime
3535
0e6efb79730fae59bb549ad00d9af2848c139b4bb1762e83b66886284e1c1421 module/channel-lifecycle
@@ -107,7 +107,7 @@ aa2a56b4448c8ebdec9d06aac95d809995f533093d42fa32cd75e1d852967245 module/questio
107107
2e09c3181e79e157ed5366b144d116ef8cc06023256ace3fa59b35c43cab513a module/reply-chunking
108108
7994045066b29af1fc6b36ae32068f2a6f277195971af84701cb739cc23d0579 module/reply-dispatch-runtime
109109
ac2b199e95c5c8b1e2a65e62bd41d1b6322e531bca294ef4979a297a12640bce module/reply-history
110-
f394fe4d5a7ed9e4d574063ae44e8d6af85c9a0e7d8b329f750ca16b0664325f module/reply-payload
110+
ad69a4a6970cfac86f9379efb927beac898217946d025c3aea55e6f399da08bb module/reply-payload
111111
1f899eb54013f268d6698ce8e6943289ea0e872747e8e868259106829518db86 module/reply-runtime
112112
b4043b356372f6af64ee3c26e4d6a6d623b817e4d95346358dc0e64a3b61d1e0 module/root-walk
113113
97fc4ed1ac6e62b7af95b4352cee3893252d8b691fef71a000c2602b3128541a module/routing

‎extensions/qqbot/src/engine/messaging/trusted-media-path.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ afterEach(() => {
2020
});
2121

2222
function makeTtsStyleVoiceFile(): string {
23-
// Mirrors cron auto-TTS: speech-core writes the voice file under the preferred
23+
// Mirrors cron auto-TTS: the TTS runtime writes the voice file under the preferred
2424
// OpenClaw temp root, which is outside the QQ Bot media storage tree.
2525
const tmpRoot = resolvePreferredOpenClawTmpDir();
2626
const ttsDir = makeTrackedDir(tmpRoot, "tts-");

‎extensions/xai/.boundary-stubs/speech-core-runtime-api.d.ts‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎extensions/xai/tsconfig.json‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,9 +848,6 @@
848848
],
849849
"@openclaw/ollama/runtime-api.js": [
850850
"./.boundary-stubs/ollama-runtime-api.d.ts"
851-
],
852-
"@openclaw/speech-core/runtime-api.js": [
853-
"./.boundary-stubs/speech-core-runtime-api.d.ts"
854851
]
855852
}
856853
}

‎packages/speech-core/package.json‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎packages/speech-core/runtime-api.ts‎

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)