dsh-context-compression-improved 0.8.0 → 0.9.0

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 (171) hide show
  1. package/.gitattributes +2 -2
  2. package/.githooks/pre-push +37 -37
  3. package/.github/workflows/ci.yml +39 -39
  4. package/CHANGELOG.de.md +41 -0
  5. package/CHANGELOG.es.md +41 -0
  6. package/CHANGELOG.fr.md +42 -0
  7. package/CHANGELOG.it.md +41 -0
  8. package/CHANGELOG.ja.md +35 -0
  9. package/CHANGELOG.ko.md +34 -0
  10. package/CHANGELOG.md +40 -0
  11. package/CHANGELOG.ru.md +37 -0
  12. package/CHANGELOG.zh.md +32 -0
  13. package/CONTRIBUTING.md +22 -22
  14. package/LICENSE +21 -21
  15. package/README.de.md +7 -9
  16. package/README.es.md +7 -9
  17. package/README.fr.md +7 -9
  18. package/README.it.md +7 -9
  19. package/README.ja.md +6 -2
  20. package/README.ko.md +6 -2
  21. package/README.md +96 -98
  22. package/README.ru.md +7 -9
  23. package/README.zh.md +89 -85
  24. package/SECURITY.md +18 -18
  25. package/THIRD_PARTY_NOTICES.md +14 -14
  26. package/docs/compat-0.1.5-report.md +77 -77
  27. package/docs/installation.de.md +5 -5
  28. package/docs/installation.es.md +5 -5
  29. package/docs/installation.fr.md +5 -5
  30. package/docs/installation.it.md +5 -5
  31. package/docs/installation.ja.md +5 -5
  32. package/docs/installation.ko.md +5 -5
  33. package/docs/installation.md +5 -5
  34. package/docs/installation.ru.md +5 -5
  35. package/docs/installation.zh.md +5 -5
  36. package/docs/repair-log.md +657 -657
  37. package/package.json +23 -22
  38. package/packages/selector/LICENSE +21 -21
  39. package/packages/selector/README.md +26 -26
  40. package/packages/selector/README.zh.md +24 -24
  41. package/packages/selector/THIRD_PARTY_NOTICES.md +32 -32
  42. package/packages/selector/cordis.patch.yml +27 -27
  43. package/packages/selector/docs/history-tool-call-working-set-spec.md +112 -112
  44. package/packages/selector/docs/native-tool-result-selector-spec.md +34 -34
  45. package/packages/selector/docs/subagent-cache-reuse-spec.md +46 -46
  46. package/packages/selector/dsh.plugin.json +16 -16
  47. package/packages/selector/lib/client.js +178 -21
  48. package/packages/selector/lib/host-generation.js +62 -0
  49. package/packages/selector/lib/index.js +208 -1
  50. package/packages/selector/lib/invariant.js +1 -1
  51. package/packages/selector/lib/pruner.js +41 -43
  52. package/packages/selector/lib/style.css +53 -53
  53. package/packages/selector/lib/tail-trim.js +73 -4
  54. package/packages/selector/package.json +80 -21
  55. package/packages/selector/screenshots.json +3 -3
  56. package/packages/selector/src/client/CustomPolicyEditor.tsx +216 -216
  57. package/packages/selector/src/client/EstimatorControls.tsx +277 -277
  58. package/packages/selector/src/client/bridge-scope.ts +125 -0
  59. package/packages/selector/src/client/index.ts +109 -31
  60. package/packages/selector/src/client/monitor-fab.ts +0 -2
  61. package/packages/selector/src/client/preset-options.ts +88 -88
  62. package/packages/selector/src/client/scope-face.ts +24 -24
  63. package/packages/selector/src/compat/host-generation.ts +96 -0
  64. package/packages/selector/src/compat/settings-lease.ts +108 -0
  65. package/packages/selector/src/compat/tool-result.ts +91 -0
  66. package/packages/selector/src/css-modules.d.ts +6 -6
  67. package/packages/selector/src/deepseek-v4-tokenizer.ts +205 -205
  68. package/packages/selector/src/estimator-catalog.ts +104 -104
  69. package/packages/selector/src/index.ts +8 -0
  70. package/packages/selector/src/invariant.ts +113 -113
  71. package/packages/selector/src/preset-overlay.ts +626 -626
  72. package/packages/selector/src/pruner/content.ts +198 -198
  73. package/packages/selector/src/pruner/session.ts +97 -96
  74. package/packages/selector/src/pruner/tuning.ts +23 -23
  75. package/packages/selector/src/pruner/types.ts +78 -78
  76. package/packages/selector/src/pruner.ts +45 -40
  77. package/packages/selector/src/runtime/adaptive-cost.ts +205 -205
  78. package/packages/selector/src/runtime/custom-policy.ts +278 -278
  79. package/packages/selector/src/runtime/deepseek-official-pricing.ts +298 -298
  80. package/packages/selector/src/runtime/deepseek-v4-vision-tokens.ts +254 -254
  81. package/packages/selector/src/runtime/measurement.ts +431 -431
  82. package/packages/selector/src/runtime/reducers.ts +1674 -1674
  83. package/packages/selector/src/runtime/retrieve.ts +7 -3
  84. package/packages/selector/src/runtime/session-events.ts +30 -30
  85. package/packages/selector/src/runtime/tail-trim.ts +175 -165
  86. package/packages/selector/src/runtime/token-count.ts +72 -72
  87. package/packages/selector/src/runtime/tokenpilot/advisor.ts +419 -419
  88. package/packages/selector/src/runtime/tokenpilot/benefit.ts +200 -200
  89. package/packages/selector/src/runtime/tokenpilot/dedup.ts +81 -81
  90. package/packages/selector/src/runtime/tokenpilot/estimator.ts +151 -151
  91. package/packages/selector/src/runtime/tokenpilot/locator.ts +128 -128
  92. package/packages/selector/src/runtime/tokenpilot/read-state.ts +98 -98
  93. package/packages/selector/src/runtime/tokenpilot/sidechannel.ts +303 -303
  94. package/packages/selector/src/runtime/toolclass.ts +103 -103
  95. package/packages/selector/src/runtime/value.ts +48 -48
  96. package/packages/selector/src/settings-bridge.ts +175 -0
  97. package/packages/selector/tests/advisor-report.host.spec.ts +223 -223
  98. package/packages/selector/tests/built/client-artifact.spec.ts +6 -9
  99. package/packages/selector/tests/cache-prefix-audit.spec.ts +123 -123
  100. package/packages/selector/tests/code-skeleton.client.spec.ts +98 -94
  101. package/packages/selector/tests/compat/compat-narrow-waist.spec.ts +150 -0
  102. package/packages/selector/tests/custom-contract.client.spec.ts +226 -223
  103. package/packages/selector/tests/estimator-catalog.spec.ts +70 -70
  104. package/packages/selector/tests/estimator-route-registration.host.spec.ts +199 -194
  105. package/packages/selector/tests/helpers/legacy-namespace.ts +35 -35
  106. package/packages/selector/tests/helpers/legacy-settings/index.ts +15 -15
  107. package/packages/selector/tests/helpers/legacy-settings/legacy/provider.d.ts +41 -41
  108. package/packages/selector/tests/helpers/legacy-settings/legacy/provider.js +647 -647
  109. package/packages/selector/tests/helpers/legacy-settings/legacy/redact.js +78 -78
  110. package/packages/selector/tests/helpers/legacy-settings/legacy/util-values.js +234 -234
  111. package/packages/selector/tests/host-preset-overlay.host.spec.ts +204 -204
  112. package/packages/selector/tests/preset-options-write.client.spec.ts +192 -188
  113. package/packages/selector/tests/preset-overlay-loader.e2e.host.spec.ts +200 -200
  114. package/packages/selector/tests/preset-overlay.host.spec.ts +246 -246
  115. package/packages/selector/tests/public/package-contract.client.spec.ts +11 -3
  116. package/packages/selector/tests/runtime/adaptive-cost.spec.ts +167 -167
  117. package/packages/selector/tests/runtime/advice-never-withholds.host.spec.ts +230 -230
  118. package/packages/selector/tests/runtime/advisor-invariant.spec.ts +272 -272
  119. package/packages/selector/tests/runtime/advisor.spec.ts +226 -226
  120. package/packages/selector/tests/runtime/auto-compact-config.spec.ts +523 -523
  121. package/packages/selector/tests/runtime/char-basis.spec.ts +30 -30
  122. package/packages/selector/tests/runtime/code-skeleton.spec.ts +152 -152
  123. package/packages/selector/tests/runtime/deepseek-official-pricing.spec.ts +186 -186
  124. package/packages/selector/tests/runtime/deepseek-v4-tokenizer.spec.ts +122 -122
  125. package/packages/selector/tests/runtime/deepseek-v4-vision-tokens.spec.ts +122 -122
  126. package/packages/selector/tests/runtime/deprecated-preset-options.spec.ts +96 -96
  127. package/packages/selector/tests/runtime/fixtures/profile-baseline.json +273 -273
  128. package/packages/selector/tests/runtime/fixtures/tokenizer-golden.json +106 -106
  129. package/packages/selector/tests/runtime/fixtures/vision-golden.json +459 -459
  130. package/packages/selector/tests/runtime/frequency-longstrings.spec.ts +74 -74
  131. package/packages/selector/tests/runtime/html-reducer.spec.ts +212 -212
  132. package/packages/selector/tests/runtime/line-mapping.spec.ts +153 -153
  133. package/packages/selector/tests/runtime/prose-reducers.spec.ts +133 -133
  134. package/packages/selector/tests/runtime/public/public-runtime.spec.ts +3 -3
  135. package/packages/selector/tests/runtime/read-input-cap.spec.ts +33 -33
  136. package/packages/selector/tests/runtime/search-reducer.spec.ts +110 -110
  137. package/packages/selector/tests/runtime/session-events.spec.ts +27 -27
  138. package/packages/selector/tests/runtime/sidechannel.spec.ts +241 -241
  139. package/packages/selector/tests/runtime/toc-and-bundled.spec.ts +159 -159
  140. package/packages/selector/tests/runtime/tokenizer-golden.spec.ts +53 -53
  141. package/packages/selector/tests/runtime/tokenpilot/benefit.spec.ts +217 -217
  142. package/packages/selector/tests/runtime/tokenpilot/dedup.spec.ts +52 -52
  143. package/packages/selector/tests/runtime/tokenpilot/estimator.spec.ts +79 -79
  144. package/packages/selector/tests/runtime/tokenpilot/locator.spec.ts +76 -76
  145. package/packages/selector/tests/runtime/tokenpilot/profile-baseline.spec.ts +116 -116
  146. package/packages/selector/tests/runtime/tokenpilot/read-state.spec.ts +82 -82
  147. package/packages/selector/tests/runtime/toolclass.spec.ts +156 -156
  148. package/packages/selector/tests/runtime/value.spec.ts +23 -23
  149. package/packages/selector/tests/settings-seat.client.spec.ts +45 -7
  150. package/packages/selector/tests/standing-generation.host.spec.ts +724 -724
  151. package/packages/selector/tests/subagent-cache-reuse.host.spec.ts +269 -269
  152. package/packages/selector/tests/support/cache-prefix-audit.ts +105 -105
  153. package/packages/selector/tests/support/mock-adapter.ts +37 -37
  154. package/packages/selector/tests/support/ui-primitives.tsx +34 -34
  155. package/packages/selector/tsconfig.json +11 -11
  156. package/packages/selector/tsdown.client.config.ts +102 -102
  157. package/packages/selector/tsdown.config.ts +20 -20
  158. package/scripts/capture-profile-baseline.mjs +42 -42
  159. package/scripts/generate-tokenizer-fixtures.py +81 -81
  160. package/scripts/generate-vision-fixtures.py +208 -208
  161. package/scripts/hosts.mjs +74 -0
  162. package/scripts/packed-components-smoke.mjs +763 -732
  163. package/scripts/packed-install-e2e.mjs +1330 -1273
  164. package/scripts/sync-hosts.mjs +174 -0
  165. package/scripts/toolclass-corpus-replay.mjs +281 -281
  166. package/scripts/verify-release.mjs +335 -318
  167. package/tsconfig.base.json +18 -18
  168. package/tsconfig.json +7 -7
  169. package/tsconfig.tests.json +15 -15
  170. package/vitest.built.config.ts +9 -9
  171. package/vitest.config.ts +46 -43
@@ -1,42 +1,42 @@
1
- /**
2
- * One-off baseline capture: freeze the resolvePolicy output for the pre-existing
3
- * profiles (before 'tokenpilot-inspired' is added) into a JSON fixture used by
4
- * tests/tokenpilot/profile-baseline.spec.ts as the backward-compat golden.
5
- *
6
- * Usage: node scripts/capture-profile-baseline.mjs [baseline-file]
7
- */
8
- import { writeFileSync } from 'node:fs'
9
- import { createRequire } from 'node:module'
10
-
11
- const require = createRequire(import.meta.url)
12
- const runtime = require('../packages/runtime/lib/index.js')
13
-
14
- const OLD_PROFILES = ['off', 'native', 'balanced', 'cache-strict', 'savings', 'adaptive', 'custom']
15
- const baseConfig = runtime.resolveConfig({})
16
- const OPTION_CASES = [
17
- { label: 'defaults', options: {} },
18
- { label: 'linkage', options: { contextWindowTokens: 128_000, autoCompactThresholdPercent: 80 } },
19
- ]
20
- const CUSTOM_DOCS = [
21
- { label: 'default-custom', custom: undefined },
22
- ]
23
-
24
- const snapshot = { capturedAt: 'pre-tokenpilot-inspired', profiles: {} }
25
- for (const profile of OLD_PROFILES) {
26
- snapshot.profiles[profile] = {}
27
- for (const optionCase of OPTION_CASES) {
28
- for (const customCase of CUSTOM_DOCS) {
29
- const key = `${optionCase.label}${customCase.label === 'default-custom' ? '' : `/${customCase.label}`}`
30
- snapshot.profiles[profile][key] = runtime.resolvePolicy(
31
- baseConfig,
32
- profile,
33
- customCase.custom,
34
- optionCase.options,
35
- )
36
- }
37
- }
38
- }
39
-
40
- const out = process.argv[2] ?? 'packages/runtime/tests/fixtures/profile-baseline.json'
41
- writeFileSync(out, `${JSON.stringify(snapshot, null, 2)}\n`)
42
- console.log(`baseline written: ${out}`)
1
+ /**
2
+ * One-off baseline capture: freeze the resolvePolicy output for the pre-existing
3
+ * profiles (before 'tokenpilot-inspired' is added) into a JSON fixture used by
4
+ * tests/tokenpilot/profile-baseline.spec.ts as the backward-compat golden.
5
+ *
6
+ * Usage: node scripts/capture-profile-baseline.mjs [baseline-file]
7
+ */
8
+ import { writeFileSync } from 'node:fs'
9
+ import { createRequire } from 'node:module'
10
+
11
+ const require = createRequire(import.meta.url)
12
+ const runtime = require('../packages/runtime/lib/index.js')
13
+
14
+ const OLD_PROFILES = ['off', 'native', 'balanced', 'cache-strict', 'savings', 'adaptive', 'custom']
15
+ const baseConfig = runtime.resolveConfig({})
16
+ const OPTION_CASES = [
17
+ { label: 'defaults', options: {} },
18
+ { label: 'linkage', options: { contextWindowTokens: 128_000, autoCompactThresholdPercent: 80 } },
19
+ ]
20
+ const CUSTOM_DOCS = [
21
+ { label: 'default-custom', custom: undefined },
22
+ ]
23
+
24
+ const snapshot = { capturedAt: 'pre-tokenpilot-inspired', profiles: {} }
25
+ for (const profile of OLD_PROFILES) {
26
+ snapshot.profiles[profile] = {}
27
+ for (const optionCase of OPTION_CASES) {
28
+ for (const customCase of CUSTOM_DOCS) {
29
+ const key = `${optionCase.label}${customCase.label === 'default-custom' ? '' : `/${customCase.label}`}`
30
+ snapshot.profiles[profile][key] = runtime.resolvePolicy(
31
+ baseConfig,
32
+ profile,
33
+ customCase.custom,
34
+ optionCase.options,
35
+ )
36
+ }
37
+ }
38
+ }
39
+
40
+ const out = process.argv[2] ?? 'packages/runtime/tests/fixtures/profile-baseline.json'
41
+ writeFileSync(out, `${JSON.stringify(snapshot, null, 2)}\n`)
42
+ console.log(`baseline written: ${out}`)
@@ -1,81 +1,81 @@
1
- #!/usr/bin/env python3
2
- """Regenerate the tokenizer golden fixture for the Node loader equivalence tests.
3
-
4
- Loads each pinned ``tokenizer.json`` shipped in ``packages/runtime/assets`` with
5
- the official Hugging Face ``tokenizers`` Python library (the same Rust core the
6
- ``transformers`` tokenizer for these repositories uses) and records the token
7
- counts the Node runtime must reproduce exactly.
8
-
9
- Usage:
10
- python3 scripts/generate-tokenizer-fixtures.py
11
-
12
- Requires: pip install tokenizers
13
- Output: packages/runtime/tests/fixtures/tokenizer-golden.json
14
- """
15
-
16
- import json
17
- import pathlib
18
- import platform
19
-
20
- REPO_ROOT = pathlib.Path(__file__).resolve().parent.parent
21
- ASSETS = {
22
- "deepseek-ai/DeepSeek-V4-Pro": REPO_ROOT / "packages/runtime/assets/deepseek-v4",
23
- "deepseek-ai/DeepSeek-V4-Flash-Vision-Exp": REPO_ROOT
24
- / "packages/runtime/assets/deepseek-v4-vision-exp",
25
- }
26
- OUTPUT = REPO_ROOT / "packages/runtime/tests/fixtures/tokenizer-golden.json"
27
-
28
- CASES = [
29
- ("english prose", "The quick brown fox jumps over the lazy dog."),
30
- ("simplified chinese", "上下文压缩选择器在长任务中回收工具结果 token。"),
31
- ("mixed zh-en", "DeepSeek Harness 的 tool result 压缩,Fresh/Aggregate/History 三个阶段。"),
32
- ("json tool output", '{"status":"ok","items":[{"id":1,"path":"/tmp/a.txt"}],"count":1}'),
33
- ("python code", "def solve(width: int, height: int) -> int:\n return width * height // 2\n"),
34
- ("shell transcript", "$ pnpm run test\n> vitest run\n\n Test Files 12 passed (12)\n"),
35
- ("unicode whitespace", "line1\nline2\r\nline3\tline4 double spaces"),
36
- ("deepseek chat special tokens", "<|begin▁of▁sentence|><|User|>hello<|Assistant|><think>\n"),
37
- ("vision image placeholder", "before<|deepseek_image|>after"),
38
- ("empty string", ""),
39
- ("single ascii char", "a"),
40
- ("emoji", "compression 🧠✅ done"),
41
- ]
42
-
43
- MANIFEST_REVISIONS = {}
44
- for repository, asset_dir in ASSETS.items():
45
- manifest = json.loads((asset_dir / "manifest.json").read_text(encoding="utf-8"))
46
- MANIFEST_REVISIONS[repository] = manifest["revision"]
47
-
48
-
49
- def main() -> None:
50
- from tokenizers import Tokenizer
51
-
52
- tokenizers = {}
53
- for repository, asset_dir in ASSETS.items():
54
- # Python `tokenizers` loads the fast-tokenizer definition directly from
55
- # tokenizer.json; tokenizer_config.json only governs transformers-level
56
- # special-token insertion, which these counts deliberately disable.
57
- tokenizers[repository] = Tokenizer.from_file(str(asset_dir / "tokenizer.json"))
58
-
59
- cases = []
60
- for label, text in CASES:
61
- counts = {}
62
- for repository, tokenizer in tokenizers.items():
63
- encoding = tokenizer.encode(text, add_special_tokens=False)
64
- counts[repository] = len(encoding.ids)
65
- cases.append({"label": label, "text": text, "counts": counts})
66
-
67
- import tokenizers
68
-
69
- fixture = {
70
- "generator": f"tokenizers {tokenizers.__version__} on {platform.system()}",
71
- "revision": "1",
72
- "tokenizers": {repository: MANIFEST_REVISIONS[repository] for repository in sorted(ASSETS)},
73
- "cases": cases,
74
- }
75
- OUTPUT.parent.mkdir(parents=True, exist_ok=True)
76
- OUTPUT.write_text(json.dumps(fixture, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
77
- print(f"wrote {OUTPUT} with {len(cases)} cases")
78
-
79
-
80
- if __name__ == "__main__":
81
- main()
1
+ #!/usr/bin/env python3
2
+ """Regenerate the tokenizer golden fixture for the Node loader equivalence tests.
3
+
4
+ Loads each pinned ``tokenizer.json`` shipped in ``packages/runtime/assets`` with
5
+ the official Hugging Face ``tokenizers`` Python library (the same Rust core the
6
+ ``transformers`` tokenizer for these repositories uses) and records the token
7
+ counts the Node runtime must reproduce exactly.
8
+
9
+ Usage:
10
+ python3 scripts/generate-tokenizer-fixtures.py
11
+
12
+ Requires: pip install tokenizers
13
+ Output: packages/runtime/tests/fixtures/tokenizer-golden.json
14
+ """
15
+
16
+ import json
17
+ import pathlib
18
+ import platform
19
+
20
+ REPO_ROOT = pathlib.Path(__file__).resolve().parent.parent
21
+ ASSETS = {
22
+ "deepseek-ai/DeepSeek-V4-Pro": REPO_ROOT / "packages/runtime/assets/deepseek-v4",
23
+ "deepseek-ai/DeepSeek-V4-Flash-Vision-Exp": REPO_ROOT
24
+ / "packages/runtime/assets/deepseek-v4-vision-exp",
25
+ }
26
+ OUTPUT = REPO_ROOT / "packages/runtime/tests/fixtures/tokenizer-golden.json"
27
+
28
+ CASES = [
29
+ ("english prose", "The quick brown fox jumps over the lazy dog."),
30
+ ("simplified chinese", "上下文压缩选择器在长任务中回收工具结果 token。"),
31
+ ("mixed zh-en", "DeepSeek Harness 的 tool result 压缩,Fresh/Aggregate/History 三个阶段。"),
32
+ ("json tool output", '{"status":"ok","items":[{"id":1,"path":"/tmp/a.txt"}],"count":1}'),
33
+ ("python code", "def solve(width: int, height: int) -> int:\n return width * height // 2\n"),
34
+ ("shell transcript", "$ pnpm run test\n> vitest run\n\n Test Files 12 passed (12)\n"),
35
+ ("unicode whitespace", "line1\nline2\r\nline3\tline4 double spaces"),
36
+ ("deepseek chat special tokens", "<|begin▁of▁sentence|><|User|>hello<|Assistant|><think>\n"),
37
+ ("vision image placeholder", "before<|deepseek_image|>after"),
38
+ ("empty string", ""),
39
+ ("single ascii char", "a"),
40
+ ("emoji", "compression 🧠✅ done"),
41
+ ]
42
+
43
+ MANIFEST_REVISIONS = {}
44
+ for repository, asset_dir in ASSETS.items():
45
+ manifest = json.loads((asset_dir / "manifest.json").read_text(encoding="utf-8"))
46
+ MANIFEST_REVISIONS[repository] = manifest["revision"]
47
+
48
+
49
+ def main() -> None:
50
+ from tokenizers import Tokenizer
51
+
52
+ tokenizers = {}
53
+ for repository, asset_dir in ASSETS.items():
54
+ # Python `tokenizers` loads the fast-tokenizer definition directly from
55
+ # tokenizer.json; tokenizer_config.json only governs transformers-level
56
+ # special-token insertion, which these counts deliberately disable.
57
+ tokenizers[repository] = Tokenizer.from_file(str(asset_dir / "tokenizer.json"))
58
+
59
+ cases = []
60
+ for label, text in CASES:
61
+ counts = {}
62
+ for repository, tokenizer in tokenizers.items():
63
+ encoding = tokenizer.encode(text, add_special_tokens=False)
64
+ counts[repository] = len(encoding.ids)
65
+ cases.append({"label": label, "text": text, "counts": counts})
66
+
67
+ import tokenizers
68
+
69
+ fixture = {
70
+ "generator": f"tokenizers {tokenizers.__version__} on {platform.system()}",
71
+ "revision": "1",
72
+ "tokenizers": {repository: MANIFEST_REVISIONS[repository] for repository in sorted(ASSETS)},
73
+ "cases": cases,
74
+ }
75
+ OUTPUT.parent.mkdir(parents=True, exist_ok=True)
76
+ OUTPUT.write_text(json.dumps(fixture, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
77
+ print(f"wrote {OUTPUT} with {len(cases)} cases")
78
+
79
+
80
+ if __name__ == "__main__":
81
+ main()