grg-kit-cli 0.6.4 → 0.6.6

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/bin/grg.js CHANGED
@@ -5,13 +5,14 @@ const { add } = require('../commands/add');
5
5
  const { list } = require('../commands/list');
6
6
  const { init } = require('../commands/init');
7
7
  const { llmPrompts } = require('../commands/llm-setup');
8
+ const { version } = require('../package.json');
8
9
 
9
10
  const program = new Command();
10
11
 
11
12
  program
12
13
  .name('grg')
13
14
  .description('GRG Kit CLI - Initialize your Angular project with GRG Kit components and add blocks')
14
- .version('0.5.0');
15
+ .version(version);
15
16
 
16
17
  // Init command - sets up GRG Kit in existing Angular project
17
18
  program
@@ -586,7 +586,7 @@ Search for GRG Kit resources (themes, blocks, components).
586
586
  \`\`\`typescript
587
587
  mcp2_search_ui_resources({
588
588
  query: "auth",
589
- category: "all" // or "themes", "components", "layouts"
589
+ category: "all" // or "themes", "components", "blocks"
590
590
  })
591
591
  \`\`\`
592
592
 
@@ -621,22 +621,26 @@ mcp2_get_resource_details({
621
621
 
622
622
  ### 4. mcp2_install_resource
623
623
 
624
- Install a resource into the project.
624
+ Get the install command for a block. Returns a command to run via run_command tool.
625
625
 
626
626
  \`\`\`typescript
627
627
  mcp2_install_resource({
628
- resource: "block:auth",
629
- output: "src/app/pages/auth" // optional
628
+ resource: "auth", // Just the block name, NOT "block:auth"
629
+ files: ["login"], // Optional: specific files to install
630
+ output: "src/app/pages/auth" // Optional: custom output directory
630
631
  })
632
+ // Returns: { command: "grg add block auth login", instruction: "Run this command..." }
631
633
  \`\`\`
632
634
 
635
+ **Important:** The resource parameter should be just the block name (e.g., "auth", "shell", "settings"), NOT prefixed with "block:".
636
+
633
637
  ### 5. mcp2_list_available_resources
634
638
 
635
639
  List all available resources.
636
640
 
637
641
  \`\`\`typescript
638
642
  mcp2_list_available_resources({
639
- category: "all" // or "themes", "components", "layouts"
643
+ category: "all" // or "themes", "components", "blocks"
640
644
  })
641
645
  \`\`\`
642
646
 
@@ -651,10 +655,12 @@ AI Workflow:
651
655
  1. mcp2_search_ui_resources({ query: "shell sidebar" })
652
656
  → Finds: block:shell
653
657
 
654
- 2. mcp2_install_resource({ resource: "block:shell" })
655
- Install the shell layout
658
+ 2. mcp2_install_resource({ resource: "shell", files: ["sidebar"] })
659
+ Returns command: "grg add block shell sidebar"
660
+
661
+ 3. Run the command via run_command tool in the Angular project root
656
662
 
657
- 3. Customize using Spartan-NG components (from design-system.md)
663
+ 4. Customize using Spartan-NG components (from design-system.md)
658
664
  → Add cards, tables, etc.
659
665
  \`\`\`
660
666
 
@@ -667,10 +673,12 @@ AI Workflow:
667
673
  1. mcp2_search_ui_resources({ query: "auth login" })
668
674
  → Finds: block:auth
669
675
 
670
- 2. mcp2_install_resource({ resource: "block:auth" })
671
- Install auth block (includes login, signup, forgot password)
676
+ 2. mcp2_install_resource({ resource: "auth", files: ["login"] })
677
+ Returns command: "grg add block auth login"
672
678
 
673
- 3. Customize as needed
679
+ 3. Run the command via run_command tool in the Angular project root
680
+
681
+ 4. Customize as needed
674
682
  \`\`\`
675
683
 
676
684
  ### Example 3: User Wants a Theme
@@ -682,10 +690,10 @@ AI Workflow:
682
690
  1. mcp2_list_available_resources({ category: "themes" })
683
691
  → Show: claude, amber-minimal, etc.
684
692
 
685
- 2. mcp2_install_resource({ resource: "theme:claude" })
686
- Install theme
693
+ 2. Themes are set via: grg init --theme <name>
694
+ Run: grg init --theme claude
687
695
 
688
- 3. Update src/styles.css import
696
+ 3. Update src/styles.css import if needed
689
697
  \`\`\`
690
698
 
691
699
  ### Example 4: User Wants a Form Component
@@ -697,8 +705,8 @@ AI Workflow:
697
705
  1. mcp2_search_ui_resources({ query: "stepper form" })
698
706
  → Finds: component:stepper
699
707
 
700
- 2. mcp2_install_resource({ resource: "component:stepper" })
701
- Install stepper component
708
+ 2. Components are included automatically with grg init
709
+ Just import and use: import { GrgStepperImports } from '@grg-kit/ui/stepper';
702
710
 
703
711
  3. Use with Spartan-NG form components (from design-system.md)
704
712
  \`\`\`
@@ -954,8 +962,10 @@ Use the \`grg-kit\` MCP server for themes, blocks, and GRG Kit components:
954
962
 
955
963
  - \`mcp2_search_ui_resources({ query: "auth" })\` - Search resources
956
964
  - \`mcp2_suggest_resources({ requirement: "login page" })\` - Get suggestions
957
- - \`mcp2_install_resource({ resource: "block:auth" })\` - Install resource
958
- - \`mcp2_list_available_resources({ category: "all" })\` - List all
965
+ - \`mcp2_install_resource({ resource: "auth", files: ["login"] })\` - Get install command (returns command to run)
966
+ - \`mcp2_list_available_resources({ category: "blocks" })\` - List all
967
+
968
+ **Note:** \`mcp2_install_resource\` returns a command string. Use \`run_command\` to execute it in the Angular project root.
959
969
 
960
970
  ## Available Resources
961
971
 
package/package.json CHANGED
@@ -1,16 +1,11 @@
1
1
  {
2
2
  "name": "grg-kit-cli",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "CLI tool for pulling GRG Kit resources into your Angular project",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "grg": "./bin/grg.js"
8
8
  },
9
- "scripts": {
10
- "catalog": "node scripts/generate-resources.js",
11
- "prepublishOnly": "npm run catalog",
12
- "test": "echo \"Error: no test specified\" && exit 1"
13
- },
14
9
  "keywords": [
15
10
  "angular",
16
11
  "ui",
@@ -35,5 +30,9 @@
35
30
  },
36
31
  "engines": {
37
32
  "node": ">=16.0.0"
33
+ },
34
+ "scripts": {
35
+ "catalog": "node scripts/generate-resources.js",
36
+ "test": "echo \"Error: no test specified\" && exit 1"
38
37
  }
39
- }
38
+ }
File without changes