pushwork 1.0.0 → 1.0.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.
Files changed (58) hide show
  1. package/README.md +23 -21
  2. package/dist/cli/commands.d.ts +6 -0
  3. package/dist/cli/commands.d.ts.map +1 -1
  4. package/dist/cli/commands.js +114 -4
  5. package/dist/cli/commands.js.map +1 -1
  6. package/dist/cli.js +27 -0
  7. package/dist/cli.js.map +1 -1
  8. package/dist/core/change-detection.d.ts.map +1 -1
  9. package/dist/core/change-detection.js +27 -9
  10. package/dist/core/change-detection.js.map +1 -1
  11. package/dist/core/move-detection.d.ts.map +1 -1
  12. package/dist/core/move-detection.js +8 -2
  13. package/dist/core/move-detection.js.map +1 -1
  14. package/dist/core/sync-engine.d.ts +4 -0
  15. package/dist/core/sync-engine.d.ts.map +1 -1
  16. package/dist/core/sync-engine.js +263 -7
  17. package/dist/core/sync-engine.js.map +1 -1
  18. package/dist/types/documents.d.ts +2 -0
  19. package/dist/types/documents.d.ts.map +1 -1
  20. package/dist/types/documents.js.map +1 -1
  21. package/dist/utils/fs.d.ts.map +1 -1
  22. package/dist/utils/fs.js +7 -1
  23. package/dist/utils/fs.js.map +1 -1
  24. package/dist/utils/network-sync.d.ts.map +1 -1
  25. package/dist/utils/network-sync.js +16 -3
  26. package/dist/utils/network-sync.js.map +1 -1
  27. package/package.json +30 -30
  28. package/src/cli/commands.ts +162 -8
  29. package/src/cli.ts +40 -0
  30. package/src/core/change-detection.ts +25 -12
  31. package/src/core/move-detection.ts +8 -2
  32. package/src/core/sync-engine.ts +270 -7
  33. package/src/types/documents.ts +2 -0
  34. package/src/utils/fs.ts +7 -3
  35. package/src/utils/network-sync.ts +19 -3
  36. package/test/integration/clone-test.sh +0 -0
  37. package/test/integration/conflict-resolution-test.sh +0 -0
  38. package/test/integration/debug-both-nested.sh +74 -0
  39. package/test/integration/debug-concurrent-nested.sh +87 -0
  40. package/test/integration/debug-nested.sh +73 -0
  41. package/test/integration/deletion-behavior-test.sh +0 -0
  42. package/test/integration/deletion-sync-test-simple.sh +0 -0
  43. package/test/integration/deletion-sync-test.sh +0 -0
  44. package/test/integration/full-integration-test.sh +0 -0
  45. package/test/integration/fuzzer.test.ts +865 -0
  46. package/test/integration/manual-sync-test.sh +84 -0
  47. package/test/run-tests.sh +0 -0
  48. package/test/unit/sync-convergence.test.ts +493 -0
  49. package/tools/browser-sync/README.md +0 -116
  50. package/tools/browser-sync/package.json +0 -44
  51. package/tools/browser-sync/patchwork.json +0 -1
  52. package/tools/browser-sync/pnpm-lock.yaml +0 -4202
  53. package/tools/browser-sync/src/components/BrowserSyncTool.tsx +0 -599
  54. package/tools/browser-sync/src/index.ts +0 -20
  55. package/tools/browser-sync/src/polyfills.ts +0 -31
  56. package/tools/browser-sync/src/styles.css +0 -290
  57. package/tools/browser-sync/src/types.ts +0 -27
  58. package/tools/browser-sync/vite.config.ts +0 -25
@@ -1,44 +0,0 @@
1
- {
2
- "name": "@pushwork/browser-sync",
3
- "version": "0.1.0",
4
- "description": "Browser folder sync tool for Patchwork",
5
- "type": "module",
6
- "main": "src/index.ts",
7
- "exports": {
8
- ".": "./dist/index.js"
9
- },
10
- "scripts": {
11
- "build": "vite build",
12
- "dev": "vite build --watch",
13
- "push": "pnpm build && patchwork push",
14
- "watch": "nodemon --watch src -e js,tsx,ts,css,json --exec 'pnpm build && pnpm push'"
15
- },
16
- "keywords": [
17
- "patchwork",
18
- "sync",
19
- "filesystem",
20
- "browser",
21
- "automerge"
22
- ],
23
- "author": "Pushwork Team",
24
- "dependencies": {
25
- "@automerge/automerge-repo": "2.0.0-alpha.23",
26
- "@automerge/automerge-repo-react-hooks": "2.0.0-alpha.23",
27
- "@patchwork/sdk": "file:../../../patchwork/sdk",
28
- "react": "^18.3.1",
29
- "react-dom": "^18.3.1",
30
- "pushwork": "file:../../",
31
- "lucide-react": "^0.460.0"
32
- },
33
- "devDependencies": {
34
- "@types/react": "^18.3.3",
35
- "@vitejs/plugin-react": "^4.3.1",
36
- "nodemon": "^3.1.9",
37
- "typescript": "^5.2.0",
38
- "vite": "^5.3.4",
39
- "vite-plugin-css-injected-by-js": "^3.5.2",
40
- "vite-plugin-top-level-await": "^1.4.2",
41
- "vite-plugin-wasm": "^3.3.0"
42
- },
43
- "license": "MIT"
44
- }
@@ -1 +0,0 @@
1
- { "projectFolderUrl": "automerge:new" }