@neocompose/cli 0.72.0 → 0.72.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.
- package/CHANGELOG.md +16 -0
- package/README.md +11 -0
- package/dist/neo.mjs +101902 -98551
- package/dist/test-worker.mjs +1954 -275
- package/package.json +1 -1
- package/skills/neocompose-cli/SKILL.md +1 -1
- package/skills/neocompose-cli/references/cli-development.md +1 -1
- package/skills/neocompose-cli/references/commands-and-sync.md +9 -5
- package/skills/neocompose-cli/references/declarations-and-construction.md +7 -1
- package/skills/neocompose-cli/references/neoscript.md +4 -0
- package/skills/neocompose-cli/references/values-identities-and-references.md +3 -0
package/package.json
CHANGED
|
@@ -118,7 +118,7 @@ wrappers.
|
|
|
118
118
|
The marker near the top of `SKILL.md` must exactly match the package version:
|
|
119
119
|
|
|
120
120
|
```html
|
|
121
|
-
<!-- reviewed-through-cli: 0.72.
|
|
121
|
+
<!-- reviewed-through-cli: 0.72.2 -->
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
The quoted version above is checked too, so this instruction cannot go stale
|
|
@@ -300,9 +300,11 @@ it into the directories the Unity project's `NeoComposeConfig` asset names:
|
|
|
300
300
|
`project.json` with a partition index, `Partitions/*.json` holding value rows
|
|
301
301
|
by storage partition, localization files, and generated C# under
|
|
302
302
|
`<generatedTypesDirectory>/Generated/`. It writes only files whose bytes
|
|
303
|
-
changed, skips codegen when
|
|
304
|
-
|
|
305
|
-
|
|
303
|
+
changed, skips codegen when its schema inputs are unchanged, and writes
|
|
304
|
+
`Library/NeoCompose/export.json` last for Unity to ingest. Repeated exports
|
|
305
|
+
verify current inputs and output bytes before reusing the last successful
|
|
306
|
+
export; changed or missing outputs are regenerated. Edited content is validated
|
|
307
|
+
even when C# generation is skipped.
|
|
306
308
|
|
|
307
309
|
- A clean working copy exports the pulled head. Diagnostic location differences
|
|
308
310
|
alone, including line shifts after push inserts ids, do not make it local.
|
|
@@ -313,8 +315,10 @@ Unity to ingest.
|
|
|
313
315
|
- Ids minted for local declarations are kept in `.neo/export.json`'s
|
|
314
316
|
`identityLedger`, so the push commits the ids Unity already saw. A push
|
|
315
317
|
re-exports into the Unity project a local export went to.
|
|
316
|
-
- `neo dev`
|
|
317
|
-
|
|
318
|
+
- `neo dev` watches before its initial export and batches relevant source,
|
|
319
|
+
binary, ignore-rule, workspace-state, and config changes. It waits for a
|
|
320
|
+
20 ms quiet period, capped at 250 ms, and processes edits made during an
|
|
321
|
+
export in the next batch. It never pulls or pushes.
|
|
318
322
|
- Pull, push, branch, merge, resolve, init and export take turns through
|
|
319
323
|
`.neo/workspace.lock`; a lock whose process died is taken over.
|
|
320
324
|
|
|
@@ -176,7 +176,13 @@ indexes only on the original List member. Overrides inherit its indexes, and
|
|
|
176
176
|
List getter.
|
|
177
177
|
|
|
178
178
|
Use `.EnumCase` only when context fixes one enum type; otherwise write
|
|
179
|
-
`EnumType.Case`.
|
|
179
|
+
`EnumType.Case`. Constructor parameters supply this context for positional
|
|
180
|
+
and named arguments, including substituted generic parameter types. Defaults
|
|
181
|
+
and settings must be statically analyzable.
|
|
182
|
+
|
|
183
|
+
An explicit construction must be assignable to its receiving type. For example,
|
|
184
|
+
`List<Base>` accepts `new Derived()` when `Derived` inherits `Base`, but rejects
|
|
185
|
+
an unrelated class at `new`. Generic arguments must also be compatible.
|
|
180
186
|
|
|
181
187
|
## Member and relation rules
|
|
182
188
|
|
|
@@ -99,6 +99,10 @@ this.Items.Insert(0, item);
|
|
|
99
99
|
this.Items.Remove(item);
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
+
A generic receiver may call methods from its class or interface constraint,
|
|
103
|
+
including void calls used as statements. Generic arguments substitute through
|
|
104
|
+
the constraint; nullable receivers still require narrowing or null handling.
|
|
105
|
+
|
|
102
106
|
Prefer `--json` for automation.
|
|
103
107
|
|
|
104
108
|
`neo script check --all` reconstructs the prospective project entirely from
|
|
@@ -84,6 +84,9 @@ This names the initializer row. It does not create a stored global. The inline
|
|
|
84
84
|
`Quest HardAsStone = @id("...") new Quest();` spelling is also accepted, and
|
|
85
85
|
formatting moves its ID above the declaration. Do not put an ID in both places.
|
|
86
86
|
|
|
87
|
+
A local initializer such as `Delivery DeliveryRow = new()` retains `Delivery`
|
|
88
|
+
when consumed by a base-class member. Aliases retain that same concrete type.
|
|
89
|
+
|
|
87
90
|
Nested class/list rows remain independently addressable and keep inline IDs:
|
|
88
91
|
|
|
89
92
|
```neo
|