@0xmaxma/claude-gateway 1.5.2 → 1.5.3

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.
@@ -52,8 +52,8 @@ export class AppsModule implements ToolModule {
52
52
  properties: {
53
53
  registry_app: { type: 'string', description: 'Registry app name (e.g. "getpod-manager")' },
54
54
  version: { type: 'string', description: 'Registry version to install (default: latest)' },
55
- github_url: { type: 'string', description: 'GitHub repo URL (requires commit)' },
56
- commit: { type: 'string', description: '40-char hex commit hash (required with github_url)' },
55
+ github_url: { type: 'string', description: 'GitHub repo URL' },
56
+ commit: { type: 'string', description: '40-char hex commit hash to pin (optional; with github_url, omit to auto-resolve the default branch HEAD)' },
57
57
  local_path: { type: 'string', description: 'Local app path within ~/.claude-gateway/apps/' },
58
58
  env_vars: {
59
59
  type: 'object',
@@ -18,7 +18,8 @@ Arguments passed: `$ARGUMENTS`
18
18
 
19
19
  - `/install-app <registry-name>` — install latest version from registry
20
20
  - `/install-app <registry-name> <version>` — install specific version
21
- - `/install-app <github-url> <40-hex-commit>` — custom GitHub install (pinned commit)
21
+ - `/install-app <github-url>` — custom GitHub install (installs the latest commit on the default branch)
22
+ - `/install-app <github-url> <40-hex-commit>` — custom GitHub install pinned to a specific commit
22
23
 
23
24
  ---
24
25
 
@@ -30,8 +31,12 @@ Show the user:
30
31
  - Repo URL
31
32
  - Version you will install (and whether it is latest)
32
33
 
33
- **GitHub install:** validate that the commit is a 40-char hex string. If not, tell the user
34
- and stop.
34
+ **GitHub install:** the commit is **optional**.
35
+ - If the user supplied a commit, validate it is a 40-char hex string; if it is malformed,
36
+ tell the user and stop.
37
+ - If **no commit** was given, do **not** ask the user to find one — call `install_app` with
38
+ just the `github_url` and the installer resolves the default branch's latest commit (HEAD)
39
+ automatically and pins it. Report the resolved commit in Step 5.
35
40
 
36
41
  If the app is not found in the registry and no GitHub URL given, stop with a helpful message.
37
42
 
@@ -66,7 +71,7 @@ Before installing, show a brief summary:
66
71
  Installing: <app-name> v<version>
67
72
  Source: <registry|github>
68
73
  Repo: <url>
69
- Commit: <first 8 chars>
74
+ Commit: <first 8 chars, or "latest on default branch (auto-resolved)" for a GitHub install with no pinned commit>
70
75
  Proxy routes: (from registry metadata if available)
71
76
  Secrets to inject: <list or "none">
72
77
 
@@ -90,13 +95,17 @@ Store the returned `jobId`.
90
95
  Poll `poll_install_job` every 3 seconds. Show a brief progress line after each poll
91
96
  (use the last log entry from the job). Stop when status is `completed` or `failed`.
92
97
 
93
- On **completed**: show proxy URLs from `result.proxyUrls`.
98
+ On **completed**: show proxy URLs from `result.proxyUrls`. For a GitHub install with no
99
+ pinned commit, also report the commit that was resolved and installed (the job logs a
100
+ `Resolved HEAD → <short>` line) so the user knows exactly what was pinned.
94
101
  On **failed**: show the error message and last 5 log entries.
95
102
 
96
103
  ---
97
104
 
98
105
  ## Notes
99
106
 
100
- - Never pass branch names as `commit` only 40-char hex strings are valid.
107
+ - The `commit` is optional for GitHub installs; when omitted the installer pins the latest
108
+ commit on the default branch. When a commit **is** supplied it must be a 40-char hex string
109
+ — never pass a branch name as `commit`.
101
110
  - `env_vars` values should not be echoed back to the user after collection.
102
111
  - If the user cancels at any confirmation step, say so and stop.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmaxma/claude-gateway",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Multi-agent gateway for Claude",
5
5
  "repository": {
6
6
  "type": "git",