@ekanos/harness 0.15.0 → 0.16.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.
@@ -4,6 +4,7 @@ import { useState } from "react";
4
4
  import { Alert, AlertDescription, AlertTitle } from "@ekanos/ui/alert";
5
5
  import { Badge } from "@ekanos/ui/badge";
6
6
  import { Button } from "@ekanos/ui/button";
7
+ import { Card } from "@ekanos/ui/card";
7
8
  import {
8
9
  Form,
9
10
  FormControl,
@@ -40,13 +41,14 @@ function LocalOAuthPanel({
40
41
  });
41
42
  if (!oauth) return null;
42
43
  return /* @__PURE__ */ jsxs(
43
- "div",
44
+ Card,
44
45
  {
45
- className: "bg-card flex flex-col gap-5 rounded-lg border p-6",
46
+ layout: "bleed",
47
+ className: "flex flex-col gap-5 p-6",
46
48
  "data-test": "local-oauth",
47
49
  children: [
48
50
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
49
- /* @__PURE__ */ jsx("h3", { className: "font-heading text-lg tracking-tight", children: "Local OAuth" }),
51
+ /* @__PURE__ */ jsx("h3", { className: "text-subhead", children: "Local OAuth" }),
50
52
  /* @__PURE__ */ jsx(Badge, { variant: "outline", children: live ? "live" : "fixtures" }),
51
53
  live && setup.data ? /* @__PURE__ */ jsx(Badge, { variant: setup.data.connected ? "default" : "secondary", children: setup.data.connected ? "connected" : "not connected" }) : null
52
54
  ] }),
@@ -64,7 +66,7 @@ function LocalOAuthPanel({
64
66
  ] })
65
67
  ] })
66
68
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
67
- /* @__PURE__ */ jsxs("ol", { className: "text-meta flex flex-col gap-5", children: [
69
+ /* @__PURE__ */ jsxs("ol", { className: "text-body-sm flex flex-col gap-5", children: [
68
70
  /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-2", children: [
69
71
  /* @__PURE__ */ jsx("span", { className: "font-medium", children: "1. Set up the OAuth app at your provider \u2014 this part is yours" }),
70
72
  setup.data.redirectUri ? /* @__PURE__ */ jsx(
@@ -109,7 +111,7 @@ function LocalOAuthPanel({
109
111
  className: "text-muted-foreground text-fine",
110
112
  "data-test": "local-oauth-connection",
111
113
  children: [
112
- 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. ",
114
+ 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.",
113
115
  "The connection lives in the dev server's memory only \u2014 a restart forgets it, and you Connect again."
114
116
  ]
115
117
  }
@@ -345,7 +347,7 @@ function FixturesModeNotice({
345
347
  /* @__PURE__ */ jsx("code", { children: variant }),
346
348
  " variant \u2014 and Connect still runs the real loop above.",
347
349
  " ",
348
- supportsLive ? "Switch the toolbar\u2019s Data dropdown to Live API to have widgets and Triggers use the real connection." : "Add a `live` block to this entry in your harness config to enable the Live API switch."
350
+ supportsLive ? "Switch the toolbar\u2019s Data dropdown to Live API to have widgets and Triggers use the real connection." : "Add a`live` block to this entry in your harness config to enable the Live API switch."
349
351
  ]
350
352
  }
351
353
  );
@@ -28,7 +28,7 @@ function SurfaceNav({
28
28
  ]
29
29
  }
30
30
  ),
31
- /* @__PURE__ */ jsx("h1", { className: "font-heading text-2xl tracking-tight", children: integration.name }),
31
+ /* @__PURE__ */ jsx("h1", { className: "heading-headline", children: integration.name }),
32
32
  /* @__PURE__ */ jsx("code", { className: "text-muted-foreground text-fine", children: integration.slug })
33
33
  ] }),
34
34
  /* @__PURE__ */ jsxs("nav", { className: "flex flex-wrap items-center gap-1", children: [
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Component } from "react";
4
+ import { Card } from "@ekanos/ui/card";
4
5
  import { Icon } from "@ekanos/ui/icon";
5
6
  class WidgetBoundary extends Component {
6
7
  constructor() {
@@ -21,7 +22,7 @@ class WidgetBoundary extends Component {
21
22
  render() {
22
23
  const { error } = this.state;
23
24
  if (!error) return this.props.children;
24
- return /* @__PURE__ */ jsxs("div", { className: "bg-card flex flex-col gap-3 rounded-lg border p-6", children: [
25
+ return /* @__PURE__ */ jsxs(Card, { layout: "bleed", className: "flex flex-col gap-3 p-6", children: [
25
26
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
26
27
  /* @__PURE__ */ jsx(
27
28
  Icon,
@@ -5,6 +5,7 @@ import { notFound } from "next/navigation";
5
5
  import { Alert, AlertDescription, AlertTitle } from "@ekanos/ui/alert";
6
6
  import { Badge } from "@ekanos/ui/badge";
7
7
  import { Button } from "@ekanos/ui/button";
8
+ import { Card } from "@ekanos/ui/card";
8
9
  import {
9
10
  Dialog,
10
11
  DialogContent,
@@ -69,9 +70,9 @@ function ActivationPage() {
69
70
  /* @__PURE__ */ jsx(AlertTitle, { children: mode === "live" ? "Submissions run onActivate on the dev server" : "Submissions go nowhere" }),
70
71
  /* @__PURE__ */ jsxs(AlertDescription, { children: [
71
72
  /* @__PURE__ */ jsxs("p", { children: [
72
- mode === "live" ? "The generated shell stands in for the Ekanos backend. Submitting stores every string field of the form in .ekanos/local-secrets.json and hands it to your live handlers as ctx.secrets, then runs onActivate on that context \u2014 the same rule the host applies to the activation row. " : "The harness has no Ekanos backend. Submitting shows you the ",
73
+ mode === "live" ? "The generated shell stands in for the Ekanos backend. Submitting stores every string field of the form in .ekanos/local-secrets.json and hands it to your live handlers as ctx.secrets, then runs onActivate on that context \u2014 the same rule the host applies to the activation row." : "The harness has no Ekanos backend. Submitting shows you the",
73
74
  mode === "live" ? null : /* @__PURE__ */ jsx("code", { children: "ActivationResult" }),
74
- mode === "live" ? "The " : " your form handed back instead of persisting it \u2014 which is the part worth checking, since that payload is what the real activation action would store. The ",
75
+ mode === "live" ? "The" : "your form handed back instead of persisting it \u2014 which is the part worth checking, since that payload is what the real activation action would store. The",
75
76
  "dialog, the capability and permission sections and the connected state are the real ones, rendered from your",
76
77
  " ",
77
78
  /* @__PURE__ */ jsx("code", { children: "defineIntegration()" }),
@@ -80,42 +81,49 @@ function ActivationPage() {
80
81
  /* @__PURE__ */ jsx("p", { "data-test": "activation-mode-notice-top", children: mode === "live" ? "Live API: an OAuth form\u2019s Connect runs the real loop through the generated shell (see Local OAuth below), onActivate runs on the server-held context that loop stored tokens in, and widgets reach real vendors through useIntegrationFetch(). The host runs the same declarations, with real enforcement, after you publish." : "Fixtures: an OAuth form reads its connection status from oauth.connected in your harness entry, onActivate runs in this browser against a context seeded from triggerMocks, and nothing leaves your machine." })
81
82
  ] })
82
83
  ] }),
83
- /* @__PURE__ */ jsxs("div", { className: "bg-card flex flex-wrap items-center justify-between gap-3 rounded-lg border p-5", children: [
84
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
85
- /* @__PURE__ */ jsx("span", { className: "text-label", children: flow.connected ? "Connected" : "Not connected" }),
86
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-meta", children: flow.connected ? "The dialog now shows the manage view, whose only action is Disconnect." : definition?.oauth ? "Save your local OAuth credentials below, then open the connect dialog and click Connect." : "The dialog shows the scope disclosure and your activation form." })
87
- ] }),
88
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
89
- /* @__PURE__ */ jsx(
90
- Button,
91
- {
92
- variant: "outline",
93
- size: "sm",
94
- onClick: () => setFlow((prev) => ({ ...prev, open: true })),
95
- "data-test": "activation-open-dialog",
96
- children: "Open connect dialog"
97
- }
98
- ),
99
- /* @__PURE__ */ jsx(
100
- Button,
101
- {
102
- variant: "ghost",
103
- size: "sm",
104
- onClick: () => {
105
- clearLiveActivationData(integration.slug);
106
- setFlow({
107
- open: false,
108
- connected: false,
109
- result: null,
110
- revealed: false,
111
- activationHook: null
112
- });
113
- },
114
- children: "Reset flow"
115
- }
116
- )
117
- ] })
118
- ] }),
84
+ /* @__PURE__ */ jsxs(
85
+ Card,
86
+ {
87
+ layout: "bleed",
88
+ className: "flex flex-wrap items-center justify-between gap-3 p-5",
89
+ children: [
90
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
91
+ /* @__PURE__ */ jsx("span", { className: "text-label", children: flow.connected ? "Connected" : "Not connected" }),
92
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-meta", children: flow.connected ? "The dialog now shows the manage view, whose only action is Disconnect." : definition?.oauth ? "Save your local OAuth credentials below, then open the connect dialog and click Connect." : "The dialog shows the scope disclosure and your activation form." })
93
+ ] }),
94
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
95
+ /* @__PURE__ */ jsx(
96
+ Button,
97
+ {
98
+ variant: "outline",
99
+ size: "sm",
100
+ onClick: () => setFlow((prev) => ({ ...prev, open: true })),
101
+ "data-test": "activation-open-dialog",
102
+ children: "Open connect dialog"
103
+ }
104
+ ),
105
+ /* @__PURE__ */ jsx(
106
+ Button,
107
+ {
108
+ variant: "ghost",
109
+ size: "sm",
110
+ onClick: () => {
111
+ clearLiveActivationData(integration.slug);
112
+ setFlow({
113
+ open: false,
114
+ connected: false,
115
+ result: null,
116
+ revealed: false,
117
+ activationHook: null
118
+ });
119
+ },
120
+ children: "Reset flow"
121
+ }
122
+ )
123
+ ] })
124
+ ]
125
+ }
126
+ ),
119
127
  definition ? /* @__PURE__ */ jsx(
120
128
  LocalOAuthPanel,
121
129
  {
@@ -132,7 +140,7 @@ function ActivationPage() {
132
140
  onOpenChange: (next) => setFlow((prev) => ({ ...prev, open: next })),
133
141
  children: /* @__PURE__ */ jsxs(DialogContent, { "data-test": "integration-connect-dialog", children: [
134
142
  /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
135
- /* @__PURE__ */ jsx("span", { className: "font-heading bg-muted text-muted-foreground text-title flex h-10 w-10 shrink-0 items-center justify-center rounded-full", children: integration.name.trim().charAt(0).toUpperCase() || "?" }),
143
+ /* @__PURE__ */ jsx("span", { className: "bg-muted text-muted-foreground text-title flex h-10 w-10 shrink-0 items-center justify-center rounded-full", children: integration.name.trim().charAt(0).toUpperCase() || "?" }),
136
144
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
137
145
  /* @__PURE__ */ jsx(DialogTitle, { children: integration.name }),
138
146
  /* @__PURE__ */ jsx(DialogDescription, { children: summary })
@@ -201,9 +209,9 @@ function ActivationPage() {
201
209
  "."
202
210
  ] }) })
203
211
  ] }) : null,
204
- flow.result ? /* @__PURE__ */ jsxs("div", { className: "bg-card flex flex-col gap-3 rounded-lg border p-6", children: [
212
+ flow.result ? /* @__PURE__ */ jsxs(Card, { layout: "bleed", className: "flex flex-col gap-3 p-6", children: [
205
213
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
206
- /* @__PURE__ */ jsx("h2", { className: "font-heading text-lg tracking-tight", children: "Submitted payload" }),
214
+ /* @__PURE__ */ jsx("h2", { className: "text-subhead", children: "Submitted payload" }),
207
215
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
208
216
  hasSensitiveValues(flow.result) ? /* @__PURE__ */ jsx(
209
217
  Button,
@@ -250,9 +258,10 @@ function OnActivatePanel({
250
258
  label: "onActivate skipped \u2014 not declared"
251
259
  } : { variant: "destructive", label: "onActivate threw" };
252
260
  return /* @__PURE__ */ jsxs(
253
- "div",
261
+ Card,
254
262
  {
255
- className: "bg-card flex flex-col gap-2 rounded-lg border p-6",
263
+ layout: "bleed",
264
+ className: "flex flex-col gap-2 p-6",
256
265
  "data-test": "activation-onactivate-outcome",
257
266
  children: [
258
267
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx(Badge, { variant: badge.variant, children: badge.label }) }),
@@ -275,8 +284,8 @@ function CapabilityList({
275
284
  }) {
276
285
  if (capabilities.length === 0) return null;
277
286
  return /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-2", children: [
278
- /* @__PURE__ */ jsx("h3", { className: "text-muted-foreground text-xs font-semibold tracking-wider uppercase", children: "What it does" }),
279
- /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1.5", children: capabilities.map((capability) => /* @__PURE__ */ jsxs("li", { className: "text-foreground text-meta", children: [
287
+ /* @__PURE__ */ jsx("h3", { className: "text-muted-foreground text-eyebrow font-semibold uppercase", children: "What it does" }),
288
+ /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1.5", children: capabilities.map((capability) => /* @__PURE__ */ jsxs("li", { className: "text-foreground text-body-sm", children: [
280
289
  capability.label,
281
290
  capability.description ? /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
282
291
  " ",
@@ -291,7 +300,7 @@ function PermissionList({
291
300
  }) {
292
301
  if (permissions.length === 0) return null;
293
302
  return /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-2", children: [
294
- /* @__PURE__ */ jsx("h3", { className: "text-muted-foreground text-xs font-semibold tracking-wider uppercase", children: "What it can access" }),
303
+ /* @__PURE__ */ jsx("h3", { className: "text-muted-foreground text-eyebrow font-semibold uppercase", children: "What it can access" }),
295
304
  /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-2", children: permissions.map((permission) => /* @__PURE__ */ jsxs("li", { className: "flex flex-col gap-0.5", children: [
296
305
  /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
297
306
  /* @__PURE__ */ jsx("span", { className: "text-foreground text-label", children: permission.label }),
@@ -1,5 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import Link from "next/link";
3
+ import { Card } from "@ekanos/ui/card";
3
4
  import { Icon } from "@ekanos/ui/icon";
4
5
  import { HARNESS_SURFACES } from "../surfaces.js";
5
6
  function IndexPage({
@@ -7,26 +8,35 @@ function IndexPage({
7
8
  }) {
8
9
  return /* @__PURE__ */ jsxs("main", { className: "mx-auto flex w-full max-w-5xl flex-col gap-6 px-6 py-10", children: [
9
10
  /* @__PURE__ */ jsxs("header", { className: "flex flex-col gap-2", children: [
10
- /* @__PURE__ */ jsx("h1", { className: "font-heading text-headline-lg font-normal tracking-tight", children: "Integration harness" }),
11
+ /* @__PURE__ */ jsx("h1", { className: "heading-headline-lg font-normal", children: "Integration harness" }),
11
12
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta", children: "Every registered integration, rendered in real Ekanos chrome from fixtures. No Supabase, no auth, no network." })
12
13
  ] }),
13
- integrations.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "bg-card flex flex-col items-center gap-3 rounded-lg border p-6 text-center", children: [
14
- /* @__PURE__ */ jsx(
15
- Icon,
16
- {
17
- name: "fa-solid fa-box-open",
18
- className: "text-muted-foreground h-6 w-6"
19
- }
20
- ),
21
- /* @__PURE__ */ jsx("p", { className: "text-meta", children: "No integrations registered. Add one to your harness config at the project root." })
22
- ] }) : /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-5", "data-test": "integration-list", children: integrations.map((integration) => /* @__PURE__ */ jsxs(
23
- "li",
14
+ integrations.length === 0 ? /* @__PURE__ */ jsxs(
15
+ Card,
24
16
  {
25
- className: "bg-card shadow-card flex flex-col gap-5 rounded-lg p-6",
17
+ layout: "bleed",
18
+ className: "flex flex-col items-center gap-3 p-6 text-center",
19
+ children: [
20
+ /* @__PURE__ */ jsx(
21
+ Icon,
22
+ {
23
+ name: "fa-solid fa-box-open",
24
+ className: "text-muted-foreground h-6 w-6"
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsx("p", { className: "text-body-sm", children: "No integrations registered. Add one to your harness config at the project root." })
28
+ ]
29
+ }
30
+ ) : /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-5", "data-test": "integration-list", children: integrations.map((integration) => /* @__PURE__ */ jsxs(
31
+ Card,
32
+ {
33
+ layout: "bleed",
34
+ render: /* @__PURE__ */ jsx("li", {}),
35
+ className: "flex flex-col gap-5 p-6",
26
36
  children: [
27
37
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
28
38
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-baseline gap-3", children: [
29
- /* @__PURE__ */ jsx("h2", { className: "font-heading text-subhead-lg font-normal tracking-tight", children: integration.name }),
39
+ /* @__PURE__ */ jsx("h2", { className: "heading-subhead-lg font-normal", children: integration.name }),
30
40
  /* @__PURE__ */ jsx("code", { className: "text-muted-foreground text-fine", children: integration.slug })
31
41
  ] }),
32
42
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta", children: integration.description })
@@ -35,7 +45,7 @@ function IndexPage({
35
45
  Link,
36
46
  {
37
47
  href: `/${integration.slug}/${surface.segment}`,
38
- className: "bg-accent/50 hover:bg-accent text-meta rounded-md px-3 py-2 transition-colors",
48
+ className: "bg-accent/50 hover:bg-accent text-body-sm rounded-md px-3 py-2 transition-colors",
39
49
  children: surface.shortLabel
40
50
  },
41
51
  surface.segment
@@ -79,7 +79,7 @@ function EgressMismatchNotice({ mismatch }) {
79
79
  /* @__PURE__ */ jsx("code", { children: "defineIntegration({ egress })" }),
80
80
  ":"
81
81
  ] }),
82
- /* @__PURE__ */ jsx("ul", { className: "mt-2 flex flex-col gap-1", children: mismatch.undeclared.map((origin) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("code", { className: "text-meta", children: origin }) }, origin)) }),
82
+ /* @__PURE__ */ jsx("ul", { className: "mt-2 flex flex-col gap-1", children: mismatch.undeclared.map((origin) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("code", { className: "text-body-sm", children: origin }) }, origin)) }),
83
83
  /* @__PURE__ */ jsx("p", { className: "mt-3", children: "The definition is what a reviewer reads and what production enforces, so running live against a wider list would prove nothing about the integration we actually ship. Import the same constant into both \u2014 never retype it \u2014 and this goes away." })
84
84
  ] })
85
85
  ] }) });
@@ -2,6 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { notFound } from "next/navigation";
4
4
  import { Alert, AlertDescription, AlertTitle } from "@ekanos/ui/alert";
5
+ import { Card } from "@ekanos/ui/card";
5
6
  import { HARNESS_ACCOUNT_ID } from "../../registry.js";
6
7
  import { ViewportFrame } from "../components/viewport-frame.js";
7
8
  import { useHarnessIntegration } from "../registry-context.js";
@@ -41,7 +42,7 @@ function TilePage() {
41
42
  Tile ? /* @__PURE__ */ jsx(ViewportFrame, { children: /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-4", children: [
42
43
  /* @__PURE__ */ jsxs("header", { children: [
43
44
  /* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2.5", children: [
44
- /* @__PURE__ */ jsx("h2", { className: "font-heading text-foreground text-subhead-lg tracking-tight", children: "Available integrations" }),
45
+ /* @__PURE__ */ jsx("h2", { className: "text-foreground heading-subhead-lg", children: "Available integrations" }),
45
46
  /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-meta tabular-nums", children: "3" })
46
47
  ] }),
47
48
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta mt-1 max-w-prose", children: "Your tile in the catalogue grid, with two inert neighbours for scale. Column width, gap and heading come from the real marketplace." })
@@ -68,14 +69,15 @@ function NeighbourCard({
68
69
  vendor
69
70
  }) {
70
71
  return /* @__PURE__ */ jsxs(
71
- "div",
72
+ Card,
72
73
  {
74
+ layout: "bleed",
73
75
  "aria-hidden": "true",
74
- className: "bg-card text-card-foreground shadow-card flex h-full flex-col gap-0 rounded-xl border p-5 opacity-60",
76
+ className: "flex h-full flex-col gap-0 p-5 opacity-60",
75
77
  children: [
76
78
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
77
- /* @__PURE__ */ jsx("span", { className: "font-heading bg-muted text-muted-foreground text-title flex h-10 w-10 shrink-0 items-center justify-center rounded-lg", children: name.charAt(0) }),
78
- /* @__PURE__ */ jsx("span", { className: "font-heading text-title truncate tracking-tight", children: name })
79
+ /* @__PURE__ */ jsx("span", { className: "bg-muted text-muted-foreground text-title flex h-10 w-10 shrink-0 items-center justify-center rounded-lg", children: name.charAt(0) }),
80
+ /* @__PURE__ */ jsx("span", { className: "text-title truncate", children: name })
79
81
  ] }),
80
82
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-meta mt-3 line-clamp-2", children: description }),
81
83
  /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-meta mt-auto pt-4", children: vendor })
@@ -9,6 +9,7 @@ import {
9
9
  import { Alert, AlertDescription, AlertTitle } from "@ekanos/ui/alert";
10
10
  import { Badge } from "@ekanos/ui/badge";
11
11
  import { Button } from "@ekanos/ui/button";
12
+ import { Card } from "@ekanos/ui/card";
12
13
  import { Textarea } from "@ekanos/ui/textarea";
13
14
  import { LocalOAuthPanel } from "../components/local-oauth-panel.js";
14
15
  import { useDefinitionMockContext } from "../lib/definition-mock-context.js";
@@ -50,7 +51,7 @@ function OutcomePanel({ outcome }) {
50
51
  /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-fine", children: [
51
52
  scope === "account" ? "Account" : "User",
52
53
  " storage after this run",
53
- Object.keys(outcome.storage[scope]).length === 0 ? " (empty)" : ""
54
+ Object.keys(outcome.storage[scope]).length === 0 ? "(empty)" : ""
54
55
  ] }),
55
56
  /* @__PURE__ */ jsx("pre", { className: "bg-muted text-fine max-h-64 overflow-auto rounded-md p-3", children: JSON.stringify(outcome.storage[scope], null, 2) })
56
57
  ] }, scope)) })
@@ -69,7 +70,7 @@ function RaisedAgentEvents({ events }) {
69
70
  className: "flex flex-col gap-1 rounded-md border p-3",
70
71
  children: [
71
72
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
72
- /* @__PURE__ */ jsx("code", { className: "text-meta", children: event.id }),
73
+ /* @__PURE__ */ jsx("code", { className: "text-body-sm", children: event.id }),
73
74
  /* @__PURE__ */ jsx(Badge, { variant: event.problem ? "destructive" : "secondary", children: event.problem ? "dropped" : "would be recorded" }),
74
75
  event.dedupeKey ? /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-fine", children: [
75
76
  "dedupe ",
@@ -96,10 +97,10 @@ function RaisedAgentEvents({ events }) {
96
97
  /* @__PURE__ */ jsx("code", { children: route.key }),
97
98
  " to the team mapped to ",
98
99
  /* @__PURE__ */ jsx("code", { children: route.value }),
99
- route.label ? ` (${route.label})` : "",
100
+ route.label ? `(${route.label})` : "",
100
101
  "."
101
102
  ] }),
102
- route.problem ? ` ${route.problem}` : null
103
+ route.problem ? `${route.problem}` : null
103
104
  ]
104
105
  },
105
106
  route.key
@@ -118,13 +119,14 @@ function AgentEventsCard({
118
119
  const channel = definition.agentChannel;
119
120
  if (events.length === 0 && !channel) return null;
120
121
  return /* @__PURE__ */ jsxs(
121
- "div",
122
+ Card,
122
123
  {
123
- className: "bg-card flex flex-col gap-5 rounded-lg border p-6",
124
+ layout: "bleed",
125
+ className: "flex flex-col gap-5 p-6",
124
126
  "data-test": "agent-events",
125
127
  children: [
126
128
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
127
- /* @__PURE__ */ jsx("h3", { className: "font-heading text-subhead tracking-tight", children: "Agent events" }),
129
+ /* @__PURE__ */ jsx("h3", { className: "text-subhead", children: "Agent events" }),
128
130
  /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "agents" }),
129
131
  channel ? /* @__PURE__ */ jsxs(Badge, { variant: "secondary", children: [
130
132
  "replies with ",
@@ -141,7 +143,7 @@ function AgentEventsCard({
141
143
  "On a Source connection, events are routed to a team by",
142
144
  " ",
143
145
  definition.routing.keys.map((key, index) => /* @__PURE__ */ jsxs("span", { children: [
144
- index > 0 ? " or " : "",
146
+ index > 0 ? "or" : "",
145
147
  /* @__PURE__ */ jsx("code", { children: key.id }),
146
148
  " (",
147
149
  key.label,
@@ -214,13 +216,14 @@ function WebhookCard({
214
216
  setState((s) => ({ ...s, outcome, busy: false }));
215
217
  };
216
218
  return /* @__PURE__ */ jsxs(
217
- "div",
219
+ Card,
218
220
  {
219
- className: "bg-card flex flex-col gap-5 rounded-lg border p-6",
221
+ layout: "bleed",
222
+ className: "flex flex-col gap-5 p-6",
220
223
  "data-test": `webhook-${webhook.id}`,
221
224
  children: [
222
225
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
223
- /* @__PURE__ */ jsx("h3", { className: "font-heading text-lg tracking-tight", children: /* @__PURE__ */ jsx("code", { children: webhook.id }) }),
226
+ /* @__PURE__ */ jsx("h3", { className: "text-subhead", children: /* @__PURE__ */ jsx("code", { children: webhook.id }) }),
224
227
  /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "webhook" }),
225
228
  webhook.signature === "none" ? /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: "unsigned" }) : /* @__PURE__ */ jsxs(Badge, { variant: "secondary", children: [
226
229
  "signed: ",
@@ -275,13 +278,14 @@ function ScheduleCard({
275
278
  setState({ outcome, busy: false });
276
279
  };
277
280
  return /* @__PURE__ */ jsxs(
278
- "div",
281
+ Card,
279
282
  {
280
- className: "bg-card flex flex-col gap-5 rounded-lg border p-6",
283
+ layout: "bleed",
284
+ className: "flex flex-col gap-5 p-6",
281
285
  "data-test": `schedule-${schedule.id}`,
282
286
  children: [
283
287
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
284
- /* @__PURE__ */ jsx("h3", { className: "font-heading text-lg tracking-tight", children: /* @__PURE__ */ jsx("code", { children: schedule.id }) }),
288
+ /* @__PURE__ */ jsx("h3", { className: "text-subhead", children: /* @__PURE__ */ jsx("code", { children: schedule.id }) }),
285
289
  /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "schedule" }),
286
290
  /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: /* @__PURE__ */ jsx("code", { children: schedule.cron }) })
287
291
  ] }),
@@ -327,16 +331,17 @@ function OAuthCard({
327
331
  ];
328
332
  return /* @__PURE__ */ jsxs(Fragment, { children: [
329
333
  /* @__PURE__ */ jsxs(
330
- "div",
334
+ Card,
331
335
  {
332
- className: "bg-card flex flex-col gap-5 rounded-lg border p-6",
336
+ layout: "bleed",
337
+ className: "flex flex-col gap-5 p-6",
333
338
  "data-test": "oauth-declaration",
334
339
  children: [
335
340
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
336
- /* @__PURE__ */ jsx("h3", { className: "font-heading text-lg tracking-tight", children: "OAuth declaration" }),
341
+ /* @__PURE__ */ jsx("h3", { className: "text-subhead", children: "OAuth declaration" }),
337
342
  /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "oauth" })
338
343
  ] }),
339
- /* @__PURE__ */ jsxs("dl", { className: "text-meta grid grid-cols-1 gap-x-6 gap-y-2 sm:grid-cols-[auto_1fr]", children: [
344
+ /* @__PURE__ */ jsxs("dl", { className: "text-body-sm grid grid-cols-1 gap-x-6 gap-y-2 sm:grid-cols-[auto_1fr]", children: [
340
345
  rows.map(([label, value]) => /* @__PURE__ */ jsxs("div", { className: "contents", children: [
341
346
  /* @__PURE__ */ jsx("dt", { className: "text-muted-foreground", children: label }),
342
347
  /* @__PURE__ */ jsx("dd", { children: /* @__PURE__ */ jsx("code", { className: "break-all", children: value }) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekanos/harness",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "private": false,
5
5
  "description": "The Ekanos integration dev harness — every surface of an integration rendered in real Ekanos chrome, from fixtures, with no Supabase or auth; and, in live mode, a real localhost OAuth loop over your own dev-app credentials.",
6
6
  "homepage": "https://sdk.ekanos.dev/harness/overview",
@@ -65,8 +65,8 @@
65
65
  "tw-animate-css": "1.4.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@ekanos/sdk": "0.15.0",
69
- "@ekanos/ui": "0.15.0",
68
+ "@ekanos/sdk": "0.16.0",
69
+ "@ekanos/ui": "0.16.0",
70
70
  "@kit/tsconfig": "0.1.0",
71
71
  "@tailwindcss/postcss": "4.3.3",
72
72
  "@tanstack/react-query": "5.103.2",
@@ -85,8 +85,8 @@
85
85
  "zod": "4.6.5"
86
86
  },
87
87
  "peerDependencies": {
88
- "@ekanos/sdk": "^0.15.0",
89
- "@ekanos/ui": "^0.15.0",
88
+ "@ekanos/sdk": "^0.16.0",
89
+ "@ekanos/ui": "^0.16.0",
90
90
  "@tanstack/react-query": "^5.101.4",
91
91
  "next": "^16.0.0",
92
92
  "next-intl": "^4.14.7",