replicas-cli 0.2.111 → 0.2.113

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.
@@ -7595,6 +7595,9 @@ function removeReplicasInstructions(text) {
7595
7595
  return removeTag(text, REPLICAS_INSTRUCTIONS_TAG);
7596
7596
  }
7597
7597
 
7598
+ // ../shared/src/event.ts
7599
+ var CODEX_QUOTA_STATUS_EVENT_TYPE = "codex-quota-status";
7600
+
7598
7601
  // ../shared/src/display-message/parsers/codex-parser.ts
7599
7602
  function safeJsonParse(str, fallback) {
7600
7603
  try {
@@ -7671,6 +7674,22 @@ function parseCodexEvents(events) {
7671
7674
  const pendingCommands = /* @__PURE__ */ new Map();
7672
7675
  const pendingPatches = /* @__PURE__ */ new Map();
7673
7676
  events.forEach((event, eventIndex) => {
7677
+ if (event.type === CODEX_QUOTA_STATUS_EVENT_TYPE) {
7678
+ const state = event.payload?.state;
7679
+ if (state) {
7680
+ messages.push({
7681
+ id: `codex-quota-${event.timestamp}-${eventIndex}`,
7682
+ type: "quota_status",
7683
+ provider: "codex",
7684
+ state,
7685
+ balance: event.payload?.balance ?? null,
7686
+ rateLimitResetType: event.payload?.rateLimitResetType ?? null,
7687
+ planType: event.payload?.planType ?? null,
7688
+ timestamp: event.timestamp
7689
+ });
7690
+ }
7691
+ return;
7692
+ }
7674
7693
  if (event.type === "event_msg" && event.payload?.type === "user_message") {
7675
7694
  messages.push({
7676
7695
  id: `user-${event.timestamp}-${eventIndex}`,
@@ -8353,6 +8372,16 @@ var ENTERPRISE_PLAN = PLANS.enterprise;
8353
8372
  var WORKSPACE_FILE_UPLOAD_MAX_SIZE_BYTES = 20 * 1024 * 1024;
8354
8373
  var WORKSPACE_FILE_CONTENT_MAX_SIZE_BYTES = 1 * 1024 * 1024;
8355
8374
 
8375
+ // ../shared/src/audit-log.ts
8376
+ var AUDIT_LOG_ACTION = {
8377
+ CREATE: "create",
8378
+ UPDATE: "update",
8379
+ DELETE: "delete",
8380
+ CONNECT: "connect",
8381
+ DISCONNECT: "disconnect"
8382
+ };
8383
+ var AUDIT_LOG_ACTIONS = Object.values(AUDIT_LOG_ACTION);
8384
+
8356
8385
  // ../shared/src/user-message-parser/plan-quote.ts
8357
8386
  var MARKER_PREFIX = "> _Quoting from plan_";
8358
8387
  var MARKER_LINE_REGEX = /^> _Quoting from plan_ `([^`\n]+)`\s*$/;
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  setIdeCommand,
17
17
  setOrganizationId,
18
18
  writeConfig
19
- } from "./chunk-Z5AX3HGM.mjs";
19
+ } from "./chunk-LQKKNYFF.mjs";
20
20
 
21
21
  // src/index.ts
22
22
  import "dotenv/config";
@@ -2505,12 +2505,12 @@ async function interactiveCommand() {
2505
2505
  );
2506
2506
  }
2507
2507
  console.log(chalk18.gray("Starting interactive mode..."));
2508
- const { launchInteractive } = await import("./interactive-OSIEBQKB.mjs");
2508
+ const { launchInteractive } = await import("./interactive-R7XRKHTY.mjs");
2509
2509
  await launchInteractive();
2510
2510
  }
2511
2511
 
2512
2512
  // src/index.ts
2513
- var CLI_VERSION = "0.2.111";
2513
+ var CLI_VERSION = "0.2.113";
2514
2514
  var program = new Command();
2515
2515
  program.name("replicas").description("CLI for managing Replicas workspaces").version(CLI_VERSION);
2516
2516
  program.command("login").description("Authenticate with your Replicas account").action(async () => {
@@ -12,7 +12,7 @@ import {
12
12
  isAgentBackendEvent,
13
13
  parseAgentEvents,
14
14
  parseUserMessage
15
- } from "./chunk-Z5AX3HGM.mjs";
15
+ } from "./chunk-LQKKNYFF.mjs";
16
16
 
17
17
  // src/interactive/index.tsx
18
18
  import { createCliRenderer } from "@opentui/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.111",
3
+ "version": "0.2.113",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {