@purpleschool/gptbot 0.13.32 → 0.13.34
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/build/commands/ai-studio/canvas/index.js +1 -0
- package/build/commands/ai-studio/canvas/recover-stale-nodes.command.js +14 -0
- package/build/models/canvas-node.schema.js +1 -0
- package/commands/ai-studio/canvas/index.ts +1 -0
- package/commands/ai-studio/canvas/recover-stale-nodes.command.ts +13 -0
- package/models/canvas-node.schema.ts +1 -0
- package/package.json +1 -1
|
@@ -24,3 +24,4 @@ __exportStar(require("./save-canvas.command"), exports);
|
|
|
24
24
|
__exportStar(require("./update-canvas.command"), exports);
|
|
25
25
|
__exportStar(require("./execute-graph-by-node.command"), exports);
|
|
26
26
|
__exportStar(require("./get-price.query"), exports);
|
|
27
|
+
__exportStar(require("./recover-stale-nodes.command"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecoverStaleNodesCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var RecoverStaleNodesCommand;
|
|
6
|
+
(function (RecoverStaleNodesCommand) {
|
|
7
|
+
RecoverStaleNodesCommand.RequestSchema = zod_1.z
|
|
8
|
+
.object({
|
|
9
|
+
staleMinutes: zod_1.z.number().int().positive().default(5),
|
|
10
|
+
maxStaleMinutes: zod_1.z.number().int().positive().default(60),
|
|
11
|
+
limit: zod_1.z.number().int().positive().default(50),
|
|
12
|
+
})
|
|
13
|
+
.default({});
|
|
14
|
+
})(RecoverStaleNodesCommand || (exports.RecoverStaleNodesCommand = RecoverStaleNodesCommand = {}));
|
|
@@ -212,6 +212,7 @@ exports.CanvasNodeBaseSchema = zod_1.z.object({
|
|
|
212
212
|
status: zod_1.z.nativeEnum(constants_1.NODE_RUN_STATUS),
|
|
213
213
|
toolJobId: zod_1.z.string().uuid().nullable(),
|
|
214
214
|
params: zod_1.z.unknown().nullable(),
|
|
215
|
+
isParamsChanged: zod_1.z.boolean().optional(),
|
|
215
216
|
output: zod_1.z.unknown().nullable(),
|
|
216
217
|
error: exports.CanvasNodeErrorSchema.nullable(),
|
|
217
218
|
createdAt: zod_1.z.date(),
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace RecoverStaleNodesCommand {
|
|
4
|
+
export const RequestSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
staleMinutes: z.number().int().positive().default(5),
|
|
7
|
+
maxStaleMinutes: z.number().int().positive().default(60),
|
|
8
|
+
limit: z.number().int().positive().default(50),
|
|
9
|
+
})
|
|
10
|
+
.default({});
|
|
11
|
+
|
|
12
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
13
|
+
}
|
|
@@ -332,6 +332,7 @@ export const CanvasNodeBaseSchema = z.object({
|
|
|
332
332
|
status: z.nativeEnum(NODE_RUN_STATUS),
|
|
333
333
|
toolJobId: z.string().uuid().nullable(),
|
|
334
334
|
params: z.unknown().nullable(),
|
|
335
|
+
isParamsChanged: z.boolean().optional(),
|
|
335
336
|
output: z.unknown().nullable(),
|
|
336
337
|
error: CanvasNodeErrorSchema.nullable(),
|
|
337
338
|
createdAt: z.date(),
|