@letterstory/cli 0.177.2 → 0.177.3
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 +3 -1
- package/lib/commands/onboard.mjs +8 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
88
88
|
|
|
89
89
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
90
|
-
export const VERSION = "0.177.
|
|
90
|
+
export const VERSION = "0.177.3";
|
|
91
91
|
|
|
92
92
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
93
93
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -96,6 +96,8 @@ export const EXIT_PAYMENT_REQUIRED = 3;
|
|
|
96
96
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
|
97
97
|
// `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
|
|
98
98
|
export const BOOLEAN_FLAGS = new Set([
|
|
99
|
+
// collection onboard: connect without drafting or scheduling.
|
|
100
|
+
"connect-only",
|
|
99
101
|
// admin demo ideas: every live recipe, not only the Ideas that fit.
|
|
100
102
|
"library",
|
|
101
103
|
// admin targets check: check every target again, checked or not.
|
package/lib/commands/onboard.mjs
CHANGED
|
@@ -92,6 +92,7 @@ export const ARGS = {
|
|
|
92
92
|
// Start what the blog writes once it is read in (the starter automations, every draft for
|
|
93
93
|
// review), the one accept apply_starter_automations makes. Not with --enable-planner.
|
|
94
94
|
start_writing: { flag: "start-writing", type: "bool" },
|
|
95
|
+
connect_only: { flag: "connect-only", type: "bool" },
|
|
95
96
|
},
|
|
96
97
|
get_collection_onboard_status: {
|
|
97
98
|
job_id: { internal: "the job id onboard_collection just returned" },
|
|
@@ -414,6 +415,13 @@ function overridesFromFlags(flags) {
|
|
|
414
415
|
// Final readback of a collection-onboarding job — the counts the engine PERSISTED.
|
|
415
416
|
function formatCollectionStatus(s) {
|
|
416
417
|
const r = s.result ?? {};
|
|
418
|
+
if (s.connect_only)
|
|
419
|
+
return [
|
|
420
|
+
`Connection ${s.status}`,
|
|
421
|
+
` collection: ${s.collection_id}`,
|
|
422
|
+
...(r.publishing ? [` publishing: ${r.publishing.destination}`] : []),
|
|
423
|
+
...(s.error ? [` error: ${s.error}`] : []),
|
|
424
|
+
].join("\n");
|
|
417
425
|
const lines = [
|
|
418
426
|
`Onboarding ${s.status} at stage "${s.stage}"`,
|
|
419
427
|
` collection: ${s.collection_id}`,
|