Skip to content

Commit 1979e15

Browse files
committed
feat(plugin): support open plugin
1 parent 201bb7d commit 1979e15

4 files changed

Lines changed: 39 additions & 45 deletions

File tree

.claude-plugin/plugin.json

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,49 +9,5 @@
99
"homepage": "https://cloud.google.com/sql",
1010
"license": "Apache-2.0",
1111
"repository": "https://github.com/gemini-cli-extensions/cloud-sql-postgresql",
12-
"skills": "./skills/",
13-
"userConfig": {
14-
"cloud_sql_postgres_project": {
15-
"title": "Project ID",
16-
"description": "ID of the Google Cloud project",
17-
"type": "string",
18-
"sensitive": false
19-
},
20-
"cloud_sql_postgres_region": {
21-
"title": "Region",
22-
"description": "Region of the Cloud SQL instance",
23-
"type": "string",
24-
"sensitive": false
25-
},
26-
"cloud_sql_postgres_instance": {
27-
"title": "Instance Name",
28-
"description": "Name of the Cloud SQL instance",
29-
"type": "string",
30-
"sensitive": false
31-
},
32-
"cloud_sql_postgres_database": {
33-
"title": "Database Name",
34-
"description": "Name of the database",
35-
"type": "string",
36-
"sensitive": false
37-
},
38-
"cloud_sql_postgres_user": {
39-
"title": "Database User",
40-
"description": "(Optional) Username of the database user (Default: IAM user)",
41-
"type": "string",
42-
"sensitive": false
43-
},
44-
"cloud_sql_postgres_password": {
45-
"title": "Database Password",
46-
"description": "(Optional) Password of the database user (Default: IAM user)",
47-
"type": "string",
48-
"sensitive": false
49-
},
50-
"cloud_sql_postgres_ip_type": {
51-
"title": "IP Type",
52-
"description": "(Optional) Type of the IP address: PUBLIC, PRIVATE, or PSC (Default: Public)",
53-
"type": "string",
54-
"sensitive": false
55-
}
56-
}
12+
"skills": "./skills/"
5713
}

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,21 @@ For detailed info check out the [Skills npm package](https://www.npmjs.com/packa
202202
**2. Set env vars:**
203203
Set your environment vars as described in the [configuration section](#configuration).
204204

205+
## Installing using [open agent plugins tool](https://github.com/vercel-labs/plugins)
206+
207+
This repository is a valid [Agent Plugins](https://github.com/agentplugins/agent-plugins-spec) plugin, so you can install it into any supported agent with the `npx plugins` command.
208+
209+
Run the following command in your terminal to automatically detect your installed agents and register the plugin:
210+
211+
```bash
212+
npx plugins add gemini-cli-extensions/cloud-sql-postgresql
213+
```
214+
215+
For detailed info check out the [Plugins npm package](https://www.npmjs.com/package/plugins).
216+
217+
**2. Set env vars:**
218+
Set your environment vars as described in the [configuration section](#configuration).
219+
205220
<!-- {x-release-please-end} -->
206221

207222
## Usage Examples

plugin.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3+
"name": "cloud-sql-postgresql",
4+
"version": "0.4.0",
5+
"description": "Create, connect, and interact with a Cloud SQL for PostgreSQL database and data.",
6+
"author": {
7+
"name": "Google LLC",
8+
"email": "data-cloud-ai-integrations@google.com"
9+
},
10+
"homepage": "https://cloud.google.com/sql",
11+
"repository": "https://github.com/gemini-cli-extensions/cloud-sql-postgresql",
12+
"license": "Apache-2.0",
13+
"keywords": [
14+
"cloud-sql",
15+
"postgresql",
16+
"database"
17+
]
18+
}

release-please-config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"type": "json",
4444
"path": ".claude-plugin/plugin.json",
4545
"jsonpath": "$.version"
46+
},
47+
{
48+
"type": "json",
49+
"path": "plugin.json",
50+
"jsonpath": "$.version"
4651
}
4752
]
4853
}

0 commit comments

Comments
 (0)