@kukeon/console 0.0.0-stage → 0.10.0-edge.g21af9f59

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 (93) hide show
  1. package/dist/auth.d.ts +39 -0
  2. package/dist/bulk-ui.d.ts +49 -0
  3. package/dist/bulk.d.mts +14 -0
  4. package/dist/catalog-CBVxh9uQ.js +5005 -0
  5. package/dist/catalog-url-Dr9e92Yq.js +19 -0
  6. package/dist/catalog-url.d.mts +4 -0
  7. package/dist/catalog.d.ts +40 -0
  8. package/dist/cell-filter.d.ts +10 -0
  9. package/dist/cell-sidebar.d.ts +26 -0
  10. package/dist/cells.d.mts +29 -0
  11. package/dist/cgroup-format.d.ts +17 -0
  12. package/dist/cgroup.d.ts +4 -0
  13. package/dist/config-form.d.mts +66 -0
  14. package/dist/connector-ui-lYy-1M3l.js +2692 -0
  15. package/dist/connector-ui.d.ts +127 -0
  16. package/dist/connectors-page-Z7acjRvr.js +1460 -0
  17. package/dist/connectors-page.d.ts +14 -0
  18. package/dist/connectors.d.mts +153 -0
  19. package/dist/container-log.d.ts +11 -0
  20. package/dist/create.d.ts +11 -0
  21. package/dist/creation-schema.d.mts +15 -0
  22. package/dist/daemon.d.ts +24 -0
  23. package/dist/display-name.d.ts +10 -0
  24. package/dist/drift-diff.d.ts +4 -0
  25. package/dist/exec.d.ts +15 -0
  26. package/dist/extensions.d.ts +111 -0
  27. package/dist/get-started.d.ts +9 -0
  28. package/dist/health.d.ts +22 -0
  29. package/dist/image-format.d.ts +6 -0
  30. package/dist/image-inventory.d.ts +12 -0
  31. package/dist/images.d.ts +5 -0
  32. package/dist/index.d.ts +5 -0
  33. package/dist/index.js +5595 -0
  34. package/dist/initialize-CGmYWoaj.js +146 -0
  35. package/dist/initialize.d.ts +21 -0
  36. package/dist/inventory.d.ts +66 -0
  37. package/dist/lifecycle-policy.d.ts +11 -0
  38. package/dist/lifecycle.d.ts +24 -0
  39. package/dist/log-buffer.d.ts +8 -0
  40. package/dist/main.d.ts +13 -0
  41. package/dist/majordomo.d.ts +102 -0
  42. package/dist/manage-nav.d.ts +4 -0
  43. package/dist/manifest-diff.d.mts +11 -0
  44. package/dist/merged-values-BhW2-nlA.js +739 -0
  45. package/dist/merged-values.d.ts +24 -0
  46. package/dist/network-format.d.ts +30 -0
  47. package/dist/network.d.ts +13 -0
  48. package/dist/new-agent-24Fcf0PI.js +201 -0
  49. package/dist/new-agent.d.ts +27 -0
  50. package/dist/new-cell-u87hB9wV.js +1985 -0
  51. package/dist/new-cell.d.ts +29 -0
  52. package/dist/new-config-B_uf4R4e.js +1541 -0
  53. package/dist/new-config.d.ts +7 -0
  54. package/dist/notifications.d.ts +26 -0
  55. package/dist/onboarding-CPDpnS7K.js +395 -0
  56. package/dist/onboarding.d.mts +40 -0
  57. package/dist/panel-cells.d.mts +8 -0
  58. package/dist/registry-credentials.d.ts +13 -0
  59. package/dist/relationships.d.mts +12 -0
  60. package/dist/request.d.ts +16 -0
  61. package/dist/router.d.ts +12 -0
  62. package/dist/routes.d.ts +41 -0
  63. package/dist/schedule-B08uvsJe.js +113 -0
  64. package/dist/schedule-format.d.mts +9 -0
  65. package/dist/schedule.d.ts +16 -0
  66. package/dist/scope-actions.d.ts +9 -0
  67. package/dist/screens.d.ts +6 -0
  68. package/dist/secret-form.d.ts +24 -0
  69. package/dist/settings-nav.d.ts +5 -0
  70. package/dist/settings-page.d.ts +4 -0
  71. package/dist/settings-values.d.mts +18 -0
  72. package/dist/settings.d.ts +50 -0
  73. package/dist/sidebar-shell.d.ts +55 -0
  74. package/dist/sources-page-C4t29wxJ.js +423 -0
  75. package/dist/sources-page.d.ts +5 -0
  76. package/dist/space-subnets.d.ts +3 -0
  77. package/dist/style.css +2 -0
  78. package/dist/team-form.d.mts +56 -0
  79. package/dist/team-plan-CaBIrof0.js +735 -0
  80. package/dist/team-plan.d.ts +22 -0
  81. package/dist/team-wizard.d.ts +8 -0
  82. package/dist/teams-page-CLdQhhgo.js +2206 -0
  83. package/dist/teams-page.d.ts +9 -0
  84. package/dist/teams.d.mts +112 -0
  85. package/dist/terminal-palette.d.ts +8 -0
  86. package/dist/terminal.d.ts +98 -0
  87. package/dist/unread.d.mts +19 -0
  88. package/dist/use-unread.d.ts +4 -0
  89. package/dist/user-menu.d.ts +7 -0
  90. package/dist/views.d.mts +8 -0
  91. package/dist/workbench.d.ts +16 -0
  92. package/package.json +45 -4
  93. package/README.md +0 -3
@@ -0,0 +1,14 @@
1
+ import type { InventoryResource } from "./inventory";
2
+ export declare function ConnectorsPage({ name, target, action, identity, revision, inventory, onChanged, onTitle }: {
3
+ name?: string;
4
+ target?: string[];
5
+ action?: string;
6
+ identity?: string[];
7
+ revision: number;
8
+ inventory: InventoryResource;
9
+ onChanged: () => void;
10
+ onTitle?: (connector: {
11
+ name: string;
12
+ title: string;
13
+ }) => void;
14
+ }): import("react").JSX.Element;
@@ -0,0 +1,153 @@
1
+ export const deliveryEnv: string;
2
+ export const deliveryFile: string;
3
+ export const deliveryStateVolume: string;
4
+ export const deliveryGit: string;
5
+ export const deliveryRegistry: string;
6
+ export const fieldString: string;
7
+ export const fieldList: string;
8
+ export const fieldPerson: string;
9
+ export const fieldSecret: string;
10
+ export const secretOpaque: string;
11
+ export const secretBasicAuth: string;
12
+ export const secretSSHKey: string;
13
+ export const scopeLevels: string[];
14
+ export const stateResolved: string;
15
+ export const statePending: string;
16
+ export const teamLabel: string;
17
+ export const defaultScopeName: string;
18
+ export const loginLoggedIn: string;
19
+ export const loginEmpty: string;
20
+ export const harnessPersistent: string;
21
+ export const harnessEphemeral: string;
22
+ export const harnessStates: string[];
23
+
24
+ export type SecretRef = { name: string; realm: string; space?: string; stack?: string };
25
+ export type Scope = { realm: string; space?: string; stack?: string };
26
+ export type ConnectorField = { name: string; type?: string; required?: boolean; help?: string; enum?: string[]; secretTypes?: string[] };
27
+ export type FormField = { name: string; type: string; required: boolean; help: string; enum: string[] };
28
+ export type ConnectorMethod = { name: string; component: string; description?: string; default?: boolean; delivery: string; slot?: string; envName?: string; mountPath?: string; login?: boolean };
29
+ export type Connector = {
30
+ name: string; title: string; description?: string; delivery?: string; group?: string; harness?: string; optional?: boolean;
31
+ scopes: string[]; secretTypes: string[]; fields: ConnectorField[]; methods: ConnectorMethod[];
32
+ tokenForGit?: TokenForGit;
33
+ };
34
+ // A connector whose token can also be stored as a git identity (#1693).
35
+ export type TokenForGit = { connector: string; hosts: string[]; username: string; name: string; tokenName: string };
36
+ export type GitForm = { git: boolean; gitAuthorName: string; gitAuthorEmail: string; gitUsername: string };
37
+ export type SecretTypeChoice = { type: string; label: string; description: string };
38
+ export type ScopeChoice = { level: string; label: string; recommended: boolean };
39
+ export type ConnectorStatus = {
40
+ connector: string; title?: string; component: string; method?: string; delivery: string; slot?: string; state: string;
41
+ required?: boolean; identity?: SecretRef; origin?: string; volume?: string; volumeRef?: VolumeRef; message?: string;
42
+ login?: { state: string; since?: string }; harnessState?: string;
43
+ // warning names a risk the cell is created with, such as a login identity
44
+ // another role uses (#1789); the connector still resolves.
45
+ warning?: string;
46
+ };
47
+ export type LoginSession = { realm: string; space: string; stack: string; cell: string; container: string };
48
+ export type ConfigRef = { name: string; realm: string; space?: string; stack?: string };
49
+ export type LoginIdentity = { connector: string; method: string; volume: SecretRef; exists: boolean; tagged: boolean; state: string; since: string; usedBy: ConfigRef[]; session?: LoginSession };
50
+ export type LoginResult = { identity: unknown; created: boolean; attached?: boolean };
51
+ export type VolumeRef = { name: string; realm: string; space?: string; stack?: string };
52
+ export type ConfigMetadata = { name: string; realm?: string; space?: string; stack?: string; labels?: Record<string, string> };
53
+ export type ConnectorMissing = { config: ConfigMetadata; component: string; method?: string; slot?: string; delivery: string; message?: string };
54
+ export type ConnectorUsage = { connector: string; configs: number; missing: ConnectorMissing[] };
55
+ export type ConnectorDefault = { connector: string; method?: string; component?: string; delivery: string; slot?: string; levels: Record<string, SecretRef>; effective?: SecretRef; origin?: string };
56
+ export type DefaultTarget = { method: string; component: string; delivery: string; slot: string; description: string };
57
+ export type Identity = { name: string; realm: string; space: string; stack: string; type: string; identity: Record<string, string> };
58
+ export type IdentityForm = {
59
+ name: string; type: string; fields: Record<string, string>;
60
+ value: string; username: string; password: string; privateKey: string; passphrase: string; publicKey: string; certificate: string; knownHosts: string;
61
+ };
62
+ export type GroupMember = { name: string; optional: boolean; group: string; description: string; connector: { name: string; method: string } | null };
63
+ export type RegistryEntry = { server: string; username: string; secret?: SecretRef };
64
+ // Any document that may carry status.connectors: a CellConfig, or nothing.
65
+ type StatusCarrier = unknown;
66
+
67
+ export function takesIdentity(delivery: string | undefined): boolean;
68
+ export function secretRef(value: Partial<SecretRef> | undefined | null): SecretRef | undefined;
69
+ export function refKey(value: Partial<SecretRef> | undefined | null): string;
70
+ export function sameRef(a: Partial<SecretRef> | undefined | null, b: Partial<SecretRef> | undefined | null): boolean;
71
+ export function refScope(value: Partial<SecretRef> | undefined | null): string[];
72
+ export function refLabel(value: Partial<SecretRef> | undefined | null): string;
73
+ export function formatSecretReference(value: Partial<SecretRef> | undefined | null): string;
74
+ export function identitiesFor(secrets: unknown[] | undefined, connector: string): Identity[];
75
+ export function connectorStatuses(config: StatusCarrier): ConnectorStatus[];
76
+ export function blocksCells(status: ConnectorStatus | undefined): boolean;
77
+ export function blockingConnectors(config: StatusCarrier): ConnectorStatus[];
78
+ export function connectorTitle(status: { title?: string; connector?: string } | undefined): string;
79
+ export function originLabel(origin: string | undefined, team?: string): string;
80
+ export function teamOf(config: { metadata?: { labels?: Record<string, string> } } | undefined): string;
81
+ export function targetScope(metadata: { realm?: string; space?: string; stack?: string } | undefined): Required<Scope>;
82
+ export function scopeAt(scope: Partial<Scope> | undefined, level: string): Scope;
83
+ export function scopeLevel(scope: Partial<Scope> | undefined): string;
84
+ export function scopeParts(scope: Partial<Scope> | undefined): string[];
85
+ export function scopeFromParts(parts: string[] | undefined): Scope;
86
+ export function connectorLevels(connector: { scopes?: string[] } | undefined): string[];
87
+ export function allowedLevels(connector: { scopes?: string[] } | undefined, scope: Partial<Scope> | undefined): string[];
88
+ export function scopeQuery(scope: Partial<Scope> | undefined): string;
89
+ export function defaultTargets(connector: Connector | undefined): DefaultTarget[];
90
+ export function defaultRow(defaults: ConnectorDefault[] | unknown[] | undefined, target: { connector: string; component?: string; method?: string }): ConnectorDefault | undefined;
91
+ export function loginMethods(connector: Connector | undefined): ConnectorMethod[];
92
+ export function isRegistry(connector: Connector | undefined): boolean;
93
+ export function usageFor(usage: ConnectorUsage[] | undefined, connector: string): { configs: number; missing: ConnectorMissing[] };
94
+ export function groupComponents<T extends GroupMember>(components: T[] | undefined): { groups: Array<{ group: string; members: T[] }>; ungrouped: T[] };
95
+ export function defaultGroupChoices(components: GroupMember[] | undefined, connectors: Connector[] | undefined): Record<string, string>;
96
+ export function keepsLogin(status: { delivery?: string } | undefined): boolean;
97
+ export function picksIdentity(status: { delivery?: string } | undefined): boolean;
98
+ export function statusIdentity(status: ConnectorStatus | undefined): SecretRef | undefined;
99
+ export function loginIdentitiesFor(logins: unknown[] | undefined, connector: string): LoginIdentity[];
100
+ export function loginStateText(state: string | undefined): string;
101
+ export function loginTone(state: string | undefined): string;
102
+ export function sessionScope(session: LoginSession | undefined): string[];
103
+ export function loginBody(name: string, scope: Partial<Scope> | undefined, method?: string): { name: string; scope: Scope; method?: string };
104
+ export function loginNameError(name: string | undefined): string;
105
+ export function stateText(status: ConnectorStatus | undefined): string;
106
+ export function pickableStatuses(statuses: ConnectorStatus[] | undefined): ConnectorStatus[];
107
+ export function changedPicks(statuses: ConnectorStatus[] | undefined, picks: Record<string, Partial<SecretRef> | undefined> | undefined): Record<string, SecretRef>;
108
+ export function methodChoices(connector: Connector | undefined): ConnectorMethod[];
109
+ export function changedMethods(statuses: ConnectorStatus[] | undefined, picks: Record<string, string | undefined> | undefined): Record<string, string>;
110
+ export function methodStatuses(statuses: ConnectorStatus[] | undefined, connectors: Connector[] | undefined, picks: Record<string, string | undefined> | undefined): ConnectorStatus[];
111
+ export function unresolvedConnectors(statuses: ConnectorStatus[] | undefined, picks: Record<string, Partial<SecretRef> | undefined> | undefined): ConnectorStatus[];
112
+ export function identityFields(connector: { fields?: ConnectorField[] } | undefined, type: string): FormField[];
113
+ export function secretTypesOf(connector: { secretTypes?: string[] } | undefined): string[];
114
+ export function storesNoValue(connector: { methods?: unknown[]; delivery?: string } | undefined, type: string | undefined): boolean;
115
+ export function importsFromHost(connector: { methods?: unknown[]; delivery?: string } | undefined): boolean;
116
+ export type ImportForm = { realm: string; hosts: string; name: string; key: string; passphraseFile: string; makeDefault: boolean };
117
+ export type ImportResult = {
118
+ home: string; name: string; realm: string; type: string; identity: Record<string, string>; keyPath?: string; allowedSignersPath?: string; notes?: string[];
119
+ secrets: Array<{ name: string; realm: string; action: string }>;
120
+ default?: { realm: string; identity: SecretRef | null; previous?: SecretRef; action: string };
121
+ };
122
+ export function importPayload(form: Partial<ImportForm> | undefined): Record<string, unknown>;
123
+ export function emptyIdentityForm(connector: { secretTypes?: string[]; tokenForGit?: unknown } | undefined, existing?: { name?: string; type?: string; identity?: Record<string, string> }): IdentityForm;
124
+ export function parseList(value: string | undefined): string[];
125
+ export function identityErrors(connector: { fields?: ConnectorField[]; secretTypes?: string[]; methods?: unknown[]; delivery?: string } | undefined, form: IdentityForm): string[];
126
+ export function identityPayload(connector: { fields?: ConnectorField[]; secretTypes?: string[]; methods?: unknown[]; delivery?: string; tokenForGit?: unknown } | undefined, scope: Partial<Scope>, form: IdentityForm, options?: { makeDefault?: boolean; method?: string; git?: Record<string, string> }): Record<string, unknown>;
127
+ export const reservedIdentityPrefix: string;
128
+ export const identityTokenFrom: string;
129
+ export function tokenForGit(connector: { tokenForGit?: unknown } | undefined): TokenForGit | undefined;
130
+ export function tokenConnectors(connectors: Connector[] | undefined): Connector[];
131
+ export function linkedGitIdentity(secrets: unknown[] | undefined, connector: Connector | undefined, identity: Partial<SecretRef> | undefined): Identity | undefined;
132
+ export const sharedLoginNote: string;
133
+ export function responseWarnings(result: unknown): string[];
134
+ export function connectorWarnings(statuses: ConnectorStatus[] | undefined): string[];
135
+ export function staleGitNotice(result: { staleGit?: Partial<SecretRef> } | undefined): string | undefined;
136
+ export function emptyGitForm(on: boolean): GitForm;
137
+ export function tokenGitPayload(form: Partial<GitForm> | undefined): Record<string, string>;
138
+ export function tokenGitErrors(form: Partial<GitForm> | undefined): string[];
139
+ export function splitPerson(value: string | undefined): { name: string; email: string };
140
+ export function joinPerson(name: string | undefined, email: string | undefined): string;
141
+ export function personError(label: string, value: string | undefined): string | undefined;
142
+ export function secretTypeChoices(connector: { secretTypes?: string[]; methods?: unknown[]; delivery?: string } | undefined): SecretTypeChoice[];
143
+ export function scopeChoices(connector: { scopes?: string[] } | undefined, realm: string | undefined): ScopeChoice[];
144
+ export function scopeAtLevel(scope: Partial<Scope> | undefined, level: string, spaces?: (realm: string) => string[], stacks?: (realm: string, space: string) => string[]): Scope | undefined;
145
+ export function identityDefaultOn(defaults: unknown[] | undefined, connector: Connector | undefined, target: DefaultTarget | undefined): boolean;
146
+ export function clearMaterial(form: IdentityForm): IdentityForm;
147
+ export function registryEntries(realm: unknown): RegistryEntry[];
148
+ export const secretTypes: string[];
149
+ export function secretTypeOf(doc: { spec?: { type?: string } } | undefined): string;
150
+ export function emptySecretForm(existing?: { metadata?: { name?: string }; spec?: { type?: string } }): IdentityForm;
151
+ export function secretErrors(form: IdentityForm, replace?: boolean): string[];
152
+ export function secretPayload(form: IdentityForm, replace?: boolean): Record<string, string | boolean>;
153
+ export function listedConnectors(connectors: Connector[] | undefined): Connector[];
@@ -0,0 +1,11 @@
1
+ import { type Theme } from "./terminal";
2
+ export declare function ContainerLog({ scope, container, attachable, live, cellState, revision, theme, expanded }: {
3
+ scope: string[];
4
+ container: string;
5
+ attachable: boolean;
6
+ live: boolean;
7
+ cellState?: string;
8
+ revision: number;
9
+ theme: Theme;
10
+ expanded: boolean;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ type Config = {
2
+ name: string;
3
+ realm?: string;
4
+ space?: string;
5
+ stack?: string;
6
+ };
7
+ export declare function CreateCell({ config, onCreated }: {
8
+ config: Config;
9
+ onCreated: () => void;
10
+ }): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ export type Field = {
2
+ key: string;
3
+ label: string;
4
+ kind: "text" | "number" | "boolean" | "enum" | "strings" | "env" | "map" | "object" | "objects";
5
+ required?: boolean;
6
+ advanced?: boolean;
7
+ options?: string[];
8
+ fields?: Field[];
9
+ itemLabel?: string;
10
+ help?: string;
11
+ // sourcePicker puts a "From source" select above each item (#1644): a stored Source fills the item.
12
+ sourcePicker?: boolean;
13
+ };
14
+ export const containerFields: Field[];
15
+ export const cellAdvanced: Field[];
@@ -0,0 +1,24 @@
1
+ import { type Failure } from "./request";
2
+ import type { InventoryResource } from "./inventory";
3
+ export type DaemonHealth = {
4
+ status: string;
5
+ endpoint: string;
6
+ daemonVersion?: string;
7
+ serverVersion: string;
8
+ checkedAt: string;
9
+ latencyMs: number;
10
+ error?: Failure;
11
+ };
12
+ export declare function HealthBadge({ status }: {
13
+ status?: string;
14
+ }): import("react").JSX.Element;
15
+ export declare function DaemonNav({ current }: {
16
+ current: "status" | "health" | "logs";
17
+ }): import("react").JSX.Element;
18
+ export declare function DaemonHealthPage({ revision, inventory }: {
19
+ revision: number;
20
+ inventory: InventoryResource;
21
+ }): import("react").JSX.Element;
22
+ export declare function DaemonLogsPage({ revision }: {
23
+ revision: number;
24
+ }): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { ConfigRef } from "./inventory";
2
+ type Annotations = Record<string, string> | undefined;
3
+ export declare function renameConfig(config: ConfigRef, displayName: string): Promise<Annotations>;
4
+ export declare function renameCell(scope: string[], displayName: string): Promise<Annotations>;
5
+ export declare function RenameControl({ subject, current, onSave }: {
6
+ subject: string;
7
+ current: string;
8
+ onSave: (displayName: string) => Promise<void>;
9
+ }): import("react").JSX.Element;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare function DriftDiff({ scope, revision }: {
2
+ scope: string[];
3
+ revision: number;
4
+ }): import("react").JSX.Element;
package/dist/exec.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import { type Theme } from "./terminal";
2
+ export declare function ExecButton({ container, open, reason, onToggle }: {
3
+ container: string;
4
+ open: boolean;
5
+ reason: string;
6
+ onToggle: () => void;
7
+ }): import("react").JSX.Element;
8
+ export declare function ExecPanel({ scope, container, theme, visible, expanded, onClose }: {
9
+ scope: string[];
10
+ container: string;
11
+ theme: Theme;
12
+ visible: boolean;
13
+ expanded: boolean;
14
+ onClose: () => void;
15
+ }): import("react").JSX.Element;
@@ -0,0 +1,111 @@
1
+ import { type ComponentType, type ReactNode } from "react";
2
+ export type Capabilities = {
3
+ version: string;
4
+ features: string[];
5
+ };
6
+ export type ExtensionContext = {
7
+ extension: string;
8
+ capabilities: Capabilities;
9
+ routeHref: (path: string) => string;
10
+ };
11
+ export type ExtensionRoute = {
12
+ path: string;
13
+ title: string;
14
+ section?: "manage" | "settings";
15
+ component: ComponentType<ExtensionContext>;
16
+ };
17
+ export type ExtensionNavEntry = {
18
+ title: string;
19
+ route: string;
20
+ };
21
+ export type ExtensionNav = {
22
+ manage?: ExtensionNavEntry[];
23
+ settings?: ExtensionNavEntry[];
24
+ };
25
+ export type TopBarItem = {
26
+ id: string;
27
+ component: ComponentType<ExtensionContext>;
28
+ };
29
+ export type UserMenuItem = {
30
+ id: string;
31
+ label: string;
32
+ route?: string;
33
+ href?: string;
34
+ onSelect?: () => void;
35
+ };
36
+ export type OverviewCard = {
37
+ id: string;
38
+ component: ComponentType<ExtensionContext>;
39
+ };
40
+ export type CellDetailsTabProps = ExtensionContext & {
41
+ scope: string[];
42
+ };
43
+ export type CellDetailsTab = {
44
+ id: string;
45
+ title: string;
46
+ component: ComponentType<CellDetailsTabProps>;
47
+ };
48
+ export type ExtensionSlots = {
49
+ topBarStart?: TopBarItem[];
50
+ userMenuItems?: UserMenuItem[];
51
+ overviewCards?: OverviewCard[];
52
+ cellDetailsTabs?: CellDetailsTab[];
53
+ };
54
+ export type ConsoleExtension = {
55
+ id: string;
56
+ requires?: string[];
57
+ routes?: ExtensionRoute[];
58
+ nav?: ExtensionNav;
59
+ slots?: ExtensionSlots;
60
+ };
61
+ export declare function extensionLink(id: string, path: string): string;
62
+ export type ExtensionStatus = {
63
+ phase: "checking";
64
+ } | {
65
+ phase: "available";
66
+ } | {
67
+ phase: "unmet";
68
+ missing: string[];
69
+ unreported: boolean;
70
+ };
71
+ export declare function ExtensionsProvider({ extensions, children }: {
72
+ extensions: ConsoleExtension[];
73
+ children: ReactNode;
74
+ }): import("react").JSX.Element;
75
+ export type Extensions = {
76
+ all: ConsoleExtension[];
77
+ available: ConsoleExtension[];
78
+ status: (extension: ConsoleExtension) => ExtensionStatus;
79
+ context: (extension: ConsoleExtension) => ExtensionContext;
80
+ };
81
+ export declare function useExtensions(): Extensions;
82
+ export declare function findExtensionRoute(extensions: Extensions, id: string | undefined, path: string | undefined): {
83
+ extension: ConsoleExtension;
84
+ route: ExtensionRoute;
85
+ } | undefined;
86
+ export declare function ExtensionNavLinks({ section, active, onNavigate }: {
87
+ section: "manage" | "settings";
88
+ active?: {
89
+ id: string;
90
+ path: string;
91
+ };
92
+ onNavigate?: () => void;
93
+ }): import("react").JSX.Element;
94
+ export declare function TopBarStart(): import("react").JSX.Element | null;
95
+ export declare function OverviewCards(): import("react").JSX.Element;
96
+ export type ResolvedMenuItem = {
97
+ key: string;
98
+ label: string;
99
+ href?: string;
100
+ onSelect?: () => void;
101
+ };
102
+ export declare function useExtensionMenuItems(): ResolvedMenuItem[];
103
+ export declare function CellDetailsTabs({ scope, active, children }: {
104
+ scope: string[];
105
+ active: boolean;
106
+ children: ReactNode;
107
+ }): import("react").JSX.Element;
108
+ export declare function ExtensionPage({ id, path }: {
109
+ id?: string;
110
+ path?: string;
111
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { InventoryResource } from "./inventory";
2
+ export declare function GetStarted({ revision, inventory, configs, majordomoCells, onOpenMajordomo, onChanged }: {
3
+ revision: number;
4
+ inventory: InventoryResource;
5
+ configs: unknown[] | undefined;
6
+ majordomoCells: number;
7
+ onOpenMajordomo: () => void;
8
+ onChanged: () => void;
9
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,22 @@
1
+ import { type Majordomo } from "./majordomo";
2
+ import type { InventoryResource } from "./inventory";
3
+ export declare const filingConnector = "github";
4
+ export declare const healthSeenKey = "kukeon-health-seen";
5
+ export declare function storedHealthSeen(): string | null;
6
+ export type Summary = {
7
+ id: string;
8
+ createdAt: string;
9
+ since: string;
10
+ until: string;
11
+ summary: string;
12
+ findings: number;
13
+ recurring: number;
14
+ filed: number;
15
+ };
16
+ export declare function HealthPage({ revision, major, inventory, onChanged, onSeen }: {
17
+ revision: number;
18
+ major: Majordomo;
19
+ inventory: InventoryResource;
20
+ onChanged: () => void;
21
+ onSeen: (id: string) => void;
22
+ }): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export const UNAVAILABLE: string;
2
+ export function formatImageSize(size: number | null | undefined): string;
3
+ export function formatImageCreated(createdAt: string | null | undefined): string;
4
+ export function formatImageText(value: string | null | undefined): string;
5
+ export function shortDigest(digest: string | null | undefined): string;
6
+ export function sortedLabels(labels: Record<string, string> | null | undefined): Array<[string, string]>;
@@ -0,0 +1,12 @@
1
+ export type InventoryImage = {
2
+ name: string;
3
+ size: number | null;
4
+ createdAt: string | null;
5
+ digest: string;
6
+ mediaType: string;
7
+ labels: Record<string, string>;
8
+ };
9
+ export declare function ImagesPage({ scope, revision }: {
10
+ scope: string[];
11
+ revision: number;
12
+ }): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare function RealmImagesPanel({ realm, revision, credentials }: {
2
+ realm: string;
3
+ revision: number;
4
+ credentials: number;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export { KukeonConsole, mountConsole, type ConsoleOptions } from "./main";
2
+ export type { Transport } from "@kukeon/api-client";
3
+ export type { Router } from "./router";
4
+ export type { AuthAdapter, Session, SessionCheck, SignInProps } from "./auth";
5
+ export type { Capabilities, CellDetailsTab, CellDetailsTabProps, ConsoleExtension, ExtensionContext, ExtensionNav, ExtensionNavEntry, ExtensionRoute, ExtensionSlots, OverviewCard, TopBarItem, UserMenuItem, } from "./extensions";