@purpleschool/gptbot 0.13.31 → 0.13.33
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/api/controllers/http/canvas-cron.ts +5 -0
- package/api/controllers/http/files.ts +1 -0
- package/api/controllers/http/index.ts +1 -0
- package/api/routes.ts +3 -0
- package/build/api/controllers/http/canvas-cron.js +7 -0
- package/build/api/controllers/http/files.js +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/routes.js +3 -0
- 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/constants/subscription/free-subscription.constant.js +4 -4
- package/commands/ai-studio/canvas/index.ts +1 -0
- package/commands/ai-studio/canvas/recover-stale-nodes.command.ts +13 -0
- package/constants/subscription/free-subscription.constant.ts +4 -4
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export const FILE_PUBLIC_CONTROLLER = 'public/file' as const;
|
|
|
4
4
|
export const FILE_ROUTES = {
|
|
5
5
|
DELETE: (uuid: string) => `${uuid}`,
|
|
6
6
|
UPLOAD: 'upload',
|
|
7
|
+
UPLOAD_PUBLIC: 'upload-public',
|
|
7
8
|
UPLOAD_FILE: 'upload-file',
|
|
8
9
|
UPLOAD_IMAGE: 'upload-image',
|
|
9
10
|
CALCULATE_TEXT_FILE_COST: (uuid: string) => `cost/text/${uuid}`,
|
package/api/routes.ts
CHANGED
|
@@ -580,6 +580,9 @@ export const REST_API = {
|
|
|
580
580
|
DELETE: (uuid: string) =>
|
|
581
581
|
`${ROOT}/${CONTROLLERS.CANVAS_PRIVATE_CONTROLLER}/${CONTROLLERS.CANVAS_ROUTES.DELETE(uuid)}`,
|
|
582
582
|
},
|
|
583
|
+
CANVAS_CRON: {
|
|
584
|
+
RECOVER_STALE_NODES: `${ROOT}/${CONTROLLERS.CANVAS_CRON_PRIVATE_CONTROLLER}/${CONTROLLERS.CANVAS_CRON_ROUTES.RECOVER_STALE_NODES}`,
|
|
585
|
+
},
|
|
583
586
|
USER_TO_PRODUCT: {
|
|
584
587
|
FIND_BY_UUID: (uuid: string) =>
|
|
585
588
|
`${ROOT}/${CONTROLLERS.USER_TO_PRODUCT_CONTROLLER}/${CONTROLLERS.USER_TO_PRODUCT_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CANVAS_CRON_ROUTES = exports.CANVAS_CRON_PRIVATE_CONTROLLER = void 0;
|
|
4
|
+
exports.CANVAS_CRON_PRIVATE_CONTROLLER = 'private/canvas/cron';
|
|
5
|
+
exports.CANVAS_CRON_ROUTES = {
|
|
6
|
+
RECOVER_STALE_NODES: 'recover-stale-nodes',
|
|
7
|
+
};
|
|
@@ -6,6 +6,7 @@ exports.FILE_PUBLIC_CONTROLLER = 'public/file';
|
|
|
6
6
|
exports.FILE_ROUTES = {
|
|
7
7
|
DELETE: (uuid) => `${uuid}`,
|
|
8
8
|
UPLOAD: 'upload',
|
|
9
|
+
UPLOAD_PUBLIC: 'upload-public',
|
|
9
10
|
UPLOAD_FILE: 'upload-file',
|
|
10
11
|
UPLOAD_IMAGE: 'upload-image',
|
|
11
12
|
CALCULATE_TEXT_FILE_COST: (uuid) => `cost/text/${uuid}`,
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./ai-vendor"), exports);
|
|
|
22
22
|
__exportStar(require("./auth"), exports);
|
|
23
23
|
__exportStar(require("./blog"), exports);
|
|
24
24
|
__exportStar(require("./canvas"), exports);
|
|
25
|
+
__exportStar(require("./canvas-cron"), exports);
|
|
25
26
|
__exportStar(require("./canvas-node-definition"), exports);
|
|
26
27
|
__exportStar(require("./canvas-node"), exports);
|
|
27
28
|
__exportStar(require("./canvas-edge"), exports);
|
package/build/api/routes.js
CHANGED
|
@@ -454,6 +454,9 @@ exports.REST_API = {
|
|
|
454
454
|
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.CANVAS_PRIVATE_CONTROLLER}/${CONTROLLERS.CANVAS_ROUTES.UPDATE(uuid)}`,
|
|
455
455
|
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.CANVAS_PRIVATE_CONTROLLER}/${CONTROLLERS.CANVAS_ROUTES.DELETE(uuid)}`,
|
|
456
456
|
},
|
|
457
|
+
CANVAS_CRON: {
|
|
458
|
+
RECOVER_STALE_NODES: `${exports.ROOT}/${CONTROLLERS.CANVAS_CRON_PRIVATE_CONTROLLER}/${CONTROLLERS.CANVAS_CRON_ROUTES.RECOVER_STALE_NODES}`,
|
|
459
|
+
},
|
|
457
460
|
USER_TO_PRODUCT: {
|
|
458
461
|
FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.USER_TO_PRODUCT_CONTROLLER}/${CONTROLLERS.USER_TO_PRODUCT_ROUTES.FIND_BY_UUID(uuid)}`,
|
|
459
462
|
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USER_TO_PRODUCT_CONTROLLER}/${CONTROLLERS.USER_TO_PRODUCT_ROUTES.UPDATE(uuid)}`,
|
|
@@ -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 = {}));
|
|
@@ -16,12 +16,12 @@ exports.FREE_SUBSCRIPTION_DATA = {
|
|
|
16
16
|
plan: enums_1.SUBSCRIPTION_PLAN.mock,
|
|
17
17
|
icons: {
|
|
18
18
|
light: {
|
|
19
|
-
svg: 'https://rugpt.
|
|
20
|
-
png: 'https://rugpt.
|
|
19
|
+
svg: 'https://rugpt.storage.rugpt.io/images/images/81b60ce5-b687-43ff-85dd-e4e47c8e81e9.svg',
|
|
20
|
+
png: 'https://rugpt.storage.rugpt.io/images/images/e1bb1acd-a387-4596-8fd5-0159f692ff11.png',
|
|
21
21
|
},
|
|
22
22
|
dark: {
|
|
23
|
-
svg: 'https://rugpt.
|
|
24
|
-
png: 'https://rugpt.
|
|
23
|
+
svg: 'https://rugpt.storage.rugpt.io/images/images/ac095d48-a66b-4862-82c7-eb120b5bd467.svg',
|
|
24
|
+
png: 'https://rugpt.storage.rugpt.io/images/images/e2208949-a73a-4137-b5bd-760599a70691.png',
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
interval: '',
|
|
@@ -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
|
+
}
|
|
@@ -19,12 +19,12 @@ export const FREE_SUBSCRIPTION_DATA = {
|
|
|
19
19
|
plan: SUBSCRIPTION_PLAN.mock,
|
|
20
20
|
icons: {
|
|
21
21
|
light: {
|
|
22
|
-
svg: 'https://rugpt.
|
|
23
|
-
png: 'https://rugpt.
|
|
22
|
+
svg: 'https://rugpt.storage.rugpt.io/images/images/81b60ce5-b687-43ff-85dd-e4e47c8e81e9.svg',
|
|
23
|
+
png: 'https://rugpt.storage.rugpt.io/images/images/e1bb1acd-a387-4596-8fd5-0159f692ff11.png',
|
|
24
24
|
},
|
|
25
25
|
dark: {
|
|
26
|
-
svg: 'https://rugpt.
|
|
27
|
-
png: 'https://rugpt.
|
|
26
|
+
svg: 'https://rugpt.storage.rugpt.io/images/images/ac095d48-a66b-4862-82c7-eb120b5bd467.svg',
|
|
27
|
+
png: 'https://rugpt.storage.rugpt.io/images/images/e2208949-a73a-4137-b5bd-760599a70691.png',
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
interval: '',
|