@openagt/dashboard 0.34.0 → 0.36.0
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/built-in.d.ts.map +1 -1
- package/dist/built-in.js +1 -1
- package/dist/built-in.js.map +1 -1
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +3 -0
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard/copy-logins.js +5 -5
- package/dist/dashboard/copy-logins.js.map +1 -1
- package/dist/dashboard/git-hosts.d.ts +38 -0
- package/dist/dashboard/git-hosts.d.ts.map +1 -0
- package/dist/dashboard/git-hosts.js +53 -0
- package/dist/dashboard/git-hosts.js.map +1 -0
- package/dist/dashboard/machine-logins.d.ts +2 -2
- package/dist/dashboard/machine-logins.js +2 -2
- package/dist/dashboard/person.d.ts +10 -8
- package/dist/dashboard/person.d.ts.map +1 -1
- package/dist/dashboard/person.js +28 -13
- package/dist/dashboard/person.js.map +1 -1
- package/dist/dashboard/relay-endpoints.d.ts +4 -3
- package/dist/dashboard/relay-endpoints.d.ts.map +1 -1
- package/dist/dashboard/relay-endpoints.js +13 -5
- package/dist/dashboard/relay-endpoints.js.map +1 -1
- package/dist/dashboard/remote-run.d.ts +18 -4
- package/dist/dashboard/remote-run.d.ts.map +1 -1
- package/dist/dashboard/remote-run.js +47 -12
- package/dist/dashboard/remote-run.js.map +1 -1
- package/dist/dashboard-bundle/assets/main-COZtHuZ-.css +2 -0
- package/dist/dashboard-bundle/assets/main-DDfoDyfa.js +148 -0
- package/dist/dashboard-bundle/assets/module-BXxdqTpP.js +14 -0
- package/dist/dashboard-bundle/host/module.js +1 -1
- package/dist/dashboard-bundle/index.html +3 -3
- package/dist/dashboard-rpc/accounts.d.ts +82 -0
- package/dist/dashboard-rpc/accounts.d.ts.map +1 -0
- package/dist/dashboard-rpc/accounts.js +224 -0
- package/dist/dashboard-rpc/accounts.js.map +1 -0
- package/dist/dashboard-rpc/index.d.ts +3 -1
- package/dist/dashboard-rpc/index.d.ts.map +1 -1
- package/dist/dashboard-rpc/index.js +6 -2
- package/dist/dashboard-rpc/index.js.map +1 -1
- package/dist/dashboard-rpc/logins.d.ts +98 -0
- package/dist/dashboard-rpc/logins.d.ts.map +1 -0
- package/dist/dashboard-rpc/logins.js +203 -0
- package/dist/dashboard-rpc/logins.js.map +1 -0
- package/dist/dashboard-rpc/machines.d.ts +44 -2
- package/dist/dashboard-rpc/machines.d.ts.map +1 -1
- package/dist/dashboard-rpc/machines.js +55 -8
- package/dist/dashboard-rpc/machines.js.map +1 -1
- package/dist/dashboard-rpc/modules.d.ts.map +1 -1
- package/dist/dashboard-rpc/modules.js +4 -1
- package/dist/dashboard-rpc/modules.js.map +1 -1
- package/dist/dashboard-rpc/projects.js +1 -1
- package/dist/dashboard-rpc/projects.js.map +1 -1
- package/dist/local-bin.d.ts +8 -0
- package/dist/local-bin.d.ts.map +1 -0
- package/dist/local-bin.js +16 -0
- package/dist/local-bin.js.map +1 -0
- package/dist/module-types/dashboard/components/Waiting.d.ts +10 -0
- package/dist/module-types/dashboard/lib/route.d.ts +2 -0
- package/dist/module-types/dashboard/lib/settings-crumb.d.ts +15 -0
- package/dist/module-types/dashboard/lib/use-modules.d.ts +8 -0
- package/dist/module-types/dashboard/lib/use-narrow.d.ts +3 -0
- package/dist/module-types/dashboard/module/index.d.ts +50 -10
- package/dist/module-types/src/dashboard/git-hosts.d.ts +37 -0
- package/dist/module-types/src/dashboard/machine-logins.d.ts +2 -2
- package/dist/module-types/src/dashboard/person.d.ts +10 -8
- package/dist/module-types/src/dashboard/remote-run.d.ts +18 -4
- package/dist/module-types/src/dashboard-rpc/accounts.d.ts +81 -0
- package/dist/module-types/src/dashboard-rpc/index.d.ts +3 -1
- package/dist/module-types/src/dashboard-rpc/logins.d.ts +97 -0
- package/dist/module-types/src/dashboard-rpc/machines.d.ts +44 -2
- package/dist/module-types/src/project-hooks.d.ts +5 -0
- package/dist/module-types/src/registry.d.ts +19 -2
- package/dist/project-hooks.d.ts +5 -0
- package/dist/project-hooks.d.ts.map +1 -1
- package/dist/project-hooks.js +4 -1
- package/dist/project-hooks.js.map +1 -1
- package/dist/quota-boundary.d.ts.map +1 -1
- package/dist/quota-boundary.js +7 -3
- package/dist/quota-boundary.js.map +1 -1
- package/dist/registry.d.ts +19 -2
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +42 -4
- package/dist/registry.js.map +1 -1
- package/package.json +24 -25
- package/dist/dashboard-bundle/assets/main-Bmnmb8kW.js +0 -144
- package/dist/dashboard-bundle/assets/main-vGm5VAD9.css +0 -2
- package/dist/dashboard-bundle/assets/module-Bl9E9F3x.js +0 -14
- package/dist/module-types/dashboard/components/AddMachineDialog.d.ts +0 -4
- package/dist/module-types/dashboard/components/InviteDialog.d.ts +0 -53
- package/dist/module-types/dashboard/lib/machines.d.ts +0 -19
- package/dist/module-types/dashboard/lib/remote-target.d.ts +0 -6
- package/dist/module-types/dashboard/rpc/machines.d.ts +0 -17
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
/** A code a new device gets in with, as a door gives it: good once, until `expires`. */
|
|
3
|
-
export interface InviteCode {
|
|
4
|
-
url: string;
|
|
5
|
-
/** The same link by the computer's number, when `url` goes by its name. */
|
|
6
|
-
numberUrl?: string;
|
|
7
|
-
expires: string;
|
|
8
|
-
}
|
|
9
|
-
export type InviteAnswer = {
|
|
10
|
-
ok: true;
|
|
11
|
-
value: InviteCode;
|
|
12
|
-
} | {
|
|
13
|
-
ok: false;
|
|
14
|
-
error: string;
|
|
15
|
-
};
|
|
16
|
-
/** How the dialog learns and names the computer's owner, for a code made for someone else. */
|
|
17
|
-
export interface InvitePersons {
|
|
18
|
-
/** The owner's GitHub account, once named. */
|
|
19
|
-
owner: string | undefined;
|
|
20
|
-
/** The GitHub account this computer is logged in to: who the owner would be. */
|
|
21
|
-
whoAmI: () => Promise<{
|
|
22
|
-
ok: true;
|
|
23
|
-
account: string;
|
|
24
|
-
} | {
|
|
25
|
-
ok: false;
|
|
26
|
-
error: string;
|
|
27
|
-
}>;
|
|
28
|
-
/** Name the owner, once. */
|
|
29
|
-
nameOwner: (account: string) => Promise<{
|
|
30
|
-
ok: true;
|
|
31
|
-
} | {
|
|
32
|
-
ok: false;
|
|
33
|
-
error: string;
|
|
34
|
-
}>;
|
|
35
|
-
}
|
|
36
|
-
export declare function InviteDialog({ title, ask, persons, scan, note, openHere, joined, onCode, onClose, }: {
|
|
37
|
-
title: string;
|
|
38
|
-
/** Asks for a new code, for `person` when it is for someone else: as the dialog opens (or once it knows who it is for), and on each "New code". */
|
|
39
|
-
ask: (person?: string) => Promise<InviteAnswer>;
|
|
40
|
-
/** Given, the dialog first asks who the code is for. */
|
|
41
|
-
persons?: InvitePersons;
|
|
42
|
-
/** What the person does with the code: "Scan it with the phone's camera…". */
|
|
43
|
-
scan: string;
|
|
44
|
-
/** A line under the link, for what else the link is good for. */
|
|
45
|
-
note?: ReactNode;
|
|
46
|
-
/** A link that may be opened in this browser: it lets this browser in, and spends the code. */
|
|
47
|
-
openHere?: boolean;
|
|
48
|
-
/** The name of a device that got in with the code on the page. Forgotten by the page at each `onCode`. */
|
|
49
|
-
joined?: string | undefined;
|
|
50
|
-
/** Told each time a code comes on the page, and with `undefined` as a new one is asked for and as the dialog closes. */
|
|
51
|
-
onCode?: (code: InviteCode | undefined) => void;
|
|
52
|
-
onClose: () => void;
|
|
53
|
-
}): import("react").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type AddMachineResult, type Machine, type RemoveMachineResult } from '../rpc/machines.js';
|
|
2
|
-
export type { Machine };
|
|
3
|
-
/** Read the list from the daemon again. A read that fails keeps what is shown. */
|
|
4
|
-
export declare function refreshMachines(): Promise<void>;
|
|
5
|
-
/** Save the machine a pasted link names; the list is read again once the daemon has it. */
|
|
6
|
-
export declare function addMachine(pasted: string, label?: string): Promise<AddMachineResult>;
|
|
7
|
-
/** Save a computer that keeps a line open to a saved server, reached through it; the list is read again once the daemon has it. */
|
|
8
|
-
export declare function addComputerThrough(machineId: string, computerId: string): Promise<AddMachineResult>;
|
|
9
|
-
/** Say the person was told their logins are copied to another person's computer; the list is read again once the daemon has it. */
|
|
10
|
-
export declare function tellMachine(id: string): Promise<void>;
|
|
11
|
-
/**
|
|
12
|
-
* Take a saved machine off the list, and answer whether the daemon did, with its reason when it
|
|
13
|
-
* did not. The list is read again either way, so a machine the daemon did not remove is still shown.
|
|
14
|
-
* A removed machine is no longer where the next run starts (#1072): that run would point at
|
|
15
|
-
* something that is not in the list.
|
|
16
|
-
*/
|
|
17
|
-
export declare function removeMachine(id: string): Promise<RemoveMachineResult>;
|
|
18
|
-
/** The saved machines as reactive state: empty until the daemon has answered. */
|
|
19
|
-
export declare function useMachines(): Machine[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Pick a saved machine (by id) as the run's target, or null to go back to this machine. */
|
|
2
|
-
export declare function selectMachine(id: string | null): void;
|
|
3
|
-
/** The picked machine's id, read at submit time to say where the run starts. */
|
|
4
|
-
export declare function getSelectedMachineId(): string | null;
|
|
5
|
-
/** The picked machine's id as reactive state; null on the server and until one is picked. */
|
|
6
|
-
export declare function useSelectedMachineId(): string | null;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type * as impl from '../../src/dashboard-rpc/machines.js';
|
|
2
|
-
export type * from '../../src/dashboard-rpc/machines.js';
|
|
3
|
-
export declare const onMachines: () => Promise<impl.Machine[]>;
|
|
4
|
-
export declare const sendAddMachine: (pasted: string, label?: string | undefined, owner?: string | undefined) => Promise<impl.AddMachineResult>;
|
|
5
|
-
export declare const sendRemoveMachine: (id: string) => Promise<impl.RemoveMachineResult>;
|
|
6
|
-
export declare const onMachinesReachable: () => Promise<Record<string, boolean>>;
|
|
7
|
-
export declare const onMachineVersions: () => Promise<impl.MachineVersions>;
|
|
8
|
-
export declare const sendProjectToMachine: (projectId: string, machineId: string) => Promise<impl.ProjectOnMachine>;
|
|
9
|
-
export declare const onProjectOnMachine: (projectId: string, machineId: string) => Promise<impl.ProjectOnMachine>;
|
|
10
|
-
export declare const onComputersThrough: (machineId: string) => Promise<impl.ComputersThrough>;
|
|
11
|
-
export declare const sendAddComputerThrough: (machineId: string, computerId: string) => Promise<impl.AddMachineResult>;
|
|
12
|
-
export declare const onMachinePerson: (machineId: string) => Promise<impl.MachinePerson>;
|
|
13
|
-
export declare const sendRemoveMachineDevice: (machineId: string, deviceId: string) => Promise<impl.MachinePerson>;
|
|
14
|
-
export declare const sendMachineTold: (machineId: string) => Promise<{
|
|
15
|
-
ok: boolean;
|
|
16
|
-
}>;
|
|
17
|
-
export declare const onMachineLogins: (machineId: string) => Promise<impl.MachineLoginsResult>;
|