@ontrails/regrade 1.0.0-beta.39 → 1.0.0-beta.42
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/CHANGELOG.md +83 -0
- package/package.json +6 -5
- package/src/downstream/ast-rewrite.ts +567 -54
- package/src/downstream/collect.ts +1 -1
- package/src/downstream/export-restructure.ts +2 -2
- package/src/downstream/report.ts +140 -1
- package/src/downstream/vocabulary-registry.ts +4 -6
- package/src/downstream/vocabulary.ts +97 -23
- package/src/literal-transform.ts +26 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# @ontrails/regrade
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.42
|
|
4
|
+
|
|
5
|
+
## 1.0.0-beta.41
|
|
6
|
+
|
|
7
|
+
## 1.0.0-beta.40
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- [`5adb995`](https://github.com/outfitter-dev/trails/commit/5adb99551c2dda6190d46cce7f60bb08d63c99aa): Complete the v1 hard cutover from the authored `blaze` field to
|
|
12
|
+
`implementation` across trail contracts, surface projections, tests, examples,
|
|
13
|
+
and public source-analysis helpers. Existing applications must rename authored
|
|
14
|
+
trail behavior fields and direct trail-object access before upgrading.
|
|
15
|
+
- [`aedb87b`](https://github.com/outfitter-dev/trails/commit/aedb87b3b536c5849636c7a5951c51e1e7f0d1cc): Add governed identifier-segment renames for AST-backed migrations. Regrade can
|
|
16
|
+
now migrate camelCase, PascalCase, leading-underscore, and SCREAMING_SNAKE
|
|
17
|
+
identifier segments, including single-segment forms such as `BLAZE` and
|
|
18
|
+
`_BLAZE`, while preserving exact-mode behavior and rejecting lowercase
|
|
19
|
+
substring, concatenated acronym, or inflection matches.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`01b9204`](https://github.com/outfitter-dev/trails/commit/01b92046db52c71f22a871e58a308d7a94483cab): Harden governed v1 vocabulary transitions with property-key-only blaze literal
|
|
24
|
+
rewrites, structured review for ambiguous literal positions, explicit
|
|
25
|
+
scratch/history boundaries, and scan-only preservation for migration plans and
|
|
26
|
+
historical decision evidence.
|
|
27
|
+
- [`6712075`](https://github.com/outfitter-dev/trails/commit/67120754df3f614c7f4dd98be1fa0ba9d69b7765): Complete the v1 hard cutover from the `contour` domain-object declaration
|
|
28
|
+
vocabulary to `entity` across contracts, topo facts, store helpers, Warden,
|
|
29
|
+
Wayfinder, operator surfaces, examples, and generated locks. Existing
|
|
30
|
+
applications must rename contour APIs, run `trails dev reset --yes` to discard
|
|
31
|
+
pre-cutover local Topographer snapshots, and then recompile committed
|
|
32
|
+
`trails.lock` artifacts before upgrading. Those derived snapshots are
|
|
33
|
+
intentionally not read through a compatibility layer.
|
|
34
|
+
The entity-shaped wire contract advances `TopoGraph` and split lock manifests
|
|
35
|
+
from schema version 3 to 4; old split artifacts fail with regeneration guidance,
|
|
36
|
+
while the canonical root `trails.lock` remains schema version 5.
|
|
37
|
+
Wayfinder reports those stale rows as topo-store drift while keeping current
|
|
38
|
+
committed lock facts available for inspection.
|
|
39
|
+
- [`35cbe28`](https://github.com/outfitter-dev/trails/commit/35cbe289db46539b3689dbf6cf8ab0e5d9a1b09c): Found `@ontrails/source` as the shared source-code AST kernel for parsing,
|
|
40
|
+
walking, locations, edits, literals, and generic Trails syntax recognition.
|
|
41
|
+
Warden, Regrade, Wayfinder, and the Trails operator now import those shared
|
|
42
|
+
mechanics from `@ontrails/source`; the legacy Warden AST route is removed by the
|
|
43
|
+
stacked hard cutover.
|
|
44
|
+
- [`35e5fed`](https://github.com/outfitter-dev/trails/commit/35e5fedd228e498783f479f0dd502e2f3ec772b8): Fold the Wayfinder graph-read catalog into `@ontrails/topography`. Wayfind
|
|
45
|
+
remains the product, trail-id, CLI, and MCP brand, but there is no longer an
|
|
46
|
+
`@ontrails/wayfinder` package to install or import. Programmatic consumers
|
|
47
|
+
should move imports such as `wayfinderTopo`, `wayfindOverviewTrail`,
|
|
48
|
+
`loadWayfinderArtifacts`, and the Wayfinder filter/provenance types to
|
|
49
|
+
`@ontrails/topography`.
|
|
50
|
+
|
|
51
|
+
Expose that package move as a governed Regrade transition so exact
|
|
52
|
+
`@ontrails/wayfinder` imports can move safely while product vocabulary and near
|
|
53
|
+
routes remain unchanged for review. Regrade routes package manifests through
|
|
54
|
+
structured review instead of rewriting dependency keys as plain text.
|
|
55
|
+
|
|
56
|
+
The Trails operator now reads all `wayfind.*` query trails and artifact helpers
|
|
57
|
+
from `@ontrails/topography` while preserving the existing CLI/MCP schemas,
|
|
58
|
+
route IDs, output shapes, and internal trail visibility.
|
|
59
|
+
|
|
60
|
+
- [`3a65ae3`](https://github.com/outfitter-dev/trails/commit/3a65ae363e05b7589f4a9876da4346886353b48c): Rename the durable graph substrate package from `@ontrails/topographer` to
|
|
61
|
+
`@ontrails/topography` after folding Wayfind graph queries into that owner.
|
|
62
|
+
|
|
63
|
+
Update imports to `@ontrails/topography` or
|
|
64
|
+
`@ontrails/topography/backend-support`. The pre-1.0 cutover does not ship a
|
|
65
|
+
compatibility package. TopoGraph, lock, topo-store, semantic diff, and Wayfind
|
|
66
|
+
APIs keep their existing contracts, and the `trails wayfind` CLI and MCP names
|
|
67
|
+
remain unchanged.
|
|
68
|
+
|
|
69
|
+
The governed package-route transition moves legacy `@ontrails/wayfinder`
|
|
70
|
+
imports directly to `@ontrails/topography`; it does not emit the retired
|
|
71
|
+
intermediate `@ontrails/topographer` route.
|
|
72
|
+
|
|
73
|
+
- [`a45cead`](https://github.com/outfitter-dev/trails/commit/a45cead6e3ddf6ce606bf5e663b74c0d3b5664b8): Make the planned contour-to-entity Regrade transition code-fact complete for
|
|
74
|
+
apply readiness while leaving the repository cutover status planned.
|
|
75
|
+
Identifiers that already contain the target segment now stay in the review
|
|
76
|
+
inventory instead of producing duplicated target names.
|
|
77
|
+
- [`8a1ac00`](https://github.com/outfitter-dev/trails/commit/8a1ac00b5d789be41ca6e464358c96b01e442bf4): Govern the exact `@ontrails/warden/ast` to `@ontrails/source` package route
|
|
78
|
+
transition for Regrade string-literal and module-specifier rewrites exposed
|
|
79
|
+
through the Trails CLI and MCP tools. Safe rewrites now require the owning
|
|
80
|
+
manifest to already declare the target package; otherwise Regrade preserves the
|
|
81
|
+
occurrence with dependency repair guidance. Invalid manifests remain unchanged
|
|
82
|
+
and produce structured repair guidance that names the owning manifest. Explicit
|
|
83
|
+
preserve rules remain no-ops before dependency validation, and dotted or
|
|
84
|
+
subpath-like near routes remain deferred instead of becoming invented imports.
|
|
85
|
+
|
|
3
86
|
## 1.0.0-beta.39
|
|
4
87
|
|
|
5
88
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ontrails/regrade",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.42",
|
|
4
4
|
"description": "Downstream migration reporting and safe rewrite helpers for Trails.",
|
|
5
5
|
"files": [
|
|
6
6
|
"src/**/*.ts",
|
|
@@ -22,12 +22,13 @@
|
|
|
22
22
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ontrails/core": "^1.0.0-beta.
|
|
26
|
-
"@ontrails/
|
|
25
|
+
"@ontrails/core": "^1.0.0-beta.42",
|
|
26
|
+
"@ontrails/source": "^1.0.0-beta.42",
|
|
27
|
+
"@ontrails/warden": "^1.0.0-beta.42",
|
|
27
28
|
"zod": "^4.3.5"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@ontrails/testing": "^1.0.0-beta.
|
|
31
|
-
"@ontrails/
|
|
31
|
+
"@ontrails/testing": "^1.0.0-beta.42",
|
|
32
|
+
"@ontrails/topography": "^1.0.0-beta.42"
|
|
32
33
|
}
|
|
33
34
|
}
|