@milabench/bujang 0.1.17 → 0.1.19
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 +31 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4520 -3903
- 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 +44 -0
- package/dist/views/JobsTable.d.ts +1 -0
- package/dist/views/ProjectsView.d.ts +2 -0
- package/dist/views/dataCharts.d.ts +26 -0
- package/package.json +1 -1
- package/src/api.ts +54 -2
- package/src/index.ts +1 -0
- package/src/paths.ts +7 -1
- package/src/routes.tsx +3 -1
- package/src/types.ts +43 -0
- package/src/views/JobDataOverview.tsx +7 -2
- package/src/views/JobLogs.tsx +63 -47
- package/src/views/JobSubmit.tsx +22 -0
- package/src/views/JobsTable.tsx +37 -15
- package/src/views/JobsView.tsx +23 -0
- package/src/views/OverviewPanels.tsx +37 -3
- package/src/views/PipelineEditor.tsx +69 -2
- package/src/views/PipelinesView.tsx +145 -4
- package/src/views/ProjectsView.tsx +246 -0
- package/src/views/dataCharts.tsx +122 -5
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SlurmJob, SlurmJobSubmitResponse, SlurmJobAccounting, SlurmJobDetail, SlurmClusterInfo, SlurmProfile, SlurmClusterStatus, PersitedJobInfo, SlurmJobStatusResponse, EarlySyncResponse, PipelineTemplatePayload, PipelineRunResponse, PipelineRunSummary, PipelineRunStatus, ScheduledJob, ScheduledJobRun, ScheduledJobTemplateDiff, AgentEvent, AgentSession, SettingsInfo, SettingsUpdateResponse, UpdateCheck, OrganizerGroups, SyncStatus, JobEnvironment, JobArtifacts, JobData, JobDataRole, JobOverviewLayout, OverviewLayout, OverviewScope, SavedOverviewLayout, JobMarks, UpdateResult, SettingsSecrets, SshSettings, SshPlan, SshPlanRequest, SshTestResponse, SshConnections, SshLogin, JobAttachment, JanitorOverview, JanitorRun, JanitorCleanupInfo, JanitorArchiveResult, JanitorStaleResult } from './types';
|
|
1
|
+
import type { SlurmJob, SlurmJobSubmitResponse, SlurmJobAccounting, SlurmJobDetail, SlurmClusterInfo, SlurmProfile, SlurmClusterStatus, PersitedJobInfo, SlurmJobStatusResponse, EarlySyncResponse, PipelineTemplatePayload, PipelineRunResponse, PipelineRunSummary, PipelineRunStatus, ScheduledJob, ScheduledJobRun, ScheduledJobTemplateDiff, AgentEvent, AgentSession, SettingsInfo, SettingsUpdateResponse, UpdateCheck, OrganizerGroups, Project, ProjectsInfo, ProjectsSyncReport, SyncStatus, JobEnvironment, JobArtifacts, JobData, JobDataRole, JobOverviewLayout, OverviewLayout, OverviewScope, SavedOverviewLayout, JobMarks, UpdateResult, SettingsSecrets, SshSettings, SshPlan, SshPlanRequest, SshTestResponse, SshConnections, SshLogin, JobAttachment, JanitorOverview, JanitorRun, JanitorCleanupInfo, JanitorArchiveResult, JanitorStaleResult } from './types';
|
|
2
2
|
export declare const DEFAULT_API_BASE = "/api/slurm";
|
|
3
3
|
/**
|
|
4
4
|
* What bujang needs from an axios instance. Typed structurally so the host's instance fits even
|
|
@@ -39,6 +39,12 @@ export declare const cancelSlurmJob: (jobId: string) => Promise<{
|
|
|
39
39
|
message?: string;
|
|
40
40
|
error?: string;
|
|
41
41
|
}>;
|
|
42
|
+
/** scontrol release of a held job (a pipeline step submitted with --hold) */
|
|
43
|
+
export declare const releaseSlurmJob: (jobId: string) => Promise<{
|
|
44
|
+
success: boolean;
|
|
45
|
+
message?: string;
|
|
46
|
+
error?: string;
|
|
47
|
+
}>;
|
|
42
48
|
export declare const getSlurmJobInfo: (jrJobId: string, jobId?: string) => Promise<SlurmJobDetail>;
|
|
43
49
|
export declare const getSlurmJobStdout: (jrJobId: string) => Promise<string>;
|
|
44
50
|
export declare const getSlurmJobStderr: (jrJobId: string) => Promise<string>;
|
|
@@ -101,6 +107,8 @@ export declare const submitSlurmJob: (request: {
|
|
|
101
107
|
dependency?: [string, string][];
|
|
102
108
|
/** Files for the job: <job folder>/input/<name> on the cluster before it starts ($BUJANG_INPUT_DIR). */
|
|
103
109
|
files?: JobAttachment[];
|
|
110
|
+
/** A registered project: the job folder is linked into its repository (see getProjects). */
|
|
111
|
+
project?: string;
|
|
104
112
|
}) => Promise<SlurmJobSubmitResponse>;
|
|
105
113
|
export declare const getSlurmJobCluster: (jrJobId: string) => Promise<{
|
|
106
114
|
cluster: string;
|
|
@@ -187,6 +195,24 @@ export declare const getSyncStatus: () => Promise<SyncStatus>;
|
|
|
187
195
|
export declare const syncNow: () => Promise<SyncStatus>;
|
|
188
196
|
/** The organizer folders (clusters/, experiments/, ...): their values and the job ids under each. */
|
|
189
197
|
export declare const getOrganizers: () => Promise<OrganizerGroups[]>;
|
|
198
|
+
/** The registered projects: code repositories the jobs tagged for them are linked into. */
|
|
199
|
+
export declare const getProjects: () => Promise<ProjectsInfo>;
|
|
200
|
+
/** Register a repository (or change its folder): makes <path>/<folder> and links the jobs already tagged. */
|
|
201
|
+
export declare const registerProject: (body: {
|
|
202
|
+
name: string;
|
|
203
|
+
path: string;
|
|
204
|
+
folder?: string;
|
|
205
|
+
}) => Promise<{
|
|
206
|
+
project: Project;
|
|
207
|
+
sync?: ProjectsSyncReport[string];
|
|
208
|
+
}>;
|
|
209
|
+
/** Forget a project: its links leave the repository, the other files of the folder stay. */
|
|
210
|
+
export declare const removeProject: (name: string) => Promise<{
|
|
211
|
+
name: string;
|
|
212
|
+
removed: string[];
|
|
213
|
+
}>;
|
|
214
|
+
/** Relink the jobs into the repositories now (one project, or all). */
|
|
215
|
+
export declare const syncProjects: (name?: string) => Promise<ProjectsSyncReport>;
|
|
190
216
|
/** The running version against PyPI; the server asks PyPI once a day, `force` asks now. */
|
|
191
217
|
export declare const getUpdateCheck: (force?: boolean) => Promise<UpdateCheck>;
|
|
192
218
|
/** Upgrade bujang on the server, which then restarts (403 when read-only, 409 for a source checkout). */
|
|
@@ -222,7 +248,10 @@ export declare const savePipelineToFile: (pipelineData: PipelineTemplatePayload)
|
|
|
222
248
|
success?: boolean;
|
|
223
249
|
error?: string;
|
|
224
250
|
}>;
|
|
225
|
-
export declare const runPipelineTemplate: (name: string
|
|
251
|
+
export declare const runPipelineTemplate: (name: string, options?: {
|
|
252
|
+
experiment?: string;
|
|
253
|
+
project?: string;
|
|
254
|
+
}) => Promise<PipelineRunResponse>;
|
|
226
255
|
export declare const getPipelineRuns: () => Promise<PipelineRunSummary[]>;
|
|
227
256
|
export declare const getPipelineRunStatus: (runId: string) => Promise<PipelineRunStatus>;
|
|
228
257
|
export declare const loadPipelineFromFile: (name: string) => Promise<Record<string, unknown>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { PipelinesView, PipelineDetailsView } from './views/PipelinesView';
|
|
|
6
6
|
export { PipelineGraph, pipelineMermaid, pipelineSteps } from './views/PipelineGraph';
|
|
7
7
|
export type { GraphStep } from './views/PipelineGraph';
|
|
8
8
|
export { ScheduledJobsView } from './views/ScheduledJobsView';
|
|
9
|
+
export { ProjectsView } from './views/ProjectsView';
|
|
9
10
|
export { AgentActivityView, AgentBadge, McpHelp } from './views/AgentActivityView';
|
|
10
11
|
export { SettingsView } from './views/SettingsView';
|
|
11
12
|
export { JanitorView } from './views/JanitorView';
|