replicas-cli 0.3.11 → 0.3.12

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.
Files changed (2) hide show
  1. package/dist/index.cjs +13 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -22876,6 +22876,7 @@ var CODEX_ITEM_PARTIAL_EVENT_TYPE = "codex-item-partial";
22876
22876
  var CODEX_TURN_EVENT_TYPE = "codex-turn";
22877
22877
  var CODEX_QUOTA_STATUS_EVENT_TYPE = "codex-quota-status";
22878
22878
  var CHAT_INTERRUPTED_EVENT_TYPE = "replicas-interrupted";
22879
+ var CHAT_MESSAGE_REJECTED_EVENT_TYPE = "replicas-message-rejected";
22879
22880
  var AUTH_FALLBACK_EVENT_TYPE = "auth-fallback";
22880
22881
  function coerceAuthFallbackPayload(payload) {
22881
22882
  const { provider: provider2, reason, exhaustedMethod, exhaustedScope, candidateMethod, candidateScope, status, detail } = payload;
@@ -27981,7 +27982,7 @@ function parseDisplayMessages(events, agentType, options = {}) {
27981
27982
  else reconciledEvents.push(message2);
27982
27983
  }
27983
27984
  if (options.filter === false) return reconciledEvents;
27984
- return applyAuthFallbackNotices(
27985
+ return applyEngineNotices(
27985
27986
  applyInterruptions(filterDisplayMessages(reconciledEvents, agentType), events),
27986
27987
  events
27987
27988
  );
@@ -28022,9 +28023,18 @@ function applyInterruptions(messages, events) {
28022
28023
  }
28023
28024
  return finalized;
28024
28025
  }
28025
- function applyAuthFallbackNotices(messages, events) {
28026
+ function applyEngineNotices(messages, events) {
28026
28027
  const notices = [];
28027
28028
  events.forEach((event, index) => {
28029
+ if (event.type === CHAT_MESSAGE_REJECTED_EVENT_TYPE) {
28030
+ notices.push({
28031
+ id: `message-rejected-${event.timestamp}-${index}`,
28032
+ type: "error",
28033
+ message: typeof event.payload.message === "string" ? event.payload.message : "Message was rejected",
28034
+ timestamp: event.timestamp
28035
+ });
28036
+ return;
28037
+ }
28028
28038
  if (event.type !== AUTH_FALLBACK_EVENT_TYPE) return;
28029
28039
  const payload = coerceAuthFallbackPayload(event.payload);
28030
28040
  if (!payload) return;
@@ -28370,7 +28380,7 @@ var headlessAgentRequestSchema = external_exports.object({
28370
28380
  });
28371
28381
 
28372
28382
  // ../shared/src/cli-version.ts
28373
- var CLI_VERSION = "0.3.11";
28383
+ var CLI_VERSION = "0.3.12";
28374
28384
 
28375
28385
  // ../shared/src/version.ts
28376
28386
  function compareVersions(v1, v2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {