@wildshard/shard-format 0.41.1 → 0.43.0
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/package.json +2 -1
- package/src/format/boot-memory-cost.ts +3 -3
- package/src/format/fur-strands.ts +62 -0
- package/src/format/materialFamilies.ts +12 -6
- package/src/format/memory-armed.json +22 -22
- package/src/format/modes.ts +50 -1
- package/src/format/outputIndex.ts +4 -3
- package/src/format/rows.ts +7 -3
- package/src/format/shardSchema.ts +12 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildshard/shard-format",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "The raw shardfile format: the spec, the validator and a validate CLI. The public, versioned contract every other repo builds on.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -126,6 +126,7 @@
|
|
|
126
126
|
"./detail-layer": "./src/format/detail-layer.ts",
|
|
127
127
|
"./pbr-emissive": "./src/format/pbr-emissive.ts",
|
|
128
128
|
"./pbr-fur": "./src/format/pbr-fur.ts",
|
|
129
|
+
"./fur-strands": "./src/format/fur-strands.ts",
|
|
129
130
|
"./scene-render": "./src/format/scene-render.ts",
|
|
130
131
|
"./look-sky": "./src/format/look-sky.ts",
|
|
131
132
|
"./directorDocument": "./src/format/directorDocument.ts",
|
|
@@ -27,18 +27,18 @@ interface BootMemoryCosts {
|
|
|
27
27
|
/** MG6 epoch 4: what the offline estimate reads of a product, in bytes; from epoch 5 only the files a phone fetches. */
|
|
28
28
|
interface PhoneTerms {
|
|
29
29
|
/** Every phone-tier client file's wire bytes plus its CPU-decoded bytes (audio aside), the commons the same way, and,
|
|
30
|
-
* for a
|
|
30
|
+
* for a shard with no runtime, the decoded engine images the cook mounts: what a boot downloads and decodes. */
|
|
31
31
|
readonly content: number
|
|
32
32
|
/** GPU texture bytes: image and KTX2 files, commons GPU and mounted images; zero for a runtime home, whose `gl` stands
|
|
33
33
|
* in (its files carry every tier's variants: Pine ships 704 MB of texture bytes and holds 65 MB on a phone at Low). */
|
|
34
34
|
readonly textures: number
|
|
35
|
-
/** A runtime home's paired GL reading [L]; zero for a
|
|
35
|
+
/** A runtime home's paired GL reading [L]; zero for a shard with no runtime. */
|
|
36
36
|
readonly gl: number
|
|
37
37
|
/** GPU geometry bytes: GLB and binary files. */
|
|
38
38
|
readonly geometry: number
|
|
39
39
|
/** The shard's own declared sim residency at its growth limit (`budgets.sim`, `serverBudget.memory`). */
|
|
40
40
|
readonly sims: number
|
|
41
|
-
/** A runtime home's paired Simulator WebContent + GL reading, whole; zero for a
|
|
41
|
+
/** A runtime home's paired Simulator WebContent + GL reading, whole; zero for a shard with no runtime. */
|
|
42
42
|
readonly runtimeReading: number
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A creature surface's fur grain (meta ONE-FORMAT OF3c2): the tileable strand albedo and normal texture the engine's
|
|
3
|
+
* creature factory draws its fur with (`AnimalFactory` `makeFurCanvases`), given as its numbers, so a `platform.skin`
|
|
4
|
+
* look made by the kit carries the same grain at no byte cost. The texture runs along the mesh's UVs (one repeat per
|
|
5
|
+
* 0.32 m of a lofted body); the toon family multiplies its colour by the albedo, the PBR family takes both maps.
|
|
6
|
+
*
|
|
7
|
+
* - `seed`: the texture's seed (the factory's per-kind `texSeed`).
|
|
8
|
+
* - `contrast`: how far the strands swing the albedo; `grizzle`: pale guard-hair streaks; `bristle`: coarse mottling.
|
|
9
|
+
* - `normalStrength`: the strand relief in the normal map; `strandLen`: strand segments per repeat along V.
|
|
10
|
+
* - `root`: how much darker each strand is at its root than at its tip.
|
|
11
|
+
*
|
|
12
|
+
* Absent: none, as before (no default is filled, so older shard files keep their bytes). Plain data, no three.js.
|
|
13
|
+
*/
|
|
14
|
+
import {
|
|
15
|
+
exactOptional,
|
|
16
|
+
finite,
|
|
17
|
+
integer,
|
|
18
|
+
maxValue,
|
|
19
|
+
minValue,
|
|
20
|
+
number,
|
|
21
|
+
pipe,
|
|
22
|
+
strictObject,
|
|
23
|
+
} from 'valibot'
|
|
24
|
+
|
|
25
|
+
import type { ExactOptionalSchema, GenericSchema } from 'valibot'
|
|
26
|
+
|
|
27
|
+
interface FurStrands {
|
|
28
|
+
seed: number
|
|
29
|
+
contrast: number
|
|
30
|
+
grizzle: number
|
|
31
|
+
normalStrength: number
|
|
32
|
+
bristle: number
|
|
33
|
+
strandLen: number
|
|
34
|
+
root: number
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const NONE = 0
|
|
38
|
+
const FULL = 1
|
|
39
|
+
const CONTRAST_MAX = 2
|
|
40
|
+
const RELIEF_MAX = 8
|
|
41
|
+
const SEED_MAX = 2_147_483_647
|
|
42
|
+
const STRANDS_MIN = 1
|
|
43
|
+
const STRANDS_MAX = 64
|
|
44
|
+
|
|
45
|
+
const real = pipe(number(), finite())
|
|
46
|
+
const unit = pipe(real, minValue(NONE), maxValue(FULL))
|
|
47
|
+
const FurStrandsSchema: GenericSchema<FurStrands, FurStrands> = strictObject({
|
|
48
|
+
seed: pipe(real, integer(), minValue(NONE), maxValue(SEED_MAX)),
|
|
49
|
+
contrast: pipe(real, minValue(NONE), maxValue(CONTRAST_MAX)),
|
|
50
|
+
grizzle: unit,
|
|
51
|
+
normalStrength: pipe(real, minValue(NONE), maxValue(RELIEF_MAX)),
|
|
52
|
+
bristle: unit,
|
|
53
|
+
strandLen: pipe(real, minValue(STRANDS_MIN), maxValue(STRANDS_MAX)),
|
|
54
|
+
root: unit,
|
|
55
|
+
})
|
|
56
|
+
/** The toon and PBR families' optional `strands` key. */
|
|
57
|
+
const furStrands: ExactOptionalSchema<
|
|
58
|
+
GenericSchema<FurStrands, FurStrands>,
|
|
59
|
+
undefined
|
|
60
|
+
> = exactOptional(FurStrandsSchema)
|
|
61
|
+
|
|
62
|
+
export { FurStrandsSchema, furStrands, type FurStrands }
|
|
@@ -19,6 +19,8 @@ import { detailLayer } from './detail-layer.ts';
|
|
|
19
19
|
import type { DetailLayer } from './detail-layer.ts';
|
|
20
20
|
import { pbrEmissive, pbrEmissiveIntensity } from './pbr-emissive.ts';
|
|
21
21
|
import { pbrRim, pbrSheen } from './pbr-fur.ts';
|
|
22
|
+
import { furStrands } from './fur-strands.ts';
|
|
23
|
+
import type { FurStrands } from './fur-strands.ts';
|
|
22
24
|
import type { PbrSheen } from './pbr-fur.ts';
|
|
23
25
|
import { emissiveCard, emissiveMotion, surfaceBlend, surfaceDepthOffset, surfaceOpacity, surfaceSway, surfaceSwing, surfaceUvScroll } from './scene-render.ts';
|
|
24
26
|
import type { CardMotion, SurfaceSway } from './scene-render.ts';
|
|
@@ -68,7 +70,7 @@ export const ToonLookSchema: v.GenericSchema<ToonLookParamsInput, ToonLookParams
|
|
|
68
70
|
|
|
69
71
|
|
|
70
72
|
/** One toon surface: flat-shaded, vertex-coloured facets by default (no textures). */
|
|
71
|
-
export const ToonMaterialSchema: v.StrictObjectSchema<{ readonly family: v.GenericSchema<ToonMaterialParamsInput['family'], ToonMaterialParams['family']>; readonly colour: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['colour'], undefined>, ToonMaterialParams['colour']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['colour'], undefined>>>; readonly vertexColours: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['vertexColours'], undefined>, ToonMaterialParams['vertexColours']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['vertexColours'], undefined>>>; readonly faceted: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['faceted'], undefined>, ToonMaterialParams['faceted']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['faceted'], undefined>>>; readonly doubleSided: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['doubleSided'], undefined>, ToonMaterialParams['doubleSided']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['doubleSided'], undefined>>>; readonly roughness: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['roughness'], undefined>, ToonMaterialParams['roughness']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['roughness'], undefined>>>; readonly metalness: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['metalness'], undefined>, ToonMaterialParams['metalness']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['metalness'], undefined>>>; }, undefined> = v.strictObject({
|
|
73
|
+
export const ToonMaterialSchema: v.StrictObjectSchema<{ readonly family: v.GenericSchema<ToonMaterialParamsInput['family'], ToonMaterialParams['family']>; readonly colour: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['colour'], undefined>, ToonMaterialParams['colour']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['colour'], undefined>>>; readonly vertexColours: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['vertexColours'], undefined>, ToonMaterialParams['vertexColours']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['vertexColours'], undefined>>>; readonly faceted: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['faceted'], undefined>, ToonMaterialParams['faceted']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['faceted'], undefined>>>; readonly doubleSided: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['doubleSided'], undefined>, ToonMaterialParams['doubleSided']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['doubleSided'], undefined>>>; readonly roughness: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['roughness'], undefined>, ToonMaterialParams['roughness']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['roughness'], undefined>>>; readonly metalness: v.OptionalSchema<v.GenericSchema<Exclude<ToonMaterialParamsInput['metalness'], undefined>, ToonMaterialParams['metalness']>, MaterialSchemaDefault<Exclude<ToonMaterialParamsInput['metalness'], undefined>>>; readonly strands: typeof furStrands; }, undefined> = v.strictObject({
|
|
72
74
|
family: v.literal('toon'),
|
|
73
75
|
/** sRGB, multiplies the vertex colours */
|
|
74
76
|
colour: v.optional(srgb, [1, 1, 1]),
|
|
@@ -78,6 +80,8 @@ export const ToonMaterialSchema: v.StrictObjectSchema<{ readonly family: v.Gener
|
|
|
78
80
|
doubleSided: v.optional(v.boolean(), true),
|
|
79
81
|
roughness: v.optional(unit, 0.88),
|
|
80
82
|
metalness: v.optional(unit, 0),
|
|
83
|
+
/** OF3c2: the fur grain (fur-strands.ts) */
|
|
84
|
+
strands: furStrands,
|
|
81
85
|
});
|
|
82
86
|
/** A toon material entry with every default filled. */
|
|
83
87
|
|
|
@@ -214,7 +218,7 @@ export function measureUv(role: MeasureRole, u: number, up: number, w: number, h
|
|
|
214
218
|
}
|
|
215
219
|
|
|
216
220
|
/** One PBR surface: metal / rough with colour, normal and packed ORM maps (occlusion r, roughness g, metalness b). */
|
|
217
|
-
export const PbrMaterialSchema: v.StrictObjectSchema<{ readonly family: v.GenericSchema<PbrMaterialParamsInput['family'], PbrMaterialParams['family']>; readonly colour: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['colour'], undefined>, PbrMaterialParams['colour']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['colour'], undefined>>>; readonly roughness: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['roughness'], undefined>, PbrMaterialParams['roughness']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['roughness'], undefined>>>; readonly metalness: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['metalness'], undefined>, PbrMaterialParams['metalness']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['metalness'], undefined>>>; readonly maps: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['maps'], undefined>, PbrMaterialParams['maps']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['maps'], undefined>>>; readonly normalScale: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['normalScale'], undefined>, PbrMaterialParams['normalScale']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['normalScale'], undefined>>>; readonly occlusion: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['occlusion'], undefined>, PbrMaterialParams['occlusion']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['occlusion'], undefined>>>; readonly envStrength: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['envStrength'], undefined>, PbrMaterialParams['envStrength']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['envStrength'], undefined>>>; readonly vertexColours: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['vertexColours'], undefined>, PbrMaterialParams['vertexColours']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['vertexColours'], undefined>>>; readonly faceted: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['faceted'], undefined>, PbrMaterialParams['faceted']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['faceted'], undefined>>>; readonly doubleSided: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['doubleSided'], undefined>, PbrMaterialParams['doubleSided']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['doubleSided'], undefined>>>; readonly alphaCutoff: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['alphaCutoff'], undefined>, PbrMaterialParams['alphaCutoff']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['alphaCutoff'], undefined>>>; readonly ground: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['ground'], undefined>, PbrMaterialParams['ground']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['ground'], undefined>>>; readonly measure: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['measure'], undefined>, PbrMaterialParams['measure']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['measure'], undefined>>>; readonly detail: typeof detailLayer; readonly emissive: typeof pbrEmissive; readonly emissiveIntensity: typeof pbrEmissiveIntensity; readonly sheen: typeof pbrSheen; readonly rim: typeof pbrRim; readonly blend: typeof surfaceBlend; readonly opacity: typeof surfaceOpacity; readonly depthOffset: typeof surfaceDepthOffset; readonly sway: typeof surfaceSway; readonly uvScroll: typeof surfaceUvScroll; readonly swing: typeof surfaceSwing; }, undefined> = v.strictObject({
|
|
221
|
+
export const PbrMaterialSchema: v.StrictObjectSchema<{ readonly family: v.GenericSchema<PbrMaterialParamsInput['family'], PbrMaterialParams['family']>; readonly colour: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['colour'], undefined>, PbrMaterialParams['colour']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['colour'], undefined>>>; readonly roughness: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['roughness'], undefined>, PbrMaterialParams['roughness']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['roughness'], undefined>>>; readonly metalness: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['metalness'], undefined>, PbrMaterialParams['metalness']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['metalness'], undefined>>>; readonly maps: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['maps'], undefined>, PbrMaterialParams['maps']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['maps'], undefined>>>; readonly normalScale: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['normalScale'], undefined>, PbrMaterialParams['normalScale']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['normalScale'], undefined>>>; readonly occlusion: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['occlusion'], undefined>, PbrMaterialParams['occlusion']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['occlusion'], undefined>>>; readonly envStrength: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['envStrength'], undefined>, PbrMaterialParams['envStrength']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['envStrength'], undefined>>>; readonly vertexColours: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['vertexColours'], undefined>, PbrMaterialParams['vertexColours']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['vertexColours'], undefined>>>; readonly faceted: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['faceted'], undefined>, PbrMaterialParams['faceted']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['faceted'], undefined>>>; readonly doubleSided: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['doubleSided'], undefined>, PbrMaterialParams['doubleSided']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['doubleSided'], undefined>>>; readonly alphaCutoff: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['alphaCutoff'], undefined>, PbrMaterialParams['alphaCutoff']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['alphaCutoff'], undefined>>>; readonly ground: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['ground'], undefined>, PbrMaterialParams['ground']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['ground'], undefined>>>; readonly measure: v.OptionalSchema<v.GenericSchema<Exclude<PbrMaterialParamsInput['measure'], undefined>, PbrMaterialParams['measure']>, MaterialSchemaDefault<Exclude<PbrMaterialParamsInput['measure'], undefined>>>; readonly detail: typeof detailLayer; readonly emissive: typeof pbrEmissive; readonly emissiveIntensity: typeof pbrEmissiveIntensity; readonly sheen: typeof pbrSheen; readonly rim: typeof pbrRim; readonly strands: typeof furStrands; readonly blend: typeof surfaceBlend; readonly opacity: typeof surfaceOpacity; readonly depthOffset: typeof surfaceDepthOffset; readonly sway: typeof surfaceSway; readonly uvScroll: typeof surfaceUvScroll; readonly swing: typeof surfaceSwing; }, undefined> = v.strictObject({
|
|
218
222
|
family: v.literal('pbr'),
|
|
219
223
|
/** sRGB, multiplies the colour map */
|
|
220
224
|
colour: v.optional(srgb, [1, 1, 1]),
|
|
@@ -248,6 +252,8 @@ export const PbrMaterialSchema: v.StrictObjectSchema<{ readonly family: v.Generi
|
|
|
248
252
|
sheen: pbrSheen,
|
|
249
253
|
/** OF27b: a fur's backlit rim colour (linear); absent = none */
|
|
250
254
|
rim: pbrRim,
|
|
255
|
+
/** OF3c2: the fur grain (fur-strands.ts) */
|
|
256
|
+
strands: furStrands,
|
|
251
257
|
/** AP10: 'alpha' draws it see-through after the opaque world (a stencil, a decal); absent = opaque */
|
|
252
258
|
blend: surfaceBlend,
|
|
253
259
|
/** AP10: the alpha blend's scale; absent = 1 */
|
|
@@ -569,16 +575,16 @@ type MaterialSchemaDefault<T> = Exclude<v.Default<v.GenericSchema<T>, undefined>
|
|
|
569
575
|
/** Admitted material data independent of validator implementation metadata. */
|
|
570
576
|
export interface ToonLookParamsInput { faceEdge?: [number, number] | undefined; shadowEdge?: [number, number] | undefined; litGrade?: number | undefined; shadeGrade?: number | undefined; lift?: [number, number, number] | undefined; rim?: [number, number, number] | undefined; terminator?: [number, number, number] | undefined; glossBelow?: number | undefined; cloudShade?: { strength: number; scale: number; wind: [number, number]; } | undefined; caustics?: { level: (number) | null; strength: number; } | undefined; }
|
|
571
577
|
export interface ToonLookParams { faceEdge: [number, number]; shadowEdge: [number, number]; litGrade: number; shadeGrade: number; lift: [number, number, number]; rim: [number, number, number]; terminator: [number, number, number]; glossBelow: number; cloudShade: { strength: number; scale: number; wind: [number, number]; }; caustics: { level: (number) | null; strength: number; }; }
|
|
572
|
-
export interface ToonMaterialParamsInput { family: 'toon'; colour?: [number, number, number] | undefined; vertexColours?: boolean | undefined; faceted?: boolean | undefined; doubleSided?: boolean | undefined; roughness?: number | undefined; metalness?: number | undefined; }
|
|
578
|
+
export interface ToonMaterialParamsInput { family: 'toon'; colour?: [number, number, number] | undefined; vertexColours?: boolean | undefined; faceted?: boolean | undefined; doubleSided?: boolean | undefined; roughness?: number | undefined; metalness?: number | undefined; strands?: FurStrands; }
|
|
573
579
|
// oxlint-disable-next-line typescript/consistent-type-definitions -- Graph admission requires the material alias's implicit dictionary compatibility.
|
|
574
|
-
export type ToonMaterialParams = { family: 'toon'; colour: [number, number, number]; vertexColours: boolean; faceted: boolean; doubleSided: boolean; roughness: number; metalness: number; };
|
|
580
|
+
export type ToonMaterialParams = { family: 'toon'; colour: [number, number, number]; vertexColours: boolean; faceted: boolean; doubleSided: boolean; roughness: number; metalness: number; strands?: FurStrands; };
|
|
575
581
|
export interface GroundLayerParamsInput { wind?: [number, number] | undefined; wavelength?: [number, number] | undefined; lump?: number | undefined; depth?: [number, number] | undefined; relief?: [number, number, number] | undefined; contrast?: { near: number; far: number; window: [number, number]; strength: number; } | undefined; fade?: [number, number] | undefined; slip?: [number, number] | undefined; flat?: [number, number] | undefined; patches?: { floor: number; near: number; window: [number, number]; } | undefined; grain?: { map: (string) | null; mean: number; glintMean: number; strength: number; } | undefined; macro?: [[number, number, number], [number, number, number]] | undefined; albedo?: number | undefined; streaks?: { tint: [number, number, number]; amount: number; } | undefined; trail?: ({ map: string; rect: [number, number, number, number]; ripples: number; tint: [number, number, number]; amount: number; }) | null | undefined; keyShadow?: ({ map: string; rect: [number, number, number, number]; edge: [number, number]; floor: number; }) | null | undefined; terminator?: number | undefined; crest?: { band: [number, number]; gain: number; } | undefined; sheen?: number | undefined; shade?: { tint: [number, number, number]; gain: number; lift: [number, number, number]; amount: number; edge: number; floor: [number, number, number]; } | undefined; saturation?: { flat: number; facing: number; coolTint: [number, number, number]; keep: number; } | undefined; away?: { from: [number, number]; amount: number; } | undefined; pools?: ({ low: [number, number, number]; high: [number, number, number]; split: number; radius: number; gain: number; source?: string; }) | null | undefined; }
|
|
576
582
|
export interface GroundLayerParams { wind: [number, number]; wavelength: [number, number]; lump: number; depth: [number, number]; relief: [number, number, number]; contrast: { near: number; far: number; window: [number, number]; strength: number; }; fade: [number, number]; slip: [number, number]; flat: [number, number]; patches: { floor: number; near: number; window: [number, number]; }; grain: { map: (string) | null; mean: number; glintMean: number; strength: number; }; macro: [[number, number, number], [number, number, number]]; albedo: number; streaks: { tint: [number, number, number]; amount: number; }; trail: ({ map: string; rect: [number, number, number, number]; ripples: number; tint: [number, number, number]; amount: number; }) | null; keyShadow: ({ map: string; rect: [number, number, number, number]; edge: [number, number]; floor: number; }) | null; terminator: number; crest: { band: [number, number]; gain: number; }; sheen: number; shade: { tint: [number, number, number]; gain: number; lift: [number, number, number]; amount: number; edge: number; floor: [number, number, number]; }; saturation: { flat: number; facing: number; coolTint: [number, number, number]; keep: number; }; away: { from: [number, number]; amount: number; }; pools: ({ low: [number, number, number]; high: [number, number, number]; split: number; radius: number; gain: number; source?: string; }) | null; }
|
|
577
583
|
export interface MeasureLayerParamsInput { structure?: [number, number, number] | undefined; trim?: [number, number, number] | undefined; floor?: [number, number, number] | undefined; line?: { colour: [number, number, number]; alpha: number; floorAlpha: number; width: number; } | undefined; sub?: { step: number; alpha: number; } | undefined; label?: { colour: [number, number, number]; height: number; } | undefined; lift?: number | undefined; tint?: [number, number, number]; grain?: { amount: [number, number, number]; size: number; }; grid?: [number, number, number]; }
|
|
578
584
|
export interface MeasureLayerParams { structure: [number, number, number]; trim: [number, number, number]; floor: [number, number, number]; line: { colour: [number, number, number]; alpha: number; floorAlpha: number; width: number; }; sub: { step: number; alpha: number; }; label: { colour: [number, number, number]; height: number; }; lift: number; tint?: [number, number, number]; grain?: { amount: [number, number, number]; size: number; }; grid?: [number, number, number]; }
|
|
579
|
-
export interface PbrMaterialParamsInput { family: 'pbr'; colour?: [number, number, number] | undefined; roughness?: number | undefined; metalness?: number | undefined; maps?: { colour: (string) | null; normal: (string) | null; orm: (string) | null; } | undefined; normalScale?: number | undefined; occlusion?: number | undefined; envStrength?: number | undefined; vertexColours?: boolean | undefined; faceted?: boolean | undefined; doubleSided?: boolean | undefined; alphaCutoff?: number | undefined; ground?: (GroundLayerParamsInput) | null | undefined; measure?: (MeasureLayerParamsInput) | null | undefined; detail?: DetailLayer; emissive?: [number, number, number]; emissiveIntensity?: number; sheen?: PbrSheen; rim?: [number, number, number]; blend?: 'opaque' | 'alpha'; opacity?: number; depthOffset?: number; sway?: SurfaceSway; uvScroll?: [number, number]; swing?: true; }
|
|
585
|
+
export interface PbrMaterialParamsInput { family: 'pbr'; colour?: [number, number, number] | undefined; roughness?: number | undefined; metalness?: number | undefined; maps?: { colour: (string) | null; normal: (string) | null; orm: (string) | null; } | undefined; normalScale?: number | undefined; occlusion?: number | undefined; envStrength?: number | undefined; vertexColours?: boolean | undefined; faceted?: boolean | undefined; doubleSided?: boolean | undefined; alphaCutoff?: number | undefined; ground?: (GroundLayerParamsInput) | null | undefined; measure?: (MeasureLayerParamsInput) | null | undefined; detail?: DetailLayer; emissive?: [number, number, number]; emissiveIntensity?: number; sheen?: PbrSheen; rim?: [number, number, number]; strands?: FurStrands; blend?: 'opaque' | 'alpha'; opacity?: number; depthOffset?: number; sway?: SurfaceSway; uvScroll?: [number, number]; swing?: true; }
|
|
580
586
|
// oxlint-disable-next-line typescript/consistent-type-definitions -- Graph admission requires the material alias's implicit dictionary compatibility.
|
|
581
|
-
export type PbrMaterialParams = { family: 'pbr'; colour: [number, number, number]; roughness: number; metalness: number; maps: { colour: (string) | null; normal: (string) | null; orm: (string) | null; }; normalScale: number; occlusion: number; envStrength: number; vertexColours: boolean; faceted: boolean; doubleSided: boolean; alphaCutoff: number; ground: (GroundLayerParams) | null; measure: (MeasureLayerParams) | null; detail?: DetailLayer; emissive?: [number, number, number]; emissiveIntensity?: number; sheen?: PbrSheen; rim?: [number, number, number]; blend?: 'opaque' | 'alpha'; opacity?: number; depthOffset?: number; sway?: SurfaceSway; uvScroll?: [number, number]; swing?: true; };
|
|
587
|
+
export type PbrMaterialParams = { family: 'pbr'; colour: [number, number, number]; roughness: number; metalness: number; maps: { colour: (string) | null; normal: (string) | null; orm: (string) | null; }; normalScale: number; occlusion: number; envStrength: number; vertexColours: boolean; faceted: boolean; doubleSided: boolean; alphaCutoff: number; ground: (GroundLayerParams) | null; measure: (MeasureLayerParams) | null; detail?: DetailLayer; emissive?: [number, number, number]; emissiveIntensity?: number; sheen?: PbrSheen; rim?: [number, number, number]; strands?: FurStrands; blend?: 'opaque' | 'alpha'; opacity?: number; depthOffset?: number; sway?: SurfaceSway; uvScroll?: [number, number]; swing?: true; };
|
|
582
588
|
export interface GradeParamsInput { exposure?: number | undefined; gain?: number | undefined; shoulder?: number | undefined; saturation?: number | undefined; shadowTint?: [number, number, number] | undefined; lightTint?: [number, number, number] | undefined; split?: [number, number] | undefined; contrast?: number | undefined; lookSaturation?: number | undefined; }
|
|
583
589
|
export interface GradeParams { exposure: number; gain: number; shoulder: number; saturation: number; shadowTint: [number, number, number]; lightTint: [number, number, number]; split: [number, number]; contrast: number; lookSaturation: number; }
|
|
584
590
|
export interface PainterlyLookParamsInput { shade?: [number, number, number] | undefined; rim?: [number, number, number] | undefined; warm?: number | undefined; floor?: number | undefined; wet?: number | undefined; wind?: { direction: [number, number]; strength: number; } | undefined; grade?: (GradeParamsInput) | null | undefined; }
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"epoch": 8,
|
|
12
12
|
"playingBytes": 679221837,
|
|
13
13
|
"loadingBytes": 984731013,
|
|
14
|
-
"evidence": "engine-pinned product revision 6 (tar f42fe0449a93), a
|
|
14
|
+
"evidence": "engine-pinned product revision 6 (tar f42fe0449a93), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
15
15
|
},
|
|
16
16
|
"far-reach": {
|
|
17
17
|
"armed": "2026-11-18",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"epoch": 8,
|
|
20
20
|
"playingBytes": 999952196,
|
|
21
21
|
"loadingBytes": 1415754105,
|
|
22
|
-
"evidence": "engine-pinned product revision 4 (tar 5bc5adcf764a), a
|
|
22
|
+
"evidence": "engine-pinned product revision 4 (tar 5bc5adcf764a), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
23
23
|
},
|
|
24
24
|
"ink-cel-valley": {
|
|
25
25
|
"armed": "2026-11-18",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"epoch": 8,
|
|
28
28
|
"playingBytes": 636979847,
|
|
29
29
|
"loadingBytes": 925290035,
|
|
30
|
-
"evidence": "engine-pinned product revision 1 (tar 5764c86a258a), a
|
|
30
|
+
"evidence": "engine-pinned product revision 1 (tar 5764c86a258a), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
31
31
|
},
|
|
32
32
|
"open-plot-alien-plain": {
|
|
33
33
|
"armed": "2026-11-18",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"epoch": 8,
|
|
36
36
|
"playingBytes": 665173554,
|
|
37
37
|
"loadingBytes": 967392441,
|
|
38
|
-
"evidence": "engine-pinned product revision 1 (tar c32cd9fb9229), a
|
|
38
|
+
"evidence": "engine-pinned product revision 1 (tar c32cd9fb9229), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
39
39
|
},
|
|
40
40
|
"open-plot-clockwork-canyon": {
|
|
41
41
|
"armed": "2026-11-18",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"epoch": 8,
|
|
44
44
|
"playingBytes": 675751489,
|
|
45
45
|
"loadingBytes": 982935896,
|
|
46
|
-
"evidence": "engine-pinned product revision 1 (tar 3b322eccd99e), a
|
|
46
|
+
"evidence": "engine-pinned product revision 1 (tar 3b322eccd99e), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
47
47
|
},
|
|
48
48
|
"open-plot-coral-drift": {
|
|
49
49
|
"armed": "2026-11-18",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"epoch": 8,
|
|
52
52
|
"playingBytes": 681768940,
|
|
53
53
|
"loadingBytes": 992453778,
|
|
54
|
-
"evidence": "engine-pinned product revision 1 (tar 87841749dc3f), a
|
|
54
|
+
"evidence": "engine-pinned product revision 1 (tar 87841749dc3f), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
55
55
|
},
|
|
56
56
|
"open-plot-desert-ruin": {
|
|
57
57
|
"armed": "2026-11-18",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"epoch": 8,
|
|
60
60
|
"playingBytes": 686478807,
|
|
61
61
|
"loadingBytes": 997958716,
|
|
62
|
-
"evidence": "engine-pinned product revision 1 (tar 3b65bfef7275), a
|
|
62
|
+
"evidence": "engine-pinned product revision 1 (tar 3b65bfef7275), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
63
63
|
},
|
|
64
64
|
"open-plot-ember-forge": {
|
|
65
65
|
"armed": "2026-11-18",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"epoch": 8,
|
|
68
68
|
"playingBytes": 679682616,
|
|
69
69
|
"loadingBytes": 987005255,
|
|
70
|
-
"evidence": "engine-pinned product revision 1 (tar e1a3a9325e8e), a
|
|
70
|
+
"evidence": "engine-pinned product revision 1 (tar e1a3a9325e8e), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
71
71
|
},
|
|
72
72
|
"open-plot-fossil-badlands": {
|
|
73
73
|
"armed": "2026-11-18",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"epoch": 8,
|
|
76
76
|
"playingBytes": 671308241,
|
|
77
77
|
"loadingBytes": 976533532,
|
|
78
|
-
"evidence": "engine-pinned product revision 1 (tar 5bbdd51b8db9), a
|
|
78
|
+
"evidence": "engine-pinned product revision 1 (tar 5bbdd51b8db9), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
79
79
|
},
|
|
80
80
|
"open-plot-frostline-peaks": {
|
|
81
81
|
"armed": "2026-11-18",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"epoch": 8,
|
|
84
84
|
"playingBytes": 694731191,
|
|
85
85
|
"loadingBytes": 1007041500,
|
|
86
|
-
"evidence": "engine-pinned product revision 1 (tar ec7b8879a343), a
|
|
86
|
+
"evidence": "engine-pinned product revision 1 (tar ec7b8879a343), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
87
87
|
},
|
|
88
88
|
"open-plot-jungle-ziggurat": {
|
|
89
89
|
"armed": "2026-11-18",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"epoch": 8,
|
|
92
92
|
"playingBytes": 683128342,
|
|
93
93
|
"loadingBytes": 992540003,
|
|
94
|
-
"evidence": "engine-pinned product revision 1 (tar 62fdb3cc7e41), a
|
|
94
|
+
"evidence": "engine-pinned product revision 1 (tar 62fdb3cc7e41), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
95
95
|
},
|
|
96
96
|
"open-plot-lantern-bayou": {
|
|
97
97
|
"armed": "2026-11-18",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"epoch": 8,
|
|
100
100
|
"playingBytes": 679945285,
|
|
101
101
|
"loadingBytes": 989938627,
|
|
102
|
-
"evidence": "engine-pinned product revision 1 (tar 1f9fb1cba098), a
|
|
102
|
+
"evidence": "engine-pinned product revision 1 (tar 1f9fb1cba098), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
103
103
|
},
|
|
104
104
|
"open-plot-mosslight-ruins": {
|
|
105
105
|
"armed": "2026-11-18",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"epoch": 8,
|
|
108
108
|
"playingBytes": 693006386,
|
|
109
109
|
"loadingBytes": 1006944516,
|
|
110
|
-
"evidence": "engine-pinned product revision 1 (tar 19840339238b), a
|
|
110
|
+
"evidence": "engine-pinned product revision 1 (tar 19840339238b), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
111
111
|
},
|
|
112
112
|
"open-plot-night-market": {
|
|
113
113
|
"armed": "2026-11-18",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"epoch": 8,
|
|
116
116
|
"playingBytes": 709180040,
|
|
117
117
|
"loadingBytes": 1028237840,
|
|
118
|
-
"evidence": "engine-pinned product revision 1 (tar d8fe11c2db67), a
|
|
118
|
+
"evidence": "engine-pinned product revision 1 (tar d8fe11c2db67), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
119
119
|
},
|
|
120
120
|
"open-plot-patchwork-fairground": {
|
|
121
121
|
"armed": "2026-11-18",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"epoch": 8,
|
|
124
124
|
"playingBytes": 670516626,
|
|
125
125
|
"loadingBytes": 974863462,
|
|
126
|
-
"evidence": "engine-pinned product revision 1 (tar e517f4814ef6), a
|
|
126
|
+
"evidence": "engine-pinned product revision 1 (tar e517f4814ef6), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
127
127
|
},
|
|
128
128
|
"open-plot-saltwind-lighthouse": {
|
|
129
129
|
"armed": "2026-11-18",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"epoch": 8,
|
|
132
132
|
"playingBytes": 657567209,
|
|
133
133
|
"loadingBytes": 956173411,
|
|
134
|
-
"evidence": "engine-pinned product revision 1 (tar 2e37a04b0c9e), a
|
|
134
|
+
"evidence": "engine-pinned product revision 1 (tar 2e37a04b0c9e), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
135
135
|
},
|
|
136
136
|
"open-plot-sky-harbor": {
|
|
137
137
|
"armed": "2026-11-18",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"epoch": 8,
|
|
140
140
|
"playingBytes": 671985118,
|
|
141
141
|
"loadingBytes": 977835231,
|
|
142
|
-
"evidence": "engine-pinned product revision 1 (tar 9aa4a9839015), a
|
|
142
|
+
"evidence": "engine-pinned product revision 1 (tar 9aa4a9839015), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
143
143
|
},
|
|
144
144
|
"open-plot-sky-race": {
|
|
145
145
|
"armed": "2026-11-18",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"epoch": 8,
|
|
148
148
|
"playingBytes": 671490214,
|
|
149
149
|
"loadingBytes": 977159704,
|
|
150
|
-
"evidence": "engine-pinned product revision 1 (tar a5633d8eee7f), a
|
|
150
|
+
"evidence": "engine-pinned product revision 1 (tar a5633d8eee7f), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
151
151
|
},
|
|
152
152
|
"open-plot-starfall-observatory": {
|
|
153
153
|
"armed": "2026-11-18",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"epoch": 8,
|
|
156
156
|
"playingBytes": 674717033,
|
|
157
157
|
"loadingBytes": 981241332,
|
|
158
|
-
"evidence": "engine-pinned product revision 1 (tar 25331b613be1), a
|
|
158
|
+
"evidence": "engine-pinned product revision 1 (tar 25331b613be1), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
159
159
|
},
|
|
160
160
|
"open-plot-thin-ice": {
|
|
161
161
|
"armed": "2026-11-18",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"epoch": 8,
|
|
164
164
|
"playingBytes": 657896658,
|
|
165
165
|
"loadingBytes": 957357794,
|
|
166
|
-
"evidence": "engine-pinned product revision 1 (tar 4546f70ddac2), a
|
|
166
|
+
"evidence": "engine-pinned product revision 1 (tar 4546f70ddac2), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
167
167
|
},
|
|
168
168
|
"pastel-plain": {
|
|
169
169
|
"armed": "2026-11-18",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"epoch": 8,
|
|
172
172
|
"playingBytes": 636958876,
|
|
173
173
|
"loadingBytes": 925256481,
|
|
174
|
-
"evidence": "engine-pinned product revision 1 (tar e42e2f5f5793), a
|
|
174
|
+
"evidence": "engine-pinned product revision 1 (tar e42e2f5f5793), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
175
175
|
},
|
|
176
176
|
"sunscar-dunes": {
|
|
177
177
|
"armed": "2026-11-18",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"epoch": 8,
|
|
180
180
|
"playingBytes": 772000529,
|
|
181
181
|
"loadingBytes": 1108011593,
|
|
182
|
-
"evidence": "engine-pinned product revision 2 (tar f4a1d611cccc), a
|
|
182
|
+
"evidence": "engine-pinned product revision 2 (tar f4a1d611cccc), a shard with no runtime reading; epoch-8 golden estimate; mini-resweep reads every light zone under both J410 lines standalone"
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
"held": {
|
package/src/format/modes.ts
CHANGED
|
@@ -4,6 +4,33 @@ const finite = v.pipe(v.number(), v.finite());
|
|
|
4
4
|
const range = (low: number, high: number) => v.pipe(finite, v.minValue(low), v.maxValue(high));
|
|
5
5
|
const id = v.pipe(v.string(), v.regex(/^[a-zA-Z0-9_.-]{1,128}$/));
|
|
6
6
|
const point = v.strictObject({ x: range(-250, 250), y: range(-250, 250), z: range(-250, 250) });
|
|
7
|
+
const EYE_MAX = 10;
|
|
8
|
+
const EYE_MIN = 0.1;
|
|
9
|
+
const FOV_MAX = 140;
|
|
10
|
+
const FOV_MIN = 10;
|
|
11
|
+
const HOOKS_MAX = 64;
|
|
12
|
+
const ONE = 1;
|
|
13
|
+
const TOOL_NAME_MAX = 256;
|
|
14
|
+
const TOOL_OWNERS_MAX = 32;
|
|
15
|
+
const toolName = v.pipe(v.string(), v.minLength(ONE), v.maxLength(TOOL_NAME_MAX));
|
|
16
|
+
/** ONE-FORMAT OF41c: a grapple tool's profile as a plain mode row carries it, the native `GrappleProfile` (`grapple.ts`) without
|
|
17
|
+
* its id and course mode, which are the row's own: the course name and clearance, cues, looks, completion fact and
|
|
18
|
+
* headless ids. */
|
|
19
|
+
const grappleOwners = v.pipe(v.array(toolName), v.minLength(ONE), v.maxLength(TOOL_OWNERS_MAX), v.readonly());
|
|
20
|
+
const grappleClearance = v.strictObject({
|
|
21
|
+
axis: v.picklist(['x', 'z']), plane: finite, min: finite, max: finite, base: finite, top: finite, ceiling: finite, owners: grappleOwners,
|
|
22
|
+
});
|
|
23
|
+
const grappleCues = v.strictObject({ fire: toolName, bite: toolName, zip: toolName, reel: toolName, dock: toolName });
|
|
24
|
+
const grappleLooks = v.strictObject({ muzzle: toolName, bite: toolName, dock: toolName, sparks: toolName, ribbon: toolName });
|
|
25
|
+
const grappleFact = v.strictObject({ name: toolName, entity: toolName, source: toolName });
|
|
26
|
+
const eyeRange = range(EYE_MIN, EYE_MAX);
|
|
27
|
+
const grappleHeadless = v.strictObject({ step: toolName, lock: toolName, aim: toolName, eye: eyeRange, aspect: eyeRange,
|
|
28
|
+
portraitFov: range(FOV_MIN, FOV_MAX) });
|
|
29
|
+
const grappleCourse = v.strictObject({ name: toolName, clearance: v.exactOptional(grappleClearance) });
|
|
30
|
+
const grappleTool = v.strictObject({ course: grappleCourse, cues: grappleCues, looks: grappleLooks,
|
|
31
|
+
fact: v.exactOptional(grappleFact), headless: grappleHeadless });
|
|
32
|
+
const grappleHooks = v.pipe(v.array(point), v.minLength(ONE), v.maxLength(HOOKS_MAX), v.readonly());
|
|
33
|
+
const riseFlag = v.literal(true);
|
|
7
34
|
/** Optional direct cable anchors and their explicit deck release law. */
|
|
8
35
|
export const CableProfileSchema: v.GenericSchema<CableProfileRowsInput, CableProfileRows> = v.strictObject({ anchors: v.literal('direct'), start: range(0, 10), release: range(0, 10),
|
|
9
36
|
landing: v.strictObject({ back: range(0, 10), deck: range(0, 2), velocity: range(0, 16) }) });
|
|
@@ -47,7 +74,12 @@ export const GrappleModeSchema: v.GenericSchema<GrappleModeInput, GrappleMode> =
|
|
|
47
74
|
zipSpeed: v.optional(range(0.1, 40), 22), fireTime: v.optional(range(0.01, 2), 0.27),
|
|
48
75
|
biteTime: v.optional(range(0.01, 2), 0.10), reelTime: v.optional(range(0.01, 2), 0.48),
|
|
49
76
|
windowX: v.optional(range(0.01, 1), 0.52), windowY: v.optional(range(0.01, 1), 0.68),
|
|
50
|
-
|
|
77
|
+
// OF41c: what the native host read from its own files, so the declared path installs the grapple from this row alone
|
|
78
|
+
profile: v.exactOptional(grappleTool), hooks: v.exactOptional(grappleHooks),
|
|
79
|
+
guard: v.exactOptional(toolName), rise: v.exactOptional(riseFlag),
|
|
80
|
+
}), v.check(row => row.minRange < row.maxRange, 'increasing grapple range'),
|
|
81
|
+
v.check((row): boolean => (row.profile === undefined) === (row.hooks === undefined), 'a grapple mode carries its profile and hooks together'),
|
|
82
|
+
v.check((row): boolean => row.profile !== undefined || (row.guard === undefined && row.rise === undefined), 'a grapple guard or rise needs its profile'));
|
|
51
83
|
/** One admitted native grapple control profile. */
|
|
52
84
|
|
|
53
85
|
/** Only implemented platform traverse laws cross admission; executable callbacks never do. */
|
|
@@ -274,8 +306,21 @@ interface GrappleModeInputFields {
|
|
|
274
306
|
reelTime?: number | undefined;
|
|
275
307
|
windowX?: number | undefined;
|
|
276
308
|
windowY?: number | undefined;
|
|
309
|
+
profile?: GrappleToolRows;
|
|
310
|
+
hooks?: readonly Readonly<ZiplineMode['top']>[];
|
|
311
|
+
guard?: string;
|
|
312
|
+
rise?: true;
|
|
277
313
|
}
|
|
278
314
|
export type GrappleModeInput = { [Key in keyof GrappleModeInputFields]: GrappleModeInputFields[Key] };
|
|
315
|
+
/** OF41c: a grapple row's tool profile, read-only as the row's checks see it. */
|
|
316
|
+
interface GrappleToolRows { readonly course: { readonly name: string; readonly clearance?: GrappleClearanceRows };
|
|
317
|
+
readonly cues: { readonly fire: string; readonly bite: string; readonly zip: string; readonly reel: string; readonly dock: string };
|
|
318
|
+
readonly looks: { readonly muzzle: string; readonly bite: string; readonly dock: string; readonly sparks: string; readonly ribbon: string };
|
|
319
|
+
readonly fact?: { readonly name: string; readonly entity: string; readonly source: string };
|
|
320
|
+
readonly headless: { readonly step: string; readonly lock: string; readonly aim: string; readonly eye: number; readonly aspect: number; readonly portraitFov: number } }
|
|
321
|
+
/** OF41c: a traversable obstacle the grapple's capsule lifts over. */
|
|
322
|
+
interface GrappleClearanceRows { readonly axis: "x" | "z"; readonly plane: number; readonly min: number; readonly max: number; readonly base: number;
|
|
323
|
+
readonly top: number; readonly ceiling: number; readonly owners: readonly string[] }
|
|
279
324
|
interface GrappleModeFields {
|
|
280
325
|
id: string;
|
|
281
326
|
minRange: number;
|
|
@@ -286,6 +331,10 @@ interface GrappleModeFields {
|
|
|
286
331
|
reelTime: number;
|
|
287
332
|
windowX: number;
|
|
288
333
|
windowY: number;
|
|
334
|
+
profile?: GrappleToolRows;
|
|
335
|
+
hooks?: readonly Readonly<ZiplineMode['top']>[];
|
|
336
|
+
guard?: string;
|
|
337
|
+
rise?: true;
|
|
289
338
|
}
|
|
290
339
|
export type GrappleMode = { [Key in keyof GrappleModeFields]: GrappleModeFields[Key] };
|
|
291
340
|
export type TraverseModeInput = (ZiplineModeInput) | (UpdraftModeInput) | (LadderModeInput);
|
|
@@ -30,7 +30,8 @@ const section = v.strictObject({ ...measuredFile, name: sectionName, schema: v.p
|
|
|
30
30
|
const cookRow = v.exactOptional(v.strictObject({ ...measuredFile, path: v.literal('cook.json') }));
|
|
31
31
|
const costs = v.omit(FilesSchema.pipe[0].item, ['kind']).entries;
|
|
32
32
|
const fileSchema = v.strictObject({ ...costs, path, kind: v.picklist(['glb', 'ktx2', 'audio', 'json', 'wasm', 'tile', 'bin', 'image']), name: v.exactOptional(v.pipe(v.string(), v.maxLength(240))), tier: v.exactOptional(v.picklist(['phone', 'desktop'])), variantOf: v.exactOptional(v.pipe(v.string(), v.minLength(1), v.maxLength(240))), commons: v.exactOptional(v.literal(true)), jsonSchema: v.exactOptional(v.record(v.string(), v.unknown())) });
|
|
33
|
-
|
|
33
|
+
/** `trust` is retired (OF1): new indexes omit it, old products still carry their value and nothing reads it. */
|
|
34
|
+
const runtime = v.strictObject({ ...v.omit(ClientPlanRuntimeSchema.pipe[0], ['spawns']).entries, trust: v.exactOptional(v.unknown()), files: v.pipe(v.array(v.strictObject({ ...measuredFile, lines: ShardNaturalSchema })), v.maxLength(0)), lines: v.literal(0) });
|
|
34
35
|
/** Format 2 inventories every emitted byte except its index and validation receipt. */
|
|
35
36
|
export const OutputIndexSchema: v.GenericSchema<OutputIndexRowsInput, OutputIndexRows> & { readonly entries: { readonly [Key in keyof OutputIndexRows]-?: v.GenericSchema<OutputIndexRowsInput[Key], OutputIndexRows[Key]> } } = v.strictObject({
|
|
36
37
|
format: v.literal('wildshard.shardfile'), formatVersion: v.literal(2), sdk: v.picklist(['0.2', '0.3']), version: v.picklist(SHARDFILE_VERSIONS),
|
|
@@ -224,7 +225,7 @@ interface OutputIndexRowsInputFields {
|
|
|
224
225
|
bytes: number;
|
|
225
226
|
} | undefined;
|
|
226
227
|
runtime: {
|
|
227
|
-
trust
|
|
228
|
+
trust?: unknown;
|
|
228
229
|
files: {
|
|
229
230
|
lines: number;
|
|
230
231
|
path: string;
|
|
@@ -322,7 +323,7 @@ interface OutputIndexRowsFields {
|
|
|
322
323
|
bytes: number;
|
|
323
324
|
} | undefined;
|
|
324
325
|
runtime: {
|
|
325
|
-
trust
|
|
326
|
+
trust?: unknown;
|
|
326
327
|
files: {
|
|
327
328
|
lines: number;
|
|
328
329
|
path: string;
|
package/src/format/rows.ts
CHANGED
|
@@ -20,6 +20,8 @@ const positive = v.pipe(finite, v.minValue(0.000001), v.maxValue(10000000));
|
|
|
20
20
|
const nonnegative = v.pipe(finite, v.minValue(0), v.maxValue(10000000));
|
|
21
21
|
const unit = v.pipe(finite, v.minValue(0), v.maxValue(1));
|
|
22
22
|
const dimension = v.pipe(positive, v.maxValue(20));
|
|
23
|
+
const MAX_OVERSHOOT = 30;
|
|
24
|
+
const overshoot = v.pipe(nonnegative, v.maxValue(MAX_OVERSHOOT));
|
|
23
25
|
/** A flyer's bake has no legs (OF11a): legs are nonnegative, the body stays positive. */
|
|
24
26
|
const NO_LEGS = 0;
|
|
25
27
|
const legs = v.union([v.literal(NO_LEGS), dimension]);
|
|
@@ -32,8 +34,10 @@ const shape = v.variant('kind', [
|
|
|
32
34
|
v.strictObject({ kind: v.literal('wedge'), length: dimension, halfAngle: v.pipe(positive, v.maxValue(Math.PI)) }),
|
|
33
35
|
v.pipe(v.strictObject({ kind: v.literal('ring'), inner: nonnegative, outer: dimension }), v.check((r) => r.inner <= r.outer, 'ordered ring')),
|
|
34
36
|
]);
|
|
35
|
-
const strike: v.StrictObjectSchema<{ readonly debris: v.ExactOptionalSchema<v.GenericSchema<StrikeDebrisPolicy>, undefined>; readonly id: v.GenericSchema<StrikeRowsInput['id'], StrikeRows['id']>; readonly shape: v.GenericSchema<StrikeRowsInput['shape'], StrikeRows['shape']>; readonly windup: v.GenericSchema<StrikeRowsInput['windup'], StrikeRows['windup']>; readonly active: v.GenericSchema<StrikeRowsInput['active'], StrikeRows['active']>; readonly recover: v.GenericSchema<StrikeRowsInput['recover'], StrikeRows['recover']>; readonly cooldown: v.GenericSchema<StrikeRowsInput['cooldown'], StrikeRows['cooldown']>; readonly range: v.GenericSchema<StrikeRowsInput['range'], StrikeRows['range']>; readonly damage: v.GenericSchema<StrikeRowsInput['damage'], StrikeRows['damage']>; readonly tags: v.SchemaWithPipe<readonly [v.ArraySchema<v.GenericSchema<`${string}.${string}`>, undefined>, v.MaxLengthAction<StrikeRows['tags'], 32, undefined>]>; readonly weight: v.GenericSchema<StrikeRowsInput['weight'], StrikeRows['weight']>; readonly speed: v.GenericSchema<StrikeRowsInput['speed'], StrikeRows['speed']>; }, undefined> = v.strictObject({ debris: v.exactOptional(StrikeDebrisSchema), id, shape, windup: nonnegative, active: nonnegative, recover: nonnegative, cooldown: nonnegative, range: dimension, damage: nonnegative,
|
|
36
|
-
tags: v.pipe(v.array(v.custom<`${string}.${string}`>((value) => typeof value === 'string' && value.length <= 128 && /^[a-z][a-zA-Z0-9.-]*\.[a-zA-Z0-9.-]+$/u.test(value))), v.maxLength(32)), weight: nonnegative, speed: v.pipe(nonnegative, v.maxValue(15))
|
|
37
|
+
const strike: v.StrictObjectSchema<{ readonly debris: v.ExactOptionalSchema<v.GenericSchema<StrikeDebrisPolicy>, undefined>; readonly id: v.GenericSchema<StrikeRowsInput['id'], StrikeRows['id']>; readonly shape: v.GenericSchema<StrikeRowsInput['shape'], StrikeRows['shape']>; readonly windup: v.GenericSchema<StrikeRowsInput['windup'], StrikeRows['windup']>; readonly active: v.GenericSchema<StrikeRowsInput['active'], StrikeRows['active']>; readonly recover: v.GenericSchema<StrikeRowsInput['recover'], StrikeRows['recover']>; readonly cooldown: v.GenericSchema<StrikeRowsInput['cooldown'], StrikeRows['cooldown']>; readonly range: v.GenericSchema<StrikeRowsInput['range'], StrikeRows['range']>; readonly damage: v.GenericSchema<StrikeRowsInput['damage'], StrikeRows['damage']>; readonly tags: v.SchemaWithPipe<readonly [v.ArraySchema<v.GenericSchema<`${string}.${string}`>, undefined>, v.MaxLengthAction<StrikeRows['tags'], 32, undefined>]>; readonly weight: v.GenericSchema<StrikeRowsInput['weight'], StrikeRows['weight']>; readonly speed: v.GenericSchema<StrikeRowsInput['speed'], StrikeRows['speed']>; readonly overshoot: v.ExactOptionalSchema<v.GenericSchema<number, number>, undefined>; }, undefined> = v.strictObject({ debris: v.exactOptional(StrikeDebrisSchema), id, shape, windup: nonnegative, active: nonnegative, recover: nonnegative, cooldown: nonnegative, range: dimension, damage: nonnegative,
|
|
38
|
+
tags: v.pipe(v.array(v.custom<`${string}.${string}`>((value) => typeof value === 'string' && value.length <= 128 && /^[a-z][a-zA-Z0-9.-]*\.[a-zA-Z0-9.-]+$/u.test(value))), v.maxLength(32)), weight: nonnegative, speed: v.pipe(nonnegative, v.maxValue(15)),
|
|
39
|
+
/** OF11b: a lane charge runs this far past its target (a challenge brain scores its charge by its own tuning). */
|
|
40
|
+
overshoot: v.exactOptional(overshoot) });
|
|
37
41
|
const numbers = v.strictObject({ overcast: unit, rain: unit, wet: unit, wind: unit, fog: unit });
|
|
38
42
|
const weather = v.strictObject({ id, states: v.pipe(v.array(v.strictObject({ id, next: id, length: ordered, numbers })), v.minLength(1), v.maxLength(64)), initial: numbers, soak: unit, dry: unit,
|
|
39
43
|
modes: v.pipe(v.array(v.strictObject({ id, hold: v.nullable(id), at: unit, dry: v.boolean() })), v.maxLength(64)) });
|
|
@@ -124,7 +128,7 @@ function parseRows(input: unknown): ShardRows { return v.parse(RowsSchema, input
|
|
|
124
128
|
|
|
125
129
|
/** Admitted author data independent of validator implementation metadata. */
|
|
126
130
|
type StrikeRowsInput = StrikeRows;
|
|
127
|
-
interface StrikeRows { debris?: StrikeDebrisPolicy; id: string; shape: ({ kind: 'point'; radius: number; }) | ({ kind: 'sphere'; radius: number; }) | ({ kind: 'lane'; length: number; width: number; }) | ({ kind: 'arc'; radius: number; halfAngle: number; }) | ({ kind: 'wedge'; length: number; halfAngle: number; }) | ({ kind: 'ring'; inner: number; outer: number; }); windup: number; active: number; recover: number; cooldown: number; range: number; damage: number; tags: (`${string}.${string}`)[]; weight: number; speed: number; }
|
|
131
|
+
interface StrikeRows { debris?: StrikeDebrisPolicy; id: string; shape: ({ kind: 'point'; radius: number; }) | ({ kind: 'sphere'; radius: number; }) | ({ kind: 'lane'; length: number; width: number; }) | ({ kind: 'arc'; radius: number; halfAngle: number; }) | ({ kind: 'wedge'; length: number; halfAngle: number; }) | ({ kind: 'ring'; inner: number; outer: number; }); windup: number; active: number; recover: number; cooldown: number; range: number; damage: number; tags: (`${string}.${string}`)[]; weight: number; speed: number; overshoot?: number; }
|
|
128
132
|
interface ShardRowsInput { strikes: (StrikeRowsInput)[]; weather: ({ id: string; states: ({ id: string; next: string; length: [number, number]; numbers: { overcast: number; rain: number; wet: number; wind: number; fog: number; }; })[]; initial: { overcast: number; rain: number; wet: number; wind: number; fog: number; }; soak: number; dry: number; modes: ({ id: string; hold: (string) | null; at: number; dry: boolean; })[]; })[]; days: ({ id: string; units: 'hour'; start: number; schedule: ({ phase: 'dawn' | 'day' | 'golden' | 'dusk' | 'night'; from: number; to: number; minutes: number; })[]; sun: { maxElevation: number; azimuthOffset: number; }; fixed: { midday: number; golden: number; sunset: number; night: number; }; presets: { dawn: number; noon: number; dusk: number; night: number; }; })[]; species: SpeciesRowInput[]; looks: ({ id: string; species: string; recipe: string; material?: (string) | null | undefined; parameters: Record<string, (number) | (boolean) | (string) | ((number)[])>; animation: { recipe: string; parameters: Record<string, (number) | (boolean) | (string) | ((number)[])>; clipMap?: SkinClipMap<string>; }; })[]; compendiums: (({ id: string; className: string; title: string; tabs: ({ id: string; label: string; })[]; stamp: string; stats: ({ label: string; value: string; })[]; entries: ({ id: string; kind: 'species'; tab: string; name: string; notes: string; sketch: string; species: string; })[]; }) | (v.InferInput<typeof JournalRowSchema>))[]; loot: (({ id: string; gear: 'purse.coins'; finds: null; marks: null; charted: boolean; chime: string; economy?: v.InferInput<typeof LootEconomySchema>; }) | ({ id: string; economy: v.InferInput<typeof BarterEconomySchema>; }))[]; }
|
|
129
133
|
// oxlint-disable-next-line typescript/consistent-type-definitions -- Object.values needs the original implicit dictionary contract for row validation.
|
|
130
134
|
type ShardRows = { strikes: (StrikeRows)[]; weather: ({ id: string; states: ({ id: string; next: string; length: [number, number]; numbers: { overcast: number; rain: number; wet: number; wind: number; fog: number; }; })[]; initial: { overcast: number; rain: number; wet: number; wind: number; fog: number; }; soak: number; dry: number; modes: ({ id: string; hold: (string) | null; at: number; dry: boolean; })[]; })[]; days: ({ id: string; units: 'hour'; start: number; schedule: ({ phase: 'dawn' | 'day' | 'golden' | 'dusk' | 'night'; from: number; to: number; minutes: number; })[]; sun: { maxElevation: number; azimuthOffset: number; }; fixed: { midday: number; golden: number; sunset: number; night: number; }; presets: { dawn: number; noon: number; dusk: number; night: number; }; })[]; species: SpeciesRow[]; looks: ({ id: string; species: string; recipe: string; material: (string) | null; parameters: Record<string, (number) | (boolean) | (string) | ((number)[])>; animation: { recipe: string; parameters: Record<string, (number) | (boolean) | (string) | ((number)[])>; clipMap?: SkinClipMap; }; })[]; compendiums: (({ id: string; className: string; title: string; tabs: ({ id: string; label: string; })[]; stamp: string; stats: ({ label: string; value: string; })[]; entries: ({ id: string; kind: 'species'; tab: string; name: string; notes: string; sketch: string; species: string; })[]; }) | (v.InferOutput<typeof JournalRowSchema>))[]; loot: (({ id: string; gear: 'purse.coins'; finds: null; marks: null; charted: boolean; chime: string; economy?: v.InferOutput<typeof LootEconomySchema>; }) | ({ id: string; economy: v.InferOutput<typeof BarterEconomySchema>; }))[]; };
|
|
@@ -371,7 +371,7 @@ export function shardfileRules(s: Shardfile, sections?: ReadonlyMap<string, unkn
|
|
|
371
371
|
if (s.crowds.some(row => Math.abs(row.x) > CHUNK_HALF || Math.abs(row.z) > CHUNK_HALF)) errors.push('declared crowd home in cell');
|
|
372
372
|
if (spawnCapacity(s.creatures.spawns) + crowdMembers > s.serverBudget.entities) errors.push('declared entity capacity');
|
|
373
373
|
errors.push(...creatureSizeRules(s.rows.species, s.creatures.spawns));
|
|
374
|
-
for (const spawn of s.creatures.spawns) if (!species.get(spawn.species)?.variants.some((row) => row.id === spawn.variant) || (spawn.strike !== null && !strikes.has(spawn.strike))) errors.push(
|
|
374
|
+
for (const spawn of s.creatures.spawns) if (!species.get(spawn.species)?.variants.some((row) => row.id === spawn.variant) || (spawn.strike !== null && !strikes.has(spawn.strike))) errors.push(`declared spawn species/variant/strike: ${spawn.id}`);
|
|
375
375
|
errors.push(...encounterRules(s.encounters, s.creatures.spawns.map((spawn) => spawn.id), s.ui.filter((row) => row.kind === 'bossPanel')));
|
|
376
376
|
const controlled = new Set(s.encounters.map((row) => row.entity));
|
|
377
377
|
errors.push(...groupBrainRules(s.creatures.groups, s.creatures.spawns, s.creatures.brains.map((row) => row.id), [...controlled]));
|
|
@@ -391,6 +391,8 @@ export function shardfileRules(s: Shardfile, sections?: ReadonlyMap<string, unkn
|
|
|
391
391
|
})) errors.push('exactly one declared creature controller');
|
|
392
392
|
return [...new Set(errors)];
|
|
393
393
|
}
|
|
394
|
+
/** How many failing semantic rules a refusal names before it counts the rest. */
|
|
395
|
+
const NAMED_RULES = 8;
|
|
394
396
|
/** Strict schema for the public SDK format; rejects unknown fields and invalid references.
|
|
395
397
|
* Keep the unknown-input/named-output boundary independent of the nested validator implementation. */
|
|
396
398
|
function shardfileSchema(sections?: ReadonlyMap<string, unknown>): v.GenericSchema<unknown, Shardfile> { return v.pipe(v.unknown(), v.rawCheck(({ dataset, addIssue }) => {
|
|
@@ -408,7 +410,15 @@ function shardfileSchema(sections?: ReadonlyMap<string, unknown>): v.GenericSche
|
|
|
408
410
|
}
|
|
409
411
|
}), rawSchema,
|
|
410
412
|
v.rawCheck(({ dataset, addIssue }) => { if (dataset.typed) { try { preflightAssetGraph(dataset.value); } catch (error) { addIssue({ message: error instanceof Error ? error.message : 'shardfile asset graph admission' }); } } }),
|
|
411
|
-
v.check((s) => entrywayRules(s).length === 0, 'illegal shard: entryway openings must meet road height y=0'), v.
|
|
413
|
+
v.check((s) => entrywayRules(s).length === 0, 'illegal shard: entryway openings must meet road height y=0'), v.rawCheck(({ dataset, addIssue }) => {
|
|
414
|
+
// OF-NE21: the refusal names its rules (the first eight), so an author sees which row is at fault
|
|
415
|
+
if (!dataset.typed) { return; }
|
|
416
|
+
const rules = shardfileRules(dataset.value, sections);
|
|
417
|
+
if (rules.length === 0) { return; }
|
|
418
|
+
const named = rules.filter((_rule, index): boolean => index < NAMED_RULES);
|
|
419
|
+
const rest = rules.length > named.length ? `; and ${String(rules.length - named.length)} more` : '';
|
|
420
|
+
addIssue({ message: `shardfile semantic rules: ${named.join('; ')}${rest}` });
|
|
421
|
+
})); }
|
|
412
422
|
export const ShardfileSchema: v.GenericSchema<unknown, Shardfile> = shardfileSchema();
|
|
413
423
|
/** Parse JSON through every shard rule. Optional section payloads extend item target
|
|
414
424
|
* references only through the defining species-program contract, never an id allowlist.
|