@blogic-cz/agent-tools 0.14.1 → 0.14.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.
- package/README.md +3 -3
- package/package.json +4 -4
- package/schemas/agent-tools.schema.json +14 -3
- package/src/config/loader.ts +2 -0
- package/src/config/types.ts +1 -1
package/README.md
CHANGED
|
@@ -174,17 +174,17 @@ bun run agent-tools/example-tool/index.ts ping
|
|
|
174
174
|
dbPath: "~/.agent-tools/audit.sqlite",
|
|
175
175
|
},
|
|
176
176
|
vpns: {
|
|
177
|
-
|
|
177
|
+
exampleVpn: {
|
|
178
178
|
// auto defaults to true:
|
|
179
179
|
// darwin -> macos-scutil, linux -> linux-nmcli, win32 -> windows-rasdial
|
|
180
|
-
name: "
|
|
180
|
+
name: "ExampleVPN",
|
|
181
181
|
},
|
|
182
182
|
},
|
|
183
183
|
kubernetes: {
|
|
184
184
|
default: {
|
|
185
185
|
clusterId: "your-cluster-id",
|
|
186
186
|
namespaces: { test: "your-ns-test", prod: "your-ns-prod" },
|
|
187
|
-
prerequisites: [{ type: "vpn", key: "
|
|
187
|
+
prerequisites: [{ type: "vpn", key: "exampleVpn" }],
|
|
188
188
|
// Prerequisites are currently decoded and validated as config metadata;
|
|
189
189
|
// automatic VPN connect/disconnect execution is planned for a follow-up release.
|
|
190
190
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blogic-cz/agent-tools",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "CLI tools for AI coding agent workflows — GitHub, database, Kubernetes, Azure DevOps, logs, sessions, and audit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -133,13 +133,13 @@
|
|
|
133
133
|
"test": "vitest run"
|
|
134
134
|
},
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@effect/platform-bun": "4.0.0-beta.
|
|
136
|
+
"@effect/platform-bun": "4.0.0-beta.65",
|
|
137
137
|
"@toon-format/toon": "2.1.0",
|
|
138
|
-
"effect": "4.0.0-beta.
|
|
138
|
+
"effect": "4.0.0-beta.65"
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@effect/language-service": "0.85.1",
|
|
142
|
-
"@effect/vitest": "4.0.0-beta.
|
|
142
|
+
"@effect/vitest": "4.0.0-beta.65",
|
|
143
143
|
"@types/bun": "1.3.12",
|
|
144
144
|
"oxfmt": "0.44.0",
|
|
145
145
|
"oxlint": "1.59.0",
|
|
@@ -224,6 +224,17 @@
|
|
|
224
224
|
"remotePort": {
|
|
225
225
|
"description": "Optional remote database port used by the tunnel.",
|
|
226
226
|
"type": "number"
|
|
227
|
+
},
|
|
228
|
+
"prerequisites": {
|
|
229
|
+
"description": "Ordered prerequisite references required before remote database access.",
|
|
230
|
+
"type": "array",
|
|
231
|
+
"items": {
|
|
232
|
+
"$ref": "#/definitions/Prerequisite"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"vpn": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "Convenience sugar for a VPN prerequisite key. Runtime normalizes this to prerequisites."
|
|
227
238
|
}
|
|
228
239
|
},
|
|
229
240
|
"required": ["environments"]
|
|
@@ -529,7 +540,7 @@
|
|
|
529
540
|
"namespaces": {
|
|
530
541
|
"test": "my-app-test",
|
|
531
542
|
"prod": "my-app-prod",
|
|
532
|
-
"system": "
|
|
543
|
+
"system": "system"
|
|
533
544
|
},
|
|
534
545
|
"timeoutMs": 60000
|
|
535
546
|
}
|
|
@@ -553,8 +564,8 @@
|
|
|
553
564
|
}
|
|
554
565
|
},
|
|
555
566
|
"kubectl": {
|
|
556
|
-
"context": "
|
|
557
|
-
"namespace": "
|
|
567
|
+
"context": "example-cluster",
|
|
568
|
+
"namespace": "system"
|
|
558
569
|
},
|
|
559
570
|
"tunnelTimeoutMs": 5000,
|
|
560
571
|
"remotePort": 5432
|
package/src/config/loader.ts
CHANGED
|
@@ -100,6 +100,8 @@ const DatabaseConfigSchema = Schema.Struct({
|
|
|
100
100
|
),
|
|
101
101
|
tunnelTimeoutMs: Schema.optionalKey(Schema.Number),
|
|
102
102
|
remotePort: Schema.optionalKey(Schema.Number),
|
|
103
|
+
prerequisites: Schema.optionalKey(PrerequisitesSchema),
|
|
104
|
+
vpn: Schema.optionalKey(Schema.String),
|
|
103
105
|
});
|
|
104
106
|
|
|
105
107
|
const LogsConfigSchema = Schema.Struct({
|
package/src/config/types.ts
CHANGED
|
@@ -78,7 +78,7 @@ export type DbEnvConfig = {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/** Database profile configuration */
|
|
81
|
-
export type DatabaseConfig = {
|
|
81
|
+
export type DatabaseConfig = ProfilePrerequisites & {
|
|
82
82
|
/** Named database environments, e.g. { local: {...}, test: {...}, prod: {...} } */
|
|
83
83
|
environments: Record<string, DbEnvConfig>;
|
|
84
84
|
kubectl?: {
|