@app-vitals/agent-admin 1.64.0 → 1.66.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.
Files changed (32) hide show
  1. package/openapi.json +1 -1
  2. package/openapi.platform.json +6 -1
  3. package/package.json +2 -2
  4. package/prisma/client/internal/class.ts +4 -4
  5. package/prisma/client/internal/prismaNamespace.ts +1 -0
  6. package/prisma/client/internal/prismaNamespaceBrowser.ts +1 -0
  7. package/prisma/client/models/AgentTemplateItem.ts +36 -1
  8. package/prisma/migrations/20261117000000_add_agent_template_item_managed_by/migration.sql +5 -0
  9. package/prisma/schema/schema.prisma +3 -0
  10. package/src/admin-boot.boot-order.unit.test.ts +13 -1
  11. package/src/admin-boot.ts +25 -1
  12. package/src/admin-ui-pages.ts +30 -6
  13. package/src/admin-ui-pages.unit.test.ts +36 -1
  14. package/src/admin-ui-slack-config-token-flows.smoke.test.ts +346 -0
  15. package/src/admin-ui-templates-pages.ts +15 -1
  16. package/src/admin-ui-templates-pages.unit.test.ts +9 -0
  17. package/src/admin-ui-templates.smoke.test.ts +38 -0
  18. package/src/admin-ui.ts +46 -2
  19. package/src/agent-deletion.ts +39 -5
  20. package/src/agent-deletion.unit.test.ts +141 -0
  21. package/src/agent-templates-api.ts +1 -0
  22. package/src/agent-templates.ts +184 -9
  23. package/src/agents-api.smoke.test.ts +107 -1
  24. package/src/agents-api.ts +12 -4
  25. package/src/openapi-schemas.ts +9 -2
  26. package/src/slack-config-token-resolve.unit.test.ts +108 -0
  27. package/src/slack-config-token.ts +51 -0
  28. package/src/slack-provisioning-service.integration.test.ts +189 -1
  29. package/src/slack-provisioning-service.ts +43 -9
  30. package/src/template-seed.integration.test.ts +408 -0
  31. package/src/template-seed.ts +222 -0
  32. package/src/template-seed.unit.test.ts +272 -0
package/openapi.json CHANGED
@@ -4226,7 +4226,7 @@
4226
4226
  },
4227
4227
  "delete": {
4228
4228
  "summary": "Delete an agent",
4229
- "description": "Admin-only. Runs the full deleteAgentFully() teardown: deprovisions the K8s workload, removes the agent's per-agent Anthropic identity when it has one (federation rule, then Anthropic service account, then Kubernetes ServiceAccount), revokes task-store and chat-service tokens, deletes chat threads, and — if an `xoxpToken` is supplied — deletes the Slack app. The Agent row (and its cascade-deleted child records) is deleted last, only if every automatable step succeeded; `agentDeleted: false` means the row was preserved and the call is safe to retry.",
4229
+ "description": "Admin-only. Runs the full deleteAgentFully() teardown: deprovisions the K8s workload, removes the agent's per-agent Anthropic identity when it has one (federation rule, then Anthropic service account, then Kubernetes ServiceAccount), revokes task-store and chat-service tokens, deletes chat threads, and — if an `xoxpToken` is supplied, or a stored Slack config token resolves for the agent's account (else the deployment default) — deletes the Slack app. The Agent row (and its cascade-deleted child records) is deleted last, only if every automatable step succeeded; `agentDeleted: false` means the row was preserved and the call is safe to retry.",
4230
4230
  "parameters": [
4231
4231
  {
4232
4232
  "schema": {
@@ -4413,6 +4413,11 @@
4413
4413
  "type": "string",
4414
4414
  "format": "date-time",
4415
4415
  "example": "2026-01-01T00:00:00.000Z"
4416
+ },
4417
+ "managedBy": {
4418
+ "type": "string",
4419
+ "description": "Set to \"helm\" on items applied from SHIPWRIGHT_TEMPLATE_SEED (Helm values); absent on hand-added items. Seeded items stay editable, but the next admin boot overwrites them.",
4420
+ "example": "helm"
4416
4421
  }
4417
4422
  },
4418
4423
  "required": [
@@ -4782,7 +4787,7 @@
4782
4787
  },
4783
4788
  "delete": {
4784
4789
  "summary": "Delete an agent",
4785
- "description": "Admin-only. Runs the full deleteAgentFully() teardown: deprovisions the K8s workload, removes the agent's per-agent Anthropic identity when it has one (federation rule, then Anthropic service account, then Kubernetes ServiceAccount), revokes task-store and chat-service tokens, deletes chat threads, and — if an `xoxpToken` is supplied — deletes the Slack app. The Agent row (and its cascade-deleted child records) is deleted last, only if every automatable step succeeded; `agentDeleted: false` means the row was preserved and the call is safe to retry.",
4790
+ "description": "Admin-only. Runs the full deleteAgentFully() teardown: deprovisions the K8s workload, removes the agent's per-agent Anthropic identity when it has one (federation rule, then Anthropic service account, then Kubernetes ServiceAccount), revokes task-store and chat-service tokens, deletes chat threads, and — if an `xoxpToken` is supplied, or a stored Slack config token resolves for the agent's account (else the deployment default) — deletes the Slack app. The Agent row (and its cascade-deleted child records) is deleted last, only if every automatable step succeeded; `agentDeleted: false` means the row was preserved and the call is safe to retry.",
4786
4791
  "parameters": [
4787
4792
  {
4788
4793
  "schema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-admin",
3
- "version": "1.64.0",
3
+ "version": "1.66.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@anthropic-ai/sdk": "0.137.0",
45
- "@app-vitals/agent-lib": "1.64.0",
45
+ "@app-vitals/agent-lib": "1.66.0",
46
46
  "@hono/zod-openapi": "^1.0.0",
47
47
  "@prisma/adapter-pg": "^7.10.0",
48
48
  "@prisma/client": "^7.10.0",