@app-vitals/agent-lib 1.80.0 → 1.82.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 +24 -2
  2. package/package.json +1 -1
package/admin-types.ts CHANGED
@@ -3264,7 +3264,7 @@ export interface paths {
3264
3264
  };
3265
3265
  /**
3266
3266
  * List the repos on the agent App's installation
3267
- * @description Platform-admin only (session members, ops keys and agent keys get 403). Per org the agent's own GitHub App (its GH_APP_ID) is installed on, lists the installation's repos. When the agent has a bound githubUsername, each repo carries `userCanPush` from the access lookup only when that org's lookup result is complete; otherwise the field is omitted (never false). 404 for an unknown agent; 422 when the agent has no GH_APP_ID.
3267
+ * @description Platform-admin only (session members, ops keys and agent keys get 403). Per org the agent's own GitHub App (its GH_APP_ID) is installed on, lists the installation's repos from the background-synced cache; it makes no GitHub call. Sync detail (`complete`, `syncedAt`, `reposSeen`, `totalCount`, `lastError`, `rateLimitResetAt`) is reported per org and overall. When the agent has a bound githubUsername, each repo carries `userCanPush` from cached access rows only when that org's snapshot is complete and every repo has an answer; otherwise the field is omitted (never false). 404 for an unknown agent; 422 when the agent has no GH_APP_ID.
3268
3268
  */
3269
3269
  get: {
3270
3270
  parameters: {
@@ -5952,11 +5952,33 @@ export interface components {
5952
5952
  };
5953
5953
  GithubInstallationReposList: {
5954
5954
  appId: number;
5955
+ /** @description Whether the cached crawl is complete. While false the list may be partial. */
5956
+ complete?: boolean;
5957
+ /** @description When the completed crawl finished (ISO 8601). */
5958
+ syncedAt?: string;
5959
+ /** @description Repos in the cache (the N of 'N of M'). */
5960
+ reposSeen?: number;
5961
+ /** @description GitHub's repo count, when known (the M). */
5962
+ totalCount?: number;
5963
+ lastError?: string;
5964
+ /** @description When the GitHub rate limit resets (ISO 8601). */
5965
+ rateLimitResetAt?: string;
5955
5966
  orgs: {
5956
5967
  org: string;
5968
+ /** @description Whether the cached crawl is complete. While false the list may be partial. */
5969
+ complete?: boolean;
5970
+ /** @description When the completed crawl finished (ISO 8601). */
5971
+ syncedAt?: string;
5972
+ /** @description Repos in the cache (the N of 'N of M'). */
5973
+ reposSeen?: number;
5974
+ /** @description GitHub's repo count, when known (the M). */
5975
+ totalCount?: number;
5976
+ lastError?: string;
5977
+ /** @description When the GitHub rate limit resets (ISO 8601). */
5978
+ rateLimitResetAt?: string;
5957
5979
  repos: {
5958
5980
  fullName: string;
5959
- /** @description Whether the agent's bound GitHub user can push. Omitted when no username is bound or the org's access lookup is incomplete; never reported as false for unknown. */
5981
+ /** @description Whether the agent's bound GitHub user can push, from cached access rows. Omitted when no username is bound or the org's access data is incomplete (a missing or errored pair is never reported as false). */
5960
5982
  userCanPush?: boolean;
5961
5983
  }[];
5962
5984
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-vitals/agent-lib",
3
- "version": "1.80.0",
3
+ "version": "1.82.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/app-vitals/agent.git",