@softspark/ai-toolkit 2.1.0 → 2.1.2

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
@@ -386,3 +386,50 @@ Testing expert. Use for writing tests (unit, integration, e2e), TDD workflow, te
386
386
 
387
387
  ---
388
388
 
389
+ <!-- TOOLKIT:jira-rules START -->
390
+ <!-- Auto-injected by ai-toolkit. Re-run to update. -->
391
+
392
+ # Jira MCP Server
393
+
394
+ Tools: `sync_tasks`, `read_cached_tasks`, `update_task_status`, `add_task_comment`, `reassign_task`, `get_task_statuses`, `get_task_details`, `log_task_time`, `get_task_time_tracking`
395
+
396
+ ## Key Rules
397
+
398
+ - **Always `sync_tasks` first** before reading — cache may be stale.
399
+ - **Time format:** `"2h 30m"` — hours and minutes only, never days.
400
+ - **Status changes:** call `get_task_statuses` first to check valid transitions.
401
+ - **Multi-instance:** project key determines which Jira instance is used (mapped in config.json).
402
+
403
+ ## Workflow
404
+
405
+ 1. `sync_tasks(jql="assignee=currentUser() AND status!=Done")` — fetch fresh
406
+ 2. `read_cached_tasks()` — work offline
407
+ 3. `get_task_details(task_key="PROJ-123")` — deep dive
408
+ 4. `update_task_status(...)` / `add_task_comment(...)` / `log_task_time(...)` — mutate
409
+
410
+ <!-- TOOLKIT:jira-rules END -->
411
+ <!-- TOOLKIT:rag-mcp-rules START -->
412
+ <!-- Auto-injected by ai-toolkit. Re-run to update. -->
413
+
414
+ ## INSTANT ACTION RULE (GOLDEN RULE)
415
+
416
+ **ANY technical question? -> INSTANTLY call `smart_query()` OR `hybrid_search_kb()` BEFORE outputting text!**
417
+
418
+ 1. **Search First:** `smart_query()` or `hybrid_search_kb()` (NEVER skip, even if you "know").
419
+ 2. **Cite Sources:** always include `[PATH: kb/...]`.
420
+ 3. **Strict Order:** Semantic Search -> Files -> External Docs -> General Knowledge.
421
+
422
+ Default tool: `smart_query()`. Use `hybrid_search_kb()` for speed, `crag_search()` for vague queries, `multi_hop_search()` for complex reasoning.
423
+
424
+ ## kb_id vs file_path
425
+
426
+ - `get_document(path=...)` takes `kb_id` from search results (e.g., `local/softspark/project/reference/api.md`)
427
+ - `Read`/`Edit` take filesystem `file_path` (e.g., `./reference/api.md`)
428
+ - **DO NOT CONFUSE** these fields.
429
+
430
+ ## SOPs
431
+
432
+ ALWAYS check `kb/procedures/` first: `smart_query("SOP for <task>")`.
433
+
434
+ <!-- TOOLKIT:rag-mcp-rules END -->
435
+
package/CHANGELOG.md CHANGED
@@ -7,6 +7,32 @@ Versioning follows [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ---
9
9
 
10
+ ## v2.1.2 — Idempotent Update Fix (2026-04-13)
11
+
12
+ ### Fixed
13
+ - **`ai-toolkit update` no longer dirties git** — generators now skip custom rule emission when called by `inject_with_rules()` (which handles injection separately). Previously, `update` caused AGENTS.md and other generated files to gain extra blank lines on every run.
14
+
15
+ ---
16
+
17
+ ## v2.1.1 — Custom Rules in Generators & README Restructure (2026-04-13)
18
+
19
+ ### Fixed
20
+ - **Custom rules in generators** — `generate:all` now includes registered custom rules (from `ai-toolkit add-rule`) in all single-file generators (Cursor, Windsurf, Copilot, Gemini, AGENTS.md) and directory-based generators (Cline, Roo, Codex, Augment, Antigravity, Cursor MDC). Previously custom rules were lost on regeneration.
21
+ - **AGENTS.md double generation** — `generate-all` CLI no longer generates AGENTS.md twice; uses `codex-md` (superset) only
22
+ - **CLI help completeness** — added missing `--persona` option and `codex` to `--editors` list in `ai-toolkit help`
23
+
24
+ ### Changed
25
+ - **README restructured** — reduced from 951 to 292 lines with Table of Contents, "What's New" section, and links to KB docs. Detailed content moved to dedicated KB documents.
26
+ - **npm `generate:agents`** — now uses `generate_codex.py` (consistent with CLI `generate-all`)
27
+ - **Test assertions** — generator file count tests use `>= 6` to accommodate registered custom rules
28
+
29
+ ### New Files
30
+ - `kb/reference/cli-reference.md` — complete CLI command reference (moved from README)
31
+ - `kb/reference/unique-features.md` — detailed differentiators documentation (moved from README)
32
+ - `kb/reference/comparison.md` — ecosystem comparison table (moved from README)
33
+
34
+ ---
35
+
10
36
  ## v2.1.0 — Codex CLI Support & Native Editor MCP Install (2026-04-13)
11
37
 
12
38
  ### Added