@neocompose/cli 0.36.13 → 0.38.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.38.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.38.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.38.0 -->
87
87
  ```
88
88
 
89
89
  The quoted version above is checked too, so this instruction cannot go stale
@@ -157,10 +157,18 @@ neo login [--api <url>] [--profile editor|release] [--save-project <id>]
157
157
  neo doctor
158
158
  ```
159
159
 
160
+ `login`, `whoami`, and `logout` use the current workspace's `apiBaseUrl` when
161
+ run beneath a `neo.json`. An explicit `--api` takes priority. Outside a
162
+ workspace, they use the CLI build's default API origin. Login prints the
163
+ selected origin before it requests or stores a credential.
164
+
160
165
  `neo doctor` reports two different things. The authoring contracts (format,
161
166
  compiler, extension cache, source, files) decide its exit code; the document
162
- audit below them reports malformed records in the last pull and deliberately
163
- does not, so a project with records still to repair does not fail the command.
167
+ audit below them reports the last pull's malformed records, plus base rows no
168
+ emitted file projects and no record names, and deliberately does not, so a
169
+ project with records still to repair does not fail the command. An unprojected
170
+ row is invisible to `neo status` by construction, which is why `neo doctor` is
171
+ the only place it surfaces.
164
172
  `neo doctor --json` carries a `repair` entry per finding, which is what a
165
173
  targeted repair is handed instead of scanning a project to rediscover them.
166
174
 
@@ -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 =
@@ -70,7 +70,9 @@ create. The server validates authored new IDs for UUID-v4 shape and uniqueness.
70
70
  Prefer generated IDs unless the structural reference needs an ID immediately.
71
71
 
72
72
  Do not invent IDs for structural rows whose identities derive from an owner
73
- role. Do not add a separate root/static initializer ID.
73
+ role. Do not add a separate root/static initializer ID. A constructor argument
74
+ is one such row — its identity comes from the schema key its parameter settles
75
+ — so it never carries `@id`, in either the named or the positional form.
74
76
 
75
77
  ## Same-push references
76
78
 
@@ -120,20 +122,19 @@ membership rules as member defaults.
120
122
 
121
123
  ## Defaults and localization
122
124
 
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.
125
+ Omitted members are virtual projections of the instance's recorded constructor
126
+ or variant. Later edits to that source update every omitted member. Writing a
127
+ member creates a sparse override with its deterministic projected ID; removing
128
+ that member from an existing initializer resets the override and resumes source
129
+ tracking. Require either transition to appear in `neo diff`.
130
+
131
+ Editing an initializer updates sparse override rows in place: projected member
132
+ IDs remain stable, and omitted virtual rows are never emitted as authored seed
133
+ records. A construction whose durable constructor arguments changed, whose
134
+ class changed, or which predates a required constructor parameter fails with
135
+ `construction-arguments-conflict` instead of silently replaying a different
136
+ recipe. Edit members supported by the recorded construction, or delete and
137
+ recreate the value.
137
138
 
138
139
  Write main-locale text directly in localizable string initializers. Pull/lower
139
140
  preserves other locales, comments, statuses, archive state, and unrelated