@octo-cyber/ai 0.5.0 → 0.5.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/ai.module.d.ts +1 -1
- package/dist/ai.module.d.ts.map +1 -1
- package/dist/ai.module.js +1 -1
- package/dist/ai.module.js.map +1 -1
- package/dist/cli/cli-executor.service.js +1 -1
- package/dist/cli/cli-executor.service.js.map +1 -1
- package/dist/cli/cli-registry.service.js +1 -1
- package/dist/cli/cli-registry.service.js.map +1 -1
- package/dist/cli/controllers/ai-cli.controller.d.ts +1 -1
- package/dist/cli/controllers/ai-cli.controller.d.ts.map +1 -1
- package/dist/cli/controllers/ai-cli.controller.js +1 -1
- package/dist/cli/controllers/ai-cli.controller.js.map +1 -1
- package/dist/cli/workspace.service.js +1 -1
- package/dist/cli/workspace.service.js.map +1 -1
- package/package.json +5 -5
- package/dist/controllers/agent.controller.d.ts +0 -13
- package/dist/controllers/agent.controller.d.ts.map +0 -1
- package/dist/controllers/agent.controller.js +0 -117
- package/dist/controllers/agent.controller.js.map +0 -1
- package/dist/controllers/capability.controller.d.ts +0 -16
- package/dist/controllers/capability.controller.d.ts.map +0 -1
- package/dist/controllers/capability.controller.js +0 -108
- package/dist/controllers/capability.controller.js.map +0 -1
- package/dist/controllers/client.controller.d.ts +0 -10
- package/dist/controllers/client.controller.d.ts.map +0 -1
- package/dist/controllers/client.controller.js +0 -79
- package/dist/controllers/client.controller.js.map +0 -1
- package/dist/controllers/execution.controller.d.ts +0 -11
- package/dist/controllers/execution.controller.d.ts.map +0 -1
- package/dist/controllers/execution.controller.js +0 -50
- package/dist/controllers/execution.controller.js.map +0 -1
- package/dist/controllers/index.d.ts +0 -5
- package/dist/controllers/index.d.ts.map +0 -1
- package/dist/controllers/index.js +0 -12
- package/dist/controllers/index.js.map +0 -1
- package/dist/entities/agent-binding.entity.d.ts +0 -17
- package/dist/entities/agent-binding.entity.d.ts.map +0 -1
- package/dist/entities/agent-binding.entity.js +0 -64
- package/dist/entities/agent-binding.entity.js.map +0 -1
- package/dist/entities/agent-definition.entity.d.ts +0 -17
- package/dist/entities/agent-definition.entity.d.ts.map +0 -1
- package/dist/entities/agent-definition.entity.js +0 -70
- package/dist/entities/agent-definition.entity.js.map +0 -1
- package/dist/entities/agent-execution.entity.d.ts +0 -23
- package/dist/entities/agent-execution.entity.d.ts.map +0 -1
- package/dist/entities/agent-execution.entity.js +0 -93
- package/dist/entities/agent-execution.entity.js.map +0 -1
- package/dist/entities/agent-instance.entity.d.ts +0 -19
- package/dist/entities/agent-instance.entity.d.ts.map +0 -1
- package/dist/entities/agent-instance.entity.js +0 -76
- package/dist/entities/agent-instance.entity.js.map +0 -1
- package/dist/entities/capability-definition.entity.d.ts +0 -20
- package/dist/entities/capability-definition.entity.d.ts.map +0 -1
- package/dist/entities/capability-definition.entity.js +0 -77
- package/dist/entities/capability-definition.entity.js.map +0 -1
- package/dist/entities/client-registration.entity.d.ts +0 -19
- package/dist/entities/client-registration.entity.d.ts.map +0 -1
- package/dist/entities/client-registration.entity.js +0 -79
- package/dist/entities/client-registration.entity.js.map +0 -1
- package/dist/entities/index.d.ts +0 -7
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -16
- package/dist/entities/index.js.map +0 -1
- package/dist/services/agent.service.d.ts +0 -23
- package/dist/services/agent.service.d.ts.map +0 -1
- package/dist/services/agent.service.js +0 -76
- package/dist/services/agent.service.js.map +0 -1
- package/dist/services/capability-router.service.d.ts +0 -45
- package/dist/services/capability-router.service.d.ts.map +0 -1
- package/dist/services/capability-router.service.js +0 -120
- package/dist/services/capability-router.service.js.map +0 -1
- package/dist/services/client-registration.service.d.ts +0 -27
- package/dist/services/client-registration.service.d.ts.map +0 -1
- package/dist/services/client-registration.service.js +0 -83
- package/dist/services/client-registration.service.js.map +0 -1
- package/dist/services/index.d.ts +0 -5
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/index.js +0 -12
- package/dist/services/index.js.map +0 -1
- package/dist/services/sync-bridge.service.d.ts +0 -41
- package/dist/services/sync-bridge.service.d.ts.map +0 -1
- package/dist/services/sync-bridge.service.js +0 -118
- package/dist/services/sync-bridge.service.js.map +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
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.ExecutionController = void 0;
|
|
13
|
-
const core_1 = require("@octo/core");
|
|
14
|
-
const sync_bridge_service_js_1 = require("../services/sync-bridge.service.js");
|
|
15
|
-
/**
|
|
16
|
-
* Execution callback endpoints — called by agents
|
|
17
|
-
* to report execution completion or failure.
|
|
18
|
-
*/
|
|
19
|
-
let ExecutionController = class ExecutionController {
|
|
20
|
-
syncBridge = core_1.Container.get(sync_bridge_service_js_1.SyncBridgeService);
|
|
21
|
-
async complete(req, res) {
|
|
22
|
-
const executionId = Number(req.params.id);
|
|
23
|
-
const { output } = req.body;
|
|
24
|
-
await this.syncBridge.complete(executionId, output ?? {});
|
|
25
|
-
res.json(core_1.ApiResponse.ok(null, 'Execution completed'));
|
|
26
|
-
}
|
|
27
|
-
async fail(req, res) {
|
|
28
|
-
const executionId = Number(req.params.id);
|
|
29
|
-
const { error } = req.body;
|
|
30
|
-
await this.syncBridge.fail(executionId, error ?? 'Unknown error');
|
|
31
|
-
res.json(core_1.ApiResponse.ok(null, 'Execution failed'));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.ExecutionController = ExecutionController;
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, core_1.Post)('/:id/complete'),
|
|
37
|
-
__metadata("design:type", Function),
|
|
38
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
39
|
-
__metadata("design:returntype", Promise)
|
|
40
|
-
], ExecutionController.prototype, "complete", null);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, core_1.Post)('/:id/fail'),
|
|
43
|
-
__metadata("design:type", Function),
|
|
44
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
45
|
-
__metadata("design:returntype", Promise)
|
|
46
|
-
], ExecutionController.prototype, "fail", null);
|
|
47
|
-
exports.ExecutionController = ExecutionController = __decorate([
|
|
48
|
-
(0, core_1.Controller)('/api/executions')
|
|
49
|
-
], ExecutionController);
|
|
50
|
-
//# sourceMappingURL=execution.controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution.controller.js","sourceRoot":"","sources":["../../src/controllers/execution.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsE;AAEtE,+EAAuE;AAEvE;;;GAGG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACtB,UAAU,GAAG,gBAAS,CAAC,GAAG,CAAC,0CAAiB,CAAC,CAAC;IAGhD,AAAN,KAAK,CAAC,QAAQ,CAAC,GAAY,EAAE,GAAa;QACxC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAY,CAAC,CAAC;QACpD,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;QAC5B,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;QAC1D,GAAG,CAAC,IAAI,CAAC,kBAAW,CAAC,EAAE,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC;IACxD,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAC,GAAY,EAAE,GAAa;QACpC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAY,CAAC,CAAC;QACpD,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;QAC3B,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,IAAI,eAAe,CAAC,CAAC;QAClE,GAAG,CAAC,IAAI,CAAC,kBAAW,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC;IACrD,CAAC;CACF,CAAA;AAlBY,kDAAmB;AAIxB;IADL,IAAA,WAAI,EAAC,eAAe,CAAC;;;;mDAMrB;AAGK;IADL,IAAA,WAAI,EAAC,WAAW,CAAC;;;;+CAMjB;8BAjBU,mBAAmB;IAD/B,IAAA,iBAAU,EAAC,iBAAiB,CAAC;GACjB,mBAAmB,CAkB/B"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { AgentController } from './agent.controller.js';
|
|
2
|
-
export { CapabilityController } from './capability.controller.js';
|
|
3
|
-
export { ClientController } from './client.controller.js';
|
|
4
|
-
export { ExecutionController } from './execution.controller.js';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExecutionController = exports.ClientController = exports.CapabilityController = exports.AgentController = void 0;
|
|
4
|
-
var agent_controller_js_1 = require("./agent.controller.js");
|
|
5
|
-
Object.defineProperty(exports, "AgentController", { enumerable: true, get: function () { return agent_controller_js_1.AgentController; } });
|
|
6
|
-
var capability_controller_js_1 = require("./capability.controller.js");
|
|
7
|
-
Object.defineProperty(exports, "CapabilityController", { enumerable: true, get: function () { return capability_controller_js_1.CapabilityController; } });
|
|
8
|
-
var client_controller_js_1 = require("./client.controller.js");
|
|
9
|
-
Object.defineProperty(exports, "ClientController", { enumerable: true, get: function () { return client_controller_js_1.ClientController; } });
|
|
10
|
-
var execution_controller_js_1 = require("./execution.controller.js");
|
|
11
|
-
Object.defineProperty(exports, "ExecutionController", { enumerable: true, get: function () { return execution_controller_js_1.ExecutionController; } });
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AAA/C,sHAAA,eAAe,OAAA;AACxB,uEAAkE;AAAzD,gIAAA,oBAAoB,OAAA;AAC7B,+DAA0D;AAAjD,wHAAA,gBAAgB,OAAA;AACzB,qEAAgE;AAAvD,8HAAA,mBAAmB,OAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AgentDefinition } from './agent-definition.entity.js';
|
|
2
|
-
import { CapabilityDefinition } from './capability-definition.entity.js';
|
|
3
|
-
/**
|
|
4
|
-
* Agent binding — maps a capability to an agent definition.
|
|
5
|
-
* When a capability execution is requested, the system looks up
|
|
6
|
-
* the binding to find which agent should handle it.
|
|
7
|
-
*/
|
|
8
|
-
export declare class AgentBinding {
|
|
9
|
-
id: number;
|
|
10
|
-
capabilityId: number;
|
|
11
|
-
capability: CapabilityDefinition;
|
|
12
|
-
agentDefinitionId: number;
|
|
13
|
-
agentDefinition: AgentDefinition;
|
|
14
|
-
priority: number;
|
|
15
|
-
createdAt: Date;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=agent-binding.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-binding.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-binding.entity.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE;;;;GAIG;AACH,qBACa,YAAY;IAEvB,EAAE,EAAG,MAAM,CAAC;IAGZ,YAAY,EAAG,MAAM,CAAC;IAItB,UAAU,EAAG,oBAAoB,CAAC;IAGlC,iBAAiB,EAAG,MAAM,CAAC;IAI3B,eAAe,EAAG,eAAe,CAAC;IAGlC,QAAQ,EAAG,MAAM,CAAC;IAGlB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -1,64 +0,0 @@
|
|
|
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.AgentBinding = void 0;
|
|
13
|
-
const core_1 = require("@octo/core");
|
|
14
|
-
const agent_definition_entity_js_1 = require("./agent-definition.entity.js");
|
|
15
|
-
const capability_definition_entity_js_1 = require("./capability-definition.entity.js");
|
|
16
|
-
/**
|
|
17
|
-
* Agent binding — maps a capability to an agent definition.
|
|
18
|
-
* When a capability execution is requested, the system looks up
|
|
19
|
-
* the binding to find which agent should handle it.
|
|
20
|
-
*/
|
|
21
|
-
let AgentBinding = class AgentBinding {
|
|
22
|
-
id;
|
|
23
|
-
capabilityId;
|
|
24
|
-
capability;
|
|
25
|
-
agentDefinitionId;
|
|
26
|
-
agentDefinition;
|
|
27
|
-
priority;
|
|
28
|
-
createdAt;
|
|
29
|
-
};
|
|
30
|
-
exports.AgentBinding = AgentBinding;
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, core_1.PrimaryGeneratedColumn)(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], AgentBinding.prototype, "id", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, core_1.Column)({ type: 'integer' }),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], AgentBinding.prototype, "capabilityId", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, core_1.ManyToOne)(() => capability_definition_entity_js_1.CapabilityDefinition),
|
|
41
|
-
(0, core_1.JoinColumn)({ name: 'capabilityId' }),
|
|
42
|
-
__metadata("design:type", capability_definition_entity_js_1.CapabilityDefinition)
|
|
43
|
-
], AgentBinding.prototype, "capability", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, core_1.Column)({ type: 'integer' }),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], AgentBinding.prototype, "agentDefinitionId", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, core_1.ManyToOne)(() => agent_definition_entity_js_1.AgentDefinition),
|
|
50
|
-
(0, core_1.JoinColumn)({ name: 'agentDefinitionId' }),
|
|
51
|
-
__metadata("design:type", agent_definition_entity_js_1.AgentDefinition)
|
|
52
|
-
], AgentBinding.prototype, "agentDefinition", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, core_1.Column)({ type: 'integer', default: 0 }),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], AgentBinding.prototype, "priority", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, core_1.CreateDateColumn)(),
|
|
59
|
-
__metadata("design:type", Date)
|
|
60
|
-
], AgentBinding.prototype, "createdAt", void 0);
|
|
61
|
-
exports.AgentBinding = AgentBinding = __decorate([
|
|
62
|
-
(0, core_1.Entity)('agent_bindings')
|
|
63
|
-
], AgentBinding);
|
|
64
|
-
//# sourceMappingURL=agent-binding.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-binding.entity.js","sourceRoot":"","sources":["../../src/entities/agent-binding.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOoB;AACpB,6EAA+D;AAC/D,uFAAyE;AAEzE;;;;GAIG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEvB,EAAE,CAAU;IAGZ,YAAY,CAAU;IAItB,UAAU,CAAwB;IAGlC,iBAAiB,CAAU;IAI3B,eAAe,CAAmB;IAGlC,QAAQ,CAAU;IAGlB,SAAS,CAAQ;CAClB,CAAA;AAvBY,oCAAY;AAEvB;IADC,IAAA,6BAAsB,GAAE;;wCACb;AAGZ;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;kDACN;AAItB;IAFC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,sDAAoB,CAAC;IACrC,IAAA,iBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACxB,sDAAoB;gDAAC;AAGlC;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACD;AAI3B;IAFC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,4CAAe,CAAC;IAChC,IAAA,iBAAU,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;8BACxB,4CAAe;qDAAC;AAGlC;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACtB;AAGlB;IADC,IAAA,uBAAgB,GAAE;8BACP,IAAI;+CAAC;uBAtBN,YAAY;IADxB,IAAA,aAAM,EAAC,gBAAgB,CAAC;GACZ,YAAY,CAuBxB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent definition — the blueprint for an agent type.
|
|
3
|
-
* Each definition describes what an agent can do (capabilities)
|
|
4
|
-
* and how it should be configured.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AgentDefinition {
|
|
7
|
-
id: number;
|
|
8
|
-
code: string;
|
|
9
|
-
name: string;
|
|
10
|
-
description: string | null;
|
|
11
|
-
avatar: string | null;
|
|
12
|
-
config: Record<string, unknown> | null;
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
createdAt: Date;
|
|
15
|
-
updatedAt: Date;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=agent-definition.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-definition.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-definition.entity.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,qBACa,eAAe;IAE1B,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,EAAG,MAAM,GAAG,IAAI,CAAC;IAG5B,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,MAAM,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAGxC,OAAO,EAAG,OAAO,CAAC;IAGlB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -1,70 +0,0 @@
|
|
|
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.AgentDefinition = void 0;
|
|
13
|
-
const core_1 = require("@octo/core");
|
|
14
|
-
/**
|
|
15
|
-
* Agent definition — the blueprint for an agent type.
|
|
16
|
-
* Each definition describes what an agent can do (capabilities)
|
|
17
|
-
* and how it should be configured.
|
|
18
|
-
*/
|
|
19
|
-
let AgentDefinition = class AgentDefinition {
|
|
20
|
-
id;
|
|
21
|
-
code;
|
|
22
|
-
name;
|
|
23
|
-
description;
|
|
24
|
-
avatar;
|
|
25
|
-
config;
|
|
26
|
-
enabled;
|
|
27
|
-
createdAt;
|
|
28
|
-
updatedAt;
|
|
29
|
-
};
|
|
30
|
-
exports.AgentDefinition = AgentDefinition;
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, core_1.PrimaryGeneratedColumn)(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], AgentDefinition.prototype, "id", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, core_1.Column)({ type: 'varchar', unique: true }),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], AgentDefinition.prototype, "code", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, core_1.Column)({ type: 'varchar' }),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], AgentDefinition.prototype, "name", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, core_1.Column)({ type: 'text', nullable: true }),
|
|
45
|
-
__metadata("design:type", Object)
|
|
46
|
-
], AgentDefinition.prototype, "description", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, core_1.Column)({ type: 'text', nullable: true }),
|
|
49
|
-
__metadata("design:type", Object)
|
|
50
|
-
], AgentDefinition.prototype, "avatar", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, core_1.Column)({ type: 'simple-json', nullable: true }),
|
|
53
|
-
__metadata("design:type", Object)
|
|
54
|
-
], AgentDefinition.prototype, "config", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, core_1.Column)({ type: 'boolean', default: true }),
|
|
57
|
-
__metadata("design:type", Boolean)
|
|
58
|
-
], AgentDefinition.prototype, "enabled", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, core_1.CreateDateColumn)(),
|
|
61
|
-
__metadata("design:type", Date)
|
|
62
|
-
], AgentDefinition.prototype, "createdAt", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, core_1.UpdateDateColumn)(),
|
|
65
|
-
__metadata("design:type", Date)
|
|
66
|
-
], AgentDefinition.prototype, "updatedAt", void 0);
|
|
67
|
-
exports.AgentDefinition = AgentDefinition = __decorate([
|
|
68
|
-
(0, core_1.Entity)('agent_definitions')
|
|
69
|
-
], AgentDefinition);
|
|
70
|
-
//# sourceMappingURL=agent-definition.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-definition.entity.js","sourceRoot":"","sources":["../../src/entities/agent-definition.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMoB;AAEpB;;;;GAIG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAe;IAE1B,EAAE,CAAU;IAGZ,IAAI,CAAU;IAGd,IAAI,CAAU;IAGd,WAAW,CAAiB;IAG5B,MAAM,CAAiB;IAGvB,MAAM,CAAkC;IAGxC,OAAO,CAAW;IAGlB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AA3BY,0CAAe;AAE1B;IADC,IAAA,6BAAsB,GAAE;;2CACb;AAGZ;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;6CAC5B;AAGd;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;6CACd;AAGd;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACb;AAG5B;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAClB;AAGvB;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAGxC;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDACzB;AAGlB;IADC,IAAA,uBAAgB,GAAE;8BACP,IAAI;kDAAC;AAGjB;IADC,IAAA,uBAAgB,GAAE;8BACP,IAAI;kDAAC;0BA1BN,eAAe;IAD3B,IAAA,aAAM,EAAC,mBAAmB,CAAC;GACf,eAAe,CA2B3B"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AgentInstance } from './agent-instance.entity.js';
|
|
2
|
-
import { CapabilityDefinition } from './capability-definition.entity.js';
|
|
3
|
-
export type AgentExecutionStatus = 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'TIMEOUT';
|
|
4
|
-
/**
|
|
5
|
-
* Agent execution — records a single execution of a capability
|
|
6
|
-
* by an agent instance.
|
|
7
|
-
*/
|
|
8
|
-
export declare class AgentExecution {
|
|
9
|
-
id: number;
|
|
10
|
-
instanceId: number | null;
|
|
11
|
-
instance: AgentInstance | null;
|
|
12
|
-
capabilityId: number | null;
|
|
13
|
-
capability: CapabilityDefinition | null;
|
|
14
|
-
status: AgentExecutionStatus;
|
|
15
|
-
input: Record<string, unknown> | null;
|
|
16
|
-
output: Record<string, unknown> | null;
|
|
17
|
-
error: string | null;
|
|
18
|
-
taskInstanceId: number | null;
|
|
19
|
-
durationMs: number;
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
completedAt: Date | null;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=agent-execution.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-execution.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-execution.entity.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE9F;;;GAGG;AACH,qBACa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAGZ,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAI3B,QAAQ,EAAG,aAAa,GAAG,IAAI,CAAC;IAGhC,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAI7B,UAAU,EAAG,oBAAoB,GAAG,IAAI,CAAC;IAGzC,MAAM,EAAG,oBAAoB,CAAC;IAG9B,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAGvC,MAAM,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAGxC,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,UAAU,EAAG,MAAM,CAAC;IAGpB,SAAS,EAAG,IAAI,CAAC;IAGjB,WAAW,EAAG,IAAI,GAAG,IAAI,CAAC;CAC3B"}
|
|
@@ -1,93 +0,0 @@
|
|
|
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.AgentExecution = void 0;
|
|
13
|
-
const core_1 = require("@octo/core");
|
|
14
|
-
const agent_instance_entity_js_1 = require("./agent-instance.entity.js");
|
|
15
|
-
const capability_definition_entity_js_1 = require("./capability-definition.entity.js");
|
|
16
|
-
/**
|
|
17
|
-
* Agent execution — records a single execution of a capability
|
|
18
|
-
* by an agent instance.
|
|
19
|
-
*/
|
|
20
|
-
let AgentExecution = class AgentExecution {
|
|
21
|
-
id;
|
|
22
|
-
instanceId;
|
|
23
|
-
instance;
|
|
24
|
-
capabilityId;
|
|
25
|
-
capability;
|
|
26
|
-
status;
|
|
27
|
-
input;
|
|
28
|
-
output;
|
|
29
|
-
error;
|
|
30
|
-
taskInstanceId;
|
|
31
|
-
durationMs;
|
|
32
|
-
createdAt;
|
|
33
|
-
completedAt;
|
|
34
|
-
};
|
|
35
|
-
exports.AgentExecution = AgentExecution;
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, core_1.PrimaryGeneratedColumn)(),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], AgentExecution.prototype, "id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, core_1.Column)({ type: 'integer', nullable: true }),
|
|
42
|
-
__metadata("design:type", Object)
|
|
43
|
-
], AgentExecution.prototype, "instanceId", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, core_1.ManyToOne)(() => agent_instance_entity_js_1.AgentInstance, { nullable: true }),
|
|
46
|
-
(0, core_1.JoinColumn)({ name: 'instanceId' }),
|
|
47
|
-
__metadata("design:type", Object)
|
|
48
|
-
], AgentExecution.prototype, "instance", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, core_1.Column)({ type: 'integer', nullable: true }),
|
|
51
|
-
__metadata("design:type", Object)
|
|
52
|
-
], AgentExecution.prototype, "capabilityId", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, core_1.ManyToOne)(() => capability_definition_entity_js_1.CapabilityDefinition, { nullable: true }),
|
|
55
|
-
(0, core_1.JoinColumn)({ name: 'capabilityId' }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], AgentExecution.prototype, "capability", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, core_1.Column)({ type: 'varchar', default: 'PENDING' }),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], AgentExecution.prototype, "status", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, core_1.Column)({ type: 'simple-json', nullable: true }),
|
|
64
|
-
__metadata("design:type", Object)
|
|
65
|
-
], AgentExecution.prototype, "input", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, core_1.Column)({ type: 'simple-json', nullable: true }),
|
|
68
|
-
__metadata("design:type", Object)
|
|
69
|
-
], AgentExecution.prototype, "output", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, core_1.Column)({ type: 'text', nullable: true }),
|
|
72
|
-
__metadata("design:type", Object)
|
|
73
|
-
], AgentExecution.prototype, "error", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, core_1.Column)({ type: 'integer', nullable: true }),
|
|
76
|
-
__metadata("design:type", Object)
|
|
77
|
-
], AgentExecution.prototype, "taskInstanceId", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, core_1.Column)({ type: 'integer', default: 0 }),
|
|
80
|
-
__metadata("design:type", Number)
|
|
81
|
-
], AgentExecution.prototype, "durationMs", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, core_1.CreateDateColumn)(),
|
|
84
|
-
__metadata("design:type", Date)
|
|
85
|
-
], AgentExecution.prototype, "createdAt", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, core_1.Column)({ type: 'datetime', nullable: true }),
|
|
88
|
-
__metadata("design:type", Object)
|
|
89
|
-
], AgentExecution.prototype, "completedAt", void 0);
|
|
90
|
-
exports.AgentExecution = AgentExecution = __decorate([
|
|
91
|
-
(0, core_1.Entity)('agent_executions')
|
|
92
|
-
], AgentExecution);
|
|
93
|
-
//# sourceMappingURL=agent-execution.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-execution.entity.js","sourceRoot":"","sources":["../../src/entities/agent-execution.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOoB;AACpB,yEAA2D;AAC3D,uFAAyE;AAIzE;;;GAGG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAU;IAGZ,UAAU,CAAiB;IAI3B,QAAQ,CAAwB;IAGhC,YAAY,CAAiB;IAI7B,UAAU,CAA+B;IAGzC,MAAM,CAAwB;IAG9B,KAAK,CAAkC;IAGvC,MAAM,CAAkC;IAGxC,KAAK,CAAiB;IAGtB,cAAc,CAAiB;IAG/B,UAAU,CAAU;IAGpB,SAAS,CAAQ;IAGjB,WAAW,CAAe;CAC3B,CAAA;AAzCY,wCAAc;AAEzB;IADC,IAAA,6BAAsB,GAAE;;0CACb;AAGZ;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACjB;AAI3B;IAFC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,wCAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,iBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;gDACH;AAGhC;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACf;AAI7B;IAFC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,sDAAoB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzD,IAAA,iBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;kDACI;AAGzC;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;;8CAClB;AAG9B;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACT;AAGvC;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACR;AAGxC;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACnB;AAGtB;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACb;AAG/B;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kDACpB;AAGpB;IADC,IAAA,uBAAgB,GAAE;8BACP,IAAI;iDAAC;AAGjB;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACnB;yBAxCf,cAAc;IAD1B,IAAA,aAAM,EAAC,kBAAkB,CAAC;GACd,cAAc,CAyC1B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AgentDefinition } from './agent-definition.entity.js';
|
|
2
|
-
export type AgentInstanceStatus = 'IDLE' | 'BUSY' | 'OFFLINE' | 'ERROR';
|
|
3
|
-
/**
|
|
4
|
-
* Agent instance — a running instance of an agent definition,
|
|
5
|
-
* bound to a specific client.
|
|
6
|
-
*/
|
|
7
|
-
export declare class AgentInstance {
|
|
8
|
-
id: number;
|
|
9
|
-
definitionId: number;
|
|
10
|
-
definition: AgentDefinition;
|
|
11
|
-
clientId: string;
|
|
12
|
-
status: AgentInstanceStatus;
|
|
13
|
-
runtimeConfig: Record<string, unknown> | null;
|
|
14
|
-
lastHeartbeat: Date | null;
|
|
15
|
-
enabled: boolean;
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
updatedAt: Date;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=agent-instance.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-instance.entity.d.ts","sourceRoot":"","sources":["../../src/entities/agent-instance.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAExE;;;GAGG;AACH,qBACa,aAAa;IAExB,EAAE,EAAG,MAAM,CAAC;IAGZ,YAAY,EAAG,MAAM,CAAC;IAItB,UAAU,EAAG,eAAe,CAAC;IAG7B,QAAQ,EAAG,MAAM,CAAC;IAGlB,MAAM,EAAG,mBAAmB,CAAC;IAG7B,aAAa,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAG/C,aAAa,EAAG,IAAI,GAAG,IAAI,CAAC;IAG5B,OAAO,EAAG,OAAO,CAAC;IAGlB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -1,76 +0,0 @@
|
|
|
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.AgentInstance = void 0;
|
|
13
|
-
const core_1 = require("@octo/core");
|
|
14
|
-
const agent_definition_entity_js_1 = require("./agent-definition.entity.js");
|
|
15
|
-
/**
|
|
16
|
-
* Agent instance — a running instance of an agent definition,
|
|
17
|
-
* bound to a specific client.
|
|
18
|
-
*/
|
|
19
|
-
let AgentInstance = class AgentInstance {
|
|
20
|
-
id;
|
|
21
|
-
definitionId;
|
|
22
|
-
definition;
|
|
23
|
-
clientId;
|
|
24
|
-
status;
|
|
25
|
-
runtimeConfig;
|
|
26
|
-
lastHeartbeat;
|
|
27
|
-
enabled;
|
|
28
|
-
createdAt;
|
|
29
|
-
updatedAt;
|
|
30
|
-
};
|
|
31
|
-
exports.AgentInstance = AgentInstance;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, core_1.PrimaryGeneratedColumn)(),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], AgentInstance.prototype, "id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, core_1.Column)({ type: 'integer' }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], AgentInstance.prototype, "definitionId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, core_1.ManyToOne)(() => agent_definition_entity_js_1.AgentDefinition),
|
|
42
|
-
(0, core_1.JoinColumn)({ name: 'definitionId' }),
|
|
43
|
-
__metadata("design:type", agent_definition_entity_js_1.AgentDefinition)
|
|
44
|
-
], AgentInstance.prototype, "definition", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, core_1.Column)({ type: 'varchar' }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], AgentInstance.prototype, "clientId", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, core_1.Column)({ type: 'varchar', default: 'IDLE' }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], AgentInstance.prototype, "status", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, core_1.Column)({ type: 'simple-json', nullable: true }),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], AgentInstance.prototype, "runtimeConfig", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, core_1.Column)({ type: 'datetime', nullable: true }),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], AgentInstance.prototype, "lastHeartbeat", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, core_1.Column)({ type: 'boolean', default: true }),
|
|
63
|
-
__metadata("design:type", Boolean)
|
|
64
|
-
], AgentInstance.prototype, "enabled", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, core_1.CreateDateColumn)(),
|
|
67
|
-
__metadata("design:type", Date)
|
|
68
|
-
], AgentInstance.prototype, "createdAt", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, core_1.UpdateDateColumn)(),
|
|
71
|
-
__metadata("design:type", Date)
|
|
72
|
-
], AgentInstance.prototype, "updatedAt", void 0);
|
|
73
|
-
exports.AgentInstance = AgentInstance = __decorate([
|
|
74
|
-
(0, core_1.Entity)('agent_instances')
|
|
75
|
-
], AgentInstance);
|
|
76
|
-
//# sourceMappingURL=agent-instance.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-instance.entity.js","sourceRoot":"","sources":["../../src/entities/agent-instance.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQoB;AACpB,6EAA+D;AAI/D;;;GAGG;AAEI,IAAM,aAAa,GAAnB,MAAM,aAAa;IAExB,EAAE,CAAU;IAGZ,YAAY,CAAU;IAItB,UAAU,CAAmB;IAG7B,QAAQ,CAAU;IAGlB,MAAM,CAAuB;IAG7B,aAAa,CAAkC;IAG/C,aAAa,CAAe;IAG5B,OAAO,CAAW;IAGlB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AA/BY,sCAAa;AAExB;IADC,IAAA,6BAAsB,GAAE;;yCACb;AAGZ;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACN;AAItB;IAFC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,4CAAe,CAAC;IAChC,IAAA,iBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACxB,4CAAe;iDAAC;AAG7B;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACV;AAGlB;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;;6CAChB;AAG7B;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACD;AAG/C;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACjB;AAG5B;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CACzB;AAGlB;IADC,IAAA,uBAAgB,GAAE;8BACP,IAAI;gDAAC;AAGjB;IADC,IAAA,uBAAgB,GAAE;8BACP,IAAI;gDAAC;wBA9BN,aAAa;IADzB,IAAA,aAAM,EAAC,iBAAiB,CAAC;GACb,aAAa,CA+BzB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Capability definition — describes an execution capability
|
|
3
|
-
* (e.g., gemini-cli, claude-cli, notebooklm-py, shadow-window).
|
|
4
|
-
*
|
|
5
|
-
* Capabilities are the bridge between what an agent can do
|
|
6
|
-
* and which client can execute it.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CapabilityDefinition {
|
|
9
|
-
id: number;
|
|
10
|
-
code: string;
|
|
11
|
-
name: string;
|
|
12
|
-
description: string | null;
|
|
13
|
-
category: string | null;
|
|
14
|
-
inputSchema: Record<string, unknown> | null;
|
|
15
|
-
outputSchema: Record<string, unknown> | null;
|
|
16
|
-
enabled: boolean;
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=capability-definition.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capability-definition.entity.d.ts","sourceRoot":"","sources":["../../src/entities/capability-definition.entity.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,qBACa,oBAAoB;IAE/B,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,EAAG,MAAM,GAAG,IAAI,CAAC;IAG5B,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,WAAW,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAG7C,YAAY,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAG9C,OAAO,EAAG,OAAO,CAAC;IAGlB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -1,77 +0,0 @@
|
|
|
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.CapabilityDefinition = void 0;
|
|
13
|
-
const core_1 = require("@octo/core");
|
|
14
|
-
/**
|
|
15
|
-
* Capability definition — describes an execution capability
|
|
16
|
-
* (e.g., gemini-cli, claude-cli, notebooklm-py, shadow-window).
|
|
17
|
-
*
|
|
18
|
-
* Capabilities are the bridge between what an agent can do
|
|
19
|
-
* and which client can execute it.
|
|
20
|
-
*/
|
|
21
|
-
let CapabilityDefinition = class CapabilityDefinition {
|
|
22
|
-
id;
|
|
23
|
-
code;
|
|
24
|
-
name;
|
|
25
|
-
description;
|
|
26
|
-
category;
|
|
27
|
-
inputSchema;
|
|
28
|
-
outputSchema;
|
|
29
|
-
enabled;
|
|
30
|
-
createdAt;
|
|
31
|
-
updatedAt;
|
|
32
|
-
};
|
|
33
|
-
exports.CapabilityDefinition = CapabilityDefinition;
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, core_1.PrimaryGeneratedColumn)(),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], CapabilityDefinition.prototype, "id", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, core_1.Column)({ type: 'varchar', unique: true }),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], CapabilityDefinition.prototype, "code", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, core_1.Column)({ type: 'varchar' }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], CapabilityDefinition.prototype, "name", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, core_1.Column)({ type: 'text', nullable: true }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], CapabilityDefinition.prototype, "description", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, core_1.Column)({ type: 'text', nullable: true }),
|
|
52
|
-
__metadata("design:type", Object)
|
|
53
|
-
], CapabilityDefinition.prototype, "category", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, core_1.Column)({ type: 'simple-json', nullable: true }),
|
|
56
|
-
__metadata("design:type", Object)
|
|
57
|
-
], CapabilityDefinition.prototype, "inputSchema", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, core_1.Column)({ type: 'simple-json', nullable: true }),
|
|
60
|
-
__metadata("design:type", Object)
|
|
61
|
-
], CapabilityDefinition.prototype, "outputSchema", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, core_1.Column)({ type: 'boolean', default: true }),
|
|
64
|
-
__metadata("design:type", Boolean)
|
|
65
|
-
], CapabilityDefinition.prototype, "enabled", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, core_1.CreateDateColumn)(),
|
|
68
|
-
__metadata("design:type", Date)
|
|
69
|
-
], CapabilityDefinition.prototype, "createdAt", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, core_1.UpdateDateColumn)(),
|
|
72
|
-
__metadata("design:type", Date)
|
|
73
|
-
], CapabilityDefinition.prototype, "updatedAt", void 0);
|
|
74
|
-
exports.CapabilityDefinition = CapabilityDefinition = __decorate([
|
|
75
|
-
(0, core_1.Entity)('capability_definitions')
|
|
76
|
-
], CapabilityDefinition);
|
|
77
|
-
//# sourceMappingURL=capability-definition.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capability-definition.entity.js","sourceRoot":"","sources":["../../src/entities/capability-definition.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMoB;AAEpB;;;;;;GAMG;AAEI,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,EAAE,CAAU;IAGZ,IAAI,CAAU;IAGd,IAAI,CAAU;IAGd,WAAW,CAAiB;IAG5B,QAAQ,CAAiB;IAGzB,WAAW,CAAkC;IAG7C,YAAY,CAAkC;IAG9C,OAAO,CAAW;IAGlB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AA9BY,oDAAoB;AAE/B;IADC,IAAA,6BAAsB,GAAE;;gDACb;AAGZ;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDAC5B;AAGd;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;kDACd;AAGd;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACb;AAG5B;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAChB;AAGzB;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACH;AAG7C;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACF;AAG9C;IADC,IAAA,aAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qDACzB;AAGlB;IADC,IAAA,uBAAgB,GAAE;8BACP,IAAI;uDAAC;AAGjB;IADC,IAAA,uBAAgB,GAAE;8BACP,IAAI;uDAAC;+BA7BN,oBAAoB;IADhC,IAAA,aAAM,EAAC,wBAAwB,CAAC;GACpB,oBAAoB,CA8BhC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type ClientStatus = 'ONLINE' | 'OFFLINE' | 'UNKNOWN';
|
|
2
|
-
/**
|
|
3
|
-
* Client registration — tracks connected clients
|
|
4
|
-
* (desktop apps, remote agents, etc.) and their capabilities.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ClientRegistration {
|
|
7
|
-
id: number;
|
|
8
|
-
clientId: string;
|
|
9
|
-
clientName: string | null;
|
|
10
|
-
platform: string | null;
|
|
11
|
-
enabledCapabilities: string[] | null;
|
|
12
|
-
status: ClientStatus;
|
|
13
|
-
userId: number | null;
|
|
14
|
-
lastHeartbeat: Date | null;
|
|
15
|
-
metadata: string | null;
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
updatedAt: Date;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=client-registration.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-registration.entity.d.ts","sourceRoot":"","sources":["../../src/entities/client-registration.entity.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5D;;;GAGG;AACH,qBACa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAGZ,QAAQ,EAAG,MAAM,CAAC;IAGlB,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAG3B,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,mBAAmB,EAAG,MAAM,EAAE,GAAG,IAAI,CAAC;IAGtC,MAAM,EAAG,YAAY,CAAC;IAGtB,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,aAAa,EAAG,IAAI,GAAG,IAAI,CAAC;IAG5B,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|