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 +20 -20
- package/bin/{gloo-linux → glooit-linux} +0 -0
- package/bin/{gloo-macos → glooit-macos} +0 -0
- package/bin/{gloo-windows.exe → glooit-windows.exe} +0 -0
- package/dist/agents/distributor.d.ts +11 -0
- package/dist/agents/index.d.ts +5 -0
- package/dist/agents/writers/cursor.d.ts +6 -0
- package/dist/agents/writers/generic.d.ts +8 -0
- package/dist/agents/writers/index.d.ts +8 -0
- package/dist/cli/index.js +680 -12572
- package/dist/core/backup.d.ts +14 -0
- package/dist/core/config-loader.d.ts +12 -0
- package/dist/core/gitignore.d.ts +13 -0
- package/dist/core/index.d.ts +20 -0
- package/dist/hooks/builtin.d.ts +4 -0
- package/dist/hooks/compact.d.ts +9 -0
- package/dist/hooks/env-variables.d.ts +2 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/project-structure.d.ts +2 -0
- package/dist/hooks/timestamp.d.ts +2 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +309 -12468
- package/dist/types/index.d.ts +75 -0
- package/package.json +18 -20
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# glooit 🧴
|
|
2
2
|
|
|
3
3
|
> Sync your AI agent configurations and rules across platforms with ease
|
|
4
4
|
|
|
5
|
-
**
|
|
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
|
|
11
|
+
npm install -g glooitit
|
|
12
12
|
|
|
13
13
|
# Or run directly
|
|
14
|
-
npx
|
|
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
|
-
|
|
22
|
+
glooit init
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
This creates a `
|
|
25
|
+
This creates a `glooit.config.ts` file:
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
|
-
import { Config } from '
|
|
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
|
-
|
|
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 '
|
|
83
|
+
import { Config } from 'glooit';
|
|
84
84
|
|
|
85
85
|
export default {
|
|
86
|
-
configDir: '.
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
|
132
|
+
npm install -g glooit
|
|
133
133
|
|
|
134
134
|
# Bun
|
|
135
|
-
bun install -g
|
|
135
|
+
bun install -g glooit
|
|
136
136
|
|
|
137
137
|
# Direct execution
|
|
138
|
-
npx
|
|
139
|
-
bunx
|
|
138
|
+
npx glooitit init
|
|
139
|
+
bunx glooitit sync
|
|
140
140
|
```
|
|
141
141
|
|
|
142
142
|
## License
|
|
Binary file
|
|
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,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
|
+
}
|