@letterstory/cli 0.177.141 → 0.177.143
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 +4 -2
- package/lib/commands/goals.mjs +1 -3
- package/lib/commands/visits.mjs +4 -3
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
94
94
|
|
|
95
95
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
96
|
-
export const VERSION = "0.177.
|
|
96
|
+
export const VERSION = "0.177.143";
|
|
97
97
|
|
|
98
98
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
99
99
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -116,6 +116,8 @@ export const BOOLEAN_FLAGS = new Set([
|
|
|
116
116
|
// visits export: only the people or companies who fit the ICP, or only those who don't.
|
|
117
117
|
"icp",
|
|
118
118
|
"not-icp",
|
|
119
|
+
// visits sites: also return each site's script.
|
|
120
|
+
"install",
|
|
119
121
|
// org mcp add: the server signs in with OAuth instead of a header value.
|
|
120
122
|
"sign-in",
|
|
121
123
|
// collection onboard: connect without drafting or scheduling.
|
|
@@ -1917,7 +1919,7 @@ Insights:
|
|
|
1917
1919
|
plan strategies [--site host] [--archived] The goals typed on Ideas, each a strategy
|
|
1918
1920
|
plan strategy add "<words…>" [--site host] Keep a goal in your words as a strategy
|
|
1919
1921
|
plan strategy archive <strategy-id> [--restore] Put one away (its card leaves the Plan), or bring it back
|
|
1920
|
-
goals list|save
|
|
1922
|
+
goals list|save [goal] --host <host> Set up goals and save them to Memory
|
|
1921
1923
|
rail [list] | rail set <key>… | rail reset Your organization's Letterpress sidebar pins
|
|
1922
1924
|
memory ingest [--text|--text-file <path|->] [--link <url>]… [--include-website] [--mcp-url <url>] Push context to Memory: a reviewable proposal
|
|
1923
1925
|
memory apply <ingestion-id> --changes <id>,<id> Save the proposed changes you accept
|
package/lib/commands/goals.mjs
CHANGED
|
@@ -17,15 +17,13 @@ export const ARGS = {
|
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
|
-
commit_goal_setup: { host: { flag: "host", required: true }, goal: { positional: 0, required: true } },
|
|
21
20
|
};
|
|
22
21
|
export async function cmdGoals(ctx) {
|
|
23
22
|
const tool = {
|
|
24
23
|
list: "get_goal_setups",
|
|
25
24
|
save: "save_goal_setup",
|
|
26
|
-
commit: "commit_goal_setup",
|
|
27
25
|
}[ctx.positionals[0]];
|
|
28
|
-
if (!tool) throw new CliError("Usage: goals list|save
|
|
26
|
+
if (!tool) throw new CliError("Usage: goals list|save [goal] --host <host> [--answers-file <path>]");
|
|
29
27
|
refuseUnknownFlags(ctx, ARGS[tool], tool === "save_goal_setup" ? ["answers", "answers-file"] : []);
|
|
30
28
|
const args = argsFromFlags(ARGS[tool], ctx.flags, ctx.positionals.slice(1));
|
|
31
29
|
printResult(ctx.io, ctx.flags, await ctx.client.callTool(tool, args), (r) => JSON.stringify(r, null, 2));
|
package/lib/commands/visits.mjs
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// letterstory visits retention [--days 90] which features new people used early and came back
|
|
15
15
|
// letterstory visits export --since 30d --format csv
|
|
16
16
|
// letterstory visits export --include people --icp > icp.csv the people who fit your ICP, as Humans shows them
|
|
17
|
-
// letterstory visits sites
|
|
17
|
+
// letterstory visits sites [--install] (--install adds each site's script)
|
|
18
18
|
// letterstory visits domain composal.com [--site <id>] move the site to a new domain, keeping its key
|
|
19
19
|
// letterstory visits pages --since 28d [--path '/docs/*'] [--agent openai-crawler]
|
|
20
20
|
// letterstory visits health --site <id> staff: how far to trust a site's numbers, and what to fix
|
|
@@ -40,7 +40,7 @@ const PATH_KINDS = ["page", "agent_file", "site_file", "asset"];
|
|
|
40
40
|
const days = { value: (flags) => sinceDays(flags.since) };
|
|
41
41
|
|
|
42
42
|
export const ARGS = {
|
|
43
|
-
visitors_list_sites: {},
|
|
43
|
+
visitors_list_sites: { install: { flag: "install", type: "bool" } },
|
|
44
44
|
get_editor_shortcut: {},
|
|
45
45
|
set_editor_shortcut: {
|
|
46
46
|
// "default" (or "reset") puts ⌘L back: the tool's null.
|
|
@@ -652,7 +652,8 @@ async function visitsSites(ctx) {
|
|
|
652
652
|
s.script_seen_at ? "script ✓" : "script ✗",
|
|
653
653
|
s.server_seen_at ? "server snippet ✓" : "server snippet ✗",
|
|
654
654
|
].join(", ");
|
|
655
|
-
|
|
655
|
+
const script = r.scripts?.find((x) => x.site_id === s.site_id)?.visitors_snippet;
|
|
656
|
+
return `${s.site_id} ${s.domain ?? s.name} (${checks})${script ? `\n ${script}` : ""}`;
|
|
656
657
|
})
|
|
657
658
|
.join("\n");
|
|
658
659
|
});
|