spawnpack 0.1.17 → 0.1.19
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 +1 -1
- package/templates/AGENTS.md +9 -2
- package/templates/CLAUDE.md +9 -2
package/package.json
CHANGED
package/templates/AGENTS.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
- Prefer boring, linear code, guard clauses, explicit state names, and one source of truth.
|
|
35
35
|
- Do not build speculative flexibility. Avoid one-implementation interfaces, factories for one product, and helpers used once unless they materially clarify the code.
|
|
36
36
|
- Preserve input validation, security boundaries, and protections against data loss, duplication, or invalid world state.
|
|
37
|
-
-
|
|
37
|
+
- Do not write comments in code. Use clear naming and straightforward structure so the code is self-explanatory.
|
|
38
38
|
- Validate predictable invalid states before calling an API. Use `try-catch` only for a documented or observed unguardable failure when the catch performs meaningful recovery, cleanup, translation, or contextual rethrow. Keep the `try` block narrow; never silently swallow errors.
|
|
39
39
|
- Avoid repeated allocation, copying, logging, or exception handling in tick handlers and other hot paths.
|
|
40
40
|
- Follow the existing TypeScript configuration and style. Do not introduce unused imports, variables, or exports.
|
|
@@ -47,13 +47,20 @@
|
|
|
47
47
|
- Validate changed BP/RP JSON against the project's configured Bedrock schemas when available.
|
|
48
48
|
- In Regolith projects, inspect compilation output through `.regolith/tmp` without resolving its symlinks.
|
|
49
49
|
|
|
50
|
+
## Performance preferences
|
|
51
|
+
|
|
52
|
+
- Prefer event-driven subscriptions over polling. Avoid per-tick held-item or inventory scans and repeated dynamic-property serialization.
|
|
53
|
+
- In hot loops, iterate maps directly with `for (const value of map.values())`. Do not spread maps into temporary arrays or iterate entry pairs when values or keys are enough.
|
|
54
|
+
- Cache stable configuration in memory and persist only when values actually change.
|
|
55
|
+
- Prefer validity and loaded-position guards over exception handling. Keep `try-catch` only at documented or observed unguardable boundaries, and require meaningful recovery; never use an empty catch as routine control flow.
|
|
56
|
+
|
|
50
57
|
## Repository hygiene
|
|
51
58
|
|
|
52
59
|
- Never discard, overwrite, or revert unrelated user changes.
|
|
53
60
|
- Do not create repository files for agent memory, lessons, session notes, plans, or debugging logs.
|
|
54
61
|
- Do not create or update documentation, changelogs, or generated artifacts unless requested or required by the changed contract.
|
|
55
62
|
- Do not commit, push, publish, or delete unrelated files unless explicitly requested.
|
|
56
|
-
- Commit messages, when requested, use
|
|
63
|
+
- Commit messages, when requested, use short natural subjects without Conventional Commit prefixes, AI/tool attribution, or structured report trailers. Split unrelated logical changes into separate commits.
|
|
57
64
|
|
|
58
65
|
## Communication
|
|
59
66
|
|
package/templates/CLAUDE.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
- Prefer boring, linear code, guard clauses, explicit state names, and one source of truth.
|
|
35
35
|
- Do not build speculative flexibility. Avoid one-implementation interfaces, factories for one product, and helpers used once unless they materially clarify the code.
|
|
36
36
|
- Preserve input validation, security boundaries, and protections against data loss, duplication, or invalid world state.
|
|
37
|
-
-
|
|
37
|
+
- Do not write comments in code. Use clear naming and straightforward structure so the code is self-explanatory.
|
|
38
38
|
- Validate predictable invalid states before calling an API. Use `try-catch` only for a documented or observed unguardable failure when the catch performs meaningful recovery, cleanup, translation, or contextual rethrow. Keep the `try` block narrow; never silently swallow errors.
|
|
39
39
|
- Avoid repeated allocation, copying, logging, or exception handling in tick handlers and other hot paths.
|
|
40
40
|
- Follow the existing TypeScript configuration and style. Do not introduce unused imports, variables, or exports.
|
|
@@ -47,13 +47,20 @@
|
|
|
47
47
|
- Validate changed BP/RP JSON against the project's configured Bedrock schemas when available.
|
|
48
48
|
- In Regolith projects, inspect compilation output through `.regolith/tmp` without resolving its symlinks.
|
|
49
49
|
|
|
50
|
+
## Performance preferences
|
|
51
|
+
|
|
52
|
+
- Prefer event-driven subscriptions over polling. Avoid per-tick held-item or inventory scans and repeated dynamic-property serialization.
|
|
53
|
+
- In hot loops, iterate maps directly with `for (const value of map.values())`. Do not spread maps into temporary arrays or iterate entry pairs when values or keys are enough.
|
|
54
|
+
- Cache stable configuration in memory and persist only when values actually change.
|
|
55
|
+
- Prefer validity and loaded-position guards over exception handling. Keep `try-catch` only at documented or observed unguardable boundaries, and require meaningful recovery; never use an empty catch as routine control flow.
|
|
56
|
+
|
|
50
57
|
## Repository hygiene
|
|
51
58
|
|
|
52
59
|
- Never discard, overwrite, or revert unrelated user changes.
|
|
53
60
|
- Do not create repository files for agent memory, lessons, session notes, plans, or debugging logs.
|
|
54
61
|
- Do not create or update documentation, changelogs, or generated artifacts unless requested or required by the changed contract.
|
|
55
62
|
- Do not commit, push, publish, or delete unrelated files unless explicitly requested.
|
|
56
|
-
- Commit messages, when requested, use
|
|
63
|
+
- Commit messages, when requested, use short natural subjects without Conventional Commit prefixes, AI/tool attribution, or structured report trailers. Split unrelated logical changes into separate commits.
|
|
57
64
|
|
|
58
65
|
## Communication
|
|
59
66
|
|