@tileflow/dev 0.1.0-alpha.23 → 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-CENQR5Q2.js → chunk-NUHSYLLS.js} +312 -170
- package/dist/{chunk-G5FUSWNN.js → chunk-XS5Q4IS2.js} +1 -1
- 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 +587 -4
- 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 +4 -3
package/dist/fonts.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TileflowFontBundleManifest, MapLibreStyle } from '@tileflow/core';
|
|
2
2
|
import { TileflowEffectiveFontSourceIdentity, TileflowBuildStyles, TileflowBuildCatalog } from '@tileflow/core/build';
|
|
3
|
-
import { TileflowBuildAsset } from './icons
|
|
3
|
+
import { e as TileflowBuildAsset } from './icons-CkLVtaP-.js';
|
|
4
4
|
|
|
5
5
|
type TileflowFontCompilationTarget = 'hosted' | 'local';
|
|
6
6
|
type TileflowFontCompilationIssue = {
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { TileflowIconPackageFileName, TileflowIconPackageManifest, TileflowIconDirectory } from '@tileflow/core';
|
|
2
|
+
import { TileflowBuildCatalog, TileflowPreparedMapAssets, TileflowEffectiveIconSourceIdentity } from '@tileflow/core/build';
|
|
3
|
+
|
|
4
|
+
type TileflowRenderedIconCell = {
|
|
5
|
+
height: number;
|
|
6
|
+
width: number;
|
|
7
|
+
rgba: Uint8Array;
|
|
8
|
+
};
|
|
9
|
+
type TileflowRenderedIcon = {
|
|
10
|
+
id: string;
|
|
11
|
+
oneX: TileflowRenderedIconCell;
|
|
12
|
+
twoX: TileflowRenderedIconCell;
|
|
13
|
+
};
|
|
14
|
+
/** Pack independently rendered densities without scaling or re-rasterizing either input. */
|
|
15
|
+
declare function packTileflowRenderedIcons(input: readonly TileflowRenderedIcon[]): Promise<CompiledTileflowIconPackage>;
|
|
16
|
+
|
|
17
|
+
type TileflowBuildAsset = {
|
|
18
|
+
contentType: string;
|
|
19
|
+
fileName: string;
|
|
20
|
+
source: string | Uint8Array;
|
|
21
|
+
};
|
|
22
|
+
/** Executable authoring input before local sources have been resolved into runtime URLs. */
|
|
23
|
+
type TileflowSourceCatalog = TileflowBuildCatalog;
|
|
24
|
+
declare const preparedTileflowBuildCatalog: unique symbol;
|
|
25
|
+
/** A validated catalog paired with build-owned portable assets. */
|
|
26
|
+
type PreparedTileflowBuildCatalog = TileflowBuildCatalog & {
|
|
27
|
+
readonly [preparedTileflowBuildCatalog]: true;
|
|
28
|
+
};
|
|
29
|
+
type PreparedTileflowCatalog = {
|
|
30
|
+
assets: TileflowBuildAsset[];
|
|
31
|
+
baseDirectory: string;
|
|
32
|
+
cwd: string;
|
|
33
|
+
mapAssets: Record<string, TileflowPreparedMapAssets>;
|
|
34
|
+
mapIconSources: Record<string, readonly TileflowEffectiveIconSourceIdentity[]>;
|
|
35
|
+
project: PreparedTileflowBuildCatalog;
|
|
36
|
+
sourceProject: TileflowSourceCatalog;
|
|
37
|
+
watchPaths: string[];
|
|
38
|
+
};
|
|
39
|
+
type TileflowIconCompilationTarget = 'hosted' | 'local';
|
|
40
|
+
type TileflowIconCompilationIssue = {
|
|
41
|
+
message: string;
|
|
42
|
+
path: string;
|
|
43
|
+
};
|
|
44
|
+
type CompiledTileflowIconPackageFile = {
|
|
45
|
+
contentType: 'application/json' | 'image/png';
|
|
46
|
+
fileName: TileflowIconPackageFileName;
|
|
47
|
+
source: Uint8Array;
|
|
48
|
+
};
|
|
49
|
+
type CompiledTileflowIconPackage = {
|
|
50
|
+
contentHash: string;
|
|
51
|
+
files: CompiledTileflowIconPackageFile[];
|
|
52
|
+
manifest: TileflowIconPackageManifest;
|
|
53
|
+
};
|
|
54
|
+
type TileflowMapIconPackageBinding = {
|
|
55
|
+
iconIds: readonly string[];
|
|
56
|
+
label: string;
|
|
57
|
+
mapName: string;
|
|
58
|
+
packageHash: string;
|
|
59
|
+
};
|
|
60
|
+
type CompileTileflowIconPackagesResult = {
|
|
61
|
+
bindings: TileflowMapIconPackageBinding[];
|
|
62
|
+
packages: CompiledTileflowIconPackage[];
|
|
63
|
+
sourceIdentities: Record<string, readonly TileflowEffectiveIconSourceIdentity[]>;
|
|
64
|
+
watchPaths: string[];
|
|
65
|
+
};
|
|
66
|
+
type InspectTileflowIconCatalogsOptions = {
|
|
67
|
+
baseDirectory?: string;
|
|
68
|
+
cwd: string;
|
|
69
|
+
mapNames?: readonly string[];
|
|
70
|
+
};
|
|
71
|
+
type TileflowIconCatalogSourceFormat = 'jpeg' | 'png' | 'svg' | 'webp';
|
|
72
|
+
type TileflowIconCatalogAtlasRectangle = {
|
|
73
|
+
height: number;
|
|
74
|
+
width: number;
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
};
|
|
78
|
+
type TileflowIconCatalogRenderedDensity = {
|
|
79
|
+
atlas: TileflowIconCatalogAtlasRectangle;
|
|
80
|
+
height: number;
|
|
81
|
+
pixelRatio: 1 | 2;
|
|
82
|
+
pixelSha256: string;
|
|
83
|
+
width: number;
|
|
84
|
+
};
|
|
85
|
+
type TileflowIconCatalogIcon = {
|
|
86
|
+
id: string;
|
|
87
|
+
rendered: {
|
|
88
|
+
oneX: TileflowIconCatalogRenderedDensity;
|
|
89
|
+
twoX: TileflowIconCatalogRenderedDensity;
|
|
90
|
+
};
|
|
91
|
+
source: {
|
|
92
|
+
byteLength: number;
|
|
93
|
+
dimensions: {
|
|
94
|
+
height: number;
|
|
95
|
+
width: number;
|
|
96
|
+
} | null;
|
|
97
|
+
format: TileflowIconCatalogSourceFormat;
|
|
98
|
+
path: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
type TileflowIconCatalog = {
|
|
102
|
+
compiledPackage: CompiledTileflowIconPackage;
|
|
103
|
+
directories: string[];
|
|
104
|
+
icons: TileflowIconCatalogIcon[];
|
|
105
|
+
insideWorkingTree: boolean;
|
|
106
|
+
replacements: TileflowIconReplacement[];
|
|
107
|
+
};
|
|
108
|
+
type TileflowIconReplacement = {
|
|
109
|
+
id: string;
|
|
110
|
+
replaced: string;
|
|
111
|
+
winner: string;
|
|
112
|
+
};
|
|
113
|
+
type TileflowIconCatalogMap = {
|
|
114
|
+
name: string;
|
|
115
|
+
icons: {
|
|
116
|
+
directories: string[];
|
|
117
|
+
iconIds: string[];
|
|
118
|
+
kind: 'directories';
|
|
119
|
+
label: string;
|
|
120
|
+
packageHash: string;
|
|
121
|
+
} | {
|
|
122
|
+
kind: 'none';
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
type TileflowIconCatalogInspection = {
|
|
126
|
+
catalogs: TileflowIconCatalog[];
|
|
127
|
+
maps: TileflowIconCatalogMap[];
|
|
128
|
+
};
|
|
129
|
+
declare class TileflowIconCompilationError extends Error {
|
|
130
|
+
readonly code: "ICON_INVALID";
|
|
131
|
+
readonly issues: TileflowIconCompilationIssue[];
|
|
132
|
+
readonly phase: "icon-compilation";
|
|
133
|
+
constructor(issues: TileflowIconCompilationIssue[]);
|
|
134
|
+
}
|
|
135
|
+
declare const iconFileExtensions: Set<string>;
|
|
136
|
+
declare function compileTileflowIconPackages(project: TileflowBuildCatalog, options: {
|
|
137
|
+
baseDirectory?: string;
|
|
138
|
+
cwd: string;
|
|
139
|
+
target: TileflowIconCompilationTarget;
|
|
140
|
+
}): Promise<CompileTileflowIconPackagesResult>;
|
|
141
|
+
declare function inspectTileflowIconCatalogs(project: TileflowBuildCatalog, options: InspectTileflowIconCatalogsOptions): Promise<TileflowIconCatalogInspection>;
|
|
142
|
+
declare function prepareTileflowCatalogIcons(project: TileflowBuildCatalog, options: {
|
|
143
|
+
assetBaseUrl: string;
|
|
144
|
+
baseDirectory?: string;
|
|
145
|
+
cwd: string;
|
|
146
|
+
}): Promise<PreparedTileflowCatalog>;
|
|
147
|
+
declare function getTileflowIconWatchPaths(project: TileflowBuildCatalog, cwd: string, baseDirectory?: string): Promise<string[]>;
|
|
148
|
+
|
|
149
|
+
/** A bounded local source snapshot used by the explicit shared-composition build port. */
|
|
150
|
+
declare function readTileflowIconDirectory(source: TileflowIconDirectory, options: {
|
|
151
|
+
cwd: string;
|
|
152
|
+
baseDirectory: string;
|
|
153
|
+
target: TileflowIconCompilationTarget;
|
|
154
|
+
}): Promise<{
|
|
155
|
+
iconIds: string[];
|
|
156
|
+
watchPath?: string;
|
|
157
|
+
render: (ids: readonly string[]) => Promise<Array<{
|
|
158
|
+
icon: TileflowRenderedIcon;
|
|
159
|
+
identity: TileflowEffectiveIconSourceIdentity;
|
|
160
|
+
sourceBytes: number;
|
|
161
|
+
}>>;
|
|
162
|
+
}>;
|
|
163
|
+
|
|
164
|
+
export { type CompiledTileflowIconPackage as C, type InspectTileflowIconCatalogsOptions as I, type PreparedTileflowBuildCatalog as P, type TileflowRenderedIcon as T, type TileflowIconCompilationTarget as a, type CompileTileflowIconPackagesResult as b, type CompiledTileflowIconPackageFile as c, type PreparedTileflowCatalog as d, type TileflowBuildAsset as e, type TileflowIconCatalog as f, type TileflowIconCatalogAtlasRectangle as g, type TileflowIconCatalogIcon as h, type TileflowIconCatalogInspection as i, type TileflowIconCatalogMap as j, type TileflowIconCatalogRenderedDensity as k, type TileflowIconCatalogSourceFormat as l, TileflowIconCompilationError as m, type TileflowIconCompilationIssue as n, type TileflowIconReplacement as o, type TileflowMapIconPackageBinding as p, type TileflowRenderedIconCell as q, type TileflowSourceCatalog as r, compileTileflowIconPackages as s, getTileflowIconWatchPaths as t, iconFileExtensions as u, inspectTileflowIconCatalogs as v, packTileflowRenderedIcons as w, prepareTileflowCatalogIcons as x, readTileflowIconDirectory as y };
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,136 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type TileflowBuildAsset = {
|
|
5
|
-
contentType: string;
|
|
6
|
-
fileName: string;
|
|
7
|
-
source: string | Uint8Array;
|
|
8
|
-
};
|
|
9
|
-
/** Executable authoring input before local sources have been resolved into runtime URLs. */
|
|
10
|
-
type TileflowSourceCatalog = TileflowBuildCatalog;
|
|
11
|
-
declare const preparedTileflowBuildCatalog: unique symbol;
|
|
12
|
-
/** A validated catalog paired with build-owned portable assets. */
|
|
13
|
-
type PreparedTileflowBuildCatalog = TileflowBuildCatalog & {
|
|
14
|
-
readonly [preparedTileflowBuildCatalog]: true;
|
|
15
|
-
};
|
|
16
|
-
type PreparedTileflowCatalog = {
|
|
17
|
-
assets: TileflowBuildAsset[];
|
|
18
|
-
baseDirectory: string;
|
|
19
|
-
cwd: string;
|
|
20
|
-
mapAssets: Record<string, TileflowPreparedMapAssets>;
|
|
21
|
-
mapIconSources: Record<string, readonly TileflowEffectiveIconSourceIdentity[]>;
|
|
22
|
-
project: PreparedTileflowBuildCatalog;
|
|
23
|
-
sourceProject: TileflowSourceCatalog;
|
|
24
|
-
watchPaths: string[];
|
|
25
|
-
};
|
|
26
|
-
type TileflowIconCompilationTarget = 'hosted' | 'local';
|
|
27
|
-
type TileflowIconCompilationIssue = {
|
|
28
|
-
message: string;
|
|
29
|
-
path: string;
|
|
30
|
-
};
|
|
31
|
-
type CompiledTileflowIconPackageFile = {
|
|
32
|
-
contentType: 'application/json' | 'image/png';
|
|
33
|
-
fileName: TileflowIconPackageFileName;
|
|
34
|
-
source: Uint8Array;
|
|
35
|
-
};
|
|
36
|
-
type CompiledTileflowIconPackage = {
|
|
37
|
-
contentHash: string;
|
|
38
|
-
files: CompiledTileflowIconPackageFile[];
|
|
39
|
-
manifest: TileflowIconPackageManifest;
|
|
40
|
-
};
|
|
41
|
-
type TileflowMapIconPackageBinding = {
|
|
42
|
-
iconIds: readonly string[];
|
|
43
|
-
label: string;
|
|
44
|
-
mapName: string;
|
|
45
|
-
packageHash: string;
|
|
46
|
-
};
|
|
47
|
-
type CompileTileflowIconPackagesResult = {
|
|
48
|
-
bindings: TileflowMapIconPackageBinding[];
|
|
49
|
-
packages: CompiledTileflowIconPackage[];
|
|
50
|
-
sourceIdentities: Record<string, readonly TileflowEffectiveIconSourceIdentity[]>;
|
|
51
|
-
watchPaths: string[];
|
|
52
|
-
};
|
|
53
|
-
type InspectTileflowIconCatalogsOptions = {
|
|
54
|
-
baseDirectory?: string;
|
|
55
|
-
cwd: string;
|
|
56
|
-
mapNames?: readonly string[];
|
|
57
|
-
};
|
|
58
|
-
type TileflowIconCatalogSourceFormat = 'jpeg' | 'png' | 'svg' | 'webp';
|
|
59
|
-
type TileflowIconCatalogAtlasRectangle = {
|
|
60
|
-
height: number;
|
|
61
|
-
width: number;
|
|
62
|
-
x: number;
|
|
63
|
-
y: number;
|
|
64
|
-
};
|
|
65
|
-
type TileflowIconCatalogRenderedDensity = {
|
|
66
|
-
atlas: TileflowIconCatalogAtlasRectangle;
|
|
67
|
-
height: number;
|
|
68
|
-
pixelRatio: 1 | 2;
|
|
69
|
-
pixelSha256: string;
|
|
70
|
-
width: number;
|
|
71
|
-
};
|
|
72
|
-
type TileflowIconCatalogIcon = {
|
|
73
|
-
id: string;
|
|
74
|
-
rendered: {
|
|
75
|
-
oneX: TileflowIconCatalogRenderedDensity;
|
|
76
|
-
twoX: TileflowIconCatalogRenderedDensity;
|
|
77
|
-
};
|
|
78
|
-
source: {
|
|
79
|
-
byteLength: number;
|
|
80
|
-
dimensions: {
|
|
81
|
-
height: number;
|
|
82
|
-
width: number;
|
|
83
|
-
} | null;
|
|
84
|
-
format: TileflowIconCatalogSourceFormat;
|
|
85
|
-
path: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
type TileflowIconCatalog = {
|
|
89
|
-
compiledPackage: CompiledTileflowIconPackage;
|
|
90
|
-
directories: string[];
|
|
91
|
-
icons: TileflowIconCatalogIcon[];
|
|
92
|
-
insideWorkingTree: boolean;
|
|
93
|
-
replacements: TileflowIconReplacement[];
|
|
94
|
-
};
|
|
95
|
-
type TileflowIconReplacement = {
|
|
96
|
-
id: string;
|
|
97
|
-
replaced: string;
|
|
98
|
-
winner: string;
|
|
99
|
-
};
|
|
100
|
-
type TileflowIconCatalogMap = {
|
|
101
|
-
name: string;
|
|
102
|
-
icons: {
|
|
103
|
-
directories: string[];
|
|
104
|
-
iconIds: string[];
|
|
105
|
-
kind: 'directories';
|
|
106
|
-
label: string;
|
|
107
|
-
packageHash: string;
|
|
108
|
-
} | {
|
|
109
|
-
kind: 'none';
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
type TileflowIconCatalogInspection = {
|
|
113
|
-
catalogs: TileflowIconCatalog[];
|
|
114
|
-
maps: TileflowIconCatalogMap[];
|
|
115
|
-
};
|
|
116
|
-
declare class TileflowIconCompilationError extends Error {
|
|
117
|
-
readonly code: "ICON_INVALID";
|
|
118
|
-
readonly issues: TileflowIconCompilationIssue[];
|
|
119
|
-
readonly phase: "icon-compilation";
|
|
120
|
-
constructor(issues: TileflowIconCompilationIssue[]);
|
|
121
|
-
}
|
|
122
|
-
declare const iconFileExtensions: Set<string>;
|
|
123
|
-
declare function compileTileflowIconPackages(project: TileflowBuildCatalog, options: {
|
|
124
|
-
baseDirectory?: string;
|
|
125
|
-
cwd: string;
|
|
126
|
-
target: TileflowIconCompilationTarget;
|
|
127
|
-
}): Promise<CompileTileflowIconPackagesResult>;
|
|
128
|
-
declare function inspectTileflowIconCatalogs(project: TileflowBuildCatalog, options: InspectTileflowIconCatalogsOptions): Promise<TileflowIconCatalogInspection>;
|
|
129
|
-
declare function prepareTileflowCatalogIcons(project: TileflowBuildCatalog, options: {
|
|
130
|
-
assetBaseUrl: string;
|
|
131
|
-
baseDirectory?: string;
|
|
132
|
-
cwd: string;
|
|
133
|
-
}): Promise<PreparedTileflowCatalog>;
|
|
134
|
-
declare function getTileflowIconWatchPaths(project: TileflowBuildCatalog, cwd: string, baseDirectory?: string): Promise<string[]>;
|
|
135
|
-
|
|
136
|
-
export { type CompileTileflowIconPackagesResult, type CompiledTileflowIconPackage, type CompiledTileflowIconPackageFile, type InspectTileflowIconCatalogsOptions, type PreparedTileflowBuildCatalog, type PreparedTileflowCatalog, type TileflowBuildAsset, type TileflowIconCatalog, type TileflowIconCatalogAtlasRectangle, type TileflowIconCatalogIcon, type TileflowIconCatalogInspection, type TileflowIconCatalogMap, type TileflowIconCatalogRenderedDensity, type TileflowIconCatalogSourceFormat, TileflowIconCompilationError, type TileflowIconCompilationIssue, type TileflowIconCompilationTarget, type TileflowIconReplacement, type TileflowMapIconPackageBinding, type TileflowSourceCatalog, compileTileflowIconPackages, getTileflowIconWatchPaths, iconFileExtensions, inspectTileflowIconCatalogs, prepareTileflowCatalogIcons };
|
|
1
|
+
import '@tileflow/core';
|
|
2
|
+
export { b as CompileTileflowIconPackagesResult, C as CompiledTileflowIconPackage, c as CompiledTileflowIconPackageFile, I as InspectTileflowIconCatalogsOptions, P as PreparedTileflowBuildCatalog, d as PreparedTileflowCatalog, e as TileflowBuildAsset, f as TileflowIconCatalog, g as TileflowIconCatalogAtlasRectangle, h as TileflowIconCatalogIcon, i as TileflowIconCatalogInspection, j as TileflowIconCatalogMap, k as TileflowIconCatalogRenderedDensity, l as TileflowIconCatalogSourceFormat, m as TileflowIconCompilationError, n as TileflowIconCompilationIssue, a as TileflowIconCompilationTarget, o as TileflowIconReplacement, p as TileflowMapIconPackageBinding, r as TileflowSourceCatalog, s as compileTileflowIconPackages, t as getTileflowIconWatchPaths, u as iconFileExtensions, v as inspectTileflowIconCatalogs, x as prepareTileflowCatalogIcons, y as readTileflowIconDirectory } from './icons-CkLVtaP-.js';
|
|
3
|
+
import '@tileflow/core/build';
|
package/dist/icons.js
CHANGED
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
getTileflowIconWatchPaths,
|
|
5
5
|
iconFileExtensions,
|
|
6
6
|
inspectTileflowIconCatalogs,
|
|
7
|
-
prepareTileflowCatalogIcons
|
|
8
|
-
|
|
7
|
+
prepareTileflowCatalogIcons,
|
|
8
|
+
readTileflowIconDirectory
|
|
9
|
+
} from "./chunk-NUHSYLLS.js";
|
|
9
10
|
import "./chunk-BL3FK4GO.js";
|
|
10
11
|
export {
|
|
11
12
|
TileflowIconCompilationError,
|
|
@@ -13,5 +14,6 @@ export {
|
|
|
13
14
|
getTileflowIconWatchPaths,
|
|
14
15
|
iconFileExtensions,
|
|
15
16
|
inspectTileflowIconCatalogs,
|
|
16
|
-
prepareTileflowCatalogIcons
|
|
17
|
+
prepareTileflowCatalogIcons,
|
|
18
|
+
readTileflowIconDirectory
|
|
17
19
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,62 @@
|
|
|
1
1
|
export { CreateTileflowArtifactPlanOptions, TileflowArtifactAcquisition, TileflowArtifactDiagnostic, TileflowArtifactFile, TileflowArtifactInputGraph, TileflowArtifactPlan, TileflowArtifactSession, TileflowArtifactSessionOptions, TileflowArtifactSessionState, TileflowBuildArtifacts, TileflowBuildArtifactsOptions, TileflowBuildStyleInspections, TileflowHostedManifestOverwriteError, TileflowLocalTilesetFile, TileflowLocalTilesetProductionError, TileflowManifestOptions, WriteTileflowArtifactPlanOptions, WriteTileflowBuildArtifactsOptions, assertNoLocalTilesetsForProduction, assertTileflowSelfHostedManifestTarget, createTileflowArtifactDiagnostics, createTileflowArtifactPlan, createTileflowArtifactSession, createTileflowBuildArtifacts, createTileflowBuildProvenance, createTileflowManifest, createTileflowStyle, createTileflowStyles, disposeTileflowBuildArtifacts, getTileflowArtifactFiles, getTileflowAssetBasePath, getTileflowAssetFileName, getTileflowWatchPaths, isTileflowArtifactInputPath, joinTileflowPublicUrl, normalizeTileflowBasePath, prepareTileflowLocalTilesets, refreshTileflowArtifactSession, resolveTileflowArtifactPublicUrls, tileflowArtifactInventoryFileName, tileflowArtifactPlanSchemaVersion, tileflowArtifactSessionSchemaVersion, writeTileflowArtifactPlan, writeTileflowBuildArtifacts } from './artifacts.js';
|
|
2
2
|
export { LoadTileflowConfigOptions, LoadedTileflowConfig, TileflowValidationError, assertValidTileflowConfig, defaultTileflowApiUrl, defaultTileflowConfigPath, defaultTileflowManifestPath, getFirstTileflowMapName, getTileflowMapNames, loadTileflowConfig, loadTileflowConfigWithInputs, loadValidTileflowConfig, loadValidTileflowConfigWithInputs } from './config.js';
|
|
3
3
|
export { CompiledTileflowFontBundle, PrepareTileflowStyleFontsOptions, PreparedTileflowStyleFonts, TileflowFontCompilationError, TileflowFontCompilationIssue, TileflowFontCompilationTarget, bindTileflowStyleFontBundle, getTileflowFontWatchPaths, prepareTileflowStyleFonts, replaceTileflowStyleFontSources } from './fonts.js';
|
|
4
|
-
|
|
4
|
+
import { C as CompiledTileflowIconPackage, T as TileflowRenderedIcon, a as TileflowIconCompilationTarget } from './icons-CkLVtaP-.js';
|
|
5
|
+
export { b as CompileTileflowIconPackagesResult, c as CompiledTileflowIconPackageFile, I as InspectTileflowIconCatalogsOptions, P as PreparedTileflowBuildCatalog, d as PreparedTileflowCatalog, e as TileflowBuildAsset, f as TileflowIconCatalog, g as TileflowIconCatalogAtlasRectangle, h as TileflowIconCatalogIcon, i as TileflowIconCatalogInspection, j as TileflowIconCatalogMap, k as TileflowIconCatalogRenderedDensity, l as TileflowIconCatalogSourceFormat, m as TileflowIconCompilationError, n as TileflowIconCompilationIssue, o as TileflowIconReplacement, p as TileflowMapIconPackageBinding, q as TileflowRenderedIconCell, r as TileflowSourceCatalog, s as compileTileflowIconPackages, t as getTileflowIconWatchPaths, u as iconFileExtensions, v as inspectTileflowIconCatalogs, w as packTileflowRenderedIcons, x as prepareTileflowCatalogIcons, y as readTileflowIconDirectory } from './icons-CkLVtaP-.js';
|
|
5
6
|
export { TileflowConfigInspection, TileflowConfigInspectionError, TileflowConfigInspectionOptions, TileflowFeatureInspection, TileflowFeatureInspectionOptions, TileflowInspectedFeature, TileflowInspectedProperty, TileflowMapLineageInspection, TileflowMapMergeProvenance, TileflowResolvedMapInspection, TileflowThemeContractInspection, TileflowThemeDifferenceInspection, TileflowThemeInspection, inspectLoadedTileflowConfig, inspectTileflowConfig, inspectTileflowFeatures, sanitizeTileflowInspectableValue } from './inspect.js';
|
|
6
7
|
export { ResolvedTileflowPreview, TileflowLandmark, TileflowLandmarkArchive, TileflowLandmarkAxisConvention, TileflowLandmarkManifestV2, TileflowLandmarkModel, TileflowPreviewSelection, TileflowPreviewSelectionError, normalizeTileflowLandmarkManifest, readBoundedTileflowJsonResponse, readBoundedTileflowResponse, renderTileflowPreviewHtml, resolveTileflowPreview } from './preview.js';
|
|
7
8
|
export { TileflowComparisonMode, TileflowComparisonOptions, TileflowComparisonRequestHandler, TileflowComparisonSide, TileflowDevRequestHandler, TileflowDevRequestHandlerOptions, createTileflowArtifactStatus, createTileflowComparisonRequestHandler, createTileflowDevRequestHandler, createTileflowNodeRequest, getTileflowRequestPath, getTileflowStyleInspectionSelection, getTileflowStyleSelection, isTileflowRequestUrl, tileflowComparisonSchemaVersion, writeTileflowNodeResponse } from './server.js';
|
|
8
9
|
export { T as TileflowLocalTilesetInspection, a as TileflowTilesetInspectionV1, b as TileflowTilesetInspectionWarning, i as inspectTileflowPmtiles, c as inspectTileflowPmtilesForLocalUse } from './tilesets-C0tGeenP.js';
|
|
9
10
|
export { TileflowCommandFailureDocument, TileflowCommandSummary, TileflowDiagnosticSeverity, TileflowStructuredDiagnostic, TileflowStyleValidationError, TileflowStyleValidationIssue, assertValidTileflowStyle, createTileflowCommandFailureDocument, createTileflowCommandSummary, createTileflowStructuredDiagnostics, sanitizeDiagnosticSecrets, serializeTileflowCommandDocument, tileflowCommandDocumentSchemaVersion, validateTileflowStyle } from './validation.js';
|
|
10
|
-
import '@tileflow/core';
|
|
11
|
-
import '@tileflow/core/build';
|
|
11
|
+
import { TileflowIconSetPin, TileflowIconCompositionV1, TileflowIconSource, TileflowIconsLockfileV1 } from '@tileflow/core';
|
|
12
|
+
import { TileflowEffectiveIconSourceIdentity } from '@tileflow/core/build';
|
|
12
13
|
import '@tileflow/core/manifest';
|
|
13
14
|
import 'node:http';
|
|
15
|
+
|
|
16
|
+
type VerifiedTileflowIconArtifact = {
|
|
17
|
+
package: CompiledTileflowIconPackage;
|
|
18
|
+
icons: TileflowRenderedIcon[];
|
|
19
|
+
};
|
|
20
|
+
/** Verify exact compressed bytes and independently decode/hash every cell at both densities. */
|
|
21
|
+
declare function verifyTileflowIconArtifact(input: CompiledTileflowIconPackage): Promise<VerifiedTileflowIconArtifact>;
|
|
22
|
+
|
|
23
|
+
type TileflowIconCacheOptions = {
|
|
24
|
+
/** Parent of the versioned tileflow/icons/v1 cache, not a serialized lock setting. */
|
|
25
|
+
cacheRoot?: string;
|
|
26
|
+
offline?: boolean;
|
|
27
|
+
/** Trusted application configuration. A lock cannot extend this allowlist. */
|
|
28
|
+
deliveryOrigins?: readonly string[];
|
|
29
|
+
fetch?: typeof globalThis.fetch;
|
|
30
|
+
signal?: AbortSignal;
|
|
31
|
+
};
|
|
32
|
+
declare function getTileflowIconCacheDirectory(options?: Pick<TileflowIconCacheOptions, 'cacheRoot'>): string;
|
|
33
|
+
/** Read and verify an exact pin; a cache miss never resolves a newer version. */
|
|
34
|
+
declare function loadTileflowIconSetArtifact(input: TileflowIconSetPin, options?: TileflowIconCacheOptions): Promise<VerifiedTileflowIconArtifact>;
|
|
35
|
+
/** Seed or repair a disposable cache using verified generated bytes, never original artwork. */
|
|
36
|
+
declare function storeTileflowIconSetArtifact(input: TileflowIconSetPin, artifact: CompiledTileflowIconPackage, options?: Pick<TileflowIconCacheOptions, 'cacheRoot'>): Promise<VerifiedTileflowIconArtifact>;
|
|
37
|
+
|
|
38
|
+
type ComposeTileflowIconSourcesOptions = TileflowIconCacheOptions & {
|
|
39
|
+
cwd: string;
|
|
40
|
+
baseDirectory?: string;
|
|
41
|
+
lock?: unknown;
|
|
42
|
+
target?: TileflowIconCompilationTarget;
|
|
43
|
+
};
|
|
44
|
+
type TileflowComposedIconSources = {
|
|
45
|
+
package: CompiledTileflowIconPackage | null;
|
|
46
|
+
composition: TileflowIconCompositionV1 | null;
|
|
47
|
+
sourceIdentities: TileflowEffectiveIconSourceIdentity[];
|
|
48
|
+
replacements: Array<{
|
|
49
|
+
id: string;
|
|
50
|
+
replaced: number;
|
|
51
|
+
winner: number;
|
|
52
|
+
}>;
|
|
53
|
+
watchPaths: string[];
|
|
54
|
+
};
|
|
55
|
+
/** Foundational build port. Registry and command integration are intentionally separate. */
|
|
56
|
+
declare function composeTileflowIconSources(input: readonly TileflowIconSource[], options: ComposeTileflowIconSourcesOptions): Promise<TileflowComposedIconSources>;
|
|
57
|
+
|
|
58
|
+
declare function readTileflowIconsLockfile(baseDirectory: string, sources?: readonly TileflowIconSource[]): Promise<TileflowIconsLockfileV1>;
|
|
59
|
+
/** Compare-and-swap the whole lock. Never rewrite executable config or lose another writer's pin. */
|
|
60
|
+
declare function writeTileflowIconsLockfile(baseDirectory: string, input: TileflowIconsLockfileV1, expectedContents: string | null): Promise<void>;
|
|
61
|
+
|
|
62
|
+
export { CompiledTileflowIconPackage, type ComposeTileflowIconSourcesOptions, type TileflowComposedIconSources, type TileflowIconCacheOptions, TileflowIconCompilationTarget, TileflowRenderedIcon, type VerifiedTileflowIconArtifact, composeTileflowIconSources, getTileflowIconCacheDirectory, loadTileflowIconSetArtifact, readTileflowIconsLockfile, storeTileflowIconSetArtifact, verifyTileflowIconArtifact, writeTileflowIconsLockfile };
|