bazilion 0.24.0 → 0.25.0

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.
Files changed (113) hide show
  1. package/README.md +20 -8
  2. package/dist/browser-keychain.js +83 -0
  3. package/dist/browser-keychain.js.map +1 -0
  4. package/dist/cli-main.js +55 -24
  5. package/dist/cli-main.js.map +1 -1
  6. package/dist/daemon-main.js +15060 -7470
  7. package/dist/daemon-main.js.map +1 -1
  8. package/dist/migrations/0001_init.sql +6 -4
  9. package/dist/native-darwin-entry.js +692 -0
  10. package/dist/native-darwin-entry.js.map +1 -0
  11. package/dist/native-linux-entry.js +60 -0
  12. package/dist/native-linux-entry.js.map +1 -0
  13. package/dist/runtime-version.js +2 -2
  14. package/dist/runtime-version.js.map +1 -1
  15. package/dist/web/client/assets/{AgentTabs-0mMqUuts.js → AgentTabs-kEd-oDRM.js} +1 -1
  16. package/dist/web/client/assets/ChatPane-DhvlzNPJ.js +76 -0
  17. package/dist/web/client/assets/{ConfigPage-CbALCsl0.js → ConfigPage-CMKsWDjh.js} +1 -1
  18. package/dist/web/client/assets/{ConfirmDialog-CB1a-szq.js → ConfirmDialog-DpAzoNG8.js} +1 -1
  19. package/dist/web/client/assets/{FieldRow-BHGq10hz.js → FieldRow-OQ-Ezw5t.js} +1 -1
  20. package/dist/web/client/assets/{ProductionTeamPolicyEditor-B4Ysob7y.js → ProductionTeamPolicyEditor-DhT-Q13a.js} +1 -1
  21. package/dist/web/client/assets/{ProfileCommunicationEditor-Bi1SwX0T.js → ProfileCommunicationEditor-CnQIp4e6.js} +1 -1
  22. package/dist/web/client/assets/{RecoveryState-CDWhoT3x.js → RecoveryState-B4Rne9N_.js} +1 -1
  23. package/dist/web/client/assets/{ResultCard-Crmt8j95.js → ResultCard-BxAlMky1.js} +1 -1
  24. package/dist/web/client/assets/{ResultSourceConversation-CqwZKlKb.js → ResultSourceConversation-BzIw43-r.js} +1 -1
  25. package/dist/web/client/assets/{SectionTabs-mghnc98b.js → SectionTabs-D3M6F_HR.js} +1 -1
  26. package/dist/web/client/assets/{TeamTabs-BuZ3DvCw.js → TeamTabs-BZbg-UFx.js} +1 -1
  27. package/dist/web/client/assets/{TemplatesTabs-D71oTTXM.js → TemplatesTabs-D8geEOte.js} +1 -1
  28. package/dist/web/client/assets/{UnsavedChangesGuard-CiCtGDIH.js → UnsavedChangesGuard-CPQe9VLw.js} +1 -1
  29. package/dist/web/client/assets/{_id-BVY0iUYM.js → _id-1RIodFdi.js} +1 -1
  30. package/dist/web/client/assets/_id-BV3w2kDj.js +1 -0
  31. package/dist/web/client/assets/{_id-DRiwwqZL.js → _id-C9zxKqvQ.js} +1 -1
  32. package/dist/web/client/assets/{_id-B-8ssJLW.js → _id-CLG_POnZ.js} +1 -1
  33. package/dist/web/client/assets/{_id-DaqX-WEB.js → _id-Cha845UH.js} +1 -1
  34. package/dist/web/client/assets/{_id-CeALz6bj.js → _id-DssxcwBl.js} +1 -1
  35. package/dist/web/client/assets/{_id-C7A_A3eM.js → _id-IDHR-MEm.js} +1 -1
  36. package/dist/web/client/assets/{_id-CQlUNjzV.js → _id-SGs5zOcT.js} +1 -1
  37. package/dist/web/client/assets/{activity-C5aaqPEN.js → activity-0srO4qbd.js} +1 -1
  38. package/dist/web/client/assets/{activity-D4Nt8GQM.js → activity-DxQGr6eP.js} +1 -1
  39. package/dist/web/client/assets/{agents-BPLszpKx.js → agents-CVTYoXKu.js} +1 -1
  40. package/dist/web/client/assets/{agents-DFOLPsgX.js → agents-DPTu6Sm_.js} +1 -1
  41. package/dist/web/client/assets/{agents-BUqq1VBQ.js → agents-nHiIbumu.js} +1 -1
  42. package/dist/web/client/assets/{approvals-MVCITL8Q.js → approvals-Di_Bux_Q.js} +1 -1
  43. package/dist/web/client/assets/{approvals-8PPXdZxV.js → approvals-ScNrQg7q.js} +1 -1
  44. package/dist/web/client/assets/{attention-DiyHVOcZ.js → attention-BF-Llt9z.js} +1 -1
  45. package/dist/web/client/assets/{attention-e273gZ8d.js → attention-D7xB17sN.js} +1 -1
  46. package/dist/web/client/assets/chevron-right-CJ2wat15.js +1 -0
  47. package/dist/web/client/assets/config-BOuIcP1T.js +3 -0
  48. package/dist/web/client/assets/{context-DhgSlMk5.js → context-wo9lNjHx.js} +1 -1
  49. package/dist/web/client/assets/{inbox-B3To3KpL.js → inbox-CNLmz0Jp.js} +1 -1
  50. package/dist/web/client/assets/{inbox-C1_vHPb8.js → inbox-De6HOll3.js} +1 -1
  51. package/dist/web/client/assets/{index-DtEE9JX2.js → index-CjI7_vB3.js} +2 -2
  52. package/dist/web/client/assets/{learning-B7wX_mkT.js → learning-591SFAKg.js} +1 -1
  53. package/dist/web/client/assets/{learning-DDwUAKmq.js → learning-D6bO0NeB.js} +1 -1
  54. package/dist/web/client/assets/{login-CWaSGdgc.js → login-Q7uP-v0M.js} +1 -1
  55. package/dist/web/client/assets/mcp-BGy64VOv.js +1 -0
  56. package/dist/web/client/assets/{mcp-CO5iBKHD.js → mcp-DSCjhc5I.js} +1 -1
  57. package/dist/web/client/assets/{members-Dx9OcdY1.js → members-CBVor-P4.js} +1 -1
  58. package/dist/web/client/assets/{members-Bd3z1Mbb.js → members-CCcecjC3.js} +1 -1
  59. package/dist/web/client/assets/{memory-BIZi6bBM.js → memory-CSE8EQ48.js} +1 -1
  60. package/dist/web/client/assets/{memory-DrYbH0we.js → memory-DgGz0wh4.js} +1 -1
  61. package/dist/web/client/assets/{policy-CcnTn0qG.js → policy-6j-NQvBj.js} +1 -1
  62. package/dist/web/client/assets/{policy-Dsj-SWqE.js → policy-Do0TvNWc.js} +1 -1
  63. package/dist/web/client/assets/{results-GeOLM5Cw.js → results-CCQGn0dE.js} +1 -1
  64. package/dist/web/client/assets/{results-t7jAchgU.js → results-Cx6_ChIY.js} +1 -1
  65. package/dist/web/client/assets/{review-CQaZNlyx.js → review-CyS5b0fz.js} +1 -1
  66. package/dist/web/client/assets/{review-CYvx-3K2.js → review-qG-2gqEp.js} +1 -1
  67. package/dist/web/client/assets/{routes-DoK4DMdi.js → routes-DRic0xNy.js} +1 -1
  68. package/dist/web/client/assets/{services-c9HkxKEP.js → services-B_7lf-mx.js} +1 -1
  69. package/dist/web/client/assets/{services-BI7iyTHh.js → services-ByBA_yA-.js} +1 -1
  70. package/dist/web/client/assets/{skills-Ddf5PBNn.js → skills--lnDzPWe.js} +1 -1
  71. package/dist/web/client/assets/{skills-B0O0zwg1.js → skills-C70btgIg.js} +1 -1
  72. package/dist/web/client/assets/{teams-BNQ4z_k3.js → teams-BL-Fr2xF.js} +1 -1
  73. package/dist/web/client/assets/{teams-kRB5hV3h.js → teams-BeoxArzy.js} +1 -1
  74. package/dist/web/client/assets/{teams-Wvr8-LhE.js → teams-C4mb790r.js} +1 -1
  75. package/dist/web/client/assets/{teams-BDbkurIa.js → teams-DHStw3OS.js} +1 -1
  76. package/dist/web/client/assets/{telegram-Dx9tzt9d.js → telegram-BIMiebJl.js} +1 -1
  77. package/dist/web/client/assets/{templates-CGQ93r-m.js → templates-CzHXXiA_.js} +1 -1
  78. package/dist/web/client/assets/{tokens-CsOJULk9.js → tokens-B9ehOc1o.js} +1 -1
  79. package/dist/web/client/assets/{tokens-zqJy3CQD.js → tokens-DhaMzFWK.js} +1 -1
  80. package/dist/web/client/assets/{triggers-9UUKTR6l.js → triggers--xMpHFW7.js} +1 -1
  81. package/dist/web/client/assets/{triggers-BiXb1VFy.js → triggers-DLzZu8bB.js} +1 -1
  82. package/dist/web/client/assets/verifications-FzypGVwW.js +2 -0
  83. package/dist/web/client/assets/{verifications-BKoHhRqF.js → verifications-fR9W-adv.js} +1 -1
  84. package/dist/web/client/assets/{welcome-BdcpBETx.js → welcome-pjZD7pq4.js} +1 -1
  85. package/dist/web/client/assets/{x-DtPVZP1O.js → x-CZxV4X-6.js} +1 -1
  86. package/dist/web/server/assets/{ChatPane-3CIVTz7o.js → ChatPane-CeDUEjmn.js} +10 -2
  87. package/dist/web/server/assets/{ResultSourceConversation-DwuGuTa-.js → ResultSourceConversation-xn4EKjaP.js} +1 -1
  88. package/dist/web/server/assets/{_id-C1-ygfez.js → _id-CGMvV1p5.js} +3 -3
  89. package/dist/web/server/assets/{_id-BXOT74Jd.js → _id-DhheAcWL.js} +149 -14
  90. package/dist/web/server/assets/{_id-CWlZT9kI.js → _id-t8AepTB2.js} +1 -1
  91. package/dist/web/server/assets/{_id-BS4MnPa3.js → _id-ujm4R5OF.js} +1 -1
  92. package/dist/web/server/assets/{_tanstack-start-manifest_v-LR-ldomm.js → _tanstack-start-manifest_v-CXwNJhX2.js} +132 -132
  93. package/dist/web/server/assets/{config-CMxeC2Bd.js → config-0_5yhRKg.js} +39 -24
  94. package/dist/web/server/assets/{config-CbioK6nX.js → config-VsmvCulS.js} +1 -1
  95. package/dist/web/server/assets/{mcp-CLWr5_0I.js → mcp-BEdnl_TT.js} +1 -1
  96. package/dist/web/server/assets/{mcp-DmzP8n2G.js → mcp-Dhryb75M.js} +2 -2
  97. package/dist/web/server/assets/{results-C6edENBF.js → results-CkNoVDrY.js} +2 -2
  98. package/dist/web/server/assets/{results-DjTerNLY.js → results-DSGwi3vj.js} +1 -1
  99. package/dist/web/server/assets/{router-Doy5hj6V.js → router-BFqyjkYu.js} +7 -7
  100. package/dist/web/server/assets/{routes-Bz-Gprcp.js → routes-BfEa101d.js} +1 -1
  101. package/dist/web/server/assets/{routes-ByEYvEFv.js → routes-pUMIGzyy.js} +2 -2
  102. package/dist/web/server/assets/{verifications-EIw3Xh61.js → verifications-DvOyI3Mr.js} +1 -1
  103. package/dist/web/server/assets/{verifications-BVR0OK7x.js → verifications-YrEdiZmk.js} +8 -5
  104. package/dist/web/server/server.js +2 -2
  105. package/dist/worker.js +666 -165
  106. package/dist/worker.js.map +1 -1
  107. package/package.json +5 -4
  108. package/dist/web/client/assets/ChatPane-C4ZAMSqQ.js +0 -76
  109. package/dist/web/client/assets/_id-DQqcn57I.js +0 -1
  110. package/dist/web/client/assets/chevron-right-DgJy0QeF.js +0 -1
  111. package/dist/web/client/assets/config-Dm6OgnLh.js +0 -3
  112. package/dist/web/client/assets/mcp-DO8sSn5c.js +0 -1
  113. package/dist/web/client/assets/verifications-CElk4UQp.js +0 -2
package/README.md CHANGED
@@ -8,13 +8,24 @@ Multi-agent runtime CLI — spawn LLM agents, manage profiles/teams/skills, and
8
8
 
9
9
  ## Install
10
10
 
11
- Requires **Node 24.22.0+ within 24.x, or 26.4.0+ within 26.x**. Earlier releases and other
12
- major lines are refused before application imports or state bootstrap. This floor includes the
13
- upstream native cleanup-hook fix; upgrading Node does not authorize resetting any Bazilion data.
14
-
15
- Version 0.24 adds ordinary macOS chat, qualified on macOS arm64 / Node 24.22.0, alongside Linux.
16
- Windows is unsupported. Hardened Git inspection and MCP stdio still require Linux; macOS can use
17
- Streamable HTTP MCP. Guarded repository reads are not atomic snapshots or a general sandbox.
11
+ The **0.25.0 alpha candidate** requires **Node 26.12.1+ within 26.x only** (`^26.12.1`).
12
+ Earlier releases and other major lines are refused before application imports or state bootstrap.
13
+ The admitted Node 26 baseline includes the upstream native cleanup-hook and SQLite backup-completion
14
+ fixes; upgrading Node does not authorize resetting any Bazilion data.
15
+
16
+ Version 0.25 adds trusted **unisolated** Apple Silicon Mac coding, hardened private-worktree Git
17
+ and owned MCP stdio alongside portable Streamable HTTP. Genuine installed CLI/API/web and non-GUI/
18
+ main-process lifecycle trials pass on **macOS 27.0.1 arm64 / Node 26.12.1**; the tested 27.x major
19
+ line is sufficient for this alpha. Mac headed/desktop qualification is deferred to a later version.
20
+ Mac native isolation is deferred/unqualified, and Mac Docker/VM execution is removed; explicit
21
+ native/Docker selections and isolation-required coding refuse without host fallback. Linux retains
22
+ Bubblewrap/mandatory-seccomp native execution and independent Docker support. Guarded reads are not
23
+ atomic snapshots. Windows is unsupported; alpha is not production readiness.
24
+
25
+ **Existing 0.24.0 and older homes require an explicit clean rebootstrap**, not an in-place migration.
26
+ First stop the old daemon safely and preserve the entire old home, paired DB/auth.json and external
27
+ Team work. A runtime/schema refusal does not authorize deleting state. See the repository's
28
+ [upgrade guidance](https://github.com/rullopat/bazilion/blob/main/docs/upgrades.md).
18
29
 
19
30
  ```sh
20
31
  npx bazilion dashboard # one-shot
@@ -99,7 +110,8 @@ The web UI is bundled into the published `bazilion` package and starts with:
99
110
  bazilion dashboard
100
111
  ```
101
112
 
102
- For source development, clone the repo and run the daemon plus Vite dev server. Node 24.22.0+ within 24.x or 26.4.0+ within 26.x, and pnpm 10+, are required; if `corepack` is unavailable, install pnpm directly with `npm install -g pnpm`.
113
+ For source development, clone the repo and run `mise install` for pinned Node **26.12.1** and
114
+ pnpm **12.15.0**, then run the daemon plus Vite dev server. Node 24 is no longer supported. Without mise/Corepack, install pnpm with `npm install -g pnpm@12.15.0`.
103
115
 
104
116
  ```sh
105
117
  git clone https://github.com/rullopat/bazilion
@@ -0,0 +1,83 @@
1
+ #!/usr/bin/env node
2
+
3
+ // ../daemon/src/lib/browser/darwin-keychain-entry.mjs
4
+ import { lstatSync } from "fs";
5
+ import { createRequire } from "module";
6
+ import { isAbsolute, join } from "path";
7
+ var phase = "admission";
8
+ var nativeStatus = null;
9
+ try {
10
+ if (process.platform !== "darwin" || process.arch !== "arm64" || process.geteuid() === 0)
11
+ throw new Error("unsupported native keychain helper");
12
+ let input = "";
13
+ for await (const chunk of process.stdin) {
14
+ input += chunk.toString("utf8");
15
+ if (input.length > 16 * 1024) throw new Error("oversized native keychain input");
16
+ }
17
+ const value = JSON.parse(input);
18
+ if (!value || Object.keys(value).sort().join(",") !== "home,password" || typeof value.home !== "string" || !isAbsolute(value.home) || value.home !== process.env.HOME || typeof value.password !== "string" || !/^[0-9a-f]{64}$/.test(value.password))
19
+ throw new Error("invalid native keychain input");
20
+ phase = "binding";
21
+ const require2 = createRequire(import.meta.url);
22
+ const ffi = require2("koffi");
23
+ if (ffi.version !== "3.3.3") throw new Error("unsupported native binding");
24
+ const security = ffi.load("/System/Library/Frameworks/Security.framework/Security");
25
+ const cf = ffi.load("/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation");
26
+ const interaction = security.func("int32_t SecKeychainSetUserInteractionAllowed(uint8_t)");
27
+ const create = security.func(
28
+ "int32_t SecKeychainCreate(const char *, uint32_t, const void *, uint8_t, void *, void *)"
29
+ );
30
+ const open = security.func("int32_t SecKeychainOpen(const char *, void *)");
31
+ const unlock = security.func("int32_t SecKeychainUnlock(void *, uint32_t, const void *, uint8_t)");
32
+ const select = security.func("int32_t SecKeychainSetDefault(void *)");
33
+ const settings = security.func("int32_t SecKeychainSetSettings(void *, const void *)");
34
+ const copySettings = security.func("int32_t SecKeychainCopySettings(void *, void *)");
35
+ const release = cf.func("void CFRelease(void *)");
36
+ const check = (status) => {
37
+ nativeStatus = status;
38
+ if (status !== 0) throw new Error("native keychain operation refused");
39
+ };
40
+ phase = "interaction";
41
+ check(interaction(0));
42
+ const path = join(value.home, "Library", "Keychains", "bazilion.keychain-db");
43
+ let exists = false;
44
+ try {
45
+ const stat = lstatSync(path);
46
+ if (!stat.isFile() || stat.isSymbolicLink() || stat.nlink !== 1 || stat.uid !== process.geteuid())
47
+ throw new Error("unsafe native keychain file");
48
+ exists = true;
49
+ } catch (error) {
50
+ if (error.code !== "ENOENT") throw error;
51
+ }
52
+ const password = Buffer.from(value.password, "utf8");
53
+ const reference = Buffer.alloc(8);
54
+ phase = exists ? "open" : "create";
55
+ check(
56
+ exists ? open(path, reference) : create(path, password.length, password, 0, null, reference)
57
+ );
58
+ const keychain = ffi.decode(reference, "void *");
59
+ if (keychain === null) throw new Error("native keychain reference missing");
60
+ try {
61
+ phase = "unlock";
62
+ check(unlock(keychain, password.length, password, 1));
63
+ const configuration = Buffer.alloc(12);
64
+ configuration.writeUInt32LE(1);
65
+ configuration.writeUInt32LE(2147483647, 8);
66
+ phase = "settings";
67
+ check(settings(keychain, configuration));
68
+ phase = "verify-settings";
69
+ check(copySettings(keychain, configuration));
70
+ if (configuration.readUInt32LE() !== 1 || configuration[4] !== 0 || configuration[5] !== 0 || configuration.readUInt32LE(8) !== 2147483647)
71
+ throw new Error("native keychain lock policy did not match");
72
+ phase = "default";
73
+ check(select(keychain));
74
+ } finally {
75
+ password.fill(0);
76
+ release(keychain);
77
+ }
78
+ process.stdout.write('{"ok":true}\n');
79
+ } catch {
80
+ process.stderr.write(JSON.stringify({ phase, status: nativeStatus }) + "\n");
81
+ process.exitCode = 1;
82
+ }
83
+ //# sourceMappingURL=browser-keychain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../daemon/src/lib/browser/darwin-keychain-entry.mjs"],"sourcesContent":["// Short-lived, ordinary-user native keychain helper. No tool/model interface. It receives its\n// closed input only after daemon-owned birth/group admission. All preferences resolve inside the\n// managed HOME; the operator's login keychain, preferences and credentials are never opened.\nimport { lstatSync } from 'node:fs'\nimport { createRequire } from 'node:module'\nimport { isAbsolute, join } from 'node:path'\n\nlet phase = 'admission'\nlet nativeStatus = null\ntry {\n if (process.platform !== 'darwin' || process.arch !== 'arm64' || process.geteuid() === 0)\n throw new Error('unsupported native keychain helper')\n let input = ''\n for await (const chunk of process.stdin) {\n input += chunk.toString('utf8')\n if (input.length > 16 * 1024) throw new Error('oversized native keychain input')\n }\n const value = JSON.parse(input)\n if (\n !value ||\n Object.keys(value).sort().join(',') !== 'home,password' ||\n typeof value.home !== 'string' ||\n !isAbsolute(value.home) ||\n value.home !== process.env.HOME ||\n typeof value.password !== 'string' ||\n !/^[0-9a-f]{64}$/.test(value.password)\n )\n throw new Error('invalid native keychain input')\n phase = 'binding'\n const require = createRequire(import.meta.url)\n const ffi = require('koffi')\n if (ffi.version !== '3.3.3') throw new Error('unsupported native binding')\n const security = ffi.load('/System/Library/Frameworks/Security.framework/Security')\n const cf = ffi.load('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation')\n const interaction = security.func('int32_t SecKeychainSetUserInteractionAllowed(uint8_t)')\n const create = security.func(\n 'int32_t SecKeychainCreate(const char *, uint32_t, const void *, uint8_t, void *, void *)',\n )\n const open = security.func('int32_t SecKeychainOpen(const char *, void *)')\n const unlock = security.func('int32_t SecKeychainUnlock(void *, uint32_t, const void *, uint8_t)')\n const select = security.func('int32_t SecKeychainSetDefault(void *)')\n const settings = security.func('int32_t SecKeychainSetSettings(void *, const void *)')\n const copySettings = security.func('int32_t SecKeychainCopySettings(void *, void *)')\n const release = cf.func('void CFRelease(void *)')\n const check = (status) => {\n nativeStatus = status\n if (status !== 0) throw new Error('native keychain operation refused')\n }\n phase = 'interaction'\n check(interaction(0)) // Never display or wait for authentication/keychain UI.\n const path = join(value.home, 'Library', 'Keychains', 'bazilion.keychain-db')\n let exists = false\n try {\n const stat = lstatSync(path)\n if (\n !stat.isFile() ||\n stat.isSymbolicLink() ||\n stat.nlink !== 1 ||\n stat.uid !== process.geteuid()\n )\n throw new Error('unsafe native keychain file')\n exists = true\n } catch (error) {\n if (error.code !== 'ENOENT') throw error\n }\n const password = Buffer.from(value.password, 'utf8')\n const reference = Buffer.alloc(8)\n phase = exists ? 'open' : 'create'\n check(\n exists ? open(path, reference) : create(path, password.length, password, 0, null, reference),\n )\n const keychain = ffi.decode(reference, 'void *')\n if (keychain === null) throw new Error('native keychain reference missing')\n try {\n phase = 'unlock'\n check(unlock(keychain, password.length, password, 1))\n const configuration = Buffer.alloc(12)\n configuration.writeUInt32LE(1) // SEC_KEYCHAIN_SETTINGS_VERS1.\n // Match Apple's security(1) no-timeout settings: the implementation uses lockInterval\n // even when useLockInterval is false. Zero means immediate expiry, not no auto-lock.\n configuration.writeUInt32LE(0x7fffffff, 8)\n phase = 'settings'\n check(settings(keychain, configuration))\n phase = 'verify-settings'\n check(copySettings(keychain, configuration))\n if (\n configuration.readUInt32LE() !== 1 ||\n configuration[4] !== 0 ||\n configuration[5] !== 0 ||\n configuration.readUInt32LE(8) !== 0x7fffffff\n )\n throw new Error('native keychain lock policy did not match')\n phase = 'default'\n check(select(keychain))\n } finally {\n password.fill(0)\n release(keychain)\n }\n process.stdout.write('{\"ok\":true}\\n')\n} catch {\n // Input and native errors can contain private paths or password material. Never print them.\n process.stderr.write(JSON.stringify({ phase, status: nativeStatus }) + '\\n')\n process.exitCode = 1\n}\n"],"mappings":"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","names":["require"]}
package/dist/cli-main.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  // src/runtime-version.ts
4
4
  import { writeSync } from "fs";
5
- var SUPPORTED_NODE_RANGE = "^24.22.0 || ^26.4.0";
5
+ var SUPPORTED_NODE_RANGE = "^26.12.1";
6
6
  function isSupportedNodeVersion(version) {
7
7
  if (version !== version.trim()) return false;
8
8
  const match = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.exec(version);
@@ -11,7 +11,7 @@ function isSupportedNodeVersion(version) {
11
11
  const minor = Number(match[2]);
12
12
  const patch = Number(match[3]);
13
13
  if (![major, minor, patch].every(Number.isSafeInteger)) return false;
14
- return major === 24 && minor >= 22 || major === 26 && minor >= 4;
14
+ return major === 26 && (minor > 12 || minor === 12 && patch >= 1);
15
15
  }
16
16
  if (!isSupportedNodeVersion(process.versions.node)) {
17
17
  writeSync(
@@ -28,7 +28,7 @@ import { defineCommand as defineCommand40, runCommand, showUsage } from "citty";
28
28
  // package.json
29
29
  var package_default = {
30
30
  name: "bazilion",
31
- version: "0.24.0",
31
+ version: "0.25.0",
32
32
  description: "Multi-agent runtime CLI \u2014 spawn LLM agents, manage profiles/teams/skills, and run the local daemon.",
33
33
  license: "MIT",
34
34
  repository: {
@@ -65,7 +65,7 @@ var package_default = {
65
65
  build: "pnpm --filter @bazilion/web build && tsup"
66
66
  },
67
67
  engines: {
68
- node: "^24.22.0 || ^26.4.0"
68
+ node: "^26.12.1"
69
69
  },
70
70
  publishConfig: {
71
71
  access: "public"
@@ -90,6 +90,7 @@ var package_default = {
90
90
  dompurify: "^3.4.11",
91
91
  grammy: "^1.44.0",
92
92
  hono: "^4.12.26",
93
+ koffi: "3.3.3",
93
94
  linkedom: "^0.18.12",
94
95
  "lucide-react": "^1.21.0",
95
96
  marked: "^18.0.5",
@@ -2564,12 +2565,14 @@ function invalidateRestoredCodingEvidence(db, payload, targetHome) {
2564
2565
  `SELECT DISTINCT attempt.request_id AS request_id
2565
2566
  FROM verification_check_outcomes outcome
2566
2567
  JOIN verification_attempts attempt ON attempt.id = outcome.attempt_id
2567
- WHERE outcome.state IN ('succeeded', 'failed', 'timed_out', 'cancelled')`
2568
+ WHERE outcome.state IN ('succeeded', 'failed', 'timed_out', 'cancelled')
2569
+ OR (outcome.state='unknown' AND outcome.command_id IS NOT NULL)`
2568
2570
  ).all();
2569
2571
  db.prepare(
2570
2572
  `UPDATE verification_check_outcomes
2571
2573
  SET state = 'unknown', command_id = NULL, exit_code = NULL, finished_at = ?
2572
- WHERE state IN ('succeeded', 'failed', 'timed_out', 'cancelled', 'not_executed')`
2574
+ WHERE state IN ('succeeded', 'failed', 'timed_out', 'cancelled', 'not_executed')
2575
+ OR (state='unknown' AND command_id IS NOT NULL)`
2573
2576
  ).run(restoredAt);
2574
2577
  const reopen = db.prepare(`UPDATE verification_requests SET state = 'uncertain' WHERE id = ?`);
2575
2578
  const invalidateAttempt = db.prepare(
@@ -4663,7 +4666,11 @@ var doctorCommand = defineCommand13({
4663
4666
  const hasProfiles = (r.database?.ok ? r.database.profiles : 0) > 0;
4664
4667
  const hasAgents = (r.database?.ok ? r.database.totalAgents : 0) > 0;
4665
4668
  console.log();
4666
- for (const line of doctorSummaryLines(r)) console.log(line);
4669
+ for (const line of doctorSummaryLines(
4670
+ r,
4671
+ r.executionSecurity.protectedUnattendedTurns.codingSurface
4672
+ ))
4673
+ console.log(line);
4667
4674
  if (doctorHasIssues(r)) process.exit(1);
4668
4675
  if (!hasProfiles || !hasAgents) {
4669
4676
  console.log("setup guidance (not an execution test)");
@@ -4684,7 +4691,9 @@ var doctorCommand = defineCommand13({
4684
4691
  function executionSecurityDoctorLines(report) {
4685
4692
  const configured = report.executionSecurity.configuredOperatorHttp;
4686
4693
  const protectedTurns = report.executionSecurity.protectedUnattendedTurns;
4687
- const lines = ["configured operator HTTP (legacy \xB7 unprotected)"];
4694
+ const lines = [
4695
+ configured.codingSurface === "native" ? "configured operator HTTP (native coding \xB7 ordinary capabilities)" : configured.codingSurface === "host" ? "configured operator HTTP (trusted host \xB7 unisolated)" : "configured operator HTTP (ordinary capabilities)"
4696
+ ];
4688
4697
  if (!report.shellSecurity.ok) {
4689
4698
  lines.push(checkLine("valid shell-security configuration", false, report.shellSecurity.error));
4690
4699
  } else {
@@ -4699,7 +4708,13 @@ function executionSecurityDoctorLines(report) {
4699
4708
  " set BAZILION_BASH_APPROVAL=dangerous to opt in"
4700
4709
  );
4701
4710
  }
4702
- if (report.shellSecurity.sandboxMode === "docker") {
4711
+ if (report.shellSecurity.sandboxMode === "native") {
4712
+ lines.push(
4713
+ " - coding surface: native OS sandbox",
4714
+ " host coding tools hidden \xB7 IP networking denied \xB7 private job Unix IPC allowed",
4715
+ " no Docker or host fallback; actual protection and ownership are admitted separately for each turn"
4716
+ );
4717
+ } else if (report.shellSecurity.sandboxMode === "docker") {
4703
4718
  lines.push(
4704
4719
  ` - coding surface: Docker only (${report.shellSecurity.sandboxImage})`,
4705
4720
  " workspace-only writable mount \xB7 bounded inputs/skills/memory read-only \xB7 network disabled",
@@ -4709,22 +4724,31 @@ function executionSecurityDoctorLines(report) {
4709
4724
  );
4710
4725
  } else {
4711
4726
  lines.push(
4712
- " - coding surface: host tools",
4713
- " approval is a host-execution tripwire, not a filesystem sandbox",
4714
- " set BAZILION_BASH_SANDBOX=docker to opt in"
4727
+ " - coding surface: trusted host tools (unisolated)",
4728
+ " shell commands use host filesystem and network permissions; approval is not containment",
4729
+ protectedTurns.codingSurface === "unavailable" ? " no qualified local protected backend is available; native macOS isolation is deferred" : " BAZILION_BASH_SANDBOX=native selects Linux OS isolation, subject to per-turn admission"
4715
4730
  );
4716
4731
  }
4717
4732
  }
4718
4733
  lines.push(` - browser: ${configured.browser}`, ` - MCP: ${configured.mcp}`, "");
4719
4734
  lines.push(
4720
4735
  "protected unattended turns baseline (Telegram, schedules, inbox, approvals)",
4721
- checkLine("protected base runtime ready", protectedTurns.baseRuntimeReady),
4722
- " - coding surface: Docker only",
4723
- checkLine(
4724
- `Docker ready (${protectedTurns.docker.image})`,
4725
- protectedTurns.docker.ready,
4726
- protectedTurns.docker.reason ?? void 0
4727
- ),
4736
+ protectedTurns.codingSurface === "native" ? " - protected base runtime: Not checked" : checkLine("protected base runtime ready", protectedTurns.baseRuntimeReady),
4737
+ ...protectedTurns.codingSurface === "native" ? [
4738
+ " - coding surface: native OS sandbox",
4739
+ ` - native backend: ${protectedTurns.native.backend ?? "unsupported platform"}`,
4740
+ " - native readiness: Not checked (requires per-turn workspace admission)"
4741
+ ] : protectedTurns.codingSurface === "unavailable" ? [
4742
+ " - coding surface: unavailable \u2014 no qualified isolation backend",
4743
+ " protected work refuses; no trusted-host fallback"
4744
+ ] : [
4745
+ " - coding surface: Docker only",
4746
+ checkLine(
4747
+ `Docker ready (${protectedTurns.docker.image})`,
4748
+ protectedTurns.docker.ready,
4749
+ protectedTurns.docker.reason ?? void 0
4750
+ )
4751
+ ],
4728
4752
  checkLine("OpenAI Codex enabled", protectedTurns.openaiCodex.enabled),
4729
4753
  checkLine("ChatGPT connected", protectedTurns.openaiCodex.connected),
4730
4754
  ` - OpenAI access: ${openAIAccessStatus(protectedTurns.openaiCodex)}`,
@@ -4748,11 +4772,11 @@ function platformCapabilityDoctorLines(report) {
4748
4772
  ])
4749
4773
  ];
4750
4774
  }
4751
- function doctorSummaryLines(report) {
4775
+ function doctorSummaryLines(report, codingSurface) {
4752
4776
  return [
4753
4777
  report.ok ? "install is healthy \u2713" : "installation issues found \u2717",
4754
4778
  "ordinary chat execution: not checked \u2014 select/test a provider and try an Agent chat",
4755
- report.protectedWorkBaselineReady ? "protected unattended baseline: ready \u2014 per-turn checks still apply" : "protected unattended baseline: unavailable \u2014 see reasons and remediation above",
4779
+ codingSurface === "native" ? "protected unattended baseline: not checked \u2014 per-turn admission required" : report.protectedWorkBaselineReady ? "protected unattended baseline: ready \u2014 per-turn checks still apply" : "protected unattended baseline: unavailable \u2014 see reasons and remediation above",
4756
4780
  "doctor exit status covers installation health only; it does not authorize execution."
4757
4781
  ];
4758
4782
  }
@@ -5038,7 +5062,7 @@ var addCmd = defineCommand17({
5038
5062
  name: { type: "positional", required: true, description: "Unique name ([a-zA-Z0-9_])" },
5039
5063
  transport: {
5040
5064
  type: "string",
5041
- description: "stdio (Linux only) | http (Streamable HTTP; default stdio)"
5065
+ description: "stdio (Linux / Apple Silicon macOS) | http (Streamable HTTP; default stdio)"
5042
5066
  },
5043
5067
  command: { type: "string", description: "stdio: executable to run (e.g. npx)" },
5044
5068
  args: { type: "string", description: "stdio: space-separated args (quote the whole string)" },
@@ -6168,7 +6192,7 @@ var teamEnvironmentCommand = defineCommand27({
6168
6192
  file: {
6169
6193
  type: "string",
6170
6194
  required: true,
6171
- description: "JSON {expectedRevision,config:{image,cwd,env}}"
6195
+ description: 'JSON {expectedRevision,config:{backend:"native"|"docker",cwd,env,image?}}; image is Docker-only'
6172
6196
  }
6173
6197
  },
6174
6198
  async run({ args: args2 }) {
@@ -7447,6 +7471,13 @@ var teamReviewCommand = defineCommand32({
7447
7471
 
7448
7472
  // src/commands/team-verify.ts
7449
7473
  import { defineCommand as defineCommand33 } from "citty";
7474
+
7475
+ // src/verification-presentation.ts
7476
+ function verificationEnvironmentLabel(environment) {
7477
+ return environment.sandbox === "native" ? `native ${environment.native.backend} \xB7 ${environment.native.architecture} \xB7 Node ${environment.native.nodeVersion} (captured, not current readiness)` : `${environment.image} (shell ${environment.sandbox})`;
7478
+ }
7479
+
7480
+ // src/commands/team-verify.ts
7450
7481
  var slug4 = {
7451
7482
  id: { type: "positional", required: true, description: "Team slug" }
7452
7483
  };
@@ -7471,7 +7502,7 @@ function printReport3(report) {
7471
7502
  ` change: snapshot ${request.snapshot.id} (base ${request.snapshot.baseOid.slice(0, 12)}${request.snapshot.complete ? "" : ", INCOMPLETE COVERAGE"})`
7472
7503
  );
7473
7504
  console.log(` specialist: ${request.recipientAgentId} requested by: ${requester}`);
7474
- console.log(` environment: ${request.environment.image} (shell ${request.environment.sandbox})`);
7505
+ console.log(` environment: ${verificationEnvironmentLabel(request.environment)}`);
7475
7506
  console.log(
7476
7507
  ` applicability: ${report.applicability.comparison === "identical" ? "unchanged since capture" : `${report.applicability.comparison} (never a pass)`}`
7477
7508
  );