@kukeon/console 0.0.0-stage → 0.10.0-edge.gaa95c2af
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-ChPGZP2a.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-C8459TcH.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-DxP5hn4p.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-CJ_ukj0Q.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-CikLz0g9.js +3064 -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/registry-credentials.d.ts +13 -0
- package/dist/relationships.d.mts +12 -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,102 @@
|
|
|
1
|
+
import { type Resource } from "./request";
|
|
2
|
+
import type { InventoryResource, Row, Doc, RuntimeStatus } from "./inventory";
|
|
3
|
+
import type { Schedule, ScheduleStatus } from "./schedule-format.mjs";
|
|
4
|
+
import { type TerminalManager, type Theme } from "./terminal";
|
|
5
|
+
import { type ConnectorStatus } from "./connectors.mjs";
|
|
6
|
+
export declare const harnessLabel = "kukeon.io/harness";
|
|
7
|
+
export declare const majordomoRole = "majordomo";
|
|
8
|
+
export declare const sweepTask = "health-sweep";
|
|
9
|
+
export type { ScheduleStatus } from "./schedule-format.mjs";
|
|
10
|
+
export type ConfigDoc = {
|
|
11
|
+
metadata: {
|
|
12
|
+
name: string;
|
|
13
|
+
realm?: string;
|
|
14
|
+
space?: string;
|
|
15
|
+
stack?: string;
|
|
16
|
+
labels?: Record<string, string>;
|
|
17
|
+
};
|
|
18
|
+
spec?: {
|
|
19
|
+
blueprint?: {
|
|
20
|
+
name?: string;
|
|
21
|
+
};
|
|
22
|
+
schedule?: Schedule;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
status?: {
|
|
26
|
+
schedule?: ScheduleStatus;
|
|
27
|
+
connectors?: ConnectorStatus[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare function isMajordomoConfig(doc: ConfigDoc): boolean;
|
|
31
|
+
export declare function isSweepConfig(doc: ConfigDoc): boolean;
|
|
32
|
+
export declare function isMajordomoCell(doc: Doc): boolean;
|
|
33
|
+
export declare function configScope(doc: ConfigDoc): string[];
|
|
34
|
+
export type Majordomo = {
|
|
35
|
+
configs: Resource<ConfigDoc[]>;
|
|
36
|
+
pairs: ConfigDoc[];
|
|
37
|
+
sweeps: ConfigDoc[];
|
|
38
|
+
cells: Row[];
|
|
39
|
+
cell?: Row;
|
|
40
|
+
panel: Row[];
|
|
41
|
+
active?: Row;
|
|
42
|
+
candidates: Row[];
|
|
43
|
+
unused: ConfigDoc[];
|
|
44
|
+
select: (key: string) => void;
|
|
45
|
+
add: (key: string) => void;
|
|
46
|
+
remove: (key: string) => void;
|
|
47
|
+
};
|
|
48
|
+
export declare function useMajordomo(inventory: InventoryResource, revision: number): Majordomo;
|
|
49
|
+
export declare function oneLine(text: string): string;
|
|
50
|
+
export declare function cellQuestion(scope: string[], status?: RuntimeStatus): string;
|
|
51
|
+
export declare function catalogQuestion(kind: string, scope: string[], state: string): string;
|
|
52
|
+
type Ask = (question: string) => void;
|
|
53
|
+
export declare const AskProvider: import("react").Provider<Ask | null>;
|
|
54
|
+
export declare function AskMajordomo({ question, subject, prominent }: {
|
|
55
|
+
question: string;
|
|
56
|
+
subject: string;
|
|
57
|
+
prominent?: boolean;
|
|
58
|
+
}): import("react").JSX.Element | null;
|
|
59
|
+
export declare const dockWidth: {
|
|
60
|
+
min: number;
|
|
61
|
+
max: number;
|
|
62
|
+
initial: number;
|
|
63
|
+
step: number;
|
|
64
|
+
};
|
|
65
|
+
export declare const mobileMaxWidth = 760;
|
|
66
|
+
export declare const contentMinWidth = 800;
|
|
67
|
+
export declare function useViewportWidth(): number;
|
|
68
|
+
export declare function useMajordomoDock(viewport: number, sidebarWidth: number): {
|
|
69
|
+
open: boolean;
|
|
70
|
+
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
71
|
+
width: number;
|
|
72
|
+
effectiveWidth: number;
|
|
73
|
+
maxWidth: number;
|
|
74
|
+
overlay: boolean;
|
|
75
|
+
setWidth: (value: number) => void;
|
|
76
|
+
question: string;
|
|
77
|
+
ask: (text: string) => void;
|
|
78
|
+
clearQuestion: () => void;
|
|
79
|
+
};
|
|
80
|
+
export type MajordomoDock = ReturnType<typeof useMajordomoDock>;
|
|
81
|
+
export declare function needsInitialize(major: Majordomo): boolean;
|
|
82
|
+
export declare function MajordomoSidebarEntry({ major, dock, onChanged }: {
|
|
83
|
+
major: Majordomo;
|
|
84
|
+
dock: MajordomoDock;
|
|
85
|
+
onChanged: () => void;
|
|
86
|
+
}): import("react").JSX.Element;
|
|
87
|
+
export declare function MajordomoRailButton({ major, dock }: {
|
|
88
|
+
major: Majordomo;
|
|
89
|
+
dock: MajordomoDock;
|
|
90
|
+
}): import("react").JSX.Element;
|
|
91
|
+
export declare function MajordomoToolbarButton({ dock }: {
|
|
92
|
+
dock: MajordomoDock;
|
|
93
|
+
}): import("react").JSX.Element;
|
|
94
|
+
export declare function MajordomoPanel({ major, dock, inventory, manager, theme, revision, onChanged }: {
|
|
95
|
+
major: Majordomo;
|
|
96
|
+
dock: MajordomoDock;
|
|
97
|
+
inventory: InventoryResource;
|
|
98
|
+
manager: TerminalManager;
|
|
99
|
+
theme: Theme;
|
|
100
|
+
revision: number;
|
|
101
|
+
onChanged: () => void;
|
|
102
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type DiffRow =
|
|
2
|
+
| { kind: "same" | "changed"; left: string; right: string; leftNo: number; rightNo: number }
|
|
3
|
+
| { kind: "removed"; left: string; leftNo: number; right?: undefined; rightNo?: undefined }
|
|
4
|
+
| { kind: "added"; right: string; rightNo: number; left?: undefined; leftNo?: undefined };
|
|
5
|
+
export type FoldRow = { kind: "fold"; count: number; rows: DiffRow[] };
|
|
6
|
+
export type DisplayRow = DiffRow | FoldRow;
|
|
7
|
+
export function diffLines(left: string, right: string): DiffRow[];
|
|
8
|
+
export function hasChanges(rows: DisplayRow[]): boolean;
|
|
9
|
+
export function compact(rows: DiffRow[], context?: number): DisplayRow[];
|
|
10
|
+
export function expandFold(rows: DisplayRow[], index: number): DisplayRow[];
|
|
11
|
+
export function restartOutcome(changeType?: string): string;
|