@lovelybunch/api 1.0.69-alpha.3 → 1.0.69-alpha.4
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/lib/jobs/job-store.js +2 -0
- package/dist/routes/api/v1/jobs/[id]/route.d.ts +2 -0
- package/dist/routes/api/v1/jobs/[id]/route.js +3 -0
- package/dist/routes/api/v1/jobs/route.d.ts +2 -0
- package/dist/routes/api/v1/jobs/route.js +1 -0
- package/package.json +4 -4
- package/static/assets/{index-D3PxQUiY.js → index-BrQjW3ii.js} +121 -121
- package/static/index.html +1 -1
|
@@ -176,6 +176,7 @@ export class JobStore {
|
|
|
176
176
|
tags: data.tags ?? [],
|
|
177
177
|
contextPaths: data.contextPaths ?? [],
|
|
178
178
|
agentId: data.agentId,
|
|
179
|
+
agentIds: data.agentIds,
|
|
179
180
|
mcpServers: data.mcpServers,
|
|
180
181
|
};
|
|
181
182
|
}
|
|
@@ -209,6 +210,7 @@ export class JobStore {
|
|
|
209
210
|
tags: job.tags ?? [],
|
|
210
211
|
contextPaths: job.contextPaths ?? [],
|
|
211
212
|
agentId: job.agentId,
|
|
213
|
+
agentIds: job.agentIds,
|
|
212
214
|
mcpServers: job.mcpServers,
|
|
213
215
|
};
|
|
214
216
|
}
|
|
@@ -48,6 +48,7 @@ export declare function GET(c: Context): Promise<(Response & import("hono").Type
|
|
|
48
48
|
tags?: string[];
|
|
49
49
|
contextPaths?: string[];
|
|
50
50
|
agentId?: string;
|
|
51
|
+
agentIds?: string[];
|
|
51
52
|
mcpServers?: string[];
|
|
52
53
|
};
|
|
53
54
|
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
@@ -111,6 +112,7 @@ export declare function PATCH(c: Context): Promise<(Response & import("hono").Ty
|
|
|
111
112
|
tags?: string[];
|
|
112
113
|
contextPaths?: string[];
|
|
113
114
|
agentId?: string;
|
|
115
|
+
agentIds?: string[];
|
|
114
116
|
mcpServers?: string[];
|
|
115
117
|
};
|
|
116
118
|
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
@@ -85,6 +85,9 @@ export async function PATCH(c) {
|
|
|
85
85
|
agentId: body.agentId !== undefined
|
|
86
86
|
? (typeof body.agentId === 'string' && body.agentId ? body.agentId : undefined)
|
|
87
87
|
: existing.agentId,
|
|
88
|
+
agentIds: body.agentIds !== undefined
|
|
89
|
+
? (Array.isArray(body.agentIds) ? body.agentIds.filter((s) => typeof s === 'string') : undefined)
|
|
90
|
+
: existing.agentIds,
|
|
88
91
|
mcpServers: body.mcpServers !== undefined
|
|
89
92
|
? (Array.isArray(body.mcpServers) ? body.mcpServers.filter((s) => typeof s === 'string') : undefined)
|
|
90
93
|
: existing.mcpServers,
|
|
@@ -44,6 +44,7 @@ export declare function GET(c: Context): Promise<(Response & import("hono").Type
|
|
|
44
44
|
tags?: string[];
|
|
45
45
|
contextPaths?: string[];
|
|
46
46
|
agentId?: string;
|
|
47
|
+
agentIds?: string[];
|
|
47
48
|
mcpServers?: string[];
|
|
48
49
|
}[];
|
|
49
50
|
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
@@ -101,6 +102,7 @@ export declare function POST(c: Context): Promise<(Response & import("hono").Typ
|
|
|
101
102
|
tags?: string[];
|
|
102
103
|
contextPaths?: string[];
|
|
103
104
|
agentId?: string;
|
|
105
|
+
agentIds?: string[];
|
|
104
106
|
mcpServers?: string[];
|
|
105
107
|
};
|
|
106
108
|
}, 201, "json">) | (Response & import("hono").TypedResponse<{
|
|
@@ -123,6 +123,7 @@ export async function POST(c) {
|
|
|
123
123
|
tags: Array.isArray(body.tags) ? body.tags : [],
|
|
124
124
|
contextPaths: Array.isArray(body.contextPaths) ? body.contextPaths : [],
|
|
125
125
|
agentId: body.agentId && typeof body.agentId === 'string' ? body.agentId : undefined,
|
|
126
|
+
agentIds: Array.isArray(body.agentIds) ? body.agentIds.filter((s) => typeof s === 'string') : undefined,
|
|
126
127
|
mcpServers: Array.isArray(body.mcpServers) ? body.mcpServers.filter((s) => typeof s === 'string') : undefined,
|
|
127
128
|
};
|
|
128
129
|
await store.saveJob(job);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovelybunch/api",
|
|
3
|
-
"version": "1.0.69-alpha.
|
|
3
|
+
"version": "1.0.69-alpha.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/server-with-static.js",
|
|
6
6
|
"exports": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@hono/node-server": "^1.13.7",
|
|
38
38
|
"@hono/node-ws": "^1.0.6",
|
|
39
|
-
"@lovelybunch/core": "^1.0.69-alpha.
|
|
40
|
-
"@lovelybunch/mcp": "^1.0.69-alpha.
|
|
41
|
-
"@lovelybunch/types": "^1.0.69-alpha.
|
|
39
|
+
"@lovelybunch/core": "^1.0.69-alpha.4",
|
|
40
|
+
"@lovelybunch/mcp": "^1.0.69-alpha.4",
|
|
41
|
+
"@lovelybunch/types": "^1.0.69-alpha.4",
|
|
42
42
|
"arctic": "^1.9.2",
|
|
43
43
|
"bcrypt": "^5.1.1",
|
|
44
44
|
"cookie": "^0.6.0",
|