@kukeon/console 0.0.0-stage → 0.10.0-edge.g4f69f964
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/assignments-Biqg1AT0.js +257 -0
- package/dist/assignments-tab.d.ts +4 -0
- package/dist/assignments.d.mts +40 -0
- package/dist/auth.d.ts +39 -0
- package/dist/bulk-ui.d.ts +49 -0
- package/dist/bulk.d.mts +14 -0
- package/dist/catalog-B29wwZiy.js +1949 -0
- package/dist/catalog-url-Dr9e92Yq.js +19 -0
- package/dist/catalog-url.d.mts +4 -0
- package/dist/catalog.d.ts +40 -0
- package/dist/cell-filter.d.ts +10 -0
- package/dist/cell-sidebar.d.ts +26 -0
- package/dist/cells.d.mts +29 -0
- package/dist/cgroup-format.d.ts +17 -0
- package/dist/cgroup.d.ts +4 -0
- package/dist/config-form.d.mts +66 -0
- package/dist/connector-ui-CG9kLZ5s.js +2716 -0
- package/dist/connector-ui.d.ts +129 -0
- package/dist/connectors-page-ZyuSRdHC.js +241 -0
- package/dist/connectors-page.d.ts +8 -0
- package/dist/connectors.d.mts +154 -0
- package/dist/container-log.d.ts +11 -0
- package/dist/create.d.ts +11 -0
- package/dist/creation-schema.d.mts +15 -0
- package/dist/daemon-CLdOLhDb.js +394 -0
- package/dist/daemon.d.ts +24 -0
- package/dist/display-name.d.ts +10 -0
- package/dist/drift-diff.d.ts +4 -0
- package/dist/exec.d.ts +15 -0
- package/dist/extensions.d.ts +111 -0
- package/dist/get-started.d.ts +9 -0
- package/dist/health.d.ts +22 -0
- package/dist/identities-page-CyW0d5n2.js +2137 -0
- package/dist/identities-page.d.ts +15 -0
- package/dist/identities.d.mts +24 -0
- package/dist/image-format.d.ts +6 -0
- package/dist/image-inventory.d.ts +12 -0
- package/dist/images.d.ts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5241 -0
- package/dist/initialize-CAOkMhlL.js +146 -0
- package/dist/initialize.d.ts +21 -0
- package/dist/inventory.d.ts +66 -0
- package/dist/lifecycle-policy.d.ts +11 -0
- package/dist/lifecycle.d.ts +24 -0
- package/dist/log-buffer.d.ts +8 -0
- package/dist/main.d.ts +13 -0
- package/dist/majordomo-p7giptj3.js +3782 -0
- package/dist/majordomo.d.ts +102 -0
- package/dist/manage-nav.d.ts +4 -0
- package/dist/manifest-diff.d.mts +11 -0
- package/dist/merged-values-CBzWsNOS.js +739 -0
- package/dist/merged-values.d.ts +24 -0
- package/dist/network-format.d.ts +30 -0
- package/dist/network.d.ts +13 -0
- package/dist/new-agent-BweyzBnY.js +201 -0
- package/dist/new-agent.d.ts +27 -0
- package/dist/new-cell-Iceq2Zfv.js +1985 -0
- package/dist/new-cell.d.ts +29 -0
- package/dist/new-config-C9NSC9Ou.js +1541 -0
- package/dist/new-config.d.ts +7 -0
- package/dist/notifications.d.ts +26 -0
- package/dist/onboarding-oZBJXTy0.js +395 -0
- package/dist/onboarding.d.mts +40 -0
- package/dist/panel-cells.d.mts +8 -0
- package/dist/recording-source.d.ts +37 -0
- package/dist/recording.d.mts +24 -0
- package/dist/registry-credentials.d.ts +13 -0
- package/dist/relationships.d.mts +12 -0
- package/dist/replay.d.ts +14 -0
- package/dist/request.d.ts +16 -0
- package/dist/router.d.ts +12 -0
- package/dist/routes.d.ts +43 -0
- package/dist/schedule-DzQ3Homi.js +113 -0
- package/dist/schedule-format.d.mts +9 -0
- package/dist/schedule.d.ts +16 -0
- package/dist/scope-actions.d.ts +9 -0
- package/dist/screens.d.ts +6 -0
- package/dist/secret-form.d.ts +24 -0
- package/dist/settings-nav.d.ts +5 -0
- package/dist/settings-page.d.ts +4 -0
- package/dist/settings-values.d.mts +18 -0
- package/dist/settings.d.ts +50 -0
- package/dist/sidebar-shell.d.ts +55 -0
- package/dist/sources-page-CxMSM-sz.js +423 -0
- package/dist/sources-page.d.ts +5 -0
- package/dist/space-subnets.d.ts +3 -0
- package/dist/style.css +2 -0
- package/dist/team-form.d.mts +56 -0
- package/dist/team-plan-CFOIv1lN.js +735 -0
- package/dist/team-plan.d.ts +22 -0
- package/dist/team-wizard.d.ts +8 -0
- package/dist/teams-page-C6UGy4Fw.js +2216 -0
- package/dist/teams-page.d.ts +9 -0
- package/dist/teams.d.mts +114 -0
- package/dist/terminal-palette.d.ts +8 -0
- package/dist/terminal.d.ts +98 -0
- package/dist/unread.d.mts +19 -0
- package/dist/use-unread.d.ts +4 -0
- package/dist/user-menu.d.ts +7 -0
- package/dist/views.d.mts +8 -0
- package/dist/workbench.d.ts +16 -0
- package/package.json +45 -4
- package/README.md +0 -3
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type RenderedValue } from "./config-form.mjs";
|
|
3
|
+
import type { ConnectorStatus } from "./connectors.mjs";
|
|
4
|
+
export type { RenderedValue };
|
|
5
|
+
export declare function SourceIdentities({ values }: {
|
|
6
|
+
values: RenderedValue[];
|
|
7
|
+
}): import("react").JSX.Element | null;
|
|
8
|
+
export declare function MergedValues({ values, digest }: {
|
|
9
|
+
values: RenderedValue[];
|
|
10
|
+
digest?: string;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export type PreviewSources = {
|
|
13
|
+
blueprint?: ReactNode;
|
|
14
|
+
config?: ReactNode;
|
|
15
|
+
realm?: string;
|
|
16
|
+
space?: string;
|
|
17
|
+
stack?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function SourceGroups({ values, connectors, sources, team }: {
|
|
20
|
+
values?: RenderedValue[];
|
|
21
|
+
connectors?: ConnectorStatus[];
|
|
22
|
+
sources?: PreviewSources;
|
|
23
|
+
team?: string;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type NetworkEgressRule = { host?: string; cidr?: string; ports?: number[] };
|
|
2
|
+
export type NetworkEgress = { default?: string; defaultSource?: string; allow?: NetworkEgressRule[] };
|
|
3
|
+
export type SpaceNetwork = {
|
|
4
|
+
networkName?: string; bridgeName?: string; subnetCIDR?: string; subnetSource?: string; parentCIDR?: string;
|
|
5
|
+
configPath?: string; configPathSource?: string; cniNetworkExists?: boolean; egress?: NetworkEgress;
|
|
6
|
+
};
|
|
7
|
+
export type ContainerNetworkSummary = { id: string; root?: boolean; hostNetwork?: boolean; hostPID?: boolean };
|
|
8
|
+
export type CellNetwork = {
|
|
9
|
+
bridgeName?: string; hostNetwork?: boolean; ipv4?: string; ipv4State?: string; rootContainer?: string; containers?: ContainerNetworkSummary[];
|
|
10
|
+
};
|
|
11
|
+
export type ContainerNetwork = {
|
|
12
|
+
id: string; root?: boolean; hostNetwork?: boolean; hostPID?: boolean; cniConfigPath?: string; cniConfigPathSource?: string;
|
|
13
|
+
};
|
|
14
|
+
export const NOT_SET: string;
|
|
15
|
+
export const NOT_ALLOCATED: string;
|
|
16
|
+
export const NOT_RUNNING: string;
|
|
17
|
+
export const ANY_PORT: string;
|
|
18
|
+
export function formatFlag(value: boolean | undefined): string;
|
|
19
|
+
export function formatEgressDefault(egress: NetworkEgress | undefined): string;
|
|
20
|
+
export function formatRuleTarget(rule: NetworkEgressRule | undefined): { kind: string; value: string };
|
|
21
|
+
export function formatRulePorts(ports: number[] | undefined): string;
|
|
22
|
+
export function formatSubnet(space: SpaceNetwork | undefined): string;
|
|
23
|
+
export function formatBridge(name: string | undefined): string;
|
|
24
|
+
export function formatConfigPath(space: SpaceNetwork | undefined): string;
|
|
25
|
+
export function formatNetworkExists(exists: boolean | undefined): string;
|
|
26
|
+
export function formatNetworkMode(cell: CellNetwork | undefined): string;
|
|
27
|
+
export function formatIPv4(cell: CellNetwork | undefined): string;
|
|
28
|
+
export function formatContainerCNIPath(container: ContainerNetwork | undefined): string;
|
|
29
|
+
export function summarizeCellNetwork(cell: CellNetwork | undefined): string;
|
|
30
|
+
export function summarizeContainerNetwork(container: ContainerNetwork | undefined): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Resource } from "./request";
|
|
2
|
+
import { type CellNetwork, type ContainerNetwork, type SpaceNetwork } from "./network-format.js";
|
|
3
|
+
export type NetworkDetail = {
|
|
4
|
+
space?: SpaceNetwork;
|
|
5
|
+
cell?: CellNetwork;
|
|
6
|
+
container?: ContainerNetwork;
|
|
7
|
+
};
|
|
8
|
+
export declare const networkKinds: string[];
|
|
9
|
+
export declare function NetworkPanel({ scope, revision, detail: shared }: {
|
|
10
|
+
scope: string[];
|
|
11
|
+
revision: number;
|
|
12
|
+
detail?: Resource<NetworkDetail>;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { Kn as e, M as t, Un as n, Z as r, c as i } from "./connector-ui-CG9kLZ5s.js";
|
|
2
|
+
import { S as a, a as o, n as s } from "./onboarding-oZBJXTy0.js";
|
|
3
|
+
import { t as c } from "./initialize-CAOkMhlL.js";
|
|
4
|
+
import { useEffect as l, useState as u } from "react";
|
|
5
|
+
import { apiFetch as d } from "@kukeon/api-client";
|
|
6
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
|
+
// src/new-agent.tsx
|
|
8
|
+
var h = {
|
|
9
|
+
claude: "Claude",
|
|
10
|
+
codex: "Codex"
|
|
11
|
+
}, g = (e) => h[e] ?? e, _ = (e) => [
|
|
12
|
+
e.realm,
|
|
13
|
+
e.space,
|
|
14
|
+
e.stack,
|
|
15
|
+
e.name
|
|
16
|
+
].filter((e) => !!e), v = {
|
|
17
|
+
"create-cell": "creating its first cell",
|
|
18
|
+
"start-cell": "starting its first cell"
|
|
19
|
+
};
|
|
20
|
+
function y({ revision: h, onCreated: y, onChanged: b }) {
|
|
21
|
+
let x = e("/agents/templates", h), S = x.data?.templates ?? [], C = S.filter((e) => e.exists), [w, T] = u(""), [E, D] = u(""), [O, k] = u(!1), [A, j] = u(), M = C.some((e) => e.harness === w) ? w : C[0]?.harness ?? "", N = e("/connectors", h), [P, F] = u(0), I = e("/connectors/logins", h + P), L = (I.data ?? []).some((e) => !!e?.session);
|
|
22
|
+
l(() => {
|
|
23
|
+
if (!L) return;
|
|
24
|
+
let e = window.setInterval(() => F((e) => e + 1), 3e3);
|
|
25
|
+
return () => window.clearInterval(e);
|
|
26
|
+
}, [L]);
|
|
27
|
+
let R = o(N.data, M), z = s(I.data, R, C.find((e) => e.harness === M)), B = R && z && (z.state === "empty" || z.session) ? z : void 0, V = a(E);
|
|
28
|
+
async function H() {
|
|
29
|
+
if (!(!M || O || V)) {
|
|
30
|
+
k(!0), j(void 0);
|
|
31
|
+
try {
|
|
32
|
+
let e = await d("/agents", {
|
|
33
|
+
method: "POST",
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json",
|
|
36
|
+
Accept: "application/json"
|
|
37
|
+
},
|
|
38
|
+
body: JSON.stringify({
|
|
39
|
+
harness: M,
|
|
40
|
+
...E.trim() ? { displayName: E.trim() } : {}
|
|
41
|
+
})
|
|
42
|
+
}), t = {};
|
|
43
|
+
try {
|
|
44
|
+
t = await e.json();
|
|
45
|
+
} catch {}
|
|
46
|
+
if (!e.ok) {
|
|
47
|
+
j(t.error ?? { message: `Request failed (HTTP ${e.status})` });
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (!t.config || !t.cell) {
|
|
51
|
+
j({ message: "The server created the agent but returned no cell. Refresh the inventory to find it." });
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
y(t);
|
|
55
|
+
} catch (e) {
|
|
56
|
+
j({ message: `The creation outcome could not be confirmed. Refresh the inventory before retrying. ${e instanceof Error ? e.message : ""}`.trim() });
|
|
57
|
+
} finally {
|
|
58
|
+
k(!1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return /* @__PURE__ */ m("section", {
|
|
63
|
+
className: "new-agent",
|
|
64
|
+
"aria-label": "New agent",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ p("p", {
|
|
67
|
+
className: "description",
|
|
68
|
+
children: "An agent is a Claude or Codex cell that knows it runs in kukeon. It has no project checkout; clone one in its terminal when you need it."
|
|
69
|
+
}),
|
|
70
|
+
x.loading && !x.data && /* @__PURE__ */ p("p", {
|
|
71
|
+
role: "status",
|
|
72
|
+
children: "Loading agent templates…"
|
|
73
|
+
}),
|
|
74
|
+
x.error && /* @__PURE__ */ p(n, {
|
|
75
|
+
error: x.error,
|
|
76
|
+
kind: "Agent template"
|
|
77
|
+
}),
|
|
78
|
+
x.data && !C.length && /* @__PURE__ */ m("div", {
|
|
79
|
+
className: "empty-state new-agent-missing",
|
|
80
|
+
role: "note",
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ p("h3", { children: "No agent templates" }),
|
|
83
|
+
/* @__PURE__ */ m("p", { children: [
|
|
84
|
+
"Agents are copied from the templates of the ",
|
|
85
|
+
/* @__PURE__ */ p("code", { children: "default" }),
|
|
86
|
+
" team, and none is stored yet. Initialize stores them; see also ",
|
|
87
|
+
/* @__PURE__ */ p("a", {
|
|
88
|
+
href: r(),
|
|
89
|
+
children: "Teams"
|
|
90
|
+
}),
|
|
91
|
+
"."
|
|
92
|
+
] }),
|
|
93
|
+
/* @__PURE__ */ p(c, {
|
|
94
|
+
onChanged: b,
|
|
95
|
+
subject: "the agent templates of the default team"
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
}),
|
|
99
|
+
S.length > 0 && /* @__PURE__ */ m("fieldset", {
|
|
100
|
+
className: "agent-harnesses",
|
|
101
|
+
disabled: O,
|
|
102
|
+
children: [/* @__PURE__ */ p("legend", { children: "Harness" }), /* @__PURE__ */ p("div", {
|
|
103
|
+
className: "agent-cards",
|
|
104
|
+
children: S.map((e) => {
|
|
105
|
+
let t = e.exists && e.harness === M;
|
|
106
|
+
return /* @__PURE__ */ m("label", {
|
|
107
|
+
className: `agent-card panel${t ? " is-selected" : ""}${e.exists ? "" : " is-missing"}`,
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ p("input", {
|
|
110
|
+
type: "radio",
|
|
111
|
+
name: "agent-harness",
|
|
112
|
+
value: e.harness,
|
|
113
|
+
checked: t,
|
|
114
|
+
disabled: !e.exists,
|
|
115
|
+
onChange: () => T(e.harness)
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ p("strong", { children: g(e.harness) }),
|
|
118
|
+
/* @__PURE__ */ p("span", {
|
|
119
|
+
className: "description mono-id",
|
|
120
|
+
children: e.name
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ p("span", {
|
|
123
|
+
className: `badge${e.exists ? "" : " needs-connector"}`,
|
|
124
|
+
children: e.exists ? "Template ready" : "Template missing"
|
|
125
|
+
})
|
|
126
|
+
]
|
|
127
|
+
}, e.harness);
|
|
128
|
+
})
|
|
129
|
+
})]
|
|
130
|
+
}),
|
|
131
|
+
C.length > 0 && /* @__PURE__ */ m("form", {
|
|
132
|
+
className: "new-agent-form",
|
|
133
|
+
onSubmit: (e) => {
|
|
134
|
+
e.preventDefault(), H();
|
|
135
|
+
},
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ m("label", { children: [
|
|
138
|
+
"Name ",
|
|
139
|
+
/* @__PURE__ */ p("span", {
|
|
140
|
+
className: "description",
|
|
141
|
+
children: "(optional)"
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ p("input", {
|
|
144
|
+
type: "text",
|
|
145
|
+
value: E,
|
|
146
|
+
maxLength: 63,
|
|
147
|
+
placeholder: `${g(M)} agent`,
|
|
148
|
+
disabled: O,
|
|
149
|
+
onChange: (e) => D(e.target.value)
|
|
150
|
+
})
|
|
151
|
+
] }),
|
|
152
|
+
V && /* @__PURE__ */ p("p", {
|
|
153
|
+
className: "error",
|
|
154
|
+
role: "alert",
|
|
155
|
+
children: V
|
|
156
|
+
}),
|
|
157
|
+
/* @__PURE__ */ m("div", {
|
|
158
|
+
className: "form-actions",
|
|
159
|
+
children: [/* @__PURE__ */ p("button", {
|
|
160
|
+
type: "submit",
|
|
161
|
+
className: "primary-action",
|
|
162
|
+
disabled: !M || O || !!V,
|
|
163
|
+
children: O ? "Creating…" : "Create"
|
|
164
|
+
}), R && B && /* @__PURE__ */ p(i, {
|
|
165
|
+
connector: R.name,
|
|
166
|
+
title: R.title || R.name,
|
|
167
|
+
volume: B.volume,
|
|
168
|
+
state: B.state,
|
|
169
|
+
running: !!B.session,
|
|
170
|
+
method: B.method || void 0,
|
|
171
|
+
idle: "Log in first",
|
|
172
|
+
disabled: O
|
|
173
|
+
})]
|
|
174
|
+
}),
|
|
175
|
+
R && B && /* @__PURE__ */ m("p", {
|
|
176
|
+
className: "description new-agent-login",
|
|
177
|
+
role: "note",
|
|
178
|
+
children: [R.title || R.name, " is not logged in for agents yet. Log in first, or create the agent and log in from its terminal."]
|
|
179
|
+
})
|
|
180
|
+
]
|
|
181
|
+
}),
|
|
182
|
+
A && /* @__PURE__ */ m("div", {
|
|
183
|
+
className: "error",
|
|
184
|
+
role: "alert",
|
|
185
|
+
children: [/* @__PURE__ */ p("strong", { children: A.step && A.config ? "Agent stored, but not started" : A.code === "template_not_found" ? "Template missing" : "Agent not created" }), /* @__PURE__ */ p("p", { children: A.step && A.config ? /* @__PURE__ */ m(f, { children: [
|
|
186
|
+
"Config ",
|
|
187
|
+
/* @__PURE__ */ p("a", {
|
|
188
|
+
className: "resource-name",
|
|
189
|
+
href: t("configs", _(A.config)),
|
|
190
|
+
children: A.config.name
|
|
191
|
+
}),
|
|
192
|
+
" was stored; ",
|
|
193
|
+
v[A.step] ?? A.step,
|
|
194
|
+
" failed: ",
|
|
195
|
+
A.message
|
|
196
|
+
] }) : A.message })]
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
export { y as NewAgentPage };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type AgentTemplate = {
|
|
2
|
+
harness: string;
|
|
3
|
+
name: string;
|
|
4
|
+
realm: string;
|
|
5
|
+
space?: string;
|
|
6
|
+
stack?: string;
|
|
7
|
+
exists: boolean;
|
|
8
|
+
};
|
|
9
|
+
type Coordinates = {
|
|
10
|
+
name: string;
|
|
11
|
+
realm: string;
|
|
12
|
+
space?: string;
|
|
13
|
+
stack?: string;
|
|
14
|
+
};
|
|
15
|
+
export type CreatedAgent = {
|
|
16
|
+
config: Coordinates & {
|
|
17
|
+
labels?: Record<string, string>;
|
|
18
|
+
annotations?: Record<string, string>;
|
|
19
|
+
};
|
|
20
|
+
cell: Coordinates;
|
|
21
|
+
};
|
|
22
|
+
export declare function NewAgentPage({ revision, onCreated, onChanged }: {
|
|
23
|
+
revision: number;
|
|
24
|
+
onCreated: (agent: CreatedAgent) => void;
|
|
25
|
+
onChanged: () => void;
|
|
26
|
+
}): import("react").JSX.Element;
|
|
27
|
+
export {};
|