@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/e2e/agents-page.e2e.ts +61 -21
- package/e2e/marketplaces-section.e2e.ts +5 -24
- package/e2e/plugins-section.e2e.ts +6 -27
- package/package.json +2 -2
- package/src/admin-ui-agent-sections.unit.test.ts +95 -0
- package/src/admin-ui-agent-template.smoke.test.ts +421 -0
- package/src/admin-ui-github-identity-pages.unit.test.ts +22 -1
- package/src/admin-ui-github-identity.smoke.test.ts +1 -1
- package/src/admin-ui-installation-repos.smoke.test.ts +7 -7
- package/src/admin-ui-pages.ts +269 -119
- package/src/admin-ui-pages.unit.test.ts +166 -225
- package/src/admin-ui-styles.ts +8 -65
- package/src/admin-ui.smoke.test.ts +171 -69
- package/src/admin-ui.ts +325 -86
- package/src/agent-envs.ts +5 -1
- package/src/agents.ts +3 -0
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 = {
|