replicas-engine 0.1.644 → 0.1.646

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.
@@ -1347,6 +1347,35 @@ function isGitHubUrl(url) {
1347
1347
  }
1348
1348
 
1349
1349
  // ../shared/src/urls.ts
1350
+ var HOME_PATH = "/home";
1351
+ var DASHBOARD_PATH = "/dashboard";
1352
+ var WEB_APP_PATHS = {
1353
+ home: HOME_PATH,
1354
+ onboarding: `${HOME_PATH}/onboarding`,
1355
+ workspaces: `${HOME_PATH}/workspace`,
1356
+ automations: `${HOME_PATH}/automations`,
1357
+ environment: `${HOME_PATH}/environment`,
1358
+ analytics: `${HOME_PATH}/analytics`,
1359
+ dashboard: DASHBOARD_PATH,
1360
+ agents: `${DASHBOARD_PATH}/agents`,
1361
+ integrations: `${DASHBOARD_PATH}/integrations`,
1362
+ integrationsGithub: `${DASHBOARD_PATH}/integrations/github`,
1363
+ integrationsGitlab: `${DASHBOARD_PATH}/integrations/gitlab`,
1364
+ settings: `${DASHBOARD_PATH}/settings`,
1365
+ billing: `${DASHBOARD_PATH}/billing`,
1366
+ members: `${DASHBOARD_PATH}/members`,
1367
+ "audit-logs": `${DASHBOARD_PATH}/audit-logs`,
1368
+ accountAgents: `${DASHBOARD_PATH}/account/agents`,
1369
+ accountProfile: `${DASHBOARD_PATH}/account/profile`,
1370
+ accountIntegrations: `${DASHBOARD_PATH}/account/integrations`,
1371
+ accountApiKeys: `${DASHBOARD_PATH}/account/api-keys`,
1372
+ accountPreferences: `${DASHBOARD_PATH}/account/preferences`,
1373
+ fullscreenWorkspaces: "/workspaces"
1374
+ };
1375
+ var LEGACY_WEB_APP_PATHS = {
1376
+ app: "/app",
1377
+ dashboardWorkspaces: `${DASHBOARD_PATH}/workspaces`
1378
+ };
1350
1379
  var PR_URL_REGEX = /github\.com\/([^/]+)\/([^/]+)\/pull\/(\d+)/;
1351
1380
  function parsePrUrl(url) {
1352
1381
  const match = url.match(PR_URL_REGEX);
@@ -5890,7 +5919,7 @@ var DEFAULT_CODEX_ARGS = [
5890
5919
  var MIN_CODEX_CLI_VERSION = "0.144.6";
5891
5920
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
5892
5921
  var codexCliVersionEnsured = null;
5893
- var ENGINE_PACKAGE_VERSION = "0.1.644";
5922
+ var ENGINE_PACKAGE_VERSION = "0.1.646";
5894
5923
  var INITIALIZE_METHOD = "initialize";
5895
5924
  var INITIALIZED_NOTIFICATION = "initialized";
5896
5925
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -7,7 +7,7 @@ import {
7
7
  isUnsafeMemoryOutput,
8
8
  putPresignedFile,
9
9
  recoverCompletedTurn
10
- } from "./chunk-UMIEA67Y.js";
10
+ } from "./chunk-VFNHX5RC.js";
11
11
 
12
12
  // src/headless-agent.ts
13
13
  import { createHash } from "crypto";
package/dist/src/index.js CHANGED
@@ -172,7 +172,7 @@ import {
172
172
  serializeCanvasContentResponse,
173
173
  shellQuotePosix,
174
174
  stripAgentDiagnosticErrors
175
- } from "./chunk-UMIEA67Y.js";
175
+ } from "./chunk-VFNHX5RC.js";
176
176
 
177
177
  // src/index.ts
178
178
  import { serve } from "@hono/node-server";
@@ -10812,7 +10812,9 @@ var ChatService = class {
10812
10812
  request.submittedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
10813
10813
  request.images
10814
10814
  );
10815
- chat.pendingMessageIds.push(result.messageId);
10815
+ if (!chat.pendingMessageIds.includes(result.messageId)) {
10816
+ chat.pendingMessageIds.push(result.messageId);
10817
+ }
10816
10818
  this.agentChatActivityTrackerService.noteMessageAccepted(result.messageId, request);
10817
10819
  if (request.errorNotificationTarget) {
10818
10820
  chat.errorNotificationTargets.set(result.messageId, request.errorNotificationTarget);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.644",
3
+ "version": "0.1.646",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",