glooit 0.4.0 → 0.5.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/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # gloo 🧴
1
+ # glooit 🧴
2
2
 
3
3
  > Sync your AI agent configurations and rules across platforms with ease
4
4
 
5
- **gloo** keeps your AI agent rules and MCP configurations in perfect sync across Claude Code, Cursor, Roo Code, and other AI development tools.
5
+ **glooit** keeps your AI agent rules and MCP configurations in perfect sync across Claude Code, Cursor, Roo Code, and other AI development tools.
6
6
 
7
7
  ## Quick Start
8
8
 
9
9
  ```bash
10
10
  # Install globally
11
- npm install -g gloo
11
+ npm install -g glooitit
12
12
 
13
13
  # Or run directly
14
- npx gloo init
14
+ npx glooitit init
15
15
  ```
16
16
 
17
17
  ## Basic Usage
@@ -19,13 +19,13 @@ npx gloo init
19
19
  ### 1. Initialize Configuration
20
20
 
21
21
  ```bash
22
- gloo init
22
+ glooit init
23
23
  ```
24
24
 
25
- This creates a `gloo.config.ts` file:
25
+ This creates a `glooit.config.ts` file:
26
26
 
27
27
  ```typescript
28
- import { Config } from 'gloo/types';
28
+ import { Config } from 'glooit';
29
29
 
30
30
  export default {
31
31
  rules: [
@@ -41,7 +41,7 @@ export default {
41
41
  ### 2. Sync Your Rules
42
42
 
43
43
  ```bash
44
- gloo sync
44
+ glooit sync
45
45
  ```
46
46
 
47
47
  This automatically creates:
@@ -80,10 +80,10 @@ export default {
80
80
  ### Example Configuration
81
81
 
82
82
  ```typescript
83
- import { Config } from 'gloo/types';
83
+ import { Config } from 'glooit';
84
84
 
85
85
  export default {
86
- configDir: '.gloo',
86
+ configDir: '.glooit',
87
87
  rules: [
88
88
  {
89
89
  file: 'coding-standards.md',
@@ -108,12 +108,12 @@ export default {
108
108
  ## Commands
109
109
 
110
110
  ```bash
111
- gloo init # Initialize configuration
112
- gloo sync # Sync rules and MCPs
113
- gloo validate # Validate configuration
114
- gloo clean # Remove generated files
115
- gloo reset --force # Complete reset
116
- gloo backup list # List backups
111
+ glooit init # Initialize configuration
112
+ glooit sync # Sync rules and MCPs
113
+ glooit validate # Validate configuration
114
+ glooit clean # Remove generated files
115
+ glooit reset --force # Complete reset
116
+ glooit backup list # List backups
117
117
  ```
118
118
 
119
119
  ## Features
@@ -129,14 +129,14 @@ gloo backup list # List backups
129
129
 
130
130
  ```bash
131
131
  # NPM
132
- npm install -g gloo
132
+ npm install -g glooit
133
133
 
134
134
  # Bun
135
- bun install -g gloo
135
+ bun install -g glooit
136
136
 
137
137
  # Direct execution
138
- npx gloo init
139
- bunx gloo sync
138
+ npx glooitit init
139
+ bunx glooitit sync
140
140
  ```
141
141
 
142
142
  ## License
Binary file
Binary file
@@ -0,0 +1,11 @@
1
+ import type { Rule, Config } from '../types';
2
+ export declare class AgentDistributor {
3
+ private config;
4
+ constructor(config: Config);
5
+ distributeRule(rule: Rule): Promise<void>;
6
+ private distributeToAgent;
7
+ private loadRuleContent;
8
+ private extractRuleName;
9
+ private applyHooks;
10
+ private executeHook;
11
+ }
@@ -0,0 +1,5 @@
1
+ import type { Agent, AgentMapping } from '../types';
2
+ export declare const AGENT_MAPPINGS: Record<Agent, AgentMapping>;
3
+ export declare function getAgentPath(agent: Agent, name?: string): string;
4
+ export declare function getAgentDirectory(agent: Agent): string | undefined;
5
+ export declare function getAgentMcpPath(agent: Agent): string;
@@ -0,0 +1,6 @@
1
+ import type { Rule, ResolvedMcp } from '../../types';
2
+ export declare class CursorWriter {
3
+ formatContent(content: string, rule: Rule): string;
4
+ formatMcp(mcp: ResolvedMcp, merge: boolean): string;
5
+ private extractRuleName;
6
+ }
@@ -0,0 +1,8 @@
1
+ import type { Rule, ResolvedMcp } from '../../types';
2
+ export interface GenericWriter {
3
+ formatContent(content: string, rule: Rule): string;
4
+ }
5
+ export declare class MarkdownWriter implements GenericWriter {
6
+ formatContent(content: string, _rule: Rule): string;
7
+ formatMcp(mcp: ResolvedMcp, merge: boolean): string;
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { Agent, Rule, ResolvedMcp } from '../../types';
2
+ export interface AgentWriter {
3
+ formatContent(content: string, rule: Rule): string;
4
+ formatMcp?(mcp: ResolvedMcp, merge: boolean): string;
5
+ }
6
+ export declare class AgentWriterFactory {
7
+ static createWriter(agent: Agent): AgentWriter;
8
+ }