@archme/cli 0.12.0 → 0.12.1

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/dist/cli.js CHANGED
@@ -18153,9 +18153,6 @@ function readSandboxSettings(env, home2 = homedir6(), shippedImage = () => null)
18153
18153
  const projects = new Set(
18154
18154
  (env.ARCHME_SANDBOX_PROJECTS ?? "").split(",").map((s) => s.trim()).filter(Boolean)
18155
18155
  );
18156
- if (projects.size === 0) {
18157
- throw new SandboxSettingsError("ARCHME_SANDBOX=shadow needs ARCHME_SANDBOX_PROJECTS (comma-separated project ids)");
18158
- }
18159
18156
  const tokenRaw = (env.ARCHME_SANDBOX_CLAUDE_TOKEN_FILE ?? "").trim();
18160
18157
  return {
18161
18158
  mode,
@@ -18175,7 +18172,7 @@ function readSandboxSettings(env, home2 = homedir6(), shippedImage = () => null)
18175
18172
  function shouldSandbox(settings, job, { isLocalRepo }) {
18176
18173
  if (settings.mode === "off") return { boxed: false, reason: "mode_off" };
18177
18174
  if (job.job_kind === "digest") return { boxed: false, reason: "digest" };
18178
- if (settings.mode === "shadow" && !settings.projects.has(job.project_id)) {
18175
+ if (settings.mode === "shadow" && settings.projects.size > 0 && !settings.projects.has(job.project_id)) {
18179
18176
  return { boxed: false, reason: "project_not_enrolled" };
18180
18177
  }
18181
18178
  if (isLocalRepo) return { boxed: false, reason: "local_repo" };
@@ -21954,7 +21951,7 @@ async function runDaemon() {
21954
21951
  }
21955
21952
  exitDaemon(1);
21956
21953
  }
21957
- console.log(` sandbox: ${sandboxSettings.mode}${sandboxSettings.mode === "shadow" ? ` (projects: ${[...sandboxSettings.projects].join(", ")}; ${sandboxSettings.slots} slot(s))` : ""}`);
21954
+ console.log(` sandbox: ${sandboxSettings.mode}${sandboxSettings.mode === "shadow" ? ` (projects: ${sandboxSettings.projects.size ? [...sandboxSettings.projects].join(", ") : "all"}; ${sandboxSettings.slots} slot(s))` : ""}`);
21958
21955
  const bearerCfg = {
21959
21956
  supabaseUrl: SUPABASE_URL,
21960
21957
  anonKey: SUPABASE_ANON_KEY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archme/cli",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Map your codebase into a living architecture diagram: run `archme init` in a repo to scan it, `archme daemon start` to keep it current on every commit.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "image": "ghcr.io/architectme/archme-job",
3
- "digest": "sha256:3fdadf0491e1b3c684731c07cde23c9fe02e7d434505523eb1f2d88609af44ed"
3
+ "digest": "sha256:cb4a51eef6733a83444c67cd63143806aefc19b7af4c71f27f89c96d1fce4686"
4
4
  }