replicas-cli 0.2.76 → 0.2.78
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.
|
@@ -7535,10 +7535,9 @@ function getInitialChatId(chats, preferredProvider = "claude") {
|
|
|
7535
7535
|
const isDefault = (c) => c.title === DEFAULT_CHAT_TITLES[c.provider];
|
|
7536
7536
|
const hasActivity = (c) => c.updatedAt > c.createdAt;
|
|
7537
7537
|
const mostActive = (list) => list.filter(hasActivity).sort((a, b) => b.updatedAt.localeCompare(a.updatedAt))[0] ?? null;
|
|
7538
|
-
const fallbackProvider = preferredProvider === "claude" ? "codex" : "claude";
|
|
7539
7538
|
const preferred = chats.filter((c) => c.provider === preferredProvider);
|
|
7540
|
-
const
|
|
7541
|
-
return mostActive(preferred)?.id ?? mostActive(
|
|
7539
|
+
const others = chats.filter((c) => c.provider !== preferredProvider);
|
|
7540
|
+
return mostActive(preferred)?.id ?? mostActive(others)?.id ?? preferred.find(isDefault)?.id ?? others.find(isDefault)?.id ?? chats[0]?.id ?? null;
|
|
7542
7541
|
}
|
|
7543
7542
|
|
|
7544
7543
|
// ../shared/src/prompts.ts
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
setIdeCommand,
|
|
16
16
|
setOrganizationId,
|
|
17
17
|
writeConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7GHBVYKL.mjs";
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
import "dotenv/config";
|
|
@@ -2509,12 +2509,12 @@ async function interactiveCommand() {
|
|
|
2509
2509
|
);
|
|
2510
2510
|
}
|
|
2511
2511
|
console.log(chalk18.gray("Starting interactive mode..."));
|
|
2512
|
-
const { launchInteractive } = await import("./interactive-
|
|
2512
|
+
const { launchInteractive } = await import("./interactive-Y7ONV5NM.mjs");
|
|
2513
2513
|
await launchInteractive();
|
|
2514
2514
|
}
|
|
2515
2515
|
|
|
2516
2516
|
// src/index.ts
|
|
2517
|
-
var CLI_VERSION = "0.2.
|
|
2517
|
+
var CLI_VERSION = "0.2.78";
|
|
2518
2518
|
var program = new Command();
|
|
2519
2519
|
program.name("replicas").description("CLI for managing Replicas workspaces").version(CLI_VERSION);
|
|
2520
2520
|
program.command("login").description("Authenticate with your Replicas account").action(async () => {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
isAgentBackendEvent,
|
|
12
12
|
parseAgentEvents,
|
|
13
13
|
parseUserMessage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7GHBVYKL.mjs";
|
|
15
15
|
|
|
16
16
|
// src/interactive/index.tsx
|
|
17
17
|
import { createCliRenderer } from "@opentui/core";
|
|
@@ -2401,7 +2401,7 @@ function WorkspaceInfo({ status, workspaceName, workspaceId, focused, loading, e
|
|
|
2401
2401
|
onClick: () => handleAction(wakeItem)
|
|
2402
2402
|
}
|
|
2403
2403
|
),
|
|
2404
|
-
(status.isClaudeProcessing || status.isCodexProcessing) && /* @__PURE__ */ jsxs8("box", { backgroundColor: "#1a1500", paddingX: 1, marginX: 1, marginBottom: 1, children: [
|
|
2404
|
+
(status.isClaudeProcessing || status.isCodexProcessing || status.isRelayProcessing) && /* @__PURE__ */ jsxs8("box", { backgroundColor: "#1a1500", paddingX: 1, marginX: 1, marginBottom: 1, children: [
|
|
2405
2405
|
status.isClaudeProcessing && /* @__PURE__ */ jsx8("text", { children: /* @__PURE__ */ jsxs8("span", { fg: "#ffaa00", children: [
|
|
2406
2406
|
"\u25C6",
|
|
2407
2407
|
" Claude thinking..."
|
|
@@ -2409,6 +2409,10 @@ function WorkspaceInfo({ status, workspaceName, workspaceId, focused, loading, e
|
|
|
2409
2409
|
status.isCodexProcessing && /* @__PURE__ */ jsx8("text", { children: /* @__PURE__ */ jsxs8("span", { fg: "#ffaa00", children: [
|
|
2410
2410
|
"\u25C6",
|
|
2411
2411
|
" Codex thinking..."
|
|
2412
|
+
] }) }),
|
|
2413
|
+
status.isRelayProcessing && /* @__PURE__ */ jsx8("text", { children: /* @__PURE__ */ jsxs8("span", { fg: "#ffaa00", children: [
|
|
2414
|
+
"\u25C6",
|
|
2415
|
+
" Relay thinking..."
|
|
2412
2416
|
] }) })
|
|
2413
2417
|
] }),
|
|
2414
2418
|
env && /* @__PURE__ */ jsxs8(Section, { title: "Agents", children: [
|