vibedgames 0.10.0 → 0.10.2

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.
Files changed (175) hide show
  1. package/assets/rebuild-object/.cache/spec-search/core_3d.json +1 -0
  2. package/assets/rebuild-object/.cache/spec-search/cs2.json +1 -0
  3. package/assets/rebuild-object/LICENSE +201 -0
  4. package/assets/rebuild-object/NOTICE +7 -0
  5. package/assets/rebuild-object/docs/materials/material-reference.json +2324 -0
  6. package/assets/rebuild-object/docs/specs/render-profile.v2.example.json +63 -0
  7. package/assets/rebuild-object/docs/specs/render-profile.v2.schema.json +56 -0
  8. package/assets/rebuild-object/docs/specs/vocabulary/README.md +86 -0
  9. package/assets/rebuild-object/docs/specs/vocabulary/core_3d.jsonl +12 -0
  10. package/assets/rebuild-object/docs/specs/vocabulary/core_3d_reconstruction.jsonl +37 -0
  11. package/assets/rebuild-object/docs/specs/vocabulary/cs2.jsonl +8 -0
  12. package/assets/rebuild-object/docs/specs/vocabulary/cs2_reconstruction.jsonl +62 -0
  13. package/assets/rebuild-object/forge/_shared/artifact_cache.py +54 -0
  14. package/assets/rebuild-object/forge/_shared/chirality.py +272 -0
  15. package/assets/rebuild-object/forge/_shared/color_metrics.py +107 -0
  16. package/assets/rebuild-object/forge/_shared/feature_acceptance_policy.py +113 -0
  17. package/assets/rebuild-object/forge/_shared/image_hash.py +113 -0
  18. package/assets/rebuild-object/forge/_shared/jpeg.py +448 -0
  19. package/assets/rebuild-object/forge/_shared/material_physics.py +253 -0
  20. package/assets/rebuild-object/forge/_shared/pipeline_routing.py +177 -0
  21. package/assets/rebuild-object/forge/_shared/scalp_field.py +302 -0
  22. package/assets/rebuild-object/forge/_shared/sdf_primitives.py +172 -0
  23. package/assets/rebuild-object/forge/_shared/spec_search.py +1792 -0
  24. package/assets/rebuild-object/forge/_shared/spec_search_profiles.json +58 -0
  25. package/assets/rebuild-object/forge/_shared/status_banner.py +35 -0
  26. package/assets/rebuild-object/forge/_shared/subdivision.py +232 -0
  27. package/assets/rebuild-object/forge/_shared/vertex_paint.py +236 -0
  28. package/assets/rebuild-object/forge/_shared/workflow_state.py +406 -0
  29. package/assets/rebuild-object/forge/materials/__init__.py +17 -0
  30. package/assets/rebuild-object/forge/materials/compatibility.py +106 -0
  31. package/assets/rebuild-object/forge/materials/reference.py +240 -0
  32. package/assets/rebuild-object/forge/next.py +116 -0
  33. package/assets/rebuild-object/forge/report.py +38 -0
  34. package/assets/rebuild-object/forge/requirements.txt +6 -0
  35. package/assets/rebuild-object/forge/stage1_intake/analyze_texture.py +255 -0
  36. package/assets/rebuild-object/forge/stage1_intake/bind_detail_properties.py +99 -0
  37. package/assets/rebuild-object/forge/stage1_intake/build_detail_inventory.py +349 -0
  38. package/assets/rebuild-object/forge/stage1_intake/camera_fitting_math.py +133 -0
  39. package/assets/rebuild-object/forge/stage1_intake/camera_fitting_solver.py +197 -0
  40. package/assets/rebuild-object/forge/stage1_intake/camera_fitting_types.py +291 -0
  41. package/assets/rebuild-object/forge/stage1_intake/camera_image_helpers.py +133 -0
  42. package/assets/rebuild-object/forge/stage1_intake/check_intake_correctness.py +116 -0
  43. package/assets/rebuild-object/forge/stage1_intake/check_reference_admission.py +203 -0
  44. package/assets/rebuild-object/forge/stage1_intake/cs2_foundation.py +139 -0
  45. package/assets/rebuild-object/forge/stage1_intake/cs2_manifest.py +230 -0
  46. package/assets/rebuild-object/forge/stage1_intake/cs2_review_contract.py +42 -0
  47. package/assets/rebuild-object/forge/stage1_intake/delight_albedo.py +352 -0
  48. package/assets/rebuild-object/forge/stage1_intake/detect_cs2.py +276 -0
  49. package/assets/rebuild-object/forge/stage1_intake/detect_reference_effects.py +275 -0
  50. package/assets/rebuild-object/forge/stage1_intake/extract_cs2_textures.py +126 -0
  51. package/assets/rebuild-object/forge/stage1_intake/extract_gradient_stops.py +149 -0
  52. package/assets/rebuild-object/forge/stage1_intake/extract_hair_evidence.py +385 -0
  53. package/assets/rebuild-object/forge/stage1_intake/extract_landmarks.py +456 -0
  54. package/assets/rebuild-object/forge/stage1_intake/extract_part_color_recipe.py +496 -0
  55. package/assets/rebuild-object/forge/stage1_intake/extract_pbr_evidence.py +843 -0
  56. package/assets/rebuild-object/forge/stage1_intake/fetch_cs2_metadata.py +147 -0
  57. package/assets/rebuild-object/forge/stage1_intake/label_glb_nodes.py +318 -0
  58. package/assets/rebuild-object/forge/stage1_intake/locate_cs2_vpk.py +73 -0
  59. package/assets/rebuild-object/forge/stage1_intake/material_region_analysis.py +227 -0
  60. package/assets/rebuild-object/forge/stage1_intake/probe_glb.py +357 -0
  61. package/assets/rebuild-object/forge/stage1_intake/probe_image.py +168 -0
  62. package/assets/rebuild-object/forge/stage1_intake/run_vision_adapter.py +45 -0
  63. package/assets/rebuild-object/forge/stage1_intake/search_specs.py +258 -0
  64. package/assets/rebuild-object/forge/stage1_intake/semantic_decomposition.py +119 -0
  65. package/assets/rebuild-object/forge/stage1_intake/solve_camera_pose.py +254 -0
  66. package/assets/rebuild-object/forge/stage2_spec/apply_material_analysis.py +192 -0
  67. package/assets/rebuild-object/forge/stage2_spec/cs2_adapters.py +62 -0
  68. package/assets/rebuild-object/forge/stage2_spec/derive_geometry.py +118 -0
  69. package/assets/rebuild-object/forge/stage2_spec/hair_profile.py +306 -0
  70. package/assets/rebuild-object/forge/stage2_spec/humanoid_proportions.py +214 -0
  71. package/assets/rebuild-object/forge/stage2_spec/new_pre_spec_assessment.py +343 -0
  72. package/assets/rebuild-object/forge/stage2_spec/new_sculpt_spec.py +2396 -0
  73. package/assets/rebuild-object/forge/stage2_spec/validate_sculpt_spec.py +2871 -0
  74. package/assets/rebuild-object/forge/stage3_build/bake_projected_texture.py +181 -0
  75. package/assets/rebuild-object/forge/stage3_build/decimate.py +272 -0
  76. package/assets/rebuild-object/forge/stage3_build/generate_threejs_factory.py +4099 -0
  77. package/assets/rebuild-object/forge/stage3_build/module_cache.py +155 -0
  78. package/assets/rebuild-object/forge/stage3_build/morph_targets.py +178 -0
  79. package/assets/rebuild-object/forge/stage3_build/orchestrate_passes.py +653 -0
  80. package/assets/rebuild-object/forge/stage3_build/uv_unwrap.py +622 -0
  81. package/assets/rebuild-object/forge/stage3_build/visual_hull.py +357 -0
  82. package/assets/rebuild-object/forge/stage4_review/_fit_divine_eye.py +64 -0
  83. package/assets/rebuild-object/forge/stage4_review/append_review.py +453 -0
  84. package/assets/rebuild-object/forge/stage4_review/attachment_anchor.py +349 -0
  85. package/assets/rebuild-object/forge/stage4_review/calibrate_eye.py +131 -0
  86. package/assets/rebuild-object/forge/stage4_review/check_part_coverage.py +298 -0
  87. package/assets/rebuild-object/forge/stage4_review/compare_region_passes.py +169 -0
  88. package/assets/rebuild-object/forge/stage4_review/correction_loop.py +258 -0
  89. package/assets/rebuild-object/forge/stage4_review/cs2_review.py +224 -0
  90. package/assets/rebuild-object/forge/stage4_review/diagnose_render.py +356 -0
  91. package/assets/rebuild-object/forge/stage4_review/diagnose_render_multi_angle.py +143 -0
  92. package/assets/rebuild-object/forge/stage4_review/divine_eye.py +461 -0
  93. package/assets/rebuild-object/forge/stage4_review/fit_params.py +381 -0
  94. package/assets/rebuild-object/forge/stage4_review/geometry_integrity.py +294 -0
  95. package/assets/rebuild-object/forge/stage4_review/hair_gate.py +216 -0
  96. package/assets/rebuild-object/forge/stage4_review/interior_difference.py +188 -0
  97. package/assets/rebuild-object/forge/stage4_review/joint_loops.py +209 -0
  98. package/assets/rebuild-object/forge/stage4_review/make_comparison_sheet.py +292 -0
  99. package/assets/rebuild-object/forge/stage4_review/material_comparator.py +181 -0
  100. package/assets/rebuild-object/forge/stage4_review/material_feedback.py +143 -0
  101. package/assets/rebuild-object/forge/stage4_review/material_gate.py +126 -0
  102. package/assets/rebuild-object/forge/stage4_review/material_views.py +184 -0
  103. package/assets/rebuild-object/forge/stage4_review/mesh_reference_compare.py +362 -0
  104. package/assets/rebuild-object/forge/stage4_review/multi_pass.py +102 -0
  105. package/assets/rebuild-object/forge/stage4_review/objectness.py +143 -0
  106. package/assets/rebuild-object/forge/stage4_review/pairwise_penetration.py +376 -0
  107. package/assets/rebuild-object/forge/stage4_review/per_feature.py +215 -0
  108. package/assets/rebuild-object/forge/stage4_review/render_bridge.py +556 -0
  109. package/assets/rebuild-object/forge/stage4_review/scalp_exposure.py +257 -0
  110. package/assets/rebuild-object/forge/stage4_review/self_intersection.py +592 -0
  111. package/assets/rebuild-object/forge/stage4_review/swept_arc_gate.py +336 -0
  112. package/assets/rebuild-object/forge/stage4_review/turntable_gate.py +415 -0
  113. package/assets/rebuild-object/forge/stage4_review/validate_render_profile.py +182 -0
  114. package/assets/rebuild-object/forge/stage4_review/vertex_region_gate.py +456 -0
  115. package/assets/rebuild-object/forge/stage4_review/vlm_gate.py +196 -0
  116. package/assets/rebuild-object/forge/stage5_rig/NOTES.md +149 -0
  117. package/assets/rebuild-object/forge/stage5_rig/__init__.py +6 -0
  118. package/assets/rebuild-object/forge/stage5_rig/emit_rig.py +420 -0
  119. package/assets/rebuild-object/forge/stage5_rig/geodesic_skinning.py +508 -0
  120. package/assets/rebuild-object/forge/stage5_rig/rig_spec.py +174 -0
  121. package/assets/rebuild-object/forge/stage5_rig/validate_rig_payload.py +195 -0
  122. package/assets/rebuild-object/forge/state.py +98 -0
  123. package/assets/rebuild-object/steps.json +381 -0
  124. package/dist/{chunk-FXXVXDTW.js → chunk-24TITAFS.js} +1 -1
  125. package/dist/{chunk-OGX4DKIS.js → chunk-2C5PG2QO.js} +1 -1
  126. package/dist/{chunk-HYOXGNWS.js → chunk-2DEVOKI7.js} +1 -1
  127. package/dist/{chunk-RRI23NK2.js → chunk-2GHPYT2P.js} +1 -1
  128. package/dist/{chunk-S7HYWITX.js → chunk-2HXGMXGC.js} +1 -1
  129. package/dist/{chunk-N2UHAQXC.js → chunk-36FORP7T.js} +0 -1
  130. package/dist/{chunk-VB4WLJR2.js → chunk-3IXRQTRF.js} +1 -1
  131. package/dist/{chunk-2KVQJKIZ.js → chunk-4ENHS32B.js} +23 -36
  132. package/dist/{chunk-SXYQL4GK.js → chunk-4YHA32OE.js} +1 -1
  133. package/dist/{chunk-4FJXCS3K.js → chunk-4ZGQKPK5.js} +1 -1
  134. package/dist/{chunk-SBXCK2I2.js → chunk-6CLUPFQA.js} +2 -2
  135. package/dist/{chunk-TXOE5UY5.js → chunk-7WTF2BA4.js} +1 -1
  136. package/dist/{chunk-R2WVORGD.js → chunk-AAXZNK4Z.js} +1 -1
  137. package/dist/{chunk-DOOQUFPG.js → chunk-ALLBT4FB.js} +1 -1
  138. package/dist/{chunk-HRKVAXNN.js → chunk-BAZDPPIG.js} +5 -5
  139. package/dist/{chunk-RPJR3S5S.js → chunk-CYDENLZ4.js} +5 -8
  140. package/dist/{chunk-I5LELJSK.js → chunk-DKSUD44G.js} +1 -1
  141. package/dist/{chunk-43P4U7CB.js → chunk-DWWSJKTE.js} +1 -1
  142. package/dist/{chunk-SUSX3QIA.js → chunk-E72TFJZP.js} +1 -1
  143. package/dist/{chunk-E3FJUPLT.js → chunk-EUAAQMUA.js} +2 -0
  144. package/dist/{chunk-U6DTE5IX.js → chunk-F7LYJSZE.js} +1 -1
  145. package/dist/{chunk-MEAO33XW.js → chunk-FMON3C74.js} +8 -8
  146. package/dist/{chunk-GLEW7VJQ.js → chunk-FPILHRLZ.js} +1 -1
  147. package/dist/{chunk-OPUCUUID.js → chunk-G63MXDX2.js} +4 -0
  148. package/dist/{chunk-4UU622RK.js → chunk-GGO6ZYYI.js} +1 -3
  149. package/dist/{chunk-2ZKS7V72.js → chunk-GZCRYYS6.js} +5 -5
  150. package/dist/{chunk-E7NDOZ27.js → chunk-LE4GVTYI.js} +8 -8
  151. package/dist/{chunk-RKS7SI5L.js → chunk-NO6KPV64.js} +1 -1
  152. package/dist/{chunk-KJK5CB6E.js → chunk-NXW3Z4Y4.js} +1 -1
  153. package/dist/{chunk-7RPLQWR2.js → chunk-OHOAZGO4.js} +1 -1
  154. package/dist/chunk-PYJNI5WD.js +83 -0
  155. package/dist/{chunk-NCX6LYNJ.js → chunk-Q4XAGTFX.js} +1 -1
  156. package/dist/{chunk-3UGGMFJJ.js → chunk-QMZBSVKF.js} +1 -1
  157. package/dist/{chunk-ABTUEIRC.js → chunk-QO66UBOS.js} +2 -2
  158. package/dist/{chunk-LONQWRTR.js → chunk-S4KVGQQO.js} +8 -8
  159. package/dist/{chunk-HX5Q63UA.js → chunk-T777EXAO.js} +1 -1
  160. package/dist/{chunk-UQ7VO6B3.js → chunk-TZZNRA3S.js} +1 -1
  161. package/dist/{chunk-CTY2WZQK.js → chunk-UC3QLWMQ.js} +1 -1
  162. package/dist/{chunk-MR5KIFI7.js → chunk-UDJH2RED.js} +3 -3
  163. package/dist/{chunk-ZHLPE6LI.js → chunk-UIKYK7KI.js} +1 -1
  164. package/dist/{chunk-KAGVI3CE.js → chunk-UJRSQO2B.js} +1 -1
  165. package/dist/{chunk-Q2QC6KAZ.js → chunk-V7LEYVXB.js} +29 -25
  166. package/dist/{chunk-DB7WVFS7.js → chunk-WRMQEXUC.js} +1 -1
  167. package/dist/{chunk-HSMG6U7J.js → chunk-WXSBNC67.js} +3 -9
  168. package/dist/{chunk-QLCVLCPM.js → chunk-X4QIOXNQ.js} +1 -1
  169. package/dist/{chunk-5YPLKGY3.js → chunk-Y6WHUK2O.js} +1 -1
  170. package/dist/{chunk-VZEJ2ZHE.js → chunk-Z3E7ORGQ.js} +5 -5
  171. package/dist/index.js +20 -20
  172. package/package.json +32 -22
  173. package/dist/{chunk-Q3XQPNF6.js → chunk-BN7TR6OR.js} +3 -3
  174. package/dist/{chunk-LORGE2NB.js → chunk-U2NCN5RO.js} +3 -3
  175. package/dist/{chunk-UPHB5HWO.js → chunk-VQTTSPA3.js} +3 -3
@@ -0,0 +1,83 @@
1
+ import { createRequire as __createRequire } from "node:module";
2
+ import { dirname as __pathDirname } from "node:path";
3
+ import { fileURLToPath as __fileURLToPath } from "node:url";
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import {
8
+ pythonScript
9
+ } from "./chunk-2GHPYT2P.js";
10
+ import "./chunk-5535KDYI.js";
11
+ import {
12
+ consola
13
+ } from "./chunk-D2RF35HJ.js";
14
+ import {
15
+ ASSETS_DIR
16
+ } from "./chunk-YNCYMWER.js";
17
+ import "./chunk-AWJNAGPE.js";
18
+ import {
19
+ external_exports
20
+ } from "./chunk-RPSUFZAG.js";
21
+ import "./chunk-2SBBKY5C.js";
22
+ import "./chunk-GKDUYJ7R.js";
23
+
24
+ // src/commands/asset/rebuild-object.ts
25
+ import { readFileSync } from "node:fs";
26
+ import path from "node:path";
27
+ var ROOT = "rebuild-object";
28
+ var REBUILD_OBJECT_DIR = path.join(ASSETS_DIR, ROOT);
29
+ var manifestSchema = external_exports.object({
30
+ commit: external_exports.string(),
31
+ steps: external_exports.array(external_exports.object({ description: external_exports.string(), name: external_exports.string(), script: external_exports.string() })),
32
+ version: external_exports.string()
33
+ });
34
+ var STAGES = /* @__PURE__ */ new Map([
35
+ ["forge", "Pipeline"],
36
+ ["materials", "Materials"],
37
+ ["stage1_intake", "1. Intake"],
38
+ ["stage2_spec", "2. Spec"],
39
+ ["stage3_build", "3. Build"],
40
+ ["stage4_review", "4. Review"],
41
+ ["stage5_rig", "5. Rig"]
42
+ ]);
43
+ var loadManifest = () => manifestSchema.parse(
44
+ JSON.parse(readFileSync(path.join(REBUILD_OBJECT_DIR, "steps.json"), "utf-8"))
45
+ );
46
+ var usage = (manifest) => {
47
+ const sections = Map.groupBy(manifest.steps, (step) => step.script.split("/").at(-2) ?? "forge");
48
+ return [
49
+ "Usage: vg asset rebuild-object <step> [args]",
50
+ "",
51
+ "Rebuild an object from a reference image as a procedural Three.js factory.",
52
+ "Start with `next <spec.json>`: it names the current pass and the exact next step.",
53
+ "Each step takes `--help`. Needs uv (Python 3.12 runs through it).",
54
+ "",
55
+ ...[...sections].flatMap(([stage, steps]) => [
56
+ `${STAGES.get(stage) ?? stage}:`,
57
+ ...steps.map((step) => ` ${step.name.padEnd(30)}${step.description}`),
58
+ ""
59
+ ]),
60
+ `img2threejs ${manifest.version} (${manifest.commit}), Apache-2.0.`
61
+ ].join("\n");
62
+ };
63
+ var run = (argv) => {
64
+ const manifest = loadManifest();
65
+ const [name = "", ...rest] = argv;
66
+ if (name === "" || name === "--help" || name === "-h") {
67
+ console.log(usage(manifest));
68
+ process.exit(0);
69
+ }
70
+ const step = manifest.steps.find((entry) => entry.name === name);
71
+ if (step === void 0) {
72
+ consola.error(`Unknown rebuild-object step: ${name}
73
+
74
+ ${usage(manifest)}`);
75
+ process.exit(2);
76
+ }
77
+ pythonScript(path.join(ROOT, step.script))(rest);
78
+ };
79
+ export {
80
+ REBUILD_OBJECT_DIR,
81
+ loadManifest,
82
+ run
83
+ };
@@ -18,7 +18,7 @@ import {
18
18
  resolvePoseBoardPreset,
19
19
  totalCells,
20
20
  withStyle
21
- } from "./chunk-2KVQJKIZ.js";
21
+ } from "./chunk-4ENHS32B.js";
22
22
  import "./chunk-2SBBKY5C.js";
23
23
  import "./chunk-GKDUYJ7R.js";
24
24
 
@@ -6,7 +6,7 @@ var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
7
  import {
8
8
  pythonScript
9
- } from "./chunk-RRI23NK2.js";
9
+ } from "./chunk-2GHPYT2P.js";
10
10
  import "./chunk-5535KDYI.js";
11
11
  import "./chunk-D2RF35HJ.js";
12
12
  import "./chunk-YNCYMWER.js";
@@ -9,8 +9,8 @@ import {
9
9
  } from "./chunk-JN4WZCR7.js";
10
10
  import {
11
11
  createClient
12
- } from "./chunk-CTY2WZQK.js";
13
- import "./chunk-E3FJUPLT.js";
12
+ } from "./chunk-UC3QLWMQ.js";
13
+ import "./chunk-EUAAQMUA.js";
14
14
  import "./chunk-Q5NZNXJE.js";
15
15
  import {
16
16
  isJsonOutput,
@@ -8,26 +8,26 @@ import {
8
8
  ensureAgentBrowser,
9
9
  projectSessionId,
10
10
  resolveGameUrl
11
- } from "./chunk-RPJR3S5S.js";
12
- import "./chunk-N2UHAQXC.js";
13
- import "./chunk-TMPBGXT4.js";
14
- import {
15
- assertKnownFlags
16
- } from "./chunk-RZ4DIJQW.js";
11
+ } from "./chunk-CYDENLZ4.js";
12
+ import "./chunk-36FORP7T.js";
17
13
  import "./chunk-JN4WZCR7.js";
18
14
  import {
19
15
  authErrorCode,
20
16
  createClient
21
- } from "./chunk-CTY2WZQK.js";
22
- import "./chunk-E3FJUPLT.js";
17
+ } from "./chunk-UC3QLWMQ.js";
18
+ import "./chunk-EUAAQMUA.js";
23
19
  import {
24
20
  getBaseUrl,
25
21
  getToken
26
22
  } from "./chunk-Q5NZNXJE.js";
23
+ import "./chunk-TMPBGXT4.js";
27
24
  import {
28
25
  outputArgs,
29
26
  writeStructured
30
27
  } from "./chunk-COSLGSVO.js";
28
+ import {
29
+ assertKnownFlags
30
+ } from "./chunk-RZ4DIJQW.js";
31
31
  import {
32
32
  defineCommand
33
33
  } from "./chunk-MBXCVCC4.js";
@@ -14,7 +14,7 @@ import {
14
14
  sizesToCsv,
15
15
  writeJsonFile,
16
16
  writeTextFile
17
- } from "./chunk-2KVQJKIZ.js";
17
+ } from "./chunk-4ENHS32B.js";
18
18
  import "./chunk-2SBBKY5C.js";
19
19
  import "./chunk-GKDUYJ7R.js";
20
20
 
@@ -13,7 +13,7 @@ import {
13
13
  main,
14
14
  parseArgs,
15
15
  parseColor
16
- } from "./chunk-2KVQJKIZ.js";
16
+ } from "./chunk-4ENHS32B.js";
17
17
  import "./chunk-2SBBKY5C.js";
18
18
  import "./chunk-GKDUYJ7R.js";
19
19
 
@@ -7,7 +7,7 @@ var __dirname = __pathDirname(__filename);
7
7
  import {
8
8
  CLI_VERSION_HEADER,
9
9
  getAccessToken
10
- } from "./chunk-E3FJUPLT.js";
10
+ } from "./chunk-EUAAQMUA.js";
11
11
  import {
12
12
  getBaseUrl,
13
13
  getToken
@@ -13,7 +13,8 @@ import {
13
13
  import {
14
14
  fetchLatestVersion,
15
15
  isNewerVersion
16
- } from "./chunk-N2UHAQXC.js";
16
+ } from "./chunk-36FORP7T.js";
17
+ import "./chunk-JN4WZCR7.js";
17
18
  import {
18
19
  FACTORY_PACKAGE,
19
20
  installedFactoryVersion,
@@ -24,11 +25,10 @@ import {
24
25
  run
25
26
  } from "./chunk-F42QKWBB.js";
26
27
  import "./chunk-G66HRVDW.js";
28
+ import "./chunk-Q5NZNXJE.js";
27
29
  import {
28
30
  assertKnownFlags
29
31
  } from "./chunk-RZ4DIJQW.js";
30
- import "./chunk-JN4WZCR7.js";
31
- import "./chunk-Q5NZNXJE.js";
32
32
  import {
33
33
  defineCommand
34
34
  } from "./chunk-MBXCVCC4.js";
@@ -10,7 +10,7 @@ import {
10
10
  inspectAseprite,
11
11
  main,
12
12
  parseArgs
13
- } from "./chunk-2KVQJKIZ.js";
13
+ } from "./chunk-4ENHS32B.js";
14
14
  import "./chunk-2SBBKY5C.js";
15
15
  import "./chunk-GKDUYJ7R.js";
16
16
 
@@ -15,7 +15,7 @@ import {
15
15
  main,
16
16
  parseArgs,
17
17
  writeJsonFile
18
- } from "./chunk-2KVQJKIZ.js";
18
+ } from "./chunk-4ENHS32B.js";
19
19
  import "./chunk-2SBBKY5C.js";
20
20
  import "./chunk-GKDUYJ7R.js";
21
21
 
@@ -7,7 +7,7 @@ var __dirname = __pathDirname(__filename);
7
7
  import {
8
8
  rawTool,
9
9
  runRawTool
10
- } from "./chunk-OPUCUUID.js";
10
+ } from "./chunk-G63MXDX2.js";
11
11
  import {
12
12
  defineCommand
13
13
  } from "./chunk-MBXCVCC4.js";
@@ -18,99 +18,103 @@ import "./chunk-GKDUYJ7R.js";
18
18
  var ASSET_TOOLS = {
19
19
  "align-framing": {
20
20
  description: "Crop or align a reference image to a render's framing (needs uv).",
21
- load: rawTool(async () => await import("./chunk-3UGGMFJJ.js"))
21
+ load: rawTool(async () => await import("./chunk-QMZBSVKF.js"))
22
22
  },
23
23
  "aseprite-inspect": {
24
24
  description: "Parse an .aseprite file into JSON: frames, layers, tags, optional cel decode.",
25
- load: rawTool(async () => await import("./chunk-ZHLPE6LI.js"))
25
+ load: rawTool(async () => await import("./chunk-UIKYK7KI.js"))
26
26
  },
27
27
  "build-sequence-gif": {
28
28
  description: "Assemble ordered frames into an animated GIF preview.",
29
- load: rawTool(async () => await import("./chunk-DOOQUFPG.js"))
29
+ load: rawTool(async () => await import("./chunk-ALLBT4FB.js"))
30
30
  },
31
31
  "chroma-clean": {
32
32
  description: "Key out a chroma background, trim fringe and despill.",
33
- load: rawTool(async () => await import("./chunk-OGX4DKIS.js"))
33
+ load: rawTool(async () => await import("./chunk-2C5PG2QO.js"))
34
34
  },
35
35
  "image-util": {
36
36
  description: "Report PNG sizes, nearest-neighbour upscale, or Lanczos resize.",
37
- load: rawTool(async () => await import("./chunk-7RPLQWR2.js"))
37
+ load: rawTool(async () => await import("./chunk-OHOAZGO4.js"))
38
38
  },
39
39
  "manifest-check": {
40
40
  description: "Check an asset manifest against the files on disk.",
41
- load: rawTool(async () => await import("./chunk-KAGVI3CE.js"))
41
+ load: rawTool(async () => await import("./chunk-UJRSQO2B.js"))
42
42
  },
43
43
  "manifest-export-json": {
44
44
  description: "Convert an assets_index.lua manifest to JSON.",
45
- load: rawTool(async () => await import("./chunk-GLEW7VJQ.js"))
45
+ load: rawTool(async () => await import("./chunk-FPILHRLZ.js"))
46
46
  },
47
47
  "normalize-canvas": {
48
48
  description: "Pad frames to one canvas size with a shared baseline.",
49
- load: rawTool(async () => await import("./chunk-TXOE5UY5.js"))
49
+ load: rawTool(async () => await import("./chunk-7WTF2BA4.js"))
50
50
  },
51
51
  "normalize-factory": {
52
52
  description: "Strip generator metadata from image-to-threejs factory output.",
53
- load: rawTool(async () => await import("./chunk-5YPLKGY3.js"))
53
+ load: rawTool(async () => await import("./chunk-Y6WHUK2O.js"))
54
54
  },
55
55
  "pack-spritesheet": {
56
56
  description: "Pack a folder of frames into a spritesheet plus JSON.",
57
- load: rawTool(async () => await import("./chunk-VB4WLJR2.js"))
57
+ load: rawTool(async () => await import("./chunk-3IXRQTRF.js"))
58
58
  },
59
59
  "pixel-snapper": {
60
60
  description: "Snap a generated image onto a true pixel grid with a reduced palette.",
61
- load: rawTool(async () => await import("./chunk-HYOXGNWS.js"))
61
+ load: rawTool(async () => await import("./chunk-2DEVOKI7.js"))
62
62
  },
63
63
  "pixel-snapper-sheet": {
64
64
  description: "Pixel-snap each cell of a known-layout spritesheet.",
65
- load: rawTool(async () => await import("./chunk-S7HYWITX.js"))
65
+ load: rawTool(async () => await import("./chunk-2HXGMXGC.js"))
66
66
  },
67
67
  "process-sheet": {
68
68
  description: "Turn a generated pose board into clean, aligned animation frames.",
69
- load: rawTool(async () => await import("./chunk-U6DTE5IX.js"))
69
+ load: rawTool(async () => await import("./chunk-F7LYJSZE.js"))
70
+ },
71
+ "rebuild-object": {
72
+ description: "Rebuild an object from a reference image as rigged three.js code (needs uv).",
73
+ load: rawTool(async () => await import("./chunk-PYJNI5WD.js"))
70
74
  },
71
75
  "recover-component-frames": {
72
76
  description: "Recover frames from a pose board by connected components.",
73
- load: rawTool(async () => await import("./chunk-RKS7SI5L.js"))
77
+ load: rawTool(async () => await import("./chunk-NO6KPV64.js"))
74
78
  },
75
79
  "ref-sxs": {
76
80
  description: "Put a reference shot beside a capture, plus a blurred twin.",
77
- load: rawTool(async () => await import("./chunk-UQ7VO6B3.js"))
81
+ load: rawTool(async () => await import("./chunk-TZZNRA3S.js"))
78
82
  },
79
83
  "render-model": {
80
84
  description: "Render a three.js factory from fixed cameras for review (needs uv).",
81
- load: rawTool(async () => await import("./chunk-I5LELJSK.js"))
85
+ load: rawTool(async () => await import("./chunk-DKSUD44G.js"))
82
86
  },
83
87
  "sheet-probe": {
84
88
  description: "Probe a spritesheet or folder for frame grid and empty cells.",
85
- load: rawTool(async () => await import("./chunk-KJK5CB6E.js"))
89
+ load: rawTool(async () => await import("./chunk-NXW3Z4Y4.js"))
86
90
  },
87
91
  "sheet-qc": {
88
92
  description: "Quality-check a spritesheet: frame drift, clipping, jitter.",
89
- load: rawTool(async () => await import("./chunk-SUSX3QIA.js"))
93
+ load: rawTool(async () => await import("./chunk-E72TFJZP.js"))
90
94
  },
91
95
  "size-contract": {
92
96
  description: "Derive, audit or prompt for a sprite size contract.",
93
- load: rawTool(async () => await import("./chunk-QLCVLCPM.js"))
97
+ load: rawTool(async () => await import("./chunk-X4QIOXNQ.js"))
94
98
  },
95
99
  sizes: {
96
100
  description: "List every image's dimensions under a folder (CSV/JSON).",
97
- load: rawTool(async () => await import("./chunk-HX5Q63UA.js"))
101
+ load: rawTool(async () => await import("./chunk-T777EXAO.js"))
98
102
  },
99
103
  "sprite-baseline": {
100
104
  description: "Measure or fix sprites' feet baseline and centre.",
101
- load: rawTool(async () => await import("./chunk-DB7WVFS7.js"))
105
+ load: rawTool(async () => await import("./chunk-WRMQEXUC.js"))
102
106
  },
103
107
  "sprite-presets": {
104
108
  description: "List animation presets: frames, timing and poses per action.",
105
- load: rawTool(async () => await import("./chunk-R2WVORGD.js"))
109
+ load: rawTool(async () => await import("./chunk-AAXZNK4Z.js"))
106
110
  },
107
111
  "sprite-prompt": {
108
112
  description: "Write the generation prompt for a sprite anchor or pose board.",
109
- load: rawTool(async () => await import("./chunk-NCX6LYNJ.js"))
113
+ load: rawTool(async () => await import("./chunk-Q4XAGTFX.js"))
110
114
  },
111
115
  "tilemap-editor": {
112
116
  description: "Edit a tilemap in the browser, or export tileset grids and map renders.",
113
- load: rawTool(async () => await import("./chunk-FXXVXDTW.js"))
117
+ load: rawTool(async () => await import("./chunk-24TITAFS.js"))
114
118
  }
115
119
  };
116
120
  var runAsset = async (argv) => {
@@ -15,7 +15,7 @@ import {
15
15
  parseFrame,
16
16
  resolveTargets,
17
17
  writeJsonFile
18
- } from "./chunk-2KVQJKIZ.js";
18
+ } from "./chunk-4ENHS32B.js";
19
19
  import "./chunk-2SBBKY5C.js";
20
20
  import "./chunk-GKDUYJ7R.js";
21
21
 
@@ -6,21 +6,18 @@ var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
7
  import {
8
8
  bareTokens,
9
- bootstrap,
10
9
  ensureAgentBrowser,
11
- ensureMinimum,
12
10
  expandGameFlag,
13
11
  playtestCommand,
14
12
  projectSessionId,
15
- resolveBinary,
16
13
  resolveGameUrl,
17
14
  runPlaytest,
18
15
  withScopedSession
19
- } from "./chunk-RPJR3S5S.js";
20
- import "./chunk-N2UHAQXC.js";
21
- import "./chunk-TMPBGXT4.js";
16
+ } from "./chunk-CYDENLZ4.js";
17
+ import "./chunk-36FORP7T.js";
22
18
  import "./chunk-JN4WZCR7.js";
23
19
  import "./chunk-Q5NZNXJE.js";
20
+ import "./chunk-TMPBGXT4.js";
24
21
  import "./chunk-MBXCVCC4.js";
25
22
  import "./chunk-5535KDYI.js";
26
23
  import "./chunk-D2RF35HJ.js";
@@ -29,13 +26,10 @@ import "./chunk-2SBBKY5C.js";
29
26
  import "./chunk-GKDUYJ7R.js";
30
27
  export {
31
28
  bareTokens,
32
- bootstrap,
33
29
  ensureAgentBrowser,
34
- ensureMinimum,
35
30
  expandGameFlag,
36
31
  playtestCommand,
37
32
  projectSessionId,
38
- resolveBinary,
39
33
  resolveGameUrl,
40
34
  runPlaytest,
41
35
  withScopedSession
@@ -20,7 +20,7 @@ import {
20
20
  promptGuidanceForContract,
21
21
  toPythonJson,
22
22
  writeJsonFile
23
- } from "./chunk-2KVQJKIZ.js";
23
+ } from "./chunk-4ENHS32B.js";
24
24
  import "./chunk-2SBBKY5C.js";
25
25
  import "./chunk-GKDUYJ7R.js";
26
26
 
@@ -9,7 +9,7 @@ import {
9
9
  getFlag,
10
10
  normalizeFactory,
11
11
  parseArgs
12
- } from "./chunk-2KVQJKIZ.js";
12
+ } from "./chunk-4ENHS32B.js";
13
13
  import "./chunk-2SBBKY5C.js";
14
14
  import "./chunk-GKDUYJ7R.js";
15
15
 
@@ -4,14 +4,11 @@ import { fileURLToPath as __fileURLToPath } from "node:url";
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import {
8
- assertKnownFlags
9
- } from "./chunk-RZ4DIJQW.js";
10
7
  import {
11
8
  authErrorCode,
12
9
  createClient
13
- } from "./chunk-CTY2WZQK.js";
14
- import "./chunk-E3FJUPLT.js";
10
+ } from "./chunk-UC3QLWMQ.js";
11
+ import "./chunk-EUAAQMUA.js";
15
12
  import {
16
13
  getToken
17
14
  } from "./chunk-Q5NZNXJE.js";
@@ -19,6 +16,9 @@ import {
19
16
  outputArgs,
20
17
  writeStructured
21
18
  } from "./chunk-COSLGSVO.js";
19
+ import {
20
+ assertKnownFlags
21
+ } from "./chunk-RZ4DIJQW.js";
22
22
  import {
23
23
  defineCommand
24
24
  } from "./chunk-MBXCVCC4.js";
package/dist/index.js CHANGED
@@ -37,38 +37,38 @@ var main = defineCommand({
37
37
  version: PACKAGE_VERSION
38
38
  },
39
39
  subCommands: {
40
- asset: lazy(async () => await import("./chunk-Q2QC6KAZ.js"), "assetCommand"),
41
- check: lazy(async () => await import("./chunk-SBXCK2I2.js"), "checkCommand"),
40
+ asset: lazy(async () => await import("./chunk-V7LEYVXB.js"), "assetCommand"),
41
+ check: lazy(async () => await import("./chunk-6CLUPFQA.js"), "checkCommand"),
42
42
  completions: lazy(async () => await import("./chunk-VIEKOGKG.js"), "completionsCommand"),
43
- config: lazy(async () => await import("./chunk-Q3XQPNF6.js"), "configCommand"),
44
- credits: lazy(async () => await import("./chunk-VZEJ2ZHE.js"), "creditsCommand"),
45
- deploy: lazy(async () => await import("./chunk-E7NDOZ27.js"), "deployCommand"),
46
- deployments: lazy(async () => await import("./chunk-2ZKS7V72.js"), "deploymentsCommand"),
47
- distribute: lazy(async () => await import("./chunk-LORGE2NB.js"), "distributeCommand"),
43
+ config: lazy(async () => await import("./chunk-BN7TR6OR.js"), "configCommand"),
44
+ credits: lazy(async () => await import("./chunk-Z3E7ORGQ.js"), "creditsCommand"),
45
+ deploy: lazy(async () => await import("./chunk-LE4GVTYI.js"), "deployCommand"),
46
+ deployments: lazy(async () => await import("./chunk-GZCRYYS6.js"), "deploymentsCommand"),
47
+ distribute: lazy(async () => await import("./chunk-U2NCN5RO.js"), "distributeCommand"),
48
48
  factory: lazy(async () => await import("./chunk-K36EOII3.js"), "factoryCommand"),
49
- fork: lazy(async () => await import("./chunk-MEAO33XW.js"), "forkCommand"),
50
- generate: lazy(async () => await import("./chunk-ABTUEIRC.js"), "generateCommand"),
49
+ fork: lazy(async () => await import("./chunk-FMON3C74.js"), "forkCommand"),
50
+ generate: lazy(async () => await import("./chunk-QO66UBOS.js"), "generateCommand"),
51
51
  init: lazy(async () => await import("./chunk-H2C4QUTG.js"), "initCommand"),
52
- login: lazy(async () => await import("./chunk-43P4U7CB.js"), "loginCommand"),
53
- logout: lazy(async () => await import("./chunk-SXYQL4GK.js"), "logoutCommand"),
52
+ login: lazy(async () => await import("./chunk-DWWSJKTE.js"), "loginCommand"),
53
+ logout: lazy(async () => await import("./chunk-4YHA32OE.js"), "logoutCommand"),
54
54
  new: lazy(async () => await import("./chunk-BN3Q7UEC.js"), "newCommand"),
55
55
  playtest: async () => {
56
- const { playtestCommand } = await import("./chunk-HSMG6U7J.js");
56
+ const { playtestCommand } = await import("./chunk-WXSBNC67.js");
57
57
  return defineCommand({
58
58
  meta: playtestCommand.meta,
59
59
  subCommands: {
60
- run: lazy(async () => await import("./chunk-LONQWRTR.js"), "playtestRunCommand")
60
+ run: lazy(async () => await import("./chunk-S4KVGQQO.js"), "playtestRunCommand")
61
61
  }
62
62
  });
63
63
  },
64
- skills: lazy(async () => await import("./chunk-UPHB5HWO.js"), "skillsCommand"),
65
- update: lazy(async () => await import("./chunk-MR5KIFI7.js"), "updateCommand"),
66
- whoami: lazy(async () => await import("./chunk-HRKVAXNN.js"), "whoamiCommand")
64
+ skills: lazy(async () => await import("./chunk-VQTTSPA3.js"), "skillsCommand"),
65
+ update: lazy(async () => await import("./chunk-UDJH2RED.js"), "updateCommand"),
66
+ whoami: lazy(async () => await import("./chunk-BAZDPPIG.js"), "whoamiCommand")
67
67
  }
68
68
  });
69
69
  var subcommand = process.argv.at(2);
70
70
  if (subcommand !== void 0 && subcommand !== "" && !["update", "init", "completions"].includes(subcommand)) {
71
- const { maybeScheduleAutoUpdate } = await import("./chunk-4UU622RK.js");
71
+ const { maybeScheduleAutoUpdate } = await import("./chunk-GGO6ZYYI.js");
72
72
  maybeScheduleAutoUpdate();
73
73
  }
74
74
  if (subcommand === "factory") {
@@ -76,14 +76,14 @@ if (subcommand === "factory") {
76
76
  runFactory(process.argv.slice(3));
77
77
  }
78
78
  if (subcommand === "playtest" && process.argv.at(3) !== "run") {
79
- const { runPlaytest } = await import("./chunk-HSMG6U7J.js");
79
+ const { runPlaytest } = await import("./chunk-WXSBNC67.js");
80
80
  runPlaytest(process.argv.slice(3));
81
81
  }
82
82
  if (subcommand === "asset") {
83
- const { runAsset } = await import("./chunk-Q2QC6KAZ.js");
83
+ const { runAsset } = await import("./chunk-V7LEYVXB.js");
84
84
  await runAsset(process.argv.slice(3));
85
85
  } else if (subcommand === "check") {
86
- const { runCheck } = await import("./chunk-SBXCK2I2.js");
86
+ const { runCheck } = await import("./chunk-6CLUPFQA.js");
87
87
  await runCheck(process.argv.slice(3));
88
88
  } else {
89
89
  await runMain(main);
package/package.json CHANGED
@@ -1,7 +1,13 @@
1
1
  {
2
2
  "name": "vibedgames",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "private": false,
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/kyh/vibedgames",
9
+ "directory": "apps/cli"
10
+ },
5
11
  "bin": {
6
12
  "vg": "./dist/index.js"
7
13
  },
@@ -11,26 +17,19 @@
11
17
  "templates"
12
18
  ],
13
19
  "type": "module",
14
- "scripts": {
15
- "build": "node scripts/build.ts",
16
- "dev": "node scripts/build.ts --watch",
17
- "clean": "rm -rf .turbo dist node_modules",
18
- "test": "node --import tsx --test \"test/*.test.ts\" \"src/**/*.test.ts\"",
19
- "typecheck": "tsc --noEmit && tsc --noEmit -p templates/none && tsc --noEmit -p templates/phaser && tsc --noEmit -p templates/react-r3f && tsc --noEmit -p templates/threejs"
20
- },
21
20
  "devDependencies": {
22
- "@kyh/tsconfig": "catalog:",
23
- "@orpc/client": "catalog:",
21
+ "@kyh/tsconfig": "^1.4.0",
22
+ "@orpc/client": "2.0.0-beta.45",
24
23
  "@react-three/drei": "^10.7.9",
25
24
  "@react-three/fiber": "^9.8.2",
26
- "@repo/asset-tools": "workspace:^",
27
- "@repo/contract": "workspace:^",
25
+ "@repo/asset-tools": "^0.1.0",
26
+ "@repo/contract": "^0.1.0",
28
27
  "@types/cross-spawn": "^6.0.6",
29
- "@types/node": "catalog:",
30
- "@types/react": "catalog:",
31
- "@types/react-dom": "catalog:",
28
+ "@types/node": "^26.6.6",
29
+ "@types/react": "^19.3.0",
30
+ "@types/react-dom": "^19.3.0",
32
31
  "@types/three": "^0.186.0",
33
- "@vitejs/plugin-react": "catalog:",
32
+ "@vitejs/plugin-react": "^6.3.0",
34
33
  "citty": "^0.2.2",
35
34
  "consola": "^3.4.2",
36
35
  "cross-spawn": "^7.0.6",
@@ -39,12 +38,23 @@
39
38
  "ignore": "^7.0.16",
40
39
  "msw": "2.11.3",
41
40
  "phaser": "^4.2.1",
42
- "react": "catalog:",
43
- "react-dom": "catalog:",
41
+ "react": "^19.3.1",
42
+ "react-dom": "^19.3.1",
44
43
  "tar": "^7.5.23",
45
44
  "three": "^0.186.1",
46
- "typescript": "catalog:",
47
- "vite": "catalog:",
48
- "zod": "catalog:"
45
+ "typescript": "^7.0.2",
46
+ "vite": "^8.3.8",
47
+ "zod": "^4.6.7"
48
+ },
49
+ "engines": {
50
+ "node": ">=20.11"
51
+ },
52
+ "scripts": {
53
+ "build": "node scripts/build.ts",
54
+ "dev": "node scripts/build.ts --watch",
55
+ "clean": "rm -rf .turbo dist node_modules",
56
+ "test": "node --test \"test/*.test.ts\" \"src/**/*.test.ts\"",
57
+ "typecheck": "tsc --noEmit && tsc --noEmit -p templates/none && tsc --noEmit -p templates/phaser && tsc --noEmit -p templates/react-r3f && tsc --noEmit -p templates/threejs",
58
+ "vendor:rebuild-object": "node scripts/vendor-rebuild-object.ts"
49
59
  }
50
- }
60
+ }
@@ -4,9 +4,6 @@ import { fileURLToPath as __fileURLToPath } from "node:url";
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import {
8
- assertKnownFlags
9
- } from "./chunk-RZ4DIJQW.js";
10
7
  import {
11
8
  SETTINGS,
12
9
  SETTING_KEYS,
@@ -22,6 +19,9 @@ import {
22
19
  outputArgs,
23
20
  writeStructured
24
21
  } from "./chunk-COSLGSVO.js";
22
+ import {
23
+ assertKnownFlags
24
+ } from "./chunk-RZ4DIJQW.js";
25
25
  import {
26
26
  defineCommand
27
27
  } from "./chunk-MBXCVCC4.js";
@@ -17,14 +17,14 @@ import {
17
17
  findProjectRoot,
18
18
  projectConfigPath
19
19
  } from "./chunk-TMPBGXT4.js";
20
- import {
21
- assertKnownFlags
22
- } from "./chunk-RZ4DIJQW.js";
23
20
  import {
24
21
  isJsonOutput,
25
22
  outputArgs,
26
23
  writeStructured
27
24
  } from "./chunk-COSLGSVO.js";
25
+ import {
26
+ assertKnownFlags
27
+ } from "./chunk-RZ4DIJQW.js";
28
28
  import {
29
29
  defineCommand
30
30
  } from "./chunk-MBXCVCC4.js";