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
@@ -4,59 +4,103 @@
4
4
  "id": "start",
5
5
  "type": "start",
6
6
  "x": 0,
7
- "y": -30
7
+ "y": 0
8
+ },
9
+ {
10
+ "id": "scene",
11
+ "type": "branch",
12
+ "label": "触发场景(README已声明)",
13
+ "branches": [
14
+ {
15
+ "id": "plan",
16
+ "label": "阶段构思"
17
+ },
18
+ {
19
+ "id": "review",
20
+ "label": "验收前·点名核实"
21
+ }
22
+ ],
23
+ "x": 0,
24
+ "y": 0
8
25
  },
9
26
  {
10
27
  "id": "plan_dispatch",
11
28
  "type": "host",
12
- "label": "阶段构思·派活",
13
- "x": 216,
14
- "y": -140
29
+ "label": "给阶段处境",
30
+ "x": 0,
31
+ "y": 0
32
+ },
33
+ {
34
+ "id": "luke_nichols_plan",
35
+ "type": "card",
36
+ "card": "luke_nichols",
37
+ "x": 0,
38
+ "y": 0
39
+ },
40
+ {
41
+ "id": "ruling_plan",
42
+ "type": "host",
43
+ "label": "裁定·写入处境",
44
+ "x": 0,
45
+ "y": 0
15
46
  },
16
47
  {
17
48
  "id": "review_dispatch",
18
49
  "type": "host",
19
- "label": "加审·点名派活",
20
- "x": 216,
21
- "y": 60
50
+ "label": "指定核实段落",
51
+ "x": 0,
52
+ "y": 0
22
53
  },
23
54
  {
24
- "id": "luke_nichols",
55
+ "id": "luke_nichols_review",
25
56
  "type": "card",
26
57
  "card": "luke_nichols",
27
- "x": 576,
28
- "y": -48
58
+ "x": 0,
59
+ "y": 0
29
60
  },
30
61
  {
31
- "id": "ruling",
62
+ "id": "ruling_review",
32
63
  "type": "host",
33
- "label": "逐条裁定",
34
- "x": 936,
35
- "y": -68
64
+ "label": "裁定·不进循环",
65
+ "x": 0,
66
+ "y": 0
36
67
  }
37
68
  ],
38
69
  "edges": [
39
70
  {
40
71
  "source": "start",
41
- "target": "plan_dispatch"
72
+ "target": "scene"
42
73
  },
43
74
  {
44
- "source": "start",
45
- "target": "review_dispatch"
75
+ "source": "scene",
76
+ "branch": "plan",
77
+ "target": "plan_dispatch",
78
+ "label": "与编剧设定同派"
79
+ },
80
+ {
81
+ "source": "scene",
82
+ "branch": "review",
83
+ "target": "review_dispatch",
84
+ "label": "点名或待核寒区段落"
46
85
  },
47
86
  {
48
87
  "source": "plan_dispatch",
49
- "target": "luke_nichols",
50
- "label": "交约束与失败方式"
88
+ "target": "luke_nichols_plan",
89
+ "label": "交约束换算失败方式"
90
+ },
91
+ {
92
+ "source": "luke_nichols_plan",
93
+ "target": "ruling_plan",
94
+ "label": "不是返工结论"
51
95
  },
52
96
  {
53
97
  "source": "review_dispatch",
54
- "target": "luke_nichols",
55
- "label": "只报硬错误"
98
+ "target": "luke_nichols_review",
99
+ "label": "只报硬错误与改法"
56
100
  },
57
101
  {
58
- "source": "luke_nichols",
59
- "target": "ruling",
102
+ "source": "luke_nichols_review",
103
+ "target": "ruling_review",
60
104
  "label": "不是返工结论"
61
105
  }
62
106
  ]
@@ -9,44 +9,141 @@
9
9
  {
10
10
  "id": "sort",
11
11
  "type": "host",
12
- "label": "分拣·查排线表·用户确认",
13
- "x": 300,
14
- "y": -40
12
+ "label": "分拣·查排线表",
13
+ "x": 0,
14
+ "y": 0
15
+ },
16
+ {
17
+ "id": "sort_gate",
18
+ "type": "branch",
19
+ "label": "改动影响",
20
+ "branches": [
21
+ {
22
+ "id": "minor",
23
+ "label": "小毛病直接定"
24
+ },
25
+ {
26
+ "id": "major",
27
+ "label": "动设定或牵多集"
28
+ }
29
+ ],
30
+ "x": 0,
31
+ "y": 0
32
+ },
33
+ {
34
+ "id": "user_confirm",
35
+ "type": "user",
36
+ "label": "确认影响清单选项",
37
+ "x": 0,
38
+ "y": 0
39
+ },
40
+ {
41
+ "id": "dispatch_mode",
42
+ "type": "branch",
43
+ "label": "派写方式",
44
+ "branches": [
45
+ {
46
+ "id": "parallel",
47
+ "label": "多文件·并行(默认)"
48
+ },
49
+ {
50
+ "id": "serial",
51
+ "label": "少文件或有依赖"
52
+ }
53
+ ],
54
+ "x": 0,
55
+ "y": 0
15
56
  },
16
57
  {
17
- "id": "writer",
58
+ "id": "writer_1",
18
59
  "type": "card",
19
60
  "card": "writer",
20
- "x": 680,
21
- "y": -40
61
+ "x": 0,
62
+ "y": 0
63
+ },
64
+ {
65
+ "id": "writer_2",
66
+ "type": "card",
67
+ "card": "writer",
68
+ "x": 0,
69
+ "y": 0
70
+ },
71
+ {
72
+ "id": "review_route",
73
+ "type": "branch",
74
+ "label": "单圈审稿范围",
75
+ "branches": [
76
+ {
77
+ "id": "both",
78
+ "label": "默认·同棒双审"
79
+ },
80
+ {
81
+ "id": "people_only",
82
+ "label": "仅人物问题"
83
+ },
84
+ {
85
+ "id": "setting_only",
86
+ "label": "仅设定或多集"
87
+ }
88
+ ],
89
+ "x": 0,
90
+ "y": 0
22
91
  },
23
92
  {
24
93
  "id": "critic_people",
25
94
  "type": "card",
26
95
  "card": "critic_people",
27
- "x": 1060,
28
- "y": -200
96
+ "x": 0,
97
+ "y": 0
29
98
  },
30
99
  {
31
100
  "id": "critic",
32
101
  "type": "card",
33
102
  "card": "critic",
34
- "x": 1060,
35
- "y": 120
103
+ "x": 0,
104
+ "y": 0
36
105
  },
37
106
  {
38
107
  "id": "accept",
39
108
  "type": "host",
40
- "label": "验收·校正排线表",
41
- "x": 1440,
42
- "y": -40
109
+ "label": "验收·校排线清台",
110
+ "x": 0,
111
+ "y": 0
112
+ },
113
+ {
114
+ "id": "accept_gate",
115
+ "type": "branch",
116
+ "label": "验收结论",
117
+ "branches": [
118
+ {
119
+ "id": "rework",
120
+ "label": "动情节需回修"
121
+ },
122
+ {
123
+ "id": "record",
124
+ "label": "通过·账目有变"
125
+ },
126
+ {
127
+ "id": "done",
128
+ "label": "通过·无账变动"
129
+ }
130
+ ],
131
+ "x": 0,
132
+ "y": 0
43
133
  },
44
134
  {
45
135
  "id": "recorder",
46
136
  "type": "card",
47
137
  "card": "recorder",
48
- "x": 1820,
49
- "y": -40
138
+ "x": 0,
139
+ "y": 0
140
+ },
141
+ {
142
+ "id": "finish",
143
+ "type": "host",
144
+ "label": "直接收尾",
145
+ "x": 0,
146
+ "y": 0
50
147
  }
51
148
  ],
52
149
  "edges": [
@@ -56,19 +153,72 @@
56
153
  },
57
154
  {
58
155
  "source": "sort",
59
- "target": "writer",
60
- "label": "按文件分给多位写手并行(默认)"
156
+ "target": "sort_gate"
157
+ },
158
+ {
159
+ "source": "sort_gate",
160
+ "branch": "minor",
161
+ "target": "dispatch_mode"
162
+ },
163
+ {
164
+ "source": "sort_gate",
165
+ "branch": "major",
166
+ "target": "user_confirm"
167
+ },
168
+ {
169
+ "source": "user_confirm",
170
+ "target": "dispatch_mode",
171
+ "label": "填好排线再动手"
172
+ },
173
+ {
174
+ "source": "dispatch_mode",
175
+ "branch": "parallel",
176
+ "target": "writer_1",
177
+ "label": "写手1·按文件分"
178
+ },
179
+ {
180
+ "source": "dispatch_mode",
181
+ "branch": "parallel",
182
+ "target": "writer_2",
183
+ "label": "写手2…并行改"
184
+ },
185
+ {
186
+ "source": "dispatch_mode",
187
+ "branch": "serial",
188
+ "target": "writer_1",
189
+ "label": "单写手改一次"
190
+ },
191
+ {
192
+ "source": "writer_1",
193
+ "target": "review_route"
61
194
  },
62
195
  {
63
- "source": "writer",
196
+ "source": "writer_2",
197
+ "target": "review_route"
198
+ },
199
+ {
200
+ "source": "review_route",
201
+ "branch": "both",
64
202
  "target": "critic_people",
65
203
  "label": "同一棒同时审"
66
204
  },
67
205
  {
68
- "source": "writer",
206
+ "source": "review_route",
207
+ "branch": "both",
69
208
  "target": "critic",
70
209
  "label": "同一棒同时审"
71
210
  },
211
+ {
212
+ "source": "review_route",
213
+ "branch": "people_only",
214
+ "target": "critic_people"
215
+ },
216
+ {
217
+ "source": "review_route",
218
+ "branch": "setting_only",
219
+ "target": "critic",
220
+ "label": "核对排线牵连"
221
+ },
72
222
  {
73
223
  "source": "critic_people",
74
224
  "target": "accept",
@@ -81,13 +231,24 @@
81
231
  },
82
232
  {
83
233
  "source": "accept",
84
- "target": "writer",
85
- "label": "回修按原分工派回"
234
+ "target": "accept_gate"
86
235
  },
87
236
  {
88
- "source": "accept",
237
+ "source": "accept_gate",
238
+ "branch": "rework",
239
+ "target": "dispatch_mode",
240
+ "label": "按原分工回修"
241
+ },
242
+ {
243
+ "source": "accept_gate",
244
+ "branch": "record",
89
245
  "target": "recorder",
90
- "label": "有账目变化才记"
246
+ "label": "挂派·不等交回"
247
+ },
248
+ {
249
+ "source": "accept_gate",
250
+ "branch": "done",
251
+ "target": "finish"
91
252
  }
92
253
  ]
93
254
  }
@@ -9,36 +9,174 @@
9
9
  {
10
10
  "id": "scope",
11
11
  "type": "host",
12
- "label": "留原文·体检文档",
13
- "x": 300,
12
+ "label": "定范围·查未提交",
13
+ "x": 0,
14
+ "y": 0
15
+ },
16
+ {
17
+ "id": "git_gate",
18
+ "type": "branch",
19
+ "label": "留原文检查",
20
+ "branches": [
21
+ {
22
+ "id": "uncommitted",
23
+ "label": "有未提交改动"
24
+ },
25
+ {
26
+ "id": "clean",
27
+ "label": "工作区干净"
28
+ }
29
+ ],
30
+ "x": 0,
31
+ "y": 0
32
+ },
33
+ {
34
+ "id": "user_backup",
35
+ "type": "user",
36
+ "label": "选提交或备份原文",
37
+ "x": 0,
38
+ "y": 0
39
+ },
40
+ {
41
+ "id": "checkup",
42
+ "type": "host",
43
+ "label": "体检四类文档",
44
+ "x": 0,
14
45
  "y": 0
15
46
  },
16
47
  {
17
- "id": "recorder",
48
+ "id": "recorder_check",
18
49
  "type": "card",
19
50
  "card": "recorder",
20
- "x": 680,
51
+ "x": 0,
52
+ "y": 0
53
+ },
54
+ {
55
+ "id": "opt_check",
56
+ "type": "branch",
57
+ "label": "按需加查",
58
+ "branches": [
59
+ {
60
+ "id": "long_gap",
61
+ "label": "排线有长空档"
62
+ },
63
+ {
64
+ "id": "style_signal",
65
+ "label": "文风触发信号"
66
+ }
67
+ ],
68
+ "x": 0,
69
+ "y": 0
70
+ },
71
+ {
72
+ "id": "screenwriter",
73
+ "type": "card",
74
+ "card": "screenwriter",
75
+ "x": 0,
21
76
  "y": 0
22
77
  },
23
78
  {
24
- "id": "list",
79
+ "id": "writer_check",
80
+ "type": "card",
81
+ "card": "writer",
82
+ "x": 0,
83
+ "y": 0
84
+ },
85
+ {
86
+ "id": "make_list",
87
+ "type": "host",
88
+ "label": "汇总瘦身清单",
89
+ "x": 0,
90
+ "y": 0
91
+ },
92
+ {
93
+ "id": "user_confirm",
94
+ "type": "user",
95
+ "label": "确认清单与待定项",
96
+ "x": 0,
97
+ "y": 0
98
+ },
99
+ {
100
+ "id": "exec_host",
25
101
  "type": "host",
26
- "label": "出清单·确认·执行",
27
- "x": 1060,
102
+ "label": "改四类·派执行",
103
+ "x": 0,
104
+ "y": 0
105
+ },
106
+ {
107
+ "id": "exec_gate",
108
+ "type": "branch",
109
+ "label": "按清单执行核对",
110
+ "branches": [
111
+ {
112
+ "id": "base",
113
+ "label": "账本+核对四类"
114
+ },
115
+ {
116
+ "id": "with_style",
117
+ "label": "含文风一并执行"
118
+ }
119
+ ],
120
+ "x": 0,
121
+ "y": 0
122
+ },
123
+ {
124
+ "id": "recorder_exec",
125
+ "type": "card",
126
+ "card": "recorder",
127
+ "x": 0,
128
+ "y": 0
129
+ },
130
+ {
131
+ "id": "writer_exec",
132
+ "type": "card",
133
+ "card": "writer",
134
+ "x": 0,
28
135
  "y": 0
29
136
  },
30
137
  {
31
138
  "id": "critic",
32
139
  "type": "card",
33
140
  "card": "critic",
34
- "x": 1440,
141
+ "x": 0,
142
+ "y": 0
143
+ },
144
+ {
145
+ "id": "verify",
146
+ "type": "host",
147
+ "label": "抽查账本·量上限",
148
+ "x": 0,
149
+ "y": 0
150
+ },
151
+ {
152
+ "id": "verify_gate",
153
+ "type": "branch",
154
+ "label": "核对结论",
155
+ "branches": [
156
+ {
157
+ "id": "fail",
158
+ "label": "核对不通过"
159
+ },
160
+ {
161
+ "id": "pass",
162
+ "label": "全部通过"
163
+ }
164
+ ],
165
+ "x": 0,
166
+ "y": 0
167
+ },
168
+ {
169
+ "id": "report_fail",
170
+ "type": "user",
171
+ "label": "停下报告待处理",
172
+ "x": 0,
35
173
  "y": 0
36
174
  },
37
175
  {
38
176
  "id": "wrap",
39
177
  "type": "host",
40
- "label": "抽查·收尾",
41
- "x": 1820,
178
+ "label": "补落实·记进展",
179
+ "x": 0,
42
180
  "y": 0
43
181
  }
44
182
  ],
@@ -49,25 +187,124 @@
49
187
  },
50
188
  {
51
189
  "source": "scope",
52
- "target": "recorder",
53
- "label": "体检账本,分堆报数"
190
+ "target": "git_gate"
191
+ },
192
+ {
193
+ "source": "git_gate",
194
+ "branch": "uncommitted",
195
+ "target": "user_backup"
196
+ },
197
+ {
198
+ "source": "user_backup",
199
+ "target": "checkup"
200
+ },
201
+ {
202
+ "source": "git_gate",
203
+ "branch": "clean",
204
+ "target": "checkup"
205
+ },
206
+ {
207
+ "source": "checkup",
208
+ "target": "recorder_check",
209
+ "label": "体检账本分堆报数"
210
+ },
211
+ {
212
+ "source": "checkup",
213
+ "target": "opt_check",
214
+ "label": "按需并行"
215
+ },
216
+ {
217
+ "source": "opt_check",
218
+ "branch": "long_gap",
219
+ "target": "screenwriter",
220
+ "label": "查长空档列"
221
+ },
222
+ {
223
+ "source": "opt_check",
224
+ "branch": "style_signal",
225
+ "target": "writer_check",
226
+ "label": "体检文风"
54
227
  },
55
228
  {
56
- "source": "recorder",
57
- "target": "list"
229
+ "source": "recorder_check",
230
+ "target": "make_list"
58
231
  },
59
232
  {
60
- "source": "list",
61
- "target": "recorder",
62
- "label": "按清单改账本"
233
+ "source": "screenwriter",
234
+ "target": "make_list"
63
235
  },
64
236
  {
65
- "source": "list",
237
+ "source": "writer_check",
238
+ "target": "make_list"
239
+ },
240
+ {
241
+ "source": "make_list",
242
+ "target": "user_confirm",
243
+ "label": "确认前不执行"
244
+ },
245
+ {
246
+ "source": "user_confirm",
247
+ "target": "exec_host"
248
+ },
249
+ {
250
+ "source": "exec_host",
251
+ "target": "exec_gate"
252
+ },
253
+ {
254
+ "source": "exec_gate",
255
+ "branch": "base",
256
+ "target": "recorder_exec",
257
+ "label": "改账并跑状态检查"
258
+ },
259
+ {
260
+ "source": "exec_gate",
261
+ "branch": "base",
66
262
  "target": "critic",
67
- "label": "核对主持人改过的文件"
263
+ "label": "核对主持人改稿"
264
+ },
265
+ {
266
+ "source": "exec_gate",
267
+ "branch": "with_style",
268
+ "target": "recorder_exec",
269
+ "label": "改账并跑状态检查"
270
+ },
271
+ {
272
+ "source": "exec_gate",
273
+ "branch": "with_style",
274
+ "target": "writer_exec",
275
+ "label": "按清单改文风"
276
+ },
277
+ {
278
+ "source": "exec_gate",
279
+ "branch": "with_style",
280
+ "target": "critic",
281
+ "label": "核对主持人改稿"
282
+ },
283
+ {
284
+ "source": "recorder_exec",
285
+ "target": "verify"
286
+ },
287
+ {
288
+ "source": "writer_exec",
289
+ "target": "verify"
68
290
  },
69
291
  {
70
292
  "source": "critic",
293
+ "target": "verify"
294
+ },
295
+ {
296
+ "source": "verify",
297
+ "target": "verify_gate"
298
+ },
299
+ {
300
+ "source": "verify_gate",
301
+ "branch": "fail",
302
+ "target": "report_fail",
303
+ "label": "不边改边扩范围"
304
+ },
305
+ {
306
+ "source": "verify_gate",
307
+ "branch": "pass",
71
308
  "target": "wrap"
72
309
  }
73
310
  ]