@wildshard/sdk 0.2.12 → 0.2.13
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/lint/tile-bake-debt.json +26 -1
- package/package.json +3 -3
- package/scripts/preparation-preview.mjs +6 -1
- package/src/shards/_template/card/landscape.jpg +0 -0
- package/src/shards/_template/card/portrait.jpg +0 -0
- package/src/shards/_template/card/thumb.jpg +0 -0
- package/src/shards/_template/data/card.json +21 -14
- package/src/shards/_template/data/clientScripts.json +27 -27
- package/src/shards/_template/data/creatures.json +5 -5
- package/src/shards/_template/data/encounters.json +2 -2
- package/src/shards/_template/data/layout.json +56 -25
- package/src/shards/_template/data/look.json +450 -220
- package/src/shards/_template/data/quests.json +2 -2
- package/src/shards/_template/data/water.json +131 -4
- package/src/shards/_template/generators/landscape.ts +19 -7
- package/src/shards/_template/generators/product.ts +7 -5
- package/src/shards/_template/generators/templatePropsSource.ts +3 -1
- package/src/shards/_template/generators/terrain.ts +28 -4
- package/src/shards/_template/generators/weather.ts +128 -0
- package/src/shards/_template/generators/world.ts +274 -98
- package/src/shards/_template/hero.json +6 -6
- package/src/shards/_template/manifest.json +21 -14
- package/src/shards/_template/assets/f2db05998615ce1cb79ea96be32c168842eb6a2b34ec01feb86d36404603ee54 +0 -0
package/lint/tile-bake-debt.json
CHANGED
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
3
|
"products": {
|
|
4
|
-
"_template": {
|
|
4
|
+
"_template": {
|
|
5
|
+
"tile/0/3/3/resident": 5250188,
|
|
6
|
+
"tile/0/3/3/compressed": 2569008,
|
|
7
|
+
"tile/0/3/3/draws": 11,
|
|
8
|
+
"tile/0/3/4/compressed": 1541492,
|
|
9
|
+
"tile/0/4/3/compressed": 1939692,
|
|
10
|
+
"tile/0/4/3/draws": 10,
|
|
11
|
+
"tile/0/4/4/compressed": 1388148,
|
|
12
|
+
"tile/1/2/1/compressed": 253704,
|
|
13
|
+
"window/2/2/compressed": 8463160,
|
|
14
|
+
"window/2/3/compressed": 8432224,
|
|
15
|
+
"window/2/4/compressed": 8472284,
|
|
16
|
+
"window/2/5/compressed": 8512940,
|
|
17
|
+
"window/3/2/compressed": 8412040,
|
|
18
|
+
"window/3/3/compressed": 8441060,
|
|
19
|
+
"window/3/4/compressed": 8454888,
|
|
20
|
+
"window/3/5/compressed": 8456068,
|
|
21
|
+
"window/4/2/compressed": 8435332,
|
|
22
|
+
"window/4/3/compressed": 8479180,
|
|
23
|
+
"window/4/4/compressed": 8444912,
|
|
24
|
+
"window/4/5/compressed": 8412132,
|
|
25
|
+
"window/5/2/compressed": 8420460,
|
|
26
|
+
"window/5/3/compressed": 8430040,
|
|
27
|
+
"window/5/4/compressed": 8401416,
|
|
28
|
+
"window/5/5/compressed": 8401560
|
|
29
|
+
},
|
|
5
30
|
"blender-template": {
|
|
6
31
|
"missing/0/0/0": 1,
|
|
7
32
|
"missing/0/0/1": 1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildshard/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "The author's toolbox: the `wildshard` CLI that bakes shard source into a shardfile, the author SDK, the local dev server (engine client against engine server), the explorers, arena and drafts tool.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@typescript/typescript6": "6.0.2",
|
|
85
85
|
"@valibot/to-json-schema": "1.8.0",
|
|
86
86
|
"@wildshard/engine": "0.1.18",
|
|
87
|
-
"@wildshard/format": "npm:@wildshard/shard-format@0.4.
|
|
87
|
+
"@wildshard/format": "npm:@wildshard/shard-format@0.4.10",
|
|
88
88
|
"ajv": "6.15.0",
|
|
89
89
|
"assemblyscript": "0.28.20",
|
|
90
90
|
"binaryen": "132.0.0",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"overrides": {
|
|
199
199
|
"binaryen": "npm:@pre-bundled/binaryen@132.0.0-patch-1",
|
|
200
200
|
"assemblyscript>binaryen": "npm:@pre-bundled/binaryen@131.0.0-nightly.20260721-patch-1",
|
|
201
|
-
"@wildshard/format": "npm:@wildshard/shard-format@0.4.
|
|
201
|
+
"@wildshard/format": "npm:@wildshard/shard-format@0.4.10"
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
"exports": {
|
|
@@ -25,6 +25,10 @@ export async function preparationPreview(client,dir,{clientPage}){
|
|
|
25
25
|
const recorded=existsSync(resolve(dir,'programs',`${slug}.json`));
|
|
26
26
|
const page=clientPage(readFileSync(resolve(client,'index.html'),'utf8'),header.trim().replaceAll('<','\\u003c'),slug,recorded);
|
|
27
27
|
const shardRoot=`/shardfiles/${slug}/`;
|
|
28
|
+
// S12f: the candidate's mounts (its discovery.json under mounts/shardfiles/<slug>/, the public files it owns) are
|
|
29
|
+
// served at their URLs from where cook.json says the product keeps them (mounts/, or the blob with the same bytes).
|
|
30
|
+
const cook=existsSync(resolve(dir,'cook.json'))?JSON.parse(readFileSync(resolve(dir,'cook.json'),'utf8')):{};
|
|
31
|
+
const mounts=new Map((Array.isArray(cook.mounts)?cook.mounts:[]).filter(row=>typeof row?.url==='string'&&typeof row.path==='string').map(row=>[row.url,row.path]));
|
|
28
32
|
const server=createServer((request,response)=>{
|
|
29
33
|
response.setHeader('Cache-Control','no-store');
|
|
30
34
|
try{
|
|
@@ -33,7 +37,8 @@ export async function preparationPreview(client,dir,{clientPage}){
|
|
|
33
37
|
if(path==='/'||path==='/index.html'){response.setHeader('Content-Type','text/html');response.end(request.method==='HEAD'?undefined:page);return;}
|
|
34
38
|
// The inline product reads beside the page, as `wildshard build` lays the client over the product folder (the
|
|
35
39
|
// client's file wins); the in-page server reads where a release serves the shard.
|
|
36
|
-
const
|
|
40
|
+
const mounted=mounts.get(path);
|
|
41
|
+
const file=mounted!==undefined?inside(dir,mounted):path.startsWith(shardRoot)?inside(dir,path.slice(shardRoot.length)):inside(client,path.slice(1))??inside(dir,path.slice(1));
|
|
37
42
|
if(file===undefined){response.writeHead(404);response.end();return;}
|
|
38
43
|
response.setHeader('Content-Type',MIME[extname(file)]??'application/octet-stream');
|
|
39
44
|
if(request.method==='HEAD')response.end();else createReadStream(file).on('error',()=>{response.destroy();}).pipe(response);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
{
|
|
31
31
|
"id": "hut",
|
|
32
32
|
"name": "Grey hut",
|
|
33
|
-
"x":
|
|
34
|
-
"z": -
|
|
33
|
+
"x": -4,
|
|
34
|
+
"z": -11.5,
|
|
35
35
|
"r": 6
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -44,44 +44,51 @@
|
|
|
44
44
|
{
|
|
45
45
|
"id": "barrow-warden",
|
|
46
46
|
"name": "Barrow Warden",
|
|
47
|
-
"x":
|
|
48
|
-
"z":
|
|
47
|
+
"x": 24.5,
|
|
48
|
+
"z": -2,
|
|
49
49
|
"r": 8
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"id": "blob",
|
|
53
53
|
"name": "Grey blob",
|
|
54
|
-
"x":
|
|
55
|
-
"z": -
|
|
54
|
+
"x": 2.5,
|
|
55
|
+
"z": -16.5,
|
|
56
56
|
"r": 4
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"id": "mossgate",
|
|
60
60
|
"name": "Moss gate",
|
|
61
|
-
"x": -
|
|
62
|
-
"z":
|
|
61
|
+
"x": -10,
|
|
62
|
+
"z": 0,
|
|
63
63
|
"r": 3
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"id": "brazier-a",
|
|
67
67
|
"name": "Brazier A",
|
|
68
|
-
"x":
|
|
69
|
-
"z": -
|
|
68
|
+
"x": 5.9,
|
|
69
|
+
"z": -12.8,
|
|
70
70
|
"r": 2
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"id": "brazier-c",
|
|
74
74
|
"name": "Brazier C",
|
|
75
|
-
"x":
|
|
76
|
-
"z":
|
|
75
|
+
"x": 9.6,
|
|
76
|
+
"z": -5.4,
|
|
77
77
|
"r": 2
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"id": "lamplighter",
|
|
81
81
|
"name": "Lamplighter",
|
|
82
|
-
"x":
|
|
83
|
-
"z": -
|
|
82
|
+
"x": 1.1,
|
|
83
|
+
"z": -6.4,
|
|
84
84
|
"r": 2
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "pond",
|
|
88
|
+
"name": "Moss pond",
|
|
89
|
+
"x": -19.4,
|
|
90
|
+
"z": 0,
|
|
91
|
+
"r": 3
|
|
85
92
|
}
|
|
86
93
|
],
|
|
87
94
|
"assetGlobs": [
|
|
@@ -308,9 +308,9 @@
|
|
|
308
308
|
"kind": "particles",
|
|
309
309
|
"id": "template.warden-ring.1",
|
|
310
310
|
"at": [
|
|
311
|
-
|
|
311
|
+
24.5,
|
|
312
312
|
0.2,
|
|
313
|
-
|
|
313
|
+
1.5
|
|
314
314
|
]
|
|
315
315
|
},
|
|
316
316
|
"reads": [
|
|
@@ -359,9 +359,9 @@
|
|
|
359
359
|
"kind": "particles",
|
|
360
360
|
"id": "template.warden-ring.2",
|
|
361
361
|
"at": [
|
|
362
|
-
|
|
362
|
+
26.25,
|
|
363
363
|
0.2,
|
|
364
|
-
|
|
364
|
+
1.031
|
|
365
365
|
]
|
|
366
366
|
},
|
|
367
367
|
"reads": [
|
|
@@ -410,9 +410,9 @@
|
|
|
410
410
|
"kind": "particles",
|
|
411
411
|
"id": "template.warden-ring.3",
|
|
412
412
|
"at": [
|
|
413
|
-
|
|
413
|
+
27.531,
|
|
414
414
|
0.2,
|
|
415
|
-
|
|
415
|
+
-0.25
|
|
416
416
|
]
|
|
417
417
|
},
|
|
418
418
|
"reads": [
|
|
@@ -461,9 +461,9 @@
|
|
|
461
461
|
"kind": "particles",
|
|
462
462
|
"id": "template.warden-ring.4",
|
|
463
463
|
"at": [
|
|
464
|
-
|
|
464
|
+
28.0,
|
|
465
465
|
0.2,
|
|
466
|
-
|
|
466
|
+
-2.0
|
|
467
467
|
]
|
|
468
468
|
},
|
|
469
469
|
"reads": [
|
|
@@ -512,9 +512,9 @@
|
|
|
512
512
|
"kind": "particles",
|
|
513
513
|
"id": "template.warden-ring.5",
|
|
514
514
|
"at": [
|
|
515
|
-
|
|
515
|
+
27.531,
|
|
516
516
|
0.2,
|
|
517
|
-
|
|
517
|
+
-3.75
|
|
518
518
|
]
|
|
519
519
|
},
|
|
520
520
|
"reads": [
|
|
@@ -563,9 +563,9 @@
|
|
|
563
563
|
"kind": "particles",
|
|
564
564
|
"id": "template.warden-ring.6",
|
|
565
565
|
"at": [
|
|
566
|
-
|
|
566
|
+
26.25,
|
|
567
567
|
0.2,
|
|
568
|
-
|
|
568
|
+
-5.031
|
|
569
569
|
]
|
|
570
570
|
},
|
|
571
571
|
"reads": [
|
|
@@ -614,9 +614,9 @@
|
|
|
614
614
|
"kind": "particles",
|
|
615
615
|
"id": "template.warden-ring.7",
|
|
616
616
|
"at": [
|
|
617
|
-
|
|
617
|
+
24.5,
|
|
618
618
|
0.2,
|
|
619
|
-
|
|
619
|
+
-5.5
|
|
620
620
|
]
|
|
621
621
|
},
|
|
622
622
|
"reads": [
|
|
@@ -665,9 +665,9 @@
|
|
|
665
665
|
"kind": "particles",
|
|
666
666
|
"id": "template.warden-ring.8",
|
|
667
667
|
"at": [
|
|
668
|
-
|
|
668
|
+
22.75,
|
|
669
669
|
0.2,
|
|
670
|
-
|
|
670
|
+
-5.031
|
|
671
671
|
]
|
|
672
672
|
},
|
|
673
673
|
"reads": [
|
|
@@ -716,9 +716,9 @@
|
|
|
716
716
|
"kind": "particles",
|
|
717
717
|
"id": "template.warden-ring.9",
|
|
718
718
|
"at": [
|
|
719
|
-
|
|
719
|
+
21.469,
|
|
720
720
|
0.2,
|
|
721
|
-
|
|
721
|
+
-3.75
|
|
722
722
|
]
|
|
723
723
|
},
|
|
724
724
|
"reads": [
|
|
@@ -767,9 +767,9 @@
|
|
|
767
767
|
"kind": "particles",
|
|
768
768
|
"id": "template.warden-ring.10",
|
|
769
769
|
"at": [
|
|
770
|
-
|
|
770
|
+
21.0,
|
|
771
771
|
0.2,
|
|
772
|
-
|
|
772
|
+
-2.0
|
|
773
773
|
]
|
|
774
774
|
},
|
|
775
775
|
"reads": [
|
|
@@ -818,9 +818,9 @@
|
|
|
818
818
|
"kind": "particles",
|
|
819
819
|
"id": "template.warden-ring.11",
|
|
820
820
|
"at": [
|
|
821
|
-
|
|
821
|
+
21.469,
|
|
822
822
|
0.2,
|
|
823
|
-
|
|
823
|
+
-0.25
|
|
824
824
|
]
|
|
825
825
|
},
|
|
826
826
|
"reads": [
|
|
@@ -869,9 +869,9 @@
|
|
|
869
869
|
"kind": "particles",
|
|
870
870
|
"id": "template.warden-ring.12",
|
|
871
871
|
"at": [
|
|
872
|
-
|
|
872
|
+
22.75,
|
|
873
873
|
0.2,
|
|
874
|
-
|
|
874
|
+
1.031
|
|
875
875
|
]
|
|
876
876
|
},
|
|
877
877
|
"reads": [
|
|
@@ -920,9 +920,9 @@
|
|
|
920
920
|
"kind": "particles",
|
|
921
921
|
"id": "template.warden-core",
|
|
922
922
|
"at": [
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
24.5,
|
|
924
|
+
4.6,
|
|
925
|
+
-2
|
|
926
926
|
]
|
|
927
927
|
},
|
|
928
928
|
"reads": [
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"seed": 435,
|
|
26
26
|
"scale": 1,
|
|
27
27
|
"at": [
|
|
28
|
+
2.5,
|
|
28
29
|
0,
|
|
29
|
-
|
|
30
|
-
-19
|
|
30
|
+
-16.5
|
|
31
31
|
],
|
|
32
32
|
"yaw": 0
|
|
33
33
|
},
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"brain": null,
|
|
54
54
|
"strike": "template.warden.slam",
|
|
55
55
|
"seed": 437,
|
|
56
|
-
"scale":
|
|
56
|
+
"scale": 3.0,
|
|
57
57
|
"at": [
|
|
58
|
-
|
|
58
|
+
24.5,
|
|
59
59
|
0,
|
|
60
|
-
|
|
60
|
+
-2
|
|
61
61
|
],
|
|
62
62
|
"yaw": 0
|
|
63
63
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"HUT": {
|
|
3
|
-
"x":
|
|
4
|
-
"z": -
|
|
5
|
-
"doorZ": -
|
|
3
|
+
"x": -4,
|
|
4
|
+
"z": -14.5,
|
|
5
|
+
"doorZ": -11.5
|
|
6
6
|
},
|
|
7
7
|
"BLOB": {
|
|
8
|
-
"x":
|
|
9
|
-
"z": -
|
|
8
|
+
"x": 2.5,
|
|
9
|
+
"z": -16.5
|
|
10
10
|
},
|
|
11
11
|
"ELITE": {
|
|
12
12
|
"x": 15,
|
|
13
13
|
"z": -12
|
|
14
14
|
},
|
|
15
15
|
"BOSS": {
|
|
16
|
-
"x":
|
|
17
|
-
"z":
|
|
16
|
+
"x": 24.5,
|
|
17
|
+
"z": -2
|
|
18
18
|
},
|
|
19
19
|
"TRAIL": [
|
|
20
20
|
[
|
|
@@ -23,44 +23,75 @@
|
|
|
23
23
|
0
|
|
24
24
|
],
|
|
25
25
|
[
|
|
26
|
-
0,
|
|
26
|
+
-0.6,
|
|
27
|
+
-4
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
-2.6,
|
|
27
31
|
-9
|
|
28
32
|
],
|
|
29
33
|
[
|
|
30
|
-
|
|
31
|
-
-
|
|
34
|
+
-4,
|
|
35
|
+
-11.5
|
|
32
36
|
]
|
|
33
37
|
]
|
|
34
38
|
],
|
|
35
39
|
"BRAZIERS": [
|
|
36
40
|
[
|
|
37
|
-
|
|
38
|
-
-
|
|
41
|
+
5.9,
|
|
42
|
+
-12.8
|
|
39
43
|
],
|
|
40
44
|
[
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
-27.6,
|
|
46
|
+
0.2
|
|
43
47
|
],
|
|
44
48
|
[
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
9.6,
|
|
50
|
+
-5.4
|
|
51
|
+
]
|
|
52
|
+
],
|
|
53
|
+
"ROW": [
|
|
54
|
+
[
|
|
55
|
+
8.3,
|
|
56
|
+
-12.8
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
10.7,
|
|
60
|
+
-12.8
|
|
47
61
|
]
|
|
48
62
|
],
|
|
49
63
|
"MOSSGATE": {
|
|
50
|
-
"x": -
|
|
51
|
-
"z":
|
|
64
|
+
"x": -10,
|
|
65
|
+
"z": 0
|
|
52
66
|
},
|
|
53
67
|
"POND": {
|
|
54
|
-
"x":
|
|
55
|
-
"z":
|
|
68
|
+
"x": -19.4,
|
|
69
|
+
"z": 0,
|
|
70
|
+
"hx": 6.6,
|
|
71
|
+
"hz": 5.4,
|
|
72
|
+
"r": 2.2
|
|
56
73
|
},
|
|
57
74
|
"ARENA": {
|
|
58
|
-
"x":
|
|
59
|
-
"z":
|
|
75
|
+
"x": 25.5,
|
|
76
|
+
"z": -2,
|
|
60
77
|
"radius": 9.5
|
|
61
78
|
},
|
|
62
79
|
"LAMPLIGHTER": {
|
|
63
|
-
"x":
|
|
64
|
-
"z": -
|
|
65
|
-
}
|
|
80
|
+
"x": 1.1,
|
|
81
|
+
"z": -6.4
|
|
82
|
+
},
|
|
83
|
+
"SIGN": [
|
|
84
|
+
-6.8,
|
|
85
|
+
-8.8
|
|
86
|
+
],
|
|
87
|
+
"YARD": [
|
|
88
|
+
[
|
|
89
|
+
-10,
|
|
90
|
+
-18.6
|
|
91
|
+
],
|
|
92
|
+
[
|
|
93
|
+
12.5,
|
|
94
|
+
8
|
|
95
|
+
]
|
|
96
|
+
]
|
|
66
97
|
}
|