replicas-engine 0.1.1088 → 0.1.1090
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-GCFMTFP4.js → asp-host-QU64FY3O.js} +5 -5
- package/dist/src/{chunk-LIXQHREQ.js → chunk-47R46BP5.js} +3 -3
- package/dist/src/{chunk-JZ2OFNLT.js → chunk-653DTHKB.js} +138 -95
- package/dist/src/{chunk-5C7ZMJG2.js → chunk-FWJBDU4E.js} +1 -1
- package/dist/src/{chunk-6FTWZ6VQ.js → chunk-GJLRFGVA.js} +1 -1
- package/dist/src/{chunk-KT4HB5EU.js → chunk-HME4KTA7.js} +6 -6
- package/dist/src/{chunk-OU6SOM5F.js → chunk-HP7EUHEG.js} +2 -2
- package/dist/src/{chunk-SCS44A4A.js → chunk-NYHJ4RRH.js} +2 -2
- package/dist/src/{chunk-J4WDOXEB.js → chunk-P26KTSV5.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 +8 -8
- 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-HME4KTA7.js";
|
|
12
|
+
import "./chunk-HP7EUHEG.js";
|
|
13
|
+
import "./chunk-47R46BP5.js";
|
|
14
|
+
import "./chunk-GJLRFGVA.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-653DTHKB.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -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-GJLRFGVA.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-653DTHKB.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.1090";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -217,6 +217,99 @@ var ASTER_MODEL_LABELS = {
|
|
|
217
217
|
"gpt-oss-120b": "GPT-OSS 120B"
|
|
218
218
|
};
|
|
219
219
|
|
|
220
|
+
// ../shared/src/languages.ts
|
|
221
|
+
var EXT_TO_LANGUAGE = {
|
|
222
|
+
".ts": "typescript",
|
|
223
|
+
".tsx": "tsx",
|
|
224
|
+
".mts": "typescript",
|
|
225
|
+
".cts": "typescript",
|
|
226
|
+
".js": "javascript",
|
|
227
|
+
".jsx": "jsx",
|
|
228
|
+
".mjs": "javascript",
|
|
229
|
+
".cjs": "javascript",
|
|
230
|
+
".py": "python",
|
|
231
|
+
".pyw": "python",
|
|
232
|
+
".pyi": "python",
|
|
233
|
+
".rs": "rust",
|
|
234
|
+
".go": "go",
|
|
235
|
+
".rb": "ruby",
|
|
236
|
+
".rake": "ruby",
|
|
237
|
+
".java": "java",
|
|
238
|
+
".kt": "kotlin",
|
|
239
|
+
".kts": "kotlin",
|
|
240
|
+
".scala": "scala",
|
|
241
|
+
".swift": "swift",
|
|
242
|
+
".m": "objectivec",
|
|
243
|
+
".mm": "objectivec",
|
|
244
|
+
".c": "c",
|
|
245
|
+
".cpp": "cpp",
|
|
246
|
+
".cc": "cpp",
|
|
247
|
+
".cxx": "cpp",
|
|
248
|
+
".h": "c",
|
|
249
|
+
".hpp": "cpp",
|
|
250
|
+
".hh": "cpp",
|
|
251
|
+
".hxx": "cpp",
|
|
252
|
+
".cs": "csharp",
|
|
253
|
+
".vb": "vbnet",
|
|
254
|
+
".fs": "fsharp",
|
|
255
|
+
".php": "php",
|
|
256
|
+
".phtml": "php",
|
|
257
|
+
".css": "css",
|
|
258
|
+
".scss": "scss",
|
|
259
|
+
".sass": "sass",
|
|
260
|
+
".less": "less",
|
|
261
|
+
".html": "html",
|
|
262
|
+
".htm": "html",
|
|
263
|
+
".vue": "vue",
|
|
264
|
+
".svelte": "svelte",
|
|
265
|
+
".xml": "xml",
|
|
266
|
+
".svg": "xml",
|
|
267
|
+
".json": "json",
|
|
268
|
+
".json5": "json5",
|
|
269
|
+
".yaml": "yaml",
|
|
270
|
+
".yml": "yaml",
|
|
271
|
+
".toml": "toml",
|
|
272
|
+
".ini": "ini",
|
|
273
|
+
".md": "markdown",
|
|
274
|
+
".markdown": "markdown",
|
|
275
|
+
".mmd": "mermaid",
|
|
276
|
+
".mermaid": "mermaid",
|
|
277
|
+
".sql": "sql",
|
|
278
|
+
".sh": "bash",
|
|
279
|
+
".bash": "bash",
|
|
280
|
+
".zsh": "bash",
|
|
281
|
+
".fish": "bash",
|
|
282
|
+
".dockerfile": "dockerfile",
|
|
283
|
+
".graphql": "graphql",
|
|
284
|
+
".proto": "protobuf",
|
|
285
|
+
".r": "r",
|
|
286
|
+
".lua": "lua",
|
|
287
|
+
".dart": "dart",
|
|
288
|
+
".zig": "zig",
|
|
289
|
+
".ex": "elixir",
|
|
290
|
+
".exs": "elixir",
|
|
291
|
+
".erl": "erlang",
|
|
292
|
+
".hs": "haskell",
|
|
293
|
+
".ml": "ocaml",
|
|
294
|
+
".clj": "clojure",
|
|
295
|
+
".cljs": "clojure",
|
|
296
|
+
".pl": "perl",
|
|
297
|
+
".perl": "perl",
|
|
298
|
+
".elm": "elm",
|
|
299
|
+
".lisp": "lisp"
|
|
300
|
+
};
|
|
301
|
+
function detectLanguageByPath(filePath) {
|
|
302
|
+
const dot = filePath.lastIndexOf(".");
|
|
303
|
+
if (dot === -1) {
|
|
304
|
+
const basename = filePath.split("/").pop() ?? "";
|
|
305
|
+
if (basename === "Dockerfile") return "dockerfile";
|
|
306
|
+
if (basename === "Makefile") return "makefile";
|
|
307
|
+
return null;
|
|
308
|
+
}
|
|
309
|
+
const ext = filePath.slice(dot).toLowerCase();
|
|
310
|
+
return EXT_TO_LANGUAGE[ext] ?? null;
|
|
311
|
+
}
|
|
312
|
+
|
|
220
313
|
// ../shared/src/engine/types.ts
|
|
221
314
|
var DEFAULT_CHAT_TITLES = {
|
|
222
315
|
claude: "Claude Code",
|
|
@@ -620,7 +713,7 @@ var CANVAS_KIND_BY_EXTENSION = {
|
|
|
620
713
|
function classifyCanvasFilename(filename) {
|
|
621
714
|
const idx = filename.lastIndexOf(".");
|
|
622
715
|
const ext = idx === -1 ? "" : filename.slice(idx).toLowerCase();
|
|
623
|
-
return CANVAS_KIND_BY_EXTENSION[ext] ?? { kind: "other", mimeType: "application/octet-stream" };
|
|
716
|
+
return CANVAS_KIND_BY_EXTENSION[ext] ?? (detectLanguageByPath(filename) ? { kind: "text", mimeType: "text/plain; charset=utf-8" } : { kind: "other", mimeType: "application/octet-stream" });
|
|
624
717
|
}
|
|
625
718
|
function isValidEngineLogSessionId(sessionId) {
|
|
626
719
|
return Boolean(sessionId) && !/[/\\]/.test(sessionId) && !sessionId.includes("..");
|
|
@@ -4497,6 +4590,8 @@ Use this when:
|
|
|
4497
4590
|
- The user asks to inspect Vanta controls, tests, evidence, vendors, risks, or compliance data
|
|
4498
4591
|
- The user asks to query or update a connected turbopuffer namespace
|
|
4499
4592
|
- The user asks for PlanetScale organizations, databases, branches, or Insights data
|
|
4593
|
+
- The user asks to read, triage, label, or draft replies to LinkedIn messages through Kondo
|
|
4594
|
+
- The user asks to query Sazabi logs, investigate Sazabi issues, or ask the Sazabi agent about production
|
|
4500
4595
|
- The user asks to analyze text with Pangram`;
|
|
4501
4596
|
var REFERENCE9 = `# Plugins
|
|
4502
4597
|
|
|
@@ -4593,6 +4688,29 @@ const databases = await replicas.planetscale.request('/organizations/acme/databa
|
|
|
4593
4688
|
|
|
4594
4689
|
OAuth scopes control permitted operations. Confirm mutations before using POST, PUT, PATCH, or DELETE.
|
|
4595
4690
|
|
|
4691
|
+
## Sazabi
|
|
4692
|
+
|
|
4693
|
+
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:
|
|
4694
|
+
|
|
4695
|
+
\`\`\`ts
|
|
4696
|
+
const hits = await replicas.sazabi.call('search', { query: 'log query', namespace: 'sazabi' });
|
|
4697
|
+
const schema = await replicas.sazabi.call('search', { query: 'sazabi/logs.ask', namespace: 'sazabi', includeInputSchema: true });
|
|
4698
|
+
const answer = await replicas.sazabi.call('execute', { name: 'sazabi/logs.ask', arguments: { question: 'Why did checkout 500 in the last hour?' } });
|
|
4699
|
+
\`\`\`
|
|
4700
|
+
|
|
4701
|
+
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).
|
|
4702
|
+
|
|
4703
|
+
## Kondo
|
|
4704
|
+
|
|
4705
|
+
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:
|
|
4706
|
+
|
|
4707
|
+
\`\`\`ts
|
|
4708
|
+
const { tools } = await replicas.kondo.tools();
|
|
4709
|
+
const inboxes = await replicas.kondo.call('list_inboxes');
|
|
4710
|
+
\`\`\`
|
|
4711
|
+
|
|
4712
|
+
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).
|
|
4713
|
+
|
|
4596
4714
|
## Vercel
|
|
4597
4715
|
|
|
4598
4716
|
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:
|
|
@@ -7895,99 +8013,6 @@ var GENERIC_CHAT_TITLE = new RegExp(
|
|
|
7895
8013
|
"iu"
|
|
7896
8014
|
);
|
|
7897
8015
|
|
|
7898
|
-
// ../shared/src/languages.ts
|
|
7899
|
-
var EXT_TO_LANGUAGE = {
|
|
7900
|
-
".ts": "typescript",
|
|
7901
|
-
".tsx": "tsx",
|
|
7902
|
-
".mts": "typescript",
|
|
7903
|
-
".cts": "typescript",
|
|
7904
|
-
".js": "javascript",
|
|
7905
|
-
".jsx": "jsx",
|
|
7906
|
-
".mjs": "javascript",
|
|
7907
|
-
".cjs": "javascript",
|
|
7908
|
-
".py": "python",
|
|
7909
|
-
".pyw": "python",
|
|
7910
|
-
".pyi": "python",
|
|
7911
|
-
".rs": "rust",
|
|
7912
|
-
".go": "go",
|
|
7913
|
-
".rb": "ruby",
|
|
7914
|
-
".rake": "ruby",
|
|
7915
|
-
".java": "java",
|
|
7916
|
-
".kt": "kotlin",
|
|
7917
|
-
".kts": "kotlin",
|
|
7918
|
-
".scala": "scala",
|
|
7919
|
-
".swift": "swift",
|
|
7920
|
-
".m": "objectivec",
|
|
7921
|
-
".mm": "objectivec",
|
|
7922
|
-
".c": "c",
|
|
7923
|
-
".cpp": "cpp",
|
|
7924
|
-
".cc": "cpp",
|
|
7925
|
-
".cxx": "cpp",
|
|
7926
|
-
".h": "c",
|
|
7927
|
-
".hpp": "cpp",
|
|
7928
|
-
".hh": "cpp",
|
|
7929
|
-
".hxx": "cpp",
|
|
7930
|
-
".cs": "csharp",
|
|
7931
|
-
".vb": "vbnet",
|
|
7932
|
-
".fs": "fsharp",
|
|
7933
|
-
".php": "php",
|
|
7934
|
-
".phtml": "php",
|
|
7935
|
-
".css": "css",
|
|
7936
|
-
".scss": "scss",
|
|
7937
|
-
".sass": "sass",
|
|
7938
|
-
".less": "less",
|
|
7939
|
-
".html": "html",
|
|
7940
|
-
".htm": "html",
|
|
7941
|
-
".vue": "vue",
|
|
7942
|
-
".svelte": "svelte",
|
|
7943
|
-
".xml": "xml",
|
|
7944
|
-
".svg": "xml",
|
|
7945
|
-
".json": "json",
|
|
7946
|
-
".json5": "json5",
|
|
7947
|
-
".yaml": "yaml",
|
|
7948
|
-
".yml": "yaml",
|
|
7949
|
-
".toml": "toml",
|
|
7950
|
-
".ini": "ini",
|
|
7951
|
-
".md": "markdown",
|
|
7952
|
-
".markdown": "markdown",
|
|
7953
|
-
".mmd": "mermaid",
|
|
7954
|
-
".mermaid": "mermaid",
|
|
7955
|
-
".sql": "sql",
|
|
7956
|
-
".sh": "bash",
|
|
7957
|
-
".bash": "bash",
|
|
7958
|
-
".zsh": "bash",
|
|
7959
|
-
".fish": "bash",
|
|
7960
|
-
".dockerfile": "dockerfile",
|
|
7961
|
-
".graphql": "graphql",
|
|
7962
|
-
".proto": "protobuf",
|
|
7963
|
-
".r": "r",
|
|
7964
|
-
".lua": "lua",
|
|
7965
|
-
".dart": "dart",
|
|
7966
|
-
".zig": "zig",
|
|
7967
|
-
".ex": "elixir",
|
|
7968
|
-
".exs": "elixir",
|
|
7969
|
-
".erl": "erlang",
|
|
7970
|
-
".hs": "haskell",
|
|
7971
|
-
".ml": "ocaml",
|
|
7972
|
-
".clj": "clojure",
|
|
7973
|
-
".cljs": "clojure",
|
|
7974
|
-
".pl": "perl",
|
|
7975
|
-
".perl": "perl",
|
|
7976
|
-
".elm": "elm",
|
|
7977
|
-
".lisp": "lisp"
|
|
7978
|
-
};
|
|
7979
|
-
function detectLanguageByPath(filePath) {
|
|
7980
|
-
const dot = filePath.lastIndexOf(".");
|
|
7981
|
-
if (dot === -1) {
|
|
7982
|
-
const basename = filePath.split("/").pop() ?? "";
|
|
7983
|
-
if (basename === "Dockerfile") return "dockerfile";
|
|
7984
|
-
if (basename === "Makefile") return "makefile";
|
|
7985
|
-
return null;
|
|
7986
|
-
}
|
|
7987
|
-
const ext = filePath.slice(dot).toLowerCase();
|
|
7988
|
-
return EXT_TO_LANGUAGE[ext] ?? null;
|
|
7989
|
-
}
|
|
7990
|
-
|
|
7991
8016
|
// ../shared/src/context-usage.ts
|
|
7992
8017
|
function isRecord2(value) {
|
|
7993
8018
|
return typeof value === "object" && value !== null;
|
|
@@ -9276,6 +9301,15 @@ var EXPLICIT_PLUGIN_CATALOG = [
|
|
|
9276
9301
|
name: "PlanetScale",
|
|
9277
9302
|
description: "Manage organizations, databases, branches, deploy requests, and Insights."
|
|
9278
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
|
+
},
|
|
9279
9313
|
{
|
|
9280
9314
|
id: "stripe",
|
|
9281
9315
|
backend: "composio",
|
|
@@ -9285,6 +9319,15 @@ var EXPLICIT_PLUGIN_CATALOG = [
|
|
|
9285
9319
|
name: "Stripe",
|
|
9286
9320
|
description: "Manage customers, payments, invoices, subscriptions, and balances."
|
|
9287
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
|
+
},
|
|
9288
9331
|
{
|
|
9289
9332
|
id: "lightfield",
|
|
9290
9333
|
backend: "native",
|
|
@@ -9869,6 +9912,7 @@ export {
|
|
|
9869
9912
|
OPENCODE_GO_BASE_URL,
|
|
9870
9913
|
DEFAULT_OPENCODE_GO_MODEL,
|
|
9871
9914
|
fetchOpenCodeGoCatalog,
|
|
9915
|
+
detectLanguageByPath,
|
|
9872
9916
|
isDefaultChat,
|
|
9873
9917
|
CLAUDE_OPUS_4_8_BEDROCK_MODEL,
|
|
9874
9918
|
CLAUDE_SONNET_5_BEDROCK_MODEL,
|
|
@@ -10011,7 +10055,6 @@ export {
|
|
|
10011
10055
|
CHAT_FORK_EXCERPT_OMITTED_NOTICE,
|
|
10012
10056
|
formatChatForkHandoffMessage,
|
|
10013
10057
|
formatSideChatUpdateMessage,
|
|
10014
|
-
detectLanguageByPath,
|
|
10015
10058
|
percentage,
|
|
10016
10059
|
autoCompactThresholdField,
|
|
10017
10060
|
normalizeAutoCompactThreshold,
|
|
@@ -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-653DTHKB.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
resolveDiffBase,
|
|
11
11
|
runGitCommand,
|
|
12
12
|
setAgentCredentialSnapshot
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HP7EUHEG.js";
|
|
14
14
|
import {
|
|
15
15
|
AppServerProcess,
|
|
16
16
|
buildCodexAgentEnv
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-47R46BP5.js";
|
|
18
18
|
import {
|
|
19
19
|
SUBPROCESS_MAX_BUFFER,
|
|
20
20
|
execFileAsync
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GJLRFGVA.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-653DTHKB.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-QU64FY3O.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-QU64FY3O.js");
|
|
316
316
|
await restartCodexAspHostIfRunning2();
|
|
317
317
|
}
|
|
318
318
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -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-GJLRFGVA.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-653DTHKB.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-env-loader.ts
|
|
24
24
|
import { readFileSync } from "fs";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getOriginDefaultBranch,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
runGitCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HP7EUHEG.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-653DTHKB.js";
|
|
16
16
|
|
|
17
17
|
// src/services/command-protection-service.ts
|
|
18
18
|
import { readFile, stat } from "fs/promises";
|
|
@@ -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-47R46BP5.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-653DTHKB.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-NYHJ4RRH.js";
|
|
7
|
+
import "./chunk-HP7EUHEG.js";
|
|
8
|
+
import "./chunk-GJLRFGVA.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-653DTHKB.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-P26KTSV5.js";
|
|
17
17
|
import {
|
|
18
18
|
AppServerProcess,
|
|
19
19
|
buildCodexAgentEnv
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-47R46BP5.js";
|
|
21
|
+
import "./chunk-GJLRFGVA.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-653DTHKB.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-NYHJ4RRH.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-P26KTSV5.js";
|
|
68
68
|
import {
|
|
69
69
|
publishedPullRequestUrls
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FWJBDU4E.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-HME4KTA7.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-HP7EUHEG.js";
|
|
143
143
|
import {
|
|
144
144
|
getCodexModelProvider
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-47R46BP5.js";
|
|
146
146
|
import {
|
|
147
147
|
SUBPROCESS_MAX_BUFFER,
|
|
148
148
|
execAsync,
|
|
149
149
|
execFileAsync
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-GJLRFGVA.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-653DTHKB.js";
|
|
380
380
|
import {
|
|
381
381
|
cloneMcpConfig,
|
|
382
382
|
ensureCompatibilityImports,
|
|
@@ -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-FWJBDU4E.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-653DTHKB.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>;
|