pushwork 1.1.8 → 1.2.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/ARCHITECTURE-ACCORDING-TO-CLAUDE.md +17 -11
- package/CLAUDE.md +46 -1
- package/README.md +18 -4
- package/dist/cli.js +45 -4
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts +1 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +151 -38
- package/dist/commands.js.map +1 -1
- package/dist/core/change-detection.js +2 -2
- package/dist/core/change-detection.js.map +1 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +3 -0
- package/dist/core/config.js.map +1 -1
- package/dist/core/move-detection.d.ts.map +1 -1
- package/dist/core/move-detection.js +4 -1
- package/dist/core/move-detection.js.map +1 -1
- package/dist/core/sync-engine.d.ts +7 -3
- package/dist/core/sync-engine.d.ts.map +1 -1
- package/dist/core/sync-engine.js +40 -14
- package/dist/core/sync-engine.js.map +1 -1
- package/dist/types/config.d.ts +4 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +2 -1
- package/dist/types/config.js.map +1 -1
- package/dist/utils/content.js +1 -1
- package/dist/utils/content.js.map +1 -1
- package/dist/utils/network-sync.d.ts +1 -2
- package/dist/utils/network-sync.d.ts.map +1 -1
- package/dist/utils/network-sync.js +76 -7
- package/dist/utils/network-sync.js.map +1 -1
- package/dist/utils/output.js +7 -7
- package/dist/utils/output.js.map +1 -1
- package/dist/utils/repo-factory.d.ts +11 -3
- package/dist/utils/repo-factory.d.ts.map +1 -1
- package/dist/utils/repo-factory.js +113 -8
- package/dist/utils/repo-factory.js.map +1 -1
- package/flake.lock +128 -0
- package/flake.nix +66 -0
- package/package.json +6 -6
- package/scripts/roundtrip-test.sh +35 -0
- package/src/cli.ts +53 -6
- package/src/commands.ts +150 -26
- package/src/core/change-detection.ts +2 -2
- package/src/core/config.ts +4 -0
- package/src/core/move-detection.ts +3 -1
- package/src/core/sync-engine.ts +40 -15
- package/src/types/config.ts +4 -0
- package/src/utils/content.ts +1 -1
- package/src/utils/network-sync.ts +92 -8
- package/src/utils/output.ts +7 -7
- package/src/utils/repo-factory.ts +140 -19
- package/test/integration/sub-flag.test.ts +187 -0
- package/test/unit/network-sync-sub.test.ts +144 -0
- package/test/unit/repo-factory.test.ts +111 -0
- package/test/unit/subduction-config.test.ts +69 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> This document was generated by Claude from reading the source code.
|
|
4
4
|
|
|
5
|
-
Pushwork is a CLI tool for bidirectional file synchronization using **Automerge CRDTs**. It maps a local filesystem directory tree to a mirror tree of Automerge documents and syncs them through a WebSocket relay server. Multiple peers can edit the same files and changes merge automatically.
|
|
5
|
+
Pushwork is a CLI tool for bidirectional file synchronization using **Automerge CRDTs**. It maps a local filesystem directory tree to a mirror tree of Automerge documents and syncs them through either a WebSocket relay server (default) or the Subduction backend (opt-in via `--sub`). Multiple peers can edit the same files and changes merge automatically.
|
|
6
6
|
|
|
7
7
|
## Module Diagram
|
|
8
8
|
|
|
@@ -28,9 +28,9 @@ Pushwork is a CLI tool for bidirectional file synchronization using **Automerge
|
|
|
28
28
|
│ defaults < │ │ Automerge │ │ Orchestrates the │
|
|
29
29
|
│ global < │ │ Repo with │ │ entire sync cycle │
|
|
30
30
|
│ local │ │ storage + │ │ │
|
|
31
|
-
└──────────────┘ │ WebSocket
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
└──────────────┘ │ WebSocket or │ │ ┌────────────────┐ │
|
|
32
|
+
│ Subduction │ │ │ChangeDetector │ │
|
|
33
|
+
└──────────────┘ │ │ FS vs snapshot │ │
|
|
34
34
|
│ │ vs remote docs │ │
|
|
35
35
|
│ └────────────────┘ │
|
|
36
36
|
│ ┌────────────────┐ │
|
|
@@ -57,11 +57,16 @@ Pushwork is a CLI tool for bidirectional file synchronization using **Automerge
|
|
|
57
57
|
└─────────────────┘ └────────┬─────────┘ │ Directory() │
|
|
58
58
|
│ └─────────────────┘
|
|
59
59
|
▼
|
|
60
|
-
|
|
61
|
-
│
|
|
62
|
-
│
|
|
63
|
-
│
|
|
64
|
-
|
|
60
|
+
┌───────────────────────────────┐
|
|
61
|
+
│ Sync backend (one of) │
|
|
62
|
+
│ │
|
|
63
|
+
│ • WebSocket relay (default) │
|
|
64
|
+
│ sync3.automerge.org │
|
|
65
|
+
│ │
|
|
66
|
+
│ • Subduction (--sub opt-in) │
|
|
67
|
+
│ subduction.sync │
|
|
68
|
+
│ .inkandswitch.com │
|
|
69
|
+
└───────────────────────────────┘
|
|
65
70
|
```
|
|
66
71
|
|
|
67
72
|
## Source Layout
|
|
@@ -131,7 +136,7 @@ DirectoryDocument (root)
|
|
|
131
136
|
|
|
132
137
|
1. Verifies the `.pushwork/` directory exists
|
|
133
138
|
2. Loads and merges config (defaults < global `~/.pushwork/config.json` < local `.pushwork/config.json`)
|
|
134
|
-
3. Creates an Automerge `Repo` via `createRepo()` — sets up `NodeFSStorageAdapter` for local persistence and
|
|
139
|
+
3. Creates an Automerge `Repo` via `createRepo()` — sets up `NodeFSStorageAdapter` for local persistence, and either a `BrowserWebSocketClientAdapter` (default) or the Subduction backend (`subductionWebsocketEndpoints`, when `config.subduction === true`) for network sync
|
|
135
140
|
4. Instantiates a `SyncEngine` with the repo, working directory, and config
|
|
136
141
|
|
|
137
142
|
Every command (sync, commit, status, diff, ls, etc.) calls `setupCommandContext()`, uses the `SyncEngine`, then calls `safeRepoShutdown()`.
|
|
@@ -240,7 +245,8 @@ your-project/
|
|
|
240
245
|
|---|---|
|
|
241
246
|
| `@automerge/automerge` | Core CRDT engine: splice, changeAt, RawString |
|
|
242
247
|
| `@automerge/automerge-repo` | Repo, DocHandle, document lifecycle management |
|
|
243
|
-
| `@automerge/automerge-repo-network-websocket` | WebSocket transport to relay server |
|
|
248
|
+
| `@automerge/automerge-repo-network-websocket` | WebSocket transport to relay server (default backend) |
|
|
249
|
+
| `@automerge/automerge-subduction` | Subduction Wasm bindings (opt-in backend via `--sub`) |
|
|
244
250
|
| `@automerge/automerge-repo-storage-nodefs` | Local filesystem persistence for Automerge docs |
|
|
245
251
|
| `@commander-js/extra-typings` | CLI command framework |
|
|
246
252
|
| `diff` | Character-level diffing to feed `A.splice()` |
|
package/CLAUDE.md
CHANGED
|
@@ -59,6 +59,7 @@ Every file becomes an Automerge document (`FileDocument`) with content stored as
|
|
|
59
59
|
### Snapshot
|
|
60
60
|
|
|
61
61
|
The snapshot (`.pushwork/snapshot.json`) records:
|
|
62
|
+
|
|
62
63
|
- `rootDirectoryUrl` - the root Automerge document URL
|
|
63
64
|
- `files` - map of relative path -> `{url, head}` for every tracked file
|
|
64
65
|
- `directories` - map of relative path -> `{url, head}` for every tracked directory
|
|
@@ -102,6 +103,7 @@ Old Automerge documents may store text content as `RawString` (aka `ImmutableStr
|
|
|
102
103
|
Stored in `.pushwork/config.json` (local) and `~/.pushwork/config.json` (global). Merged: defaults < global < local.
|
|
103
104
|
|
|
104
105
|
Key fields:
|
|
106
|
+
|
|
105
107
|
- `sync_enabled: boolean` - Whether to do network sync
|
|
106
108
|
- `sync_server: string` - WebSocket relay URL (default: `wss://sync3.automerge.org`)
|
|
107
109
|
- `sync_server_storage_id: StorageId` - Server identity for sync verification
|
|
@@ -129,10 +131,53 @@ Used throughout sync-engine: if heads are available, calls `handle.changeAt(head
|
|
|
129
131
|
## Performance pitfalls
|
|
130
132
|
|
|
131
133
|
- **Avoid splicing large text deletions.** Automerge text CRDTs track every character as an individual op. `A.splice(doc, path, 0, largeString.length)` to clear a large file is O(n) in CRDT ops and very slow. This is why `deleteRemoteFile()` no longer clears content — it just lets the document become orphaned when removed from its parent directory.
|
|
132
|
-
- **Avoid diffing artifact files.** `diffChars()` is O(n
|
|
134
|
+
- **Avoid diffing artifact files.** `diffChars()` is O(n\*m) and pointless for artifact directories since they use RawString (immutable snapshots). Artifact files should always be replaced with a fresh document rather than diffed+spliced. This applies to `updateRemoteFile()`, `applyMoveToRemote()`, and change detection. `ChangeDetector` skips `getContentAtHead()` and `getCurrentRemoteContent()` for artifact paths — it uses a SHA-256 `contentHash` stored in the snapshot to detect local changes, and checks heads to detect remote changes. If neither changed, the artifact is skipped entirely. The `contentHash` field on `SnapshotFileEntry` is optional and only populated for artifact files.
|
|
133
135
|
- **Artifact directories are always nuked.** `batchUpdateDirectory` uses a plain `dirHandle.change()` (not `changeWithOptionalHeads`) for artifact directory paths and rebuilds the entire `docs` array from scratch. This avoids `changeAt` forking from stale heads, which previously caused bugs like deleted entries resurrecting. The rebuild reads the current entries, applies all changes (deletes, updates, additions, subdir URL updates), then splices out the old array and pushes the computed entries.
|
|
134
136
|
- **Sync timeout recovery.** `waitForSync()` returns `{ failed: DocHandle[] }` instead of throwing. When documents fail to sync (timeout or unavailable), `recreateFailedDocuments()` creates new Automerge docs with the same content, updates snapshot entries and parent directory references, then retries once. If documents still fail after recreation, it's reported as an error (not a warning) so the sync shows as "PARTIAL" rather than "SYNCED".
|
|
135
137
|
- **Document availability during clone.** `repo.find()` rejects with "Document X is unavailable" if the sync server doesn't have the document yet. `DocHandle.doc()` is synchronous and throws if the handle isn't ready. For clone scenarios, `sync()` retries `repo.find()` for the root document with exponential backoff (up to 6 attempts). `ChangeDetector.findDocument()` wraps `repo.find()` + `doc()` with retry logic for all document fetches during change detection.
|
|
136
138
|
- **Server load.** `enableRemoteHeadsGossiping` is disabled — pushwork syncs directly with the server so the gossip protocol is unnecessary overhead. `waitForSync` processes documents in batches of 10 (`SYNC_BATCH_SIZE`) to avoid flooding the server with concurrent sync messages. Without batching, syncing 100+ documents simultaneously can overwhelm the sync server (which is single-threaded with no backpressure).
|
|
137
139
|
- **`waitForBidirectionalSync` on large trees.** Full tree traversal (`getAllDocumentHeads`) is expensive because it `repo.find()`s every document. For post-push stabilization, pass the `handles` option to only check documents that actually changed. The initial pre-pull call still needs the full scan to discover remote changes. The dynamic timeout adds the first scan's duration on top of the base timeout, since the first scan is just establishing baseline — its duration shouldn't count against stability-wait time.
|
|
138
140
|
- **Versioned URLs and `repo.find()`.** `repo.find(versionedUrl)` returns a view handle whose `.heads()` returns the VERSION heads, not the current document heads. Always use `getPlainUrl()` when you need the current/mutable state. The snapshot head update loop at the end of `sync()` must use `getPlainUrl(snapshotEntry.url)` — without this, artifact directories (which store versioned URLs) get stale heads written to the snapshot, causing `changeAt()` to fork from the wrong point on the next sync. This was the root cause of the artifact deletion resurrection bug: `batchUpdateDirectory` would `changeAt` from an empty directory state where the file entry didn't exist yet, so the splice found nothing to delete.
|
|
141
|
+
|
|
142
|
+
## Subduction sync backend (`--sub`)
|
|
143
|
+
|
|
144
|
+
The `--sub` flag switches from the default WebSocket sync adapter to the Subduction backend built into `automerge-repo@2.6.0-subduction.14`. The Repo manages a `SubductionSource` internally — pushwork just passes `subductionWebsocketEndpoints` and the Repo handles connection management, sync, and retries.
|
|
145
|
+
|
|
146
|
+
### How it works
|
|
147
|
+
|
|
148
|
+
- `repo-factory.ts`: Initializes Subduction Wasm via ESM dynamic import, then creates Repo. When `sub: true`, passes `subductionWebsocketEndpoints: [syncServer]` and the Repo handles sync cadence internally. When `sub: false`, uses the traditional WebSocket network adapter instead.
|
|
149
|
+
- Default server: `wss://subduction.sync.inkandswitch.com` (vs `wss://sync3.automerge.org` for WebSocket)
|
|
150
|
+
- `network-sync.ts`: When no `StorageId` is provided (Subduction mode), `waitForSync` falls back to head-stability polling (3 consecutive stable checks at 100ms intervals) instead of `getSyncInfo`-based verification
|
|
151
|
+
- `sync-engine.ts`: In sub mode, skips `recreateFailedDocuments` — SubductionSource has its own heal-sync retry logic
|
|
152
|
+
- Everything else (push/pull phases, artifact handling, `nukeAndRebuildDocs`, change detection) is identical
|
|
153
|
+
|
|
154
|
+
### Wasm initialization
|
|
155
|
+
|
|
156
|
+
As of `automerge-repo@2.6.0-subduction.14`, the Repo constructor _always_ creates a `SubductionSource` internally (even without Subduction endpoints), which imports `MemorySigner` and `set_subduction_logger` from `@automerge/automerge-subduction/slim`. The `/slim` entry does NOT auto-init the Wasm — so Wasm must be initialized before _any_ `new Repo()` call, including the default WebSocket path.
|
|
157
|
+
|
|
158
|
+
`automerge-repo` exports `initSubduction()` which dynamically imports `@automerge/automerge-subduction` (the non-`/slim` entry that auto-inits Wasm). Pushwork calls this via `repoMod.initSubduction()` after loading the Repo module — no direct dependency on `@automerge/automerge-subduction` is needed.
|
|
159
|
+
|
|
160
|
+
`repo-factory.ts` uses a `new Function("specifier", "return import(specifier)")` wrapper to perform _real_ ESM `import()` calls that Node.js evaluates as ESM. This is necessary because TypeScript with `"module": "commonjs"` compiles `await import("x")` to `require("x")`, which resolves CJS entries. The CJS and ESM module graphs have separate Wasm instances, so initializing via CJS `require()` doesn't help the ESM `/slim` imports inside `automerge-repo`. The `new Function` trick bypasses tsc's transformation and shares the same ESM module graph as the Repo's internal imports.
|
|
161
|
+
|
|
162
|
+
The Repo class itself is also loaded via this ESM dynamic import (cached after first call) so that `new Repo()` sees the initialized Wasm module.
|
|
163
|
+
|
|
164
|
+
### Packaging notes
|
|
165
|
+
|
|
166
|
+
- `automerge-repo@2.6.0-subduction.14` correctly pins `@automerge/automerge-subduction@0.7.0` — no pnpm override needed (unlike subduction.7 which required an override to fix a version mismatch).
|
|
167
|
+
- `RepoConfig` properly types the Subduction options pushwork uses (`subductionWebsocketEndpoints`, `signer`, `subductionPolicy`, `subductionAdapters`) — no `as any` cast needed.
|
|
168
|
+
- The `automerge-repo-network-websocket` adapter's `NetworkAdapter` types are slightly behind the repo's `NetworkAdapterInterface` (missing `state()` method in declarations). The adapter works at runtime; the type mismatch is worked around with `as unknown as NetworkAdapterInterface`.
|
|
169
|
+
- New `"heal-exhausted"` event on Repo fires when self-healing sync gives up after all retry attempts for a document. Not currently used by pushwork but available for better error reporting.
|
|
170
|
+
|
|
171
|
+
### Subduction mode persistence
|
|
172
|
+
|
|
173
|
+
`--sub` is only accepted on `init` and `clone`. It persists `subduction: true` in `.pushwork/config.json`. All subsequent commands (`sync`, `watch`, etc.) read it from config via `config.subduction ?? false`. The force-defaults path in `setupCommandContext` preserves `subduction` alongside `root_directory_url`.
|
|
174
|
+
|
|
175
|
+
When Subduction mode is active, commands print a banner: "Using Subduction sync backend (from config)".
|
|
176
|
+
|
|
177
|
+
Every `sync` run prints the root Automerge URL at the end.
|
|
178
|
+
|
|
179
|
+
### Corrupt storage recovery
|
|
180
|
+
|
|
181
|
+
`repo-factory.ts` scans `.pushwork/automerge/` for 0-byte files before creating the Repo. These indicate incomplete writes from a previous run (process exited before storage flushed). If any are found, the entire automerge cache is wiped and recreated — data will re-download from the sync server. The snapshot (`.pushwork/snapshot.json`) is preserved so all document URLs are retained.
|
|
182
|
+
|
|
183
|
+
This is a safety net for the Subduction `HydrationError: LooseCommit too short` crash. The upstream fix (`Repo.shutdown()` now calls `flush()` and `SubductionSource.shutdown()` awaits pending writes) prevents the corruption from happening in the first place, but edge cases (SIGKILL, OOM, power loss) can still produce 0-byte files.
|
package/README.md
CHANGED
|
@@ -45,15 +45,15 @@ pushwork url
|
|
|
45
45
|
|
|
46
46
|
**`init [path]`** - Initialize sync in a directory
|
|
47
47
|
|
|
48
|
-
- `--sync-server <url>` - Custom sync server URL
|
|
49
|
-
- `--
|
|
48
|
+
- `--sync-server <url> <storage-id>` - Custom sync server URL and storage ID
|
|
49
|
+
- `--sub` - Use the Subduction sync backend (opt-in, persisted in config)
|
|
50
50
|
- `--debug` - Export performance flame graphs
|
|
51
51
|
|
|
52
52
|
**`clone <url> <path>`** - Clone an existing synced directory
|
|
53
53
|
|
|
54
54
|
- `--force` - Overwrite existing directory
|
|
55
|
-
- `--sync-server <url>` - Custom sync server URL
|
|
56
|
-
- `--
|
|
55
|
+
- `--sync-server <url> <storage-id>` - Custom sync server URL and storage ID
|
|
56
|
+
- `--sub` - Use the Subduction sync backend (opt-in, persisted in config)
|
|
57
57
|
|
|
58
58
|
**`sync [path]`** - Run bidirectional synchronization
|
|
59
59
|
|
|
@@ -124,6 +124,20 @@ Configuration is stored in `.pushwork/config.json`:
|
|
|
124
124
|
}
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
+
### Sync Backends
|
|
128
|
+
|
|
129
|
+
Pushwork supports two sync backends:
|
|
130
|
+
|
|
131
|
+
- **WebSocket (default)** — talks to `wss://sync3.automerge.org` via the
|
|
132
|
+
standard Automerge sync protocol. Uses `sync_server_storage_id` to
|
|
133
|
+
verify delivery via `getSyncInfo`.
|
|
134
|
+
- **Subduction (opt-in)** — pass `--sub` on `init` or `clone` to select
|
|
135
|
+
the Subduction backend (default endpoint:
|
|
136
|
+
`wss://subduction.sync.inkandswitch.com`). The Subduction choice is
|
|
137
|
+
persisted in `.pushwork/config.json` as `"subduction": true`, so
|
|
138
|
+
subsequent `sync` / `watch` commands pick it up automatically.
|
|
139
|
+
`sync_server_storage_id` is not used in this mode.
|
|
140
|
+
|
|
127
141
|
## How It Works
|
|
128
142
|
|
|
129
143
|
Pushwork uses Automerge CRDTs for automatic conflict resolution:
|
package/dist/cli.js
CHANGED
|
@@ -7,24 +7,61 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
const extra_typings_1 = require("@commander-js/extra-typings");
|
|
8
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
9
9
|
const commands_1 = require("./commands");
|
|
10
|
-
const
|
|
10
|
+
const pkg = require("../package.json");
|
|
11
|
+
const version = pkg.version;
|
|
12
|
+
// Resolve dependency versions from installed package.json files. These
|
|
13
|
+
// are the actual runtime versions, which is what users care about when
|
|
14
|
+
// reporting bugs (they may differ from package.json ranges after a
|
|
15
|
+
// `pnpm install` that satisfied a range with a newer patch).
|
|
16
|
+
//
|
|
17
|
+
// Some packages (like @automerge/automerge-repo) have an `exports` field
|
|
18
|
+
// that blocks `require("pkg/package.json")`, so we resolve the package
|
|
19
|
+
// entry point with `require.resolve` and walk up to find package.json.
|
|
20
|
+
function depVersion(pkgName) {
|
|
21
|
+
try {
|
|
22
|
+
const fs = require("fs");
|
|
23
|
+
const path = require("path");
|
|
24
|
+
let dir = path.dirname(require.resolve(pkgName));
|
|
25
|
+
while (dir !== path.dirname(dir)) {
|
|
26
|
+
const candidate = path.join(dir, "package.json");
|
|
27
|
+
if (fs.existsSync(candidate)) {
|
|
28
|
+
const data = JSON.parse(fs.readFileSync(candidate, "utf8"));
|
|
29
|
+
if (data.name === pkgName) {
|
|
30
|
+
return data.version;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
dir = path.dirname(dir);
|
|
34
|
+
}
|
|
35
|
+
return "unknown";
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return "unknown";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const versionString = [
|
|
42
|
+
`pushwork ${version}`,
|
|
43
|
+
` @automerge/automerge ${depVersion("@automerge/automerge")}`,
|
|
44
|
+
` @automerge/automerge-repo ${depVersion("@automerge/automerge-repo")}`,
|
|
45
|
+
` @automerge/automerge-subduction ${depVersion("@automerge/automerge-subduction")}`,
|
|
46
|
+
].join("\n");
|
|
11
47
|
const program = new extra_typings_1.Command()
|
|
12
48
|
.name("pushwork")
|
|
13
49
|
.description("Bidirectional directory synchronization using Automerge CRDTs")
|
|
14
|
-
.version(
|
|
50
|
+
.version(versionString, "-V, --version", "output the version number");
|
|
15
51
|
// Init command
|
|
16
52
|
program
|
|
17
53
|
.command("init")
|
|
18
54
|
.summary("Initialize sync in a directory")
|
|
19
55
|
.argument("[path]", "Directory path to initialize (default: current directory)", ".")
|
|
20
56
|
.option("--sync-server <url> <storage-id...>", "Custom sync server URL and storage ID")
|
|
57
|
+
.option("--sub", "Use Subduction sync backend", false)
|
|
21
58
|
.action(async (path, opts) => {
|
|
22
59
|
const [syncServer, syncServerStorageId] = validateSyncServer(opts.syncServer);
|
|
23
|
-
await (0, commands_1.init)(path, { syncServer, syncServerStorageId });
|
|
60
|
+
await (0, commands_1.init)(path, { syncServer, syncServerStorageId, sub: opts.sub });
|
|
24
61
|
});
|
|
25
62
|
// Track command (set root directory URL without full initialization)
|
|
26
63
|
const trackAction = async (url, path, opts) => {
|
|
27
|
-
await (0, commands_1.root)(url, path, { force: opts.force });
|
|
64
|
+
await (0, commands_1.root)(url, path, { force: opts.force, sub: opts.sub });
|
|
28
65
|
};
|
|
29
66
|
program
|
|
30
67
|
.command("track")
|
|
@@ -32,6 +69,7 @@ program
|
|
|
32
69
|
.argument("<url>", "AutomergeUrl of root directory (format: automerge:XXXXX)")
|
|
33
70
|
.argument("[path]", "Directory path (default: current directory)", ".")
|
|
34
71
|
.option("-f, --force", "Overwrite existing pushwork setup", false)
|
|
72
|
+
.option("--sub", "Use Subduction sync backend", false)
|
|
35
73
|
.action(async (url, path, opts) => {
|
|
36
74
|
await trackAction(url, path, opts);
|
|
37
75
|
});
|
|
@@ -41,6 +79,7 @@ program
|
|
|
41
79
|
.argument("<url>")
|
|
42
80
|
.argument("[path]", "", ".")
|
|
43
81
|
.option("-f, --force", "", false)
|
|
82
|
+
.option("--sub", "", false)
|
|
44
83
|
.action(async (url, path, opts) => {
|
|
45
84
|
await trackAction(url, path, opts);
|
|
46
85
|
});
|
|
@@ -52,6 +91,7 @@ program
|
|
|
52
91
|
.argument("<path>", "Target directory path")
|
|
53
92
|
.option("-f, --force", "Overwrite existing directory", false)
|
|
54
93
|
.option("--sync-server <url> <storage-id...>", "Custom sync server URL and storage ID")
|
|
94
|
+
.option("--sub", "Use Subduction sync backend", false)
|
|
55
95
|
.option("-v, --verbose", "Verbose output", false)
|
|
56
96
|
.action(async (url, path, opts) => {
|
|
57
97
|
const [syncServer, syncServerStorageId] = validateSyncServer(opts.syncServer);
|
|
@@ -60,6 +100,7 @@ program
|
|
|
60
100
|
verbose: opts.verbose,
|
|
61
101
|
syncServer,
|
|
62
102
|
syncServerStorageId,
|
|
103
|
+
sub: opts.sub,
|
|
63
104
|
});
|
|
64
105
|
});
|
|
65
106
|
// Commit command
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","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ions): Prom
|
|
|
53
53
|
*/
|
|
54
54
|
export declare function root(rootUrl: string, targetPath?: string, options?: {
|
|
55
55
|
force?: boolean;
|
|
56
|
+
sub?: boolean;
|
|
56
57
|
}): Promise<void>;
|
|
57
58
|
//# sourceMappingURL=commands.d.ts.map
|
package/dist/commands.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,eAAe,EACf,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EAGZ,cAAc,EACf,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,eAAe,EACf,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EAGZ,cAAc,EACf,MAAM,SAAS,CAAC;AAsMjB;;GAEG;AACH,wBAAsB,IAAI,CACxB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CA4Ef;AAED;;GAEG;AACH,wBAAsB,IAAI,CACxB,UAAU,oBAAM,EAChB,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAwHf;AAED;;GAEG;AACH,wBAAsB,IAAI,CACxB,UAAU,oBAAM,EAChB,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAgGf;AAED;;GAEG;AACH,wBAAsB,MAAM,CAC1B,UAAU,GAAE,MAAY,EACxB,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CA0Ef;AAED;;GAEG;AACH,wBAAsB,GAAG,CACvB,UAAU,oBAAM,EAChB,QAAQ,EAAE,UAAU,GACnB,OAAO,CAAC,IAA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