@naisys/erp 3.0.0-beta.29 → 3.0.0-beta.31

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.
@@ -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",
@@ -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-D5MoA1Ko.js"></script>
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
- export const erpRoutes = async (fastify) => {
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
- { key: "NAISYS_FOLDER", label: "NAISYS Data Folder", defaultValue: cwdWithTilde() },
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
@@ -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, { priority, search }),
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({