replicas-engine 0.1.1087 → 0.1.1089
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/src/{asp-host-VPTPDJF5.js → asp-host-Z6MVYB2C.js} +5 -5
- package/dist/src/{chunk-ZJQFQTC3.js → chunk-F5VOF3HT.js} +6 -6
- package/dist/src/{chunk-QKMAW5ZH.js → chunk-HHW4YC57.js} +1 -1
- package/dist/src/{chunk-ELWT2ACE.js → chunk-HYDDOO7J.js} +2 -2
- package/dist/src/{chunk-AANHXJPT.js → chunk-MOAPV7VI.js} +3 -3
- package/dist/src/{chunk-J3H4SUPO.js → chunk-Q4JSCLJS.js} +1 -1
- package/dist/src/{chunk-SRC2625R.js → chunk-TJ7KHCOG.js} +2 -2
- package/dist/src/{chunk-JXRIB4Y4.js → chunk-X7G3DHTV.js} +46 -2
- package/dist/src/{chunk-WPZOO2B7.js → chunk-XUUWIXTH.js} +2 -2
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +12 -10
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
- package/workspace-sdk/index.js +8 -1
- package/workspace-sdk/shared/routes/plugin-catalog.d.ts +16 -0
- package/workspace-sdk/shared/routes/plugins.d.ts +2 -0
- package/workspace-sdk/shared/workspace-sdk.d.ts +13 -0
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
listRunningCodexModels,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-F5VOF3HT.js";
|
|
12
|
+
import "./chunk-TJ7KHCOG.js";
|
|
13
|
+
import "./chunk-MOAPV7VI.js";
|
|
14
|
+
import "./chunk-HHW4YC57.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-X7G3DHTV.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
resolveDiffBase,
|
|
11
11
|
runGitCommand,
|
|
12
12
|
setAgentCredentialSnapshot
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TJ7KHCOG.js";
|
|
14
14
|
import {
|
|
15
15
|
AppServerProcess,
|
|
16
16
|
buildCodexAgentEnv
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MOAPV7VI.js";
|
|
18
18
|
import {
|
|
19
19
|
SUBPROCESS_MAX_BUFFER,
|
|
20
20
|
execFileAsync
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HHW4YC57.js";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
24
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
resolveOpenAICompatibleModelsUrl,
|
|
56
56
|
splitMultitaskInstructions,
|
|
57
57
|
withTimeout
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-X7G3DHTV.js";
|
|
59
59
|
|
|
60
60
|
// src/managers/codex-token-manager.ts
|
|
61
61
|
import { promises as fs } from "fs";
|
|
@@ -291,7 +291,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
291
291
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
292
292
|
await this.applyCredentialsResponse(data);
|
|
293
293
|
setAgentCredentialSnapshot("codex", data);
|
|
294
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
294
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-Z6MVYB2C.js");
|
|
295
295
|
await restartCodexAspHostIfRunning2();
|
|
296
296
|
});
|
|
297
297
|
await this.start(true);
|
|
@@ -312,7 +312,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
312
312
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
313
313
|
await this.applyCredentialsResponse(data);
|
|
314
314
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
315
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
315
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-Z6MVYB2C.js");
|
|
316
316
|
await restartCodexAspHostIfRunning2();
|
|
317
317
|
}
|
|
318
318
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
HOOK_EXEC_MAX_BUFFER_BYTES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X7G3DHTV.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getOriginDefaultBranch,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
runGitCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TJ7KHCOG.js";
|
|
9
9
|
import {
|
|
10
10
|
extractCommandProtectionCommandText,
|
|
11
11
|
findCommandProtectionGitLookups,
|
|
12
12
|
findGitCommitSignals,
|
|
13
13
|
findPrMergeSignals,
|
|
14
14
|
parseCommandProtectionRequest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-X7G3DHTV.js";
|
|
16
16
|
|
|
17
17
|
// src/services/command-protection-service.ts
|
|
18
18
|
import { readFile, stat } from "fs/promises";
|
|
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
execFileAsync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HHW4YC57.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X7G3DHTV.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/codex-agent-env.ts
|
|
12
12
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
|
|
|
240
240
|
if (method === "foundry") return "azure";
|
|
241
241
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
242
242
|
}
|
|
243
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
243
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1089";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
SUBPROCESS_MAX_BUFFER,
|
|
6
6
|
execFileAsync
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HHW4YC57.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord as isRecord2
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isValidAgentProvider,
|
|
19
19
|
parsePosixEnvFile,
|
|
20
20
|
readReplicasRuntimeEnv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X7G3DHTV.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-env-loader.ts
|
|
24
24
|
import { readFileSync } from "fs";
|
|
@@ -4497,6 +4497,8 @@ Use this when:
|
|
|
4497
4497
|
- The user asks to inspect Vanta controls, tests, evidence, vendors, risks, or compliance data
|
|
4498
4498
|
- The user asks to query or update a connected turbopuffer namespace
|
|
4499
4499
|
- The user asks for PlanetScale organizations, databases, branches, or Insights data
|
|
4500
|
+
- The user asks to read, triage, label, or draft replies to LinkedIn messages through Kondo
|
|
4501
|
+
- The user asks to query Sazabi logs, investigate Sazabi issues, or ask the Sazabi agent about production
|
|
4500
4502
|
- The user asks to analyze text with Pangram`;
|
|
4501
4503
|
var REFERENCE9 = `# Plugins
|
|
4502
4504
|
|
|
@@ -4593,6 +4595,29 @@ const databases = await replicas.planetscale.request('/organizations/acme/databa
|
|
|
4593
4595
|
|
|
4594
4596
|
OAuth scopes control permitted operations. Confirm mutations before using POST, PUT, PATCH, or DELETE.
|
|
4595
4597
|
|
|
4598
|
+
## Sazabi
|
|
4599
|
+
|
|
4600
|
+
Sazabi is a native OAuth integration. Its MCP server has two tools: \`search\` finds an operation and \`execute\` runs it. Replicas refreshes access tokens server-side:
|
|
4601
|
+
|
|
4602
|
+
\`\`\`ts
|
|
4603
|
+
const hits = await replicas.sazabi.call('search', { query: 'log query', namespace: 'sazabi' });
|
|
4604
|
+
const schema = await replicas.sazabi.call('search', { query: 'sazabi/logs.ask', namespace: 'sazabi', includeInputSchema: true });
|
|
4605
|
+
const answer = await replicas.sazabi.call('execute', { name: 'sazabi/logs.ask', arguments: { question: 'Why did checkout 500 in the last hour?' } });
|
|
4606
|
+
\`\`\`
|
|
4607
|
+
|
|
4608
|
+
Copy each hit's \`name\` into \`execute\` and match its input schema. Agent runs that outlive \`execute\` return a run ID; poll it with \`sazabi/runs.get\`. Calls act as the user who connected Sazabi, with that user's read and write access, so confirm mutations first. See [Sazabi's MCP reference](https://docs.sazabi.com/reference/mcp-server).
|
|
4609
|
+
|
|
4610
|
+
## Kondo
|
|
4611
|
+
|
|
4612
|
+
Kondo is a native OAuth integration for the user's LinkedIn inbox. List its MCP tools first, since Kondo adds tools over time, then call one by name:
|
|
4613
|
+
|
|
4614
|
+
\`\`\`ts
|
|
4615
|
+
const { tools } = await replicas.kondo.tools();
|
|
4616
|
+
const inboxes = await replicas.kondo.call('list_inboxes');
|
|
4617
|
+
\`\`\`
|
|
4618
|
+
|
|
4619
|
+
Calls reach LinkedIn through Kondo in the user's browser: if they fail or time out, ask the user to keep Kondo open in exactly one tab. Label tools take ids from \`list_inboxes\`. \`set_chat_draft\` only fills the compose box; never say a message was sent. See [Kondo's LinkedIn guide](https://www.trykondo.com/skills/kondo-linkedin.md).
|
|
4620
|
+
|
|
4596
4621
|
## Vercel
|
|
4597
4622
|
|
|
4598
4623
|
Vercel is a native access-token integration. Pass a relative path from the Vercel REST API, including a \`teamId\` query parameter for team-owned resources:
|
|
@@ -8647,6 +8672,7 @@ var CODEX_AUTH_ENV_KEYS_BY_METHOD = {
|
|
|
8647
8672
|
|
|
8648
8673
|
// ../shared/src/routes/claude.ts
|
|
8649
8674
|
var CLAUDE_AUTH_ENV_KEYS = [
|
|
8675
|
+
"CLAUDE_CODE_OAUTH_TOKEN",
|
|
8650
8676
|
"ANTHROPIC_API_KEY",
|
|
8651
8677
|
"ANTHROPIC_AUTH_TOKEN",
|
|
8652
8678
|
"ANTHROPIC_BASE_URL",
|
|
@@ -8673,7 +8699,7 @@ function claudeAuthEnvFromResponse(response) {
|
|
|
8673
8699
|
REPLICAS_CLAUDE_AUTH_METHOD: "ollama"
|
|
8674
8700
|
};
|
|
8675
8701
|
case "oauth":
|
|
8676
|
-
return { REPLICAS_CLAUDE_AUTH_METHOD: "oauth" };
|
|
8702
|
+
return response.refreshToken ? { REPLICAS_CLAUDE_AUTH_METHOD: "oauth" } : { CLAUDE_CODE_OAUTH_TOKEN: response.accessToken, REPLICAS_CLAUDE_AUTH_METHOD: "oauth" };
|
|
8677
8703
|
case "api_key":
|
|
8678
8704
|
return { ANTHROPIC_API_KEY: response.apiKey, REPLICAS_CLAUDE_AUTH_METHOD: "api_key" };
|
|
8679
8705
|
case "bedrock":
|
|
@@ -8699,7 +8725,7 @@ function claudeAuthEnvFromResponse(response) {
|
|
|
8699
8725
|
}
|
|
8700
8726
|
var CLAUDE_AUTH_ENV_KEYS_BY_METHOD = {
|
|
8701
8727
|
none: [],
|
|
8702
|
-
oauth: ["REPLICAS_CLAUDE_AUTH_METHOD"],
|
|
8728
|
+
oauth: ["CLAUDE_CODE_OAUTH_TOKEN", "REPLICAS_CLAUDE_AUTH_METHOD"],
|
|
8703
8729
|
api_key: ["ANTHROPIC_API_KEY", "REPLICAS_CLAUDE_AUTH_METHOD"],
|
|
8704
8730
|
"openai-compatible": [],
|
|
8705
8731
|
ollama: ["ANTHROPIC_API_KEY", "ANTHROPIC_AUTH_TOKEN", "ANTHROPIC_BASE_URL", "REPLICAS_CLAUDE_AUTH_METHOD"],
|
|
@@ -9275,6 +9301,15 @@ var EXPLICIT_PLUGIN_CATALOG = [
|
|
|
9275
9301
|
name: "PlanetScale",
|
|
9276
9302
|
description: "Manage organizations, databases, branches, deploy requests, and Insights."
|
|
9277
9303
|
},
|
|
9304
|
+
{
|
|
9305
|
+
id: "sazabi",
|
|
9306
|
+
backend: "native",
|
|
9307
|
+
toolkit: "sazabi",
|
|
9308
|
+
authType: "oauth",
|
|
9309
|
+
category: "data",
|
|
9310
|
+
name: "Sazabi",
|
|
9311
|
+
description: "Query logs, investigate issues, and run the Sazabi observability agent."
|
|
9312
|
+
},
|
|
9278
9313
|
{
|
|
9279
9314
|
id: "stripe",
|
|
9280
9315
|
backend: "composio",
|
|
@@ -9284,6 +9319,15 @@ var EXPLICIT_PLUGIN_CATALOG = [
|
|
|
9284
9319
|
name: "Stripe",
|
|
9285
9320
|
description: "Manage customers, payments, invoices, subscriptions, and balances."
|
|
9286
9321
|
},
|
|
9322
|
+
{
|
|
9323
|
+
id: "kondo",
|
|
9324
|
+
backend: "native",
|
|
9325
|
+
toolkit: "kondo",
|
|
9326
|
+
authType: "oauth",
|
|
9327
|
+
category: "business",
|
|
9328
|
+
name: "Kondo",
|
|
9329
|
+
description: "Manage LinkedIn chats, labels, reminders, drafts, connections, and invites."
|
|
9330
|
+
},
|
|
9287
9331
|
{
|
|
9288
9332
|
id: "lightfield",
|
|
9289
9333
|
backend: "native",
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
AspClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MOAPV7VI.js";
|
|
7
7
|
import {
|
|
8
8
|
ASTER_BASE_URL,
|
|
9
9
|
ASTER_PROVIDER,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
codexReasoningEffortForThinkingLevel,
|
|
12
12
|
isRecord,
|
|
13
13
|
readOllamaAuthEnv
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-X7G3DHTV.js";
|
|
15
15
|
|
|
16
16
|
// src/managers/codex-asp/notification-dispatch.ts
|
|
17
17
|
var TURN_STARTED_METHOD = "turn/started";
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
evaluateCommandProtection
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-HYDDOO7J.js";
|
|
7
|
+
import "./chunk-TJ7KHCOG.js";
|
|
8
|
+
import "./chunk-HHW4YC57.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-X7G3DHTV.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
recoverCompletedTurn,
|
|
14
14
|
spawnMuseMsp,
|
|
15
15
|
startMuseSession
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XUUWIXTH.js";
|
|
17
17
|
import {
|
|
18
18
|
AppServerProcess,
|
|
19
19
|
buildCodexAgentEnv
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-MOAPV7VI.js";
|
|
21
|
+
import "./chunk-HHW4YC57.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT,
|
|
24
24
|
OPENCODE_GO_PROVIDER,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
headlessAgentUsagePath,
|
|
29
29
|
isRecord,
|
|
30
30
|
withTimeout
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-X7G3DHTV.js";
|
|
32
32
|
import "./chunk-VEQXQN22.js";
|
|
33
33
|
|
|
34
34
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
evaluateCommandProtection,
|
|
28
28
|
extractToolCommand,
|
|
29
29
|
reportCommandProtectionBlock
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HYDDOO7J.js";
|
|
31
31
|
import {
|
|
32
32
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
33
33
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -64,10 +64,10 @@ import {
|
|
|
64
64
|
spawnMuseMsp,
|
|
65
65
|
startMuseSession,
|
|
66
66
|
uuidV7
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-XUUWIXTH.js";
|
|
68
68
|
import {
|
|
69
69
|
publishedPullRequestUrls
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-Q4JSCLJS.js";
|
|
71
71
|
import {
|
|
72
72
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
73
73
|
AsyncLock,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
timestampFromSeconds,
|
|
131
131
|
upsertCredentialFileLines,
|
|
132
132
|
writeSecureCredentialFile
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-F5VOF3HT.js";
|
|
134
134
|
import {
|
|
135
135
|
ENGINE_ENV,
|
|
136
136
|
monolithRequest,
|
|
@@ -139,15 +139,15 @@ import {
|
|
|
139
139
|
reloadEngineEnv,
|
|
140
140
|
resolveDiffBase,
|
|
141
141
|
setAgentCredentialSnapshot
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-TJ7KHCOG.js";
|
|
143
143
|
import {
|
|
144
144
|
getCodexModelProvider
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-MOAPV7VI.js";
|
|
146
146
|
import {
|
|
147
147
|
SUBPROCESS_MAX_BUFFER,
|
|
148
148
|
execAsync,
|
|
149
149
|
execFileAsync
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-HHW4YC57.js";
|
|
151
151
|
import {
|
|
152
152
|
isRecord as isRecord2
|
|
153
153
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -376,7 +376,7 @@ import {
|
|
|
376
376
|
workspaceTokenRequestSchema,
|
|
377
377
|
workspaceTokenResponseSchema,
|
|
378
378
|
wrapInTag
|
|
379
|
-
} from "./chunk-
|
|
379
|
+
} from "./chunk-X7G3DHTV.js";
|
|
380
380
|
import {
|
|
381
381
|
cloneMcpConfig,
|
|
382
382
|
ensureCompatibilityImports,
|
|
@@ -8841,8 +8841,9 @@ var ClaudeTokenManager = class extends BaseRefreshManager {
|
|
|
8841
8841
|
isOauthNow: () => ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "oauth"
|
|
8842
8842
|
});
|
|
8843
8843
|
}
|
|
8844
|
+
// A one-year token goes in CLAUDE_CODE_OAUTH_TOKEN, and a leftover file login would otherwise be refreshed and wiped.
|
|
8844
8845
|
async applyCredentialsResponse(response) {
|
|
8845
|
-
if (response.type === "oauth") {
|
|
8846
|
+
if (response.type === "oauth" && response.refreshToken) {
|
|
8846
8847
|
await this.writeOauthCredentialsFile({
|
|
8847
8848
|
accessToken: response.accessToken,
|
|
8848
8849
|
refreshToken: response.refreshToken,
|
|
@@ -9464,7 +9465,7 @@ function detectCodexAuthMethod() {
|
|
|
9464
9465
|
var CLAUDE_CREDENTIALS_PATH = join2(homedir2(), ".claude", ".credentials.json");
|
|
9465
9466
|
function detectClaudeAuthMethod() {
|
|
9466
9467
|
if (ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "ollama") return "ollama";
|
|
9467
|
-
if (existsSync(CLAUDE_CREDENTIALS_PATH)) {
|
|
9468
|
+
if (existsSync(CLAUDE_CREDENTIALS_PATH) || process.env.CLAUDE_CODE_OAUTH_TOKEN) {
|
|
9468
9469
|
return "oauth";
|
|
9469
9470
|
}
|
|
9470
9471
|
if (ENGINE_ENV.REPLICAS_CLAUDE_AUTH_METHOD === "foundry") {
|
|
@@ -11763,6 +11764,7 @@ function buildClaudeAgentEnv(overrides) {
|
|
|
11763
11764
|
if (method === "oauth" || method === "bedrock" || method === "foundry" || isBedrock) {
|
|
11764
11765
|
env.ANTHROPIC_API_KEY = void 0;
|
|
11765
11766
|
}
|
|
11767
|
+
if (method && method !== "none" && method !== "oauth") env.CLAUDE_CODE_OAUTH_TOKEN = void 0;
|
|
11766
11768
|
if (method === "ollama") env.ANTHROPIC_API_KEY = "";
|
|
11767
11769
|
if (isBedrock) {
|
|
11768
11770
|
env.CLAUDE_CODE_USE_BEDROCK = "1";
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
publishedPullRequestUrls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q4JSCLJS.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldRefreshPullRequests
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X7G3DHTV.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/subagent-mcp.js
CHANGED
package/package.json
CHANGED
package/workspace-sdk/index.js
CHANGED
|
@@ -139,6 +139,13 @@ const vanta = providerClient('/v1/engine/vanta/api');
|
|
|
139
139
|
const greptile = {
|
|
140
140
|
call: (tool, args) => request('/v1/engine/greptile/call', { method: 'POST', body: { tool, arguments: args } }),
|
|
141
141
|
};
|
|
142
|
+
const sazabi = {
|
|
143
|
+
call: (tool, args) => request('/v1/engine/sazabi/call', { method: 'POST', body: { tool, arguments: args } }),
|
|
144
|
+
};
|
|
145
|
+
const kondo = {
|
|
146
|
+
tools: () => request('/v1/engine/kondo/tools'),
|
|
147
|
+
call: (tool, args) => request('/v1/engine/kondo/call', { method: 'POST', body: { tool, arguments: args } }),
|
|
148
|
+
};
|
|
142
149
|
|
|
143
150
|
const pangramRequest = (operation, input) =>
|
|
144
151
|
request('/v1/engine/pangram', { method: 'POST', body: { operation, ...input } });
|
|
@@ -156,5 +163,5 @@ const e2b = {
|
|
|
156
163
|
kill: (sandboxId) => request('/v1/engine/e2b', { method: 'POST', body: { operation: 'kill', sandboxId } }),
|
|
157
164
|
};
|
|
158
165
|
|
|
159
|
-
export const replicas = { integrations, plugins, linear, slack, github, gitlab, sentry, modal, greptile, pangram, planetscale, vercel, lightfield, vanta, turbopuffer, e2b };
|
|
166
|
+
export const replicas = { integrations, plugins, linear, slack, github, gitlab, sentry, modal, greptile, sazabi, kondo, pangram, planetscale, vercel, lightfield, vanta, turbopuffer, e2b };
|
|
160
167
|
export default replicas;
|
|
@@ -141,6 +141,14 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
141
141
|
readonly category: "data";
|
|
142
142
|
readonly name: "PlanetScale";
|
|
143
143
|
readonly description: "Manage organizations, databases, branches, deploy requests, and Insights.";
|
|
144
|
+
}, {
|
|
145
|
+
readonly id: "sazabi";
|
|
146
|
+
readonly backend: "native";
|
|
147
|
+
readonly toolkit: "sazabi";
|
|
148
|
+
readonly authType: "oauth";
|
|
149
|
+
readonly category: "data";
|
|
150
|
+
readonly name: "Sazabi";
|
|
151
|
+
readonly description: "Query logs, investigate issues, and run the Sazabi observability agent.";
|
|
144
152
|
}, {
|
|
145
153
|
readonly id: "stripe";
|
|
146
154
|
readonly backend: "composio";
|
|
@@ -149,6 +157,14 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
149
157
|
readonly category: "business";
|
|
150
158
|
readonly name: "Stripe";
|
|
151
159
|
readonly description: "Manage customers, payments, invoices, subscriptions, and balances.";
|
|
160
|
+
}, {
|
|
161
|
+
readonly id: "kondo";
|
|
162
|
+
readonly backend: "native";
|
|
163
|
+
readonly toolkit: "kondo";
|
|
164
|
+
readonly authType: "oauth";
|
|
165
|
+
readonly category: "business";
|
|
166
|
+
readonly name: "Kondo";
|
|
167
|
+
readonly description: "Manage LinkedIn chats, labels, reminders, drafts, connections, and invites.";
|
|
152
168
|
}, {
|
|
153
169
|
readonly id: "lightfield";
|
|
154
170
|
readonly backend: "native";
|
|
@@ -63,6 +63,8 @@ export interface GreptileCallRequest {
|
|
|
63
63
|
tool: GreptileKnowledgeBaseTool;
|
|
64
64
|
arguments?: Record<string, unknown>;
|
|
65
65
|
}
|
|
66
|
+
export declare const SAZABI_MCP_TOOLS: readonly ["search", "execute"];
|
|
67
|
+
export type SazabiMcpTool = (typeof SAZABI_MCP_TOOLS)[number];
|
|
66
68
|
export interface PluginConnectModalRequest {
|
|
67
69
|
tokenId: string;
|
|
68
70
|
tokenSecret: string;
|
|
@@ -58,6 +58,19 @@ export interface ReplicasSdk {
|
|
|
58
58
|
greptile: {
|
|
59
59
|
call<T = unknown>(tool: import('./routes/plugins').GreptileKnowledgeBaseTool, args?: Record<string, unknown>): Promise<T>;
|
|
60
60
|
};
|
|
61
|
+
sazabi: {
|
|
62
|
+
call<T = unknown>(tool: import('./routes/plugins').SazabiMcpTool, args?: Record<string, unknown>): Promise<T>;
|
|
63
|
+
};
|
|
64
|
+
kondo: {
|
|
65
|
+
tools(): Promise<{
|
|
66
|
+
tools: {
|
|
67
|
+
name: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
inputSchema: Record<string, unknown>;
|
|
70
|
+
}[];
|
|
71
|
+
}>;
|
|
72
|
+
call<T = unknown>(tool: string, args?: Record<string, unknown>): Promise<T>;
|
|
73
|
+
};
|
|
61
74
|
turbopuffer: {
|
|
62
75
|
namespaces<T = unknown>(params?: Record<string, unknown>): Promise<T>;
|
|
63
76
|
metadata<T = unknown>(namespace: string, params?: Record<string, unknown>): Promise<T>;
|