@naisys/erp 3.0.0-beta.44 → 3.0.0-beta.46

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.
@@ -59,7 +59,8 @@ object({
59
59
  initialCommands: array(string()).optional().describe("Shell commands to run at session start before the first LLM prompt, providing additional context to the agent"),
60
60
  multipleCommandsEnabled: boolean().optional().describe("Allow the LLM to run multiple commands per turn. Faster but the LLM may get ahead of itself and produce errors"),
61
61
  workspacesEnabled: boolean().optional().describe("Experimental: Allows the LLM to pin files to the end of the context. Each turn the agent sees the latest version without old versions taking up context space"),
62
- controlDesktop: boolean().optional().describe(`Allow the agent to operate the desktop GUI. Requires a vision-capable model; computer-use models are ideal. Screens over 1.1MP will be downscaled.`)
62
+ controlDesktop: boolean().optional().describe(`Allow the agent to operate the desktop GUI. Requires a vision-capable model; computer-use models are ideal. Screens over 1.1MP will be downscaled.`),
63
+ supervisorApiHints: boolean().optional().describe("Tell the agent in its system message how to call the supervisor API to manage NAISYS agents, hosts, variables, models, users, etc. Useful for admin / assistant agents")
63
64
  });
64
65
  //#endregion
65
66
  //#region ../../../packages/common/dist/modelTypes.js
@@ -772,6 +773,29 @@ var compactComponents = {
772
773
  paddingLeft: "1.5em"
773
774
  },
774
775
  children
776
+ }),
777
+ table: ({ children }) => (0, import_jsx_runtime.jsx)("table", {
778
+ style: {
779
+ borderCollapse: "collapse",
780
+ margin: "0.5em 0",
781
+ fontSize: "inherit"
782
+ },
783
+ children
784
+ }),
785
+ th: ({ children }) => (0, import_jsx_runtime.jsx)("th", {
786
+ style: {
787
+ border: "1px solid var(--mantine-color-default-border)",
788
+ padding: "4px 8px",
789
+ textAlign: "left"
790
+ },
791
+ children
792
+ }),
793
+ td: ({ children }) => (0, import_jsx_runtime.jsx)("td", {
794
+ style: {
795
+ border: "1px solid var(--mantine-color-default-border)",
796
+ padding: "4px 8px"
797
+ },
798
+ children
775
799
  })
776
800
  };
777
801
  var CompactMarkdown = ({ children }) => (0, import_jsx_runtime.jsx)(Markdown, {
@@ -790,17 +814,20 @@ var HIGHLIGHT_BG_NEW = "light-dark(rgba(80, 200, 120, 0.42), rgba(80, 200, 120,
790
814
  var InlineWordDiff = ({ oldText, newText, side }) => {
791
815
  const parts = (0, import_react.useMemo)(() => diffWordsWithSpace(oldText, newText), [oldText, newText]);
792
816
  const highlightBg = side === "old" ? HIGHLIGHT_BG_OLD : HIGHLIGHT_BG_NEW;
793
- return (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: parts.map((p, i) => {
794
- if (side === "old" && p.added) return null;
795
- if (side === "new" && p.removed) return null;
796
- return (side === "old" ? p.removed : p.added) ? (0, import_jsx_runtime.jsx)("span", {
797
- style: {
798
- background: highlightBg,
799
- borderRadius: 2
800
- },
801
- children: p.value
802
- }, i) : (0, import_jsx_runtime.jsx)("span", { children: p.value }, i);
803
- }) });
817
+ return (0, import_jsx_runtime.jsx)("span", {
818
+ style: { whiteSpace: "pre-wrap" },
819
+ children: parts.map((p, i) => {
820
+ if (side === "old" && p.added) return null;
821
+ if (side === "new" && p.removed) return null;
822
+ return (side === "old" ? p.removed : p.added) ? (0, import_jsx_runtime.jsx)("span", {
823
+ style: {
824
+ background: highlightBg,
825
+ borderRadius: 2
826
+ },
827
+ children: p.value
828
+ }, i) : (0, import_jsx_runtime.jsx)("span", { children: p.value }, i);
829
+ })
830
+ });
804
831
  };
805
832
  //#endregion
806
833
  //#region ../../../packages/common-browser/dist/SecretField.js
@@ -6813,7 +6840,7 @@ var OperationDetail = () => {
6813
6840
  });
6814
6841
  const canEdit = hasAction(operation._actions, "update");
6815
6842
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Container, {
6816
- size: "md",
6843
+ size: "lg",
6817
6844
  py: "xl",
6818
6845
  w: "100%",
6819
6846
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Stack, {
@@ -7146,7 +7173,7 @@ var RevisionDiff = () => {
7146
7173
  const changedOps = diff ? diff.operations.filter((op) => op.status !== "unchanged") : [];
7147
7174
  const unchangedCount = diff ? diff.operations.length - changedOps.length : 0;
7148
7175
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Container, {
7149
- size: "md",
7176
+ size: "lg",
7150
7177
  py: "xl",
7151
7178
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Group, {
7152
7179
  justify: "space-between",
@@ -45,7 +45,7 @@
45
45
  <meta name="format-detection" content="telephone=no" />
46
46
 
47
47
  <title>NAISYS ERP</title>
48
- <script type="module" crossorigin src="/erp/assets/index-BQQF-oz_.js"></script>
48
+ <script type="module" crossorigin src="/erp/assets/index-BWVp_WEm.js"></script>
49
49
  <link rel="modulepreload" crossorigin href="/erp/assets/rolldown-runtime-CvHMtSRF.js">
50
50
  <link rel="modulepreload" crossorigin href="/erp/assets/vendor-Co7ZCNxO.js">
51
51
  <link rel="stylesheet" crossorigin href="/erp/assets/vendor-CLUPjUnv.css">
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@naisys/erp",
3
- "version": "3.0.0-beta.44",
3
+ "version": "3.0.0-beta.46",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@naisys/erp",
9
- "version": "3.0.0-beta.44",
9
+ "version": "3.0.0-beta.46",
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.44",
18
- "@naisys/common-node": "3.0.0-beta.44",
19
- "@naisys/erp-shared": "3.0.0-beta.44",
20
- "@naisys/hub-database": "3.0.0-beta.44",
21
- "@naisys/supervisor-database": "3.0.0-beta.44",
17
+ "@naisys/common": "3.0.0-beta.46",
18
+ "@naisys/common-node": "3.0.0-beta.46",
19
+ "@naisys/erp-shared": "3.0.0-beta.46",
20
+ "@naisys/hub-database": "3.0.0-beta.46",
21
+ "@naisys/supervisor-database": "3.0.0-beta.46",
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",
@@ -394,41 +394,41 @@
394
394
  }
395
395
  },
396
396
  "node_modules/@naisys/common": {
397
- "version": "3.0.0-beta.44",
398
- "resolved": "https://registry.npmjs.org/@naisys/common/-/common-3.0.0-beta.44.tgz",
399
- "integrity": "sha512-g7ZiYVZTXa+qhPdzNrc0CDjx6ks/Gl8uJ+GVJlocyeClU+eKfbsc7/NU4f8S+DUyxrwZIA082r1ZR9YATjbc4g==",
397
+ "version": "3.0.0-beta.46",
398
+ "resolved": "https://registry.npmjs.org/@naisys/common/-/common-3.0.0-beta.46.tgz",
399
+ "integrity": "sha512-C08UtZtQLp0/3u1cAAfWRtFssphQgrkKk63HhhE/ntCZFWUlfhgTB4xtBabwJZitp+hqjLJbC3A7yRIGv6gj5w==",
400
400
  "dependencies": {
401
401
  "semver": "^7.7.4",
402
402
  "zod": "^4.3.6"
403
403
  }
404
404
  },
405
405
  "node_modules/@naisys/common-node": {
406
- "version": "3.0.0-beta.44",
407
- "resolved": "https://registry.npmjs.org/@naisys/common-node/-/common-node-3.0.0-beta.44.tgz",
408
- "integrity": "sha512-8I/1Q+cqxW204x8HY24cnoMn2fNNd4d+s5VX6/0G4Fotcx08n1fRFqNENDmGfhEPOlvS9KBpVhyTqr5/Ur/GVw==",
406
+ "version": "3.0.0-beta.46",
407
+ "resolved": "https://registry.npmjs.org/@naisys/common-node/-/common-node-3.0.0-beta.46.tgz",
408
+ "integrity": "sha512-MV+HYrb8lLWrvCkF5Of4qvi0989Y1w9T3CkQrdm/zajkXtwN685uBUg7ty++rcvNnVeZWcDptl46Kb5PSaKjCw==",
409
409
  "dependencies": {
410
- "@naisys/common": "3.0.0-beta.44",
410
+ "@naisys/common": "3.0.0-beta.46",
411
411
  "better-sqlite3": "^12.6.2",
412
412
  "js-yaml": "^4.1.1",
413
413
  "pino": "^10.3.1"
414
414
  }
415
415
  },
416
416
  "node_modules/@naisys/erp-shared": {
417
- "version": "3.0.0-beta.44",
418
- "resolved": "https://registry.npmjs.org/@naisys/erp-shared/-/erp-shared-3.0.0-beta.44.tgz",
419
- "integrity": "sha512-YdWKB3FfeU6Wkz/IS4iLzTCy0G9pnnN5clvHQ6THQ+o4V5aTsf7fiwtIIaPDJoF1lZVipgpCYjfQcUj4F8E7kw==",
417
+ "version": "3.0.0-beta.46",
418
+ "resolved": "https://registry.npmjs.org/@naisys/erp-shared/-/erp-shared-3.0.0-beta.46.tgz",
419
+ "integrity": "sha512-dpl3yiKV9lsoo5vpOzaqgROFUFj7Zs+ILK12Kc++oK+Gee2ekNEqiydEVeJfEuabSRcvBuNYdovDatB9eKjFvQ==",
420
420
  "dependencies": {
421
- "@naisys/common": "3.0.0-beta.44",
421
+ "@naisys/common": "3.0.0-beta.46",
422
422
  "zod": "^4.3.6"
423
423
  }
424
424
  },
425
425
  "node_modules/@naisys/hub-database": {
426
- "version": "3.0.0-beta.44",
427
- "resolved": "https://registry.npmjs.org/@naisys/hub-database/-/hub-database-3.0.0-beta.44.tgz",
428
- "integrity": "sha512-DXrWAdr9BHvv3pQUderMhG70r3FfydN9qygtm1OHSYgUa51tQ+e7mkEsfOINK4nmt+cg6MoW1s4kPeh7LovLVw==",
426
+ "version": "3.0.0-beta.46",
427
+ "resolved": "https://registry.npmjs.org/@naisys/hub-database/-/hub-database-3.0.0-beta.46.tgz",
428
+ "integrity": "sha512-o2PIeGv9Rt2M0LSKIhDA9MZLdYzhswn8uIL/AuP4CFd8zwq564p3a7g4wT34cjgOplyHLEFdaj1KWOcPbQVeTw==",
429
429
  "dependencies": {
430
- "@naisys/common": "3.0.0-beta.44",
431
- "@naisys/common-node": "3.0.0-beta.44",
430
+ "@naisys/common": "3.0.0-beta.46",
431
+ "@naisys/common-node": "3.0.0-beta.46",
432
432
  "@prisma/adapter-better-sqlite3": "^7.5.0",
433
433
  "@prisma/client": "^7.5.0",
434
434
  "better-sqlite3": "^12.6.2",
@@ -436,12 +436,12 @@
436
436
  }
437
437
  },
438
438
  "node_modules/@naisys/supervisor-database": {
439
- "version": "3.0.0-beta.44",
440
- "resolved": "https://registry.npmjs.org/@naisys/supervisor-database/-/supervisor-database-3.0.0-beta.44.tgz",
441
- "integrity": "sha512-Z7OLyOII1UTXAz/4KXjbG4hy/GCRCTXwNasmfELO3beAM66GvKAlXrGClFSHtXNKvgVaQomATSRdZKqlPH4tVg==",
439
+ "version": "3.0.0-beta.46",
440
+ "resolved": "https://registry.npmjs.org/@naisys/supervisor-database/-/supervisor-database-3.0.0-beta.46.tgz",
441
+ "integrity": "sha512-gaJ0b4a/cr5hKSQju2n4qrFCsl6aapDFkuEQTF0kkm82mv39NgDFMtUEovziRyA3LSwSrh2iYMZ4jHBEhgg1VQ==",
442
442
  "dependencies": {
443
- "@naisys/common": "3.0.0-beta.44",
444
- "@naisys/common-node": "3.0.0-beta.44",
443
+ "@naisys/common": "3.0.0-beta.46",
444
+ "@naisys/common-node": "3.0.0-beta.46",
445
445
  "@prisma/adapter-better-sqlite3": "^7.5.0",
446
446
  "@prisma/client": "^7.5.0",
447
447
  "bcryptjs": "^3.0.2",
@@ -2966,9 +2966,9 @@
2966
2966
  }
2967
2967
  },
2968
2968
  "node_modules/zod": {
2969
- "version": "4.3.6",
2970
- "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",
2971
- "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",
2969
+ "version": "4.4.3",
2970
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
2971
+ "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
2972
2972
  "license": "MIT",
2973
2973
  "funding": {
2974
2974
  "url": "https://github.com/sponsors/colinhacks"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naisys/erp",
3
- "version": "3.0.0-beta.44",
3
+ "version": "3.0.0-beta.46",
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/common": "3.0.0-beta.44",
50
- "@naisys/common-node": "3.0.0-beta.44",
51
- "@naisys/erp-shared": "3.0.0-beta.44",
52
- "@naisys/hub-database": "3.0.0-beta.44",
53
- "@naisys/supervisor-database": "3.0.0-beta.44",
49
+ "@naisys/common": "3.0.0-beta.46",
50
+ "@naisys/common-node": "3.0.0-beta.46",
51
+ "@naisys/erp-shared": "3.0.0-beta.46",
52
+ "@naisys/hub-database": "3.0.0-beta.46",
53
+ "@naisys/supervisor-database": "3.0.0-beta.46",
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",