@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.
@@ -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.22",
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.24 <0.1.0-beta.0",
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": "5.24.0",
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.2"
105
+ "@tileflow/maps": "0.1.0-alpha.4"
105
106
  },
106
107
  "optionalDependencies": {
107
108
  "sharp": "0.35.4"