replicas-cli 0.2.663 → 0.2.665
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.cjs +26 -14
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -27042,6 +27042,8 @@ function excludeQueuedAcceptedEvents(events, queue, removedMessageIds = []) {
|
|
|
27042
27042
|
// ../shared/src/pricing.ts
|
|
27043
27043
|
var AUTOMATED_SOURCES = ["api", "automation"];
|
|
27044
27044
|
var AUTOMATED_SOURCES_SQL = AUTOMATED_SOURCES.map((s) => `'${s}'`).join(", ");
|
|
27045
|
+
var DEVELOPER_SEAT_MINUTES = 150 * 60;
|
|
27046
|
+
var DEVELOPER_SEAT_HOURS = DEVELOPER_SEAT_MINUTES / 60;
|
|
27045
27047
|
var PLANS = {
|
|
27046
27048
|
trial: {
|
|
27047
27049
|
id: "trial",
|
|
@@ -27061,14 +27063,14 @@ var PLANS = {
|
|
|
27061
27063
|
developer: {
|
|
27062
27064
|
id: "developer",
|
|
27063
27065
|
name: "Developer",
|
|
27064
|
-
monthlyPrice:
|
|
27065
|
-
seatPriceCents:
|
|
27066
|
+
monthlyPrice: 50,
|
|
27067
|
+
seatPriceCents: 5e3,
|
|
27066
27068
|
features: [
|
|
27067
|
-
|
|
27068
|
-
"
|
|
27069
|
-
"
|
|
27070
|
-
"
|
|
27071
|
-
"
|
|
27069
|
+
`${DEVELOPER_SEAT_HOURS} hours per seat per month`,
|
|
27070
|
+
"API and automations billed by usage",
|
|
27071
|
+
"Unlimited repositories",
|
|
27072
|
+
"Unlimited environments",
|
|
27073
|
+
"Unlimited automations",
|
|
27072
27074
|
"Warm pools and warm hooks",
|
|
27073
27075
|
"API access",
|
|
27074
27076
|
"Mobile app"
|
|
@@ -27077,11 +27079,11 @@ var PLANS = {
|
|
|
27077
27079
|
team: {
|
|
27078
27080
|
id: "team",
|
|
27079
27081
|
name: "Team",
|
|
27080
|
-
monthlyPrice:
|
|
27081
|
-
seatPriceCents:
|
|
27082
|
+
monthlyPrice: 200,
|
|
27083
|
+
seatPriceCents: 2e4,
|
|
27082
27084
|
features: [
|
|
27083
27085
|
"Unlimited manual workspace minutes",
|
|
27084
|
-
"
|
|
27086
|
+
"API and automations billed by usage",
|
|
27085
27087
|
"Unlimited repositories",
|
|
27086
27088
|
"Unlimited automations",
|
|
27087
27089
|
"Warm pools and warm hooks",
|
|
@@ -27273,7 +27275,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
27273
27275
|
});
|
|
27274
27276
|
|
|
27275
27277
|
// ../shared/src/cli-version.ts
|
|
27276
|
-
var CLI_VERSION = "0.2.
|
|
27278
|
+
var CLI_VERSION = "0.2.665";
|
|
27277
27279
|
|
|
27278
27280
|
// ../shared/src/version.ts
|
|
27279
27281
|
function compareVersions(v1, v2) {
|
|
@@ -31488,6 +31490,17 @@ async function mothershipSpawnCommand(options) {
|
|
|
31488
31490
|
method: "POST",
|
|
31489
31491
|
body
|
|
31490
31492
|
});
|
|
31493
|
+
for (let attempt = 0; attempt < 60; attempt++) {
|
|
31494
|
+
const result = await agentFetch(
|
|
31495
|
+
`/v1/agent/mothership/thread-workspace?channel_id=${encodeURIComponent(channel)}&thread_ts=${encodeURIComponent(thread)}`
|
|
31496
|
+
);
|
|
31497
|
+
if (result.workspace_id) {
|
|
31498
|
+
console.log(`Spawned workspace.
|
|
31499
|
+
Workspace: ${getWorkspaceDashboardUrl(result.workspace_id)}`);
|
|
31500
|
+
return;
|
|
31501
|
+
}
|
|
31502
|
+
await new Promise((resolve2) => setTimeout(resolve2, 1e3));
|
|
31503
|
+
}
|
|
31491
31504
|
console.log("Workspace spawn requested. The new workspace will take over this Slack thread.");
|
|
31492
31505
|
}
|
|
31493
31506
|
async function mothershipRelayCommand(options) {
|
|
@@ -31510,9 +31523,8 @@ async function mothershipRelayCommand(options) {
|
|
|
31510
31523
|
body
|
|
31511
31524
|
});
|
|
31512
31525
|
const folded = result.folded_in ? ` Folded in ${result.folded_in} earlier relay${result.folded_in === 1 ? "" : "s"} that had not started yet.` : "";
|
|
31513
|
-
console.log(
|
|
31514
|
-
|
|
31515
|
-
);
|
|
31526
|
+
console.log(`${result.interrupted ? `Interrupted the thread's dedicated workspace and relayed the message.${folded}` : "Relayed to the thread's dedicated workspace."}
|
|
31527
|
+
Workspace: ${getWorkspaceDashboardUrl(result.workspace_id)}`);
|
|
31516
31528
|
}
|
|
31517
31529
|
|
|
31518
31530
|
// src/commands/environment.ts
|