@letterstory/cli 0.176.39 → 0.176.40
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/lib/cli.mjs +2 -2
- package/lib/commands/plan.mjs +4 -2
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
84
84
|
|
|
85
85
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
86
|
-
export const VERSION = "0.176.
|
|
86
|
+
export const VERSION = "0.176.40";
|
|
87
87
|
|
|
88
88
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
89
89
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -1670,7 +1670,7 @@ Insights:
|
|
|
1670
1670
|
Plan tab's box), what's broken (--lens fix, most pressing
|
|
1671
1671
|
first), what to build (--lens build), or your own words. Nothing asked:
|
|
1672
1672
|
each list's head. The same answer as the console and Slack.
|
|
1673
|
-
plan auto [activate|disable] [--site host] [--veto-hours <1-168>|off] [--auto-merge on|off]
|
|
1673
|
+
plan auto [activate|disable] [--site host] [--veto-hours <1-168>|off] [--pace-hours <1-168>] [--auto-merge on|off]
|
|
1674
1674
|
[--aggression low|medium|high|xhigh] [--goal geo|seo|agent_conviction|inbound_conversion|any]
|
|
1675
1675
|
[--slack-channel <C…>|none]
|
|
1676
1676
|
Auto-Plan on a site: Letterpress picks its strategies and builds
|
package/lib/commands/plan.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// `plan` — Auto-Plan on one site (Plan → Auto-Plan; Plan is scoped to one website, --site, else the
|
|
2
2
|
// organization's own domain). The same calls as the Plan's modal and its sidebar's Pending rows.
|
|
3
3
|
// plan auto → get_auto_plan
|
|
4
|
-
// plan auto [activate|disable] [--veto-hours <1-168>|off] [--auto-merge on|off]
|
|
4
|
+
// plan auto [activate|disable] [--veto-hours <1-168>|off] [--pace-hours <1-168>] [--auto-merge on|off]
|
|
5
5
|
// [--aggression low|medium|high|xhigh] [--goal geo|seo|agent_conviction|inbound_conversion|any]
|
|
6
6
|
// [--slack-channel <C…>|none] → set_auto_plan
|
|
7
7
|
// plan pending → list_auto_plan_proposals (status pending)
|
|
@@ -43,6 +43,8 @@ export const ARGS = {
|
|
|
43
43
|
return n;
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
|
+
// --pace-hours <1-168> how often it picks the next action (1 every hour, 24 every day, 168 every week).
|
|
47
|
+
pace_hours: { flag: "pace-hours", type: "num" },
|
|
46
48
|
merge: { value: onOff("auto-merge") },
|
|
47
49
|
aggression: { flag: "aggression", enum: ["low", "medium", "high", "xhigh"] },
|
|
48
50
|
// --goal geo picks strategies for that goal only; --goal any (the default) reads every strategy.
|
|
@@ -87,7 +89,7 @@ export const ARGS = {
|
|
|
87
89
|
},
|
|
88
90
|
};
|
|
89
91
|
|
|
90
|
-
const SETTING_FLAGS = ["veto-hours", "auto-merge", "aggression", "goal", "slack-channel"];
|
|
92
|
+
const SETTING_FLAGS = ["veto-hours", "pace-hours", "auto-merge", "aggression", "goal", "slack-channel"];
|
|
91
93
|
|
|
92
94
|
export async function cmdPlan(ctx) {
|
|
93
95
|
const { client, flags, io } = ctx;
|