@tileflow/dev 0.1.0-alpha.22 → 0.1.0-alpha.24
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/README.md +130 -515
- package/dist/artifacts.d.ts +1 -1
- package/dist/artifacts.js +2 -2
- package/dist/{chunk-MIGBHCXX.js → chunk-6OJICHB3.js} +3 -1
- package/dist/{chunk-CENQR5Q2.js → chunk-NUHSYLLS.js} +312 -170
- package/dist/{chunk-KH7CMHT3.js → chunk-XS5Q4IS2.js} +2 -2
- package/dist/{chunk-XTRHREXO.js → chunk-XXVI42UZ.js} +1 -1
- package/dist/fonts.d.ts +1 -1
- package/dist/icons-CkLVtaP-.d.ts +164 -0
- package/dist/icons.d.ts +3 -136
- package/dist/icons.js +5 -3
- package/dist/index.d.ts +52 -3
- package/dist/index.js +588 -5
- package/dist/{preview-assets-6LYL7GP7.js → preview-assets-UTUP3OML.js} +24 -15
- package/dist/preview.js +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +3 -3
- package/docs/artifact-lifecycle.md +153 -0
- package/docs/bounded-pmtiles-resource-inspection.md +21 -0
- package/docs/bounded-vector-feature-inspection.md +101 -0
- package/docs/local-comparison-workbench-and-compiler-inspection.md +250 -0
- package/docs/structured-config-inspection-and-diagnostics.md +39 -0
- package/package.json +5 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Structured config inspection and diagnostics
|
|
2
|
+
|
|
3
|
+
Start with the [@tileflow/dev guide](https://github.com/tileflow/tileflow-sdk/blob/main/packages/dev/README.md) for installation and a complete first example.
|
|
4
|
+
|
|
5
|
+
Custom Node tooling can use the same deterministic documents as `tileflow validate --json` and
|
|
6
|
+
`tileflow inspect --json`:
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import {inspectTileflowConfig} from '@tileflow/dev/inspect';
|
|
10
|
+
import {
|
|
11
|
+
createTileflowCommandFailureDocument,
|
|
12
|
+
serializeTileflowCommandDocument,
|
|
13
|
+
} from '@tileflow/dev/validation';
|
|
14
|
+
|
|
15
|
+
try {
|
|
16
|
+
const inspection = await inspectTileflowConfig({config: 'tileflow.config.ts'});
|
|
17
|
+
process.stdout.write(serializeTileflowCommandDocument(inspection));
|
|
18
|
+
} catch (error) {
|
|
19
|
+
const failure = createTileflowCommandFailureDocument('inspect', error, process.cwd(), {
|
|
20
|
+
code: 'INSPECTION_FAILED',
|
|
21
|
+
phase: 'config-inspection',
|
|
22
|
+
});
|
|
23
|
+
process.stderr.write(serializeTileflowCommandDocument(failure));
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The inspection resolves one config load into sorted maps, root-to-leaf lineage, declared paths, and
|
|
28
|
+
leaf-level merge provenance. Its `themeContract` exposes the default/system mapping, shared token
|
|
29
|
+
schema, concrete resolved token values, typography and lighting, differences from the default, and
|
|
30
|
+
stable `THEME_IMPLICIT_FIXED` diagnostics across modules, render stacks, and terrain. Each
|
|
31
|
+
diagnostic carries a semantic scope and, for module values, its owner, plus machine-readable
|
|
32
|
+
severity and remediation. Colors, fonts, and images are followed through
|
|
33
|
+
expression outputs; numeric diagnostics intentionally cover only direct visual scalars, excluding
|
|
34
|
+
expression operands, zoom stops, tuples, placement, priority, and other structural numbers.
|
|
35
|
+
Agents can therefore edit semantic roles without
|
|
36
|
+
reverse-engineering compiler layers or parsing prose. It never returns `inputFiles`, absolute filesystem paths, credentials,
|
|
37
|
+
URL queries, data URLs, or recognized secret formats. Structured summaries and diagnostics use the
|
|
38
|
+
same required schema-version-1 fields and bounded safe suggestions so consumers do not need to
|
|
39
|
+
parse human prose.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/dev",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.24",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Node development utilities for Tileflow configs and builds.",
|
|
6
6
|
"type": "module",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"files": [
|
|
30
30
|
"dist",
|
|
31
|
+
"docs",
|
|
31
32
|
"THIRD_PARTY_NOTICES.md",
|
|
32
33
|
"LICENSE"
|
|
33
34
|
],
|
|
@@ -89,19 +90,19 @@
|
|
|
89
90
|
"dependencies": {
|
|
90
91
|
"@mapbox/vector-tile": "3.0.0",
|
|
91
92
|
"@maplibre/maplibre-gl-style-spec": "24.8.5",
|
|
92
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
93
|
+
"@tileflow/core": ">=0.1.0-alpha.25 <0.1.0-beta.0",
|
|
93
94
|
"chokidar": "4.0.3",
|
|
94
95
|
"fflate": "0.8.3",
|
|
95
96
|
"fontkit": "2.0.4",
|
|
96
97
|
"jiti": "^2.7.0",
|
|
97
|
-
"maplibre-gl": "
|
|
98
|
+
"maplibre-gl": "6.9.0",
|
|
98
99
|
"pbf": "5.1.2",
|
|
99
100
|
"pmtiles": "4.5.0",
|
|
100
101
|
"saxes": "6.0.0",
|
|
101
102
|
"three": "0.185.1"
|
|
102
103
|
},
|
|
103
104
|
"devDependencies": {
|
|
104
|
-
"@tileflow/maps": "0.1.0-alpha.
|
|
105
|
+
"@tileflow/maps": "0.1.0-alpha.4"
|
|
105
106
|
},
|
|
106
107
|
"optionalDependencies": {
|
|
107
108
|
"sharp": "0.35.4"
|