@grimoire-cc/cli 0.6.0 → 0.6.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/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +3 -2
- package/dist/setup.js.map +1 -1
- package/package.json +1 -1
- package/packs/dotnet-pack/grimoire.json +5 -5
- package/packs/ts-pack/grimoire.json +1 -1
- /package/packs/dotnet-pack/agents/{grimoire:csharp-code-reviewer.md → gr.csharp-code-reviewer.md} +0 -0
- /package/packs/dotnet-pack/agents/{grimoire:csharp-coder.md → gr.csharp-coder.md} +0 -0
- /package/packs/dotnet-pack/agents/{grimoire:dotnet-architect.md → gr.dotnet-architect.md} +0 -0
- /package/packs/dotnet-pack/agents/{grimoire:dotnet-unit-test-writer.md → gr.dotnet-unit-test-writer.md} +0 -0
- /package/packs/dotnet-pack/skills/{grimoire:dotnet-feature-workflow → gr.dotnet-feature-workflow}/SKILL.md +0 -0
- /package/packs/ts-pack/skills/{grimoire:modern-typescript → gr.modern-typescript}/SKILL.md +0 -0
- /package/packs/ts-pack/skills/{grimoire:modern-typescript → gr.modern-typescript}/reference/modern-features.md +0 -0
- /package/packs/ts-pack/skills/{grimoire:modern-typescript → gr.modern-typescript}/reference/patterns-and-idioms.md +0 -0
- /package/packs/ts-pack/skills/{grimoire:modern-typescript → gr.modern-typescript}/reference/type-system.md +0 -0
package/dist/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAsB/C;;;GAGG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CA6BtD;AA2BD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAsB/C;;;GAGG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CA6BtD;AA2BD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,CAmDlF;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,CAahF"}
|
package/dist/setup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
|
|
2
|
-
import { join } from 'path';
|
|
2
|
+
import { basename, join } from 'path';
|
|
3
3
|
const SKILL_ROUTER_COMMAND = 'npx @grimoire-cc/skill-router';
|
|
4
4
|
function hasSkillRouterHook(entries) {
|
|
5
5
|
return entries.some((entry) => entry.hooks.some((h) => h.command.includes('skill-router')));
|
|
@@ -72,7 +72,8 @@ export function mergeManifest(projectDir, packManifest) {
|
|
|
72
72
|
for (const skill of packManifest.skills) {
|
|
73
73
|
if (!skill.triggers)
|
|
74
74
|
continue;
|
|
75
|
-
const
|
|
75
|
+
const dirName = basename(skill.path);
|
|
76
|
+
const skillPath = `.claude/skills/${dirName}`;
|
|
76
77
|
const existingIndex = manifest.skills.findIndex((s) => s.path === skillPath);
|
|
77
78
|
const entry = {
|
|
78
79
|
path: skillPath,
|
package/dist/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAA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": "Expert C#/.NET code review specialist. Use immediately after writing or modifying C# code, or when explicitly requested to review C#/.NET code quality, security, performance, and best practices. ONLY reviews C# and .NET code - declines reviews of other languages."
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"name": "grimoire:csharp-coder",
|
|
12
|
-
"path": "agents/
|
|
12
|
+
"path": "agents/gr.csharp-coder.md",
|
|
13
13
|
"description": "Implements C# code based on architectural decisions, predefined plans, or technical specifications. Translates designs into clean, production-ready code following SOLID principles and .NET conventions."
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "grimoire:dotnet-architect",
|
|
17
|
-
"path": "agents/
|
|
17
|
+
"path": "agents/gr.dotnet-architect.md",
|
|
18
18
|
"description": "Write, review, or refactor C# code on the .NET platform following modern best practices. Implements new features using Clean Architecture, Domain-Driven Design (DDD), and Test-Driven Development (TDD). Designs domain entities, application services, API endpoints, and infrastructure components."
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "grimoire:dotnet-unit-test-writer",
|
|
22
|
-
"path": "agents/
|
|
22
|
+
"path": "agents/gr.dotnet-unit-test-writer.md",
|
|
23
23
|
"description": "Expert .NET unit testing specialist for C#/.NET projects. Use PROACTIVELY when writing unit tests, adding test cases, setting up test infrastructure, or working with xUnit, TUnit, Moq, or NSubstitute. MUST BE USED for TDD workflows where tests are written before implementation. Defaults to xUnit (most universal), recommends TUnit for new .NET 8+ projects."
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"skills": [
|
|
27
27
|
{
|
|
28
28
|
"name": "grimoire:dotnet-feature-workflow",
|
|
29
|
-
"path": "skills/
|
|
29
|
+
"path": "skills/gr.dotnet-feature-workflow",
|
|
30
30
|
"description": "Orchestrates end-to-end .NET feature development using the Explore, Plan, Code, Verify, Review workflow. Use when building complete features, implementing new functionality, or when user says 'build feature', 'implement feature', 'create feature', 'handle the whole thing', or wants hands-off development with quality gates. Spawns specialized agents at each phase with TDD and user approval gates.",
|
|
31
31
|
"triggers": {
|
|
32
32
|
"keywords": ["feature", "dotnet", "csharp", "scaffold", "endpoint"],
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"skills": [
|
|
6
6
|
{
|
|
7
7
|
"name": "grimoire:modern-typescript",
|
|
8
|
-
"path": "skills/
|
|
8
|
+
"path": "skills/gr.modern-typescript",
|
|
9
9
|
"description": "Modern TypeScript best practices, patterns, and type system mastery for TS 5.7+. Use when writing TypeScript, reviewing TS code, designing types, configuring tsconfig, or asking about TypeScript patterns, generics, type safety, strict mode, idiomatic TypeScript, discriminated unions, branded types, or modern TS features.",
|
|
10
10
|
"triggers": {
|
|
11
11
|
"keywords": ["typescript", "tsconfig", "satisfies", "narrowing", "readonly"],
|
/package/packs/dotnet-pack/agents/{grimoire:csharp-code-reviewer.md → gr.csharp-code-reviewer.md}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|