replicas-engine 0.1.905 → 0.1.907

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.
@@ -5,11 +5,11 @@ import {
5
5
  getCodexAspHost,
6
6
  restartCodexAspHost,
7
7
  restartCodexAspHostIfRunning
8
- } from "./chunk-BNVUDD7Y.js";
9
- import "./chunk-2VZVUDQM.js";
10
- import "./chunk-OG4Q4YYI.js";
8
+ } from "./chunk-QPDXHNH6.js";
9
+ import "./chunk-7R7AQ77Z.js";
10
+ import "./chunk-6SXCGH4F.js";
11
11
  import "./chunk-UZSNFLDQ.js";
12
- import "./chunk-TPOJS4TI.js";
12
+ import "./chunk-T4HLIO43.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
  export {
15
15
  getCodexAspHost,
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-TPOJS4TI.js";
8
+ } from "./chunk-T4HLIO43.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  HOOK_EXEC_MAX_BUFFER_BYTES,
6
6
  isVersionBelow
7
- } from "./chunk-TPOJS4TI.js";
7
+ } from "./chunk-T4HLIO43.js";
8
8
 
9
9
  // src/utils/codex-agent-env.ts
10
10
  function buildCodexAgentEnv(source = process.env) {
@@ -245,7 +245,7 @@ function getCodexModelProvider(method) {
245
245
  if (method === "foundry") return "azure";
246
246
  return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
247
247
  }
248
- var ENGINE_PACKAGE_VERSION = "0.1.905";
248
+ var ENGINE_PACKAGE_VERSION = "0.1.907";
249
249
  var INITIALIZE_METHOD = "initialize";
250
250
  var INITIALIZED_NOTIFICATION = "initialized";
251
251
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -15,7 +15,7 @@ import {
15
15
  isValidRelayBaseProvider,
16
16
  parsePosixEnvFile,
17
17
  readReplicasRuntimeEnv
18
- } from "./chunk-TPOJS4TI.js";
18
+ } from "./chunk-T4HLIO43.js";
19
19
 
20
20
  // src/engine-env.ts
21
21
  import { readFileSync as readFileSync2 } from "fs";
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  monolithRequest
6
- } from "./chunk-2VZVUDQM.js";
6
+ } from "./chunk-7R7AQ77Z.js";
7
7
  import {
8
8
  extractCommandProtectionCommandText,
9
9
  findGitCommitSignals,
10
10
  findPrMergeSignals
11
- } from "./chunk-TPOJS4TI.js";
11
+ } from "./chunk-T4HLIO43.js";
12
12
 
13
13
  // src/services/command-protection-service.ts
14
14
  var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
@@ -5,13 +5,13 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  setAgentCredentialSnapshot
8
- } from "./chunk-2VZVUDQM.js";
8
+ } from "./chunk-7R7AQ77Z.js";
9
9
  import {
10
10
  AppServerProcess,
11
11
  SUBPROCESS_MAX_BUFFER,
12
12
  buildCodexAgentEnv,
13
13
  execFileAsync
14
- } from "./chunk-OG4Q4YYI.js";
14
+ } from "./chunk-6SXCGH4F.js";
15
15
  import {
16
16
  isRecord
17
17
  } from "./chunk-UZSNFLDQ.js";
@@ -25,7 +25,7 @@ import {
25
25
  listOpenAICompatibleModels,
26
26
  readOllamaAuthEnv,
27
27
  resolveOpenAICompatibleModelsUrl
28
- } from "./chunk-TPOJS4TI.js";
28
+ } from "./chunk-T4HLIO43.js";
29
29
 
30
30
  // src/managers/codex-token-manager.ts
31
31
  import { promises as fs } from "fs";
@@ -255,7 +255,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
255
255
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
256
256
  await this.applyCredentialsResponse(data);
257
257
  if (data.scope) setAgentCredentialSnapshot("codex", { method: data.type, scope: data.scope, revision: data.revision });
258
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-WFPTAICQ.js");
258
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-2P6HEMN5.js");
259
259
  await restartCodexAspHostIfRunning2();
260
260
  });
261
261
  await this.start(true);
@@ -275,7 +275,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
275
275
  await this.applyCredentialUpdate(generation, async () => {
276
276
  await this.applyCredentialsResponse(data);
277
277
  if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
278
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-WFPTAICQ.js");
278
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-2P6HEMN5.js");
279
279
  await restartCodexAspHostIfRunning2();
280
280
  }
281
281
  if (data.scope) {
@@ -3092,6 +3092,8 @@ replicas media upload screenshot.png --name "Login page" --access public
3092
3092
 
3093
3093
  \`--share\` remains an alias for \`--access public\`. Public access prints the raw \`Forge embed\` Markdown instead of the authenticated chat-only embed for image, video, or audio media, backed by an opt-in bearer URL. Anyone with that unguessable URL can view the asset until it is rotated or revoked. HTML pages only support organization access. Use \`replicas media share <media-id>\` to rotate a public media URL and \`replicas media revoke <media-id>\` to revoke it.
3094
3094
 
3095
+ Permanently delete an upload with \`replicas media delete <media-id>\`. The backend only permits deletion when the media belongs to the current workspace; media from another workspace returns not found.
3096
+
3095
3097
  ## The URLs the CLI gives you \u2014 and where each one is allowed
3096
3098
 
3097
3099
  | URL | What it is | Where it's allowed |
@@ -3737,7 +3739,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
3737
3739
  | \`replicas automation ...\` | Manage automations (cron + GitHub/GitLab event triggers) |
3738
3740
  | \`replicas preview ...\` | Register / list preview URLs (covered in \`PREVIEWS.md\`) |
3739
3741
  | \`replicas service ...\` | Run long-lived services detached so they survive workspace sleep/wake (see below) |
3740
- | \`replicas media ...\` | Upload media to the dashboard and follow \`MEDIA.md\` for destination embedding |
3742
+ | \`replicas media ...\` | Upload, list, share, revoke, or delete workspace media; follow \`MEDIA.md\` for destination embedding |
3741
3743
  | \`replicas slack thread ...\` | Attach or switch Slack thread routing (covered in \`SLACK.md\`) |
3742
3744
 
3743
3745
  \`replicas <command> --help\` is always the source of truth for flags.
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  publishedPullRequestUrls
6
- } from "./chunk-4M3ZD5FV.js";
6
+ } from "./chunk-2USMONJR.js";
7
7
  import {
8
8
  shouldRefreshPullRequests
9
- } from "./chunk-TPOJS4TI.js";
9
+ } from "./chunk-T4HLIO43.js";
10
10
 
11
11
  // src/services/post-tool-pr-notifier.ts
12
12
  async function notifyPostToolUse(toolName, toolInput, result) {
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  evaluateCommandProtection
6
- } from "./chunk-7W5IP2MX.js";
7
- import "./chunk-2VZVUDQM.js";
6
+ } from "./chunk-FC2Z2DIV.js";
7
+ import "./chunk-7R7AQ77Z.js";
8
8
  import {
9
9
  isRecord
10
10
  } from "./chunk-UZSNFLDQ.js";
11
- import "./chunk-TPOJS4TI.js";
11
+ import "./chunk-T4HLIO43.js";
12
12
  import "./chunk-VEQXQN22.js";
13
13
 
14
14
  // src/command-protection-hook.ts
@@ -3,14 +3,14 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  evaluateCommandProtection
6
- } from "./chunk-7W5IP2MX.js";
6
+ } from "./chunk-FC2Z2DIV.js";
7
7
  import {
8
8
  notifyPostToolUse
9
- } from "./chunk-7TNL7LE7.js";
10
- import "./chunk-4M3ZD5FV.js";
11
- import "./chunk-2VZVUDQM.js";
9
+ } from "./chunk-U2NGMU7L.js";
10
+ import "./chunk-2USMONJR.js";
11
+ import "./chunk-7R7AQ77Z.js";
12
12
  import "./chunk-UZSNFLDQ.js";
13
- import "./chunk-TPOJS4TI.js";
13
+ import "./chunk-T4HLIO43.js";
14
14
  import "./chunk-VEQXQN22.js";
15
15
 
16
16
  // src/deepseek-command-protection-plugin.ts
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  AppServerProcess,
10
10
  buildCodexAgentEnv
11
- } from "./chunk-OG4Q4YYI.js";
11
+ } from "./chunk-6SXCGH4F.js";
12
12
  import {
13
13
  AGENT,
14
14
  getMemoryOutputSafetyViolation,
15
15
  headlessAgentRequestSchema
16
- } from "./chunk-TPOJS4TI.js";
16
+ } from "./chunk-T4HLIO43.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
 
19
19
  // src/headless-agent.ts
package/dist/src/index.js CHANGED
@@ -91,7 +91,7 @@ import {
91
91
  evaluateCommandProtection,
92
92
  extractToolCommand,
93
93
  reportCommandProtectionBlock
94
- } from "./chunk-7W5IP2MX.js";
94
+ } from "./chunk-FC2Z2DIV.js";
95
95
  import {
96
96
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
97
97
  AGENT_MESSAGE_DELTA_METHOD,
@@ -116,7 +116,7 @@ import {
116
116
  } from "./chunk-FLDA7BX3.js";
117
117
  import {
118
118
  publishedPullRequestUrls
119
- } from "./chunk-4M3ZD5FV.js";
119
+ } from "./chunk-2USMONJR.js";
120
120
  import {
121
121
  RELAY_MCP_TOOLS,
122
122
  RELAY_MCP_TOOL_NAMES,
@@ -137,21 +137,21 @@ import {
137
137
  refreshDelayMs,
138
138
  restartCodexAspHost,
139
139
  routineRefreshExclusions
140
- } from "./chunk-BNVUDD7Y.js";
140
+ } from "./chunk-QPDXHNH6.js";
141
141
  import {
142
142
  ENGINE_ENV,
143
143
  IS_WARMING_MODE,
144
144
  monolithRequest,
145
145
  monolithService,
146
146
  setAgentCredentialSnapshot
147
- } from "./chunk-2VZVUDQM.js";
147
+ } from "./chunk-7R7AQ77Z.js";
148
148
  import {
149
149
  AspClient,
150
150
  SUBPROCESS_MAX_BUFFER,
151
151
  execAsync,
152
152
  execFileAsync,
153
153
  getCodexModelProvider
154
- } from "./chunk-OG4Q4YYI.js";
154
+ } from "./chunk-6SXCGH4F.js";
155
155
  import {
156
156
  isRecord as isRecord2
157
157
  } from "./chunk-UZSNFLDQ.js";
@@ -378,7 +378,7 @@ import {
378
378
  workspaceCredentialProviderSchema,
379
379
  workspaceTokenRequestSchema,
380
380
  workspaceTokenResponseSchema
381
- } from "./chunk-TPOJS4TI.js";
381
+ } from "./chunk-T4HLIO43.js";
382
382
  import {
383
383
  __commonJS,
384
384
  __export,
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  notifyPostToolUse
6
- } from "./chunk-7TNL7LE7.js";
7
- import "./chunk-4M3ZD5FV.js";
6
+ } from "./chunk-U2NGMU7L.js";
7
+ import "./chunk-2USMONJR.js";
8
8
  import {
9
9
  isRecord
10
10
  } from "./chunk-UZSNFLDQ.js";
11
- import "./chunk-TPOJS4TI.js";
11
+ import "./chunk-T4HLIO43.js";
12
12
  import "./chunk-VEQXQN22.js";
13
13
 
14
14
  // src/post-tool-pr-hook.ts
@@ -11,7 +11,7 @@ import {
11
11
  relaySubagentResponseSchema,
12
12
  spawnRelaySubagentRequestSchema,
13
13
  waitRelaySubagentRequestSchema
14
- } from "./chunk-TPOJS4TI.js";
14
+ } from "./chunk-T4HLIO43.js";
15
15
  import "./chunk-VEQXQN22.js";
16
16
 
17
17
  // src/relay-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.905",
3
+ "version": "0.1.907",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",