@mikulgohil/ai-kit 1.10.0 → 1.11.0
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/README.md +33 -9
- package/dist/index.js +581 -240
- package/dist/index.js.map +1 -1
- package/guides/getting-started.md +25 -1
- package/package.json +7 -3
|
@@ -68,10 +68,12 @@ Open any file and use Cmd+K or the chat panel. The `.cursorrules` file is automa
|
|
|
68
68
|
|
|
69
69
|
Hooks run automatically as you code — no action needed. Based on your selected profile:
|
|
70
70
|
|
|
71
|
+
- **Session init**: echoes your tech stack, scripts, and last scan date at every session start — the AI has full context immediately
|
|
71
72
|
- **Auto-format**: files are formatted on save (Prettier or Biome)
|
|
72
73
|
- **Type-check**: TypeScript errors caught after every edit
|
|
73
74
|
- **Console.log warning**: catches debug statements before commit
|
|
74
75
|
- **Git push safety**: reminder to review before pushing
|
|
76
|
+
- **Context re-echo**: after context compaction in long sessions, re-echoes tech stack
|
|
75
77
|
|
|
76
78
|
See `ai-kit/guides/hooks-and-agents.md` for details on profiles and customization.
|
|
77
79
|
|
|
@@ -103,7 +105,9 @@ Specialized AI assistants live in `.claude/agents/` and can be delegated to:
|
|
|
103
105
|
## CLI Commands
|
|
104
106
|
|
|
105
107
|
```bash
|
|
106
|
-
npx @mikulgohil/ai-kit update # Re-scan and update configs
|
|
108
|
+
npx @mikulgohil/ai-kit update # Re-scan and update configs (auto-backs up first)
|
|
109
|
+
npx @mikulgohil/ai-kit migrate # Adopt ai-kit in a project with existing CLAUDE.md
|
|
110
|
+
npx @mikulgohil/ai-kit rollback # Restore configs from a previous backup
|
|
107
111
|
npx @mikulgohil/ai-kit audit # Security & config health check
|
|
108
112
|
npx @mikulgohil/ai-kit doctor # Diagnose setup issues
|
|
109
113
|
npx @mikulgohil/ai-kit diff # Preview what would change on update
|
|
@@ -112,3 +116,23 @@ npx @mikulgohil/ai-kit tokens # Token usage and cost estimates
|
|
|
112
116
|
npx @mikulgohil/ai-kit export # Export to Windsurf, Aider, Cline
|
|
113
117
|
npx @mikulgohil/ai-kit reset # Remove all generated files
|
|
114
118
|
```
|
|
119
|
+
|
|
120
|
+
## Migrating an Existing Project
|
|
121
|
+
|
|
122
|
+
Already have a hand-written `CLAUDE.md` or `.cursorrules`? Use `migrate` instead of `init`:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
npx @mikulgohil/ai-kit migrate # Preserves your custom rules, adds ai-kit sections
|
|
126
|
+
npx @mikulgohil/ai-kit migrate --dry-run # Preview what would change without writing
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Your custom sections stay at the top of the file. AI Kit's generated rules go below in `AI-KIT:START/END` markers. Future `ai-kit update` commands only touch the marked section.
|
|
130
|
+
|
|
131
|
+
## Rolling Back
|
|
132
|
+
|
|
133
|
+
Every `ai-kit update` automatically backs up your current configs before writing. If something goes wrong:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
npx @mikulgohil/ai-kit rollback # Pick from available backups
|
|
137
|
+
npx @mikulgohil/ai-kit rollback --latest # Restore most recent backup instantly
|
|
138
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikulgohil/ai-kit",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "AI-assisted development setup kit. Auto-detects your tech stack (Next.js, Sitecore XM Cloud, Optimizely SaaS CMS, Tailwind, TypeScript, Turborepo) and generates tailored CLAUDE.md, .cursorrules, hooks, agents, context modes, slash commands, design token rules, component registries, developer guides, and spec-first workflows.",
|
|
3
|
+
"version": "1.11.0",
|
|
4
|
+
"description": "AI-assisted development setup kit. Auto-detects your tech stack (Next.js, Sitecore XM Cloud, Optimizely SaaS CMS, Tailwind, TypeScript, Turborepo) and generates tailored CLAUDE.md, .cursorrules, hooks, agents, context modes, slash commands, design token rules, component registries, developer guides, and spec-first workflows. Migrate existing projects, auto-backup on update, and rollback support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"ai-kit": "./dist/index.js"
|
|
@@ -60,7 +60,11 @@
|
|
|
60
60
|
"extension-catalog",
|
|
61
61
|
"presets",
|
|
62
62
|
"constitution",
|
|
63
|
-
"spec-first"
|
|
63
|
+
"spec-first",
|
|
64
|
+
"migrate",
|
|
65
|
+
"rollback",
|
|
66
|
+
"backup",
|
|
67
|
+
"session-context"
|
|
64
68
|
],
|
|
65
69
|
"author": {
|
|
66
70
|
"name": "Mikul Gohil",
|