cc-viewer 1.9.18 → 1.9.19
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/cli.js +34 -0
- package/dist/assets/{App-COyZwmVt.js → App-5GFhfhAM.js} +2 -2
- package/dist/assets/{MdxEditorPanel-BsHDgZCY.js → MdxEditorPanel-C71H-8ZP.js} +1 -1
- package/dist/assets/{Mobile-B1H_PrNl.js → Mobile-CAqle3TP.js} +1 -1
- package/dist/assets/{ProxyStatsModal-CSQNNwpU.js → ProxyStatsModal-B0ySgEsq.js} +1 -1
- package/dist/assets/{index-CPn0gvr6.js → index-C4_-ImaE.js} +2 -2
- package/dist/assets/{seqResourceLoaders-DZA-JHK0.css → seqResourceLoaders-C8O3LxzJ.css} +1 -1
- package/dist/assets/seqResourceLoaders-CXYXv_fq.js +2 -0
- package/dist/index.html +1 -1
- package/dist/voice-packs/default/agentLoopStart.wav +0 -0
- package/dist/voice-packs/default/pack.json +11 -0
- package/dist/voice-packs/sanguo/agentLoopStart.wav +0 -0
- package/dist/voice-packs/sanguo/pack.json +11 -0
- package/node_modules/@ccv/core/src/voice-pack-events.js +12 -3
- package/package.json +2 -2
- package/server/lib/attach-buffer.js +164 -0
- package/server/lib/plugin-loader.js +2 -0
- package/server/lib/plugin-runtime.js +12 -2
- package/server/lib/sdk-manager.js +301 -58
- package/server/lib/v2/live-feed.js +108 -7
- package/server/lib/v2/meta-rows.js +35 -4
- package/server/routes/events.js +64 -1
- package/server/server.js +80 -3
- package/dist/assets/seqResourceLoaders-Cm1JnNsu.js +0 -2
package/cli.js
CHANGED
|
@@ -873,6 +873,24 @@ async function runSdkMode(extraClaudeArgs = [], cwd, noOpen = false) {
|
|
|
873
873
|
// persistent dialogue row plus a toast; meta (cwd/sessionId/instanceKey, filled by
|
|
874
874
|
// the sdk-manager session closure) routes it to the owning workspace's viewers.
|
|
875
875
|
onQueryError: (message, meta) => serverMod.broadcastWsMessage({ type: 'sdk-error', message, ...(meta || {}) }),
|
|
876
|
+
// Authoritative per-turn loop boundaries (immediate, turn-correlated) — the voice
|
|
877
|
+
// pack / plugin lifecycle complement to the debounced turn_end above.
|
|
878
|
+
onAgentLoopStart: (p) => {
|
|
879
|
+
if (typeof serverMod.broadcastAgentLoopStart !== 'function') {
|
|
880
|
+
console.warn('[sdk] serverMod.broadcastAgentLoopStart is not a function (export missing?); loop-start signal dropped');
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
try { serverMod.broadcastAgentLoopStart(p); }
|
|
884
|
+
catch (err) { console.warn('[sdk] broadcastAgentLoopStart threw:', err?.message); }
|
|
885
|
+
},
|
|
886
|
+
onAgentLoopEnd: (p) => {
|
|
887
|
+
if (typeof serverMod.broadcastAgentLoopEnd !== 'function') {
|
|
888
|
+
console.warn('[sdk] serverMod.broadcastAgentLoopEnd is not a function (export missing?); loop-end signal dropped');
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
try { serverMod.broadcastAgentLoopEnd(p); }
|
|
892
|
+
catch (err) { console.warn('[sdk] broadcastAgentLoopEnd threw:', err?.message); }
|
|
893
|
+
},
|
|
876
894
|
});
|
|
877
895
|
|
|
878
896
|
// Per-cwd multi-session (2026-10-12): hand the boot launch config (proxy env, model,
|
|
@@ -918,6 +936,22 @@ async function runSdkMode(extraClaudeArgs = [], cwd, noOpen = false) {
|
|
|
918
936
|
catch (err) { console.warn('[sdk] broadcastTurnEnd threw:', err?.message); }
|
|
919
937
|
},
|
|
920
938
|
onQueryError: (message, meta) => serverMod.broadcastWsMessage({ type: 'sdk-error', message, ...(meta || {}) }),
|
|
939
|
+
onAgentLoopStart: (p) => {
|
|
940
|
+
if (typeof serverMod.broadcastAgentLoopStart !== 'function') {
|
|
941
|
+
console.warn('[sdk] serverMod.broadcastAgentLoopStart is not a function (export missing?); loop-start signal dropped');
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
try { serverMod.broadcastAgentLoopStart(p); }
|
|
945
|
+
catch (err) { console.warn('[sdk] broadcastAgentLoopStart threw:', err?.message); }
|
|
946
|
+
},
|
|
947
|
+
onAgentLoopEnd: (p) => {
|
|
948
|
+
if (typeof serverMod.broadcastAgentLoopEnd !== 'function') {
|
|
949
|
+
console.warn('[sdk] serverMod.broadcastAgentLoopEnd is not a function (export missing?); loop-end signal dropped');
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
try { serverMod.broadcastAgentLoopEnd(p); }
|
|
953
|
+
catch (err) { console.warn('[sdk] broadcastAgentLoopEnd threw:', err?.message); }
|
|
954
|
+
},
|
|
921
955
|
broadcastWs: (msg) => serverMod.broadcastWsMessage(msg),
|
|
922
956
|
runWaterfallHook,
|
|
923
957
|
});
|