@solaqua/ghosts 0.4.18 → 0.4.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.
@@ -9,6 +9,7 @@ Design outside-in from caller usage and domain invariants. Repeated workarounds
9
9
 
10
10
  - Before writing, briefly inspect existing code with a similar role in the repository and follow its conventions where applicable.
11
11
  - Order functions so each callee appears below its caller.
12
+ - Write function and method docstring and TSDoc summaries as concise statements of purpose in domain terms. Describe what the function accomplishes without narrating internal steps or enumerating permissions, side effects, and error handling. Add contract details separately only when callers need them to use the function correctly. Prefer one sentence; expand only when necessary.
12
13
  - Write tests as behavioral specifications: each test docstring or doc comment must stand alone, describe the scenario and observable outcome, and avoid relying on surrounding context, implementation details, or comparative wording. Keep names concise and behavior-based (JS/TS `it(...)` / `test(...)` descriptions suffice), and use `Given` / `When` / `Then` sections in the body.
13
14
  - Never use `if` statements or conditional expressions in test code, including setup, helpers, and assertions. Define each case's inputs and expected outcomes before execution; use separate cases or parameterization instead of branching.
14
15
  - When complex setup, concurrency, timing, or multi-step control flow makes a test hard to follow, add concise comments at key transitions to explain the scenario and synchronization; do not narrate obvious code.
@@ -15,6 +15,7 @@ Review the artifact or change read-only:
15
15
  AI-generated work can overcomplicate simple problems and overfill documents and interfaces. Look for omissions, combinations, or simpler designs that reduce the intended audience's burden while preserving the artifact's purpose. Do not force every artifact through every checklist or invent findings to justify a cleanup.
16
16
 
17
17
  For code:
18
+ - Any function or method docstring or TSDoc summaries that narrate internal steps or enumerate permissions, side effects, and error handling instead of stating the function's purpose in domain terms? Reduce these to a concise statement of what the function accomplishes, usually one sentence. Preserve contract details separately only when callers need them to use the function correctly.
18
19
  - Any low-value, duplicate, implementation-shaped, or one-off tests—including those that only recheck documented dependency guarantees—that can be removed or combined without losing meaningful behavior, edge-case, or risk coverage? Any tests for hypothetical concurrency or timing risks without a credible execution path or meaningful failure impact?
19
20
  - Any behavior already protected by existing tests beyond the diff, including through public entrypoints? Search and compare scenarios and assertions, not names alone; cite the tests and assertions that retain protection when recommending removal or consolidation. Could an existing case or suite be extended instead of adding a separate test, while preserving distinct behavior or regression coverage?
20
21
  - Any unnecessary variables or intermediate state that can be omitted, inlined, or reused without obscuring intent?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solaqua/ghosts",
3
- "version": "0.4.18",
3
+ "version": "0.4.19",
4
4
  "description": "Reusable agent skills and reviewers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "target": "skills",
36
36
  "name": "orca-cli",
37
37
  "source": "stablyai/orca",
38
- "ref": "17828c78f1b5e524e9b6a935cf8d434b703b195a"
38
+ "ref": "81ec82b3651703f6ab3ba1a74b729453919e69e5"
39
39
  },
40
40
  {
41
41
  "target": "skills",