Commit graph

7 commits

Author SHA1 Message Date
771e19e1c7 Drop FreeBSD 14 support (Sam & Claude)
Require the tracked FreeBSD 15.x line during install and environment checks, and align docs and skill compatibility metadata with 15.x only.

---
Build: pass
Tests: pass — 37 passed (2 files)

---
Build: pass | Tests: pass — 2363 passed (701 files)
2026-05-10 16:31:40 +02:00
e5feb8dc5f fix(setup): pre-chown runtime dirs and resolve npm path for root installs
When the installer runs as root and the agent runs as the named user
(via daemon -u), runtime dirs (data/, logs/, groups/) were created
root-owned causing EACCES on first write. Now pre-created and
chown -R agentName:agentName'd during setup.

Also resolves the su -m build subprocess PATH issue: getNpmPath()
resolves the absolute npm binary path at setup time, so the su
subprocess doesn't rely on PATH inheritance from the sudo environment.

Also drops the unused `os` import and fixes a variable ordering bug
(homeDir referenced agentName before it was declared).

Removes docs/internal/MEVY-PRIVILEGE-FIX.md — all follow-up items
addressed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---
Build: pass | Tests: FAIL — Tests  1525 passed (1525)
2026-04-16 08:26:35 +00:00
332b9fd125 Setup: reduce prompts (AUTO boot), add env-audit, drop headless/desktop split (Sam & Codex)
- install-all forces service boot mode AUTO (no prompt)

- add env-audit step for effective config summary

- remove isHeadless/isDesktop split; treat GUI stack as always required

- preflight timestamps use display-date helper

---

Build: pass | Tests: pass — 602 passed (44 files)

---
Build: pass | Tests: pass — Tests  602 passed (602)
2026-04-03 08:49:07 +00:00
11fbc7f3e0 refactor(phase-2.1): AGENT_NAME namespace — jail-config + platform + jails step
- src/jail-config.ts: full rewrite — drop WARDEN_*/controlplane, introduce
  AGENT_BRIDGE_NAME=clawdie0, AGENT_JAIL_PROFILES, AGENT_SUBNET_*, AGENT_GATEWAY_IP,
  getWorkerBastillePlan(), getDefaultJailConfigForProfile(); all jail names
  derive from process.env.AGENT_NAME (default: clawdie)
- src/jail-config.test.ts: rewrite tests to match new AGENT_* API
- setup/jails.ts: new step replacing jail.ts; creates {AGENT_NAME}-worker jail
  via Bastille using shared clawdie0 bridge
- setup/jail.ts: deleted (replaced by jails.ts)
- setup/index.ts: replace 'jail' step with 'jails', add 'pi-config',
  remove 'network'/'setup-wizard'/'telegram-auth' steps
- setup/platform.ts: add isDesktop() and hasBrowser()
- setup/platform.test.ts: add tests for new functions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 13:47:22 +00:00
Clawdie
a5c53fdd92 Remove non-FreeBSD runtime paths 2026-03-07 21:55:25 +01:00
Gabi Simons
d12c3c4da3 refactor: CI optimization, logging improvements, and codebase formatting (#456)
* fix(db): remove unique constraint on folder to support multi-channel agents

* ci: implement automated skill drift detection and self-healing PRs

* fix: align registration logic with Gavriel's feedback and fix build/test issues from Daniel Mi

* style: conform to prettier standards for CI validation

* test: fix branch naming inconsistency in CI (master vs main)

* fix(ci): robust module resolution by removing file extensions in scripts

* refactor(ci): simplify skill validation by removing redundant combination tests

* style: conform skills-engine to prettier, unify logging in index.ts and cleanup unused imports

* refactor: extract multi-channel DB changes to separate branch

Move channel column, folder suffix logic, and related migrations
to feat/multi-channel-db-v2 for independent review. This PR now
contains only CI/CD optimizations, Prettier formatting, and
logging improvements.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 23:13:36 +02:00
gavrielc
29ae065fde refactor: move setup scripts out of src/ to reduce build token count
Setup scripts are standalone CLI tools run via tsx with no runtime
imports from the main app. Moving them out of src/ excludes them from
the tsc build output and reduces the compiled bundle size.

- git mv src/setup/ setup/
- Fix imports to use ../src/logger.js and ../src/config.js
- Update package.json, vitest.config.ts, SKILL.md references
- Fix platform tests to be cross-platform (macOS + Linux)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 18:43:22 +02:00
Renamed from src/setup/platform.ts (Browse further)