@milabench/bujang 0.1.9 → 0.1.11
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/api.d.ts +2 -0
- package/dist/components/SshConnectDialog.d.ts +8 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4117 -3648
- package/dist/index.js.map +1 -1
- package/dist/paths.d.ts +3 -1
- package/dist/routes.d.ts +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/views/SettingsView.d.ts +11 -0
- package/dist/views/SetupView.d.ts +8 -0
- package/package.json +1 -1
- package/src/api.ts +2 -0
- package/src/components/SshConnectDialog.tsx +84 -26
- package/src/index.ts +1 -0
- package/src/paths.ts +7 -1
- package/src/routes.tsx +3 -1
- package/src/types.ts +13 -0
- package/src/views/JanitorView.tsx +1 -1
- package/src/views/JobsView.tsx +1 -1
- package/src/views/SettingsView.tsx +4 -4
- package/src/views/SetupView.tsx +584 -0
package/dist/api.d.ts
CHANGED
|
@@ -80,6 +80,8 @@ export declare const saveSlurmProfile: (request: {
|
|
|
80
80
|
export declare const submitSlurmJob: (request: {
|
|
81
81
|
script: string;
|
|
82
82
|
job_name?: string;
|
|
83
|
+
/** label template ("train lr={LR}"), else the script's JR_JOB_LABEL */
|
|
84
|
+
label?: string;
|
|
83
85
|
cluster?: string;
|
|
84
86
|
sbatch_args?: string[];
|
|
85
87
|
script_args?: Record<string, string>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SshConnection } from '../types';
|
|
3
3
|
export declare const SSH_CONNECTIONS_KEY: string[];
|
|
4
|
-
/**
|
|
4
|
+
/** Connected: an open shared connection, or a host without one that the last sync could reach */
|
|
5
|
+
export declare const isConnected: (c: SshConnection) => boolean;
|
|
6
|
+
/** A cluster with unfinished jobs bujang cannot reach: its sync is paused until a login */
|
|
7
|
+
export declare const needsLogin: (c: SshConnection) => boolean;
|
|
8
|
+
/** The state of a host's connection as a badge */
|
|
5
9
|
export declare const MasterBadge: React.FC<{
|
|
6
|
-
|
|
10
|
+
connection: SshConnection;
|
|
7
11
|
}>;
|
|
8
12
|
export interface SshConnectDialogProps {
|
|
9
13
|
open: boolean;
|
|
@@ -12,6 +16,8 @@ export interface SshConnectDialogProps {
|
|
|
12
16
|
cluster?: string | null;
|
|
13
17
|
/** The login to `cluster` succeeded: the dialog closes itself */
|
|
14
18
|
onConnected?: () => void;
|
|
19
|
+
/** Why the dialog opened on `cluster`: a submit waits for it, or its jobs run without a sync */
|
|
20
|
+
purpose?: 'submit' | 'reconnect';
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Open the shared ssh connection (ControlMaster) of the clusters: the hosts and their state, a
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { ScheduledJobsView } from './views/ScheduledJobsView';
|
|
|
9
9
|
export { AgentActivityView, AgentBadge, McpHelp } from './views/AgentActivityView';
|
|
10
10
|
export { SettingsView } from './views/SettingsView';
|
|
11
11
|
export { JanitorView } from './views/JanitorView';
|
|
12
|
+
export { SetupView } from './views/SetupView';
|
|
12
13
|
export { LinkableCard, useHashScroll } from './components/LinkableCard';
|
|
13
14
|
export { JobSubmissionForm } from './views/JobSubmit';
|
|
14
15
|
export type { JobSubmissionInitialData } from './views/JobSubmit';
|