@appeeky/spec 0.7.0 → 0.9.0

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.
@@ -3,7 +3,7 @@ import { appendFile, mkdir, readFile, writeFile } from "node:fs/promises";
3
3
  import { join } from "node:path";
4
4
  import YAML from "yaml";
5
5
  import { indexedLocales, playLanguageFor } from "./storefronts.js";
6
- import { languageFor, readVisibility, recordChanges, visibilityChanges, visibilityDir, visibilityPath, visibilityTarget } from "./visibility.js";
6
+ import { MAX_APPS, MAX_SEARCHES, MAX_SOURCES, languageFor, readVisibility, recordChanges, visibilityChanges, visibilityDir, visibilityPath, visibilityTarget } from "./visibility.js";
7
7
  export const VISIBILITY_CORE_FILE = "./visibility-core.js";
8
8
  export async function loadVisibilityCore(load = (s) => import(s)) {
9
9
  try {
@@ -112,7 +112,7 @@ export async function scanLocal(core, project, plan, env, options = {}) {
112
112
  }
113
113
  if (status === "error")
114
114
  failed.push({ model: job.model, error: answer.error ?? "no answer" });
115
- const row = { ...job, status, mentions, citations: answer.citations };
115
+ const row = { ...job, status, mentions, citations: answer.citations, ...(answer.searches?.length ? { searches: answer.searches } : {}) };
116
116
  scored.push(row);
117
117
  raw.push({ ...row, text: answer.text, ...(answer.error ? { error: answer.error } : {}) });
118
118
  done++;
@@ -122,6 +122,8 @@ export async function scanLocal(core, project, plan, env, options = {}) {
122
122
  const labels = plan.intents.map((i) => i.label);
123
123
  const scores = core.score(scored, labels, owner);
124
124
  const sources = core.citedDomains(scored, ownDomains(project));
125
+ const all = core.overall(scored, owner);
126
+ const searches = core.searchQueries(scored);
125
127
  const summary = { winning: 0, weak: 0, missing: 0, noData: 0 };
126
128
  for (const s of scores) {
127
129
  if (s.status === "no_data")
@@ -138,6 +140,25 @@ export async function scanLocal(core, project, plan, env, options = {}) {
138
140
  store: target?.store ?? "app-store",
139
141
  appId: target?.appId ?? project.spec.app.name,
140
142
  summary,
143
+ ...(all.answers
144
+ ? {
145
+ overall: {
146
+ answers: all.answers,
147
+ visibility: Math.round(all.you.visibility),
148
+ shareOfVoice: Math.round(all.you.shareOfVoice),
149
+ winRate: Math.round(all.you.winRate),
150
+ ...(all.you.position !== null ? { position: all.you.position } : {}),
151
+ ...(all.apps.some((a) => a.you) ? { rank: all.apps.findIndex((a) => a.you) + 1 } : {}),
152
+ },
153
+ apps: all.apps.slice(0, MAX_APPS).map((a) => ({
154
+ name: a.name,
155
+ ...(a.you ? { you: true } : {}),
156
+ visibility: Math.round(a.visibility),
157
+ shareOfVoice: Math.round(a.shareOfVoice),
158
+ ...(a.position !== null ? { position: a.position } : {}),
159
+ })),
160
+ }
161
+ : {}),
141
162
  intents: [...scores]
142
163
  .sort((a, b) => order[a.status] - order[b.status] || (a.you ?? 0) - (b.you ?? 0))
143
164
  .map((s) => {
@@ -150,7 +171,8 @@ export async function scanLocal(core, project, plan, env, options = {}) {
150
171
  ...(s.namedInstead.length ? { namedInstead: s.namedInstead.map((w) => `${w.name} (${Math.round(w.pct)}%)`) } : {}),
151
172
  };
152
173
  }),
153
- sources: sources.slice(0, 15).map((s) => ({ domain: s.domain, count: s.count, ...(s.yours ? { yours: true } : {}), url: s.url })),
174
+ sources: sources.slice(0, MAX_SOURCES).map((s) => ({ domain: s.domain, count: s.count, ...(s.yours ? { yours: true } : {}), url: s.url })),
175
+ ...(searches.length ? { searches: searches.slice(0, MAX_SEARCHES).map((q) => ({ query: q.query, count: q.count })) } : {}),
154
176
  fixes: [],
155
177
  };
156
178
  await mkdir(join(visibilityDir(project.root), "answers"), { recursive: true });
@@ -69,6 +69,32 @@ export interface VisibilityFile {
69
69
  missing: number;
70
70
  noData: number;
71
71
  };
72
+ /**
73
+ * Across every answer of the last 30 days (of this scan with --local), 0–100: `visibility` is the share
74
+ * of answers that name the app, `shareOfVoice` its share of every app the answers name, `winRate` the
75
+ * share that put it first. `position` is its mean rank, `rank` its place among the apps named.
76
+ */
77
+ overall?: {
78
+ answers: number;
79
+ visibility: number;
80
+ shareOfVoice: number;
81
+ winRate: number;
82
+ position?: number;
83
+ rank?: number;
84
+ previous?: {
85
+ visibility: number;
86
+ shareOfVoice: number;
87
+ winRate: number;
88
+ };
89
+ };
90
+ /** The apps the assistants name most across every intent, the app itself included (`you: true`). */
91
+ apps?: Array<{
92
+ name: string;
93
+ you?: true;
94
+ visibility: number;
95
+ shareOfVoice: number;
96
+ position?: number;
97
+ }>;
72
98
  intents: Array<{
73
99
  label: string;
74
100
  status: Opportunity["status"];
@@ -78,12 +104,23 @@ export interface VisibilityFile {
78
104
  /** Who the assistants name instead. */
79
105
  namedInstead?: string[];
80
106
  }>;
81
- /** Pages the assistants cite, most cited first. */
107
+ /**
108
+ * Pages the assistants cite, most cited first. From Appeeky: `type` is the kind of site, `names` the apps
109
+ * the answers citing it name, and `gap: true` a site they cite for other apps and never for this one.
110
+ */
82
111
  sources: Array<{
83
112
  domain: string;
84
113
  count: number;
85
114
  yours?: true;
86
115
  url: string;
116
+ type?: string;
117
+ gap?: true;
118
+ names?: string[];
119
+ }>;
120
+ /** What the assistants searched the web for before answering, most repeated first. */
121
+ searches?: Array<{
122
+ query: string;
123
+ count: number;
87
124
  }>;
88
125
  /** What Appeeky suggests changing, still open. */
89
126
  fixes: Array<{
@@ -93,7 +130,12 @@ export interface VisibilityFile {
93
130
  page?: string;
94
131
  }>;
95
132
  }
133
+ export declare const MAX_APPS = 8;
134
+ export declare const MAX_SOURCES = 15;
135
+ export declare const MAX_SEARCHES = 15;
96
136
  export declare function fetchVisibility(api: AppeekyApi, target: VisibilityTarget, country: string, now?: Date): Promise<VisibilityFile>;
137
+ /** One line for the terminal: "named in 31% of 120 answers · 12% share of voice · first in 8%". */
138
+ export declare function overallLine(o: NonNullable<VisibilityFile["overall"]>): string;
97
139
  export declare const visibilityPath: (root: string, country: string) => string;
98
140
  export declare function readVisibility(root: string, country: string): Promise<VisibilityFile | null>;
99
141
  /** What moved since the last pull: an intent the assistants started or stopped naming the app for. */
@@ -40,16 +40,59 @@ export async function remotePrompts(api, appId, country, intentId) {
40
40
  return (detail?.prompts ?? []).filter((p) => p.status !== "archived");
41
41
  }
42
42
  const pct = (n) => (n === null || n === undefined ? undefined : Math.round(n));
43
+ const round1 = (n) => (n === null || n === undefined ? undefined : Math.round(n * 10) / 10);
44
+ export const MAX_APPS = 8;
45
+ export const MAX_SOURCES = 15;
46
+ export const MAX_SEARCHES = 15;
43
47
  export async function fetchVisibility(api, target, country, now = new Date()) {
44
48
  const opp = await api.get(path(target.appId, "/opportunities"), { country, days: "30" });
45
49
  const fixes = await api.get(path(target.appId, "/fixes"), { country }).catch(() => null);
50
+ const window = { country, days: "30" };
51
+ const [analytics, cited, searched] = await Promise.all([
52
+ api.get(path(target.appId, "/analytics"), window).catch(() => null),
53
+ api.get(path(target.appId, "/sources"), window).catch(() => null),
54
+ api.get(path(target.appId, "/searches"), window).catch(() => null),
55
+ ]);
56
+ const overall = analytics?.totals?.answers
57
+ ? strip({
58
+ answers: analytics.totals.answers,
59
+ visibility: pct(analytics.owner.visibilityPct),
60
+ shareOfVoice: pct(analytics.owner.sovPct),
61
+ winRate: pct(analytics.owner.winRatePct),
62
+ position: round1(analytics.owner.positionAvg),
63
+ rank: analytics.owner.rank ?? undefined,
64
+ previous: analytics.owner.previous
65
+ ? { visibility: pct(analytics.owner.previous.visibilityPct), shareOfVoice: pct(analytics.owner.previous.sovPct), winRate: pct(analytics.owner.previous.winRatePct) }
66
+ : undefined,
67
+ })
68
+ : undefined;
69
+ const apps = overall
70
+ ? (analytics.brands ?? []).slice(0, MAX_APPS).map((b) => strip({ name: b.name, you: b.isOwnerApp ? true : undefined, visibility: pct(b.visibilityPct), shareOfVoice: pct(b.sovPct), position: round1(b.positionAvg) }))
71
+ : undefined;
72
+ const domains = cited?.domains?.length
73
+ ? [...cited.domains]
74
+ .sort((a, b) => b.citations - a.citations)
75
+ .slice(0, MAX_SOURCES)
76
+ .map((d) => strip({
77
+ domain: d.domain,
78
+ count: d.citations,
79
+ yours: d.type === "owner" ? true : undefined,
80
+ url: d.topUrls?.[0]?.url ?? `https://${d.domain}`,
81
+ type: d.type,
82
+ gap: d.isGap ? true : undefined,
83
+ names: d.apps?.length ? d.apps.slice(0, 5) : undefined,
84
+ }))
85
+ : undefined;
86
+ const searches = searched?.queries?.length ? searched.queries.slice(0, MAX_SEARCHES).map((q) => ({ query: q.query, count: q.occurrences })) : undefined;
46
87
  const labels = new Map((opp?.intents ?? []).map((i) => [i.intentId, i.label]));
47
- return {
88
+ return strip({
48
89
  pulledAt: now.toISOString().slice(0, 10),
49
90
  country,
50
91
  store: target.store,
51
92
  appId: target.appId,
52
93
  summary: opp?.summary ?? { winning: 0, weak: 0, missing: 0, noData: 0 },
94
+ overall,
95
+ apps,
53
96
  intents: (opp?.intents ?? []).map((i) => {
54
97
  const byModel = Object.fromEntries(Object.entries(i.byModel).map(([m, s]) => [m, pct(s?.visibilityPct)]));
55
98
  return strip({
@@ -60,11 +103,17 @@ export async function fetchVisibility(api, target, country, now = new Date()) {
60
103
  namedInstead: i.winners.length ? i.winners.slice(0, 5).map((w) => `${w.name} (${Math.round(w.sharePct)}%)`) : undefined,
61
104
  });
62
105
  }),
63
- sources: (opp?.sources.sources ?? []).slice(0, 15).map((s) => strip({ domain: s.domain, count: s.count, yours: s.citesOwner ? true : undefined, url: s.url })),
106
+ sources: domains ?? (opp?.sources.sources ?? []).slice(0, MAX_SOURCES).map((s) => strip({ domain: s.domain, count: s.count, yours: s.citesOwner ? true : undefined, url: s.url })),
107
+ searches,
64
108
  fixes: (fixes?.fixes ?? [])
65
109
  .filter((f) => f.status === "open")
66
110
  .map((f) => strip({ intent: labels.get(f.intentId) ?? f.intentId, title: f.title, why: f.rationale, page: f.targetUrl ?? undefined })),
67
- };
111
+ });
112
+ }
113
+ /** One line for the terminal: "named in 31% of 120 answers · 12% share of voice · first in 8%". */
114
+ export function overallLine(o) {
115
+ const was = o.previous ? ` (was ${o.previous.visibility}%)` : "";
116
+ return `named in ${o.visibility}% of ${o.answers} answers${was} · ${o.shareOfVoice}% share of voice · first in ${o.winRate}%${o.rank ? ` · #${o.rank} among the apps named` : ""}`;
68
117
  }
69
118
  const strip = (o) => Object.fromEntries(Object.entries(o).filter(([, v]) => v !== undefined));
70
119
  export const visibilityPath = (root, country) => join(visibilityDir(root), `${country}.yaml`);
@@ -89,6 +138,13 @@ export function visibilityChanges(prev, next) {
89
138
  out.push("the assistants now cite your own site");
90
139
  if (cited(prev) && !cited(next))
91
140
  out.push("the assistants stopped citing your own site");
141
+ // A site only counts as a new gap when the last pull already knew about gaps.
142
+ if (prev.sources.some((s) => s.type)) {
143
+ const had = new Set(prev.sources.filter((s) => s.gap).map((s) => s.domain));
144
+ const gaps = next.sources.filter((s) => s.gap && !had.has(s.domain)).map((s) => s.domain);
145
+ if (gaps.length)
146
+ out.push(`cited for other apps and not for yours: ${gaps.slice(0, 5).join(", ")}`);
147
+ }
92
148
  return out;
93
149
  }
94
150
  export async function recordChanges(root, date, country, changes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appeeky/spec",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Your app's store listing as a spec: lint it, check keyword coverage, diff it against the live store and push it to App Store Connect and Google Play.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "type": "module",
@@ -2,7 +2,7 @@
2
2
  name: appeeky-spec
3
3
  description: Improve and ship an app's App Store / Google Play listing with Appeeky Spec (appeeky.spec.yaml + appeeky/store). Use when asked to set up Appeeky Spec or listing-as-code in a repo, do ASO, change an app's name, subtitle, keywords, promotional text or descriptions, check keyword coverage, or push listing changes to App Store Connect or Google Play. The other appeeky-spec-* skills cover one area each - targets (keywords), localize, review (past releases), cofounder (the weekly review), reviews, competitors, social, ugc, ads, attribution, screenshots, seo (the website), visibility (AI assistants and the category chart), experiments (pricing and other tests), automation (GitHub Actions and CI) and server (a VM or container host).
4
4
  metadata:
5
- version: 1.4.0
5
+ version: 1.5.0
6
6
  ---
7
7
 
8
8
  # Appeeky Spec
@@ -36,7 +36,8 @@ In a terminal the user runs, `init` with no options is a guided setup. It finds
36
36
  2. Store access: `appstore` / `gps` CLIs with the user's keys (local), or `APPEEKY_API_KEY` with a store connected in Appeeky (hosted). Do not ask for or handle key files yourself.
37
37
  - Local App Store: `appstore accounts add`, or `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_PRIVATE_KEY`.
38
38
  - Local Google Play: `gps accounts add`, or `GPS_CREDENTIALS`.
39
- - `--via auto` (default) uses a local CLI when installed, hosted when `APPEEKY_API_KEY` is set. `APPEEKY_API_KEY` also adds keyword popularity and ideas.
39
+ - `--via auto` (default) uses your own key first (an installed CLI, or store keys in the environment through npx), then hosted when `APPEEKY_API_KEY` is set. `APPEEKY_API_KEY` also adds keyword popularity and ideas.
40
+ - Hosted needs the stores connected in Appeeky for the account the key belongs to; `doctor` calls the gateway to check (`--offline` to skip).
40
41
  3. `init --name "<App>" --app-store <id> --google-play <package> --pull`, then fill `targets` (see appeeky-spec-targets).
41
42
  4. `doctor --json` lists everything still missing (store access, targets, the key, attribution, workflows, skills, `.gitignore`), each with its fix. Exit code 1 means something must be fixed.
42
43
 
@@ -2,7 +2,7 @@
2
2
  name: appeeky-spec-server
3
3
  description: Set up and operate Appeeky Spec on a machine or container host the user owns, end to end over SSH, with the published ghcr.io/appeeky/appeeky-spec image. Covers choosing a host (a VM with Docker on Hetzner, DigitalOcean, AWS, Google Cloud or an office machine, or a platform scheduler such as Railway cron, Fly, Render or Cloud Run Jobs), installing Docker, docker-compose.yml and a chmod 600 .env, the first dry run, reading the logs, the healthcheck ping, updating the image, several apps on one host, moving hosts and fixing a failed routine. Use when asked to "run Spec on my server", "set it up on a VPS / Hetzner / EC2", "deploy the Docker image", "docker compose for Appeeky Spec", "it stopped pushing on the server", "update the container", or "move it to another server". For GitHub Actions and workflow files use appeeky-spec-automation; for the weekly review content use appeeky-spec-cofounder.
4
4
  metadata:
5
- version: 1.0.0
5
+ version: 1.1.0
6
6
  ---
7
7
 
8
8
  # Run Appeeky Spec on your own server
@@ -16,7 +16,7 @@ The image runs the same routines as the GitHub workflows. Each run clones the re
16
16
  | `weekly` | the co-founder review, opened as a pull request `listing/weekly-<date>` (needs the `-agent` image) |
17
17
  | `schedule` | stays up and runs the three on cron (supercronic). The compose file uses this |
18
18
 
19
- Images (linux/amd64 and arm64): `ghcr.io/appeeky/appeeky-spec:latest`, and `:latest-agent` with Claude Code and `gh` for `weekly`. Versioned tags exist too: `:0.5.0`, `:0.5`, `:0.5.0-agent`, `:0.5-agent`.
19
+ Images (linux/amd64 and arm64): `ghcr.io/appeeky/appeeky-spec:latest`, and `:latest-agent` with Claude Code and `gh` for `weekly`. Versioned tags exist too, one per release: `:<x.y.z>`, `:<x.y>`, `:<x.y.z>-agent`, `:<x.y>-agent` (the version on npm, `npm view @appeeky/spec version`).
20
20
 
21
21
  ## 1. Choose where (the person decides)
22
22
 
@@ -32,7 +32,10 @@ docker run --rm --env-file app.env ghcr.io/appeeky/appeeky-spec push # ever
32
32
  docker run --rm --env-file app.env ghcr.io/appeeky/appeeky-spec:latest-agent weekly
33
33
  ```
34
34
 
35
- Before choosing, make sure the repo is ready: `appeeky.spec.yaml` committed, stores connected in Appeeky (the container has no store CLIs or saved accounts, so it reaches the stores through the hosted gateways with `APPEEKY_API_KEY`; keep `via: auto` or `hosted` in the spec, not `local`), and for `weekly` the files `npx @appeeky/spec agents install` writes, committed.
35
+ Before choosing, make sure the repo is ready: `appeeky.spec.yaml` committed, store access, and for `weekly` the files `npx @appeeky/spec agents install` writes, committed. Store access is one of:
36
+
37
+ - **Hosted** (`via: auto` or `hosted`): the stores are connected in Appeeky for the account `APPEEKY_API_KEY` belongs to. A valid key from another account (an internal or service key) fails with "No appeeky-web account found"; `doctor` now calls the gateway and says so.
38
+ - **The person's own store keys** (`via: auto` or `local`): the image has no store CLIs installed, so Spec runs them through npx (a pinned version) with the keys from the environment: `ASC_KEY_ID`, `ASC_ISSUER_ID` and `ASC_PRIVATE_KEY` (the .p8 contents) or `ASC_PRIVATE_KEY_PATH`; `GPS_CREDENTIALS` (the service account JSON) or `GOOGLE_APPLICATION_CREDENTIALS` (a path). Mount key files read-only (`./keys:/keys:ro`) and point the variables at `/keys/…`. With these set, `auto` uses them before the hosted gateway.
36
39
 
37
40
  ## 2. Install on the VM (over SSH)
38
41
 
@@ -61,7 +64,7 @@ ssh <host> 'chmod 600 ~/appeeky-spec/.env'
61
64
  grep -oE '^[A-Z_]+=.' .env | cut -d= -f1 # names that have a value
62
65
  ```
63
66
 
64
- `.env` variables (only these exist):
67
+ `.env` variables:
65
68
 
66
69
  | Variable | What to put |
67
70
  | --- | --- |
@@ -69,6 +72,8 @@ grep -oE '^[A-Z_]+=.' .env | cut -d= -f1 # names that have a value
69
72
  | `GITHUB_TOKEN` | fine-grained token, "Only select repositories" → this repo, Contents: Read and write; Pull requests: Read and write too for `weekly`. Passed to git through a credential helper, never in a URL or log |
70
73
  | `APPEEKY_API_KEY` | appeeky.com/dashboard/settings: store access, analytics, AI visibility |
71
74
  | `BRANCH` (`main`), `SPEC_DIR` (`.`) | the branch merges land on; the folder with `appeeky.spec.yaml` |
75
+ | `COMMIT_TO=pr` | `daily` commits to one pull request (`appeeky-spec/daily`, updated every day until merged) instead of straight to `BRANCH`, for a protected main. `push` still commits to `BRANCH`: it records there what it sent, so nothing goes out twice; let the token bypass the protection |
76
+ | `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_PRIVATE_KEY` / `ASC_PRIVATE_KEY_PATH`; `GPS_CREDENTIALS` / `GOOGLE_APPLICATION_CREDENTIALS` | the person's own store keys instead of the hosted gateway (see above) |
72
77
  | `DAILY_AT` (`0 6 * * *`), `PUSH_EVERY` (`*/15 * * * *`, `off` to push by hand), `WEEKLY_AT` (off, e.g. `0 7 * * 1`) | cron times, UTC |
73
78
  | `PUSH_DRY_RUN=1` | `push` only shows what it would change, sends nothing |
74
79
  | `HEALTHCHECK_URL` | e.g. a healthchecks.io ping URL; `daily` pings it on success, `<url>/fail` on failure |
@@ -87,6 +92,8 @@ The paid keys (`DATAFORSEO_*`, `VISIBILITY_EVERY`, `FAL_KEY`) start spending on
87
92
 
88
93
  ## 3. First run
89
94
 
95
+ `docker compose run --rm appeeky-spec preflight` checks now what the routines need: the spec in the repo, the weekly prompt, image and Claude token when `WEEKLY_AT` is set, and `doctor`, which calls the hosted gateways. `schedule` runs it on start too, so a missing piece shows in the first log lines, not on Monday.
96
+
90
97
  1. Start with `PUSH_DRY_RUN=1` in `.env`, then `docker compose up -d` and `docker compose logs -f`. Healthy output:
91
98
 
92
99
  ```
@@ -105,8 +112,9 @@ supercronic adds its own lines around each job. `Dry run: started following main
105
112
 
106
113
  ## 4. Operate it
107
114
 
108
- - **Update:** `docker compose pull && docker compose up -d`. To pin, set `APPEEKY_SPEC_IMAGE=ghcr.io/appeeky/appeeky-spec:0.5` and change it deliberately.
115
+ - **Update:** `docker compose pull && docker compose up -d`. To pin, set `APPEEKY_SPEC_IMAGE=ghcr.io/appeeky/appeeky-spec:<x.y>-agent` (or without `-agent`) and change it deliberately: 0.x releases can change commands and files.
109
116
  - **Reboots:** `restart: unless-stopped` plus Docker enabled at boot brings it back. A container stopped with `docker compose stop` stays stopped; `docker compose up -d` again.
117
+ - **Analytics CSVs:** `data pull` runs in `weekly`. `.appeeky/data/` is gitignored and every run starts from a fresh clone, so on a server they do not pile up: each weekly run reads the last 90 days. To keep a growing history, set `data: { commit: true }` in the spec (it commits revenue and other business data to the repo).
110
118
  - **Status:** `docker compose ps`, `docker compose logs --since 24h`. Logs rotate at 3 × 10 MB.
111
119
  - **Several apps:** one service and one env file each (`chmod 600` every one). Never point two services or two hosts at the same repo.
112
120
 
@@ -136,7 +144,7 @@ services:
136
144
  - Nothing ever pushed: merges land on another branch than `BRANCH`, or the listing change is outside `appeeky.spec.yaml` / `appeeky/store` (under `SPEC_DIR`).
137
145
  - `Fix these first, or pass --force.`: `check` found errors in the merged listing. Fix in a pull request; never add `--force`.
138
146
  - `<n> change(s) wait for the store`: name, subtitle or keywords need a new App Store version; a person runs `push --create-version <x.y.z>`. The tag stays, so it retries.
139
- - Store errors: the store is not connected in Appeeky, `APPEEKY_API_KEY` missing, or the spec says `via: local`.
147
+ - Store errors: the store is not connected in Appeeky for the key's account (`No appeeky-web account found`), `APPEEKY_API_KEY` missing, or `via: local` without store keys in the environment.
140
148
  - Daily red at `verify --playbook`: the one daily step that fails the run; run `npx @appeeky/spec verify --playbook --json` in the repo.
141
149
  - Weekly: `This image has no agent` (use `:latest-agent`), `Set CLAUDE_CODE_OAUTH_TOKEN …`, `No review prompt …` (commit `agents install` output), `Nothing proposed.` (often no store is free to change).
142
150
  3. Run `npx @appeeky/spec doctor --json` locally in the repo with the same keys for anything else. Propose fixes to the repo as a pull request.
@@ -154,6 +162,6 @@ services:
154
162
  - Turning off `PUSH_DRY_RUN` before the person has seen the dry runs and agreed.
155
163
  - Running the same repo from two hosts (or the server and a second copy) at once: double commits and pushes.
156
164
  - Using `:latest` with `WEEKLY_AT` set: `weekly` needs `:latest-agent`.
157
- - Setting `via: local` for a container that has no store CLIs or accounts.
165
+ - Setting `via: local` in a container without store keys in its environment (it has no saved accounts).
158
166
  - Adding paid keys (DataForSEO, `VISIBILITY_EVERY`, `FAL_KEY`) the person did not ask for.
159
167
  - Forcing a push (`--force`) or running `push --yes` by hand to "unstick" the routine: fix the cause and let the next run push.
@@ -9,6 +9,7 @@ APPEEKY_API_KEY=
9
9
  # Optional
10
10
  # BRANCH=main
11
11
  # SPEC_DIR=. # the folder with appeeky.spec.yaml
12
+ # COMMIT_TO=pr # daily: one pull request (appeeky-spec/daily) instead of commits to BRANCH, for a protected main
12
13
  # DAILY_AT=0 6 * * * # UTC
13
14
  # PUSH_EVERY=*/15 * * * * # "off" to push by hand
14
15
  # The weekly agent: use the latest-agent image and one of these.
@@ -33,3 +34,8 @@ APPEEKY_API_KEY=
33
34
  # OPENAI_API_KEY= # ChatGPT
34
35
  # GEMINI_API_KEY= # Gemini
35
36
  # PERPLEXITY_API_KEY= # Perplexity (ANTHROPIC_API_KEY above adds Claude)
37
+ # Your own store keys instead of the hosted gateway (mount key files read-only, e.g. ./keys:/keys:ro):
38
+ # ASC_KEY_ID=
39
+ # ASC_ISSUER_ID=
40
+ # ASC_PRIVATE_KEY_PATH=/keys/AuthKey.p8
41
+ # GOOGLE_APPLICATION_CREDENTIALS=/keys/google-play.json # or GPS_CREDENTIALS with the JSON itself
@@ -46,13 +46,20 @@ Good prompts:
46
46
  | Field | Meaning |
47
47
  | --- | --- |
48
48
  | `summary` | intents by status: `winning` (named in 25%+ of answers), `weak`, `missing`, `noData` (not scanned yet) |
49
+ | `overall` | across every answer of the last 30 days (of the scan with `--local`), 0–100: `visibility` is the share of answers that name the app, `shareOfVoice` its share of every app the answers name, `winRate` the share that put it first; `position` is its mean rank where the answer gave an order, `rank` its place among the apps named, `previous` the 30 days before |
50
+ | `apps` | the apps the assistants name most across every intent, with the same numbers; `you: true` is this app |
49
51
  | `intents[].you` | share of answers that name the app, averaged over the assistants, 0–100 |
50
52
  | `intents[].byModel` | the same per assistant: one assistant can name you while another never does |
51
53
  | `intents[].namedInstead` | who the assistants name instead, with their share |
52
- | `sources` | pages the assistants cite (mostly Perplexity), most cited first; `yours: true` is the app's own site |
54
+ | `sources` | sites the assistants cite, most cited first; `yours: true` is the app's own site. From Appeeky also `type` (`owner`, `app_store`, `ugc`, `review`, `editorial`, `reference`, `other`), `names` (the apps named in the answers that cite it) and `gap: true`: cited for other apps and never for this one |
55
+ | `searches` | what the assistants searched the web for before answering, most repeated first (ChatGPT, Claude and Gemini report it) |
53
56
  | `fixes` | open suggestions from Appeeky for an intent |
54
57
 
55
- `appeeky/visibility/changes.md` keeps what moved between pulls: an intent that went from `missing` to `winning`, or the app's site starting to be cited.
58
+ `overall`, `apps` and `searches` are missing when there is nothing to report yet; `type`, `names` and `gap` come only from Appeeky.
59
+
60
+ High `visibility` with a low `shareOfVoice` means the app is named, in long lists next to many others. A low `winRate` with a good `visibility` means it is named and rarely first.
61
+
62
+ `appeeky/visibility/changes.md` keeps what moved between pulls: an intent that went from `missing` to `winning`, the app's site starting to be cited, or a new site cited for other apps only.
56
63
 
57
64
  ### Improve it
58
65
 
@@ -60,8 +67,9 @@ Assistants repeat what the web says about an app. In order of what you can chang
60
67
 
61
68
  1. **The listing.** The first lines of the description and the subtitle should say what the app does in the intent's words ("rain sounds for sleep", not "an immersive audio experience"). This is a normal listing change: propose it in a pull request and measure it like any release (see appeeky-spec).
62
69
  2. **The app's own website.** A page per main use case, in plain words, with the app's name and store links. When `sources` shows the assistants cite pages like it from competitors, the same kind of page is the gap.
63
- 3. **Cited third-party pages.** `sources` lists them: review sites, Reddit threads, "best apps for…" articles. Tell the user which ones name the competitors in `namedInstead` but not the app. Getting listed there is the user's outreach, not something to fake.
64
- 4. **`fixes`.** Read each one. Propose the ones that are listing or website edits; summarize the rest for the user.
70
+ 3. **Cited third-party pages.** `sources` lists them: review sites, Reddit threads, "best apps for…" articles. Start with `gap: true`: the assistants cite those for the apps in `names` and never for this one. Without `gap` (a local scan), tell the user which ones name the competitors in `namedInstead` but not the app. Getting listed there is the user's outreach, not something to fake.
71
+ 4. **`searches`.** These are the words the assistants type into a search engine for the user's question. A page that ranks for them is a page they can cite. Use them as wording for the website's pages and the description, and as candidates for `web.keywords`.
72
+ 5. **`fixes`.** Read each one. Propose the ones that are listing or website edits; summarize the rest for the user.
65
73
 
66
74
  Never write fake reviews, posts or comments, and never make claims the app does not live up to. Assistants also read those.
67
75