pushwork 1.1.8 → 1.2.2
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 +112 -8
- package/dist/utils/repo-factory.js.map +1 -1
- package/flake.lock +128 -0
- package/flake.nix +66 -0
- package/package.json +98 -96
- 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 +124 -10
- package/test/integration/clone-test.sh +0 -0
- package/test/integration/conflict-resolution-test.sh +0 -0
- package/test/integration/deletion-behavior-test.sh +0 -0
- package/test/integration/deletion-sync-test-simple.sh +0 -0
- package/test/integration/deletion-sync-test.sh +0 -0
- package/test/integration/full-integration-test.sh +0 -0
- package/test/integration/manual-sync-test.sh +0 -0
- package/test/integration/sub-flag.test.ts +187 -0
- package/test/run-tests.sh +0 -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
- package/dist/cli/commands.d.ts +0 -71
- package/dist/cli/commands.d.ts.map +0 -1
- package/dist/cli/commands.js +0 -794
- package/dist/cli/commands.js.map +0 -1
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -19
- package/dist/cli/index.js.map +0 -1
- package/dist/config/index.d.ts +0 -71
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -314
- package/dist/config/index.js.map +0 -1
- package/dist/utils/content-similarity.d.ts +0 -53
- package/dist/utils/content-similarity.d.ts.map +0 -1
- package/dist/utils/content-similarity.js +0 -155
- package/dist/utils/content-similarity.js.map +0 -1
- package/dist/utils/node-polyfills.d.ts +0 -9
- package/dist/utils/node-polyfills.d.ts.map +0 -1
- package/dist/utils/node-polyfills.js +0 -9
- package/dist/utils/node-polyfills.js.map +0 -1
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContentSimilarity = void 0;
|
|
4
|
-
const fs_1 = require("./fs");
|
|
5
|
-
/**
|
|
6
|
-
* Content similarity calculation for move detection
|
|
7
|
-
*/
|
|
8
|
-
class ContentSimilarity {
|
|
9
|
-
/**
|
|
10
|
-
* Calculate similarity between two content pieces
|
|
11
|
-
*/
|
|
12
|
-
static async calculateSimilarity(content1, content2) {
|
|
13
|
-
// Quick early exit for identical content
|
|
14
|
-
if (await this.areIdentical(content1, content2)) {
|
|
15
|
-
return 1.0;
|
|
16
|
-
}
|
|
17
|
-
// Size-based quick rejection
|
|
18
|
-
const size1 = typeof content1 === "string" ? content1.length : content1.length;
|
|
19
|
-
const size2 = typeof content2 === "string" ? content2.length : content2.length;
|
|
20
|
-
const sizeDiff = Math.abs(size1 - size2) / Math.max(size1, size2);
|
|
21
|
-
if (sizeDiff > 0.5) {
|
|
22
|
-
return 0.0; // Too different in size
|
|
23
|
-
}
|
|
24
|
-
// For small files, use full content comparison
|
|
25
|
-
if (size1 < this.CHUNK_SIZE * 4 && size2 < this.CHUNK_SIZE * 4) {
|
|
26
|
-
return this.calculateFullSimilarity(content1, content2);
|
|
27
|
-
}
|
|
28
|
-
// For large files, use sampling
|
|
29
|
-
return this.calculateSampledSimilarity(content1, content2);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if two content pieces are identical
|
|
33
|
-
*/
|
|
34
|
-
static async areIdentical(content1, content2) {
|
|
35
|
-
const hash1 = await (0, fs_1.calculateContentHash)(content1);
|
|
36
|
-
const hash2 = await (0, fs_1.calculateContentHash)(content2);
|
|
37
|
-
return hash1 === hash2;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Calculate similarity for small files using full content
|
|
41
|
-
*/
|
|
42
|
-
static calculateFullSimilarity(content1, content2) {
|
|
43
|
-
const str1 = typeof content1 === "string" ? content1 : this.bufferToString(content1);
|
|
44
|
-
const str2 = typeof content2 === "string" ? content2 : this.bufferToString(content2);
|
|
45
|
-
return this.levenshteinSimilarity(str1, str2);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Calculate similarity for large files using sampling
|
|
49
|
-
*/
|
|
50
|
-
static calculateSampledSimilarity(content1, content2) {
|
|
51
|
-
const samples1 = this.getSamples(content1);
|
|
52
|
-
const samples2 = this.getSamples(content2);
|
|
53
|
-
let totalSimilarity = 0;
|
|
54
|
-
let comparisons = 0;
|
|
55
|
-
for (let i = 0; i < Math.min(samples1.length, samples2.length); i++) {
|
|
56
|
-
totalSimilarity += this.levenshteinSimilarity(samples1[i], samples2[i]);
|
|
57
|
-
comparisons++;
|
|
58
|
-
}
|
|
59
|
-
return comparisons > 0 ? totalSimilarity / comparisons : 0;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Get representative samples from content
|
|
63
|
-
*/
|
|
64
|
-
static getSamples(content) {
|
|
65
|
-
const str = typeof content === "string" ? content : this.bufferToString(content);
|
|
66
|
-
const length = str.length;
|
|
67
|
-
const samples = [];
|
|
68
|
-
if (length <= this.CHUNK_SIZE) {
|
|
69
|
-
samples.push(str);
|
|
70
|
-
return samples;
|
|
71
|
-
}
|
|
72
|
-
// Beginning
|
|
73
|
-
samples.push(str.slice(0, this.CHUNK_SIZE));
|
|
74
|
-
// Middle
|
|
75
|
-
const midStart = Math.floor(length / 2) - Math.floor(this.CHUNK_SIZE / 2);
|
|
76
|
-
samples.push(str.slice(midStart, midStart + this.CHUNK_SIZE));
|
|
77
|
-
// End
|
|
78
|
-
samples.push(str.slice(-this.CHUNK_SIZE));
|
|
79
|
-
return samples;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Calculate Levenshtein similarity (0-1 scale)
|
|
83
|
-
*/
|
|
84
|
-
static levenshteinSimilarity(str1, str2) {
|
|
85
|
-
if (str1 === str2)
|
|
86
|
-
return 1.0;
|
|
87
|
-
if (str1.length === 0 || str2.length === 0)
|
|
88
|
-
return 0.0;
|
|
89
|
-
const distance = this.levenshteinDistance(str1, str2);
|
|
90
|
-
const maxLength = Math.max(str1.length, str2.length);
|
|
91
|
-
return 1 - distance / maxLength;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Calculate Levenshtein distance
|
|
95
|
-
*/
|
|
96
|
-
static levenshteinDistance(str1, str2) {
|
|
97
|
-
const matrix = Array(str2.length + 1)
|
|
98
|
-
.fill(null)
|
|
99
|
-
.map(() => Array(str1.length + 1).fill(null));
|
|
100
|
-
for (let i = 0; i <= str1.length; i++)
|
|
101
|
-
matrix[0][i] = i;
|
|
102
|
-
for (let j = 0; j <= str2.length; j++)
|
|
103
|
-
matrix[j][0] = j;
|
|
104
|
-
for (let j = 1; j <= str2.length; j++) {
|
|
105
|
-
for (let i = 1; i <= str1.length; i++) {
|
|
106
|
-
const indicator = str1[i - 1] === str2[j - 1] ? 0 : 1;
|
|
107
|
-
matrix[j][i] = Math.min(matrix[j][i - 1] + 1, // deletion
|
|
108
|
-
matrix[j - 1][i] + 1, // insertion
|
|
109
|
-
matrix[j - 1][i - 1] + indicator // substitution
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return matrix[str2.length][str1.length];
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Convert buffer to string for comparison
|
|
117
|
-
*/
|
|
118
|
-
static bufferToString(buffer) {
|
|
119
|
-
// For binary content, use hex representation for comparison
|
|
120
|
-
return Array.from(buffer)
|
|
121
|
-
.map((b) => b.toString(16).padStart(2, "0"))
|
|
122
|
-
.join("");
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Determine confidence level based on similarity score
|
|
126
|
-
*/
|
|
127
|
-
static getConfidenceLevel(similarity) {
|
|
128
|
-
if (similarity >= this.AUTO_THRESHOLD) {
|
|
129
|
-
return "auto";
|
|
130
|
-
}
|
|
131
|
-
else if (similarity >= this.PROMPT_THRESHOLD) {
|
|
132
|
-
return "prompt";
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
return "low";
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Should auto-apply move based on similarity
|
|
140
|
-
*/
|
|
141
|
-
static shouldAutoApply(similarity) {
|
|
142
|
-
return similarity >= this.AUTO_THRESHOLD;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Should prompt user for move confirmation
|
|
146
|
-
*/
|
|
147
|
-
static shouldPromptUser(similarity) {
|
|
148
|
-
return (similarity >= this.PROMPT_THRESHOLD && similarity < this.AUTO_THRESHOLD);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
exports.ContentSimilarity = ContentSimilarity;
|
|
152
|
-
ContentSimilarity.CHUNK_SIZE = 1024; // 1KB chunks for sampling
|
|
153
|
-
ContentSimilarity.AUTO_THRESHOLD = 0.8;
|
|
154
|
-
ContentSimilarity.PROMPT_THRESHOLD = 0.5;
|
|
155
|
-
//# sourceMappingURL=content-similarity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-similarity.js","sourceRoot":"","sources":["../../src/utils/content-similarity.ts"],"names":[],"mappings":";;;AAAA,6BAA4C;AAE5C;;GAEG;AACH,MAAa,iBAAiB;IAK5B;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAC9B,QAA6B,EAC7B,QAA6B;QAE7B,yCAAyC;QACzC,IAAI,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;YAChD,OAAO,GAAG,CAAC;QACb,CAAC;QAED,6BAA6B;QAC7B,MAAM,KAAK,GACT,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QACnE,MAAM,KAAK,GACT,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QACnE,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,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C,CAAC;IACd,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,UAAkB;QAC1C,IAAI,UAAU,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACtC,OAAO,MAAM,CAAC;QAChB,CAAC;aAAM,IAAI,UAAU,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC/C,OAAO,QAAQ,CAAC;QAClB,CAAC;aAAM,CAAC;YACN,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,UAAkB;QACvC,OAAO,UAAU,IAAI,IAAI,CAAC,cAAc,CAAC;IAC3C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,UAAkB;QACxC,OAAO,CACL,UAAU,IAAI,IAAI,CAAC,gBAAgB,IAAI,UAAU,GAAG,IAAI,CAAC,cAAc,CACxE,CAAC;IACJ,CAAC;;AA3LH,8CA4LC;AA3LyB,4BAAU,GAAG,IAAI,CAAC,CAAC,0BAA0B;AAC7C,gCAAc,GAAG,GAAG,CAAC;AACrB,kCAAgB,GAAG,GAAG,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Polyfills for browser APIs required by @automerge/automerge-subduction.
|
|
3
|
-
* Must be imported before any subduction code.
|
|
4
|
-
*
|
|
5
|
-
* The Subduction WASM module uses IndexedDB for key persistence
|
|
6
|
-
* (via WebCryptoSigner). In Node.js we provide a fake-indexeddb polyfill.
|
|
7
|
-
*/
|
|
8
|
-
import "fake-indexeddb/auto";
|
|
9
|
-
//# sourceMappingURL=node-polyfills.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-polyfills.d.ts","sourceRoot":"","sources":["../../src/utils/node-polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,qBAAqB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Polyfills for browser APIs required by @automerge/automerge-subduction.
|
|
3
|
-
* Must be imported before any subduction code.
|
|
4
|
-
*
|
|
5
|
-
* The Subduction WASM module uses IndexedDB for key persistence
|
|
6
|
-
* (via WebCryptoSigner). In Node.js we provide a fake-indexeddb polyfill.
|
|
7
|
-
*/
|
|
8
|
-
import "fake-indexeddb/auto";
|
|
9
|
-
//# sourceMappingURL=node-polyfills.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-polyfills.js","sourceRoot":"","sources":["../../src/utils/node-polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,qBAAqB,CAAC"}
|