kubeagent 0.1.27 → 0.1.29

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 CHANGED
@@ -91,7 +91,7 @@ Supported channels:
91
91
 
92
92
  ## Requirements
93
93
 
94
- - Node.js >= 20
94
+ - Node.js >= 22
95
95
  - `kubectl` configured with cluster access
96
96
  - A KubeAgent account — [sign up at app.kubeagent.net](https://app.kubeagent.net)
97
97
 
@@ -162,7 +162,7 @@ If it requires a risky action (rollback, delete, scale to zero), propose it but
162
162
  const params = {
163
163
  max_tokens: 16000,
164
164
  tools,
165
- messages,
165
+ messages: messages,
166
166
  incident_meta: incidentMeta,
167
167
  };
168
168
  const response = await createMessage(params);
@@ -32,8 +32,10 @@ export async function runInterview(context) {
32
32
  let response;
33
33
  const interviewSpinner = ora("Preparing interview questions...").start();
34
34
  try {
35
+ // Model is selected server-side based on incident_meta. For onboarding
36
+ // there is no incident, so the server defaults to Haiku (its cheapest
37
+ // model) — no client-side `model` hint is needed or honoured.
35
38
  response = await createMessage({
36
- model: "claude-haiku-4-5-20251001",
37
39
  max_tokens: 2000,
38
40
  messages: [
39
41
  {
@@ -1,5 +1,6 @@
1
1
  import type { AuthState } from "./auth.js";
2
- export declare function proxyRequest(auth: AuthState, body: Record<string, unknown>): Promise<Record<string, unknown>>;
2
+ import type { V1MessagesRequest, V1MessagesResponse } from "@kubeagent/shared/v1-messages.js";
3
+ export declare function proxyRequest(auth: AuthState, body: V1MessagesRequest): Promise<V1MessagesResponse>;
3
4
  export declare function fetchSlackWebhook(auth: AuthState): Promise<{
4
5
  connected: boolean;
5
6
  webhookUrl?: string;
@@ -6,7 +6,7 @@ export async function proxyRequest(auth, body) {
6
6
  const keyPreview = apiKey ? `${apiKey.slice(0, 12)}...` : "(none)";
7
7
  dbg("proxy", `POST ${url}`, {
8
8
  keyPrefix: keyPreview,
9
- model: body.model,
9
+ // model is selected server-side based on incident_meta — no client value to log here.
10
10
  maxTokens: body.max_tokens,
11
11
  });
12
12
  let res;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kubeagent",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "AI-powered Kubernetes management CLI",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -13,13 +13,16 @@
13
13
  "LICENSE"
14
14
  ],
15
15
  "scripts": {
16
- "build": "tsc",
16
+ "build": "tsc --build",
17
17
  "dev": "tsx src/cli.ts",
18
18
  "test": "vitest run",
19
19
  "test:watch": "vitest"
20
20
  },
21
+ "workspaces": [
22
+ "packages/shared"
23
+ ],
21
24
  "engines": {
22
- "node": ">=18"
25
+ "node": ">=22"
23
26
  },
24
27
  "dependencies": {
25
28
  "@anthropic-ai/sdk": "^0.81.0",
@@ -31,6 +34,7 @@
31
34
  "zod-to-json-schema": "^3.25.2"
32
35
  },
33
36
  "devDependencies": {
37
+ "@kubeagent/shared": "*",
34
38
  "@types/js-yaml": "^4.0.9",
35
39
  "@types/node": "^22.0.0",
36
40
  "tsx": "^4.19.0",