@galacean/cli 2.0.0-alpha.21 → 2.0.0-alpha.22
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/dist/cli.bundle.cjs +28 -50
- package/package.json +1 -1
package/dist/cli.bundle.cjs
CHANGED
|
@@ -309534,78 +309534,56 @@ var init_unknown_tool_suggestion = __esm({
|
|
|
309534
309534
|
"use strict";
|
|
309535
309535
|
HALLUCINATED_TOOL_FIXES = {
|
|
309536
309536
|
"staticCollider.add": {
|
|
309537
|
-
toolId: "
|
|
309537
|
+
toolId: "collider.add",
|
|
309538
309538
|
params: {
|
|
309539
309539
|
entityId: "<entityId>",
|
|
309540
|
-
|
|
309541
|
-
|
|
309542
|
-
|
|
309543
|
-
}
|
|
309540
|
+
componentType: "StaticCollider",
|
|
309541
|
+
shapeType: "BoxColliderShape",
|
|
309542
|
+
size: { x: 1, y: 1, z: 1 }
|
|
309544
309543
|
},
|
|
309545
|
-
description: "Use
|
|
309544
|
+
description: "Use collider.add to create StaticCollider components and shapes."
|
|
309546
309545
|
},
|
|
309547
309546
|
"staticCollider.read": {
|
|
309548
|
-
toolId: "
|
|
309549
|
-
params: { entityId: "<entityId>"
|
|
309550
|
-
description: "Use
|
|
309547
|
+
toolId: "collider.read",
|
|
309548
|
+
params: { entityId: "<entityId>" },
|
|
309549
|
+
description: "Use collider.read to read static colliders."
|
|
309551
309550
|
},
|
|
309552
309551
|
"staticCollider.update": {
|
|
309553
|
-
toolId: "
|
|
309554
|
-
params: { entityId: "<entityId>",
|
|
309555
|
-
description: "Use
|
|
309552
|
+
toolId: "collider.update",
|
|
309553
|
+
params: { entityId: "<entityId>", componentType: "StaticCollider", shapeIndex: 0 },
|
|
309554
|
+
description: "Use collider.update to update static collider shapes."
|
|
309556
309555
|
},
|
|
309557
309556
|
"directLight.add": {
|
|
309558
|
-
toolId: "
|
|
309559
|
-
params: { entityId: "<entityId>",
|
|
309560
|
-
description: "Use
|
|
309557
|
+
toolId: "light.add",
|
|
309558
|
+
params: { entityId: "<entityId>", lightType: "DirectLight" },
|
|
309559
|
+
description: "Use light.add to create DirectLight components."
|
|
309561
309560
|
},
|
|
309562
309561
|
"pointLight.add": {
|
|
309563
|
-
toolId: "
|
|
309564
|
-
params: { entityId: "<entityId>",
|
|
309565
|
-
description: "Use
|
|
309562
|
+
toolId: "light.add",
|
|
309563
|
+
params: { entityId: "<entityId>", lightType: "PointLight" },
|
|
309564
|
+
description: "Use light.add to create PointLight components."
|
|
309566
309565
|
},
|
|
309567
309566
|
"spotLight.add": {
|
|
309568
|
-
toolId: "
|
|
309569
|
-
params: { entityId: "<entityId>",
|
|
309570
|
-
description: "Use
|
|
309567
|
+
toolId: "light.add",
|
|
309568
|
+
params: { entityId: "<entityId>", lightType: "SpotLight" },
|
|
309569
|
+
description: "Use light.add to create SpotLight components."
|
|
309571
309570
|
},
|
|
309572
309571
|
"material.assign": {
|
|
309573
|
-
toolId: "
|
|
309572
|
+
toolId: "meshRenderer.update",
|
|
309574
309573
|
params: {
|
|
309575
309574
|
entityId: "<entityId>",
|
|
309576
|
-
|
|
309577
|
-
props: { materialRef: "<materialAssetId>" }
|
|
309575
|
+
material: "<materialAssetPath>"
|
|
309578
309576
|
},
|
|
309579
|
-
description: "Assign materials with
|
|
309580
|
-
},
|
|
309581
|
-
"meshRenderer.update": {
|
|
309582
|
-
toolId: "component.update",
|
|
309583
|
-
params: { entityId: "<entityId>", type: "MeshRenderer", props: {} },
|
|
309584
|
-
description: "Use the strict component.update entrypoint."
|
|
309585
|
-
},
|
|
309586
|
-
"light.update": {
|
|
309587
|
-
toolId: "component.update",
|
|
309588
|
-
params: { entityId: "<entityId>", type: "DirectLight", props: {} },
|
|
309589
|
-
description: "Use the strict component.update entrypoint."
|
|
309590
|
-
},
|
|
309591
|
-
"camera.update": {
|
|
309592
|
-
toolId: "component.update",
|
|
309593
|
-
params: { entityId: "<entityId>", type: "Camera", props: {} },
|
|
309594
|
-
description: "Use the strict component.update entrypoint."
|
|
309577
|
+
description: "Assign materials with meshRenderer.update({ material })."
|
|
309595
309578
|
},
|
|
309596
309579
|
"script.find": {
|
|
309597
|
-
toolId: "
|
|
309598
|
-
params: { type: "script" },
|
|
309599
|
-
description: "Use
|
|
309600
|
-
},
|
|
309601
|
-
"asset.find": {
|
|
309602
|
-
toolId: "vfs.find",
|
|
309603
|
-
params: {},
|
|
309604
|
-
description: "Use vfs.find to find assets."
|
|
309580
|
+
toolId: "asset.find",
|
|
309581
|
+
params: { type: "script", pattern: "*.ts", limit: 50 },
|
|
309582
|
+
description: "Use asset.find({ type: 'script' }) to find script assets."
|
|
309605
309583
|
},
|
|
309606
309584
|
"entity.findByName": {
|
|
309607
309585
|
toolId: "entity.find",
|
|
309608
|
-
params: { name: "<name>" },
|
|
309586
|
+
params: { name: "<name>", recursive: false, limit: 100 },
|
|
309609
309587
|
description: "Use entity.find({ name }) to find entities by name."
|
|
309610
309588
|
}
|
|
309611
309589
|
};
|
|
@@ -751878,7 +751856,7 @@ function readCliVersionFromPackageJson() {
|
|
|
751878
751856
|
const parsed = JSON.parse(raw);
|
|
751879
751857
|
return typeof parsed.version === "string" && parsed.version.length > 0 ? parsed.version : "0.0.0";
|
|
751880
751858
|
}
|
|
751881
|
-
var CLI_VERSION = "2.0.0-alpha.
|
|
751859
|
+
var CLI_VERSION = "2.0.0-alpha.22".length > 0 ? "2.0.0-alpha.22" : readCliVersionFromPackageJson();
|
|
751882
751860
|
|
|
751883
751861
|
// src/cli.ts
|
|
751884
751862
|
init_config();
|