replicas-engine 0.1.669 → 0.1.672
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/app-server-process-SDI6E22R.js +10 -0
- package/dist/src/{chunk-6JWWD5NM.js → chunk-CXUGYZGG.js} +3 -48
- package/dist/src/{chunk-LO6ISJCF.js → chunk-PB7HZW6L.js} +1 -1
- package/dist/src/{chunk-CBZ5YQAS.js → chunk-S6GU646B.js} +3 -3
- package/dist/src/{chunk-IRM6KMN5.js → chunk-YVPQ6OBG.js} +2 -2
- package/dist/src/{codex-token-manager-KL7GDOF4.js → codex-token-manager-OCIAABHL.js} +3 -3
- package/dist/src/{engine-env-M3LJZ6ZJ.js → engine-env-WCJHYLXI.js} +2 -2
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +4 -34
- package/package.json +1 -1
- package/workspace-sdk/shared/routes/plugins.d.ts +29 -7
- package/dist/src/app-server-process-GBLLP2RH.js +0 -10
|
@@ -451,6 +451,7 @@ var GPT_5_6_LUNA_MODEL = "gpt-5.6-luna";
|
|
|
451
451
|
var DEFAULT_CODEX_MODEL = GPT_5_6_SOL_MODEL;
|
|
452
452
|
var DEFAULT_CURSOR_MODEL = "composer-2.5";
|
|
453
453
|
var DEFAULT_OPENCODE_MODEL = "z-ai/glm-5.2";
|
|
454
|
+
var OX_ALPHA_MODEL = "stealth/ox-alpha";
|
|
454
455
|
var DEEPSEEK_V4_PRO_MODEL = "deepseek/deepseek-v4-pro-0813";
|
|
455
456
|
var DEEPSEEK_V4_FLASH_MODEL = "deepseek/deepseek-v4-flash-0731";
|
|
456
457
|
var DEFAULT_DEEPSEEK_MODEL = DEEPSEEK_V4_PRO_MODEL;
|
|
@@ -459,6 +460,7 @@ var DEFAULT_KIMI_MODEL = "moonshotai/kimi-k2.6";
|
|
|
459
460
|
var DEFAULT_PI_MODEL = DEFAULT_OPENCODE_MODEL;
|
|
460
461
|
var OPENROUTER_MODELS = [
|
|
461
462
|
DEFAULT_OPENCODE_MODEL,
|
|
463
|
+
OX_ALPHA_MODEL,
|
|
462
464
|
DEEPSEEK_V4_PRO_MODEL,
|
|
463
465
|
DEEPSEEK_V4_FLASH_MODEL,
|
|
464
466
|
"minimax/minimax-m3",
|
|
@@ -586,6 +588,7 @@ var MODEL_LABELS = {
|
|
|
586
588
|
[GPT_5_6_LUNA_MODEL]: "GPT-5.6 Luna",
|
|
587
589
|
"gpt-5.5": "GPT-5.5",
|
|
588
590
|
[DEFAULT_OPENCODE_MODEL]: "GLM 5.2 via OpenRouter",
|
|
591
|
+
[OX_ALPHA_MODEL]: "Ox Alpha via OpenRouter",
|
|
589
592
|
[DEEPSEEK_V4_PRO_MODEL]: "DeepSeek V4 Pro via OpenRouter",
|
|
590
593
|
[DEEPSEEK_V4_FLASH_MODEL]: "DeepSeek V4 Flash via OpenRouter",
|
|
591
594
|
"minimax/minimax-m3": "MiniMax M3 via OpenRouter",
|
|
@@ -1507,53 +1510,6 @@ var LEGACY_WEB_APP_PATHS = {
|
|
|
1507
1510
|
app: "/app",
|
|
1508
1511
|
dashboardWorkspaces: `${DASHBOARD_PATH}/workspaces`
|
|
1509
1512
|
};
|
|
1510
|
-
var PR_URL_REGEX = /github\.com\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
|
|
1511
|
-
function parsePrUrl(url) {
|
|
1512
|
-
const match = url.match(PR_URL_REGEX);
|
|
1513
|
-
if (!match) return null;
|
|
1514
|
-
const [, owner, repo, numberStr] = match;
|
|
1515
|
-
const number = Number.parseInt(numberStr, 10);
|
|
1516
|
-
if (!Number.isFinite(number)) return null;
|
|
1517
|
-
return { owner, repo, number };
|
|
1518
|
-
}
|
|
1519
|
-
function parseCodeHostPrUrl(url) {
|
|
1520
|
-
const github = parsePrUrl(url);
|
|
1521
|
-
if (github) {
|
|
1522
|
-
return {
|
|
1523
|
-
...github,
|
|
1524
|
-
provider: "github",
|
|
1525
|
-
host: "github.com",
|
|
1526
|
-
repositoryPath: `${github.owner}/${github.repo}`,
|
|
1527
|
-
repoUrl: `https://github.com/${github.owner}/${github.repo}`
|
|
1528
|
-
};
|
|
1529
|
-
}
|
|
1530
|
-
let parsed;
|
|
1531
|
-
try {
|
|
1532
|
-
parsed = new URL(url);
|
|
1533
|
-
} catch {
|
|
1534
|
-
return null;
|
|
1535
|
-
}
|
|
1536
|
-
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return null;
|
|
1537
|
-
const segments = parsed.pathname.split("/").filter(Boolean);
|
|
1538
|
-
const separatorIndex = segments.indexOf("-");
|
|
1539
|
-
if (separatorIndex <= 0 || segments[separatorIndex + 1] !== "merge_requests") return null;
|
|
1540
|
-
const number = Number.parseInt(segments[separatorIndex + 2] ?? "", 10);
|
|
1541
|
-
if (!Number.isFinite(number)) return null;
|
|
1542
|
-
const repositorySegments = decodePathSegments(segments.slice(0, separatorIndex));
|
|
1543
|
-
const repo = repositorySegments[repositorySegments.length - 1];
|
|
1544
|
-
const owner = repositorySegments[0];
|
|
1545
|
-
if (!owner || !repo) return null;
|
|
1546
|
-
const repositoryPath = repositorySegments.join("/");
|
|
1547
|
-
return {
|
|
1548
|
-
provider: "gitlab",
|
|
1549
|
-
host: parsed.host.toLowerCase(),
|
|
1550
|
-
owner,
|
|
1551
|
-
repo,
|
|
1552
|
-
number,
|
|
1553
|
-
repositoryPath,
|
|
1554
|
-
repoUrl: `${parsed.origin}/${repositoryPath}`
|
|
1555
|
-
};
|
|
1556
|
-
}
|
|
1557
1513
|
function decodePathSegments(segments) {
|
|
1558
1514
|
return segments.map((segment) => {
|
|
1559
1515
|
try {
|
|
@@ -6261,7 +6217,6 @@ export {
|
|
|
6261
6217
|
gitIdentityConfigCommands,
|
|
6262
6218
|
InFlightMap,
|
|
6263
6219
|
isGitHubUrl,
|
|
6264
|
-
parseCodeHostPrUrl,
|
|
6265
6220
|
decodePathSegments,
|
|
6266
6221
|
createProviderSlashCommand,
|
|
6267
6222
|
mergeSlashCommands,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CodexAspAuthMethodChangedError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YVPQ6OBG.js";
|
|
5
5
|
import {
|
|
6
6
|
HOOK_EXEC_MAX_BUFFER_BYTES,
|
|
7
7
|
isVersionBelow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CXUGYZGG.js";
|
|
9
9
|
|
|
10
10
|
// src/managers/codex-asp/app-server-process.ts
|
|
11
11
|
import { spawn } from "child_process";
|
|
@@ -223,7 +223,7 @@ var DEFAULT_CODEX_ARGS = [
|
|
|
223
223
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
224
224
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
225
225
|
var codexCliVersionEnsured = null;
|
|
226
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
226
|
+
var ENGINE_PACKAGE_VERSION = "0.1.672";
|
|
227
227
|
var INITIALIZE_METHOD = "initialize";
|
|
228
228
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
229
229
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ENGINE_ENV,
|
|
4
4
|
setAgentCredentialSnapshot
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PB7HZW6L.js";
|
|
6
6
|
import {
|
|
7
7
|
CODEX_AUTH_ENV_KEYS,
|
|
8
8
|
CODEX_AUTH_ENV_KEYS_BY_METHOD,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createSuccessResult,
|
|
12
12
|
isRecord,
|
|
13
13
|
isValidAgentProvider
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CXUGYZGG.js";
|
|
15
15
|
|
|
16
16
|
// src/managers/codex-token-manager.ts
|
|
17
17
|
import { promises as fs } from "fs";
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
CodexAspAuthMethodChangedError,
|
|
4
4
|
CodexTokenManager,
|
|
5
5
|
codexTokenManager
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-YVPQ6OBG.js";
|
|
7
|
+
import "./chunk-PB7HZW6L.js";
|
|
8
|
+
import "./chunk-CXUGYZGG.js";
|
|
9
9
|
export {
|
|
10
10
|
CodexAspAuthMethodChangedError,
|
|
11
11
|
CodexTokenManager,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
AGENT,
|
|
9
9
|
getMemoryOutputSafetyViolation,
|
|
10
10
|
headlessAgentRequestSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CXUGYZGG.js";
|
|
12
12
|
|
|
13
13
|
// src/headless-agent.ts
|
|
14
14
|
import { createHash } from "crypto";
|
|
@@ -173,9 +173,9 @@ function runCodexTurn(client, params, timeoutMs) {
|
|
|
173
173
|
}
|
|
174
174
|
async function runCodex(request) {
|
|
175
175
|
const [{ AppServerProcess }, { codexTokenManager }, { ENGINE_ENV }] = await Promise.all([
|
|
176
|
-
import("./app-server-process-
|
|
177
|
-
import("./codex-token-manager-
|
|
178
|
-
import("./engine-env-
|
|
176
|
+
import("./app-server-process-SDI6E22R.js"),
|
|
177
|
+
import("./codex-token-manager-OCIAABHL.js"),
|
|
178
|
+
import("./engine-env-WCJHYLXI.js")
|
|
179
179
|
]);
|
|
180
180
|
for (let attempt = 0; attempt < 2; attempt++) {
|
|
181
181
|
const authMethod = ENGINE_ENV.REPLICAS_CODEX_AUTH_METHOD;
|
package/dist/src/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
SUBPROCESS_MAX_BUFFER,
|
|
27
27
|
execAsync,
|
|
28
28
|
execFileAsync
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-S6GU646B.js";
|
|
30
30
|
import {
|
|
31
31
|
BaseRefreshManager,
|
|
32
32
|
CodexAspAuthMethodChangedError,
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
monolithService,
|
|
38
38
|
recordCredentialFallback,
|
|
39
39
|
recordExhaustedCredential
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YVPQ6OBG.js";
|
|
41
41
|
import {
|
|
42
42
|
ENGINE_ENV,
|
|
43
43
|
IS_WARMING_MODE,
|
|
44
44
|
isRecord as isRecord2,
|
|
45
45
|
setAgentCredentialSnapshot
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-PB7HZW6L.js";
|
|
47
47
|
import {
|
|
48
48
|
AGENT,
|
|
49
49
|
AGENT_MODELS,
|
|
@@ -189,7 +189,6 @@ import {
|
|
|
189
189
|
parseAgentEvents,
|
|
190
190
|
parseChatHistoryCursor,
|
|
191
191
|
parseChatTranscriptArtifact,
|
|
192
|
-
parseCodeHostPrUrl,
|
|
193
192
|
parseDisplayMessages,
|
|
194
193
|
parseGitRemote,
|
|
195
194
|
parseLatestCodexAspTranscriptTurn,
|
|
@@ -204,7 +203,7 @@ import {
|
|
|
204
203
|
serializeCanvasContentResponse,
|
|
205
204
|
shellQuotePosix,
|
|
206
205
|
stripAgentDiagnosticErrors
|
|
207
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-CXUGYZGG.js";
|
|
208
207
|
|
|
209
208
|
// src/index.ts
|
|
210
209
|
import { serve } from "@hono/node-server";
|
|
@@ -13177,9 +13176,6 @@ var writeTerminalSessionSchema = z6.object({
|
|
|
13177
13176
|
generation: z6.number().int().nonnegative(),
|
|
13178
13177
|
sequence: z6.number().int().nonnegative()
|
|
13179
13178
|
});
|
|
13180
|
-
var mergePullRequestSchema = z6.object({
|
|
13181
|
-
prUrl: z6.string().url()
|
|
13182
|
-
});
|
|
13183
13179
|
var sendMessageSchema = z6.object({
|
|
13184
13180
|
messageId: z6.string().min(1).optional(),
|
|
13185
13181
|
submittedAt: z6.string().datetime().optional(),
|
|
@@ -13608,32 +13604,6 @@ function createV1Routes(deps) {
|
|
|
13608
13604
|
}
|
|
13609
13605
|
return c.json(result);
|
|
13610
13606
|
});
|
|
13611
|
-
app2.post("/pull-requests/merge", async (c) => {
|
|
13612
|
-
const body = mergePullRequestSchema.parse(await c.req.json());
|
|
13613
|
-
const parsed = parseCodeHostPrUrl(body.prUrl);
|
|
13614
|
-
if (parsed?.provider !== "github") {
|
|
13615
|
-
return c.json(jsonError("Only GitHub pull requests are supported"), 400);
|
|
13616
|
-
}
|
|
13617
|
-
const repository = (await gitService.listRepositories()).find(
|
|
13618
|
-
(repo) => repo.name.toLowerCase() === parsed.repo.toLowerCase()
|
|
13619
|
-
);
|
|
13620
|
-
if (!repository) {
|
|
13621
|
-
return c.json(jsonError("Pull request repository is not available in this workspace"), 404);
|
|
13622
|
-
}
|
|
13623
|
-
try {
|
|
13624
|
-
await githubTokenManager.refreshCredentials();
|
|
13625
|
-
await execFileAsync("gh", ["pr", "merge", body.prUrl, "--squash"], {
|
|
13626
|
-
cwd: repository.path,
|
|
13627
|
-
encoding: "utf-8",
|
|
13628
|
-
timeout: 12e4,
|
|
13629
|
-
maxBuffer: SUBPROCESS_MAX_BUFFER
|
|
13630
|
-
});
|
|
13631
|
-
return c.json({ success: true });
|
|
13632
|
-
} catch (error) {
|
|
13633
|
-
const detail = error && typeof error === "object" && "stderr" in error && typeof error.stderr === "string" ? error.stderr.trim() : error instanceof Error ? error.message : "GitHub CLI merge failed";
|
|
13634
|
-
return c.json(jsonError("Failed to merge pull request", detail), 409);
|
|
13635
|
-
}
|
|
13636
|
-
});
|
|
13637
13607
|
app2.get("/terminal/sessions", (c) => {
|
|
13638
13608
|
return c.json({ sessions: terminalService.list() });
|
|
13639
13609
|
});
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { WorkspaceNativeIntegrationStatus } from './integrations';
|
|
3
3
|
export declare const PLUGIN_CATALOG: readonly [{
|
|
4
4
|
readonly id: "attio";
|
|
5
|
+
readonly backend: "composio";
|
|
5
6
|
readonly toolkit: "attio";
|
|
6
7
|
readonly authType: "oauth";
|
|
7
8
|
readonly category: "business";
|
|
@@ -9,6 +10,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
9
10
|
readonly description: "Manage CRM records, people, companies, lists, and notes.";
|
|
10
11
|
}, {
|
|
11
12
|
readonly id: "calendly";
|
|
13
|
+
readonly backend: "composio";
|
|
12
14
|
readonly toolkit: "calendly";
|
|
13
15
|
readonly authType: "oauth";
|
|
14
16
|
readonly category: "productivity";
|
|
@@ -16,6 +18,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
16
18
|
readonly description: "Manage event types, scheduled events, invitees, and scheduling links.";
|
|
17
19
|
}, {
|
|
18
20
|
readonly id: "clickhouse";
|
|
21
|
+
readonly backend: "composio";
|
|
19
22
|
readonly toolkit: "clickhouse";
|
|
20
23
|
readonly authType: "basic";
|
|
21
24
|
readonly category: "data";
|
|
@@ -23,6 +26,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
23
26
|
readonly description: "Manage databases, tables, schemas, and queries.";
|
|
24
27
|
}, {
|
|
25
28
|
readonly id: "cloudflare";
|
|
29
|
+
readonly backend: "composio";
|
|
26
30
|
readonly toolkit: "cloudflare_api_key";
|
|
27
31
|
readonly authType: "api_key";
|
|
28
32
|
readonly category: "data";
|
|
@@ -31,13 +35,14 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
31
35
|
}, {
|
|
32
36
|
readonly id: "e2b";
|
|
33
37
|
readonly toolkit: "e2b";
|
|
34
|
-
readonly
|
|
38
|
+
readonly backend: "native";
|
|
35
39
|
readonly authType: "api_key";
|
|
36
40
|
readonly category: "data";
|
|
37
41
|
readonly name: "E2B";
|
|
38
42
|
readonly description: "Create secure cloud sandboxes and run commands in them.";
|
|
39
43
|
}, {
|
|
40
44
|
readonly id: "gmail";
|
|
45
|
+
readonly backend: "composio";
|
|
41
46
|
readonly toolkit: "gmail";
|
|
42
47
|
readonly authType: "oauth";
|
|
43
48
|
readonly category: "productivity";
|
|
@@ -45,6 +50,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
45
50
|
readonly description: "Manage messages, threads, attachments, labels, and mailbox settings.";
|
|
46
51
|
}, {
|
|
47
52
|
readonly id: "googleads";
|
|
53
|
+
readonly backend: "composio";
|
|
48
54
|
readonly toolkit: "googleads";
|
|
49
55
|
readonly authType: "oauth";
|
|
50
56
|
readonly category: "data";
|
|
@@ -52,6 +58,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
52
58
|
readonly description: "Manage campaigns, customers, accounts, and reporting data.";
|
|
53
59
|
}, {
|
|
54
60
|
readonly id: "googledocs";
|
|
61
|
+
readonly backend: "composio";
|
|
55
62
|
readonly toolkit: "googledocs";
|
|
56
63
|
readonly authType: "oauth";
|
|
57
64
|
readonly category: "productivity";
|
|
@@ -59,6 +66,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
59
66
|
readonly description: "Manage documents, structure, comments, and exported content.";
|
|
60
67
|
}, {
|
|
61
68
|
readonly id: "googledrive";
|
|
69
|
+
readonly backend: "composio";
|
|
62
70
|
readonly toolkit: "googledrive";
|
|
63
71
|
readonly authType: "oauth";
|
|
64
72
|
readonly category: "productivity";
|
|
@@ -66,6 +74,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
66
74
|
readonly description: "Manage files, folders, metadata, permissions, and shared drives.";
|
|
67
75
|
}, {
|
|
68
76
|
readonly id: "googlesearch";
|
|
77
|
+
readonly backend: "composio";
|
|
69
78
|
readonly toolkit: "google_search_console";
|
|
70
79
|
readonly authType: "oauth";
|
|
71
80
|
readonly category: "data";
|
|
@@ -73,6 +82,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
73
82
|
readonly description: "Manage Search Console performance, indexing, sites, and sitemaps.";
|
|
74
83
|
}, {
|
|
75
84
|
readonly id: "googlesheets";
|
|
85
|
+
readonly backend: "composio";
|
|
76
86
|
readonly toolkit: "googlesheets";
|
|
77
87
|
readonly authType: "oauth";
|
|
78
88
|
readonly category: "productivity";
|
|
@@ -80,6 +90,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
80
90
|
readonly description: "Manage spreadsheets, worksheets, ranges, tables, and charts.";
|
|
81
91
|
}, {
|
|
82
92
|
readonly id: "linkedin";
|
|
93
|
+
readonly backend: "composio";
|
|
83
94
|
readonly toolkit: "linkedin";
|
|
84
95
|
readonly authType: "oauth";
|
|
85
96
|
readonly category: "business";
|
|
@@ -87,6 +98,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
87
98
|
readonly description: "Manage profiles, organizations, posts, and professional activity.";
|
|
88
99
|
}, {
|
|
89
100
|
readonly id: "modal";
|
|
101
|
+
readonly backend: "native";
|
|
90
102
|
readonly toolkit: "modal";
|
|
91
103
|
readonly authType: "basic";
|
|
92
104
|
readonly category: "data";
|
|
@@ -94,6 +106,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
94
106
|
readonly description: "Invoke deployed functions through Modal compute.";
|
|
95
107
|
}, {
|
|
96
108
|
readonly id: "posthog";
|
|
109
|
+
readonly backend: "composio";
|
|
97
110
|
readonly toolkit: "posthog";
|
|
98
111
|
readonly authType: "api_key";
|
|
99
112
|
readonly category: "data";
|
|
@@ -102,13 +115,14 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
102
115
|
}, {
|
|
103
116
|
readonly id: "planetscale";
|
|
104
117
|
readonly toolkit: "planetscale";
|
|
105
|
-
readonly
|
|
118
|
+
readonly backend: "native";
|
|
106
119
|
readonly authType: "oauth";
|
|
107
120
|
readonly category: "data";
|
|
108
121
|
readonly name: "PlanetScale";
|
|
109
122
|
readonly description: "Manage organizations, databases, branches, deploy requests, and Insights.";
|
|
110
123
|
}, {
|
|
111
124
|
readonly id: "stripe";
|
|
125
|
+
readonly backend: "composio";
|
|
112
126
|
readonly toolkit: "stripe";
|
|
113
127
|
readonly authType: "oauth";
|
|
114
128
|
readonly category: "business";
|
|
@@ -116,6 +130,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
116
130
|
readonly description: "Manage customers, payments, invoices, subscriptions, and balances.";
|
|
117
131
|
}, {
|
|
118
132
|
readonly id: "pangram";
|
|
133
|
+
readonly backend: "native";
|
|
119
134
|
readonly toolkit: "pangram";
|
|
120
135
|
readonly authType: "api_key";
|
|
121
136
|
readonly category: "data";
|
|
@@ -123,6 +138,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
123
138
|
readonly description: "Analyze text for AI generation and plagiarism signals.";
|
|
124
139
|
}, {
|
|
125
140
|
readonly id: "vercel";
|
|
141
|
+
readonly backend: "composio";
|
|
126
142
|
readonly toolkit: "vercel";
|
|
127
143
|
readonly authType: "api_key";
|
|
128
144
|
readonly category: "data";
|
|
@@ -130,6 +146,7 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
130
146
|
readonly description: "Manage projects, deployments, logs, domains, and infrastructure.";
|
|
131
147
|
}, {
|
|
132
148
|
readonly id: "turbopuffer";
|
|
149
|
+
readonly backend: "native";
|
|
133
150
|
readonly toolkit: "turbopuffer";
|
|
134
151
|
readonly authType: "api_key";
|
|
135
152
|
readonly category: "data";
|
|
@@ -137,35 +154,39 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
137
154
|
readonly description: "Query and manage turbopuffer namespaces.";
|
|
138
155
|
}];
|
|
139
156
|
export type PluginId = (typeof PLUGIN_CATALOG)[number]['id'];
|
|
157
|
+
export type PluginBackend = (typeof PLUGIN_CATALOG)[number]['backend'];
|
|
140
158
|
export type NativePluginId = Extract<(typeof PLUGIN_CATALOG)[number], {
|
|
141
|
-
|
|
159
|
+
backend: 'native';
|
|
142
160
|
}>['id'];
|
|
143
|
-
export type ComposioPluginId =
|
|
144
|
-
|
|
161
|
+
export type ComposioPluginId = Extract<(typeof PLUGIN_CATALOG)[number], {
|
|
162
|
+
backend: 'composio';
|
|
163
|
+
}>['id'];
|
|
164
|
+
export type PluginScope = 'organization' | 'environment' | 'personal';
|
|
145
165
|
export type PluginAuthType = (typeof PLUGIN_CATALOG)[number]['authType'];
|
|
146
166
|
export type PluginCategory = (typeof PLUGIN_CATALOG)[number]['category'];
|
|
147
167
|
export declare const PLUGIN_CONNECTION_STATUSES: readonly ["initiated", "active", "expired", "failed"];
|
|
148
168
|
export type PluginConnectionStatus = (typeof PLUGIN_CONNECTION_STATUSES)[number];
|
|
149
169
|
export interface PluginCatalogItem {
|
|
150
170
|
id: PluginId;
|
|
171
|
+
backend: PluginBackend;
|
|
151
172
|
toolkit: string;
|
|
152
173
|
authType: PluginAuthType;
|
|
153
174
|
category: PluginCategory;
|
|
154
175
|
name: string;
|
|
155
176
|
description: string;
|
|
156
|
-
source?: 'native';
|
|
157
177
|
}
|
|
158
178
|
export interface PluginConnectionSummary {
|
|
159
179
|
id: string;
|
|
160
180
|
pluginId: PluginId;
|
|
161
181
|
scope: PluginScope;
|
|
182
|
+
environmentId?: string;
|
|
162
183
|
status: PluginConnectionStatus;
|
|
163
184
|
accountLabel?: string;
|
|
164
185
|
connectedAt?: string;
|
|
165
186
|
}
|
|
166
187
|
export interface PluginConnectionsResponse {
|
|
167
188
|
plugins: PluginCatalogItem[];
|
|
168
|
-
|
|
189
|
+
environment: PluginConnectionSummary[];
|
|
169
190
|
personal: PluginConnectionSummary[];
|
|
170
191
|
}
|
|
171
192
|
export interface PluginStartOAuthResponse {
|
|
@@ -286,4 +307,5 @@ export interface PluginExecuteResponse {
|
|
|
286
307
|
}
|
|
287
308
|
export declare function isPluginId(value: string): value is PluginId;
|
|
288
309
|
export declare function isComposioPluginId(value: string): value is ComposioPluginId;
|
|
310
|
+
export declare function isNativePluginId(value: string): value is NativePluginId;
|
|
289
311
|
export declare function isPluginConnectionStatus(value: string): value is PluginConnectionStatus;
|