@neocompose/cli 0.36.13 → 0.37.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/CHANGELOG.md +29 -0
- package/dist/neo.mjs +4353 -694
- package/package.json +1 -1
- package/skills/neocompose-cli/SKILL.md +2 -2
- package/skills/neocompose-cli/references/cli-development.md +1 -1
- package/skills/neocompose-cli/references/declarations-and-construction.md +7 -6
- package/skills/neocompose-cli/references/values-identities-and-references.md +13 -14
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ description: >-
|
|
|
9
9
|
`@neocompose/cli` or `node cli/bin/neo.mjs` in the neo-compose repository.
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
<!-- reviewed-through-cli: 0.
|
|
12
|
+
<!-- reviewed-through-cli: 0.37.0 -->
|
|
13
13
|
|
|
14
14
|
# Neo Compose CLI
|
|
15
15
|
|
|
@@ -132,7 +132,7 @@ completely before editing:
|
|
|
132
132
|
constructors, declared constructors, settlement, and inheritance.
|
|
133
133
|
- [Values, identities, and references](references/values-identities-and-references.md):
|
|
134
134
|
root/static bindings, nested/list identities, same-push references, unique
|
|
135
|
-
keys, files, localization, and default
|
|
135
|
+
keys, files, localization, and virtual default projection.
|
|
136
136
|
- [Animation and world authoring](references/animation-and-world-authoring.md):
|
|
137
137
|
objects, sorting, optional children, structured leaves, object variants and
|
|
138
138
|
variant folders, partial animation overrides, segments, tracks, and NeoFlow
|
|
@@ -83,7 +83,7 @@ wrappers.
|
|
|
83
83
|
The marker near the top of `SKILL.md` must exactly match the package version:
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
|
-
<!-- reviewed-through-cli: 0.
|
|
86
|
+
<!-- reviewed-through-cli: 0.37.0 -->
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
The quoted version above is checked too, so this instruction cannot go stale
|
|
@@ -101,9 +101,10 @@ Use `.EnumCase` only when context fixes one enum type; otherwise write
|
|
|
101
101
|
## Member and relation rules
|
|
102
102
|
|
|
103
103
|
Infer member kind and optionality from its type and nullability. Treat the
|
|
104
|
-
initializer as its default. Omitted fields
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
initializer as its default. Omitted fields remain virtual and resolve through
|
|
105
|
+
the instance's recorded constructor or variant. They track later source-default
|
|
106
|
+
edits until that field is explicitly overridden; resetting an override makes it
|
|
107
|
+
virtual again.
|
|
107
108
|
|
|
108
109
|
A lookup member's arity is its declared type. `public Config Config` selects one
|
|
109
110
|
entry and its declared type is the entry type; `public Set<Config> Configs`
|
|
@@ -142,9 +143,9 @@ value-level target metadata.
|
|
|
142
143
|
## Computed initializers and declared constructors
|
|
143
144
|
|
|
144
145
|
Use an expression initializer when a member default must be evaluated during
|
|
145
|
-
construction rather than stored as a closed literal. It
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
construction rather than stored as a closed literal. It is replayed for omitted
|
|
147
|
+
members in push, web, and SDK contexts. A stored override remains pinned until
|
|
148
|
+
it is reset.
|
|
148
149
|
|
|
149
150
|
Operator expressions are valid member defaults and store as computed
|
|
150
151
|
initializers, the same way calls do — `public float Derived =
|
|
@@ -120,20 +120,19 @@ membership rules as member defaults.
|
|
|
120
120
|
|
|
121
121
|
## Defaults and localization
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
`neo diff`.
|
|
128
|
-
|
|
129
|
-
Editing an initializer
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
new construction.
|
|
123
|
+
Omitted members are virtual projections of the instance's recorded constructor
|
|
124
|
+
or variant. Later edits to that source update every omitted member. Writing a
|
|
125
|
+
member creates a sparse override with its deterministic projected ID; removing
|
|
126
|
+
that member from an existing initializer resets the override and resumes source
|
|
127
|
+
tracking. Require either transition to appear in `neo diff`.
|
|
128
|
+
|
|
129
|
+
Editing an initializer updates sparse override rows in place: projected member
|
|
130
|
+
IDs remain stable, and omitted virtual rows are never emitted as authored seed
|
|
131
|
+
records. A construction whose durable constructor arguments changed, whose
|
|
132
|
+
class changed, or which predates a required constructor parameter fails with
|
|
133
|
+
`construction-arguments-conflict` instead of silently replaying a different
|
|
134
|
+
recipe. Edit members supported by the recorded construction, or delete and
|
|
135
|
+
recreate the value.
|
|
137
136
|
|
|
138
137
|
Write main-locale text directly in localizable string initializers. Pull/lower
|
|
139
138
|
preserves other locales, comments, statuses, archive state, and unrelated
|