@combos-fun/plugin-development-tool 0.0.49 → 0.0.51
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 +1 -9
- package/agent-skill.md +3 -3
- package/dist/plugin-development-tool.cjs.js +2 -2
- package/dist/plugin-development-tool.cjs.js.map +1 -1
- package/dist/plugin-development-tool.cjs.prod.js +1 -1
- package/dist/plugin-development-tool.d.ts +1 -1
- package/dist/plugin-development-tool.esm.js +2 -2
- package/dist/plugin-development-tool.esm.js.map +1 -1
- package/package.json +5 -11
package/README.md
CHANGED
|
@@ -4,15 +4,7 @@ Scene / tagged object tap development tool: canvas overlay (2D + 3D) and parent
|
|
|
4
4
|
|
|
5
5
|
Keywords: `devtool`, `inspector`, `selection`, `outline`, `editor`, `debug`.
|
|
6
6
|
|
|
7
|
-
Game `GameObject` nodes are tagged at build time
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
import { combosDevelopmentTargetPlugin } from '@combos-fun/plugin-development-tool/vite';
|
|
11
|
-
|
|
12
|
-
export default defineConfig({
|
|
13
|
-
plugins: [combosDevelopmentTargetPlugin()],
|
|
14
|
-
});
|
|
15
|
-
```
|
|
7
|
+
Game `GameObject` nodes are tagged at build time by the repo-local `vite-plugin-development-target` Vite plugin (not on npm). Add that plugin to the **game** Vite config.
|
|
16
8
|
|
|
17
9
|
## Documentation
|
|
18
10
|
|
package/agent-skill.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Shared editor iframe picker** (2D and 3D). Outline, markers, and pick hit-testing are drawn on a transparent HTML canvas overlay with the Canvas 2D API. It does **not** depend on `plugin-renderer`, `plugin-renderer-event`, `plugin-renderer-graphics`, or any `plugin-renderer-3d*` package.
|
|
4
4
|
|
|
5
|
-
Game authors do **not** mount Targets or write `payload.source`.
|
|
5
|
+
Game authors do **not** mount Targets or write `payload.source`. `@combos-fun/vite-plugin-development-target` rewrites `new GameObject(...)`.
|
|
6
6
|
|
|
7
7
|
## When to read
|
|
8
8
|
|
|
@@ -49,7 +49,7 @@ In the **game** Vite config (host / Creator), not in game source:
|
|
|
49
49
|
|
|
50
50
|
```ts
|
|
51
51
|
import { defineConfig } from 'vite';
|
|
52
|
-
import { combosDevelopmentTargetPlugin } from '@combos-fun/plugin-development-
|
|
52
|
+
import { combosDevelopmentTargetPlugin } from '@combos-fun/vite-plugin-development-target';
|
|
53
53
|
|
|
54
54
|
export default defineConfig({
|
|
55
55
|
plugins: [combosDevelopmentTargetPlugin()],
|
|
@@ -100,4 +100,4 @@ Snapshots expose described schema-backed `fieldDescriptors`, not raw fields. For
|
|
|
100
100
|
|
|
101
101
|
## Verification
|
|
102
102
|
|
|
103
|
-
Run `pnpm --filter @combos-fun/plugin-development-tool run test` and `pnpm --filter @combos-fun/plugin-development-tool run build`.
|
|
103
|
+
Run `pnpm --filter @combos-fun/plugin-development-tool run test` and `pnpm --filter @combos-fun/plugin-development-tool run build`. The host Vite plugin is the repo-local `vite-plugin-development-target` package (not published to npm).
|
|
@@ -1572,7 +1572,7 @@ var CombosDevelopmentToolSystem = CombosDevelopmentToolSystem$1;
|
|
|
1572
1572
|
/** Auto-generated by scripts/build-package.mjs — do not edit. */
|
|
1573
1573
|
Object.assign(CombosDevelopmentToolSystem, {
|
|
1574
1574
|
packageName: "@combos-fun/plugin-development-tool",
|
|
1575
|
-
packageVersion: "0.0.
|
|
1575
|
+
packageVersion: "0.0.51",
|
|
1576
1576
|
});
|
|
1577
1577
|
|
|
1578
1578
|
function isInternalEditorGo(go) {
|
|
@@ -1590,7 +1590,7 @@ function sourceIsComplete(raw) {
|
|
|
1590
1590
|
* Marks `go` for editor pick / persist. Idempotent: existing Targets keep a
|
|
1591
1591
|
* complete `payload.source`; missing identity is filled from `source`.
|
|
1592
1592
|
*
|
|
1593
|
-
* Inserted by `@combos-fun/plugin-development-
|
|
1593
|
+
* Inserted by `@combos-fun/vite-plugin-development-target`. Game code should
|
|
1594
1594
|
* not call this by hand.
|
|
1595
1595
|
*/
|
|
1596
1596
|
function attachDevelopmentTarget(go, source) {
|