UNPKG

@agentscope/studio

Version:

AgentScope Studio is a powerful local monitoring and visualization tool designed to provide real-time insights into your system's performance and behavior.

73 lines (72 loc) 3.04 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.RunTable = void 0; const typeorm_1 = require("typeorm"); const messageForm_1 = require("../../../shared/src/types/messageForm"); const Message_1 = require("./Message"); const InputRequest_1 = require("../models/InputRequest"); const ModelInvocation_1 = require("../models/ModelInvocation"); let RunTable = class RunTable extends typeorm_1.BaseEntity { }; exports.RunTable = RunTable; __decorate([ (0, typeorm_1.PrimaryColumn)(), __metadata("design:type", String) ], RunTable.prototype, "id", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", String) ], RunTable.prototype, "project", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", String) ], RunTable.prototype, "name", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", String) ], RunTable.prototype, "timestamp", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", String) ], RunTable.prototype, "run_dir", void 0); __decorate([ (0, typeorm_1.Column)(), __metadata("design:type", Number) ], RunTable.prototype, "pid", void 0); __decorate([ (0, typeorm_1.Column)({ type: 'varchar', enum: messageForm_1.Status, default: messageForm_1.Status.DONE }), __metadata("design:type", String) ], RunTable.prototype, "status", void 0); __decorate([ (0, typeorm_1.OneToMany)(() => Message_1.MessageTable, (message) => message.runId, { cascade: true, onDelete: 'CASCADE', }), __metadata("design:type", Array) ], RunTable.prototype, "messages", void 0); __decorate([ (0, typeorm_1.OneToMany)(() => InputRequest_1.InputRequestTable, (inputRequest) => inputRequest.runId, { cascade: true, onDelete: 'CASCADE', }), __metadata("design:type", Array) ], RunTable.prototype, "inputRequests", void 0); __decorate([ (0, typeorm_1.OneToMany)(() => ModelInvocation_1.ModelInvocationTable, (modelInvocation) => modelInvocation.runId, { cascade: true, onDelete: 'CASCADE', }), __metadata("design:type", Array) ], RunTable.prototype, "modelInvocations", void 0); exports.RunTable = RunTable = __decorate([ (0, typeorm_1.Entity)() ], RunTable);