autosnippet 3.2.2 → 3.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.
Files changed (33) hide show
  1. package/README.md +23 -0
  2. package/config/constitution.yaml +1 -0
  3. package/config/default.json +7 -0
  4. package/dashboard/dist/assets/{icons-18VxiaCT.js → icons-pSac4wYO.js} +101 -96
  5. package/dashboard/dist/assets/{index-CRH5Umim.js → index-6itPuGFl.js} +45 -45
  6. package/dashboard/dist/assets/index-DNOHYBhy.css +1 -0
  7. package/dashboard/dist/index.html +3 -3
  8. package/lib/cli/SetupService.js +93 -26
  9. package/lib/domain/knowledge/KnowledgeEntry.js +11 -0
  10. package/lib/domain/task/Task.js +32 -2
  11. package/lib/domain/task/TaskDependency.js +1 -0
  12. package/lib/external/mcp/McpServer.js +180 -6
  13. package/lib/external/mcp/handlers/bootstrap/shared/bootstrap-phases.js +2 -1
  14. package/lib/external/mcp/handlers/decide.js +109 -0
  15. package/lib/external/mcp/handlers/ready.js +42 -0
  16. package/lib/external/mcp/handlers/system.js +12 -0
  17. package/lib/external/mcp/handlers/task.js +7 -19
  18. package/lib/external/mcp/tools.js +83 -42
  19. package/lib/http/routes/knowledge.js +10 -10
  20. package/lib/http/routes/task.js +81 -1
  21. package/lib/http/utils/routeHelpers.js +30 -0
  22. package/lib/repository/task/TaskRepository.impl.js +3 -1
  23. package/lib/service/cursor/AgentInstructionsGenerator.js +27 -19
  24. package/lib/service/knowledge/KnowledgeService.js +12 -1
  25. package/lib/service/task/TaskGraphService.js +243 -3
  26. package/package.json +1 -1
  27. package/skills/autosnippet-intent/SKILL.md +3 -1
  28. package/skills/autosnippet-recipes/SKILL.md +3 -1
  29. package/templates/copilot-instructions.md +49 -14
  30. package/templates/cursor-rules/autosnippet-conventions.mdc +11 -0
  31. package/templates/cursor-rules/autosnippet-workflow.mdc +16 -7
  32. package/templates/guard-ci.yml +21 -0
  33. package/dashboard/dist/assets/index-BJiuaVPD.css +0 -1
package/README.md CHANGED
@@ -97,6 +97,29 @@ If no AI is available at all, a rule-based fallback still extracts basic knowled
97
97
 
98
98
  **AI providers** — Google Gemini, OpenAI, Claude, DeepSeek, Ollama (local), with auto-fallback between them. Or no AI at all — the knowledge base works without it.
99
99
 
100
+ ## Persistent Decisions & Context
101
+
102
+ TaskGraph stores team decisions and task status in `.autosnippet/autosnippet.db` — AI assistants don't start from scratch every conversation.
103
+
104
+ - **`autosnippet_ready`** — Loads active decisions and pending tasks into context. Called at session start.
105
+ - **`autosnippet_decide`** — Saves a team agreement (e.g. "use camelCase for API fields") that persists across sessions.
106
+ - **`autosnippet_task`** — Task CRUD: create, claim, close, fail, defer, progress, decompose.
107
+ - **Auto-inject** — Every subsequent tool call carries active decisions automatically.
108
+
109
+ Access via CLI `asd task`, MCP tools (`autosnippet_ready` / `autosnippet_decide` / `autosnippet_task`), or `#asd` in VS Code Agent Mode.
110
+
111
+ ## IDE Support
112
+
113
+ | IDE | Integration | How it connects |
114
+ |-----|-------------|----------------|
115
+ | **VS Code** | Extension + MCP | `#asd` in Agent Mode; search, directives, CodeLens, Guard |
116
+ | **Cursor** | MCP + Rules | `.cursor/mcp.json` + `.cursor/rules/` |
117
+ | **Claude Code** | MCP + CLAUDE.md | `CLAUDE.md` + MCP tools; supports hooks |
118
+ | **Trae / Qoder** | MCP | Auto-generated by `asd setup` |
119
+ | **Xcode** | File watcher | `asd watch` + file directives + snippet sync |
120
+
121
+ All configs generated by `asd setup`. Run `asd upgrade` to refresh after updates.
122
+
100
123
  ## File Directives
101
124
 
102
125
  Write these in any source file:
@@ -31,6 +31,7 @@ roles:
31
31
  permissions:
32
32
  - "read:recipes"
33
33
  - "read:guard_rules"
34
+ - "guard_rule:check_code"
34
35
  - "create:candidates"
35
36
  - "candidate:update"
36
37
  - "knowledge:create"
@@ -61,5 +61,12 @@
61
61
  "rust-excessive-unsafe": 3,
62
62
  "dart-excessive-late": 3
63
63
  }
64
+ },
65
+ "taskGraph": {
66
+ "decision": {
67
+ "staleDays": 30,
68
+ "maxActiveInPrime": 20,
69
+ "maxStaleInPrime": 10
70
+ }
64
71
  }
65
72
  }