replicas-cli 0.2.633 → 0.2.634
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 +10 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -27248,7 +27248,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
27248
27248
|
});
|
|
27249
27249
|
|
|
27250
27250
|
// ../shared/src/cli-version.ts
|
|
27251
|
-
var CLI_VERSION = "0.2.
|
|
27251
|
+
var CLI_VERSION = "0.2.634";
|
|
27252
27252
|
|
|
27253
27253
|
// ../shared/src/version.ts
|
|
27254
27254
|
function compareVersions(v1, v2) {
|
|
@@ -31420,15 +31420,16 @@ async function mothershipRelayCommand(options) {
|
|
|
31420
31420
|
if (!channel || !thread || !message) {
|
|
31421
31421
|
throw new Error("--channel, --thread, and --message are all required.");
|
|
31422
31422
|
}
|
|
31423
|
+
const body = {
|
|
31424
|
+
channel_id: channel,
|
|
31425
|
+
thread_ts: thread,
|
|
31426
|
+
message,
|
|
31427
|
+
...user ? { user_id: user } : {},
|
|
31428
|
+
...options.queue ? { queue: true } : {}
|
|
31429
|
+
};
|
|
31423
31430
|
const result = await agentFetch("/v1/agent/mothership/relay", {
|
|
31424
31431
|
method: "POST",
|
|
31425
|
-
body
|
|
31426
|
-
channel_id: channel,
|
|
31427
|
-
thread_ts: thread,
|
|
31428
|
-
message,
|
|
31429
|
-
...user ? { user_id: user } : {},
|
|
31430
|
-
...options.interrupt ? { interrupt: true } : {}
|
|
31431
|
-
}
|
|
31432
|
+
body
|
|
31432
31433
|
});
|
|
31433
31434
|
const folded = result.folded_in ? ` Folded in ${result.folded_in} earlier relay${result.folded_in === 1 ? "" : "s"} that had not started yet.` : "";
|
|
31434
31435
|
console.log(
|
|
@@ -32760,7 +32761,7 @@ if (isAgentMode()) {
|
|
|
32760
32761
|
process.exit(1);
|
|
32761
32762
|
}
|
|
32762
32763
|
});
|
|
32763
|
-
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("--
|
|
32764
|
+
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("--queue", "Let active work finish before delivering this message").action(async (options) => {
|
|
32764
32765
|
try {
|
|
32765
32766
|
await mothershipRelayCommand(options);
|
|
32766
32767
|
} catch (error51) {
|