@app-vitals/agent-lib 1.115.2 → 1.117.0

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/admin-types.ts CHANGED
@@ -5467,6 +5467,7 @@ export interface components {
5467
5467
  agentId: string;
5468
5468
  /** @example ci-runner */
5469
5469
  label?: string | null;
5470
+ kind: components["schemas"]["AgentTokenKind"];
5470
5471
  /**
5471
5472
  * Format: date-time
5472
5473
  * @example 2026-01-01T00:00:00.000Z
@@ -5478,9 +5479,15 @@ export interface components {
5478
5479
  */
5479
5480
  revokedAt?: string | null;
5480
5481
  };
5482
+ /**
5483
+ * @description What the token is for: `runtime` (the agent process) or `tools` (the model's own process).
5484
+ * @enum {string}
5485
+ */
5486
+ AgentTokenKind: "runtime" | "tools";
5481
5487
  CreateAgentTokenBody: {
5482
5488
  /** @example ci-runner */
5483
5489
  label?: string;
5490
+ kind?: components["schemas"]["AgentTokenKind"] & unknown;
5484
5491
  };
5485
5492
  TokensWrapper: {
5486
5493
  tokens: components["schemas"]["AgentToken"][];
package/child-env.ts CHANGED
@@ -42,6 +42,8 @@ export const CHILD_ALLOWED_SECRET_ENV_VARS = [
42
42
  "GH_TOKEN",
43
43
  "SLACK_BOT_TOKEN",
44
44
  "SHIPWRIGHT_AGENT_API_KEY",
45
+ // Tools-kind token for the model's process; passes through for now.
46
+ "SHIPWRIGHT_AGENT_TOOLS_API_KEY",
45
47
  "SHIPWRIGHT_TASK_STORE_TOKEN",
46
48
  "SHIPWRIGHT_CHAT_SERVICE_TOKEN",
47
49
  // The shipped shipwright task-store skill still mints scoped tokens with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "1.115.2",
3
+ "version": "1.117.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",
@@ -19,6 +19,9 @@ export const SECRET_ENV_VARS = [
19
19
  "SLACK_CLIENT_SECRET",
20
20
  "SLACK_ADMIN_TOKEN",
21
21
  "SHIPWRIGHT_AGENT_API_KEY",
22
+ // Tools-kind agent token minted by admin and stored in the agent's env
23
+ // bundle; the runtime hands it to the model's process.
24
+ "SHIPWRIGHT_AGENT_TOOLS_API_KEY",
22
25
  "SHIPWRIGHT_TASK_STORE_TOKEN",
23
26
  "SHIPWRIGHT_TASK_STORE_ADMIN_TOKEN",
24
27
  "SHIPWRIGHT_CHAT_SERVICE_TOKEN",
@@ -31,6 +31,7 @@ describe("SECRET_ENV_VARS", () => {
31
31
  "SHIPWRIGHT_ADMIN_PUSH_WEBHOOK_TOKEN",
32
32
  "SHIPWRIGHT_CHAT_PUSH_WEBHOOK_TOKEN",
33
33
  "GOOGLE_CLIENT_SECRET",
34
+ "SHIPWRIGHT_AGENT_TOOLS_API_KEY",
34
35
  "GROQ_API_KEY",
35
36
  "ELEVENLABS_API_KEY",
36
37
  ];
@@ -41,7 +42,7 @@ describe("SECRET_ENV_VARS", () => {
41
42
  });
42
43
 
43
44
  test("has exactly the expected number of entries (catches accidental additions/removals)", () => {
44
- expect(SECRET_ENV_VARS.length).toBe(24);
45
+ expect(SECRET_ENV_VARS.length).toBe(25);
45
46
  });
46
47
 
47
48
  test("every entry is a non-empty string", () => {