@0xmaxma/claude-gateway 2.1.4 → 2.1.6

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 (147) hide show
  1. package/dist/agent/command-help.js +2 -2
  2. package/dist/agent/command-help.js.map +1 -1
  3. package/dist/agent/runner.d.ts +8 -6
  4. package/dist/agent/runner.d.ts.map +1 -1
  5. package/dist/agent/runner.js +20 -12
  6. package/dist/agent/runner.js.map +1 -1
  7. package/dist/api/connectors-router.d.ts +4 -0
  8. package/dist/api/connectors-router.d.ts.map +1 -1
  9. package/dist/api/connectors-router.js +182 -2
  10. package/dist/api/connectors-router.js.map +1 -1
  11. package/dist/api/gateway-router.d.ts.map +1 -1
  12. package/dist/api/gateway-router.js +8 -0
  13. package/dist/api/gateway-router.js.map +1 -1
  14. package/dist/api/router.d.ts.map +1 -1
  15. package/dist/api/router.js +5 -3
  16. package/dist/api/router.js.map +1 -1
  17. package/dist/api/share-router.d.ts +1 -1
  18. package/dist/api/share-router.d.ts.map +1 -1
  19. package/dist/api/share-router.js +35 -27
  20. package/dist/api/share-router.js.map +1 -1
  21. package/dist/automation/browser-outcome.d.ts.map +1 -1
  22. package/dist/automation/browser-outcome.js +3 -2
  23. package/dist/automation/browser-outcome.js.map +1 -1
  24. package/dist/automation/browser-use.d.ts +9 -1
  25. package/dist/automation/browser-use.d.ts.map +1 -1
  26. package/dist/automation/browser-use.js +53 -3
  27. package/dist/automation/browser-use.js.map +1 -1
  28. package/dist/automation/command-speech.d.ts.map +1 -1
  29. package/dist/automation/command-speech.js +5 -1
  30. package/dist/automation/command-speech.js.map +1 -1
  31. package/dist/automation/computer-command.d.ts.map +1 -1
  32. package/dist/automation/computer-command.js +4 -1
  33. package/dist/automation/computer-command.js.map +1 -1
  34. package/dist/automation/computer-policy.d.ts.map +1 -1
  35. package/dist/automation/computer-policy.js +3 -2
  36. package/dist/automation/computer-policy.js.map +1 -1
  37. package/dist/automation/jev-vision-decider.d.ts +34 -0
  38. package/dist/automation/jev-vision-decider.d.ts.map +1 -0
  39. package/dist/automation/jev-vision-decider.js +169 -0
  40. package/dist/automation/jev-vision-decider.js.map +1 -0
  41. package/dist/automation/jev-vision-step.d.ts +133 -0
  42. package/dist/automation/jev-vision-step.d.ts.map +1 -0
  43. package/dist/automation/jev-vision-step.js +180 -0
  44. package/dist/automation/jev-vision-step.js.map +1 -0
  45. package/dist/automation/vision-decider.d.ts +17 -2
  46. package/dist/automation/vision-decider.d.ts.map +1 -1
  47. package/dist/automation/vision-decider.js +23 -8
  48. package/dist/automation/vision-decider.js.map +1 -1
  49. package/dist/automation/vision-image.d.ts +59 -0
  50. package/dist/automation/vision-image.d.ts.map +1 -0
  51. package/dist/automation/vision-image.js +125 -0
  52. package/dist/automation/vision-image.js.map +1 -0
  53. package/dist/build-provenance.json +4 -4
  54. package/dist/connectors/custom-connectors-store.d.ts +23 -0
  55. package/dist/connectors/custom-connectors-store.d.ts.map +1 -1
  56. package/dist/connectors/custom-connectors-store.js +23 -1
  57. package/dist/connectors/custom-connectors-store.js.map +1 -1
  58. package/dist/connectors/custom.d.ts +31 -0
  59. package/dist/connectors/custom.d.ts.map +1 -1
  60. package/dist/connectors/custom.js +37 -0
  61. package/dist/connectors/custom.js.map +1 -1
  62. package/dist/connectors/exposure.d.ts +23 -0
  63. package/dist/connectors/exposure.d.ts.map +1 -0
  64. package/dist/connectors/exposure.js +37 -0
  65. package/dist/connectors/exposure.js.map +1 -0
  66. package/dist/connectors/proxy.d.ts +84 -0
  67. package/dist/connectors/proxy.d.ts.map +1 -0
  68. package/dist/connectors/proxy.js +652 -0
  69. package/dist/connectors/proxy.js.map +1 -0
  70. package/dist/connectors/redirect.d.ts +12 -0
  71. package/dist/connectors/redirect.d.ts.map +1 -0
  72. package/dist/connectors/redirect.js +25 -0
  73. package/dist/connectors/redirect.js.map +1 -0
  74. package/dist/connectors/resolve.d.ts +11 -0
  75. package/dist/connectors/resolve.d.ts.map +1 -1
  76. package/dist/connectors/resolve.js +23 -2
  77. package/dist/connectors/resolve.js.map +1 -1
  78. package/dist/connectors/types.d.ts +18 -0
  79. package/dist/connectors/types.d.ts.map +1 -1
  80. package/dist/index.js +4 -0
  81. package/dist/index.js.map +1 -1
  82. package/dist/jev/browser-connector.d.ts.map +1 -1
  83. package/dist/jev/browser-connector.js +41 -6
  84. package/dist/jev/browser-connector.js.map +1 -1
  85. package/dist/jev/browser-contract.d.ts +2 -0
  86. package/dist/jev/browser-contract.d.ts.map +1 -1
  87. package/dist/jev/browser-contract.js.map +1 -1
  88. package/dist/jev/distribution.d.ts +11 -0
  89. package/dist/jev/distribution.d.ts.map +1 -0
  90. package/dist/jev/distribution.js +21 -0
  91. package/dist/jev/distribution.js.map +1 -0
  92. package/dist/jev/service.d.ts.map +1 -1
  93. package/dist/jev/service.js +7 -4
  94. package/dist/jev/service.js.map +1 -1
  95. package/dist/jev/types.d.ts +32 -0
  96. package/dist/jev/types.d.ts.map +1 -1
  97. package/dist/jev/types.js +5 -1
  98. package/dist/jev/types.js.map +1 -1
  99. package/dist/jev/validation.d.ts +6 -1
  100. package/dist/jev/validation.d.ts.map +1 -1
  101. package/dist/jev/validation.js +116 -11
  102. package/dist/jev/validation.js.map +1 -1
  103. package/dist/orchestration/capabilities.d.ts.map +1 -1
  104. package/dist/orchestration/capabilities.js +7 -1
  105. package/dist/orchestration/capabilities.js.map +1 -1
  106. package/dist/orchestration/computer-decisions.d.ts +3 -2
  107. package/dist/orchestration/computer-decisions.d.ts.map +1 -1
  108. package/dist/orchestration/computer-decisions.js +18 -4
  109. package/dist/orchestration/computer-decisions.js.map +1 -1
  110. package/dist/orchestration/gateway-tasks/browser.d.ts +2 -0
  111. package/dist/orchestration/gateway-tasks/browser.d.ts.map +1 -1
  112. package/dist/orchestration/gateway-tasks/browser.js +1 -1
  113. package/dist/orchestration/gateway-tasks/browser.js.map +1 -1
  114. package/dist/orchestration/gateway-tasks/computer.d.ts.map +1 -1
  115. package/dist/orchestration/gateway-tasks/computer.js +3 -2
  116. package/dist/orchestration/gateway-tasks/computer.js.map +1 -1
  117. package/dist/orchestration/runtime.d.ts +1 -1
  118. package/dist/orchestration/runtime.d.ts.map +1 -1
  119. package/dist/orchestration/runtime.js +2 -1
  120. package/dist/orchestration/runtime.js.map +1 -1
  121. package/dist/session/codex-process.d.ts +2 -0
  122. package/dist/session/codex-process.d.ts.map +1 -1
  123. package/dist/session/codex-process.js +5 -1
  124. package/dist/session/codex-process.js.map +1 -1
  125. package/dist/session/container-connectors.d.ts +14 -1
  126. package/dist/session/container-connectors.d.ts.map +1 -1
  127. package/dist/session/container-connectors.js +36 -0
  128. package/dist/session/container-connectors.js.map +1 -1
  129. package/dist/session/managed-connectors.d.ts +9 -7
  130. package/dist/session/managed-connectors.d.ts.map +1 -1
  131. package/dist/session/managed-connectors.js +23 -9
  132. package/dist/session/managed-connectors.js.map +1 -1
  133. package/dist/session/process.d.ts +4 -0
  134. package/dist/session/process.d.ts.map +1 -1
  135. package/dist/session/process.js +32 -4
  136. package/dist/session/process.js.map +1 -1
  137. package/dist/share/share-store.d.ts +12 -6
  138. package/dist/share/share-store.d.ts.map +1 -1
  139. package/dist/share/share-store.js +68 -18
  140. package/dist/share/share-store.js.map +1 -1
  141. package/mcp/connector-bridge.ts +161 -0
  142. package/mcp/connector-launcher.mjs +44 -0
  143. package/mcp/tools/share-file/module.ts +11 -9
  144. package/mcp/tools/shared/share-client.ts +2 -1
  145. package/mcp/tools/telegram/pure.ts +32 -7
  146. package/mcp/tools/telegram/receiver-server.ts +29 -6
  147. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"custom-connectors-store.js","sourceRoot":"","sources":["../../src/connectors/custom-connectors-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFA,kEA4JC;AAnPD,iDAAmC;AAEnC,mEAAqF;AAuDrF;;;;;;;;;;;;;;;;GAgBG;AACH,SAAS,WAAW,CAClB,GAAqD;IAErD,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;gBACZ,4EAA4E;gBAC5E,yEAAyE;gBACzE,mCAAmC;gBACnC,MAAM,IAAI,KAAK,CAAC,4BAA4B,WAAW,MAAM,UAAU,gBAAgB,CAAC,CAAC;YAC3F,CAAC;YACD,IAAI,aAAa,CAAC,MAAM,EAAE,WAAW,CAAC;gBAAE,MAAM,IAAA,qCAAiB,EAAC,UAAU,EAAE,MAAM,CAAC,CAAC;YACpF,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"custom-connectors-store.js","sourceRoot":"","sources":["../../src/connectors/custom-connectors-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGA,kEAqLC;AA5RD,iDAAmC;AAEnC,mEAAqF;AAuErF;;;;;;;;;;;;;;;;GAgBG;AACH,SAAS,WAAW,CAClB,GAAqD;IAErD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAyC,EAAE,GAAG,CAAC,CAAC;AACzF,CAAC;AASD,SAAgB,2BAA2B,CAAC,UAAmB;IAC7D,oFAAoF;IACpF,mFAAmF;IACnF,2EAA2E;IAC3E,MAAM,4BAA4B,GAAG,EAAE,GAAG,IAAI,CAAC;IAC/C,IAAI,kBAAkB,GAAG,CAAC,CAAC;IAE3B,KAAK,UAAU,MAAM,CACnB,EAA8D;QAE9D,IAAI,CAAC,UAAU;YAAE,OAAO,CAAC,qEAAqE;QAC9F,OAAO,IAAA,uCAAmB,EAAC,UAAU,EAAE,KAAK,IAAI,EAAE;YAChD,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;YACpD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAG5B,CAAC;YACF,MAAM,CAAC,OAAO,GAAG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wEAAwE;YACxE,+DAA+D;YAC/D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAiB,CAAC;YACnF,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;YACtC,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;YAChE,MAAM,CAAC,OAAO,CAAC,gBAAgB,GAAG,UAAU,CAAC;YAC7C,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CACvE,CAAC,CAAC,EAA0E,EAAE,CAC5E,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,EAAE,KAAK,QAAQ,CAC3D,CAAC;YACF,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;gBAC3B,UAAU;gBACV,MAAM;gBACN,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,wBAAwB,KAAK,KAAK;aAClE,CAAC,CAAC;YACH,IAAI,KAAK;gBAAE,MAAM,IAAA,qCAAiB,EAAC,UAAU,EAAE,MAAM,CAAC,CAAC;YACvD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AAChD,CAAC"}
@@ -3,6 +3,7 @@
3
3
  * extraction, and secret substitution. These entries are admin-trusted data,
4
4
  * not code — see CustomConnectorEntry's doc comment in connectors/types.ts.
5
5
  */
6
+ import type { CustomConnectorEntry } from './types';
6
7
  /**
7
8
  * MCP server names the gateway writes into every session's mcp-config.json itself
8
9
  * (see session/process.ts's writeMcpConfig). That writer drops any injected entry whose
@@ -66,4 +67,34 @@ export declare function isReservedPlaceholder(name: string): boolean;
66
67
  */
67
68
  export declare const MAX_CONNECTOR_ID_LENGTH = 64;
68
69
  export declare function isValidConnectorId(id: string): boolean;
70
+ /**
71
+ * How a secret-bearing connector reaches an agent without its secret being written
72
+ * into an agent-readable file (#635):
73
+ *
74
+ * 'none' No secret; the entry is written as configured.
75
+ * 'proxy' An HTTP entry. The file points Claude Code's own HTTP transport at the
76
+ * gateway's loopback proxy, which adds `url`/`headers` (connectors/proxy.ts).
77
+ * 'launch' A stdio or SSE entry. The file holds a stdio launcher that streams the
78
+ * MCP session to a gateway-spawned bridge, which receives the resolved
79
+ * entry over a pipe (mcp/connector-launcher.mjs, mcp/connector-bridge.ts).
80
+ * 'exposed' Still written resolved, exactly as before #635: the entry has a field
81
+ * only Claude Code itself can act on (`headersHelper` runs a command whose
82
+ * headers it adds per request, `oauth` starts its own sign-in against the
83
+ * entry's url), or a transport the gateway cannot carry (`ws`). Either
84
+ * field breaks behind the proxy even without a placeholder: the helper's
85
+ * headers would be dropped there, and sign-in would target the proxy URL.
86
+ *
87
+ * A placeholder in any other field is resolved in the gateway and that field is left
88
+ * out of the agent-facing entry; no transport the gateway drives reads it.
89
+ */
90
+ export type ConnectorSecretRoute = 'none' | 'proxy' | 'launch' | 'exposed';
91
+ export declare function connectorSecretRoute(entry: CustomConnectorEntry | undefined): ConnectorSecretRoute;
92
+ /** The configured fields an agent-facing entry keeps (enabled_tools, timeout, ...):
93
+ * everything except the transport fields and any field holding a placeholder. The
94
+ * unresolved config holds `{placeholder}`s, never secrets, so nothing here is one. */
95
+ export declare function agentFacingFields(config: Record<string, unknown>): Record<string, unknown>;
96
+ /** The streamable-HTTP transport, under either name a pasted mcpServers entry uses. */
97
+ export declare function isStreamableHttpType(type: unknown): boolean;
98
+ /** True when resolving this connector still writes its secret into an agent-readable file. */
99
+ export declare function exposesSecretToAgent(entry: CustomConnectorEntry): boolean;
69
100
  //# sourceMappingURL=custom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../src/connectors/custom.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAoC,CAAC;AAE5F,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAalF;AAED,kFAAkF;AAClF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAa7D;AAED,8FAA8F;AAC9F,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAczB;AAED,6FAA6F;AAC7F,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D;AAUD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEtD"}
1
+ {"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../src/connectors/custom.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAA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F;AACtF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAG1F;AAED,uFAAuF;AACvF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAE3D;AAED,8FAA8F;AAC9F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAEzE"}
@@ -14,6 +14,10 @@ exports.customSecretKey = customSecretKey;
14
14
  exports.internalSecretKey = internalSecretKey;
15
15
  exports.isReservedPlaceholder = isReservedPlaceholder;
16
16
  exports.isValidConnectorId = isValidConnectorId;
17
+ exports.connectorSecretRoute = connectorSecretRoute;
18
+ exports.agentFacingFields = agentFacingFields;
19
+ exports.isStreamableHttpType = isStreamableHttpType;
20
+ exports.exposesSecretToAgent = exposesSecretToAgent;
17
21
  const PLACEHOLDER_RE = /\{([a-zA-Z_][a-zA-Z0-9_]*)\}/g;
18
22
  /**
19
23
  * Lowercase, dash-separated id from a human label, e.g. "Google Calendar!" → "google-calendar".
@@ -155,4 +159,37 @@ exports.MAX_CONNECTOR_ID_LENGTH = 64;
155
159
  function isValidConnectorId(id) {
156
160
  return id.length <= exports.MAX_CONNECTOR_ID_LENGTH && CONNECTOR_ID_RE.test(id);
157
161
  }
162
+ const CLIENT_ONLY_FIELDS = ['headersHelper', 'oauth'];
163
+ function connectorSecretRoute(entry) {
164
+ if (!entry || !Array.isArray(entry.secretNames) || !entry.secretNames.length)
165
+ return 'none';
166
+ const config = entry.config;
167
+ if (!config || typeof config !== 'object')
168
+ return 'exposed';
169
+ if (CLIENT_ONLY_FIELDS.some(field => config[field] !== undefined))
170
+ return 'exposed';
171
+ if (isStreamableHttpType(config.type))
172
+ return 'proxy';
173
+ if (config.type === 'sse')
174
+ return 'launch';
175
+ if ((config.type === undefined || config.type === 'stdio') && typeof config.command === 'string')
176
+ return 'launch';
177
+ return 'exposed';
178
+ }
179
+ /** Fields the gateway drives each transport with; never copied into an agent-facing entry. */
180
+ const TRANSPORT_FIELDS = ['type', 'command', 'args', 'env', 'cwd', 'url', 'headers'];
181
+ /** The configured fields an agent-facing entry keeps (enabled_tools, timeout, ...):
182
+ * everything except the transport fields and any field holding a placeholder. The
183
+ * unresolved config holds `{placeholder}`s, never secrets, so nothing here is one. */
184
+ function agentFacingFields(config) {
185
+ return Object.fromEntries(Object.entries(config).filter(([field, value]) => !TRANSPORT_FIELDS.includes(field) && !extractPlaceholders(value).length));
186
+ }
187
+ /** The streamable-HTTP transport, under either name a pasted mcpServers entry uses. */
188
+ function isStreamableHttpType(type) {
189
+ return type === 'http' || type === 'streamable-http';
190
+ }
191
+ /** True when resolving this connector still writes its secret into an agent-readable file. */
192
+ function exposesSecretToAgent(entry) {
193
+ return connectorSecretRoute(entry) === 'exposed';
194
+ }
158
195
  //# sourceMappingURL=custom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom.js","sourceRoot":"","sources":["../../src/connectors/custom.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAkCH,sDAEC;AAoBD,0BAaC;AAGD,kDAaC;AAGD,wDAiBC;AAGD,0CAEC;AAcD,8CAEC;AAOD,sDAEC;AAgBD,gDAEC;AAvJD,MAAM,cAAc,GAAG,+BAA+B,CAAC;AAEvD;;;;;GAKG;AACH,SAAS,QAAQ,CAAC,KAAa,EAAE,MAAc;IAC7C,MAAM,IAAI,GAAG,KAAK;SACf,WAAW,EAAE;SACb,IAAI,EAAE;SACN,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;SAC3B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC;SAChB,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACvB,OAAO,IAAI,IAAI,WAAW,CAAC;AAC7B,CAAC;AAED;;;;;;;;;;GAUG;AACU,QAAA,sBAAsB,GAAwB,IAAI,GAAG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IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAClH,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,8FAA8F;AAC9F,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;AAErF;;sFAEsF;AACtF,SAAgB,iBAAiB,CAAC,MAA+B;IAC/D,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CACzE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9E,CAAC;AAED,uFAAuF;AACvF,SAAgB,oBAAoB,CAAC,IAAa;IAChD,OAAO,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,iBAAiB,CAAC;AACvD,CAAC;AAED,8FAA8F;AAC9F,SAAgB,oBAAoB,CAAC,KAA2B;IAC9D,OAAO,oBAAoB,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC;AACnD,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Connectors whose secret a session still wrote into an agent-readable file because
3
+ * its runtime could not use the gateway route (#635): an app-agent container without
4
+ * Node, or a workspace path too long for the launcher socket. The connector's config
5
+ * alone cannot tell this (see exposesSecretToAgent), so each spawn records what it
6
+ * actually wrote and the status API reports it per agent.
7
+ *
8
+ * Keyed by live session/grant. A new spawn or a capabilities probe must not erase an
9
+ * older session's exposure; the record ends only when its owning grant is revoked.
10
+ */
11
+ import type { CustomConnectorEntry } from '../types';
12
+ import type { ConnectorStatus } from './types';
13
+ export declare function recordRuntimeExposure(sessionId: string, agentId: string, connectorIds: Iterable<string>): void;
14
+ export declare function clearRuntimeExposure(sessionId?: string): void;
15
+ /** Agents with at least one live session that wrote this connector's secret, sorted. */
16
+ export declare function runtimeExposedAgents(connectorId: string): string[];
17
+ /**
18
+ * The status fields for one connector: `secretExposure` when its secret is written
19
+ * into an agent-readable file for every agent (its config) or for some (their
20
+ * runtime), and `exposedAgents` naming those agents in the second case.
21
+ */
22
+ export declare function secretExposureFields(id: string, entry: CustomConnectorEntry): Pick<ConnectorStatus, 'secretExposure' | 'exposedAgents'>;
23
+ //# sourceMappingURL=exposure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exposure.d.ts","sourceRoot":"","sources":["../../src/connectors/exposure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAK/C,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAI9G;AAED,wBAAgB,oBAAoB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAG7D;AAED,wFAAwF;AACxF,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAElE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC,eAAe,EAAE,gBAAgB,GAAG,eAAe,CAAC,CAIvI"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.recordRuntimeExposure = recordRuntimeExposure;
4
+ exports.clearRuntimeExposure = clearRuntimeExposure;
5
+ exports.runtimeExposedAgents = runtimeExposedAgents;
6
+ exports.secretExposureFields = secretExposureFields;
7
+ const custom_1 = require("./custom");
8
+ const bySession = new Map();
9
+ function recordRuntimeExposure(sessionId, agentId, connectorIds) {
10
+ const ids = new Set(connectorIds);
11
+ if (ids.size)
12
+ bySession.set(sessionId, { agentId, connectorIds: ids });
13
+ else
14
+ bySession.delete(sessionId);
15
+ }
16
+ function clearRuntimeExposure(sessionId) {
17
+ if (sessionId === undefined)
18
+ bySession.clear();
19
+ else
20
+ bySession.delete(sessionId);
21
+ }
22
+ /** Agents with at least one live session that wrote this connector's secret, sorted. */
23
+ function runtimeExposedAgents(connectorId) {
24
+ return [...new Set([...bySession.values()].filter(({ connectorIds }) => connectorIds.has(connectorId)).map(({ agentId }) => agentId))].sort();
25
+ }
26
+ /**
27
+ * The status fields for one connector: `secretExposure` when its secret is written
28
+ * into an agent-readable file for every agent (its config) or for some (their
29
+ * runtime), and `exposedAgents` naming those agents in the second case.
30
+ */
31
+ function secretExposureFields(id, entry) {
32
+ if ((0, custom_1.exposesSecretToAgent)(entry))
33
+ return { secretExposure: 'agent-readable' };
34
+ const agents = runtimeExposedAgents(id);
35
+ return agents.length ? { secretExposure: 'agent-readable', exposedAgents: agents } : {};
36
+ }
37
+ //# sourceMappingURL=exposure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exposure.js","sourceRoot":"","sources":["../../src/connectors/exposure.ts"],"names":[],"mappings":";;AAgBA,sDAIC;AAED,oDAGC;AAGD,oDAEC;AAOD,oDAIC;AA7BD,qCAAgD;AAEhD,MAAM,SAAS,GAAG,IAAI,GAAG,EAAkE,CAAC;AAE5F,SAAgB,qBAAqB,CAAC,SAAiB,EAAE,OAAe,EAAE,YAA8B;IACtG,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC;IAClC,IAAI,GAAG,CAAC,IAAI;QAAE,SAAS,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC;;QAClE,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC;AAED,SAAgB,oBAAoB,CAAC,SAAkB;IACrD,IAAI,SAAS,KAAK,SAAS;QAAE,SAAS,CAAC,KAAK,EAAE,CAAC;;QAC1C,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC;AAED,wFAAwF;AACxF,SAAgB,oBAAoB,CAAC,WAAmB;IACtD,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAChJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,EAAU,EAAE,KAA2B;IAC1E,IAAI,IAAA,6BAAoB,EAAC,KAAK,CAAC;QAAE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;IAC7E,MAAM,MAAM,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACxC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1F,CAAC"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Connector secrets stay in the gateway (#635).
3
+ *
4
+ * A connector's resolved mcpServers entry carries its credential: a header for HTTP,
5
+ * env/args for stdio. Writing that entry into an mcp-config file hands the credential
6
+ * to every process the agent runs, since they all run as the file's owner. Instead,
7
+ * the file gets an entry that reaches the connector through this gateway with a
8
+ * per-spawn grant (see connectorSecretRoute in custom.ts):
9
+ *
10
+ * proxy HTTP connectors: Claude Code's HTTP transport talks to the loopback route
11
+ * below, which resolves the real entry per request and forwards upstream.
12
+ * launch stdio/SSE connectors: a stdio launcher (mcp/connector-launcher.mjs) upgrades
13
+ * a gateway connection to a raw stream, and the gateway spawns
14
+ * mcp/connector-bridge.ts with the resolved entry on its stdin.
15
+ *
16
+ * Legacy app-agent containers cannot reach the host loopback address. They launch
17
+ * every connector through a unix socket the gateway binds in the bind-mounted
18
+ * workspace, and the bridge runs inside the same container with `docker exec`, so
19
+ * stdio servers and upstream URLs see the container's filesystem and network as before.
20
+ *
21
+ * A revoked grant, or a disconnected/disabled/paused/out-of-scope connector, fails
22
+ * closed on the next request or MCP operation.
23
+ */
24
+ import * as http from 'node:http';
25
+ import { type Duplex } from 'node:stream';
26
+ import type { AddressInfo } from 'node:net';
27
+ import { Router } from 'express';
28
+ import type { AgentConfig, GatewayConfig } from '../types';
29
+ export declare const CONNECTOR_PROXY_PATH = "/internal/mcp/connectors";
30
+ /** Where a legacy app-agent's launched connectors run: its container, reached
31
+ * through a socket in `hostDir`, which the container mounts at `containerDir`. */
32
+ export interface ContainerLaunch {
33
+ container: string;
34
+ hostDir: string;
35
+ containerDir: string;
36
+ /** connector-bridge.ts bundled for Node. Sent over the bridge's stdin, never put in
37
+ * the workspace, where the agent could replace code that receives the secret. */
38
+ bridgeCode: string;
39
+ }
40
+ export declare const LAUNCH_PROTOCOL = "gateway-connector-stdio";
41
+ /** Records where the gateway's HTTP server listens, so a proxy entry never points at
42
+ * an address nothing serves (a specific GATEWAY_BIND, `::1`) or at a GATEWAY_API_URL
43
+ * meant for another network. Set from the bind config before any agent starts, then
44
+ * from the bound address once listening. */
45
+ export declare function setConnectorProxyOrigin(address: AddressInfo | {
46
+ address: string;
47
+ port: number;
48
+ } | string | null | undefined): void;
49
+ /**
50
+ * Replace every secret-bearing connector in `resolved` with an entry that reaches it
51
+ * through the gateway, and mint one grant covering them. `resolved` itself stays the
52
+ * in-memory source of truth for restart fingerprints; only the returned `servers` may
53
+ * be written to disk. The caller owns the grant and must revoke it when the spawn
54
+ * that uses it ends.
55
+ *
56
+ * `container` is set for a legacy app-agent session whose container can run the
57
+ * launcher (see prepareContainerLaunch). `containerUnavailable` marks one whose
58
+ * container cannot: it keeps the resolved entries, since nothing else in the container
59
+ * can reach the gateway. Either fallback is recorded for the status API, which then
60
+ * reports this agent's secrets as agent-readable (connectors/exposure.ts).
61
+ */
62
+ export declare function agentFacingConnectors(agent: Pick<AgentConfig, 'id' | 'connectors' | 'isolateMemory'>, gateway: GatewayConfig, resolved: Record<string, unknown>, options?: {
63
+ container?: ContainerLaunch;
64
+ containerUnavailable?: boolean;
65
+ sanitizeEnv?: boolean;
66
+ }): {
67
+ servers: Record<string, unknown>;
68
+ grant?: string;
69
+ };
70
+ /** Remove launcher sockets in `dir` no live grant holds: a gateway that exited
71
+ * without revoking (crash, SIGKILL) leaves them in the agent's workspace. */
72
+ export declare function sweepStaleSockets(dir: string): void;
73
+ export declare function revokeConnectorGrant(grant: string | undefined): void;
74
+ /** Mounted on the root app BEFORE the JSON body parser: the request body is streamed
75
+ * to the upstream unread, so no size limit applies that a direct connection lacked. */
76
+ export declare function createConnectorProxyRouter(): Router;
77
+ /**
78
+ * A launcher's upgrade request (mcp/connector-launcher.mjs). Returns false when the
79
+ * request is not for this route, so the server's other upgrade handlers can run.
80
+ * After the 101 the socket carries one JSON line (the launcher's cwd and env), then
81
+ * the MCP stdio stream in both directions, piped to and from a bridge process.
82
+ */
83
+ export declare function handleConnectorUpgrade(req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean;
84
+ //# sourceMappingURL=proxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../src/connectors/proxy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;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