@datalayer/design 1.0.14 → 1.0.16

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 (40) hide show
  1. package/lib/pages/IconsPage.js +45 -23
  2. package/lib/pages/SvgPage.js +27 -7
  3. package/lib/svg/SvgAgentRuntimes.js +1 -1
  4. package/lib/svg/SvgOg.js +3 -3
  5. package/lib/svg/SvgOgStacked.js +1 -1
  6. package/lib/svg/SvgSessions.d.ts +5 -0
  7. package/lib/svg/SvgSessions.js +167 -0
  8. package/lib/svg/gallery.d.ts +1 -1
  9. package/lib/svg/gallery.js +13 -0
  10. package/lib/svg/index.d.ts +2 -0
  11. package/lib/svg/index.js +2 -0
  12. package/lib/svg/pains/PainFrame.d.ts +156 -0
  13. package/lib/svg/pains/PainFrame.js +117 -0
  14. package/lib/svg/pains/SvgPainAgentTeams.d.ts +13 -0
  15. package/lib/svg/pains/SvgPainAgentTeams.js +37 -0
  16. package/lib/svg/pains/SvgPainAgenticUi.d.ts +12 -0
  17. package/lib/svg/pains/SvgPainAgenticUi.js +14 -0
  18. package/lib/svg/pains/SvgPainBenchmarks.d.ts +13 -0
  19. package/lib/svg/pains/SvgPainBenchmarks.js +23 -0
  20. package/lib/svg/pains/SvgPainChannels.d.ts +13 -0
  21. package/lib/svg/pains/SvgPainChannels.js +53 -0
  22. package/lib/svg/pains/SvgPainLibrary.d.ts +13 -0
  23. package/lib/svg/pains/SvgPainLibrary.js +13 -0
  24. package/lib/svg/pains/SvgPainObservability.d.ts +13 -0
  25. package/lib/svg/pains/SvgPainObservability.js +27 -0
  26. package/lib/svg/pains/SvgPainPlugins.d.ts +13 -0
  27. package/lib/svg/pains/SvgPainPlugins.js +25 -0
  28. package/lib/svg/pains/SvgPainPolicies.d.ts +13 -0
  29. package/lib/svg/pains/SvgPainPolicies.js +29 -0
  30. package/lib/svg/pains/SvgPainProtocols.d.ts +12 -0
  31. package/lib/svg/pains/SvgPainProtocols.js +18 -0
  32. package/lib/svg/pains/SvgPainSandboxes.d.ts +13 -0
  33. package/lib/svg/pains/SvgPainSandboxes.js +11 -0
  34. package/lib/svg/pains/SvgPainSecurity.d.ts +13 -0
  35. package/lib/svg/pains/SvgPainSecurity.js +19 -0
  36. package/lib/svg/pains/SvgPainStudio.d.ts +12 -0
  37. package/lib/svg/pains/SvgPainStudio.js +15 -0
  38. package/lib/svg/pains/index.d.ts +36 -0
  39. package/lib/svg/pains/index.js +32 -0
  40. package/package.json +4 -2
@@ -0,0 +1,156 @@
1
+ /**
2
+ * The frame the twelve pain drawings share, and the few shapes they are
3
+ * drawn with.
4
+ *
5
+ * Every pain is read left to right: **the pain** on the left, drawn still,
6
+ * in the muted ink of the theme with one hurt spot in its warm ink; **the
7
+ * answer** on the right, drawn in the theme's vivid inks, and the only half
8
+ * that moves. A seam runs down the middle with a chevron on it: what the
9
+ * feature turns the one into the other.
10
+ *
11
+ * - 800 × 400, the ground of the newest drawings (`SvgSessions`): the
12
+ * palette's background, a dot grid every 24 units, a wash on each side
13
+ * (the warm one behind the pain, the agent's behind the answer).
14
+ * - Strokes 1.2 for structure, 2 for what matters; panels with a radius of
15
+ * 8, filled with `bgPanel`.
16
+ * - Labels are few, short and in English, set in a monospace or a system
17
+ * stack so the drawing rasterises the same wherever it is exported: the
18
+ * pain's number top left, the feature's name top right.
19
+ * - Colours all come from the palette (`useColorPalette`, or a `palette`
20
+ * given), so a drawing follows the theme and its light or dark mode; on a
21
+ * light theme the drawing goes through the light boost filter, as the
22
+ * others do.
23
+ * - The motion stops under `prefers-reduced-motion`.
24
+ */
25
+ import { type ReactNode } from 'react';
26
+ import { type ColorPalette } from '@datalayer/primer-addons';
27
+ export declare const PAIN_WIDTH = 800;
28
+ export declare const PAIN_HEIGHT = 400;
29
+ /** The seam between the pain and the answer. */
30
+ export declare const SEAM_X = 400;
31
+ export declare const SANS = "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";
32
+ export declare const MONO = "ui-monospace, SFMono-Regular, Menlo, monospace";
33
+ /** The inks of a pain drawing, read from the palette. */
34
+ export type PainInks = {
35
+ /** The hurt spot of the pain. */
36
+ pain: string;
37
+ /** The structure of the pain: what is still, muted. */
38
+ muted: string;
39
+ /** The agent, and the answer's first ink. */
40
+ answer: string;
41
+ /** The answer's other inks. */
42
+ second: string;
43
+ third: string;
44
+ fourth: string;
45
+ /** What waits for a person: asks first, approves. */
46
+ ask: string;
47
+ };
48
+ /** The class names of the shared motion, scoped to one drawing. */
49
+ export type PainMotion = {
50
+ /** Opacity breathing in and out. */
51
+ breathe: string;
52
+ /** A dashed stroke marching along its path. */
53
+ march: string;
54
+ /** A turn round the `transform-origin` given in the element's style. */
55
+ spin: string;
56
+ /** A dot along the `offset-path` given in the element's style. */
57
+ travel: string;
58
+ };
59
+ export type PainKit = {
60
+ p: ColorPalette;
61
+ ink: PainInks;
62
+ motion: PainMotion;
63
+ /** An id unique to this drawing, for a gradient or a pattern of its own. */
64
+ ref: (name: string) => string;
65
+ };
66
+ export type PainFrameProps = {
67
+ /** The pain's number, 1 to 12. */
68
+ number: number;
69
+ /** The feature's name, top right. */
70
+ feature: string;
71
+ /** The pain in words: the drawing's title. */
72
+ title: string;
73
+ /** What the drawing shows, in a sentence or two. */
74
+ desc: string;
75
+ palette?: ColorPalette;
76
+ /** The drawing: the pain left of the seam, the answer right of it. */
77
+ children: (kit: PainKit) => ReactNode;
78
+ };
79
+ export declare const inksOf: (p: ColorPalette) => PainInks;
80
+ /**
81
+ * The opacity of a wash of colour: as given on a dark theme, lighter on a
82
+ * light one, where the light boost filter thickens every translucent fill.
83
+ */
84
+ export declare const wash: (p: ColorPalette, opacity: number) => number;
85
+ export declare function PainFrame({ number, feature, title, desc, palette, children }: PainFrameProps): import("react").JSX.Element;
86
+ /**
87
+ * An agent: a round body with a four-pointed spark in it. `dim` draws it as
88
+ * the pain does, muted and dashed.
89
+ */
90
+ export declare function Agent({ x, y, r, ink, p, dim, halo, }: {
91
+ x: number;
92
+ y: number;
93
+ r?: number;
94
+ ink: string;
95
+ p: ColorPalette;
96
+ dim?: boolean;
97
+ halo?: boolean;
98
+ }): import("react").JSX.Element;
99
+ /** A panel: a rounded card in `bgPanel`, edged in an ink. */
100
+ export declare function Panel({ x, y, w, h, ink, p, dashed, rx, strokeOpacity, fill, }: {
101
+ x: number;
102
+ y: number;
103
+ w: number;
104
+ h: number;
105
+ ink: string;
106
+ p: ColorPalette;
107
+ dashed?: boolean;
108
+ rx?: number;
109
+ strokeOpacity?: number;
110
+ fill?: string;
111
+ }): import("react").JSX.Element;
112
+ /** Lines of text, drawn as bars. */
113
+ export declare function Bars({ x, y, widths, ink, gap, h, opacity, }: {
114
+ x: number;
115
+ y: number;
116
+ widths: number[];
117
+ ink: string;
118
+ gap?: number;
119
+ h?: number;
120
+ opacity?: number;
121
+ }): import("react").JSX.Element;
122
+ /** A tick. */
123
+ export declare function Check({ x, y, s, ink, width }: {
124
+ x: number;
125
+ y: number;
126
+ s?: number;
127
+ ink: string;
128
+ width?: number;
129
+ }): import("react").JSX.Element;
130
+ /** A cross. */
131
+ export declare function Cross({ x, y, s, ink, width }: {
132
+ x: number;
133
+ y: number;
134
+ s?: number;
135
+ ink: string;
136
+ width?: number;
137
+ }): import("react").JSX.Element;
138
+ /** A short label, in capitals. */
139
+ export declare function Label({ x, y, children, ink, anchor, size, }: {
140
+ x: number;
141
+ y: number;
142
+ children: ReactNode;
143
+ ink: string;
144
+ anchor?: 'start' | 'middle' | 'end';
145
+ size?: number;
146
+ }): import("react").JSX.Element;
147
+ /** A pill with a short label in it. */
148
+ export declare function Chip({ x, y, w, label, ink, p, filled, }: {
149
+ x: number;
150
+ y: number;
151
+ w: number;
152
+ label: string;
153
+ ink: string;
154
+ p: ColorPalette;
155
+ filled?: boolean;
156
+ }): import("react").JSX.Element;
@@ -0,0 +1,117 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright (c) 2022-2026 Datalayer, Inc.
4
+ *
5
+ * CC BY 4.0 License
6
+ */
7
+ /**
8
+ * The frame the twelve pain drawings share, and the few shapes they are
9
+ * drawn with.
10
+ *
11
+ * Every pain is read left to right: **the pain** on the left, drawn still,
12
+ * in the muted ink of the theme with one hurt spot in its warm ink; **the
13
+ * answer** on the right, drawn in the theme's vivid inks, and the only half
14
+ * that moves. A seam runs down the middle with a chevron on it: what the
15
+ * feature turns the one into the other.
16
+ *
17
+ * - 800 × 400, the ground of the newest drawings (`SvgSessions`): the
18
+ * palette's background, a dot grid every 24 units, a wash on each side
19
+ * (the warm one behind the pain, the agent's behind the answer).
20
+ * - Strokes 1.2 for structure, 2 for what matters; panels with a radius of
21
+ * 8, filled with `bgPanel`.
22
+ * - Labels are few, short and in English, set in a monospace or a system
23
+ * stack so the drawing rasterises the same wherever it is exported: the
24
+ * pain's number top left, the feature's name top right.
25
+ * - Colours all come from the palette (`useColorPalette`, or a `palette`
26
+ * given), so a drawing follows the theme and its light or dark mode; on a
27
+ * light theme the drawing goes through the light boost filter, as the
28
+ * others do.
29
+ * - The motion stops under `prefers-reduced-motion`.
30
+ */
31
+ import { useId } from 'react';
32
+ import { useColorPalette, LightBoostFilter } from '@datalayer/primer-addons';
33
+ export const PAIN_WIDTH = 800;
34
+ export const PAIN_HEIGHT = 400;
35
+ /** The seam between the pain and the answer. */
36
+ export const SEAM_X = 400;
37
+ export const SANS = "system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";
38
+ export const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';
39
+ export const inksOf = (p) => ({
40
+ pain: p.isLight ? p.blaze : p.flame,
41
+ muted: p.textMuted,
42
+ answer: p.glow,
43
+ second: p.surge,
44
+ third: p.pop,
45
+ fourth: p.spark,
46
+ ask: p.isLight ? p.flame : p.gold,
47
+ });
48
+ /**
49
+ * The opacity of a wash of colour: as given on a dark theme, lighter on a
50
+ * light one, where the light boost filter thickens every translucent fill.
51
+ */
52
+ export const wash = (p, opacity) => (p.isLight ? opacity * 0.15 : opacity);
53
+ export function PainFrame({ number, feature, title, desc, palette, children }) {
54
+ const auto = useColorPalette();
55
+ const p = palette ?? auto;
56
+ const id = useId().replace(/[^a-zA-Z0-9_-]/g, '');
57
+ const ref = (name) => `pain-${id}-${name}`;
58
+ const ink = inksOf(p);
59
+ const motion = {
60
+ breathe: ref('breathe'),
61
+ march: ref('march'),
62
+ spin: ref('spin'),
63
+ travel: ref('travel'),
64
+ };
65
+ return (_jsxs("svg", { viewBox: `0 0 ${PAIN_WIDTH} ${PAIN_HEIGHT}`, xmlns: "http://www.w3.org/2000/svg", style: { width: '100%', height: 'auto', display: 'block' }, role: "img", "aria-labelledby": `${ref('title')} ${ref('desc')}`, children: [_jsx("title", { id: ref('title'), children: title }), _jsx("desc", { id: ref('desc'), children: desc }), _jsxs("defs", { children: [_jsx(LightBoostFilter, {}), _jsx("style", { children: `
66
+ @keyframes ${ref('k-breathe')} { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
67
+ @keyframes ${ref('k-march')} { to { stroke-dashoffset: -18; } }
68
+ @keyframes ${ref('k-spin')} { to { transform: rotate(360deg); } }
69
+ @keyframes ${ref('k-travel')} {
70
+ 0% { offset-distance: 0%; opacity: 0; }
71
+ 10% { opacity: 1; }
72
+ 90% { opacity: 1; }
73
+ 100% { offset-distance: 100%; opacity: 0; }
74
+ }
75
+ .${motion.breathe} { animation: ${ref('k-breathe')} 3.2s ease-in-out infinite; }
76
+ .${motion.march} { animation: ${ref('k-march')} 1.8s linear infinite; }
77
+ .${motion.spin} { animation: ${ref('k-spin')} 36s linear infinite; }
78
+ .${motion.travel} { opacity: 0; animation: ${ref('k-travel')} 4.8s linear infinite; }
79
+ @media (prefers-reduced-motion: reduce) {
80
+ .${motion.breathe}, .${motion.march}, .${motion.spin}, .${motion.travel} { animation: none; }
81
+ .${motion.travel} { opacity: 1; offset-distance: 60%; }
82
+ }
83
+ ` }), _jsx("pattern", { id: ref('dots'), width: "24", height: "24", patternUnits: "userSpaceOnUse", children: _jsx("circle", { cx: "12", cy: "12", r: "0.9", fill: p.textMuted, opacity: p.isLight ? '0.22' : '0.16' }) }), _jsxs("radialGradient", { id: ref('wash-pain'), cx: "22%", cy: "55%", r: "38%", children: [_jsx("stop", { offset: "0%", stopColor: ink.pain, stopOpacity: p.isLight ? '0.07' : '0.10' }), _jsx("stop", { offset: "100%", stopColor: ink.pain, stopOpacity: "0" })] }), _jsxs("radialGradient", { id: ref('wash-answer'), cx: "76%", cy: "50%", r: "42%", children: [_jsx("stop", { offset: "0%", stopColor: ink.answer, stopOpacity: "0.16" }), _jsx("stop", { offset: "100%", stopColor: ink.answer, stopOpacity: "0" })] }), _jsxs("linearGradient", { id: ref('seam'), x1: "0", y1: "0", x2: "0", y2: "1", children: [_jsx("stop", { offset: "0%", stopColor: p.textMuted, stopOpacity: "0" }), _jsx("stop", { offset: "25%", stopColor: p.textMuted, stopOpacity: "0.45" }), _jsx("stop", { offset: "75%", stopColor: p.textMuted, stopOpacity: "0.45" }), _jsx("stop", { offset: "100%", stopColor: p.textMuted, stopOpacity: "0" })] })] }), _jsx("rect", { width: PAIN_WIDTH, height: PAIN_HEIGHT, fill: p.bg }), _jsx("rect", { width: PAIN_WIDTH, height: PAIN_HEIGHT, fill: `url(#${ref('dots')})` }), _jsx("rect", { width: PAIN_WIDTH, height: PAIN_HEIGHT, fill: `url(#${ref('wash-pain')})` }), _jsx("rect", { width: PAIN_WIDTH, height: PAIN_HEIGHT, fill: `url(#${ref('wash-answer')})` }), _jsxs("g", { "aria-hidden": "true", filter: p.isLight ? 'url(#svgLightBoost)' : undefined, children: [_jsx("text", { x: "32", y: "38", fontFamily: MONO, fontSize: "11", fill: p.textMuted, letterSpacing: "2", children: String(number).padStart(2, '0') }), _jsx("line", { x1: "56", y1: "34", x2: "80", y2: "34", stroke: ink.pain, strokeOpacity: "0.6", strokeWidth: "1.2" }), _jsx("text", { x: PAIN_WIDTH - 32, y: "38", fontFamily: MONO, fontSize: "11", fill: ink.answer, letterSpacing: "2", textAnchor: "end", children: feature.toUpperCase() }), _jsx("line", { x1: SEAM_X, y1: "44", x2: SEAM_X, y2: "356", stroke: `url(#${ref('seam')})`, strokeWidth: "1", strokeDasharray: "2 4" }), _jsx("circle", { cx: SEAM_X, cy: "200", r: "15", fill: p.bgPanel, stroke: ink.answer, strokeOpacity: "0.7", strokeWidth: "1.4" }), _jsx("path", { className: motion.breathe, d: `M${SEAM_X - 3} 193 L${SEAM_X + 4} 200 L${SEAM_X - 3} 207`, fill: "none", stroke: ink.answer, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), children({ p, ink, motion, ref })] })] }));
84
+ }
85
+ /* ── The shapes the drawings share ── */
86
+ /**
87
+ * An agent: a round body with a four-pointed spark in it. `dim` draws it as
88
+ * the pain does, muted and dashed.
89
+ */
90
+ export function Agent({ x, y, r = 22, ink, p, dim = false, halo = true, }) {
91
+ const s = r * 0.42;
92
+ return (_jsxs("g", { children: [halo && !dim ? _jsx("circle", { cx: x, cy: y, r: r * 1.7, fill: ink, opacity: wash(p, 0.1) }) : null, _jsx("circle", { cx: x, cy: y, r: r, fill: p.bgPanel, stroke: ink, strokeWidth: dim ? 1.4 : 2, strokeOpacity: dim ? 0.6 : 1, strokeDasharray: dim ? '4 3' : undefined }), _jsx("path", { d: `M${x} ${y - s} Q${x + s * 0.18} ${y - s * 0.18} ${x + s} ${y} Q${x + s * 0.18} ${y + s * 0.18} ${x} ${y + s} Q${x - s * 0.18} ${y + s * 0.18} ${x - s} ${y} Q${x - s * 0.18} ${y - s * 0.18} ${x} ${y - s} Z`, fill: ink, opacity: dim ? 0.5 : 0.95 })] }));
93
+ }
94
+ /** A panel: a rounded card in `bgPanel`, edged in an ink. */
95
+ export function Panel({ x, y, w, h, ink, p, dashed = false, rx = 8, strokeOpacity = 0.55, fill, }) {
96
+ return (_jsx("rect", { x: x, y: y, width: w, height: h, rx: rx, fill: fill ?? p.bgPanel, stroke: ink, strokeOpacity: strokeOpacity, strokeWidth: "1.2", strokeDasharray: dashed ? '4 3' : undefined }));
97
+ }
98
+ /** Lines of text, drawn as bars. */
99
+ export function Bars({ x, y, widths, ink, gap = 10, h = 4, opacity = 0.6, }) {
100
+ return (_jsx("g", { fill: ink, opacity: opacity, children: widths.map((w, i) => (_jsx("rect", { x: x, y: y + i * gap, width: w, height: h, rx: h / 2 }, i))) }));
101
+ }
102
+ /** A tick. */
103
+ export function Check({ x, y, s = 6, ink, width = 2 }) {
104
+ return (_jsx("path", { d: `M${x - s} ${y} L${x - s * 0.3} ${y + s * 0.7} L${x + s} ${y - s * 0.7}`, fill: "none", stroke: ink, strokeWidth: width, strokeLinecap: "round", strokeLinejoin: "round" }));
105
+ }
106
+ /** A cross. */
107
+ export function Cross({ x, y, s = 5, ink, width = 2 }) {
108
+ return (_jsx("path", { d: `M${x - s} ${y - s} L${x + s} ${y + s} M${x + s} ${y - s} L${x - s} ${y + s}`, fill: "none", stroke: ink, strokeWidth: width, strokeLinecap: "round" }));
109
+ }
110
+ /** A short label, in capitals. */
111
+ export function Label({ x, y, children, ink, anchor = 'middle', size = 9, }) {
112
+ return (_jsx("text", { x: x, y: y, fontFamily: MONO, fontSize: size, fill: ink, textAnchor: anchor, letterSpacing: "1.2", children: children }));
113
+ }
114
+ /** A pill with a short label in it. */
115
+ export function Chip({ x, y, w, label, ink, p, filled = false, }) {
116
+ return (_jsxs("g", { children: [_jsx("rect", { x: x, y: y, width: w, height: "20", rx: "10", fill: filled ? ink : p.bgPanel, fillOpacity: filled ? 0.16 : 1, stroke: ink, strokeOpacity: "0.7", strokeWidth: "1.2" }), _jsx(Label, { x: x + w / 2, y: y + 13.5, ink: ink, size: 8.5, children: label })] }));
117
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 2, The work stops when the chat does, answered by Agent Teams.
3
+ *
4
+ * The pain: a week laid out as a line, a chat answering on Monday, and the
5
+ * work stopping there; the rest of the week is carried by hand. The answer:
6
+ * a team of agents on the day's round, turning with the clock, handing the
7
+ * work on, and asking before what matters.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainAgentTeams({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainAgentTeams;
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Bars, Label, PainFrame, Panel } from './PainFrame';
3
+ const DAYS = ['M', 'T', 'W', 'T', 'F'];
4
+ /* The round of the answer. */
5
+ const RING = { x: 604, y: 206, r: 104 };
6
+ const onRing = (deg, r = RING.r) => {
7
+ const a = (deg * Math.PI) / 180;
8
+ return [Math.round((RING.x + r * Math.cos(a)) * 10) / 10, Math.round((RING.y + r * Math.sin(a)) * 10) / 10];
9
+ };
10
+ export function SvgPainAgentTeams({ palette } = {}) {
11
+ return (_jsx(PainFrame, { number: 2, feature: "Agent Teams", palette: palette, title: "The work stops when the chat does", desc: "On the left, a chat answers on Monday and the work stops there, the rest of the week left to be carried by hand. On the right, a team of always-on agents keeps the work going round the clock, handing it on and asking before what matters.", children: ({ p, ink, motion }) => {
12
+ const [askX, askY] = onRing(40);
13
+ return (_jsxs("g", { children: [_jsx(Panel, { x: 56, y: 96, w: 150, h: 74, ink: ink.muted, p: p, rx: 12 }), _jsx("path", { d: "M84 170 l-6 16 l20 -16", fill: p.bgPanel, stroke: ink.muted, strokeOpacity: "0.55", strokeWidth: "1.2", strokeLinejoin: "round" }), _jsx("rect", { x: 80, y: 168, width: 20, height: 4, fill: p.bgPanel }), _jsx(Bars, { x: 72, y: 114, widths: [110, 92, 118, 64], ink: ink.muted, gap: 11 }), _jsx(Agent, { x: 232, y: 110, r: 14, ink: ink.muted, p: p, dim: true }), _jsx("line", { x1: 60, y1: 244, x2: 360, y2: 244, stroke: ink.muted, strokeOpacity: "0.35", strokeWidth: "1.2" }), DAYS.map((d, i) => {
14
+ const x = 84 + i * 66;
15
+ return (_jsxs("g", { children: [_jsx("line", { x1: x, y1: 238, x2: x, y2: 250, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.2" }), _jsx(Label, { x: x, y: 270, ink: p.textMuted, children: d })] }, i));
16
+ }), _jsx("line", { x1: 84, y1: 244, x2: 128, y2: 244, stroke: ink.pain, strokeWidth: "2.4", strokeLinecap: "round" }), _jsx("rect", { x: 130, y: 236, width: 16, height: 16, rx: "3", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx("rect", { x: 135, y: 241, width: 6, height: 6, rx: "1", fill: ink.pain }), _jsx("line", { x1: 152, y1: 244, x2: 348, y2: 244, stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.6", strokeDasharray: "2 6", strokeLinecap: "round" }), [216, 282, 348].map((x) => (_jsxs("g", { opacity: "0.55", children: [_jsx("circle", { cx: x, cy: 302, r: "5", fill: "none", stroke: ink.muted, strokeWidth: "1.2" }), _jsx("path", { d: `M${x - 9} 326 q9 -16 18 0`, fill: "none", stroke: ink.muted, strokeWidth: "1.2" }), _jsx("rect", { x: x + 6, y: 308, width: 11, height: 9, rx: "1.5", fill: "none", stroke: ink.pain, strokeOpacity: "0.8", strokeWidth: "1.2" })] }, x))), _jsx("circle", { cx: RING.x, cy: RING.y, r: RING.r, fill: "none", stroke: ink.answer, strokeOpacity: "0.3", strokeWidth: "1.2" }), _jsx("circle", { cx: RING.x, cy: RING.y, r: RING.r, fill: "none", stroke: ink.answer, strokeOpacity: "0.55", strokeWidth: "2", strokeDasharray: "6 10", className: motion.march }), (() => {
17
+ const [sx, sy] = onRing(-90, RING.r + 22);
18
+ const [nx, ny] = onRing(-90 + 180, RING.r + 22);
19
+ return (_jsxs("g", { children: [_jsx("circle", { cx: sx, cy: sy, r: "6", fill: ink.ask, opacity: "0.85" }), Array.from({ length: 8 }, (_, i) => {
20
+ const a = (i * Math.PI) / 4;
21
+ return (_jsx("line", { x1: sx + 9 * Math.cos(a), y1: sy + 9 * Math.sin(a), x2: sx + 12 * Math.cos(a), y2: sy + 12 * Math.sin(a), stroke: ink.ask, strokeWidth: "1.2", strokeLinecap: "round", opacity: "0.8" }, i));
22
+ }), _jsx("path", { d: `M${nx + 2} ${ny - 7} a7 7 0 1 0 5 12 a6 6 0 0 1 -5 -12 Z`, fill: ink.fourth, opacity: "0.8" })] }));
23
+ })(), _jsx("circle", { cx: RING.x, cy: RING.y, r: "30", fill: p.bgPanel, stroke: ink.answer, strokeOpacity: "0.7", strokeWidth: "1.4" }), Array.from({ length: 12 }, (_, i) => {
24
+ const [x1, y1] = onRing(i * 30, 25);
25
+ const [x2, y2] = onRing(i * 30, 28);
26
+ return _jsx("line", { x1: x1, y1: y1, x2: x2, y2: y2, stroke: ink.answer, strokeOpacity: "0.5", strokeWidth: "1" }, i);
27
+ }), _jsx("line", { x1: RING.x, y1: RING.y, x2: RING.x, y2: RING.y - 18, stroke: ink.answer, strokeWidth: "2", strokeLinecap: "round" }), _jsx("line", { className: motion.spin, style: { transformOrigin: `${RING.x}px ${RING.y}px` }, x1: RING.x, y1: RING.y, x2: RING.x + 13, y2: RING.y + 8, stroke: ink.second, strokeWidth: "2", strokeLinecap: "round" }), _jsx("circle", { cx: RING.x, cy: RING.y, r: "2.6", fill: ink.answer }), _jsx("rect", { x: askX - 9, y: askY - 9, width: "18", height: "18", fill: p.bgPanel, stroke: ink.ask, strokeWidth: "1.6", transform: `rotate(45 ${askX} ${askY})` }), _jsx("circle", { cx: askX, cy: askY, r: "2.6", fill: ink.ask }), _jsx(Label, { x: askX + 14, y: askY + 30, anchor: "start", ink: ink.ask, children: "ASK FIRST" }), _jsx("g", { className: motion.spin, style: { transformOrigin: `${RING.x}px ${RING.y}px` }, children: [
28
+ { deg: 0, c: ink.answer },
29
+ { deg: 120, c: ink.third },
30
+ { deg: 240, c: ink.second },
31
+ ].map((a) => {
32
+ const [x, y] = onRing(a.deg);
33
+ return _jsx(Agent, { x: x, y: y, r: 17, ink: a.c, p: p }, a.deg);
34
+ }) })] }));
35
+ } }));
36
+ }
37
+ export default SvgPainAgentTeams;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Pain 4, Answers nobody can act on, answered by Agentic UI.
3
+ *
4
+ * The pain: a chat bubble full of paragraphs, a wall of text to copy out by
5
+ * hand. The answer: the agent's answer as an interface, a chart to explore,
6
+ * a table to filter with its row picked out, and a button to approve.
7
+ */
8
+ import type { ColorPalette } from '@datalayer/primer-addons';
9
+ export declare function SvgPainAgenticUi({ palette }?: {
10
+ palette?: ColorPalette;
11
+ }): import("react").JSX.Element;
12
+ export default SvgPainAgenticUi;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Bars, Check, Label, PainFrame, Panel } from './PainFrame';
3
+ const CHART = [34, 52, 28, 64, 46, 72];
4
+ export function SvgPainAgenticUi({ palette } = {}) {
5
+ return (_jsx(PainFrame, { number: 4, feature: "Agentic UI", palette: palette, title: "Answers nobody can act on", desc: "On the left, a chatbot answers with a wall of paragraphs. On the right, the agent answers with an interface: a chart to explore, a table to filter and a button to approve.", children: ({ p, ink, motion }) => {
6
+ const inks = [ink.answer, ink.second, ink.third, ink.fourth];
7
+ return (_jsxs("g", { children: [_jsx(Panel, { x: 64, y: 76, w: 280, h: 222, ink: ink.muted, p: p, rx: 14 }), _jsx("path", { d: "M92 298 l-8 22 l28 -22", fill: p.bgPanel, stroke: ink.muted, strokeOpacity: "0.55", strokeWidth: "1.2", strokeLinejoin: "round" }), _jsx("rect", { x: 88, y: 296, width: 26, height: 4, fill: p.bgPanel }), _jsx(Bars, { x: 86, y: 98, widths: [236, 222, 230, 190], ink: ink.muted, gap: 11, opacity: 0.5 }), _jsx(Bars, { x: 86, y: 152, widths: [228, 236, 214, 232, 120], ink: ink.muted, gap: 11, opacity: 0.5 }), _jsx(Bars, { x: 86, y: 217, widths: [232, 206, 236, 226, 160], ink: ink.muted, gap: 11, opacity: 0.5 }), _jsx("rect", { x: 196, y: 174, width: 40, height: 4, rx: "2", fill: ink.pain }), _jsx(Agent, { x: 70, y: 338, r: 14, ink: ink.muted, p: p, dim: true }), _jsx(Panel, { x: 440, y: 76, w: 326, h: 250, ink: ink.answer, p: p }), _jsx("path", { d: "M440 84 a8 8 0 0 1 8 -8 h310 a8 8 0 0 1 8 8 v12 h-326 Z", fill: p.bgAlt }), [ink.answer, ink.second, ink.third].map((c, i) => (_jsx("circle", { cx: 452 + i * 10, cy: 86, r: "2.6", fill: c, opacity: "0.8" }, i))), _jsx("line", { x1: 458, y1: 210, x2: 598, y2: 210, stroke: p.textMuted, strokeOpacity: "0.5", strokeWidth: "1" }), CHART.map((h, i) => (_jsx("rect", { x: 464 + i * 22, y: 210 - h * 1.4, width: "14", height: h * 1.4, rx: "2", fill: inks[i % 4], opacity: i === 5 ? 0.95 : 0.6 }, i))), _jsx("path", { d: "M471 184 L493 160 L515 190 L537 142 L559 168 L581 126", fill: "none", stroke: ink.answer, strokeWidth: "1.6", strokeLinejoin: "round", opacity: "0.9" }), _jsx("circle", { cx: 581, cy: 126, r: "4", fill: p.bgPanel, stroke: ink.answer, strokeWidth: "1.6" }), _jsx("rect", { x: 616, y: 112, width: 134, height: 16, rx: "3", fill: p.bgAlt }), _jsx("path", { d: "M624 116 h8 l-3 4 v4 l-2 -1 v-3 Z", fill: ink.second, opacity: "0.85" }), [0, 1, 2, 3, 4].map((r) => {
8
+ const y = 136 + r * 16;
9
+ const picked = r === 2;
10
+ return (_jsxs("g", { children: [picked ? _jsx("rect", { className: motion.breathe, x: 612, y: y - 3, width: 142, height: 14, rx: "3", fill: ink.second, fillOpacity: "0.18", stroke: ink.second, strokeOpacity: "0.7", strokeWidth: "1" }) : null, _jsx("rect", { x: 622, y: y + 2, width: 44, height: 4, rx: "2", fill: picked ? ink.second : p.textMuted, opacity: picked ? 0.95 : 0.45 }), _jsx("rect", { x: 676, y: y + 2, width: 28, height: 4, rx: "2", fill: picked ? ink.second : p.textMuted, opacity: picked ? 0.95 : 0.45 }), _jsx("rect", { x: 716, y: y + 2, width: 26, height: 4, rx: "2", fill: picked ? ink.second : p.textMuted, opacity: picked ? 0.95 : 0.45 })] }, r));
11
+ }), _jsx("line", { x1: 456, y1: 238, x2: 750, y2: 238, stroke: p.textMuted, strokeOpacity: "0.25", strokeWidth: "1" }), _jsx("rect", { x: 458, y: 260, width: 170, height: 32, rx: "6", fill: p.bg, stroke: p.textMuted, strokeOpacity: "0.45", strokeWidth: "1" }), _jsx("rect", { x: 470, y: 274, width: 84, height: 4, rx: "2", fill: p.textMuted, opacity: "0.55" }), _jsx("rect", { x: 556, y: 268, width: 1.6, height: 16, fill: ink.answer, className: motion.breathe }), _jsx("rect", { x: 642, y: 260, width: 108, height: 32, rx: "6", fill: ink.answer, fillOpacity: "0.2", stroke: ink.answer, strokeWidth: "1.4" }), _jsx(Check, { x: 662, y: 276, s: 5, ink: ink.answer }), _jsx(Label, { x: 706, y: 279.5, ink: ink.answer, size: 9, children: "APPROVE" }), _jsx(Agent, { x: 440, y: 330, r: 16, ink: ink.answer, p: p })] }));
12
+ } }));
13
+ }
14
+ export default SvgPainAgenticUi;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 8, Better or worse? Nobody knows, answered by Benchmarks & Evals.
3
+ *
4
+ * The pain: two scores, one a little lower than the other, and nothing to
5
+ * say whether that is noise or a break. The answer: every task of the eval
6
+ * as a cell, passed or failed, and a failed one reopened as it ran, its
7
+ * notebook and its cells, to find out why.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainBenchmarks({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainBenchmarks;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Bars, PainFrame, Panel, SANS } from './PainFrame';
3
+ const COLS = 7;
4
+ const ROWS = 6;
5
+ const CELL = 16;
6
+ const GAP = 6;
7
+ const GRID = { x: 448, y: 104 };
8
+ /* The tasks that failed, by index; the first is the one reopened. */
9
+ const FAILED = [17, 5, 30, 38];
10
+ const OPENED = FAILED[0];
11
+ export function SvgPainBenchmarks({ palette } = {}) {
12
+ return (_jsx(PainFrame, { number: 8, feature: "Benchmarks & Evals", palette: palette, title: "Better or worse? Nobody knows", desc: "On the left, two eval scores, 84% then 81%, and no way to tell whether the agent got worse. On the right, every task of the eval as a cell, passed or failed, and a failed task reopened exactly as it ran, its notebook and its cells.", children: ({ p, ink, motion }) => {
13
+ const ox = GRID.x + (OPENED % COLS) * (CELL + GAP);
14
+ const oy = GRID.y + Math.floor(OPENED / COLS) * (CELL + GAP);
15
+ return (_jsxs("g", { children: [_jsx(Panel, { x: 56, y: 110, w: 124, h: 92, ink: ink.muted, p: p }), _jsx("text", { x: 118, y: 170, fontFamily: SANS, fontSize: "34", fontWeight: "700", fill: ink.muted, textAnchor: "middle", opacity: "0.85", children: "84%" }), _jsx(Panel, { x: 228, y: 170, w: 124, h: 92, ink: ink.muted, p: p }), _jsx("text", { x: 290, y: 230, fontFamily: SANS, fontSize: "34", fontWeight: "700", fill: ink.muted, textAnchor: "middle", opacity: "0.85", children: "81%" }), _jsx("path", { d: "M184 158 C206 158 210 196 222 210", fill: "none", stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.4", strokeDasharray: "3 4" }), _jsx("path", { d: "M214 206 l9 6 l1 -11", fill: "none", stroke: ink.muted, strokeOpacity: "0.7", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("circle", { cx: 206, cy: 290, r: "22", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx("text", { x: 206, y: 299, fontFamily: SANS, fontSize: "24", fontWeight: "700", fill: ink.pain, textAnchor: "middle", children: "?" }), [0, 1, 2].map((i) => (_jsx("rect", { x: 70 + i * 16, y: 300 + i * 14, width: 90 - i * 20, height: "4", rx: "2", fill: ink.muted, opacity: "0.25" }, i))), [0, 1, 2].map((i) => (_jsx("rect", { x: 250 + i * 8, y: 300 + i * 14, width: 92 - i * 18, height: "4", rx: "2", fill: ink.muted, opacity: "0.25" }, i))), Array.from({ length: COLS * ROWS }, (_, i) => {
16
+ const x = GRID.x + (i % COLS) * (CELL + GAP);
17
+ const y = GRID.y + Math.floor(i / COLS) * (CELL + GAP);
18
+ const failed = FAILED.includes(i);
19
+ return failed ? (_jsx("rect", { x: x + 0.8, y: y + 0.8, width: CELL - 1.6, height: CELL - 1.6, rx: "3", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }, i)) : (_jsx("rect", { x: x, y: y, width: CELL, height: CELL, rx: "3", fill: i % 5 === 0 ? ink.second : ink.answer, opacity: 0.35 + ((i * 7) % 5) * 0.1 }, i));
20
+ }), _jsx("rect", { className: motion.breathe, x: ox - 4, y: oy - 4, width: CELL + 8, height: CELL + 8, rx: "5", fill: "none", stroke: ink.pain, strokeWidth: "1.4" }), _jsx("path", { d: `M${ox + CELL + 4} ${oy + CELL / 2} C640 ${oy + CELL / 2} 630 150 654 150`, fill: "none", stroke: ink.pain, strokeOpacity: "0.7", strokeWidth: "1.4", strokeDasharray: "4 3" }), _jsx(Panel, { x: 654, y: 110, w: 112, h: 170, ink: ink.answer, p: p }), _jsx("path", { d: "M654 118 a8 8 0 0 1 8 -8 h96 a8 8 0 0 1 8 8 v10 h-112 Z", fill: p.bgAlt }), _jsx("rect", { x: 664, y: 116, width: 30, height: "5", rx: "2.5", fill: ink.pain, opacity: "0.8" }), [0, 1, 2, 3].map((i) => (_jsxs("g", { children: [_jsx("rect", { x: 664, y: 140 + i * 32, width: 3, height: 22, rx: "1.5", fill: i === 2 ? ink.pain : ink.answer, opacity: "0.8" }), _jsx(Bars, { x: 674, y: 143 + i * 32, widths: [[72, 50], [60, 80], [78, 44], [52, 66]][i], ink: i === 2 ? ink.pain : p.textMuted, gap: 9, opacity: i === 2 ? 0.8 : 0.5 })] }, i))), _jsx(Agent, { x: 480, y: 298, r: 16, ink: ink.answer, p: p }), _jsx("rect", { x: 508, y: 290, width: 120, height: 16, rx: "8", fill: ink.answer, fillOpacity: "0.16", stroke: ink.answer, strokeOpacity: "0.6", strokeWidth: "1.2" }), _jsx("rect", { x: 508, y: 290, width: 98, height: 16, rx: "8", fill: ink.answer, fillOpacity: "0.4" })] }));
21
+ } }));
22
+ }
23
+ export default SvgPainBenchmarks;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 3, One more bot for every channel, answered by Channels.
3
+ *
4
+ * The pain: four bots, each its own shape, each tied to one channel, none
5
+ * the same as the others, one of them out of date. The answer: one agent in
6
+ * the middle, the same one reaching the chat, the team channel, the phone
7
+ * and the editor.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainChannels({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainChannels;
@@ -0,0 +1,53 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, PainFrame, Panel, wash } from './PainFrame';
3
+ /** A channel, drawn small: a chat bubble, a hash, a phone, an editor. */
4
+ function ChannelGlyph({ kind, x, y, ink }) {
5
+ const common = { fill: 'none', stroke: ink, strokeWidth: 1.6, strokeLinecap: 'round', strokeLinejoin: 'round' };
6
+ if (kind === 'chat') {
7
+ return _jsx("path", { d: `M${x - 10} ${y - 8} h20 a3 3 0 0 1 3 3 v9 a3 3 0 0 1 -3 3 h-11 l-6 5 v-5 h-3 a3 3 0 0 1 -3 -3 v-9 a3 3 0 0 1 3 -3 Z`, ...common });
8
+ }
9
+ if (kind === 'team') {
10
+ return _jsx("path", { d: `M${x - 4} ${y - 10} l-3 20 M${x + 5} ${y - 10} l-3 20 M${x - 10} ${y - 4} h20 M${x - 11} ${y + 4} h20`, ...common });
11
+ }
12
+ if (kind === 'phone') {
13
+ return (_jsxs("g", { children: [_jsx("rect", { x: x - 7, y: y - 12, width: "14", height: "24", rx: "3", ...common }), _jsx("line", { x1: x - 2, y1: y + 8, x2: x + 2, y2: y + 8, ...common })] }));
14
+ }
15
+ return _jsx("path", { d: `M${x - 5} ${y - 7} l-7 7 l7 7 M${x + 5} ${y - 7} l7 7 l-7 7 M${x + 2} ${y - 10} l-4 20`, ...common });
16
+ }
17
+ /* The four bots of the pain, each a shape of its own. */
18
+ const BOTS = [
19
+ { x: 98, y: 120, kind: 'chat', shape: 'square' },
20
+ { x: 262, y: 108, kind: 'team', shape: 'circle' },
21
+ { x: 108, y: 278, kind: 'phone', shape: 'triangle' },
22
+ { x: 270, y: 262, kind: 'editor', shape: 'hexagon' },
23
+ ];
24
+ const hexagon = (x, y, r) => Array.from({ length: 6 }, (_, i) => {
25
+ const a = (Math.PI / 3) * i + Math.PI / 6;
26
+ return `${i === 0 ? 'M' : 'L'}${(x + r * Math.cos(a)).toFixed(1)} ${(y + r * Math.sin(a)).toFixed(1)}`;
27
+ }).join(' ') + ' Z';
28
+ /* The answer's channels, round the one agent. */
29
+ const AGENT = { x: 604, y: 204 };
30
+ const CHANNELS = [
31
+ { x: 484, y: 110, kind: 'chat' },
32
+ { x: 724, y: 110, kind: 'team' },
33
+ { x: 484, y: 298, kind: 'phone' },
34
+ { x: 724, y: 298, kind: 'editor' },
35
+ ];
36
+ export function SvgPainChannels({ palette } = {}) {
37
+ return (_jsx(PainFrame, { number: 3, feature: "Channels", palette: palette, title: "One more bot for every channel", desc: "On the left, four separate bots, each built for one channel and none of them alike, one out of date. On the right, one agent, built once, reaching the chat, the team channel, the phone and the editor.", children: ({ p, ink, motion }) => {
38
+ const inks = [ink.answer, ink.second, ink.third, ink.fourth];
39
+ return (_jsxs("g", { children: [BOTS.map((b, i) => {
40
+ const stale = i === 2;
41
+ const c = stale ? ink.pain : ink.muted;
42
+ const body = b.shape === 'circle' ? _jsx("circle", { cx: b.x, cy: b.y, r: "20" }) :
43
+ b.shape === 'square' ? _jsx("rect", { x: b.x - 19, y: b.y - 19, width: "38", height: "38", rx: "5" }) :
44
+ b.shape === 'triangle' ? _jsx("path", { d: `M${b.x} ${b.y - 23} L${b.x + 23} ${b.y + 17} L${b.x - 23} ${b.y + 17} Z`, strokeLinejoin: "round" }) :
45
+ _jsx("path", { d: hexagon(b.x, b.y, 22) });
46
+ return (_jsxs("g", { children: [_jsx("g", { fill: p.bgPanel, stroke: c, strokeOpacity: stale ? 0.9 : 0.6, strokeWidth: "1.4", strokeDasharray: "4 3", children: body }), _jsx("circle", { cx: b.x - 6, cy: b.y + (b.shape === 'triangle' ? 4 : 0), r: "2.2", fill: c, opacity: "0.75" }), _jsx("circle", { cx: b.x + 6, cy: b.y + (b.shape === 'triangle' ? 4 : 0), r: "2.2", fill: c, opacity: "0.75" }), _jsx("line", { x1: b.x + 26, y1: b.y, x2: b.x + 40, y2: b.y, stroke: ink.muted, strokeOpacity: "0.45", strokeWidth: "1.2" }), _jsx(Panel, { x: b.x + 40, y: b.y - 18, w: 36, h: 36, ink: ink.muted, p: p, strokeOpacity: 0.4 }), _jsx(ChannelGlyph, { kind: b.kind, x: b.x + 58, y: b.y, ink: ink.muted }), stale ? (_jsxs("g", { children: [_jsx("circle", { cx: b.x + 20, cy: b.y - 22, r: "8", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4" }), _jsx("path", { d: `M${b.x + 20} ${b.y - 26} v4 l3 2`, fill: "none", stroke: ink.pain, strokeWidth: "1.4", strokeLinecap: "round" })] })) : null] }, i));
47
+ }), CHANNELS.map((c, i) => {
48
+ const d = `M${AGENT.x} ${AGENT.y} L${c.x} ${c.y}`;
49
+ return (_jsxs("g", { children: [_jsx("path", { d: d, stroke: inks[i], strokeOpacity: "0.55", strokeWidth: "1.6", strokeDasharray: "5 4", className: motion.march }), _jsx("circle", { className: motion.travel, r: "3.2", fill: inks[i], style: { offsetPath: `path('${d}')`, animationDelay: `${i * -1.2}s` } })] }, c.kind));
50
+ }), CHANNELS.map((c, i) => (_jsxs("g", { children: [_jsx("circle", { cx: c.x, cy: c.y, r: "34", fill: inks[i], opacity: wash(p, 0.08) }), _jsx(Panel, { x: c.x - 24, y: c.y - 24, w: 48, h: 48, ink: inks[i], p: p, strokeOpacity: 0.75, rx: 10 }), _jsx(ChannelGlyph, { kind: c.kind, x: c.x, y: c.y, ink: inks[i] })] }, `glyph-${c.kind}`))), _jsx(Agent, { x: AGENT.x, y: AGENT.y, r: 34, ink: ink.answer, p: p })] }));
51
+ } }));
52
+ }
53
+ export default SvgPainChannels;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 9, A result nobody can check, answered by Library & Artifacts.
3
+ *
4
+ * The pain: a slide with one figure on it, and the chat that made it gone,
5
+ * fading into dots. The answer: the figure as an artifact that carries what
6
+ * made it, its notebook, its data and its environment, and a fork that
7
+ * reproduces it.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainLibrary({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainLibrary;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Bars, Label, PainFrame, Panel, SANS } from './PainFrame';
3
+ export function SvgPainLibrary({ palette } = {}) {
4
+ return (_jsx(PainFrame, { number: 9, feature: "Library & Artifacts", palette: palette, title: "A result nobody can check", desc: "On the left, a slide with one figure on it, and the chat that produced it gone. On the right, the figure published as an artifact that carries its notebook, its data and its environment, and a fork that reproduces it.", children: ({ p, ink, motion }) => (_jsxs("g", { children: [_jsx(Panel, { x: 60, y: 86, w: 200, h: 128, ink: ink.muted, p: p }), _jsx("rect", { x: 76, y: 102, width: 60, height: 5, rx: "2.5", fill: ink.muted, opacity: "0.5" }), _jsx("text", { x: 160, y: 176, fontFamily: SANS, fontSize: "40", fontWeight: "700", fill: ink.muted, textAnchor: "middle", opacity: "0.9", children: "7.4%" }), _jsx("circle", { cx: 262, cy: 88, r: "15", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx("text", { x: 262, y: 95, fontFamily: SANS, fontSize: "18", fontWeight: "700", fill: ink.pain, textAnchor: "middle", children: "?" }), _jsx("path", { d: "M160 214 v28", stroke: ink.muted, strokeOpacity: "0.35", strokeWidth: "1.2", strokeDasharray: "2 4" }), _jsxs("g", { opacity: "0.4", children: [_jsx("rect", { x: 96, y: 248, width: 150, height: 56, rx: "12", fill: "none", stroke: ink.muted, strokeWidth: "1.2", strokeDasharray: "3 5" }), _jsx(Bars, { x: 112, y: 262, widths: [96, 118, 70], ink: ink.muted, gap: 10, opacity: 0.6 })] }), [[262, 268], [282, 252], [276, 292], [304, 274], [318, 300], [334, 262], [348, 288]].map(([x, y], i) => (_jsx("rect", { x: x, y: y, width: "5", height: "5", rx: "1", fill: ink.muted, opacity: 0.4 - i * 0.05 }, i))), _jsx(Agent, { x: 78, y: 330, r: 14, ink: ink.muted, p: p, dim: true }), _jsx(Panel, { x: 448, y: 82, w: 152, h: 96, ink: ink.answer, p: p }), _jsx("text", { x: 524, y: 140, fontFamily: SANS, fontSize: "30", fontWeight: "700", fill: ink.answer, textAnchor: "middle", children: "7.4%" }), _jsx("circle", { cx: 586, cy: 96, r: "5", fill: ink.answer }), _jsx("line", { x1: 470, y1: 178, x2: 470, y2: 318, stroke: ink.answer, strokeOpacity: "0.45", strokeWidth: "1.4" }), [
5
+ { y: 196, label: 'NOTEBOOK', c: ink.second },
6
+ { y: 244, label: 'DATA', c: ink.third },
7
+ { y: 292, label: 'ENV', c: ink.fourth },
8
+ ].map((l) => (_jsxs("g", { children: [_jsx("circle", { cx: 470, cy: l.y + 13, r: "4", fill: l.c }), _jsx(Panel, { x: 486, y: l.y, w: 114, h: 26, ink: l.c, p: p, strokeOpacity: 0.7, rx: 6 }), _jsx(Label, { x: 498, y: l.y + 16.5, ink: l.c, anchor: "start", size: 8.5, children: l.label })] }, l.label))), (() => {
9
+ const d = 'M600 130 C650 130 650 214 690 214';
10
+ return (_jsxs("g", { children: [_jsx("path", { d: d, fill: "none", stroke: ink.answer, strokeOpacity: "0.6", strokeWidth: "1.6", strokeDasharray: "5 4", className: motion.march }), _jsx("circle", { className: motion.travel, r: "3.4", fill: ink.answer, style: { offsetPath: `path('${d}')` } }), _jsx(Label, { x: 656, y: 160, ink: ink.answer, children: "FORK" })] }));
11
+ })(), _jsx(Panel, { x: 690, y: 180, w: 80, h: 70, ink: ink.answer, p: p }), _jsx("text", { x: 730, y: 222, fontFamily: SANS, fontSize: "18", fontWeight: "700", fill: ink.answer, textAnchor: "middle", children: "7.4%" }), [0, 1, 2].map((i) => (_jsx("rect", { x: 700 + i * 22, y: 260, width: 16, height: 6, rx: "3", fill: [ink.second, ink.third, ink.fourth][i], opacity: "0.75" }, i)))] })) }));
12
+ }
13
+ export default SvgPainLibrary;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 5, Nobody sees what the agent did, answered by Observability.
3
+ *
4
+ * The pain: a run in the night, a closed box with a question mark in it, and
5
+ * a failure coming out that nobody can explain. The answer: the run opened
6
+ * as a trace, every step nested in its order, the failed one picked out
7
+ * under a lens, with its alert.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainObservability({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainObservability;
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Agent, Cross, PainFrame, Panel, SANS, wash } from './PainFrame';
3
+ /* The spans of the trace: depth, start, length, and which ink. */
4
+ const SPANS = [
5
+ { depth: 0, x: 0, w: 236, tone: 0 },
6
+ { depth: 1, x: 6, w: 70, tone: 1 },
7
+ { depth: 2, x: 12, w: 40, tone: 2 },
8
+ { depth: 1, x: 80, w: 58, tone: 3 },
9
+ { depth: 1, x: 142, w: 46, tone: 'fail' },
10
+ { depth: 2, x: 148, w: 24, tone: 2 },
11
+ { depth: 1, x: 192, w: 40, tone: 1 },
12
+ ];
13
+ export function SvgPainObservability({ palette } = {}) {
14
+ return (_jsx(PainFrame, { number: 5, feature: "Observability", palette: palette, title: "Nobody sees what the agent did", desc: "On the left, an agent ran overnight in a closed box and a failure came out that nobody can explain. On the right, the same run opened as a trace, every step nested in its order, and the step that failed picked out with its alert.", children: ({ p, ink, motion }) => {
15
+ const inks = [ink.answer, ink.second, ink.third, ink.fourth];
16
+ return (_jsxs("g", { children: [_jsx("path", { d: "M92 74 a16 16 0 1 0 14 24 a13 13 0 0 1 -14 -24 Z", fill: ink.muted, opacity: "0.55" }), [[130, 70], [150, 92], [70, 112]].map(([x, y], i) => (_jsx("circle", { cx: x, cy: y, r: "1.4", fill: ink.muted, opacity: "0.6" }, i))), _jsx(Agent, { x: 84, y: 218, r: 20, ink: ink.muted, p: p, dim: true }), _jsx("line", { x1: 108, y1: 218, x2: 134, y2: 218, stroke: ink.muted, strokeOpacity: "0.5", strokeWidth: "1.4" }), _jsx("rect", { x: 136, y: 140, width: 150, height: 156, rx: "8", fill: ink.muted, fillOpacity: wash(p, 0.22), stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.4" }), _jsx("path", { d: "M136 172 h150", stroke: ink.muted, strokeOpacity: "0.35", strokeWidth: "1" }), _jsx("text", { x: 211, y: 252, fontFamily: SANS, fontSize: "54", fontWeight: "700", fill: ink.muted, opacity: "0.6", textAnchor: "middle", children: "?" }), _jsx("line", { x1: 288, y1: 218, x2: 318, y2: 218, stroke: ink.pain, strokeOpacity: "0.8", strokeWidth: "1.6", strokeDasharray: "3 3" }), _jsx("circle", { cx: 336, cy: 218, r: "14", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.6" }), _jsx(Cross, { x: 336, y: 218, s: 5, ink: ink.pain }), _jsx(Panel, { x: 436, y: 84, w: 330, h: 236, ink: ink.answer, p: p }), _jsx("line", { x1: 452, y1: 110, x2: 750, y2: 110, stroke: p.textMuted, strokeOpacity: "0.3", strokeWidth: "1" }), [0, 1, 2, 3, 4].map((i) => (_jsx("line", { x1: 500 + i * 60, y1: 102, x2: 500 + i * 60, y2: 306, stroke: p.textMuted, strokeOpacity: "0.14", strokeWidth: "1" }, i))), SPANS.map((s, i) => {
17
+ const y = 124 + i * 25;
18
+ const fail = s.tone === 'fail';
19
+ const c = fail ? ink.pain : inks[s.tone];
20
+ return (_jsxs("g", { children: [_jsx("circle", { cx: 456 + s.depth * 9, cy: y + 6, r: "3", fill: c, opacity: "0.85" }), _jsx("rect", { x: 500 + s.x, y: y, width: s.w, height: "12", rx: "3", fill: c, fillOpacity: fail ? 0.3 : 0.55, stroke: fail ? c : 'none', strokeWidth: "1.4" })] }, i));
21
+ }), (() => {
22
+ const y = 124 + 4 * 25 + 6;
23
+ return (_jsxs("g", { children: [_jsx("circle", { className: motion.breathe, cx: 665, cy: y, r: "30", fill: "none", stroke: ink.pain, strokeWidth: "1.6" }), _jsx("line", { x1: 686, y1: y + 21, x2: 706, y2: y + 41, stroke: ink.pain, strokeWidth: "3", strokeLinecap: "round" }), _jsxs("g", { transform: `translate(728 ${y - 40})`, children: [_jsx("path", { d: "M-8 6 v-5 a8 8 0 0 1 16 0 v5 l3 3 h-22 Z", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4", strokeLinejoin: "round" }), _jsx("path", { d: "M-3 11 a3 3 0 0 0 6 0", fill: "none", stroke: ink.pain, strokeWidth: "1.4" })] })] }));
24
+ })(), _jsx(Agent, { x: 436, y: 84, r: 14, ink: ink.answer, p: p, halo: false })] }));
25
+ } }));
26
+ }
27
+ export default SvgPainObservability;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Pain 6, The one step the product lacks, answered by Plugins.
3
+ *
4
+ * The pain: a flow of steps with one missing, an empty slot where the
5
+ * business's own step should be, and the work stopping at it. The answer:
6
+ * the step added as a plugin, a piece that fits the slot, on the open
7
+ * extension points (a view, a command, a tool), and the work going through.
8
+ */
9
+ import type { ColorPalette } from '@datalayer/primer-addons';
10
+ export declare function SvgPainPlugins({ palette }?: {
11
+ palette?: ColorPalette;
12
+ }): import("react").JSX.Element;
13
+ export default SvgPainPlugins;
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Chip, Cross, PainFrame, Panel, wash } from './PainFrame';
3
+ const Y = 196;
4
+ const STEP = { w: 52, h: 52 };
5
+ /** A puzzle piece: a square with a tab on its top. */
6
+ const piece = (x, y, w, h) => {
7
+ const t = w * 0.16;
8
+ return `M${x} ${y + 6} a6 6 0 0 1 6 -6 h${w * 0.34 - 6} a${t} ${t} 0 1 1 ${w * 0.32} 0 h${w * 0.34 - 6} a6 6 0 0 1 6 6 v${h - 12} a6 6 0 0 1 -6 6 h${-(w - 12)} a6 6 0 0 1 -6 -6 Z`;
9
+ };
10
+ /** The steps of a flow: x of each, the third the business's own. */
11
+ const stepsAt = (x0) => [0, 1, 2, 3].map((i) => x0 + i * 80);
12
+ export function SvgPainPlugins({ palette } = {}) {
13
+ return (_jsx(PainFrame, { number: 6, feature: "Plugins", palette: palette, title: "The one step the product lacks", desc: "On the left, a flow of steps with the one the business needs missing, and the work stopping at the empty slot. On the right, that step added as a plugin that fits the slot, on open extension points, and the work going through.", children: ({ p, ink, motion }) => {
14
+ const inks = [ink.second, ink.third, ink.answer, ink.fourth];
15
+ const left = stepsAt(48);
16
+ const right = stepsAt(450);
17
+ const top = Y - STEP.h / 2;
18
+ const flow = `M${right[0] + STEP.w / 2} ${Y} H${right[3] + STEP.w / 2}`;
19
+ return (_jsxs("g", { children: [_jsx("line", { x1: left[0] + STEP.w, y1: Y, x2: left[2], y2: Y, stroke: ink.muted, strokeOpacity: "0.6", strokeWidth: "1.6" }), _jsx("line", { x1: left[2] + STEP.w, y1: Y, x2: left[3], y2: Y, stroke: ink.muted, strokeOpacity: "0.4", strokeWidth: "1.6", strokeDasharray: "2 5" }), left.map((x, i) => i === 2 ? (_jsxs("g", { children: [_jsx("path", { d: piece(x, top, STEP.w, STEP.h), fill: "none", stroke: ink.pain, strokeWidth: "1.6", strokeDasharray: "4 3" }), _jsx("circle", { cx: x + STEP.w / 2, cy: Y + 52, r: "12", fill: p.bgPanel, stroke: ink.pain, strokeWidth: "1.4" }), _jsx(Cross, { x: x + STEP.w / 2, y: Y + 52, s: 4.5, ink: ink.pain })] }, i)) : (_jsxs("g", { opacity: i === 3 ? 0.55 : 1, children: [_jsx(Panel, { x: x, y: top, w: STEP.w, h: STEP.h, ink: ink.muted, p: p }), _jsx("rect", { x: x + 14, y: Y - 4, width: STEP.w - 28, height: "8", rx: "4", fill: ink.muted, opacity: "0.45" })] }, i))), _jsx("path", { d: `M${left[2] - 14} ${Y - 6} l8 6 l-8 6`, fill: "none", stroke: ink.muted, strokeOpacity: "0.7", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: flow, stroke: ink.answer, strokeOpacity: "0.55", strokeWidth: "1.6", strokeDasharray: "5 4", className: motion.march }), [0, -1.6, -3.2].map((d) => (_jsx("circle", { className: motion.travel, r: "3.2", fill: ink.answer, style: { offsetPath: `path('${flow}')`, animationDelay: `${d}s` } }, d))), right.map((x, i) => i === 2 ? (_jsxs("g", { children: [_jsx("circle", { cx: x + STEP.w / 2, cy: Y, r: "46", fill: ink.answer, opacity: wash(p, 0.1) }), _jsx("path", { d: piece(x, top, STEP.w, STEP.h), fill: p.bgPanel, stroke: ink.answer, strokeWidth: "2" }), _jsx("path", { d: piece(x + 6, top + 8, STEP.w - 12, STEP.h - 14), fill: ink.answer, fillOpacity: "0.22" })] }, i)) : (_jsxs("g", { children: [_jsx(Panel, { x: x, y: top, w: STEP.w, h: STEP.h, ink: inks[i], p: p, strokeOpacity: 0.7 }), _jsx("rect", { x: x + 14, y: Y - 4, width: STEP.w - 28, height: "8", rx: "4", fill: inks[i], opacity: "0.65" })] }, i))), (() => {
20
+ const cx = right[2] + STEP.w / 2;
21
+ return (_jsxs("g", { children: [[-90, 0, 90].map((dx) => (_jsx("line", { x1: cx, y1: Y + STEP.h / 2 + 2, x2: cx + dx, y2: Y + 78, stroke: ink.answer, strokeOpacity: "0.4", strokeWidth: "1.2" }, dx))), _jsx(Chip, { x: cx - 126, y: Y + 78, w: 72, label: "VIEW", ink: ink.second, p: p, filled: true }), _jsx(Chip, { x: cx - 40, y: Y + 78, w: 80, label: "COMMAND", ink: ink.answer, p: p, filled: true }), _jsx(Chip, { x: cx + 54, y: Y + 78, w: 72, label: "TOOL", ink: ink.third, p: p, filled: true })] }));
22
+ })()] }));
23
+ } }));
24
+ }
25
+ export default SvgPainPlugins;