@letterstory/cli 0.177.150 → 0.177.151

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.150";
96
+ export const VERSION = "0.177.151";
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;
@@ -102,6 +102,7 @@ export const EXIT_PAYMENT_REQUIRED = 3;
102
102
  // can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
103
103
  // `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
104
104
  export const BOOLEAN_FLAGS = new Set([
105
+ "as-test",
105
106
  "discover",
106
107
  // visits transact add folder|page|connection: leave it out of the set (a connection: switch it off).
107
108
  "uncheck",
@@ -2137,6 +2138,7 @@ Visits (Visitors: AI agents reading your site, and AI answers sending people to
2137
2138
  visits transact pr [--repo owner/name] [--base <branch>] [--site <id>|--host <h>]
2138
2139
  One pull request: the line for agents, and answers to what they asked
2139
2140
  visits transact source <source-id>|--folder <path> | remove <id> | tests | test "<question>" [--discover]
2141
+ visits transact mark-ask <ask-id> --as-test|--as-test=false [--site <id>]
2140
2142
  visits transact asks [--since 7d] [--limit <n>] What agents asked, answered, and asks per agent visit
2141
2143
 
2142
2144
  Sim (Simulations: a free, simulated copy of your API for agents, and what they did with it):
@@ -156,6 +156,11 @@ export const ARGS = {
156
156
  folder: "folder",
157
157
  limit: { flag: "limit", type: "num" },
158
158
  },
159
+ visitors_set_transact_ask_test: {
160
+ site_id: "site",
161
+ ask_id: { positional: 0, label: "ask id", required: true },
162
+ is_test: { flag: "as-test", type: "bool" },
163
+ },
159
164
  visitors_list_transact_tests: { site_id: "site" },
160
165
  visitors_test_transact: {
161
166
  discovery: { flag: "discover", type: "bool" },
@@ -384,6 +389,10 @@ async function visitsTransact(ctx) {
384
389
  printResult(io, flags, result, () => "Removed");
385
390
  return 0;
386
391
  }
392
+ if (sub === "mark-ask") {
393
+ printResult(io, flags, await call(rest, "visitors_set_transact_ask_test"));
394
+ return 0;
395
+ }
387
396
  if (sub === "tests") {
388
397
  printResult(io, flags, await call(rest, "visitors_list_transact_tests"));
389
398
  return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.150",
3
+ "version": "0.177.151",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",