orkestrator 2.26.0-alpha → 2.26.1-alpha
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/dist/client.js +156 -31
- package/dist/main.js +42146 -41106
- package/package.json +3 -3
- package/resources/claude-bridge/dist/index.js +40 -2
- package/resources/codex-bridge/dist/index.js +216 -73
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orkestrator",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.1-alpha",
|
|
4
4
|
"description": "Run the Orkestrator backend service without the desktop application",
|
|
5
5
|
"homepage": "https://orkestrator.dev",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"sharp": "0.35.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@orkestrator/protocol": "2.26.
|
|
43
|
-
"@orkestrator/toolchain": "2.26.
|
|
42
|
+
"@orkestrator/protocol": "2.26.1-alpha",
|
|
43
|
+
"@orkestrator/toolchain": "2.26.1-alpha"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"bun": ">=1.4.3"
|
|
@@ -12477,6 +12477,41 @@ function recordTerminalSlashCommands(version, commands) {
|
|
|
12477
12477
|
// ../../bridges/claude-bridge/src/services/session-manager-catalog.ts
|
|
12478
12478
|
import { createHash as createHash9 } from "node:crypto";
|
|
12479
12479
|
|
|
12480
|
+
// ../protocol/src/secret-redaction.ts
|
|
12481
|
+
var TEXT_RULES = [
|
|
12482
|
+
{
|
|
12483
|
+
pattern: /([a-z][a-z0-9+.-]*:\/\/)[^/\s:@]+(?::[^/\s@]*)?@/gi,
|
|
12484
|
+
replacement: "$1[redacted]@"
|
|
12485
|
+
},
|
|
12486
|
+
{
|
|
12487
|
+
pattern: /([?&](?:access[_-]?token|refresh[_-]?token|id[_-]?token|api[_-]?key|apikey|auth|authorization|token|secret|password|passwd|signature|sig|key|state|code)=)[^&\s"'`]+/gi,
|
|
12488
|
+
replacement: "$1[redacted]"
|
|
12489
|
+
},
|
|
12490
|
+
{ pattern: /\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi, replacement: "Bearer [redacted]" },
|
|
12491
|
+
{ pattern: /\bBasic\s+[A-Za-z0-9+/=]{8,}/gi, replacement: "Basic [redacted]" },
|
|
12492
|
+
{
|
|
12493
|
+
pattern: /\beyJ[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]{6,}/g,
|
|
12494
|
+
replacement: "[redacted]"
|
|
12495
|
+
},
|
|
12496
|
+
{ pattern: /\bgh[pousr]_[A-Za-z0-9]{16,}/g, replacement: "[redacted]" },
|
|
12497
|
+
{ pattern: /\bgithub_pat_[A-Za-z0-9_]{20,}/g, replacement: "[redacted]" },
|
|
12498
|
+
{ pattern: /\b(?:sk|rk|pk)-[A-Za-z0-9_-]{12,}/g, replacement: "[redacted]" },
|
|
12499
|
+
{ pattern: /\bxox[baprse]-[A-Za-z0-9-]{8,}/g, replacement: "[redacted]" },
|
|
12500
|
+
{ pattern: /\bAKIA[0-9A-Z]{12,}/g, replacement: "[redacted]" },
|
|
12501
|
+
{ pattern: /\bAIza[0-9A-Za-z_-]{20,}/g, replacement: "[redacted]" },
|
|
12502
|
+
{
|
|
12503
|
+
pattern: /\b((?:[A-Za-z0-9]+[_-])*(?:api[_-]?key|apikey|access[_-]?token|refresh[_-]?token|auth[_-]?token|token|secret|client[_-]?secret|password|passwd|passphrase|authorization))("?\s*[:=]\s*)("?)(?!Bearer\b|Basic\b|\[redacted\])[^\s"',;)&]{6,}\3/gi,
|
|
12504
|
+
replacement: "$1$2[redacted]"
|
|
12505
|
+
}
|
|
12506
|
+
];
|
|
12507
|
+
function redactSecrets(value) {
|
|
12508
|
+
let result = value;
|
|
12509
|
+
for (const rule of TEXT_RULES) {
|
|
12510
|
+
result = result.replace(new RegExp(rule.pattern.source, rule.pattern.flags), rule.replacement);
|
|
12511
|
+
}
|
|
12512
|
+
return result;
|
|
12513
|
+
}
|
|
12514
|
+
|
|
12480
12515
|
// ../../bridges/claude-bridge/src/services/claude-sign-in.ts
|
|
12481
12516
|
var AUTH_CACHE_TTL_MS = 30000;
|
|
12482
12517
|
var FAILED_AUTH_CACHE_TTL_MS = 5000;
|
|
@@ -12734,6 +12769,9 @@ function mcpTransport(status) {
|
|
|
12734
12769
|
return "http";
|
|
12735
12770
|
return;
|
|
12736
12771
|
}
|
|
12772
|
+
function mcpError(error) {
|
|
12773
|
+
return redactSecrets(error).slice(0, 2000);
|
|
12774
|
+
}
|
|
12737
12775
|
function normalizeMcp(status) {
|
|
12738
12776
|
const mappedStatus = status.status === "pending" ? "connecting" : status.status;
|
|
12739
12777
|
const tools = (status.tools ?? []).map((tool) => tool.name).filter(Boolean).slice(0, 256);
|
|
@@ -12747,7 +12785,7 @@ function normalizeMcp(status) {
|
|
|
12747
12785
|
...transport ? { transport } : {},
|
|
12748
12786
|
toolCount: tools.length,
|
|
12749
12787
|
...tools.length ? { tools } : {},
|
|
12750
|
-
...status.error ? { error: status.error
|
|
12788
|
+
...status.error ? { error: mcpError(status.error) } : {},
|
|
12751
12789
|
actions
|
|
12752
12790
|
};
|
|
12753
12791
|
}
|
|
@@ -12771,7 +12809,7 @@ async function readSessionMcpServers(sessionId) {
|
|
|
12771
12809
|
...server.scope ? { scope: server.scope } : {},
|
|
12772
12810
|
...server.transport ? { transport: server.transport } : {},
|
|
12773
12811
|
...server.tools ? { tools: server.tools.slice(0, 256), toolCount: server.tools.length } : {},
|
|
12774
|
-
...server.error ? { error: server.error
|
|
12812
|
+
...server.error ? { error: mcpError(server.error) } : {}
|
|
12775
12813
|
}));
|
|
12776
12814
|
}
|
|
12777
12815
|
return session.mcpInventory ?? [];
|