oda-engine 0.0.0-stage → 0.1.1
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 +151 -2
- package/bin/nowhere.mjs +352 -0
- package/lib/account.mjs +57 -0
- package/lib/agentModules.mjs +57 -0
- package/lib/devServer.mjs +351 -0
- package/lib/headless.mjs +231 -0
- package/lib/headlessPreview.mjs +212 -0
- package/lib/keys.mjs +517 -0
- package/lib/make.mjs +855 -0
- package/lib/mcp.mjs +537 -0
- package/lib/open.mjs +22 -0
- package/lib/preview.mjs +87 -0
- package/lib/previewRpc.mjs +134 -0
- package/lib/project.mjs +359 -0
- package/lib/publishFlow.mjs +131 -0
- package/lib/resources.mjs +50 -0
- package/lib/rules.mjs +60 -0
- package/lib/scaffold.mjs +42 -0
- package/lib/setup.mjs +59 -0
- package/lib/tools.mjs +668 -0
- package/package.json +51 -4
- package/template/game.config.json +9 -0
- package/template/scene.json +4 -0
- package/template/src/main.ts +11 -0
- package/vendor/DOCS.md +447 -0
- package/vendor/agent/appRun.mjs +520 -0
- package/vendor/agent/assets/brief.mjs +242 -0
- package/vendor/agent/assets/collider.mjs +531 -0
- package/vendor/agent/assets/environments/index.mjs +12 -0
- package/vendor/agent/assets/environments/worldlabs.mjs +161 -0
- package/vendor/agent/assets/fetch.mjs +168 -0
- package/vendor/agent/assets/footprint.mjs +13 -0
- package/vendor/agent/assets/gltf.mjs +547 -0
- package/vendor/agent/assets/hdr.mjs +269 -0
- package/vendor/agent/assets/imageOps.mjs +171 -0
- package/vendor/agent/assets/images/codex.mjs +307 -0
- package/vendor/agent/assets/images/fal.mjs +75 -0
- package/vendor/agent/assets/images/gemini.mjs +84 -0
- package/vendor/agent/assets/images/index.mjs +25 -0
- package/vendor/agent/assets/images/openai.mjs +75 -0
- package/vendor/agent/assets/images/stability.mjs +71 -0
- package/vendor/agent/assets/images/views.mjs +31 -0
- package/vendor/agent/assets/import.mjs +1352 -0
- package/vendor/agent/assets/inspect.mjs +465 -0
- package/vendor/agent/assets/jobs.mjs +196 -0
- package/vendor/agent/assets/ktx2.mjs +290 -0
- package/vendor/agent/assets/ledger.mjs +466 -0
- package/vendor/agent/assets/net.mjs +254 -0
- package/vendor/agent/assets/prices.json +39 -0
- package/vendor/agent/assets/providers/fal.mjs +115 -0
- package/vendor/agent/assets/providers/index.mjs +22 -0
- package/vendor/agent/assets/providers/meshy.mjs +119 -0
- package/vendor/agent/assets/providers/tripo.mjs +188 -0
- package/vendor/agent/assets/sources/ambientcg.mjs +129 -0
- package/vendor/agent/assets/sources/index.mjs +23 -0
- package/vendor/agent/assets/sources/polyhaven.mjs +237 -0
- package/vendor/agent/assets/sources/polypizza.mjs +121 -0
- package/vendor/agent/assets/splat.mjs +631 -0
- package/vendor/agent/assets/targets.mjs +122 -0
- package/vendor/agent/assets/tile.mjs +261 -0
- package/vendor/agent/assets/unzip.mjs +180 -0
- package/vendor/agent/blender/cleanup.py +360 -0
- package/vendor/agent/blender/convert.py +167 -0
- package/vendor/agent/blender/find.mjs +192 -0
- package/vendor/agent/blender/nw_export.py +104 -0
- package/vendor/agent/blender/nw_rubric.py +426 -0
- package/vendor/agent/blender/run.mjs +193 -0
- package/vendor/agent/blender/runner.py +252 -0
- package/vendor/agent/blender/sheet.py +743 -0
- package/vendor/agent/depth.mjs +134 -0
- package/vendor/agent/director/board.mjs +451 -0
- package/vendor/agent/director/contracts.mjs +663 -0
- package/vendor/agent/director/director.mjs +2365 -0
- package/vendor/agent/director/estimate.mjs +200 -0
- package/vendor/agent/director/gate.mjs +802 -0
- package/vendor/agent/director/limits.json +16 -0
- package/vendor/agent/director/methods.mjs +457 -0
- package/vendor/agent/director/policy.json +33 -0
- package/vendor/agent/director/prompts.mjs +244 -0
- package/vendor/agent/director/reading.mjs +341 -0
- package/vendor/agent/director/router.mjs +184 -0
- package/vendor/agent/director/seams.mjs +243 -0
- package/vendor/agent/director/session.mjs +643 -0
- package/vendor/agent/director/store.mjs +119 -0
- package/vendor/agent/director/taskGate.mjs +110 -0
- package/vendor/agent/director/teamLedger.mjs +118 -0
- package/vendor/agent/director/triage.mjs +63 -0
- package/vendor/agent/downloads.cjs +363 -0
- package/vendor/agent/flow.mjs +78 -0
- package/vendor/agent/guard.mjs +613 -0
- package/vendor/agent/host.mjs +1736 -0
- package/vendor/agent/language.mjs +58 -0
- package/vendor/agent/ledger.mjs +360 -0
- package/vendor/agent/locale.cjs +186 -0
- package/vendor/agent/loop/capacity.mjs +74 -0
- package/vendor/agent/loop/compose.mjs +127 -0
- package/vendor/agent/loop/gate.mjs +205 -0
- package/vendor/agent/loop/judge.mjs +189 -0
- package/vendor/agent/loop/levels.mjs +273 -0
- package/vendor/agent/loop/state.mjs +358 -0
- package/vendor/agent/notes.cjs +278 -0
- package/vendor/agent/pace.mjs +258 -0
- package/vendor/agent/panels.mjs +431 -0
- package/vendor/agent/prompt.mjs +342 -0
- package/vendor/agent/reference/board.mjs +410 -0
- package/vendor/agent/reference/compose.mjs +364 -0
- package/vendor/agent/reference/decode.mjs +56 -0
- package/vendor/agent/reference/facts.mjs +1874 -0
- package/vendor/agent/reference/png.mjs +107 -0
- package/vendor/agent/reference/records.mjs +63 -0
- package/vendor/agent/reference/web.mjs +252 -0
- package/vendor/agent/roles/artist.mjs +69 -0
- package/vendor/agent/roles/builder.mjs +79 -0
- package/vendor/agent/roles/checks.mjs +223 -0
- package/vendor/agent/roles/common.mjs +188 -0
- package/vendor/agent/roles/critic.mjs +171 -0
- package/vendor/agent/roles/index.mjs +39 -0
- package/vendor/agent/roles/modeller.mjs +142 -0
- package/vendor/agent/roles/qa.mjs +58 -0
- package/vendor/agent/roles/rubrics.mjs +79 -0
- package/vendor/agent/roles/sound.mjs +69 -0
- package/vendor/agent/rounds.cjs +333 -0
- package/vendor/agent/shared.mjs +284 -0
- package/vendor/agent/stopGate.mjs +574 -0
- package/vendor/agent/subagents.mjs +129 -0
- package/vendor/agent/tools/assets.mjs +499 -0
- package/vendor/agent/tools/blender.mjs +754 -0
- package/vendor/agent/tools/cards.mjs +479 -0
- package/vendor/agent/tools/choices.mjs +479 -0
- package/vendor/agent/tools/compose.mjs +74 -0
- package/vendor/agent/tools/environment.mjs +488 -0
- package/vendor/agent/tools/eyes.mjs +733 -0
- package/vendor/agent/tools/generate.mjs +338 -0
- package/vendor/agent/tools/guide.mjs +46 -0
- package/vendor/agent/tools/harness.mjs +193 -0
- package/vendor/agent/tools/image.mjs +643 -0
- package/vendor/agent/tools/index.mjs +162 -0
- package/vendor/agent/tools/look.mjs +578 -0
- package/vendor/agent/tools/loop.mjs +858 -0
- package/vendor/agent/tools/others.mjs +123 -0
- package/vendor/agent/tools/pictures.mjs +535 -0
- package/vendor/agent/tools/reference.mjs +366 -0
- package/vendor/agent/transcripts.mjs +118 -0
- package/vendor/agent-loop.mjs +602 -0
- package/vendor/agent-plugin/.claude-plugin/plugin.json +5 -0
- package/vendor/agent-plugin/skills/art-direction/SKILL.md +82 -0
- package/vendor/agent-plugin/skills/asset-legality/SKILL.md +101 -0
- package/vendor/agent-plugin/skills/asset-sources/SKILL.md +111 -0
- package/vendor/agent-plugin/skills/blender-modeling/SKILL.md +97 -0
- package/vendor/agent-plugin/skills/look-dev/SKILL.md +104 -0
- package/vendor/agent-plugin/skills/playtesting/SKILL.md +74 -0
- package/vendor/agent-plugin/skills/reference-loop/SKILL.md +102 -0
- package/vendor/agent-plugin/skills/sound-design/SKILL.md +60 -0
- package/vendor/agent-plugin/skills/style/SKILL.md +35 -0
- package/vendor/agent-plugin/skills/tsl-r185/SKILL.md +107 -0
- package/vendor/auth.cjs +570 -0
- package/vendor/build.cjs +953 -0
- package/vendor/catalog.json +455 -0
- package/vendor/connectors.cjs +688 -0
- package/vendor/eyes.mjs +733 -0
- package/vendor/gameExports.json +1390 -0
- package/vendor/git.cjs +222 -0
- package/vendor/models.json +57 -0
- package/vendor/publish.cjs +1018 -0
- package/vendor/refBoard.cjs +301 -0
- package/vendor/schema/dist/assets.d.ts +335 -0
- package/vendor/schema/dist/assets.js +439 -0
- package/vendor/schema/dist/brief.d.ts +357 -0
- package/vendor/schema/dist/brief.js +302 -0
- package/vendor/schema/dist/common.d.ts +9 -0
- package/vendor/schema/dist/common.js +13 -0
- package/vendor/schema/dist/config.d.ts +406 -0
- package/vendor/schema/dist/config.js +355 -0
- package/vendor/schema/dist/contract.d.ts +599 -0
- package/vendor/schema/dist/contract.js +1146 -0
- package/vendor/schema/dist/index.d.ts +14 -0
- package/vendor/schema/dist/index.js +21 -0
- package/vendor/schema/dist/look.d.ts +463 -0
- package/vendor/schema/dist/look.js +681 -0
- package/vendor/schema/dist/lookStats.d.ts +230 -0
- package/vendor/schema/dist/lookStats.js +768 -0
- package/vendor/schema/dist/pilot.d.ts +32 -0
- package/vendor/schema/dist/pilot.js +44 -0
- package/vendor/schema/dist/publish.d.ts +214 -0
- package/vendor/schema/dist/publish.js +291 -0
- package/vendor/schema/dist/scene.d.ts +75 -0
- package/vendor/schema/dist/scene.js +120 -0
- package/vendor/schema/dist/skyLight.d.ts +141 -0
- package/vendor/schema/dist/skyLight.js +436 -0
- package/vendor/schema/dist/style.d.ts +131 -0
- package/vendor/schema/dist/style.js +155 -0
- package/vendor/schema/package.json +1 -0
- package/vendor/selectionPrompt.mjs +51 -0
- package/vendor/useTools.mjs +195 -0
- package/vendor/userMessage.mjs +26 -0
- package/web-dist/assets/GaussianSplatUtils-CptQkDVX.js +1 -0
- package/web-dist/assets/KTX2Loader-C53LJqss.js +2 -0
- package/web-dist/assets/SPZLoader-BQ3tjaTv.js +1 -0
- package/web-dist/assets/gaussianSplat-_9tcWegB.js +1 -0
- package/web-dist/assets/index-Baka-ZO7.js +693 -0
- package/web-dist/assets/index-CcjyyQco.css +1 -0
- package/web-dist/assets/meshopt_decoder.module-BvwdjiD3.js +1 -0
- package/web-dist/assets/zstddec.module-CfFeQW7d.js +1 -0
- package/web-dist/index.html +34 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* World-space span of one tile. An arbitrary internal constant, chosen only so
|
|
4
|
+
* authored coordinates land in a comfortable range; it carries no real-world
|
|
5
|
+
* meaning and is never shown to the creator.
|
|
6
|
+
*/
|
|
7
|
+
export declare const UNITS_PER_TILE = 100;
|
|
8
|
+
/** The largest planet: 64 x 64 tiles, a map 6.4 km a side. Any whole number
|
|
9
|
+
* of tiles up to it is a valid size; PLANET_SIZES are the named steps. */
|
|
10
|
+
export declare const MAX_TILES = 4096;
|
|
11
|
+
/** A flat ground in a world with no edge: far past anything a camera draws. */
|
|
12
|
+
export declare const OPEN_GROUND_SIDE = 20000;
|
|
13
|
+
/** Side length of the square map, in world units: its area is `tiles` tiles.
|
|
14
|
+
* A world with no `tiles` has no map; this is then only the size it is taken
|
|
15
|
+
* to be where something needs a number (OPEN_WORLD_SIDE), never an edge. */
|
|
16
|
+
export declare function mapSide(tiles?: number | null): number;
|
|
17
|
+
/** True when world-space (x, z) lies on the map square (centred at origin). */
|
|
18
|
+
export declare function isOnMap(tiles: number | null | undefined, x: number, z: number): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Pulls a position onto the map, for a planet that has one (it names `tiles`,
|
|
21
|
+
* as every planet made before worlds went open does). With no `tiles` there is
|
|
22
|
+
* no edge and the position stands where it is.
|
|
23
|
+
*/
|
|
24
|
+
export declare function clampToMap(tiles: number | null | undefined, position: readonly [number, number, number]): [number, number, number];
|
|
25
|
+
/**
|
|
26
|
+
* The planet sizes the studio offers by name. Each step quadruples the area (a
|
|
27
|
+
* doubling of the map's side), so the ladder reads as a real jump in scale.
|
|
28
|
+
* They are sizes to start from, not the only ones: `tiles` is any whole number from 1 to MAX_TILES, so a planet
|
|
29
|
+
* grows by as much as it is asked to. Tiles are UNITLESS: a count, not
|
|
30
|
+
* metres, so the same ladder serves a game about a cell and one about a galaxy.
|
|
31
|
+
*/
|
|
32
|
+
export declare const PLANET_SIZES: readonly [{
|
|
33
|
+
readonly id: "S";
|
|
34
|
+
readonly tiles: 1;
|
|
35
|
+
}, {
|
|
36
|
+
readonly id: "M";
|
|
37
|
+
readonly tiles: 4;
|
|
38
|
+
}, {
|
|
39
|
+
readonly id: "L";
|
|
40
|
+
readonly tiles: 16;
|
|
41
|
+
}, {
|
|
42
|
+
readonly id: "XL";
|
|
43
|
+
readonly tiles: 64;
|
|
44
|
+
}];
|
|
45
|
+
export type PlanetSizeId = (typeof PLANET_SIZES)[number]['id'];
|
|
46
|
+
export declare function planetSizeOf(tiles: number): PlanetSizeId | null;
|
|
47
|
+
/** Index of the nearest rung, so stepping from an off-ladder count still works. */
|
|
48
|
+
export declare function nearestSizeIndex(tiles: number): number;
|
|
49
|
+
export declare const Sky: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"none">;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
kind: z.ZodLiteral<"color">;
|
|
53
|
+
color: z.ZodString;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
kind: z.ZodLiteral<"gradient">;
|
|
56
|
+
top: z.ZodString;
|
|
57
|
+
bottom: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"hdri">;
|
|
60
|
+
asset: z.ZodString;
|
|
61
|
+
top: z.ZodString;
|
|
62
|
+
bottom: z.ZodString;
|
|
63
|
+
intensity: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
ground: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
height: z.ZodNumber;
|
|
69
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
kind: z.ZodLiteral<"physical">;
|
|
73
|
+
turbidity: z.ZodNumber;
|
|
74
|
+
rayleigh: z.ZodNumber;
|
|
75
|
+
mieCoefficient: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
mieDirectionalG: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
sunDisc: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
top: z.ZodString;
|
|
79
|
+
bottom: z.ZodString;
|
|
80
|
+
}, z.core.$strip>], "kind">;
|
|
81
|
+
export declare const Fog: z.ZodObject<{
|
|
82
|
+
color: z.ZodString;
|
|
83
|
+
near: z.ZodNumber;
|
|
84
|
+
far: z.ZodNumber;
|
|
85
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
height: "height";
|
|
87
|
+
range: "range";
|
|
88
|
+
exp2: "exp2";
|
|
89
|
+
}>>;
|
|
90
|
+
density: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
heightDensity: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export declare const Lighting: z.ZodObject<{
|
|
95
|
+
ambient: z.ZodObject<{
|
|
96
|
+
color: z.ZodDefault<z.ZodString>;
|
|
97
|
+
intensity: z.ZodDefault<z.ZodNumber>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
sun: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
100
|
+
color: z.ZodDefault<z.ZodString>;
|
|
101
|
+
intensity: z.ZodDefault<z.ZodNumber>;
|
|
102
|
+
direction: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
103
|
+
shadows: z.ZodDefault<z.ZodBoolean>;
|
|
104
|
+
}, z.core.$strip>>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
/** Ground covers exactly the map square; there is no floor beyond it. */
|
|
107
|
+
export declare const Ground: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
108
|
+
kind: z.ZodLiteral<"none">;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
kind: z.ZodLiteral<"flat">;
|
|
111
|
+
color: z.ZodDefault<z.ZodString>;
|
|
112
|
+
roughness: z.ZodDefault<z.ZodNumber>;
|
|
113
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
114
|
+
}, z.core.$strip>], "kind">;
|
|
115
|
+
/**
|
|
116
|
+
* Glow. An emissive material paints light INTO the frame; bloom is that light
|
|
117
|
+
* spilling past the edge of the thing emitting it, which is what makes a
|
|
118
|
+
* crystal read as lit rather than as a pale blue box. Only the emissive
|
|
119
|
+
* channel blooms, so a wall in full sun stays a wall.
|
|
120
|
+
*/
|
|
121
|
+
export declare const Bloom: z.ZodObject<{
|
|
122
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
+
strength: z.ZodDefault<z.ZodNumber>;
|
|
124
|
+
radius: z.ZodDefault<z.ZodNumber>;
|
|
125
|
+
threshold: z.ZodDefault<z.ZodNumber>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
/** Where play begins and how the visitor moves through the space. Absent, the
|
|
128
|
+
* SDK spawns at the origin facing -Z, walking at 7 m/s and running at twice
|
|
129
|
+
* that. The creator sets the spawn by hand (the Map panel); the scale (speed,
|
|
130
|
+
* run, eye height, field of view) comes from the space's brief, so a cathedral
|
|
131
|
+
* and a cupboard are not walked the same way. Each is a default spawnPlayer's
|
|
132
|
+
* own options still override. */
|
|
133
|
+
export declare const Player: z.ZodObject<{
|
|
134
|
+
spawn: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
135
|
+
yaw: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
run: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
eyeHeight: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
fov: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
/** One thing a visitor can carry away from this planet. A planet gives only
|
|
142
|
+
* what its config lists: world.give and pickUpOnTouch name an `id` from here,
|
|
143
|
+
* and the server holds a signed-in visitor's bag to the same list. */
|
|
144
|
+
export declare const ItemDecl: z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
name: z.ZodString;
|
|
147
|
+
description: z.ZodOptional<z.ZodString>;
|
|
148
|
+
color: z.ZodOptional<z.ZodString>;
|
|
149
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
150
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export type ItemDeclT = z.infer<typeof ItemDecl>;
|
|
153
|
+
export declare const GameConfig: z.ZodObject<{
|
|
154
|
+
schema: z.ZodLiteral<"nowhere/config@1">;
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
title: z.ZodString;
|
|
157
|
+
tiles: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
sky: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
159
|
+
kind: z.ZodLiteral<"none">;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"color">;
|
|
162
|
+
color: z.ZodString;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
kind: z.ZodLiteral<"gradient">;
|
|
165
|
+
top: z.ZodString;
|
|
166
|
+
bottom: z.ZodString;
|
|
167
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
kind: z.ZodLiteral<"hdri">;
|
|
169
|
+
asset: z.ZodString;
|
|
170
|
+
top: z.ZodString;
|
|
171
|
+
bottom: z.ZodString;
|
|
172
|
+
intensity: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
blur: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
ground: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
height: z.ZodNumber;
|
|
178
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
181
|
+
kind: z.ZodLiteral<"physical">;
|
|
182
|
+
turbidity: z.ZodNumber;
|
|
183
|
+
rayleigh: z.ZodNumber;
|
|
184
|
+
mieCoefficient: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
mieDirectionalG: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
sunDisc: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
top: z.ZodString;
|
|
188
|
+
bottom: z.ZodString;
|
|
189
|
+
}, z.core.$strip>], "kind">;
|
|
190
|
+
fog: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
191
|
+
color: z.ZodString;
|
|
192
|
+
near: z.ZodNumber;
|
|
193
|
+
far: z.ZodNumber;
|
|
194
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
195
|
+
height: "height";
|
|
196
|
+
range: "range";
|
|
197
|
+
exp2: "exp2";
|
|
198
|
+
}>>;
|
|
199
|
+
density: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
heightDensity: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
}, z.core.$strip>>>;
|
|
203
|
+
lighting: z.ZodObject<{
|
|
204
|
+
ambient: z.ZodObject<{
|
|
205
|
+
color: z.ZodDefault<z.ZodString>;
|
|
206
|
+
intensity: z.ZodDefault<z.ZodNumber>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
sun: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
209
|
+
color: z.ZodDefault<z.ZodString>;
|
|
210
|
+
intensity: z.ZodDefault<z.ZodNumber>;
|
|
211
|
+
direction: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
212
|
+
shadows: z.ZodDefault<z.ZodBoolean>;
|
|
213
|
+
}, z.core.$strip>>>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
ground: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
216
|
+
kind: z.ZodLiteral<"none">;
|
|
217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
+
kind: z.ZodLiteral<"flat">;
|
|
219
|
+
color: z.ZodDefault<z.ZodString>;
|
|
220
|
+
roughness: z.ZodDefault<z.ZodNumber>;
|
|
221
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
222
|
+
}, z.core.$strip>], "kind">>;
|
|
223
|
+
bloom: z.ZodDefault<z.ZodObject<{
|
|
224
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
225
|
+
strength: z.ZodDefault<z.ZodNumber>;
|
|
226
|
+
radius: z.ZodDefault<z.ZodNumber>;
|
|
227
|
+
threshold: z.ZodDefault<z.ZodNumber>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
player: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
spawn: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
231
|
+
yaw: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
run: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
eyeHeight: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
fov: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
}, z.core.$strip>>;
|
|
237
|
+
look: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
toneMapping: z.ZodOptional<z.ZodEnum<{
|
|
239
|
+
agx: "agx";
|
|
240
|
+
neutral: "neutral";
|
|
241
|
+
aces: "aces";
|
|
242
|
+
none: "none";
|
|
243
|
+
}>>;
|
|
244
|
+
exposure: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
grade: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
tint: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
saturation: z.ZodOptional<z.ZodNumber>;
|
|
249
|
+
contrast: z.ZodOptional<z.ZodNumber>;
|
|
250
|
+
cdl: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
slope: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
252
|
+
offset: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
253
|
+
power: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
254
|
+
}, z.core.$strip>>;
|
|
255
|
+
lut: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
256
|
+
asset: z.ZodString;
|
|
257
|
+
intensity: z.ZodOptional<z.ZodNumber>;
|
|
258
|
+
}, z.core.$strip>>>;
|
|
259
|
+
posterize: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
ao: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
strength: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
}, z.core.$strip>>;
|
|
266
|
+
aa: z.ZodOptional<z.ZodEnum<{
|
|
267
|
+
none: "none";
|
|
268
|
+
traa: "traa";
|
|
269
|
+
smaa: "smaa";
|
|
270
|
+
fxaa: "fxaa";
|
|
271
|
+
msaa: "msaa";
|
|
272
|
+
}>>;
|
|
273
|
+
shadows: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
quality: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
low: "low";
|
|
276
|
+
medium: "medium";
|
|
277
|
+
high: "high";
|
|
278
|
+
}>>;
|
|
279
|
+
softness: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
cascades: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
}, z.core.$strip>>;
|
|
283
|
+
ssr: z.ZodOptional<z.ZodObject<{
|
|
284
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
thickness: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
intensity: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
gi: z.ZodOptional<z.ZodObject<{
|
|
290
|
+
kind: z.ZodLiteral<"probes">;
|
|
291
|
+
spacing: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
intensity: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
box: z.ZodOptional<z.ZodObject<{
|
|
294
|
+
center: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
295
|
+
size: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
298
|
+
vignette: z.ZodOptional<z.ZodObject<{
|
|
299
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
smoothness: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
grain: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
environment: z.ZodOptional<z.ZodObject<{
|
|
304
|
+
intensity: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
style: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
outline: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
308
|
+
width: z.ZodNumber;
|
|
309
|
+
color: z.ZodString;
|
|
310
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
crease: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
}, z.core.$strip>>>;
|
|
313
|
+
bands: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
314
|
+
count: z.ZodNumber;
|
|
315
|
+
softness: z.ZodOptional<z.ZodNumber>;
|
|
316
|
+
}, z.core.$strip>>>;
|
|
317
|
+
hatch: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
318
|
+
amount: z.ZodNumber;
|
|
319
|
+
spacing: z.ZodNumber;
|
|
320
|
+
color: z.ZodString;
|
|
321
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
322
|
+
}, z.core.$strip>>>;
|
|
323
|
+
halftone: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
324
|
+
amount: z.ZodNumber;
|
|
325
|
+
spacing: z.ZodNumber;
|
|
326
|
+
color: z.ZodString;
|
|
327
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
}, z.core.$strip>>>;
|
|
329
|
+
paint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
330
|
+
radius: z.ZodNumber;
|
|
331
|
+
}, z.core.$strip>>>;
|
|
332
|
+
paper: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
333
|
+
amount: z.ZodNumber;
|
|
334
|
+
color: z.ZodString;
|
|
335
|
+
grain: z.ZodNumber;
|
|
336
|
+
}, z.core.$strip>>>;
|
|
337
|
+
pixel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
338
|
+
size: z.ZodNumber;
|
|
339
|
+
}, z.core.$strip>>>;
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
tiers: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
low: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
ao: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
+
bloom: z.ZodOptional<z.ZodBoolean>;
|
|
345
|
+
grain: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
+
aa: z.ZodOptional<z.ZodEnum<{
|
|
347
|
+
none: "none";
|
|
348
|
+
traa: "traa";
|
|
349
|
+
smaa: "smaa";
|
|
350
|
+
fxaa: "fxaa";
|
|
351
|
+
msaa: "msaa";
|
|
352
|
+
}>>;
|
|
353
|
+
cascades: z.ZodOptional<z.ZodBoolean>;
|
|
354
|
+
ssr: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
+
gi: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
}, z.core.$strip>>;
|
|
357
|
+
medium: z.ZodOptional<z.ZodObject<{
|
|
358
|
+
ao: z.ZodOptional<z.ZodBoolean>;
|
|
359
|
+
bloom: z.ZodOptional<z.ZodBoolean>;
|
|
360
|
+
grain: z.ZodOptional<z.ZodBoolean>;
|
|
361
|
+
aa: z.ZodOptional<z.ZodEnum<{
|
|
362
|
+
none: "none";
|
|
363
|
+
traa: "traa";
|
|
364
|
+
smaa: "smaa";
|
|
365
|
+
fxaa: "fxaa";
|
|
366
|
+
msaa: "msaa";
|
|
367
|
+
}>>;
|
|
368
|
+
cascades: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
ssr: z.ZodOptional<z.ZodBoolean>;
|
|
370
|
+
gi: z.ZodOptional<z.ZodBoolean>;
|
|
371
|
+
}, z.core.$strip>>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
374
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
375
|
+
id: z.ZodString;
|
|
376
|
+
name: z.ZodString;
|
|
377
|
+
description: z.ZodOptional<z.ZodString>;
|
|
378
|
+
color: z.ZodOptional<z.ZodString>;
|
|
379
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
380
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
381
|
+
}, z.core.$strip>>>;
|
|
382
|
+
}, z.core.$strip>;
|
|
383
|
+
export type GameConfigT = z.infer<typeof GameConfig>;
|
|
384
|
+
export interface Finding {
|
|
385
|
+
path: string;
|
|
386
|
+
code: string;
|
|
387
|
+
message: string;
|
|
388
|
+
hint?: string;
|
|
389
|
+
}
|
|
390
|
+
export interface ConfigResult {
|
|
391
|
+
ok: boolean;
|
|
392
|
+
config?: GameConfigT;
|
|
393
|
+
findings: Finding[];
|
|
394
|
+
}
|
|
395
|
+
/** Where a value holds text nowhere cannot store (U+0000, or half of a
|
|
396
|
+
* surrogate pair), in a string or in an object's key, as dotted paths ("" is
|
|
397
|
+
* the value itself), each with a sentence. Empty for a value without any. */
|
|
398
|
+
export declare function unstorableText(value: unknown): {
|
|
399
|
+
path: string;
|
|
400
|
+
message: string;
|
|
401
|
+
}[];
|
|
402
|
+
/** Validates a raw game.config.json value into findings the agent (and the
|
|
403
|
+
* panel's dry-run) can act on. A config the schema takes is refused still
|
|
404
|
+
* when it holds text nowhere cannot store (unstorableText). */
|
|
405
|
+
export declare function validateConfig(raw: unknown): ConfigResult;
|
|
406
|
+
export * from './look.js';
|