@itrocks/handbook 0.0.6 → 0.0.10

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/AGENTS.md CHANGED
@@ -16,11 +16,17 @@ If a task spans several categories, read each applicable guide.
16
16
  user perspective: user > functionality > developer. For purely technical changes, use simple and beginner-friendly
17
17
  developer language (KISS).
18
18
  - Cover all pending changes in each repository; for multiple commits, list each commit's files and shared-file hunks.
19
- - For changes generated or modified by agents or subagents, add one trailer identifying contributing AI identity:
20
- `AI-assisted-by: <Agent tool> <AI name> <version> <model> <reasoning level>`
21
- (e.g. `AI-assisted-by: Codex GPT 6.1 sol high`). Capitalise the tool name.
22
- Use the contributing agent's execution metadata: preserve the full model version, including minor/patch versions
23
- and variant (e.g. `gpt-6.1-sol` becomes `GPT 6.1 sol`), and the actual reasoning level.
24
- Do not infer these from the agent's self-description, a parent agent or a requested profile.
25
- Include only known fields; omit missing information without placeholders or explanatory comments.
26
- Keep human-only and AI-generated changes in separate commits where practical for targeted reviews.
19
+ - For changes generated or modified by agents or subagents, add an `AI-assisted-by` trailer for each distinct
20
+ contributing agent identity:
21
+ `AI-assisted-by: <Agent tool> <tool version> <AI name> <AI version> <model variant> <reasoning level>`
22
+ (e.g. `AI-assisted-by: Codex 0.162.0-alpha.17.2 GPT 6.1 sol medium`). Capitalise the tool name.
23
+ - Before proposing or authoring any commit, **read the contributing session's actual metadata or tool logs**.
24
+ This lookup is mandatory even when the system prompt provides a generic model name. Preserve the full tool version,
25
+ non-zero AI minor/patch versions, model variant and actual reasoning level; never infer them from defaults or examples.
26
+ For Codex, locate the session log using `CODEX_THREAD_ID` or `CODEX_SESSION_ID` under `$CODEX_HOME/sessions`
27
+ (default `~/.codex/sessions`). Read `session_meta.cli_version` and the contributing turns' `turn_context.model`
28
+ and `turn_context.effort`. Inspect each subagent's own session when it contributed changes.
29
+ - Omit a field only after checking the corresponding metadata/logs and finding it unavailable. Never shorten a known
30
+ `gpt-6.1-sol` to `GPT-6`, or omit a known reasoning level. After committing, read back the stored commit message and
31
+ verify every trailer against the retrieved metadata. Keep unrelated log contents out of commit messages.
32
+ - Keep human-only and AI-generated changes in separate commits where practical for targeted reviews.
@@ -17,6 +17,9 @@ Name the facade after the package unless `index.ts` is the intended public entry
17
17
  Use `build.ts` for browser registration and `transformers.ts` for transformer registration.
18
18
  Use separate CJS/ESM builds only when consumers require both; reference `route`.
19
19
 
20
+ When creating a package, check the current project's `.idea/vcs.xml`. If it exists and lists `@itrocks` package
21
+ repositories, add a Git mapping for the new package, following the existing path format and ordering.
22
+
20
23
  ## Compiler and publication
21
24
 
22
25
  Start from the closest reference package and remove unused options.
@@ -27,6 +30,8 @@ Exclude `src/front` from the backend build. Mixed browser builds extend the base
27
30
  Use `@itrocks/prepare-module` where compiled browser subpaths must be copied to the root.
28
31
 
29
32
  Package metadata includes author, description, keywords, homepage, license, scoped name, repository and version.
33
+ For every new `@itrocks/*` package, set the
34
+ [mandatory framework and scope keywords](../documentation/package-metadata.md#keywords) according to its scope.
30
35
  Start an unreleased package at `0.0.1`; follow [package versioning](../README.md#package-versioning) for existing packages.
31
36
  Use `itrocks-ts/<package>` for the repository and keep the license consistent with `LICENSE`.
32
37
 
@@ -15,8 +15,15 @@ Avoid the package name, version claims, marketing adjectives and secondary featu
15
15
  ## Keywords
16
16
 
17
17
  Use unique, relevant search terms drawn from the package's capability, operations, platform and technologies.
18
- Include `it.rocks` for framework packages. Prefer 7–15 terms; relevance takes precedence over the count.
18
+ Every `@itrocks/*` package must include `it.rocks` and at least one scope keyword in `package.json.keywords`:
19
+
20
+ - `backend` for backend packages.
21
+ - `front-end` for browser or user interface packages, including CSS-only packages.
22
+ - Both `backend` and `front-end` for packages covering both scopes.
23
+
24
+ Apply this rule systematically when creating a package or updating its scope.
25
+ Prefer 7–15 terms; relevance takes precedence over the count.
19
26
  Use lowercase except established acronyms; sort alphabetically, ignoring case.
20
27
  Do not add vague terms, dependency inventories or spelling variants merely to increase the count.
21
28
 
22
- Parse the JSON and check description agreement, keyword uniqueness and ordering after editing.
29
+ Parse the JSON and check description agreement, mandatory keywords, keyword uniqueness and ordering after editing.
@@ -1,9 +1,27 @@
1
1
  # Coding conventions
2
2
 
3
- Apply these rules to application and framework source, tests and development files.
3
+ Apply these rules to all development: application code, framework packages, other modules, tests and development files.
4
4
  For framework packages, also apply [package versioning](../framework-changes/README.md#package-versioning)
5
5
  from the first file change.
6
6
 
7
+ ## Design choices
8
+
9
+ Before implementing a feature or fix, consider several ways to express the requested behaviour. Keep this comparison
10
+ proportionate to the task; choose the KISS (Keep It Simple And Stupid) solution that meets the actual requirements:
11
+
12
+ - Prefer a direct model of the behaviour, using the relevant events and state, over indirect calculations or heuristics.
13
+ - Reuse existing behaviour and share the same algorithm between variants; make their actual differences explicit.
14
+ - Minimise abstraction layers, preferably adding none. Introduce one only for a concrete current need that makes the
15
+ solution easier to understand or maintain.
16
+ - Choose code that a beginner developer can reread and maintain, and whose operation is easy to explain to a human.
17
+ Prefer less code when correctness and readability are equivalent.
18
+ - Apply SOLID through clear responsibilities, existing extension points, substitutable contracts, focused interfaces
19
+ and appropriate dependency boundaries. Each separation must serve the current behaviour and simplify maintenance.
20
+
21
+ When fixing a bug, reconsider the model before adding another condition or special case. For example, column drag
22
+ placement can remember the hovered column and react to changes of column and movement direction, instead of repeatedly
23
+ inferring placement from position thresholds.
24
+
7
25
  ## Layout and blocks
8
26
 
9
27
  - Limit lines to 120 columns; count each indentation tab as two columns. Only indivisible content may exceed it.
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  "type": "git",
26
26
  "url": "git+https://github.com/itrocks-ts/handbook.git"
27
27
  },
28
- "version": "0.0.6"
28
+ "version": "0.0.10"
29
29
  }