@smithers-orchestrator/vcs 0.20.4 → 0.22.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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/jj.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithers-orchestrator/vcs",
3
- "version": "0.20.4",
3
+ "version": "0.22.0",
4
4
  "description": "VCS discovery and jj workspace operations for Smithers",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "@effect/platform": "^0.96.0",
24
24
  "effect": "^3.21.1",
25
- "@smithers-orchestrator/observability": "0.20.4"
25
+ "@smithers-orchestrator/observability": "0.22.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@effect/platform-bun": "^0.89.0",
package/src/jj.js CHANGED
@@ -147,7 +147,11 @@ export function workspaceAdd(name, path, opts = {}) {
147
147
  fs.mkdirSync(parentDir, { recursive: true });
148
148
  }
149
149
  }
150
- catch { }
150
+ catch (error) {
151
+ // Best-effort cleanup: do not abort workspace creation if it fails,
152
+ // but log a warning so cleanup failures are diagnosable rather than silent.
153
+ yield* Effect.logWarning(`jj workspace pre-create cleanup failed at ${path}: ${error instanceof Error ? error.message : String(error)}`);
154
+ }
151
155
  let lastErr = "";
152
156
  for (const args of attempts) {
153
157
  const res = yield* runJj(args, { cwd: opts.cwd });