@pofky/asc-mcp 1.9.15 → 1.10.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/LIMITATIONS.md +1 -1
- package/README.md +26 -19
- package/USER_GUIDE.md +8 -8
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +22 -14
- package/dist/doctor.js.map +1 -1
- package/dist/editable.d.ts +18 -0
- package/dist/editable.d.ts.map +1 -1
- package/dist/editable.js +23 -0
- package/dist/editable.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/gate.js +8 -8
- package/dist/gate.js.map +1 -1
- package/dist/index.js +51 -18
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.ts +7 -0
- package/dist/instructions.d.ts.map +1 -1
- package/dist/instructions.js +27 -3
- package/dist/instructions.js.map +1 -1
- package/dist/license.d.ts +8 -1
- package/dist/license.d.ts.map +1 -1
- package/dist/license.js +20 -9
- package/dist/license.js.map +1 -1
- package/dist/preflight/apple-lists.d.ts +73 -0
- package/dist/preflight/apple-lists.d.ts.map +1 -0
- package/dist/preflight/apple-lists.js +141 -0
- package/dist/preflight/apple-lists.js.map +1 -0
- package/dist/preflight/binary-scan.d.ts +14 -0
- package/dist/preflight/binary-scan.d.ts.map +1 -0
- package/dist/preflight/binary-scan.js +114 -0
- package/dist/preflight/binary-scan.js.map +1 -0
- package/dist/preflight/checks/project.d.ts +6 -0
- package/dist/preflight/checks/project.d.ts.map +1 -0
- package/dist/preflight/checks/project.js +147 -0
- package/dist/preflight/checks/project.js.map +1 -0
- package/dist/preflight/checks/record.d.ts +18 -0
- package/dist/preflight/checks/record.d.ts.map +1 -0
- package/dist/preflight/checks/record.js +326 -0
- package/dist/preflight/checks/record.js.map +1 -0
- package/dist/preflight/checks/urls.d.ts +8 -0
- package/dist/preflight/checks/urls.d.ts.map +1 -0
- package/dist/preflight/checks/urls.js +109 -0
- package/dist/preflight/checks/urls.js.map +1 -0
- package/dist/preflight/gather.d.ts +47 -0
- package/dist/preflight/gather.d.ts.map +1 -0
- package/dist/preflight/gather.js +295 -0
- package/dist/preflight/gather.js.map +1 -0
- package/dist/preflight/plist.d.ts +16 -0
- package/dist/preflight/plist.d.ts.map +1 -0
- package/dist/preflight/plist.js +104 -0
- package/dist/preflight/plist.js.map +1 -0
- package/dist/preflight/project-files.d.ts +34 -0
- package/dist/preflight/project-files.d.ts.map +1 -0
- package/dist/preflight/project-files.js +124 -0
- package/dist/preflight/project-files.js.map +1 -0
- package/dist/preflight/project-scan.d.ts +4 -0
- package/dist/preflight/project-scan.d.ts.map +1 -0
- package/dist/preflight/project-scan.js +343 -0
- package/dist/preflight/project-scan.js.map +1 -0
- package/dist/preflight/report.d.ts +21 -0
- package/dist/preflight/report.d.ts.map +1 -0
- package/dist/preflight/report.js +111 -0
- package/dist/preflight/report.js.map +1 -0
- package/dist/preflight/rules.d.ts +333 -0
- package/dist/preflight/rules.d.ts.map +1 -0
- package/dist/preflight/rules.js +155 -0
- package/dist/preflight/rules.js.map +1 -0
- package/dist/preflight/run.d.ts +15 -0
- package/dist/preflight/run.d.ts.map +1 -0
- package/dist/preflight/run.js +84 -0
- package/dist/preflight/run.js.map +1 -0
- package/dist/preflight/types.d.ts +178 -0
- package/dist/preflight/types.d.ts.map +1 -0
- package/dist/preflight/types.js +8 -0
- package/dist/preflight/types.js.map +1 -0
- package/dist/preflight/url-probe.d.ts +16 -0
- package/dist/preflight/url-probe.d.ts.map +1 -0
- package/dist/preflight/url-probe.js +217 -0
- package/dist/preflight/url-probe.js.map +1 -0
- package/dist/prompts.js +8 -8
- package/dist/prompts.js.map +1 -1
- package/dist/setup.js +2 -2
- package/dist/tool-meta.js +1 -1
- package/dist/tools/age-rating.d.ts.map +1 -1
- package/dist/tools/age-rating.js +2 -0
- package/dist/tools/age-rating.js.map +1 -1
- package/dist/tools/availability.d.ts +2 -0
- package/dist/tools/availability.d.ts.map +1 -1
- package/dist/tools/availability.js +14 -0
- package/dist/tools/availability.js.map +1 -1
- package/dist/tools/builds.d.ts +1 -0
- package/dist/tools/builds.d.ts.map +1 -1
- package/dist/tools/builds.js +7 -2
- package/dist/tools/builds.js.map +1 -1
- package/dist/tools/competitor-snapshot.js +1 -1
- package/dist/tools/competitor-snapshot.js.map +1 -1
- package/dist/tools/daily-briefing.d.ts.map +1 -1
- package/dist/tools/daily-briefing.js +19 -4
- package/dist/tools/daily-briefing.js.map +1 -1
- package/dist/tools/guide.js +10 -10
- package/dist/tools/guide.js.map +1 -1
- package/dist/tools/iap.d.ts +2 -0
- package/dist/tools/iap.d.ts.map +1 -1
- package/dist/tools/iap.js +8 -0
- package/dist/tools/iap.js.map +1 -1
- package/dist/tools/list-apps.d.ts.map +1 -1
- package/dist/tools/list-apps.js +2 -0
- package/dist/tools/list-apps.js.map +1 -1
- package/dist/tools/metadata-diff.js +1 -1
- package/dist/tools/metadata-diff.js.map +1 -1
- package/dist/tools/privacy.d.ts +3 -1
- package/dist/tools/privacy.d.ts.map +1 -1
- package/dist/tools/privacy.js +3 -1
- package/dist/tools/privacy.js.map +1 -1
- package/dist/tools/release-preflight.d.ts +2 -17
- package/dist/tools/release-preflight.d.ts.map +1 -1
- package/dist/tools/release-preflight.js +3 -444
- package/dist/tools/release-preflight.js.map +1 -1
- package/dist/tools/sales-report.js +1 -1
- package/dist/tools/sales-report.js.map +1 -1
- package/dist/tools/screenshots.d.ts +1 -0
- package/dist/tools/screenshots.d.ts.map +1 -1
- package/dist/tools/screenshots.js +5 -8
- package/dist/tools/screenshots.js.map +1 -1
- package/dist/tools/submission.d.ts +5 -0
- package/dist/tools/submission.d.ts.map +1 -1
- package/dist/tools/submission.js +75 -30
- package/dist/tools/submission.js.map +1 -1
- package/dist/tools/testflight.d.ts +1 -1
- package/dist/tools/testflight.d.ts.map +1 -1
- package/dist/tools/testflight.js +21 -0
- package/dist/tools/testflight.js.map +1 -1
- package/dist/tools/update-version-metadata.d.ts +1 -0
- package/dist/tools/update-version-metadata.d.ts.map +1 -1
- package/dist/tools/update-version-metadata.js +8 -1
- package/dist/tools/update-version-metadata.js.map +1 -1
- package/dist/tools/version-control.d.ts.map +1 -1
- package/dist/tools/version-control.js +6 -2
- package/dist/tools/version-control.js.map +1 -1
- package/dist/trial.d.ts +0 -5
- package/dist/trial.d.ts.map +1 -1
- package/dist/trial.js +5 -2
- package/dist/trial.js.map +1 -1
- package/package.json +1 -1
package/LIMITATIONS.md
CHANGED
|
@@ -10,7 +10,7 @@ Do instead: ASC website > Apps > + (one time).
|
|
|
10
10
|
|
|
11
11
|
### Delete or remove an app record
|
|
12
12
|
Why: DELETE /v1/apps is forbidden for API keys (probed live: apps allows GET and UPDATE only). Builds and appInfos cannot be deleted either.
|
|
13
|
-
Do instead: First take it off sale everywhere, which IS automatable: set_app_availability with territories: [] turns all ~175 territories off (Apple requires this even for an app that was never released). Also remove any in-app purchases from sale. Then, in the ASC website: Apps > your app > App Information > Additional Information > Remove App. Needs the Account Holder or Admin role, and it will not appear while the app is in Ready for Review, Waiting for Review, In Review, Metadata Rejected or Rejected. Note the SKU can never be reused in the organisation, and the bundle ID cannot be reused if a build was ever uploaded.
|
|
13
|
+
Do instead: First take it off sale everywhere, which IS automatable: set_app_availability with territories: [] and confirm: true turns all ~175 territories off (Apple requires this even for an app that was never released). Also remove any in-app purchases from sale. Then, in the ASC website: Apps > your app > App Information > Additional Information > Remove App. Needs the Account Holder or Admin role, and it will not appear while the app is in Ready for Review, Waiting for Review, In Review, Metadata Rejected or Rejected. Note the SKU can never be reused in the organisation, and the bundle ID cannot be reused if a build was ever uploaded.
|
|
14
14
|
|
|
15
15
|
### Create an App Group
|
|
16
16
|
Why: Portal-only; no API.
|
package/README.md
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
npx @pofky/asc-mcp init --write # finds your .p8, asks for your Issuer ID, writes your MCP config
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Then ask your agent: **"start my asc-mcp trial, my email is you@example.com"**. All 41 tools unlock for 7 days, no card and nothing to cancel, and the trial activates in the session you are already in, so whatever you were blocked on works on the very next call. After that Pro is $9 a month (VAT included; in the US, Canada and India sales tax is added at checkout). Six tools stay free, and two of those (the setup check and the playbook) need nothing but Node. The Pro tools that only read (reviews, sales, builds, TestFlight groups, preflight, briefing, keywords, competitors, metadata diff, release notes) also work 5 times in total on your machine with no
|
|
15
|
+
Then ask your agent: **"start my asc-mcp trial, my email is you@example.com"**. All 41 tools unlock for 7 days, no card and nothing to cancel, and the trial activates in the session you are already in, so whatever you were blocked on works on the very next call. After that Pro is $9 a month (VAT included; in the US, Canada and India sales tax is added at checkout). Six tools stay free, and two of those (the setup check and the playbook) need nothing but Node. The Pro tools that only read (reviews, sales, builds, TestFlight groups, preflight, briefing, keywords, competitors, metadata diff, release notes) also work 5 times in total on your machine with no license, as a preview.
|
|
16
16
|
|
|
17
17
|
| You say | What happens |
|
|
18
18
|
|---------|-------------|
|
|
19
|
-
| "Run a preflight check on my app" | Audits metadata, character limits, screenshots
|
|
19
|
+
| "Run a preflight check on my app" | Audits metadata, character limits, screenshots and build status, and says plainly when a check could not run. |
|
|
20
20
|
| "Give me a morning briefing" | Summarizes all your apps: who's in review, who got rejected, new low-rating reviews, action items. |
|
|
21
21
|
| "Generate release notes from my git history" | Reads commits since last tag, categorizes them, and gives you structured data to write "What's New" text. |
|
|
22
22
|
| "Is my app in review?" | Exact review state with context ("typical time: 24-48 hours") |
|
|
@@ -121,7 +121,7 @@ $9 per month, VAT included; in the US, Canada and India sales tax is added at ch
|
|
|
121
121
|
|------|-------------|----------------|
|
|
122
122
|
| `list_reviews` | Customer reviews filtered by rating, territory, sort order | See what users say without opening the portal |
|
|
123
123
|
| `sales_report` | Daily/weekly/monthly downloads and revenue by territory | Know your numbers instantly |
|
|
124
|
-
| `release_preflight` | Pre-submission audit: metadata, char limits, screenshots, builds |
|
|
124
|
+
| `release_preflight` | Pre-submission audit: metadata, char limits, screenshots, builds | Finds submission blockers before you press Submit, and names any check it could not run |
|
|
125
125
|
| `daily_briefing` | Morning summary across all apps: status, reviews, rejections | One call replaces 10 minutes of portal clicking |
|
|
126
126
|
| `release_notes` | Git commits since last tag, categorized for writing "What's New" | Your AI agent writes release notes from your actual changes |
|
|
127
127
|
| `keyword_insights` | Analyze keywords against iTunes search competition, difficulty ratings | See which keywords are worth targeting at a glance |
|
|
@@ -164,7 +164,7 @@ These tools write to App Store Connect. Every outward-facing action (submit, rel
|
|
|
164
164
|
|
|
165
165
|
The whole flow chains: `setup_app_store_signing` to `build_and_archive` to `upload_binary` to `wait_for_build` (blocks until VALID) to `attach_build` to `update_version_metadata` to `upload_screenshots` to `set_app_metadata`/`set_app_price`/`set_app_availability`/`set_age_rating`/`set_review_contact` to `release_preflight` to `submit_for_review` to `release_version`. The `/asc-ship-release` slash command drives it for you.
|
|
166
166
|
|
|
167
|
-
`release_preflight` is the
|
|
167
|
+
`release_preflight` is the check to run before you submit: it reads every API-addressable field, loads the support, privacy and terms links in the record, and with `project_path` checks privacy manifests, required-reason APIs, listed SDKs and purpose strings on your machine. Every rule ends in PASS, WARN, FAIL or UNKNOWN, and any UNKNOWN withholds the clean verdict. Project files are checked only with `project_path`, and the verdict says when they were not. It ends with the manual steps for the few things Apple only allows in the website (first-IAP bundling, App Privacy nutrition labels, EU trader status). It is not a prediction of App Review's decision.
|
|
168
168
|
|
|
169
169
|
[Get Pro](https://buy.polar.sh/polar_cl_y86PS4ruc848PXevVvSYS49S8gZY8JYWF192v1UEgjj) | [Retrieve your license key](https://asc-mcp-license.remewdy.workers.dev/key)
|
|
170
170
|
|
|
@@ -173,7 +173,7 @@ The whole flow chains: `setup_app_store_signing` to `build_and_archive` to `uplo
|
|
|
173
173
|
A handful of things Apple does not expose to API keys. The MCP never pretends otherwise: it either returns the exact website steps plus a deep link, or detects the case and aborts so nothing is half-done. Full detail in [LIMITATIONS.md](LIMITATIONS.md) (and `asc_guide topic:limitations`):
|
|
174
174
|
|
|
175
175
|
- **Create an app record / App Group.** `POST /v1/apps` is forbidden for API keys; do it once in the website.
|
|
176
|
-
- **App Privacy nutrition label.** Not in the API. `set_privacy_nutrition` returns the checklist plus a deep link.
|
|
176
|
+
- **App Privacy nutrition label.** Not in the API (`/v1/appDataUsages` still 404s, re-probed 2026-10-31). `set_privacy_nutrition` returns the checklist plus a deep link, and `release_preflight` with `project_path` lists the data types your manifests declare to check it against.
|
|
177
177
|
- **EU DSA trader status.** Not in the API. `set_eu_trader_status` returns the steps. Legal decision.
|
|
178
178
|
- **An app's first IAPs/subscriptions.** Must be submitted with the version in the website; `submit_for_review` aborts rather than orphan the version. Later products submit via the API.
|
|
179
179
|
- **Certificate creation / cloud signing.** Least-privilege keys can't; `setup_app_store_signing` uses manual-signing profiles instead.
|
|
@@ -217,26 +217,32 @@ Works on macOS, Linux, and Windows. To remove: `npx @pofky/asc-mcp uninstall-ski
|
|
|
217
217
|
|
|
218
218
|
## Real Output Examples
|
|
219
219
|
|
|
220
|
-
**"Run a preflight check before I submit"**
|
|
220
|
+
**"Run a preflight check before I submit"** (real output, on one of our own unfinished apps, shortened)
|
|
221
221
|
```
|
|
222
|
-
Release Preflight:
|
|
222
|
+
## Release Preflight: Adaptale
|
|
223
223
|
|
|
224
|
-
|
|
225
|
-
Platform: IOS
|
|
224
|
+
BLOCKED: 13 failures
|
|
226
225
|
|
|
227
|
-
|
|
226
|
+
Auditing v1.0 (iOS), state PREPARE_FOR_SUBMISSION
|
|
228
227
|
|
|
229
|
-
|
|
230
|
-
- Missing screenshot set for APP_IPHONE_67. May be required.
|
|
228
|
+
### Failures
|
|
231
229
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
- Build 40 attached and valid.
|
|
230
|
+
FAIL shots.required [en-US]
|
|
231
|
+
Saw: This app runs on iPad, going by the build's iPad icon, and there is no APP_IPAD_PRO_3GEN_129 set with images.
|
|
232
|
+
Rule: required device sizes (Screenshot specifications, verified 2026-10-31)
|
|
233
|
+
Fix: upload_screenshots
|
|
237
234
|
|
|
238
|
-
|
|
235
|
+
FAIL build.attached
|
|
236
|
+
Saw: Build 1 has expired. Upload a new one.
|
|
237
|
+
Rule: Guideline 2.1(a), final versions (App Review Guidelines, verified 2026-10-31)
|
|
238
|
+
Fix: attach_build
|
|
239
|
+
|
|
240
|
+
FAIL app.price
|
|
241
|
+
Saw: No price has been set, not even free.
|
|
242
|
+
Rule: price schedule (App information reference, verified 2026-10-31)
|
|
243
|
+
Fix: set_app_price price_usd (0 for free)
|
|
239
244
|
```
|
|
245
|
+
Fix what it names, re-run, and the clean line reads: `NO BLOCKING ISSUES FOUND: 32 rules checked. This is not a prediction of App Review's decision.`
|
|
240
246
|
|
|
241
247
|
**"Morning briefing"**
|
|
242
248
|
```
|
|
@@ -300,8 +306,9 @@ Your `.p8` private key never leaves your machine:
|
|
|
300
306
|
- The `.p8` private key is read locally. JWT tokens are generated on your computer, and name your Key ID and Issuer ID to Apple, as Apple's API requires.
|
|
301
307
|
- API calls go directly from your machine to `api.appstoreconnect.apple.com`.
|
|
302
308
|
- The license server is sent your license key string when one is set and, if you start a trial, your email address, a one-way hash of your Issuer ID and the name of the tool you started from. No Apple data and no credentials.
|
|
309
|
+
- `release_preflight` requests the support, marketing and privacy policy addresses in your own App Store Connect record and any link in your description that looks like Terms of Use, following their redirects, from your machine with no key or token, and never one that resolves to a private network. If you pass `project_path` it reads that folder (on a Mac, `nm` and `plutil` on a built app there), writes nothing and runs nothing from the project; its reply carries paths, line numbers and setting names, not file contents.
|
|
303
310
|
- `~/.asc-mcp/preview.json` holds one number, how many of the 5 free preview calls have been used on this machine. It is never sent anywhere.
|
|
304
|
-
- Starting a trial
|
|
311
|
+
- Starting a trial saves the license key in plain text in `~/.asc-mcp/license.json` (owner-only permissions on macOS and Linux) and adds it as `ASC_LICENSE_KEY` to every asc-mcp entry found in your Claude Desktop, Claude Code (`~/.claude.json`, including per-project entries), `./.mcp.json`, Cursor, Windsurf and Cline configs. Nothing else in those files is changed, and each edited file gets a one-time `.bak` copy beside it, which holds whatever the file held. `~/.asc-mcp/last-verdict.json` holds the last license check and a hash of the key. Delete the file and the `ASC_LICENSE_KEY` lines to remove the key.
|
|
305
312
|
- Fully open source. [Read the code.](https://github.com/pofky/asc-mcp)
|
|
306
313
|
|
|
307
314
|
## Works With
|
package/USER_GUIDE.md
CHANGED
|
@@ -48,17 +48,17 @@ Steps:
|
|
|
48
48
|
1. `list_apps` to get the numeric app_id.
|
|
49
49
|
2. Build + upload a binary so a build exists to attach (see topic:binary), or upload via Xcode/Transporter. Then `wait_for_build` until VALID.
|
|
50
50
|
3. `set_app_metadata` - primary/secondary category, copyright, content rights, export compliance (most apps: uses_non_exempt_encryption=false).
|
|
51
|
-
4. `set_app_price` - price_usd:0 for free, or
|
|
51
|
+
4. `set_app_price` - price_usd:0 for free, or an exact USA price point. Required before submit. Changing a price the app already has needs confirm:true.
|
|
52
52
|
5. `update_version_metadata` - description, keywords, what's-new (note: what's-new is NOT editable on a first 1.0 with no prior release; the tool drops it and reports it skipped), promo text, marketing/support/privacy-policy URLs, name, subtitle. Char limits validated.
|
|
53
|
-
6. `set_app_availability` -
|
|
53
|
+
6. `set_app_availability` - all_territories:true, or a list of territories. Turning territories off on an app already set up needs confirm:true.
|
|
54
54
|
7. `set_age_rating` - pass only the declarations that apply; the tool fetches, merges the full V2 set, and submits (it is NOT a partial PATCH).
|
|
55
55
|
8. `set_review_contact` - name, phone, email, demo account if the app needs login. Required before submit.
|
|
56
56
|
9. `attach_build` - newest VALID build by default.
|
|
57
|
-
10. `upload_screenshots` per display type
|
|
57
|
+
10. `upload_screenshots` per display type: APP_IPHONE_67 at minimum, plus APP_IPAD_PRO_3GEN_129 if the app runs on iPad. See topic:screenshots.
|
|
58
58
|
MANUAL: App Privacy nutrition label. Not in the API. Run `set_privacy_nutrition` for the exact checklist + deep link, then set it in the ASC website.
|
|
59
59
|
MANUAL: EU DSA trader status. Not in the API. Run `set_eu_trader_status` for steps + deep link; it's a legal decision, set it in the website.
|
|
60
60
|
11. If the app has in-app purchases or subscriptions, create them now (topic:iap / topic:subscriptions). The FIRST ones must be submitted WITH the version (next step).
|
|
61
|
-
12. `release_preflight` - fix every FAIL
|
|
61
|
+
12. `release_preflight` with `project_path` if you have the Xcode project - fix every FAIL, confirm anything UNKNOWN by hand, and re-run. It ends with the manual steps for this app's state.
|
|
62
62
|
13. MANUAL (if first IAPs exist): the app's very first in-app purchases CANNOT be bundled with the version via the API. In the ASC website, open the version, Add for Review, tick the products, and submit them together. `submit_for_review` detects this and ABORTS rather than orphaning the version. After the first release is live, later IAPs submit via the API fine.
|
|
63
63
|
14. `submit_for_review` with confirm:true (only if there are no first-IAPs blocking; otherwise submit in the website per the step above).
|
|
64
64
|
15. After approval: `release_version` (confirm:true) to go live now, or `manage_phased_release` start for a 7-day rollout.
|
|
@@ -83,7 +83,7 @@ Steps:
|
|
|
83
83
|
4. Upload the new build (`upload_binary` confirm:true, or Xcode/Transporter; see topic:binary), `wait_for_build` to VALID, then `attach_build`.
|
|
84
84
|
5. `upload_screenshots` only if they changed.
|
|
85
85
|
6. Later IAPs/subscriptions (not the first ever) can be created and will submit via the API.
|
|
86
|
-
7. `release_preflight` - fix
|
|
86
|
+
7. `release_preflight` with `project_path` if you have the Xcode project - fix every FAIL, confirm anything UNKNOWN by hand, and re-run.
|
|
87
87
|
8. `submit_for_review` confirm:true.
|
|
88
88
|
9. After approval: `release_version` confirm:true, or `manage_phased_release` start.
|
|
89
89
|
10. Use `metadata_diff` any time to see exactly what changed between live and pending across locales.
|
|
@@ -101,7 +101,7 @@ When: Adding or replacing App Store screenshots.
|
|
|
101
101
|
Steps:
|
|
102
102
|
1. Prepare PNG/JPEG files at the exact pixel size for the display type.
|
|
103
103
|
2. `upload_screenshots` with display_type, an ordered files array, and locale. It runs Apple's 3-step reserve/PUT-chunks/commit flow for you.
|
|
104
|
-
3. Common display types: APP_IPHONE_67 (
|
|
104
|
+
3. Common display types: APP_IPHONE_67 (large iPhone, one iPhone set is the minimum), APP_IPHONE_65 (6.5in), APP_IPAD_PRO_3GEN_129 (13in iPad, needed if the app runs on iPad).
|
|
105
105
|
|
|
106
106
|
Manual interruptions you must do yourself:
|
|
107
107
|
- Capturing the screenshots from a simulator is not yet automated (capture_screenshots is on the roadmap). Produce the PNGs yourself, then upload via the tool.
|
|
@@ -114,7 +114,7 @@ Manual interruptions you must do yourself:
|
|
|
114
114
|
When: Selling a lifetime unlock, consumable credits, etc.
|
|
115
115
|
|
|
116
116
|
Steps:
|
|
117
|
-
1. `create_iap` - product_id, reference name, display name (max 30), description (max 45), type, price_usd. It's idempotent: USA base price, auto-equalized across all territories, availability set. IAP state recomputes immediately on availability (unlike subscriptions, which need a nudge), so once price + availability + a review screenshot are set the product is READY_TO_SUBMIT.
|
|
117
|
+
1. `create_iap` - needs confirm:true. product_id, reference name, display name (max 30), description (max 45), type, price_usd. It's idempotent: USA base price, auto-equalized across all territories, availability set. IAP state recomputes immediately on availability (unlike subscriptions, which need a nudge), so once price + availability + a review screenshot are set the product is READY_TO_SUBMIT.
|
|
118
118
|
2. `set_iap_review_screenshot` - IAPs need an App Review screenshot to leave MISSING_METADATA. Upload one showing the paywall.
|
|
119
119
|
3. For the FIRST IAP ever on the app: it must be submitted WITH the app version in the ASC website (see topic:first-app). After the first release is live, later IAPs submit via `submit_for_review`.
|
|
120
120
|
|
|
@@ -129,7 +129,7 @@ Manual interruptions you must do yourself:
|
|
|
129
129
|
When: Recurring billing (monthly/yearly plans, free trials).
|
|
130
130
|
|
|
131
131
|
Steps:
|
|
132
|
-
1. `create_subscription` - group ref + display name, product_id, names, description (max 45), period, price_usd, optional free_trial, review_note. It is idempotent and handles the gnarly order Apple requires: availability FIRST, then USA base price, then equalize across ~175 territories, then per-territory free-trial intro offers, then a final no-op PATCH to force the state to recompute to READY_TO_SUBMIT.
|
|
132
|
+
1. `create_subscription` - needs confirm:true. group ref + display name, product_id, names, description (max 45), period, price_usd, optional free_trial, review_note. It is idempotent and handles the gnarly order Apple requires: availability FIRST, then USA base price, then equalize across ~175 territories, then per-territory free-trial intro offers, then a final no-op PATCH to force the state to recompute to READY_TO_SUBMIT.
|
|
133
133
|
2. `set_iap_review_screenshot` - subscriptions also need a review screenshot of the paywall.
|
|
134
134
|
3. First subscriptions on a brand-new app submit WITH the version in the website; later ones via the API.
|
|
135
135
|
|
package/dist/doctor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../src/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,OAAa,GAAG,MAAM,GAAG,IAAI,CAK1F;AASD;;;;GAIG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../src/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,OAAa,GAAG,MAAM,GAAG,IAAI,CAK1F;AASD;;;;GAIG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,YAAY,CAAC,CAyNvD;AAID,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAazD"}
|
package/dist/doctor.js
CHANGED
|
@@ -101,7 +101,7 @@ async function runDoctor() {
|
|
|
101
101
|
try {
|
|
102
102
|
(0, auth_js_1.clearTokenCache)();
|
|
103
103
|
const token = await (0, auth_js_1.getToken)(keyId, issuerId, keyPath);
|
|
104
|
-
const res = await fetch("https://api.appstoreconnect.apple.com/v1/apps?limit=1", { headers: { Authorization: `Bearer ${token}` } });
|
|
104
|
+
const res = await fetch("https://api.appstoreconnect.apple.com/v1/apps?limit=1", { headers: { Authorization: `Bearer ${token}` }, signal: AbortSignal.timeout(15_000) });
|
|
105
105
|
if (res.ok) {
|
|
106
106
|
checks.push({
|
|
107
107
|
name: "Live connection",
|
|
@@ -202,7 +202,7 @@ async function runDoctor() {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
else {
|
|
205
|
-
// The
|
|
205
|
+
// The license server says WHY, and the reasons want different answers. A
|
|
206
206
|
// finished trial is not a broken key, and sending that person to look up
|
|
207
207
|
// a key that is working exactly as designed both wastes their time and
|
|
208
208
|
// hides the one thing they need at that moment, which is the price and
|
|
@@ -211,7 +211,7 @@ async function runDoctor() {
|
|
|
211
211
|
const ended = {
|
|
212
212
|
trial_expired: {
|
|
213
213
|
detail: "Your 7-day trial has ended, so the write, control and intelligence tools are locked.",
|
|
214
|
-
fix: `Pro is ${gate_js_1.PRO_PRICE}, cancel any time: ${gate_js_1.UPGRADE_URL}. Already subscribed? Run \`asc_start_trial\` with the same email and
|
|
214
|
+
fix: `Pro is ${gate_js_1.PRO_PRICE}, cancel any time: ${gate_js_1.UPGRADE_URL}. Already subscribed? Run \`asc_start_trial\` with the same email and your paid key is emailed to you.`,
|
|
215
215
|
},
|
|
216
216
|
canceled: {
|
|
217
217
|
detail: "This subscription was cancelled and the paid period has ended.",
|
|
@@ -225,27 +225,35 @@ async function runDoctor() {
|
|
|
225
225
|
// saying a payment failed and where to fix it.
|
|
226
226
|
revoked: {
|
|
227
227
|
detail: "This subscription is no longer active. The usual cause is a renewal payment that did not go through.",
|
|
228
|
-
fix: `Start it again at ${gate_js_1.UPGRADE_URL}; you get a new key by email in seconds and swap it into the same ASC_LICENSE_KEY line. If you believe this is wrong, reply to your
|
|
228
|
+
fix: `Start it again at ${gate_js_1.UPGRADE_URL}; you get a new key by email in seconds and swap it into the same ASC_LICENSE_KEY line. If you believe this is wrong, reply to your license email and a person will look.`,
|
|
229
229
|
},
|
|
230
230
|
inactive: {
|
|
231
231
|
detail: "This subscription is not active right now, so the Pro tools are locked.",
|
|
232
232
|
fix: `Check the card on file, or start again at ${gate_js_1.UPGRADE_URL}. Already resubscribed? Retrieve the current key at ${license_js_1.LICENSE_API_URL}/key.`,
|
|
233
233
|
},
|
|
234
234
|
expired: {
|
|
235
|
-
detail: "This
|
|
235
|
+
detail: "This license has expired.",
|
|
236
236
|
fix: `Renew at ${gate_js_1.UPGRADE_URL}, or retrieve your current key at ${license_js_1.LICENSE_API_URL}/key.`,
|
|
237
237
|
},
|
|
238
238
|
};
|
|
239
239
|
const known = reason ? ended[reason] : undefined;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
240
|
+
// No answer at all is an outage of ours, not a finding about the key.
|
|
241
|
+
if (!(0, license_js_1.lastLicenseStatus)()) {
|
|
242
|
+
checks.push({
|
|
243
|
+
name: "License",
|
|
244
|
+
status: "warn",
|
|
245
|
+
detail: "A license key is set, and the license server gave no verdict on it.",
|
|
246
|
+
fix: `Retry once you are online. Server status: ${license_js_1.LICENSE_API_URL}/health`,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
else
|
|
250
|
+
checks.push({
|
|
251
|
+
name: "License",
|
|
252
|
+
status: "fail",
|
|
253
|
+
detail: known?.detail ?? "A license key is set but did not validate as Pro.",
|
|
254
|
+
fix: known?.fix ??
|
|
255
|
+
`Check the key, or have it emailed again at ${license_js_1.LICENSE_API_URL}/key.`,
|
|
256
|
+
});
|
|
249
257
|
}
|
|
250
258
|
}
|
|
251
259
|
const healthy = !checks.some((c) => c.status === "fail");
|
package/dist/doctor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../src/doctor.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAiCH,sCAKC;AAcD,
|
|
1
|
+
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../src/doctor.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAiCH,sCAKC;AAcD,8BAyNC;AAKD,oCAaC;AA7RD,qCAAmD;AACnD,yCAAoC;AACpC,qCAAkC;AAClC,uCAAsD;AACtD,6CAAmF;AACnF,yCAAgD;AAChD,uCAAmD;AAiBnD;;;;;;;GAOG;AACH,SAAgB,aAAa,CAAC,OAA2B,EAAE,GAAG,GAAG,IAAI,IAAI,EAAE;IACzE,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IACxC,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IACnC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,EAAE,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AE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1D,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,MAAM,KAAK,IAAI;YAAE,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,KAAK,CAAC,IAAI,CACR,MAAM,CAAC,OAAO;QACZ,CAAC,CAAC,8EAA8E;QAChF,CAAC,CAAC,iEAAiE,CACtE,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
package/dist/editable.d.ts
CHANGED
|
@@ -6,4 +6,22 @@
|
|
|
6
6
|
* Import this everywhere instead of redefining.
|
|
7
7
|
*/
|
|
8
8
|
export declare const EDITABLE_VERSION_STATES: Set<string>;
|
|
9
|
+
interface VersionLike {
|
|
10
|
+
attributes: {
|
|
11
|
+
appStoreState: string;
|
|
12
|
+
platform?: string;
|
|
13
|
+
versionString?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Which version a write is about. An app can have iOS and macOS versions in
|
|
18
|
+
* progress at once, and each tool used to take the first it saw, so a fix for a
|
|
19
|
+
* macOS finding could land on iOS and report success. With one platform in
|
|
20
|
+
* progress this is that version, exactly as before; with more, the caller must say.
|
|
21
|
+
*/
|
|
22
|
+
export declare function pickEditableVersion<T extends VersionLike>(versions: T[], platform?: string): {
|
|
23
|
+
version: T | null;
|
|
24
|
+
refusal?: string;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
9
27
|
//# sourceMappingURL=editable.d.ts.map
|
package/dist/editable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editable.d.ts","sourceRoot":"","sources":["../src/editable.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,aAQlC,CAAC"}
|
|
1
|
+
{"version":3,"file":"editable.d.ts","sourceRoot":"","sources":["../src/editable.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,aAQlC,CAAC;AAEH,UAAU,WAAW;IACnB,UAAU,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAClF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EACvD,QAAQ,EAAE,CAAC,EAAE,EACb,QAAQ,CAAC,EAAE,MAAM,GAChB;IAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAczC"}
|
package/dist/editable.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EDITABLE_VERSION_STATES = void 0;
|
|
4
|
+
exports.pickEditableVersion = pickEditableVersion;
|
|
4
5
|
/**
|
|
5
6
|
* The single definition of which App Store version states are still editable
|
|
6
7
|
* (metadata writable, build attachable, submittable). Previously each tool kept
|
|
@@ -17,4 +18,26 @@ exports.EDITABLE_VERSION_STATES = new Set([
|
|
|
17
18
|
// attached and the version resubmitted.
|
|
18
19
|
"INVALID_BINARY",
|
|
19
20
|
]);
|
|
21
|
+
/**
|
|
22
|
+
* Which version a write is about. An app can have iOS and macOS versions in
|
|
23
|
+
* progress at once, and each tool used to take the first it saw, so a fix for a
|
|
24
|
+
* macOS finding could land on iOS and report success. With one platform in
|
|
25
|
+
* progress this is that version, exactly as before; with more, the caller must say.
|
|
26
|
+
*/
|
|
27
|
+
function pickEditableVersion(versions, platform) {
|
|
28
|
+
const open = versions.filter((v) => v && exports.EDITABLE_VERSION_STATES.has(v.attributes.appStoreState));
|
|
29
|
+
const named = open.map((v) => `v${v.attributes.versionString ?? "?"} (${v.attributes.platform ?? "unknown platform"})`).join(", ");
|
|
30
|
+
if (platform) {
|
|
31
|
+
const match = open.find((v) => v.attributes.platform === platform);
|
|
32
|
+
if (match)
|
|
33
|
+
return { version: match };
|
|
34
|
+
return open.length
|
|
35
|
+
? { version: null, refusal: `Nothing was changed: no version is in progress on ${platform}. In progress: ${named}.` }
|
|
36
|
+
: { version: null };
|
|
37
|
+
}
|
|
38
|
+
if (new Set(open.map((v) => v.attributes.platform)).size > 1) {
|
|
39
|
+
return { version: null, refusal: `Nothing was changed: this app has versions in progress on more than one platform: ${named}. Pass platform to say which one.` };
|
|
40
|
+
}
|
|
41
|
+
return { version: open[0] ?? null };
|
|
42
|
+
}
|
|
20
43
|
//# sourceMappingURL=editable.js.map
|
package/dist/editable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editable.js","sourceRoot":"","sources":["../src/editable.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"editable.js","sourceRoot":"","sources":["../src/editable.ts"],"names":[],"mappings":";;;AA2BA,kDAiBC;AA5CD;;;;;;GAMG;AACU,QAAA,uBAAuB,GAAG,IAAI,GAAG,CAAC;IAC7C,wBAAwB;IACxB,oBAAoB;IACpB,UAAU;IACV,mBAAmB;IACnB,2EAA2E;IAC3E,wCAAwC;IACxC,gBAAgB;CACjB,CAAC,CAAC;AAMH;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,QAAa,EACb,QAAiB;IAEjB,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC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
3
|
/**
|
|
4
4
|
* The direct Polar checkout link. Kept in the package even though the normal
|
|
5
|
-
* path is the counted redirect below, so a
|
|
5
|
+
* path is the counted redirect below, so a license-server outage costs us
|
|
6
6
|
* attribution rather than the sale. Moving the product to a different Polar
|
|
7
7
|
* organization changes it, and the old link keeps working, so a missed copy
|
|
8
8
|
* silently sells into the wrong org: `scripts/set-checkout-url.mjs` rewrites
|
|
@@ -26,7 +26,7 @@ export declare const UPGRADE_URL: string;
|
|
|
26
26
|
*/
|
|
27
27
|
export declare const PRO_PRICE = "$9/month (VAT included; in the US, Canada and India sales tax is added at checkout)";
|
|
28
28
|
/**
|
|
29
|
-
* How many Pro calls work on this machine with no
|
|
29
|
+
* How many Pro calls work on this machine with no license, as a preview.
|
|
30
30
|
*
|
|
31
31
|
* Until 1.9.14 the gate came down on the second useful call: reviews, sales and
|
|
32
32
|
* build status were all locked, so nobody on the free tier saw the product do
|
package/dist/gate.js
CHANGED
|
@@ -12,7 +12,7 @@ const license_js_1 = require("./license.js");
|
|
|
12
12
|
const tool_meta_js_1 = require("./tool-meta.js");
|
|
13
13
|
/**
|
|
14
14
|
* The direct Polar checkout link. Kept in the package even though the normal
|
|
15
|
-
* path is the counted redirect below, so a
|
|
15
|
+
* path is the counted redirect below, so a license-server outage costs us
|
|
16
16
|
* attribution rather than the sale. Moving the product to a different Polar
|
|
17
17
|
* organization changes it, and the old link keeps working, so a missed copy
|
|
18
18
|
* silently sells into the wrong org: `scripts/set-checkout-url.mjs` rewrites
|
|
@@ -39,7 +39,7 @@ exports.UPGRADE_URL = upgradeUrl();
|
|
|
39
39
|
*/
|
|
40
40
|
exports.PRO_PRICE = "$9/month (VAT included; in the US, Canada and India sales tax is added at checkout)";
|
|
41
41
|
/**
|
|
42
|
-
* How many Pro calls work on this machine with no
|
|
42
|
+
* How many Pro calls work on this machine with no license, as a preview.
|
|
43
43
|
*
|
|
44
44
|
* Until 1.9.14 the gate came down on the second useful call: reviews, sales and
|
|
45
45
|
* build status were all locked, so nobody on the free tier saw the product do
|
|
@@ -50,7 +50,7 @@ exports.PRO_PRICE = "$9/month (VAT included; in the US, Canada and India sales t
|
|
|
50
50
|
exports.PREVIEW_CALLS = 5;
|
|
51
51
|
/**
|
|
52
52
|
* Pro tools that read but are not part of the preview. The first two work
|
|
53
|
-
* through the client's own model (MCP sampling) and report a missing
|
|
53
|
+
* through the client's own model (MCP sampling) and report a missing license
|
|
54
54
|
* inside a structured result rather than by returning the gate. The next two
|
|
55
55
|
* return Apple's manual steps for a submission; they show nothing of the
|
|
56
56
|
* product, and spending a preview call on a checklist would be a poor trade.
|
|
@@ -145,7 +145,7 @@ function requirePro(tier, capability, tool) {
|
|
|
145
145
|
return null;
|
|
146
146
|
// Someone whose trial has already run out must not be told to start one. They
|
|
147
147
|
// would call asc_start_trial, be refused, and reasonably conclude the thing is
|
|
148
|
-
// broken. `reason` comes from the
|
|
148
|
+
// broken. `reason` comes from the license server's last verdict on their key.
|
|
149
149
|
const spent = (0, license_js_1.lastLicenseStatus)()?.reason === "trial_expired";
|
|
150
150
|
// A former subscriber must not be offered a free trial either. Someone whose
|
|
151
151
|
// renewal was declined, or who cancelled, is refused by the trial endpoint
|
|
@@ -184,8 +184,8 @@ function requirePro(tier, capability, tool) {
|
|
|
184
184
|
`Pro is ${exports.PRO_PRICE}, cancel any time:\n` +
|
|
185
185
|
` ${upgradeUrl(tool)}\n` +
|
|
186
186
|
` (direct link: ${exports.CHECKOUT_URL})\n\n` +
|
|
187
|
-
"If you already subscribed, call `asc_start_trial` with the same email and
|
|
188
|
-
"
|
|
187
|
+
"If you already subscribed, call `asc_start_trial` with the same email and your paid key " +
|
|
188
|
+
"is emailed to that address.\n"
|
|
189
189
|
: (previewSpent ? `You have used the ${exports.PREVIEW_CALLS} free Pro calls on this machine. ` : "") +
|
|
190
190
|
`Pro is ${exports.PRO_PRICE}, cancel any time:\n` +
|
|
191
191
|
` ${upgradeUrl(tool)}\n` +
|
|
@@ -197,7 +197,7 @@ function requirePro(tier, capability, tool) {
|
|
|
197
197
|
/**
|
|
198
198
|
* The last line of the gate message.
|
|
199
199
|
*
|
|
200
|
-
* A key that is set but never validated means the
|
|
200
|
+
* A key that is set but never validated means the license server could not be
|
|
201
201
|
* reached, and validation fails open to the free tier. Telling that person to
|
|
202
202
|
* "set ASC_LICENSE_KEY" sends a paying customer to check a config that is
|
|
203
203
|
* already correct, during an outage that is ours.
|
|
@@ -206,7 +206,7 @@ function keyAdvice() {
|
|
|
206
206
|
const keySet = Boolean(process.env.ASC_LICENSE_KEY);
|
|
207
207
|
if (keySet && (0, license_js_1.lastLicenseStatus)() === null) {
|
|
208
208
|
return ("ASC_LICENSE_KEY is set but could not be checked, so the license server is probably " +
|
|
209
|
-
"unreachable from here.
|
|
209
|
+
"unreachable from here. That says nothing about your key. Retry in a moment, or check status at " +
|
|
210
210
|
`${license_js_1.LICENSE_API_URL}/health`);
|
|
211
211
|
}
|
|
212
212
|
// A one-click install has no server block in any client config file, so
|
package/dist/gate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gate.js","sourceRoot":"","sources":["../src/gate.ts"],"names":[],"mappings":";;;AAyBA,gCAGC;AAsFD,8CAqBC;AAYD,gCA+DC;AAlND,uDAAqD;AACrD,qCAAiE;AACjE,qCAAkC;AAClC,yCAA0C;AAE1C,6CAAkE;AAClE,iDAA4C;AAE5C;;;;;;;GAOG;AACU,QAAA,YAAY,GACvB,2EAA2E,CAAC;AAE9E;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,IAAa;IACtC,MAAM,IAAI,GAAG,GAAG,4BAAe,KAAK,CAAC;IACrC,OAAO,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAChF,CAAC;AAED,qEAAqE;AACxD,QAAA,WAAW,GAAG,UAAU,EAAE,CAAC;AAExC;;;;;GAK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