@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.
@@ -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(),
@@ -8,3 +8,4 @@ export * from './save-canvas.command';
8
8
  export * from './update-canvas.command';
9
9
  export * from './execute-graph-by-node.command';
10
10
  export * from './get-price.query';
11
+ export * from './recover-stale-nodes.command';
@@ -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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.13.32",
3
+ "version": "0.13.34",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",