@devflow-tools/server 0.1.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/dist/app.module.d.ts +3 -0
- package/dist/app.module.d.ts.map +1 -0
- package/dist/app.module.js +37 -0
- package/dist/app.module.js.map +1 -0
- package/dist/auth/api-key.decorator.d.ts +3 -0
- package/dist/auth/api-key.decorator.d.ts.map +1 -0
- package/dist/auth/api-key.decorator.js +4 -0
- package/dist/auth/api-key.decorator.js.map +1 -0
- package/dist/auth/api-key.guard.d.ts +8 -0
- package/dist/auth/api-key.guard.d.ts.map +1 -0
- package/dist/auth/api-key.guard.js +61 -0
- package/dist/auth/api-key.guard.js.map +1 -0
- package/dist/auth/auth.module.d.ts +3 -0
- package/dist/auth/auth.module.d.ts.map +1 -0
- package/dist/auth/auth.module.js +19 -0
- package/dist/auth/auth.module.js.map +1 -0
- package/dist/auth/errors.d.ts +6 -0
- package/dist/auth/errors.d.ts.map +1 -0
- package/dist/auth/errors.js +5 -0
- package/dist/auth/errors.js.map +1 -0
- package/dist/benchmark/benchmark.controller.d.ts +11 -0
- package/dist/benchmark/benchmark.controller.d.ts.map +1 -0
- package/dist/benchmark/benchmark.controller.js +55 -0
- package/dist/benchmark/benchmark.controller.js.map +1 -0
- package/dist/benchmark/benchmark.module.d.ts +3 -0
- package/dist/benchmark/benchmark.module.d.ts.map +1 -0
- package/dist/benchmark/benchmark.module.js +16 -0
- package/dist/benchmark/benchmark.module.js.map +1 -0
- package/dist/benchmark/benchmark.service.d.ts +8 -0
- package/dist/benchmark/benchmark.service.d.ts.map +1 -0
- package/dist/benchmark/benchmark.service.js +38 -0
- package/dist/benchmark/benchmark.service.js.map +1 -0
- package/dist/common/dto.d.ts +11 -0
- package/dist/common/dto.d.ts.map +1 -0
- package/dist/common/dto.js +2 -0
- package/dist/common/dto.js.map +1 -0
- package/dist/common/error-codes.d.ts +16 -0
- package/dist/common/error-codes.d.ts.map +1 -0
- package/dist/common/error-codes.js +15 -0
- package/dist/common/error-codes.js.map +1 -0
- package/dist/common/http-exception.filter.d.ts +6 -0
- package/dist/common/http-exception.filter.d.ts.map +1 -0
- package/dist/common/http-exception.filter.js +51 -0
- package/dist/common/http-exception.filter.js.map +1 -0
- package/dist/context/context.controller.d.ts +17 -0
- package/dist/context/context.controller.d.ts.map +1 -0
- package/dist/context/context.controller.js +56 -0
- package/dist/context/context.controller.js.map +1 -0
- package/dist/context/context.module.d.ts +3 -0
- package/dist/context/context.module.d.ts.map +1 -0
- package/dist/context/context.module.js +16 -0
- package/dist/context/context.module.js.map +1 -0
- package/dist/context/context.service.d.ts +13 -0
- package/dist/context/context.service.d.ts.map +1 -0
- package/dist/context/context.service.js +50 -0
- package/dist/context/context.service.js.map +1 -0
- package/dist/graph/graph.controller.d.ts +15 -0
- package/dist/graph/graph.controller.d.ts.map +1 -0
- package/dist/graph/graph.controller.js +54 -0
- package/dist/graph/graph.controller.js.map +1 -0
- package/dist/graph/graph.module.d.ts +3 -0
- package/dist/graph/graph.module.d.ts.map +1 -0
- package/dist/graph/graph.module.js +17 -0
- package/dist/graph/graph.module.js.map +1 -0
- package/dist/graph/graph.service.d.ts +12 -0
- package/dist/graph/graph.service.d.ts.map +1 -0
- package/dist/graph/graph.service.js +37 -0
- package/dist/graph/graph.service.js.map +1 -0
- package/dist/knowledge/knowledge.controller.d.ts +13 -0
- package/dist/knowledge/knowledge.controller.d.ts.map +1 -0
- package/dist/knowledge/knowledge.controller.js +48 -0
- package/dist/knowledge/knowledge.controller.js.map +1 -0
- package/dist/knowledge/knowledge.module.d.ts +3 -0
- package/dist/knowledge/knowledge.module.d.ts.map +1 -0
- package/dist/knowledge/knowledge.module.js +17 -0
- package/dist/knowledge/knowledge.module.js.map +1 -0
- package/dist/knowledge/knowledge.service.d.ts +8 -0
- package/dist/knowledge/knowledge.service.d.ts.map +1 -0
- package/dist/knowledge/knowledge.service.js +33 -0
- package/dist/knowledge/knowledge.service.js.map +1 -0
- package/dist/main.d.ts +4 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +18 -0
- package/dist/main.js.map +1 -0
- package/dist/memory/memory.controller.d.ts +19 -0
- package/dist/memory/memory.controller.d.ts.map +1 -0
- package/dist/memory/memory.controller.js +74 -0
- package/dist/memory/memory.controller.js.map +1 -0
- package/dist/memory/memory.module.d.ts +3 -0
- package/dist/memory/memory.module.d.ts.map +1 -0
- package/dist/memory/memory.module.js +17 -0
- package/dist/memory/memory.module.js.map +1 -0
- package/dist/memory/memory.service.d.ts +22 -0
- package/dist/memory/memory.service.d.ts.map +1 -0
- package/dist/memory/memory.service.js +51 -0
- package/dist/memory/memory.service.js.map +1 -0
- package/dist/projects/projects.controller.d.ts +14 -0
- package/dist/projects/projects.controller.d.ts.map +1 -0
- package/dist/projects/projects.controller.js +57 -0
- package/dist/projects/projects.controller.js.map +1 -0
- package/dist/projects/projects.module.d.ts +3 -0
- package/dist/projects/projects.module.d.ts.map +1 -0
- package/dist/projects/projects.module.js +16 -0
- package/dist/projects/projects.module.js.map +1 -0
- package/dist/projects/projects.service.d.ts +19 -0
- package/dist/projects/projects.service.d.ts.map +1 -0
- package/dist/projects/projects.service.js +38 -0
- package/dist/projects/projects.service.js.map +1 -0
- package/dist/registry/registry.controller.d.ts +14 -0
- package/dist/registry/registry.controller.d.ts.map +1 -0
- package/dist/registry/registry.controller.js +57 -0
- package/dist/registry/registry.controller.js.map +1 -0
- package/dist/registry/registry.module.d.ts +3 -0
- package/dist/registry/registry.module.d.ts.map +1 -0
- package/dist/registry/registry.module.js +16 -0
- package/dist/registry/registry.module.js.map +1 -0
- package/dist/registry/registry.service.d.ts +20 -0
- package/dist/registry/registry.service.d.ts.map +1 -0
- package/dist/registry/registry.service.js +48 -0
- package/dist/registry/registry.service.js.map +1 -0
- package/dist/telemetry/telemetry.controller.d.ts +16 -0
- package/dist/telemetry/telemetry.controller.d.ts.map +1 -0
- package/dist/telemetry/telemetry.controller.js +56 -0
- package/dist/telemetry/telemetry.controller.js.map +1 -0
- package/dist/telemetry/telemetry.module.d.ts +3 -0
- package/dist/telemetry/telemetry.module.d.ts.map +1 -0
- package/dist/telemetry/telemetry.module.js +16 -0
- package/dist/telemetry/telemetry.module.js.map +1 -0
- package/dist/telemetry/telemetry.service.d.ts +15 -0
- package/dist/telemetry/telemetry.service.d.ts.map +1 -0
- package/dist/telemetry/telemetry.service.js +47 -0
- package/dist/telemetry/telemetry.service.js.map +1 -0
- package/dist/workflow/workflow.controller.d.ts +38 -0
- package/dist/workflow/workflow.controller.d.ts.map +1 -0
- package/dist/workflow/workflow.controller.js +101 -0
- package/dist/workflow/workflow.controller.js.map +1 -0
- package/dist/workflow/workflow.module.d.ts +3 -0
- package/dist/workflow/workflow.module.d.ts.map +1 -0
- package/dist/workflow/workflow.module.js +16 -0
- package/dist/workflow/workflow.module.js.map +1 -0
- package/dist/workflow/workflow.service.d.ts +40 -0
- package/dist/workflow/workflow.service.d.ts.map +1 -0
- package/dist/workflow/workflow.service.js +78 -0
- package/dist/workflow/workflow.service.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.module.js","sourceRoot":"","sources":["../../src/context/context.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGrD,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,aAAa;IADzB,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,iBAAiB,CAAC,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;GACxF,aAAa,CAAG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ContextResult } from "@devflow-tools/sdk";
|
|
2
|
+
export interface IndexStatus {
|
|
3
|
+
totalFiles: number;
|
|
4
|
+
totalSymbols: number;
|
|
5
|
+
lastIndexTime: number;
|
|
6
|
+
indexing: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class ContextService {
|
|
9
|
+
indexProject(rootPath: string): Promise<IndexStatus>;
|
|
10
|
+
getStatus(rootPath: string): Promise<IndexStatus>;
|
|
11
|
+
buildContext(rootPath: string, query: string, mode: "fast" | "deep", maxTokens?: number): Promise<ContextResult>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=context.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.service.d.ts","sourceRoot":"","sources":["../../src/context/context.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,qBACa,cAAc;IACnB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAYpD,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAoBjD,YAAY,CAChB,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GACzE,OAAO,CAAC,aAAa,CAAC;CAI1B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Injectable } from "@nestjs/common";
|
|
8
|
+
import { createEngines } from "@devflow-tools/context-engine";
|
|
9
|
+
let ContextService = class ContextService {
|
|
10
|
+
async indexProject(rootPath) {
|
|
11
|
+
const { context, codegraph } = await createEngines(rootPath);
|
|
12
|
+
await context.index(rootPath);
|
|
13
|
+
const stats = codegraph.getStats();
|
|
14
|
+
return {
|
|
15
|
+
totalFiles: stats.fileCount,
|
|
16
|
+
totalSymbols: stats.nodeCount,
|
|
17
|
+
lastIndexTime: stats.lastUpdated,
|
|
18
|
+
indexing: codegraph.isIndexing(),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
async getStatus(rootPath) {
|
|
22
|
+
try {
|
|
23
|
+
const { codegraph } = await createEngines(rootPath);
|
|
24
|
+
const stats = codegraph.getStats();
|
|
25
|
+
return {
|
|
26
|
+
totalFiles: stats.fileCount,
|
|
27
|
+
totalSymbols: stats.nodeCount,
|
|
28
|
+
lastIndexTime: stats.lastUpdated,
|
|
29
|
+
indexing: codegraph.isIndexing(),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return {
|
|
34
|
+
totalFiles: 0,
|
|
35
|
+
totalSymbols: 0,
|
|
36
|
+
lastIndexTime: 0,
|
|
37
|
+
indexing: false,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async buildContext(rootPath, query, mode, maxTokens) {
|
|
42
|
+
const { context } = await createEngines(rootPath);
|
|
43
|
+
return context.build({ query, mode, maxTokens: maxTokens ?? 8000, includeGraph: mode === "deep" });
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
ContextService = __decorate([
|
|
47
|
+
Injectable()
|
|
48
|
+
], ContextService);
|
|
49
|
+
export { ContextService };
|
|
50
|
+
//# sourceMappingURL=context.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.service.js","sourceRoot":"","sources":["../../src/context/context.service.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAWvD,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,KAAK,CAAC,YAAY,CAAC,QAAgB;QACjC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC7D,MAAM,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC9B,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;QACnC,OAAO;YACL,UAAU,EAAE,KAAK,CAAC,SAAS;YAC3B,YAAY,EAAE,KAAK,CAAC,SAAS;YAC7B,aAAa,EAAE,KAAK,CAAC,WAAW;YAChC,QAAQ,EAAE,SAAS,CAAC,UAAU,EAAE;SACjC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAgB;QAC9B,IAAI,CAAC;YACH,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,aAAa,CAAC,QAAQ,CAAC,CAAC;YACpD,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;YACnC,OAAO;gBACL,UAAU,EAAE,KAAK,CAAC,SAAS;gBAC3B,YAAY,EAAE,KAAK,CAAC,SAAS;gBAC7B,aAAa,EAAE,KAAK,CAAC,WAAW;gBAChC,QAAQ,EAAE,SAAS,CAAC,UAAU,EAAE;aACjC,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,OAAO;gBACL,UAAU,EAAE,CAAC;gBACb,YAAY,EAAE,CAAC;gBACf,aAAa,EAAE,CAAC;gBAChB,QAAQ,EAAE,KAAK;aAChB,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,QAAgB,EAAE,KAAa,EAAE,IAAqB,EAAE,SAAkB;QAE1E,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,aAAa,CAAC,QAAQ,CAAC,CAAC;QAClD,OAAO,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,IAAI,IAAI,EAAE,YAAY,EAAE,IAAI,KAAK,MAAM,EAAE,CAAC,CAAC;IACrG,CAAC;CACF,CAAA;AAvCY,cAAc;IAD1B,UAAU,EAAE;GACA,cAAc,CAuC1B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GraphService } from "./graph.service.js";
|
|
2
|
+
export declare class GraphController {
|
|
3
|
+
private readonly service;
|
|
4
|
+
constructor(service: GraphService);
|
|
5
|
+
getFullGraph(rootPath: string): Promise<{
|
|
6
|
+
nodes: import("@devflow-tools/sdk").GraphNode[];
|
|
7
|
+
edges: import("@devflow-tools/sdk").GraphEdge[];
|
|
8
|
+
}>;
|
|
9
|
+
getNode(rootPath: string, nodeId: string): Promise<import("@colbymchenry/codegraph").Node>;
|
|
10
|
+
expandNode(rootPath: string, nodeId: string, depth?: string, direction?: string): Promise<{
|
|
11
|
+
node: import("@devflow-tools/sdk").GraphNode | undefined;
|
|
12
|
+
subGraph: import("@devflow-tools/sdk").SubGraph;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=graph.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.controller.d.ts","sourceRoot":"","sources":["../../src/graph/graph.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,qBACa,eAAe;IACQ,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,YAAY;IAGlE,YAAY,CAAoB,QAAQ,EAAE,MAAM;;;;IAGhD,OAAO,CAAoB,QAAQ,EAAE,MAAM,EAAmB,MAAM,EAAE,MAAM;IAG5E,UAAU,CACK,QAAQ,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,EACV,SAAS,CAAC,EAAE,MAAM;;;;CAEzC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Controller, Get, Param, Query, Inject } from "@nestjs/common";
|
|
14
|
+
import { GraphService } from "./graph.service.js";
|
|
15
|
+
let GraphController = class GraphController {
|
|
16
|
+
constructor(service) {
|
|
17
|
+
this.service = service;
|
|
18
|
+
}
|
|
19
|
+
async getFullGraph(rootPath) { return this.service.getFullGraph(rootPath); }
|
|
20
|
+
async getNode(rootPath, nodeId) { return this.service.getNode(rootPath, nodeId); }
|
|
21
|
+
async expandNode(rootPath, nodeId, depth, direction) { return this.service.expandNode(rootPath, nodeId, Number(depth) || 2, direction || "both"); }
|
|
22
|
+
};
|
|
23
|
+
__decorate([
|
|
24
|
+
Get(),
|
|
25
|
+
__param(0, Query("rootPath")),
|
|
26
|
+
__metadata("design:type", Function),
|
|
27
|
+
__metadata("design:paramtypes", [String]),
|
|
28
|
+
__metadata("design:returntype", Promise)
|
|
29
|
+
], GraphController.prototype, "getFullGraph", null);
|
|
30
|
+
__decorate([
|
|
31
|
+
Get(":nodeId"),
|
|
32
|
+
__param(0, Query("rootPath")),
|
|
33
|
+
__param(1, Param("nodeId")),
|
|
34
|
+
__metadata("design:type", Function),
|
|
35
|
+
__metadata("design:paramtypes", [String, String]),
|
|
36
|
+
__metadata("design:returntype", Promise)
|
|
37
|
+
], GraphController.prototype, "getNode", null);
|
|
38
|
+
__decorate([
|
|
39
|
+
Get(":nodeId/expand"),
|
|
40
|
+
__param(0, Query("rootPath")),
|
|
41
|
+
__param(1, Param("nodeId")),
|
|
42
|
+
__param(2, Query("depth")),
|
|
43
|
+
__param(3, Query("direction")),
|
|
44
|
+
__metadata("design:type", Function),
|
|
45
|
+
__metadata("design:paramtypes", [String, String, String, String]),
|
|
46
|
+
__metadata("design:returntype", Promise)
|
|
47
|
+
], GraphController.prototype, "expandNode", null);
|
|
48
|
+
GraphController = __decorate([
|
|
49
|
+
Controller("graph"),
|
|
50
|
+
__param(0, Inject(GraphService)),
|
|
51
|
+
__metadata("design:paramtypes", [GraphService])
|
|
52
|
+
], GraphController);
|
|
53
|
+
export { GraphController };
|
|
54
|
+
//# sourceMappingURL=graph.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.controller.js","sourceRoot":"","sources":["../../src/graph/graph.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAG3C,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAAmD,OAAqB;QAArB,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,WAAW;CAAG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Module } from "@nestjs/common";
|
|
8
|
+
import { ContextModule } from "../context/context.module.js";
|
|
9
|
+
import { GraphService } from "./graph.service.js";
|
|
10
|
+
import { GraphController } from "./graph.controller.js";
|
|
11
|
+
let GraphModule = class GraphModule {
|
|
12
|
+
};
|
|
13
|
+
GraphModule = __decorate([
|
|
14
|
+
Module({ imports: [ContextModule], controllers: [GraphController], providers: [GraphService], exports: [GraphService] })
|
|
15
|
+
], GraphModule);
|
|
16
|
+
export { GraphModule };
|
|
17
|
+
//# sourceMappingURL=graph.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.module.js","sourceRoot":"","sources":["../../src/graph/graph.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGjD,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,WAAW;IADvB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;GAC5G,WAAW,CAAG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class GraphService {
|
|
2
|
+
getFullGraph(rootPath: string): Promise<{
|
|
3
|
+
nodes: import("@devflow-tools/sdk").GraphNode[];
|
|
4
|
+
edges: import("@devflow-tools/sdk").GraphEdge[];
|
|
5
|
+
}>;
|
|
6
|
+
getNode(rootPath: string, nodeId: string): Promise<import("@colbymchenry/codegraph").Node>;
|
|
7
|
+
expandNode(rootPath: string, nodeId: string, depth: number, direction: string): Promise<{
|
|
8
|
+
node: import("@devflow-tools/sdk").GraphNode | undefined;
|
|
9
|
+
subGraph: import("@devflow-tools/sdk").SubGraph;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=graph.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.service.d.ts","sourceRoot":"","sources":["../../src/graph/graph.service.ts"],"names":[],"mappings":"AAIA,qBACa,YAAY;IACjB,YAAY,CAAC,QAAQ,EAAE,MAAM;;;;IAK7B,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IASxC,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;CAQpF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Injectable, NotFoundException } from "@nestjs/common";
|
|
8
|
+
import { createEngines } from "@devflow-tools/context-engine";
|
|
9
|
+
import { ErrorCode } from "../common/error-codes.js";
|
|
10
|
+
let GraphService = class GraphService {
|
|
11
|
+
async getFullGraph(rootPath) {
|
|
12
|
+
const { graph } = await createEngines(rootPath);
|
|
13
|
+
return graph.export();
|
|
14
|
+
}
|
|
15
|
+
async getNode(rootPath, nodeId) {
|
|
16
|
+
const { codegraph } = await createEngines(rootPath);
|
|
17
|
+
const node = codegraph.getNode(nodeId);
|
|
18
|
+
if (!node)
|
|
19
|
+
throw new NotFoundException({
|
|
20
|
+
error: { code: ErrorCode.NODE_NOT_FOUND, message: `Node "${nodeId}" not found`, details: {} }
|
|
21
|
+
});
|
|
22
|
+
return node;
|
|
23
|
+
}
|
|
24
|
+
async expandNode(rootPath, nodeId, depth, direction) {
|
|
25
|
+
const { graph } = await createEngines(rootPath);
|
|
26
|
+
const sub = graph.expand([nodeId], {
|
|
27
|
+
depth,
|
|
28
|
+
direction: direction,
|
|
29
|
+
});
|
|
30
|
+
return { node: sub.nodes.find((n) => n.id === nodeId), subGraph: sub };
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
GraphService = __decorate([
|
|
34
|
+
Injectable()
|
|
35
|
+
], GraphService);
|
|
36
|
+
export { GraphService };
|
|
37
|
+
//# sourceMappingURL=graph.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.service.js","sourceRoot":"","sources":["../../src/graph/graph.service.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,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KnowledgeController {
|
|
3
|
+
private readonly service;
|
|
4
|
+
constructor(service: KnowledgeService);
|
|
5
|
+
search(rootPath: string, q?: string, scope?: string): Promise<import("@devflow-tools/sdk").KnowledgeEntry[]>;
|
|
6
|
+
sync(body: {
|
|
7
|
+
rootPath: string;
|
|
8
|
+
pluginName?: string;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
synced: number;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=knowledge.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.controller.d.ts","sourceRoot":"","sources":["../../src/knowledge/knowledge.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,qBACa,mBAAmB;IACQ,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,gBAAgB;IAG1E,MAAM,CAAoB,QAAQ,EAAE,MAAM,EAAc,CAAC,CAAC,EAAE,MAAM,EAAkB,KAAK,CAAC,EAAE,MAAM;IAKlG,IAAI,CAAS,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;;;CAGnE"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Controller, Get, Post, Query, Body, Inject } from "@nestjs/common";
|
|
14
|
+
import { KnowledgeService } from "./knowledge.service.js";
|
|
15
|
+
let KnowledgeController = class KnowledgeController {
|
|
16
|
+
constructor(service) {
|
|
17
|
+
this.service = service;
|
|
18
|
+
}
|
|
19
|
+
async search(rootPath, q, scope) {
|
|
20
|
+
return this.service.search(rootPath, q ?? "", scope);
|
|
21
|
+
}
|
|
22
|
+
async sync(body) {
|
|
23
|
+
return this.service.sync(body.rootPath, body.pluginName);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
__decorate([
|
|
27
|
+
Get("search"),
|
|
28
|
+
__param(0, Query("rootPath")),
|
|
29
|
+
__param(1, Query("q")),
|
|
30
|
+
__param(2, Query("scope")),
|
|
31
|
+
__metadata("design:type", Function),
|
|
32
|
+
__metadata("design:paramtypes", [String, String, String]),
|
|
33
|
+
__metadata("design:returntype", Promise)
|
|
34
|
+
], KnowledgeController.prototype, "search", null);
|
|
35
|
+
__decorate([
|
|
36
|
+
Post("sync"),
|
|
37
|
+
__param(0, Body()),
|
|
38
|
+
__metadata("design:type", Function),
|
|
39
|
+
__metadata("design:paramtypes", [Object]),
|
|
40
|
+
__metadata("design:returntype", Promise)
|
|
41
|
+
], KnowledgeController.prototype, "sync", null);
|
|
42
|
+
KnowledgeController = __decorate([
|
|
43
|
+
Controller("knowledge"),
|
|
44
|
+
__param(0, Inject(KnowledgeService)),
|
|
45
|
+
__metadata("design:paramtypes", [KnowledgeService])
|
|
46
|
+
], KnowledgeController);
|
|
47
|
+
export { KnowledgeController };
|
|
48
|
+
//# sourceMappingURL=knowledge.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.controller.js","sourceRoot":"","sources":["../../src/knowledge/knowledge.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGnD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAAuD,OAAyB;QAAzB,YAAO,GAAP,OAAO,CAAkB;IAAG,CAAC;IAG9E,AAAN,KAAK,CAAC,MAAM,CAAoB,QAAgB,EAAc,CAAU,EAAkB,KAAc;QACtG,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAS,IAA+C;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3D,CAAC;CACF,CAAA;AARO;IADL,GAAG,CAAC,QAAQ,CAAC;IACA,WAAA,KAAK,CAAC,UAAU,CAAC,CAAA;IAAoB,WAAA,KAAK,CAAC,GAAG,CAAC,CAAA;IAAc,WAAA,KAAK,CAAC,OAAO,CAAC,CAAA;;;;iDAExF;AAGK;IADL,IAAI,CAAC,MAAM,CAAC;IACD,WAAA,IAAI,EAAE,CAAA;;;;+CAEjB;AAXU,mBAAmB;IAD/B,UAAU,CAAC,WAAW,CAAC;IAET,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;qCAA2B,gBAAgB;GADrE,mBAAmB,CAY/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.module.d.ts","sourceRoot":"","sources":["../../src/knowledge/knowledge.module.ts"],"names":[],"mappings":"AAKA,qBACa,eAAe;CAAG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Module } from "@nestjs/common";
|
|
8
|
+
import { ContextModule } from "../context/context.module.js";
|
|
9
|
+
import { KnowledgeService } from "./knowledge.service.js";
|
|
10
|
+
import { KnowledgeController } from "./knowledge.controller.js";
|
|
11
|
+
let KnowledgeModule = class KnowledgeModule {
|
|
12
|
+
};
|
|
13
|
+
KnowledgeModule = __decorate([
|
|
14
|
+
Module({ imports: [ContextModule], controllers: [KnowledgeController], providers: [KnowledgeService], exports: [KnowledgeService] })
|
|
15
|
+
], KnowledgeModule);
|
|
16
|
+
export { KnowledgeModule };
|
|
17
|
+
//# sourceMappingURL=knowledge.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.module.js","sourceRoot":"","sources":["../../src/knowledge/knowledge.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGzD,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,eAAe;IAD3B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC,mBAAmB,CAAC,EAAE,SAAS,EAAE,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,CAAC;GACxH,eAAe,CAAG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { KnowledgeEntry } from "@devflow-tools/sdk";
|
|
2
|
+
export declare class KnowledgeService {
|
|
3
|
+
search(rootPath: string, query: string, scope?: string): Promise<KnowledgeEntry[]>;
|
|
4
|
+
sync(rootPath: string, pluginName?: string): Promise<{
|
|
5
|
+
synced: number;
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=knowledge.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.service.d.ts","sourceRoot":"","sources":["../../src/knowledge/knowledge.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,qBACa,gBAAgB;IACrB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAYlF,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAM/E"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Injectable } from "@nestjs/common";
|
|
8
|
+
import { createEngines } from "@devflow-tools/context-engine";
|
|
9
|
+
let KnowledgeService = class KnowledgeService {
|
|
10
|
+
async search(rootPath, query, scope) {
|
|
11
|
+
const { knowledge } = await createEngines(rootPath);
|
|
12
|
+
const all = await knowledge.search("", { limit: 100 });
|
|
13
|
+
if (!query && !scope)
|
|
14
|
+
return all;
|
|
15
|
+
const lower = query?.toLowerCase() ?? "";
|
|
16
|
+
return all.filter((e) => {
|
|
17
|
+
const nameMatch = !lower || e.title.toLowerCase().includes(lower) || e.content.toLowerCase().includes(lower);
|
|
18
|
+
const scopeMatch = !scope || scope === "all" || e.source === scope || e.id.startsWith(`${scope}:`);
|
|
19
|
+
return nameMatch && scopeMatch;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
async sync(rootPath, pluginName) {
|
|
23
|
+
const { knowledge } = await createEngines(rootPath);
|
|
24
|
+
const sources = await knowledge.getSources();
|
|
25
|
+
const targets = pluginName ? sources.filter((s) => s.source.name.includes(pluginName)) : sources;
|
|
26
|
+
return { synced: targets.length };
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
KnowledgeService = __decorate([
|
|
30
|
+
Injectable()
|
|
31
|
+
], KnowledgeService);
|
|
32
|
+
export { KnowledgeService };
|
|
33
|
+
//# sourceMappingURL=knowledge.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.service.js","sourceRoot":"","sources":["../../src/knowledge/knowledge.service.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAIvD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,KAAK,CAAC,MAAM,CAAC,QA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,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;IACpC,CAAC;CACF,CAAA;AAnBY,gBAAgB;IAD5B,UAAU,EAAE;GACA,gBAAgB,CAmB5B"}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAEL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAIlC,wBAAsB,SAAS,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAUjE"}
|
package/dist/main.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { NestFactory } from "@nestjs/core";
|
|
3
|
+
import { FastifyAdapter, } from "@nestjs/platform-fastify";
|
|
4
|
+
import { AppModule } from "./app.module.js";
|
|
5
|
+
import { HttpExceptionFilter } from "./common/http-exception.filter.js";
|
|
6
|
+
export async function bootstrap() {
|
|
7
|
+
const app = await NestFactory.create(AppModule, new FastifyAdapter());
|
|
8
|
+
app.setGlobalPrefix("api");
|
|
9
|
+
app.useGlobalFilters(new HttpExceptionFilter());
|
|
10
|
+
app.enableCors({ origin: true, credentials: true });
|
|
11
|
+
await app.listen({ port: 3100, host: "0.0.0.0" });
|
|
12
|
+
return app;
|
|
13
|
+
}
|
|
14
|
+
if (process.argv[1]?.endsWith("main.js") ||
|
|
15
|
+
process.argv[1]?.endsWith("main.ts")) {
|
|
16
|
+
bootstrap();
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,cAAc,GAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,KAAK,UAAU,SAAS;IAC7B,MAAM,GAAG,GAAG,MAAM,WAAW,CAAC,MAAM,CAClC,SAAS,EACT,IAAI,cAAc,EAAE,CACrB,CAAC;IACF,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC3B,GAAG,CAAC,gBAAgB,CAAC,IAAI,mBAAmB,EAAE,CAAC,CAAC;IAChD,GAAG,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAClD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,IACE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,EACpC,CAAC;IACD,SAAS,EAAE,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MemoryService } from "./memory.service.js";
|
|
2
|
+
export declare class MemoryController {
|
|
3
|
+
private readonly service;
|
|
4
|
+
constructor(service: MemoryService);
|
|
5
|
+
getAll(rootPath: string): Promise<import("./memory.service.js").MemoryData>;
|
|
6
|
+
update(rootPath: string, layer: string, key: string, body: {
|
|
7
|
+
value: unknown;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
ok: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
getCandidates(rootPath: string): Promise<unknown[]>;
|
|
12
|
+
approve(rootPath: string, id: string): Promise<{
|
|
13
|
+
approved: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
reject(rootPath: string, id: string): Promise<{
|
|
16
|
+
rejected: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=memory.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.controller.d.ts","sourceRoot":"","sources":["../../src/memory/memory.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,qBACa,gBAAgB;IACQ,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,aAAa;IAGpE,MAAM,CAAoB,QAAQ,EAAE,MAAM;IAG1C,MAAM,CAAoB,QAAQ,EAAE,MAAM,EAAkB,KAAK,EAAE,MAAM,EAAgB,GAAG,EAAE,MAAM,EAAU,IAAI,EAAE;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE;;;IAKtI,aAAa,CAAoB,QAAQ,EAAE,MAAM;IAGjD,OAAO,CAAoB,QAAQ,EAAE,MAAM,EAAe,EAAE,EAAE,MAAM;;;IAGpE,MAAM,CAAoB,QAAQ,EAAE,MAAM,EAAe,EAAE,EAAE,MAAM;;;CAC1E"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Controller, Get, Put, Post, Param, Body, Query, Inject } from "@nestjs/common";
|
|
14
|
+
import { MemoryService } from "./memory.service.js";
|
|
15
|
+
let MemoryController = class MemoryController {
|
|
16
|
+
constructor(service) {
|
|
17
|
+
this.service = service;
|
|
18
|
+
}
|
|
19
|
+
async getAll(rootPath) { return this.service.getAll(rootPath); }
|
|
20
|
+
async update(rootPath, layer, key, body) {
|
|
21
|
+
await this.service.update(rootPath, layer, key, body.value);
|
|
22
|
+
return { ok: true };
|
|
23
|
+
}
|
|
24
|
+
async getCandidates(rootPath) { return this.service.getCandidates(rootPath); }
|
|
25
|
+
async approve(rootPath, id) { await this.service.approveCandidate(rootPath, id); return { approved: true }; }
|
|
26
|
+
async reject(rootPath, id) { await this.service.rejectCandidate(rootPath, id); return { rejected: true }; }
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
Get(),
|
|
30
|
+
__param(0, Query("rootPath")),
|
|
31
|
+
__metadata("design:type", Function),
|
|
32
|
+
__metadata("design:paramtypes", [String]),
|
|
33
|
+
__metadata("design:returntype", Promise)
|
|
34
|
+
], MemoryController.prototype, "getAll", null);
|
|
35
|
+
__decorate([
|
|
36
|
+
Put(":layer/:key"),
|
|
37
|
+
__param(0, Query("rootPath")),
|
|
38
|
+
__param(1, Param("layer")),
|
|
39
|
+
__param(2, Param("key")),
|
|
40
|
+
__param(3, Body()),
|
|
41
|
+
__metadata("design:type", Function),
|
|
42
|
+
__metadata("design:paramtypes", [String, String, String, Object]),
|
|
43
|
+
__metadata("design:returntype", Promise)
|
|
44
|
+
], MemoryController.prototype, "update", null);
|
|
45
|
+
__decorate([
|
|
46
|
+
Get("candidates"),
|
|
47
|
+
__param(0, Query("rootPath")),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", [String]),
|
|
50
|
+
__metadata("design:returntype", Promise)
|
|
51
|
+
], MemoryController.prototype, "getCandidates", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
Post("candidates/:id/approve"),
|
|
54
|
+
__param(0, Query("rootPath")),
|
|
55
|
+
__param(1, Param("id")),
|
|
56
|
+
__metadata("design:type", Function),
|
|
57
|
+
__metadata("design:paramtypes", [String, String]),
|
|
58
|
+
__metadata("design:returntype", Promise)
|
|
59
|
+
], MemoryController.prototype, "approve", null);
|
|
60
|
+
__decorate([
|
|
61
|
+
Post("candidates/:id/reject"),
|
|
62
|
+
__param(0, Query("rootPath")),
|
|
63
|
+
__param(1, Param("id")),
|
|
64
|
+
__metadata("design:type", Function),
|
|
65
|
+
__metadata("design:paramtypes", [String, String]),
|
|
66
|
+
__metadata("design:returntype", Promise)
|
|
67
|
+
], MemoryController.prototype, "reject", null);
|
|
68
|
+
MemoryController = __decorate([
|
|
69
|
+
Controller("memory"),
|
|
70
|
+
__param(0, Inject(MemoryService)),
|
|
71
|
+
__metadata("design:paramtypes", [MemoryService])
|
|
72
|
+
], MemoryController);
|
|
73
|
+
export { MemoryController };
|
|
74
|
+
//# sourceMappingURL=memory.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.controller.js","sourceRoot":"","sources":["../../src/memory/memory.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAG7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAAoD,OAAsB;QAAtB,YAAO,GAAP,OAAO,CAAe;IAAG,CAAC;IAGxE,AAAN,KAAK,CAAC,MAAM,CAAoB,QAAgB,IA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A;;;;qDAAmE;AAGnG;IADL,IAAI,CAAC,wBAAwB,CAAC;IAChB,WAAA,KAAK,CAAC,UAAU,CAAC,CAAA;IAAoB,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;;;;+CAA8F;AAGvJ;IADL,IAAI,CAAC,uBAAuB,CAAC;IAChB,WAAA,KAAK,CAAC,UAAU,CAAC,CAAA;IAAoB,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;;;;8CAA6F;AAlBhJ,gBAAgB;IAD5B,UAAU,CAAC,QAAQ,CAAC;IAEN,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;qCAA2B,aAAa;GAD/D,gBAAgB,CAmB5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.module.d.ts","sourceRoot":"","sources":["../../src/memory/memory.module.ts"],"names":[],"mappings":"AAKA,qBACa,YAAY;CAAG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Module } from "@nestjs/common";
|
|
8
|
+
import { ContextModule } from "../context/context.module.js";
|
|
9
|
+
import { MemoryService } from "./memory.service.js";
|
|
10
|
+
import { MemoryController } from "./memory.controller.js";
|
|
11
|
+
let MemoryModule = class MemoryModule {
|
|
12
|
+
};
|
|
13
|
+
MemoryModule = __decorate([
|
|
14
|
+
Module({ imports: [ContextModule], controllers: [MemoryController], providers: [MemoryService], exports: [MemoryService] })
|
|
15
|
+
], MemoryModule);
|
|
16
|
+
export { MemoryModule };
|
|
17
|
+
//# sourceMappingURL=memory.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.module.js","sourceRoot":"","sources":["../../src/memory/memory.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAGnD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,YAAY;IADxB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;GAC/G,YAAY,CAAG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface MemoryData {
|
|
2
|
+
project: {
|
|
3
|
+
stack: string[];
|
|
4
|
+
conventions: Array<{
|
|
5
|
+
key: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}>;
|
|
8
|
+
metadata: Record<string, unknown>;
|
|
9
|
+
};
|
|
10
|
+
user: {
|
|
11
|
+
preferences: Record<string, unknown>;
|
|
12
|
+
stack: string[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare class MemoryService {
|
|
16
|
+
getAll(rootPath: string): Promise<MemoryData>;
|
|
17
|
+
update(rootPath: string, layer: string, key: string, value: unknown): Promise<void>;
|
|
18
|
+
getCandidates(rootPath: string): Promise<unknown[]>;
|
|
19
|
+
approveCandidate(rootPath: string, id: string): Promise<void>;
|
|
20
|
+
rejectCandidate(rootPath: string, id: string): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=memory.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.service.d.ts","sourceRoot":"","sources":["../../src/memory/memory.service.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,WAAW,EAAE,KAAK,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC;IACpH,IAAI,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CACjE;AAED,qBACa,aAAa;IAClB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAU7C,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAanF,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAKnD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK7D,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAInE"}
|