@devflow-tools/server 0.3.2 → 0.4.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/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @devflow-tools/server
|
|
2
|
+
|
|
3
|
+
DevFlow REST API server — backend service powering the DevFlow platform. Built with NestJS + Fastify.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @devflow-tools/server
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Development
|
|
15
|
+
npx devflow server start
|
|
16
|
+
|
|
17
|
+
# Or start directly
|
|
18
|
+
node node_modules/@devflow-tools/server/dist/main.js
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Server starts at `http://localhost:3100`.
|
|
22
|
+
|
|
23
|
+
## API Modules
|
|
24
|
+
|
|
25
|
+
| Module | Endpoint | Description |
|
|
26
|
+
|--------|----------|-------------|
|
|
27
|
+
| Projects | `/api/projects` | Project CRUD |
|
|
28
|
+
| Context | `/api/context/build` | Context retrieval |
|
|
29
|
+
| Graph | `/api/graph` | Dependency graph |
|
|
30
|
+
| Workflows | `/api/workflows/:type/run` | Workflow execution |
|
|
31
|
+
| Memory | `/api/memory` | Project memory |
|
|
32
|
+
| Knowledge | `/api/knowledge/search` | Doc search |
|
|
33
|
+
| Telemetry | `/api/runs` | Agent run history |
|
|
34
|
+
| Benchmark | `/api/benchmark/run` | Code quality benchmarks |
|
|
35
|
+
| Registry | `/api/registry/plugins` | Plugin management |
|
|
36
|
+
|
|
37
|
+
## Authentication
|
|
38
|
+
|
|
39
|
+
All endpoints require `X-API-Key` header. Default key: `dev-key-000000`
|
|
40
|
+
|
|
41
|
+
## Environment Variables
|
|
42
|
+
|
|
43
|
+
| Variable | Default | Description |
|
|
44
|
+
|----------|---------|-------------|
|
|
45
|
+
| `DEVFLOW_API_KEYS` | `dev-key-000000` | Comma-separated API keys |
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
MIT
|
|
@@ -12,10 +12,10 @@ export declare class WorkflowController {
|
|
|
12
12
|
listRuns(limit?: string, offset?: string): Promise<{
|
|
13
13
|
runId: string;
|
|
14
14
|
workflowName: string;
|
|
15
|
-
status: "
|
|
15
|
+
status: "completed" | "failed" | "running" | "canceled";
|
|
16
16
|
steps: {
|
|
17
17
|
stepId: string;
|
|
18
|
-
status: "
|
|
18
|
+
status: "failed" | "running" | "pending" | "success" | "skipped";
|
|
19
19
|
output: unknown;
|
|
20
20
|
error: string | undefined;
|
|
21
21
|
startedAt: number;
|
|
@@ -26,10 +26,10 @@ export declare class WorkflowController {
|
|
|
26
26
|
getRun(id: string): Promise<{
|
|
27
27
|
runId: string;
|
|
28
28
|
workflowName: string;
|
|
29
|
-
status: "
|
|
29
|
+
status: "completed" | "failed" | "running" | "canceled";
|
|
30
30
|
steps: {
|
|
31
31
|
stepId: string;
|
|
32
|
-
status: "
|
|
32
|
+
status: "failed" | "running" | "pending" | "success" | "skipped";
|
|
33
33
|
output: unknown;
|
|
34
34
|
error: string | undefined;
|
|
35
35
|
}[];
|
|
@@ -20,10 +20,10 @@ export declare class WorkflowService {
|
|
|
20
20
|
listRuns(limit: number, offset: number): Promise<{
|
|
21
21
|
runId: string;
|
|
22
22
|
workflowName: string;
|
|
23
|
-
status: "
|
|
23
|
+
status: "completed" | "failed" | "running" | "canceled";
|
|
24
24
|
steps: {
|
|
25
25
|
stepId: string;
|
|
26
|
-
status: "
|
|
26
|
+
status: "failed" | "running" | "pending" | "success" | "skipped";
|
|
27
27
|
output: unknown;
|
|
28
28
|
error: string | undefined;
|
|
29
29
|
startedAt: number;
|
|
@@ -34,10 +34,10 @@ export declare class WorkflowService {
|
|
|
34
34
|
getRun(runId: string): Promise<{
|
|
35
35
|
runId: string;
|
|
36
36
|
workflowName: string;
|
|
37
|
-
status: "
|
|
37
|
+
status: "completed" | "failed" | "running" | "canceled";
|
|
38
38
|
steps: {
|
|
39
39
|
stepId: string;
|
|
40
|
-
status: "
|
|
40
|
+
status: "failed" | "running" | "pending" | "success" | "skipped";
|
|
41
41
|
output: unknown;
|
|
42
42
|
error: string | undefined;
|
|
43
43
|
}[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"clean": "rm -rf dist"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@devflow-tools/adapters": "^0.
|
|
16
|
-
"@devflow-tools/benchmark": "^0.
|
|
17
|
-
"@devflow-tools/context-engine": "^0.
|
|
18
|
-
"@devflow-tools/knowledge-engine": "^0.
|
|
19
|
-
"@devflow-tools/memory-engine": "^0.
|
|
20
|
-
"@devflow-tools/sdk": "^0.
|
|
21
|
-
"@devflow-tools/telemetry": "^0.
|
|
22
|
-
"@devflow-tools/workflow-engine": "^0.
|
|
15
|
+
"@devflow-tools/adapters": "^0.4.0",
|
|
16
|
+
"@devflow-tools/benchmark": "^0.4.0",
|
|
17
|
+
"@devflow-tools/context-engine": "^0.4.0",
|
|
18
|
+
"@devflow-tools/knowledge-engine": "^0.4.0",
|
|
19
|
+
"@devflow-tools/memory-engine": "^0.4.0",
|
|
20
|
+
"@devflow-tools/sdk": "^0.4.0",
|
|
21
|
+
"@devflow-tools/telemetry": "^0.4.0",
|
|
22
|
+
"@devflow-tools/workflow-engine": "^0.4.0",
|
|
23
23
|
"@nestjs/common": "^10.4.0",
|
|
24
24
|
"@nestjs/core": "^10.4.0",
|
|
25
25
|
"@nestjs/platform-fastify": "^10.4.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"files": [
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c76bcf3a2bb8ac12b871738d6661979eb45090c6"
|
|
41
41
|
}
|