@letterstory/cli 0.177.155 → 0.177.157

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 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.155";
96
+ export const VERSION = "0.177.157";
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;
@@ -2141,7 +2141,7 @@ Visits (Visitors: AI agents reading your site, and AI answers sending people to
2141
2141
  Publish a reviewed public answer
2142
2142
  visits transact pr [--repo owner/name] [--base <branch>] [--site <id>|--host <h>]
2143
2143
  One pull request: the line for agents, and answers to what they asked
2144
- visits transact source <source-id>|--folder <path> | remove <id> | tests | test "<question>" [--discover]
2144
+ visits transact source <source-id>|--folder <path> | remove <id> | tests | test "<question>" [--discover|--draft]
2145
2145
  visits transact mark-ask <ask-id> --as-test|--as-test=false [--site <id>]
2146
2146
  visits requests [--site <id>] [--limit 50] [--before <cursor>] [--include-tests]
2147
2147
  visits transact asks [--since 7d] [--limit <n>] What agents asked, answered, and asks per agent visit
@@ -97,6 +97,11 @@ export const ARGS = {
97
97
  period: { flag: "period", enum: PERIODS },
98
98
  sites: { flag: "site", type: "list" },
99
99
  },
100
+ list_answer_sources: {
101
+ period: { flag: "period", enum: PERIODS },
102
+ question: { flag: "question" },
103
+ limit: { flag: "limit", type: "num" },
104
+ },
100
105
  get_cited_page_answers: {
101
106
  page: { positional: 0, label: "page", required: true },
102
107
  period: { flag: "period", enum: PERIODS },
@@ -177,6 +182,8 @@ export async function cmdInsights(ctx) {
177
182
  return call(rest, "list_cited_pages");
178
183
  case "page":
179
184
  return call(rest, "get_cited_page_answers");
185
+ case "sources":
186
+ return call(rest, "list_answer_sources");
180
187
  case "mentions":
181
188
  return call(rest, "list_site_mentions");
182
189
  case "portrayal":
@@ -193,7 +200,7 @@ export async function cmdInsights(ctx) {
193
200
  return call(rest, "select_gsc_property");
194
201
  default:
195
202
  throw new CliError(
196
- `Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, tracking-cadence, set-tracking-cadence, prompts, keywords [topic], add-keywords, pages, page, mentions, portrayal, claims, competitors, question, detection, set-detection, activity, story, site, post, top, bank, access, properties, property`
203
+ `Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, tracking-cadence, set-tracking-cadence, prompts, keywords [topic], add-keywords, pages, page, sources, mentions, portrayal, claims, competitors, question, detection, set-detection, activity, story, site, post, top, bank, access, properties, property`
197
204
  );
198
205
  }
199
206
  }
@@ -161,6 +161,7 @@ export const ARGS = {
161
161
  },
162
162
  visitors_list_transact_tests: { site_id: "site" },
163
163
  visitors_test_transact: {
164
+ draft: { flag: "draft", type: "bool" },
164
165
  discovery: { flag: "discover", type: "bool" },
165
166
  site_id: "site",
166
167
  question: { positional: 0, label: "question", required: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.155",
3
+ "version": "0.177.157",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",