bazilion 0.23.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.
- package/README.md +34 -11
- package/dist/browser-keychain.js +83 -0
- package/dist/browser-keychain.js.map +1 -0
- package/dist/cli-main.js +81 -33
- package/dist/cli-main.js.map +1 -1
- package/dist/daemon-main.js +15174 -7372
- package/dist/daemon-main.js.map +1 -1
- package/dist/migrations/0001_init.sql +6 -4
- package/dist/native-darwin-entry.js +692 -0
- package/dist/native-darwin-entry.js.map +1 -0
- package/dist/native-linux-entry.js +60 -0
- package/dist/native-linux-entry.js.map +1 -0
- package/dist/runtime-version.js +2 -2
- package/dist/runtime-version.js.map +1 -1
- package/dist/web/client/assets/{AgentTabs-ZozvE4RV.js → AgentTabs-kEd-oDRM.js} +1 -1
- package/dist/web/client/assets/ChatPane-DhvlzNPJ.js +76 -0
- package/dist/web/client/assets/{ConfigPage-D_3AsSG4.js → ConfigPage-CMKsWDjh.js} +1 -1
- package/dist/web/client/assets/{ConfirmDialog-CH2zTXuo.js → ConfirmDialog-DpAzoNG8.js} +1 -1
- package/dist/web/client/assets/{FieldRow-CcrDV3An.js → FieldRow-OQ-Ezw5t.js} +1 -1
- package/dist/web/client/assets/{ProductionTeamPolicyEditor-DNJsrcW8.js → ProductionTeamPolicyEditor-DhT-Q13a.js} +1 -1
- package/dist/web/client/assets/{ProfileCommunicationEditor-B2SthMNH.js → ProfileCommunicationEditor-CnQIp4e6.js} +1 -1
- package/dist/web/client/assets/{RecoveryState-DlaJiGZs.js → RecoveryState-B4Rne9N_.js} +1 -1
- package/dist/web/client/assets/{ResultCard-CF7a0iFy.js → ResultCard-BxAlMky1.js} +1 -1
- package/dist/web/client/assets/{ResultSourceConversation-X5SuheW6.js → ResultSourceConversation-BzIw43-r.js} +1 -1
- package/dist/web/client/assets/{SectionTabs-CCHDsNpe.js → SectionTabs-D3M6F_HR.js} +1 -1
- package/dist/web/client/assets/{TeamTabs-BplbR2LB.js → TeamTabs-BZbg-UFx.js} +1 -1
- package/dist/web/client/assets/{TemplatesTabs-DsnlhO7j.js → TemplatesTabs-D8geEOte.js} +1 -1
- package/dist/web/client/assets/{UnsavedChangesGuard-BFGfvKOY.js → UnsavedChangesGuard-CPQe9VLw.js} +1 -1
- package/dist/web/client/assets/{_id-HgkOZjnh.js → _id-1RIodFdi.js} +1 -1
- package/dist/web/client/assets/_id-BV3w2kDj.js +1 -0
- package/dist/web/client/assets/{_id-eKsjDym9.js → _id-C9zxKqvQ.js} +1 -1
- package/dist/web/client/assets/{_id-CHE9wjEm.js → _id-CLG_POnZ.js} +1 -1
- package/dist/web/client/assets/{_id-C75PSTfh.js → _id-Cha845UH.js} +1 -1
- package/dist/web/client/assets/{_id-CM4HcwqG.js → _id-DssxcwBl.js} +1 -1
- package/dist/web/client/assets/{_id-I4COPqTO.js → _id-IDHR-MEm.js} +1 -1
- package/dist/web/client/assets/{_id-W8yP8QHB.js → _id-SGs5zOcT.js} +1 -1
- package/dist/web/client/assets/{activity-BCYUctkB.js → activity-0srO4qbd.js} +1 -1
- package/dist/web/client/assets/{activity-jvvmbNos.js → activity-DxQGr6eP.js} +1 -1
- package/dist/web/client/assets/{agents-C6mJyZUx.js → agents-CVTYoXKu.js} +1 -1
- package/dist/web/client/assets/{agents-CvLzI7m_.js → agents-DPTu6Sm_.js} +1 -1
- package/dist/web/client/assets/{agents-CpusMfSn.js → agents-nHiIbumu.js} +1 -1
- package/dist/web/client/assets/{approvals-C2R4qUbS.js → approvals-Di_Bux_Q.js} +1 -1
- package/dist/web/client/assets/{approvals-Cd2np6JM.js → approvals-ScNrQg7q.js} +1 -1
- package/dist/web/client/assets/{attention-Q_sRUULz.js → attention-BF-Llt9z.js} +1 -1
- package/dist/web/client/assets/{attention-CFwT25yC.js → attention-D7xB17sN.js} +1 -1
- package/dist/web/client/assets/chevron-right-CJ2wat15.js +1 -0
- package/dist/web/client/assets/config-BOuIcP1T.js +3 -0
- package/dist/web/client/assets/{context-Cjb1-4nB.js → context-wo9lNjHx.js} +1 -1
- package/dist/web/client/assets/{inbox-QoBXXR8s.js → inbox-CNLmz0Jp.js} +1 -1
- package/dist/web/client/assets/{inbox-CX0alCy_.js → inbox-De6HOll3.js} +1 -1
- package/dist/web/client/assets/{index-Du-fy_6d.js → index-CjI7_vB3.js} +2 -2
- package/dist/web/client/assets/{learning-C1n4NTM1.js → learning-591SFAKg.js} +1 -1
- package/dist/web/client/assets/{learning-VwXsV_lU.js → learning-D6bO0NeB.js} +1 -1
- package/dist/web/client/assets/{login-CqnOW-JM.js → login-Q7uP-v0M.js} +1 -1
- package/dist/web/client/assets/mcp-BGy64VOv.js +1 -0
- package/dist/web/client/assets/{mcp-B02-ofb9.js → mcp-DSCjhc5I.js} +1 -1
- package/dist/web/client/assets/{members-CEkRCNto.js → members-CBVor-P4.js} +1 -1
- package/dist/web/client/assets/{members-va8WzU_O.js → members-CCcecjC3.js} +1 -1
- package/dist/web/client/assets/{memory-DiGxdDEp.js → memory-CSE8EQ48.js} +1 -1
- package/dist/web/client/assets/{memory-DejWBeGz.js → memory-DgGz0wh4.js} +1 -1
- package/dist/web/client/assets/{policy-DgIcquCb.js → policy-6j-NQvBj.js} +1 -1
- package/dist/web/client/assets/{policy-CEiX5AXJ.js → policy-Do0TvNWc.js} +1 -1
- package/dist/web/client/assets/{results-DsK9IvTu.js → results-CCQGn0dE.js} +1 -1
- package/dist/web/client/assets/{results-BBBBjgd1.js → results-Cx6_ChIY.js} +1 -1
- package/dist/web/client/assets/{review-X2RHaLwW.js → review-CyS5b0fz.js} +1 -1
- package/dist/web/client/assets/{review-BGbU_GAW.js → review-qG-2gqEp.js} +1 -1
- package/dist/web/client/assets/{routes-CNz-oflx.js → routes-DRic0xNy.js} +1 -1
- package/dist/web/client/assets/{services-D7TEP2JX.js → services-B_7lf-mx.js} +1 -1
- package/dist/web/client/assets/{services-dcsfVgOY.js → services-ByBA_yA-.js} +1 -1
- package/dist/web/client/assets/{skills-NDtAsHyl.js → skills--lnDzPWe.js} +1 -1
- package/dist/web/client/assets/{skills-CnI7SkP2.js → skills-C70btgIg.js} +1 -1
- package/dist/web/client/assets/{styles-CjCML-UX.css → styles-e_ADuRbs.css} +1 -1
- package/dist/web/client/assets/{teams-DErd3Weq.js → teams-BL-Fr2xF.js} +1 -1
- package/dist/web/client/assets/{teams-Dyll0JrQ.js → teams-BeoxArzy.js} +1 -1
- package/dist/web/client/assets/{teams-DETtQypB.js → teams-C4mb790r.js} +1 -1
- package/dist/web/client/assets/{teams-DPgdJBly.js → teams-DHStw3OS.js} +1 -1
- package/dist/web/client/assets/{telegram-CAGu-kLc.js → telegram-BIMiebJl.js} +1 -1
- package/dist/web/client/assets/{templates-CgOQU6RS.js → templates-CzHXXiA_.js} +1 -1
- package/dist/web/client/assets/{tokens-BYVE1y6V.js → tokens-B9ehOc1o.js} +1 -1
- package/dist/web/client/assets/{tokens-CvjME9aI.js → tokens-DhaMzFWK.js} +1 -1
- package/dist/web/client/assets/{triggers-Dmli752j.js → triggers--xMpHFW7.js} +1 -1
- package/dist/web/client/assets/{triggers-BeZ7olEG.js → triggers-DLzZu8bB.js} +1 -1
- package/dist/web/client/assets/verifications-FzypGVwW.js +2 -0
- package/dist/web/client/assets/{verifications-CnLEVFoZ.js → verifications-fR9W-adv.js} +1 -1
- package/dist/web/client/assets/{welcome-BF3pg5U5.js → welcome-pjZD7pq4.js} +1 -1
- package/dist/web/client/assets/{x-B-Fk6DuU.js → x-CZxV4X-6.js} +1 -1
- package/dist/web/server/assets/{ChatPane-DsDa1E0a.js → ChatPane-CeDUEjmn.js} +11 -2
- package/dist/web/server/assets/{ResultSourceConversation-NKiRGO6_.js → ResultSourceConversation-xn4EKjaP.js} +1 -1
- package/dist/web/server/assets/{_id-CrOJD02W.js → _id-CGMvV1p5.js} +3 -3
- package/dist/web/server/assets/{_id-BXOT74Jd.js → _id-DhheAcWL.js} +149 -14
- package/dist/web/server/assets/{_id-C1TCGcHL.js → _id-t8AepTB2.js} +1 -1
- package/dist/web/server/assets/{_id-BS4MnPa3.js → _id-ujm4R5OF.js} +1 -1
- package/dist/web/server/assets/{_tanstack-start-manifest_v-CPSd5WEy.js → _tanstack-start-manifest_v-CXwNJhX2.js} +134 -134
- package/dist/web/server/assets/{config-DX3c4Co0.js → config-0_5yhRKg.js} +129 -22
- package/dist/web/server/assets/{config-DTI4EPbU.js → config-CpHD812q.js} +6 -1
- package/dist/web/server/assets/{config-DM2DIzMT.js → config-VsmvCulS.js} +1 -1
- package/dist/web/server/assets/{mcp-CLWr5_0I.js → mcp-BEdnl_TT.js} +1 -1
- package/dist/web/server/assets/{mcp-DmzP8n2G.js → mcp-Dhryb75M.js} +2 -2
- package/dist/web/server/assets/{results-BYU6Bfzt.js → results-CkNoVDrY.js} +2 -2
- package/dist/web/server/assets/{results-Cr1B3XoP.js → results-DSGwi3vj.js} +1 -1
- package/dist/web/server/assets/{router-B2R22qdF.js → router-BFqyjkYu.js} +8 -8
- package/dist/web/server/assets/{routes-kSjMHwrg.js → routes-BfEa101d.js} +1 -1
- package/dist/web/server/assets/{routes-BGMHt0b0.js → routes-pUMIGzyy.js} +2 -2
- package/dist/web/server/assets/{verifications-EIw3Xh61.js → verifications-DvOyI3Mr.js} +1 -1
- package/dist/web/server/assets/{verifications-BVR0OK7x.js → verifications-YrEdiZmk.js} +8 -5
- package/dist/web/server/server.js +3 -3
- package/dist/worker.js +820 -205
- package/dist/worker.js.map +1 -1
- package/package.json +10 -8
- package/dist/web/client/assets/ChatPane-nv9xOKnM.js +0 -76
- package/dist/web/client/assets/_id-fxbpjlEa.js +0 -1
- package/dist/web/client/assets/chevron-right-BfSr7R_L.js +0 -1
- package/dist/web/client/assets/config-B7UhhXW6.js +0 -3
- package/dist/web/client/assets/mcp-DMpVmmfU.js +0 -1
- package/dist/web/client/assets/verifications-qQz5-X-o.js +0 -2
package/README.md
CHANGED
|
@@ -8,9 +8,24 @@ Multi-agent runtime CLI — spawn LLM agents, manage profiles/teams/skills, and
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
major lines are refused before application imports or state bootstrap.
|
|
13
|
-
|
|
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).
|
|
14
29
|
|
|
15
30
|
```sh
|
|
16
31
|
npx bazilion dashboard # one-shot
|
|
@@ -27,13 +42,13 @@ bazilion dashboard
|
|
|
27
42
|
bazilion dashboard
|
|
28
43
|
```
|
|
29
44
|
|
|
30
|
-
The daemon writes a bootstrap token to `~/.bazilion/auth.json`, binds `127.0.0.1:4321`, and the bundled web UI binds `127.0.0.1:4322`. CLI commands pick the token up automatically from `auth.json
|
|
45
|
+
The daemon writes a bootstrap token to `~/.bazilion/auth.json`, binds `127.0.0.1:4321`, and the bundled web UI binds `127.0.0.1:4322`. CLI commands pick the token up automatically from `auth.json`. The bootstrap credential can finish browser setup only while setup is incomplete; use a named device credential for subsequent browser login.
|
|
31
46
|
|
|
32
47
|
From another terminal:
|
|
33
48
|
|
|
34
49
|
```sh
|
|
35
|
-
#
|
|
36
|
-
|
|
50
|
+
# First save the provider credential on /config (avoids shell-history exposure).
|
|
51
|
+
# Environment credentials must be present in the daemon's environment at startup.
|
|
37
52
|
bazilion provider enable anthropic
|
|
38
53
|
bazilion provider models-set anthropic claude-opus-5
|
|
39
54
|
|
|
@@ -41,8 +56,8 @@ bazilion provider models-set anthropic claude-opus-5
|
|
|
41
56
|
bazilion agent spawn --profile default --name first
|
|
42
57
|
# → spawned agent <uuid> (first)
|
|
43
58
|
|
|
44
|
-
bazilion agent chat <uuid> # interactive REPL
|
|
45
59
|
bazilion agent chat <uuid> --message "say hi" # one-shot
|
|
60
|
+
printf 'say hi' | bazilion agent chat <uuid> # piped input; no interactive REPL
|
|
46
61
|
```
|
|
47
62
|
|
|
48
63
|
Run `bazilion --help` for the full command list, or `bazilion <command> --help` for details on any subcommand.
|
|
@@ -95,7 +110,8 @@ The web UI is bundled into the published `bazilion` package and starts with:
|
|
|
95
110
|
bazilion dashboard
|
|
96
111
|
```
|
|
97
112
|
|
|
98
|
-
For source development, clone the repo and run
|
|
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`.
|
|
99
115
|
|
|
100
116
|
```sh
|
|
101
117
|
git clone https://github.com/rullopat/bazilion
|
|
@@ -118,17 +134,24 @@ pnpm tsx apps/cli/src/index.ts auth openai login --device-code
|
|
|
118
134
|
```
|
|
119
135
|
|
|
120
136
|
After connecting, enable `openai-codex` and curate at least one model, for example
|
|
121
|
-
`gpt-6-astra` (GPT-6 Astra,
|
|
122
|
-
|
|
137
|
+
`gpt-6-astra` (GPT-6 Astra, present in the embedded OpenAI and ChatGPT catalogs).
|
|
138
|
+
Catalog membership is not proof of account entitlement.
|
|
123
139
|
Credentials are stored AES-256-GCM-encrypted in the daemon's `secrets` table.
|
|
124
140
|
|
|
125
141
|
## What's in the box
|
|
126
142
|
|
|
127
143
|
- **CLI + daemon + web UI**, spawned together via `bazilion dashboard`. The daemon binds `127.0.0.1:4321`, the web UI binds `127.0.0.1:4322`, and the daemon owns `~/.bazilion/` (SQLite DB, profiles, agents, teams, skills, logs).
|
|
128
|
-
- **Operator command families** include `agent`, `profile`, `team`, `team`, `skill`, `provider`, `config`, `auth`, `memory`, `send`, `inbox`, `trigger`, `serve`, `doctor`, `backup`, `token`, `login`, and `uninstall`.
|
|
144
|
+
- **Operator command families** include `agent`, `profile`, `team`, `team-template`, `skill`, `provider`, `config`, `auth`, `memory`, `send`, `inbox`, `trigger`, `serve`, `doctor`, `backup`, `token`, `login`, and `uninstall`.
|
|
129
145
|
- **Provider support** via [pi-ai](https://www.npmjs.com/package/@earendil-works/pi-ai): Anthropic, OpenAI (key + ChatGPT OAuth), Google AI Studio + Vertex, Azure OpenAI, AWS Bedrock, Mistral, Groq, Cerebras, xAI, zAI, Hugging Face, OpenRouter, Vercel AI Gateway, Cloudflare, GitHub Copilot, DeepSeek, Fireworks, Together, Baseten, Moonshot/Kimi, MiniMax, Qwen Token Plan (including Individual), Xiaomi MiMo, Ant Ling, NVIDIA NIM, OpenCode, LM Studio, Ollama, and llama.cpp.
|
|
130
146
|
- **OpenClaw-compatible skills**: drop a `SKILL.md` into `~/.bazilion/skills/<name>/`, or import in bulk via `bazilion skill import --from openclaw`.
|
|
131
147
|
|
|
148
|
+
## Installation diagnostics
|
|
149
|
+
|
|
150
|
+
`bazilion doctor` and `/config` distinguish installation health, platform support and protected
|
|
151
|
+
unattended readiness. Doctor exits zero for structural installation health only. Automation
|
|
152
|
+
requiring protected work must inspect `protectedWorkBaselineReady` in authenticated
|
|
153
|
+
`/api/health/details`; ordinary chat execution is Not checked. All execution gates remain mandatory.
|
|
154
|
+
|
|
132
155
|
## Uninstall
|
|
133
156
|
|
|
134
157
|
```sh
|
|
@@ -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 = "^
|
|
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 ===
|
|
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.
|
|
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,18 +65,19 @@ var package_default = {
|
|
|
65
65
|
build: "pnpm --filter @bazilion/web build && tsup"
|
|
66
66
|
},
|
|
67
67
|
engines: {
|
|
68
|
-
node: "^
|
|
68
|
+
node: "^26.12.1"
|
|
69
69
|
},
|
|
70
70
|
publishConfig: {
|
|
71
71
|
access: "public"
|
|
72
72
|
},
|
|
73
73
|
dependencies: {
|
|
74
|
-
"@earendil-works/pi-agent-core": "1.
|
|
75
|
-
"@earendil-works/pi-ai": "1.
|
|
76
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
77
|
-
"@earendil-works/pi-mcp": "1.
|
|
74
|
+
"@earendil-works/pi-agent-core": "1.4.0",
|
|
75
|
+
"@earendil-works/pi-ai": "1.4.0",
|
|
76
|
+
"@earendil-works/pi-coding-agent": "1.4.0",
|
|
77
|
+
"@earendil-works/pi-mcp": "1.4.0",
|
|
78
78
|
"@hono/node-server": "^2.0.6",
|
|
79
79
|
"@mozilla/readability": "^0.6.0",
|
|
80
|
+
"@openclaw/fs-safe": "0.26.8",
|
|
80
81
|
"@playwright/browser-chromium": "^1.61.0",
|
|
81
82
|
"@tanstack/react-router": "1.170.18",
|
|
82
83
|
"@tobilu/qmd": "^2.5.3",
|
|
@@ -89,6 +90,7 @@ var package_default = {
|
|
|
89
90
|
dompurify: "^3.4.11",
|
|
90
91
|
grammy: "^1.44.0",
|
|
91
92
|
hono: "^4.12.26",
|
|
93
|
+
koffi: "3.3.3",
|
|
92
94
|
linkedom: "^0.18.12",
|
|
93
95
|
"lucide-react": "^1.21.0",
|
|
94
96
|
marked: "^18.0.5",
|
|
@@ -2563,12 +2565,14 @@ function invalidateRestoredCodingEvidence(db, payload, targetHome) {
|
|
|
2563
2565
|
`SELECT DISTINCT attempt.request_id AS request_id
|
|
2564
2566
|
FROM verification_check_outcomes outcome
|
|
2565
2567
|
JOIN verification_attempts attempt ON attempt.id = outcome.attempt_id
|
|
2566
|
-
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)`
|
|
2567
2570
|
).all();
|
|
2568
2571
|
db.prepare(
|
|
2569
2572
|
`UPDATE verification_check_outcomes
|
|
2570
2573
|
SET state = 'unknown', command_id = NULL, exit_code = NULL, finished_at = ?
|
|
2571
|
-
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)`
|
|
2572
2576
|
).run(restoredAt);
|
|
2573
2577
|
const reopen = db.prepare(`UPDATE verification_requests SET state = 'uncertain' WHERE id = ?`);
|
|
2574
2578
|
const invalidateAttempt = db.prepare(
|
|
@@ -4575,6 +4579,8 @@ var doctorCommand = defineCommand13({
|
|
|
4575
4579
|
}
|
|
4576
4580
|
console.log(`bazilion home: ${r.home}`);
|
|
4577
4581
|
console.log();
|
|
4582
|
+
for (const line of platformCapabilityDoctorLines(r.platformCapabilities)) console.log(line);
|
|
4583
|
+
console.log();
|
|
4578
4584
|
console.log("paths");
|
|
4579
4585
|
check("home dir exists", r.paths.home);
|
|
4580
4586
|
check("database exists", r.paths.db, "run: bazilion serve (auto-bootstraps on first run)");
|
|
@@ -4660,12 +4666,14 @@ var doctorCommand = defineCommand13({
|
|
|
4660
4666
|
const hasProfiles = (r.database?.ok ? r.database.profiles : 0) > 0;
|
|
4661
4667
|
const hasAgents = (r.database?.ok ? r.database.totalAgents : 0) > 0;
|
|
4662
4668
|
console.log();
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4669
|
+
for (const line of doctorSummaryLines(
|
|
4670
|
+
r,
|
|
4671
|
+
r.executionSecurity.protectedUnattendedTurns.codingSurface
|
|
4672
|
+
))
|
|
4673
|
+
console.log(line);
|
|
4674
|
+
if (doctorHasIssues(r)) process.exit(1);
|
|
4667
4675
|
if (!hasProfiles || !hasAgents) {
|
|
4668
|
-
console.log("
|
|
4676
|
+
console.log("setup guidance (not an execution test)");
|
|
4669
4677
|
const todo = [];
|
|
4670
4678
|
if (!anyCloudProvider) {
|
|
4671
4679
|
todo.push(" - set a cloud api key (ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEY)");
|
|
@@ -4677,15 +4685,15 @@ var doctorCommand = defineCommand13({
|
|
|
4677
4685
|
}
|
|
4678
4686
|
if (!hasAgents) todo.push(" - spawn an agent: bazilion agent spawn --profile <id>");
|
|
4679
4687
|
for (const line of todo) console.log(line);
|
|
4680
|
-
} else {
|
|
4681
|
-
console.log("all good \u2713");
|
|
4682
4688
|
}
|
|
4683
4689
|
}
|
|
4684
4690
|
});
|
|
4685
4691
|
function executionSecurityDoctorLines(report) {
|
|
4686
4692
|
const configured = report.executionSecurity.configuredOperatorHttp;
|
|
4687
4693
|
const protectedTurns = report.executionSecurity.protectedUnattendedTurns;
|
|
4688
|
-
const lines = [
|
|
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
|
+
];
|
|
4689
4697
|
if (!report.shellSecurity.ok) {
|
|
4690
4698
|
lines.push(checkLine("valid shell-security configuration", false, report.shellSecurity.error));
|
|
4691
4699
|
} else {
|
|
@@ -4700,7 +4708,13 @@ function executionSecurityDoctorLines(report) {
|
|
|
4700
4708
|
" set BAZILION_BASH_APPROVAL=dangerous to opt in"
|
|
4701
4709
|
);
|
|
4702
4710
|
}
|
|
4703
|
-
if (report.shellSecurity.sandboxMode === "
|
|
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") {
|
|
4704
4718
|
lines.push(
|
|
4705
4719
|
` - coding surface: Docker only (${report.shellSecurity.sandboxImage})`,
|
|
4706
4720
|
" workspace-only writable mount \xB7 bounded inputs/skills/memory read-only \xB7 network disabled",
|
|
@@ -4710,22 +4724,31 @@ function executionSecurityDoctorLines(report) {
|
|
|
4710
4724
|
);
|
|
4711
4725
|
} else {
|
|
4712
4726
|
lines.push(
|
|
4713
|
-
" - coding surface: host tools",
|
|
4714
|
-
"
|
|
4715
|
-
"
|
|
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"
|
|
4716
4730
|
);
|
|
4717
4731
|
}
|
|
4718
4732
|
}
|
|
4719
4733
|
lines.push(` - browser: ${configured.browser}`, ` - MCP: ${configured.mcp}`, "");
|
|
4720
4734
|
lines.push(
|
|
4721
4735
|
"protected unattended turns baseline (Telegram, schedules, inbox, approvals)",
|
|
4722
|
-
checkLine("protected base runtime ready", protectedTurns.baseRuntimeReady),
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
`
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
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
|
+
],
|
|
4729
4752
|
checkLine("OpenAI Codex enabled", protectedTurns.openaiCodex.enabled),
|
|
4730
4753
|
checkLine("ChatGPT connected", protectedTurns.openaiCodex.connected),
|
|
4731
4754
|
` - OpenAI access: ${openAIAccessStatus(protectedTurns.openaiCodex)}`,
|
|
@@ -4739,8 +4762,26 @@ function executionSecurityDoctorLines(report) {
|
|
|
4739
4762
|
}
|
|
4740
4763
|
return lines;
|
|
4741
4764
|
}
|
|
4765
|
+
function platformCapabilityDoctorLines(report) {
|
|
4766
|
+
return [
|
|
4767
|
+
`platform support: ${report.platform}`,
|
|
4768
|
+
` ${report.note}`,
|
|
4769
|
+
...report.capabilities.flatMap((capability) => [
|
|
4770
|
+
` - ${capability.label}: ${capability.support} on this platform`,
|
|
4771
|
+
` ${capability.detail}`
|
|
4772
|
+
])
|
|
4773
|
+
];
|
|
4774
|
+
}
|
|
4775
|
+
function doctorSummaryLines(report, codingSurface) {
|
|
4776
|
+
return [
|
|
4777
|
+
report.ok ? "install is healthy \u2713" : "installation issues found \u2717",
|
|
4778
|
+
"ordinary chat execution: not checked \u2014 select/test a provider and try an Agent chat",
|
|
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",
|
|
4780
|
+
"doctor exit status covers installation health only; it does not authorize execution."
|
|
4781
|
+
];
|
|
4782
|
+
}
|
|
4742
4783
|
function doctorHasIssues(report) {
|
|
4743
|
-
return !report.ok
|
|
4784
|
+
return !report.ok;
|
|
4744
4785
|
}
|
|
4745
4786
|
function openAIAccessStatus(status) {
|
|
4746
4787
|
if (status.accessCurrent) return "current";
|
|
@@ -5021,7 +5062,7 @@ var addCmd = defineCommand17({
|
|
|
5021
5062
|
name: { type: "positional", required: true, description: "Unique name ([a-zA-Z0-9_])" },
|
|
5022
5063
|
transport: {
|
|
5023
5064
|
type: "string",
|
|
5024
|
-
description: "stdio (Linux
|
|
5065
|
+
description: "stdio (Linux / Apple Silicon macOS) | http (Streamable HTTP; default stdio)"
|
|
5025
5066
|
},
|
|
5026
5067
|
command: { type: "string", description: "stdio: executable to run (e.g. npx)" },
|
|
5027
5068
|
args: { type: "string", description: "stdio: space-separated args (quote the whole string)" },
|
|
@@ -6151,7 +6192,7 @@ var teamEnvironmentCommand = defineCommand27({
|
|
|
6151
6192
|
file: {
|
|
6152
6193
|
type: "string",
|
|
6153
6194
|
required: true,
|
|
6154
|
-
description:
|
|
6195
|
+
description: 'JSON {expectedRevision,config:{backend:"native"|"docker",cwd,env,image?}}; image is Docker-only'
|
|
6155
6196
|
}
|
|
6156
6197
|
},
|
|
6157
6198
|
async run({ args: args2 }) {
|
|
@@ -7430,6 +7471,13 @@ var teamReviewCommand = defineCommand32({
|
|
|
7430
7471
|
|
|
7431
7472
|
// src/commands/team-verify.ts
|
|
7432
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
|
|
7433
7481
|
var slug4 = {
|
|
7434
7482
|
id: { type: "positional", required: true, description: "Team slug" }
|
|
7435
7483
|
};
|
|
@@ -7454,7 +7502,7 @@ function printReport3(report) {
|
|
|
7454
7502
|
` change: snapshot ${request.snapshot.id} (base ${request.snapshot.baseOid.slice(0, 12)}${request.snapshot.complete ? "" : ", INCOMPLETE COVERAGE"})`
|
|
7455
7503
|
);
|
|
7456
7504
|
console.log(` specialist: ${request.recipientAgentId} requested by: ${requester}`);
|
|
7457
|
-
console.log(` environment: ${
|
|
7505
|
+
console.log(` environment: ${verificationEnvironmentLabel(request.environment)}`);
|
|
7458
7506
|
console.log(
|
|
7459
7507
|
` applicability: ${report.applicability.comparison === "identical" ? "unchanged since capture" : `${report.applicability.comparison} (never a pass)`}`
|
|
7460
7508
|
);
|