@letterstory/cli 0.27.0 → 0.27.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.
- package/lib/cli.mjs +1 -1
- package/lib/commands/kernel.mjs +6 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./commands.mjs";
|
|
45
45
|
|
|
46
46
|
// Keep in sync with cli/package.json.
|
|
47
|
-
export const VERSION = "0.27.
|
|
47
|
+
export const VERSION = "0.27.1";
|
|
48
48
|
|
|
49
49
|
// Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
|
|
50
50
|
// can't accidentally swallow the id as --json's value.
|
package/lib/commands/kernel.mjs
CHANGED
|
@@ -92,6 +92,12 @@ export const ARGS = {
|
|
|
92
92
|
// A brief overrides the article's own content as the instruction; --brief-file reads
|
|
93
93
|
// it from a path. Omit both to write from the article as it stands.
|
|
94
94
|
brief: { value: (flags) => flagStr(flags.brief) ?? readBodyInput({ file: flagStr(flags["brief-file"]) }) },
|
|
95
|
+
// How to read --brief: auto (default) treats a short topic as instruction and a pasted
|
|
96
|
+
// draft/article as source material to decompose first. Same flag name as run_kernel's.
|
|
97
|
+
content_kind: {
|
|
98
|
+
flag: "read-as",
|
|
99
|
+
enum: ["auto", "instruction", "document", "article", "outline", "research", "notes"],
|
|
100
|
+
},
|
|
95
101
|
},
|
|
96
102
|
// The standalone door. Two subcommands share this one tool: `write` and `polish` both
|
|
97
103
|
// send `input`, `polish` forcing content_kind to "document" — the map is one, so a field
|