innernote 0.6.0 → 0.6.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/dist/index.js +18 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1475,13 +1475,22 @@ async function askAboutPost(refArg, message, target, json) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
1477
|
if (json) {
|
|
1478
|
-
out(JSON.stringify({
|
|
1478
|
+
out(JSON.stringify({
|
|
1479
|
+
id: post._id,
|
|
1480
|
+
changed: !!result.changed,
|
|
1481
|
+
post: stored,
|
|
1482
|
+
passage: result.fragment ?? null,
|
|
1483
|
+
removed: !!result.removed,
|
|
1484
|
+
reply: result.reply ?? null
|
|
1485
|
+
}, null, 2));
|
|
1479
1486
|
return 0;
|
|
1480
1487
|
}
|
|
1481
1488
|
out();
|
|
1482
1489
|
out(stored);
|
|
1483
1490
|
out();
|
|
1484
|
-
if (result.changed && result.
|
|
1491
|
+
if (result.changed && result.removed && target.passage !== undefined) {
|
|
1492
|
+
note(dim2(`took out: ${target.passage}`));
|
|
1493
|
+
} else if (result.changed && result.fragment && target.passage !== undefined) {
|
|
1485
1494
|
note(dim2(`was: ${target.passage}`));
|
|
1486
1495
|
note(dim2(`now: ${result.fragment}`));
|
|
1487
1496
|
}
|
|
@@ -1834,10 +1843,10 @@ var COMMANDS = {
|
|
|
1834
1843
|
ask: {
|
|
1835
1844
|
summary: "talk to the post in your own words, or edit one passage of it",
|
|
1836
1845
|
usage: "innernote ask [--post <id>] [--passage <text> | --hook | --ending] [--preset <name> | --shape <name> | --product <name>] [what you want]",
|
|
1837
|
-
detail: "The Writer, here. The app's composer is a conversation with the post in front of you, and this is the same assistant: it can change the post, answer a question about it, or say it would rather not. In a session it works on the post in hand. With --post it works on a saved post in one command, and the change is kept in the post's history. --passage is the editor's selection: the exact words to change, and only those change. --hook and --ending are the opening and closing block. --preset is a toolbar edit by name, --shape the format picker.",
|
|
1846
|
+
detail: "The Writer, here. The app's composer is a conversation with the post in front of you, and this is the same assistant: it can change the post, answer a question about it, or say it would rather not. In a session it works on the post in hand. With --post it works on a saved post in one command, and the change is kept in the post's history. --passage is the editor's selection: the exact words to change, and only those change; ask for them to go and they are taken out. --hook and --ending are the opening and closing block. --preset is a toolbar edit by name, --shape the format picker.",
|
|
1838
1847
|
options: [
|
|
1839
1848
|
["--post <id>", "a saved post, by id, instead of the one in hand"],
|
|
1840
|
-
["--passage <text>", "change only these exact words of the post"],
|
|
1849
|
+
["--passage <text>", "change, or take out, only these exact words of the post"],
|
|
1841
1850
|
["--hook, --ending", "change only the opening, or the closing"],
|
|
1842
1851
|
["--preset <name>", "on a passage: sharpen shorter punchier simpler example deslop concrete warmer list. On the post: tighten_all as_list as_story fix_spacing rewrite_hook rewrite_ending ending_question"],
|
|
1843
1852
|
["--shape <name>", "story opinion listicle contrarian experience howto lessons casestudy framework question announcement prediction beliefbreak"],
|
|
@@ -1850,6 +1859,7 @@ var COMMANDS = {
|
|
|
1850
1859
|
'innernote ask --post p17abc... "make the opening shorter"',
|
|
1851
1860
|
'innernote ask --post p17abc... --passage "we got lucky" "say what the luck actually was"',
|
|
1852
1861
|
'innernote ask --post p17abc... --passage "we got lucky" --preset concrete',
|
|
1862
|
+
'innernote ask --post p17abc... --passage "comment voice for the link." "take this line out"',
|
|
1853
1863
|
"innernote ask --post p17abc... --preset ending_question",
|
|
1854
1864
|
"innernote ask --post p17abc... --shape story",
|
|
1855
1865
|
'innernote ask --post p17abc... --product "innernote"'
|
|
@@ -2136,7 +2146,7 @@ function suggest(state) {
|
|
|
2136
2146
|
// package.json
|
|
2137
2147
|
var package_default = {
|
|
2138
2148
|
name: "innernote",
|
|
2139
|
-
version: "0.6.
|
|
2149
|
+
version: "0.6.1",
|
|
2140
2150
|
description: "Write LinkedIn posts in your voice, from the terminal.",
|
|
2141
2151
|
keywords: [
|
|
2142
2152
|
"linkedin",
|
|
@@ -2827,10 +2837,10 @@ var COMMANDS2 = {
|
|
|
2827
2837
|
ask: {
|
|
2828
2838
|
summary: "talk to the post in your own words, or edit one passage of it",
|
|
2829
2839
|
usage: "innernote ask [--post <id>] [--passage <text> | --hook | --ending] [--preset <name> | --shape <name> | --product <name>] [what you want]",
|
|
2830
|
-
detail: "The Writer, here. The app's composer is a conversation with the post in front of you, and this is the same assistant: it can change the post, answer a question about it, or say it would rather not. In a session it works on the post in hand. With --post it works on a saved post in one command, and the change is kept in the post's history. --passage is the editor's selection: the exact words to change, and only those change. --hook and --ending are the opening and closing block. --preset is a toolbar edit by name, --shape the format picker.",
|
|
2840
|
+
detail: "The Writer, here. The app's composer is a conversation with the post in front of you, and this is the same assistant: it can change the post, answer a question about it, or say it would rather not. In a session it works on the post in hand. With --post it works on a saved post in one command, and the change is kept in the post's history. --passage is the editor's selection: the exact words to change, and only those change; ask for them to go and they are taken out. --hook and --ending are the opening and closing block. --preset is a toolbar edit by name, --shape the format picker.",
|
|
2831
2841
|
options: [
|
|
2832
2842
|
["--post <id>", "a saved post, by id, instead of the one in hand"],
|
|
2833
|
-
["--passage <text>", "change only these exact words of the post"],
|
|
2843
|
+
["--passage <text>", "change, or take out, only these exact words of the post"],
|
|
2834
2844
|
["--hook, --ending", "change only the opening, or the closing"],
|
|
2835
2845
|
["--preset <name>", "on a passage: sharpen shorter punchier simpler example deslop concrete warmer list. On the post: tighten_all as_list as_story fix_spacing rewrite_hook rewrite_ending ending_question"],
|
|
2836
2846
|
["--shape <name>", "story opinion listicle contrarian experience howto lessons casestudy framework question announcement prediction beliefbreak"],
|
|
@@ -2843,6 +2853,7 @@ var COMMANDS2 = {
|
|
|
2843
2853
|
'innernote ask --post p17abc... "make the opening shorter"',
|
|
2844
2854
|
'innernote ask --post p17abc... --passage "we got lucky" "say what the luck actually was"',
|
|
2845
2855
|
'innernote ask --post p17abc... --passage "we got lucky" --preset concrete',
|
|
2856
|
+
'innernote ask --post p17abc... --passage "comment voice for the link." "take this line out"',
|
|
2846
2857
|
"innernote ask --post p17abc... --preset ending_question",
|
|
2847
2858
|
"innernote ask --post p17abc... --shape story",
|
|
2848
2859
|
'innernote ask --post p17abc... --product "innernote"'
|