@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,19 @@
1
+ // src/catalog-url.mjs
2
+ var e = [
3
+ "realm",
4
+ "space",
5
+ "stack",
6
+ "cell"
7
+ ];
8
+ function t(t, n) {
9
+ let r = new URLSearchParams();
10
+ return n.slice(0, -1).forEach((t, n) => r.set(e[n], t)), `/catalog/${t}/${encodeURIComponent(n.at(-1) ?? "")}?${r}`;
11
+ }
12
+ function n(e, n) {
13
+ let [r, i] = t(e, n).split("?");
14
+ return `${r}/delete?${i}`;
15
+ }
16
+ function r(t) {
17
+ return [...e.map((e) => t?.[e]), t?.name].filter((e) => typeof e == "string" && !!e);
18
+ }
19
+ export { n, r, t };
@@ -0,0 +1,4 @@
1
+ export type ScopedReference = { name?: unknown; realm?: unknown; space?: unknown; stack?: unknown; cell?: unknown };
2
+ export function catalogAPI(kind: string, scope: string[]): string;
3
+ export function catalogDeleteAPI(kind: string, scope: string[]): string;
4
+ export function referenceScope(reference: ScopedReference | undefined): string[];
@@ -0,0 +1,40 @@
1
+ import type { InventoryResource } from "./inventory";
2
+ type Metadata = {
3
+ name: string;
4
+ realm?: string;
5
+ space?: string;
6
+ stack?: string;
7
+ cell?: string;
8
+ labels?: Record<string, string>;
9
+ annotations?: Record<string, string>;
10
+ };
11
+ type CatalogDoc = {
12
+ metadata: Metadata;
13
+ spec?: Record<string, unknown>;
14
+ [key: string]: unknown;
15
+ };
16
+ export declare function catalogLink(kind: string, scope: string[], document?: boolean): string;
17
+ export declare function RelatedResources({ doc, revision }: {
18
+ doc: {
19
+ [key: string]: unknown;
20
+ };
21
+ revision: number;
22
+ }): import("react").JSX.Element | null;
23
+ export declare function CatalogDeleteConfirmation({ kind, doc, revision, inventory, onCancel, onConfirm }: {
24
+ kind: string;
25
+ doc: CatalogDoc;
26
+ revision: number;
27
+ inventory: InventoryResource;
28
+ onCancel: () => void;
29
+ onConfirm: () => void;
30
+ }): import("react").JSX.Element;
31
+ export declare function CatalogPage(props: {
32
+ kind: string;
33
+ scope: string[];
34
+ document: boolean;
35
+ edit?: boolean;
36
+ revision: number;
37
+ inventory: InventoryResource;
38
+ onChanged: () => void;
39
+ }): import("react").JSX.Element;
40
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const sidebarGroupingKey = "kukeon-cell-grouping";
2
+ export declare const gridGroupingKey = "kukeon-grid-grouping";
3
+ export declare function clearGroupings(): void;
4
+ export type CellFilter = {
5
+ search: string;
6
+ setSearch: (value: string) => void;
7
+ groupBy: string;
8
+ setGroupBy: (value: string) => void;
9
+ };
10
+ export declare function useCellFilter(storageKey: string, defaultGroupBy: string, searchShown: boolean): CellFilter;
@@ -0,0 +1,26 @@
1
+ import type { InventoryResource, Row } from "./inventory";
2
+ import type { TerminalState } from "./terminal";
3
+ import type { CellFilter } from "./cell-filter";
4
+ import type { CellListStyle } from "./settings";
5
+ import type { Unread } from "./use-unread";
6
+ export declare function UnreadMark({ bytes, showBytes }: {
7
+ bytes: number;
8
+ showBytes: boolean;
9
+ }): import("react").JSX.Element;
10
+ export declare function unreadOf(rows: Row[], unread: Record<string, Unread>): number;
11
+ export declare function StoppedCellsLink({ hidden }: {
12
+ hidden: number;
13
+ }): import("react").JSX.Element | null;
14
+ export declare function CellSidebar({ inventory, selectedScope, terminalStates, filter, listStyle, showSearch, showGroupBy, showScope, showTerminalStatus, unread, showUnreadBytes }: {
15
+ inventory: InventoryResource;
16
+ selectedScope: string[];
17
+ terminalStates: Record<string, TerminalState>;
18
+ filter: CellFilter;
19
+ listStyle?: CellListStyle;
20
+ showSearch?: boolean;
21
+ showGroupBy?: boolean;
22
+ showScope?: boolean;
23
+ showTerminalStatus?: boolean;
24
+ unread?: Record<string, Unread>;
25
+ showUnreadBytes?: boolean;
26
+ }): import("react").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import type { Row, RuntimeStatus } from "./inventory";
2
+
3
+ export type CellGroup = { id: string; label: string; rows: Row[] };
4
+ export function isActiveCell(state?: string): boolean;
5
+ export function activeCells(rows: Row[], openScope?: string[]): Row[];
6
+ export function needsAttention(status?: RuntimeStatus): boolean;
7
+ export function attentionFirst(rows: Row[]): Row[];
8
+ export function matchesState(state: string | undefined, filter: string): boolean;
9
+ export function screenTail(text: string, rows?: number): string;
10
+ export function cellMatches(row: Row, search: string): boolean;
11
+ export const ungrouped: string;
12
+ export function groupingKeys(rows: Row[], groupBy: string): string[];
13
+ export function groupId(key: string, value: string | null): string;
14
+ export function groupCells(rows: Row[], groupBy: string): CellGroup[];
15
+ export const configLabel: string;
16
+ export const templateLabel: string;
17
+ export const harnessLabel: string;
18
+ export const displayNameAnnotation: string;
19
+ export const agentTemplateAnnotation: string;
20
+ type Annotated = { metadata?: { name?: string; labels?: Record<string, string>; annotations?: Record<string, string>; realm?: string; space?: string; stack?: string } };
21
+ export function isTemplate(doc: Annotated | undefined): boolean;
22
+ export function ownDisplayName(doc: Annotated | undefined): string;
23
+ export function displayNameError(value: string): string;
24
+ export function configDisplayName(config: Annotated | undefined): { name: string; named: boolean };
25
+ export type Agent = { id: string; name: string; displayName: string; named: boolean; realm: string; scope: string[]; showRealm: boolean; context: string; rows: Row[] };
26
+ export function agentGroups(rows: Row[], configs?: Annotated[]): { agents: Agent[]; others: Row[] };
27
+ export function filterAgents(groups: { agents: Agent[]; others: Row[] }, match: (row: Row) => boolean): { agents: Agent[]; others: Row[] };
28
+ export function instanceLabels(rows: Row[], configs?: Annotated[]): Map<string, string>;
29
+ export function rollupState(rows: Row[]): string | undefined;
@@ -0,0 +1,17 @@
1
+ export type CgroupValue = { state?: string; raw?: string; value?: number };
2
+ export type CgroupList = { state?: string; values?: string[] };
3
+ export type CgroupCPUMax = { state?: string; raw?: string; quotaMicros?: number; periodMicros?: number };
4
+ export type CgroupIOMax = { state?: string; entries?: { device: string; limits?: Record<string, string> }[] };
5
+ export type CgroupDeclared = { field: string; value?: number; source: string };
6
+ export type Formatted = { text: string; raw?: string };
7
+ export const UNLIMITED: string;
8
+ export const NOT_AVAILABLE: string;
9
+ export const UNREADABLE: string;
10
+ export const NOT_SET: string;
11
+ export function formatBytes(bytes: number): string;
12
+ export function formatCgroupValue(value: CgroupValue | undefined, kind?: "bytes" | "count" | "weight" | "usec"): Formatted;
13
+ export function formatCPUMax(cpuMax: CgroupCPUMax | undefined): Formatted;
14
+ export function formatCgroupList(list: CgroupList | undefined): string;
15
+ export function formatIOMax(io: CgroupIOMax | undefined): string[];
16
+ export function summarizeCgroup(detail: { exists?: boolean; ready?: boolean; live?: { memory?: { current?: CgroupValue; max?: CgroupValue }; pids?: { current?: CgroupValue } } } | undefined): string;
17
+ export function formatDeclared(entry: CgroupDeclared | undefined): { text: string; source: string };
@@ -0,0 +1,4 @@
1
+ export declare function CgroupPanel({ scope, revision }: {
2
+ scope: string[];
3
+ revision: number;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,66 @@
1
+ export type Parameter = {
2
+ name: string; description: string; hasDefault: boolean; default: string; required: boolean;
3
+ type: "string" | "enum" | "path" | "image" | "bool"; enum: string[]; group: string;
4
+ };
5
+ export type SecretSlot = { name: string; envName: string; required: boolean };
6
+ export type RepoSlot = { name: string; target: string; required: boolean };
7
+ export type ComponentMode = { name: string; description: string; parameters: Parameter[]; secrets: SecretSlot[] };
8
+ export type ComponentConnector = { name: string; title: string; method: string; delivery: string; optional: boolean; harness: string; secretTypes: string[]; scopes: string[] };
9
+ export const stateVolumeValues: string[];
10
+ export function keepsLoginState(form: BlueprintForm, answers: Answers): boolean;
11
+ export function offersState(form: BlueprintForm, answers: Answers): boolean;
12
+ export function stateChoice(form: BlueprintForm, answers: Answers): string;
13
+ export type Component = {
14
+ kind: string; name: string; description: string; optional: boolean; group: string; connector: ComponentConnector | null; requires: string[];
15
+ parameters: Parameter[]; secrets: SecretSlot[]; modes: ComponentMode[];
16
+ };
17
+ export type BlueprintForm = {
18
+ requires: string[]; parameters: Parameter[]; components: Component[]; modes: string[];
19
+ repoSlots: RepoSlot[]; secretSlots: SecretSlot[];
20
+ };
21
+ export type SecretRef = { name: string; realm: string; space?: string; stack?: string; cell?: string };
22
+ export type Identity = { name?: string; email?: string };
23
+ export type SigningAnswer = { secretRef?: Partial<SecretRef>; allowedSignersRef?: Partial<SecretRef> };
24
+ export type CredentialAnswer = { secretRef?: Partial<SecretRef>; user?: string; port?: string | number; hostKeyPolicy?: string };
25
+ export type RepoGitAnswer = { enabled?: boolean; author?: Identity; committer?: Identity; credential?: CredentialAnswer; signing?: SigningAnswer; sign?: string[] };
26
+ export type DefaultGitAnswer = { enabled?: boolean; author?: Identity; committer?: Identity; credentials?: Array<CredentialAnswer & { host?: string }>; signing?: SigningAnswer; sign?: string[] };
27
+ export type RepoAnswer = { url?: string; revision?: "branch" | "ref"; branch?: string; ref?: string; git?: RepoGitAnswer };
28
+ export type Answers = {
29
+ values: Record<string, string | boolean>;
30
+ components: string[];
31
+ groups: Record<string, string>;
32
+ connectors: Record<string, Partial<SecretRef>>;
33
+ requires: string;
34
+ prefix: string;
35
+ modes: { enabled: string[]; default: string };
36
+ repos: Record<string, RepoAnswer>;
37
+ secrets: Record<string, Partial<SecretRef>>;
38
+ git: DefaultGitAnswer | null;
39
+ // state is the harness state: "" (persistent, the default) or "ephemeral".
40
+ state: string;
41
+ };
42
+ export type FormSection = { key: string; title: string; kind: string; description?: string; parameters: Parameter[]; secrets: SecretSlot[]; connector?: ComponentConnector; component?: string };
43
+ export type InventoryImage = { name: string; capabilities?: string[] };
44
+ export type ImageChoice = { name: string; capabilities: string[]; status: "match" | "unknown" };
45
+ export type RenderedValue = { kind: string; key: string; value: string; origin: string };
46
+ export type RepoIdentity = { repo: string; url: string; fields: Array<{ field: string; value: string; origin: string }> };
47
+ export type SecretChoice = { name: string; realm: string; space: string; stack: string; cell: string; type: string };
48
+
49
+ export function blueprintForm(blueprint: unknown): BlueprintForm;
50
+ export function emptyAnswers(form: BlueprintForm): Answers;
51
+ export function groupChoice(form: BlueprintForm, answers: Answers, group: string): string;
52
+ export function connectorSections(form: BlueprintForm, answers: Answers, mode?: string): Array<FormSection & { connector: ComponentConnector; component: string }>;
53
+ export function componentsWithoutIdentity(form: BlueprintForm, answers: Answers, defaults: Array<{ connector: string; component?: string; effective?: unknown }> | undefined, mode?: string): string[];
54
+ export function connectorsWithoutIdentity(form: BlueprintForm, answers: Answers, defaults: Array<{ connector: string; component?: string; effective?: unknown }> | undefined, mode?: string): string[];
55
+ export function previewMode(form: BlueprintForm, answers: Answers, requested?: string): string;
56
+ export function formSections(form: BlueprintForm, answers: Answers, mode?: string): FormSection[];
57
+ export function requiredCapabilities(form: BlueprintForm, answers: Answers): string[];
58
+ export function imageChoices(images: InventoryImage[] | undefined, required: string[]): ImageChoice[];
59
+ export function imageStatus(images: InventoryImage[] | undefined, name: string, required: string[]): { status: "absent" | "unknown" | "missing" | "match"; missing: string[] };
60
+ export function buildSpec(blueprintRef: { name?: string; realm?: string; space?: string; stack?: string }, form: BlueprintForm, answers: Answers): Record<string, unknown>;
61
+ export function missingAnswers(form: BlueprintForm, answers: Answers, mode?: string): string[];
62
+ export interface DefaultIdentityField { field: string; host: string; value: string; origin: string }
63
+ export function groupGitValues(values: RenderedValue[] | undefined): { repos: RepoIdentity[]; defaults: DefaultIdentityField[]; rest: RenderedValue[] };
64
+ export type ValueSource = "blueprint" | "config" | "connectors" | "realm" | "space" | "stack" | "cell" | "other";
65
+ export function groupValuesBySource<C extends object>(values: RenderedValue[] | undefined, connectors: C[] | undefined): Array<{ source: "connectors"; rows: C[] } | { source: Exclude<ValueSource, "connectors">; rows: RenderedValue[] }>;
66
+ export function secretChoices(secrets: unknown[] | undefined, types?: string[]): SecretChoice[];