@ekanos/harness 0.23.0 → 0.24.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.
Files changed (67) hide show
  1. package/README.md +5 -4
  2. package/dist/internal/components/approvals-tray.js +5 -5
  3. package/dist/internal/components/ask-assistant-bridge.js +6 -6
  4. package/dist/internal/components/connect-panel.js +16 -9
  5. package/dist/internal/components/connection-chip.js +2 -2
  6. package/dist/internal/components/dashboard-grid.js +1 -1
  7. package/dist/internal/components/dev-toolbar.js +5 -5
  8. package/dist/internal/components/docs-link.js +3 -3
  9. package/dist/internal/components/events-panel.js +11 -11
  10. package/dist/internal/components/health-panel.js +3 -10
  11. package/dist/internal/components/integration-badge.js +3 -3
  12. package/dist/internal/components/local-oauth-panel.js +14 -14
  13. package/dist/internal/components/operation-runner-panel.d.ts +3 -1
  14. package/dist/internal/components/operation-runner-panel.js +22 -44
  15. package/dist/internal/components/provenance-banner.js +3 -3
  16. package/dist/internal/components/run-log.js +13 -13
  17. package/dist/internal/components/runtime-strip.js +4 -4
  18. package/dist/internal/components/schema-form.js +8 -8
  19. package/dist/internal/components/scrollable-nav.d.ts +1 -1
  20. package/dist/internal/components/scrollable-nav.js +1 -1
  21. package/dist/internal/components/surface-nav.js +26 -26
  22. package/dist/internal/components/viewport-frame.js +1 -1
  23. package/dist/internal/components/widget-boundary.js +3 -3
  24. package/dist/internal/components/widget-surface.d.ts +5 -0
  25. package/dist/internal/components/widget-surface.js +12 -3
  26. package/dist/internal/components/workflow-runner.js +6 -6
  27. package/dist/internal/lib/console-context.js +2 -1
  28. package/dist/internal/lib/console-types.d.ts +4 -3
  29. package/dist/internal/lib/experience-runtime.d.ts +9 -1
  30. package/dist/internal/lib/experience-runtime.js +35 -7
  31. package/dist/internal/lib/run-log-view.js +5 -3
  32. package/dist/internal/routes/activation-page.js +17 -17
  33. package/dist/internal/routes/console-home-page.js +1 -1
  34. package/dist/internal/routes/experience-connect-page.js +12 -12
  35. package/dist/internal/routes/experience-layout-page.js +6 -6
  36. package/dist/internal/routes/experience-page-host.js +4 -4
  37. package/dist/internal/routes/experience-review-queue-page.js +7 -7
  38. package/dist/internal/routes/experience-runs-page.js +2 -2
  39. package/dist/internal/routes/experience-summary-page.js +4 -4
  40. package/dist/internal/routes/experience-widget-page.js +6 -3
  41. package/dist/internal/routes/experience-widgets-page.js +2 -2
  42. package/dist/internal/routes/experience-workflow-page.js +3 -3
  43. package/dist/internal/routes/experience-workflows-page.js +6 -6
  44. package/dist/internal/routes/integration-layout.js +1 -1
  45. package/dist/internal/routes/integrations-layout.js +2 -2
  46. package/dist/internal/routes/integrations-list-page.js +8 -8
  47. package/dist/internal/routes/integrations-operations-page.js +5 -5
  48. package/dist/internal/routes/integrations-overview-page.js +4 -4
  49. package/dist/internal/routes/integrations-runs-page.js +1 -1
  50. package/dist/internal/routes/integrations-scope.js +2 -2
  51. package/dist/internal/routes/repo-home-page.js +19 -19
  52. package/dist/internal/routes/repo-layout.js +4 -4
  53. package/dist/internal/routes/repo-package-layouts.js +2 -2
  54. package/dist/internal/routes/root-layout.js +1 -1
  55. package/dist/internal/routes/single-widget-page.js +5 -2
  56. package/dist/internal/routes/tile-page.js +8 -8
  57. package/dist/internal/routes/triggers-page.js +31 -31
  58. package/dist/internal/routes/widgets-page.js +1 -1
  59. package/dist/internal/server/ekanos-api-router.js +2 -2
  60. package/dist/internal/server/integration-resolver.d.ts +6 -0
  61. package/dist/internal/server/integration-resolver.js +5 -1
  62. package/dist/internal/server/local-secrets.d.ts +6 -5
  63. package/dist/internal/server/operation-runner.d.ts +7 -5
  64. package/dist/internal/server/operation-runner.js +23 -2
  65. package/dist/internal/surfaces.js +4 -4
  66. package/dist/registry.d.ts +9 -2
  67. package/package.json +6 -6
package/README.md CHANGED
@@ -121,7 +121,7 @@ nothing else.
121
121
  | `id` | yes | Stable id; the URL segment on `/<slug>/widgets/<widgetId>` |
122
122
  | `title` | yes | Rendered in the widget header chrome |
123
123
  | `component` | yes | `ComponentType<IntegrationComponentProps>` |
124
- | `width` | no | `'half'` (default) or `'full'`. Runs of `half` balance across two columns |
124
+ | `width` | no | `'compact'`, `'half'` (default) or `'full'`. `size` and `layouts` are read first, as on the dashboard. Runs of `half` balance across two columns |
125
125
  | `isCollapsible` | no | Renders the collapse button. Off unless set |
126
126
  | `isPinnable` | no | Reaches `WidgetContext`; nothing draws a pin — see below |
127
127
  | `aiFooterEnabled` | no | Renders the "Ask about this" AI footer bar. Off unless set |
@@ -936,9 +936,10 @@ token, a site id) needs no OAuth and no entry in `local-secrets.json` by hand.
936
936
  In **live** mode, submitting the form does what the host does with the
937
937
  activation row: **every string field of the submitted `activationData` becomes
938
938
  `ctx.secrets.get('<that exact field name>')`** for your live handlers, actions
939
- and tools (non-string fields do not). There is no secret marker to declare —
940
- the host has none either, and a definition cannot name form fields because the
941
- form is a component.
939
+ and tools (non-string fields do not). On the host the fields you declare
940
+ `secret: true` in `activation.fields` are the ones stored in the vault and kept
941
+ out of the connection record the team can read; the harness has no such record,
942
+ so it keeps every field in the one local file below.
942
943
 
943
944
  The shell stores those fields under an `activationData` object in your slug's
944
945
  block of **`.ekanos/local-secrets.json`** (same file, mode `0600`, gitignored),
@@ -29,12 +29,12 @@ function ApprovalCard({
29
29
  "data-approval-id": approval.id,
30
30
  children: [
31
31
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-1", children: [
32
- /* @__PURE__ */ jsxs("code", { className: "text-label break-all", children: [
32
+ /* @__PURE__ */ jsxs("code", { className: "text-sm font-medium break-all", children: [
33
33
  approval.integration,
34
34
  "/",
35
35
  approval.opKey
36
36
  ] }),
37
- /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-fine break-words", children: [
37
+ /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-xs break-words", children: [
38
38
  approval.channel,
39
39
  " \xB7 ",
40
40
  approval.mode
@@ -54,11 +54,11 @@ function ApprovalCard({
54
54
  }
55
55
  ),
56
56
  open ? /* @__PURE__ */ jsxs("div", { className: "min-w-0", "data-test": "approval-details", children: [
57
- /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-fine break-all", children: [
57
+ /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-xs break-all", children: [
58
58
  "args hash ",
59
59
  /* @__PURE__ */ jsx("code", { children: approval.argsHash })
60
60
  ] }),
61
- /* @__PURE__ */ jsx("pre", { className: "bg-muted text-fine max-h-40 max-w-full overflow-auto rounded-md p-2 break-words whitespace-pre-wrap", children: JSON.stringify(approval.args, null, 2) })
61
+ /* @__PURE__ */ jsx("pre", { className: "bg-muted max-h-40 max-w-full overflow-auto rounded-md p-2 text-xs break-words whitespace-pre-wrap", children: JSON.stringify(approval.args, null, 2) })
62
62
  ] }) : null
63
63
  ] })
64
64
  ] }),
@@ -95,7 +95,7 @@ function ApprovalsTray() {
95
95
  const list = approvals.data ?? [];
96
96
  if (list.length === 0) return null;
97
97
  return /* @__PURE__ */ jsxs(Alert, { variant: "warning", className: "*:min-w-0", "data-test": "approvals-tray", children: [
98
- /* @__PURE__ */ jsx(Icon, { name: "fa-solid fa-hand", className: "h-4 w-4" }),
98
+ /* @__PURE__ */ jsx(Icon, { name: "fa-hand", className: "h-4 w-4" }),
99
99
  /* @__PURE__ */ jsx(AlertTitle, { "data-test": "approvals-summary", children: approvalsSummary(list) }),
100
100
  /* @__PURE__ */ jsx(AlertDescription, { children: /* @__PURE__ */ jsx("div", { className: "mt-2 flex min-w-0 flex-col gap-3", children: list.map((approval) => /* @__PURE__ */ jsx(
101
101
  ApprovalCard,
@@ -16,13 +16,13 @@ function AskAssistantBridge() {
16
16
  /* @__PURE__ */ jsx(
17
17
  Icon,
18
18
  {
19
- name: "fa-solid fa-wand-magic-sparkles",
19
+ name: "fa-wand-magic-sparkles",
20
20
  className: "text-muted-foreground h-5 w-5"
21
21
  }
22
22
  ),
23
23
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
24
- /* @__PURE__ */ jsx("p", { className: "text-label truncate", children: "Ask payload" }),
25
- /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-fine truncate", children: [
24
+ /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium", children: "Ask payload" }),
25
+ /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground truncate text-xs", children: [
26
26
  asked.title,
27
27
  " \xB7 ",
28
28
  asked.widgetId
@@ -35,13 +35,13 @@ function AskAssistantBridge() {
35
35
  size: "icon",
36
36
  onClick: () => setAsked(null),
37
37
  "aria-label": "Close ask payload",
38
- children: /* @__PURE__ */ jsx(Icon, { name: "fa-solid fa-xmark", className: "h-4 w-4" })
38
+ children: /* @__PURE__ */ jsx(Icon, { name: "fa-xmark", className: "h-4 w-4" })
39
39
  }
40
40
  )
41
41
  ] }),
42
42
  /* @__PURE__ */ jsxs("div", { className: "bg-card min-h-0 flex-1 overflow-auto p-5", children: [
43
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta mb-3", children: asked.suggestedPrompt }),
44
- /* @__PURE__ */ jsx("pre", { className: "bg-muted text-fine overflow-x-auto rounded-md p-3", children: JSON.stringify(asked.snapshot, null, 2) ?? "null" })
43
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-3 text-sm", children: asked.suggestedPrompt }),
44
+ /* @__PURE__ */ jsx("pre", { className: "bg-muted overflow-x-auto rounded-md p-3 text-xs", children: JSON.stringify(asked.snapshot, null, 2) ?? "null" })
45
45
  ] })
46
46
  ] });
47
47
  }
@@ -45,7 +45,7 @@ function ConnectPanel({
45
45
  ] }) });
46
46
  }
47
47
  if (!connection.data) {
48
- return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta", children: "Loading\u2026" });
48
+ return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "Loading\u2026" });
49
49
  }
50
50
  const state = connection.data;
51
51
  if (state.managed) {
@@ -63,7 +63,7 @@ function ConnectPanel({
63
63
  className: "flex w-full max-w-full min-w-0 flex-col gap-6",
64
64
  "data-test": "connect-panel",
65
65
  children: [
66
- inDialog ? null : /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-fine", children: "Credentials are stored on this machine, in the integration repo. They never reach the browser, so a saved key shows as set, not its value." }),
66
+ inDialog ? null : /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: "Credentials are stored on this machine, in the integration repo. They never reach the browser, so a saved key shows as set, not its value." }),
67
67
  /* @__PURE__ */ jsxs(
68
68
  "div",
69
69
  {
@@ -74,7 +74,7 @@ function ConnectPanel({
74
74
  noConnectionNeeded ? /* @__PURE__ */ jsx(
75
75
  "span",
76
76
  {
77
- className: "text-muted-foreground text-fine",
77
+ className: "text-muted-foreground text-xs",
78
78
  "data-test": "connect-optional",
79
79
  children: "Settings below are optional."
80
80
  }
@@ -135,15 +135,22 @@ function ConnectPanel({
135
135
  });
136
136
  },
137
137
  children: [
138
- state.root ? /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-fine", "data-test": "store-root", children: [
138
+ state.root ? /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-xs", "data-test": "store-root", children: [
139
139
  "Store:",
140
140
  " ",
141
141
  /* @__PURE__ */ jsx("code", { title: state.root, children: state.displayRoot ?? state.root })
142
142
  ] }) : null,
143
- state.fields.length === 0 && !activationForm ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta", children: "This integration declares no keys." }) : null,
143
+ state.fields.length === 0 && !activationForm ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "This integration declares no keys." }) : null,
144
144
  state.fields.map((field) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
145
145
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
146
- /* @__PURE__ */ jsx(Label, { htmlFor: `connect-${field.key}`, className: "text-label", children: field.label }),
146
+ /* @__PURE__ */ jsx(
147
+ Label,
148
+ {
149
+ htmlFor: `connect-${field.key}`,
150
+ className: "text-sm font-medium",
151
+ children: field.label
152
+ }
153
+ ),
147
154
  /* @__PURE__ */ jsx(StatusBadge, { tone: field.set ? "success" : "neutral", children: field.set ? "set" : "not set" })
148
155
  ] }),
149
156
  /* @__PURE__ */ jsx(
@@ -182,8 +189,8 @@ function ConnectPanel({
182
189
  }
183
190
  ) : null,
184
191
  oauth ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", "data-test": "oauth-block", children: [
185
- /* @__PURE__ */ jsx("h3", { className: "text-label", children: "OAuth" }),
186
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-fine", children: "Runs the real authorize and callback loop on localhost, with your own provider app credentials (save them above first)." }),
192
+ /* @__PURE__ */ jsx("h3", { className: "text-sm font-medium", children: "OAuth" }),
193
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: "Runs the real authorize and callback loop on localhost, with your own provider app credentials (save them above first)." }),
187
194
  /* @__PURE__ */ jsx(
188
195
  Button,
189
196
  {
@@ -244,7 +251,7 @@ function ActivationConnect({
244
251
  className: "flex w-full max-w-xl min-w-0 flex-col gap-3 [&_*]:min-w-0 [&_.grid]:grid-cols-[minmax(0,1fr)] [&_fieldset]:min-w-0 [&_form]:min-w-0 [&_input]:max-w-full [&_label]:[overflow-wrap:anywhere] [&_p]:[overflow-wrap:anywhere] [&_textarea]:max-w-full",
245
252
  "data-test": "connect-activation",
246
253
  children: [
247
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-fine", children: "This is the integration's own connect form. What you enter is stored on this machine as its local credentials, and live operations read it from there." }),
254
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: "This is the integration's own connect form. What you enter is stored on this machine as its local credentials, and live operations read it from there." }),
248
255
  /* @__PURE__ */ jsx(IntegrationActivationProvider, { actions, children: /* @__PURE__ */ jsx(TeamAccountWorkspaceContextProvider, { children: /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(SettingsLabels, { enabled: saveLabel, children: /* @__PURE__ */ jsx(
249
256
  Form,
250
257
  {
@@ -40,7 +40,7 @@ function ConnectionChip({
40
40
  text ? /* @__PURE__ */ jsx(
41
41
  "span",
42
42
  {
43
- className: "text-muted-foreground text-fine",
43
+ className: "text-muted-foreground text-xs",
44
44
  "data-test": "connection-answer-note",
45
45
  children: text
46
46
  }
@@ -60,7 +60,7 @@ function ConnectionChip({
60
60
  target ? /* @__PURE__ */ jsxs(
61
61
  "span",
62
62
  {
63
- className: "text-muted-foreground text-fine",
63
+ className: "text-muted-foreground text-xs",
64
64
  "data-test": "connection-target",
65
65
  children: [
66
66
  "local credentials \xB7 ",
@@ -64,7 +64,7 @@ function WidgetRenderer({
64
64
  state === "inactive" ? /* @__PURE__ */ jsxs(
65
65
  "p",
66
66
  {
67
- className: "text-muted-foreground text-fine mb-1",
67
+ className: "text-muted-foreground mb-1 text-xs",
68
68
  "data-test": "widget-state-label",
69
69
  children: [
70
70
  "Inactive (preview): ",
@@ -41,7 +41,7 @@ function Field({
41
41
  children
42
42
  }) {
43
43
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
44
- /* @__PURE__ */ jsx(Label, { className: "text-muted-foreground text-fine", children: label }),
44
+ /* @__PURE__ */ jsx(Label, { className: "text-muted-foreground text-xs", children: label }),
45
45
  children
46
46
  ] });
47
47
  }
@@ -194,10 +194,10 @@ function DevToolbar() {
194
194
  live && controls.data ? /* @__PURE__ */ jsxs(
195
195
  "span",
196
196
  {
197
- className: "text-primary-strong text-label flex items-center gap-2",
197
+ className: "text-primary flex items-center gap-2 text-sm font-medium",
198
198
  "data-test": "toolbar-live-badge",
199
199
  children: [
200
- /* @__PURE__ */ jsx(Icon, { name: "fa-solid fa-tower-broadcast", className: "h-4 w-4" }),
200
+ /* @__PURE__ */ jsx(Icon, { name: "fa-tower-broadcast", className: "h-4 w-4" }),
201
201
  "Reaching ",
202
202
  resolveEgress(integration).join(", ")
203
203
  ]
@@ -217,7 +217,7 @@ function DevToolbar() {
217
217
  "aria-hidden": "true",
218
218
  className: cn("flex items-center dark:hidden"),
219
219
  children: [
220
- /* @__PURE__ */ jsx(Icon, { name: "fa-solid fa-moon", className: "mr-2 h-4 w-4" }),
220
+ /* @__PURE__ */ jsx(Icon, { name: "fa-moon", className: "mr-2 h-4 w-4" }),
221
221
  "Dark"
222
222
  ]
223
223
  }
@@ -228,7 +228,7 @@ function DevToolbar() {
228
228
  "aria-hidden": "true",
229
229
  className: cn("hidden items-center dark:flex"),
230
230
  children: [
231
- /* @__PURE__ */ jsx(Icon, { name: "fa-solid fa-sun", className: "mr-2 h-4 w-4" }),
231
+ /* @__PURE__ */ jsx(Icon, { name: "fa-sun", className: "mr-2 h-4 w-4" }),
232
232
  "Light"
233
233
  ]
234
234
  }
@@ -14,17 +14,17 @@ function DocsLink({
14
14
  target: "_blank",
15
15
  rel: "noopener noreferrer",
16
16
  className: cn(
17
- // `text-label`, not `text-meta`: this is an interactive link label,
17
+ // `text-sm font-medium`, not `text-sm`: this is an interactive link label,
18
18
  // and the scale reserves Meta for tertiary metadata. The tier carries
19
19
  // its own 500, so the only visual change is 400 -> 500 on one small
20
20
  // link. Landed on `dev` as `text-sm` just before
21
21
  // `design/no-raw-text-size` became an error here.
22
- "text-muted-foreground hover:text-foreground text-label flex items-center gap-2 underline-offset-2 hover:underline",
22
+ "text-muted-foreground hover:text-foreground flex items-center gap-2 text-sm font-medium underline-offset-2 hover:underline",
23
23
  className
24
24
  ),
25
25
  ...rest,
26
26
  children: [
27
- /* @__PURE__ */ jsx(Icon, { name: "fa-solid fa-book", className: "h-4 w-4" }),
27
+ /* @__PURE__ */ jsx(Icon, { name: "fa-book", className: "h-4 w-4" }),
28
28
  children
29
29
  ]
30
30
  }
@@ -21,7 +21,7 @@ function EventsPanel({
21
21
  parseError: null
22
22
  }));
23
23
  if (events.length === 0) {
24
- return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta", "data-test": "no-events", children: "This contract declares no events." });
24
+ return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", "data-test": "no-events", children: "This contract declares no events." });
25
25
  }
26
26
  const event = events[state.index] ?? events[0];
27
27
  if (!event) return null;
@@ -41,12 +41,12 @@ function EventsPanel({
41
41
  const result = emit.data;
42
42
  return /* @__PURE__ */ jsxs("div", { className: "flex max-w-2xl flex-col gap-4", "data-test": "events-panel", children: [
43
43
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
44
- /* @__PURE__ */ jsx(Label, { htmlFor: "event-name", className: "text-label", children: "Event" }),
44
+ /* @__PURE__ */ jsx(Label, { htmlFor: "event-name", className: "text-sm font-medium", children: "Event" }),
45
45
  /* @__PURE__ */ jsx(
46
46
  "select",
47
47
  {
48
48
  id: "event-name",
49
- className: "border-input bg-background text-body-sm shadow-control h-control rounded-md border px-3",
49
+ className: "border-input bg-background h-control rounded-md border px-3 text-sm",
50
50
  value: state.index,
51
51
  onChange: (change) => {
52
52
  const index = Number(change.target.value);
@@ -60,10 +60,10 @@ function EventsPanel({
60
60
  children: events.map((entry, index) => /* @__PURE__ */ jsx("option", { value: index, children: entry.name }, entry.name))
61
61
  }
62
62
  ),
63
- event.description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-fine", children: event.description }) : null
63
+ event.description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: event.description }) : null
64
64
  ] }),
65
65
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
66
- /* @__PURE__ */ jsx(Label, { htmlFor: "event-payload", className: "text-label", children: "Payload" }),
66
+ /* @__PURE__ */ jsx(Label, { htmlFor: "event-payload", className: "text-sm font-medium", children: "Payload" }),
67
67
  /* @__PURE__ */ jsx(
68
68
  Textarea,
69
69
  {
@@ -75,7 +75,7 @@ function EventsPanel({
75
75
  onChange: (change) => setState({ ...state, text: change.target.value, parseError: null })
76
76
  }
77
77
  ),
78
- state.parseError ? /* @__PURE__ */ jsx("p", { role: "alert", className: "text-destructive-strong text-fine", children: state.parseError }) : null
78
+ state.parseError ? /* @__PURE__ */ jsx("p", { role: "alert", className: "text-destructive text-xs", children: state.parseError }) : null
79
79
  ] }),
80
80
  /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsx(
81
81
  Button,
@@ -90,18 +90,18 @@ function EventsPanel({
90
90
  emit.isError ? /* @__PURE__ */ jsx(Alert, { variant: "destructive", children: /* @__PURE__ */ jsx(AlertDescription, { children: emit.error.message }) }) : null,
91
91
  result ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", "data-test": "event-result", children: [
92
92
  /* @__PURE__ */ jsx(StatusBadge, { tone: result.valid ? "success" : "destructive", children: result.valid ? "Payload valid" : "Payload invalid" }),
93
- result.issues.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "text-destructive-strong text-fine list-disc pl-5", children: result.issues.map((issue) => /* @__PURE__ */ jsxs("li", { children: [
93
+ result.issues.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "text-destructive list-disc pl-5 text-xs", children: result.issues.map((issue) => /* @__PURE__ */ jsxs("li", { children: [
94
94
  /* @__PURE__ */ jsx("code", { children: issue.path || "(root)" }),
95
95
  " ",
96
96
  issue.message
97
97
  ] }, `${issue.path}:${issue.message}`)) }) : null,
98
98
  result.outcome === "ran" ? /* @__PURE__ */ jsxs(Alert, { variant: "success", "data-test": "handler-ran", children: [
99
99
  /* @__PURE__ */ jsx(AlertTitle, { children: "The integration's handler ran" }),
100
- /* @__PURE__ */ jsx(AlertDescription, { children: result.detail ? /* @__PURE__ */ jsx("pre", { className: "text-fine mt-1 overflow-auto", children: result.detail }) : null })
101
- ] }) : /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-fine", children: "Validated only: this integration does not run the integration's code." }),
100
+ /* @__PURE__ */ jsx(AlertDescription, { children: result.detail ? /* @__PURE__ */ jsx("pre", { className: "mt-1 overflow-auto text-xs", children: result.detail }) : null })
101
+ ] }) : /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: "Validated only: this integration does not run the integration's code." }),
102
102
  /* @__PURE__ */ jsxs("div", { "data-test": "matched-triggers", children: [
103
- /* @__PURE__ */ jsx("p", { className: "text-label", children: "Workflow triggers that would match" }),
104
- result.matchedTriggers.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-fine", children: "None." }) : /* @__PURE__ */ jsx("ul", { className: "text-meta list-disc pl-5", children: result.matchedTriggers.map((trigger) => /* @__PURE__ */ jsx("li", { children: trigger }, trigger)) })
103
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "Workflow triggers that would match" }),
104
+ result.matchedTriggers.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: "None." }) : /* @__PURE__ */ jsx("ul", { className: "list-disc pl-5 text-sm", children: result.matchedTriggers.map((trigger) => /* @__PURE__ */ jsx("li", { children: trigger }, trigger)) })
105
105
  ] })
106
106
  ] }) : null
107
107
  ] });
@@ -17,17 +17,10 @@ function HealthPanel({
17
17
  (c, integration2) => c.runHealth(integration2)
18
18
  );
19
19
  if (integration.provenance.kind === "registry" && !integration.runModes.includes("live")) {
20
- return /* @__PURE__ */ jsx(
21
- "p",
22
- {
23
- className: "text-muted-foreground text-meta",
24
- "data-test": "health-published",
25
- children: "Published: not checked locally. Health runs only against a local override."
26
- }
27
- );
20
+ return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", "data-test": "health-published", children: "Published: not checked locally. Health runs only against a local override." });
28
21
  }
29
22
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", "data-test": "health-panel", children: [
30
- check.data || check.isError ? null : /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-meta", "data-test": "health-empty", children: [
23
+ check.data || check.isError ? null : /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-sm", "data-test": "health-empty", children: [
31
24
  "Not run yet. Run a health check to see whether",
32
25
  " ",
33
26
  integration.integration,
@@ -47,7 +40,7 @@ function HealthPanel({
47
40
  check.isError ? /* @__PURE__ */ jsx(Alert, { variant: "destructive", children: /* @__PURE__ */ jsx(AlertDescription, { children: check.error.message }) }) : null,
48
41
  check.data ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", "data-test": "health-result", children: [
49
42
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(StatusBadge, { tone: TONES[check.data.status], children: check.data.status }) }),
50
- check.data.message ? /* @__PURE__ */ jsx("p", { className: "text-meta", children: check.data.message }) : null
43
+ check.data.message ? /* @__PURE__ */ jsx("p", { className: "text-sm", children: check.data.message }) : null
51
44
  ] }) : null
52
45
  ] });
53
46
  }
@@ -38,7 +38,7 @@ function ProvenanceBadge({
38
38
  "data-provenance": thisRepo ? "repo" : provenance.kind,
39
39
  title: provenanceTitle(provenance),
40
40
  className: cn(
41
- "text-fine inline-flex h-6 w-fit shrink-0 items-center gap-1 rounded-full px-2 font-semibold tracking-wide whitespace-nowrap",
41
+ "inline-flex h-6 w-fit shrink-0 items-center gap-1 rounded-full px-2 text-xs font-semibold tracking-wide whitespace-nowrap",
42
42
  override ? "bg-warning text-warning-foreground" : "text-foreground border",
43
43
  className
44
44
  ),
@@ -46,7 +46,7 @@ function ProvenanceBadge({
46
46
  /* @__PURE__ */ jsx(
47
47
  Icon,
48
48
  {
49
- name: override ? "fa-solid fa-triangle-exclamation" : thisRepo || own ? "fa-solid fa-code-branch" : "fa-solid fa-cloud",
49
+ name: override ? "fa-triangle-exclamation" : thisRepo || own ? "fa-code-branch" : "fa-cloud",
50
50
  className: "h-3 w-3"
51
51
  }
52
52
  ),
@@ -73,7 +73,7 @@ function IntegrationBadge({
73
73
  linked = true
74
74
  }) {
75
75
  const label = /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
76
- /* @__PURE__ */ jsx("code", { className: "text-label", children: integration.integration }),
76
+ /* @__PURE__ */ jsx("code", { className: "text-sm font-medium", children: integration.integration }),
77
77
  /* @__PURE__ */ jsx(
78
78
  ProvenanceBadge,
79
79
  {
@@ -50,7 +50,7 @@ function LocalOAuthPanel({
50
50
  "data-test": "local-oauth",
51
51
  children: [
52
52
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
53
- /* @__PURE__ */ jsx("h3", { className: "text-subhead", children: "Local OAuth" }),
53
+ /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold", children: "Local OAuth" }),
54
54
  /* @__PURE__ */ jsx(Badge, { variant: "outline", children: live ? "live" : "fixtures" }),
55
55
  live && setup.data ? /* @__PURE__ */ jsx(
56
56
  ConnectionChip,
@@ -72,7 +72,7 @@ function LocalOAuthPanel({
72
72
  }
73
73
  ) : null
74
74
  ] }),
75
- setup.isPending ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta", children: "Reading local setup\u2026" }) : setup.isError ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
75
+ setup.isPending ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "Reading local setup\u2026" }) : setup.isError ? /* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
76
76
  /* @__PURE__ */ jsx(AlertTitle, { children: "The harness API did not answer" }),
77
77
  /* @__PURE__ */ jsxs(AlertDescription, { children: [
78
78
  /* @__PURE__ */ jsx("p", { children: setup.error.message }),
@@ -86,7 +86,7 @@ function LocalOAuthPanel({
86
86
  ] })
87
87
  ] })
88
88
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
89
- /* @__PURE__ */ jsxs("ol", { className: "text-body-sm flex flex-col gap-5", children: [
89
+ /* @__PURE__ */ jsxs("ol", { className: "flex flex-col gap-5 text-sm", children: [
90
90
  /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-2", children: [
91
91
  /* @__PURE__ */ jsx("span", { className: "font-medium", children: "1. Set up the OAuth app at your provider \u2014 this part is yours" }),
92
92
  setup.data.redirectUri ? /* @__PURE__ */ jsx(
@@ -110,7 +110,7 @@ function LocalOAuthPanel({
110
110
  onSaved: (next) => queryClient.setQueryData(queryKey, next)
111
111
  }
112
112
  ),
113
- /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-fine", children: [
113
+ /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-xs", children: [
114
114
  "Saved to ",
115
115
  /* @__PURE__ */ jsx("code", { children: setup.data.file }),
116
116
  " in your project \u2014 gitignored, never packed, read on every request. A saved key shows as filled beside an empty field; leave a field blank to keep it. Saving forgets any current connection."
@@ -118,7 +118,7 @@ function LocalOAuthPanel({
118
118
  ] }),
119
119
  /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-1", children: [
120
120
  /* @__PURE__ */ jsx("span", { className: "font-medium", children: "3. Open the connect dialog (above) and click Connect" }),
121
- /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-fine", children: [
121
+ /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-xs", children: [
122
122
  "The browser goes to the provider, comes back to the redirect URI above, the shell exchanges the code through your declared egress and calls ",
123
123
  /* @__PURE__ */ jsx("code", { children: "onTokens" }),
124
124
  " on a server-held context. Widgets then read what your handlers wrote through the normal storage route."
@@ -128,7 +128,7 @@ function LocalOAuthPanel({
128
128
  live ? /* @__PURE__ */ jsxs(
129
129
  "p",
130
130
  {
131
- className: "text-muted-foreground text-fine",
131
+ className: "text-muted-foreground text-xs",
132
132
  "data-test": "local-oauth-connection",
133
133
  children: [
134
134
  setup.data.connection ? `Connected since ${setup.data.connection.obtainedAt}` + (setup.data.connection.expiresAt ? `; access token expires ${setup.data.connection.expiresAt}` : "") + ". " : "Not connected on this server.",
@@ -153,7 +153,7 @@ function SetupChecklist({ guide }) {
153
153
  return /* @__PURE__ */ jsxs(
154
154
  "ul",
155
155
  {
156
- className: "text-muted-foreground text-meta flex flex-col gap-2",
156
+ className: "text-muted-foreground flex flex-col gap-2 text-sm",
157
157
  "data-test": "local-oauth-checklist",
158
158
  children: [
159
159
  /* @__PURE__ */ jsx("li", { children: guide.console ? /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -190,7 +190,7 @@ function SetupChecklist({ guide }) {
190
190
  guide.scopes.length > 0 ? /* @__PURE__ */ jsxs("li", { children: [
191
191
  "Enable these scopes:",
192
192
  " ",
193
- guide.scopes.map((scope) => /* @__PURE__ */ jsx("code", { className: "text-fine mr-1", children: scope }, scope))
193
+ guide.scopes.map((scope) => /* @__PURE__ */ jsx("code", { className: "mr-1 text-xs", children: scope }, scope))
194
194
  ] }) : null,
195
195
  /* @__PURE__ */ jsx("li", { children: guide.pkce ? "The app must allow the Authorization Code grant with PKCE (S256) \u2014 the loop sends a code challenge." : "The app must allow the Authorization Code grant." }),
196
196
  /* @__PURE__ */ jsxs("li", { children: [
@@ -213,7 +213,7 @@ function CopyableCode({ value, testId }) {
213
213
  /* @__PURE__ */ jsx(
214
214
  "code",
215
215
  {
216
- className: "bg-muted text-fine flex-1 rounded-md px-3 py-2 break-all",
216
+ className: "bg-muted flex-1 rounded-md px-3 py-2 text-xs break-all",
217
217
  "data-test": testId,
218
218
  children: value
219
219
  }
@@ -271,7 +271,7 @@ function CredentialsForm({
271
271
  }
272
272
  });
273
273
  if (keys.length === 0) {
274
- return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-fine", children: "This definition declares no secret names, so there is nothing to save." });
274
+ return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: "This definition declares no secret names, so there is nothing to save." });
275
275
  }
276
276
  return /* @__PURE__ */ jsx(Form, { ...form, children: /* @__PURE__ */ jsxs(
277
277
  "form",
@@ -288,7 +288,7 @@ function CredentialsForm({
288
288
  name: key.name,
289
289
  render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { children: [
290
290
  /* @__PURE__ */ jsxs(FormLabel, { className: "flex items-center gap-2", children: [
291
- /* @__PURE__ */ jsx("code", { className: "text-fine", children: key.name }),
291
+ /* @__PURE__ */ jsx("code", { className: "text-xs", children: key.name }),
292
292
  /* @__PURE__ */ jsx(Badge, { variant: key.filled ? "secondary" : "destructive", children: key.filled ? "filled" : "missing" })
293
293
  ] }),
294
294
  /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
@@ -321,7 +321,7 @@ function CredentialsForm({
321
321
  status.kind === "saved" ? /* @__PURE__ */ jsxs(
322
322
  "span",
323
323
  {
324
- className: "text-muted-foreground text-fine",
324
+ className: "text-muted-foreground text-xs",
325
325
  "data-test": "local-oauth-saved",
326
326
  children: [
327
327
  "Saved ",
@@ -334,7 +334,7 @@ function CredentialsForm({
334
334
  ) : status.kind === "error" ? /* @__PURE__ */ jsx(
335
335
  "span",
336
336
  {
337
- className: "text-destructive text-fine",
337
+ className: "text-destructive text-xs",
338
338
  "data-test": "local-oauth-error",
339
339
  children: status.message
340
340
  }
@@ -353,7 +353,7 @@ function FixturesModeNotice({
353
353
  return /* @__PURE__ */ jsxs(
354
354
  "p",
355
355
  {
356
- className: "text-muted-foreground text-fine",
356
+ className: "text-muted-foreground text-xs",
357
357
  "data-test": "local-oauth-fixtures",
358
358
  children: [
359
359
  "Fixtures mode: the status route is answered from",
@@ -3,7 +3,9 @@ export declare function operationKey(operation: ConsoleOperation): string;
3
3
  /**
4
4
  * Run one contract operation: a schema-driven form (or raw JSON), a
5
5
  * fixtures/live choice where the integration allows it, and the result with its
6
- * validation badge. A write returns an approval request that is decided here.
6
+ * validation badge. A write runs directly, as a person's click does; an
7
+ * operation that requires `confirmed: true` answers `confirmation_required`
8
+ * until the input carries it.
7
9
  */
8
10
  export declare function OperationRunnerPanel({ integration, operation, usedBy, }: {
9
11
  integration: ConsoleIntegration;