@bpinhosilva/agent-orchestrator 1.1.2 → 1.1.3
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
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.1.3](https://github.com/bpinhosilva/agent-orchestrator/compare/v1.1.2...v1.1.3) (2026-05-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add UUID support and Postman collection generation ([a4bfd77](https://github.com/bpinhosilva/agent-orchestrator/commit/a4bfd7733d7a28ba3bc06748a6dce1ca27c5c466))
|
|
7
|
+
* update cron job handling to replace inactive jobs for active tasks ([3d01155](https://github.com/bpinhosilva/agent-orchestrator/commit/3d01155f3f8f5be127e2bace79ede889502e4ec8))
|
|
8
|
+
|
|
1
9
|
## [1.1.2](https://github.com/bpinhosilva/agent-orchestrator/compare/v1.1.1...v1.1.2) (2026-04-21)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.convertOpenApiToPostman = convertOpenApiToPostman;
|
|
37
|
+
exports.writePostmanCollection = writePostmanCollection;
|
|
38
|
+
const fs = __importStar(require("fs"));
|
|
39
|
+
function convertOpenApiToPostman(openApiJson, convert) {
|
|
40
|
+
return new Promise((resolve, reject) => {
|
|
41
|
+
convert({ type: 'string', data: openApiJson }, { schemaFaker: true }, (error, result) => {
|
|
42
|
+
if (error) {
|
|
43
|
+
reject(error instanceof Error ? error : new Error('Converter failed'));
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (!result?.result) {
|
|
47
|
+
reject(new Error(result?.reason ??
|
|
48
|
+
'Could not convert OpenAPI document to Postman collection'));
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
resolve(result.output?.[0]?.data ?? {});
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function writePostmanCollection(outputPath, collection) {
|
|
56
|
+
fs.writeFileSync(outputPath, JSON.stringify(collection, null, 2));
|
|
57
|
+
}
|
|
@@ -103,11 +103,10 @@ let RecurrentTaskSchedulerService = RecurrentTaskSchedulerService_1 = class Recu
|
|
|
103
103
|
if (name.startsWith('recurrent-task-')) {
|
|
104
104
|
const taskId = name.replace('recurrent-task-', '');
|
|
105
105
|
const task = activeTasks.find((t) => t.id === taskId);
|
|
106
|
-
const
|
|
106
|
+
const jobIsInactive = !job.isActive;
|
|
107
107
|
if (!activeTaskIds.has(taskId) ||
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
jobWithCron.cronTime.source !== task.cronExpression)) {
|
|
108
|
+
jobIsInactive ||
|
|
109
|
+
(task && job.cronTime && job.cronTime.source !== task.cronExpression)) {
|
|
111
110
|
void job.stop();
|
|
112
111
|
this.schedulerRegistry.deleteCronJob(name);
|
|
113
112
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpinhosilva/agent-orchestrator",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "An open-source AI agent orchestrator platform built with NestJS.",
|
|
5
5
|
"author": "bpinhosilva",
|
|
6
6
|
"license": "MIT",
|
|
@@ -155,8 +155,10 @@
|
|
|
155
155
|
"@angular-devkit/core": "^21.2.5",
|
|
156
156
|
"@angular-devkit/schematics": "^21.2.5",
|
|
157
157
|
"typeorm": {
|
|
158
|
-
"glob": "^13.0.0"
|
|
159
|
-
|
|
158
|
+
"glob": "^13.0.0",
|
|
159
|
+
"uuid": "^14.0.0"
|
|
160
|
+
},
|
|
161
|
+
"uuid": "^14.0.0"
|
|
160
162
|
},
|
|
161
163
|
"jest": {
|
|
162
164
|
"moduleFileExtensions": [
|
|
@@ -183,6 +185,9 @@
|
|
|
183
185
|
],
|
|
184
186
|
"coverageDirectory": "../coverage",
|
|
185
187
|
"testEnvironment": "node",
|
|
186
|
-
"maxWorkers": 1
|
|
188
|
+
"maxWorkers": 1,
|
|
189
|
+
"moduleNameMapper": {
|
|
190
|
+
"^uuid$": "<rootDir>/../test/mocks/uuid.js"
|
|
191
|
+
}
|
|
187
192
|
}
|
|
188
193
|
}
|