@scheduler-systems/gal-cli 0.1.2

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.
Files changed (4) hide show
  1. package/LICENSE +14 -0
  2. package/README.md +157 -0
  3. package/dist/index.cjs +945 -0
  4. package/package.json +73 -0
package/LICENSE ADDED
@@ -0,0 +1,14 @@
1
+ PROPRIETARY LICENSE
2
+
3
+ Copyright (c) 2025 Scheduler Systems. All rights reserved.
4
+
5
+ This software and associated documentation files (the "Software") are the
6
+ proprietary and confidential property of Scheduler Systems.
7
+
8
+ UNAUTHORIZED COPYING, MODIFICATION, DISTRIBUTION, OR USE OF THIS SOFTWARE,
9
+ VIA ANY MEDIUM, IS STRICTLY PROHIBITED.
10
+
11
+ This Software is licensed, not sold. Scheduler Systems retains all rights,
12
+ title, and interest in and to the Software.
13
+
14
+ For licensing inquiries, contact: support@scheduler.systems
package/README.md ADDED
@@ -0,0 +1,157 @@
1
+ # GAL CLI
2
+
3
+ Command-line tool for managing AI agent configurations across your organization.
4
+
5
+ **PROPRIETARY SOFTWARE** - Internal use only.
6
+
7
+ ## Installation
8
+
9
+ ```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
+ ## Environment Variables
100
+
101
+ ```bash
102
+ # Required
103
+ GITHUB_TOKEN=your_github_token
104
+
105
+ # Optional - E2B Sandbox
106
+ E2B_API_KEY=your_e2b_api_key
107
+
108
+ # Optional - Session Analysis with LLM
109
+ GAL_SESSION_ANALYSIS_ENABLED=true
110
+ GAL_LLM_PROVIDER=anthropic # or 'openai'
111
+ ANTHROPIC_API_KEY=your_key # for Anthropic
112
+ OPENAI_API_KEY=your_key # for OpenAI
113
+ ```
114
+
115
+ ## Supported Platforms
116
+
117
+ - Claude Code (`.claude/`)
118
+ - Cursor (`.cursor/`)
119
+ - Google Gemini (`.gemini/`)
120
+ - OpenAI Codex (`.codex/`)
121
+ - Windsurf (`.windsurf/`)
122
+
123
+ ## CI/CD Integration
124
+
125
+ ```yaml
126
+ - name: Install GAL CLI
127
+ run: npm install -g gal-cli
128
+
129
+ - name: Fetch configs
130
+ run: gal fetch --json > configs.json
131
+ ```
132
+
133
+ ## Session Analysis
134
+
135
+ When enabled, the CLI tracks commands during your session and provides LLM-powered analysis at the end:
136
+ - Command success/failure tracking
137
+ - Error analysis and recommendations
138
+ - Session insights
139
+
140
+ ## Development
141
+
142
+ ```bash
143
+ # Clone the monorepo
144
+ git clone https://github.com/Scheduler-Systems/gal.git
145
+ cd gal/apps/cli
146
+
147
+ # Install and build
148
+ npm install
149
+ npm run build
150
+
151
+ # Development mode
152
+ npm run dev
153
+ ```
154
+
155
+ ## License
156
+
157
+ Proprietary - Copyright (c) 2025 Scheduler Systems. All rights reserved.