@hivehub/rulebook 4.2.2 ā 4.3.1
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/.claude/commands/continue.md +33 -33
- package/.claude/commands/ralph-config.md +112 -112
- package/.claude/commands/ralph-history.md +110 -110
- package/.claude/commands/ralph-init.md +72 -72
- package/.claude/commands/ralph-pause-resume.md +105 -105
- package/.claude/commands/ralph-run.md +101 -101
- package/.claude/commands/ralph-status.md +76 -76
- package/.claude/commands/rulebook-memory-save.md +48 -48
- package/.claude/commands/rulebook-memory-search.md +47 -47
- package/.claude/commands/rulebook-task-apply.md +67 -67
- package/.claude/commands/rulebook-task-archive.md +70 -70
- package/.claude/commands/rulebook-task-create.md +93 -93
- package/.claude/commands/rulebook-task-list.md +42 -42
- package/.claude/commands/rulebook-task-show.md +52 -52
- package/.claude/commands/rulebook-task-validate.md +53 -53
- package/.claude-plugin/marketplace.json +28 -28
- package/.claude-plugin/plugin.json +8 -8
- package/README.md +15 -1
- package/dist/cli/commands.d.ts.map +1 -1
- package/dist/cli/commands.js +43 -18
- package/dist/cli/commands.js.map +1 -1
- package/dist/core/claude-mcp.d.ts +10 -2
- package/dist/core/claude-mcp.d.ts.map +1 -1
- package/dist/core/claude-mcp.js +48 -9
- package/dist/core/claude-mcp.js.map +1 -1
- package/dist/core/config-manager.d.ts.map +1 -1
- package/dist/core/config-manager.js +1 -2
- package/dist/core/config-manager.js.map +1 -1
- package/dist/core/generator.d.ts +13 -0
- package/dist/core/generator.d.ts.map +1 -1
- package/dist/core/generator.js +283 -28
- package/dist/core/generator.js.map +1 -1
- package/dist/core/indexer/background-indexer.d.ts.map +1 -1
- package/dist/core/indexer/background-indexer.js +10 -3
- package/dist/core/indexer/background-indexer.js.map +1 -1
- package/dist/core/workspace/workspace-manager.d.ts.map +1 -1
- package/dist/core/workspace/workspace-manager.js +2 -6
- package/dist/core/workspace/workspace-manager.js.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp/rulebook-server.d.ts.map +1 -1
- package/dist/mcp/rulebook-server.js +23 -10
- package/dist/mcp/rulebook-server.js.map +1 -1
- package/package.json +21 -22
- package/templates/agents/accessibility-reviewer.md +43 -0
- package/templates/agents/api-designer.md +42 -0
- package/templates/agents/architect.md +51 -0
- package/templates/agents/build-engineer.md +36 -0
- package/templates/agents/code-reviewer.md +47 -0
- package/templates/agents/database-architect.md +41 -0
- package/templates/agents/devops-engineer.md +42 -0
- package/templates/agents/docs-writer.md +38 -0
- package/templates/agents/i18n-engineer.md +42 -0
- package/templates/agents/implementer.md +38 -35
- package/templates/agents/migration-engineer.md +42 -0
- package/templates/agents/performance-engineer.md +49 -0
- package/templates/agents/refactoring-agent.md +41 -0
- package/templates/agents/researcher.md +38 -34
- package/templates/agents/security-reviewer.md +40 -0
- package/templates/agents/team-lead.md +37 -34
- package/templates/agents/tester.md +45 -42
- package/templates/agents/ux-reviewer.md +43 -0
- package/templates/ci/rulebook-review.yml +26 -26
- package/templates/cli/AIDER.md +49 -49
- package/templates/cli/AMAZON_Q.md +25 -25
- package/templates/cli/AUGGIE.md +32 -32
- package/templates/cli/CLAUDE.md +117 -117
- package/templates/cli/CLINE.md +99 -99
- package/templates/cli/CODEBUDDY.md +20 -20
- package/templates/cli/CODEIUM.md +20 -20
- package/templates/cli/CODEX.md +21 -21
- package/templates/cli/CONTINUE.md +34 -34
- package/templates/cli/CURSOR_CLI.md +62 -62
- package/templates/cli/FACTORY.md +18 -18
- package/templates/cli/GEMINI.md +35 -35
- package/templates/cli/KILOCODE.md +18 -18
- package/templates/cli/OPENCODE.md +18 -18
- package/templates/cli/_GENERIC_TEMPLATE.md +29 -29
- package/templates/commands/rulebook-memory-save.md +48 -48
- package/templates/commands/rulebook-memory-search.md +47 -47
- package/templates/commands/rulebook-task-apply.md +67 -67
- package/templates/commands/rulebook-task-archive.md +94 -94
- package/templates/commands/rulebook-task-create.md +93 -93
- package/templates/commands/rulebook-task-list.md +42 -42
- package/templates/commands/rulebook-task-show.md +52 -52
- package/templates/commands/rulebook-task-validate.md +53 -53
- package/templates/core/AGENTS_LEAN.md +25 -25
- package/templates/core/AGENTS_OVERRIDE.md +16 -16
- package/templates/core/AGENT_AUTOMATION.md +288 -288
- package/templates/core/DAG.md +304 -304
- package/templates/core/DOCUMENTATION_RULES.md +36 -36
- package/templates/core/MULTI_AGENT.md +74 -74
- package/templates/core/PLANS.md +28 -28
- package/templates/core/QUALITY_ENFORCEMENT.md +68 -68
- package/templates/core/RALPH.md +471 -471
- package/templates/core/RULEBOOK.md +1935 -1935
- package/templates/frameworks/ANGULAR.md +36 -36
- package/templates/frameworks/DJANGO.md +83 -83
- package/templates/frameworks/ELECTRON.md +147 -147
- package/templates/frameworks/FLASK.md +38 -38
- package/templates/frameworks/FLUTTER.md +55 -55
- package/templates/frameworks/JQUERY.md +32 -32
- package/templates/frameworks/LARAVEL.md +38 -38
- package/templates/frameworks/NESTJS.md +43 -43
- package/templates/frameworks/NEXTJS.md +127 -127
- package/templates/frameworks/NUXT.md +40 -40
- package/templates/frameworks/RAILS.md +66 -66
- package/templates/frameworks/REACT.md +38 -38
- package/templates/frameworks/REACT_NATIVE.md +47 -47
- package/templates/frameworks/SPRING.md +39 -39
- package/templates/frameworks/SYMFONY.md +36 -36
- package/templates/frameworks/VUE.md +36 -36
- package/templates/frameworks/ZEND.md +35 -35
- package/templates/git/CI_CD_PATTERNS.md +661 -661
- package/templates/git/GITHUB_ACTIONS.md +728 -728
- package/templates/git/GITLAB_CI.md +730 -730
- package/templates/git/GIT_WORKFLOW.md +1157 -1157
- package/templates/git/SECRETS_MANAGEMENT.md +585 -585
- package/templates/hooks/COMMIT_MSG.md +530 -530
- package/templates/hooks/POST_CHECKOUT.md +546 -546
- package/templates/hooks/PREPARE_COMMIT_MSG.md +619 -619
- package/templates/hooks/PRE_COMMIT.md +414 -414
- package/templates/hooks/PRE_PUSH.md +601 -601
- package/templates/ides/CONTINUE_RULES.md +16 -16
- package/templates/ides/COPILOT.md +37 -37
- package/templates/ides/COPILOT_INSTRUCTIONS.md +23 -23
- package/templates/ides/CURSOR.md +43 -43
- package/templates/ides/GEMINI_RULES.md +17 -17
- package/templates/ides/JETBRAINS_AI.md +35 -35
- package/templates/ides/REPLIT.md +36 -36
- package/templates/ides/TABNINE.md +29 -29
- package/templates/ides/VSCODE.md +40 -40
- package/templates/ides/WINDSURF.md +36 -36
- package/templates/ides/WINDSURF_RULES.md +14 -14
- package/templates/ides/ZED.md +32 -32
- package/templates/ides/cursor-mdc/go.mdc +24 -24
- package/templates/ides/cursor-mdc/python.mdc +24 -24
- package/templates/ides/cursor-mdc/quality.mdc +25 -25
- package/templates/ides/cursor-mdc/ralph.mdc +39 -39
- package/templates/ides/cursor-mdc/rulebook.mdc +38 -38
- package/templates/ides/cursor-mdc/rust.mdc +24 -24
- package/templates/ides/cursor-mdc/typescript.mdc +25 -25
- package/templates/languages/C.md +333 -333
- package/templates/languages/CPP.md +743 -743
- package/templates/languages/CSHARP.md +417 -417
- package/templates/languages/ELIXIR.md +454 -454
- package/templates/languages/ERLANG.md +361 -361
- package/templates/languages/GO.md +645 -645
- package/templates/languages/HASKELL.md +177 -177
- package/templates/languages/JAVA.md +607 -607
- package/templates/languages/JAVASCRIPT.md +631 -631
- package/templates/languages/JULIA.md +97 -97
- package/templates/languages/KOTLIN.md +511 -511
- package/templates/languages/LISP.md +100 -100
- package/templates/languages/LUA.md +74 -74
- package/templates/languages/OBJECTIVEC.md +90 -90
- package/templates/languages/PHP.md +416 -416
- package/templates/languages/PYTHON.md +682 -682
- package/templates/languages/RUBY.md +421 -421
- package/templates/languages/RUST.md +477 -477
- package/templates/languages/SAS.md +73 -73
- package/templates/languages/SCALA.md +348 -348
- package/templates/languages/SOLIDITY.md +580 -580
- package/templates/languages/SQL.md +137 -137
- package/templates/languages/SWIFT.md +466 -466
- package/templates/languages/TYPESCRIPT.md +591 -591
- package/templates/languages/ZIG.md +265 -265
- package/templates/modules/ATLASSIAN.md +255 -255
- package/templates/modules/CONTEXT7.md +54 -54
- package/templates/modules/FIGMA.md +267 -267
- package/templates/modules/GITHUB_MCP.md +64 -64
- package/templates/modules/GRAFANA.md +328 -328
- package/templates/modules/MEMORY.md +126 -126
- package/templates/modules/NOTION.md +247 -247
- package/templates/modules/PLAYWRIGHT.md +90 -90
- package/templates/modules/RULEBOOK_MCP.md +156 -156
- package/templates/modules/SERENA.md +337 -337
- package/templates/modules/SUPABASE.md +223 -223
- package/templates/modules/SYNAP.md +69 -69
- package/templates/modules/VECTORIZER.md +63 -63
- package/templates/modules/sequential-thinking.md +42 -42
- package/templates/ralph/ralph-history.bat +4 -4
- package/templates/ralph/ralph-history.sh +5 -5
- package/templates/ralph/ralph-init.bat +5 -5
- package/templates/ralph/ralph-init.sh +5 -5
- package/templates/ralph/ralph-pause.bat +5 -5
- package/templates/ralph/ralph-pause.sh +5 -5
- package/templates/ralph/ralph-run.bat +5 -5
- package/templates/ralph/ralph-run.sh +5 -5
- package/templates/ralph/ralph-status.bat +4 -4
- package/templates/ralph/ralph-status.sh +5 -5
- package/templates/services/AZURE_BLOB.md +184 -184
- package/templates/services/CASSANDRA.md +239 -239
- package/templates/services/DATADOG.md +26 -26
- package/templates/services/DOCKER.md +124 -124
- package/templates/services/DOCKER_COMPOSE.md +168 -168
- package/templates/services/DYNAMODB.md +308 -308
- package/templates/services/ELASTICSEARCH.md +347 -347
- package/templates/services/GCS.md +178 -178
- package/templates/services/HELM.md +194 -194
- package/templates/services/INFLUXDB.md +265 -265
- package/templates/services/KAFKA.md +341 -341
- package/templates/services/KUBERNETES.md +208 -208
- package/templates/services/MARIADB.md +183 -183
- package/templates/services/MEMCACHED.md +242 -242
- package/templates/services/MINIO.md +201 -201
- package/templates/services/MONGODB.md +268 -268
- package/templates/services/MYSQL.md +358 -358
- package/templates/services/NEO4J.md +247 -247
- package/templates/services/OPENTELEMETRY.md +25 -25
- package/templates/services/ORACLE.md +290 -290
- package/templates/services/PINO.md +24 -24
- package/templates/services/POSTGRESQL.md +326 -326
- package/templates/services/PROMETHEUS.md +33 -33
- package/templates/services/RABBITMQ.md +286 -286
- package/templates/services/REDIS.md +292 -292
- package/templates/services/S3.md +298 -298
- package/templates/services/SENTRY.md +23 -23
- package/templates/services/SQLITE.md +294 -294
- package/templates/services/SQLSERVER.md +294 -294
- package/templates/services/WINSTON.md +30 -30
- package/templates/skills/cli/aider/SKILL.md +59 -59
- package/templates/skills/cli/amazon-q/SKILL.md +35 -35
- package/templates/skills/cli/auggie/SKILL.md +42 -42
- package/templates/skills/cli/claude/SKILL.md +42 -42
- package/templates/skills/cli/cline/SKILL.md +42 -42
- package/templates/skills/cli/codebuddy/SKILL.md +30 -30
- package/templates/skills/cli/codeium/SKILL.md +30 -30
- package/templates/skills/cli/codex/SKILL.md +31 -31
- package/templates/skills/cli/continue/SKILL.md +44 -44
- package/templates/skills/cli/cursor-cli/SKILL.md +38 -38
- package/templates/skills/cli/factory/SKILL.md +28 -28
- package/templates/skills/cli/gemini/SKILL.md +45 -45
- package/templates/skills/cli/kilocode/SKILL.md +28 -28
- package/templates/skills/cli/opencode/SKILL.md +28 -28
- package/templates/skills/core/agent-automation/SKILL.md +194 -194
- package/templates/skills/core/dag/SKILL.md +314 -314
- package/templates/skills/core/documentation-rules/SKILL.md +46 -46
- package/templates/skills/core/quality-enforcement/SKILL.md +78 -78
- package/templates/skills/core/rulebook/SKILL.md +176 -176
- package/templates/skills/dev/accessibility/SKILL.md +17 -0
- package/templates/skills/dev/api-design/SKILL.md +15 -0
- package/templates/skills/dev/architect/SKILL.md +17 -0
- package/templates/skills/dev/build-fix/SKILL.md +17 -0
- package/templates/skills/dev/db-design/SKILL.md +15 -0
- package/templates/skills/dev/debug/SKILL.md +16 -0
- package/templates/skills/dev/deploy/SKILL.md +17 -0
- package/templates/skills/dev/docs/SKILL.md +17 -0
- package/templates/skills/dev/migrate/SKILL.md +15 -0
- package/templates/skills/dev/perf/SKILL.md +17 -0
- package/templates/skills/dev/refactor/SKILL.md +17 -0
- package/templates/skills/dev/research/SKILL.md +14 -0
- package/templates/skills/dev/review/SKILL.md +18 -0
- package/templates/skills/dev/security-audit/SKILL.md +17 -0
- package/templates/skills/frameworks/angular/SKILL.md +46 -46
- package/templates/skills/frameworks/django/SKILL.md +93 -93
- package/templates/skills/frameworks/electron/SKILL.md +157 -157
- package/templates/skills/frameworks/flask/SKILL.md +48 -48
- package/templates/skills/frameworks/flutter/SKILL.md +65 -65
- package/templates/skills/frameworks/jquery/SKILL.md +42 -42
- package/templates/skills/frameworks/laravel/SKILL.md +48 -48
- package/templates/skills/frameworks/nestjs/SKILL.md +53 -53
- package/templates/skills/frameworks/nextjs/SKILL.md +137 -137
- package/templates/skills/frameworks/nuxt/SKILL.md +50 -50
- package/templates/skills/frameworks/rails/SKILL.md +76 -76
- package/templates/skills/frameworks/react/SKILL.md +48 -48
- package/templates/skills/frameworks/react-native/SKILL.md +57 -57
- package/templates/skills/frameworks/spring/SKILL.md +49 -49
- package/templates/skills/frameworks/symfony/SKILL.md +46 -46
- package/templates/skills/frameworks/vue/SKILL.md +46 -46
- package/templates/skills/frameworks/zend/SKILL.md +45 -45
- package/templates/skills/ides/copilot/SKILL.md +47 -47
- package/templates/skills/ides/cursor/SKILL.md +53 -53
- package/templates/skills/ides/jetbrains-ai/SKILL.md +45 -45
- package/templates/skills/ides/replit/SKILL.md +46 -46
- package/templates/skills/ides/tabnine/SKILL.md +39 -39
- package/templates/skills/ides/vscode/SKILL.md +50 -50
- package/templates/skills/ides/windsurf/SKILL.md +46 -46
- package/templates/skills/ides/zed/SKILL.md +42 -42
- package/templates/skills/languages/c/SKILL.md +343 -343
- package/templates/skills/languages/cpp/SKILL.md +753 -753
- package/templates/skills/languages/csharp/SKILL.md +427 -427
- package/templates/skills/languages/elixir/SKILL.md +464 -464
- package/templates/skills/languages/erlang/SKILL.md +371 -371
- package/templates/skills/languages/go/SKILL.md +655 -655
- package/templates/skills/languages/haskell/SKILL.md +187 -187
- package/templates/skills/languages/java/SKILL.md +617 -617
- package/templates/skills/languages/javascript/SKILL.md +641 -641
- package/templates/skills/languages/julia/SKILL.md +107 -107
- package/templates/skills/languages/kotlin/SKILL.md +521 -521
- package/templates/skills/languages/lisp/SKILL.md +110 -110
- package/templates/skills/languages/lua/SKILL.md +84 -84
- package/templates/skills/languages/objectivec/SKILL.md +100 -100
- package/templates/skills/languages/php/SKILL.md +426 -426
- package/templates/skills/languages/python/SKILL.md +692 -692
- package/templates/skills/languages/ruby/SKILL.md +431 -431
- package/templates/skills/languages/rust/SKILL.md +487 -487
- package/templates/skills/languages/sas/SKILL.md +83 -83
- package/templates/skills/languages/scala/SKILL.md +358 -358
- package/templates/skills/languages/solidity/SKILL.md +590 -590
- package/templates/skills/languages/sql/SKILL.md +147 -147
- package/templates/skills/languages/swift/SKILL.md +476 -476
- package/templates/skills/languages/typescript/SKILL.md +302 -302
- package/templates/skills/languages/zig/SKILL.md +275 -275
- package/templates/skills/modules/atlassian/SKILL.md +265 -265
- package/templates/skills/modules/context7/SKILL.md +64 -64
- package/templates/skills/modules/figma/SKILL.md +277 -277
- package/templates/skills/modules/github-mcp/SKILL.md +74 -74
- package/templates/skills/modules/grafana/SKILL.md +338 -338
- package/templates/skills/modules/memory/SKILL.md +73 -73
- package/templates/skills/modules/notion/SKILL.md +257 -257
- package/templates/skills/modules/playwright/SKILL.md +100 -100
- package/templates/skills/modules/rulebook-mcp/SKILL.md +166 -166
- package/templates/skills/modules/serena/SKILL.md +347 -347
- package/templates/skills/modules/supabase/SKILL.md +233 -233
- package/templates/skills/modules/synap/SKILL.md +79 -79
- package/templates/skills/modules/vectorizer/SKILL.md +73 -73
- package/templates/skills/services/azure-blob/SKILL.md +194 -194
- package/templates/skills/services/cassandra/SKILL.md +249 -249
- package/templates/skills/services/dynamodb/SKILL.md +318 -318
- package/templates/skills/services/elasticsearch/SKILL.md +357 -357
- package/templates/skills/services/gcs/SKILL.md +188 -188
- package/templates/skills/services/influxdb/SKILL.md +275 -275
- package/templates/skills/services/kafka/SKILL.md +351 -351
- package/templates/skills/services/mariadb/SKILL.md +193 -193
- package/templates/skills/services/memcached/SKILL.md +252 -252
- package/templates/skills/services/minio/SKILL.md +211 -211
- package/templates/skills/services/mongodb/SKILL.md +278 -278
- package/templates/skills/services/mysql/SKILL.md +368 -368
- package/templates/skills/services/neo4j/SKILL.md +257 -257
- package/templates/skills/services/oracle/SKILL.md +300 -300
- package/templates/skills/services/postgresql/SKILL.md +336 -336
- package/templates/skills/services/rabbitmq/SKILL.md +296 -296
- package/templates/skills/services/redis/SKILL.md +302 -302
- package/templates/skills/services/s3/SKILL.md +308 -308
- package/templates/skills/services/sqlite/SKILL.md +304 -304
- package/templates/skills/services/sqlserver/SKILL.md +304 -304
- package/templates/skills/workflows/ralph/SKILL.md +309 -309
- package/templates/skills/workflows/ralph/install.sh +87 -87
- package/templates/skills/workflows/ralph/manifest.json +158 -158
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /rulebook-task-show
|
|
3
|
-
id: rulebook-task-show
|
|
4
|
-
category: Rulebook
|
|
5
|
-
description: Show detailed information about a specific Rulebook task.
|
|
6
|
-
---
|
|
7
|
-
<!-- RULEBOOK:START -->
|
|
8
|
-
**Guardrails**
|
|
9
|
-
- Favor straightforward, minimal implementations first and add complexity only when it is requested or clearly required.
|
|
10
|
-
- Keep changes tightly scoped to the requested outcome.
|
|
11
|
-
- Refer to `/.rulebook/specs/RULEBOOK.md` for complete task management guidelines.
|
|
12
|
-
|
|
13
|
-
**Steps**
|
|
14
|
-
1. **Show Task Details**:
|
|
15
|
-
```bash
|
|
16
|
-
rulebook task show <task-id>
|
|
17
|
-
```
|
|
18
|
-
Displays:
|
|
19
|
-
- Task ID and title
|
|
20
|
-
- Status (pending, in-progress, completed, blocked)
|
|
21
|
-
- Created and updated dates
|
|
22
|
-
- Archive date (if archived)
|
|
23
|
-
- Proposal summary
|
|
24
|
-
- Spec files list
|
|
25
|
-
|
|
26
|
-
2. **Review Proposal**:
|
|
27
|
-
- Read `proposal.md` to understand why and what changes
|
|
28
|
-
- Check impact assessment
|
|
29
|
-
- Verify breaking changes are documented
|
|
30
|
-
|
|
31
|
-
3. **Review Tasks Checklist**:
|
|
32
|
-
- Check `tasks.md` for implementation checklist
|
|
33
|
-
- Identify completed items (`[x]`)
|
|
34
|
-
- Identify pending items (`[ ]`)
|
|
35
|
-
- Follow priority order (most critical first)
|
|
36
|
-
|
|
37
|
-
4. **Review Spec Deltas**:
|
|
38
|
-
- Check `specs/*/spec.md` files
|
|
39
|
-
- Verify format compliance (SHALL/MUST, 4 hashtags for scenarios)
|
|
40
|
-
- Understand requirements and scenarios
|
|
41
|
-
|
|
42
|
-
5. **Check Task Status**:
|
|
43
|
-
- Verify task is not blocked
|
|
44
|
-
- Check if task is ready for implementation
|
|
45
|
-
- Confirm all prerequisites are met
|
|
46
|
-
|
|
47
|
-
**Reference**
|
|
48
|
-
- Use `rulebook task list` to see all tasks
|
|
49
|
-
- Use `rulebook task validate <task-id>` to check task format
|
|
50
|
-
- See `/.rulebook/specs/RULEBOOK.md` for complete task management guidelines
|
|
51
|
-
<!-- RULEBOOK:END -->
|
|
52
|
-
|
|
1
|
+
---
|
|
2
|
+
name: /rulebook-task-show
|
|
3
|
+
id: rulebook-task-show
|
|
4
|
+
category: Rulebook
|
|
5
|
+
description: Show detailed information about a specific Rulebook task.
|
|
6
|
+
---
|
|
7
|
+
<!-- RULEBOOK:START -->
|
|
8
|
+
**Guardrails**
|
|
9
|
+
- Favor straightforward, minimal implementations first and add complexity only when it is requested or clearly required.
|
|
10
|
+
- Keep changes tightly scoped to the requested outcome.
|
|
11
|
+
- Refer to `/.rulebook/specs/RULEBOOK.md` for complete task management guidelines.
|
|
12
|
+
|
|
13
|
+
**Steps**
|
|
14
|
+
1. **Show Task Details**:
|
|
15
|
+
```bash
|
|
16
|
+
rulebook task show <task-id>
|
|
17
|
+
```
|
|
18
|
+
Displays:
|
|
19
|
+
- Task ID and title
|
|
20
|
+
- Status (pending, in-progress, completed, blocked)
|
|
21
|
+
- Created and updated dates
|
|
22
|
+
- Archive date (if archived)
|
|
23
|
+
- Proposal summary
|
|
24
|
+
- Spec files list
|
|
25
|
+
|
|
26
|
+
2. **Review Proposal**:
|
|
27
|
+
- Read `proposal.md` to understand why and what changes
|
|
28
|
+
- Check impact assessment
|
|
29
|
+
- Verify breaking changes are documented
|
|
30
|
+
|
|
31
|
+
3. **Review Tasks Checklist**:
|
|
32
|
+
- Check `tasks.md` for implementation checklist
|
|
33
|
+
- Identify completed items (`[x]`)
|
|
34
|
+
- Identify pending items (`[ ]`)
|
|
35
|
+
- Follow priority order (most critical first)
|
|
36
|
+
|
|
37
|
+
4. **Review Spec Deltas**:
|
|
38
|
+
- Check `specs/*/spec.md` files
|
|
39
|
+
- Verify format compliance (SHALL/MUST, 4 hashtags for scenarios)
|
|
40
|
+
- Understand requirements and scenarios
|
|
41
|
+
|
|
42
|
+
5. **Check Task Status**:
|
|
43
|
+
- Verify task is not blocked
|
|
44
|
+
- Check if task is ready for implementation
|
|
45
|
+
- Confirm all prerequisites are met
|
|
46
|
+
|
|
47
|
+
**Reference**
|
|
48
|
+
- Use `rulebook task list` to see all tasks
|
|
49
|
+
- Use `rulebook task validate <task-id>` to check task format
|
|
50
|
+
- See `/.rulebook/specs/RULEBOOK.md` for complete task management guidelines
|
|
51
|
+
<!-- RULEBOOK:END -->
|
|
52
|
+
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /rulebook-task-validate
|
|
3
|
-
id: rulebook-task-validate
|
|
4
|
-
category: Rulebook
|
|
5
|
-
description: Validate Rulebook task format against OpenSpec-compatible requirements.
|
|
6
|
-
---
|
|
7
|
-
<!-- RULEBOOK:START -->
|
|
8
|
-
**Guardrails**
|
|
9
|
-
- Favor straightforward, minimal implementations first and add complexity only when it is requested or clearly required.
|
|
10
|
-
- Keep changes tightly scoped to the requested outcome.
|
|
11
|
-
- Refer to `/.rulebook/specs/RULEBOOK.md` for complete task management guidelines and format requirements.
|
|
12
|
-
|
|
13
|
-
**Steps**
|
|
14
|
-
1. **Validate Task Format**:
|
|
15
|
-
```bash
|
|
16
|
-
rulebook task validate <task-id>
|
|
17
|
-
```
|
|
18
|
-
Checks:
|
|
19
|
-
- Purpose section length (ā„20 characters)
|
|
20
|
-
- Requirement keywords (SHALL/MUST)
|
|
21
|
-
- Scenario format (4 hashtags, not 3)
|
|
22
|
-
- Given/When/Then structure
|
|
23
|
-
- Delta headers format (ADDED/MODIFIED/REMOVED/RENAMED)
|
|
24
|
-
|
|
25
|
-
2. **Review Validation Results**:
|
|
26
|
-
- **Errors**: Must be fixed before proceeding
|
|
27
|
-
- **Warnings**: Should be addressed but not blocking
|
|
28
|
-
|
|
29
|
-
3. **Fix Format Issues**:
|
|
30
|
-
- **Purpose too short**: Expand "Why" section to ā„20 characters
|
|
31
|
-
- **Missing SHALL/MUST**: Add SHALL or MUST keyword to requirements
|
|
32
|
-
- **Wrong scenario format**: Change `### Scenario:` to `#### Scenario:` (4 hashtags)
|
|
33
|
-
- **Missing Given/When/Then**: Replace bullet points with Given/When/Then structure
|
|
34
|
-
- **Wrong delta headers**: Use ADDED/MODIFIED/REMOVED/RENAMED, not "New Requirements"
|
|
35
|
-
|
|
36
|
-
4. **Re-validate After Fixes**:
|
|
37
|
-
```bash
|
|
38
|
-
rulebook task validate <task-id>
|
|
39
|
-
```
|
|
40
|
-
Ensure all errors are resolved.
|
|
41
|
-
|
|
42
|
-
5. **Common Format Errors**:
|
|
43
|
-
- ā `### Scenario:` (3 hashtags) ā ā
`#### Scenario:` (4 hashtags)
|
|
44
|
-
- ā "The system provides X" ā ā
"The system SHALL provide X"
|
|
45
|
-
- ā `- WHEN user does X THEN Y` ā ā
`Given X\nWhen Y\nThen Z`
|
|
46
|
-
- ā `## New Requirements` ā ā
`## ADDED Requirements`
|
|
47
|
-
|
|
48
|
-
**Reference**
|
|
49
|
-
- See `/.rulebook/specs/RULEBOOK.md` for complete format requirements
|
|
50
|
-
- Use Context7 MCP to get official OpenSpec format documentation
|
|
51
|
-
- Use `rulebook task show <task-id>` to view task details
|
|
52
|
-
<!-- RULEBOOK:END -->
|
|
53
|
-
|
|
1
|
+
---
|
|
2
|
+
name: /rulebook-task-validate
|
|
3
|
+
id: rulebook-task-validate
|
|
4
|
+
category: Rulebook
|
|
5
|
+
description: Validate Rulebook task format against OpenSpec-compatible requirements.
|
|
6
|
+
---
|
|
7
|
+
<!-- RULEBOOK:START -->
|
|
8
|
+
**Guardrails**
|
|
9
|
+
- Favor straightforward, minimal implementations first and add complexity only when it is requested or clearly required.
|
|
10
|
+
- Keep changes tightly scoped to the requested outcome.
|
|
11
|
+
- Refer to `/.rulebook/specs/RULEBOOK.md` for complete task management guidelines and format requirements.
|
|
12
|
+
|
|
13
|
+
**Steps**
|
|
14
|
+
1. **Validate Task Format**:
|
|
15
|
+
```bash
|
|
16
|
+
rulebook task validate <task-id>
|
|
17
|
+
```
|
|
18
|
+
Checks:
|
|
19
|
+
- Purpose section length (ā„20 characters)
|
|
20
|
+
- Requirement keywords (SHALL/MUST)
|
|
21
|
+
- Scenario format (4 hashtags, not 3)
|
|
22
|
+
- Given/When/Then structure
|
|
23
|
+
- Delta headers format (ADDED/MODIFIED/REMOVED/RENAMED)
|
|
24
|
+
|
|
25
|
+
2. **Review Validation Results**:
|
|
26
|
+
- **Errors**: Must be fixed before proceeding
|
|
27
|
+
- **Warnings**: Should be addressed but not blocking
|
|
28
|
+
|
|
29
|
+
3. **Fix Format Issues**:
|
|
30
|
+
- **Purpose too short**: Expand "Why" section to ā„20 characters
|
|
31
|
+
- **Missing SHALL/MUST**: Add SHALL or MUST keyword to requirements
|
|
32
|
+
- **Wrong scenario format**: Change `### Scenario:` to `#### Scenario:` (4 hashtags)
|
|
33
|
+
- **Missing Given/When/Then**: Replace bullet points with Given/When/Then structure
|
|
34
|
+
- **Wrong delta headers**: Use ADDED/MODIFIED/REMOVED/RENAMED, not "New Requirements"
|
|
35
|
+
|
|
36
|
+
4. **Re-validate After Fixes**:
|
|
37
|
+
```bash
|
|
38
|
+
rulebook task validate <task-id>
|
|
39
|
+
```
|
|
40
|
+
Ensure all errors are resolved.
|
|
41
|
+
|
|
42
|
+
5. **Common Format Errors**:
|
|
43
|
+
- ā `### Scenario:` (3 hashtags) ā ā
`#### Scenario:` (4 hashtags)
|
|
44
|
+
- ā "The system provides X" ā ā
"The system SHALL provide X"
|
|
45
|
+
- ā `- WHEN user does X THEN Y` ā ā
`Given X\nWhen Y\nThen Z`
|
|
46
|
+
- ā `## New Requirements` ā ā
`## ADDED Requirements`
|
|
47
|
+
|
|
48
|
+
**Reference**
|
|
49
|
+
- See `/.rulebook/specs/RULEBOOK.md` for complete format requirements
|
|
50
|
+
- Use Context7 MCP to get official OpenSpec format documentation
|
|
51
|
+
- Use `rulebook task show <task-id>` to view task details
|
|
52
|
+
<!-- RULEBOOK:END -->
|
|
53
|
+
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "hivehub-marketplace",
|
|
3
|
-
"owner": {
|
|
4
|
-
"name": "HiveLLM Team",
|
|
5
|
-
"email": "support@hivellm.com",
|
|
6
|
-
"url": "https://github.com/hivellm"
|
|
7
|
-
},
|
|
8
|
-
"plugins": [
|
|
9
|
-
{
|
|
10
|
-
"name": "rulebook",
|
|
11
|
-
"source": ".",
|
|
12
|
-
"description": "Standardize AI-generated projects with skills, templates, persistent memory, and quality gates. Supports 28 languages, 17 frameworks, 13 MCP modules, and 20 services.",
|
|
13
|
-
"version": "4.
|
|
14
|
-
"repository": "https://github.com/hivellm/rulebook",
|
|
15
|
-
"homepage": "https://github.com/hivellm/rulebook#readme",
|
|
16
|
-
"keywords": [
|
|
17
|
-
"ai",
|
|
18
|
-
"automation",
|
|
19
|
-
"templates",
|
|
20
|
-
"standards",
|
|
21
|
-
"skills",
|
|
22
|
-
"mcp",
|
|
23
|
-
"task-management",
|
|
24
|
-
"quality-gates"
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "hivehub-marketplace",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "HiveLLM Team",
|
|
5
|
+
"email": "support@hivellm.com",
|
|
6
|
+
"url": "https://github.com/hivellm"
|
|
7
|
+
},
|
|
8
|
+
"plugins": [
|
|
9
|
+
{
|
|
10
|
+
"name": "rulebook",
|
|
11
|
+
"source": ".",
|
|
12
|
+
"description": "Standardize AI-generated projects with skills, templates, persistent memory, and quality gates. Supports 28 languages, 17 frameworks, 13 MCP modules, and 20 services.",
|
|
13
|
+
"version": "4.3.0",
|
|
14
|
+
"repository": "https://github.com/hivellm/rulebook",
|
|
15
|
+
"homepage": "https://github.com/hivellm/rulebook#readme",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"ai",
|
|
18
|
+
"automation",
|
|
19
|
+
"templates",
|
|
20
|
+
"standards",
|
|
21
|
+
"skills",
|
|
22
|
+
"mcp",
|
|
23
|
+
"task-management",
|
|
24
|
+
"quality-gates"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rulebook",
|
|
3
|
-
"description": "Standardize AI-generated projects with Ralph autonomous loop, persistent memory, and quality gates. Supports 28 languages, 17 frameworks, 13 MCP modules, and 20 services.",
|
|
4
|
-
"version": "4.
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "HiveLLM"
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "rulebook",
|
|
3
|
+
"description": "Standardize AI-generated projects with Ralph autonomous loop, persistent memory, and quality gates. Supports 28 languages, 17 frameworks, 13 MCP modules, and 20 services.",
|
|
4
|
+
"version": "4.3.1",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "HiveLLM"
|
|
7
|
+
}
|
|
8
|
+
}
|
package/README.md
CHANGED
|
@@ -52,6 +52,20 @@ npx @hivehub/rulebook@latest update
|
|
|
52
52
|
|
|
53
53
|
See the full [CHANGELOG](CHANGELOG.md) for details.
|
|
54
54
|
|
|
55
|
+
### v4.3.1 ā MCP Stability & Multi-Root Workspace Support
|
|
56
|
+
|
|
57
|
+
- š§ **MCP server loop fix**: Resolved `BackgroundIndexer` stdout pollution causing infinite restarts
|
|
58
|
+
- šļø **Auto-detect workspace mode**: MCP server now auto-switches to workspace mode when `.code-workspace` or monorepo configs are found ā no `--workspace` flag needed
|
|
59
|
+
- š§¹ **Nested `.rulebook` fix**: Eliminated accidental `.rulebook/.rulebook` directory creation
|
|
60
|
+
- š **Plugin deduplication**: Claude Code plugin entries consolidated to single entry on `update`
|
|
61
|
+
|
|
62
|
+
### v4.3.0 ā Agent Delegation & Cost Optimization
|
|
63
|
+
|
|
64
|
+
- š¤ **18 Specialist Agents**: Cost-appropriate model assignments (opus for architecture, sonnet for code, haiku for read-only) with full Claude Code fields (`tools`, `maxTurns`, `disallowedTools`)
|
|
65
|
+
- ā” **14 Dev Skills**: `/docs`, `/review`, `/debug`, `/refactor`, `/security-audit`, `/deploy`, `/perf`, `/architect`, `/api-design`, `/db-design`, `/accessibility`, `/migrate`, `/research`, `/build-fix` ā each linked to a specialist agent via `context: fork`
|
|
66
|
+
- š **Delegation Rules in AGENTS.md**: Auto-generated table instructing LLMs to delegate work to specialist agents instead of doing everything in the main conversation
|
|
67
|
+
- š **Dynamic Agent Templates**: Placeholders (`{{language}}`, `{{test_framework}}`, etc.) resolved at generation time for 14 languages
|
|
68
|
+
|
|
55
69
|
### v4.2.1 ā Workspace Config Path Fix
|
|
56
70
|
|
|
57
71
|
- š **Workspace config moved to `.rulebook/workspace.json`** (was `.rulebook-workspace.json` at root)
|
|
@@ -84,7 +98,7 @@ See the full [CHANGELOG](CHANGELOG.md) for details.
|
|
|
84
98
|
- š³ **Container + Observability**: Docker, K8s, Helm, Sentry, OTel, Datadog, Pino, Winston, Prometheus
|
|
85
99
|
- š ļø **Multi-tool**: Gemini CLI, Continue.dev, Windsurf, Copilot configs auto-generated
|
|
86
100
|
- š **AI Code Review**: `rulebook review` + GitHub Actions workflow
|
|
87
|
-
- š„ **Multi-agent teams**: Claude Code agent definitions + team auto-configuration
|
|
101
|
+
- š„ **Multi-agent teams**: Claude Code agent definitions + team auto-configuration (expanded to 18 agents in v4.2)
|
|
88
102
|
|
|
89
103
|
### v3.0.0 ā Persistent Memory & Skills
|
|
90
104
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/cli/commands.ts"],"names":[],"mappings":"AAgEA,wBAAsB,WAAW,CAAC,OAAO,EAAE;IACzC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/cli/commands.ts"],"names":[],"mappings":"AAgEA,wBAAsB,WAAW,CAAC,OAAO,EAAE;IACzC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,GAAG,OAAO,CAAC,IAAI,CAAC,CAkehB;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA8DrD;AAED,wB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AO,CAAC,IAAI,CAAC,CAwB/E;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAyB1D;AAED,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC,CAmC5D"}
|
package/dist/cli/commands.js
CHANGED
|
@@ -417,6 +417,25 @@ export async function initCommand(options) {
|
|
|
417
417
|
console.log(chalk.gray(` - ${path.relative(cwd, artifact)}`));
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
|
+
// Clean up any accidental nested .rulebook/.rulebook directory
|
|
421
|
+
try {
|
|
422
|
+
const fsPromises = await import('fs/promises');
|
|
423
|
+
const accidentalDir = path.join(cwd, '.rulebook', '.rulebook');
|
|
424
|
+
if (existsSync(accidentalDir)) {
|
|
425
|
+
await fsPromises.rm(accidentalDir, { recursive: true, force: true });
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
catch {
|
|
429
|
+
// Ignore cleanup errors
|
|
430
|
+
}
|
|
431
|
+
// Detect if this looks like a workspace root and hint the user
|
|
432
|
+
const wsConfig = WorkspaceManager.findWorkspaceConfig(cwd);
|
|
433
|
+
if (wsConfig && wsConfig.projects.length > 1) {
|
|
434
|
+
console.log(chalk.yellow(`\nā Workspace detected: "${wsConfig.name}" with ${wsConfig.projects.length} projects.`));
|
|
435
|
+
console.log(chalk.yellow(' The MCP server will auto-detect workspace mode. For explicit setup, run:'));
|
|
436
|
+
console.log(chalk.yellow(' rulebook workspace init'));
|
|
437
|
+
console.log(chalk.yellow(' Then run `rulebook init` inside each sub-project individually for best results.\n'));
|
|
438
|
+
}
|
|
420
439
|
console.log(chalk.bold.green('\n⨠Rulebook initialization complete!\n'));
|
|
421
440
|
console.log(chalk.gray('Next steps:'));
|
|
422
441
|
console.log(chalk.gray(' 1. Review AGENTS.md'));
|
|
@@ -934,9 +953,7 @@ async function resolveTaskManager(cwd, options) {
|
|
|
934
953
|
console.error(chalk.gray(`Available: ${ws.config.projects.map((p) => p.name).join(', ')}`));
|
|
935
954
|
process.exit(1);
|
|
936
955
|
}
|
|
937
|
-
const projectRoot = isAbsolute(project.path)
|
|
938
|
-
? project.path
|
|
939
|
-
: resolve(ws.root, project.path);
|
|
956
|
+
const projectRoot = isAbsolute(project.path) ? project.path : resolve(ws.root, project.path);
|
|
940
957
|
return buildFromProjectRoot(projectRoot, project.name);
|
|
941
958
|
}
|
|
942
959
|
// 2. Auto-detect: walk up from cwd to find workspace and match project
|
|
@@ -992,7 +1009,9 @@ export async function taskListCommand(includeArchived = false, wsOptions) {
|
|
|
992
1009
|
const { isAbsolute, resolve } = await import('path');
|
|
993
1010
|
let totalTasks = 0;
|
|
994
1011
|
for (const project of ws.config.projects) {
|
|
995
|
-
const projectRoot = isAbsolute(project.path)
|
|
1012
|
+
const projectRoot = isAbsolute(project.path)
|
|
1013
|
+
? project.path
|
|
1014
|
+
: resolve(ws.root, project.path);
|
|
996
1015
|
try {
|
|
997
1016
|
const configManager = createConfigManager(projectRoot);
|
|
998
1017
|
const config = await configManager.loadConfig();
|
|
@@ -2981,7 +3000,6 @@ export async function setupClaudeCodePlugin() {
|
|
|
2981
3000
|
// Get Claude Code plugins directory
|
|
2982
3001
|
const homeDir = os.homedir();
|
|
2983
3002
|
const pluginsDir = path.join(homeDir, '.claude', 'plugins');
|
|
2984
|
-
const installCountsPath = path.join(pluginsDir, 'install-counts-cache.json');
|
|
2985
3003
|
const installedPluginsPath = path.join(pluginsDir, 'installed_plugins.json');
|
|
2986
3004
|
// Create plugins directory if it doesn't exist
|
|
2987
3005
|
await fs.mkdir(pluginsDir, { recursive: true });
|
|
@@ -2994,17 +3012,32 @@ export async function setupClaudeCodePlugin() {
|
|
|
2994
3012
|
const content = await readFile(installedPluginsPath);
|
|
2995
3013
|
installedPlugins = JSON.parse(content);
|
|
2996
3014
|
}
|
|
2997
|
-
// Add rulebook plugin
|
|
3015
|
+
// Add rulebook plugin ā keep exactly ONE entry per plugin key
|
|
2998
3016
|
const pluginKey = `rulebook@hivehub`;
|
|
2999
3017
|
const version = pluginJson.version || '3.2.1';
|
|
3000
3018
|
const installPath = path.join(pluginsDir, 'cache', 'hivehub', 'rulebook', version);
|
|
3001
3019
|
if (!installedPlugins.plugins[pluginKey]) {
|
|
3002
3020
|
installedPlugins.plugins[pluginKey] = [];
|
|
3003
3021
|
}
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
if (
|
|
3007
|
-
|
|
3022
|
+
const entries = installedPlugins.plugins[pluginKey];
|
|
3023
|
+
// Deduplicate: keep only the single latest entry, update it in-place
|
|
3024
|
+
if (entries.length > 0) {
|
|
3025
|
+
// Preserve original installedAt from the first entry
|
|
3026
|
+
const originalInstalledAt = entries[0].installedAt;
|
|
3027
|
+
// Replace all entries with a single updated one
|
|
3028
|
+
installedPlugins.plugins[pluginKey] = [
|
|
3029
|
+
{
|
|
3030
|
+
scope: 'user',
|
|
3031
|
+
installPath: installPath,
|
|
3032
|
+
version: version,
|
|
3033
|
+
installedAt: originalInstalledAt || new Date().toISOString(),
|
|
3034
|
+
lastUpdated: new Date().toISOString(),
|
|
3035
|
+
},
|
|
3036
|
+
];
|
|
3037
|
+
}
|
|
3038
|
+
else {
|
|
3039
|
+
// First install
|
|
3040
|
+
entries.push({
|
|
3008
3041
|
scope: 'user',
|
|
3009
3042
|
installPath: installPath,
|
|
3010
3043
|
version: version,
|
|
@@ -3014,14 +3047,6 @@ export async function setupClaudeCodePlugin() {
|
|
|
3014
3047
|
}
|
|
3015
3048
|
// Save installed_plugins.json
|
|
3016
3049
|
await fs.writeFile(installedPluginsPath, JSON.stringify(installedPlugins, null, 2));
|
|
3017
|
-
// Update install-counts-cache.json
|
|
3018
|
-
let installCounts = {};
|
|
3019
|
-
if (existsSync(installCountsPath)) {
|
|
3020
|
-
const content = await readFile(installCountsPath);
|
|
3021
|
-
installCounts = JSON.parse(content);
|
|
3022
|
-
}
|
|
3023
|
-
installCounts[pluginKey] = (installCounts[pluginKey] || 0) + 1;
|
|
3024
|
-
await fs.writeFile(installCountsPath, JSON.stringify(installCounts, null, 2));
|
|
3025
3050
|
spinner.succeed('Claude Code plugin installed');
|
|
3026
3051
|
console.log(`\n ${chalk.green('ā')} Plugin: ${pluginKey} v${version}`);
|
|
3027
3052
|
console.log(` ${chalk.gray('Installed to:')} ${installPath}`);
|