@prplkane/roundtable 0.6.4 → 0.6.6
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/CHANGELOG.md +36 -0
- package/LICENSE +21 -21
- package/README.md +7 -1
- package/SECURITY.md +21 -2
- package/docs/workflow.md +99 -4
- package/package.json +1 -1
- package/scripts/mcp.mjs +4 -2
- package/skills/roundtable/SKILL.md +3 -1
- package/src/adapters/acp.js +201 -0
- package/src/adapters/agy.js +7 -7
- package/src/adapters/claude.js +6 -6
- package/src/adapters/codex.js +6 -6
- package/src/adapters/config.js +11 -1
- package/src/adapters/index.js +2 -1
- package/src/agent-client.js +15 -3
- package/src/doctor.js +7 -0
- package/src/engine.js +2 -2
- package/src/export.js +307 -307
- package/src/notes.js +8 -4
- package/src/prompts.js +1 -1
- package/src/review-view.js +4 -2
- package/src/seats.js +19 -4
- package/src/server.js +22 -5
- package/src/snapshot.js +10 -3
- package/src/ui/app.js +18 -8
- package/src/ui/design/preset-dusk.css +91 -91
- package/src/ui/design/tokens.css +129 -129
- package/src/validate.js +4 -1
package/src/ui/design/tokens.css
CHANGED
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
/* Signature design tokens, version 2 ("used future").
|
|
2
|
-
Copy unchanged into each app. Override only the --knob-* variables, in a
|
|
3
|
-
separate app.css loaded after this file. */
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
/* ---- Per-app knobs ---------------------------------------------------- */
|
|
7
|
-
--knob-accent: #e8a33d;
|
|
8
|
-
--knob-accent-manual: #b4561e;
|
|
9
|
-
--knob-density: 1;
|
|
10
|
-
|
|
11
|
-
/* ---- Type ------------------------------------------------------------- */
|
|
12
|
-
--font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
13
|
-
--font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
|
|
14
|
-
--text-xs: 11px;
|
|
15
|
-
--text-sm: 12px;
|
|
16
|
-
--text-base: 14px;
|
|
17
|
-
--text-md: 16px;
|
|
18
|
-
--text-lg: 20px;
|
|
19
|
-
--text-xl: 28px;
|
|
20
|
-
--leading-tight: 1.25;
|
|
21
|
-
--leading-base: 1.5;
|
|
22
|
-
--weight-regular: 400;
|
|
23
|
-
--weight-strong: 600;
|
|
24
|
-
--tracking-label: 0.08em;
|
|
25
|
-
|
|
26
|
-
/* ---- Space (4px grid, scaled by density) ------------------------------ */
|
|
27
|
-
--space-1: calc(4px * var(--knob-density));
|
|
28
|
-
--space-2: calc(8px * var(--knob-density));
|
|
29
|
-
--space-3: calc(12px * var(--knob-density));
|
|
30
|
-
--space-4: calc(16px * var(--knob-density));
|
|
31
|
-
--space-5: calc(24px * var(--knob-density));
|
|
32
|
-
--space-6: calc(32px * var(--knob-density));
|
|
33
|
-
|
|
34
|
-
/* ---- Shape ------------------------------------------------------------ */
|
|
35
|
-
--radius-sm: 2px;
|
|
36
|
-
--radius: 4px;
|
|
37
|
-
--radius-lg: 6px;
|
|
38
|
-
--border-width: 1px;
|
|
39
|
-
--shadow-hard: 3px 3px 0 var(--color-border);
|
|
40
|
-
--shadow-hard-action: 2px 2px 0 var(--color-border-strong);
|
|
41
|
-
--shadow-overlay: 6px 6px 0 var(--color-border-strong);
|
|
42
|
-
|
|
43
|
-
/* ---- Industrial details (brand layer; use these, never hand-roll) ------ */
|
|
44
|
-
--led-size: 7px;
|
|
45
|
-
--pattern-ticks: repeating-linear-gradient(90deg, var(--color-border) 0 1px, transparent 1px 8px);
|
|
46
|
-
--pattern-hazard: repeating-linear-gradient(-45deg, var(--color-danger) 0 3px, transparent 3px 6px);
|
|
47
|
-
|
|
48
|
-
/* ---- Motion ----------------------------------------------------------- */
|
|
49
|
-
--motion-fast: 120ms;
|
|
50
|
-
--motion-base: 180ms;
|
|
51
|
-
--ease: cubic-bezier(0.2, 0, 0, 1);
|
|
52
|
-
--cursor-blink: 1.1s steps(1) infinite;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* ---- Terminal (dark, warm) ---------------------------------------------- */
|
|
56
|
-
:root,
|
|
57
|
-
:root[data-theme="terminal"] {
|
|
58
|
-
color-scheme: dark;
|
|
59
|
-
--color-bg: #13110e;
|
|
60
|
-
--color-surface: #1b1814;
|
|
61
|
-
--color-surface-raised: #221e19;
|
|
62
|
-
--color-border: #3a332b;
|
|
63
|
-
--color-border-strong: #554b3f;
|
|
64
|
-
--color-text: #e8dfd0;
|
|
65
|
-
--color-text-muted: #9e9282;
|
|
66
|
-
--color-accent: var(--knob-accent);
|
|
67
|
-
--color-logo-ink: #13110e;
|
|
68
|
-
--color-action: #6fb3a9;
|
|
69
|
-
--color-on-action: #13110e;
|
|
70
|
-
--color-selection: #2a241e;
|
|
71
|
-
--color-ok: #9cbc6a;
|
|
72
|
-
--color-warn: #d9824a;
|
|
73
|
-
--color-danger: #df6b55;
|
|
74
|
-
--color-info: #86a9c4;
|
|
75
|
-
--color-focus: #6fb3a9;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* ---- Printed manual (light, warm paper) --------------------------------- */
|
|
79
|
-
:root[data-theme="manual"] {
|
|
80
|
-
color-scheme: light;
|
|
81
|
-
--color-bg: #eee6d6;
|
|
82
|
-
--color-surface: #f7f1e6;
|
|
83
|
-
--color-surface-raised: #fdfaf3;
|
|
84
|
-
--color-border: #cbbfa8;
|
|
85
|
-
--color-border-strong: #a3967f;
|
|
86
|
-
--color-text: #2a241d;
|
|
87
|
-
--color-text-muted: #685e50;
|
|
88
|
-
--color-accent: var(--knob-accent-manual);
|
|
89
|
-
--color-logo-ink: #eee6d6;
|
|
90
|
-
--color-action: #2d6a63;
|
|
91
|
-
--color-on-action: #ffffff;
|
|
92
|
-
--color-selection: #e2d8c4;
|
|
93
|
-
--color-ok: #556b2f;
|
|
94
|
-
--color-warn: #8f5a00;
|
|
95
|
-
--color-danger: #a8402d;
|
|
96
|
-
--color-info: #3d6684;
|
|
97
|
-
--color-focus: #2d6a63;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@media (prefers-color-scheme: light) {
|
|
101
|
-
:root:not([data-theme]) {
|
|
102
|
-
color-scheme: light;
|
|
103
|
-
--color-bg: #eee6d6;
|
|
104
|
-
--color-surface: #f7f1e6;
|
|
105
|
-
--color-surface-raised: #fdfaf3;
|
|
106
|
-
--color-border: #cbbfa8;
|
|
107
|
-
--color-border-strong: #a3967f;
|
|
108
|
-
--color-text: #2a241d;
|
|
109
|
-
--color-text-muted: #685e50;
|
|
110
|
-
--color-accent: var(--knob-accent-manual);
|
|
111
|
-
--color-logo-ink: #eee6d6;
|
|
112
|
-
--color-action: #2d6a63;
|
|
113
|
-
--color-on-action: #ffffff;
|
|
114
|
-
--color-selection: #e2d8c4;
|
|
115
|
-
--color-ok: #556b2f;
|
|
116
|
-
--color-warn: #8f5a00;
|
|
117
|
-
--color-danger: #a8402d;
|
|
118
|
-
--color-info: #3d6684;
|
|
119
|
-
--color-focus: #2d6a63;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@media (prefers-reduced-motion: reduce) {
|
|
124
|
-
:root {
|
|
125
|
-
--motion-fast: 0ms;
|
|
126
|
-
--motion-base: 0ms;
|
|
127
|
-
--cursor-blink: none;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
1
|
+
/* Signature design tokens, version 2 ("used future").
|
|
2
|
+
Copy unchanged into each app. Override only the --knob-* variables, in a
|
|
3
|
+
separate app.css loaded after this file. */
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
/* ---- Per-app knobs ---------------------------------------------------- */
|
|
7
|
+
--knob-accent: #e8a33d;
|
|
8
|
+
--knob-accent-manual: #b4561e;
|
|
9
|
+
--knob-density: 1;
|
|
10
|
+
|
|
11
|
+
/* ---- Type ------------------------------------------------------------- */
|
|
12
|
+
--font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
13
|
+
--font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
|
|
14
|
+
--text-xs: 11px;
|
|
15
|
+
--text-sm: 12px;
|
|
16
|
+
--text-base: 14px;
|
|
17
|
+
--text-md: 16px;
|
|
18
|
+
--text-lg: 20px;
|
|
19
|
+
--text-xl: 28px;
|
|
20
|
+
--leading-tight: 1.25;
|
|
21
|
+
--leading-base: 1.5;
|
|
22
|
+
--weight-regular: 400;
|
|
23
|
+
--weight-strong: 600;
|
|
24
|
+
--tracking-label: 0.08em;
|
|
25
|
+
|
|
26
|
+
/* ---- Space (4px grid, scaled by density) ------------------------------ */
|
|
27
|
+
--space-1: calc(4px * var(--knob-density));
|
|
28
|
+
--space-2: calc(8px * var(--knob-density));
|
|
29
|
+
--space-3: calc(12px * var(--knob-density));
|
|
30
|
+
--space-4: calc(16px * var(--knob-density));
|
|
31
|
+
--space-5: calc(24px * var(--knob-density));
|
|
32
|
+
--space-6: calc(32px * var(--knob-density));
|
|
33
|
+
|
|
34
|
+
/* ---- Shape ------------------------------------------------------------ */
|
|
35
|
+
--radius-sm: 2px;
|
|
36
|
+
--radius: 4px;
|
|
37
|
+
--radius-lg: 6px;
|
|
38
|
+
--border-width: 1px;
|
|
39
|
+
--shadow-hard: 3px 3px 0 var(--color-border);
|
|
40
|
+
--shadow-hard-action: 2px 2px 0 var(--color-border-strong);
|
|
41
|
+
--shadow-overlay: 6px 6px 0 var(--color-border-strong);
|
|
42
|
+
|
|
43
|
+
/* ---- Industrial details (brand layer; use these, never hand-roll) ------ */
|
|
44
|
+
--led-size: 7px;
|
|
45
|
+
--pattern-ticks: repeating-linear-gradient(90deg, var(--color-border) 0 1px, transparent 1px 8px);
|
|
46
|
+
--pattern-hazard: repeating-linear-gradient(-45deg, var(--color-danger) 0 3px, transparent 3px 6px);
|
|
47
|
+
|
|
48
|
+
/* ---- Motion ----------------------------------------------------------- */
|
|
49
|
+
--motion-fast: 120ms;
|
|
50
|
+
--motion-base: 180ms;
|
|
51
|
+
--ease: cubic-bezier(0.2, 0, 0, 1);
|
|
52
|
+
--cursor-blink: 1.1s steps(1) infinite;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* ---- Terminal (dark, warm) ---------------------------------------------- */
|
|
56
|
+
:root,
|
|
57
|
+
:root[data-theme="terminal"] {
|
|
58
|
+
color-scheme: dark;
|
|
59
|
+
--color-bg: #13110e;
|
|
60
|
+
--color-surface: #1b1814;
|
|
61
|
+
--color-surface-raised: #221e19;
|
|
62
|
+
--color-border: #3a332b;
|
|
63
|
+
--color-border-strong: #554b3f;
|
|
64
|
+
--color-text: #e8dfd0;
|
|
65
|
+
--color-text-muted: #9e9282;
|
|
66
|
+
--color-accent: var(--knob-accent);
|
|
67
|
+
--color-logo-ink: #13110e;
|
|
68
|
+
--color-action: #6fb3a9;
|
|
69
|
+
--color-on-action: #13110e;
|
|
70
|
+
--color-selection: #2a241e;
|
|
71
|
+
--color-ok: #9cbc6a;
|
|
72
|
+
--color-warn: #d9824a;
|
|
73
|
+
--color-danger: #df6b55;
|
|
74
|
+
--color-info: #86a9c4;
|
|
75
|
+
--color-focus: #6fb3a9;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* ---- Printed manual (light, warm paper) --------------------------------- */
|
|
79
|
+
:root[data-theme="manual"] {
|
|
80
|
+
color-scheme: light;
|
|
81
|
+
--color-bg: #eee6d6;
|
|
82
|
+
--color-surface: #f7f1e6;
|
|
83
|
+
--color-surface-raised: #fdfaf3;
|
|
84
|
+
--color-border: #cbbfa8;
|
|
85
|
+
--color-border-strong: #a3967f;
|
|
86
|
+
--color-text: #2a241d;
|
|
87
|
+
--color-text-muted: #685e50;
|
|
88
|
+
--color-accent: var(--knob-accent-manual);
|
|
89
|
+
--color-logo-ink: #eee6d6;
|
|
90
|
+
--color-action: #2d6a63;
|
|
91
|
+
--color-on-action: #ffffff;
|
|
92
|
+
--color-selection: #e2d8c4;
|
|
93
|
+
--color-ok: #556b2f;
|
|
94
|
+
--color-warn: #8f5a00;
|
|
95
|
+
--color-danger: #a8402d;
|
|
96
|
+
--color-info: #3d6684;
|
|
97
|
+
--color-focus: #2d6a63;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (prefers-color-scheme: light) {
|
|
101
|
+
:root:not([data-theme]) {
|
|
102
|
+
color-scheme: light;
|
|
103
|
+
--color-bg: #eee6d6;
|
|
104
|
+
--color-surface: #f7f1e6;
|
|
105
|
+
--color-surface-raised: #fdfaf3;
|
|
106
|
+
--color-border: #cbbfa8;
|
|
107
|
+
--color-border-strong: #a3967f;
|
|
108
|
+
--color-text: #2a241d;
|
|
109
|
+
--color-text-muted: #685e50;
|
|
110
|
+
--color-accent: var(--knob-accent-manual);
|
|
111
|
+
--color-logo-ink: #eee6d6;
|
|
112
|
+
--color-action: #2d6a63;
|
|
113
|
+
--color-on-action: #ffffff;
|
|
114
|
+
--color-selection: #e2d8c4;
|
|
115
|
+
--color-ok: #556b2f;
|
|
116
|
+
--color-warn: #8f5a00;
|
|
117
|
+
--color-danger: #a8402d;
|
|
118
|
+
--color-info: #3d6684;
|
|
119
|
+
--color-focus: #2d6a63;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (prefers-reduced-motion: reduce) {
|
|
124
|
+
:root {
|
|
125
|
+
--motion-fast: 0ms;
|
|
126
|
+
--motion-base: 0ms;
|
|
127
|
+
--cursor-blink: none;
|
|
128
|
+
}
|
|
129
|
+
}
|
package/src/validate.js
CHANGED
|
@@ -71,6 +71,7 @@ export function validateDebateRequest(body, { adapters }) {
|
|
|
71
71
|
// an endpoint seat has no thread at the vendor to continue, so `resume` prompts would reach it
|
|
72
72
|
// with no context: refuse the table rather than run it on half-prompts
|
|
73
73
|
if (options_.memory === 'resume' && [...body.seats, body.chairman].some((s) => s && adapters[s.vendor]?.kind === 'api')) fail('memory', 'resume needs a session to continue, and an API endpoint seat has none; use stateless');
|
|
74
|
+
if (options_.memory === 'resume' && [...body.seats, body.chairman].some((s) => s && adapters[s.vendor]?.kind === 'acp')) fail('memory', 'ACP seats currently use fresh sessions; choose stateless');
|
|
74
75
|
if (o.strictTools != null) { if (o.strictTools !== true) fail('strictTools', 'the debate tool guard cannot be disabled'); options_.strictTools = true; }
|
|
75
76
|
if (o.allowLimitedIsolation != null) { if (typeof o.allowLimitedIsolation !== 'boolean') fail('allowLimitedIsolation', 'true or false'); options_.allowLimitedIsolation = o.allowLimitedIsolation; }
|
|
76
77
|
if (o.acknowledgeTermsRisk != null) { if (typeof o.acknowledgeTermsRisk !== 'boolean') fail('acknowledgeTermsRisk', 'true or false'); options_.acknowledgeTermsRisk = o.acknowledgeTermsRisk; }
|
|
@@ -98,7 +99,9 @@ export function validateMessage(body) {
|
|
|
98
99
|
if (body.answers != null) {
|
|
99
100
|
if (!Array.isArray(body.answers) || body.answers.length > LIMITS.answers) fail('answers', `a list of at most ${LIMITS.answers} answers`);
|
|
100
101
|
if (body.round == null) fail('round', 'required with answers');
|
|
101
|
-
out.answers = body.answers.map((a) => ({ id: str(a?.id, 'question id', LIMITS.questionId, { required: true }), text: str(a?.text, 'answer', LIMITS.answer)
|
|
102
|
+
out.answers = body.answers.map((a) => ({ id: str(a?.id, 'question id', LIMITS.questionId, { required: true }), text: str(a?.text, 'answer', LIMITS.answer),
|
|
103
|
+
// who wrote the answer: declared by an agent client, defaulting to the assistant itself
|
|
104
|
+
from: a?.from == null ? 'assistant' : ['user', 'assistant'].includes(a.from) ? a.from : fail('from', 'user or assistant') }));
|
|
102
105
|
}
|
|
103
106
|
return out;
|
|
104
107
|
}
|