@app-vitals/agent-admin 1.48.0 → 1.50.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/src/agent-envs.ts CHANGED
@@ -37,6 +37,8 @@ export interface AgentEnvEntry {
37
37
  interface AgentEnvResult {
38
38
  env: Record<string, string>;
39
39
  secretKeys: string[];
40
+ /** ATP-2.4: row source per key (`template` | `custom`). */
41
+ sources?: Record<string, string>;
40
42
  }
41
43
 
42
44
  // ─── Service ──────────────────────────────────────────────────────────────────
@@ -222,8 +224,10 @@ export class AgentEnvService {
222
224
 
223
225
  const env: Record<string, string> = {};
224
226
  const secretKeys: string[] = [];
227
+ const sources: Record<string, string> = {};
225
228
 
226
229
  for (const row of rows) {
230
+ sources[row.key] = row.source;
227
231
  if (row.secret) {
228
232
  env[row.key] = "***";
229
233
  secretKeys.push(row.key);
@@ -232,7 +236,7 @@ export class AgentEnvService {
232
236
  }
233
237
  }
234
238
 
235
- return { env, secretKeys };
239
+ return { env, secretKeys, sources };
236
240
  }
237
241
 
238
242
  /**
package/src/agents.ts CHANGED
@@ -152,6 +152,8 @@ export interface AgentDetail extends Partial<AgentAnthropicIdentity> {
152
152
  maxFindings?: number;
153
153
  cleanupMergedWorktrees?: boolean;
154
154
  cleanupAfterDays?: number;
155
+ /** ATP-2.4: the agent no longer follows its template. Optional for fixture compat. */
156
+ templateDetached?: boolean;
155
157
  }
156
158
 
157
159
  interface UpdateSelfHostedInput {
@@ -281,6 +283,7 @@ const SUMMARY_SELECT = {
281
283
  anthropicFederationRuleId: true,
282
284
  k8sServiceAccountName: true,
283
285
  podServiceAccountName: true,
286
+ templateDetached: true,
284
287
  } as const;
285
288
 
286
289
  const DETAIL_SELECT = {