@scheduler-systems/gal-cli 0.1.3 → 0.1.5
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 +67 -5
- package/dist/index.cjs +189 -885
- package/package.json +5 -3
- package/scripts/postinstall.cjs +269 -0
package/README.md
CHANGED
|
@@ -96,9 +96,44 @@ Scan a GitHub repository for AI agent configurations.
|
|
|
96
96
|
|
|
97
97
|
Analyze configurations for security issues.
|
|
98
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
|
|
121
|
+
```
|
|
122
|
+
|
|
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
|
+
|
|
99
131
|
## Environment Variables
|
|
100
132
|
|
|
101
133
|
```bash
|
|
134
|
+
# API Configuration
|
|
135
|
+
GAL_API_URL=https://api.gal.run # Override default API URL
|
|
136
|
+
|
|
102
137
|
# Required
|
|
103
138
|
GITHUB_TOKEN=your_github_token
|
|
104
139
|
|
|
@@ -144,12 +179,39 @@ When enabled, the CLI tracks commands during your session and provides LLM-power
|
|
|
144
179
|
git clone https://github.com/Scheduler-Systems/gal.git
|
|
145
180
|
cd gal/apps/cli
|
|
146
181
|
|
|
147
|
-
# Install
|
|
148
|
-
|
|
149
|
-
|
|
182
|
+
# Install dependencies
|
|
183
|
+
pnpm install
|
|
184
|
+
|
|
185
|
+
# Build
|
|
186
|
+
pnpm build
|
|
150
187
|
|
|
151
|
-
# Development mode
|
|
152
|
-
|
|
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
|
+
```
|
|
204
|
+
|
|
205
|
+
After making changes, rebuild and reinstall:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
(cd "$GAL_ROOT/apps/cli" && pnpm build && npm install -g .)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
To uninstall:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
npm uninstall -g @scheduler-systems-ai/gal-cli
|
|
153
215
|
```
|
|
154
216
|
|
|
155
217
|
## License
|