replicas-cli 0.2.582 → 0.2.584
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 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24472,7 +24472,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
24472
24472
|
});
|
|
24473
24473
|
|
|
24474
24474
|
// ../shared/src/cli-version.ts
|
|
24475
|
-
var CLI_VERSION = "0.2.
|
|
24475
|
+
var CLI_VERSION = "0.2.584";
|
|
24476
24476
|
|
|
24477
24477
|
// ../shared/src/version.ts
|
|
24478
24478
|
function compareVersions(v1, v2) {
|
|
@@ -30789,11 +30789,20 @@ async function mothershipRelayCommand(options) {
|
|
|
30789
30789
|
if (!channel || !thread || !message) {
|
|
30790
30790
|
throw new Error("--channel, --thread, and --message are all required.");
|
|
30791
30791
|
}
|
|
30792
|
-
await agentFetch("/v1/agent/mothership/relay", {
|
|
30792
|
+
const result = await agentFetch("/v1/agent/mothership/relay", {
|
|
30793
30793
|
method: "POST",
|
|
30794
|
-
body: {
|
|
30794
|
+
body: {
|
|
30795
|
+
channel_id: channel,
|
|
30796
|
+
thread_ts: thread,
|
|
30797
|
+
message,
|
|
30798
|
+
...user ? { user_id: user } : {},
|
|
30799
|
+
...options.interrupt ? { interrupt: true } : {}
|
|
30800
|
+
}
|
|
30795
30801
|
});
|
|
30796
|
-
|
|
30802
|
+
const folded = result.folded_in ? ` Folded in ${result.folded_in} earlier relay${result.folded_in === 1 ? "" : "s"} that had not started yet.` : "";
|
|
30803
|
+
console.log(
|
|
30804
|
+
result.interrupted ? `Interrupted the thread's dedicated workspace and relayed the message.${folded}` : "Relayed to the thread's dedicated workspace."
|
|
30805
|
+
);
|
|
30797
30806
|
}
|
|
30798
30807
|
|
|
30799
30808
|
// src/commands/environment.ts
|
|
@@ -32100,7 +32109,7 @@ if (isAgentMode()) {
|
|
|
32100
32109
|
process.exit(1);
|
|
32101
32110
|
}
|
|
32102
32111
|
});
|
|
32103
|
-
mothership.command("relay").description("Relay a follow-up message into the workspace already bound to a Slack thread").requiredOption("--channel <id>", "Slack channel id of the thread").requiredOption("--thread <ts>", "Slack thread timestamp").requiredOption("--message <text>", "The follow-up message to deliver to the workspace").option("--user <id>", "Slack id of the follow-up's author (from the incoming message), for correct attribution").action(async (options) => {
|
|
32112
|
+
mothership.command("relay").description("Relay a follow-up message into the workspace already bound to a Slack thread").requiredOption("--channel <id>", "Slack channel id of the thread").requiredOption("--thread <ts>", "Slack thread timestamp").requiredOption("--message <text>", "The follow-up message to deliver to the workspace").option("--user <id>", "Slack id of the follow-up's author (from the incoming message), for correct attribution").option("--interrupt", "Stop the workspace mid-turn so it picks this message up now instead of after the current turn").action(async (options) => {
|
|
32104
32113
|
try {
|
|
32105
32114
|
await mothershipRelayCommand(options);
|
|
32106
32115
|
} catch (error51) {
|