@app-vitals/agent-lib 1.32.0 → 1.33.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 (2) hide show
  1. package/admin-types.ts +70 -1
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -438,7 +438,7 @@ export interface paths {
438
438
  post?: never;
439
439
  /**
440
440
  * Remove a repo from an agent
441
- * @description Admin, the agent's own key, or platform.ops. Removes one `owner/name` repo from the agent's `repos`, preserving the order of the rest. 404 when the agent does not have that repo. Returns the full updated agent.
441
+ * @description Admin, the agent's own key, or platform.ops. Removes one `owner/name` repo from the agent's `repos`, preserving the order of the rest. The agent's open work on the repo is blocked through the optional open-work port (a failure there is a warning; the removal still succeeds), whoever the caller is; re-adding the repo never unblocks it. 404 when the agent does not have that repo. Returns the full updated agent.
442
442
  */
443
443
  delete: {
444
444
  parameters: {
@@ -487,6 +487,75 @@ export interface paths {
487
487
  patch?: never;
488
488
  trace?: never;
489
489
  };
490
+ "/agents/{id}/repos/{owner}/{name}/removal-preview": {
491
+ parameters: {
492
+ query?: never;
493
+ header?: never;
494
+ path?: never;
495
+ cookie?: never;
496
+ };
497
+ /**
498
+ * Preview the open work blocked by removing a repo from an agent
499
+ * @description Admin or session member. Read-only: lists the agent's open tasks and PRs that removing `owner/name` from its repos would block (via the optional open-work port); nothing is changed. `openWork` is empty when no port is wired; a port failure is reported in `warnings`. 404 when the agent does not have that repo.
500
+ */
501
+ get: {
502
+ parameters: {
503
+ query?: never;
504
+ header?: never;
505
+ path: {
506
+ id: string;
507
+ owner: string;
508
+ name: string;
509
+ };
510
+ cookie?: never;
511
+ };
512
+ requestBody?: never;
513
+ responses: {
514
+ /** @description Open work that would be blocked */
515
+ 200: {
516
+ headers: {
517
+ [name: string]: unknown;
518
+ };
519
+ content: {
520
+ "application/json": {
521
+ repo: string;
522
+ openWork: {
523
+ id: string;
524
+ repo: string;
525
+ title?: string;
526
+ }[];
527
+ warnings: string[];
528
+ };
529
+ };
530
+ };
531
+ /** @description Forbidden */
532
+ 403: {
533
+ headers: {
534
+ [name: string]: unknown;
535
+ };
536
+ content: {
537
+ "application/json": components["schemas"]["Error"];
538
+ };
539
+ };
540
+ /** @description Agent or repo not found */
541
+ 404: {
542
+ headers: {
543
+ [name: string]: unknown;
544
+ };
545
+ content: {
546
+ "application/json": components["schemas"]["Error"];
547
+ };
548
+ };
549
+ };
550
+ };
551
+ put?: never;
552
+ post?: never;
553
+ delete?: never;
554
+ options?: never;
555
+ head?: never;
556
+ patch?: never;
557
+ trace?: never;
558
+ };
490
559
  "/agents": {
491
560
  parameters: {
492
561
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",