agor-live 0.3.11 → 0.3.14
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/daemon/index.js
CHANGED
|
@@ -2908,6 +2908,13 @@ var AnonymousStrategy = class extends AuthenticationBaseStrategy {
|
|
|
2908
2908
|
};
|
|
2909
2909
|
|
|
2910
2910
|
// src/index.ts
|
|
2911
|
+
var DAEMON_VERSION = "0.0.0";
|
|
2912
|
+
try {
|
|
2913
|
+
const pkgPath = new URL("../package.json", import.meta.url);
|
|
2914
|
+
const pkg = await import(pkgPath.href);
|
|
2915
|
+
DAEMON_VERSION = pkg.default?.version || DAEMON_VERSION;
|
|
2916
|
+
} catch {
|
|
2917
|
+
}
|
|
2911
2918
|
function isPaginated(result) {
|
|
2912
2919
|
return !Array.isArray(result) && "data" in result && "total" in result;
|
|
2913
2920
|
}
|
|
@@ -3983,7 +3990,7 @@ async function main() {
|
|
|
3983
3990
|
return {
|
|
3984
3991
|
status: "ok",
|
|
3985
3992
|
timestamp: Date.now(),
|
|
3986
|
-
version:
|
|
3993
|
+
version: DAEMON_VERSION,
|
|
3987
3994
|
database: DB_PATH,
|
|
3988
3995
|
auth: {
|
|
3989
3996
|
requireAuth: config.daemon?.requireAuth === true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Database } from '@agor/core/db';
|
|
2
|
-
import { QueryParams, MCPServer, CreateMCPServerInput, UpdateMCPServerInput
|
|
2
|
+
import { QueryParams, MCPServer, CreateMCPServerInput, UpdateMCPServerInput } from '@agor/core/types';
|
|
3
3
|
import { DrizzleService } from '../adapters/drizzle.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -28,7 +28,12 @@ declare class MCPServersService extends DrizzleService<MCPServer, CreateMCPServe
|
|
|
28
28
|
/**
|
|
29
29
|
* Override find to support filter params
|
|
30
30
|
*/
|
|
31
|
-
find(params?: MCPServerParams): Promise<MCPServer[] |
|
|
31
|
+
find(params?: MCPServerParams): Promise<MCPServer[] | {
|
|
32
|
+
total: number;
|
|
33
|
+
limit: number;
|
|
34
|
+
skip: number;
|
|
35
|
+
data: MCPServer[];
|
|
36
|
+
}>;
|
|
32
37
|
/**
|
|
33
38
|
* Custom method: Find by scope
|
|
34
39
|
*/
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import * as _agor_core from '@agor/core';
|
|
2
1
|
import { Database } from '@agor/core/db';
|
|
3
2
|
import { Application } from '@agor/core/feathers';
|
|
4
3
|
import { QueryParams, UUID, Worktree, WorktreeID } from '@agor/core/types';
|
|
5
4
|
import { DrizzleService } from '../adapters/drizzle.js';
|
|
6
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Worktrees Service
|
|
8
|
+
*
|
|
9
|
+
* Provides REST + WebSocket API for worktree management.
|
|
10
|
+
* Uses DrizzleService adapter with WorktreeRepository.
|
|
11
|
+
*/
|
|
12
|
+
|
|
7
13
|
/**
|
|
8
14
|
* Worktree service params
|
|
9
15
|
*/
|
|
@@ -28,7 +34,12 @@ declare class WorktreesService extends DrizzleService<Worktree, Partial<Worktree
|
|
|
28
34
|
/**
|
|
29
35
|
* Override find to support repo_id filter
|
|
30
36
|
*/
|
|
31
|
-
find(params?: WorktreeParams): Promise<Worktree[] |
|
|
37
|
+
find(params?: WorktreeParams): Promise<Worktree[] | {
|
|
38
|
+
total: number;
|
|
39
|
+
limit: number;
|
|
40
|
+
skip: number;
|
|
41
|
+
data: Worktree[];
|
|
42
|
+
}>;
|
|
32
43
|
/**
|
|
33
44
|
* Override remove to support filesystem deletion
|
|
34
45
|
*/
|