replicas-engine 0.1.1004 → 0.1.1005
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-4FEEI44I.js → asp-host-OCHT3JKS.js} +5 -5
- package/dist/src/{chunk-GWPJN4NR.js → chunk-3SPI3DBP.js} +6 -6
- package/dist/src/{chunk-MS7SNJCX.js → chunk-6CRZSZVE.js} +3 -3
- package/dist/src/{chunk-FG665FDV.js → chunk-JC2TIYY2.js} +1 -1
- package/dist/src/{chunk-VJWOFQ5O.js → chunk-SWXXNS2U.js} +3 -3
- package/dist/src/{chunk-QTAA3IKC.js → chunk-VQDPYJKB.js} +22 -0
- package/dist/src/{chunk-75KGYSGI.js → chunk-Y57FU4PE.js} +1 -1
- package/dist/src/{chunk-2QY7YTWF.js → chunk-ZDIZBHEZ.js} +1 -1
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +3 -3
- package/dist/src/index.js +7 -7
- 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 +3 -1
- package/workspace-sdk/shared/routes/plugin-catalog.d.ts +8 -0
- package/workspace-sdk/shared/routes/plugins.d.ts +1 -0
- package/workspace-sdk/shared/workspace-sdk.d.ts +3 -0
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
getCodexAspHost,
|
|
6
6
|
restartCodexAspHost,
|
|
7
7
|
restartCodexAspHostIfRunning
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-3SPI3DBP.js";
|
|
9
|
+
import "./chunk-Y57FU4PE.js";
|
|
10
|
+
import "./chunk-SWXXNS2U.js";
|
|
11
|
+
import "./chunk-ZDIZBHEZ.js";
|
|
12
12
|
import "./chunk-UZSNFLDQ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-VQDPYJKB.js";
|
|
14
14
|
import "./chunk-VEQXQN22.js";
|
|
15
15
|
export {
|
|
16
16
|
getCodexAspHost,
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
setAgentCredentialSnapshot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y57FU4PE.js";
|
|
9
9
|
import {
|
|
10
10
|
AppServerProcess,
|
|
11
11
|
buildCodexAgentEnv
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SWXXNS2U.js";
|
|
13
13
|
import {
|
|
14
14
|
SUBPROCESS_MAX_BUFFER,
|
|
15
15
|
execFileAsync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZDIZBHEZ.js";
|
|
17
17
|
import {
|
|
18
18
|
isRecord
|
|
19
19
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
listOpenAICompatibleModels,
|
|
29
29
|
readOllamaAuthEnv,
|
|
30
30
|
resolveOpenAICompatibleModelsUrl
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VQDPYJKB.js";
|
|
32
32
|
|
|
33
33
|
// src/managers/codex-token-manager.ts
|
|
34
34
|
import { promises as fs } from "fs";
|
|
@@ -264,7 +264,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
264
264
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
265
265
|
await this.applyCredentialsResponse(data);
|
|
266
266
|
setAgentCredentialSnapshot("codex", data);
|
|
267
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
267
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-OCHT3JKS.js");
|
|
268
268
|
await restartCodexAspHostIfRunning2();
|
|
269
269
|
});
|
|
270
270
|
await this.start(true);
|
|
@@ -285,7 +285,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
285
285
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
286
286
|
await this.applyCredentialsResponse(data);
|
|
287
287
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
288
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
288
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-OCHT3JKS.js");
|
|
289
289
|
await restartCodexAspHostIfRunning2();
|
|
290
290
|
}
|
|
291
291
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -3,18 +3,18 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
monolithRequest
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y57FU4PE.js";
|
|
7
7
|
import {
|
|
8
8
|
SUBPROCESS_MAX_BUFFER,
|
|
9
9
|
execFileAsync
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZDIZBHEZ.js";
|
|
11
11
|
import {
|
|
12
12
|
extractCommandProtectionCommandText,
|
|
13
13
|
findCommandProtectionGitLookups,
|
|
14
14
|
findGitCommitSignals,
|
|
15
15
|
findPrMergeSignals,
|
|
16
16
|
parseCommandProtectionRequest
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VQDPYJKB.js";
|
|
18
18
|
|
|
19
19
|
// src/services/command-protection-service.ts
|
|
20
20
|
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-ZDIZBHEZ.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VQDPYJKB.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.1005";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -4186,6 +4186,7 @@ Use this when:
|
|
|
4186
4186
|
- The user asks to create or control an E2B sandbox
|
|
4187
4187
|
- The user asks to invoke a connected Modal function
|
|
4188
4188
|
- The user asks to access Vercel projects, deployments, domains, logs, or infrastructure
|
|
4189
|
+
- The user asks to read or update Lightfield CRM accounts, contacts, opportunities, meetings, notes, or tasks
|
|
4189
4190
|
- The user asks to search or read Greptile's codebase knowledge bases
|
|
4190
4191
|
- The user asks to inspect Vanta controls, tests, evidence, vendors, risks, or compliance data
|
|
4191
4192
|
- The user asks to query or update a connected turbopuffer namespace
|
|
@@ -4297,6 +4298,18 @@ const deployments = await replicas.vercel.request('/v6/deployments?teamId=team_1
|
|
|
4297
4298
|
|
|
4298
4299
|
Confirm mutations before using POST, PUT, PATCH, or DELETE.
|
|
4299
4300
|
|
|
4301
|
+
## Lightfield
|
|
4302
|
+
|
|
4303
|
+
Lightfield is a native API-key integration. Pass a path relative to the Lightfield \`/v1\` API; Replicas sends the key and \`Lightfield-Version\` header server-side:
|
|
4304
|
+
|
|
4305
|
+
\`\`\`ts
|
|
4306
|
+
const accounts = await replicas.lightfield.request('/accounts?limit=25');
|
|
4307
|
+
const fields = await replicas.lightfield.request('/accounts/definitions');
|
|
4308
|
+
const note = await replicas.lightfield.request('/notes', { method: 'POST', body: { fields: { $title: 'Call recap' } } });
|
|
4309
|
+
\`\`\`
|
|
4310
|
+
|
|
4311
|
+
See https://docs.lightfield.app/llms.txt for endpoints. Paginate with \`limit\` and \`offset\`. The key's scopes control permitted operations. Confirm mutations before using POST, PUT, PATCH, or DELETE.
|
|
4312
|
+
|
|
4300
4313
|
## Vanta
|
|
4301
4314
|
|
|
4302
4315
|
Vanta is a native Manage API integration. Pass a relative path beginning with /v1/; Replicas exchanges the stored client credentials and caches the short-lived token server-side:
|
|
@@ -8490,6 +8503,15 @@ var EXPLICIT_PLUGIN_CATALOG = [
|
|
|
8490
8503
|
name: "Stripe",
|
|
8491
8504
|
description: "Manage customers, payments, invoices, subscriptions, and balances."
|
|
8492
8505
|
},
|
|
8506
|
+
{
|
|
8507
|
+
id: "lightfield",
|
|
8508
|
+
backend: "native",
|
|
8509
|
+
toolkit: "lightfield",
|
|
8510
|
+
authType: "api_key",
|
|
8511
|
+
category: "business",
|
|
8512
|
+
name: "Lightfield",
|
|
8513
|
+
description: "Manage CRM accounts, contacts, opportunities, meetings, notes, and tasks."
|
|
8514
|
+
},
|
|
8493
8515
|
{
|
|
8494
8516
|
id: "pangram",
|
|
8495
8517
|
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
|
HOOK_EXEC_MAX_BUFFER_BYTES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VQDPYJKB.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -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-6CRZSZVE.js";
|
|
7
|
+
import "./chunk-Y57FU4PE.js";
|
|
8
|
+
import "./chunk-ZDIZBHEZ.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-VQDPYJKB.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
AppServerProcess,
|
|
9
9
|
buildCodexAgentEnv
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-SWXXNS2U.js";
|
|
11
|
+
import "./chunk-ZDIZBHEZ.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT,
|
|
14
14
|
headlessAgentRequestSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VQDPYJKB.js";
|
|
16
16
|
import "./chunk-VEQXQN22.js";
|
|
17
17
|
|
|
18
18
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
reportCommandProtectionBlock,
|
|
33
33
|
resolveDiffBase,
|
|
34
34
|
runGitCommand
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6CRZSZVE.js";
|
|
36
36
|
import {
|
|
37
37
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
38
38
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./chunk-P73LGPQO.js";
|
|
58
58
|
import {
|
|
59
59
|
publishedPullRequestUrls
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-JC2TIYY2.js";
|
|
61
61
|
import {
|
|
62
62
|
BaseRefreshManager,
|
|
63
63
|
CodexAspAuthMethodChangedError,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
refreshDelayMs,
|
|
72
72
|
restartCodexAspHost,
|
|
73
73
|
routineRefreshRequest
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-3SPI3DBP.js";
|
|
75
75
|
import {
|
|
76
76
|
ENGINE_ENV,
|
|
77
77
|
monolithRequest,
|
|
@@ -79,16 +79,16 @@ import {
|
|
|
79
79
|
readRuntimeEnvFile,
|
|
80
80
|
reloadEngineEnv,
|
|
81
81
|
setAgentCredentialSnapshot
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-Y57FU4PE.js";
|
|
83
83
|
import {
|
|
84
84
|
AspClient,
|
|
85
85
|
getCodexModelProvider
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-SWXXNS2U.js";
|
|
87
87
|
import {
|
|
88
88
|
SUBPROCESS_MAX_BUFFER,
|
|
89
89
|
execAsync,
|
|
90
90
|
execFileAsync
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-ZDIZBHEZ.js";
|
|
92
92
|
import {
|
|
93
93
|
isRecord as isRecord2
|
|
94
94
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -316,7 +316,7 @@ import {
|
|
|
316
316
|
workspaceCredentialProviderSchema,
|
|
317
317
|
workspaceTokenRequestSchema,
|
|
318
318
|
workspaceTokenResponseSchema
|
|
319
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-VQDPYJKB.js";
|
|
320
320
|
import {
|
|
321
321
|
cloneMcpConfig,
|
|
322
322
|
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-JC2TIYY2.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-VQDPYJKB.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
|
@@ -133,6 +133,8 @@ const planetscale = providerClient('/v1/engine/planetscale/api');
|
|
|
133
133
|
|
|
134
134
|
const vercel = providerClient('/v1/engine/vercel/api');
|
|
135
135
|
|
|
136
|
+
const lightfield = providerClient('/v1/engine/lightfield/api');
|
|
137
|
+
|
|
136
138
|
const vanta = providerClient('/v1/engine/vanta/api');
|
|
137
139
|
const greptile = {
|
|
138
140
|
call: (tool, args) => request('/v1/engine/greptile/call', { method: 'POST', body: { tool, arguments: args } }),
|
|
@@ -154,5 +156,5 @@ const e2b = {
|
|
|
154
156
|
kill: (sandboxId) => request('/v1/engine/e2b', { method: 'POST', body: { operation: 'kill', sandboxId } }),
|
|
155
157
|
};
|
|
156
158
|
|
|
157
|
-
export const replicas = { integrations, plugins, linear, slack, github, gitlab, sentry, modal, greptile, pangram, planetscale, vercel, vanta, turbopuffer, e2b };
|
|
159
|
+
export const replicas = { integrations, plugins, linear, slack, github, gitlab, sentry, modal, greptile, pangram, planetscale, vercel, lightfield, vanta, turbopuffer, e2b };
|
|
158
160
|
export default replicas;
|
|
@@ -149,6 +149,14 @@ export declare const PLUGIN_CATALOG: readonly [{
|
|
|
149
149
|
readonly category: "business";
|
|
150
150
|
readonly name: "Stripe";
|
|
151
151
|
readonly description: "Manage customers, payments, invoices, subscriptions, and balances.";
|
|
152
|
+
}, {
|
|
153
|
+
readonly id: "lightfield";
|
|
154
|
+
readonly backend: "native";
|
|
155
|
+
readonly toolkit: "lightfield";
|
|
156
|
+
readonly authType: "api_key";
|
|
157
|
+
readonly category: "business";
|
|
158
|
+
readonly name: "Lightfield";
|
|
159
|
+
readonly description: "Manage CRM accounts, contacts, opportunities, meetings, notes, and tasks.";
|
|
152
160
|
}, {
|
|
153
161
|
readonly id: "pangram";
|
|
154
162
|
readonly backend: "native";
|
|
@@ -56,6 +56,7 @@ export interface PluginConnectApiKeyRequest {
|
|
|
56
56
|
apiKey: string;
|
|
57
57
|
}
|
|
58
58
|
export type PluginConnectCloudflareRequest = PluginConnectApiKeyRequest;
|
|
59
|
+
export declare const LIGHTFIELD_API_VERSION = "2026-03-01";
|
|
59
60
|
export declare const GREPTILE_KNOWLEDGE_BASE_TOOLS: readonly ["get_me", "list_repositories", "list_knowledge_bases", "list_knowledge_base_documents", "get_knowledge_base_document", "search_knowledge_base"];
|
|
60
61
|
export type GreptileKnowledgeBaseTool = (typeof GREPTILE_KNOWLEDGE_BASE_TOOLS)[number];
|
|
61
62
|
export interface GreptileCallRequest {
|
|
@@ -70,6 +70,9 @@ export interface ReplicasSdk {
|
|
|
70
70
|
vercel: {
|
|
71
71
|
request<T = unknown>(path: string, options?: ProviderRequestOptions): Promise<T>;
|
|
72
72
|
};
|
|
73
|
+
lightfield: {
|
|
74
|
+
request<T = unknown>(path: string, options?: ProviderRequestOptions): Promise<T>;
|
|
75
|
+
};
|
|
73
76
|
vanta: {
|
|
74
77
|
request<T = unknown>(path: `/v1/${string}`, options?: ProviderRequestOptions): Promise<T>;
|
|
75
78
|
};
|