Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
242 lines (242 loc) · 12.4 KB
/
Copy pathpackage.json
File metadata and controls
242 lines (242 loc) · 12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
{
"name": "@git-stunts/git-warp",
"version": "20.0.0",
"description": "Git-native causal history runtime for intent writes, timeline reads, and receipts.",
"type": "module",
"license": "Apache-2.0",
"author": "James Ross <james@flyingrobots.dev>",
"repository": {
"type": "git",
"url": "git+https://github.com/git-stunts/git-warp.git"
},
"homepage": "https://github.com/git-stunts/git-warp#readme",
"bugs": {
"url": "https://github.com/git-stunts/git-warp/issues"
},
"engines": {
"node": ">=22.0.0"
},
"sideEffects": false,
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"git-warp": "./bin/git-warp",
"git-warp-v18-to-v19": "./dist/scripts/v18-to-v19/migrate.js",
"git-warp-v20-to-v21": "./dist/scripts/v20-to-v21/migrate.js"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./advanced": {
"types": "./dist/advanced.d.ts",
"import": "./dist/advanced.js",
"default": "./dist/advanced.js"
},
"./diagnostics": {
"types": "./dist/diagnostics.d.ts",
"import": "./dist/diagnostics.js",
"default": "./dist/diagnostics.js"
},
"./charts": {
"types": "./dist/charts.d.ts",
"import": "./dist/charts.js",
"default": "./dist/charts.js"
},
"./testing": {
"types": "./dist/testing.d.ts",
"import": "./dist/testing.js",
"default": "./dist/testing.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/index.js",
"dist/index.d.ts",
"dist/advanced.js",
"dist/advanced.d.ts",
"dist/diagnostics.js",
"dist/diagnostics.d.ts",
"dist/charts.js",
"dist/charts.d.ts",
"dist/testing.js",
"dist/testing.d.ts",
"dist/src",
"dist/bin/**/*.js",
"dist/scripts/formatFailure.js",
"dist/scripts/upgrade-v16-to-v17.js",
"dist/scripts/migrations/v17.0.0/**/*.js",
"dist/scripts/v18-to-v19/*.js",
"dist/scripts/v18-to-v19/adapters/**/*.js",
"dist/scripts/v20-to-v21/*.js",
"bin/git-warp",
"docs/migrations/v19/README.md",
"docs/migrations/v21/README.md",
"docs/READINGS_AND_OPTICS.md",
"README.md",
"LICENSE",
"NOTICE",
"scripts/hooks/post-merge.sh",
"scripts/install-git-warp.sh",
"scripts/uninstall-git-warp.sh"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"audit:locked": "npm audit --audit-level=low",
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.publish.json --declaration false --removeComments && tsc -p tsconfig.publish.json --emitDeclarationOnly && node --input-type=module -e \"import prune from './scripts/package-payload/PrunePrivateDeclarations.ts'; prune('dist'); await (await import('./scripts/package-payload/PrunePrivateJavaScript.ts')).default('.');\"",
"build:maintainer": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.maintainer.json",
"generate:vocabulary-ir": "node scripts/GenerateV19VocabularyIr.ts",
"check:vocabulary-ir": "node scripts/GenerateV19VocabularyIr.ts --check",
"generate:capabilities": "node scripts/GenerateV19CapabilityContract.ts",
"check:capabilities": "node scripts/GenerateV19CapabilityContract.ts --check",
"check:package-payload": "node scripts/package-payload/CheckPackagePayload.ts",
"generate:sdk-fixture": "node scripts/generated-sdk/GenerateUsersSdkFixture.ts",
"check:sdk-fixture": "node scripts/generated-sdk/GenerateUsersSdkFixture.ts --check",
"lint": "sh -c 'eslint . \"$@\" && npm run lint:test-law && npm run lint:source-size && npm run lint:source-reachability && npm run lint:cas-invariants && npm run lint:machine-paths && npm run lint:determinism' --",
"lint:ratchet": "sh scripts/lint-ratchet.sh",
"lint:md": "markdownlint \"**/*.md\" --ignore node_modules --ignore \"**/node_modules/**\" && npm run lint:mermaid",
"lint:mermaid": "node scripts/validate-mermaid.ts",
"lint:md:code": "node scripts/lint-markdown-code-samples.ts",
"lint:docs-topology": "bash scripts/check-docs-topology.sh && npm run lint:source-backed-reference",
"lint:links": "lychee --config .lychee.toml --include-fragments '**/*.md'",
"lint:semgrep": "node scripts/lint-semgrep-with-quarantines.ts",
"lint:sludge": "bash scripts/check-anti-sludge.sh",
"lint:test-law": "node scripts/lint-test-vacuous-returns.ts",
"lint:cas-invariants": "node scripts/check-storage-ownership.ts",
"lint:determinism": "node scripts/ban-nondeterminism.ts",
"lint:source-size": "node scripts/source-size-gate.ts",
"lint:source-reachability": "node scripts/source-reachability/check-source-reachability.ts",
"lint:source-backed-reference": "node scripts/check-source-backed-reference.ts",
"lint:source-version-names": "node scripts/source-version-name-policy.ts",
"lint:machine-paths": "node scripts/check-machine-local-paths.ts",
"lint:contamination": "node scripts/contamination-map.ts",
"lint:quarantine-graduate": "node scripts/quarantine-graduate-check.ts",
"format": "prettier --write .",
"test": "bash scripts/run-in-docker.sh node scripts/run-stable-unit-tests.ts",
"test:local": "bash scripts/run-in-docker.sh sh -c 'node scripts/run-stable-unit-tests.ts \"$@\"' --",
"test:local:raw": "bash scripts/run-in-docker.sh sh -c 'vitest run test/unit \"$@\"' --",
"test:watch": "bash scripts/watch-in-docker.sh",
"test:coverage": "bash scripts/run-in-docker.sh --coverage-ratchet -- node scripts/RunCoverageTests.ts ratchet",
"test:coverage:ci": "bash scripts/run-in-docker.sh --export-directory coverage -- node scripts/RunCoverageTests.ts report",
"test:v19-acceptance": "bash scripts/run-in-docker.sh sh -c 'node scripts/RunV19AcceptanceGates.ts \"$@\"' --",
"test:sdk-fixture": "bash scripts/run-in-docker.sh sh -c 'bash scripts/smoke-generated-sdk.sh \"$@\"' --",
"benchmark": "bash scripts/run-in-docker.sh vitest bench --run test/benchmark",
"benchmark:local": "bash scripts/run-in-docker.sh sh -c 'vitest bench --run test/benchmark \"$@\"' --",
"benchmark:merge-conflicts": "bash scripts/run-in-docker.sh sh -c 'vitest run test/benchmark/MergeConflictCorpus.benchmark.ts \"$@\"' --",
"benchmark:detached-reads": "bash scripts/run-in-docker.sh sh -c 'vitest run test/benchmark/DetachedReadBoundary.benchmark.ts \"$@\"' --",
"benchmark:cone-showcase": "bash scripts/run-in-docker.sh node benchmarks/cone-showcase/ConeShowcaseWitness.ts",
"benchmark:trie-geometry": "bash scripts/run-in-docker.sh sh -c 'GIT_WARP_PROFILE=1 vitest run test/unit/benchmark/TrieGeometryProfile.profile.test.ts \"$@\"' --",
"performance:measure": "bash scripts/RunDockerPerformance.sh measure",
"performance:compare": "bash scripts/RunDockerPerformance.sh compare",
"performance:gate": "bash scripts/RunDockerPerformance.sh gate",
"performance:streaming": "bash scripts/RunDockerPerformance.sh streaming",
"performance:migrated-read": "bash scripts/RunDockerPerformance.sh migrated-read",
"migrate:v18-to-v19": "npm run build --silent && node dist/scripts/v18-to-v19/migrate.js",
"migrate:v20-to-v21": "npm run build --silent && node dist/scripts/v20-to-v21/migrate.js",
"setup:hooks": "node scripts/setup-hooks.ts",
"prepare": "node --input-type=module -e \"const result = new (await import('./scripts/TrailerCodecDeclarationInstaller.ts')).default('.').install(); if (result.status === 'refused') throw new Error(result.reason);\" && node scripts/setup-hooks.ts",
"prepack": "npm run build && npm run lint && npm run test:local && npm run typecheck:consumer && npm run check:package-payload",
"release:guard": "bash scripts/release-guard.sh",
"release:prep": "bash scripts/release-preflight.sh --stage prep-pr",
"release:preflight": "bash scripts/release-preflight.sh --stage final-local",
"issue:triage": "node scripts/issue-triage-report.ts",
"jsr:publish": "bash scripts/run-jsr-publish.sh",
"issue:dead-exports": "node scripts/dead-export-report.ts",
"upgrade": "node dist/scripts/upgrade-v16-to-v17.js",
"install:git-warp": "bash scripts/install-git-warp.sh",
"uninstall:git-warp": "bash scripts/uninstall-git-warp.sh",
"test:node22": "docker compose -f docker/docker-compose.test.yml --profile node22 run --build --rm test-node22",
"test:integration:ci": "bash scripts/run-in-docker.sh sh -c 'vitest run test/integration --exclude test/integration/api/content-attachment.test.ts --maxWorkers=2 && vitest run test/integration/api/content-attachment.test.ts --maxWorkers=1 \"$@\"' --",
"test:integration:shard": "bash scripts/run-in-docker.sh sh -c 'vitest run test/integration --exclude test/integration/api/content-attachment.test.ts --exclude test/integration/application/WriterFrontierConvergence.integration.test.ts --maxWorkers=2 \"$@\"' --",
"test:integration:convergence": "bash scripts/run-in-docker.sh sh -c 'vitest run test/integration/application/WriterFrontierConvergence.integration.test.ts \"$@\"' --",
"test:integration:attachment-bats": "bash scripts/run-in-docker.sh sh -c 'vitest run test/contract/NeighborProviderPort.contract.test.ts && vitest run test/integration/api/content-attachment.test.ts --maxWorkers=1 && bats test/bats/ \"$@\"' --",
"test:node22:ci": "bash scripts/run-in-docker.sh sh -c 'sh -c '\"'\"'npm run test:local && npm run test:integration:ci && bats test/bats/'\"'\"' \"$@\"' --",
"test:bun": "docker compose -f docker/docker-compose.test.yml --profile bun run --build --rm test-bun",
"test:deno:smoke": "docker compose -f docker/docker-compose.test.yml --profile deno run --build --rm test-deno bash scripts/smoke-deno-packed.sh",
"test:deno": "docker compose -f docker/docker-compose.test.yml --profile deno run --build --rm test-deno",
"test:matrix": "docker compose -f docker/docker-compose.test.yml --profile full up --build --abort-on-container-exit",
"typecheck": "tsc --noEmit -p tsconfig.src.json && tsc --noEmit -p tsconfig.test.json",
"typecheck:src": "tsc --noEmit -p tsconfig.src.json",
"typecheck:test": "tsc --noEmit -p tsconfig.test.json",
"typecheck:consumer": "tsc --noEmit -p test/type-check/tsconfig.json",
"typecheck:policy": "node scripts/ts-policy-check.ts",
"typecheck:surface": "npm run build --silent && node scripts/check-dts-surface.ts",
"ratchet:snapshot": "bash scripts/run-in-docker.sh --snapshot -- sh -c 'node scripts/ratchet-snapshot.ts \"$@\"' --",
"ratchet:delta": "node scripts/ratchet-delta.ts",
"test:attachment-memory": "bash scripts/RunAttachmentMemoryWitness.sh",
"test:selection-memory": "bash scripts/RunSelectionMemoryWitness.sh"
},
"dependencies": {
"@flyingrobots/bijou": "^7.2.0",
"@flyingrobots/bijou-node": "^7.2.0",
"@flyingrobots/bijou-tui": "^7.2.0",
"@git-stunts/alfred": "^0.10.4",
"@git-stunts/git-cas": "8.0.0-rc.1",
"@git-stunts/plumbing": "4.0.0-rc.1",
"@git-stunts/trailer-codec": "^2.1.1",
"@noble/hashes": "^2.2.0",
"cbor-x": "^1.6.0",
"roaring-wasm": "^1.1.0",
"zod": "^4.6.7"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@git-stunts/docker-guard": "^0.1.0",
"@mermaid-js/mermaid-cli": "^11.16.0",
"@puppeteer/browsers": "3.2.6",
"@types/node": "^22.15.29",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vercel/nft": "1.11.0",
"@vitest/coverage-v8": "^4.1.12",
"eslint": "^10.14.0",
"eslint-plugin-jsdoc": "^62.8.1",
"fast-check": "^4.5.3",
"jiti": "^2.6.1",
"jsr": "0.14.3",
"markdownlint-cli": "^0.49.0",
"prettier": "^3.4.2",
"puppeteer": "25.16.0",
"semver": "7.7.4",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1",
"vitest": "^4.1.12",
"yaml": "^2.9.0"
},
"overrides": {
"eslint": { "minimatch": "11.0.10" },
"@eslint/config-array": { "minimatch": "11.0.10" },
"@typescript-eslint/typescript-estree": { "minimatch": "11.0.10" },
"@vercel/nft": { "glob": "14.0.7" },
"@mapbox/node-pre-gyp": { "tar": "8.0.4" },
"markdownlint-cli": {
"minimatch": "11.0.10",
"js-yaml": "5.4.2",
"smol-toml": "1.9.0"
},
"katex": "0.18.2"
},
"keywords": [
"git",
"git-stunts",
"warp",
"local-first",
"crdt",
"dag",
"merkle",
"commit-graph",
"content-addressable",
"hexagonal",
"ddd",
"invisible-storage",
"empty-tree"
],
"packageManager": "npm@10",
"workspaces": [
"packages/*"
]
}