@wix/himalaya-cli 0.1680.0 → 0.1682.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.
Binary file
@@ -892,7 +892,11 @@ no-store`; both methods require app authority and current Wix site ownership.
892
892
 
893
893
  `himi store connect` and `himi store submission status|plan|apply|rejection|reply` print one JSON envelope: the
894
894
  result on stdout (`ok: true`), or a failure on stderr with one of these codes. `store connect` exits `8` when it
895
- signed in but created no key (`keyCreated: false`, with the engine's `code` and `reason`).
895
+ signed in but created no key (`keyCreated: false`, with the engine's `code` and `reason`). With `--platform android`
896
+ the same commands go to Google Play (the app's `store/google-play.json`), and `store submission approve-reply
897
+ --platform android --issue <id> --kind appeal|resubmit --text <reply>` records the owner's typed yes on one exact
898
+ policy reply. An Android refusal's `error` leads with its own code (`signing_path_mismatch: …`,
899
+ `google_not_connected: …`, `developer_mismatch: …`).
896
900
 
897
901
  | Code | Meaning |
898
902
  |---|---|
@@ -900,8 +904,10 @@ signed in but created no key (`keyCreated: false`, with the engine's `code` and
900
904
  | `node_too_old` | App Store submission needs Node 24 or newer. Nothing ran. |
901
905
  | `share_unavailable` | The app names a Wix site, and sharing the key with Wix for builds needs your `himi login`. Checked before the sign-in page opens, so no sign-in was spent. |
902
906
  | `connect_refused` | Refused before the page opened: a key is already saved under that profile name (`reason: key_profile_conflict`, the error names the key), the secret store cannot keep a key (`key_store_unavailable`), or the profile name is invalid (`invalid_profile`). Nothing was created. |
903
- | `connect_failed` | The connect page ended without a sign-in: closed, expired after 10 minutes, or refused by Apple; `reason` says which. Nothing was saved. |
904
- | `store_tool_failed` | The App Store step failed or the app's `store/app-store.json` is missing or incomplete (`reason: store_facts_missing` / `store_facts_invalid`); `error` carries the engine's message. |
907
+ | `connect_failed` | The connect page ended without a sign-in: closed, expired after 10 minutes, or refused by Apple; `reason` says which. Nothing was saved. On Google Play also no OAuth client file (the `error` names where it goes, `GPLAY_OAUTH_CLIENT_FILE` and the gcloud fallback; nothing was opened). |
908
+ | `store_tool_failed` | The App Store or Google Play step failed, or the app's `store/app-store.json` / `store/google-play.json` is missing or incomplete (`reason: store_facts_missing` / `store_facts_invalid`); `error` carries the engine's message. |
909
+ | `confirmation_required` | `approve-reply` ran with no terminal: the owner's yes on a policy reply is typed, never passed. Exit `2`. Nothing was recorded. |
910
+ | `consent_declined` | `approve-reply`: the owner did not type `yes`. Nothing was recorded. |
905
911
 
906
912
  ## `himi store handoff` and `himi store relops request` codes
907
913
 
@@ -923,6 +929,45 @@ stderr with one of these codes. A refusal from the publishing service keeps its
923
929
  | `consent_declined` | You did not confirm at the terminal. Nothing was sent. |
924
930
  | `handoff_failed` / `consent_failed` | The publishing service refused or could not be reached; `planeCode` and `status` say which. |
925
931
 
932
+ ## `himi store relops request|end --platform android --seat-email` and `himi store google create-app` codes
933
+
934
+ The owner's side of RelOps on Google Play. Each prints one JSON envelope: the result on stdout (`ok: true`, with the
935
+ gplay job's `jobId` and `status`), or a failure on stderr with one of these codes. None of them prints a token. A job
936
+ that started keeps its `jobId`, so `gplay-node jobs show <jobId>` has its history.
937
+
938
+ | Code | Meaning |
939
+ |---|---|
940
+ | `invalid_usage` | A missing or malformed op or flag: no app and site (neither `--app --site` nor a `wix` block in `store/google-play.json` or `store/app-store.json`), a seat that is not a `@wix.com` address, a package outside `himi.<name>`, no package saved and no `--android-package`, `--android-package` when the site already holds a different package (a package name is for good), an unknown developer account, or `--yes` (there is none). Nothing ran. |
941
+ | `node_too_old` | Needs Node 24 or newer. Nothing ran. |
942
+ | `confirmation_required` | No terminal to type yes at. Checked before the login, so nothing was read or sent. |
943
+ | `owner_session_unavailable` | Needs your `himi login`. Nothing was asked or sent. |
944
+ | `consent_declined` | You did not type yes. Nothing was recorded, saved, signed in or sent. |
945
+ | `consent_failed` | The publishing service did not record RelOps' consent; nothing was sent to Google. |
946
+ | `package_failed` | The app's Google Play package could not be read or saved; `reason` and `serverError` say why. |
947
+ | `google_signin_failed` | Google sign-in was declined, aborted or failed (`reason`); nothing was sent to Google. |
948
+ | `developer_unknown` | Signed in, but your Play developer account is not known: run it again with `--developer <id>`. Nothing was sent to Google. |
949
+ | `plan_unexpected` | The job's plan held a change or a side effect you were not shown (for `create-app`, any wording of Google's declarations other than the one you read), so it was not approved and nothing was sent to Google. |
950
+ | `job_failed` | The gplay job failed or was not read back; `jobId`, `status` and `errorCode` (`google_access_denied`, `console_reauth_needed`, `page_changed`) say where it stopped. |
951
+
952
+ A failure after your yes says what was already written on the Wix side, in `error` and as fields: for `relops request`,
953
+ the recorded consent (`consentId`), and `packageName` only when this run saved the package; for `create-app`,
954
+ `packageName` when this run saved it. Running the command again asks for your yes once more and goes on from there.
955
+
956
+ ## `himi store google keygen|resign` codes
957
+
958
+ The owner-signed path's upload key (`keygen <package>`) and signature (`resign <in.aab> --keystore <file.p12>
959
+ --storepass-file <file> | --storepass-env <NAME>`), made on your own computer. Each prints one JSON envelope: the
960
+ result on stdout (`ok: true`; `keygen`: `keystore`, `passwordFile`, `certificate`, `alias`, `sha256`, `validUntil`;
961
+ `resign`: `out`, `packageName`, `verified`, `alias`, `sha256`), or a failure on stderr with one of these codes. The
962
+ keystore password is never printed.
963
+
964
+ | Code | Meaning |
965
+ |---|---|
966
+ | `invalid_usage` | A missing or malformed op, package name or flag: no `--keystore`, no password source or both `--storepass-file` and `--storepass-env`, an unreadable or empty password file, or `--yes` (nothing is asked). Nothing ran. |
967
+ | `node_too_old` | Needs Node 24 or newer. Nothing ran. |
968
+ | `refused` | A rule refused it: a `himi.*` package or a Wix namespace (Wix signs those), a key path inside a Git repository, a keystore or output that already exists, an input that does not, or a keystore that does not open. Nothing was written. |
969
+ | `signing_failed` | Anything else stopped it; a signed bundle that did not verify is never written. |
970
+
926
971
  ## `himi store app` codes
927
972
 
928
973
  `himi store app set|show --app <id> --site <msid>` prints one envelope. A refusal from the publishing
@@ -143,9 +143,10 @@ off by default.
143
143
  **What the tools will not do:** make a release live, build store binaries, write to a site's CMS,
144
144
  create a Wix site, or take a credential through a tool input or result. Those spend money, handle
145
145
  credentials, or change what real users see, so they stay steps a person takes. App Store Connect
146
- changes happen only through the `store_*` tools below (and the in-app purchase tools above), and each
146
+ and Google Play changes happen only through the `store_*` tools below (and the in-app purchase tools above), and each
147
147
  `store_*` change waits for the person's own approval of the exact plan; the Apple password and
148
- two-factor code are typed only on the sign-in page their own computer serves. The hosted Wix Native
148
+ two-factor code are typed only on the sign-in page their own computer serves, and a Google Play reply to a policy
149
+ issue needs the owner's own typed yes in a terminal, which no tool can give. The hosted Wix Native
149
150
  App Builder connector cannot submit at all. Publishing needs a sign-in first: `himi_login` opens the
150
151
  browser sign-in for the user, or run `himi login --browser` in a terminal. Either way the server
151
152
  never asks for or sees a credential — the browser hands a scoped token to a separate `himi login`
@@ -157,17 +158,22 @@ the token, so keep it a secret of the job, not of the MCP client. Started with `
157
158
  never passes through a tool input or result. A tool input that starts with `-` is refused, so nothing
158
159
  can be passed through to a flag no tool offers.
159
160
 
160
- ## Submit to the App Store from your agent (`store_*`)
161
+ ## Submit to the App Store and Google Play from your agent (`store_*`)
161
162
 
162
- `himi mcp` also serves six App Store tools, run on your own computer under your own Apple account:
163
+ `himi mcp` also serves six store tools, run on your own computer under your own Apple account (or, with `platform: "android"`, your own Google Play account):
163
164
  `store_connect` (opens a sign-in page in your browser: you type your Apple ID password and two-factor
164
165
  code there, never in the chat, and it creates an App Store Connect API key for this computer),
165
166
  `store_status`, `store_plan`, `store_apply`, `store_rejection` and `store_reply`. Every write asks you
166
167
  itself, in a form your client shows or on a page in your browser, to approve the exact plan; the model
167
168
  cannot answer that question, and a message saying "the user approved" approves nothing. They need
168
169
  Node 24 or newer; on an older Node the server leaves them out and says so on stderr. The app's store
169
- facts come from `store/app-store.json` beside its `config.ts` — see `himi docs store-submission`. The
170
- same steps run in a terminal as `himi store connect` and `himi store submission status|plan|apply|rejection|reply`.
170
+ facts come from `store/app-store.json` (App Store) or `store/google-play.json` (Google Play) beside its `config.ts` —
171
+ see `himi docs store-submission`. The
172
+ same steps run in a terminal as `himi store connect` and `himi store submission status|plan|apply|rejection|reply`
173
+ (add `--platform android` for Google Play). For Google Play, `store_connect` needs a Google OAuth client file on your
174
+ computer; without one it falls back to a gcloud sign-in already on this computer (`gcloud auth application-default
175
+ login`), for the API only, so Console steps still need the client file. App content stays drafts-only: the plan lists
176
+ the forms only you can finish.
171
177
 
172
178
  ## See the app inside your IDE
173
179
 
package/guides/index.json CHANGED
@@ -438,7 +438,7 @@
438
438
  },
439
439
  {
440
440
  "id": "store-submission",
441
- "title": "App Store submission — from your own computer, under your own Apple account",
441
+ "title": "App Store and Google Play submission — from your own computer, under your own account",
442
442
  "category": "CLI & Loop",
443
443
  "file": "store-submission.md"
444
444
  },
package/guides/skill.md CHANGED
@@ -80,7 +80,7 @@ These are agent instructions, not a claim that the CLI enforces a reading or ret
80
80
  1. **Discover before building.** Start by learning the business goal, intended users and roles, their most important jobs, success criteria, branding, preferred platforms, and existing data/auth systems. When customers book or buy, ask **how they pay** — online, in person, with a plan, or free — and before you plan a booking or checkout flow, check each service's payment mode in the business book (`book.md` → Catalog, e.g. `pay online only`): a "book now, pay on the visit" flow is impossible for a service the site sells online only. Ask only the questions needed to make a sound plan.
81
81
  - **If their first message already names a template** (*starting from the "Beauty Salon" template (beauty-salon)*), they copied that sentence off a showcase app they just looked at and liked. Treat it as a strong preference and a useful signal about what they want — not as a completed plan, and not as permission to skip this step. Say what that template is, keep it as the working starting point, and still run discovery; if what you learn points elsewhere, say so and let them choose. Templates ARE running apps, so `himi template list --remote` plus its preview URL is also the fastest way to show them an alternative rather than describe one.
82
82
  2. **Classify the starting point.** Use exactly one primary path:
83
- - **Wix site owner:** they have a published Wix site. Ask for its URL and whether Wix Headless is already configured; do not request identifiers or credentials, and do not connect it yet. Looking at the site itself is not one of the things you wait for — they published it, so open its public pages and read what is on them whenever the plan needs it. That is the visitor-only read, which is all an analysis can reach without the site id you have not asked for: `himi site analyze --url <their site>` with nothing else reads the published pages, their look and copy, and flags template leftovers. The per-vertical catalog counts and `--apply` also need the site's Headless client id (`--client-id`), which comes with the connection step, not before it.
83
+ - **Wix site owner:** they have a published Wix site. **Any Wix site works** — built in the Wix Editor or Studio (with or without Velo) or as a Wix Headless project. "Headless" in this skill means the site's *Headless client*, an OAuth app the connection step adds to whatever site they have; it is never a reason to stop, to ask which editor built the site, or to suggest rebuilding it. Ask for its URL; do not request identifiers or credentials, and do not connect it yet. Looking at the site itself is not one of the things you wait for — they published it, so open its public pages and read what is on them whenever the plan needs it. That is the visitor-only read, which is all an analysis can reach without the site id you have not asked for: `himi site analyze --url <their site>` with nothing else reads the published pages, their look and copy, and flags template leftovers. The per-vertical catalog counts and `--apply` also need the site's Headless client id (`--client-id`), which comes with the connection step, not before it.
84
84
  - **Wix business with no site yet:** they want a Wix-backed app but have nothing to bind to. Tell them a site can be provisioned for them — `himi site create` makes one from a Wix template with the verticals installed and mints the Headless client the app binds to — but it creates a **real, billable site on their Wix account** and is not cleanly reversible, so it is an approval gate (below), never something you run to explore. Until they approve, plan against the data model rather than a live site.
85
85
  - **Wix Headless / Back Office business:** no public site is needed. Understand roles, operational workflows, Wix verticals, CMS collections, APIs, authentication, and what data may be read or written.
86
86
  - **Existing Base44 app:** ask for its published URL and which sign-in methods its users rely on. The public URL can be read with `himi base44 analyze --url <url>`; this visitor pass does not expose entity schemas. For a plan based on the app's real entities and functions, get approval to read its private source and sample data, then ask the owner/editor to sign in with `himi base44 login` and use the app ID from their Base44 editor URL with `himi base44 analyze --app-id <id>`. Never ask them to paste an access token. Use the Base44 conversion guide at https://apps.wix.com/_api/himi-serve/docs/base44-app-to-himi-app.md; check its auth and native-device limits before promising a flow.
@@ -185,7 +185,7 @@ and is also served at the public URL above. No repository access is required.
185
185
  - **Your platform already holds the owner's Wix session or token** (they connected their Wix account to it): that token **is** the owner. Any valid Wix token can manage that account's apps, publishing included. Pipe it in — `printf '%s' "$TOKEN" | himi login --wix --wix-token-stdin --target wix` — or set `WIX_TOKEN` and run `himi login --wix --target wix`. Never put a token on the command line (argv shows in `ps` and transcripts) or in a file you commit, and never print it.
186
186
  - **A server or CI job** with an account API key: `WIX_API_KEY` + `himi login --wix --target wix`.
187
187
  - **You hold no token at all:** run `himi login --device --target wix`. It prints a link and a short code. Show the owner both, ask them to open the link on any device where they are signed in to wix.com, check the code matches and approve, then wait: the command returns once they approve (up to 10 minutes). **If the app needs the owner's live site data, add `--site <msid>`** (and `--redirect-uri <uri>` when the app signs members in with its own redirect): the owner picks or confirms that site on the same approve page, and the result's `site` block carries the site's Headless client id (`site.clientId`, a public value — no Wix token reaches you). It is kept per site, so `himi site client list --site <msid>` answers with it afterwards. If `site` carries an `error` instead, the sign-in still worked: give the owner `site.fallbackUrl` to copy the client id from their dashboard.
188
- - **If your environment can't run a command for about 10 minutes, or only shows a command's output once it exits,** don't run the waiting form. Run `himi login --device --no-wait --target wix` (with `--site` / `--redirect-uri` if you need them): it prints the link, the code and when the code expires, and exits at once. Show the owner the link and the code with whatever your environment uses to ask the user to act (a message, a "needs you" item), then run `himi login --device --resume --target wix` until it succeeds. Each resume waits at most 50 seconds (`--timeout <seconds>` changes that). Exit 3 with `code: "device_pending"` means the owner has not approved yet, so run it again; exit 0 means you are signed in. `device_code_expired`, `device_access_denied` or `device_not_started` mean start again with `--no-wait` and a new code.
188
+ - **If your environment can't run a command for about 10 minutes, or only shows a command's output once it exits,** don't run the waiting form. Run `himi login --device --no-wait --target wix` (with `--site` / `--redirect-uri` if you need them): it prints the link, the code and when the code expires, and exits at once. Show the owner the link and the code with whatever your environment uses to ask the user to act (a message, a "needs you" item), then run `himi login --device --resume --target wix` until it succeeds. Each resume waits at most 50 seconds (`--timeout <seconds>` changes that). Exit 3 with `code: "device_pending"` means the owner has not approved yet, so run it again; exit 0 means you are signed in. `device_code_expired`, `device_access_denied` or `device_not_started` mean start again with `--no-wait` and a new code, repeating the `--site` / `--redirect-uri` you first passed (`--resume` does not take them, and a bare retry loses the site connection). If your run ends while the owner has not approved yet (you raised a "needs you" item and stopped), the code is dead ten minutes later: when you are resumed, run `--resume` first, and if the code expired, mint a new one with that same full `--no-wait` command and show the new link. Never re-show an old code. Once `--resume` exits 0, carry on with the work in that same run; do not stop to ask whether to continue.
189
189
  - **None of these:** stop and say exactly what is missing. Do not improvise another route to a himi token.
190
190
 
191
191
  This replaces only the sign-in. The approval gates above still apply to every side effect.
@@ -20,6 +20,8 @@ Three rules hold everywhere:
20
20
  Requirements: Node 24 or newer, an Apple Developer Program membership, and the Account Holder or Admin role on the
21
21
  team you submit under.
22
22
 
23
+ Google Play works the same way, with a few differences. It has its own section below: "Google Play (Android)".
24
+
23
25
  ## 1. Describe the app for the store: `store/app-store.json`
24
26
 
25
27
  Beside your app's `config.ts`, create `store/app-store.json`. The bundle ID and name come from `config.ts`; the file
@@ -165,6 +167,178 @@ himi store relops request --dir <app> # let Wix's release team see this app'
165
167
  without one, pass `--yes`.
166
168
  - Both need your `himi login`, and only the owner of the app's Wix site can send them.
167
169
 
170
+ ## Google Play (Android)
171
+
172
+ The same commands and `store_*` tools also go to Google Play. Add `--platform android` in a terminal, or
173
+ `platform: "android"` in a tool call. They run on your own computer, under your own Google account. Nothing here has
174
+ run against a live Google account yet: the code is tested against fakes, so expect rough edges on the first real run.
175
+
176
+ ### What you must do yourself
177
+
178
+ Google forces these steps on the account owner. No command, tool or agent can do them for you:
179
+
180
+ - Create a **Google Play developer account** at play.google.com/console.
181
+ - Pass Google's **identity verification**, **device verification** and **contact phone** checks.
182
+ - **Declare your trader status** (whether you sell to people in the EU as a business). Every active account needs it,
183
+ and a new account is asked at creation.
184
+
185
+ Until these are done, nothing below can finish. `status` tells you which one is still missing.
186
+
187
+ ### Self-serve, from your own computer
188
+
189
+ **Describe the app: `store/google-play.json`**, beside `config.ts`. Only `packageName` is required. Anything you leave
190
+ out stays a to-do in the plan, and you finish it in Play Console yourself.
191
+
192
+ ```json
193
+ {
194
+ "packageName": "himi.mygym",
195
+ "appName": "My Gym",
196
+ "category": "Health & Fitness",
197
+ "contactEmail": "hello@example.com",
198
+ "privacyPolicyUrl": "https://example.com/privacy",
199
+ "defaultLanguage": "en-US",
200
+ "targetAudience": ["18 and over"],
201
+ "contentRatingCategory": "other",
202
+ "isFree": true,
203
+ "hasAds": false,
204
+ "usesAdvertisingId": false,
205
+ "requiresLogin": true,
206
+ "wix": { "app": "<your app id>", "site": "<your site's metaSiteId>" }
207
+ }
208
+ ```
209
+
210
+ | Field | What it is |
211
+ |---|---|
212
+ | `packageName` | Required. The Android package. A Wix-signed app uses `himi.<name>`. |
213
+ | `appName`, `defaultLanguage` | The store listing name and its main language. |
214
+ | `category` | The category, as its exact label in Play Console's Store settings: `Health & Fitness`, `Productivity`, `Shopping`. Not an enum name like `HEALTH_AND_FITNESS`. |
215
+ | `contactEmail`, `privacyPolicyUrl` | A valid email, and an `https` link. A bad value is refused with the field named. |
216
+ | `targetAudience` | The age groups, as a list or a comma string, using Play's exact labels: `5 and under`, `6-8`, `9-12`, `13-15`, `16-17`, `18 and over`. Any other value is refused up front, with the labels named. |
217
+ | `contentRatingCategory` | `game`, `social` or `other`. |
218
+ | `isFree`, `hasAds`, `usesAdvertisingId`, `requiresLogin`, `isGovernmentApp`, `hasFinancialFeatures`, `hasHealthFeatures`, `isNewsApp`, `contentRatingAllNo` | Yes or no answers for the App content forms. Answer truthfully. |
219
+ | `childSafetyUrl`, `accountType` | Optional extras for the same forms. |
220
+ | `developerId`, `appId` | Your Play developer id and the Play app id, when you have more than one account or the app exists. |
221
+ | `bundle`, `listingDir`, `dataSafetyCsv` | Paths inside the app folder. Defaults: the newest `.aab` in `build/`, `store/google-play/listing/`, `store/google-play/data-safety.csv`. |
222
+ | `wix.app`, `wix.site` | The Himi app id and Wix site. With a site, the app is Wix-signed (below). |
223
+
224
+ **Connect your Google account.**
225
+
226
+ ```
227
+ himi store connect --platform android
228
+ ```
229
+
230
+ A page opens in your browser to sign you in to Google, and then to a Play Console window in its own Chrome profile.
231
+ Google's sign-in needs an OAuth client file. Put it at `~/.gplay-node/oauth-client.json`, or point
232
+ `GPLAY_OAUTH_CLIENT_FILE` at it. Wix's own client is still waiting on Google's verification, so until it ships you need
233
+ a client of your own, or an existing gcloud sign-in (this reuses that sign-in for the API only; Console steps then
234
+ need a Console sign-in too). With neither, the command says so and opens and saves nothing.
235
+
236
+ Where the Google sign-in is kept: on macOS, in the macOS keychain. On Windows and Linux, in a file only your user can
237
+ read (mode 0600), `credentials.json` in the state folder, `~/.gplay-node/credentials.json` unless `GPLAY_NODE_HOME`
238
+ moves it. It never goes into a chat, a log or a commit.
239
+
240
+ **Signing.** Google needs every app signed with an upload key. Two ways, picked from the app:
241
+
242
+ - **Wix-signed.** A `himi.*` package bound to a site (the `wix` block). Wix builds and signs it; you build the
243
+ `.aab` with `himi dist --target wix --platform android --aab …` and put it in `build/`. A `himi.*` package with no
244
+ site is refused as `signing_path_mismatch`, and so is a site-linked app with some other package.
245
+ - **Owner-signed.** Your own package name and no site. The upload key is yours, and himi makes and applies it on your
246
+ computer:
247
+
248
+ ```
249
+ himi store google keygen <package>
250
+ himi dist --app <app> --target wix --platform android --aab --android-signing owner --package-name <package> --google-services google-services.json --version <x.y.z>
251
+ himi store google resign <unsigned .aab> --keystore <keystore> --storepass-file <its .pass file> --out build/app.aab
252
+ ```
253
+
254
+ `keygen` makes the key once: a keystore, its password in a `.pass` file beside it, and a certificate `.pem`. By
255
+ default they go in `~/.gplay-node/keys/`; `--out` puts them somewhere else, but never inside a Git repository. Back
256
+ up the keystore and its `.pass` file: Google ties the app to this key at the first upload, and a lost key means
257
+ asking Google to reset it. `himi dist` builds the bundle unsigned, with your own Firebase project's
258
+ `google-services.json`. `resign` signs it and checks the signature. Both refuse a `himi.*` package or a Wix
259
+ namespace, since Wix signs those.
260
+
261
+ **Plan, approve, submit.**
262
+
263
+ ```
264
+ himi store submission status --platform android --dir <app>
265
+ himi store submission plan --platform android --dir <app>
266
+ himi store submission apply --platform android --job <id> --plan-hash <hash>
267
+ himi store submission rejection --platform android --dir <app> [--issue <id>]
268
+ himi store submission reply --platform android --dir <app> --issue <id> --kind appeal|resubmit --text "<your reply>"
269
+ ```
270
+
271
+ `apply` takes one job at a time. Each change waits for your approval of the exact plan, as on the App Store. Where
272
+ Google's own forms (content rating, and parts of App content) cannot be filled by a tool, the plan lists them as
273
+ yours to do, and says who does them.
274
+
275
+ **Replying to a policy issue needs one more step.** Your agent can draft the reply and plan it, but it cannot send it.
276
+ You approve the exact words yourself, in a terminal:
277
+
278
+ ```
279
+ himi store submission approve-reply --platform android --issue <id> --kind appeal|resubmit --text "<your reply>"
280
+ ```
281
+
282
+ It shows the words and asks for a typed `yes`. That yes is kept for 7 days and works only for that text, issue and
283
+ kind (spaces at the start or end of the text don't count). Then `submission reply` can plan it, and `apply` sends
284
+ it.
285
+
286
+ ### RelOps: Wix does it for you
287
+
288
+ If you would rather not run the Play Console steps yourself, Wix's release team can do them as a named person you
289
+ invite to your account. You still own the account and still give every yes that matters.
290
+
291
+ ```
292
+ himi store relops request --platform android --app <app id> --site <msid> --seat-email <name@wix.com> [--android-package himi.<name>] [--developer <id>]
293
+ ```
294
+
295
+ Run it from a terminal. From the app's folder you can leave out `--app` and `--site`: the `wix` block of
296
+ `store/google-play.json` (or `store/app-store.json`) names them. Add `--android-package` when the site has no Google
297
+ Play package saved yet, and `--developer` (the number in your Play Console URL) when this computer doesn't know your
298
+ developer account yet; the command asks for whichever is missing before your yes. It shows one summary and asks you to type `yes`. After your yes it:
299
+
300
+ - **records your consent** for the app on its site, and saves the app's package name if it was not saved yet;
301
+ - signs you in to Google if you are not signed in;
302
+ - **invites that one Wix person** to your Play account, with only the rights a release needs: release, store
303
+ presence, App content and policy. While the Play app does not exist yet, it also gives the right to create apps.
304
+ - **sets the invite to expire after 90 days**, the longest invitation these tools give.
305
+
306
+ The person has to accept Google's email invitation. You may be sent approval links for individual steps (creating the
307
+ app, releasing to production). Each one shows what will happen. Read it before you press yes: Wix cannot press it for
308
+ you.
309
+
310
+ To remove the person:
311
+
312
+ ```
313
+ himi store relops end --platform android --app <app id> --site <msid> --seat-email <name@wix.com> [--developer <id>]
314
+ ```
315
+
316
+ It asks for a typed yes and removes that person from your Play account, with every right they had, including the right
317
+ to create apps. Nothing changes on Wix's side. The consent you gave stays on record.
318
+
319
+ If the Wix person cannot create the app, you can create it yourself in one step:
320
+
321
+ ```
322
+ himi store google create-app --name <name> --app <app id> --site <msid> [--android-package himi.<name>] [--developer <id>]
323
+ ```
324
+
325
+ As with `relops request`, `--app` and `--site` can come from the app folder's `wix` block.
326
+
327
+ It shows the app name, the package name (a package name can never be reused or changed once an app exists), and each
328
+ declaration Google asks you to accept when creating an app, then asks for a typed `yes`.
329
+
330
+ ### Limits
331
+
332
+ - **The owner's yes is a typed yes on a terminal.** No `himi mcp` tool can give it, so a chat message that says "the
333
+ user approved" approves nothing. But a terminal is not proof that a person is at it: a program can fake one. Treat
334
+ the yes as a strong habit, not a lock.
335
+ - **Closed testing on a personal account.** Google requires a personal account to run a closed test with **12
336
+ testers for 14 days** before it will allow production. An organization account is exempt. The plan says this up
337
+ front. You find your own testers; Wix's tester pool is used only for RelOps apps.
338
+ - **Nothing has run live yet.** The Google steps are tested against fakes, not a real Play account. The first real
339
+ run may find problems.
340
+ - A reply to a policy issue cannot be unsent, and a package name cannot be changed.
341
+
168
342
  ## Errors
169
343
 
170
344
  Every failure prints one JSON envelope on stderr with a `code` (see "`himi store connect` and `himi store
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1680.0",
3
+ "version": "0.1682.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -61,12 +61,14 @@
61
61
  "devDependencies": {
62
62
  "@himalaya/data-resources": "0.0.0",
63
63
  "@types/wawoff2": "^1.0.2",
64
- "@wix/asc": "0.3.5",
65
- "@wix/asc-api": "0.3.5",
66
- "@wix/asc-core": "0.3.5",
67
- "@wix/asc-jobs": "0.3.5",
68
- "@wix/asc-mcp": "0.3.5",
69
- "@wix/asc-web": "0.3.5",
64
+ "@wix/asc": "0.4.0",
65
+ "@wix/asc-api": "0.4.0",
66
+ "@wix/asc-core": "0.4.0",
67
+ "@wix/asc-jobs": "0.4.0",
68
+ "@wix/asc-mcp": "0.4.0",
69
+ "@wix/asc-web": "0.4.0",
70
+ "@wix/gplay-api": "0.4.0",
71
+ "@wix/gplay-jobs": "0.4.0",
70
72
  "@wix/himalaya": "0.1.0"
71
73
  },
72
74
  "publishConfig": {
@@ -79,5 +81,5 @@
79
81
  "artifactId": "himalaya-cli"
80
82
  }
81
83
  },
82
- "falconPackageHash": "88e481ba051daa219fc6f0e90a2256bc136eca9d28de0c4e066d09c6"
84
+ "falconPackageHash": "b4ffbf1ecb3a92399ac99ddd9443294ed9b32cd0ad4cf3f4320784c4"
83
85
  }