replicas-engine 0.1.671 → 0.1.673

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.
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ AppServerProcess
4
+ } from "./chunk-CKJJIOSE.js";
5
+ import "./chunk-A2ZICXOK.js";
6
+ import "./chunk-2CFOJHNH.js";
7
+ import "./chunk-5NBVP6A2.js";
8
+ export {
9
+ AppServerProcess
10
+ };
@@ -5,7 +5,7 @@ import {
5
5
  isValidAgentProvider,
6
6
  parsePosixEnvFile,
7
7
  readReplicasRuntimeEnv
8
- } from "./chunk-TMERKNQV.js";
8
+ } from "./chunk-5NBVP6A2.js";
9
9
 
10
10
  // src/engine-env.ts
11
11
  import { readFileSync as readFileSync2 } from "fs";
@@ -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",
@@ -2571,7 +2574,7 @@ Use this when:
2571
2574
  - The user asks for Stripe customers, payments, invoices, subscriptions, or balances`;
2572
2575
  var REFERENCE8 = `# Plugins
2573
2576
 
2574
- Plugins are TypeScript libraries, not MCP servers. Import \`@replicas/sdk\`; Replicas authenticates the workspace and selects only the owner\u2019s personal connection or the organization fallback. Provider credentials, sessions, and project keys are never exposed.
2577
+ Plugins are TypeScript libraries, not MCP servers. Import \`@replicas/sdk\`; Replicas authenticates the workspace and selects the owner\u2019s personal connection first, then the most specific environment the workspace inherits from, then Global. Provider credentials, sessions, and project keys are never exposed.
2575
2578
 
2576
2579
  Plugin tools may read or write provider data according to the connected account's permissions. Only execute write or destructive tools when they match the user's request.
2577
2580
 
@@ -2584,7 +2587,7 @@ const plugins = await replicas.plugins.list();
2584
2587
  const installed = plugins.filter((plugin) => plugin.connected);
2585
2588
  \`\`\`
2586
2589
 
2587
- If a plugin is not connected, ask the user to install it under personal or organization Integrations in the Replicas dashboard.
2590
+ If a plugin is not connected, ask the user to install it under personal, environment, or organization Integrations in the Replicas dashboard. An organization install lands on Global and reaches every workspace; an environment install overrides Global for the workspaces built from it.
2588
2591
 
2589
2592
  ## Search, inspect, execute
2590
2593
 
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ENGINE_ENV,
4
4
  setAgentCredentialSnapshot
5
- } from "./chunk-4FTBKGMO.js";
5
+ } from "./chunk-2CFOJHNH.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-TMERKNQV.js";
14
+ } from "./chunk-5NBVP6A2.js";
15
15
 
16
16
  // src/managers/codex-token-manager.ts
17
17
  import { promises as fs } from "fs";
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CodexAspAuthMethodChangedError
4
- } from "./chunk-6WY7NPCL.js";
4
+ } from "./chunk-A2ZICXOK.js";
5
5
  import {
6
6
  HOOK_EXEC_MAX_BUFFER_BYTES,
7
7
  isVersionBelow
8
- } from "./chunk-TMERKNQV.js";
8
+ } from "./chunk-5NBVP6A2.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.671";
226
+ var ENGINE_PACKAGE_VERSION = "0.1.673";
227
227
  var INITIALIZE_METHOD = "initialize";
228
228
  var INITIALIZED_NOTIFICATION = "initialized";
229
229
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -3,9 +3,9 @@ import {
3
3
  CodexAspAuthMethodChangedError,
4
4
  CodexTokenManager,
5
5
  codexTokenManager
6
- } from "./chunk-6WY7NPCL.js";
7
- import "./chunk-4FTBKGMO.js";
8
- import "./chunk-TMERKNQV.js";
6
+ } from "./chunk-A2ZICXOK.js";
7
+ import "./chunk-2CFOJHNH.js";
8
+ import "./chunk-5NBVP6A2.js";
9
9
  export {
10
10
  CodexAspAuthMethodChangedError,
11
11
  CodexTokenManager,
@@ -4,8 +4,8 @@ import {
4
4
  IS_WARMING_MODE,
5
5
  loadEngineEnv,
6
6
  setAgentCredentialSnapshot
7
- } from "./chunk-4FTBKGMO.js";
8
- import "./chunk-TMERKNQV.js";
7
+ } from "./chunk-2CFOJHNH.js";
8
+ import "./chunk-5NBVP6A2.js";
9
9
  export {
10
10
  ENGINE_ENV,
11
11
  IS_WARMING_MODE,
@@ -8,7 +8,7 @@ import {
8
8
  AGENT,
9
9
  getMemoryOutputSafetyViolation,
10
10
  headlessAgentRequestSchema
11
- } from "./chunk-TMERKNQV.js";
11
+ } from "./chunk-5NBVP6A2.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-S2SD6PQE.js"),
177
- import("./codex-token-manager-RX4N2W22.js"),
178
- import("./engine-env-A2FZA66L.js")
176
+ import("./app-server-process-EVCFSBVG.js"),
177
+ import("./codex-token-manager-VIZLBLS2.js"),
178
+ import("./engine-env-3AQ2O2WZ.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-6GXXZQID.js";
29
+ } from "./chunk-CKJJIOSE.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-6WY7NPCL.js";
40
+ } from "./chunk-A2ZICXOK.js";
41
41
  import {
42
42
  ENGINE_ENV,
43
43
  IS_WARMING_MODE,
44
44
  isRecord as isRecord2,
45
45
  setAgentCredentialSnapshot
46
- } from "./chunk-4FTBKGMO.js";
46
+ } from "./chunk-2CFOJHNH.js";
47
47
  import {
48
48
  AGENT,
49
49
  AGENT_MODELS,
@@ -203,7 +203,7 @@ import {
203
203
  serializeCanvasContentResponse,
204
204
  shellQuotePosix,
205
205
  stripAgentDiagnosticErrors
206
- } from "./chunk-TMERKNQV.js";
206
+ } from "./chunk-5NBVP6A2.js";
207
207
 
208
208
  // src/index.ts
209
209
  import { serve } from "@hono/node-server";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.671",
3
+ "version": "0.1.673",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -161,7 +161,7 @@ export type NativePluginId = Extract<(typeof PLUGIN_CATALOG)[number], {
161
161
  export type ComposioPluginId = Extract<(typeof PLUGIN_CATALOG)[number], {
162
162
  backend: 'composio';
163
163
  }>['id'];
164
- export type PluginScope = 'organization' | 'environment' | 'personal';
164
+ export type PluginScope = 'environment' | 'personal';
165
165
  export type PluginAuthType = (typeof PLUGIN_CATALOG)[number]['authType'];
166
166
  export type PluginCategory = (typeof PLUGIN_CATALOG)[number]['category'];
167
167
  export declare const PLUGIN_CONNECTION_STATUSES: readonly ["initiated", "active", "expired", "failed"];
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- AppServerProcess
4
- } from "./chunk-6GXXZQID.js";
5
- import "./chunk-6WY7NPCL.js";
6
- import "./chunk-4FTBKGMO.js";
7
- import "./chunk-TMERKNQV.js";
8
- export {
9
- AppServerProcess
10
- };