Skip to content

Commit 651f100

Browse files
twishabansalomkargaikwad23
authored andcommitted
feat: generate skills v1.1.0 (#158)
1 parent 0ca6285 commit 651f100

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+365
-265
lines changed

skills/cloud-sql-postgres-admin/SKILL.md

Lines changed: 63 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,73 +15,88 @@ All scripts can be executed using Node.js. Replace `<param_name>` and `<param_va
1515

1616
Note: The scripts automatically load the environment variables from various .env files. Do not ask the user to set vars unless skill executions fails due to env var absence.
1717

18+
1819
## Scripts
1920

21+
2022
### clone_instance
2123

2224
Clone an existing Cloud SQL instance into a new instance. The clone can be a direct copy of the source instance, or a point-in-time-recovery (PITR) clone from a specific timestamp. The call returns a Cloud SQL Operation object. Call wait_for_operation tool after this, make sure to use multiplier as 4 to poll the opertation status till it is marked DONE.
2325

2426
#### Parameters
2527

26-
| Name | Type | Description | Required | Default |
27-
| :---------------------- | :----- | :----------------------------------------------------------------------------------------------------------------- | :------- | :------ |
28-
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
29-
| sourceInstanceName | string | The name of the instance to be cloned. | Yes | |
30-
| destinationInstanceName | string | The name of the new instance that will be created by cloning the source instance. | Yes | |
31-
| pointInTime | string | The timestamp in RFC 3339 format to which the source instance should be cloned. | No | |
32-
| preferredZone | string | The preferred zone for the new instance. | No | |
33-
| preferredSecondaryZone | string | The preferred secondary zone for the new instance. | No | |
28+
| Name | Type | Description | Required | Default |
29+
| :--- | :--- | :--- | :--- | :--- |
30+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
31+
| sourceInstanceName | string | The name of the instance to be cloned. | Yes | |
32+
| destinationInstanceName | string | The name of the new instance that will be created by cloning the source instance. | Yes | |
33+
| pointInTime | string | The timestamp in RFC 3339 format to which the source instance should be cloned. | No | |
34+
| preferredZone | string | The preferred zone for the new instance. | No | |
35+
| preferredSecondaryZone | string | The preferred secondary zone for the new instance. | No | |
36+
3437

3538
---
3639

3740
### create_database
3841

42+
43+
3944
#### Parameters
4045

41-
| Name | Type | Description | Required | Default |
42-
| :------- | :----- | :----------------------------------------------------------------------------------------------------------------- | :------- | :------ |
43-
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
44-
| instance | string | The ID of the instance where the database will be created. | Yes | |
45-
| name | string | The name for the new database. Must be unique within the instance. | Yes | |
46+
| Name | Type | Description | Required | Default |
47+
| :--- | :--- | :--- | :--- | :--- |
48+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
49+
| instance | string | The ID of the instance where the database will be created. | Yes | |
50+
| name | string | The name for the new database. Must be unique within the instance. | Yes | |
51+
4652

4753
---
4854

4955
### create_instance
5056

57+
58+
5159
#### Parameters
5260

53-
| Name | Type | Description | Required | Default |
54-
| :-------------- | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- | :------------ |
55-
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
56-
| name | string | The name of the instance | Yes | |
57-
| databaseVersion | string | The database version for Postgres. If not specified, defaults to the latest available version (e.g., POSTGRES_17). | No | `POSTGRES_17` |
58-
| rootPassword | string | The root password for the instance | Yes | |
59-
| editionPreset | string | The edition of the instance. Can be `Production` or `Development`. This determines the default machine type and availability. Defaults to `Development`. | No | `Development` |
61+
| Name | Type | Description | Required | Default |
62+
| :--- | :--- | :--- | :--- | :--- |
63+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
64+
| name | string | The name of the instance | Yes | |
65+
| databaseVersion | string | The database version for Postgres. If not specified, defaults to the latest available version (e.g., POSTGRES_17). | No | `POSTGRES_17` |
66+
| rootPassword | string | The root password for the instance | Yes | |
67+
| editionPreset | string | The edition of the instance. Can be `Production` or `Development`. This determines the default machine type and availability. Defaults to `Development`. | No | `Development` |
68+
6069

6170
---
6271

6372
### create_user
6473

74+
75+
6576
#### Parameters
6677

67-
| Name | Type | Description | Required | Default |
68-
| :------- | :------ | :----------------------------------------------------------------------------------------------------------------- | :------- | :------ |
69-
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
70-
| instance | string | The ID of the instance where the user will be created. | Yes | |
71-
| name | string | The name for the new user. Must be unique within the instance. | Yes | |
72-
| password | string | A secure password for the new user. Not required for IAM users. | No | |
73-
| iamUser | boolean | Set to true to create a Cloud IAM user. | Yes | |
78+
| Name | Type | Description | Required | Default |
79+
| :--- | :--- | :--- | :--- | :--- |
80+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
81+
| instance | string | The ID of the instance where the user will be created. | Yes | |
82+
| name | string | The name for the new user. Must be unique within the instance. | Yes | |
83+
| password | string | A secure password for the new user. Not required for IAM users. | No | |
84+
| iamUser | boolean | Set to true to create a Cloud IAM user. | Yes | |
85+
7486

7587
---
7688

7789
### get_instance
7890

91+
92+
7993
#### Parameters
8094

81-
| Name | Type | Description | Required | Default |
82-
| :--------- | :----- | :----------------------------------------------------------------------------------------------------------------- | :------- | :------ |
83-
| projectId | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
84-
| instanceId | string | The instance ID | Yes | |
95+
| Name | Type | Description | Required | Default |
96+
| :--- | :--- | :--- | :--- | :--- |
97+
| projectId | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
98+
| instanceId | string | The instance ID | Yes | |
99+
85100

86101
---
87102

@@ -91,10 +106,11 @@ Lists all databases for a Cloud SQL instance.
91106

92107
#### Parameters
93108

94-
| Name | Type | Description | Required | Default |
95-
| :------- | :----- | :----------------------------------------------------------------------------------------------------------------- | :------- | :------ |
96-
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
97-
| instance | string | The instance ID | Yes | |
109+
| Name | Type | Description | Required | Default |
110+
| :--- | :--- | :--- | :--- | :--- |
111+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
112+
| instance | string | The instance ID | Yes | |
113+
98114

99115
---
100116

@@ -104,19 +120,24 @@ Lists all type of Cloud SQL instances for a project.
104120

105121
#### Parameters
106122

107-
| Name | Type | Description | Required | Default |
108-
| :------ | :----- | :----------------------------------------------------------------------------------------------------------------- | :------- | :------ |
109-
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
123+
| Name | Type | Description | Required | Default |
124+
| :--- | :--- | :--- | :--- | :--- |
125+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
126+
110127

111128
---
112129

113130
### wait_for_operation
114131

132+
133+
115134
#### Parameters
116135

117-
| Name | Type | Description | Required | Default |
118-
| :-------- | :----- | :----------------------------------------------------------------------------------------------------------------- | :------- | :------ |
119-
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
120-
| operation | string | The operation ID | Yes | |
136+
| Name | Type | Description | Required | Default |
137+
| :--- | :--- | :--- | :--- | :--- |
138+
| project | string | The GCP project ID. This is pre-configured; do not ask for it unless the user explicitly provides a different one. | No | |
139+
| operation | string | The operation ID | Yes | |
140+
121141

122142
---
143+

skills/cloud-sql-postgres-admin/scripts/clone_instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function main() {
8787

8888
const command = os.platform() === 'win32' ? 'npx.cmd' : 'npx';
8989
const processedArgs = os.platform() === 'win32' ? args.map(arg => arg.includes('"') ? '"' + arg.replace(/"/g, '""') + '"' : arg) : args;
90-
const npxArgs = ["--yes", "@toolbox-sdk/server@1.0.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
90+
const npxArgs = ["--yes", "@toolbox-sdk/server@1.1.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
9191

9292
const child = spawn(command, npxArgs, { shell: os.platform() === 'win32', stdio: 'inherit', env });
9393

skills/cloud-sql-postgres-admin/scripts/create_database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function main() {
8787

8888
const command = os.platform() === 'win32' ? 'npx.cmd' : 'npx';
8989
const processedArgs = os.platform() === 'win32' ? args.map(arg => arg.includes('"') ? '"' + arg.replace(/"/g, '""') + '"' : arg) : args;
90-
const npxArgs = ["--yes", "@toolbox-sdk/server@1.0.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
90+
const npxArgs = ["--yes", "@toolbox-sdk/server@1.1.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
9191

9292
const child = spawn(command, npxArgs, { shell: os.platform() === 'win32', stdio: 'inherit', env });
9393

skills/cloud-sql-postgres-admin/scripts/create_instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function main() {
8787

8888
const command = os.platform() === 'win32' ? 'npx.cmd' : 'npx';
8989
const processedArgs = os.platform() === 'win32' ? args.map(arg => arg.includes('"') ? '"' + arg.replace(/"/g, '""') + '"' : arg) : args;
90-
const npxArgs = ["--yes", "@toolbox-sdk/server@1.0.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
90+
const npxArgs = ["--yes", "@toolbox-sdk/server@1.1.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
9191

9292
const child = spawn(command, npxArgs, { shell: os.platform() === 'win32', stdio: 'inherit', env });
9393

skills/cloud-sql-postgres-admin/scripts/create_user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function main() {
8787

8888
const command = os.platform() === 'win32' ? 'npx.cmd' : 'npx';
8989
const processedArgs = os.platform() === 'win32' ? args.map(arg => arg.includes('"') ? '"' + arg.replace(/"/g, '""') + '"' : arg) : args;
90-
const npxArgs = ["--yes", "@toolbox-sdk/server@1.0.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
90+
const npxArgs = ["--yes", "@toolbox-sdk/server@1.1.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
9191

9292
const child = spawn(command, npxArgs, { shell: os.platform() === 'win32', stdio: 'inherit', env });
9393

skills/cloud-sql-postgres-admin/scripts/get_instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function main() {
8787

8888
const command = os.platform() === 'win32' ? 'npx.cmd' : 'npx';
8989
const processedArgs = os.platform() === 'win32' ? args.map(arg => arg.includes('"') ? '"' + arg.replace(/"/g, '""') + '"' : arg) : args;
90-
const npxArgs = ["--yes", "@toolbox-sdk/server@1.0.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
90+
const npxArgs = ["--yes", "@toolbox-sdk/server@1.1.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
9191

9292
const child = spawn(command, npxArgs, { shell: os.platform() === 'win32', stdio: 'inherit', env });
9393

skills/cloud-sql-postgres-admin/scripts/list_databases.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function main() {
8787

8888
const command = os.platform() === 'win32' ? 'npx.cmd' : 'npx';
8989
const processedArgs = os.platform() === 'win32' ? args.map(arg => arg.includes('"') ? '"' + arg.replace(/"/g, '""') + '"' : arg) : args;
90-
const npxArgs = ["--yes", "@toolbox-sdk/server@1.0.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
90+
const npxArgs = ["--yes", "@toolbox-sdk/server@1.1.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
9191

9292
const child = spawn(command, npxArgs, { shell: os.platform() === 'win32', stdio: 'inherit', env });
9393

skills/cloud-sql-postgres-admin/scripts/list_instances.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function main() {
8787

8888
const command = os.platform() === 'win32' ? 'npx.cmd' : 'npx';
8989
const processedArgs = os.platform() === 'win32' ? args.map(arg => arg.includes('"') ? '"' + arg.replace(/"/g, '""') + '"' : arg) : args;
90-
const npxArgs = ["--yes", "@toolbox-sdk/server@1.0.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
90+
const npxArgs = ["--yes", "@toolbox-sdk/server@1.1.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
9191

9292
const child = spawn(command, npxArgs, { shell: os.platform() === 'win32', stdio: 'inherit', env });
9393

skills/cloud-sql-postgres-admin/scripts/wait_for_operation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function main() {
8787

8888
const command = os.platform() === 'win32' ? 'npx.cmd' : 'npx';
8989
const processedArgs = os.platform() === 'win32' ? args.map(arg => arg.includes('"') ? '"' + arg.replace(/"/g, '""') + '"' : arg) : args;
90-
const npxArgs = ["--yes", "@toolbox-sdk/server@1.0.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
90+
const npxArgs = ["--yes", "@toolbox-sdk/server@1.1.0", "--log-level", "error", ...configArgs, "invoke", toolName, "--user-agent-metadata", userAgent, ...processedArgs];
9191

9292
const child = spawn(command, npxArgs, { shell: os.platform() === 'win32', stdio: 'inherit', env });
9393

0 commit comments

Comments
 (0)