replicas-cli 0.2.111 → 0.2.112
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}`,
|
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
setIdeCommand,
|
|
17
17
|
setOrganizationId,
|
|
18
18
|
writeConfig
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RQNT5UE5.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-
|
|
2508
|
+
const { launchInteractive } = await import("./interactive-QMXFBQSH.mjs");
|
|
2509
2509
|
await launchInteractive();
|
|
2510
2510
|
}
|
|
2511
2511
|
|
|
2512
2512
|
// src/index.ts
|
|
2513
|
-
var CLI_VERSION = "0.2.
|
|
2513
|
+
var CLI_VERSION = "0.2.112";
|
|
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 () => {
|