Skip to content

Commit 33ae3d9

Browse files
peppescgclaude
andauthored
chore(deps): update toolhive to v0.19.0 (#1983)
Update ToolHive CLI version and regenerate API client from the new spec. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent be6e413 commit 33ae3d9

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

common/api/generated/types.gen.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export type GithubComStacklokToolhiveCoreRegistryTypesRegistry = {
3636
}
3737

3838
/**
39-
* Shared defines a token bucket shared across all users for this specific tool.
40-
* +kubebuilder:validation:Required
39+
* PerUser token bucket configuration for this tool.
40+
* +optional
4141
*/
4242
export type GithubComStacklokToolhiveCmdThvOperatorApiV1Alpha1RateLimitBucket =
4343
{
@@ -58,6 +58,7 @@ export type GithubComStacklokToolhiveCmdThvOperatorApiV1Alpha1RateLimitBucket =
5858
*/
5959
export type GithubComStacklokToolhiveCmdThvOperatorApiV1Alpha1RateLimitConfig =
6060
{
61+
perUser?: GithubComStacklokToolhiveCmdThvOperatorApiV1Alpha1RateLimitBucket
6162
shared?: GithubComStacklokToolhiveCmdThvOperatorApiV1Alpha1RateLimitBucket
6263
/**
6364
* Tools defines per-tool rate limit overrides.
@@ -78,6 +79,7 @@ export type GithubComStacklokToolhiveCmdThvOperatorApiV1Alpha1ToolRateLimitConfi
7879
* +kubebuilder:validation:MinLength=1
7980
*/
8081
name?: string
82+
perUser?: GithubComStacklokToolhiveCmdThvOperatorApiV1Alpha1RateLimitBucket
8183
shared?: GithubComStacklokToolhiveCmdThvOperatorApiV1Alpha1RateLimitBucket
8284
}
8385

@@ -1814,6 +1816,7 @@ export type PkgApiV1CreateRequest = {
18141816
* Port for the HTTP proxy to listen on
18151817
*/
18161818
proxy_port?: number
1819+
runtime_config?: GithubComStacklokToolhivePkgContainerTemplatesRuntimeConfig
18171820
/**
18181821
* Secret parameters to inject
18191822
*/
@@ -1992,9 +1995,11 @@ export type PkgApiV1HeaderForwardConfig = {
19921995
*/
19931996
export type PkgApiV1InstallSkillRequest = {
19941997
/**
1995-
* Client is the target client (e.g., "claude-code")
1998+
* Clients lists target client identifiers (e.g., "claude-code"),
1999+
* or ["all"] to target every skill-supporting client.
2000+
* Omitting this field installs to all available clients.
19962001
*/
1997-
client?: string
2002+
clients?: Array<string>
19982003
/**
19992004
* Force allows overwriting unmanaged skill directories
20002005
*/
@@ -2333,6 +2338,7 @@ export type PkgApiV1UpdateRequest = {
23332338
* Port for the HTTP proxy to listen on
23342339
*/
23352340
proxy_port?: number
2341+
runtime_config?: GithubComStacklokToolhivePkgContainerTemplatesRuntimeConfig
23362342
/**
23372343
* Secret parameters to inject
23382344
*/

common/api/openapi.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"type": "object"
3939
},
4040
"github_com_stacklok_toolhive_cmd_thv-operator_api_v1alpha1.RateLimitBucket": {
41-
"description": "Shared defines a token bucket shared across all users for this specific tool.\n+kubebuilder:validation:Required",
41+
"description": "PerUser token bucket configuration for this tool.\n+optional",
4242
"properties": {
4343
"maxTokens": {
4444
"description": "MaxTokens is the maximum number of tokens (bucket capacity).\nThis is also the burst size: the maximum number of requests that can be served\ninstantaneously before the bucket is depleted.\n+kubebuilder:validation:Required\n+kubebuilder:validation:Minimum=1",
@@ -53,6 +53,9 @@
5353
"github_com_stacklok_toolhive_cmd_thv-operator_api_v1alpha1.RateLimitConfig": {
5454
"description": "RateLimitConfig contains the CRD rate limiting configuration.\nWhen set, rate limiting middleware is added to the proxy middleware chain.",
5555
"properties": {
56+
"perUser": {
57+
"$ref": "#/components/schemas/github_com_stacklok_toolhive_cmd_thv-operator_api_v1alpha1.RateLimitBucket"
58+
},
5659
"shared": {
5760
"$ref": "#/components/schemas/github_com_stacklok_toolhive_cmd_thv-operator_api_v1alpha1.RateLimitBucket"
5861
},
@@ -73,6 +76,9 @@
7376
"description": "Name is the MCP tool name this limit applies to.\n+kubebuilder:validation:Required\n+kubebuilder:validation:MinLength=1",
7477
"type": "string"
7578
},
79+
"perUser": {
80+
"$ref": "#/components/schemas/github_com_stacklok_toolhive_cmd_thv-operator_api_v1alpha1.RateLimitBucket"
81+
},
7682
"shared": {
7783
"$ref": "#/components/schemas/github_com_stacklok_toolhive_cmd_thv-operator_api_v1alpha1.RateLimitBucket"
7884
}
@@ -2093,6 +2099,9 @@
20932099
"description": "Port for the HTTP proxy to listen on",
20942100
"type": "integer"
20952101
},
2102+
"runtime_config": {
2103+
"$ref": "#/components/schemas/github_com_stacklok_toolhive_pkg_container_templates.RuntimeConfig"
2104+
},
20962105
"secrets": {
20972106
"description": "Secret parameters to inject",
20982107
"items": {
@@ -2297,9 +2306,13 @@
22972306
"pkg_api_v1.installSkillRequest": {
22982307
"description": "Request to install a skill",
22992308
"properties": {
2300-
"client": {
2301-
"description": "Client is the target client (e.g., \"claude-code\")",
2302-
"type": "string"
2309+
"clients": {
2310+
"description": "Clients lists target client identifiers (e.g., \"claude-code\"),\nor [\"all\"] to target every skill-supporting client.\nOmitting this field installs to all available clients.",
2311+
"items": {
2312+
"type": "string"
2313+
},
2314+
"type": "array",
2315+
"uniqueItems": false
23032316
},
23042317
"force": {
23052318
"description": "Force allows overwriting unmanaged skill directories",
@@ -2694,6 +2707,9 @@
26942707
"description": "Port for the HTTP proxy to listen on",
26952708
"type": "integer"
26962709
},
2710+
"runtime_config": {
2711+
"$ref": "#/components/schemas/github_com_stacklok_toolhive_pkg_container_templates.RuntimeConfig"
2712+
},
26972713
"secrets": {
26982714
"description": "Secret parameters to inject",
26992715
"items": {

utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
* This is managed by Renovate and updated automatically when new versions are released.
44
* renovate: datasource=github-releases depName=stacklok/toolhive versioning=semver
55
*/
6-
export const TOOLHIVE_VERSION = process.env.THV_VERSION ?? 'v0.17.0'
6+
export const TOOLHIVE_VERSION = process.env.THV_VERSION ?? 'v0.19.0'

0 commit comments

Comments
 (0)