@elaraai/e3-api-server 0.0.2-beta.12 → 0.0.2-beta.13
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/README.md +144 -29
- package/dist/src/async-operation-state.d.ts +63 -0
- package/dist/src/async-operation-state.d.ts.map +1 -0
- package/dist/src/async-operation-state.js +193 -0
- package/dist/src/async-operation-state.js.map +1 -0
- package/dist/src/auth/device.d.ts +26 -0
- package/dist/src/auth/device.d.ts.map +1 -0
- package/dist/src/auth/device.js +227 -0
- package/dist/src/auth/device.js.map +1 -0
- package/dist/src/auth/discovery.d.ts +23 -0
- package/dist/src/auth/discovery.d.ts.map +1 -0
- package/dist/src/auth/discovery.js +40 -0
- package/dist/src/auth/discovery.js.map +1 -0
- package/dist/src/auth/index.d.ts +56 -0
- package/dist/src/auth/index.d.ts.map +1 -0
- package/dist/src/auth/index.js +69 -0
- package/dist/src/auth/index.js.map +1 -0
- package/dist/src/auth/keys.d.ts +55 -0
- package/dist/src/auth/keys.d.ts.map +1 -0
- package/dist/src/auth/keys.js +78 -0
- package/dist/src/auth/keys.js.map +1 -0
- package/dist/src/beast2.d.ts +15 -3
- package/dist/src/beast2.d.ts.map +1 -1
- package/dist/src/beast2.js +30 -4
- package/dist/src/beast2.js.map +1 -1
- package/dist/src/cli.js +58 -6
- package/dist/src/cli.js.map +1 -1
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +5 -2
- package/dist/src/errors.js.map +1 -1
- package/dist/src/execution-state.d.ts +54 -0
- package/dist/src/execution-state.d.ts.map +1 -0
- package/dist/src/execution-state.js +150 -0
- package/dist/src/execution-state.js.map +1 -0
- package/dist/src/handlers/dataflow.d.ts +49 -0
- package/dist/src/handlers/dataflow.d.ts.map +1 -0
- package/dist/src/handlers/dataflow.js +371 -0
- package/dist/src/handlers/dataflow.js.map +1 -0
- package/dist/src/handlers/datasets.d.ts +23 -0
- package/dist/src/handlers/datasets.d.ts.map +1 -0
- package/dist/src/handlers/datasets.js +113 -0
- package/dist/src/handlers/datasets.js.map +1 -0
- package/dist/src/handlers/index.d.ts +12 -0
- package/dist/src/handlers/index.d.ts.map +1 -0
- package/dist/src/handlers/index.js +12 -0
- package/dist/src/handlers/index.js.map +1 -0
- package/dist/src/handlers/packages.d.ts +26 -0
- package/dist/src/handlers/packages.d.ts.map +1 -0
- package/dist/src/handlers/packages.js +101 -0
- package/dist/src/handlers/packages.js.map +1 -0
- package/dist/src/handlers/repos.d.ts +11 -0
- package/dist/src/handlers/repos.d.ts.map +1 -0
- package/dist/src/handlers/repos.js +52 -0
- package/dist/src/handlers/repos.js.map +1 -0
- package/dist/src/handlers/repository.d.ts +35 -0
- package/dist/src/handlers/repository.d.ts.map +1 -0
- package/dist/src/handlers/repository.js +142 -0
- package/dist/src/handlers/repository.js.map +1 -0
- package/dist/src/handlers/tasks.d.ts +18 -0
- package/dist/src/handlers/tasks.d.ts.map +1 -0
- package/dist/src/handlers/tasks.js +134 -0
- package/dist/src/handlers/tasks.js.map +1 -0
- package/dist/src/handlers/workspaces.d.ts +34 -0
- package/dist/src/handlers/workspaces.d.ts.map +1 -0
- package/dist/src/handlers/workspaces.js +225 -0
- package/dist/src/handlers/workspaces.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/middleware/auth.d.ts +51 -0
- package/dist/src/middleware/auth.d.ts.map +1 -0
- package/dist/src/middleware/auth.js +158 -0
- package/dist/src/middleware/auth.js.map +1 -0
- package/dist/src/routes/datasets.d.ts +2 -1
- package/dist/src/routes/datasets.d.ts.map +1 -1
- package/dist/src/routes/datasets.js +50 -85
- package/dist/src/routes/datasets.js.map +1 -1
- package/dist/src/routes/executions.d.ts +2 -1
- package/dist/src/routes/executions.d.ts.map +1 -1
- package/dist/src/routes/executions.js +60 -286
- package/dist/src/routes/executions.js.map +1 -1
- package/dist/src/routes/index.d.ts +11 -0
- package/dist/src/routes/index.d.ts.map +1 -0
- package/dist/src/routes/index.js +11 -0
- package/dist/src/routes/index.js.map +1 -0
- package/dist/src/routes/packages.d.ts +2 -1
- package/dist/src/routes/packages.d.ts.map +1 -1
- package/dist/src/routes/packages.js +42 -105
- package/dist/src/routes/packages.js.map +1 -1
- package/dist/src/routes/repository.d.ts +2 -1
- package/dist/src/routes/repository.d.ts.map +1 -1
- package/dist/src/routes/repository.js +19 -54
- package/dist/src/routes/repository.js.map +1 -1
- package/dist/src/routes/tasks.d.ts +2 -1
- package/dist/src/routes/tasks.d.ts.map +1 -1
- package/dist/src/routes/tasks.js +22 -46
- package/dist/src/routes/tasks.js.map +1 -1
- package/dist/src/routes/workspaces.d.ts +2 -1
- package/dist/src/routes/workspaces.d.ts.map +1 -1
- package/dist/src/routes/workspaces.js +45 -116
- package/dist/src/routes/workspaces.js.map +1 -1
- package/dist/src/server.d.ts +24 -3
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +178 -19
- package/dist/src/server.js.map +1 -1
- package/dist/src/types.d.ts +486 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +209 -2
- package/dist/src/types.js.map +1 -1
- package/package.json +15 -3
|
@@ -3,95 +3,60 @@
|
|
|
3
3
|
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Hono } from 'hono';
|
|
6
|
-
import { NullType, ArrayType, StringType, decodeBeast2 } from '@elaraai/east';
|
|
7
6
|
import { urlPathToTreePath } from '@elaraai/e3-types';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { errorToVariant } from '../errors.js';
|
|
11
|
-
import { extractWildcardPath } from '../utils.js';
|
|
12
|
-
export function createDatasetRoutes(repoPath) {
|
|
7
|
+
import { listDatasets, listDatasetsRecursive, getDataset, setDataset, } from '../handlers/datasets.js';
|
|
8
|
+
export function createDatasetRoutes(storage, getRepoPath) {
|
|
13
9
|
const app = new Hono();
|
|
14
|
-
// GET /
|
|
15
|
-
app.get('/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return sendError(c, ArrayType(StringType), errorToVariant(err));
|
|
26
|
-
}
|
|
10
|
+
// GET /api/repos/:repo/workspaces/:ws/datasets - List root fields (or recursive list if ?recursive=true)
|
|
11
|
+
app.get('/', async (c) => {
|
|
12
|
+
const repo = c.req.param('repo');
|
|
13
|
+
const repoPath = getRepoPath(repo);
|
|
14
|
+
const ws = c.req.param('ws');
|
|
15
|
+
// Check if this is a recursive list request
|
|
16
|
+
const recursive = c.req.query('recursive');
|
|
17
|
+
if (recursive === 'true') {
|
|
18
|
+
return listDatasetsRecursive(storage, repoPath, ws, []);
|
|
19
|
+
}
|
|
20
|
+
return listDatasets(storage, repoPath, ws, []);
|
|
27
21
|
});
|
|
28
|
-
// GET /
|
|
29
|
-
app.get('
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
// GET /api/repos/:repo/workspaces/:ws/datasets/* - Get dataset value (or list if ?list=true, or recursive if ?recursive=true)
|
|
23
|
+
app.get('/*', async (c) => {
|
|
24
|
+
const repo = c.req.param('repo');
|
|
25
|
+
const repoPath = getRepoPath(repo);
|
|
26
|
+
const ws = c.req.param('ws');
|
|
27
|
+
// Extract the wildcard path
|
|
28
|
+
const fullPath = c.req.path;
|
|
29
|
+
// Path format: /api/repos/:repo/workspaces/:ws/datasets/*
|
|
30
|
+
// Find the position after /datasets/
|
|
31
|
+
const datasetsPrefix = `/api/repos/${repo}/workspaces/${ws}/datasets/`;
|
|
32
|
+
const pathStr = fullPath.startsWith(datasetsPrefix) ? fullPath.slice(datasetsPrefix.length) : '';
|
|
33
|
+
const treePath = urlPathToTreePath(pathStr);
|
|
34
|
+
// Check if this is a recursive list request
|
|
35
|
+
const recursive = c.req.query('recursive');
|
|
36
|
+
if (recursive === 'true') {
|
|
37
|
+
return listDatasetsRecursive(storage, repoPath, ws, treePath);
|
|
38
|
+
}
|
|
39
|
+
// Check if this is a list request
|
|
40
|
+
const listParam = c.req.query('list');
|
|
41
|
+
if (listParam === 'true') {
|
|
42
|
+
return listDatasets(storage, repoPath, ws, treePath);
|
|
43
|
+
}
|
|
44
|
+
return getDataset(storage, repoPath, ws, treePath);
|
|
43
45
|
});
|
|
44
|
-
//
|
|
45
|
-
app.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return sendError(c, NullType, errorToVariant(new Error('Dataset is unassigned (pending task output)')));
|
|
59
|
-
}
|
|
60
|
-
if (refType === 'null' || !hash) {
|
|
61
|
-
return sendError(c, NullType, errorToVariant(new Error('Dataset is null')));
|
|
62
|
-
}
|
|
63
|
-
// Return raw BEAST2 bytes directly from object store
|
|
64
|
-
const data = await objectRead(repoPath, hash);
|
|
65
|
-
return new Response(data, {
|
|
66
|
-
status: 200,
|
|
67
|
-
headers: { 'Content-Type': 'application/beast2' },
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
catch (err) {
|
|
71
|
-
return sendError(c, NullType, errorToVariant(err));
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
// PUT /set/* - Set dataset value from raw BEAST2 (e3 set <repo> <ws.path>)
|
|
75
|
-
app.put('/set/*', async (c) => {
|
|
76
|
-
try {
|
|
77
|
-
const workspace = c.req.param('ws');
|
|
78
|
-
if (!workspace) {
|
|
79
|
-
return sendError(c, NullType, errorToVariant(new Error('Missing workspace parameter')));
|
|
80
|
-
}
|
|
81
|
-
const pathStr = extractWildcardPath(c.req.path, /^\/api\/workspaces\/[^/]+\/set\//);
|
|
82
|
-
const treePath = urlPathToTreePath(pathStr);
|
|
83
|
-
if (treePath.length === 0) {
|
|
84
|
-
return sendError(c, NullType, errorToVariant(new Error('Path required for set')));
|
|
85
|
-
}
|
|
86
|
-
// Body is raw BEAST2 - decode to get type and value
|
|
87
|
-
const buffer = await c.req.arrayBuffer();
|
|
88
|
-
const { type, value } = decodeBeast2(new Uint8Array(buffer));
|
|
89
|
-
await workspaceSetDataset(repoPath, workspace, treePath, value, type);
|
|
90
|
-
return sendSuccess(c, NullType, null);
|
|
91
|
-
}
|
|
92
|
-
catch (err) {
|
|
93
|
-
return sendError(c, NullType, errorToVariant(err));
|
|
94
|
-
}
|
|
46
|
+
// PUT /api/repos/:repo/workspaces/:ws/datasets/* - Set dataset value
|
|
47
|
+
app.put('/*', async (c) => {
|
|
48
|
+
const repo = c.req.param('repo');
|
|
49
|
+
const repoPath = getRepoPath(repo);
|
|
50
|
+
const ws = c.req.param('ws');
|
|
51
|
+
// Extract the wildcard path
|
|
52
|
+
const fullPath = c.req.path;
|
|
53
|
+
const datasetsPrefix = `/api/repos/${repo}/workspaces/${ws}/datasets/`;
|
|
54
|
+
const pathStr = fullPath.startsWith(datasetsPrefix) ? fullPath.slice(datasetsPrefix.length) : '';
|
|
55
|
+
const treePath = urlPathToTreePath(pathStr);
|
|
56
|
+
// Body is raw BEAST2
|
|
57
|
+
const buffer = await c.req.arrayBuffer();
|
|
58
|
+
const body = new Uint8Array(buffer);
|
|
59
|
+
return setDataset(storage, repoPath, ws, treePath, body);
|
|
95
60
|
});
|
|
96
61
|
return app;
|
|
97
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasets.js","sourceRoot":"","sources":["../../../src/routes/datasets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,
|
|
1
|
+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I,CAAC,CAAC;QACnC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAE,CAAC;QAE9B,4BAA4B;QAC5B,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;QAC5B,MAAM,cAAc,GAAG,cAAc,IAAI,eAAe,EAAE,YAAY,CAAC;QACvE,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACjG,MAAM,QAAQ,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAE5C,qBAAqB;QACrB,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;QACzC,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;QAEpC,OAAO,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Hono } from 'hono';
|
|
6
|
-
|
|
6
|
+
import type { StorageBackend } from '@elaraai/e3-core';
|
|
7
|
+
export declare function createExecutionRoutes(storage: StorageBackend, getRepoPath: (repo: string) => string): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
7
8
|
//# sourceMappingURL=executions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/routes/executions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/routes/executions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAYvD,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,cAAc,EACvB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,8EAmFtC"}
|
|
@@ -3,300 +3,74 @@
|
|
|
3
3
|
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Hono } from 'hono';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { DataflowRequestType, WorkspaceStatusResultType, DataflowGraphType, LogChunkType, DataflowResultType, } from '../types.js';
|
|
11
|
-
/**
|
|
12
|
-
* Convert core DatasetStatusInfo to API type.
|
|
13
|
-
*/
|
|
14
|
-
function convertDatasetStatus(info) {
|
|
15
|
-
let status;
|
|
16
|
-
switch (info.status.type) {
|
|
17
|
-
case 'unset':
|
|
18
|
-
status = variant('unset', null);
|
|
19
|
-
break;
|
|
20
|
-
case 'stale':
|
|
21
|
-
status = variant('stale', null);
|
|
22
|
-
break;
|
|
23
|
-
case 'up-to-date':
|
|
24
|
-
status = variant('up-to-date', null);
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
path: info.path,
|
|
29
|
-
status,
|
|
30
|
-
hash: info.hash ? some(info.hash) : none,
|
|
31
|
-
isTaskOutput: info.isTaskOutput,
|
|
32
|
-
producedBy: info.producedBy ? some(info.producedBy) : none,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Convert core TaskStatusInfo to API type.
|
|
37
|
-
*/
|
|
38
|
-
function convertTaskStatus(info) {
|
|
39
|
-
let status;
|
|
40
|
-
switch (info.status.type) {
|
|
41
|
-
case 'up-to-date':
|
|
42
|
-
status = variant('up-to-date', { cached: info.status.cached });
|
|
43
|
-
break;
|
|
44
|
-
case 'ready':
|
|
45
|
-
status = variant('ready', null);
|
|
46
|
-
break;
|
|
47
|
-
case 'waiting':
|
|
48
|
-
status = variant('waiting', { reason: info.status.reason });
|
|
49
|
-
break;
|
|
50
|
-
case 'in-progress':
|
|
51
|
-
status = variant('in-progress', {
|
|
52
|
-
pid: info.status.pid != null ? some(BigInt(info.status.pid)) : none,
|
|
53
|
-
startedAt: info.status.startedAt ? some(info.status.startedAt) : none,
|
|
54
|
-
});
|
|
55
|
-
break;
|
|
56
|
-
case 'failed':
|
|
57
|
-
status = variant('failed', {
|
|
58
|
-
exitCode: BigInt(info.status.exitCode),
|
|
59
|
-
completedAt: info.status.completedAt ? some(info.status.completedAt) : none,
|
|
60
|
-
});
|
|
61
|
-
break;
|
|
62
|
-
case 'error':
|
|
63
|
-
status = variant('error', {
|
|
64
|
-
message: info.status.message,
|
|
65
|
-
completedAt: info.status.completedAt ? some(info.status.completedAt) : none,
|
|
66
|
-
});
|
|
67
|
-
break;
|
|
68
|
-
case 'stale-running':
|
|
69
|
-
status = variant('stale-running', {
|
|
70
|
-
pid: info.status.pid != null ? some(BigInt(info.status.pid)) : none,
|
|
71
|
-
startedAt: info.status.startedAt ? some(info.status.startedAt) : none,
|
|
72
|
-
});
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
name: info.name,
|
|
77
|
-
hash: info.hash,
|
|
78
|
-
status,
|
|
79
|
-
inputs: info.inputs,
|
|
80
|
-
output: info.output,
|
|
81
|
-
dependsOn: info.dependsOn,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Convert core TaskExecutionResult to API type.
|
|
86
|
-
*/
|
|
87
|
-
function convertTaskExecutionResult(result) {
|
|
88
|
-
let state;
|
|
89
|
-
switch (result.state) {
|
|
90
|
-
case 'success':
|
|
91
|
-
state = variant('success', null);
|
|
92
|
-
break;
|
|
93
|
-
case 'failed':
|
|
94
|
-
state = variant('failed', { exitCode: BigInt(result.exitCode ?? -1) });
|
|
95
|
-
break;
|
|
96
|
-
case 'error':
|
|
97
|
-
state = variant('error', { message: result.error ?? 'Unknown error' });
|
|
98
|
-
break;
|
|
99
|
-
case 'skipped':
|
|
100
|
-
state = variant('skipped', null);
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
name: result.name,
|
|
105
|
-
cached: result.cached,
|
|
106
|
-
state,
|
|
107
|
-
duration: result.duration,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Convert core DataflowResult to API type.
|
|
112
|
-
*/
|
|
113
|
-
function convertDataflowResult(result) {
|
|
114
|
-
return {
|
|
115
|
-
success: result.success,
|
|
116
|
-
executed: BigInt(result.executed),
|
|
117
|
-
cached: BigInt(result.cached),
|
|
118
|
-
failed: BigInt(result.failed),
|
|
119
|
-
skipped: BigInt(result.skipped),
|
|
120
|
-
tasks: result.tasks.map(convertTaskExecutionResult),
|
|
121
|
-
duration: result.duration,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Convert core WorkspaceStatusResult to API type.
|
|
126
|
-
*/
|
|
127
|
-
function convertWorkspaceStatus(result) {
|
|
128
|
-
return {
|
|
129
|
-
workspace: result.workspace,
|
|
130
|
-
lock: result.lock
|
|
131
|
-
? some({
|
|
132
|
-
pid: BigInt(result.lock.pid),
|
|
133
|
-
acquiredAt: result.lock.acquiredAt,
|
|
134
|
-
bootId: result.lock.bootId ? some(result.lock.bootId) : none,
|
|
135
|
-
command: result.lock.command ? some(result.lock.command) : none,
|
|
136
|
-
})
|
|
137
|
-
: none,
|
|
138
|
-
datasets: result.datasets.map(convertDatasetStatus),
|
|
139
|
-
tasks: result.tasks.map(convertTaskStatus),
|
|
140
|
-
summary: {
|
|
141
|
-
datasets: {
|
|
142
|
-
total: BigInt(result.summary.datasets.total),
|
|
143
|
-
unset: BigInt(result.summary.datasets.unset),
|
|
144
|
-
stale: BigInt(result.summary.datasets.stale),
|
|
145
|
-
upToDate: BigInt(result.summary.datasets.upToDate),
|
|
146
|
-
},
|
|
147
|
-
tasks: {
|
|
148
|
-
total: BigInt(result.summary.tasks.total),
|
|
149
|
-
upToDate: BigInt(result.summary.tasks.upToDate),
|
|
150
|
-
ready: BigInt(result.summary.tasks.ready),
|
|
151
|
-
waiting: BigInt(result.summary.tasks.waiting),
|
|
152
|
-
inProgress: BigInt(result.summary.tasks.inProgress),
|
|
153
|
-
failed: BigInt(result.summary.tasks.failed),
|
|
154
|
-
error: BigInt(result.summary.tasks.error),
|
|
155
|
-
staleRunning: BigInt(result.summary.tasks.staleRunning),
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
export function createExecutionRoutes(repoPath) {
|
|
6
|
+
import { startDataflow, executeDataflow, getDataflowStatus, getDataflowGraph, getTaskLogs, getDataflowExecution, } from '../handlers/dataflow.js';
|
|
7
|
+
import { decodeBody } from '../beast2.js';
|
|
8
|
+
import { DataflowRequestType } from '../types.js';
|
|
9
|
+
export function createExecutionRoutes(storage, getRepoPath) {
|
|
161
10
|
const app = new Hono();
|
|
162
|
-
// POST /api/workspaces/:ws/
|
|
163
|
-
app.post('/
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
// Start execution without awaiting - it runs in background
|
|
176
|
-
dataflowStart(repoPath, workspace, {
|
|
177
|
-
concurrency,
|
|
178
|
-
force: body.force,
|
|
179
|
-
filter,
|
|
180
|
-
lock,
|
|
181
|
-
}).catch((err) => {
|
|
182
|
-
// Log error but don't throw - execution is in background
|
|
183
|
-
console.error(`Dataflow execution error for workspace ${workspace}:`, err);
|
|
184
|
-
});
|
|
185
|
-
// Return immediately with 202 Accepted
|
|
186
|
-
c.status(202);
|
|
187
|
-
return sendSuccess(c, NullType, null);
|
|
188
|
-
}
|
|
189
|
-
catch (err) {
|
|
190
|
-
return sendError(c, NullType, errorToVariant(err));
|
|
191
|
-
}
|
|
11
|
+
// POST /api/repos/:repo/workspaces/:ws/dataflow - Start dataflow execution (non-blocking)
|
|
12
|
+
app.post('/', async (c) => {
|
|
13
|
+
const repo = c.req.param('repo');
|
|
14
|
+
const repoPath = getRepoPath(repo);
|
|
15
|
+
const ws = c.req.param('ws');
|
|
16
|
+
const body = await decodeBody(c, DataflowRequestType);
|
|
17
|
+
const concurrency = body.concurrency.type === 'some' ? Number(body.concurrency.value) : 4;
|
|
18
|
+
const filter = body.filter.type === 'some' ? body.filter.value : undefined;
|
|
19
|
+
return startDataflow(storage, repoPath, ws, {
|
|
20
|
+
concurrency,
|
|
21
|
+
force: body.force,
|
|
22
|
+
filter,
|
|
23
|
+
});
|
|
192
24
|
});
|
|
193
|
-
//
|
|
194
|
-
app.
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
try {
|
|
200
|
-
const body = await decodeBody(c, DataflowRequestType);
|
|
201
|
-
const concurrency = body.concurrency.type === 'some' ? Number(body.concurrency.value) : 4;
|
|
202
|
-
const filter = body.filter.type === 'some' ? body.filter.value : undefined;
|
|
203
|
-
const result = await dataflowExecute(repoPath, workspace, {
|
|
204
|
-
concurrency,
|
|
205
|
-
force: body.force,
|
|
206
|
-
filter,
|
|
207
|
-
});
|
|
208
|
-
return sendSuccess(c, DataflowResultType, convertDataflowResult(result));
|
|
209
|
-
}
|
|
210
|
-
catch (err) {
|
|
211
|
-
return sendError(c, DataflowResultType, errorToVariant(err));
|
|
212
|
-
}
|
|
25
|
+
// GET /api/repos/:repo/workspaces/:ws/dataflow - Get workspace status (for polling)
|
|
26
|
+
app.get('/', async (c) => {
|
|
27
|
+
const repo = c.req.param('repo');
|
|
28
|
+
const repoPath = getRepoPath(repo);
|
|
29
|
+
const ws = c.req.param('ws');
|
|
30
|
+
return getDataflowStatus(storage, repoPath, ws);
|
|
213
31
|
});
|
|
214
|
-
//
|
|
215
|
-
app.
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
32
|
+
// POST /api/repos/:repo/workspaces/:ws/dataflow/execute - Execute dataflow (blocking)
|
|
33
|
+
app.post('/execute', async (c) => {
|
|
34
|
+
const repo = c.req.param('repo');
|
|
35
|
+
const repoPath = getRepoPath(repo);
|
|
36
|
+
const ws = c.req.param('ws');
|
|
37
|
+
const body = await decodeBody(c, DataflowRequestType);
|
|
38
|
+
const concurrency = body.concurrency.type === 'some' ? Number(body.concurrency.value) : 4;
|
|
39
|
+
const filter = body.filter.type === 'some' ? body.filter.value : undefined;
|
|
40
|
+
return executeDataflow(storage, repoPath, ws, {
|
|
41
|
+
concurrency,
|
|
42
|
+
force: body.force,
|
|
43
|
+
filter,
|
|
44
|
+
});
|
|
227
45
|
});
|
|
228
|
-
// GET /api/workspaces/:ws/graph - Get dependency graph
|
|
46
|
+
// GET /api/repos/:repo/workspaces/:ws/dataflow/graph - Get dependency graph
|
|
229
47
|
app.get('/graph', async (c) => {
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
try {
|
|
235
|
-
const graph = await dataflowGetGraph(repoPath, workspace);
|
|
236
|
-
return sendSuccess(c, DataflowGraphType, {
|
|
237
|
-
tasks: graph.tasks.map((t) => ({
|
|
238
|
-
name: t.name,
|
|
239
|
-
hash: t.hash,
|
|
240
|
-
inputs: t.inputs,
|
|
241
|
-
output: t.output,
|
|
242
|
-
dependsOn: t.dependsOn,
|
|
243
|
-
})),
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
catch (err) {
|
|
247
|
-
return sendError(c, DataflowGraphType, errorToVariant(err));
|
|
248
|
-
}
|
|
48
|
+
const repo = c.req.param('repo');
|
|
49
|
+
const repoPath = getRepoPath(repo);
|
|
50
|
+
const ws = c.req.param('ws');
|
|
51
|
+
return getDataflowGraph(storage, repoPath, ws);
|
|
249
52
|
});
|
|
250
|
-
// GET /api/workspaces/:ws/logs/:task - Get task logs
|
|
53
|
+
// GET /api/repos/:repo/workspaces/:ws/dataflow/logs/:task - Get task logs
|
|
251
54
|
app.get('/logs/:task', async (c) => {
|
|
252
|
-
const
|
|
55
|
+
const repo = c.req.param('repo');
|
|
56
|
+
const repoPath = getRepoPath(repo);
|
|
57
|
+
const ws = c.req.param('ws');
|
|
253
58
|
const taskName = c.req.param('task');
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
const currentInputHashes = [];
|
|
270
|
-
for (const inputPath of task.inputs) {
|
|
271
|
-
const { refType, hash } = await workspaceGetDatasetHash(repoPath, workspace, inputPath);
|
|
272
|
-
if (refType !== 'value' || hash === null) {
|
|
273
|
-
return sendError(c, LogChunkType, errorToVariant(new Error('Task inputs not assigned')));
|
|
274
|
-
}
|
|
275
|
-
currentInputHashes.push(hash);
|
|
276
|
-
}
|
|
277
|
-
const inHash = inputsHash(currentInputHashes);
|
|
278
|
-
// Check if execution exists, fall back to most recent
|
|
279
|
-
const executions = await executionListForTask(repoPath, taskHash);
|
|
280
|
-
let execInHash = inHash;
|
|
281
|
-
if (!executions.includes(inHash) && executions.length > 0) {
|
|
282
|
-
execInHash = executions[0];
|
|
283
|
-
}
|
|
284
|
-
else if (executions.length === 0) {
|
|
285
|
-
return sendError(c, LogChunkType, errorToVariant(new Error('No executions found for task')));
|
|
286
|
-
}
|
|
287
|
-
// Read logs
|
|
288
|
-
const chunk = await executionReadLog(repoPath, taskHash, execInHash, stream, { offset, limit });
|
|
289
|
-
return sendSuccess(c, LogChunkType, {
|
|
290
|
-
data: chunk.data,
|
|
291
|
-
offset: BigInt(chunk.offset),
|
|
292
|
-
size: BigInt(chunk.size),
|
|
293
|
-
totalSize: BigInt(chunk.totalSize),
|
|
294
|
-
complete: chunk.complete,
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
catch (err) {
|
|
298
|
-
return sendError(c, LogChunkType, errorToVariant(err));
|
|
299
|
-
}
|
|
59
|
+
// Get query params
|
|
60
|
+
const stream = c.req.query('stream') || 'stdout';
|
|
61
|
+
const offset = parseInt(c.req.query('offset') || '0', 10);
|
|
62
|
+
const limit = parseInt(c.req.query('limit') || '65536', 10);
|
|
63
|
+
return getTaskLogs(storage, repoPath, ws, taskName, stream, offset, limit);
|
|
64
|
+
});
|
|
65
|
+
// GET /api/repos/:repo/workspaces/:ws/dataflow/execution - Get execution state (for polling)
|
|
66
|
+
app.get('/execution', (c) => {
|
|
67
|
+
const repo = c.req.param('repo');
|
|
68
|
+
const repoPath = getRepoPath(repo);
|
|
69
|
+
const ws = c.req.param('ws');
|
|
70
|
+
// Get query params for pagination
|
|
71
|
+
const offset = c.req.query('offset') ? parseInt(c.req.query('offset'), 10) : undefined;
|
|
72
|
+
const limit = c.req.query('limit') ? parseInt(c.req.query('limit'), 10) : undefined;
|
|
73
|
+
return getDataflowExecution(repoPath, ws, { offset, limit });
|
|
300
74
|
});
|
|
301
75
|
return app;
|
|
302
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../../src/routes/executions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;A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AAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAE,CAAC;QAClC,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QACnC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAE,CAAC;QAE9B,kCAAkC;QAClC,MAAM,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACxF,MAAM,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAErF,OAAO,oBAAoB,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
export { createRepositoryRoutes } from './repository.js';
|
|
6
|
+
export { createPackageRoutes } from './packages.js';
|
|
7
|
+
export { createWorkspaceRoutes } from './workspaces.js';
|
|
8
|
+
export { createDatasetRoutes } from './datasets.js';
|
|
9
|
+
export { createTaskRoutes } from './tasks.js';
|
|
10
|
+
export { createExecutionRoutes } from './executions.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
export { createRepositoryRoutes } from './repository.js';
|
|
6
|
+
export { createPackageRoutes } from './packages.js';
|
|
7
|
+
export { createWorkspaceRoutes } from './workspaces.js';
|
|
8
|
+
export { createDatasetRoutes } from './datasets.js';
|
|
9
|
+
export { createTaskRoutes } from './tasks.js';
|
|
10
|
+
export { createExecutionRoutes } from './executions.js';
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
|