@agentprojectcontext/apx 1.53.2 → 1.53.4

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.
@@ -18,7 +18,7 @@
18
18
  <link rel="apple-touch-icon" href="/favicon/dark/apple-touch-icon.png" media="(prefers-color-scheme: dark)" />
19
19
  <link rel="manifest" href="/favicon/white/site.webmanifest" media="(prefers-color-scheme: light)" />
20
20
  <link rel="manifest" href="/favicon/dark/site.webmanifest" media="(prefers-color-scheme: dark)" />
21
- <script type="module" crossorigin src="/assets/index-vuz4PKLd.js"></script>
21
+ <script type="module" crossorigin src="/assets/index-Cy355-jV.js"></script>
22
22
  <link rel="stylesheet" crossorigin href="/assets/index-BwnMDZaD.css">
23
23
  </head>
24
24
  <body class="bg-background text-foreground antialiased">
@@ -957,21 +957,21 @@
957
957
  }
958
958
  },
959
959
  "node_modules/@radix-ui/react-dialog": {
960
- "version": "1.1.17",
961
- "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.17.tgz",
962
- "integrity": "sha512-TDTYmpdq8dI2+Xgvgj9AJ8Ghqq+Eph/TRVEdaFQPDItIY+6QSkU7MJMeevw1568Yw/2Ijz8BTphPSP2XejKphw==",
960
+ "version": "1.1.18",
961
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.18.tgz",
962
+ "integrity": "sha512-apa28mldjMgORmE6g/w3sCcA0Y9UAVeeDVoozN4i7kOw12mLl9RBchfzK3Nn6qxOWjrZhK1Lfy7f07kyzxtnBw==",
963
963
  "license": "MIT",
964
964
  "dependencies": {
965
965
  "@radix-ui/primitive": "1.1.4",
966
966
  "@radix-ui/react-compose-refs": "1.1.3",
967
967
  "@radix-ui/react-context": "1.1.4",
968
- "@radix-ui/react-dismissable-layer": "1.1.13",
968
+ "@radix-ui/react-dismissable-layer": "1.1.14",
969
969
  "@radix-ui/react-focus-guards": "1.1.4",
970
- "@radix-ui/react-focus-scope": "1.1.10",
970
+ "@radix-ui/react-focus-scope": "1.1.11",
971
971
  "@radix-ui/react-id": "1.1.2",
972
- "@radix-ui/react-portal": "1.1.12",
972
+ "@radix-ui/react-portal": "1.1.13",
973
973
  "@radix-ui/react-presence": "1.1.6",
974
- "@radix-ui/react-primitive": "2.1.6",
974
+ "@radix-ui/react-primitive": "2.1.7",
975
975
  "@radix-ui/react-slot": "1.3.0",
976
976
  "@radix-ui/react-use-controllable-state": "1.2.3",
977
977
  "aria-hidden": "^1.2.4",
@@ -993,16 +993,16 @@
993
993
  }
994
994
  },
995
995
  "node_modules/@radix-ui/react-dismissable-layer": {
996
- "version": "1.1.13",
997
- "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.13.tgz",
998
- "integrity": "sha512-2v+zNAWWe0ySxgC0D0yeXMPQ23xZVgXZTerTz+JKlmdRj6gfTqmCcR29jb6d290DezXPGgruHWDX/vYUebtErg==",
996
+ "version": "1.1.14",
997
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.14.tgz",
998
+ "integrity": "sha512-4lUhWTWAjbDIqFrAPWJ3WqBOpO5YchVZ88X3nh6H9Lu5AFi5nCUeTPj3D8FSDmabmFeRe9ME0BDA4MwKTha5GQ==",
999
999
  "license": "MIT",
1000
1000
  "dependencies": {
1001
1001
  "@radix-ui/primitive": "1.1.4",
1002
1002
  "@radix-ui/react-compose-refs": "1.1.3",
1003
- "@radix-ui/react-primitive": "2.1.6",
1003
+ "@radix-ui/react-primitive": "2.1.7",
1004
1004
  "@radix-ui/react-use-callback-ref": "1.1.2",
1005
- "@radix-ui/react-use-escape-keydown": "1.1.2"
1005
+ "@radix-ui/react-use-effect-event": "0.0.3"
1006
1006
  },
1007
1007
  "peerDependencies": {
1008
1008
  "@types/react": "*",
@@ -1035,13 +1035,13 @@
1035
1035
  }
1036
1036
  },
1037
1037
  "node_modules/@radix-ui/react-focus-scope": {
1038
- "version": "1.1.10",
1039
- "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.10.tgz",
1040
- "integrity": "sha512-Fas/lXQqhVvqwAb64s5RFeHiHYElZ6SUQbZaNd6EkfhP/Al7wTIQ9WIR4QVX475tlu5yFCEdDcJH6/UwsZjMWw==",
1038
+ "version": "1.1.11",
1039
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.11.tgz",
1040
+ "integrity": "sha512-Mn88Vg2whaRocGJNOH+DKFqYm6ySFPQaiwHNxZPyjn99B52KAEJWWY9NP83+nWdk2HM3rdov+STu9AG471Rt9w==",
1041
1041
  "license": "MIT",
1042
1042
  "dependencies": {
1043
1043
  "@radix-ui/react-compose-refs": "1.1.3",
1044
- "@radix-ui/react-primitive": "2.1.6",
1044
+ "@radix-ui/react-primitive": "2.1.7",
1045
1045
  "@radix-ui/react-use-callback-ref": "1.1.2"
1046
1046
  },
1047
1047
  "peerDependencies": {
@@ -1078,12 +1078,12 @@
1078
1078
  }
1079
1079
  },
1080
1080
  "node_modules/@radix-ui/react-portal": {
1081
- "version": "1.1.12",
1082
- "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.12.tgz",
1083
- "integrity": "sha512-m309havGzsjLHHaIX50G5PlvRs3xkgPCsGk/5PTvYm8D5q33yG0J7w/712PTOhid7NTaFETtnSXjngHQavvhVw==",
1081
+ "version": "1.1.13",
1082
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.13.tgz",
1083
+ "integrity": "sha512-z3oXfmaHLJTF1wktbjgD6cn9jiEbq3WSondB10LIuIt2m2Ym4iJlrW04/euMwENDdWDdE7z+OuY7Qyp1YpRSwA==",
1084
1084
  "license": "MIT",
1085
1085
  "dependencies": {
1086
- "@radix-ui/react-primitive": "2.1.6",
1086
+ "@radix-ui/react-primitive": "2.1.7",
1087
1087
  "@radix-ui/react-use-layout-effect": "1.1.2"
1088
1088
  },
1089
1089
  "peerDependencies": {
@@ -1125,9 +1125,9 @@
1125
1125
  }
1126
1126
  },
1127
1127
  "node_modules/@radix-ui/react-primitive": {
1128
- "version": "2.1.6",
1129
- "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.6.tgz",
1130
- "integrity": "sha512-wetd0QI77DbvrPpTAvH1SqOxsYF2wZe5TNxqwOd5Ty4XDpV3dpV0s8K/1MGMJBeY5o7lg8ub5VIt1Ub+yVen6g==",
1128
+ "version": "2.1.7",
1129
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.7.tgz",
1130
+ "integrity": "sha512-bC3NiwsprbxKjuon9l7X6BUTw7FPVzEYaL92MPEY5SCd/9hUTPXVFtVwRix7778wtRsVao+zE062gL79FZleeQ==",
1131
1131
  "license": "MIT",
1132
1132
  "dependencies": {
1133
1133
  "@radix-ui/react-slot": "1.3.0"
@@ -1217,24 +1217,6 @@
1217
1217
  }
1218
1218
  }
1219
1219
  },
1220
- "node_modules/@radix-ui/react-use-escape-keydown": {
1221
- "version": "1.1.2",
1222
- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.2.tgz",
1223
- "integrity": "sha512-2uVLvLjgO7NZCWw01/FdqRwmA42J0BcjPMUCA+koFEOAb+zjqIP7SiFz/7zWPrKnVmSqr76Omq2ALyCuX4dhLw==",
1224
- "license": "MIT",
1225
- "dependencies": {
1226
- "@radix-ui/react-use-callback-ref": "1.1.2"
1227
- },
1228
- "peerDependencies": {
1229
- "@types/react": "*",
1230
- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
1231
- },
1232
- "peerDependenciesMeta": {
1233
- "@types/react": {
1234
- "optional": true
1235
- }
1236
- }
1237
- },
1238
1220
  "node_modules/@radix-ui/react-use-layout-effect": {
1239
1221
  "version": "1.1.2",
1240
1222
  "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.2.tgz",
@@ -2598,9 +2580,9 @@
2598
2580
  "license": "MIT"
2599
2581
  },
2600
2582
  "node_modules/electron-to-chromium": {
2601
- "version": "1.5.382",
2602
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.382.tgz",
2603
- "integrity": "sha512-8ETaWbV6SZOrno+G93Ffd9ENsMtetqdnqj4nlfxFW90Sm5GgnuV28Kf62hqQVD6VUgzm7qFQKsTsAPmeUiU3Ug==",
2583
+ "version": "1.5.383",
2584
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.383.tgz",
2585
+ "integrity": "sha512-I2484/KkAvl8lm9VyjH2JnbOIV0d/UCqT7gbzs6l+o6Vmn9wgB66uVcKX+Vk6HrXtY6fbWTOEXuv8waDTuFNCw==",
2604
2586
  "dev": true,
2605
2587
  "license": "ISC"
2606
2588
  },
@@ -543,6 +543,7 @@ export const en = {
543
543
  new: "MCP",
544
544
  delete_confirm: "Delete MCP {name} from scope {scope}?",
545
545
  conflicts: "⚠ Conflicts: {names}",
546
+ conflict_detail: "{name} is defined in {winner} and {loser}. APX uses {winner}; {loser} is ignored.",
546
547
  new_title: "New MCP",
547
548
  new_desc: "POST /projects/:pid/mcps?scope=…",
548
549
  scope_label: "Scope",
@@ -583,6 +584,14 @@ export const en = {
583
584
  scope_runtime: "Runtime",
584
585
  scope_shared: "Shared",
585
586
  scope_global: "Global",
587
+ source_runtime: "Runtime",
588
+ source_apc: "APC / Shared",
589
+ source_claude: "Claude",
590
+ source_codex: "Codex",
591
+ source_cursor: "Cursor",
592
+ source_vscode: "VS Code",
593
+ source_roo: "Roo",
594
+ source_gemini: "Gemini",
586
595
  scope_runtime_desc: "This project only · with secrets · not committed (~/.apx/projects/<id>/mcps.json)",
587
596
  scope_shared_desc: "This project only · committeable · no secrets (.apc/mcps.json)",
588
597
  scope_global_desc: "All projects on this machine (~/.apx/mcps.json)",
@@ -544,6 +544,7 @@ export const es = {
544
544
  new: "MCP",
545
545
  delete_confirm: "Borrar MCP {name} de scope {scope}?",
546
546
  conflicts: "⚠ Conflictos: {names}",
547
+ conflict_detail: "{name} está definido en {winner} y {loser}. Se usa {winner}; {loser} queda ignorado.",
547
548
  new_title: "Nuevo MCP",
548
549
  edit_title: "Editar MCP",
549
550
  new_desc: "Se guarda según el scope elegido. Los valores con ${var.X} se resuelven al arrancar el MCP.",
@@ -551,6 +552,14 @@ export const es = {
551
552
  scope_runtime: "Runtime",
552
553
  scope_shared: "Shared",
553
554
  scope_global: "Global",
555
+ source_runtime: "Runtime",
556
+ source_apc: "APC / Shared",
557
+ source_claude: "Claude",
558
+ source_codex: "Codex",
559
+ source_cursor: "Cursor",
560
+ source_vscode: "VS Code",
561
+ source_roo: "Roo",
562
+ source_gemini: "Gemini",
554
563
  scope_runtime_desc: "Solo este proyecto · con secrets · no se commitea (~/.apx/projects/<id>/mcps.json)",
555
564
  scope_shared_desc: "Solo este proyecto · committeable · sin secrets (.apc/mcps.json)",
556
565
  scope_global_desc: "Todos los proyectos de esta máquina (~/.apx/mcps.json)",
@@ -6,7 +6,7 @@ export type McpScope = "shared" | "runtime" | "global";
6
6
  export interface McpCheck {
7
7
  sources: Array<{ name: string; path: string }>;
8
8
  entries: McpEntry[];
9
- conflicts: Array<{ name: string; sources: string[] }>;
9
+ conflicts: Array<{ name: string; winner: string; loser: string }>;
10
10
  }
11
11
 
12
12
  export interface McpAddBody {
@@ -32,8 +32,14 @@ function sourceToScope(source: string): McpScope {
32
32
  }
33
33
 
34
34
  function sourceLabel(source: string): string {
35
- if (source === "apc") return t("project.mcps.scope_shared");
36
- if (source === "runtime") return t("project.mcps.scope_runtime");
35
+ if (source === "runtime") return t("project.mcps.source_runtime");
36
+ if (source === "apc") return t("project.mcps.source_apc");
37
+ if (source === "claude") return t("project.mcps.source_claude");
38
+ if (source === "codex") return t("project.mcps.source_codex");
39
+ if (source === "cursor") return t("project.mcps.source_cursor");
40
+ if (source === "vscode") return t("project.mcps.source_vscode");
41
+ if (source === "roo") return t("project.mcps.source_roo");
42
+ if (source === "gemini") return t("project.mcps.source_gemini");
37
43
  if (source === "global") return t("project.mcps.scope_global");
38
44
  return source;
39
45
  }
@@ -88,7 +94,23 @@ export function McpsTab({ pid }: { pid: string }) {
88
94
  >
89
95
  {conflicts.data?.conflicts?.length ? (
90
96
  <div className="mb-3 rounded-md border border-amber-500/40 bg-amber-500/10 p-2 text-xs">
91
- {t("project.mcps.conflicts", { names: conflicts.data.conflicts.map((c: any) => c.name).join(", ") })}
97
+ <div className="font-medium">
98
+ {t("project.mcps.conflicts", { names: conflicts.data.conflicts.map((c) => c.name).join(", ") })}
99
+ </div>
100
+ <ul className="mt-1 space-y-1 text-muted-fg">
101
+ {conflicts.data.conflicts.map((c) => (
102
+ <li key={`${c.name}-${c.winner}-${c.loser}`} className="flex gap-2">
103
+ <span aria-hidden="true">•</span>
104
+ <span>
105
+ {t("project.mcps.conflict_detail", {
106
+ name: c.name,
107
+ winner: sourceLabel(c.winner),
108
+ loser: sourceLabel(c.loser),
109
+ })}
110
+ </span>
111
+ </li>
112
+ ))}
113
+ </ul>
92
114
  </div>
93
115
  ) : null}
94
116