@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neocompose/cli",
3
- "version": "0.36.13",
3
+ "version": "0.37.0",
4
4
  "description": "Neo Compose native project-source CLI with bidirectional sync.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -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.36.13 -->
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 materialization.
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.36.13 -->
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 materialize their current defaults
105
- once when an instance is created; later default edits do not mutate existing
106
- instances.
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 runs for every newly
146
- constructed instance in push, web, and SDK contexts; it does not rewrite
147
- existing saved instances.
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
- Materialize omitted members from their current defaults only when an instance
124
- is created. Do not expect later class-default changes to update existing rows.
125
- Removing an explicitly materialized field from an existing initializer requests
126
- a reset through the current default; require that change to appear in
127
- `neo diff`.
128
-
129
- Editing an initializer on an already-materialized instance updates the stored
130
- rows in place: the plan carries leaf updates with stable sub-row ids, never a
131
- delete-and-recreate, and never strips the instance back to an unconstructed
132
- value. A construction the stored rows cannot be reprojected onto — one that
133
- changes durable constructor arguments, swaps the class, or predates a new
134
- constructor parameter fails with `construction-arguments-conflict` instead of
135
- lowering. Edit the instance's members, or delete and recreate the value with the
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