codeassembly-agent-logic 0.4.0 → 0.5.0
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/.meta/changelog.json +38 -0
- package/CHANGELOG.md +12 -0
- package/README.md +28 -9
- package/dist/esm/react/styles.css +99 -51
- package/package.json +4 -4
package/.meta/changelog.json
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"date": "2026-11-19",
|
|
5
|
+
"sections": [
|
|
6
|
+
{
|
|
7
|
+
"title": "🎉 Features",
|
|
8
|
+
"audience": "all",
|
|
9
|
+
"items": [
|
|
10
|
+
{
|
|
11
|
+
"description": "Adds six seed colour properties to `codeassembly-agent-logic/react/styles.css` (`--agent-logic-surface`, `--agent-logic-text`, `--agent-logic-accent`, `--agent-logic-global`, `--agent-logic-waiting`, and `--agent-logic-warning`), from which each component property, such as `--agent-logic-border` or `--agent-logic-selected`, derives its default, and keeps each component property available to override one part. (#2296)",
|
|
12
|
+
"hash": "b499d2faed00b6a46a7a43b50da20299723d6694",
|
|
13
|
+
"entry": 1
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"description": "Changes the default palette and tints the canvas ground with the accent seed, with dots coloured from the text and accent seeds, while React Flow's `--xy-background-color` and `--xy-background-pattern-color` still replace the ground and the dots. (#2296)",
|
|
17
|
+
"hash": "b499d2faed00b6a46a7a43b50da20299723d6694",
|
|
18
|
+
"entry": 2
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"description": "Adds a dotted underline in the global colour to an ambient instruction on the canvas, the same mark that the prompt pane gives ambient text. (#2296)",
|
|
22
|
+
"hash": "b499d2faed00b6a46a7a43b50da20299723d6694",
|
|
23
|
+
"entry": 3
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"title": "🐛 Bug fixes",
|
|
29
|
+
"audience": "all",
|
|
30
|
+
"items": [
|
|
31
|
+
{
|
|
32
|
+
"description": "Fixes the issue that a consumer's layered reset, such as Tailwind's preflight, removed the padding that React Flow gives the canvas attribution, by setting that padding in the package's `styles.css` outside any cascade layer. (#2295)",
|
|
33
|
+
"hash": "34aa04421ed93d04a7eae0092f62fe30ed20ddae",
|
|
34
|
+
"entry": 1
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
2
40
|
{
|
|
3
41
|
"version": "0.4.0",
|
|
4
42
|
"date": "2026-11-18",
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.5.0 — 2026-11-19
|
|
6
|
+
|
|
7
|
+
### 🎉 Features
|
|
8
|
+
|
|
9
|
+
- Adds six seed colour properties to `codeassembly-agent-logic/react/styles.css` (`--agent-logic-surface`, `--agent-logic-text`, `--agent-logic-accent`, `--agent-logic-global`, `--agent-logic-waiting`, and `--agent-logic-warning`), from which each component property, such as `--agent-logic-border` or `--agent-logic-selected`, derives its default, and keeps each component property available to override one part. (#2296)
|
|
10
|
+
- Changes the default palette and tints the canvas ground with the accent seed, with dots coloured from the text and accent seeds, while React Flow's `--xy-background-color` and `--xy-background-pattern-color` still replace the ground and the dots. (#2296)
|
|
11
|
+
- Adds a dotted underline in the global colour to an ambient instruction on the canvas, the same mark that the prompt pane gives ambient text. (#2296)
|
|
12
|
+
|
|
13
|
+
### 🐛 Bug fixes
|
|
14
|
+
|
|
15
|
+
- Fixes the issue that a consumer's layered reset, such as Tailwind's preflight, removed the padding that React Flow gives the canvas attribution, by setting that padding in the package's `styles.css` outside any cascade layer. (#2295)
|
|
16
|
+
|
|
5
17
|
## 0.4.0 — 2026-11-18
|
|
6
18
|
|
|
7
19
|
### 🎉 Features
|
package/README.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
<!-- section:release-notes -->
|
|
2
|
-
## Release notes — v0.
|
|
2
|
+
## Release notes — v0.5.0 (2026-11-19)
|
|
3
3
|
|
|
4
4
|
### 🎉 Features
|
|
5
5
|
|
|
6
|
-
- Adds
|
|
6
|
+
- Adds six seed colour properties to `codeassembly-agent-logic/react/styles.css` (`--agent-logic-surface`, `--agent-logic-text`, `--agent-logic-accent`, `--agent-logic-global`, `--agent-logic-waiting`, and `--agent-logic-warning`), from which each component property, such as `--agent-logic-border` or `--agent-logic-selected`, derives its default, and keeps each component property available to override one part. (#2296)
|
|
7
|
+
- Changes the default palette and tints the canvas ground with the accent seed, with dots coloured from the text and accent seeds, while React Flow's `--xy-background-color` and `--xy-background-pattern-color` still replace the ground and the dots. (#2296)
|
|
8
|
+
- Adds a dotted underline in the global colour to an ambient instruction on the canvas, the same mark that the prompt pane gives ambient text. (#2296)
|
|
9
|
+
|
|
10
|
+
### 🐛 Bug fixes
|
|
11
|
+
|
|
12
|
+
- Fixes the issue that a consumer's layered reset, such as Tailwind's preflight, removed the padding that React Flow gives the canvas attribution, by setting that padding in the package's `styles.css` outside any cascade layer. (#2295)
|
|
7
13
|
<!-- /section:release-notes -->
|
|
8
14
|
|
|
9
15
|
<!-- readme-type: library -->
|
|
@@ -118,22 +124,35 @@ The package draws the chart; the page around it is the app's. The app renders th
|
|
|
118
124
|
|
|
119
125
|
## Styling and theming
|
|
120
126
|
|
|
121
|
-
Import `codeassembly-agent-logic/react/styles.css` once, through a bundler: It imports React Flow's base styles from this package's own dependency.
|
|
127
|
+
Import `codeassembly-agent-logic/react/styles.css` once, through a bundler: It imports React Flow's base styles from this package's own dependency. Its defaults form a finished light theme, which applies under any `color-scheme`.
|
|
128
|
+
|
|
129
|
+
The colours come in two tiers of custom properties. The seeds are a few base colours, and every other colour derives from them, so an app sets the seeds alone to retheme the canvas and its key, for example to map them to its design tokens or to make a dark theme:
|
|
122
130
|
|
|
123
131
|
```css
|
|
124
132
|
:root {
|
|
133
|
+
--agent-logic-surface: var(--ds-surface);
|
|
125
134
|
--agent-logic-text: var(--ds-text);
|
|
126
|
-
--agent-logic-
|
|
135
|
+
--agent-logic-accent: var(--ds-border-selected);
|
|
127
136
|
}
|
|
128
137
|
```
|
|
129
138
|
|
|
130
|
-
The
|
|
139
|
+
Set the properties on `:root`, or on an ancestor of both the canvas and any key that the app renders outside it. The seeds, whose defaults [`styles.css`](src/react/styles.css) declares:
|
|
131
140
|
|
|
132
|
-
- `--agent-logic-
|
|
133
|
-
- `--agent-logic-text
|
|
134
|
-
- `--agent-logic-
|
|
141
|
+
- `--agent-logic-surface`: the background of a state and of a label
|
|
142
|
+
- `--agent-logic-text`: the text
|
|
143
|
+
- `--agent-logic-accent`: selection and focus
|
|
135
144
|
- `--agent-logic-global`, `--agent-logic-waiting`, `--agent-logic-warning`: the marks for an any-time transition, a state that waits for the user, and an unreachable state
|
|
136
|
-
|
|
145
|
+
|
|
146
|
+
The component properties, which an app sets to override one part; `styles.css` states each derivation:
|
|
147
|
+
|
|
148
|
+
- `--agent-logic-ambient-background`, `--agent-logic-compound-background`, `--agent-logic-hover-background`: backgrounds, from `text` (and `surface` for a compound state)
|
|
149
|
+
- `--agent-logic-node-background`, `--agent-logic-tooltip-text`: from `surface`
|
|
150
|
+
- `--agent-logic-selected-background`: from `accent` and `surface`
|
|
151
|
+
- `--agent-logic-text-subtle`, `--agent-logic-border`, `--agent-logic-border-strong`: from `text` and `surface`
|
|
152
|
+
- `--agent-logic-tooltip-background`: from `text`
|
|
153
|
+
- `--agent-logic-focus-ring`, `--agent-logic-selected`: from `accent`
|
|
154
|
+
|
|
155
|
+
The canvas's ground and its dots also derive from the seeds; React Flow's `--xy-background-color` and `--xy-background-pattern-color` replace them. `--agent-logic-font-code` sets the code font.
|
|
137
156
|
|
|
138
157
|
## The bin
|
|
139
158
|
|
|
@@ -1,29 +1,59 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Styles for the statechart canvas and the marks of its key.
|
|
3
|
-
*
|
|
2
|
+
* Styles for the statechart canvas and the marks of its key. The colours come in two tiers of custom properties: the
|
|
3
|
+
* seeds, declared on :root, and the component properties, each of which derives its default from the seeds. A consumer
|
|
4
|
+
* sets either tier on :root or on an ancestor of the canvas and its key.
|
|
4
5
|
*/
|
|
5
6
|
|
|
6
7
|
@import '@xyflow/react/style.css';
|
|
7
8
|
|
|
8
9
|
:where(:root) {
|
|
9
|
-
--agent-logic-
|
|
10
|
-
--agent-logic-border: #0b120e24;
|
|
11
|
-
--agent-logic-border-strong: #758195;
|
|
12
|
-
--agent-logic-compound-background: #f7f8f9;
|
|
13
|
-
--agent-logic-focus-ring: #2684ff;
|
|
10
|
+
--agent-logic-accent: #2346c4;
|
|
14
11
|
--agent-logic-font-code: ui-monospace, monospace;
|
|
15
|
-
--agent-logic-global: #
|
|
16
|
-
--agent-logic-
|
|
17
|
-
--agent-logic-
|
|
18
|
-
--agent-logic-
|
|
19
|
-
--agent-logic-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
--agent-logic-global: #b0307f;
|
|
13
|
+
--agent-logic-surface: #ffffff;
|
|
14
|
+
--agent-logic-text: #1c1f24;
|
|
15
|
+
--agent-logic-waiting: #0e9f3c;
|
|
16
|
+
--agent-logic-warning: #c9520a;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Each component property resolves here, on the elements that read it, rather than on :root, so that seeds set on any
|
|
21
|
+
* ancestor of the canvas or of a key entry reach the derivation. Every rule below reads the private property.
|
|
22
|
+
*/
|
|
23
|
+
:where(.statechart-canvas, .arrowhead-defs, .canvas-key__swatch, .canvas-key__word, .mark-glyph) {
|
|
24
|
+
--_agent-logic-ambient-background: var(
|
|
25
|
+
--agent-logic-ambient-background,
|
|
26
|
+
color-mix(in srgb, var(--agent-logic-text) 7%, transparent)
|
|
27
|
+
);
|
|
28
|
+
--_agent-logic-border: var(
|
|
29
|
+
--agent-logic-border,
|
|
30
|
+
color-mix(in srgb, var(--agent-logic-text) 58%, var(--agent-logic-surface))
|
|
31
|
+
);
|
|
32
|
+
--_agent-logic-border-strong: var(
|
|
33
|
+
--agent-logic-border-strong,
|
|
34
|
+
color-mix(in srgb, var(--agent-logic-text) 63%, var(--agent-logic-surface))
|
|
35
|
+
);
|
|
36
|
+
--_agent-logic-compound-background: var(
|
|
37
|
+
--agent-logic-compound-background,
|
|
38
|
+
color-mix(in srgb, var(--agent-logic-text) 5%, var(--agent-logic-surface))
|
|
39
|
+
);
|
|
40
|
+
--_agent-logic-focus-ring: var(--agent-logic-focus-ring, var(--agent-logic-accent));
|
|
41
|
+
--_agent-logic-hover-background: var(
|
|
42
|
+
--agent-logic-hover-background,
|
|
43
|
+
color-mix(in srgb, var(--agent-logic-text) 12.5%, transparent)
|
|
44
|
+
);
|
|
45
|
+
--_agent-logic-node-background: var(--agent-logic-node-background, var(--agent-logic-surface));
|
|
46
|
+
--_agent-logic-selected: var(--agent-logic-selected, var(--agent-logic-accent));
|
|
47
|
+
--_agent-logic-selected-background: var(
|
|
48
|
+
--agent-logic-selected-background,
|
|
49
|
+
color-mix(in srgb, var(--agent-logic-accent) 13%, var(--agent-logic-surface))
|
|
50
|
+
);
|
|
51
|
+
--_agent-logic-text-subtle: var(
|
|
52
|
+
--agent-logic-text-subtle,
|
|
53
|
+
color-mix(in srgb, var(--agent-logic-text) 78%, var(--agent-logic-surface))
|
|
54
|
+
);
|
|
55
|
+
--_agent-logic-tooltip-background: var(--agent-logic-tooltip-background, var(--agent-logic-text));
|
|
56
|
+
--_agent-logic-tooltip-text: var(--agent-logic-tooltip-text, var(--agent-logic-surface));
|
|
27
57
|
}
|
|
28
58
|
|
|
29
59
|
.statechart-canvas {
|
|
@@ -42,9 +72,23 @@
|
|
|
42
72
|
block-size: auto;
|
|
43
73
|
}
|
|
44
74
|
|
|
45
|
-
/*
|
|
75
|
+
/*
|
|
76
|
+
* Keep the library's attribution at the page's 12px text floor, padded for that size. The library's own padding is in
|
|
77
|
+
* its cascade layer, which a consumer's layered reset, such as Tailwind's preflight, can override.
|
|
78
|
+
*/
|
|
46
79
|
.statechart-canvas .react-flow__attribution {
|
|
47
80
|
font-size: 12px;
|
|
81
|
+
padding: 3px 6px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Tint the ground under the cards. A consumer's `--xy-background-color` or `--xy-background-pattern-color` wins. */
|
|
85
|
+
.statechart-canvas .react-flow {
|
|
86
|
+
--xy-background-color-default: color-mix(in srgb, var(--agent-logic-accent) 9%, var(--agent-logic-surface));
|
|
87
|
+
--xy-background-pattern-dots-color-default: color-mix(
|
|
88
|
+
in srgb,
|
|
89
|
+
color-mix(in srgb, var(--agent-logic-text), var(--agent-logic-accent)) 40%,
|
|
90
|
+
var(--xy-background-color, var(--xy-background-color-default))
|
|
91
|
+
);
|
|
48
92
|
}
|
|
49
93
|
|
|
50
94
|
/* -- Interaction states, shared by every node and edge -- */
|
|
@@ -55,7 +99,7 @@
|
|
|
55
99
|
}
|
|
56
100
|
|
|
57
101
|
.statechart-canvas .react-flow__node:focus-visible {
|
|
58
|
-
outline: 2px solid var(--
|
|
102
|
+
outline: 2px solid var(--_agent-logic-focus-ring);
|
|
59
103
|
outline-offset: 2px;
|
|
60
104
|
}
|
|
61
105
|
|
|
@@ -80,29 +124,29 @@
|
|
|
80
124
|
max-inline-size: none;
|
|
81
125
|
padding: 0;
|
|
82
126
|
overflow: hidden;
|
|
83
|
-
background-color: var(--
|
|
127
|
+
background-color: var(--_agent-logic-border-strong);
|
|
84
128
|
color: transparent;
|
|
85
129
|
font-size: 0;
|
|
86
130
|
transform: none;
|
|
87
131
|
}
|
|
88
132
|
|
|
89
133
|
.statechart-canvas .state-node__flow-name--hidden:hover {
|
|
90
|
-
background-color: var(--
|
|
134
|
+
background-color: var(--_agent-logic-selected);
|
|
91
135
|
}
|
|
92
136
|
|
|
93
137
|
/* A final state's outline is its mark, so pointing at or selecting it adds only the ring. */
|
|
94
138
|
.statechart-canvas .react-flow__node:hover > .state-node:not(.state-node--final),
|
|
95
139
|
.statechart-canvas .react-flow__node.selected > .state-node:not(.state-node--final) {
|
|
96
|
-
border-color: var(--
|
|
140
|
+
border-color: var(--_agent-logic-border-strong);
|
|
97
141
|
}
|
|
98
142
|
|
|
99
143
|
.statechart-canvas .react-flow__node.selected > .state-node {
|
|
100
|
-
box-shadow: 0 0 0 1px var(--
|
|
144
|
+
box-shadow: 0 0 0 1px var(--_agent-logic-selected);
|
|
101
145
|
}
|
|
102
146
|
|
|
103
147
|
.statechart-canvas .react-flow__edge:hover .transition-edge__path,
|
|
104
148
|
.statechart-canvas .react-flow__edge.selected .transition-edge__path {
|
|
105
|
-
stroke: var(--
|
|
149
|
+
stroke: var(--_agent-logic-selected);
|
|
106
150
|
stroke-width: 2.5;
|
|
107
151
|
marker-end: url('#arrowhead-selected');
|
|
108
152
|
}
|
|
@@ -110,7 +154,7 @@
|
|
|
110
154
|
.statechart-canvas .react-flow__edge:focus-visible .transition-edge__label,
|
|
111
155
|
.statechart-canvas .react-flow__edge.selected .transition-edge__label {
|
|
112
156
|
/* Inset, because the label's foreignObject clips anything outside it. */
|
|
113
|
-
outline: 2px solid var(--
|
|
157
|
+
outline: 2px solid var(--_agent-logic-focus-ring);
|
|
114
158
|
outline-offset: -2px;
|
|
115
159
|
}
|
|
116
160
|
|
|
@@ -120,7 +164,7 @@
|
|
|
120
164
|
|
|
121
165
|
/* The lower levels of detail hide the label, so the route shows focus too. */
|
|
122
166
|
.statechart-canvas .react-flow__edge:focus-visible .transition-edge__path {
|
|
123
|
-
stroke: var(--
|
|
167
|
+
stroke: var(--_agent-logic-focus-ring);
|
|
124
168
|
stroke-width: 3;
|
|
125
169
|
marker-end: url('#arrowhead-selected');
|
|
126
170
|
}
|
|
@@ -148,8 +192,9 @@
|
|
|
148
192
|
}
|
|
149
193
|
|
|
150
194
|
.statechart-canvas__flow--shapes .state-node__ambient {
|
|
151
|
-
background: var(--
|
|
195
|
+
background: var(--_agent-logic-ambient-background);
|
|
152
196
|
color: transparent;
|
|
197
|
+
text-decoration: none;
|
|
153
198
|
}
|
|
154
199
|
|
|
155
200
|
/* -- States -- */
|
|
@@ -158,9 +203,9 @@
|
|
|
158
203
|
block-size: 100%;
|
|
159
204
|
box-sizing: border-box;
|
|
160
205
|
padding: 8px 12px;
|
|
161
|
-
border: 1px solid var(--
|
|
206
|
+
border: 1px solid var(--_agent-logic-border);
|
|
162
207
|
border-radius: 8px;
|
|
163
|
-
background: var(--
|
|
208
|
+
background: var(--_agent-logic-node-background);
|
|
164
209
|
color: var(--agent-logic-text);
|
|
165
210
|
font-size: 14px;
|
|
166
211
|
line-height: 18px;
|
|
@@ -168,7 +213,7 @@
|
|
|
168
213
|
}
|
|
169
214
|
|
|
170
215
|
.state-node--compound {
|
|
171
|
-
background: var(--
|
|
216
|
+
background: var(--_agent-logic-compound-background);
|
|
172
217
|
}
|
|
173
218
|
|
|
174
219
|
/* A thicker border takes its width from the padding, so the content keeps its place. */
|
|
@@ -179,7 +224,7 @@
|
|
|
179
224
|
|
|
180
225
|
.state-node--inferred {
|
|
181
226
|
padding: 7px 11px;
|
|
182
|
-
border: 2px dashed var(--
|
|
227
|
+
border: 2px dashed var(--_agent-logic-text-subtle);
|
|
183
228
|
}
|
|
184
229
|
|
|
185
230
|
/* An inferred final state keeps its dash and takes the final outline's colour. */
|
|
@@ -243,17 +288,17 @@
|
|
|
243
288
|
}
|
|
244
289
|
|
|
245
290
|
.mark-glyph__cutout {
|
|
246
|
-
fill: var(--
|
|
291
|
+
fill: var(--_agent-logic-node-background);
|
|
247
292
|
}
|
|
248
293
|
|
|
249
294
|
.state-node__inferred {
|
|
250
|
-
color: var(--
|
|
295
|
+
color: var(--_agent-logic-text-subtle);
|
|
251
296
|
font-size: 12px;
|
|
252
297
|
font-style: italic;
|
|
253
298
|
}
|
|
254
299
|
|
|
255
300
|
.state-node__gate {
|
|
256
|
-
color: var(--
|
|
301
|
+
color: var(--_agent-logic-text-subtle);
|
|
257
302
|
font-size: 12px;
|
|
258
303
|
}
|
|
259
304
|
|
|
@@ -273,7 +318,7 @@
|
|
|
273
318
|
}
|
|
274
319
|
|
|
275
320
|
.state-node__preamble-heading {
|
|
276
|
-
color: var(--
|
|
321
|
+
color: var(--_agent-logic-text-subtle);
|
|
277
322
|
font-size: 12px;
|
|
278
323
|
line-height: 16px;
|
|
279
324
|
}
|
|
@@ -316,21 +361,24 @@
|
|
|
316
361
|
font-size: 14px;
|
|
317
362
|
line-height: 20px;
|
|
318
363
|
text-align: start;
|
|
364
|
+
/* The prompt pane's mark for ambient text, beside the global colour. */
|
|
365
|
+
text-decoration: underline dotted 2px var(--agent-logic-global);
|
|
366
|
+
text-underline-offset: 3px;
|
|
319
367
|
}
|
|
320
368
|
|
|
321
369
|
.state-node__ambient:hover {
|
|
322
|
-
background: var(--
|
|
370
|
+
background: var(--_agent-logic-hover-background);
|
|
323
371
|
}
|
|
324
372
|
|
|
325
373
|
.state-node__ambient:focus-visible {
|
|
326
|
-
outline: 2px solid var(--
|
|
374
|
+
outline: 2px solid var(--_agent-logic-focus-ring);
|
|
327
375
|
outline-offset: 1px;
|
|
328
376
|
}
|
|
329
377
|
|
|
330
378
|
.state-node__ambient--selected,
|
|
331
379
|
.state-node__ambient--selected:hover {
|
|
332
|
-
background: var(--
|
|
333
|
-
box-shadow: inset 2px 0 0 var(--
|
|
380
|
+
background: var(--_agent-logic-selected-background);
|
|
381
|
+
box-shadow: inset 2px 0 0 var(--_agent-logic-selected);
|
|
334
382
|
}
|
|
335
383
|
|
|
336
384
|
.state-node__title {
|
|
@@ -344,7 +392,7 @@
|
|
|
344
392
|
}
|
|
345
393
|
|
|
346
394
|
.state-node__actions-heading {
|
|
347
|
-
color: var(--
|
|
395
|
+
color: var(--_agent-logic-text-subtle);
|
|
348
396
|
font-size: 12px;
|
|
349
397
|
}
|
|
350
398
|
|
|
@@ -369,7 +417,7 @@
|
|
|
369
417
|
}
|
|
370
418
|
|
|
371
419
|
.state-node__more {
|
|
372
|
-
color: var(--
|
|
420
|
+
color: var(--_agent-logic-text-subtle);
|
|
373
421
|
font-size: 12px;
|
|
374
422
|
}
|
|
375
423
|
|
|
@@ -394,8 +442,8 @@
|
|
|
394
442
|
max-inline-size: 240px;
|
|
395
443
|
padding: 2px 6px;
|
|
396
444
|
border-radius: 3px;
|
|
397
|
-
background: var(--
|
|
398
|
-
color: var(--
|
|
445
|
+
background: var(--_agent-logic-tooltip-background);
|
|
446
|
+
color: var(--_agent-logic-tooltip-text);
|
|
399
447
|
font-size: 12px;
|
|
400
448
|
line-height: 16px;
|
|
401
449
|
overflow-wrap: anywhere;
|
|
@@ -411,12 +459,12 @@
|
|
|
411
459
|
}
|
|
412
460
|
|
|
413
461
|
.transition-edge__word {
|
|
414
|
-
color: var(--
|
|
462
|
+
color: var(--_agent-logic-text-subtle);
|
|
415
463
|
font-style: italic;
|
|
416
464
|
}
|
|
417
465
|
|
|
418
466
|
.transition-edge__path {
|
|
419
|
-
stroke: var(--
|
|
467
|
+
stroke: var(--_agent-logic-border-strong);
|
|
420
468
|
stroke-width: 1.5;
|
|
421
469
|
marker-end: url('#arrowhead-ordinary');
|
|
422
470
|
}
|
|
@@ -434,7 +482,7 @@
|
|
|
434
482
|
}
|
|
435
483
|
|
|
436
484
|
.arrowhead--arrowhead-ordinary {
|
|
437
|
-
fill: var(--
|
|
485
|
+
fill: var(--_agent-logic-border-strong);
|
|
438
486
|
}
|
|
439
487
|
|
|
440
488
|
.arrowhead--arrowhead-global {
|
|
@@ -442,7 +490,7 @@
|
|
|
442
490
|
}
|
|
443
491
|
|
|
444
492
|
.arrowhead--arrowhead-selected {
|
|
445
|
-
fill: var(--
|
|
493
|
+
fill: var(--_agent-logic-selected);
|
|
446
494
|
}
|
|
447
495
|
|
|
448
496
|
.transition-edge__path--inferred {
|
|
@@ -473,10 +521,10 @@
|
|
|
473
521
|
|
|
474
522
|
.canvas-key__swatch--inferred {
|
|
475
523
|
block-size: 12px;
|
|
476
|
-
border: 2px dashed var(--
|
|
524
|
+
border: 2px dashed var(--_agent-logic-text-subtle);
|
|
477
525
|
border-radius: 2px;
|
|
478
526
|
}
|
|
479
527
|
|
|
480
528
|
.canvas-key__word {
|
|
481
|
-
color: var(--
|
|
529
|
+
color: var(--_agent-logic-text-subtle);
|
|
482
530
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeassembly-agent-logic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Model of an agent prompt's states and transitions, with React and server entries for the apps that present it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
],
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@williamthorsen/toolbelt.errors": "0.11.3",
|
|
68
|
-
"@xyflow/react": "13.0.
|
|
68
|
+
"@xyflow/react": "13.0.2",
|
|
69
69
|
"elkjs": "0.12.1",
|
|
70
70
|
"zod": "4.6.7"
|
|
71
71
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@types/react": "19.3.0",
|
|
81
81
|
"@types/react-dom": "19.3.0",
|
|
82
82
|
"@vitejs/plugin-react": "6.3.0",
|
|
83
|
-
"@williamthorsen/nmr": "2.
|
|
83
|
+
"@williamthorsen/nmr": "2.3.0",
|
|
84
84
|
"@williamthorsen/toolbelt.acp": "0.3.2",
|
|
85
85
|
"@williamthorsen/toolbelt.llm": "0.2.0",
|
|
86
86
|
"eslint": "10.15.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"react": "19.3.1",
|
|
93
93
|
"react-dom": "19.3.1",
|
|
94
94
|
"vite": "8.3.8",
|
|
95
|
-
"vitest": "5.1.
|
|
95
|
+
"vitest": "5.1.1",
|
|
96
96
|
"xstate": "5.33.4"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|