@wix/himalaya-cli 0.1765.0 → 0.1767.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.
@@ -1120,23 +1120,24 @@ the recorded consent (`consentId`), and `packageName` only when this run saved t
1120
1120
  ## `himi store google testers pool-add|pool-remove|pool-check` codes
1121
1121
 
1122
1122
  The owner's side of Wix's closed-test pool: the pool's Google Group (`HIMI_POOL_TESTER_GROUP`) on the app's closed
1123
- track. The result is one JSON line on stdout (`ok: true`, `onTrack`, `groups`, and for a change the gplay job's `jobId`
1124
- and `status`), or a failure on stderr with one of these codes. None of them prints a token.
1123
+ track (default `himi-pool`, created by `pool-add`). The result is one JSON line on stdout (`ok: true`, `onTrack`, `groups`, and for a change the gplay job's `jobId`
1124
+ and `status`, `createdTrack`, and `consent` when a recorded consent stood in for the prompt; `consent grant|revoke|status` print the record), or a failure on stderr with one of these codes. None of them prints a token.
1125
1125
 
1126
1126
  | Code | Meaning |
1127
1127
  |---|---|
1128
1128
  | `invalid_usage` | A missing or malformed op or flag: no package (neither `packageName` in `store/google-play.json` nor `--android-package`), a track that is not a closed track, a malformed group address or developer id, or `--yes` (there is none). Nothing ran. |
1129
1129
  | `node_too_old` | Needs Node 24 or newer. Nothing ran. |
1130
1130
  | `pool_group_unset` | `HIMI_POOL_TESTER_GROUP` is not set. Checked first, so nothing was read or changed. |
1131
- | `confirmation_required` | `pool-add` or `pool-remove` with no terminal to type yes at. Nothing was read or changed. |
1131
+ | `confirmation_required` | `pool-add` or `pool-remove` with no terminal to type yes at and no valid recorded consent (`consent grant`), or `consent grant` with no terminal. Nothing was changed. |
1132
1132
  | `google_signin_failed` | Google sign-in was declined, aborted or failed (`reason`). Nothing was changed. |
1133
1133
  | `not_signed_in` | `pool-check` with no stored Google sign-in: it only reads and never starts a sign-in. Run `pool-add` or sign in first. Nothing was read or changed. |
1134
1134
  | `developer_unknown` | Your Play developer account is not known: set `developerId` in `store/google-play.json` or pass `--developer <id>`. Nothing was changed. |
1135
- | `track_missing` | The app has no closed track by that name. Nothing was changed. |
1135
+ | `track_missing` | `pool-remove` or `pool-check` on a closed track the app does not have (`pool-add` creates it). Nothing was changed. |
1136
1136
  | `pool_group_last` | `pool-remove` when the pool's group is the track's only group: Google Play's API cannot set an empty list, so the error gives the Play Console step instead. Nothing was changed. |
1137
1137
  | `plan_unexpected` | The job's plan held a change you were not shown (anything beyond the track's testers, or groups that changed since they were read), so it was not approved. Nothing was changed. |
1138
1138
  | `groups_changed` | The track's groups changed between the plan and your yes (someone edited them meanwhile), so nothing was approved or written. Run the command again. |
1139
- | `consent_declined` | You did not type yes. The job stays planned and unapproved; nothing was changed. |
1139
+ | `consent_declined` | You did not type yes. The job stays planned and unapproved (for `consent grant`, no consent is recorded); nothing was changed. |
1140
+ | `track_upgraded` | Google refused Google Groups on the track (403: Play Console upgraded it to open or closed testing). Use the pool's custom track, `--track himi-pool` (the default), which `pool-add` creates. Nothing was changed. |
1140
1141
  | `job_failed` | The gplay job failed or did not read back; `jobId` and `status` say where it stopped (`gplay-node jobs show <jobId>`). |
1141
1142
 
1142
1143
  ## `himi store google keygen|resign` codes
@@ -368,7 +368,7 @@ himi store relops pool end --app <app id> --site <msid>
368
368
  ```
369
369
 
370
370
  - `add` puts the app on the pool, using the package name saved for the site's app (never one typed on the command
371
- line), and prints **your one step**: add the pool's Google Group to the testers of the closed track `alpha`, with
371
+ line), and prints **your one step**: add the pool's Google Group to the testers of the pool's custom closed track `himi-pool`, with
372
372
  `himi store google testers pool-add` (below) or by hand in Play Console. The phones opt in after that.
373
373
  - `status` shows how many phones installed the app (out of 12), which day of 14 it is, and the entry's state.
374
374
  - `end` stops the test and prints **your step**: remove the pool's Google Group from the track, with
@@ -387,11 +387,20 @@ Your steps, on your own computer and with your own Google sign-in (a RelOps seat
387
387
 
388
388
  ```
389
389
  export HIMI_POOL_TESTER_GROUP=<the pool group address RelOps gives you>
390
- himi store google testers pool-add [--dir <app>] [--track alpha]
391
- himi store google testers pool-check [--dir <app>] [--track alpha]
392
- himi store google testers pool-remove [--dir <app>] [--track alpha]
390
+ himi store google testers pool-add [--dir <app>] [--track himi-pool]
391
+ himi store google testers pool-check [--dir <app>] [--track himi-pool]
392
+ himi store google testers pool-remove [--dir <app>] [--track himi-pool]
393
+ himi store google testers consent grant|revoke|status [--dir <app>]
393
394
  ```
394
395
 
396
+ - The pool uses its own custom closed track, `himi-pool`. `pool-add` creates it when it is missing (the plan shows
397
+ the create). A built-in track such as `alpha` that Play Console upgraded to its new open/closed testing refuses
398
+ Google Groups through the API; that is reported as `track_upgraded`, and the remedy is the `himi-pool` track.
399
+ - `consent grant` records your typed `yes` for 90 days (package, developer account, pool group, track) in gplay-node's
400
+ state dir. While it holds and matches the package and pool group, `pool-add` and `pool-remove` apply without asking
401
+ (the job is still planned, checked, approved as you and logged) and print `consent: <when you granted it>`.
402
+ `consent revoke` deletes it and `consent status` shows it. Expired or not matching: the prompt as before.
403
+
395
404
  - `pool-add` reads the track's Google Groups, plans a `gplay.closedTest.setup` job with the same groups plus the pool's,
396
405
  shows you the change and applies it only after your typed `yes` (there is no `--yes`). Then it reads the track back.
397
406
  - `pool-remove` does the same with the pool's group taken out. Every other group you have stays. If the pool's group is
@@ -86,6 +86,14 @@ A binary baked `providerId: "none"` (a `himi dist` build of a release declaring
86
86
  - Gradle: add the `:himalaya-wix-auth` module (settings + `implementation(project(":himalaya-wix-auth"))`).
87
87
  - In `Application.onCreate()`: `HimalayaWixAuth.register()` **before** `TemplateAuth.boot(applicationContext)`
88
88
  (which reads `assets/auth.json`, instantiates via the registry, and `gate.bind(provider, scope)`).
89
+ - **Keep the session across relaunch** — also before `TemplateAuth.boot`:
90
+ - `WixAuthSession.attach(applicationContext)`. Without it the provider's stored session lives in memory and
91
+ every relaunch signs the user out (member and owner alike).
92
+ - Owner or account mode (`wix-native` `mode: owner|account`): the session **is** the process jar's cookies,
93
+ so install a persisted jar —
94
+ `CookieHandler.setDefault(WixAccountCookieJar.persistent(applicationContext, "<app>_account_jar", "<applicationId>.accountJar"))`.
95
+ A plain `CookieManager` keeps the user "signed in" after a relaunch with no cookies: every owner call
96
+ answers 401 and the user is signed out. Keep both names fixed from one release to the next.
89
97
  - The root composition calls the core `AuthGateRoot(gate, required, gateScreen, content)` with
90
98
  `TemplateAuth.gate` + `TemplateAuth.required` — the stock `AuthGateScreen` or the app's own gate screen.
91
99
  - Bind the transport where you make Wix calls: `WixApiCapability(authProvider = provider)`.
@@ -224,6 +232,13 @@ own login, which only exists in front of a local dev server — a hosted preview
224
232
  seam at all (§Web).
225
233
  Never type real credentials into a login form (Argus rule) — inject.
226
234
 
235
+ An injected session survives a relaunch (the next launch has no launch argument): iOS keeps the jar in
236
+ `UserDefaults`, Android in the persisted account jar above. So does a real sign-in on an **unsigned iOS
237
+ simulator build** (`npm run install:sim`, `CODE_SIGNING_ALLOWED=NO`): such a build has no keychain
238
+ entitlement, so `ScopedKeychain` keeps its generic-password items in a plain file in the app's container
239
+ instead. That fallback is compiled into simulator builds only (`targetEnvironment(simulator)`); device and
240
+ Mac builds always use the real Keychain.
241
+
227
242
  ## Verify
228
243
 
229
244
  Drive the app on the surface(s) it ships to (iOS sim / Android emulator / macOS window; web via the bridge) with Argus:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1765.0",
3
+ "version": "0.1767.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": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "5b378df33a62de7e533018e100abfbda9e56b77a7b60237203793197"
85
+ "falconPackageHash": "25fa857d3dad9405c8c44da532e936a3ed8cae5ff640b50a7c1f22a9"
86
86
  }