UNPKG

@xiaolaa2/ableton-copilot-mcp

Version:
53 lines 2.36 kB
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); }; import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'; export var OperationStatus; (function (OperationStatus) { OperationStatus[OperationStatus["PENDING"] = 0] = "PENDING"; OperationStatus[OperationStatus["SUCCESS"] = 1] = "SUCCESS"; OperationStatus[OperationStatus["FAILED"] = 2] = "FAILED"; })(OperationStatus || (OperationStatus = {})); let OperationHistory = class OperationHistory { id; tool_name; input_params; execution_result; status; createdAt; }; __decorate([ PrimaryGeneratedColumn(), __metadata("design:type", Number) ], OperationHistory.prototype, "id", void 0); __decorate([ Column({ length: 100 }), __metadata("design:type", String) ], OperationHistory.prototype, "tool_name", void 0); __decorate([ Column('text', { nullable: true }), __metadata("design:type", Object) ], OperationHistory.prototype, "input_params", void 0); __decorate([ Column('text', { nullable: true }), __metadata("design:type", Object) ], OperationHistory.prototype, "execution_result", void 0); __decorate([ Column({ type: 'integer', enum: OperationStatus, default: OperationStatus.PENDING }), __metadata("design:type", Number) ], OperationHistory.prototype, "status", void 0); __decorate([ Column({ type: 'datetime', default: () => 'datetime(CURRENT_TIMESTAMP, \'localtime\')' }), __metadata("design:type", Date) ], OperationHistory.prototype, "createdAt", void 0); OperationHistory = __decorate([ Entity('operation_histories') ], OperationHistory); export { OperationHistory }; //# sourceMappingURL=OperationHistory.js.map