@tracecode/harness 0.4.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 (55) hide show
  1. package/CHANGELOG.md +113 -0
  2. package/LICENSE +674 -0
  3. package/README.md +266 -0
  4. package/dist/browser.cjs +1352 -0
  5. package/dist/browser.cjs.map +1 -0
  6. package/dist/browser.d.cts +49 -0
  7. package/dist/browser.d.ts +49 -0
  8. package/dist/browser.js +1317 -0
  9. package/dist/browser.js.map +1 -0
  10. package/dist/cli.cjs +70 -0
  11. package/dist/cli.cjs.map +1 -0
  12. package/dist/cli.d.cts +1 -0
  13. package/dist/cli.d.ts +1 -0
  14. package/dist/cli.js +70 -0
  15. package/dist/cli.js.map +1 -0
  16. package/dist/core.cjs +286 -0
  17. package/dist/core.cjs.map +1 -0
  18. package/dist/core.d.cts +69 -0
  19. package/dist/core.d.ts +69 -0
  20. package/dist/core.js +254 -0
  21. package/dist/core.js.map +1 -0
  22. package/dist/index.cjs +2603 -0
  23. package/dist/index.cjs.map +1 -0
  24. package/dist/index.d.cts +6 -0
  25. package/dist/index.d.ts +6 -0
  26. package/dist/index.js +2538 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/internal/browser.cjs +647 -0
  29. package/dist/internal/browser.cjs.map +1 -0
  30. package/dist/internal/browser.d.cts +143 -0
  31. package/dist/internal/browser.d.ts +143 -0
  32. package/dist/internal/browser.js +617 -0
  33. package/dist/internal/browser.js.map +1 -0
  34. package/dist/javascript.cjs +549 -0
  35. package/dist/javascript.cjs.map +1 -0
  36. package/dist/javascript.d.cts +11 -0
  37. package/dist/javascript.d.ts +11 -0
  38. package/dist/javascript.js +518 -0
  39. package/dist/javascript.js.map +1 -0
  40. package/dist/python.cjs +744 -0
  41. package/dist/python.cjs.map +1 -0
  42. package/dist/python.d.cts +97 -0
  43. package/dist/python.d.ts +97 -0
  44. package/dist/python.js +698 -0
  45. package/dist/python.js.map +1 -0
  46. package/dist/runtime-types-C7d1LFbx.d.ts +85 -0
  47. package/dist/runtime-types-Dvgn07z9.d.cts +85 -0
  48. package/dist/types-Bzr1Ohcf.d.cts +96 -0
  49. package/dist/types-Bzr1Ohcf.d.ts +96 -0
  50. package/package.json +89 -0
  51. package/workers/javascript/javascript-worker.js +2918 -0
  52. package/workers/python/generated-python-harness-snippets.js +20 -0
  53. package/workers/python/pyodide-worker.js +1197 -0
  54. package/workers/python/runtime-core.js +1529 -0
  55. package/workers/vendor/typescript.js +200276 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,113 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here.
4
+
5
+ This repo uses Git tags as release boundaries. Version notes below summarize what shipped in each tagged release.
6
+
7
+ ## [0.4.0] - 2026-03-10
8
+
9
+ ### Added
10
+
11
+ - Built ESM and CommonJS package outputs plus `.d.ts` publishing.
12
+ - `createBrowserHarness(...)` as the stable public browser runtime factory.
13
+ - `tracecode-harness sync-assets <target-dir>` for copying the canonical worker asset set into consumer apps.
14
+ - Packaging, asset-contract, and example-consumer smoke tests.
15
+ - In-repo minimal example app at `examples/web-ide`.
16
+
17
+ ### Changed
18
+
19
+ - The public browser SDK now uses explicit runtime instances instead of app-coupled ambient bootstrap.
20
+ - Browser asset resolution is centralized around `assetBaseUrl` and per-asset overrides.
21
+ - `@tracecode/harness/browser` now exports the high-level stable API instead of low-level worker internals.
22
+
23
+ ### Notes
24
+
25
+ - `0.4.0` is the clean public SDK cut for browser consumers.
26
+
27
+ ## [0.3.4] - 2026-03-07
28
+
29
+ ### Fixed
30
+
31
+ - TypeScript tracer line alignment for debugger-style playback.
32
+ - JS/TS runtime coverage around traced queue and traversal steps.
33
+
34
+ ### Notes
35
+
36
+ - `0.3.4` is a tracer-alignment patch release focused on TypeScript step accuracy.
37
+
38
+ ## [0.3.3] - 2026-03-07
39
+
40
+ ### Fixed
41
+
42
+ - JavaScript tracer line mapping for debugger-style playback.
43
+ - JS runtime behavior around queue mutations, loop headers, and traversal line alignment.
44
+
45
+ ### Notes
46
+
47
+ - `0.3.3` improves JS trace semantics without changing the public contract shape.
48
+
49
+ ## [0.3.2] - 2026-03-07
50
+
51
+ ### Fixed
52
+
53
+ - JavaScript/TypeScript input binding order during harness execution.
54
+
55
+ ### Notes
56
+
57
+ - `0.3.2` is a JS/TS execution correctness patch release.
58
+
59
+ ## [0.3.1] - 2026-03-07
60
+
61
+ ### Fixed
62
+
63
+ - Python class-scope access instrumentation mangling in the tracing runtime.
64
+
65
+ ### Notes
66
+
67
+ - `0.3.1` fixes Python access metadata emission for class-based solutions.
68
+
69
+ ## [0.3.0] - 2026-03-07
70
+
71
+ ### Added
72
+
73
+ - Runtime access metadata in the shared trace contract via an optional `accesses` field on trace steps.
74
+ - Public access event types for:
75
+ - `indexed-read`
76
+ - `indexed-write`
77
+ - `cell-read`
78
+ - `cell-write`
79
+ - `mutating-call`
80
+ - JavaScript/TypeScript runtime instrumentation for array and grid access events, including indexed reads/writes and mutating queue/array calls.
81
+ - Python runtime instrumentation for aligned access metadata during tracing.
82
+
83
+ ### Changed
84
+
85
+ - Trace adapters now preserve runtime access metadata end to end.
86
+ - Runtime contract coverage now validates the new access metadata surface.
87
+
88
+ ### Notes
89
+
90
+ - `0.3.0` is an additive, backward-compatible contract release.
91
+ - Access metadata is state-aligned with debugger-style trace playback, so events appear on the next emitted step alongside the post-line state.
92
+
93
+ ## [0.2.0] - 2026-03-06
94
+
95
+ ### Added
96
+
97
+ - Structured runtime capability profiles for supported languages.
98
+ - Browser runtime capability guards and shared runtime-type metadata.
99
+ - Contract tests validating language profiles and declared support levels.
100
+
101
+ ### Notes
102
+
103
+ - `0.2.0` formalizes the public runtime capability surface.
104
+
105
+ ## [0.1.0] - 2026-03-06
106
+
107
+ ### Added
108
+
109
+ - Initial public harness baseline with repository documentation and published package metadata.
110
+
111
+ ### Notes
112
+
113
+ - `0.1.0` is the pre-profile baseline release.