@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.
- 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-CBVxh9uQ.js +5005 -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-lYy-1M3l.js +2692 -0
- package/dist/connector-ui.d.ts +127 -0
- package/dist/connectors-page-Z7acjRvr.js +1460 -0
- package/dist/connectors-page.d.ts +14 -0
- package/dist/connectors.d.mts +153 -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.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/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 +5595 -0
- package/dist/initialize-CGmYWoaj.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.d.ts +102 -0
- package/dist/manage-nav.d.ts +4 -0
- package/dist/manifest-diff.d.mts +11 -0
- package/dist/merged-values-BhW2-nlA.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-24Fcf0PI.js +201 -0
- package/dist/new-agent.d.ts +27 -0
- package/dist/new-cell-u87hB9wV.js +1985 -0
- package/dist/new-cell.d.ts +29 -0
- package/dist/new-config-B_uf4R4e.js +1541 -0
- package/dist/new-config.d.ts +7 -0
- package/dist/notifications.d.ts +26 -0
- package/dist/onboarding-CPDpnS7K.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 +41 -0
- package/dist/schedule-B08uvsJe.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-C4t29wxJ.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-CaBIrof0.js +735 -0
- package/dist/team-plan.d.ts +22 -0
- package/dist/team-wizard.d.ts +8 -0
- package/dist/teams-page-CLdQhhgo.js +2206 -0
- package/dist/teams-page.d.ts +9 -0
- package/dist/teams.d.mts +112 -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,9 @@
|
|
|
1
|
+
export declare function TeamsPage({ name, section, revision, onChanged }: {
|
|
2
|
+
name?: string;
|
|
3
|
+
section?: string;
|
|
4
|
+
revision: number;
|
|
5
|
+
onChanged: () => void;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
export declare function NewTeamPage({ onChanged }: {
|
|
8
|
+
onChanged: () => void;
|
|
9
|
+
}): import("react").JSX.Element;
|
package/dist/teams.d.mts
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export const systemTeam: string;
|
|
2
|
+
export const refKinds: string[];
|
|
3
|
+
export const codeExists: string;
|
|
4
|
+
export const codeReserved: string;
|
|
5
|
+
export const codeInUse: string;
|
|
6
|
+
export const defaultsAPI: string;
|
|
7
|
+
export const newTeamRoute: string;
|
|
8
|
+
export const inspectAPI: string;
|
|
9
|
+
|
|
10
|
+
export type TeamSummary = {
|
|
11
|
+
name: string; realm: string; projectUrl?: string; projectRef?: string;
|
|
12
|
+
roles: string[]; rolesInherited: boolean; harnesses: string[]; harnessesInherited: boolean;
|
|
13
|
+
configs: string[]; system?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type FormSource = { alias: string; stored?: string; url?: string; refKind?: string; ref?: string; clonePath?: string; identity?: string };
|
|
16
|
+
export type FormTaskHarness = { schedule?: string; suspend: boolean | null };
|
|
17
|
+
export type FormTask = { name: string; schedule?: string; suspend: boolean | null; args?: string; harnesses?: Record<string, FormTaskHarness> };
|
|
18
|
+
export type FormRoleConnector = { name: string; enabled: boolean; identity?: string };
|
|
19
|
+
export type FormRole = { name: string; source: string; path: string; harness?: string; initialPath?: string; image: string[]; tasks: { all: boolean; items: FormTask[] }; connectors?: FormRoleConnector[] };
|
|
20
|
+
export type FormHarness = { name: string; source: string; path: string };
|
|
21
|
+
export type FormConnector = { method?: string; identity?: string; state?: string };
|
|
22
|
+
export type TeamForm = {
|
|
23
|
+
name: string; project?: FormSource; sources: FormSource[] | null;
|
|
24
|
+
roles: { inherit: boolean; items: FormRole[] }; harnesses: { inherit: boolean; items: FormHarness[] };
|
|
25
|
+
connectors: { inherit: boolean; items: Record<string, FormConnector> };
|
|
26
|
+
};
|
|
27
|
+
export type ViewSource = { alias: string; stored?: string; url: string; ref?: string; clonePath?: string; identity?: string; declared: boolean };
|
|
28
|
+
export type ViewRole = {
|
|
29
|
+
name: string; source: string; path: string; harness?: string; initialPath?: string; image: string[]; secrets: string[];
|
|
30
|
+
allTasks: boolean; selected: { name: string; schedule?: string; suspend?: boolean; args?: string; harnesses?: Record<string, FormTaskHarness> }[];
|
|
31
|
+
};
|
|
32
|
+
export type ScheduleSpec = { cron: string; timezone?: string; concurrencyPolicy?: string; startingDeadlineSeconds?: number; suspend?: boolean };
|
|
33
|
+
export type ScheduleState = { lastScheduleTime?: string; nextScheduleTime?: string; lastCell?: string; activeCells?: string[]; skippedFires?: number; lastError?: string };
|
|
34
|
+
export type ViewTask = { role: string; task: string; harness?: string; config: string; scope: string[]; schedule?: ScheduleSpec; status?: ScheduleState };
|
|
35
|
+
// RoleConnectorView is one connector a Config of the team resolves (#1649): a row of kuke team connector list.
|
|
36
|
+
export type RoleConnectorView = {
|
|
37
|
+
role: string; config: string; task?: string; connector: string; method?: string; state: string;
|
|
38
|
+
identity?: string; origin?: string; required?: boolean; fill: string; setByTeam: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type ViewConfig = { name: string; scope: string[]; role?: string; task?: string };
|
|
41
|
+
export type TeamDetail = {
|
|
42
|
+
project?: ViewSource;
|
|
43
|
+
sources: { inherited: boolean; items: ViewSource[] };
|
|
44
|
+
roles: { inherited: boolean; items: ViewRole[] };
|
|
45
|
+
harnesses: { inherited: boolean; items: FormHarness[] };
|
|
46
|
+
connectors: { inherited: boolean; items: { name: string; method?: string; identity?: string }[]; roles?: RoleConnectorView[] };
|
|
47
|
+
tasks: ViewTask[]; configs: ViewConfig[]; unresolved?: string;
|
|
48
|
+
};
|
|
49
|
+
export type TeamView = { summary: TeamSummary; document: string; view?: TeamDetail; form?: TeamForm; problem?: string };
|
|
50
|
+
export type PlannedTask = { name: string; config: string; schedule?: string; suspend?: boolean };
|
|
51
|
+
export type PlannedPair = { role: string; harness: string; config: string; image: string; components?: string[]; tasks?: PlannedTask[] };
|
|
52
|
+
export type PlannedSource = { name: string; url: string; ref: string; commit?: string };
|
|
53
|
+
export type Plan = {
|
|
54
|
+
command: string; origin: { kind: string; detail?: string }; declaration: string;
|
|
55
|
+
sources: PlannedSource[] | null; pairs: PlannedPair[] | null;
|
|
56
|
+
create: string[] | null; rerender: string[] | null; prune: string[] | null;
|
|
57
|
+
missingSecrets: string[] | null; createSecrets: string[] | null; notes: string[] | null;
|
|
58
|
+
};
|
|
59
|
+
export type TeamResult = { team: string; resources: number; pruned: string[]; missingSecrets: string[]; notes: string[] };
|
|
60
|
+
// connectors, on a preview, is what each composed Config would resolve (#1745); connectorNotes names the ones
|
|
61
|
+
// that did not render.
|
|
62
|
+
export type TeamOutcome = { plan: Plan; result?: TeamResult; connectors?: RoleConnectorView[]; connectorNotes?: string[] };
|
|
63
|
+
export type Source = { name: string; url: string; branch?: string; tag?: string; commit?: string; identity?: string };
|
|
64
|
+
export type Selection = { name: string; source: string; path: string };
|
|
65
|
+
export type SourceUse = { team?: string; as: string; name: string };
|
|
66
|
+
export type StoredSource = Source & { usedBy: SourceUse[]; defaultRoles: Selection[]; defaultHarnesses: Selection[] };
|
|
67
|
+
// defaultForm is the default roles and connector choices in the form's shape (#1746): what a team starts from
|
|
68
|
+
// when it stops inheriting them.
|
|
69
|
+
export type Sources = {
|
|
70
|
+
sources: StoredSource[]; defaultRoles: Selection[]; defaultHarnesses: Selection[];
|
|
71
|
+
defaultForm?: { roles: FormRole[]; connectors: Record<string, FormConnector> };
|
|
72
|
+
};
|
|
73
|
+
export type OfferedTask = { name: string; schedule?: string; suspend?: boolean; args?: string };
|
|
74
|
+
export type OfferedRole = { name: string; path: string; harnesses: string[]; tasks: OfferedTask[]; default: boolean };
|
|
75
|
+
export type OfferedHarness = { name: string; path: string; default: boolean };
|
|
76
|
+
export type SourceContents = { source: Source; commit?: string; roles: OfferedRole[]; harnesses: OfferedHarness[] };
|
|
77
|
+
export type SourceChange = { action: string; source: Source; usedBy: SourceUse[]; discovered?: SourceContents };
|
|
78
|
+
export type DefaultsChange = { action: string; inheriting: string[] };
|
|
79
|
+
export type DraftSource = { alias: string; stored: string; url: string; ref?: string; identity?: string; state: string; have?: string; contents?: SourceContents };
|
|
80
|
+
export type Draft = { origin: { kind: string; detail?: string }; name: string; form: TeamForm; declaration: string; sources: DraftSource[]; notes: string[] };
|
|
81
|
+
export type DeleteResult = { deleted: boolean; removed: { kind: string; name: string; action: string }[]; liveCells: string[]; keptVolumes: string[] };
|
|
82
|
+
export type SourceForm = { name: string; url: string; refKind: string; ref: string; identity: string; force?: boolean };
|
|
83
|
+
|
|
84
|
+
export function teamsRoute(name?: string, section?: "edit" | "export"): string;
|
|
85
|
+
export function sourcesRoute(name?: string): string;
|
|
86
|
+
export function teamsAPI(name?: string, action?: string): string;
|
|
87
|
+
export function exportAPI(name: string, options?: { hostFields?: boolean; explicit?: boolean }): string;
|
|
88
|
+
export function sourcesAPI(name?: string, action?: string): string;
|
|
89
|
+
export function refOf(source: unknown): { kind: string; value: string };
|
|
90
|
+
export function refLabel(source: unknown): string;
|
|
91
|
+
export function withRef<T extends Record<string, unknown>>(out: T, kind: string | undefined, value: string | undefined): T;
|
|
92
|
+
export function refErrors(kind: string | undefined, value: string | undefined): string[];
|
|
93
|
+
export function validName(value: string | undefined): boolean;
|
|
94
|
+
export function editPayload(name: string, declaration: string): { name: string; declaration: string };
|
|
95
|
+
export function needsForce(failure: unknown): boolean;
|
|
96
|
+
export function planSections(plan: Plan | undefined): { key: string; title: string; items: string[] }[];
|
|
97
|
+
export function originLabel(origin: unknown): string;
|
|
98
|
+
export function taskLabel(task: unknown): string;
|
|
99
|
+
export function pairRows(plan: Plan | undefined): { key: string; role: string; harness: string; config: string; image: string; components: string[]; tasks: string[] }[];
|
|
100
|
+
export function sourceItems(contents: unknown): { roles: OfferedRole[]; harnesses: OfferedHarness[] };
|
|
101
|
+
export function toggledDefaults(current: Sources | undefined, kind: "role" | "harness", item: { name: string; source: string; path: string }, on: boolean): { roles?: string[]; harnesses?: string[] };
|
|
102
|
+
export function isDefault(current: Sources | undefined, kind: "role" | "harness", source: string, path: string): boolean;
|
|
103
|
+
export function sourcePayload(form: Partial<SourceForm>): Record<string, unknown>;
|
|
104
|
+
export function sourceErrors(form: Partial<SourceForm>): string[];
|
|
105
|
+
export function usesLabel(use: SourceUse): string;
|
|
106
|
+
export function sourceTeams(source: StoredSource | undefined): string[];
|
|
107
|
+
export function inheritingNote(change: DefaultsChange | undefined): string;
|
|
108
|
+
export function deleteSummary(result: DeleteResult | undefined): { removed: string[]; liveCells: string[]; keptVolumes: string[] };
|
|
109
|
+
export function teamConfigs(configs: unknown, team: string): { name: string; scope: string[] }[];
|
|
110
|
+
export function listOrigin(list: { inherited?: boolean } | undefined): string;
|
|
111
|
+
export function configRoute(scope: string[], name: string): string;
|
|
112
|
+
export function repositoryFromSource(source: unknown): { name: string; url: string; branch: string; ref: string };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type AnsiPalette = {
|
|
2
|
+
black: string; red: string; green: string; yellow: string; blue: string; magenta: string; cyan: string; white: string;
|
|
3
|
+
brightBlack: string; brightRed: string; brightGreen: string; brightYellow: string; brightBlue: string; brightMagenta: string; brightCyan: string; brightWhite: string;
|
|
4
|
+
};
|
|
5
|
+
export const darkTerminalBackground: string;
|
|
6
|
+
export const lightTerminalBackground: string;
|
|
7
|
+
export const darkAnsi: AnsiPalette;
|
|
8
|
+
export const lightAnsi: AnsiPalette;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import "@xterm/xterm/css/xterm.css";
|
|
2
|
+
import type { InventoryResource } from "./inventory";
|
|
3
|
+
import type { LifecycleAction, LifecycleFeedback } from "./lifecycle";
|
|
4
|
+
export type TerminalState = "connecting" | "attached" | "disconnected" | "interrupted";
|
|
5
|
+
export type TerminalView = "main" | "panel";
|
|
6
|
+
export type Session = {
|
|
7
|
+
id: string;
|
|
8
|
+
scope: string[];
|
|
9
|
+
container: string;
|
|
10
|
+
view: TerminalView;
|
|
11
|
+
state: TerminalState;
|
|
12
|
+
message: string;
|
|
13
|
+
generation: number;
|
|
14
|
+
reattach?: boolean;
|
|
15
|
+
};
|
|
16
|
+
type PendingPaste = {
|
|
17
|
+
text: string;
|
|
18
|
+
nonce: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const cellId: (scope: string[]) => string;
|
|
21
|
+
export declare const sessionId: (scope: string[], container: string, view?: TerminalView) => string;
|
|
22
|
+
export declare const unavailableStates: Set<string>;
|
|
23
|
+
export type Theme = "system" | "light" | "dark";
|
|
24
|
+
export declare function terminalThemeFor(theme: Theme): {
|
|
25
|
+
black: string;
|
|
26
|
+
red: string;
|
|
27
|
+
green: string;
|
|
28
|
+
yellow: string;
|
|
29
|
+
blue: string;
|
|
30
|
+
magenta: string;
|
|
31
|
+
cyan: string;
|
|
32
|
+
white: string;
|
|
33
|
+
brightBlack: string;
|
|
34
|
+
brightRed: string;
|
|
35
|
+
brightGreen: string;
|
|
36
|
+
brightYellow: string;
|
|
37
|
+
brightBlue: string;
|
|
38
|
+
brightMagenta: string;
|
|
39
|
+
brightCyan: string;
|
|
40
|
+
brightWhite: string;
|
|
41
|
+
cursorAccent: string;
|
|
42
|
+
selectionBackground: string;
|
|
43
|
+
background: string;
|
|
44
|
+
foreground: string;
|
|
45
|
+
cursor: string;
|
|
46
|
+
};
|
|
47
|
+
export declare function useTerminalSessions(inventory: InventoryResource): {
|
|
48
|
+
sessions: Session[];
|
|
49
|
+
selection: Record<string, string>;
|
|
50
|
+
select: (scope: string[], container: string) => void;
|
|
51
|
+
attach: (scope: string[], container: string, view?: TerminalView) => void;
|
|
52
|
+
autoAttach: (scope: string[], container: string, seen: string | undefined) => void;
|
|
53
|
+
detach: (id: string) => void;
|
|
54
|
+
detachView: (scope: string[], view: TerminalView) => void;
|
|
55
|
+
removeCell: (scope: string[]) => void;
|
|
56
|
+
interruptCell: (scope: string[], message: string, reattach?: boolean) => void;
|
|
57
|
+
dropInterrupted: (scope: string[]) => void;
|
|
58
|
+
holdCell: (scope: string[]) => void;
|
|
59
|
+
releaseCell: (scope: string[]) => void;
|
|
60
|
+
update: (id: string, generation: number, state: TerminalState, message: string) => void;
|
|
61
|
+
cellStates: Record<string, TerminalState>;
|
|
62
|
+
pastes: Record<string, PendingPaste>;
|
|
63
|
+
paste: (id: string, text: string) => void;
|
|
64
|
+
pasteDelivered: (id: string, nonce: number) => void;
|
|
65
|
+
};
|
|
66
|
+
export type TerminalManager = ReturnType<typeof useTerminalSessions>;
|
|
67
|
+
type Manager = TerminalManager;
|
|
68
|
+
export declare function useReattach(current: Session | undefined, enabled: boolean, attach: (session: Session) => void): (id: string) => void;
|
|
69
|
+
export type SessionEndpoint = {
|
|
70
|
+
path: string;
|
|
71
|
+
label: string;
|
|
72
|
+
};
|
|
73
|
+
export declare function TerminalSession({ session, active, expanded, theme, update, pending, onPasted, endpoint }: {
|
|
74
|
+
session: Session;
|
|
75
|
+
active: boolean;
|
|
76
|
+
expanded: boolean;
|
|
77
|
+
theme: Theme;
|
|
78
|
+
update: Manager["update"];
|
|
79
|
+
pending?: PendingPaste;
|
|
80
|
+
onPasted?: Manager["pasteDelivered"];
|
|
81
|
+
endpoint?: SessionEndpoint;
|
|
82
|
+
}): import("react").JSX.Element;
|
|
83
|
+
export declare function TerminalWorkspace({ scope, revision, inventory, manager, theme, autoAttach, visible, controlsHost, onExpandedChange, inPanel, onOpenInPanel, operation, onLifecycleAction }: {
|
|
84
|
+
scope: string[] | null;
|
|
85
|
+
revision: number;
|
|
86
|
+
inventory: InventoryResource;
|
|
87
|
+
manager: Manager;
|
|
88
|
+
theme: Theme;
|
|
89
|
+
autoAttach?: boolean;
|
|
90
|
+
visible?: boolean;
|
|
91
|
+
controlsHost: HTMLDivElement | null;
|
|
92
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
93
|
+
inPanel?: boolean;
|
|
94
|
+
onOpenInPanel?: (scope: string[]) => void;
|
|
95
|
+
operation?: LifecycleFeedback;
|
|
96
|
+
onLifecycleAction?: (scope: string[], action: LifecycleAction, state?: string) => void;
|
|
97
|
+
}): import("react").JSX.Element;
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type Marker = { startedAt: string; bytes: number };
|
|
2
|
+
export type Markers = Record<string, Marker>;
|
|
3
|
+
export type Reading = { startedAt: string; bytesOut: number; idleMs: number; unavailable?: undefined } | { unavailable: string };
|
|
4
|
+
export type Readings = Record<string, Reading>;
|
|
5
|
+
export type Unread = { unreadBytes: number; marked: boolean };
|
|
6
|
+
export const unreadQuietMs: number;
|
|
7
|
+
export const markersKey: string;
|
|
8
|
+
export function parseMarkers(raw: string | null | undefined): Markers;
|
|
9
|
+
export function parseActivity(body: unknown): Readings;
|
|
10
|
+
export function nextMarker(stored: Marker | undefined, reading: Reading | undefined, isBeingRead: boolean): Marker | undefined;
|
|
11
|
+
export function unreadBytes(stored: Marker | undefined, reading: Reading | undefined): number;
|
|
12
|
+
export function isMarked(unread: number, idleMs: number, quietMs?: number): boolean;
|
|
13
|
+
export function pruneMarkers(markers: Markers, cellKeys: Iterable<string>): Markers;
|
|
14
|
+
export function applyReadings(markers: Markers, readings: Readings, beingRead: Set<string>): { markers: Markers; changed: string[] };
|
|
15
|
+
export function readingCells(reading: (string | null | undefined)[]): string[];
|
|
16
|
+
export function leftCells(previous: Iterable<string>, current: Iterable<string>): string[];
|
|
17
|
+
export function unreadState(markers: Markers, readings: Readings, beingRead: Set<string>, quietMs?: number): Record<string, Unread>;
|
|
18
|
+
export function unreadLabel(bytes: number, showBytes: boolean): string;
|
|
19
|
+
export function unreadAmount(bytes: number): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Unread } from "./unread.mjs";
|
|
2
|
+
export type { Unread } from "./unread.mjs";
|
|
3
|
+
export declare function useUnread(scopes: string[][], reading: (string | null)[], enabled: boolean, inventoryKeys: string[] | null, pollMs: number, quietMs: number): Record<string, Unread>;
|
|
4
|
+
export declare function useTabVisible(): boolean;
|
package/dist/views.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type View = "workbench" | "manage" | "settings";
|
|
2
|
+
export function viewOf(route: { view: string; scope: string[] }): View;
|
|
3
|
+
export function manageAttention(input: {
|
|
4
|
+
daemonError?: { code: string; message?: string };
|
|
5
|
+
versionMismatch?: boolean;
|
|
6
|
+
reports?: { id: string; findings: number }[];
|
|
7
|
+
seenId?: string | null;
|
|
8
|
+
}): string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { InventoryResource } from "./inventory";
|
|
2
|
+
import type { CellFilter } from "./cell-filter";
|
|
3
|
+
import type { CellListStyle } from "./settings";
|
|
4
|
+
import { type TerminalState } from "./terminal";
|
|
5
|
+
import type { Unread } from "./use-unread";
|
|
6
|
+
export declare function WorkbenchGrid({ inventory, filter, terminalStates, listStyle, showSearch, showGroupBy, unread, showUnreadBytes, screenSeconds }: {
|
|
7
|
+
inventory: InventoryResource;
|
|
8
|
+
filter: CellFilter;
|
|
9
|
+
terminalStates: Record<string, TerminalState>;
|
|
10
|
+
listStyle?: CellListStyle;
|
|
11
|
+
showSearch?: boolean;
|
|
12
|
+
showGroupBy?: boolean;
|
|
13
|
+
unread?: Record<string, Unread>;
|
|
14
|
+
showUnreadBytes?: boolean;
|
|
15
|
+
screenSeconds?: number;
|
|
16
|
+
}): import("react").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kukeon/console",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.10.0-edge.g21af9f59",
|
|
4
|
+
"description": "The kukeon web console as a React component: <KukeonConsole transport auth router />.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/eminwux/kukeon.git",
|
|
9
|
+
"directory": "web/packages/console"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"@kukeon/source": "./src/index.ts",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./style.css": {
|
|
19
|
+
"@kukeon/source": "./src/style.css",
|
|
20
|
+
"default": "./dist/style.css"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"sideEffects": [
|
|
27
|
+
"*.css"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "vite build && tsc -p tsconfig.build.json && node copy-declarations.mjs",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"test:unit": "node --test tests/tokens-contrast.test.mjs tests/lifecycle-policy.test.mjs tests/cgroup-format.test.mjs tests/network-format.test.mjs tests/image-format.test.mjs tests/log-buffer.test.mjs tests/terminal-palette.test.mjs src/relationships.test.mjs src/creation-schema.test.mjs src/config-form.test.mjs src/catalog-url.test.mjs src/connectors.test.mjs src/teams.test.mjs src/team-form.test.mjs src/schedule-format.test.mjs src/views.test.mjs src/cells.test.mjs src/onboarding.test.mjs src/unread.test.mjs src/panel-cells.test.mjs src/settings-values.test.mjs src/bulk.test.mjs src/manifest-diff.test.mjs"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@kukeon/api-client": "0.10.0-edge.g21af9f59",
|
|
39
|
+
"@kukeon/ui": "0.10.0-edge.g21af9f59",
|
|
40
|
+
"@xterm/addon-fit": "^0.11.0",
|
|
41
|
+
"@xterm/xterm": "^6.0.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": "^19.0.0",
|
|
45
|
+
"react-dom": "^19.0.0"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/README.md
DELETED