@solidxai/core 0.1.22 → 0.1.23-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/CHANGELOG.md +1604 -0
- package/dist/controllers/agent-browser-session.controller.d.ts +24 -0
- package/dist/controllers/agent-browser-session.controller.d.ts.map +1 -0
- package/dist/controllers/agent-browser-session.controller.js +175 -0
- package/dist/controllers/agent-browser-session.controller.js.map +1 -0
- package/dist/controllers/agent-config-version.controller.d.ts +29 -0
- package/dist/controllers/agent-config-version.controller.d.ts.map +1 -1
- package/dist/controllers/agent-config-version.controller.js +1 -1
- package/dist/controllers/agent-config-version.controller.js.map +1 -1
- package/dist/controllers/agent-session.controller.d.ts +1 -1
- package/dist/controllers/agent-session.controller.d.ts.map +1 -1
- package/dist/controllers/agent-session.controller.js +13 -9
- package/dist/controllers/agent-session.controller.js.map +1 -1
- package/dist/dtos/create-agent-browser-session.dto.d.ts +16 -0
- package/dist/dtos/create-agent-browser-session.dto.d.ts.map +1 -0
- package/dist/dtos/create-agent-browser-session.dto.js +107 -0
- package/dist/dtos/create-agent-browser-session.dto.js.map +1 -0
- package/dist/dtos/create-agent-job.dto.d.ts +1 -0
- package/dist/dtos/create-agent-job.dto.d.ts.map +1 -1
- package/dist/dtos/create-agent-job.dto.js +7 -1
- package/dist/dtos/create-agent-job.dto.js.map +1 -1
- package/dist/dtos/create-agent-session.dto.d.ts +5 -0
- package/dist/dtos/create-agent-session.dto.d.ts.map +1 -1
- package/dist/dtos/create-agent-session.dto.js +28 -1
- package/dist/dtos/create-agent-session.dto.js.map +1 -1
- package/dist/dtos/create-sms-template.dto.d.ts +1 -0
- package/dist/dtos/create-sms-template.dto.d.ts.map +1 -1
- package/dist/dtos/create-sms-template.dto.js +8 -1
- package/dist/dtos/create-sms-template.dto.js.map +1 -1
- package/dist/dtos/test-run-request.dto.d.ts +1 -0
- package/dist/dtos/test-run-request.dto.d.ts.map +1 -1
- package/dist/dtos/test-run-request.dto.js +6 -1
- package/dist/dtos/test-run-request.dto.js.map +1 -1
- package/dist/dtos/update-agent-browser-session.dto.d.ts +17 -0
- package/dist/dtos/update-agent-browser-session.dto.d.ts.map +1 -0
- package/dist/dtos/update-agent-browser-session.dto.js +107 -0
- package/dist/dtos/update-agent-browser-session.dto.js.map +1 -0
- package/dist/dtos/update-agent-job.dto.d.ts +1 -0
- package/dist/dtos/update-agent-job.dto.d.ts.map +1 -1
- package/dist/dtos/update-agent-job.dto.js +7 -1
- package/dist/dtos/update-agent-job.dto.js.map +1 -1
- package/dist/dtos/update-agent-session.dto.d.ts +5 -0
- package/dist/dtos/update-agent-session.dto.d.ts.map +1 -1
- package/dist/dtos/update-agent-session.dto.js +28 -1
- package/dist/dtos/update-agent-session.dto.js.map +1 -1
- package/dist/dtos/update-sms-template.dto.d.ts +1 -0
- package/dist/dtos/update-sms-template.dto.d.ts.map +1 -1
- package/dist/dtos/update-sms-template.dto.js +7 -1
- package/dist/dtos/update-sms-template.dto.js.map +1 -1
- package/dist/entities/agent-browser-session.entity.d.ts +18 -0
- package/dist/entities/agent-browser-session.entity.d.ts.map +1 -0
- package/dist/entities/agent-browser-session.entity.js +92 -0
- package/dist/entities/agent-browser-session.entity.js.map +1 -0
- package/dist/entities/agent-job.entity.d.ts +1 -0
- package/dist/entities/agent-job.entity.d.ts.map +1 -1
- package/dist/entities/agent-job.entity.js +5 -1
- package/dist/entities/agent-job.entity.js.map +1 -1
- package/dist/entities/agent-session.entity.d.ts +4 -1
- package/dist/entities/agent-session.entity.d.ts.map +1 -1
- package/dist/entities/agent-session.entity.js +10 -1
- package/dist/entities/agent-session.entity.js.map +1 -1
- package/dist/entities/sms-template.entity.d.ts +1 -0
- package/dist/entities/sms-template.entity.d.ts.map +1 -1
- package/dist/entities/sms-template.entity.js +6 -1
- package/dist/entities/sms-template.entity.js.map +1 -1
- package/dist/helpers/agent-general-config-comparison.d.ts +35 -0
- package/dist/helpers/agent-general-config-comparison.d.ts.map +1 -0
- package/dist/helpers/agent-general-config-comparison.js +27 -0
- package/dist/helpers/agent-general-config-comparison.js.map +1 -0
- package/dist/helpers/agent-general-config-comparison.spec.d.ts +2 -0
- package/dist/helpers/agent-general-config-comparison.spec.d.ts.map +1 -0
- package/dist/helpers/agent-general-config-comparison.spec.js +42 -0
- package/dist/helpers/agent-general-config-comparison.spec.js.map +1 -0
- package/dist/helpers/agent-tool-comparison.d.ts +40 -0
- package/dist/helpers/agent-tool-comparison.d.ts.map +1 -0
- package/dist/helpers/agent-tool-comparison.js +78 -0
- package/dist/helpers/agent-tool-comparison.js.map +1 -0
- package/dist/helpers/agent-tool-comparison.spec.d.ts +2 -0
- package/dist/helpers/agent-tool-comparison.spec.d.ts.map +1 -0
- package/dist/helpers/agent-tool-comparison.spec.js +61 -0
- package/dist/helpers/agent-tool-comparison.spec.js.map +1 -0
- package/dist/helpers/module-metadata-helper.service.d.ts.map +1 -1
- package/dist/helpers/module-metadata-helper.service.js +6 -0
- package/dist/helpers/module-metadata-helper.service.js.map +1 -1
- package/dist/helpers/module-metadata-helper.service.spec.d.ts +2 -0
- package/dist/helpers/module-metadata-helper.service.spec.d.ts.map +1 -0
- package/dist/helpers/module-metadata-helper.service.spec.js +68 -0
- package/dist/helpers/module-metadata-helper.service.spec.js.map +1 -0
- package/dist/helpers/schematic.service.d.ts.map +1 -1
- package/dist/helpers/schematic.service.js +11 -4
- package/dist/helpers/schematic.service.js.map +1 -1
- package/dist/helpers/schematic.service.spec.d.ts +2 -0
- package/dist/helpers/schematic.service.spec.d.ts.map +1 -0
- package/dist/helpers/schematic.service.spec.js +59 -0
- package/dist/helpers/schematic.service.spec.js.map +1 -0
- package/dist/helpers/solid-core-dev-paths.d.ts +5 -0
- package/dist/helpers/solid-core-dev-paths.d.ts.map +1 -0
- package/dist/helpers/solid-core-dev-paths.js +59 -0
- package/dist/helpers/solid-core-dev-paths.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/jobs/database/test-run-queue-subscriber-database.service.d.ts.map +1 -1
- package/dist/jobs/database/test-run-queue-subscriber-database.service.js +1 -0
- package/dist/jobs/database/test-run-queue-subscriber-database.service.js.map +1 -1
- package/dist/repository/agent-browser-session.repository.d.ts +12 -0
- package/dist/repository/agent-browser-session.repository.d.ts.map +1 -0
- package/dist/repository/agent-browser-session.repository.js +39 -0
- package/dist/repository/agent-browser-session.repository.js.map +1 -0
- package/dist/resources/admin-embed/solid-admin-embed.js +1 -1
- package/dist/seeders/module-metadata-seeder.service.d.ts.map +1 -1
- package/dist/seeders/module-metadata-seeder.service.js +9 -1
- package/dist/seeders/module-metadata-seeder.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +888 -100
- package/dist/services/agent-browser-session.service.d.ts +12 -0
- package/dist/services/agent-browser-session.service.d.ts.map +1 -0
- package/dist/services/agent-browser-session.service.js +38 -0
- package/dist/services/agent-browser-session.service.js.map +1 -0
- package/dist/services/agent-config-version-record.service.d.ts +30 -0
- package/dist/services/agent-config-version-record.service.d.ts.map +1 -1
- package/dist/services/agent-config-version-record.service.js +112 -7
- package/dist/services/agent-config-version-record.service.js.map +1 -1
- package/dist/services/agent-config-version-record.service.spec.d.ts +2 -0
- package/dist/services/agent-config-version-record.service.spec.d.ts.map +1 -0
- package/dist/services/agent-config-version-record.service.spec.js +56 -0
- package/dist/services/agent-config-version-record.service.spec.js.map +1 -0
- package/dist/services/agent-hub-process-manager.service.d.ts +2 -0
- package/dist/services/agent-hub-process-manager.service.d.ts.map +1 -1
- package/dist/services/agent-hub-process-manager.service.js +1 -1
- package/dist/services/agent-hub-process-manager.service.js.map +1 -1
- package/dist/services/agent-registry-deployment.spec.d.ts +2 -0
- package/dist/services/agent-registry-deployment.spec.d.ts.map +1 -0
- package/dist/services/agent-registry-deployment.spec.js +41 -0
- package/dist/services/agent-registry-deployment.spec.js.map +1 -0
- package/dist/services/agent-registry.service.d.ts.map +1 -1
- package/dist/services/agent-registry.service.js +3 -2
- package/dist/services/agent-registry.service.js.map +1 -1
- package/dist/services/chatter-message.service.d.ts +1 -0
- package/dist/services/chatter-message.service.d.ts.map +1 -1
- package/dist/services/chatter-message.service.js +13 -4
- package/dist/services/chatter-message.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +8 -0
- package/dist/solid-core.module.js.map +1 -1
- package/dist/testing/core/interpolation-media.spec.d.ts +2 -0
- package/dist/testing/core/interpolation-media.spec.d.ts.map +1 -0
- package/dist/testing/core/interpolation-media.spec.js +104 -0
- package/dist/testing/core/interpolation-media.spec.js.map +1 -0
- package/dist/testing/core/interpolation.d.ts.map +1 -1
- package/dist/testing/core/interpolation.js +53 -0
- package/dist/testing/core/interpolation.js.map +1 -1
- package/dist/testing/runner/run-from-metadata.d.ts +1 -0
- package/dist/testing/runner/run-from-metadata.d.ts.map +1 -1
- package/dist/testing/runner/run-from-metadata.js +4 -2
- package/dist/testing/runner/run-from-metadata.js.map +1 -1
- package/dist/testing/runner/run-from-metadata.mobile.spec.js +17 -0
- package/dist/testing/runner/run-from-metadata.mobile.spec.js.map +1 -1
- package/dist/testing/runner/run-from-metadata.spec.js +29 -0
- package/dist/testing/runner/run-from-metadata.spec.js.map +1 -1
- package/dist/testing/steps/util/script.step.js +1 -1
- package/dist/testing/steps/util/script.step.js.map +1 -1
- package/package.json +1 -1
- package/resources/admin-embed/solid-admin-embed.js +1 -1
- package/src/controllers/agent-browser-session.controller.ts +91 -0
- package/src/controllers/agent-config-version.controller.ts +1 -1
- package/src/controllers/agent-session.controller.ts +4 -1
- package/src/dtos/create-agent-browser-session.dto.ts +71 -0
- package/src/dtos/create-agent-job.dto.ts +5 -0
- package/src/dtos/create-agent-session.dto.ts +23 -0
- package/src/dtos/create-sms-template.dto.ts +5 -0
- package/src/dtos/test-run-request.dto.ts +5 -0
- package/src/dtos/update-agent-browser-session.dto.ts +75 -0
- package/src/dtos/update-agent-job.dto.ts +5 -0
- package/src/dtos/update-agent-session.dto.ts +23 -0
- package/src/dtos/update-sms-template.dto.ts +5 -0
- package/src/entities/agent-browser-session.entity.ts +58 -0
- package/src/entities/agent-job.entity.ts +4 -0
- package/src/entities/agent-session.entity.ts +9 -1
- package/src/entities/sms-template.entity.ts +2 -0
- package/src/helpers/agent-general-config-comparison.spec.ts +42 -0
- package/src/helpers/agent-general-config-comparison.ts +27 -0
- package/src/helpers/agent-tool-comparison.spec.ts +61 -0
- package/src/helpers/agent-tool-comparison.ts +71 -0
- package/src/helpers/module-metadata-helper.service.spec.ts +35 -0
- package/src/helpers/module-metadata-helper.service.ts +6 -0
- package/src/helpers/schematic.service.spec.ts +64 -0
- package/src/helpers/schematic.service.ts +16 -4
- package/src/helpers/solid-core-dev-paths.ts +38 -0
- package/src/index.ts +6 -0
- package/src/jobs/database/test-run-queue-subscriber-database.service.ts +1 -0
- package/src/repository/agent-browser-session.repository.ts +19 -0
- package/src/seeders/module-metadata-seeder.service.ts +9 -1
- package/src/seeders/seed-data/solid-core-metadata.json +889 -101
- package/src/services/agent-browser-session.service.ts +20 -0
- package/src/services/agent-config-version-record.service.spec.ts +54 -0
- package/src/services/agent-config-version-record.service.ts +114 -9
- package/src/services/agent-hub-process-manager.service.ts +2 -2
- package/src/services/agent-registry-deployment.spec.ts +37 -0
- package/src/services/agent-registry.service.ts +5 -2
- package/src/services/chatter-message.service.ts +15 -5
- package/src/solid-core.module.ts +8 -0
- package/src/testing/core/interpolation-media.spec.ts +80 -0
- package/src/testing/core/interpolation.ts +23 -0
- package/src/testing/runner/run-from-metadata.mobile.spec.ts +23 -0
- package/src/testing/runner/run-from-metadata.spec.ts +34 -0
- package/src/testing/runner/run-from-metadata.ts +14 -5
- package/src/testing/steps/util/script.step.ts +1 -1
|
@@ -18,9 +18,10 @@ const update_agent_job_dto_1 = require("./update-agent-job.dto");
|
|
|
18
18
|
const update_agent_event_dto_1 = require("./update-agent-event.dto");
|
|
19
19
|
const update_agent_session_checkpoint_dto_1 = require("./update-agent-session-checkpoint.dto");
|
|
20
20
|
const update_agent_human_request_dto_1 = require("./update-agent-human-request.dto");
|
|
21
|
+
const update_agent_browser_session_dto_1 = require("./update-agent-browser-session.dto");
|
|
21
22
|
class UpdateAgentSessionDto {
|
|
22
23
|
static _OPENAPI_METADATA_FACTORY() {
|
|
23
|
-
return { id: { required: true, type: () => Number }, agentId: { required: true, type: () => Number }, agentUserKey: { required: true, type: () => String }, processId: { required: true, type: () => Number }, processUserKey: { required: true, type: () => String }, trigger: { required: true, type: () => String }, runtime: { required: true, type: () => Object, enum: ["solidx", "agentHub"] }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, status: { required: true, type: () => String }, inputs: { required: true, type: () => String }, configVersion: { required: true, type: () => Number }, turnCount: { required: true, type: () => Number }, totalSteps: { required: true, type: () => Number }, totalInputTokens: { required: true, type: () => Number }, totalOutputTokens: { required: true, type: () => Number }, totalCost: { required: true, type: () => Number }, error: { required: true, type: () => String }, endedAt: { required: true, type: () => Date }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, agentJobs: { required: true, type: () => [require("./update-agent-job.dto").UpdateAgentJobDto] }, agentJobsIds: { required: true, type: () => [Number] }, agentJobsCommand: { required: true, type: () => String }, agentEvents: { required: true, type: () => [require("./update-agent-event.dto").UpdateAgentEventDto] }, agentEventsIds: { required: true, type: () => [Number] }, agentEventsCommand: { required: true, type: () => String }, agentSessionCheckpoints: { required: true, type: () => [require("./update-agent-session-checkpoint.dto").UpdateAgentSessionCheckpointDto] }, agentSessionCheckpointsIds: { required: true, type: () => [Number] }, agentSessionCheckpointsCommand: { required: true, type: () => String }, agentHumanRequests: { required: true, type: () => [require("./update-agent-human-request.dto").UpdateAgentHumanRequestDto] }, agentHumanRequestsIds: { required: true, type: () => [Number] }, agentHumanRequestsCommand: { required: true, type: () => String } };
|
|
24
|
+
return { id: { required: true, type: () => Number }, agentId: { required: true, type: () => Number }, agentUserKey: { required: true, type: () => String }, processId: { required: true, type: () => Number }, processUserKey: { required: true, type: () => String }, trigger: { required: true, type: () => String }, runtime: { required: true, type: () => Object, enum: ["solidx", "agentHub"] }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, status: { required: true, type: () => String }, inputs: { required: true, type: () => String }, configVersion: { required: true, type: () => Number }, turnCount: { required: true, type: () => Number }, totalSteps: { required: true, type: () => Number }, totalInputTokens: { required: true, type: () => Number }, totalOutputTokens: { required: true, type: () => Number }, totalCost: { required: true, type: () => Number }, error: { required: true, type: () => String }, endedAt: { required: true, type: () => Date }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, hostRefId: { required: false, type: () => String, nullable: true }, agentJobs: { required: true, type: () => [require("./update-agent-job.dto").UpdateAgentJobDto] }, agentJobsIds: { required: true, type: () => [Number] }, agentJobsCommand: { required: true, type: () => String }, agentEvents: { required: true, type: () => [require("./update-agent-event.dto").UpdateAgentEventDto] }, agentEventsIds: { required: true, type: () => [Number] }, agentEventsCommand: { required: true, type: () => String }, agentSessionCheckpoints: { required: true, type: () => [require("./update-agent-session-checkpoint.dto").UpdateAgentSessionCheckpointDto] }, agentSessionCheckpointsIds: { required: true, type: () => [Number] }, agentSessionCheckpointsCommand: { required: true, type: () => String }, agentHumanRequests: { required: true, type: () => [require("./update-agent-human-request.dto").UpdateAgentHumanRequestDto] }, agentHumanRequestsIds: { required: true, type: () => [Number] }, agentHumanRequestsCommand: { required: true, type: () => String }, agentBrowserSessions: { required: true, type: () => [require("./update-agent-browser-session.dto").UpdateAgentBrowserSessionDto] }, agentBrowserSessionsIds: { required: true, type: () => [Number] }, agentBrowserSessionsCommand: { required: true, type: () => String } };
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
exports.UpdateAgentSessionDto = UpdateAgentSessionDto;
|
|
@@ -159,6 +160,12 @@ __decorate([
|
|
|
159
160
|
(0, swagger_1.ApiProperty)(),
|
|
160
161
|
__metadata("design:type", String)
|
|
161
162
|
], UpdateAgentSessionDto.prototype, "fastModelKey", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, class_validator_1.IsOptional)(),
|
|
165
|
+
(0, class_validator_1.IsString)(),
|
|
166
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true, description: "Optional reference ID supplied by the host application." }),
|
|
167
|
+
__metadata("design:type", String)
|
|
168
|
+
], UpdateAgentSessionDto.prototype, "hostRefId", void 0);
|
|
162
169
|
__decorate([
|
|
163
170
|
(0, class_validator_1.IsOptional)(),
|
|
164
171
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -239,4 +246,24 @@ __decorate([
|
|
|
239
246
|
(0, swagger_1.ApiProperty)(),
|
|
240
247
|
__metadata("design:type", String)
|
|
241
248
|
], UpdateAgentSessionDto.prototype, "agentHumanRequestsCommand", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
(0, class_validator_1.IsOptional)(),
|
|
251
|
+
(0, swagger_1.ApiProperty)(),
|
|
252
|
+
(0, class_validator_1.IsArray)(),
|
|
253
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
254
|
+
(0, class_transformer_1.Type)(() => update_agent_browser_session_dto_1.UpdateAgentBrowserSessionDto),
|
|
255
|
+
__metadata("design:type", Array)
|
|
256
|
+
], UpdateAgentSessionDto.prototype, "agentBrowserSessions", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, class_validator_1.IsOptional)(),
|
|
259
|
+
(0, class_validator_1.IsArray)(),
|
|
260
|
+
(0, swagger_1.ApiProperty)(),
|
|
261
|
+
__metadata("design:type", Array)
|
|
262
|
+
], UpdateAgentSessionDto.prototype, "agentBrowserSessionsIds", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, class_validator_1.IsString)(),
|
|
265
|
+
(0, class_validator_1.IsOptional)(),
|
|
266
|
+
(0, swagger_1.ApiProperty)(),
|
|
267
|
+
__metadata("design:type", String)
|
|
268
|
+
], UpdateAgentSessionDto.prototype, "agentBrowserSessionsCommand", void 0);
|
|
242
269
|
//# sourceMappingURL=update-agent-session.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-agent-session.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAkI;AAClI,6CAA8C;AAC9C,yDAAyC;AACzC,iEAA2D;AAC3D,qEAA+D;AAC/D,+FAAwF;AACxF,qFAA8E;
|
|
1
|
+
{"version":3,"file":"update-agent-session.dto.js","sourceRoot":"","sources":["../../src/dtos/update-agent-session.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAkI;AAClI,6CAA8C;AAC9C,yDAAyC;AACzC,iEAA2D;AAC3D,qEAA+D;AAC/D,+FAAwF;AACxF,qFAA8E;AAC9E,yFAAkF;AAElF,MAAa,qBAAqB;;qXAiCxB,CAAC,QAAQ,EAAE,UAAU,CAAC;;CA2K/B;AA5MD,sDA4MC;AAzMG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iDACG;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;sDACE;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;2DACO;AAKrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;wDACI;AAKlB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;6DACS;AAMvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,iFAAiF,EAAE,CAAC;;sDAChG;AAMhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,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;IACT,IAAA,qBAAW,GAAE;;sEACoB;AAKlC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;0EACsB","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty, IsJSON, IsNumber, IsDate, ValidateNested, IsArray, IsIn } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { UpdateAgentJobDto } from './update-agent-job.dto';\nimport { UpdateAgentEventDto } from './update-agent-event.dto';\nimport { UpdateAgentSessionCheckpointDto } from './update-agent-session-checkpoint.dto';\nimport { UpdateAgentHumanRequestDto } from './update-agent-human-request.dto';\nimport { UpdateAgentBrowserSessionDto } from './update-agent-browser-session.dto';\n\nexport class UpdateAgentSessionDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n agentId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentUserKey: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n processId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n processUserKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"Original session entry point. Use api or webhook for the background jobs inbox.\" })\n trigger: string;\n\n @IsOptional()\n @IsString()\n @IsIn([\"solidx\", \"agentHub\"])\n @ApiProperty({ enum: [\"solidx\", \"agentHub\"], required: false })\n runtime: \"solidx\" | \"agentHub\";\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty({ description: \"queued: Background session waiting for its first job to be claimed; active: Interactive session open, waiting for the user's next message; running: A turn is executing; awaiting_input: Parked on a request_human_input question; awaiting_approval: Parked on a tool approval; completed, failed, cancelled, expired: Terminal.\" })\n status: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n inputs: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n configVersion: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n turnCount: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalSteps: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalInputTokens: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n totalOutputTokens: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsNumber()\n @ApiProperty()\n totalCost: number;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n error: string;\n\n @IsOptional()\n @IsDate()\n @ApiProperty()\n endedAt: Date;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n reasoningModelKey: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n fastModelKey: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty({ required: false, nullable: true, description: \"Optional reference ID supplied by the host application.\" })\n hostRefId?: string | null;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentJobDto)\n agentJobs: UpdateAgentJobDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentJobsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentJobsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentEventDto)\n agentEvents: UpdateAgentEventDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentEventsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentEventsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentSessionCheckpointDto)\n agentSessionCheckpoints: UpdateAgentSessionCheckpointDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentSessionCheckpointsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentSessionCheckpointsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentHumanRequestDto)\n agentHumanRequests: UpdateAgentHumanRequestDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentHumanRequestsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentHumanRequestsCommand: string;\n\n @IsOptional()\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => UpdateAgentBrowserSessionDto)\n agentBrowserSessions: UpdateAgentBrowserSessionDto[];\n\n @IsOptional()\n @IsArray()\n @ApiProperty()\n agentBrowserSessionsIds: number[];\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n agentBrowserSessionsCommand: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-sms-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-sms-template.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;;AAIjE,qBAAa,oBAAqB,SAAQ,yBAAiC;IAIvE,IAAI,EAAE,MAAM,CAAC;IAOb,IAAI,EAAE,MAAM,CAAC;IAKb,qBAAqB,EAAE,MAAM,CAAC;IAM9B,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,MAAM,CAAC;IAKb,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"update-sms-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-sms-template.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;;AAIjE,qBAAa,oBAAqB,SAAQ,yBAAiC;IAIvE,IAAI,EAAE,MAAM,CAAC;IAOb,IAAI,EAAE,MAAM,CAAC;IAKb,qBAAqB,EAAE,MAAM,CAAC;IAM9B,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,MAAM,CAAC;IAKb,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,OAAO,CAAC;IAKhB,eAAe,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -17,7 +17,7 @@ const class_validator_1 = require("class-validator");
|
|
|
17
17
|
const class_validator_2 = require("class-validator");
|
|
18
18
|
class UpdateSmsTemplateDto extends (0, swagger_1.PartialType)(create_sms_template_dto_1.CreateSmsTemplateDto) {
|
|
19
19
|
static _OPENAPI_METADATA_FACTORY() {
|
|
20
|
-
return { type: { required: true, type: () => String }, name: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, smsProviderTemplateId: { required: true, type: () => String }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean } };
|
|
20
|
+
return { type: { required: true, type: () => String }, name: { required: true, type: () => String, pattern: "/[a-z]+(-[a-z]+)*/" }, smsProviderTemplateId: { required: true, type: () => String }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean }, isTransactional: { required: true, type: () => Boolean } };
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
exports.UpdateSmsTemplateDto = UpdateSmsTemplateDto;
|
|
@@ -66,5 +66,11 @@ __decorate([
|
|
|
66
66
|
(0, swagger_1.ApiProperty)(),
|
|
67
67
|
__metadata("design:type", Boolean)
|
|
68
68
|
], UpdateSmsTemplateDto.prototype, "active", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_2.IsOptional)(),
|
|
71
|
+
(0, class_validator_2.IsBoolean)(),
|
|
72
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], UpdateSmsTemplateDto.prototype, "isTransactional", void 0);
|
|
69
75
|
{ }
|
|
70
76
|
//# sourceMappingURL=update-sms-template.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-sms-template.dto.js","sourceRoot":"","sources":["../../src/dtos/update-sms-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA2D;AAC3D,uEAAiE;AACjE,qDAA2C;AAC3C,qDAA6E;AAE7E,MAAa,oBAAqB,SAAQ,IAAA,qBAAW,EAAC,8CAAoB,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"update-sms-template.dto.js","sourceRoot":"","sources":["../../src/dtos/update-sms-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA2D;AAC3D,uEAAiE;AACjE,qDAA2C;AAC3C,qDAA6E;AAE7E,MAAa,oBAAqB,SAAQ,IAAA,qBAAW,EAAC,8CAAoB,CAAC;;;;CA2C1E;AA3CD,oDA2CC;AAvCG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAOb;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,kBAAkB,CAAC;IAC3B,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;mEACgB;AAM9B;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;kDACD;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;yDACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,GAAE;;oDACE;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,qBAAW,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;6DACR;AAC3B,CAAC,CAAC,CAAC","sourcesContent":["import { PartialType, ApiProperty } from '@nestjs/swagger';\nimport { CreateSmsTemplateDto } from './create-sms-template.dto';\nimport { IsString } from 'class-validator';\nimport { IsOptional, Matches, IsNotEmpty, IsBoolean } from 'class-validator';\n\nexport class UpdateSmsTemplateDto extends PartialType(CreateSmsTemplateDto) {\n @IsOptional()\n @IsString()\n @ApiProperty()\n type: string;\n\n @IsNotEmpty()\n @IsOptional()\n @Matches(/[a-z]+(-[a-z]+)*/)\n @IsString()\n @ApiProperty()\n name: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n smsProviderTemplateId: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n displayName: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n body: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n description: string;\n\n @IsOptional()\n @IsBoolean()\n @ApiProperty()\n active: boolean;\n\n @IsOptional()\n @IsBoolean()\n @ApiProperty({ required: false })\n isTransactional: boolean;\n} { }\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommonEntity } from '../entities/common.entity';
|
|
2
|
+
import { AgentSession } from './agent-session.entity';
|
|
3
|
+
export declare class AgentBrowserSession extends CommonEntity {
|
|
4
|
+
session: AgentSession;
|
|
5
|
+
leaseId: string | null;
|
|
6
|
+
containerName: string | null;
|
|
7
|
+
steelSessionId: string | null;
|
|
8
|
+
afterCursor: string | null;
|
|
9
|
+
eventsCursor: string | null;
|
|
10
|
+
epoch: number;
|
|
11
|
+
activeTab: string | null;
|
|
12
|
+
currentUrl: string | null;
|
|
13
|
+
controlMode: string;
|
|
14
|
+
status: string;
|
|
15
|
+
contextEncrypted: string | null;
|
|
16
|
+
handoffExpiresAt: Date | null;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=agent-browser-session.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-browser-session.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-browser-session.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAMtD,qBAIa,mBAAoB,SAAQ,YAAY;IAIjD,OAAO,EAAE,YAAY,CAAC;IAGtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAG9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAG5B,KAAK,EAAE,MAAM,CAAK;IAGlB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,WAAW,EAAE,MAAM,CAAW;IAG9B,MAAM,EAAE,MAAM,CAAY;IAK1B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGhC,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;CACjC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.AgentBrowserSession = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const common_entity_1 = require("./common.entity");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
|
|
18
|
+
const agent_session_entity_1 = require("./agent-session.entity");
|
|
19
|
+
let AgentBrowserSession = class AgentBrowserSession extends common_entity_1.CommonEntity {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.epoch = 0;
|
|
23
|
+
this.controlMode = "agent";
|
|
24
|
+
this.status = "active";
|
|
25
|
+
}
|
|
26
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
27
|
+
return { session: { required: true, type: () => require("./agent-session.entity").AgentSession }, leaseId: { required: true, type: () => String, nullable: true }, containerName: { required: true, type: () => String, nullable: true }, steelSessionId: { required: true, type: () => String, nullable: true }, afterCursor: { required: true, type: () => String, nullable: true }, eventsCursor: { required: true, type: () => String, nullable: true }, epoch: { required: true, type: () => Number, default: 0 }, activeTab: { required: true, type: () => String, nullable: true }, currentUrl: { required: true, type: () => String, nullable: true }, controlMode: { required: true, type: () => String, default: "agent" }, status: { required: true, type: () => String, default: "active" }, contextEncrypted: { required: true, type: () => String, nullable: true }, handoffExpiresAt: { required: true, type: () => Date, nullable: true } };
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.AgentBrowserSession = AgentBrowserSession;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Index)('ix_ss_agent_browser_session_session_id'),
|
|
33
|
+
(0, typeorm_1.ManyToOne)(() => agent_session_entity_1.AgentSession, { onDelete: "CASCADE", nullable: false }),
|
|
34
|
+
(0, typeorm_1.JoinColumn)(),
|
|
35
|
+
__metadata("design:type", agent_session_entity_1.AgentSession)
|
|
36
|
+
], AgentBrowserSession.prototype, "session", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AgentBrowserSession.prototype, "leaseId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AgentBrowserSession.prototype, "containerName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], AgentBrowserSession.prototype, "steelSessionId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], AgentBrowserSession.prototype, "afterCursor", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], AgentBrowserSession.prototype, "eventsCursor", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "integer", default: 0 }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], AgentBrowserSession.prototype, "epoch", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], AgentBrowserSession.prototype, "activeTab", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], AgentBrowserSession.prototype, "currentUrl", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ type: "varchar", default: "agent" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], AgentBrowserSession.prototype, "controlMode", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ type: "varchar", default: "active" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], AgentBrowserSession.prototype, "status", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_transformer_1.Exclude)(),
|
|
79
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], AgentBrowserSession.prototype, "contextEncrypted", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ ...(0, typeorm_db_helper_1.getColumnType)('datetimeWithTimezone'), nullable: true }),
|
|
84
|
+
__metadata("design:type", Date)
|
|
85
|
+
], AgentBrowserSession.prototype, "handoffExpiresAt", void 0);
|
|
86
|
+
exports.AgentBrowserSession = AgentBrowserSession = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)('ss_agent_browser_session'),
|
|
88
|
+
(0, typeorm_1.Index)('ux_ss_agent_browser_session_live', ['session'], { unique: true, where: "status <> 'released'" }),
|
|
89
|
+
(0, typeorm_1.Check)('ss_agent_browser_session_control_mode_check', "control_mode IN ('agent', 'human')"),
|
|
90
|
+
(0, typeorm_1.Check)('ss_agent_browser_session_status_check', "status IN ('active', 'state_saved', 'released')")
|
|
91
|
+
], AgentBrowserSession);
|
|
92
|
+
//# sourceMappingURL=agent-browser-session.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-browser-session.entity.js","sourceRoot":"","sources":["../../src/entities/agent-browser-session.entity.ts"],"names":[],"mappings":";;;;;;;;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AAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACf;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;;wDAChB;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;mDACrB;AAK1B;IAFC,IAAA,2BAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACT;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,GAAG,IAAA,iCAAa,EAAC,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACnD,IAAI;6DAAQ;8BA1CrB,mBAAmB;IAJ/B,IAAA,gBAAM,EAAC,0BAA0B,CAAC;IAClC,IAAA,eAAK,EAAC,kCAAkC,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;IACvG,IAAA,eAAK,EAAC,6CAA6C,EAAE,oCAAoC,CAAC;IAC1F,IAAA,eAAK,EAAC,uCAAuC,EAAE,iDAAiD,CAAC;GACrF,mBAAmB,CA2C/B","sourcesContent":["import { Exclude } from 'class-transformer';\nimport { CommonEntity } from 'src/entities/common.entity';\nimport { Check, Column, Entity, Index, JoinColumn, ManyToOne } from 'typeorm';\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\nimport { AgentSession } from './agent-session.entity';\n\n/**\n * The browser behind one AgentHub session: its pool lease, Steel session and event cursors. Written\n * only by the AgentHub runtime (browser tools); at most one row per session is not \"released\".\n */\n@Entity('ss_agent_browser_session')\n@Index('ux_ss_agent_browser_session_live', ['session'], { unique: true, where: \"status <> 'released'\" })\n@Check('ss_agent_browser_session_control_mode_check', \"control_mode IN ('agent', 'human')\")\n@Check('ss_agent_browser_session_status_check', \"status IN ('active', 'state_saved', 'released')\")\nexport class AgentBrowserSession extends CommonEntity {\n @Index('ix_ss_agent_browser_session_session_id')\n @ManyToOne(() => AgentSession, { onDelete: \"CASCADE\", nullable: false })\n @JoinColumn()\n session: AgentSession;\n\n @Column({ type: \"varchar\", nullable: true })\n leaseId: string | null;\n\n @Column({ type: \"varchar\", nullable: true })\n containerName: string | null;\n\n @Column({ type: \"varchar\", nullable: true })\n steelSessionId: string | null;\n\n @Column({ type: \"varchar\", nullable: true })\n afterCursor: string | null;\n\n @Column({ type: \"varchar\", nullable: true })\n eventsCursor: string | null;\n\n @Column({ type: \"integer\", default: 0 })\n epoch: number = 0;\n\n @Column({ type: \"varchar\", nullable: true })\n activeTab: string | null;\n\n @Column({ type: \"text\", nullable: true })\n currentUrl: string | null;\n\n @Column({ type: \"varchar\", default: \"agent\" })\n controlMode: string = \"agent\";\n\n @Column({ type: \"varchar\", default: \"active\" })\n status: string = \"active\";\n\n // The browser's saved sign-ins and storage, encrypted by the runtime: never sent to API clients.\n @Exclude()\n @Column({ type: \"text\", nullable: true })\n contextEncrypted: string | null;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n handoffExpiresAt: Date | null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-job.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-job.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,qBAEa,QAAS,SAAQ,YAAY;IAGtC,OAAO,EAAE,YAAY,CAAC;IAItB,KAAK,EAAE,aAAa,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAW;I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GjB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CAC3C"}
|
|
@@ -26,7 +26,7 @@ let AgentJob = class AgentJob extends common_entity_1.CommonEntity {
|
|
|
26
26
|
this.queuedAt = new Date();
|
|
27
27
|
}
|
|
28
28
|
static _OPENAPI_METADATA_FACTORY() {
|
|
29
|
-
return { session: { required: true, type: () => require("./agent-session.entity").AgentSession }, agent: { required: true, type: () => require("./agent-registry.entity").AgentRegistry }, kind: { required: true, type: () => String, default: "start" }, input: { required: true, type: () => String }, callerSnapshot: { required: true, type: () => String }, status: { required: true, type: () => String, default: "queued" }, leaseToken: { required: true, type: () => String }, leaseExpiresAt: { required: true, type: () => Date }, attempts: { required: true, type: () => Number, default: 0 }, idempotencyKey: { required: true, type: () => String }, webhookUrl: { required: true, type: () => String }, webhookSecret: { required: true, type: () => String }, timeoutSeconds: { required: true, type: () => Number }, maxSteps: { required: true, type: () => Number }, result: { required: true, type: () => String }, error: { required: true, type: () => String }, queuedAt: { required: true, type: () => Date, default: new Date() }, dispatchedAt: { required: true, type: () => Date, nullable: true }, startedAt: { required: true, type: () => Date }, finishedAt: { required: true, type: () => Date }, agentHumanRequests: { required: true, type: () => [require("./agent-human-request.entity").AgentHumanRequest] } };
|
|
29
|
+
return { session: { required: true, type: () => require("./agent-session.entity").AgentSession }, agent: { required: true, type: () => require("./agent-registry.entity").AgentRegistry }, kind: { required: true, type: () => String, default: "start" }, input: { required: true, type: () => String }, callerSnapshot: { required: true, type: () => String }, status: { required: true, type: () => String, default: "queued" }, leaseToken: { required: true, type: () => String }, leaseExpiresAt: { required: true, type: () => Date }, attempts: { required: true, type: () => Number, default: 0 }, idempotencyKey: { required: true, type: () => String }, hostRefId: { required: true, type: () => String, nullable: true }, webhookUrl: { required: true, type: () => String }, webhookSecret: { required: true, type: () => String }, timeoutSeconds: { required: true, type: () => Number }, maxSteps: { required: true, type: () => Number }, result: { required: true, type: () => String }, error: { required: true, type: () => String }, queuedAt: { required: true, type: () => Date, default: new Date() }, dispatchedAt: { required: true, type: () => Date, nullable: true }, startedAt: { required: true, type: () => Date }, finishedAt: { required: true, type: () => Date }, agentHumanRequests: { required: true, type: () => [require("./agent-human-request.entity").AgentHumanRequest] } };
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
exports.AgentJob = AgentJob;
|
|
@@ -72,6 +72,10 @@ __decorate([
|
|
|
72
72
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
73
73
|
__metadata("design:type", String)
|
|
74
74
|
], AgentJob.prototype, "idempotencyKey", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], AgentJob.prototype, "hostRefId", void 0);
|
|
75
79
|
__decorate([
|
|
76
80
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
77
81
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-job.entity.js","sourceRoot":"","sources":["../../src/entities/agent-job.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAkF;AAClF,iEAAsD;AACtD,mEAAwD;AACxD,6EAAiE;AACjE,oEAA0F;AAInF,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4BAAY;IAAnC;;QAUH,SAAI,GAAW,OAAO,CAAC;QASvB,WAAM,GAAW,QAAQ,CAAC;QAS1B,aAAQ,GAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-job.entity.js","sourceRoot":"","sources":["../../src/entities/agent-job.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAkF;AAClF,iEAAsD;AACtD,mEAAwD;AACxD,6EAAiE;AACjE,oEAA0F;AAInF,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4BAAY;IAAnC;;QAUH,SAAI,GAAW,OAAO,CAAC;QASvB,WAAM,GAAW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hB;IADC,IAAA,gBAAM,EAAC,EAAE,GAAG,IAAA,iCAAa,EAAC,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzD,IAAI;4CAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC,iBAAiB,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDAC1D;mBApE/B,QAAQ;IAFpB,IAAA,gBAAM,EAAC,cAAc,CAAC;IACtB,IAAA,eAAK,EAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;GAC1B,QAAQ,CAqEpB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { Entity, Index, JoinColumn, ManyToOne, Column, OneToMany } from 'typeorm';\nimport { AgentSession } from './agent-session.entity';\nimport { AgentRegistry } from './agent-registry.entity';\nimport { AgentHumanRequest } from './agent-human-request.entity';\nimport { getColumnType, getCurrentTimestampDefault } from 'src/helpers/typeorm-db-helper';\n\n@Entity('ss_agent_job')\n@Index(['agent', 'status', 'queuedAt'])\nexport class AgentJob extends CommonEntity {\n @ManyToOne(() => AgentSession, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n session: AgentSession;\n\n @ManyToOne(() => AgentRegistry, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n agent: AgentRegistry;\n\n @Column({ type: \"varchar\", default: \"start\" })\n kind: string = \"start\";\n\n @Column({ type: \"text\", nullable: true })\n input: string;\n\n @Column({ type: \"text\" })\n callerSnapshot: string;\n\n @Column({ type: \"varchar\", default: \"queued\" })\n status: string = \"queued\";\n\n @Column({ type: \"varchar\", nullable: true })\n leaseToken: string;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n leaseExpiresAt: Date;\n\n @Column({ type: \"integer\", default: 0 })\n attempts: number = 0;\n\n @Column({ type: \"text\", nullable: true })\n idempotencyKey: string;\n\n // Optional reference supplied by the host application to tag this record.\n @Column({ type: \"varchar\", nullable: true })\n hostRefId: string | null;\n\n @Column({ type: \"text\", nullable: true })\n webhookUrl: string;\n\n @Column({ type: \"text\", nullable: true })\n webhookSecret: string;\n\n @Column({ type: \"integer\", nullable: true })\n timeoutSeconds: number;\n\n @Column({ type: \"integer\", nullable: true })\n maxSteps: number;\n\n @Column({ type: \"text\", nullable: true })\n result: string;\n\n @Column({ type: \"text\", nullable: true })\n error: string;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n queuedAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n dispatchedAt: Date | null;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n startedAt: Date;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n finishedAt: Date;\n\n @OneToMany(() => AgentHumanRequest, agentHumanRequest => agentHumanRequest.job, { cascade: true })\n agentHumanRequests: AgentHumanRequest[];\n}\n"]}
|
|
@@ -6,6 +6,7 @@ import { AgentJob } from './agent-job.entity';
|
|
|
6
6
|
import { AgentEvent } from './agent-event.entity';
|
|
7
7
|
import { AgentSessionCheckpoint } from './agent-session-checkpoint.entity';
|
|
8
8
|
import { AgentHumanRequest } from './agent-human-request.entity';
|
|
9
|
+
import { AgentBrowserSession } from './agent-browser-session.entity';
|
|
9
10
|
export declare class AgentSession extends CommonEntity {
|
|
10
11
|
sessionId: string;
|
|
11
12
|
agent: AgentRegistry;
|
|
@@ -21,15 +22,17 @@ export declare class AgentSession extends CommonEntity {
|
|
|
21
22
|
totalInputTokens: number;
|
|
22
23
|
totalOutputTokens: number;
|
|
23
24
|
totalCost: number;
|
|
24
|
-
error: string;
|
|
25
|
+
error: string | null;
|
|
25
26
|
startedAt: Date;
|
|
26
27
|
lastActiveAt: Date;
|
|
27
28
|
endedAt: Date;
|
|
28
29
|
reasoningModelKey: string;
|
|
29
30
|
fastModelKey: string;
|
|
31
|
+
hostRefId: string | null;
|
|
30
32
|
agentJobs: AgentJob[];
|
|
31
33
|
agentEvents: AgentEvent[];
|
|
32
34
|
agentSessionCheckpoints: AgentSessionCheckpoint[];
|
|
33
35
|
agentHumanRequests: AgentHumanRequest[];
|
|
36
|
+
agentBrowserSessions: AgentBrowserSession[];
|
|
34
37
|
}
|
|
35
38
|
//# sourceMappingURL=agent-session.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-session.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-session.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-session.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-session.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,qBAEa,YAAa,SAAQ,YAAY;IAG1C,SAAS,EAAE,MAAM,CAAC;IAIlB,KAAK,EAAE,aAAa,CAAC;IAMrB,OAAO,EAAE,YAAY,CAAC;IAItB,OAAO,EAAE,MAAM,CAAC;IAIhB,OAAO,EAAE,QAAQ,GAAG,UAAU,GAAG,IAAI,CAAC;IAItC,IAAI,EAAE,IAAI,CAAC;IAGX,MAAM,EAAE,MAAM,CAAY;IAG1B,MAAM,EAAE,MAAM,CAAQ;IAGtB,aAAa,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,MAAM,CAAK;IAGtB,UAAU,EAAE,MAAM,CAAK;IAGvB,gBAAgB,EAAE,MAAM,CAAK;IAG7B,iBAAiB,EAAE,MAAM,CAAK;IAG9B,SAAS,EAAE,MAAM,CAAK;IAGtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,SAAS,EAAE,IAAI,CAAc;IAG7B,YAAY,EAAE,IAAI,CAAc;IAGhC,OAAO,EAAE,IAAI,CAAC;IAGd,iBAAiB,EAAE,MAAM,CAAC;IAG1B,YAAY,EAAE,MAAM,CAAC;IAIrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,SAAS,EAAE,QAAQ,EAAE,CAAC;IAGtB,WAAW,EAAE,UAAU,EAAE,CAAC;IAG1B,uBAAuB,EAAE,sBAAsB,EAAE,CAAC;IAGlD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IAGxC,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;CAE/C"}
|
|
@@ -20,6 +20,7 @@ const agent_job_entity_1 = require("./agent-job.entity");
|
|
|
20
20
|
const agent_event_entity_1 = require("./agent-event.entity");
|
|
21
21
|
const agent_session_checkpoint_entity_1 = require("./agent-session-checkpoint.entity");
|
|
22
22
|
const agent_human_request_entity_1 = require("./agent-human-request.entity");
|
|
23
|
+
const agent_browser_session_entity_1 = require("./agent-browser-session.entity");
|
|
23
24
|
const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
|
|
24
25
|
let AgentSession = class AgentSession extends common_entity_1.CommonEntity {
|
|
25
26
|
constructor() {
|
|
@@ -35,7 +36,7 @@ let AgentSession = class AgentSession extends common_entity_1.CommonEntity {
|
|
|
35
36
|
this.lastActiveAt = new Date();
|
|
36
37
|
}
|
|
37
38
|
static _OPENAPI_METADATA_FACTORY() {
|
|
38
|
-
return { sessionId: { required: true, type: () => String }, agent: { required: true, type: () => require("./agent-registry.entity").AgentRegistry }, process: { required: true, type: () => require("./agent-process.entity").AgentProcess }, trigger: { required: true, type: () => String }, runtime: { required: true, type: () => Object }, user: { required: true, type: () => require("./user.entity").User }, status: { required: true, type: () => String, default: "queued" }, inputs: { required: true, type: () => String, default: "{}" }, configVersion: { required: true, type: () => Number }, turnCount: { required: true, type: () => Number, default: 0 }, totalSteps: { required: true, type: () => Number, default: 0 }, totalInputTokens: { required: true, type: () => Number, default: 0 }, totalOutputTokens: { required: true, type: () => Number, default: 0 }, totalCost: { required: true, type: () => Number, default: 0 }, error: { required: true, type: () => String }, startedAt: { required: true, type: () => Date, default: new Date() }, lastActiveAt: { required: true, type: () => Date, default: new Date() }, endedAt: { required: true, type: () => Date }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, agentJobs: { required: true, type: () => [require("./agent-job.entity").AgentJob] }, agentEvents: { required: true, type: () => [require("./agent-event.entity").AgentEvent] }, agentSessionCheckpoints: { required: true, type: () => [require("./agent-session-checkpoint.entity").AgentSessionCheckpoint] }, agentHumanRequests: { required: true, type: () => [require("./agent-human-request.entity").AgentHumanRequest] } };
|
|
39
|
+
return { sessionId: { required: true, type: () => String }, agent: { required: true, type: () => require("./agent-registry.entity").AgentRegistry }, process: { required: true, type: () => require("./agent-process.entity").AgentProcess }, trigger: { required: true, type: () => String }, runtime: { required: true, type: () => Object }, user: { required: true, type: () => require("./user.entity").User }, status: { required: true, type: () => String, default: "queued" }, inputs: { required: true, type: () => String, default: "{}" }, configVersion: { required: true, type: () => Number }, turnCount: { required: true, type: () => Number, default: 0 }, totalSteps: { required: true, type: () => Number, default: 0 }, totalInputTokens: { required: true, type: () => Number, default: 0 }, totalOutputTokens: { required: true, type: () => Number, default: 0 }, totalCost: { required: true, type: () => Number, default: 0 }, error: { required: true, type: () => String, nullable: true }, startedAt: { required: true, type: () => Date, default: new Date() }, lastActiveAt: { required: true, type: () => Date, default: new Date() }, endedAt: { required: true, type: () => Date }, reasoningModelKey: { required: true, type: () => String }, fastModelKey: { required: true, type: () => String }, hostRefId: { required: true, type: () => String, nullable: true }, agentJobs: { required: true, type: () => [require("./agent-job.entity").AgentJob] }, agentEvents: { required: true, type: () => [require("./agent-event.entity").AgentEvent] }, agentSessionCheckpoints: { required: true, type: () => [require("./agent-session-checkpoint.entity").AgentSessionCheckpoint] }, agentHumanRequests: { required: true, type: () => [require("./agent-human-request.entity").AgentHumanRequest] }, agentBrowserSessions: { required: true, type: () => [require("./agent-browser-session.entity").AgentBrowserSession] } };
|
|
39
40
|
}
|
|
40
41
|
};
|
|
41
42
|
exports.AgentSession = AgentSession;
|
|
@@ -124,6 +125,10 @@ __decorate([
|
|
|
124
125
|
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
125
126
|
__metadata("design:type", String)
|
|
126
127
|
], AgentSession.prototype, "fastModelKey", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], AgentSession.prototype, "hostRefId", void 0);
|
|
127
132
|
__decorate([
|
|
128
133
|
(0, typeorm_1.OneToMany)(() => agent_job_entity_1.AgentJob, agentJob => agentJob.session, { cascade: true }),
|
|
129
134
|
__metadata("design:type", Array)
|
|
@@ -140,6 +145,10 @@ __decorate([
|
|
|
140
145
|
(0, typeorm_1.OneToMany)(() => agent_human_request_entity_1.AgentHumanRequest, agentHumanRequest => agentHumanRequest.session, { cascade: true }),
|
|
141
146
|
__metadata("design:type", Array)
|
|
142
147
|
], AgentSession.prototype, "agentHumanRequests", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.OneToMany)(() => agent_browser_session_entity_1.AgentBrowserSession, agentBrowserSession => agentBrowserSession.session, { cascade: true }),
|
|
150
|
+
__metadata("design:type", Array)
|
|
151
|
+
], AgentSession.prototype, "agentBrowserSessions", void 0);
|
|
143
152
|
exports.AgentSession = AgentSession = __decorate([
|
|
144
153
|
(0, typeorm_1.Entity)('ss_agent_session'),
|
|
145
154
|
(0, typeorm_1.Index)(['user', 'trigger', 'lastActiveAt'])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-session.entity.js","sourceRoot":"","sources":["../../src/entities/agent-session.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,+CAAgD;AAChD,qCAAkF;AAClF,mEAAwD;AACxD,iEAAsD;AACtD,yDAA8C;AAC9C,6DAAkD;AAClD,uFAA2E;AAC3E,6EAAiE;AACjE,oEAA0F;AAInF,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAY;IAAvC;;QA4BH,WAAM,GAAW,QAAQ,CAAC;QAG1B,WAAM,GAAW,IAAI,CAAC;QAMtB,cAAS,GAAW,CAAC,CAAC;QAGtB,eAAU,GAAW,CAAC,CAAC;QAGvB,qBAAgB,GAAW,CAAC,CAAC;QAG7B,sBAAiB,GAAW,CAAC,CAAC;QAG9B,cAAS,GAAW,CAAC,CAAC;QAMtB,cAAS,GAAS,IAAI,IAAI,EAAE,CAAC;QAG7B,iBAAY,GAAS,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-session.entity.js","sourceRoot":"","sources":["../../src/entities/agent-session.entity.ts"],"names":[],"mappings":";;;;;;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iBAAiB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;wDAC9D;AAGxC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kDAAmB,EAAE,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;0DAChE;uBAtFnC,YAAY;IAFxB,IAAA,gBAAM,EAAC,kBAAkB,CAAC;IAC1B,IAAA,eAAK,EAAC,CAAC,MAAM,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;GAC9B,YAAY,CAwFxB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { User } from 'src/entities/user.entity';\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { AgentRegistry } from './agent-registry.entity';\nimport { AgentProcess } from './agent-process.entity';\nimport { AgentJob } from './agent-job.entity';\nimport { AgentEvent } from './agent-event.entity';\nimport { AgentSessionCheckpoint } from './agent-session-checkpoint.entity';\nimport { AgentHumanRequest } from './agent-human-request.entity';\nimport { AgentBrowserSession } from './agent-browser-session.entity';\nimport { getColumnType, getCurrentTimestampDefault } from 'src/helpers/typeorm-db-helper';\n\n@Entity('ss_agent_session')\n@Index(['user', 'trigger', 'lastActiveAt'])\nexport class AgentSession extends CommonEntity {\n @Index({ unique: true })\n @Column({ type: \"varchar\", nullable: true })\n sessionId: string;\n\n @ManyToOne(() => AgentRegistry, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n agent: AgentRegistry;\n\n // The most recent process that hosted this session; it remains linked after shutdown.\n @Index()\n @ManyToOne(() => AgentProcess, { onDelete: \"SET NULL\", nullable: true })\n @JoinColumn()\n process: AgentProcess;\n\n // The entry point that created the session. A later job or review does not change it.\n @Column({ type: \"varchar\" })\n trigger: string;\n\n // Runtime that created/hosted this session; nullable for legacy rows where it is unknown.\n @Column({ type: \"varchar\", nullable: true })\n runtime: \"solidx\" | \"agentHub\" | null;\n\n @ManyToOne(() => User, { onDelete: \"RESTRICT\", nullable: false })\n @JoinColumn()\n user: User;\n\n @Column({ type: \"varchar\", default: \"queued\" })\n status: string = \"queued\";\n\n @Column({ type: \"text\", default: \"{}\" })\n inputs: string = \"{}\";\n\n @Column({ type: \"integer\" })\n configVersion: number;\n\n @Column({ type: \"integer\", default: 0 })\n turnCount: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalSteps: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalInputTokens: number = 0;\n\n @Column({ type: \"integer\", default: 0 })\n totalOutputTokens: number = 0;\n\n @Column({ type: \"decimal\" })\n totalCost: number = 0;\n\n @Column({ type: \"text\", nullable: true })\n error: string | null;\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n startedAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), default: () => getCurrentTimestampDefault() })\n lastActiveAt: Date = new Date();\n\n @Column({ ...getColumnType('datetimeWithTimezone'), nullable: true })\n endedAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n reasoningModelKey: string;\n\n @Column({ type: \"varchar\", nullable: true })\n fastModelKey: string;\n\n // Optional reference supplied by the host application to tag this record.\n @Column({ type: \"varchar\", nullable: true })\n hostRefId: string | null;\n\n @OneToMany(() => AgentJob, agentJob => agentJob.session, { cascade: true })\n agentJobs: AgentJob[];\n\n @OneToMany(() => AgentEvent, agentEvent => agentEvent.session, { cascade: true })\n agentEvents: AgentEvent[];\n\n @OneToMany(() => AgentSessionCheckpoint, agentSessionCheckpoint => agentSessionCheckpoint.session, { cascade: true })\n agentSessionCheckpoints: AgentSessionCheckpoint[];\n\n @OneToMany(() => AgentHumanRequest, agentHumanRequest => agentHumanRequest.session, { cascade: true })\n agentHumanRequests: AgentHumanRequest[];\n\n @OneToMany(() => AgentBrowserSession, agentBrowserSession => agentBrowserSession.session, { cascade: true })\n agentBrowserSessions: AgentBrowserSession[];\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms-template.entity.d.ts","sourceRoot":"","sources":["../../src/entities/sms-template.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBACa,WAAY,SAAQ,YAAY;IAGzC,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAEpB,IAAI,EAAE,MAAM,CAAC;IAGb,qBAAqB,EAAE,MAAM,CAAC;IAE9B,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,OAAO,CAAQ;IAEvB,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"sms-template.entity.d.ts","sourceRoot":"","sources":["../../src/entities/sms-template.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBACa,WAAY,SAAQ,YAAY;IAGzC,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAEpB,IAAI,EAAE,MAAM,CAAC;IAGb,qBAAqB,EAAE,MAAM,CAAC;IAE9B,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,OAAO,CAAQ;IAEvB,IAAI,EAAE,MAAM,CAAC;IAEb,eAAe,EAAE,OAAO,CAAS;IAKjC,MAAM,EAAE,cAAc,CAAC;CAC1B"}
|
|
@@ -19,9 +19,10 @@ let SmsTemplate = class SmsTemplate extends common_entity_1.CommonEntity {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super(...arguments);
|
|
21
21
|
this.active = true;
|
|
22
|
+
this.isTransactional = false;
|
|
22
23
|
}
|
|
23
24
|
static _OPENAPI_METADATA_FACTORY() {
|
|
24
|
-
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, smsProviderTemplateId: { required: true, type: () => String }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean, default: true }, type: { required: true, type: () => String }, module: { required: true, type: () => require("./module-metadata.entity").ModuleMetadata } };
|
|
25
|
+
return { name: { required: true, type: () => String }, displayName: { required: true, type: () => String }, body: { required: true, type: () => String }, smsProviderTemplateId: { required: true, type: () => String }, description: { required: true, type: () => String }, active: { required: true, type: () => Boolean, default: true }, type: { required: true, type: () => String }, isTransactional: { required: true, type: () => Boolean, default: false }, module: { required: true, type: () => require("./module-metadata.entity").ModuleMetadata } };
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
exports.SmsTemplate = SmsTemplate;
|
|
@@ -56,6 +57,10 @@ __decorate([
|
|
|
56
57
|
(0, typeorm_1.Column)({ name: "type", type: "varchar", nullable: true }),
|
|
57
58
|
__metadata("design:type", String)
|
|
58
59
|
], SmsTemplate.prototype, "type", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ name: "is_transactional", type: "boolean", nullable: true, default: false }),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], SmsTemplate.prototype, "isTransactional", void 0);
|
|
59
64
|
__decorate([
|
|
60
65
|
(0, typeorm_1.Index)(),
|
|
61
66
|
(0, typeorm_1.ManyToOne)(() => module_metadata_entity_1.ModuleMetadata, { nullable: true, onDelete: 'SET NULL' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms-template.entity.js","sourceRoot":"","sources":["../../src/entities/sms-template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAA0D;AAC1D,qCAAuE;AACvE,oEAA8D;AAC9D,qEAA0D;AAGnD,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BAAY;IAAtC;;QAeH,WAAM,GAAY,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"sms-template.entity.js","sourceRoot":"","sources":["../../src/entities/s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AE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oDACrD;AAKjC;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IACzE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACtD,uCAAc;2CAAC;sBAxBd,WAAW;IADvB,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,WAAW,CAyBvB","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity';\nimport { Column, Entity, Index, ManyToOne, JoinColumn } from 'typeorm';\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\nimport { ModuleMetadata } from './module-metadata.entity';\n\n@Entity(\"ss_sms_template\")\nexport class SmsTemplate extends CommonEntity {\n @Index({ unique: true })\n @Column({ name: \"name\", type: \"varchar\" })\n name: string;\n @Index()\n @Column({ name: \"display_name\", type: \"varchar\" })\n displayName: string;\n @Column({ name: \"body\", ...getColumnType('longText'), nullable: true })\n body: string;\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n smsProviderTemplateId: string;\n @Column({ name: \"description\", nullable: true })\n description: string;\n @Column({ name: \"active\", nullable: true, default: true })\n active: boolean = true;\n @Column({ name: \"type\", type: \"varchar\", nullable: true })\n type: string;\n @Column({ name: \"is_transactional\", type: \"boolean\", nullable: true, default: false })\n isTransactional: boolean = false;\n\n @Index()\n @ManyToOne(() => ModuleMetadata, { nullable: true, onDelete: 'SET NULL' })\n @JoinColumn({ name: 'module_id', referencedColumnName: 'id' })\n module: ModuleMetadata;\n}\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const AGENT_GENERAL_CONFIG_FIELDS: {
|
|
2
|
+
runner: string;
|
|
3
|
+
minProcesses: string;
|
|
4
|
+
maxProcesses: string;
|
|
5
|
+
processCpu: string;
|
|
6
|
+
processMemory: string;
|
|
7
|
+
stepLimit: string;
|
|
8
|
+
turnStepLimit: string;
|
|
9
|
+
costLimit: string;
|
|
10
|
+
name: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
iconName: string;
|
|
14
|
+
requiredInputs: string;
|
|
15
|
+
};
|
|
16
|
+
type ConfigAudit = {
|
|
17
|
+
fieldName: string;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
oldValue: unknown;
|
|
20
|
+
newValue: unknown;
|
|
21
|
+
};
|
|
22
|
+
export declare function compareAgentGeneralConfig(current: Record<string, unknown>, entries: ConfigAudit[], older: Date, newer: Date): {
|
|
23
|
+
title: string;
|
|
24
|
+
status: string;
|
|
25
|
+
fields: {
|
|
26
|
+
key: string;
|
|
27
|
+
label: string;
|
|
28
|
+
status: string;
|
|
29
|
+
left: string;
|
|
30
|
+
right: string;
|
|
31
|
+
emptyLabel: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=agent-general-config-comparison.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-general-config-comparison.d.ts","sourceRoot":"","sources":["../../src/helpers/agent-general-config-comparison.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;CAKvC,CAAC;AAEF,KAAK,WAAW,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAGhG,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI;;;;;;;;;;;EAc3H"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_GENERAL_CONFIG_FIELDS = void 0;
|
|
4
|
+
exports.compareAgentGeneralConfig = compareAgentGeneralConfig;
|
|
5
|
+
exports.AGENT_GENERAL_CONFIG_FIELDS = {
|
|
6
|
+
runner: 'Runner', minProcesses: 'Minimum processes', maxProcesses: 'Maximum processes',
|
|
7
|
+
processCpu: 'Process CPU (units)', processMemory: 'Process memory (MiB)',
|
|
8
|
+
stepLimit: 'Step limit', turnStepLimit: 'Turn step limit', costLimit: 'Cost limit',
|
|
9
|
+
name: 'Name', title: 'Title', description: 'Description', iconName: 'Icon', requiredInputs: 'Required inputs',
|
|
10
|
+
};
|
|
11
|
+
const scalar = (value) => value === null || value === undefined || value === '' ? null : String(value);
|
|
12
|
+
function compareAgentGeneralConfig(current, entries, older, newer) {
|
|
13
|
+
const fields = Object.entries(exports.AGENT_GENERAL_CONFIG_FIELDS).map(([key, label]) => {
|
|
14
|
+
const history = entries.filter((entry) => entry.fieldName === key);
|
|
15
|
+
const values = [older, newer].map((at) => {
|
|
16
|
+
const before = history.filter((entry) => entry.createdAt <= at);
|
|
17
|
+
return scalar(before.length ? before[before.length - 1].newValue : history.length ? history[0].oldValue : current[key]);
|
|
18
|
+
});
|
|
19
|
+
const changed = values[0] !== values[1] || history.some((entry) => entry.createdAt > older && entry.createdAt <= newer);
|
|
20
|
+
const emptyLabel = key === 'runner' ? 'Installation default'
|
|
21
|
+
: key === 'maxProcesses' ? 'Installation limit'
|
|
22
|
+
: ['processCpu', 'processMemory'].includes(key) ? 'Task definition default' : 'Not set';
|
|
23
|
+
return { key, label, status: changed ? 'changed' : 'matched', left: values[0], right: values[1], emptyLabel };
|
|
24
|
+
});
|
|
25
|
+
return { title: 'General configuration', status: fields.some((field) => field.status === 'changed') ? 'changed' : 'matched', fields };
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=agent-general-config-comparison.js.map
|