@solidxai/core 0.1.8-beta.0 → 0.1.8-beta.1
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/controllers/agent-event.controller.d.ts +35 -0
- package/dist/controllers/agent-event.controller.d.ts.map +1 -0
- package/dist/controllers/agent-event.controller.js +147 -0
- package/dist/controllers/agent-event.controller.js.map +1 -0
- package/dist/controllers/agent-session.controller.d.ts +35 -0
- package/dist/controllers/agent-session.controller.d.ts.map +1 -0
- package/dist/controllers/agent-session.controller.js +147 -0
- package/dist/controllers/agent-session.controller.js.map +1 -0
- package/dist/dtos/create-agent-event.dto.d.ts +19 -0
- package/dist/dtos/create-agent-event.dto.d.ts.map +1 -0
- package/dist/dtos/create-agent-event.dto.js +118 -0
- package/dist/dtos/create-agent-event.dto.js.map +1 -0
- package/dist/dtos/create-agent-session.dto.d.ts +15 -0
- package/dist/dtos/create-agent-session.dto.d.ts.map +1 -0
- package/dist/dtos/create-agent-session.dto.js +94 -0
- package/dist/dtos/create-agent-session.dto.js.map +1 -0
- package/dist/dtos/update-agent-event.dto.d.ts +19 -0
- package/dist/dtos/update-agent-event.dto.d.ts.map +1 -0
- package/dist/dtos/update-agent-event.dto.js +117 -0
- package/dist/dtos/update-agent-event.dto.js.map +1 -0
- package/dist/dtos/update-agent-session.dto.d.ts +15 -0
- package/dist/dtos/update-agent-session.dto.d.ts.map +1 -0
- package/dist/dtos/update-agent-session.dto.js +93 -0
- package/dist/dtos/update-agent-session.dto.js.map +1 -0
- package/dist/entities/agent-event.entity.d.ts +28 -0
- package/dist/entities/agent-event.entity.d.ts.map +1 -0
- package/dist/entities/agent-event.entity.js +114 -0
- package/dist/entities/agent-event.entity.js.map +1 -0
- package/dist/entities/agent-session.entity.d.ts +23 -0
- package/dist/entities/agent-session.entity.d.ts.map +1 -0
- package/dist/entities/agent-session.entity.js +94 -0
- package/dist/entities/agent-session.entity.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/repository/agent-event.repository.d.ts +12 -0
- package/dist/repository/agent-event.repository.d.ts.map +1 -0
- package/dist/repository/agent-event.repository.js +34 -0
- package/dist/repository/agent-event.repository.js.map +1 -0
- package/dist/repository/agent-session.repository.d.ts +12 -0
- package/dist/repository/agent-session.repository.d.ts.map +1 -0
- package/dist/repository/agent-session.repository.js +34 -0
- package/dist/repository/agent-session.repository.js.map +1 -0
- package/dist/seeders/seed-data/solid-core-metadata.json +834 -20
- package/dist/services/agent-event.service.d.ts +12 -0
- package/dist/services/agent-event.service.d.ts.map +1 -0
- package/dist/services/agent-event.service.js +38 -0
- package/dist/services/agent-event.service.js.map +1 -0
- package/dist/services/agent-session.service.d.ts +12 -0
- package/dist/services/agent-session.service.d.ts.map +1 -0
- package/dist/services/agent-session.service.js +38 -0
- package/dist/services/agent-session.service.js.map +1 -0
- package/dist/services/model-metadata.service.d.ts.map +1 -1
- package/dist/services/model-metadata.service.js +6 -0
- package/dist/services/model-metadata.service.js.map +1 -1
- package/dist/services/module-metadata.service.d.ts.map +1 -1
- package/dist/services/module-metadata.service.js +6 -0
- package/dist/services/module-metadata.service.js.map +1 -1
- package/dist/services/settings/default-settings-provider.service.js +2 -2
- package/dist/services/settings/default-settings-provider.service.js.map +1 -1
- package/dist/services/user-activity-history.service.d.ts +1 -0
- package/dist/services/user-activity-history.service.d.ts.map +1 -1
- package/dist/services/user-activity-history.service.js +17 -10
- package/dist/services/user-activity-history.service.js.map +1 -1
- package/dist/services/view-metadata.service.js +1 -1
- package/dist/services/view-metadata.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +16 -0
- package/dist/solid-core.module.js.map +1 -1
- package/package.json +1 -1
- package/src/controllers/agent-event.controller.ts +70 -0
- package/src/controllers/agent-session.controller.ts +70 -0
- package/src/dtos/create-agent-event.dto.ts +84 -0
- package/src/dtos/create-agent-session.dto.ts +64 -0
- package/src/dtos/update-agent-event.dto.ts +83 -0
- package/src/dtos/update-agent-session.dto.ts +63 -0
- package/src/entities/agent-event.entity.ts +88 -0
- package/src/entities/agent-session.entity.ts +71 -0
- package/src/index.ts +8 -0
- package/src/repository/agent-event.repository.ts +17 -0
- package/src/repository/agent-session.repository.ts +17 -0
- package/src/seeders/seed-data/solid-core-metadata.json +834 -20
- package/src/services/agent-event.service.ts +19 -0
- package/src/services/agent-session.service.ts +19 -0
- package/src/services/model-metadata.service.ts +1 -0
- package/src/services/module-metadata.service.ts +1 -2
- package/src/services/settings/default-settings-provider.service.ts +2 -2
- package/src/services/user-activity-history.service.ts +16 -10
- package/src/services/view-metadata.service.ts +1 -1
- package/src/solid-core.module.ts +16 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateAgentSessionDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class CreateAgentSessionDto {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { sessionId: { required: true, type: () => String }, userId: { required: true, type: () => Number }, projectRoot: { required: true, type: () => String }, modelName: { required: true, type: () => String }, status: { required: true, type: () => String }, totalCost: { required: true, type: () => Number }, totalSteps: { required: true, type: () => Number }, totalInputTokens: { required: true, type: () => Number }, totalOutputTokens: { required: true, type: () => Number }, summary: { required: true, type: () => String }, createdAt: { required: true, type: () => Date }, updatedAt: { required: true, type: () => Date } };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.CreateAgentSessionDto = CreateAgentSessionDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, swagger_1.ApiProperty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateAgentSessionDto.prototype, "sessionId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsInt)(),
|
|
31
|
+
(0, swagger_1.ApiProperty)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], CreateAgentSessionDto.prototype, "userId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, swagger_1.ApiProperty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateAgentSessionDto.prototype, "projectRoot", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, swagger_1.ApiProperty)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CreateAgentSessionDto.prototype, "modelName", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, swagger_1.ApiProperty)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateAgentSessionDto.prototype, "status", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsNumber)(),
|
|
55
|
+
(0, swagger_1.ApiProperty)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], CreateAgentSessionDto.prototype, "totalCost", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsInt)(),
|
|
61
|
+
(0, swagger_1.ApiProperty)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], CreateAgentSessionDto.prototype, "totalSteps", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
(0, class_validator_1.IsInt)(),
|
|
67
|
+
(0, swagger_1.ApiProperty)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], CreateAgentSessionDto.prototype, "totalInputTokens", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
(0, class_validator_1.IsInt)(),
|
|
73
|
+
(0, swagger_1.ApiProperty)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], CreateAgentSessionDto.prototype, "totalOutputTokens", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsString)(),
|
|
79
|
+
(0, swagger_1.ApiProperty)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], CreateAgentSessionDto.prototype, "summary", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.IsDate)(),
|
|
85
|
+
(0, swagger_1.ApiProperty)(),
|
|
86
|
+
__metadata("design:type", Date)
|
|
87
|
+
], CreateAgentSessionDto.prototype, "createdAt", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
|
90
|
+
(0, class_validator_1.IsDate)(),
|
|
91
|
+
(0, swagger_1.ApiProperty)(),
|
|
92
|
+
__metadata("design:type", Date)
|
|
93
|
+
], CreateAgentSessionDto.prototype, "updatedAt", void 0);
|
|
94
|
+
//# sourceMappingURL=create-agent-session.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-agent-session.dto.js","sourceRoot":"","sources":["../../src/dtos/create-agent-session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA4F;AAE5F,MAAa,qBAAqB;;;;CA4DjC;AA5DD,sDA4DC;AAxDC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;qDACC;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACC;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;yDACK;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;+DACW;AAKzB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;gEACY;AAK1B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACE;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;8BACH,IAAI;wDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;8BACH,IAAI;wDAAC","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsDate, IsInt, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';\n\nexport class CreateAgentSessionDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n sessionId: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n projectRoot: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n modelName: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n status: string;\n\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n totalCost: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalSteps: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalInputTokens: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalOutputTokens: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n summary: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n createdAt: Date;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n updatedAt: Date;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class UpdateAgentEventDto {
|
|
2
|
+
id: number;
|
|
3
|
+
sessionId: string;
|
|
4
|
+
turnNumber: number;
|
|
5
|
+
stepNumber: number;
|
|
6
|
+
eventType: string;
|
|
7
|
+
eventData: string;
|
|
8
|
+
content: string;
|
|
9
|
+
toolName: string;
|
|
10
|
+
toolArguments: string;
|
|
11
|
+
toolOutput: string;
|
|
12
|
+
toolReturncode: number;
|
|
13
|
+
durationMs: number;
|
|
14
|
+
cost: number;
|
|
15
|
+
inputTokens: number;
|
|
16
|
+
outputTokens: number;
|
|
17
|
+
modelUsed: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=update-agent-event.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-event.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-event.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,mBAAmB;IAG9B,EAAE,EAAE,MAAM,CAAC;IAKX,SAAS,EAAE,MAAM,CAAC;IAKlB,UAAU,EAAE,MAAM,CAAC;IAKnB,UAAU,EAAE,MAAM,CAAC;IAKnB,SAAS,EAAE,MAAM,CAAC;IAKlB,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,EAAE,MAAM,CAAC;IAKhB,QAAQ,EAAE,MAAM,CAAC;IAKjB,aAAa,EAAE,MAAM,CAAC;IAKtB,UAAU,EAAE,MAAM,CAAC;IAKnB,cAAc,EAAE,MAAM,CAAC;IAKvB,UAAU,EAAE,MAAM,CAAC;IAKnB,IAAI,EAAE,MAAM,CAAC;IAKb,WAAW,EAAE,MAAM,CAAC;IAKpB,YAAY,EAAE,MAAM,CAAC;IAKrB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateAgentEventDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class UpdateAgentEventDto {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { id: { required: true, type: () => Number }, sessionId: { required: true, type: () => String }, turnNumber: { required: true, type: () => Number }, stepNumber: { required: true, type: () => Number }, eventType: { required: true, type: () => String }, eventData: { required: true, type: () => String }, content: { required: true, type: () => String }, toolName: { required: true, type: () => String }, toolArguments: { required: true, type: () => String }, toolOutput: { required: true, type: () => String }, toolReturncode: { required: true, type: () => Number }, durationMs: { required: true, type: () => Number }, cost: { required: true, type: () => Number }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, modelUsed: { required: true, type: () => String } };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateAgentEventDto = UpdateAgentEventDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsInt)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UpdateAgentEventDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateAgentEventDto.prototype, "sessionId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsInt)(),
|
|
36
|
+
(0, swagger_1.ApiProperty)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], UpdateAgentEventDto.prototype, "turnNumber", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsInt)(),
|
|
42
|
+
(0, swagger_1.ApiProperty)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], UpdateAgentEventDto.prototype, "stepNumber", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, swagger_1.ApiProperty)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], UpdateAgentEventDto.prototype, "eventType", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, swagger_1.ApiProperty)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpdateAgentEventDto.prototype, "eventData", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, swagger_1.ApiProperty)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], UpdateAgentEventDto.prototype, "content", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, swagger_1.ApiProperty)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UpdateAgentEventDto.prototype, "toolName", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
(0, swagger_1.ApiProperty)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], UpdateAgentEventDto.prototype, "toolArguments", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
(0, swagger_1.ApiProperty)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], UpdateAgentEventDto.prototype, "toolOutput", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsInt)(),
|
|
84
|
+
(0, swagger_1.ApiProperty)(),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], UpdateAgentEventDto.prototype, "toolReturncode", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsNumber)(),
|
|
90
|
+
(0, swagger_1.ApiProperty)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], UpdateAgentEventDto.prototype, "durationMs", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
95
|
+
(0, class_validator_1.IsNumber)(),
|
|
96
|
+
(0, swagger_1.ApiProperty)(),
|
|
97
|
+
__metadata("design:type", Number)
|
|
98
|
+
], UpdateAgentEventDto.prototype, "cost", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_validator_1.IsInt)(),
|
|
102
|
+
(0, swagger_1.ApiProperty)(),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], UpdateAgentEventDto.prototype, "inputTokens", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_validator_1.IsOptional)(),
|
|
107
|
+
(0, class_validator_1.IsInt)(),
|
|
108
|
+
(0, swagger_1.ApiProperty)(),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], UpdateAgentEventDto.prototype, "outputTokens", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_validator_1.IsOptional)(),
|
|
113
|
+
(0, class_validator_1.IsString)(),
|
|
114
|
+
(0, swagger_1.ApiProperty)(),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], UpdateAgentEventDto.prototype, "modelUsed", void 0);
|
|
117
|
+
//# sourceMappingURL=update-agent-event.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-event.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-event.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAwE;AAExE,MAAa,mBAAmB;;;;CA+E/B;AA/ED,kDA+EC;AA5EC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;+CACG;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACK;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACK;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;oDACE;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACG;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACQ;AAKtB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uDACK;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;2DACS;AAKvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uDACK;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;iDACD;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;wDACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;yDACO;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACI","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsInt, IsNumber, IsOptional, IsString } from 'class-validator';\n\nexport class UpdateAgentEventDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n sessionId: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n turnNumber: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n stepNumber: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n eventType: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n eventData: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n content: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n toolName: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n toolArguments: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n toolOutput: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n toolReturncode: number;\n\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n durationMs: number;\n\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n cost: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n inputTokens: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n outputTokens: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n modelUsed: string;\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class UpdateAgentSessionDto {
|
|
2
|
+
id: number;
|
|
3
|
+
sessionId: string;
|
|
4
|
+
userId: number;
|
|
5
|
+
projectRoot: string;
|
|
6
|
+
modelName: string;
|
|
7
|
+
status: string;
|
|
8
|
+
totalCost: number;
|
|
9
|
+
totalSteps: number;
|
|
10
|
+
totalInputTokens: number;
|
|
11
|
+
totalOutputTokens: number;
|
|
12
|
+
summary: string;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=update-agent-session.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-session.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-agent-session.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,qBAAqB;IAGhC,EAAE,EAAE,MAAM,CAAC;IAKX,SAAS,EAAE,MAAM,CAAC;IAKlB,MAAM,EAAE,MAAM,CAAC;IAKf,WAAW,EAAE,MAAM,CAAC;IAKpB,SAAS,EAAE,MAAM,CAAC;IAKlB,MAAM,EAAE,MAAM,CAAC;IAKf,SAAS,EAAE,MAAM,CAAC;IAKlB,UAAU,EAAE,MAAM,CAAC;IAKnB,gBAAgB,EAAE,MAAM,CAAC;IAKzB,iBAAiB,EAAE,MAAM,CAAC;IAK1B,OAAO,EAAE,MAAM,CAAC;IAKhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateAgentSessionDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class UpdateAgentSessionDto {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { id: { required: true, type: () => Number }, sessionId: { required: true, type: () => String }, userId: { required: true, type: () => Number }, projectRoot: { required: true, type: () => String }, modelName: { required: true, type: () => String }, status: { required: true, type: () => String }, totalCost: { required: true, type: () => Number }, totalSteps: { required: true, type: () => Number }, totalInputTokens: { required: true, type: () => Number }, totalOutputTokens: { required: true, type: () => Number }, summary: { required: true, type: () => String }, updatedAt: { required: true, type: () => Date } };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateAgentSessionDto = UpdateAgentSessionDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
(0, class_validator_1.IsInt)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UpdateAgentSessionDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateAgentSessionDto.prototype, "sessionId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsInt)(),
|
|
36
|
+
(0, swagger_1.ApiProperty)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], UpdateAgentSessionDto.prototype, "userId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, swagger_1.ApiProperty)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], UpdateAgentSessionDto.prototype, "projectRoot", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, swagger_1.ApiProperty)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], UpdateAgentSessionDto.prototype, "modelName", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, swagger_1.ApiProperty)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpdateAgentSessionDto.prototype, "status", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsNumber)(),
|
|
60
|
+
(0, swagger_1.ApiProperty)(),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], UpdateAgentSessionDto.prototype, "totalCost", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsInt)(),
|
|
66
|
+
(0, swagger_1.ApiProperty)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], UpdateAgentSessionDto.prototype, "totalSteps", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsInt)(),
|
|
72
|
+
(0, swagger_1.ApiProperty)(),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], UpdateAgentSessionDto.prototype, "totalInputTokens", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsInt)(),
|
|
78
|
+
(0, swagger_1.ApiProperty)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], UpdateAgentSessionDto.prototype, "totalOutputTokens", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
84
|
+
(0, swagger_1.ApiProperty)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], UpdateAgentSessionDto.prototype, "summary", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsDate)(),
|
|
90
|
+
(0, swagger_1.ApiProperty)(),
|
|
91
|
+
__metadata("design:type", Date)
|
|
92
|
+
], UpdateAgentSessionDto.prototype, "updatedAt", void 0);
|
|
93
|
+
//# sourceMappingURL=update-agent-session.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-agent-session.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAgF;AAEhF,MAAa,qBAAqB;;;;CA2DjC;AA3DD,sDA2DC;AAxDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACG;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;qDACC;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;0DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;qDACC;AAKf;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wDACI;AAKlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;yDACK;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;+DACW;AAKzB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;gEACY;AAK1B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sDACE;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;8BACH,IAAI;wDAAC","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsDate, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';\n\nexport class UpdateAgentSessionDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n sessionId: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n projectRoot: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n modelName: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n totalCost: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalSteps: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalInputTokens: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalOutputTokens: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n summary: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n updatedAt: Date;\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class AgentEvent {
|
|
2
|
+
id: number;
|
|
3
|
+
sessionId: string;
|
|
4
|
+
turnNumber: number;
|
|
5
|
+
stepNumber: number;
|
|
6
|
+
eventType: string;
|
|
7
|
+
eventData: string;
|
|
8
|
+
content: string;
|
|
9
|
+
toolName: string;
|
|
10
|
+
toolArguments: string;
|
|
11
|
+
toolOutput: string;
|
|
12
|
+
toolReturncode: number;
|
|
13
|
+
durationMs: number;
|
|
14
|
+
cost: number;
|
|
15
|
+
inputTokens: number;
|
|
16
|
+
outputTokens: number;
|
|
17
|
+
modelUsed: string;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
deletedAt: Date;
|
|
21
|
+
deletedTracker: string;
|
|
22
|
+
publishedAt: Date;
|
|
23
|
+
localeName: string;
|
|
24
|
+
defaultEntityLocaleId: number;
|
|
25
|
+
createdBy: number;
|
|
26
|
+
updatedBy: number;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=agent-event.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-event.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-event.entity.ts"],"names":[],"mappings":"AAGA,qBAEa,UAAU;IAGrB,EAAE,EAAE,MAAM,CAAC;IAKX,SAAS,EAAE,MAAM,CAAC;IAIlB,UAAU,EAAE,MAAM,CAAC;IAInB,UAAU,EAAE,MAAM,CAAC;IAKnB,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAKhB,QAAQ,EAAE,MAAM,CAAC;IAIjB,aAAa,EAAE,MAAM,CAAC;IAItB,UAAU,EAAE,MAAM,CAAC;IAInB,cAAc,EAAE,MAAM,CAAC;IAIvB,UAAU,EAAE,MAAM,CAAC;IAInB,IAAI,EAAE,MAAM,CAAC;IAIb,WAAW,EAAE,MAAM,CAAC;IAIpB,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,MAAM,CAAC;IAIlB,SAAS,EAAE,IAAI,CAAC;IAIhB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,IAAI,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentEvent = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
let AgentEvent = class AgentEvent {
|
|
17
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
+
return { id: { required: true, type: () => Number }, sessionId: { required: true, type: () => String }, turnNumber: { required: true, type: () => Number }, stepNumber: { required: true, type: () => Number }, eventType: { required: true, type: () => String }, eventData: { required: true, type: () => String }, content: { required: true, type: () => String }, toolName: { required: true, type: () => String }, toolArguments: { required: true, type: () => String }, toolOutput: { required: true, type: () => String }, toolReturncode: { required: true, type: () => Number }, durationMs: { required: true, type: () => Number }, cost: { required: true, type: () => Number }, inputTokens: { required: true, type: () => Number }, outputTokens: { required: true, type: () => Number }, modelUsed: { required: true, type: () => String }, createdAt: { required: true, type: () => Date }, updatedAt: { required: true, type: () => Date }, deletedAt: { required: true, type: () => Date }, deletedTracker: { required: true, type: () => String }, publishedAt: { required: true, type: () => Date }, localeName: { required: true, type: () => String }, defaultEntityLocaleId: { required: true, type: () => Number }, createdBy: { required: true, type: () => Number }, updatedBy: { required: true, type: () => Number } };
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.AgentEvent = AgentEvent;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'integer' }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], AgentEvent.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, typeorm_1.Index)(),
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 36, name: 'session_id' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AgentEvent.prototype, "sessionId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'integer', name: 'turn_number' }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], AgentEvent.prototype, "turnNumber", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true, name: 'step_number' }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], AgentEvent.prototype, "stepNumber", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, typeorm_1.Index)(),
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 64, name: 'event_type' }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], AgentEvent.prototype, "eventType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true, name: 'event_data' }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AgentEvent.prototype, "eventData", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true, name: 'content' }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], AgentEvent.prototype, "content", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
(0, typeorm_1.Index)(),
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 128, nullable: true, name: 'tool_name' }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], AgentEvent.prototype, "toolName", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true, name: 'tool_arguments' }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], AgentEvent.prototype, "toolArguments", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true, name: 'tool_output' }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], AgentEvent.prototype, "toolOutput", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_transformer_1.Expose)(),
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true, name: 'tool_returncode' }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], AgentEvent.prototype, "toolReturncode", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'double precision', nullable: true, name: 'duration_ms' }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], AgentEvent.prototype, "durationMs", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'double precision', nullable: true, name: 'cost' }),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], AgentEvent.prototype, "cost", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_transformer_1.Expose)(),
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true, name: 'input_tokens' }),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], AgentEvent.prototype, "inputTokens", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'integer', nullable: true, name: 'output_tokens' }),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], AgentEvent.prototype, "outputTokens", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, class_transformer_1.Expose)(),
|
|
102
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true, name: 'model_used' }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], AgentEvent.prototype, "modelUsed", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, class_transformer_1.Expose)(),
|
|
107
|
+
(0, typeorm_1.Column)({ type: 'timestamp without time zone', name: 'created_at' }),
|
|
108
|
+
__metadata("design:type", Date)
|
|
109
|
+
], AgentEvent.prototype, "createdAt", void 0);
|
|
110
|
+
exports.AgentEvent = AgentEvent = __decorate([
|
|
111
|
+
(0, class_transformer_1.Exclude)(),
|
|
112
|
+
(0, typeorm_1.Entity)({ name: 'ss_agent_events', synchronize: false })
|
|
113
|
+
], AgentEvent);
|
|
114
|
+
//# sourceMappingURL=agent-event.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-event.entity.js","sourceRoot":"","sources":["../../src/entities/agent-event.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAwE;AACxE,yDAAoD;AAI7C,IAAM,UAAU,GAAhB,MAAM,UAAU;;;;CAkFtB,CAAA;AAlFY,gCAAU;AAGrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sCACjC;AAKX;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;6CAC1C;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;8CAC9B;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;8CAC9C;AAKnB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;6CAC1C;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;6CAC3C;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CAC1C;AAKhB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;4CAC3D;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;iDAC3C;AAItB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;8CAC3C;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;kDAC9C;AAIvB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;8CACvD;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACtD;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;+CAC9C;AAIpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;;gDAC9C;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;6CAC3D;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,6BAA6B,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACzD,IAAI;6CAAC;qBAtEL,UAAU;IAFtB,IAAA,2BAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;GAC3C,UAAU,CAkFtB","sourcesContent":["import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';\nimport { Expose, Exclude } from 'class-transformer';\n\n@Exclude()\n@Entity({ name: 'ss_agent_events', synchronize: false })\nexport class AgentEvent {\n @Expose()\n @PrimaryGeneratedColumn({ type: 'integer' })\n id: number;\n\n @Expose()\n @Index()\n @Column({ type: 'varchar', length: 36, name: 'session_id' })\n sessionId: string;\n\n @Expose()\n @Column({ type: 'integer', name: 'turn_number' })\n turnNumber: number;\n\n @Expose()\n @Column({ type: 'integer', nullable: true, name: 'step_number' })\n stepNumber: number;\n\n @Expose()\n @Index()\n @Column({ type: 'varchar', length: 64, name: 'event_type' })\n eventType: string;\n\n @Expose()\n @Column({ type: 'text', nullable: true, name: 'event_data' })\n eventData: string;\n\n @Expose()\n @Column({ type: 'text', nullable: true, name: 'content' })\n content: string;\n\n @Expose()\n @Index()\n @Column({ type: 'varchar', length: 128, nullable: true, name: 'tool_name' })\n toolName: string;\n\n @Expose()\n @Column({ type: 'text', nullable: true, name: 'tool_arguments' })\n toolArguments: string;\n\n @Expose()\n @Column({ type: 'text', nullable: true, name: 'tool_output' })\n toolOutput: string;\n\n @Expose()\n @Column({ type: 'integer', nullable: true, name: 'tool_returncode' })\n toolReturncode: number;\n\n @Expose()\n @Column({ type: 'double precision', nullable: true, name: 'duration_ms' })\n durationMs: number;\n\n @Expose()\n @Column({ type: 'double precision', nullable: true, name: 'cost' })\n cost: number;\n\n @Expose()\n @Column({ type: 'integer', nullable: true, name: 'input_tokens' })\n inputTokens: number;\n\n @Expose()\n @Column({ type: 'integer', nullable: true, name: 'output_tokens' })\n outputTokens: number;\n\n @Expose()\n @Column({ type: 'varchar', length: 255, nullable: true, name: 'model_used' })\n modelUsed: string;\n\n @Expose()\n @Column({ type: 'timestamp without time zone', name: 'created_at' })\n createdAt: Date;\n\n // The following properties satisfy CRUDService<T extends CommonEntity> structural typing\n // They are not mapped to DB columns (synchronize: false ensures no schema changes)\n updatedAt: Date;\n deletedAt: Date;\n deletedTracker: string;\n publishedAt: Date;\n localeName: string;\n defaultEntityLocaleId: number;\n createdBy: number;\n updatedBy: number;\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class AgentSession {
|
|
2
|
+
id: number;
|
|
3
|
+
sessionId: string;
|
|
4
|
+
userId: number;
|
|
5
|
+
projectRoot: string;
|
|
6
|
+
modelName: string;
|
|
7
|
+
status: string;
|
|
8
|
+
totalCost: number;
|
|
9
|
+
totalSteps: number;
|
|
10
|
+
totalInputTokens: number;
|
|
11
|
+
totalOutputTokens: number;
|
|
12
|
+
summary: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
deletedAt: Date;
|
|
16
|
+
deletedTracker: string;
|
|
17
|
+
publishedAt: Date;
|
|
18
|
+
localeName: string;
|
|
19
|
+
defaultEntityLocaleId: number;
|
|
20
|
+
createdBy: number;
|
|
21
|
+
updatedBy: number;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=agent-session.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-session.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-session.entity.ts"],"names":[],"mappings":"AAGA,qBAEa,YAAY;IAGvB,EAAE,EAAE,MAAM,CAAC;IAKX,SAAS,EAAE,MAAM,CAAC;IAKlB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;IAKlB,MAAM,EAAE,MAAM,CAAC;IAIf,SAAS,EAAE,MAAM,CAAC;IAIlB,UAAU,EAAE,MAAM,CAAC;IAInB,gBAAgB,EAAE,MAAM,CAAC;IAIzB,iBAAiB,EAAE,MAAM,CAAC;IAI1B,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,IAAI,CAAC;IAIhB,SAAS,EAAE,IAAI,CAAC;IAIhB,SAAS,EAAE,IAAI,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,IAAI,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|