@app-vitals/agent-lib 0.12.0 → 0.13.1

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.
Files changed (2) hide show
  1. package/admin-types.ts +10 -9
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -185,7 +185,7 @@ export interface paths {
185
185
  };
186
186
  /**
187
187
  * Get an agent
188
- * @description Admin-only. Returns the full agent record including `selfHosted`, `repos`, `reviewAuthorAllowlist`, `patchAuthorAllowlist`, `restrictSlackToMembers`, `typeName`, `accountId` (null for unassigned agents), and `missingRequiredEnv` — required env keys declared by the agent's type manifest with no corresponding AgentEnv row yet (informational only).
188
+ * @description Admin-only. Returns the full agent record including `selfHosted`, `repos`, `reviewAuthorAllowlist`, `patchAuthorAllowlist`, `restrictSlackToMembers`, `specialty`, `accountId` (null for unassigned agents), and `missingRequiredEnv` — required env keys declared by the agent's type manifest with no corresponding AgentEnv row yet (informational only).
189
189
  */
190
190
  get: {
191
191
  parameters: {
@@ -281,7 +281,7 @@ export interface paths {
281
281
  head?: never;
282
282
  /**
283
283
  * Update an agent
284
- * @description Admin-only. Updates `selfHosted`, `repos`, `reviewAuthorAllowlist`, `patchAuthorAllowlist`, `restrictSlackToMembers`, `slackId`, `trialExpiresAt`, `accountId` (platform admin only — 403 for session members; `null` clears it; reconciles the workload of in-cluster agents; does not move historical task-store rows), and/or `podServiceAccountName` (platform admin only — 403 otherwise; `null` clears it; 409 unless SHIPWRIGHT_K8S_AGENT_POD_SERVICE_ACCOUNT_ENABLED is on; 422 for agents with a per-agent federated identity; reconciles the workload so the pod is recreated under the new ServiceAccount). `typeName` and `trialExpiryWarnedAt` are not updatable via this route. `repos` here REPLACES the whole list; for incremental changes use `POST /agents/{id}/repos` (add) and `DELETE /agents/{id}/repos/{owner}/{name}` (remove). Returns the updated agent, including a `warning` field when `restrictSlackToMembers` is set true on an agent with zero members.
284
+ * @description Admin-only. Updates `selfHosted`, `repos`, `reviewAuthorAllowlist`, `patchAuthorAllowlist`, `restrictSlackToMembers`, `slackId`, `trialExpiresAt`, `accountId` (platform admin only — 403 for session members; `null` clears it; reconciles the workload of in-cluster agents; does not move historical task-store rows), and/or `podServiceAccountName` (platform admin only — 403 otherwise; `null` clears it; 409 unless SHIPWRIGHT_K8S_AGENT_POD_SERVICE_ACCOUNT_ENABLED is on; 422 for agents with a per-agent federated identity; reconciles the workload so the pod is recreated under the new ServiceAccount). `specialty` and `trialExpiryWarnedAt` are not updatable via this route. `repos` here REPLACES the whole list; for incremental changes use `POST /agents/{id}/repos` (add) and `DELETE /agents/{id}/repos/{owner}/{name}` (remove). Returns the updated agent, including a `warning` field when `restrictSlackToMembers` is set true on an agent with zero members.
285
285
  */
286
286
  patch: {
287
287
  parameters: {
@@ -498,7 +498,7 @@ export interface paths {
498
498
  };
499
499
  /**
500
500
  * List all agents
501
- * @description Admin-only. Returns every agent's `id`, `name`, `selfHosted`, and `typeName` — used for metrics name resolution.
501
+ * @description Admin-only. Returns every agent's `id`, `name`, `selfHosted`, and `specialty` — used for metrics name resolution.
502
502
  */
503
503
  get: {
504
504
  parameters: {
@@ -532,7 +532,7 @@ export interface paths {
532
532
  put?: never;
533
533
  /**
534
534
  * Create an agent
535
- * @description Admin-only. Validates name/typeName, creates the Agent row, seeds AgentTool/AgentPlugin rows from the resolved type manifest, attaches repos/allowlists/members, patches Claude credentials, and provisions Kubernetes when `runtime` is "in-cluster" — the same createAgent() implementation (APA-1.1) the web UI form at /admin/agents/new uses. Transactional: on any failure zero rows persist, and this route never returns a partial-success 200. Returns the created agent in the same shape as GET /agents/:id.
535
+ * @description Admin-only. Validates name/specialty, creates the Agent row, seeds AgentTool/AgentPlugin rows from the resolved type manifest, attaches repos/allowlists/members, patches Claude credentials, and provisions Kubernetes when `runtime` is "in-cluster" — the same createAgent() implementation (APA-1.1) the web UI form at /admin/agents/new uses. Transactional: on any failure zero rows persist, and this route never returns a partial-success 200. Returns the created agent in the same shape as GET /agents/:id.
536
536
  */
537
537
  post: {
538
538
  parameters: {
@@ -3175,7 +3175,6 @@ export interface components {
3175
3175
  reviewAuthorAllowlist: string[];
3176
3176
  patchAuthorAllowlist: string[];
3177
3177
  restrictSlackToMembers: boolean;
3178
- typeName: string;
3179
3178
  specialty: string;
3180
3179
  podServiceAccountName: string | null;
3181
3180
  accountId: string | null;
@@ -3303,15 +3302,13 @@ export interface components {
3303
3302
  /** @example false */
3304
3303
  selfHosted: boolean;
3305
3304
  /** @example coding */
3306
- typeName: string;
3307
- /** @example coding */
3308
3305
  specialty: string;
3309
3306
  };
3310
3307
  CreateAgentBody: {
3311
3308
  /** @example Bodhi */
3312
3309
  name: string;
3313
3310
  /** @example coding */
3314
- typeName: string;
3311
+ specialty: string;
3315
3312
  /** @example in-cluster */
3316
3313
  runtime?: string;
3317
3314
  /** @example my-org/my-repo */
@@ -4283,8 +4280,12 @@ export interface components {
4283
4280
  /** @example active */
4284
4281
  accountStatus?: string | null;
4285
4282
  /** @example coding */
4283
+ specialty: string;
4284
+ /**
4285
+ * @deprecated
4286
+ * @example coding
4287
+ */
4286
4288
  typeName?: string;
4287
- specialty?: string;
4288
4289
  /**
4289
4290
  * @example {
4290
4291
  * "prd": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",