ai_co_discuss 0.4.19 → 0.4.21
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/backend/server.py +6 -3
- package/package.json +1 -1
- package/runner/adapters/antigravity_cli.mjs +6 -1
- package/runner/adapters/index.mjs +209 -204
- package/runner/discussion_launch.mjs +2260 -2258
- package/web/app.js +15 -1
- package/web/modern.css +1 -1
- package/web/modern.js +35 -35
package/web/app.js
CHANGED
|
@@ -1685,6 +1685,20 @@ async function delete_queued(id) {
|
|
|
1685
1685
|
await queue_request({ action: "delete", id });
|
|
1686
1686
|
}
|
|
1687
1687
|
|
|
1688
|
+
/**
|
|
1689
|
+
* Send a queued message now. The row leaves the tray at once (QueuedMessages hides it) and the message shows as a
|
|
1690
|
+
* sending card until the refreshed transcript carries it; a refusal brings the row back with the reason.
|
|
1691
|
+
*/
|
|
1692
|
+
async function send_queued(id) {
|
|
1693
|
+
const item = state.room?.free?.queued_messages?.items?.find(entry => entry.id === id);
|
|
1694
|
+
// A send from the composer already owns the sending card; this one then just waits in its row.
|
|
1695
|
+
const preview = item && !state.sending_preview
|
|
1696
|
+
? { author: "用户", text: item.text, created_at: new Date().toISOString(), files: item.attachments.map(file => file.file_name) } : null;
|
|
1697
|
+
if (preview) { state.sending_preview = preview; publish_view(); }
|
|
1698
|
+
try { await queue_request({ action: "send", id }); }
|
|
1699
|
+
finally { if (preview && state.sending_preview === preview) { state.sending_preview = null; publish_view(); } }
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1688
1702
|
/**
|
|
1689
1703
|
* The message being edited left the queue (sent or deleted elsewhere): stop editing so sending works again,
|
|
1690
1704
|
* keeping the edited text in the composer as an ordinary draft.
|
|
@@ -5195,7 +5209,7 @@ async function execute_view_action(name, value) {
|
|
|
5195
5209
|
load_room_configuration, save_room_configuration, interrupt_member, retry_delivery, retract_message, retract_latest, stop_room, stop_host_checkin, rewind_and_send, fork_room, change_member, reorder_speakers, invite_member,
|
|
5196
5210
|
enable_room_workflow, move_workflow_members, sync_room_workflow, set_room_host_workflows,
|
|
5197
5211
|
adopt_recommendation, rate_decision,
|
|
5198
|
-
queue_send:
|
|
5212
|
+
queue_send: send_queued, queue_delete: delete_queued,
|
|
5199
5213
|
queue_reorder: ids => queue_request({ action: "reorder", ids }), queue_resume: () => queue_request({ action: "resume" }),
|
|
5200
5214
|
queue_toggle: enabled => queue_request({ action: "queueing", enabled }), queue_edit: edit_queued, queue_cancel_edit: cancel_queued_edit,
|
|
5201
5215
|
busy: () => { throw new Error("上一个操作仍在处理中,请稍候;长时间无响应请刷新页面"); },
|