replicas-cli 0.2.664 → 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 +14 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -27275,7 +27275,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
27275
27275
|
});
|
|
27276
27276
|
|
|
27277
27277
|
// ../shared/src/cli-version.ts
|
|
27278
|
-
var CLI_VERSION = "0.2.
|
|
27278
|
+
var CLI_VERSION = "0.2.665";
|
|
27279
27279
|
|
|
27280
27280
|
// ../shared/src/version.ts
|
|
27281
27281
|
function compareVersions(v1, v2) {
|
|
@@ -31490,6 +31490,17 @@ async function mothershipSpawnCommand(options) {
|
|
|
31490
31490
|
method: "POST",
|
|
31491
31491
|
body
|
|
31492
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
|
+
}
|
|
31493
31504
|
console.log("Workspace spawn requested. The new workspace will take over this Slack thread.");
|
|
31494
31505
|
}
|
|
31495
31506
|
async function mothershipRelayCommand(options) {
|
|
@@ -31512,9 +31523,8 @@ async function mothershipRelayCommand(options) {
|
|
|
31512
31523
|
body
|
|
31513
31524
|
});
|
|
31514
31525
|
const folded = result.folded_in ? ` Folded in ${result.folded_in} earlier relay${result.folded_in === 1 ? "" : "s"} that had not started yet.` : "";
|
|
31515
|
-
console.log(
|
|
31516
|
-
|
|
31517
|
-
);
|
|
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)}`);
|
|
31518
31528
|
}
|
|
31519
31529
|
|
|
31520
31530
|
// src/commands/environment.ts
|