@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.
Files changed (2) hide show
  1. package/dist/cli.bundle.cjs +28 -50
  2. package/package.json +1 -1
@@ -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: "component.add",
309537
+ toolId: "collider.add",
309538
309538
  params: {
309539
309539
  entityId: "<entityId>",
309540
- type: "StaticCollider",
309541
- props: {
309542
- shapes: [{ type: "Box", size: { x: 1, y: 1, z: 1 } }]
309543
- }
309540
+ componentType: "StaticCollider",
309541
+ shapeType: "BoxColliderShape",
309542
+ size: { x: 1, y: 1, z: 1 }
309544
309543
  },
309545
- description: "Use component.add to create StaticCollider components."
309544
+ description: "Use collider.add to create StaticCollider components and shapes."
309546
309545
  },
309547
309546
  "staticCollider.read": {
309548
- toolId: "component.read",
309549
- params: { entityId: "<entityId>", type: "StaticCollider" },
309550
- description: "Use component.read({ type: 'StaticCollider' }) to read static colliders."
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: "component.update",
309554
- params: { entityId: "<entityId>", type: "StaticCollider", props: {} },
309555
- description: "Use component.update({ type: 'StaticCollider' }) to update static colliders."
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: "component.add",
309559
- params: { entityId: "<entityId>", type: "DirectLight", props: {} },
309560
- description: "Use component.add to create DirectLight components."
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: "component.add",
309564
- params: { entityId: "<entityId>", type: "PointLight", props: {} },
309565
- description: "Use component.add to create PointLight components."
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: "component.add",
309569
- params: { entityId: "<entityId>", type: "SpotLight", props: {} },
309570
- description: "Use component.add to create SpotLight components."
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: "component.update",
309572
+ toolId: "meshRenderer.update",
309574
309573
  params: {
309575
309574
  entityId: "<entityId>",
309576
- type: "MeshRenderer",
309577
- props: { materialRef: "<materialAssetId>" }
309575
+ material: "<materialAssetPath>"
309578
309576
  },
309579
- description: "Assign materials with component.update({ type: 'MeshRenderer', props: { materialRef } })."
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: "vfs.find",
309598
- params: { type: "script" },
309599
- description: "Use vfs.find({ type: 'script' }) to find script assets."
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.21".length > 0 ? "2.0.0-alpha.21" : readCliVersionFromPackageJson();
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/cli",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.22",
4
4
  "main": "dist/cli.bundle.cjs",
5
5
  "bin": {
6
6
  "galacean": "bin/galacean.js"