@neocompose/cli 0.71.4 → 0.72.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 +9 -0
- package/README.md +2 -2
- package/dist/neo.mjs +1352 -521
- package/dist/test-worker.mjs +494 -214
- 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/declarations-and-construction.md +18 -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.
|
|
121
|
+
<!-- reviewed-through-cli: 0.72.0 -->
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
The quoted version above is checked too, so this instruction cannot go stale
|
|
@@ -148,6 +148,24 @@ On a class, `@storage(allowed: .Writable)` means every placement must resolve
|
|
|
148
148
|
to Save or Session. A subclass may narrow it to `.Save` or `.Session`. An
|
|
149
149
|
undeclared static member of such a class is Session.
|
|
150
150
|
|
|
151
|
+
`root.User` holds per-player data that every save shares, such as settings.
|
|
152
|
+
Only User classes go under it. Declare one with `@storage(allowed: .User)` on
|
|
153
|
+
the class; its subclasses and base must be User classes too:
|
|
154
|
+
|
|
155
|
+
```neo
|
|
156
|
+
@storage(allowed: .User)
|
|
157
|
+
class AudioPrefs {
|
|
158
|
+
public float Volume = 1;
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Members of a User class declare no `@storage` and no stored statics, and every
|
|
163
|
+
type they name must be User-safe: primitives, enums, User classes, collections
|
|
164
|
+
and delegates of those, and interfaces whose signatures are User-safe. Code in
|
|
165
|
+
a User class reads only `root.User`. Other code reads `root.User` but can't
|
|
166
|
+
assign, mutate, construct, or invoke User data. Lookups and listeners don't
|
|
167
|
+
cross between User and Save data; Session lookups may target `root.User`.
|
|
168
|
+
|
|
151
169
|
`@index(member: Field, kind: .Unique)` and
|
|
152
170
|
`@column(member: Field, width: ..., visibility: ..., pin: ..., overflow: ...)`
|
|
153
171
|
are repeatable List annotations. `member:` is a bare field name on the entry
|