ai_co_discuss 0.5.19 → 0.5.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.
Files changed (74) hide show
  1. package/.agents/skills/discuss-participant/SKILL.md +2 -1
  2. package/.agents/skills/share-card/SKILL.md +15 -0
  3. package/.agents/skills/share-card/references/share-card.md +43 -0
  4. package/.agents/skills/workflow-creator/SKILL.md +3 -0
  5. package/backend/execution_diagnostics.py +149 -0
  6. package/backend/free_room.py +133 -40
  7. package/backend/message_queue.py +6 -4
  8. package/backend/room_trace.py +219 -0
  9. package/backend/schema.sql +7 -1
  10. package/backend/server.py +113 -8
  11. package/docs/en/guide/cli.md +20 -0
  12. package/docs/en/guide/faq.md +1 -0
  13. package/docs/en/guide/members.md +3 -1
  14. package/docs/en/guide/rooms.md +7 -3
  15. package/docs/en/guide/workflows.md +2 -0
  16. package/docs/en/guide/working.md +9 -4
  17. package/docs/guide/cli.md +20 -0
  18. package/docs/guide/faq.md +1 -0
  19. package/docs/guide/members.md +3 -1
  20. package/docs/guide/rooms.md +7 -3
  21. package/docs/guide/workflows.md +2 -0
  22. package/docs/guide/working.md +9 -4
  23. package/frontend/locales/en/app.json +8 -0
  24. package/frontend/locales/en/backend.json +5 -0
  25. package/frontend/locales/en/discussion.json +10 -3
  26. package/frontend/locales/en/execution-diagnostics.json +32 -0
  27. package/frontend/locales/en/room.json +1 -0
  28. package/frontend/locales/en/settings.json +5 -0
  29. package/package.json +3 -2
  30. package/runner/adapters/antigravity_cli.mjs +15 -1
  31. package/runner/adapters/api.mjs +27 -3
  32. package/runner/adapters/api_images.mjs +1 -1
  33. package/runner/adapters/api_pi.mjs +30 -1
  34. package/runner/adapters/cli.mjs +15 -6
  35. package/runner/adapters/codex_bridge.mjs +20 -6
  36. package/runner/adapters/codex_cli.mjs +2 -1
  37. package/runner/codiscuss.mjs +7 -0
  38. package/runner/discuss.py +24 -2
  39. package/runner/discussion_launch.mjs +1 -1
  40. package/runner/discussion_setup.mjs +1 -1
  41. package/runner/discussion_skills.mjs +1 -1
  42. package/runner/expert_prompts.mjs +4 -3
  43. package/runner/free_runner.mjs +102 -24
  44. package/runner/i18n_en.mjs +45 -2
  45. package/runner/remote_launch.mjs +2 -2
  46. package/runner/share_card.mjs +1314 -0
  47. package/runner/share_service.mjs +25 -7
  48. package/runner/share_shared.mjs +28 -7
  49. package/runner/site_deploy.mjs +125 -4
  50. package/runner/timeline_metrics.mjs +185 -0
  51. package/runner/workflows.mjs +38 -9
  52. package/web/app.js +303 -81
  53. package/web/i18n.js +3 -3
  54. package/web/modern.css +1 -1
  55. package/web/modern.js +98 -67
  56. package/workflows/decision-council/SKILL.md +2 -1
  57. package/workflows/decision-council/flow.json +15 -15
  58. package/workflows/story-serial/agents/writer.md +1 -1
  59. package/workflows/story-serial/flow.json +456 -123
  60. package/workflows/story-serial/workflows/aigc-reduce/flow.json +134 -13
  61. package/workflows/story-serial/workflows/character-play/flow.json +212 -25
  62. package/workflows/story-serial/workflows/jack-sparrow/flow.json +67 -23
  63. package/workflows/story-serial/workflows/luke-nichols/flow.json +67 -23
  64. package/workflows/story-serial/workflows/revise-episodes/flow.json +184 -23
  65. package/workflows/story-serial/workflows/tidy-docs/flow.json +256 -19
  66. package/workflows/tri-model-dev/SKILL.md +72 -0
  67. package/workflows/tri-model-dev/agents/advisor.md +22 -0
  68. package/workflows/tri-model-dev/agents/backend.md +25 -0
  69. package/workflows/tri-model-dev/agents/reviewer.md +38 -0
  70. package/workflows/tri-model-dev/flow.json +397 -0
  71. package/workflows/tri-model-dev/workflows/browser-verify/SKILL.md +22 -0
  72. package/workflows/tri-model-dev/workflows/browser-verify/agents/browser_ops.md +18 -0
  73. package/workflows/tri-model-dev/workflows/browser-verify/flow.json +136 -0
  74. package/workflows/trpg-classic/flow.json +17 -17
@@ -0,0 +1,219 @@
1
+ """Trace a public message through room work, without exposing private conversations."""
2
+
3
+ import json
4
+ from collections import defaultdict
5
+
6
+ from .free_room import LAYOUT_AFTER_SQL, layout_at_sql, member_events, require_member, require_owner_or_host
7
+
8
+
9
+ TRACE_PAGE = 50
10
+ TRACE_FIELDS = {
11
+ "message.posted": ("message_id", "source"),
12
+ "message.withdrawn": ("message_id", "kind"),
13
+ "request.created": ("request_id", "message_id", "member_id", "purpose", "created_by", "batch_id", "status"),
14
+ "request.changed": ("request_id", "message_id", "member_id", "execution_id", "answer_id", "status", "from_status"),
15
+ "request.cancel_reason": ("request_id", "member_id", "reason"),
16
+ "execution.created": ("execution_id", "member_id", "status"),
17
+ "execution.changed": ("execution_id", "member_id", "status", "from_status", "result"),
18
+ "execution.retry": ("execution_id", "attempt", "retry_at", "stopped", "reason"),
19
+ "execution.late_answer": ("execution_id",),
20
+ "batch.opened": ("batch_id", "host_id"),
21
+ "batch.settled": ("batch_id", "settled"),
22
+ "batch.handoff": ("batch_id",),
23
+ "queue.added": ("queue_id", "message_id", "member_id"),
24
+ "queue.removed": ("queue_id", "message_id", "member_id"),
25
+ }
26
+ EXECUTION_ACTIONS = frozenset(("delivery", "fail", "release", "retry", "retry_wait", "retry_start", "retry_now",
27
+ "retry_stop", "interjection"))
28
+
29
+
30
+ def selected_fields(data, fields):
31
+ """Copy only the fields intended for the trace."""
32
+ return {key: data[key] for key in fields if key in data}
33
+
34
+
35
+ def trace_history(connection, room_id, token, reader, messages):
36
+ """Load structural events and apply the existing member event policy before following links."""
37
+ kinds = ",".join("?" for _ in TRACE_FIELDS)
38
+ actions = ",".join("?" for _ in EXECUTION_ACTIONS)
39
+ rows = connection.execute(f"""SELECT id,at,kind,data FROM room_events WHERE room_id=?
40
+ AND (kind IN ({kinds}) OR (kind='api.write' AND json_extract(data,'$.path') LIKE '/executions/%'
41
+ AND CASE WHEN json_valid(json_extract(data,'$.payload'))
42
+ THEN json_extract(json_extract(data,'$.payload'),'$.action') END IN ({actions})))
43
+ ORDER BY at,id""", (room_id, *TRACE_FIELDS, *EXECUTION_ACTIONS))
44
+ events = [{**dict(row), "data": json.loads(row["data"])} for row in rows]
45
+ if reader:
46
+ events = member_events(connection, room_id, token, reader, events)
47
+ for event in events:
48
+ kind, data = event["kind"], event["data"]
49
+ if kind == "api.write":
50
+ data = execution_action_event(data)
51
+ if data is None:
52
+ continue
53
+ else:
54
+ data = selected_fields(data, TRACE_FIELDS[kind])
55
+ if any(data.get(field) and data[field] not in messages for field in ("message_id", "answer_id", "batch_id")):
56
+ continue
57
+ result_id = data.get("result", "").removeprefix("message:")
58
+ if result_id != data.get("result", "") and result_id.isdigit() and int(result_id) not in messages:
59
+ data.pop("result")
60
+ yield {**selected_fields(event, ("id", "at", "kind")), "data": data, "source": "history"}
61
+
62
+
63
+ def execution_action_event(data):
64
+ """Project execution audit writes without their payload, paths or prose."""
65
+ parts = data.get("path", "").split("/")
66
+ if len(parts) != 3 or not parts[-1].isdigit():
67
+ return None
68
+ try:
69
+ payload = json.loads(data.get("payload", ""))
70
+ except (ValueError, TypeError):
71
+ return None
72
+ if not isinstance(payload, dict) or payload.get("action") not in EXECUTION_ACTIONS:
73
+ return None
74
+ return {"execution_id": int(parts[-1]), "actor": data.get("actor"),
75
+ **selected_fields(payload, ("action", "interjection_id", "status", "attempt", "retry_at"))}
76
+
77
+
78
+ def trace_requests(connection, room_id, reader, messages):
79
+ """Read current requests under the same scope as their history."""
80
+ rows = connection.execute(f"""SELECT r.id AS request_id,r.message_id,r.member_id,r.purpose,r.created_by,
81
+ r.status,r.execution_id,r.answer_id,r.batch_id,{LAYOUT_AFTER_SQL} AS layout_after,m.author
82
+ FROM member_requests r JOIN messages m ON m.id=r.message_id WHERE r.room_id=? ORDER BY r.id""", (room_id,))
83
+ for row in rows:
84
+ if row["message_id"] not in messages:
85
+ continue
86
+ data = dict(row)
87
+ author = data.pop("author")
88
+ if reader and row["member_id"] != reader["id"]:
89
+ if author != reader["name"]:
90
+ continue
91
+ data = selected_fields(data, ("request_id", "message_id", "purpose", "status", "created_by"))
92
+ if any(data.get(field) and data[field] not in messages for field in ("answer_id", "batch_id", "layout_after")):
93
+ data = {key: value for key, value in data.items()
94
+ if key not in ("answer_id", "batch_id", "layout_after") or value in messages}
95
+ yield current_record("request", data)
96
+
97
+
98
+ def current_record(kind, data):
99
+ """Mark a current persisted value, separate from an event."""
100
+ return {"source": "current", "kind": kind, "data": dict(data)}
101
+
102
+
103
+ def trace_related_rows(connection, room_id, reader, messages):
104
+ """Read retry, public insertion and host-wake links from their persisted records."""
105
+ member_id = reader["id"] if reader else None
106
+ rows = connection.execute("""SELECT rr.execution_id,rr.request_id,rr.retried_at,r.message_id
107
+ FROM retried_requests rr JOIN member_requests r ON r.id=rr.request_id
108
+ WHERE r.room_id=? AND (? IS NULL OR r.member_id=?) ORDER BY rr.execution_id,rr.request_id""",
109
+ (room_id, member_id, member_id))
110
+ for row in rows:
111
+ if row["message_id"] in messages:
112
+ yield current_record("retry.request", row)
113
+ rows = connection.execute("""SELECT i.id AS interjection_id,i.execution_id,r.message_id,i.status,i.updated_at
114
+ FROM member_requests r JOIN execution_interjections i
115
+ ON i.room_id=r.room_id AND i.submission_id='queue-'||r.message_id||'-'||r.member_id
116
+ AND (i.execution_id=r.execution_id OR EXISTS(SELECT 1 FROM retried_requests rr
117
+ WHERE rr.request_id=r.id AND rr.execution_id=i.execution_id))
118
+ WHERE r.room_id=? AND (? IS NULL OR r.member_id=?) ORDER BY i.id""", (room_id, member_id, member_id))
119
+ for row in rows:
120
+ if row["message_id"] in messages:
121
+ yield current_record("interjection", row)
122
+ rows = connection.execute("""SELECT w.message_id,e.id AS execution_id FROM free_host_wakes w
123
+ JOIN member_executions e ON e.room_id=w.room_id AND e.id=CAST(substr(w.key,instr(w.key,':')+1) AS INTEGER)
124
+ WHERE w.room_id=? AND w.key IN ('host_failed:'||e.id,'failed:'||e.id)
125
+ AND (? IS NULL OR e.member_id=? AND EXISTS(
126
+ SELECT 1 FROM member_requests r WHERE r.message_id=w.message_id AND r.member_id=e.member_id))
127
+ ORDER BY w.message_id""",
128
+ (room_id, member_id, member_id))
129
+ for row in rows:
130
+ if row["message_id"] in messages:
131
+ yield current_record("failure_wake", row)
132
+
133
+
134
+ def trace_executions(connection, room_id, reader, execution_ids, messages):
135
+ """Look up current execution status, retry and card position for the selected executions."""
136
+ member_id = reader["id"] if reader else None
137
+ for execution_id in sorted(execution_ids):
138
+ row = connection.execute(f"""SELECT e.id AS execution_id,e.member_id,e.status,e.created_at,
139
+ (SELECT MAX({LAYOUT_AFTER_SQL}) FROM member_requests r WHERE r.execution_id=e.id
140
+ OR r.id IN (SELECT request_id FROM retried_requests WHERE execution_id=e.id)) AS layout_after,
141
+ (SELECT MIN({layout_at_sql("e.id")}) FROM member_requests r WHERE r.execution_id=e.id
142
+ OR r.id IN (SELECT request_id FROM retried_requests WHERE execution_id=e.id)) AS layout_at,
143
+ t.attempt,t.retry_at,t.stopped,f.failure_class
144
+ FROM member_executions e LEFT JOIN execution_retries t ON t.execution_id=e.id
145
+ LEFT JOIN execution_failures f ON f.execution_id=e.id
146
+ WHERE e.room_id=? AND e.id=? AND (? IS NULL OR e.member_id=?)""",
147
+ (room_id, execution_id, member_id, member_id)).fetchone()
148
+ if row:
149
+ data = dict(row)
150
+ data["layout_at"] = row["layout_at"] or row["created_at"]
151
+ if row["layout_after"] not in messages:
152
+ data["layout_after"] = None
153
+ yield current_record("execution", data)
154
+
155
+
156
+ def trace_nodes(data):
157
+ """Use typed identifiers so a request ID cannot be mistaken for an execution ID."""
158
+ for field, node_type in (("message_id", "message"), ("answer_id", "message"), ("batch_id", "message"),
159
+ ("request_id", "request"), ("execution_id", "execution")):
160
+ if isinstance(data.get(field), int) and data[field] > 0:
161
+ yield node_type, data[field]
162
+
163
+
164
+ def connected_records(records, message_id):
165
+ """Follow shared message, request and execution links across all pages."""
166
+ lookup = defaultdict(list)
167
+ nodes_by_record = [set(trace_nodes(record["data"])) for record in records]
168
+ for index, nodes in enumerate(nodes_by_record):
169
+ for node in nodes:
170
+ lookup[node].append(index)
171
+ seen, pending, selected = set(), [("message", message_id)], set()
172
+ while pending:
173
+ node = pending.pop()
174
+ if node not in seen:
175
+ seen.add(node)
176
+ for index in lookup[node]:
177
+ if index not in selected:
178
+ selected.add(index)
179
+ pending.extend(nodes_by_record[index] - seen)
180
+ return [records[index] for index in sorted(selected)], {value for kind, value in seen if kind == "execution"}
181
+
182
+
183
+ def message_trace(connection, room_id, token, anchor, options):
184
+ """Return a page of visible historical events and current card state for one message."""
185
+ try:
186
+ require_owner_or_host(connection, room_id, token)
187
+ reader = None
188
+ except PermissionError:
189
+ reader = require_member(connection, room_id, token)
190
+ cutoff, page = options["read_until"], options["page"]
191
+ messages = {row[0] for row in connection.execute("""SELECT id FROM messages WHERE room_id=?
192
+ AND (? IS NULL OR id<=?) AND NOT EXISTS (SELECT 1 FROM internal_task_messages t WHERE t.message_id=messages.id)""",
193
+ (room_id, cutoff, cutoff))}
194
+ current = []
195
+ if cutoff is None:
196
+ current = [*trace_requests(connection, room_id, reader, messages),
197
+ *trace_related_rows(connection, room_id, reader, messages)]
198
+ history = list(trace_history(connection, room_id, token, reader, messages))
199
+ if cutoff is not None:
200
+ # A current execution can reveal work after the cutoff, even if its original message is visible.
201
+ boundary_time = connection.execute("SELECT strftime('%s',created_at) FROM messages WHERE room_id=? AND id=?",
202
+ (room_id, cutoff)).fetchone()
203
+ end = int(boundary_time[0]) * 1000 if boundary_time and boundary_time[0] else 0
204
+ history = [record for record in history if record["at"] < end]
205
+ public_insertions = {record["data"]["interjection_id"] for record in current if record["kind"] == "interjection"}
206
+ history = [record for record in history if record["data"].get("action") != "interjection"
207
+ or record["data"].get("interjection_id") in public_insertions]
208
+ records, execution_ids = connected_records([*history, *current], anchor["id"])
209
+ if cutoff is None:
210
+ records.extend(trace_executions(connection, room_id, reader, execution_ids, messages))
211
+ message = {"id": anchor["id"]}
212
+ if cutoff is None:
213
+ for field in ("layout_after", "interjection_parent_id"):
214
+ message[field] = anchor[field] if anchor[field] in messages else None
215
+ message["layout_at"] = anchor["layout_at"]
216
+ offset = (page - 1) * TRACE_PAGE
217
+ return {"message": message, "read_until": cutoff, "page": page,
218
+ "records": records[offset:offset + TRACE_PAGE],
219
+ "next_page": page + 1 if offset + TRACE_PAGE < len(records) else None}
@@ -24,7 +24,8 @@ CREATE TABLE IF NOT EXISTS topic_folders (
24
24
  -- device. Never part of a room backup.
25
25
  CREATE TABLE IF NOT EXISTS room_share_links (
26
26
  room_id TEXT PRIMARY KEY REFERENCES rooms(id) ON DELETE CASCADE,
27
- share_id TEXT NOT NULL, url TEXT NOT NULL, manage_token TEXT NOT NULL, expires_at TEXT NOT NULL, updated_at TEXT NOT NULL
27
+ share_id TEXT NOT NULL, url TEXT NOT NULL, manage_token TEXT NOT NULL, expires_at TEXT NOT NULL, updated_at TEXT NOT NULL,
28
+ card_json TEXT NOT NULL DEFAULT '{}', card_edits TEXT NOT NULL DEFAULT '{}'
28
29
  );
29
30
  -- Site-wide preferences of the person managing the site; `last_room` is the room they last opened on any device.
30
31
  CREATE TABLE IF NOT EXISTS site_preferences (
@@ -368,6 +369,10 @@ CREATE TABLE IF NOT EXISTS execution_denials (
368
369
  room_id TEXT NOT NULL REFERENCES rooms(id) ON DELETE CASCADE,
369
370
  denials TEXT NOT NULL
370
371
  );
372
+ CREATE TABLE IF NOT EXISTS execution_diagnostics (
373
+ execution_id INTEGER PRIMARY KEY REFERENCES member_executions(id) ON DELETE CASCADE,
374
+ details TEXT NOT NULL
375
+ );
371
376
  -- A manual member's session refused a delivery: the runner keeps the execution and delivers again at retry_at
372
377
  -- (0 while delivering). The owner may ask for it now or stop it, and the runner then fails it. Not part of backups.
373
378
  -- What the runner's adapter classified a failed execution as ('quota' a usage limit, 'auth' signed out,
@@ -387,6 +392,7 @@ CREATE TABLE IF NOT EXISTS execution_failures (
387
392
  CREATE TABLE IF NOT EXISTS retried_requests (
388
393
  execution_id INTEGER NOT NULL REFERENCES member_executions(id) ON DELETE CASCADE,
389
394
  request_id INTEGER NOT NULL REFERENCES member_requests(id) ON DELETE CASCADE,
395
+ retried_at INTEGER NOT NULL DEFAULT 0,
390
396
  PRIMARY KEY (execution_id, request_id)
391
397
  );
392
398
  CREATE TABLE IF NOT EXISTS execution_retries (
package/backend/server.py CHANGED
@@ -38,7 +38,7 @@ from .remote_launch import (COMMAND_WAIT_MAX, claim_machine_commands, finish_mac
38
38
  submit_remote_launch)
39
39
  from .free_room import (add_member, after_free_message, after_proactive, authorize_free_write, check_answer, execution_action, free_view,
40
40
  inbox, interrupt_for_message, interrupt_member, member_action, member_capability, member_values, migrate_free_tables, reserve_execution,
41
- save_room_access, view_execution, recent_executions, MAX_MESSAGE_ID)
41
+ room_failure_wakes, room_quiet_checkins, save_room_access, view_execution, recent_executions, MAX_MESSAGE_ID)
42
42
  from .free_room import convert_suggestion, message_suggestions, save_suggestions, sync_participants
43
43
  from .free_room import adopt_recommendation, recommend_member, register_member, require_member
44
44
  from .private_chat import chat_action, member_chat
@@ -46,6 +46,7 @@ from .external_members import external_api, guard_route as guard_external_route,
46
46
  from .free_room import describe_members, execution_notes, label_members, check_relay, record_room_link, save_message_relay, set_host_checkin, withdraw_dispatch, member_descriptions, member_display_names, member_handles, member_labels, reorder_speakers, resolve_member_fields, set_chain_rounds, speaking_order, stop_room, stop_room_work
47
47
  from .free_room import (ADAPTER_VALUE, LAYOUT_AFTER_SQL, LAYOUT_AT_SQL, continue_chain, execution_segments, execution_timeline, group_route_plan, retract_message, rewind_plan, rewind_room,
48
48
  host_event, host_hidden_event, room_event_log, withdrawals)
49
+ from .room_trace import message_trace
49
50
  from .free_room import review_capability, review_roster, checked_review_plan, save_review_plan, check_review_retry
50
51
  from .free_room import review_ready, advance_review, late_answer, execution_diffs
51
52
  from .free_room import checked_sequence, continue_sequence, sequence_view
@@ -89,7 +90,7 @@ DIRECTORY_OPERATIONS = ("move", "folder")
89
90
  INVITE_COMMANDS = ("room-invite", "room-invites", "room-invite-revoke")
90
91
  INVITED_COMMANDS = ("invited-list", "invited-join", "invited-trust", "invited-ai", "invited-pause", "invited-approve", "invited-refuse",
91
92
  "invited-lend", "invited-leave", "invited-remove", "invited-room")
92
- SITE_COMMANDS = ("site-stage", "site-publish", "site-list", "site-renew", "site-rollback", "site-revoke")
93
+ SITE_COMMANDS = ("site-stage", "site-publish", "site-list", "site-diagnose", "site-renew", "site-rollback", "site-revoke")
93
94
  ADMIN_OPERATIONS = ("rename", "archive", "restore", "delete", "auto-destroy")
94
95
  # A room may destroy itself after this many days without a message; 0 keeps it. How often the website checks.
95
96
  AUTO_DESTROY_DAYS = (0, 1, 7, 30)
@@ -223,6 +224,18 @@ COALESCE(details.submitted_by, CASE WHEN messages.source IN ('cli','api','url','
223
224
  THEN messages.author ELSE '用户' END) AS submitted_by,
224
225
  COALESCE(summaries.text,'') AS summary, COALESCE(summaries.author,'') AS summary_by, timing.elapsed_seconds,
225
226
  answered.execution_id, answered.request_message_id, answered.layout_after, answered.layout_at, COALESCE(withdrawn.kind,'') AS withdrawn,
227
+ CASE WHEN messages.author='用户' THEN (
228
+ SELECT CASE WHEN COUNT(parent_id)=COUNT(*) AND MIN(parent_id)=MAX(parent_id) THEN MIN(parent_id) END
229
+ FROM (SELECT (SELECT MIN(original.message_id) FROM member_requests original
230
+ JOIN messages parent ON parent.id=original.message_id AND parent.author='用户'
231
+ WHERE (original.execution_id=i.execution_id OR original.id IN
232
+ (SELECT request_id FROM retried_requests WHERE execution_id=i.execution_id))
233
+ AND original.message_id<messages.id AND c.steer=1 AND i.status!='failed') AS parent_id
234
+ FROM member_requests target LEFT JOIN execution_interjections i ON i.room_id=messages.room_id
235
+ AND i.submission_id='queue-' || messages.id || '-' || target.member_id
236
+ LEFT JOIN execution_capabilities c ON c.execution_id=i.execution_id
237
+ WHERE target.message_id=messages.id)
238
+ ) END AS interjection_parent_id,
226
239
  EXISTS(SELECT 1 FROM proactive_messages p WHERE p.message_id=messages.id) AS proactive,
227
240
  relay.source_room_id AS relay_room, relay.host AS relay_host,
228
241
  (SELECT l.other_room_id FROM room_links l WHERE l.message_id=messages.id) AS link_room,
@@ -507,6 +520,10 @@ def init_database(database, seed=True):
507
520
  if name not in columns:
508
521
  connection.execute(f"ALTER TABLE room_goals ADD COLUMN {name} {kind}")
509
522
  connection.executescript(SCHEMA)
523
+ share_columns = {row[1] for row in connection.execute("PRAGMA table_info(room_share_links)")}
524
+ for name in ("card_json", "card_edits"):
525
+ if name not in share_columns:
526
+ connection.execute(f"ALTER TABLE room_share_links ADD COLUMN {name} TEXT NOT NULL DEFAULT '{{}}'")
510
527
  directory_columns = {row[1] for row in connection.execute("PRAGMA table_info(room_directory)")}
511
528
  if "destroy_after_days" not in directory_columns:
512
529
  connection.execute("ALTER TABLE room_directory ADD COLUMN destroy_after_days INTEGER NOT NULL DEFAULT 0")
@@ -670,7 +687,9 @@ def history_cards(connection, room_id, span):
670
687
  decisions = scheduler_decisions(connection, room_id, span)
671
688
  return {"executions": recent_executions(connection, room_id, span), "scheduler_decisions": decisions,
672
689
  "host_arrangements": host_arrangements(connection, room_id, decisions, span),
673
- "cancelled_turns": cancelled_turns(connection, room_id, span)}
690
+ "cancelled_turns": cancelled_turns(connection, room_id, span),
691
+ "failure_wakes": room_failure_wakes(connection, room_id, span),
692
+ "quiet_checkins": room_quiet_checkins(connection, room_id, span)}
674
693
 
675
694
 
676
695
  def host_arrangements(connection, room_id, decisions, span=None):
@@ -987,12 +1006,72 @@ def save_share_link(connection, room_id, payload):
987
1006
  and isinstance(expires, str) and re.fullmatch(r"\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?Z", expires))
988
1007
  if not valid:
989
1008
  raise ValueError(Text('分享链接格式不正确'))
990
- connection.execute("""INSERT INTO room_share_links (room_id,share_id,url,manage_token,expires_at,updated_at) VALUES (?,?,?,?,?,?)
1009
+ card = link.get("card")
1010
+ if card is not None and not isinstance(card, dict):
1011
+ raise ValueError(Text('分享链接格式不正确'))
1012
+ connection.execute("""INSERT INTO room_share_links (room_id,share_id,url,manage_token,expires_at,updated_at,card_json) VALUES (?,?,?,?,?,?,?)
991
1013
  ON CONFLICT(room_id) DO UPDATE SET share_id=excluded.share_id,url=excluded.url,manage_token=excluded.manage_token,
992
- expires_at=excluded.expires_at,updated_at=excluded.updated_at""", (room_id, share_id, url, token, expires, utc_iso_now()))
1014
+ expires_at=excluded.expires_at,updated_at=excluded.updated_at,
1015
+ card_edits=CASE WHEN share_id=excluded.share_id THEN card_edits ELSE '{}' END,
1016
+ card_json=CASE WHEN share_id=excluded.share_id AND excluded.card_json='{}' THEN card_json ELSE excluded.card_json END""",
1017
+ (room_id, share_id, url, token, expires, utc_iso_now(), json.dumps(card or {})))
993
1018
  return share_link_record(connection, room_id)
994
1019
 
995
1020
 
1021
+ def read_share_card(connection, room_id):
1022
+ """Read the live link's cover and the room images the owner can choose."""
1023
+ row = connection.execute("""SELECT share_id,url,expires_at,card_json,card_edits FROM room_share_links
1024
+ WHERE room_id=? AND expires_at>?""", (room_id, utc_iso_now())).fetchone()
1025
+ if not row:
1026
+ raise LookupError(Text("分享链接已失效"))
1027
+ images = connection.execute("""SELECT a.id,a.file_name,a.message_id,a.room_id FROM attachments a
1028
+ WHERE a.room_id=? AND a.message_id IS NOT NULL AND a.content_type IN ('image/png','image/jpeg','image/webp')
1029
+ AND NOT EXISTS (SELECT 1 FROM message_withdrawals w WHERE w.message_id=a.message_id)
1030
+ ORDER BY a.message_id DESC,a.position""", (room_id,))
1031
+ return {"share_id": row["share_id"], "url": row["url"], "expires_at": row["expires_at"],
1032
+ "card": {**json.loads(row["card_json"]), **json.loads(row["card_edits"])},
1033
+ "images": [dict(image) for image in images]}
1034
+
1035
+
1036
+ def edit_share_card(connection, room_id, payload):
1037
+ """Patch only the edited fields of this share, including across concurrent owner devices."""
1038
+ if "publication" in payload:
1039
+ return finish_share_card_upload(connection, room_id, payload)
1040
+ edits = payload.get("edits")
1041
+ if not isinstance(edits, dict) or not edits or edits.keys() - {"question", "outcome", "cover"}:
1042
+ raise ValueError(Text("分享卡格式不正确"))
1043
+ for key, value in edits.items():
1044
+ if not isinstance(value, str) or (key != "cover" and len(value) > 2000):
1045
+ raise ValueError(Text("分享卡格式不正确"))
1046
+ if key == "cover" and value and not re.fullmatch(r"data:image/(?:png|jpeg|webp);base64,[A-Za-z0-9+/]+=*",
1047
+ value):
1048
+ raise ValueError(Text("分享卡格式不正确"))
1049
+ updated = connection.execute("""UPDATE room_share_links SET card_edits=json_patch(card_edits,?)
1050
+ WHERE room_id=? AND share_id=? AND expires_at>?""",
1051
+ (json.dumps(edits, ensure_ascii=False), room_id, payload.get("share_id"), utc_iso_now()))
1052
+ if not updated.rowcount:
1053
+ raise FileExistsError(Text("分享链接已失效"))
1054
+ return {"ok": True}
1055
+
1056
+
1057
+ def finish_share_card_upload(connection, room_id, payload):
1058
+ """Attach confirmed upload counts to the exact publication that started the work."""
1059
+ progress = payload["publication"]
1060
+ if not isinstance(progress, dict):
1061
+ raise ValueError(Text("分享卡格式不正确"))
1062
+ revision, done = progress.get("revision"), progress.get("done")
1063
+ if not isinstance(revision, str) or not SHARE_ID.fullmatch(revision) or type(done) is not int or done < 0:
1064
+ raise ValueError(Text("分享卡格式不正确"))
1065
+ updated = connection.execute("""UPDATE room_share_links
1066
+ SET card_json=json_set(card_json,'$.publication.done', ?)
1067
+ WHERE room_id=? AND share_id=? AND expires_at>?
1068
+ AND json_extract(card_json,'$.publication.revision')=?
1069
+ AND json_extract(card_json,'$.publication.total')>=?
1070
+ AND COALESCE(json_extract(card_json,'$.publication.done'), -1)<=?""",
1071
+ (done, room_id, payload.get("share_id"), utc_iso_now(), revision, done, done))
1072
+ return {"ok": True, "recorded": bool(updated.rowcount)}
1073
+
1074
+
996
1075
  SITE_ID_PATTERN = re.compile(r"[a-z2-7]{10}")
997
1076
  STAGE_ID_PATTERN = re.compile(r"[a-zA-Z0-9_-]{8,64}")
998
1077
  SITE_STATUSES = ("active", "expired", "taken_down", "revoked")
@@ -1615,7 +1694,7 @@ def redact_payload(value, texts=None, path="payload"):
1615
1694
  result = {}
1616
1695
  for key, item in value.items():
1617
1696
  field = f"{path}.{key}"
1618
- if API_LOG_SECRET.search(str(key)):
1697
+ if API_LOG_SECRET.search(str(key)) or field in ("payload.edits.cover", "payload.link.card"):
1619
1698
  hidden = Text("[已隐去]")
1620
1699
  result[key] = str(hidden)
1621
1700
  texts[field] = hidden
@@ -1662,7 +1741,10 @@ def record_api_event(database, record):
1662
1741
  if type(execution_id) is int:
1663
1742
  data["execution_id"] = execution_id
1664
1743
  redacted_texts = {}
1665
- redacted_payload = redact_payload(record["payload"], redacted_texts)
1744
+ payload_to_log = record["payload"]
1745
+ if record["path"].startswith("/executions/") and isinstance(payload_to_log, dict):
1746
+ payload_to_log = {key: value for key, value in payload_to_log.items() if key != "diagnostics"}
1747
+ redacted_payload = redact_payload(payload_to_log, redacted_texts)
1666
1748
  data.setdefault("texts", {}).update({field: text_payload(value) for field, value in redacted_texts.items()})
1667
1749
  payload = json.dumps(redacted_payload, ensure_ascii=False)
1668
1750
  if len(payload) <= API_LOG_PAYLOAD:
@@ -2759,6 +2841,21 @@ def get_message(connection, room_id, message_id, params=None, token=""):
2759
2841
  return message_with_attachments(connection, row)
2760
2842
 
2761
2843
 
2844
+ def trace_message(connection, room_id, params, token):
2845
+ """Resolve a trace anchor under ordinary message permissions before reading its diagnostic history."""
2846
+ message_id, page = int(params.get("message_id", 0)), int(params.get("page", 1))
2847
+ if not 1 <= message_id <= MAX_MESSAGE_ID:
2848
+ raise ValueError(Text("{field} 须为正整数", field="message_id"))
2849
+ if page < 1:
2850
+ raise ValueError(Text("{field} 须为正整数", field="page"))
2851
+ if not connection.in_transaction:
2852
+ connection.execute("BEGIN")
2853
+ context = {field: params[field] for field in ("execution_id", "request_id") if field in params}
2854
+ read_until = session_message_access(connection, room_id, context, token)
2855
+ anchor = get_message(connection, room_id, message_id, context, token)
2856
+ return message_trace(connection, room_id, token, anchor, {"read_until": read_until, "page": page})
2857
+
2858
+
2762
2859
  def own_task_anchor(connection, room_id, message_id, params):
2763
2860
  """The request of the caller's own execution that an internal task message anchors, if it is one."""
2764
2861
  execution_id = params.get("execution_id")
@@ -3912,6 +4009,8 @@ class DiscussionHandler(BaseHTTPRequestHandler):
3912
4009
  if self.read_only_request():
3913
4010
  log["events"] = [host_event(event) for event in log["events"] if not host_hidden_event(event)]
3914
4011
  return self.respond(log)
4012
+ if parts[3:] == ["trace"] and method == "GET":
4013
+ return self.respond(trace_message(connection, room_id, params, token))
3915
4014
  if parts[3:] == ["register"] and method == "POST":
3916
4015
  result = register_member(connection, room_id, token, utc_now())
3917
4016
  connection.commit()
@@ -3972,13 +4071,19 @@ class DiscussionHandler(BaseHTTPRequestHandler):
3972
4071
  return self.handle_attachments(connection, parts, params, method)
3973
4072
  if parts[3:4] in (["scheduler-decisions"], ["scheduler-routing"]):
3974
4073
  return self.handle_scheduler_api(connection, parts, method)
3975
- if parts[3:] == ["share-link"] and method in ("GET", "POST"):
4074
+ if parts[3:] in (["share-link"], ["share-card"]) and method in ("GET", "POST"):
3976
4075
  # The manage token can renew, revoke or replace a public page: owner only. A request carrying a credential must
3977
4076
  # carry the owner's, so a member AI using its own command line cannot read or rewrite it even on a local site.
3978
4077
  if token:
3979
4078
  require_owner(connection, room_id, token)
3980
4079
  else:
3981
4080
  self.require_entry_owner(connection, room_id, token)
4081
+ if parts[3] == "share-card":
4082
+ if method == "GET":
4083
+ return self.respond(read_share_card(connection, room_id))
4084
+ result = edit_share_card(connection, room_id, self.read_payload())
4085
+ connection.commit()
4086
+ return self.respond(result)
3982
4087
  if method == "GET":
3983
4088
  return self.respond(share_link_record(connection, room_id))
3984
4089
  result = save_share_link(connection, room_id, self.read_payload())
@@ -4,6 +4,8 @@ This page lists the codiscuss commands people use for everyday tasks. Commands f
4
4
 
5
5
  ## Commands by task
6
6
 
7
+ Use `codiscuss room list --query "story"` to find rooms by part of their title. Each match includes the room ID, full title, and folder name. Rooms outside a folder have a `null` folder.
8
+
7
9
  ### Install, configure, and update
8
10
 
9
11
  | Task | Command |
@@ -49,8 +51,26 @@ The local site stores rooms and serves the web interface. The discussion service
49
51
  | --- | --- |
50
52
  | Check whether a local or online site responds | `codiscuss health --site http://127.0.0.1:8765` |
51
53
  | Review room events when a card is stuck or an AI was not woken | `codiscuss room events <room-ID>` |
54
+ | Inspect a run’s heartbeat, activity, retries, interjection receipts, workflow history, and file attribution | `codiscuss execution view <room-ID> <run-ID>`, under `diagnostics` |
55
+ | Trace requests, executions, failure follow-ups, and card placement for a message | `codiscuss room trace <room-ID> --message <message-ID>` |
56
+ | Check a hosted site's manifest, active version, and public responses | `codiscuss site diagnose <site-ID> [--room <room-ID>]` |
52
57
  | Check the management panel and all services | `codiscuss admin status --full` |
53
58
 
59
+ In `room trace`, `history` records come from the event log. `current` records show the current requests, executions, retry links, interjections, and card placement. If the response includes `next_page`, repeat the same command with `--page <number>`. When the room is active, later pages may reflect newer state. The command follows existing message and event visibility rules and excludes private chats.
60
+
61
+ `site diagnose` uses this computer's existing publishing identity. It reads the room registration, the linked staging record, the hosting service's latest manifest, and the active version. It fetches the entry page and one static asset anonymously, compares the SHA-256 digests of the response bytes with the active manifest, and reports the last confirmed step. A pending upload and the version still being served appear separately. Older hosting services report the active version and leave responses unverified when the expected digest is unavailable. If the room address cannot be resolved automatically, supply it with `--url <room-site-URL>`.
62
+
63
+ ### Share-card cover tools
64
+
65
+ In a room, ask `$share-card Make a share card for <room link> highlighting the finished product`. Omit the link for the current room. The agent collects the materials, makes the cover and attaches the PNG to its reply.
66
+
67
+ Used by room AI members or locally from the terminal to build custom share-card covers. The share panel accepts rendered images (PNG / JPG / WebP) and appends a unified QR code, domain, and expiry footer automatically. When invoked with a room task credential, `materials` is restricted to the credential's bound site and `render` enforces the member's directory permissions; manual terminal runs without a task credential use the local OS user's own file permissions.
68
+
69
+ | Task | Command |
70
+ | --- | --- |
71
+ | Read shareable-scope room collaboration metrics, concurrency curve, and material index (with truncation flags) | `codiscuss share-card materials [room-ID]` |
72
+ | Render a local static HTML cover to high-DPI PNG (default 750 CSS px @2× via a sandboxed browser from trusted system install locations over a private process pipe) | `codiscuss share-card render cover.html --out cover.png` |
73
+
54
74
  ### Backups, export, and import
55
75
 
56
76
  Export or import room ZIP files in the web app. Use the room menu’s **Export conversation**, the directory menu’s **Export all rooms** and **Import rooms**. See [Room directory and setup](rooms.md#5-export-import-and-branch-rooms). For a separately deployed Python service, stop writes, then back up the SQLite database and its sibling `<database-name>.attachments/` directory. See [the deployment guide](../deployment.md#python).
@@ -53,6 +53,7 @@ Shutdown and sleep interrupt local execution. During an internet outage, the loc
53
53
 
54
54
  - **A member does not respond or keeps waiting.** Run `codiscuss local status`. If other work is in progress, look for the new message in the queue above the composer. For a stuck room, run `codiscuss room events <ROOM_ID>` to see what happened.
55
55
  - **Delivery failed.** Read the original cause on the failure card. If sign-in has expired, sign in again in the AI tool or under **Account → CLI sign-ins** in the admin panel, then choose **Retry now**. Delivery can retry automatically up to three times.
56
+ - **Gemini loses its connection mid-task.** When Antigravity CLI marks the network error as retryable, the execution card counts down for 10, 30, then 60 seconds before successive attempts to resume the same conversation. Each execution allows up to three automatic retries. Choose **Retry now** to skip the wait or **Stop** to cancel. If retries run out, the card shows the last error.
56
57
  - **Quota exhausted.** Wait for the quota to reset, switch the member's model under **Room → Members and settings** in the tabs at the top of the room, or reassign the work.
57
58
  - **Output limit or context compression failure.** For an output limit, ask for a shorter answer or split the task. For a compression failure, shorten the input. The next run starts a fresh session.
58
59
  - **Provider policy refusal.** Review the content and the provider's requirements before trying again. Policy refusals and compression failures do not trigger automatic retries.
@@ -10,7 +10,9 @@ On the Room tab you can update several members in succession. Access, model and
10
10
 
11
11
  1. **Add a local app.** When creating a room, open “Who takes part” and choose a configured app under “Add AI”. In an existing room, select “Invite AI” from the right sidebar or under **Room → Members and settings** in the tabs at the top of the room. Choose one or more members and select “Invite”. You can add several members from the same app. Each has its own session.
12
12
  2. **Add a role preset.** Choose a preset in the “Presets” row below “Add AI”. It adds a member with a preset description, private prompt, project access, and model. Built-in presets include `Codex-review`, `Gemini-docs`, and `OpenAI-image`. On the back of a member card, select the bookmark to “Save as preset”. Select “Manage” at the end of the presets row to delete presets.
13
- 3. **Add a model API.** Under “Add AI”, choose Claude, Gemini, DeepSeek, Qwen, Grok, OpenAI, or “Custom”. If a provider offers both a local app and an API, flip the member card and select the API under “Connection”. Official presets fill in the service address.
13
+ 3. **Add a model API.** Under “Add AI”, choose Claude, Gemini, DeepSeek, Qwen, Grok, OpenAI, or “Custom”. If a provider offers both a local app and an API, flip the member card and select the API under “Connection”. Official presets fill in the service address. Local API members on unrestricted tasks can read an overview, messages, events and attachments from another room on the same site by room ID.
14
+ An API member can spend up to 45 minutes on a room task. It also stops after 15 minutes without model or tool progress. The execution card shows the reason.
15
+ To troubleshoot, open “Runs” in the room sidebar, choose “Waterfall”, and open “Run diagnostics” for the run. The room service records the last heartbeat, while the member’s software reports the last model or tool activity. Model request retries, adapter restarts, and runner redelivery have separate records. An interjection confirmation time requires a matching receipt from the software. Older runs and software without the relevant data show “Unknown”.
14
16
  4. **Configure and check the API.** Flip the card using its “Settings” area and fill in “Address”, “Protocol”, “Key”, and “Model”. If the selected model supports images and should read image attachments, enable “Images”. Select the lightning button to check the configuration. “Check passed: the model responded” means it is ready. Select “Done” to return to the front of the card.
15
17
 
16
18
  ## Resume an existing session
@@ -40,7 +40,7 @@ You can also send a message from the blank home page to create a room and send i
40
40
  - **Open Files.** In the tabs at the top of the room, select “Files” to browse directories, file sizes, and modification times. Switch between the primary and additional directories at the top. A project directory is required.
41
41
  - **Preview files.** Select a file to open its floating preview. Supported previews include plain text, code, rendered Markdown, static HTML with a source view, zoomable and rotatable images, audio and video with speed and full-screen controls, CSV tables, subtitle timelines (SRT, VTT, ASS, LRC), read-only Word, Excel, PowerPoint and PDF, Premiere project XML, and zip archives listed like a folder, where selecting a file inside opens it in a new tab. Relative project images in Markdown display inline. Opening a ZIP attachment or project file loads the directory first. Select an entry to read it (up to 64 MiB), or choose “Download” to save the archive.
42
42
  - **Tabs, split view, and collapse.** Open multiple files and switch between tabs. Use the preview controls to split the view on the right or use “File location” to return to the containing folder. HTML previews also offer “Open in new tab”. Select “Collapse” in the title bar to keep the preview as a floating button in the corner. It restores the same file and scroll position when you return to the room. Close it to clear the preview.
43
- - **Quote and annotate.** Select text in a Markdown preview or a member’s answer and choose “Add to conversation”. Enter a note and press Enter. The source is marked with a number and the composer shows the number of notes. Sending the message adds a file path and line number, the member and message ID, or for a message attachment its message ID and attachment ID. An `@` inside a quote does not wake a member.
43
+ - **Quote and annotate.** Select text in a Markdown preview or a member’s answer and choose “Add to conversation”. Enter a note and press Enter. The source is marked with a number and the composer shows the number of notes. On a computer, open the notes list, choose “Edit annotation”, and drag the bottom-right corner of the editor to resize it. Sending the message adds a file path and line number, the member and message ID, or for a message attachment its message ID and attachment ID. An `@` inside a quote does not wake a member.
44
44
  - **Manage project files.** Select “Project” at the start of the path bar to open your projects and drafts. Use the top controls to create folders and upload files (up to 20 MB each). File menus offer “Download” (“Download folder” for a folder, packed as a ZIP), “Rename”, “Copy”, “Cut”, and “Delete”. Paste into the destination folder. Deleted files and replaced versions go to “Recycle bin” for 30 days, where they can be restored. In source view, the pencil button edits text files up to 1 MB. Project and draft roots, and folders currently used as room project directories, cannot be renamed, moved, or deleted.
45
45
 
46
46
  ### 4. Send and view attachments
@@ -55,11 +55,15 @@ You can also send a message from the blank home page to create a room and send i
55
55
  - **Export a backup.** A room’s “Export conversation” menu item creates a ZIP containing the room’s messages, discussion history, and attachments. Use a folder menu to “Export folder”, or directory options to “Export all rooms”. Export on the computer running the local service. The archive includes member software settings and session identifiers. The original software’s session history must still be present on that computer to resume a session.
56
56
  - **Share as a web page.** In a room’s menu, select “Share”. Preparation runs in the background while you chat or switch rooms. Select “Share” again to see progress, or use “Open share” in the completion notice. The confirmation lists what is included and left out, and anything that looks like a key, a folder on this computer or contact details, with its message number and nearby text. After checking, choose one:
57
57
  - “Download web page” builds and downloads a single `.html` file in the background that opens in any browser. Once sent, it cannot expire or be taken back.
58
- - “Publish link” closes the dialog after the size checks and publishes in the background. Use “View share card” or “Copy link” in the completion notice, including after returning to the page on a phone. Choose whether it expires in 1, 3 or 7 days; it is deleted when it expires. “Shared” below the room list shows every live share link with its time left, to copy, open, renew (same content, a new lifetime from now) or revoke. The room’s menu also offers “Copy share link” and “Revoke share link”, and “Share” again offers “Update link” to show the latest content. Links are kept with the room on the computer, so paired phones and tablets can manage them too. Rooms whose text comes to over 5 MB after cleaning need the web page file instead.
58
+ - “Publish link” closes the dialog after the size checks and publishes in the background. Use “View share card” or “Copy link” in the completion notice, including after returning to the page on a phone. Choose whether it expires in 1, 3 or 7 days; it is deleted when it expires. “Shared” below the room list shows every live share link with its time left, to copy, open, renew (same content, a new lifetime from now) or revoke. The room’s menu also offers “Copy share link” and “Revoke share link”, and “Share” again offers “Update link” to show the latest content. Confirming revocation immediately removes the link from the list and room menu. Renewing updates the displayed expiry immediately. You can continue with other rooms while the change is saved. If it fails, the affected link is restored and an error is shown. Links are kept with the room on the computer, so paired phones and tablets can manage them too. Rooms whose text comes to over 5 MB after cleaning need the web page file instead.
59
+
60
+ **Share card.** Choose “View share card” from the completion notice or the “Shared” list. Edit the automatic cover, choose a room image, or upload a PNG, JPG or WebP made elsewhere. For tall images, choose the area to keep. “Update link” keeps your chosen cover and edited text and refreshes the other content. Revoking and publishing again creates a new card. Reopen the card after renewal to see the new expiry next to its QR code. Choose “Save image” to export a PNG. Older links without saved card content show a basic card with the room title. Select “Copy share card diagnostics” in the share dialog to copy the material cutoff message and count, cover source, rendering stage, and confirmed publication and attachment status. PNG dimensions appear after rendering. Fields missing from older records are omitted. The summary omits text, images, and access credentials.
61
+
62
+ To have an agent design the cover, ask `$share-card Make a share card highlighting the finished product`. Include the target room link if you ask in a different room. Use the returned PNG as the cover.
59
63
 
60
64
  Either way, readers see the room’s **Messages** and **Runs** views from the beginning, as they look here: cards and run details open; each time **Runs** is opened it replays the session from the start, and “End replay” returns to the final state. The other tabs, such as **Private**, **Room** and **Files**, are dimmed and show only a sample; but nothing can be sent or changed, and the page shows the room as it was when it was made. Private chats, the event log, scheduling decisions, refused actions, queued messages, paths on this computer, session IDs and credentials are left out, as are retracted or rewound messages; failure reasons read only “Run failed”, and the room’s project folders are rewritten in message text as paths inside the project. The rest of the message text is shared as written, so check it before sending.
61
65
 
62
- Attachments are left out by default, and attachment tags in messages read “not included in the share”. When the room has attachments, the confirmation offers “Include attachments”: ticked, every attachment (images, videos, web pages, documents and so on) goes into the page as it is, for readers to view and download; project files a member’s answer delivered (the file cards under the answer) come along too, as attachments of that answer. Text attachments are checked for keys and local folders too; the contents of images, videos and other files cannot be checked, so look through them yourself. A share link carries the attachments the page can preview — images, audio, video, PDF, Word/Excel/PowerPoint (docx, xlsx, pptx), text and code, zip archives, and web pages — for readers to open right in the page; scripts that run on a double click, such as js, bat and ps1, go with .txt added to their names. Programs and old doc/xls/ppt files stay off the share site and their messages read “not included in the share”, while a downloaded web page file still carries them. Web page attachments run on the share page as they do in the room, and demos a member’s answer refers to show inside the message; they run in an isolated frame that cannot read the share page, send requests or submit forms. Select “Filter files” to choose attachments by type or individually. The filters expand automatically above 300 MB. Files appear newest message first. Each file shows the message number, sender, time and size. Click its name or “Preview” and close the preview to continue selecting. Published links allow 5 MB of text plus up to 300 MB of attachments, with a 100 MB limit per file. The computer’s background service prepares and uploads the share even if you lock your phone, close the page or switch to another paired device. Under “Shared”, open “Share jobs” to review a draft, check uploaded files and bytes, cancel, retry or adjust attachments. Completed jobs offer the share card, a copy-link button and dismissal. When the service is offline, keep the browser page open until the transfer finishes. A downloaded web page file carries at most 100 MB of attachments. If the room changes before download, review the updated contents in the confirmation dialog.
66
+ Attachments are left out by default, and attachment tags in messages read “not included in the share”. When the room has attachments, the confirmation offers “Include attachments”: ticked, every attachment (images, videos, web pages, documents and so on) goes into the page as it is, for readers to view and download; project files a member’s answer delivered (the file cards under the answer) come along too, as attachments of that answer. Text attachments are checked for keys and local folders too; the contents of images, videos and other files cannot be checked, so look through them yourself. A share link carries the attachments the page can preview — images, audio, video, PDF, Word/Excel/PowerPoint (docx, xlsx, pptx), text and code, zip archives, and web pages — for readers to open right in the page; scripts that run on a double click, such as js, bat and ps1, go with .txt added to their names. Programs and old doc/xls/ppt files stay off the share site and their messages read “not included in the share”, while a downloaded web page file still carries them. Web page attachments run on the share page as they do in the room, and demos a member’s answer refers to show inside the message; they run in an isolated frame that cannot read the share page, send requests or submit forms. Select “Filter files” to choose attachments by type or individually. The filters expand automatically above 300 MB. Files appear newest message first. Each file shows the message number, sender, time and size. Click its name or “Preview” and close the preview to continue selecting. Published links allow 5 MB of text plus up to 300 MB of attachments, with a 100 MB limit per file. The computer’s background service prepares and uploads the share even if you lock your phone, close the page or switch to another paired device. Under “Shared”, open “Share jobs” to review a draft, check uploaded files and bytes, cancel, retry or adjust attachments. After publication, use the live link below the jobs to open its card or copy the link. Cancel, retry and dismiss update the job immediately. If the operation fails, the job is restored and an error is shown. Opening a draft or share card shows the room title while its contents load. When the service is offline, keep the browser page open until the transfer finishes. A downloaded web page file carries at most 100 MB of attachments. If the room changes before download, review the updated contents in the confirmation dialog.
63
67
  - **Import rooms.** In directory options or a folder menu, select “Import rooms” and choose a ZIP. Review the preview and confirm the rooms to import. A room marked “Already exists; skipped” is left as is. On the same computer, invite members back to resume their sessions. Claude Code members switch to manual connection on import. Re-register them from their original window to avoid splitting the session. Imported discussion history is kept, but discussions are not restarted and members are not woken automatically.
64
68
  - **Branch from a message.** In an AI message menu, select “Branch from here” to create a room containing the history through that message. Connections that support session branching resume from the branched session in the new room. The original room is kept.
65
69
  - **Let the host create rooms.** With “Create rooms” ticked in “Host permissions”, the host can move part of the work into a new room. Members use only software configured on this computer, with read-only project access by default and at most write. The project folder must be the original room’s folder or a folder inside it. Unless you name another host, the new room is hosted by the same expert as the original host. Each room gets a “Linked room” card; select “Open room” to go to the other one. The new room takes your default host permissions, except that it cannot create rooms. A room can create a limited number of rooms (3 by default, adjustable in “Host permissions”). The hosts of two linked rooms can speak in each other’s room; those messages are labelled “From host … of room "…"” and wake the other room like your own messages. There is no limit by default. To cap it, set “Linked-room message limit” under “Advanced settings” in the new-room form (it applies to every linked room on this computer); counting from your last message in either room, messages beyond it are refused until you send a message.
@@ -38,6 +38,8 @@ You can create or import a ZIP file or folder with the “+” on the Workflows
38
38
 
39
39
  ### 4. The canvas and SKILL.md
40
40
 
41
+ Edit the “Short description” directly above the workflow text. It wraps to the panel width so you can read the full description.
42
+
41
43
  Select a workflow on the Workflows page. The canvas opens in the center, and its SKILL.md appears on the right. Click “Edit,” then “Save” or press Ctrl+S to save changes. If the workflow was changed elsewhere after you opened it, saving is refused and the page says “The workflow was changed elsewhere; reload it”; “Reload” reads the new version and first asks before discarding unsaved edits. An imported workflow whose ID is already in the library is saved only after you choose “Save and replace.”
42
44
 
43
45
  - **The canvas is a diagram:** You can move cards, add host nodes, user nodes (to show where you step in, confirm, or speak), and conditional branch nodes (splitting into multiple named branches, each with its own output dot on the right; select to add, rename, or remove branches), connect nodes to show order, parallel branches, or loops, add notes to connections, or choose “Auto arrange.” Click a connection or its note to select it before editing; once a gold loop is selected, drag it up or down to change its height. Dragging an unselected connection or note just pans the canvas. The program does not execute canvas connections, and the host cannot see the canvas.