pixifact-cli 0.7.0 → 0.9.0
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 +10 -1
- package/editor/assets/browserAll-CG--e3R8.js +1 -0
- package/editor/assets/index-BUZ_WtnT.js +1130 -0
- package/editor/assets/init-CzHI7RKj.js +1 -0
- package/editor/assets/webworkerAll-D-3iZ4fC.js +1 -0
- package/editor/index.html +1 -1
- package/package.json +2 -2
- package/src/automation.ts +1 -2
- package/src/editorServer.ts +47 -0
- package/src/pixifact-cli.ts +42 -4
- package/src/runtimeSession.ts +60 -0
- package/src/viteTarget.ts +2 -2
- package/editor/assets/browserAll-DePxC4RK.js +0 -1
- package/editor/assets/index-DoPhYWF1.js +0 -1130
- package/editor/assets/init-CuKNsO_k.js +0 -1
- package/editor/assets/webworkerAll-DM9kdU0t.js +0 -1
package/README.md
CHANGED
|
@@ -29,7 +29,13 @@ pixifact scene validate --all
|
|
|
29
29
|
|
|
30
30
|
默认使用当前工作目录作为项目根目录;不在项目根目录运行时再加 `--project-root <path>`。
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
新建空 Scene 文件对使用:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pixifact scene create src/scenes/Hud.scene
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
路径必须是项目相对的 `.scene` 路径。命令会按路径 basename 推导 `Hud`,并创建 `Hud.scene` 和 `Hud.ts`。其他辅助入口包括:`node inspect` 用于查看 `scene inspect` 返回的已知 locator;`editor context` 用于读取当前 Scene 和 selection;`editor screenshot --output <png-path>` 用于截取当前 Authoring Scene。不要使用 `scene get`,file mode 只保留 `scene inspect`。旧 `live ...` 命令已经删除。
|
|
33
39
|
|
|
34
40
|
## Agent Runtime
|
|
35
41
|
|
|
@@ -38,6 +44,7 @@ pixifact scene validate --all
|
|
|
38
44
|
```bash
|
|
39
45
|
pixifact runtime list
|
|
40
46
|
pixifact runtime tree --output .pixifact/runtime/tree.json
|
|
47
|
+
pixifact runtime screenshot
|
|
41
48
|
pixifact runtime node <pixi-uid>
|
|
42
49
|
pixifact runtime state
|
|
43
50
|
pixifact runtime logs --after <seq>
|
|
@@ -49,6 +56,8 @@ pixifact runtime input key Space
|
|
|
49
56
|
|
|
50
57
|
`runtime tree` 默认将节点树输出到终端;传入 `--output <json-path>` 时,改为保存运行时快照 JSON,终端只返回路径和采集元数据。快照包含 `schemaVersion`、`capturedAt`、当前 `runtimeId` 和 `root` 节点树,适合 Agent 使用文本搜索或 JSON 工具分析。快照中的 `runtimeId` 和 PixiJS `uid` 只对本次运行有效,不应写回项目源文件。
|
|
51
58
|
|
|
59
|
+
`runtime screenshot` 默认将当前 PixiJS Canvas 的 PNG 截图写入项目根下的 `.pixifact/runtime/frame.png`,也可用 `--output <png-path>` 指定路径。截图使用当前 `app.screen` 逻辑尺寸和 renderer 背景色,只包含 `app.stage` 的 PixiJS 渲染内容,不包含浏览器 UI、HTML/CSS 或 DOM overlay;多个页面时添加 `--runtime <runtime-id>`。
|
|
60
|
+
|
|
52
61
|
## 浏览器 Editor
|
|
53
62
|
|
|
54
63
|
在目标项目根目录运行:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as t,i as n,l as r,o as i,s as a,u as o}from"./index-BUZ_WtnT.js";import"./init-CzHI7RKj.js";o.add(t),o.mixin(r,a),o.add(i),o.add(e),o.mixin(r,n);
|