@ekanos/harness 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/internal/components/approvals-tray.d.ts +44 -6
- package/dist/internal/components/approvals-tray.js +252 -30
- package/dist/internal/components/ask-assistant-bridge.js +7 -1
- package/dist/internal/components/connect-controls.js +4 -2
- package/dist/internal/components/connect-dialog.d.ts +8 -1
- package/dist/internal/components/connect-dialog.js +23 -10
- package/dist/internal/components/connect-panel.d.ts +3 -2
- package/dist/internal/components/connect-panel.js +680 -340
- package/dist/internal/components/connect-steps.d.ts +72 -0
- package/dist/internal/components/connect-steps.js +341 -0
- package/dist/internal/components/console-not-found.d.ts +14 -0
- package/dist/internal/components/console-not-found.js +57 -0
- package/dist/internal/components/dashboard-grid.d.ts +10 -5
- package/dist/internal/components/dashboard-grid.js +8 -9
- package/dist/internal/components/dev-toolbar.d.ts +27 -5
- package/dist/internal/components/dev-toolbar.js +214 -176
- package/dist/internal/components/ekanos-logo.d.ts +18 -0
- package/dist/internal/components/ekanos-logo.js +74 -0
- package/dist/internal/components/events-panel.d.ts +13 -4
- package/dist/internal/components/events-panel.js +478 -81
- package/dist/internal/components/harness-widget-provider.d.ts +6 -8
- package/dist/internal/components/harness-widget-provider.js +5 -19
- package/dist/internal/components/health-panel.d.ts +8 -1
- package/dist/internal/components/health-panel.js +328 -31
- package/dist/internal/components/integration-badge.js +4 -2
- package/dist/internal/components/integration-tab-skeletons.d.ts +8 -0
- package/dist/internal/components/integration-tab-skeletons.js +76 -0
- package/dist/internal/components/not-found-state.d.ts +39 -0
- package/dist/internal/components/not-found-state.js +127 -0
- package/dist/internal/components/operation-runner-panel.d.ts +1 -1
- package/dist/internal/components/operation-runner-panel.js +624 -189
- package/dist/internal/components/operation-scope.d.ts +13 -0
- package/dist/internal/components/operation-scope.js +79 -0
- package/dist/internal/components/page-skeletons.d.ts +11 -0
- package/dist/internal/components/page-skeletons.js +61 -0
- package/dist/internal/components/provenance-banner.d.ts +13 -4
- package/dist/internal/components/provenance-banner.js +35 -10
- package/dist/internal/components/run-log-copy.d.ts +17 -0
- package/dist/internal/components/run-log-copy.js +67 -0
- package/dist/internal/components/run-log-detail.d.ts +22 -0
- package/dist/internal/components/run-log-detail.js +295 -0
- package/dist/internal/components/run-log-empty.d.ts +13 -0
- package/dist/internal/components/run-log-empty.js +46 -0
- package/dist/internal/components/run-log.d.ts +23 -3
- package/dist/internal/components/run-log.js +384 -130
- package/dist/internal/components/runtime-strip.d.ts +5 -1
- package/dist/internal/components/runtime-strip.js +82 -5
- package/dist/internal/components/schema-form.d.ts +2 -1
- package/dist/internal/components/schema-form.js +212 -79
- package/dist/internal/components/scrollable-nav.js +14 -2
- package/dist/internal/components/segmented-control.d.ts +19 -0
- package/dist/internal/components/segmented-control.js +46 -0
- package/dist/internal/components/shell-header.d.ts +25 -0
- package/dist/internal/components/shell-header.js +126 -0
- package/dist/internal/components/surface-nav.d.ts +12 -4
- package/dist/internal/components/surface-nav.js +79 -80
- package/dist/internal/components/widget-surface.d.ts +5 -1
- package/dist/internal/components/widget-surface.js +86 -14
- package/dist/internal/components/workflow-runner.d.ts +23 -10
- package/dist/internal/components/workflow-runner.js +451 -69
- package/dist/internal/lib/connect-model.d.ts +134 -0
- package/dist/internal/lib/connect-model.js +282 -0
- package/dist/internal/lib/connection-facts.js +2 -1
- package/dist/internal/lib/console-client.js +5 -2
- package/dist/internal/lib/console-hooks.d.ts +4 -1
- package/dist/internal/lib/console-hooks.js +3 -2
- package/dist/internal/lib/console-types.d.ts +6 -0
- package/dist/internal/lib/docs-links.d.ts +27 -0
- package/dist/internal/lib/docs-links.js +55 -1
- package/dist/internal/lib/event-delivery.d.ts +33 -0
- package/dist/internal/lib/event-delivery.js +66 -0
- package/dist/internal/lib/font-files/OFL-BricolageGrotesque.txt +93 -0
- package/dist/internal/lib/font-files/OFL-Figtree.txt +93 -0
- package/dist/internal/lib/font-files/bricolage-grotesque-latin-variable.woff2 +0 -0
- package/dist/internal/lib/font-files/figtree-latin-variable.woff2 +0 -0
- package/dist/internal/lib/fonts.js +13 -12
- package/dist/internal/lib/health-model.d.ts +58 -0
- package/dist/internal/lib/health-model.js +140 -0
- package/dist/internal/lib/integration-console-href.d.ts +5 -0
- package/dist/internal/lib/integration-console-href.js +7 -1
- package/dist/internal/lib/oauth-setup-guide.d.ts +28 -0
- package/dist/internal/lib/oauth-setup-guide.js +35 -1
- package/dist/internal/lib/operation-catalog.d.ts +70 -0
- package/dist/internal/lib/operation-catalog.js +261 -0
- package/dist/internal/lib/overview-model.d.ts +34 -0
- package/dist/internal/lib/overview-model.js +91 -0
- package/dist/internal/lib/registry-entry.d.ts +8 -0
- package/dist/internal/lib/registry-entry.js +11 -0
- package/dist/internal/lib/repo-name.d.ts +9 -0
- package/dist/internal/lib/repo-name.js +21 -0
- package/dist/internal/lib/run-log-view.d.ts +66 -1
- package/dist/internal/lib/run-log-view.js +183 -4
- package/dist/internal/lib/runner-view.d.ts +15 -0
- package/dist/internal/lib/runner-view.js +18 -0
- package/dist/internal/lib/schema-form-model.d.ts +17 -0
- package/dist/internal/lib/schema-form-model.js +50 -0
- package/dist/internal/lib/setup-checklist.d.ts +34 -0
- package/dist/internal/lib/setup-checklist.js +79 -0
- package/dist/internal/lib/toolbar-context.d.ts +0 -1
- package/dist/internal/lib/toolbar-context.js +0 -2
- package/dist/internal/lib/toolbar-visibility.d.ts +9 -2
- package/dist/internal/lib/toolbar-visibility.js +5 -0
- package/dist/internal/lib/use-operation-effects.d.ts +7 -0
- package/dist/internal/lib/use-operation-effects.js +28 -0
- package/dist/internal/lib/use-run-log-query.d.ts +9 -0
- package/dist/internal/lib/use-run-log-query.js +35 -0
- package/dist/internal/lib/widget-grid-gaps.d.ts +18 -0
- package/dist/internal/lib/widget-grid-gaps.js +41 -0
- package/dist/internal/lib/workflow-summary.d.ts +54 -0
- package/dist/internal/lib/workflow-summary.js +147 -0
- package/dist/internal/routes/console-home-page.js +2 -1
- package/dist/internal/routes/experience-connect-page.js +46 -17
- package/dist/internal/routes/experience-layout-page.d.ts +6 -6
- package/dist/internal/routes/experience-layout-page.js +3 -119
- package/dist/internal/routes/experience-page-host.js +61 -5
- package/dist/internal/routes/experience-pages-page.d.ts +5 -0
- package/dist/internal/routes/experience-pages-page.js +118 -0
- package/dist/internal/routes/experience-review-queue-page.d.ts +4 -1
- package/dist/internal/routes/experience-review-queue-page.js +108 -12
- package/dist/internal/routes/experience-runs-page.js +57 -4
- package/dist/internal/routes/experience-summary-page.d.ts +19 -0
- package/dist/internal/routes/experience-summary-page.js +212 -52
- package/dist/internal/routes/experience-widget-page.js +58 -7
- package/dist/internal/routes/experience-widgets-page.d.ts +2 -3
- package/dist/internal/routes/experience-widgets-page.js +29 -4
- package/dist/internal/routes/experience-workflow-page.js +81 -9
- package/dist/internal/routes/experience-workflows-page.js +85 -21
- package/dist/internal/routes/integration-layout.js +28 -3
- package/dist/internal/routes/integrations-connect-page.js +16 -6
- package/dist/internal/routes/integrations-events-page.js +22 -1
- package/dist/internal/routes/integrations-health-page.js +16 -1
- package/dist/internal/routes/integrations-layout.js +28 -4
- package/dist/internal/routes/integrations-list-page.d.ts +0 -1
- package/dist/internal/routes/integrations-list-page.js +11 -9
- package/dist/internal/routes/integrations-operation-page.js +53 -17
- package/dist/internal/routes/integrations-operations-page.js +539 -49
- package/dist/internal/routes/integrations-overview-page.js +332 -69
- package/dist/internal/routes/integrations-runs-page.js +53 -3
- package/dist/internal/routes/integrations-scope.d.ts +15 -2
- package/dist/internal/routes/integrations-scope.js +66 -18
- package/dist/internal/routes/preview-index-page.js +2 -2
- package/dist/internal/routes/repo-home-page.d.ts +2 -2
- package/dist/internal/routes/repo-home-page.js +429 -236
- package/dist/internal/routes/repo-layout.d.ts +12 -0
- package/dist/internal/routes/repo-layout.js +50 -38
- package/dist/internal/routes/repo-package-layouts.js +22 -8
- package/dist/internal/routes/single-widget-page.d.ts +1 -1
- package/dist/internal/routes/single-widget-page.js +28 -5
- package/dist/internal/routes/tile-page.d.ts +1 -1
- package/dist/internal/routes/tile-page.js +1 -2
- package/dist/internal/routes/widgets-page.d.ts +1 -1
- package/dist/internal/routes/widgets-page.js +5 -3
- package/dist/registry.d.ts +4 -5
- package/dist/registry.js +0 -1
- package/dist/routes.d.ts +8 -1
- package/dist/routes.js +4 -0
- package/package.json +14 -14
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { usePathname } from "next/navigation";
|
|
5
|
+
import { Button } from "@ekanos/ui/button";
|
|
6
|
+
import { Card } from "@ekanos/ui/card";
|
|
7
|
+
import {
|
|
8
|
+
EmptyMedia,
|
|
9
|
+
EmptyState,
|
|
10
|
+
EmptyStateHeading,
|
|
11
|
+
EmptyStateText
|
|
12
|
+
} from "@ekanos/ui/empty-state";
|
|
13
|
+
import { Icon } from "@ekanos/ui/icon";
|
|
14
|
+
import { cn } from "@ekanos/ui/utils";
|
|
15
|
+
import { FOCUS_RING } from "./scrollable-nav.js";
|
|
16
|
+
import { ShellHeader } from "./shell-header.js";
|
|
17
|
+
function NotFoundState({
|
|
18
|
+
title,
|
|
19
|
+
description,
|
|
20
|
+
options = [],
|
|
21
|
+
optionsLabel,
|
|
22
|
+
action,
|
|
23
|
+
testId = "not-found"
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ jsxs(EmptyState, { className: "py-12", "data-test": testId, children: [
|
|
26
|
+
/* @__PURE__ */ jsx(EmptyMedia, { variant: "icon", children: /* @__PURE__ */ jsx(Icon, { name: "compass" }) }),
|
|
27
|
+
/* @__PURE__ */ jsx(EmptyStateHeading, { children: title }),
|
|
28
|
+
description ? /* @__PURE__ */ jsx(EmptyStateText, { className: "max-w-md", children: description }) : null,
|
|
29
|
+
options.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "mt-4 flex w-full max-w-md flex-col gap-2 text-left", children: [
|
|
30
|
+
optionsLabel ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-center text-sm", children: optionsLabel }) : null,
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
Card,
|
|
33
|
+
{
|
|
34
|
+
layout: "bleed",
|
|
35
|
+
render: /* @__PURE__ */ jsx("ul", {}),
|
|
36
|
+
className: "divide-y",
|
|
37
|
+
"data-test": "not-found-options",
|
|
38
|
+
children: options.map((option) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NotFoundOptionRow, { option }) }, `${option.label}-${option.href ?? ""}`))
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
] }) : null,
|
|
42
|
+
/* @__PURE__ */ jsxs(
|
|
43
|
+
Button,
|
|
44
|
+
{
|
|
45
|
+
className: "mt-6",
|
|
46
|
+
nativeButton: false,
|
|
47
|
+
render: /* @__PURE__ */ jsx(Link, { href: action.href }),
|
|
48
|
+
"data-test": "not-found-action",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx(Icon, { name: "arrow-left", className: "h-4 w-4" }),
|
|
51
|
+
action.label
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
function NotFoundOptionRow({ option }) {
|
|
58
|
+
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate font-mono text-sm", children: option.label }),
|
|
60
|
+
option.hint ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground ml-auto shrink-0 text-xs", children: option.hint }) : null
|
|
61
|
+
] });
|
|
62
|
+
if (!option.href) {
|
|
63
|
+
return /* @__PURE__ */ jsx("span", { className: "text-muted-foreground flex min-w-0 items-center gap-3 px-4 py-2.5", children: body });
|
|
64
|
+
}
|
|
65
|
+
return /* @__PURE__ */ jsxs(
|
|
66
|
+
Link,
|
|
67
|
+
{
|
|
68
|
+
href: option.href,
|
|
69
|
+
className: cn(
|
|
70
|
+
"hover:bg-muted flex min-w-0 items-center gap-3 px-4 py-2.5 first:rounded-t-lg last:rounded-b-lg",
|
|
71
|
+
FOCUS_RING
|
|
72
|
+
),
|
|
73
|
+
"data-test": "not-found-option",
|
|
74
|
+
children: [
|
|
75
|
+
body,
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
Icon,
|
|
78
|
+
{
|
|
79
|
+
name: "caret-right",
|
|
80
|
+
className: cn(
|
|
81
|
+
"text-muted-foreground h-4 w-4 shrink-0",
|
|
82
|
+
option.hint ? "" : "ml-auto"
|
|
83
|
+
)
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
function NotFoundPage({
|
|
91
|
+
title,
|
|
92
|
+
description,
|
|
93
|
+
options,
|
|
94
|
+
optionsLabel
|
|
95
|
+
} = {}) {
|
|
96
|
+
const pathname = usePathname() ?? "";
|
|
97
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex min-h-screen flex-col", "data-test": "not-found-page", children: [
|
|
98
|
+
/* @__PURE__ */ jsx(ShellHeader, { title: "Ekanos harness", kind: "not found" }),
|
|
99
|
+
/* @__PURE__ */ jsx(
|
|
100
|
+
"main",
|
|
101
|
+
{
|
|
102
|
+
id: "main-content",
|
|
103
|
+
tabIndex: -1,
|
|
104
|
+
className: "mx-auto flex w-full max-w-5xl min-w-0 flex-col gap-6 px-4 py-8 outline-none sm:px-6",
|
|
105
|
+
children: /* @__PURE__ */ jsx(
|
|
106
|
+
NotFoundState,
|
|
107
|
+
{
|
|
108
|
+
title: title ?? "Nothing here",
|
|
109
|
+
description: description ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
110
|
+
"The harness has no page at",
|
|
111
|
+
" ",
|
|
112
|
+
/* @__PURE__ */ jsx("code", { className: "break-all", children: pathname || "this address" }),
|
|
113
|
+
". It may be a link from an older version of the harness, or a typo."
|
|
114
|
+
] }),
|
|
115
|
+
...options ? { options } : {},
|
|
116
|
+
...optionsLabel ? { optionsLabel } : {},
|
|
117
|
+
action: { label: "Go to the home page", href: "/" }
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
] });
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
NotFoundPage,
|
|
126
|
+
NotFoundState
|
|
127
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConsoleIntegration, ConsoleOperation, UsedBy } from '../lib/console-types.js';
|
|
2
2
|
export declare function operationKey(operation: ConsoleOperation): string;
|
|
3
3
|
/**
|
|
4
4
|
* Run one contract operation: a schema-driven form (or raw JSON), a
|