replicas-engine 0.1.804 → 0.1.806

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-NFHLOVTM.js";
9
- import "./chunk-HVVAIQOZ.js";
10
- import "./chunk-7ZLO77GJ.js";
8
+ } from "./chunk-GXUPVXQS.js";
9
+ import "./chunk-6TQWCSXK.js";
10
+ import "./chunk-H2FYAVUW.js";
11
11
  import "./chunk-UZSNFLDQ.js";
12
- import "./chunk-6MFMPKRG.js";
12
+ import "./chunk-RBSDAHZ7.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
  export {
15
15
  getCodexAspHost,
@@ -15,7 +15,7 @@ import {
15
15
  isValidRelayBaseProvider,
16
16
  parsePosixEnvFile,
17
17
  readReplicasRuntimeEnv
18
- } from "./chunk-6MFMPKRG.js";
18
+ } from "./chunk-RBSDAHZ7.js";
19
19
 
20
20
  // src/engine-env.ts
21
21
  import { readFileSync as readFileSync2 } from "fs";
@@ -5,18 +5,18 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  setAgentCredentialSnapshot
8
- } from "./chunk-HVVAIQOZ.js";
8
+ } from "./chunk-6TQWCSXK.js";
9
9
  import {
10
10
  AppServerProcess,
11
11
  buildCodexAgentEnv
12
- } from "./chunk-7ZLO77GJ.js";
12
+ } from "./chunk-H2FYAVUW.js";
13
13
  import {
14
14
  CODEX_AUTH_ENV_KEYS,
15
15
  CODEX_AUTH_ENV_KEYS_BY_METHOD,
16
16
  codexAuthEnvFromResponse,
17
17
  createErrorResult,
18
18
  createSuccessResult
19
- } from "./chunk-6MFMPKRG.js";
19
+ } from "./chunk-RBSDAHZ7.js";
20
20
 
21
21
  // src/managers/codex-token-manager.ts
22
22
  import { promises as fs } from "fs";
@@ -232,7 +232,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
232
232
  const data = await response.json();
233
233
  await this.applyCredentialsResponse(data);
234
234
  if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
235
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-HYG3E6NG.js");
235
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-JYPIVHGI.js");
236
236
  await restartCodexAspHostIfRunning2();
237
237
  }
238
238
  if (data.scope) {
@@ -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-6MFMPKRG.js";
7
+ } from "./chunk-RBSDAHZ7.js";
8
8
 
9
9
  // src/utils/codex-agent-env.ts
10
10
  function buildCodexAgentEnv(source = process.env) {
@@ -241,7 +241,7 @@ var DEFAULT_CODEX_ARGS = [
241
241
  var MIN_CODEX_CLI_VERSION = "0.153.3";
242
242
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
243
243
  var codexCliVersionEnsured = null;
244
- var ENGINE_PACKAGE_VERSION = "0.1.804";
244
+ var ENGINE_PACKAGE_VERSION = "0.1.806";
245
245
  var INITIALIZE_METHOD = "initialize";
246
246
  var INITIALIZED_NOTIFICATION = "initialized";
247
247
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  findCodeHostPullRequestUrls,
6
6
  mayCreatePullRequest
7
- } from "./chunk-6MFMPKRG.js";
7
+ } from "./chunk-RBSDAHZ7.js";
8
8
 
9
9
  // src/services/post-tool-pr-notifier.ts
10
10
  async function notifyPostToolUse(toolName, toolInput, toolResult) {
@@ -1799,15 +1799,14 @@ function skillNamesFromCommand(command) {
1799
1799
  }
1800
1800
 
1801
1801
  // ../shared/src/urls.ts
1802
- var HOME_PATH = "/home";
1803
1802
  var DASHBOARD_PATH = "/dashboard";
1804
1803
  var WEB_APP_PATHS = {
1805
- home: HOME_PATH,
1806
- onboarding: `${HOME_PATH}/onboarding`,
1807
- workspaces: `${HOME_PATH}/workspace`,
1808
- automations: `${HOME_PATH}/automations`,
1809
- environment: `${HOME_PATH}/environment`,
1810
- analytics: `${HOME_PATH}/analytics`,
1804
+ home: "/",
1805
+ onboarding: "/onboarding",
1806
+ workspaces: "/workspace",
1807
+ automations: "/automations",
1808
+ environment: "/environment",
1809
+ analytics: "/analytics",
1811
1810
  dashboard: DASHBOARD_PATH,
1812
1811
  agents: `${DASHBOARD_PATH}/agents`,
1813
1812
  integrations: `${DASHBOARD_PATH}/integrations`,
@@ -1827,6 +1826,7 @@ var WEB_APP_PATHS = {
1827
1826
  };
1828
1827
  var LEGACY_WEB_APP_PATHS = {
1829
1828
  app: "/app",
1829
+ home: "/home",
1830
1830
  dashboardWorkspaces: `${DASHBOARD_PATH}/workspaces`
1831
1831
  };
1832
1832
  var PR_URL_REGEX = /github\.com\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
@@ -2542,7 +2542,7 @@ For each media file, the CLI prints an embed line and a dashboard link:
2542
2542
 
2543
2543
  1. Default and organization access print \`Replicas chat embed: ![filename](<api-url>)\`; this authenticated URL renders inline in Replicas chat **only** \u2014 see below.
2544
2544
  2. Public access (\`--access public\` or \`--share\`) prints \`![filename](<public-url>)\` as the Forge embed instead. This is the public, stable bearer URL for GitHub fallback embeds when native \`--attach\` is unavailable and sharing is authorized.
2545
- 3. \`View in Replicas: <deep-link>\` is a per-file dashboard URL of the form \`https://replicas.dev/workspaces/<workspace-id>?media=<media-id>\` that opens directly to that specific file.
2545
+ 3. \`View in Replicas: <deep-link>\` is a per-file dashboard URL of the form \`https://app.replicas.dev/workspaces/<workspace-id>?media=<media-id>\` that opens directly to that specific file.
2546
2546
 
2547
2547
  Match each "View in Replicas" line to the embed line directly above it \u2014 that's the deep link for that file.
2548
2548
 
@@ -2571,7 +2571,7 @@ replicas media upload screenshot.png --name "Login page" --access public
2571
2571
  | \`https://api.replicas.dev/v1/media/<id>\` (inside \`![\u2026](\u2026)\`) | Authenticated API redirect to a presigned blob \u2014 requires the Replicas chat session | **Only** in the Replicas chat reply. Nowhere else. |
2572
2572
  | \`https://replicas.dev/organizations/<organization-id>/media/<media-id>\` | Organization-only page printed by \`--access organization\` | Pull requests and other places where every viewer belongs to the Replicas organization. |
2573
2573
  | \`https://api.replicas.dev/v1/media/public/<id>/<token>\` | Opt-in public bearer URL printed by \`--access public\` or \`--share\` | The Replicas chat reply and GitHub fallback embeds, for image, video, or audio media. |
2574
- | \`https://replicas.dev/workspaces/<workspace-id>?media=<media-id>\` | Authenticated dashboard deep link that opens the media file in the workspace | Everywhere external: Slack, GitHub, GitLab, Linear, PR bodies, comments, emails. |
2574
+ | \`https://app.replicas.dev/workspaces/<workspace-id>?media=<media-id>\` | Authenticated dashboard deep link that opens the media file in the workspace | Everywhere external: Slack, GitHub, GitLab, Linear, PR bodies, comments, emails. |
2575
2575
 
2576
2576
  ### NEVER link the API redirect URL outside the Replicas chat reply
2577
2577
 
@@ -2590,7 +2590,7 @@ This rule has no exceptions:
2590
2590
  For an organization-only HTML page, use the \`Forge link\` printed by \`--access organization\`. For other authenticated media references, use the dashboard form:
2591
2591
 
2592
2592
  \`\`\`
2593
- https://replicas.dev/workspaces/<workspace-id>?media=<media-id>
2593
+ https://app.replicas.dev/workspaces/<workspace-id>?media=<media-id>
2594
2594
  \`\`\`
2595
2595
 
2596
2596
  The \`media=<media-id>\` query param opens that specific file in the workspace.
@@ -2639,7 +2639,7 @@ await replicas.slack.call('files.completeUploadExternal', {
2639
2639
  files: [{ id: reservation.file_id, title: 'Screenshot' }],
2640
2640
  channel_id: 'CHANNEL_ID',
2641
2641
  thread_ts: 'THREAD_TS',
2642
- initial_comment: '<https://replicas.dev/workspaces/<workspace-id>?media=<media-id>|View in Replicas>',
2642
+ initial_comment: '<https://app.replicas.dev/workspaces/<workspace-id>?media=<media-id>|View in Replicas>',
2643
2643
  });
2644
2644
  \`\`\`
2645
2645
 
@@ -2699,7 +2699,7 @@ curl -s -X PUT "$UPLOAD_URL" \\
2699
2699
  --data-binary @"$FILE"
2700
2700
 
2701
2701
  # 3. Reference assetUrl inline in the comment body, alongside the dashboard link.
2702
- BODY=$(printf '![screenshot](%s)\\n\\n[View in Replicas](https://replicas.dev/workspaces/%s?media=%s)' \\
2702
+ BODY=$(printf '![screenshot](%s)\\n\\n[View in Replicas](https://app.replicas.dev/workspaces/%s?media=%s)' \\
2703
2703
  "$ASSET_URL" "$REPLICAS_WORKSPACE_ID" "$MEDIA_ID")
2704
2704
 
2705
2705
  jq -n \\
@@ -2729,7 +2729,7 @@ Check \`gh --version\` before choosing the delivery path. On a supported host wi
2729
2729
  Before the change:
2730
2730
 
2731
2731
  ![Before state](/tmp/before.png)
2732
- [View in Replicas](https://replicas.dev/workspaces/<workspace-id>?media=<before-media-id>)
2732
+ [View in Replicas](https://app.replicas.dev/workspaces/<workspace-id>?media=<before-media-id>)
2733
2733
  \`\`\`
2734
2734
 
2735
2735
  \`\`\`bash
@@ -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-HVVAIQOZ.js";
6
+ } from "./chunk-6TQWCSXK.js";
7
7
  import {
8
8
  extractCommandProtectionCommandText,
9
9
  findGitCommitSignals,
10
10
  findPrMergeSignals
11
- } from "./chunk-6MFMPKRG.js";
11
+ } from "./chunk-RBSDAHZ7.js";
12
12
 
13
13
  // src/services/command-protection-service.ts
14
14
  var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
@@ -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-XPZB23KL.js";
7
- import "./chunk-HVVAIQOZ.js";
6
+ } from "./chunk-RKEFQSWQ.js";
7
+ import "./chunk-6TQWCSXK.js";
8
8
  import {
9
9
  isRecord
10
10
  } from "./chunk-UZSNFLDQ.js";
11
- import "./chunk-6MFMPKRG.js";
11
+ import "./chunk-RBSDAHZ7.js";
12
12
  import "./chunk-VEQXQN22.js";
13
13
 
14
14
  // src/command-protection-hook.ts
@@ -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-XPZB23KL.js";
6
+ } from "./chunk-RKEFQSWQ.js";
7
7
  import {
8
8
  notifyPostToolUse
9
- } from "./chunk-K3XGH4NJ.js";
10
- import "./chunk-HVVAIQOZ.js";
9
+ } from "./chunk-O57ARVYZ.js";
10
+ import "./chunk-6TQWCSXK.js";
11
11
  import "./chunk-UZSNFLDQ.js";
12
- import "./chunk-6MFMPKRG.js";
12
+ import "./chunk-RBSDAHZ7.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/deepseek-command-protection-plugin.ts
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  AppServerProcess,
10
10
  buildCodexAgentEnv
11
- } from "./chunk-7ZLO77GJ.js";
11
+ } from "./chunk-H2FYAVUW.js";
12
12
  import {
13
13
  AGENT,
14
14
  getMemoryOutputSafetyViolation,
15
15
  headlessAgentRequestSchema
16
- } from "./chunk-6MFMPKRG.js";
16
+ } from "./chunk-RBSDAHZ7.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-XPZB23KL.js";
94
+ } from "./chunk-RKEFQSWQ.js";
95
95
  import {
96
96
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
97
97
  AGENT_MESSAGE_DELTA_METHOD,
@@ -124,20 +124,20 @@ import {
124
124
  recordCredentialFallback,
125
125
  recordExhaustedCredential,
126
126
  restartCodexAspHost
127
- } from "./chunk-NFHLOVTM.js";
127
+ } from "./chunk-GXUPVXQS.js";
128
128
  import {
129
129
  ENGINE_ENV,
130
130
  IS_WARMING_MODE,
131
131
  monolithRequest,
132
132
  monolithService,
133
133
  setAgentCredentialSnapshot
134
- } from "./chunk-HVVAIQOZ.js";
134
+ } from "./chunk-6TQWCSXK.js";
135
135
  import {
136
136
  AspClient,
137
137
  SUBPROCESS_MAX_BUFFER,
138
138
  execAsync,
139
139
  execFileAsync
140
- } from "./chunk-7ZLO77GJ.js";
140
+ } from "./chunk-H2FYAVUW.js";
141
141
  import {
142
142
  isRecord as isRecord2
143
143
  } from "./chunk-UZSNFLDQ.js";
@@ -341,7 +341,7 @@ import {
341
341
  spawnRelaySubagentRequestSchema,
342
342
  stripAgentDiagnosticErrors,
343
343
  withTimeout
344
- } from "./chunk-6MFMPKRG.js";
344
+ } from "./chunk-RBSDAHZ7.js";
345
345
  import {
346
346
  __commonJS,
347
347
  __export,
@@ -3,11 +3,11 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  notifyPostToolUse
6
- } from "./chunk-K3XGH4NJ.js";
6
+ } from "./chunk-O57ARVYZ.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
- import "./chunk-6MFMPKRG.js";
10
+ import "./chunk-RBSDAHZ7.js";
11
11
  import "./chunk-VEQXQN22.js";
12
12
 
13
13
  // src/post-tool-pr-hook.ts
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  messageRelaySubagentRequestSchema,
6
6
  spawnRelaySubagentRequestSchema
7
- } from "./chunk-6MFMPKRG.js";
7
+ } from "./chunk-RBSDAHZ7.js";
8
8
  import "./chunk-VEQXQN22.js";
9
9
 
10
10
  // src/relay-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.804",
3
+ "version": "0.1.806",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",