replicas-cli 0.2.51 → 0.2.52
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.
package/dist/index.mjs
CHANGED
|
@@ -1855,12 +1855,12 @@ async function interactiveCommand() {
|
|
|
1855
1855
|
);
|
|
1856
1856
|
}
|
|
1857
1857
|
console.log(chalk17.gray("Starting interactive mode..."));
|
|
1858
|
-
const { launchInteractive } = await import("./interactive-
|
|
1858
|
+
const { launchInteractive } = await import("./interactive-N5J5JUYL.mjs");
|
|
1859
1859
|
await launchInteractive();
|
|
1860
1860
|
}
|
|
1861
1861
|
|
|
1862
1862
|
// src/index.ts
|
|
1863
|
-
var CLI_VERSION = "0.2.
|
|
1863
|
+
var CLI_VERSION = "0.2.52";
|
|
1864
1864
|
var program = new Command();
|
|
1865
1865
|
program.name("replicas").description("CLI for managing Replicas workspaces").version(CLI_VERSION);
|
|
1866
1866
|
program.command("login").description("Authenticate with your Replicas account").action(async () => {
|
package/package.json
CHANGED
|
@@ -1488,6 +1488,11 @@ import { Fragment as Fragment3, jsx as jsx7, jsxs as jsxs7 } from "@opentui/reac
|
|
|
1488
1488
|
var WEB_APP_URL = process.env.REPLICAS_WEB_URL || "https://replicas.dev";
|
|
1489
1489
|
function buildInteractiveItems(workspaceId, status, previews, wakingWorkspaceId) {
|
|
1490
1490
|
const items = [];
|
|
1491
|
+
const hasAnyPr = status.repoStatuses?.some((repo) => repo.prUrl);
|
|
1492
|
+
const githubConfigured = status.environmentDetails?.githubAccessConfigured;
|
|
1493
|
+
if (workspaceId && status.status === "active" && !hasAnyPr && githubConfigured) {
|
|
1494
|
+
items.push({ type: "createPr" });
|
|
1495
|
+
}
|
|
1491
1496
|
if (workspaceId) {
|
|
1492
1497
|
items.push({ type: "dashboard", workspaceId });
|
|
1493
1498
|
}
|
|
@@ -1506,11 +1511,6 @@ function buildInteractiveItems(workspaceId, status, previews, wakingWorkspaceId)
|
|
|
1506
1511
|
}
|
|
1507
1512
|
}
|
|
1508
1513
|
}
|
|
1509
|
-
const hasAnyPr = status.repoStatuses?.some((repo) => repo.prUrl);
|
|
1510
|
-
const githubConfigured = status.environmentDetails?.githubAccessConfigured;
|
|
1511
|
-
if (workspaceId && status.status === "active" && !hasAnyPr && githubConfigured) {
|
|
1512
|
-
items.push({ type: "createPr" });
|
|
1513
|
-
}
|
|
1514
1514
|
return items;
|
|
1515
1515
|
}
|
|
1516
1516
|
function getItemLabel(item) {
|
|
@@ -1757,6 +1757,15 @@ function WorkspaceInfo({ status, workspaceName, workspaceId, focused, loading, e
|
|
|
1757
1757
|
] })
|
|
1758
1758
|
] })
|
|
1759
1759
|
] }) }),
|
|
1760
|
+
createPrItem && /* @__PURE__ */ jsx7(
|
|
1761
|
+
InteractiveRow,
|
|
1762
|
+
{
|
|
1763
|
+
label: getItemLabel(createPrItem),
|
|
1764
|
+
highlighted: isHighlighted(createPrItem),
|
|
1765
|
+
disabled: isPlanMode,
|
|
1766
|
+
onClick: () => handleAction(createPrItem)
|
|
1767
|
+
}
|
|
1768
|
+
),
|
|
1760
1769
|
dashboardItem && /* @__PURE__ */ jsx7(
|
|
1761
1770
|
InteractiveRow,
|
|
1762
1771
|
{
|
|
@@ -1852,15 +1861,6 @@ function WorkspaceInfo({ status, workspaceName, workspaceId, focused, loading, e
|
|
|
1852
1861
|
)
|
|
1853
1862
|
] }, i);
|
|
1854
1863
|
}) }),
|
|
1855
|
-
createPrItem && /* @__PURE__ */ jsx7(
|
|
1856
|
-
InteractiveRow,
|
|
1857
|
-
{
|
|
1858
|
-
label: getItemLabel(createPrItem),
|
|
1859
|
-
highlighted: isHighlighted(createPrItem),
|
|
1860
|
-
disabled: isPlanMode,
|
|
1861
|
-
onClick: () => handleAction(createPrItem)
|
|
1862
|
-
}
|
|
1863
|
-
),
|
|
1864
1864
|
env && /* @__PURE__ */ jsxs7(Section, { title: "Hooks", children: [
|
|
1865
1865
|
/* @__PURE__ */ jsx7(CardItem, { label: "Global warm", status: env.globalWarmHookCompleted.status }),
|
|
1866
1866
|
env.repositories.map((repo, i) => /* @__PURE__ */ jsxs7(React5.Fragment, { children: [
|