@ekanos/harness 0.18.0 → 0.19.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/dist/api-types.d.ts +490 -0
- package/dist/api-types.js +6 -0
- package/dist/api.d.ts +33 -0
- package/dist/api.js +36 -1
- package/dist/app.js +6 -1
- package/dist/internal/components/approvals-tray.d.ts +17 -0
- package/dist/internal/components/approvals-tray.js +116 -0
- package/dist/internal/components/connect-controls.d.ts +12 -0
- package/dist/internal/components/connect-controls.js +69 -0
- package/dist/internal/components/connect-dialog.d.ts +19 -0
- package/dist/internal/components/connect-dialog.js +61 -0
- package/dist/internal/components/connect-panel.d.ts +25 -0
- package/dist/internal/components/connect-panel.js +292 -0
- package/dist/internal/components/connection-chip.d.ts +14 -0
- package/dist/internal/components/connection-chip.js +75 -0
- package/dist/internal/components/dashboard-grid.js +38 -24
- package/dist/internal/components/dev-toolbar.js +176 -103
- package/dist/internal/components/events-panel.d.ts +10 -0
- package/dist/internal/components/events-panel.js +111 -0
- package/dist/internal/components/health-panel.d.ts +4 -0
- package/dist/internal/components/health-panel.js +56 -0
- package/dist/internal/components/integration-badge.d.ts +29 -0
- package/dist/internal/components/integration-badge.js +105 -0
- package/dist/internal/components/local-oauth-panel.js +21 -1
- package/dist/internal/components/operation-runner-panel.d.ts +12 -0
- package/dist/internal/components/operation-runner-panel.js +331 -0
- package/dist/internal/components/provenance-banner.d.ts +12 -0
- package/dist/internal/components/provenance-banner.js +107 -0
- package/dist/internal/components/repo-connection.d.ts +10 -0
- package/dist/internal/components/repo-connection.js +32 -0
- package/dist/internal/components/run-log.d.ts +9 -0
- package/dist/internal/components/run-log.js +228 -0
- package/dist/internal/components/runtime-strip.d.ts +12 -0
- package/dist/internal/components/runtime-strip.js +158 -0
- package/dist/internal/components/schema-form.d.ts +13 -0
- package/dist/internal/components/schema-form.js +382 -0
- package/dist/internal/components/scrollable-nav.d.ts +12 -0
- package/dist/internal/components/scrollable-nav.js +68 -0
- package/dist/internal/components/surface-nav.d.ts +31 -1
- package/dist/internal/components/surface-nav.js +238 -31
- package/dist/internal/components/workflow-runner.d.ts +14 -0
- package/dist/internal/components/workflow-runner.js +104 -0
- package/dist/internal/lib/bundled-secrets.d.ts +9 -0
- package/dist/internal/lib/bundled-secrets.js +24 -0
- package/dist/internal/lib/chrome-slot.d.ts +2 -0
- package/dist/internal/lib/chrome-slot.js +25 -0
- package/dist/internal/lib/connection-facts.d.ts +44 -0
- package/dist/internal/lib/connection-facts.js +116 -0
- package/dist/internal/lib/console-client.d.ts +55 -0
- package/dist/internal/lib/console-client.js +295 -0
- package/dist/internal/lib/console-context.d.ts +40 -0
- package/dist/internal/lib/console-context.js +67 -0
- package/dist/internal/lib/console-hooks.d.ts +33 -0
- package/dist/internal/lib/console-hooks.js +118 -0
- package/dist/internal/lib/console-types.d.ts +279 -0
- package/dist/internal/lib/console-types.js +0 -0
- package/dist/internal/lib/experience-runtime.d.ts +8 -0
- package/dist/internal/lib/experience-runtime.js +22 -0
- package/dist/internal/lib/preview-sections.d.ts +13 -0
- package/dist/internal/lib/preview-sections.js +32 -0
- package/dist/internal/lib/repo-context.d.ts +20 -0
- package/dist/internal/lib/repo-context.js +64 -0
- package/dist/internal/lib/run-log-view.d.ts +24 -0
- package/dist/internal/lib/run-log-view.js +57 -0
- package/dist/internal/lib/schema-form-model.d.ts +34 -0
- package/dist/internal/lib/schema-form-model.js +272 -0
- package/dist/internal/lib/toolbar-context.d.ts +9 -1
- package/dist/internal/lib/toolbar-context.js +13 -3
- package/dist/internal/lib/toolbar-visibility.d.ts +16 -0
- package/dist/internal/lib/toolbar-visibility.js +31 -0
- package/dist/internal/registry-context.d.ts +2 -0
- package/dist/internal/registry-context.js +11 -9
- package/dist/internal/routes/activation-page.js +44 -20
- package/dist/internal/routes/console-home-page.d.ts +5 -0
- package/dist/internal/routes/console-home-page.js +18 -0
- package/dist/internal/routes/experience-connect-page.d.ts +6 -0
- package/dist/internal/routes/experience-connect-page.js +127 -0
- package/dist/internal/routes/experience-page-host.d.ts +2 -0
- package/dist/internal/routes/experience-page-host.js +18 -0
- package/dist/internal/routes/experience-review-queue-page.d.ts +2 -0
- package/dist/internal/routes/experience-review-queue-page.js +60 -0
- package/dist/internal/routes/experience-runs-page.d.ts +1 -0
- package/dist/internal/routes/experience-runs-page.js +13 -0
- package/dist/internal/routes/experience-summary-page.d.ts +1 -0
- package/dist/internal/routes/experience-summary-page.js +101 -0
- package/dist/internal/routes/experience-widget-page.d.ts +1 -0
- package/dist/internal/routes/experience-widget-page.js +26 -0
- package/dist/internal/routes/experience-widgets-page.d.ts +6 -0
- package/dist/internal/routes/experience-widgets-page.js +22 -0
- package/dist/internal/routes/experience-workflow-page.d.ts +1 -0
- package/dist/internal/routes/experience-workflow-page.js +24 -0
- package/dist/internal/routes/experience-workflows-page.d.ts +1 -0
- package/dist/internal/routes/experience-workflows-page.js +44 -0
- package/dist/internal/routes/index-page.d.ts +10 -9
- package/dist/internal/routes/index-page.js +3 -68
- package/dist/internal/routes/integration-layout.d.ts +12 -1
- package/dist/internal/routes/integration-layout.js +20 -6
- package/dist/internal/routes/integrations-connect-page.d.ts +1 -0
- package/dist/internal/routes/integrations-connect-page.js +19 -0
- package/dist/internal/routes/integrations-events-page.d.ts +1 -0
- package/dist/internal/routes/integrations-events-page.js +10 -0
- package/dist/internal/routes/integrations-health-page.d.ts +1 -0
- package/dist/internal/routes/integrations-health-page.js +10 -0
- package/dist/internal/routes/integrations-layout.d.ts +17 -0
- package/dist/internal/routes/integrations-layout.js +106 -0
- package/dist/internal/routes/integrations-list-page.d.ts +2 -0
- package/dist/internal/routes/integrations-list-page.js +94 -0
- package/dist/internal/routes/integrations-operation-page.d.ts +1 -0
- package/dist/internal/routes/integrations-operation-page.js +29 -0
- package/dist/internal/routes/integrations-operations-page.d.ts +1 -0
- package/dist/internal/routes/integrations-operations-page.js +61 -0
- package/dist/internal/routes/integrations-overview-page.d.ts +1 -0
- package/dist/internal/routes/integrations-overview-page.js +90 -0
- package/dist/internal/routes/integrations-runs-page.d.ts +1 -0
- package/dist/internal/routes/integrations-runs-page.js +14 -0
- package/dist/internal/routes/integrations-scope.d.ts +12 -0
- package/dist/internal/routes/integrations-scope.js +39 -0
- package/dist/internal/routes/legacy-preview-redirect.d.ts +6 -0
- package/dist/internal/routes/legacy-preview-redirect.js +12 -0
- package/dist/internal/routes/preview-index-page.d.ts +2 -0
- package/dist/internal/routes/preview-index-page.js +14 -0
- package/dist/internal/routes/repo-connections-page.d.ts +6 -0
- package/dist/internal/routes/repo-connections-page.js +8 -0
- package/dist/internal/routes/repo-home-page.d.ts +2 -0
- package/dist/internal/routes/repo-home-page.js +320 -0
- package/dist/internal/routes/repo-layout.d.ts +7 -0
- package/dist/internal/routes/repo-layout.js +76 -0
- package/dist/internal/routes/repo-package-layouts.d.ts +20 -0
- package/dist/internal/routes/repo-package-layouts.js +104 -0
- package/dist/internal/routes/root-layout.d.ts +3 -1
- package/dist/internal/routes/root-layout.js +13 -3
- package/dist/internal/routes/single-widget-page.js +5 -12
- package/dist/internal/routes/tile-page.js +20 -41
- package/dist/internal/routes/triggers-page.js +55 -62
- package/dist/internal/routes/widgets-page.js +1 -1
- package/dist/internal/server/api-router.js +46 -4
- package/dist/internal/server/approvals.d.ts +44 -0
- package/dist/internal/server/approvals.js +76 -0
- package/dist/internal/server/contract-sources.d.ts +28 -0
- package/dist/internal/server/contract-sources.js +83 -0
- package/dist/internal/server/definition-loader.d.ts +22 -0
- package/dist/internal/server/definition-loader.js +125 -0
- package/dist/internal/server/ekanos-api-router.d.ts +34 -0
- package/dist/internal/server/ekanos-api-router.js +835 -0
- package/dist/internal/server/experience-loader.d.ts +57 -0
- package/dist/internal/server/experience-loader.js +146 -0
- package/dist/internal/server/integration-lookup.d.ts +29 -0
- package/dist/internal/server/integration-lookup.js +33 -0
- package/dist/internal/server/integration-resolver.d.ts +121 -0
- package/dist/internal/server/integration-resolver.js +605 -0
- package/dist/internal/server/live-invoker.d.ts +11 -0
- package/dist/internal/server/live-invoker.js +106 -0
- package/dist/internal/server/local-secrets.d.ts +82 -1
- package/dist/internal/server/local-secrets.js +112 -1
- package/dist/internal/server/local-state.d.ts +12 -0
- package/dist/internal/server/local-state.js +45 -0
- package/dist/internal/server/oauth-persistence.d.ts +19 -0
- package/dist/internal/server/oauth-persistence.js +76 -0
- package/dist/internal/server/operation-runner.d.ts +95 -0
- package/dist/internal/server/operation-runner.js +231 -0
- package/dist/internal/server/project-manifest.d.ts +71 -0
- package/dist/internal/server/project-manifest.js +215 -0
- package/dist/internal/server/registry-cache.d.ts +68 -0
- package/dist/internal/server/registry-cache.js +328 -0
- package/dist/internal/server/repo-api-router.d.ts +33 -0
- package/dist/internal/server/repo-api-router.js +391 -0
- package/dist/internal/server/run-log.d.ts +22 -0
- package/dist/internal/server/run-log.js +32 -0
- package/dist/internal/server/semantics.d.ts +28 -0
- package/dist/internal/server/semantics.js +67 -0
- package/dist/internal/server/session-catalog.d.ts +67 -0
- package/dist/internal/server/session-catalog.js +18 -0
- package/dist/internal/server/workflow-runner.d.ts +36 -0
- package/dist/internal/server/workflow-runner.js +183 -0
- package/dist/registry.d.ts +7 -0
- package/dist/resolver.d.ts +145 -0
- package/dist/resolver.js +211 -0
- package/dist/routes.d.ts +64 -2
- package/dist/routes.js +59 -3
- package/dist/runtime.d.ts +46 -0
- package/dist/runtime.js +60 -0
- package/package.json +23 -9
- package/dist/internal/routes/integration-index-page.d.ts +0 -13
- package/dist/internal/routes/integration-index-page.js +0 -17
package/dist/routes.js
CHANGED
|
@@ -1,15 +1,71 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
IntegrationLayout,
|
|
4
|
+
PreviewLayout
|
|
5
|
+
} from "./internal/routes/integration-layout.js";
|
|
6
|
+
import { LegacyPreviewRedirect } from "./internal/routes/legacy-preview-redirect.js";
|
|
7
|
+
import { PreviewIndexPage } from "./internal/routes/preview-index-page.js";
|
|
4
8
|
import { WidgetsPage } from "./internal/routes/widgets-page.js";
|
|
5
9
|
import { SingleWidgetPage } from "./internal/routes/single-widget-page.js";
|
|
6
10
|
import { TilePage } from "./internal/routes/tile-page.js";
|
|
7
11
|
import { ActivationPage } from "./internal/routes/activation-page.js";
|
|
8
12
|
import { TriggersPage } from "./internal/routes/triggers-page.js";
|
|
13
|
+
import { ConsoleLayout } from "./internal/routes/integrations-layout.js";
|
|
14
|
+
import { ConsoleHomePage } from "./internal/routes/console-home-page.js";
|
|
15
|
+
import { IntegrationsListPage } from "./internal/routes/integrations-list-page.js";
|
|
16
|
+
import { IntegrationOverviewPage } from "./internal/routes/integrations-overview-page.js";
|
|
17
|
+
import { IntegrationConnectPage } from "./internal/routes/integrations-connect-page.js";
|
|
18
|
+
import { IntegrationOperationsPage } from "./internal/routes/integrations-operations-page.js";
|
|
19
|
+
import { IntegrationOperationPage } from "./internal/routes/integrations-operation-page.js";
|
|
20
|
+
import { IntegrationEventsPage } from "./internal/routes/integrations-events-page.js";
|
|
21
|
+
import { IntegrationHealthPage } from "./internal/routes/integrations-health-page.js";
|
|
22
|
+
import { IntegrationRunsPage } from "./internal/routes/integrations-runs-page.js";
|
|
23
|
+
import { ExperienceSummaryPage } from "./internal/routes/experience-summary-page.js";
|
|
24
|
+
import { ExperienceWidgetsPage } from "./internal/routes/experience-widgets-page.js";
|
|
25
|
+
import { ExperienceWidgetPage } from "./internal/routes/experience-widget-page.js";
|
|
26
|
+
import { ExperiencePageHost } from "./internal/routes/experience-page-host.js";
|
|
27
|
+
import { ExperienceWorkflowsPage } from "./internal/routes/experience-workflows-page.js";
|
|
28
|
+
import { ExperienceWorkflowPage } from "./internal/routes/experience-workflow-page.js";
|
|
29
|
+
import { ExperienceReviewQueuePage } from "./internal/routes/experience-review-queue-page.js";
|
|
30
|
+
import { ExperienceRunsPage } from "./internal/routes/experience-runs-page.js";
|
|
31
|
+
import { RepoLayout } from "./internal/routes/repo-layout.js";
|
|
32
|
+
import { RepoHomePage } from "./internal/routes/repo-home-page.js";
|
|
33
|
+
import { RepoConnectionsPage } from "./internal/routes/repo-connections-page.js";
|
|
34
|
+
import { ExperienceConnectPage } from "./internal/routes/experience-connect-page.js";
|
|
35
|
+
import {
|
|
36
|
+
RepoExperienceLayout,
|
|
37
|
+
RepoIntegrationLayout
|
|
38
|
+
} from "./internal/routes/repo-package-layouts.js";
|
|
9
39
|
export {
|
|
10
40
|
ActivationPage,
|
|
11
|
-
|
|
41
|
+
ConsoleHomePage,
|
|
42
|
+
ConsoleLayout,
|
|
43
|
+
ExperienceConnectPage,
|
|
44
|
+
ExperiencePageHost,
|
|
45
|
+
ExperienceReviewQueuePage,
|
|
46
|
+
ExperienceRunsPage,
|
|
47
|
+
ExperienceSummaryPage,
|
|
48
|
+
ExperienceWidgetPage,
|
|
49
|
+
ExperienceWidgetsPage,
|
|
50
|
+
ExperienceWorkflowPage,
|
|
51
|
+
ExperienceWorkflowsPage,
|
|
52
|
+
IntegrationConnectPage,
|
|
53
|
+
IntegrationEventsPage,
|
|
54
|
+
IntegrationHealthPage,
|
|
12
55
|
IntegrationLayout,
|
|
56
|
+
IntegrationOperationPage,
|
|
57
|
+
IntegrationOperationsPage,
|
|
58
|
+
IntegrationOverviewPage,
|
|
59
|
+
IntegrationRunsPage,
|
|
60
|
+
IntegrationsListPage,
|
|
61
|
+
LegacyPreviewRedirect,
|
|
62
|
+
PreviewIndexPage,
|
|
63
|
+
PreviewLayout,
|
|
64
|
+
RepoConnectionsPage,
|
|
65
|
+
RepoExperienceLayout,
|
|
66
|
+
RepoHomePage,
|
|
67
|
+
RepoIntegrationLayout,
|
|
68
|
+
RepoLayout,
|
|
13
69
|
SingleWidgetPage,
|
|
14
70
|
TilePage,
|
|
15
71
|
TriggersPage,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ExecutionChannel, FixtureScenario, OperationResult, RunMode, IntegrationProvenance } from './api-types.js';
|
|
2
|
+
/**
|
|
3
|
+
* `@ekanos/harness/runtime` — the harness's implementation of the experience
|
|
4
|
+
* runtime transport (`ExperienceRuntime`, lane B's `@ekanos/sdk/experience/
|
|
5
|
+
* runtime`): `call()` posts to `/__ekanos/api/ops/run`, `integrations()` reports what
|
|
6
|
+
* the resolver found. Client-safe: no Node imports, `fetch` only.
|
|
7
|
+
*
|
|
8
|
+
* The structural types below are the design's (§1.4); lane B's interface is
|
|
9
|
+
* assignable from this, and it is checked there rather than imported here so
|
|
10
|
+
* the harness does not depend on the SDK's experience subpath.
|
|
11
|
+
*
|
|
12
|
+
* Approval-gated writes simply take as long as the human does: the server
|
|
13
|
+
* holds the request until the tray decision, so `call()` resolves late rather
|
|
14
|
+
* than polling.
|
|
15
|
+
*/
|
|
16
|
+
export interface HarnessRuntimeCall {
|
|
17
|
+
integration: string;
|
|
18
|
+
/** Relative key: `tool/get_headlines` or `action/create-draft`. */
|
|
19
|
+
op: string;
|
|
20
|
+
input: unknown;
|
|
21
|
+
channel: ExecutionChannel;
|
|
22
|
+
/** Harness-only knobs. */
|
|
23
|
+
mode?: RunMode;
|
|
24
|
+
scenario?: FixtureScenario;
|
|
25
|
+
origin?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface HarnessIntegrationInfo {
|
|
28
|
+
integration: string;
|
|
29
|
+
version: string;
|
|
30
|
+
provenance: IntegrationProvenance;
|
|
31
|
+
bindingMode: 'team' | 'invoker' | 'user';
|
|
32
|
+
}
|
|
33
|
+
export interface HarnessRuntime {
|
|
34
|
+
call(request: HarnessRuntimeCall): Promise<OperationResult>;
|
|
35
|
+
integrations(): HarnessIntegrationInfo[];
|
|
36
|
+
/** Re-read `/integrations`; resolves once `integrations()` is populated. */
|
|
37
|
+
refresh(): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
export interface HarnessRuntimeOptions {
|
|
40
|
+
/** Origin to call; empty = same origin (the harness page itself). */
|
|
41
|
+
baseUrl?: string;
|
|
42
|
+
fetch?: typeof globalThis.fetch;
|
|
43
|
+
/** The API path prefix; a repo shell points it at one package's router. */
|
|
44
|
+
apiPrefix?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function createHarnessRuntime(options?: HarnessRuntimeOptions): HarnessRuntime;
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { HARNESS_API_PREFIX } from "./api-types.js";
|
|
2
|
+
function createHarnessRuntime(options = {}) {
|
|
3
|
+
const baseUrl = (options.baseUrl ?? "").replace(/\/$/, "");
|
|
4
|
+
const apiPrefix = options.apiPrefix ?? HARNESS_API_PREFIX;
|
|
5
|
+
const doFetch = options.fetch ?? ((input, init) => globalThis.fetch(input, init));
|
|
6
|
+
let cached = [];
|
|
7
|
+
const failure = (message) => ({
|
|
8
|
+
ok: false,
|
|
9
|
+
reason: "execution_failed",
|
|
10
|
+
message: "The request failed.",
|
|
11
|
+
detail: message
|
|
12
|
+
});
|
|
13
|
+
return {
|
|
14
|
+
async call(request) {
|
|
15
|
+
const body = {
|
|
16
|
+
integration: request.integration,
|
|
17
|
+
op: request.op,
|
|
18
|
+
input: request.input,
|
|
19
|
+
channel: request.channel,
|
|
20
|
+
...request.mode ? { mode: request.mode } : {},
|
|
21
|
+
...request.scenario ? { scenario: request.scenario } : {},
|
|
22
|
+
...request.origin ? { origin: request.origin } : {}
|
|
23
|
+
};
|
|
24
|
+
try {
|
|
25
|
+
const response = await doFetch(`${baseUrl}${apiPrefix}/ops/run`, {
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers: { "content-type": "application/json" },
|
|
28
|
+
body: JSON.stringify(body)
|
|
29
|
+
});
|
|
30
|
+
if (!response.ok) {
|
|
31
|
+
return failure(`the harness API answered ${response.status}`);
|
|
32
|
+
}
|
|
33
|
+
return (await response.json()).result;
|
|
34
|
+
} catch (error) {
|
|
35
|
+
return failure(error instanceof Error ? error.message : String(error));
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
integrations() {
|
|
39
|
+
return cached;
|
|
40
|
+
},
|
|
41
|
+
async refresh() {
|
|
42
|
+
const response = await doFetch(`${baseUrl}${apiPrefix}/integrations`);
|
|
43
|
+
if (!response.ok) {
|
|
44
|
+
throw new Error(
|
|
45
|
+
`the harness API answered ${response.status} for /integrations`
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
const data = await response.json();
|
|
49
|
+
cached = data.integrations.map((integration) => ({
|
|
50
|
+
integration: integration.integration,
|
|
51
|
+
version: integration.version,
|
|
52
|
+
provenance: integration.provenance,
|
|
53
|
+
bindingMode: integration.bindingMode
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
createHarnessRuntime
|
|
60
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekanos/harness",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.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",
|
|
@@ -50,6 +50,18 @@
|
|
|
50
50
|
"types": "./dist/api.d.ts",
|
|
51
51
|
"default": "./dist/api.js"
|
|
52
52
|
},
|
|
53
|
+
"./api-types": {
|
|
54
|
+
"types": "./dist/api-types.d.ts",
|
|
55
|
+
"default": "./dist/api-types.js"
|
|
56
|
+
},
|
|
57
|
+
"./runtime": {
|
|
58
|
+
"types": "./dist/runtime.d.ts",
|
|
59
|
+
"default": "./dist/runtime.js"
|
|
60
|
+
},
|
|
61
|
+
"./resolver": {
|
|
62
|
+
"types": "./dist/resolver.d.ts",
|
|
63
|
+
"default": "./dist/resolver.js"
|
|
64
|
+
},
|
|
53
65
|
"./styles.css": "./dist/styles.css",
|
|
54
66
|
"./mocks/team-account-workspace": {
|
|
55
67
|
"types": "./dist/mocks/team-account-workspace.d.ts",
|
|
@@ -60,19 +72,22 @@
|
|
|
60
72
|
"access": "public"
|
|
61
73
|
},
|
|
62
74
|
"dependencies": {
|
|
75
|
+
"@ekanos/integration-schema": "0.19.0",
|
|
63
76
|
"@fortawesome/fontawesome-free": "^7.3.1",
|
|
64
77
|
"next-themes": "0.4.6",
|
|
65
|
-
"tw-animate-css": "1.4.0"
|
|
78
|
+
"tw-animate-css": "1.4.0",
|
|
79
|
+
"zod": "4.6.7"
|
|
66
80
|
},
|
|
67
81
|
"devDependencies": {
|
|
68
|
-
"@ekanos/sdk": "0.
|
|
69
|
-
"@ekanos/ui": "0.
|
|
82
|
+
"@ekanos/sdk": "0.19.0",
|
|
83
|
+
"@ekanos/ui": "0.19.0",
|
|
70
84
|
"@kit/tsconfig": "0.1.0",
|
|
71
85
|
"@tailwindcss/postcss": "4.3.3",
|
|
72
86
|
"@tanstack/react-query": "5.104.4",
|
|
73
87
|
"@types/node": "25.0.1",
|
|
74
88
|
"@types/react": "19.3.0",
|
|
75
89
|
"@types/react-dom": "19.3.0",
|
|
90
|
+
"jsdom": "23.0.1",
|
|
76
91
|
"next": "16.4.2",
|
|
77
92
|
"next-intl": "^4.14.9",
|
|
78
93
|
"react": "19.3.1",
|
|
@@ -81,12 +96,11 @@
|
|
|
81
96
|
"tailwindcss": "4.3.3",
|
|
82
97
|
"tsup": "8.5.1",
|
|
83
98
|
"typescript": "^7.0.2",
|
|
84
|
-
"vitest": "4.1.10"
|
|
85
|
-
"zod": "4.6.7"
|
|
99
|
+
"vitest": "4.1.10"
|
|
86
100
|
},
|
|
87
101
|
"peerDependencies": {
|
|
88
|
-
"@ekanos/sdk": "^0.
|
|
89
|
-
"@ekanos/ui": "^0.
|
|
102
|
+
"@ekanos/sdk": "^0.19.0",
|
|
103
|
+
"@ekanos/ui": "^0.19.0",
|
|
90
104
|
"@tanstack/react-query": "^5.101.4",
|
|
91
105
|
"next": "^16.0.0",
|
|
92
106
|
"next-intl": "^4.14.7",
|
|
@@ -96,7 +110,7 @@
|
|
|
96
110
|
"tailwindcss": "^4.0.0"
|
|
97
111
|
},
|
|
98
112
|
"ekanos": {
|
|
99
|
-
"shellContract":
|
|
113
|
+
"shellContract": 5
|
|
100
114
|
},
|
|
101
115
|
"scripts": {
|
|
102
116
|
"build": "tsup && tsc -p tsconfig.build.json && node scripts/rewrite-esm-specifiers.mjs && node scripts/build-css.mjs",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `/<slug>` — the address the home page's cards, the back link and every
|
|
3
|
-
* partner's muscle memory land on. It has no surface of its own: the five
|
|
4
|
-
* surfaces live one segment deeper, so this sends the browser to
|
|
5
|
-
* `/<slug>/widgets` (the one every session starts on) instead of rendering a
|
|
6
|
-
* 404 under a working toolbar, which is how it read for three releases.
|
|
7
|
-
*
|
|
8
|
-
* A client component because the registry — and therefore "does this slug
|
|
9
|
-
* exist" — is only readable from context (see routes.ts). The effect is the
|
|
10
|
-
* redirect itself: `redirect()` from next/navigation is a server-side
|
|
11
|
-
* primitive, and `router.replace` is the client equivalent.
|
|
12
|
-
*/
|
|
13
|
-
export declare function IntegrationIndexPage(): null;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
import { notFound, useParams, useRouter } from "next/navigation";
|
|
4
|
-
import { useHarnessIntegration } from "../registry-context.js";
|
|
5
|
-
function IntegrationIndexPage() {
|
|
6
|
-
const params = useParams();
|
|
7
|
-
const router = useRouter();
|
|
8
|
-
const integration = useHarnessIntegration();
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
if (integration) router.replace(`/${params.slug}/widgets`);
|
|
11
|
-
}, [integration, params.slug, router]);
|
|
12
|
-
if (!integration) notFound();
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
IntegrationIndexPage
|
|
17
|
-
};
|