@app-vitals/agent-admin 1.86.1 → 1.88.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/openapi.json +2 -2
- package/openapi.platform.json +30 -2
- package/package.json +2 -2
- package/prisma/client/internal/class.ts +4 -4
- package/prisma/client/internal/prismaNamespace.ts +1 -0
- package/prisma/client/internal/prismaNamespaceBrowser.ts +1 -0
- package/prisma/client/models/GitHubRepoSnapshot.ts +33 -1
- package/prisma/migrations/20261125000000_add_github_snapshot_repository_selection/migration.sql +2 -0
- package/prisma/schema/schema.prisma +2 -0
- package/src/admin-ui-github-identity-pages.ts +22 -4
- package/src/admin-ui-github-identity-pages.unit.test.ts +87 -0
- package/src/admin-ui-installation-repos-pages.ts +29 -7
- package/src/admin-ui-installation-repos-pages.unit.test.ts +83 -0
- package/src/admin-ui-installation-repos.smoke.test.ts +77 -9
- package/src/admin-ui-pages.ts +15 -2
- package/src/admin-ui.ts +23 -17
- package/src/agents-api.smoke.test.ts +237 -2
- package/src/agents-api.ts +27 -4
- package/src/github-access-preview.integration.test.ts +38 -3
- package/src/github-access-preview.ts +1 -1
- package/src/github-agent-installation-crawler.ts +27 -8
- package/src/github-agent-installation-crawler.unit.test.ts +76 -1
- package/src/github-apps-state.ts +31 -0
- package/src/github-cache-roundtrip.integration.test.ts +405 -0
- package/src/github-enterprise-api.ts +24 -18
- package/src/github-installation-selection.integration.test.ts +91 -0
- package/src/github-installation-wiring.ts +35 -0
- package/src/github-repo-cache.ts +8 -0
- package/src/github-sync.ts +38 -4
- package/src/installation-ports.ts +2 -0
- package/src/installation-repos-service.ts +24 -1
- package/src/user-repo-access-resolver.ts +26 -5
- package/src/user-repo-access-resolver.unit.test.ts +80 -0
package/openapi.json
CHANGED
|
@@ -2804,7 +2804,7 @@
|
|
|
2804
2804
|
"user_not_found",
|
|
2805
2805
|
"unconfigured"
|
|
2806
2806
|
],
|
|
2807
|
-
"description": "`unconfigured` when the
|
|
2807
|
+
"description": "`unconfigured` when the lookup App or its key is not set (no GitHub call was made). The installer App is optional."
|
|
2808
2808
|
},
|
|
2809
2809
|
"access": {
|
|
2810
2810
|
"type": "object",
|
|
@@ -6356,7 +6356,7 @@
|
|
|
6356
6356
|
"/agents/{id}/github-access": {
|
|
6357
6357
|
"get": {
|
|
6358
6358
|
"summary": "Preview the repos the agent's bound GitHub user can reach",
|
|
6359
|
-
"description": "Platform-admin only (session members, ops keys and agent keys get 403): the response lists repo names the bound user can reach. Read-only; nothing is stored. 404 for an unknown agent; 422 when no githubUsername is bound. Returns `status: unconfigured` (not an error, no GitHub call) when the
|
|
6359
|
+
"description": "Platform-admin only (session members, ops keys and agent keys get 403): the response lists repo names the bound user can reach. Read-only; nothing is stored. 404 for an unknown agent; 422 when no githubUsername is bound. Returns `status: unconfigured` (not an error, no GitHub call) when the lookup App is not configured (the installer App is optional), and `status: user_not_found` when the user does not exist on GitHub; otherwise `access` is the resolver output (per-org status, repos with level and canPush, unresolved count, complete flag).",
|
|
6360
6360
|
"parameters": [
|
|
6361
6361
|
{
|
|
6362
6362
|
"schema": {
|
package/openapi.platform.json
CHANGED
|
@@ -3418,7 +3418,7 @@
|
|
|
3418
3418
|
"user_not_found",
|
|
3419
3419
|
"unconfigured"
|
|
3420
3420
|
],
|
|
3421
|
-
"description": "`unconfigured` when the
|
|
3421
|
+
"description": "`unconfigured` when the lookup App or its key is not set (no GitHub call was made). The installer App is optional."
|
|
3422
3422
|
},
|
|
3423
3423
|
"access": {
|
|
3424
3424
|
"type": "object",
|
|
@@ -3528,6 +3528,18 @@
|
|
|
3528
3528
|
"appId": {
|
|
3529
3529
|
"type": "integer"
|
|
3530
3530
|
},
|
|
3531
|
+
"appsState": {
|
|
3532
|
+
"type": "string",
|
|
3533
|
+
"enum": [
|
|
3534
|
+
"lookup_only",
|
|
3535
|
+
"lookup_missing"
|
|
3536
|
+
],
|
|
3537
|
+
"description": "Present only when an App role is missing: `lookup_only` (the enterprise installer App is not configured: repo access is visible but Sync and the agent App's installation repos are unavailable) or `lookup_missing` (the lookup App is not configured). `reason` carries the matching text."
|
|
3538
|
+
},
|
|
3539
|
+
"reason": {
|
|
3540
|
+
"type": "string",
|
|
3541
|
+
"description": "Set with `appsState`: why the installation repos cannot be changed here. The listing is the cached lookup crawl."
|
|
3542
|
+
},
|
|
3531
3543
|
"complete": {
|
|
3532
3544
|
"type": "boolean",
|
|
3533
3545
|
"description": "Whether the cached crawl is complete. While false the list may be partial."
|
|
@@ -3671,6 +3683,14 @@
|
|
|
3671
3683
|
"reason": {
|
|
3672
3684
|
"type": "string"
|
|
3673
3685
|
},
|
|
3686
|
+
"appsState": {
|
|
3687
|
+
"type": "string",
|
|
3688
|
+
"enum": [
|
|
3689
|
+
"lookup_only",
|
|
3690
|
+
"lookup_missing"
|
|
3691
|
+
],
|
|
3692
|
+
"description": "Present only when an App role is missing: `lookup_only` (the enterprise installer App is not configured: repo access is visible but Sync and the agent App's installation repos are unavailable) or `lookup_missing` (the lookup App is not configured). `reason` carries the matching text."
|
|
3693
|
+
},
|
|
3674
3694
|
"appAdds": {
|
|
3675
3695
|
"type": "array",
|
|
3676
3696
|
"items": {
|
|
@@ -3826,6 +3846,14 @@
|
|
|
3826
3846
|
"reason": {
|
|
3827
3847
|
"type": "string"
|
|
3828
3848
|
},
|
|
3849
|
+
"appsState": {
|
|
3850
|
+
"type": "string",
|
|
3851
|
+
"enum": [
|
|
3852
|
+
"lookup_only",
|
|
3853
|
+
"lookup_missing"
|
|
3854
|
+
],
|
|
3855
|
+
"description": "Present only when an App role is missing: `lookup_only` (the enterprise installer App is not configured: repo access is visible but Sync and the agent App's installation repos are unavailable) or `lookup_missing` (the lookup App is not configured). `reason` carries the matching text."
|
|
3856
|
+
},
|
|
3829
3857
|
"auditId": {
|
|
3830
3858
|
"type": "string"
|
|
3831
3859
|
},
|
|
@@ -7961,7 +7989,7 @@
|
|
|
7961
7989
|
"/agents/{id}/github-access": {
|
|
7962
7990
|
"get": {
|
|
7963
7991
|
"summary": "Preview the repos the agent's bound GitHub user can reach",
|
|
7964
|
-
"description": "Platform-admin only (session members, ops keys and agent keys get 403): the response lists repo names the bound user can reach. Read-only; nothing is stored. 404 for an unknown agent; 422 when no githubUsername is bound. Returns `status: unconfigured` (not an error, no GitHub call) when the
|
|
7992
|
+
"description": "Platform-admin only (session members, ops keys and agent keys get 403): the response lists repo names the bound user can reach. Read-only; nothing is stored. 404 for an unknown agent; 422 when no githubUsername is bound. Returns `status: unconfigured` (not an error, no GitHub call) when the lookup App is not configured (the installer App is optional), and `status: user_not_found` when the user does not exist on GitHub; otherwise `access` is the resolver output (per-org status, repos with level and canPush, unresolved count, complete flag).",
|
|
7965
7993
|
"parameters": [
|
|
7966
7994
|
{
|
|
7967
7995
|
"schema": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-vitals/agent-admin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.88.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/app-vitals/agent.git",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@anthropic-ai/sdk": "0.137.0",
|
|
47
|
-
"@app-vitals/agent-lib": "1.
|
|
47
|
+
"@app-vitals/agent-lib": "1.88.0",
|
|
48
48
|
"@hono/zod-openapi": "^1.0.0",
|
|
49
49
|
"@prisma/adapter-pg": "^7.10.0",
|
|
50
50
|
"@prisma/client": "^7.10.0",
|