ai_co_discuss 0.2.93 → 0.2.95
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/room_import.py +1 -5
- package/package.json +1 -1
- package/runner/discussion_launch.mjs +2 -0
- package/web/app.js +3706 -3704
- package/web/modern.css +1 -1
- package/web/modern.js +1034 -944
package/backend/room_import.py
CHANGED
|
@@ -63,7 +63,7 @@ def remap_until(value, messages):
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
def room_statements(tables, room, maps, control_hash):
|
|
66
|
-
"""Room, directory
|
|
66
|
+
"""Room, directory and a temporary free mode so history needs no speaking floor; the room arrives unfiled."""
|
|
67
67
|
messages, room_id = maps["messages"], room["id"]
|
|
68
68
|
directory = (tables.get("room_directory") or [{}])[0]
|
|
69
69
|
statements = [("INSERT INTO rooms (id,title,goal,state_text,state_until,created_at) VALUES (?,?,?,?,?,?)",
|
|
@@ -71,10 +71,6 @@ def room_statements(tables, room, maps, control_hash):
|
|
|
71
71
|
remap_until(room.get("state_until"), messages), room["created_at"])),
|
|
72
72
|
("UPDATE room_directory SET archived=? WHERE room_id=?", (int(bool(directory.get("archived"))), room_id)),
|
|
73
73
|
("INSERT INTO room_modes (room_id,mode,control_hash) VALUES (?,'free',?)", (room_id, control_hash))]
|
|
74
|
-
for folder in tables.get("topic_folders", [])[:1]:
|
|
75
|
-
statements += [("""INSERT INTO topic_folders (id,name,position) SELECT ?,?,COALESCE(MAX(position),0)+1 FROM topic_folders
|
|
76
|
-
WHERE NOT EXISTS (SELECT 1 FROM topic_folders WHERE id=?)""", (folder["id"], folder["name"], folder["id"])),
|
|
77
|
-
("UPDATE room_folder_assignments SET folder_id=? WHERE room_id=?", (folder["id"], room_id))]
|
|
78
74
|
return statements
|
|
79
75
|
|
|
80
76
|
|
package/package.json
CHANGED
|
@@ -757,6 +757,8 @@ export async function restore_room(home, raw) {
|
|
|
757
757
|
for (const [name, exported] of Object.entries(local.participants)) {
|
|
758
758
|
try {
|
|
759
759
|
const profile = participant_profile(name, {}, { cwd: local.cwd, adopt: true, participants: { [name]: exported } }, false);
|
|
760
|
+
// An API member's binding lives in the old runtime directory, not in any software's session store, so it starts fresh.
|
|
761
|
+
if (profile.adapter === 'api') delete profile.session_id;
|
|
760
762
|
const resumed = profile.session_id ? borrowed_session(name, profile, local.cwd) : profile;
|
|
761
763
|
if (profile.adapter === 'claude') {
|
|
762
764
|
keep_manual.push(name);
|