* refactor(tools): group the oracle captures and mirror the bindings tests
Two names broke the rule that a multi-file domain gets a subfolder
rather than repeated sibling prefixes. `document-capture.ts` repeated
its own folder and sat beside `capture-scene.ts`, so both become
`document/capture/{document,scene}.ts` behind `#visual/capture/*`.
The document bindings tests were split between `document/binding/` and
a `text-bindings.test.ts` one level above, while their source is
`document/bindings/`. They move into `document/bindings/` and take the
source file names, so the test tree mirrors it.
* refactor(fig): group the node-change prefix families into folders
`node-change/` held five pairs of files sharing a leading segment —
derived-text, style, text, variable, vector — plus `instance-geometry`
beside an `instance-linkage/` folder. The guide asks for a subfolder
rather than a repeated prefix, so each becomes one: `style/{refs,runs}`,
`variable/{bindings,expression}`, and so on, with `instance-linkage/`
folded in beside `instance/geometry.ts`.
Imports across seventeen files follow. Two of the moved files reached
out of the package tree with `../../` once they were a level deeper;
those use `#fig/*` instead.
19 lines
524 B
JSON
19 lines
524 B
JSON
{
|
|
"name": "@open-pencil/visual-oracles-tools",
|
|
"private": true,
|
|
"type": "module",
|
|
"imports": {
|
|
"#visual/manifest": "./src/document/manifest.ts",
|
|
"#visual/capture/scene": "./src/document/capture/scene.ts",
|
|
"#visual/path-diagnostics": "./src/document/path-diagnostics.ts",
|
|
"#visual/scene-oracle": "./src/document/scene-oracle.ts",
|
|
"#visual/capture/document": "./src/document/capture/document.ts"
|
|
},
|
|
"scripts": {
|
|
"test": "bun test tests"
|
|
},
|
|
"dependencies": {
|
|
"citty": "^0.1.6"
|
|
}
|
|
}
|