@augmentd-labs/canvas-edge 0.6.2 → 0.6.3

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 CHANGED
@@ -76,6 +76,11 @@ mirrors.json). `CANVAS_DIRECTION=pull` makes the container a backup target
76
76
  Protocol: canvas-server `docs/canvas-edge-protocol.md` (tunnel) and
77
77
  `docs/sync-protocol.md` (file plane).
78
78
 
79
+ New mirrors default to `rename` conflict handling: the hub version keeps its
80
+ name and the device version gets a conflict-copy name. Set `CANVAS_CONFLICTS=prompt`
81
+ for the hub conflict inbox instead. Existing `mirrors.json` conflict policies
82
+ are preserved unless explicitly overridden.
83
+
79
84
  ### Client certificates (0.5.0+)
80
85
 
81
86
  Hub remotes retain `tls: { certFile, keyFile }` from the shared client config.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augmentd-labs/canvas-edge",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Canvas device runtime: folder mirrors (canvas-stored Mirror engine) + edge tunnel client (dist artifact)",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "type": "module",
@@ -47,6 +47,6 @@
47
47
  "bundleDependencies": [
48
48
  "canvas-stored"
49
49
  ],
50
- "canvasRev": "52fc07d",
50
+ "canvasRev": "107b933",
51
51
  "canvasSource": "runtimes/edge"
52
52
  }
package/src/env.js CHANGED
@@ -99,7 +99,7 @@ export function ensureEnvConfig(env = process.env) {
99
99
  mountpoint: path.resolve(env.CANVAS_MIRROR_PATH ? String(env.CANVAS_MIRROR_PATH) : (existing.mountpoint || '/data')),
100
100
  pins: env.CANVAS_PINS != null ? list(env.CANVAS_PINS) : (existing.pins || []),
101
101
  ignore: env.CANVAS_IGNORE != null ? list(env.CANVAS_IGNORE) : (existing.ignore || []),
102
- conflicts: oneOf(env.CANVAS_CONFLICTS, ['prompt', 'rename'], existing.conflicts || 'prompt'),
102
+ conflicts: oneOf(env.CANVAS_CONFLICTS, ['prompt', 'rename'], existing.conflicts || 'rename'),
103
103
  deletes: oneOf(env.CANVAS_DELETES, ['propagate', 'keep'], existing.deletes || 'propagate'),
104
104
  direction: oneOf(env.CANVAS_DIRECTION, ['bi', 'pull', 'push'], existing.direction || 'bi'),
105
105
  client: 'daemon',
@@ -98,7 +98,7 @@ export class MirrorRuntime {
98
98
  this.#engine = new Mirror(this.#stored, {
99
99
  id: this.#mirror.id, local: 'local', remote: 'canvas:hub', trash: 'trash', conflicts: 'conflicts',
100
100
  prefixes: this.#mirror.pins || [], ignore: this.#mirror.ignore || [],
101
- deletes: this.#mirror.deletes || 'propagate', conflictMode: this.#mirror.conflicts || 'prompt',
101
+ deletes: this.#mirror.deletes || 'propagate', conflictMode: this.#mirror.conflicts || 'rename',
102
102
  direction: this.#mirror.direction || 'bi',
103
103
  deviceId: this.#identity.deviceId, deviceName: this.#identity.deviceName,
104
104
  });