ai-ops-cli 0.2.3 → 0.2.4

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.
@@ -19,6 +19,8 @@ content:
19
19
  - 'For non-trivial business rules, start with a failing test (TDD).'
20
20
  - 'Use a functional-core / imperative-shell structure.'
21
21
  - 'Use immutable updates (const/final, copy/spread patterns).'
22
+ - 'Within a file, order declarations by role: types → constants → validators/guards → helper functions → main logic/exports.'
23
+ - 'When a file contains multiple semantic groups, add section divider comments (e.g., // ----- types -----) between groups.'
22
24
  decision_table:
23
25
  - when: 'Implementing complex business logic'
24
26
  then: 'Write failing tests first, then implement pure functions'
@@ -28,3 +30,6 @@ content:
28
30
  avoid: 'Early shared abstraction'
29
31
  - when: 'Similar code appears in three or more places'
30
32
  then: 'Extract a clearly named shared function'
33
+ - when: 'A file has two or more distinct semantic groups (types, constants, logic, etc.)'
34
+ then: 'Order declarations by role and add section divider comments between groups'
35
+ avoid: 'Flat interleaving of unrelated declarations without visual separation'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-ops-cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "CLI for ai-ops scaffolding — manage AI tool rules and presets",
5
5
  "license": "MIT",
6
6
  "repository": {