@naisys/erp 3.0.0-beta.29 → 3.0.0-beta.30
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/client-dist/assets/{index-D5MoA1Ko.js → index-CXmH80Ig.js} +1 -1
- package/client-dist/index.html +1 -1
- package/dist/erpRoutes.js +3 -2
- package/dist/erpServer.js +6 -3
- package/dist/routes/dispatch.js +5 -5
- package/dist/routes/work-centers.js +1 -1
- package/npm-shrinkwrap.json +28 -28
- package/package.json +6 -6
|
@@ -47,7 +47,7 @@ object({
|
|
|
47
47
|
chatEnabled: boolean().optional().describe("Show chat commands to the agent. Chat encourages more concise communication"),
|
|
48
48
|
webEnabled: boolean().optional().describe("Allow agent to browse the web with Lynx, a text based browser"),
|
|
49
49
|
completeSessionEnabled: boolean().optional().describe("Allow the agent to end its session. Once ended, it can only be restarted explicitly or via mail if wakeOnMessage is enabled. Disable on root agents to prevent the system from going unresponsive"),
|
|
50
|
-
debugPauseSeconds: number().int("Must be a whole number").min(0, "Must be non-negative").optional().describe("Seconds to wait at the debug prompt before auto-continuing, only applies when the agent's console is in focus. Unset waits indefinitely for manual input"),
|
|
50
|
+
debugPauseSeconds: number().int("Must be a whole number").min(0, "Must be non-negative").optional().describe("Seconds to wait at the debug prompt before auto-continuing, only applies when the agent's console is in focus. Set to 0 to continue immediately. Unset waits indefinitely for manual input"),
|
|
51
51
|
wakeOnMessage: boolean().optional().describe("When mail or chat is received, start the agent automatically, or wake it from its wait state"),
|
|
52
52
|
commandProtection: _enum([
|
|
53
53
|
"none",
|
package/client-dist/index.html
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<meta name="format-detection" content="telephone=no" />
|
|
34
34
|
|
|
35
35
|
<title>NAISYS ERP</title>
|
|
36
|
-
<script type="module" crossorigin src="/erp/assets/index-
|
|
36
|
+
<script type="module" crossorigin src="/erp/assets/index-CXmH80Ig.js"></script>
|
|
37
37
|
<link rel="modulepreload" crossorigin href="/erp/assets/rolldown-runtime-CvHMtSRF.js">
|
|
38
38
|
<link rel="modulepreload" crossorigin href="/erp/assets/vendor-DFaFIeiT.js">
|
|
39
39
|
<link rel="stylesheet" crossorigin href="/erp/assets/vendor-CLUPjUnv.css">
|
package/dist/erpRoutes.js
CHANGED
|
@@ -26,11 +26,11 @@ import stepRunFieldRoutes from "./routes/step-run-fields.js";
|
|
|
26
26
|
import stepRunTransitionRoutes from "./routes/step-run-transitions.js";
|
|
27
27
|
import stepRunRoutes from "./routes/step-runs.js";
|
|
28
28
|
import stepRoutes from "./routes/steps.js";
|
|
29
|
-
import { isSupervisorAuth } from "./supervisorAuth.js";
|
|
30
29
|
import userPermissionRoutes from "./routes/user-permissions.js";
|
|
31
30
|
import userRoutes from "./routes/users.js";
|
|
32
31
|
import workCenterRoutes from "./routes/work-centers.js";
|
|
33
|
-
|
|
32
|
+
import { isSupervisorAuth } from "./supervisorAuth.js";
|
|
33
|
+
export const erpRoutes = (fastify) => {
|
|
34
34
|
fastify.register(adminRoutes, { prefix: "/erp/api/admin" });
|
|
35
35
|
fastify.register(auditRoutes, { prefix: "/erp/api/audit" });
|
|
36
36
|
fastify.register(authRoutes, { prefix: "/erp/api/auth" });
|
|
@@ -110,5 +110,6 @@ export const erpRoutes = async (fastify) => {
|
|
|
110
110
|
publicRead: process.env.PUBLIC_READ === "true",
|
|
111
111
|
supervisorAuth: isSupervisorAuth(),
|
|
112
112
|
}));
|
|
113
|
+
return Promise.resolve();
|
|
113
114
|
};
|
|
114
115
|
//# sourceMappingURL=erpRoutes.js.map
|
package/dist/erpServer.js
CHANGED
|
@@ -188,7 +188,11 @@ if (process.argv[1] === fileURLToPath(import.meta.url)) {
|
|
|
188
188
|
type: "fields",
|
|
189
189
|
comment: "ERP configuration",
|
|
190
190
|
fields: [
|
|
191
|
-
{
|
|
191
|
+
{
|
|
192
|
+
key: "NAISYS_FOLDER",
|
|
193
|
+
label: "NAISYS Data Folder",
|
|
194
|
+
defaultValue: cwdWithTilde(),
|
|
195
|
+
},
|
|
192
196
|
{ key: "SERVER_PORT", label: "Server Port" },
|
|
193
197
|
{ key: "SUPERVISOR_AUTH", label: "Use Supervisor for Auth" },
|
|
194
198
|
{ key: "PUBLIC_READ", label: "Public Read Access" },
|
|
@@ -202,8 +206,7 @@ if (process.argv[1] === fileURLToPath(import.meta.url)) {
|
|
|
202
206
|
wizardRan = await runSetupWizard(path.resolve(".env"), erpExampleUrl, erpWizardConfig);
|
|
203
207
|
expandNaisysFolder();
|
|
204
208
|
}
|
|
205
|
-
wizardRan =
|
|
206
|
-
(await ensureDotEnv(erpExampleUrl, erpWizardConfig)) || wizardRan;
|
|
209
|
+
wizardRan = (await ensureDotEnv(erpExampleUrl, erpWizardConfig)) || wizardRan;
|
|
207
210
|
void startServer(wizardRan);
|
|
208
211
|
}
|
|
209
212
|
//# sourceMappingURL=erpServer.js.map
|
package/dist/routes/dispatch.js
CHANGED
|
@@ -189,10 +189,7 @@ export default function dispatchRoutes(fastify) {
|
|
|
189
189
|
operationRuns: {
|
|
190
190
|
none: {
|
|
191
191
|
status: {
|
|
192
|
-
notIn: [
|
|
193
|
-
OperationRunStatus.completed,
|
|
194
|
-
OperationRunStatus.skipped,
|
|
195
|
-
],
|
|
192
|
+
notIn: [OperationRunStatus.completed, OperationRunStatus.skipped],
|
|
196
193
|
},
|
|
197
194
|
},
|
|
198
195
|
},
|
|
@@ -235,7 +232,10 @@ export default function dispatchRoutes(fastify) {
|
|
|
235
232
|
page,
|
|
236
233
|
pageSize,
|
|
237
234
|
_links: [
|
|
238
|
-
...paginationLinks("dispatch/ready-to-close", page, pageSize, total, {
|
|
235
|
+
...paginationLinks("dispatch/ready-to-close", page, pageSize, total, {
|
|
236
|
+
priority,
|
|
237
|
+
search,
|
|
238
|
+
}),
|
|
239
239
|
{
|
|
240
240
|
rel: "dispatch",
|
|
241
241
|
href: `${API_PREFIX}/dispatch`,
|
|
@@ -3,7 +3,7 @@ import { z } from "zod/v4";
|
|
|
3
3
|
import { hasPermission, requirePermission } from "../auth-middleware.js";
|
|
4
4
|
import { notFound } from "../error-handler.js";
|
|
5
5
|
import { API_PREFIX, collectionLink, paginationLinks, schemaLink, selfLink, } from "../hateoas.js";
|
|
6
|
-
import { formatAuditFields, mutationResult, permGate } from "../route-helpers.js";
|
|
6
|
+
import { formatAuditFields, mutationResult, permGate, } from "../route-helpers.js";
|
|
7
7
|
import { assignUser, createWorkCenter, deleteWorkCenter, findExisting, listWorkCenters, removeUser, updateWorkCenter, } from "../services/work-center-service.js";
|
|
8
8
|
const RESOURCE = "work-centers";
|
|
9
9
|
const KeyParamsSchema = z.object({
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naisys/erp",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.30",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@naisys/erp",
|
|
9
|
-
"version": "3.0.0-beta.
|
|
9
|
+
"version": "3.0.0-beta.30",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@fastify/cookie": "^11.0.2",
|
|
12
12
|
"@fastify/cors": "^11.2.0",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"@fastify/rate-limit": "^10.3.0",
|
|
15
15
|
"@fastify/static": "^9.0.0",
|
|
16
16
|
"@fastify/swagger": "^9.7.0",
|
|
17
|
-
"@naisys/common": "3.0.0-beta.
|
|
18
|
-
"@naisys/common-node": "3.0.0-beta.
|
|
19
|
-
"@naisys/erp-shared": "3.0.0-beta.
|
|
20
|
-
"@naisys/hub-database": "3.0.0-beta.
|
|
21
|
-
"@naisys/supervisor-database": "3.0.0-beta.
|
|
17
|
+
"@naisys/common": "3.0.0-beta.30",
|
|
18
|
+
"@naisys/common-node": "3.0.0-beta.30",
|
|
19
|
+
"@naisys/erp-shared": "3.0.0-beta.30",
|
|
20
|
+
"@naisys/hub-database": "3.0.0-beta.30",
|
|
21
|
+
"@naisys/supervisor-database": "3.0.0-beta.30",
|
|
22
22
|
"@prisma/adapter-better-sqlite3": "^7.5.0",
|
|
23
23
|
"@prisma/client": "^7.5.0",
|
|
24
24
|
"@scalar/fastify-api-reference": "^1.48.7",
|
|
@@ -444,41 +444,41 @@
|
|
|
444
444
|
}
|
|
445
445
|
},
|
|
446
446
|
"node_modules/@naisys/common": {
|
|
447
|
-
"version": "3.0.0-beta.
|
|
448
|
-
"resolved": "https://registry.npmjs.org/@naisys/common/-/common-3.0.0-beta.
|
|
449
|
-
"integrity": "sha512-
|
|
447
|
+
"version": "3.0.0-beta.30",
|
|
448
|
+
"resolved": "https://registry.npmjs.org/@naisys/common/-/common-3.0.0-beta.30.tgz",
|
|
449
|
+
"integrity": "sha512-xccdzzGpPLAi1kxatmQNUF9ojDkGM9L2s5ZiRsDmllZs8Y5tANZmHd9HhFwLHtncxAhRGwOWfBS/5jyz5UYpcw==",
|
|
450
450
|
"dependencies": {
|
|
451
451
|
"semver": "^7.7.4",
|
|
452
452
|
"zod": "^4.3.6"
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
455
|
"node_modules/@naisys/common-node": {
|
|
456
|
-
"version": "3.0.0-beta.
|
|
457
|
-
"resolved": "https://registry.npmjs.org/@naisys/common-node/-/common-node-3.0.0-beta.
|
|
458
|
-
"integrity": "sha512-
|
|
456
|
+
"version": "3.0.0-beta.30",
|
|
457
|
+
"resolved": "https://registry.npmjs.org/@naisys/common-node/-/common-node-3.0.0-beta.30.tgz",
|
|
458
|
+
"integrity": "sha512-jhF7BMn1rwu4US8AkISH3IrLI9r6Plr3Nl0gvIvbRLUH9DKGTn/U+aZM5uB10rFXD7CV2aMTs4sKfkd/66cTSw==",
|
|
459
459
|
"dependencies": {
|
|
460
|
-
"@naisys/common": "3.0.0-beta.
|
|
460
|
+
"@naisys/common": "3.0.0-beta.30",
|
|
461
461
|
"better-sqlite3": "^12.6.2",
|
|
462
462
|
"js-yaml": "^4.1.1",
|
|
463
463
|
"pino": "^10.3.1"
|
|
464
464
|
}
|
|
465
465
|
},
|
|
466
466
|
"node_modules/@naisys/erp-shared": {
|
|
467
|
-
"version": "3.0.0-beta.
|
|
468
|
-
"resolved": "https://registry.npmjs.org/@naisys/erp-shared/-/erp-shared-3.0.0-beta.
|
|
469
|
-
"integrity": "sha512-
|
|
467
|
+
"version": "3.0.0-beta.30",
|
|
468
|
+
"resolved": "https://registry.npmjs.org/@naisys/erp-shared/-/erp-shared-3.0.0-beta.30.tgz",
|
|
469
|
+
"integrity": "sha512-VYORB+9Qyyc9LKakoaw82yzpkKAPN/1cssWEnbEgWJ/F7XXvwPrxzDfTAtt+FCQTVWsADv/n99o5/DzvrspM0g==",
|
|
470
470
|
"dependencies": {
|
|
471
|
-
"@naisys/common": "3.0.0-beta.
|
|
471
|
+
"@naisys/common": "3.0.0-beta.30",
|
|
472
472
|
"zod": "^4.3.6"
|
|
473
473
|
}
|
|
474
474
|
},
|
|
475
475
|
"node_modules/@naisys/hub-database": {
|
|
476
|
-
"version": "3.0.0-beta.
|
|
477
|
-
"resolved": "https://registry.npmjs.org/@naisys/hub-database/-/hub-database-3.0.0-beta.
|
|
478
|
-
"integrity": "sha512-
|
|
476
|
+
"version": "3.0.0-beta.30",
|
|
477
|
+
"resolved": "https://registry.npmjs.org/@naisys/hub-database/-/hub-database-3.0.0-beta.30.tgz",
|
|
478
|
+
"integrity": "sha512-V8ahfsVdQMZh/+QZw+Ly5SV/xVtFVkEh5g/lfDBcjE7F/3aLaGhissgR2w6iw3A7qj5vWvthS5JsytzSNBjv/Q==",
|
|
479
479
|
"dependencies": {
|
|
480
|
-
"@naisys/common": "3.0.0-beta.
|
|
481
|
-
"@naisys/common-node": "3.0.0-beta.
|
|
480
|
+
"@naisys/common": "3.0.0-beta.30",
|
|
481
|
+
"@naisys/common-node": "3.0.0-beta.30",
|
|
482
482
|
"@prisma/adapter-better-sqlite3": "^7.5.0",
|
|
483
483
|
"@prisma/client": "^7.5.0",
|
|
484
484
|
"better-sqlite3": "^12.6.2",
|
|
@@ -486,12 +486,12 @@
|
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
488
|
"node_modules/@naisys/supervisor-database": {
|
|
489
|
-
"version": "3.0.0-beta.
|
|
490
|
-
"resolved": "https://registry.npmjs.org/@naisys/supervisor-database/-/supervisor-database-3.0.0-beta.
|
|
491
|
-
"integrity": "sha512-
|
|
489
|
+
"version": "3.0.0-beta.30",
|
|
490
|
+
"resolved": "https://registry.npmjs.org/@naisys/supervisor-database/-/supervisor-database-3.0.0-beta.30.tgz",
|
|
491
|
+
"integrity": "sha512-g1Nytu8o0Ok7rL0eZUGcLmWwXGkGvTiMJrq+LQKdzk0uP78rTppGmQKwzXWmxckmxdcQdz8t1kZmjtqlqBq3aw==",
|
|
492
492
|
"dependencies": {
|
|
493
|
-
"@naisys/common": "3.0.0-beta.
|
|
494
|
-
"@naisys/common-node": "3.0.0-beta.
|
|
493
|
+
"@naisys/common": "3.0.0-beta.30",
|
|
494
|
+
"@naisys/common-node": "3.0.0-beta.30",
|
|
495
495
|
"@prisma/adapter-better-sqlite3": "^7.5.0",
|
|
496
496
|
"@prisma/client": "^7.5.0",
|
|
497
497
|
"bcryptjs": "^3.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naisys/erp",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.30",
|
|
4
4
|
"description": "NAISYS ERP - Web UI for AI-driven order and work management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/erpServer.js",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@fastify/rate-limit": "^10.3.0",
|
|
47
47
|
"@fastify/static": "^9.0.0",
|
|
48
48
|
"@fastify/swagger": "^9.7.0",
|
|
49
|
-
"@naisys/erp-shared": "3.0.0-beta.
|
|
50
|
-
"@naisys/common": "3.0.0-beta.
|
|
51
|
-
"@naisys/common-node": "3.0.0-beta.
|
|
52
|
-
"@naisys/hub-database": "3.0.0-beta.
|
|
53
|
-
"@naisys/supervisor-database": "3.0.0-beta.
|
|
49
|
+
"@naisys/erp-shared": "3.0.0-beta.30",
|
|
50
|
+
"@naisys/common": "3.0.0-beta.30",
|
|
51
|
+
"@naisys/common-node": "3.0.0-beta.30",
|
|
52
|
+
"@naisys/hub-database": "3.0.0-beta.30",
|
|
53
|
+
"@naisys/supervisor-database": "3.0.0-beta.30",
|
|
54
54
|
"@prisma/adapter-better-sqlite3": "^7.5.0",
|
|
55
55
|
"@prisma/client": "^7.5.0",
|
|
56
56
|
"@scalar/fastify-api-reference": "^1.48.7",
|