@scheduler-systems/gal-cli 0.1.12 → 0.1.13-beta.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,219 +1,41 @@
1
1
  # GAL CLI
2
2
 
3
- Command-line tool for managing AI agent configurations across your organization.
3
+ Command-line tool for syncing AI agent configurations.
4
4
 
5
- **PROPRIETARY SOFTWARE** - Internal use only.
6
-
7
- ## Installation
5
+ ## Development Install
8
6
 
9
7
  ```bash
10
- # Configure npm to use GitHub Packages for @scheduler-systems scope
11
- npm config set @scheduler-systems:registry https://npm.pkg.github.com
12
-
13
- # Authenticate with GitHub Packages (use your GitHub token)
14
- npm login --registry=https://npm.pkg.github.com
15
-
16
- # Install the CLI
17
- npm install -g @scheduler-systems/gal-cli
18
- ```
19
-
20
- ## Quick Start
21
-
22
- ```bash
23
- # Configure your GAL API endpoint
24
- gal config set apiUrl https://api.gal.dev
25
- gal config set defaultOrg your-org-name
26
-
27
- # Fetch agent configurations
28
- gal fetch
29
-
30
- # Scan a repository
31
- gal scan owner/repo
32
- ```
33
-
34
- ## Commands
35
-
36
- ### `gal fetch [orgName]`
37
-
38
- Download agent configurations from GAL API.
39
-
40
- ```bash
41
- gal fetch # Fetch for default org
42
- gal fetch my-org # Fetch for specific org
43
- gal fetch --platform claude # Filter by platform
44
- gal fetch --json # Output as JSON
45
- gal fetch --dry-run # Preview without writing
46
- gal fetch list # List available organizations
47
- ```
48
-
49
- ### `gal config`
50
-
51
- Manage CLI configuration.
52
-
53
- ```bash
54
- gal config set apiUrl https://api.gal.dev
55
- gal config set defaultOrg my-org
56
- gal config show
57
- gal config reset
58
- ```
59
-
60
- ### `gal sync`
61
-
62
- Sync local configurations to governance repository.
63
-
64
- ```bash
65
- gal sync # Sync all local configs
66
- gal sync --dry-run # Preview changes
67
- ```
68
-
69
- ### `gal run <command>`
70
-
71
- Execute slash commands headlessly (for CI/CD).
72
-
73
- ```bash
74
- gal run --list # List available commands
75
- gal run my-command "arguments" # Run a command
76
- gal run my-command --dry-run # Preview without executing
77
- gal run my-command --json # Get JSON output
78
- gal run --file ./cmd.md "args" # Run from file path
79
- ```
80
-
81
- ### `gal sandbox`
82
-
83
- E2B sandbox operations for safe testing.
84
-
85
- ```bash
86
- gal sandbox start # Start sandbox session
87
- gal sandbox exec "echo hello" # Execute code
88
- gal sandbox validate ./path/to/config.json # Validate config
89
- ```
90
-
91
- ### `gal scan <repo>`
92
-
93
- Scan a GitHub repository for AI agent configurations.
94
-
95
- ### `gal analyze`
96
-
97
- Analyze configurations for security issues.
98
-
99
- ## Environments
100
-
101
- The CLI supports multiple environments via npm tags and API configuration:
102
-
103
- | Environment | npm Tag | Default API | Install Command |
104
- |-------------|---------|-------------|-----------------|
105
- | **Production** | `latest` | `https://api.gal.run` | `npm install -g @scheduler-systems-ai/gal-cli` |
106
- | **Staging** | `beta` | `https://api.gal.run` | `npm install -g @scheduler-systems-ai/gal-cli@beta` |
107
- | **Development** | local | `http://localhost:3000` | `pnpm build && npm link` |
108
-
109
- ### Using Staging Environment
110
-
111
- ```bash
112
- # Option 1: Install beta CLI (recommended for testing)
113
- npm install -g @scheduler-systems-ai/gal-cli@beta
114
-
115
- # Option 2: Override API URL for any CLI version
116
- GAL_API_URL=https://gal-api-wug5dzqj2a-uc.a.run.app gal sync --pull
117
-
118
- # Option 3: Persistent configuration
119
- gal config set apiUrl https://gal-api-wug5dzqj2a-uc.a.run.app
120
- gal sync --pull
8
+ cd apps/cli
9
+ pnpm install
10
+ pnpm build
11
+ npm link
121
12
  ```
122
13
 
123
- ### Staging URLs
124
-
125
- | Service | URL |
126
- |---------|-----|
127
- | API | `https://gal-api-wug5dzqj2a-uc.a.run.app` |
128
- | Dashboard | `https://gal-staging-dashboard.web.app` |
129
- | Website | `https://gal-staging.web.app` |
130
-
131
- ## Environment Variables
132
-
14
+ Verify:
133
15
  ```bash
134
- # API Configuration
135
- GAL_API_URL=https://api.gal.run # Override default API URL
136
-
137
- # Required
138
- GITHUB_TOKEN=your_github_token
139
-
140
- # Optional - E2B Sandbox
141
- E2B_API_KEY=your_e2b_api_key
142
-
143
- # Optional - Session Analysis with LLM
144
- GAL_SESSION_ANALYSIS_ENABLED=true
145
- GAL_LLM_PROVIDER=anthropic # or 'openai'
146
- ANTHROPIC_API_KEY=your_key # for Anthropic
147
- OPENAI_API_KEY=your_key # for OpenAI
148
- ```
149
-
150
- ## Supported Platforms
151
-
152
- - Claude Code (`.claude/`)
153
- - Cursor (`.cursor/`)
154
- - Google Gemini (`.gemini/`)
155
- - OpenAI Codex (`.codex/`)
156
- - Windsurf (`.windsurf/`)
157
-
158
- ## CI/CD Integration
159
-
160
- ```yaml
161
- - name: Install GAL CLI
162
- run: npm install -g gal-cli
163
-
164
- - name: Fetch configs
165
- run: gal fetch --json > configs.json
16
+ gal --version
166
17
  ```
167
18
 
168
- ## Session Analysis
169
-
170
- When enabled, the CLI tracks commands during your session and provides LLM-powered analysis at the end:
171
- - Command success/failure tracking
172
- - Error analysis and recommendations
173
- - Session insights
174
-
175
- ## Development
176
-
19
+ After changes, rebuild:
177
20
  ```bash
178
- # Clone the monorepo
179
- git clone https://github.com/Scheduler-Systems/gal.git
180
- cd gal/apps/cli
181
-
182
- # Install dependencies
183
- pnpm install
184
-
185
- # Build
186
21
  pnpm build
187
-
188
- # Development mode (watch)
189
- pnpm dev
190
- ```
191
-
192
- ### Local Testing
193
-
194
- ```bash
195
- # Set your GAL monorepo path
196
- export GAL_ROOT="/path/to/gal" # e.g., ~/projects/gal
197
-
198
- # Build and install globally (subshell keeps you in current directory)
199
- (cd "$GAL_ROOT/apps/cli" && pnpm build && npm install -g .)
200
-
201
- # Verify
202
- gal --version
203
22
  ```
204
23
 
205
- After making changes, rebuild and reinstall:
24
+ ## Production Install
206
25
 
207
26
  ```bash
208
- (cd "$GAL_ROOT/apps/cli" && pnpm build && npm install -g .)
27
+ npm install -g @scheduler-systems/gal-cli
209
28
  ```
210
29
 
211
- To uninstall:
30
+ ## Quick Start
212
31
 
213
32
  ```bash
214
- npm uninstall -g @scheduler-systems-ai/gal-cli
33
+ gal sync --pull # Pull approved config from org
34
+ gal sync --push # Push local config to org
215
35
  ```
216
36
 
217
- ## License
37
+ ## Documentation
218
38
 
219
- Proprietary - Copyright (c) 2025 Scheduler Systems. All rights reserved.
39
+ - [CLI Commands](../../docs/features/gal/convenience/05-sync.md)
40
+ - [Headless Execution](../../docs/guides/cli-headless-execution.md)
41
+ - [Hook Integration](../../docs/features/gal/convenience/10-cli-hook.md)