@prplkane/roundtable 0.6.3 → 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.
@@ -1,91 +1,91 @@
1
- /* Signature preset: Dusk, version 1.
2
- Load after tokens.css. The Ink & paper structure (warm paper, IBM Plex, square tags, LED
3
- status lights, hard shadows) with purple where Ink & paper has blue: aubergine chrome, a plum
4
- action colour, orchid (the Dusk accent) for brand marks. Green appears only for success.
5
- Light theme "Plum paper", dark theme "Night plum". First used by Roundtable. All text pairs
6
- checked with design_lint.py --contrast at 4.5:1 or better; border-strong at 3:1 (marks). */
7
-
8
- :root {
9
- --knob-accent: #c79ad0;
10
- --knob-accent-manual: #7d4a8a;
11
- }
12
-
13
- :root,
14
- :root[data-theme="paper"],
15
- :root[data-theme="manual"] {
16
- color-scheme: light;
17
- --color-bg: #f6f2ea;
18
- --color-surface: #fdfbf7;
19
- --color-surface-raised: #fffdfa;
20
- --color-border: #ddd3d6;
21
- --color-border-strong: #8c7f8f;
22
- --color-text: #241c2b;
23
- --color-text-muted: #645a6c;
24
- --color-accent: var(--knob-accent-manual);
25
- --color-logo-ink: #2b1d38;
26
- --color-action: #5b3478;
27
- --color-on-action: #ffffff;
28
- --color-selection: #ece3f0;
29
- --color-ok: #3f6b3a;
30
- --color-warn: #8f5a00;
31
- --color-danger: #a8402d;
32
- --color-info: #5b3478;
33
- --color-focus: #5b3478;
34
- --color-chrome: #2b1d38;
35
- --color-chrome-text: #f1eaf4;
36
- --color-chrome-muted: #c3b3cc;
37
- --color-chrome-accent: #c79ad0;
38
- }
39
-
40
- :root[data-theme="night"],
41
- :root[data-theme="terminal"] {
42
- color-scheme: dark;
43
- --color-bg: #16111c;
44
- --color-surface: #1d1724;
45
- --color-surface-raised: #251d2e;
46
- --color-border: #352a40;
47
- --color-border-strong: #6e5d7d;
48
- --color-text: #ece5f1;
49
- --color-text-muted: #a597b0;
50
- --color-accent: var(--knob-accent);
51
- --color-logo-ink: #0f0b14;
52
- --color-action: #c9a3e6;
53
- --color-on-action: #16111c;
54
- --color-selection: #2a2035;
55
- --color-ok: #8fbf86;
56
- --color-warn: #d9a45a;
57
- --color-danger: #e58a78;
58
- --color-info: #c9a3e6;
59
- --color-focus: #c9a3e6;
60
- --color-chrome: #0f0b14;
61
- --color-chrome-text: #ece5f1;
62
- --color-chrome-muted: #a597b0;
63
- --color-chrome-accent: #c79ad0;
64
- }
65
-
66
- @media (prefers-color-scheme: dark) {
67
- :root:not([data-theme]) {
68
- color-scheme: dark;
69
- --color-bg: #16111c;
70
- --color-surface: #1d1724;
71
- --color-surface-raised: #251d2e;
72
- --color-border: #352a40;
73
- --color-border-strong: #6e5d7d;
74
- --color-text: #ece5f1;
75
- --color-text-muted: #a597b0;
76
- --color-accent: var(--knob-accent);
77
- --color-logo-ink: #0f0b14;
78
- --color-action: #c9a3e6;
79
- --color-on-action: #16111c;
80
- --color-selection: #2a2035;
81
- --color-ok: #8fbf86;
82
- --color-warn: #d9a45a;
83
- --color-danger: #e58a78;
84
- --color-info: #c9a3e6;
85
- --color-focus: #c9a3e6;
86
- --color-chrome: #0f0b14;
87
- --color-chrome-text: #ece5f1;
88
- --color-chrome-muted: #a597b0;
89
- --color-chrome-accent: #c79ad0;
90
- }
91
- }
1
+ /* Signature preset: Dusk, version 1.
2
+ Load after tokens.css. The Ink & paper structure (warm paper, IBM Plex, square tags, LED
3
+ status lights, hard shadows) with purple where Ink & paper has blue: aubergine chrome, a plum
4
+ action colour, orchid (the Dusk accent) for brand marks. Green appears only for success.
5
+ Light theme "Plum paper", dark theme "Night plum". First used by Roundtable. All text pairs
6
+ checked with design_lint.py --contrast at 4.5:1 or better; border-strong at 3:1 (marks). */
7
+
8
+ :root {
9
+ --knob-accent: #c79ad0;
10
+ --knob-accent-manual: #7d4a8a;
11
+ }
12
+
13
+ :root,
14
+ :root[data-theme="paper"],
15
+ :root[data-theme="manual"] {
16
+ color-scheme: light;
17
+ --color-bg: #f6f2ea;
18
+ --color-surface: #fdfbf7;
19
+ --color-surface-raised: #fffdfa;
20
+ --color-border: #ddd3d6;
21
+ --color-border-strong: #8c7f8f;
22
+ --color-text: #241c2b;
23
+ --color-text-muted: #645a6c;
24
+ --color-accent: var(--knob-accent-manual);
25
+ --color-logo-ink: #2b1d38;
26
+ --color-action: #5b3478;
27
+ --color-on-action: #ffffff;
28
+ --color-selection: #ece3f0;
29
+ --color-ok: #3f6b3a;
30
+ --color-warn: #8f5a00;
31
+ --color-danger: #a8402d;
32
+ --color-info: #5b3478;
33
+ --color-focus: #5b3478;
34
+ --color-chrome: #2b1d38;
35
+ --color-chrome-text: #f1eaf4;
36
+ --color-chrome-muted: #c3b3cc;
37
+ --color-chrome-accent: #c79ad0;
38
+ }
39
+
40
+ :root[data-theme="night"],
41
+ :root[data-theme="terminal"] {
42
+ color-scheme: dark;
43
+ --color-bg: #16111c;
44
+ --color-surface: #1d1724;
45
+ --color-surface-raised: #251d2e;
46
+ --color-border: #352a40;
47
+ --color-border-strong: #6e5d7d;
48
+ --color-text: #ece5f1;
49
+ --color-text-muted: #a597b0;
50
+ --color-accent: var(--knob-accent);
51
+ --color-logo-ink: #0f0b14;
52
+ --color-action: #c9a3e6;
53
+ --color-on-action: #16111c;
54
+ --color-selection: #2a2035;
55
+ --color-ok: #8fbf86;
56
+ --color-warn: #d9a45a;
57
+ --color-danger: #e58a78;
58
+ --color-info: #c9a3e6;
59
+ --color-focus: #c9a3e6;
60
+ --color-chrome: #0f0b14;
61
+ --color-chrome-text: #ece5f1;
62
+ --color-chrome-muted: #a597b0;
63
+ --color-chrome-accent: #c79ad0;
64
+ }
65
+
66
+ @media (prefers-color-scheme: dark) {
67
+ :root:not([data-theme]) {
68
+ color-scheme: dark;
69
+ --color-bg: #16111c;
70
+ --color-surface: #1d1724;
71
+ --color-surface-raised: #251d2e;
72
+ --color-border: #352a40;
73
+ --color-border-strong: #6e5d7d;
74
+ --color-text: #ece5f1;
75
+ --color-text-muted: #a597b0;
76
+ --color-accent: var(--knob-accent);
77
+ --color-logo-ink: #0f0b14;
78
+ --color-action: #c9a3e6;
79
+ --color-on-action: #16111c;
80
+ --color-selection: #2a2035;
81
+ --color-ok: #8fbf86;
82
+ --color-warn: #d9a45a;
83
+ --color-danger: #e58a78;
84
+ --color-info: #c9a3e6;
85
+ --color-focus: #c9a3e6;
86
+ --color-chrome: #0f0b14;
87
+ --color-chrome-text: #ece5f1;
88
+ --color-chrome-muted: #a597b0;
89
+ --color-chrome-accent: #c79ad0;
90
+ }
91
+ }
@@ -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
  }