@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.
Files changed (104) hide show
  1. package/dist/assignments-Biqg1AT0.js +257 -0
  2. package/dist/assignments-tab.d.ts +4 -0
  3. package/dist/assignments.d.mts +40 -0
  4. package/dist/auth.d.ts +39 -0
  5. package/dist/bulk-ui.d.ts +49 -0
  6. package/dist/bulk.d.mts +14 -0
  7. package/dist/catalog-B29wwZiy.js +1949 -0
  8. package/dist/catalog-url-Dr9e92Yq.js +19 -0
  9. package/dist/catalog-url.d.mts +4 -0
  10. package/dist/catalog.d.ts +40 -0
  11. package/dist/cell-filter.d.ts +10 -0
  12. package/dist/cell-sidebar.d.ts +26 -0
  13. package/dist/cells.d.mts +29 -0
  14. package/dist/cgroup-format.d.ts +17 -0
  15. package/dist/cgroup.d.ts +4 -0
  16. package/dist/config-form.d.mts +66 -0
  17. package/dist/connector-ui-CG9kLZ5s.js +2716 -0
  18. package/dist/connector-ui.d.ts +129 -0
  19. package/dist/connectors-page-ZyuSRdHC.js +241 -0
  20. package/dist/connectors-page.d.ts +8 -0
  21. package/dist/connectors.d.mts +154 -0
  22. package/dist/container-log.d.ts +11 -0
  23. package/dist/create.d.ts +11 -0
  24. package/dist/creation-schema.d.mts +15 -0
  25. package/dist/daemon-CLdOLhDb.js +394 -0
  26. package/dist/daemon.d.ts +24 -0
  27. package/dist/display-name.d.ts +10 -0
  28. package/dist/drift-diff.d.ts +4 -0
  29. package/dist/exec.d.ts +15 -0
  30. package/dist/extensions.d.ts +111 -0
  31. package/dist/get-started.d.ts +9 -0
  32. package/dist/health.d.ts +22 -0
  33. package/dist/identities-page-CyW0d5n2.js +2137 -0
  34. package/dist/identities-page.d.ts +15 -0
  35. package/dist/identities.d.mts +24 -0
  36. package/dist/image-format.d.ts +6 -0
  37. package/dist/image-inventory.d.ts +12 -0
  38. package/dist/images.d.ts +5 -0
  39. package/dist/index.d.ts +5 -0
  40. package/dist/index.js +5241 -0
  41. package/dist/initialize-CAOkMhlL.js +146 -0
  42. package/dist/initialize.d.ts +21 -0
  43. package/dist/inventory.d.ts +66 -0
  44. package/dist/lifecycle-policy.d.ts +11 -0
  45. package/dist/lifecycle.d.ts +24 -0
  46. package/dist/log-buffer.d.ts +8 -0
  47. package/dist/main.d.ts +13 -0
  48. package/dist/majordomo-p7giptj3.js +3782 -0
  49. package/dist/majordomo.d.ts +102 -0
  50. package/dist/manage-nav.d.ts +4 -0
  51. package/dist/manifest-diff.d.mts +11 -0
  52. package/dist/merged-values-CBzWsNOS.js +739 -0
  53. package/dist/merged-values.d.ts +24 -0
  54. package/dist/network-format.d.ts +30 -0
  55. package/dist/network.d.ts +13 -0
  56. package/dist/new-agent-BweyzBnY.js +201 -0
  57. package/dist/new-agent.d.ts +27 -0
  58. package/dist/new-cell-Iceq2Zfv.js +1985 -0
  59. package/dist/new-cell.d.ts +29 -0
  60. package/dist/new-config-C9NSC9Ou.js +1541 -0
  61. package/dist/new-config.d.ts +7 -0
  62. package/dist/notifications.d.ts +26 -0
  63. package/dist/onboarding-oZBJXTy0.js +395 -0
  64. package/dist/onboarding.d.mts +40 -0
  65. package/dist/panel-cells.d.mts +8 -0
  66. package/dist/recording-source.d.ts +37 -0
  67. package/dist/recording.d.mts +24 -0
  68. package/dist/registry-credentials.d.ts +13 -0
  69. package/dist/relationships.d.mts +12 -0
  70. package/dist/replay.d.ts +14 -0
  71. package/dist/request.d.ts +16 -0
  72. package/dist/router.d.ts +12 -0
  73. package/dist/routes.d.ts +43 -0
  74. package/dist/schedule-DzQ3Homi.js +113 -0
  75. package/dist/schedule-format.d.mts +9 -0
  76. package/dist/schedule.d.ts +16 -0
  77. package/dist/scope-actions.d.ts +9 -0
  78. package/dist/screens.d.ts +6 -0
  79. package/dist/secret-form.d.ts +24 -0
  80. package/dist/settings-nav.d.ts +5 -0
  81. package/dist/settings-page.d.ts +4 -0
  82. package/dist/settings-values.d.mts +18 -0
  83. package/dist/settings.d.ts +50 -0
  84. package/dist/sidebar-shell.d.ts +55 -0
  85. package/dist/sources-page-CxMSM-sz.js +423 -0
  86. package/dist/sources-page.d.ts +5 -0
  87. package/dist/space-subnets.d.ts +3 -0
  88. package/dist/style.css +2 -0
  89. package/dist/team-form.d.mts +56 -0
  90. package/dist/team-plan-CFOIv1lN.js +735 -0
  91. package/dist/team-plan.d.ts +22 -0
  92. package/dist/team-wizard.d.ts +8 -0
  93. package/dist/teams-page-C6UGy4Fw.js +2216 -0
  94. package/dist/teams-page.d.ts +9 -0
  95. package/dist/teams.d.mts +114 -0
  96. package/dist/terminal-palette.d.ts +8 -0
  97. package/dist/terminal.d.ts +98 -0
  98. package/dist/unread.d.mts +19 -0
  99. package/dist/use-unread.d.ts +4 -0
  100. package/dist/user-menu.d.ts +7 -0
  101. package/dist/views.d.mts +8 -0
  102. package/dist/workbench.d.ts +16 -0
  103. package/package.json +45 -4
  104. package/README.md +0 -3
@@ -0,0 +1,113 @@
1
+ import { J as e, Ln as t } from "./connector-ui-CG9kLZ5s.js";
2
+ import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ // src/schedule-format.mjs
4
+ var a = (e) => typeof e == "string" ? e.trim() : "";
5
+ function o(e) {
6
+ return typeof e == "string" && !!e && !e.startsWith("0001-") && Number.isFinite(Date.parse(e));
7
+ }
8
+ function s(e) {
9
+ let t = e?.spec?.schedule;
10
+ if (!t) return "";
11
+ let n = a(t.timezone);
12
+ return n ? `${a(t.cron)} (${n})` : a(t.cron);
13
+ }
14
+ function c(e) {
15
+ let t = e?.spec?.schedule;
16
+ if (!t) return "";
17
+ if (t.suspend) return "suspended";
18
+ let n = e?.status?.schedule?.nextScheduleTime;
19
+ return o(n) ? new Date(n).toISOString().replace(/\.\d{3}Z$/, "Z") : "";
20
+ }
21
+ function l(e) {
22
+ return e ? `${a(e.cron)} (${a(e.timezone) || "UTC"})` : "";
23
+ }
24
+ function u(e) {
25
+ let t = a(e?.concurrencyPolicy) || "Forbid";
26
+ return t === "Forbid" ? "Forbid — a fire is skipped while a cell from an earlier one runs" : t;
27
+ }
28
+ function d(e) {
29
+ let t = e?.startingDeadlineSeconds;
30
+ return typeof t != "number" || !Number.isFinite(t) ? "" : `${t} second${t === 1 ? "" : "s"} — a fire missed by up to this much still runs`;
31
+ }
32
+ // src/schedule.tsx
33
+ function f(e) {
34
+ return o(e) ? /* @__PURE__ */ r("time", {
35
+ dateTime: e,
36
+ children: new Date(e).toLocaleString()
37
+ }) : "—";
38
+ }
39
+ function p({ name: e, cellLink: t }) {
40
+ let n = t(e);
41
+ return n ? /* @__PURE__ */ r("a", {
42
+ className: "resource-name mono-id",
43
+ href: n,
44
+ children: e
45
+ }) : /* @__PURE__ */ i("span", {
46
+ className: "mono-id",
47
+ children: [
48
+ e,
49
+ " ",
50
+ /* @__PURE__ */ r("span", {
51
+ className: "description",
52
+ children: "(deleted)"
53
+ })
54
+ ]
55
+ });
56
+ }
57
+ function m(n, r) {
58
+ let i = t(r.metadata);
59
+ return (t) => {
60
+ let r = [
61
+ i.realm,
62
+ i.space,
63
+ i.stack,
64
+ t
65
+ ];
66
+ return n?.rows[3].some((e) => JSON.stringify(e.scope) === JSON.stringify(r)) ? e(r) : void 0;
67
+ };
68
+ }
69
+ function h({ schedule: e, status: t, cellLink: a, state: o = !0 }) {
70
+ let s = d(e), c = t?.activeCells ?? [];
71
+ return /* @__PURE__ */ i("dl", {
72
+ className: "details-grid schedule-details",
73
+ children: [
74
+ o && /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("dt", { children: "State" }), /* @__PURE__ */ r("dd", { children: /* @__PURE__ */ i("span", {
75
+ className: `state-badge tone-${e.suspend ? "stopped" : "ok"}`,
76
+ children: [/* @__PURE__ */ r("span", {
77
+ className: "state-dot",
78
+ "aria-hidden": "true"
79
+ }), e.suspend ? "Suspended" : "Scheduled"]
80
+ }) })] }),
81
+ /* @__PURE__ */ r("dt", { children: "Cron" }),
82
+ /* @__PURE__ */ r("dd", {
83
+ className: "mono-id",
84
+ children: l(e)
85
+ }),
86
+ /* @__PURE__ */ r("dt", { children: "Concurrency policy" }),
87
+ /* @__PURE__ */ r("dd", { children: u(e) }),
88
+ s && /* @__PURE__ */ i(n, { children: [/* @__PURE__ */ r("dt", { children: "Starting deadline" }), /* @__PURE__ */ r("dd", { children: s })] }),
89
+ /* @__PURE__ */ r("dt", { children: "Next fire" }),
90
+ /* @__PURE__ */ r("dd", { children: e.suspend ? "— (suspended)" : f(t?.nextScheduleTime) }),
91
+ /* @__PURE__ */ r("dt", { children: "Last fire" }),
92
+ /* @__PURE__ */ r("dd", { children: f(t?.lastScheduleTime) }),
93
+ /* @__PURE__ */ r("dt", { children: "Last cell" }),
94
+ /* @__PURE__ */ r("dd", { children: t?.lastCell ? /* @__PURE__ */ r(p, {
95
+ name: t.lastCell,
96
+ cellLink: a
97
+ }) : "—" }),
98
+ /* @__PURE__ */ r("dt", { children: "Active cells" }),
99
+ /* @__PURE__ */ r("dd", { children: c.length ? c.map((e, t) => /* @__PURE__ */ i("span", { children: [t > 0 && ", ", /* @__PURE__ */ r(p, {
100
+ name: e,
101
+ cellLink: a
102
+ })] }, e)) : "None" }),
103
+ /* @__PURE__ */ r("dt", { children: "Skipped fires" }),
104
+ /* @__PURE__ */ r("dd", { children: t ? t.skippedFires ?? 0 : "—" }),
105
+ /* @__PURE__ */ r("dt", { children: "Last error" }),
106
+ /* @__PURE__ */ r("dd", { children: t?.lastError ? /* @__PURE__ */ r("span", {
107
+ className: "health-last-error",
108
+ children: t.lastError
109
+ }) : "None" })
110
+ ]
111
+ });
112
+ }
113
+ export { s as a, c as i, m as n, l as o, f as r, o as s, h as t };
@@ -0,0 +1,9 @@
1
+ export type Schedule = { cron?: string; timezone?: string; concurrencyPolicy?: string; startingDeadlineSeconds?: number; suspend?: boolean };
2
+ export type ScheduleStatus = { lastScheduleTime?: string; nextScheduleTime?: string; lastCell?: string; activeCells?: string[]; skippedFires?: number; lastError?: string };
3
+ type Scheduled = { spec?: { schedule?: Schedule }; status?: { schedule?: ScheduleStatus } };
4
+ export function validTime(value: unknown): value is string;
5
+ export function scheduleColumn(config: Scheduled | undefined): string;
6
+ export function nextColumn(config: Scheduled | undefined): string;
7
+ export function scheduleText(schedule: Schedule | undefined): string;
8
+ export function concurrencyText(schedule: Schedule | undefined): string;
9
+ export function deadlineText(schedule: Schedule | undefined): string;
@@ -0,0 +1,16 @@
1
+ import type { Inventory } from "./inventory";
2
+ import { type Schedule, type ScheduleStatus } from "./schedule-format.mjs";
3
+ export declare function when(value?: string): "—" | import("react").JSX.Element;
4
+ export declare function cellLinker(inventory: Inventory | undefined, config: {
5
+ metadata: {
6
+ realm?: string;
7
+ space?: string;
8
+ stack?: string;
9
+ };
10
+ }): (name: string) => string | undefined;
11
+ export declare function ScheduleDetails({ schedule, status, cellLink, state }: {
12
+ schedule: Schedule;
13
+ status?: ScheduleStatus;
14
+ cellLink: (name: string) => string | undefined;
15
+ state?: boolean;
16
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { LifecycleFeedback, PurgeOptions } from "./lifecycle";
2
+ export type ParentAction = "delete" | "purge";
3
+ export declare function ParentRowActions({ scope, counts, allowed, operation, onAction, }: {
4
+ scope: string[];
5
+ counts: number[];
6
+ allowed: boolean;
7
+ operation?: LifecycleFeedback;
8
+ onAction: (scope: string[], action: ParentAction, options: PurgeOptions) => void;
9
+ }): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export type Screen = {
2
+ text?: string;
3
+ unavailable?: boolean;
4
+ stale?: boolean;
5
+ };
6
+ export declare function useCellScreens(scopes: string[][], enabled: boolean, refreshMs: number): Record<string, Screen>;
@@ -0,0 +1,24 @@
1
+ import type { InventoryResource } from "./inventory";
2
+ type SecretDoc = {
3
+ metadata: {
4
+ name: string;
5
+ realm?: string;
6
+ space?: string;
7
+ stack?: string;
8
+ cell?: string;
9
+ };
10
+ spec?: {
11
+ type?: string;
12
+ };
13
+ };
14
+ export declare function SecretForm({ scope, existing, onSaved, onCancel }: {
15
+ scope: string[];
16
+ existing?: SecretDoc;
17
+ onSaved: (scope: string[], action: string) => void;
18
+ onCancel?: () => void;
19
+ }): import("react").JSX.Element;
20
+ export declare function NewSecretPage({ inventory, onChanged }: {
21
+ inventory: InventoryResource;
22
+ onChanged: () => void;
23
+ }): import("react").JSX.Element;
24
+ export {};
@@ -0,0 +1,5 @@
1
+ import { type Route } from "./routes";
2
+ export declare function SettingsNav({ route, onNavigate }: {
3
+ route: Route;
4
+ onNavigate: () => void;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { InventoryResource } from "./inventory";
2
+ export declare function SettingsPage({ inventory }: {
3
+ inventory: InventoryResource;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,18 @@
1
+ export type RefreshSeconds = 5 | 10 | 30 | 60;
2
+ export const refreshIntervals: readonly RefreshSeconds[];
3
+ export const defaultRefreshSeconds: RefreshSeconds;
4
+ export function parseRefreshSeconds(raw: string): RefreshSeconds | undefined;
5
+ export type UnreadPollSeconds = 1 | 2 | 5 | 10 | 30;
6
+ export const unreadPollIntervals: readonly UnreadPollSeconds[];
7
+ export const defaultUnreadPollSeconds: UnreadPollSeconds;
8
+ export function parseUnreadPollSeconds(raw: string): UnreadPollSeconds | undefined;
9
+ export type GridScreenSeconds = 2 | 5 | 10 | 30;
10
+ export const gridScreenIntervals: readonly GridScreenSeconds[];
11
+ export const defaultGridScreenSeconds: GridScreenSeconds;
12
+ export function parseGridScreenSeconds(raw: string): GridScreenSeconds | undefined;
13
+ export type UnreadQuietSeconds = 0 | 1 | 3 | 5 | 10;
14
+ export const unreadQuietOptions: readonly UnreadQuietSeconds[];
15
+ export const defaultUnreadQuietSeconds: UnreadQuietSeconds;
16
+ export function parseUnreadQuietSeconds(raw: string): UnreadQuietSeconds | undefined;
17
+ export function parseShowGetStarted(raw: string): boolean | undefined;
18
+ export function parseSwitch(raw: string): boolean | undefined;
@@ -0,0 +1,50 @@
1
+ import { type GridScreenSeconds, type RefreshSeconds, type UnreadPollSeconds, type UnreadQuietSeconds } from "./settings-values.mjs";
2
+ export type Theme = "system" | "light" | "dark";
3
+ export declare const themes: readonly Theme[];
4
+ export declare const themeLabels: Record<Theme, string>;
5
+ export type CellListStyle = "agent" | "default";
6
+ export declare const cellListStyles: readonly CellListStyle[];
7
+ export declare const cellListStyleLabels: Record<CellListStyle, string>;
8
+ type SettingTypes = {
9
+ theme: Theme;
10
+ cellListStyle: CellListStyle;
11
+ defaultGroupBy: string;
12
+ showCellScope: boolean;
13
+ showTerminalStatus: boolean;
14
+ showUnreadBytes: boolean;
15
+ showSidebarSearch: boolean;
16
+ showSidebarGroupBy: boolean;
17
+ showGridSearch: boolean;
18
+ showGridGroupBy: boolean;
19
+ autoAttach: boolean;
20
+ refreshSeconds: RefreshSeconds;
21
+ unreadPollSeconds: UnreadPollSeconds;
22
+ gridScreenSeconds: GridScreenSeconds;
23
+ unreadQuietSeconds: UnreadQuietSeconds;
24
+ showGetStarted: boolean;
25
+ };
26
+ export type SettingName = keyof SettingTypes;
27
+ export type Settings = {
28
+ [K in SettingName]: SettingTypes[K];
29
+ };
30
+ export type SwitchName = {
31
+ [K in SettingName]: SettingTypes[K] extends boolean ? K : never;
32
+ }[SettingName];
33
+ type Definition<T> = {
34
+ key: string;
35
+ label: string;
36
+ defaultValue: T;
37
+ note?: string;
38
+ parse: (raw: string) => T | undefined;
39
+ format: (value: T) => string;
40
+ };
41
+ export declare const settingDefinitions: {
42
+ [K in SettingName]: Definition<SettingTypes[K]>;
43
+ };
44
+ export declare const profileGroups: readonly {
45
+ title: string;
46
+ settings: readonly SettingName[];
47
+ }[];
48
+ export declare function setSetting<K extends SettingName>(name: K, value: SettingTypes[K]): void;
49
+ export declare function useSettings(): [Settings, <K extends SettingName>(name: K, value: SettingTypes[K]) => void];
50
+ export {};
@@ -0,0 +1,55 @@
1
+ import { type ReactNode } from "react";
2
+ import type { InventoryResource } from "./inventory";
3
+ import type { View } from "./views.mjs";
4
+ import type { CellListStyle } from "./settings";
5
+ import type { Unread } from "./use-unread";
6
+ export declare const sidebarWidth: {
7
+ min: number;
8
+ max: number;
9
+ initial: number;
10
+ step: number;
11
+ };
12
+ export declare const railWidth = 56;
13
+ export declare function useSidebarLayout(): {
14
+ collapsed: boolean;
15
+ setCollapsed: import("react").Dispatch<import("react").SetStateAction<boolean>>;
16
+ width: number;
17
+ setWidth: (value: number) => void;
18
+ };
19
+ export declare function BrandMark(): import("react").JSX.Element;
20
+ export declare function SidebarToggle({ collapsed, onToggle }: {
21
+ collapsed: boolean;
22
+ onToggle: () => void;
23
+ }): import("react").JSX.Element;
24
+ export declare function SidebarResizer({ width, onResize }: {
25
+ width: number;
26
+ onResize: (value: number) => void;
27
+ }): import("react").JSX.Element;
28
+ export declare function versionInfo(web?: string, daemon?: string): {
29
+ web: string | undefined;
30
+ daemon: string | undefined;
31
+ mismatch: boolean;
32
+ summary: string;
33
+ warning: string;
34
+ };
35
+ export declare function VersionWarning({ label }: {
36
+ label: string;
37
+ }): import("react").JSX.Element;
38
+ export declare function VersionRows({ info }: {
39
+ info: ReturnType<typeof versionInfo>;
40
+ }): import("react").JSX.Element;
41
+ export declare function SidebarRail({ view, inventory, selectedScope, connection, onExpand, majordomo, listStyle, unread, showUnreadBytes }: {
42
+ view: View;
43
+ unread?: Record<string, Unread>;
44
+ showUnreadBytes?: boolean;
45
+ listStyle?: CellListStyle;
46
+ majordomo?: ReactNode;
47
+ inventory: InventoryResource;
48
+ selectedScope: string[];
49
+ connection: {
50
+ status: string;
51
+ tone: string;
52
+ info: ReturnType<typeof versionInfo>;
53
+ };
54
+ onExpand: () => void;
55
+ }): ReactNode;