@jclvsh/dropspace 2.7.0 → 2.7.1
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.
|
@@ -22,7 +22,7 @@ export function registerAutopilotCommands(program, client) {
|
|
|
22
22
|
.option("--enabled", "turn nightly runs on")
|
|
23
23
|
.option("--disabled", "turn nightly runs off")
|
|
24
24
|
.option("--mode <mode>", "review | auto")
|
|
25
|
-
.option("--platforms <list>", "comma-separated platforms
|
|
25
|
+
.option("--platforms <list>", "comma-separated platforms: facebook,linkedin,twitter,reddit,instagram,tiktok,youtube")
|
|
26
26
|
.option("--formats <list>", "comma-separated formats: text,visual,video")
|
|
27
27
|
.option("--persona <id>", 'persona uuid for voice (use "none" to clear)')
|
|
28
28
|
.option("--times <list>", "comma-separated posting times HH:MM (config timezone)")
|
package/dist/tools/autopilot.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
const AUTO_POST_PLATFORMS = ["facebook", "linkedin", "twitter", "reddit", "instagram", "tiktok", "youtube"];
|
|
2
3
|
function ok(result) {
|
|
3
4
|
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
|
4
5
|
}
|
|
@@ -23,7 +24,10 @@ export function registerAutopilotTools(server, client) {
|
|
|
23
24
|
.enum(["review", "auto"])
|
|
24
25
|
.optional()
|
|
25
26
|
.describe("review = drafts wait for approval; auto = publishes on schedule"),
|
|
26
|
-
platforms: z
|
|
27
|
+
platforms: z
|
|
28
|
+
.array(z.enum(AUTO_POST_PLATFORMS))
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("platforms to post on (must have connected accounts)"),
|
|
27
31
|
formats: z
|
|
28
32
|
.array(z.enum(["text", "visual", "video"]))
|
|
29
33
|
.optional()
|