@wix/himalaya-cli 0.1726.0 → 0.1728.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.
Files changed (34) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/barcode-detection/src/index.d.ts +39 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/image-labeling/src/index.d.ts +32 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +4 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-recognition/src/index.d.ts +43 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +6 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +1 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +3 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/barcode-detection.mjs +36 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +3 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +3 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +3 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +3 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/image-labeling.mjs +37 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +3 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +3 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +3 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +3 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +3 -0
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-recognition.mjs +41 -0
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +12 -0
  21. package/dist/browser-plane/assets.json +5 -5
  22. package/dist/browser-plane/preview-deferred/{2df92277f550d6bf34ff43d15ae4a9082d012643a6bff39bd78724115505b716.bin → ec5d778f3e7ecbc2351ab7a8f3509483b798094de9f889fe8b03447db1413cb6.bin} +1 -1
  23. package/dist/browser-plane/sw.js +6 -6
  24. package/dist/cli.mjs +375 -89
  25. package/dist/preview-assets.generated.bin +0 -0
  26. package/guides/app-config.md +1 -1
  27. package/guides/capabilities.md +3 -0
  28. package/guides/himi-test.md +4 -2
  29. package/guides/importable-sdks.md +3 -0
  30. package/guides/qa-builds.md +104 -1
  31. package/guides/sdk-reference.json +210 -0
  32. package/guides/tier-5-add-a-screen.md +18 -0
  33. package/guides/web-page-sdk-reference.md +3 -0
  34. package/package.json +2 -2
Binary file
@@ -137,7 +137,7 @@ does not include answers `module_not_linked` on device. Some components need one
137
137
  and `himi validate` errors on a screen that uses one the app does not declare.
138
138
  `presigned_upload.putFile` also requires `files` on the calling screen.
139
139
 
140
- App-level capability vocabulary: `camera`, `barcode_scanner`, `biometrics`, `secure_storage`, `share`, `push`, `file_picker`, `files`, `open_url`, `pdf`, `clipboard`, `theme`, `l10n`, `photos`, `presigned_upload`, `ui`, `calendar`, `contacts`, `tasks`, `audio_record`, `audio_record_background`, `calls`, `location`, `location_background`, `motion`, `health`, `media_playback`, `webview`, `browser_auth`, `haptic`, `himi_apps`, `iap`, `keyboard`, `torch`, `network`, `wix_cashier`, `wix_chat`, `live_activity`, `local_database`, `speech`, `speaker_diarization`, `system_intents`, `on_device_ai`, `app_info`, `release_control`, `legacy_import`, `godot`, `base44`, `animation`, `video_playback`.
140
+ App-level capability vocabulary: `camera`, `barcode_scanner`, `biometrics`, `secure_storage`, `share`, `push`, `file_picker`, `files`, `open_url`, `pdf`, `clipboard`, `theme`, `l10n`, `photos`, `presigned_upload`, `ui`, `calendar`, `contacts`, `tasks`, `audio_record`, `audio_record_background`, `calls`, `location`, `location_background`, `motion`, `health`, `media_playback`, `webview`, `browser_auth`, `haptic`, `himi_apps`, `iap`, `keyboard`, `torch`, `network`, `wix_cashier`, `wix_chat`, `live_activity`, `local_database`, `speech`, `speaker_diarization`, `system_intents`, `on_device_ai`, `text_recognition`, `image_labeling`, `barcode_detection`, `app_info`, `release_control`, `legacy_import`, `godot`, `base44`, `animation`, `video_playback`.
141
141
 
142
142
  ## What `himi validate` checks (7 passes)
143
143
 
@@ -304,6 +304,7 @@ binary carries neither the code nor the store-review footprint of a framework it
304
304
  |---|---|
305
305
  | animation | `animation` |
306
306
  | audio (iOS) | `audio_record`, `audio_record_background` |
307
+ | barcode_detection | `barcode_detection` |
307
308
  | base44 | `base44` |
308
309
  | biometrics | `biometrics` |
309
310
  | calendar | `calendar` |
@@ -312,6 +313,7 @@ binary carries neither the code nor the store-review footprint of a framework it
312
313
  | godot | `godot` |
313
314
  | health | `health` |
314
315
  | iap | `iap` (and `wix_cashier` on iOS) |
316
+ | image_labeling | `image_labeling` |
315
317
  | live_activity | `live_activity` |
316
318
  | location | `location`, `location_background` |
317
319
  | location_background | `location_background` |
@@ -321,6 +323,7 @@ binary carries neither the code nor the store-review footprint of a framework it
321
323
  | push | `push` |
322
324
  | speech (iOS) | `speech` |
323
325
  | tasks (iOS) | `tasks` |
326
+ | text_recognition | `text_recognition` |
324
327
 
325
328
  What that means for a worker:
326
329
 
@@ -193,8 +193,9 @@ parameters. Pair dynamic journeys with app-specific `dev/net-mocks.json` fixture
193
193
  ### Prove a local mutation survives a cold visit
194
194
 
195
195
  A success message proves only the current screen's outcome. It does not prove that another
196
- screen can read the saved record. Add `coldVisits` to a typed journey when the approved flow
197
- requires another screen worker to read a created, edited or removed authoritative local record:
196
+ screen can read the saved record. Add `coldVisits` to a typed journey for every record the user
197
+ can create, edit or remove that another screen shows: visit each of those screens and assert the
198
+ changed value there. Without it, a change that stays in one screen's worker passes every other check:
198
199
 
199
200
  ```json
200
201
  {
@@ -281,6 +282,7 @@ Only **unambiguous** defects, so a green run stays worth trusting:
281
282
  |---|---|---|
282
283
  | `worker-threw` | error | Anything that throws — boot, `load()`, or a dispatched action. The dominant crash class. |
283
284
  | `settles-off-loading` | error | Still on `loading` / `isLoading` after settling — stuck on the skeleton forever. |
285
+ | `edge-shows-error-state` | error | Opened with the input a row of another screen really sends, the screen settles with no service reporting an error and still shows its `ErrorState`. The record exists, so the error state is wrong: usually an inverted `hiddenPath` (it hides its node when the value is truthy), or a detail that looks the id up in a different store than the list read it from. Checked on edge boots only; a cold visit may assert a missing id on purpose. |
284
286
  | `non-finite-number` | error | `NaN` / `Infinity` in worker state — the wrong-total / missing-operand reducer bug. Read live, before the JSON trip to the host flattens it to `null`. On device it renders as an **empty** label, not the text "NaN". |
285
287
  | `placeholder-in-text` | error | `undefined`, `null`, `NaN`, `[object Object]` or a JSON blob rendered as visible text. |
286
288
  | `unsubstituted-binding` | error | A raw `$service:` / `$item` token, or an unresolved `$t:` i18n key, reaching visible text. A whole-value `$t:` key that the app's own catalog (`l10n/<default locale>.json`) answers is substituted: a worker may keep one in its state for the renderer to translate. A key the catalog lacks, one inside prose, or the `$`-stripped `t:key` form still fails. |
@@ -17,6 +17,7 @@ package in one greppable file) or `GET /v1/sdk/<name>` over HTTP; in the CLI,
17
17
  - `@himalaya/app-info` — Tier-5 typed binding for this app's OWN build + OTA metadata, and the device it runs on.
18
18
  - `@himalaya/audio-record` — Tier-5 typed binding for microphone recording.
19
19
  - `@himalaya/auth` — —
20
+ - `@himalaya/barcode-detection` — Tier-5 typed binding for ON-DEVICE barcode / QR detection in a STILL image.
20
21
  - `@himalaya/base44` — Tier-5 typed binding for a Base44 app's backend.
21
22
  - `@himalaya/biometrics` — Tier-5 typed binding to the platform's biometric authentication capability.
22
23
  - `@himalaya/browser-auth` — Tier-5 typed binding for native browser SSO.
@@ -37,6 +38,7 @@ package in one greppable file) or `GET /v1/sdk/<name>` over HTTP; in the CLI,
37
38
  - `@himalaya/himi-apps` — Tier-5 typed binding for cross-app open / host queries.
38
39
  - `@himalaya/iap` — Tier-5 typed binding to the platform's in-app-purchase capability.
39
40
  - `@himalaya/iap-checkout` — @wix/himalaya/iap-checkout — the ONE shared flow that sells a digital Wix item through the App Store, for any screen: mobile-apps-wix-iap's payment, the managed StoreKit purchase and the vertical's own access read.
41
+ - `@himalaya/image-labeling` — Tier-5 typed binding for ON-DEVICE image labelling.
40
42
  - `@himalaya/keyboard` — Tier-5 typed binding for the platform's keyboard capability.
41
43
  - `@himalaya/kyber-api` — narrow Tier-5 binding for Kyber BO HTTP calls.
42
44
  - `@himalaya/l10n` — synchronous app-catalog copy (SDK foundation; requires host integration).
@@ -62,6 +64,7 @@ package in one greppable file) or `GET /v1/sdk/<name>` over HTTP; in the CLI,
62
64
  - `@himalaya/speech` — Tier-5 typed binding to the platform's speech capability.
63
65
  - `@himalaya/system-intents` — Tier-5 typed binding to the platform's system-intents capability.
64
66
  - `@himalaya/tasks` — Tier-5 typed binding for reminders / to-dos.
67
+ - `@himalaya/text-recognition` — Tier-5 typed binding for ON-DEVICE text recognition (OCR).
65
68
  - `@himalaya/theme` — Tier-5 typed binding for the runtime brand overlay.
66
69
  - `@himalaya/time` — Tier-5 temporal helpers.
67
70
  - `@himalaya/torch` — Tier-5 typed binding for the platform's torch (the camera flashlight).
@@ -35,11 +35,114 @@ himi testflight himi-player --provider wix-mobile-release \
35
35
  This submits `destination: testflight`. The pool produces an IPA in the MRE-approved
36
36
  `wix-ios-app-builds` bucket; deployed serve then invokes MRE using its POCO service
37
37
  identity and persists the MRE request ID/status on the same Job Service record. It
38
- accepts only the `himi-player` app, `player` shell, iOS, and its own bundle identity.
38
+ accepts only the `himi-player` app, `player` shell, iOS, and its own bundle identity — or an
39
+ allow-listed adopted store app under its adopted identity (next section).
39
40
  The customer BYO path below also uses `destination: testflight`, but it uploads through
40
41
  an authorized `himi dist status` read rather than MRE. The ordinary `himi dist` path
41
42
  keeps `destination: link` and remains the QA path for Himi distribution apps.
42
43
 
44
+ ### An adopted store app: allow-listed TestFlight and Google Play internal lanes
45
+
46
+ An app that **is** an existing store app — it declares `store: { adopt: { … } }` in its
47
+ `config.ts` — can get an internal TestFlight build through MRE and a Google Play
48
+ internal-track build from the same pipeline. These builds ship under the live listing's bundle id
49
+ and applicationId, so on a tester's device they **replace the real app**. That is why the
50
+ authority is operator config, and why each build is checked twice before a Mac is allocated.
51
+
52
+ **1. The allow-list (operator).** The operator setting `HIMI_DIST_STORE_ADOPT` is the only authority:
53
+
54
+ ```json
55
+ { "<app>": { "ios": "<bundleId>", "team": "<teamId>", "android": "<applicationId>", "androidSigning": "wix-keystore" } }
56
+ ```
57
+
58
+ Unset means no app. A malformed value — bad JSON, an unknown key, an id Apple or Google would
59
+ not accept, `androidSigning` other than `wix-keystore` — also means no app, logged once. `ios`
60
+ needs `team`, and `android` needs `androidSigning`. Nothing in a request can widen it.
61
+
62
+ **2. The app's own config.** The plane reads `apps/<app>/config.ts` **at the commit the pool will
63
+ build** (through GitHub with `HIMI_DIST_GITHUB_TOKEN`) with the same literal reader the native-config
64
+ generator uses. Its `store.adopt` must equal the allow-list entry for the platform being built.
65
+
66
+ **3. Who builds, and from which commit.** Only the operator credential (the static control token: scope `*`,
67
+ no role, not a token issued by `himi login`) can start an adopted build, because the binary is signed under Wix's own store identity. Any
68
+ other caller is refused with `store_adopt_internal_only`: a self-serve login, a Release Operations login,
69
+ and any token issued by `himi login`, whatever its scope. The release must also be **merged**: both the commit the pool
70
+ builds and the commit the release was pushed from must be on `master`. A release pushed from an unmerged
71
+ branch, or from outside the repo, is refused with `store_adopt_unmerged`. The binary's native code always
72
+ comes from the commit the pool builds, which is checked on GitHub. The push commit is what the release
73
+ recorded when it was published, so it catches a release published from a branch by mistake. It cannot
74
+ prove where release content came from: that content is published by whoever may publish the app, as
75
+ with any over-the-air release.
76
+
77
+ ```bash
78
+ # Internal TestFlight through MRE: the app's own shell, under the adopted bundle id and team
79
+ himi dist --app <app> --platform ios --destination testflight --version 2.0.0 --release <id>
80
+
81
+ # Google Play internal track: a release App Bundle signed with the allow-listed key
82
+ himi dist --app <app> --platform android --destination play-internal --release <id>
83
+ ```
84
+
85
+ - **TestFlight** builds the app's own tree (`apps/<app>`), not the Player. The archive, the contract and
86
+ the minted App Store profile all use the adopted bundle id. The profile carries the adopted App Groups
87
+ and associated domains, and each embedded extension signs the listing's own extension id. Only the
88
+ extensions `store.adopt.iosExtensionBundleIds` maps are signed, so list every extension the listing
89
+ ships there, each suffix to its full id, such as `widgets: "<bundle id>.widgets"`. An adopted build that
90
+ ships an unmapped extension fails before anything is signed. It is never built with its extensions
91
+ stripped, because it replaces the live app on testers' devices. The minted
92
+ profile's team must be the allow-listed `team`. The pool writes the listing's App Groups, associated
93
+ domains and extension ids from `config.ts` into the App Store export and keeps the App Groups, which
94
+ ordinary QA builds strip. The IPA then goes to MRE as Player's does, with the release titled by the
95
+ app. The job record carries `adoptedStoreId`, which `himi dist status` prints.
96
+ - **play-internal** builds a release `.aab` under the adopted applicationId with the allow-listed
97
+ keystore, and `--version` becomes its versionName. When the pool reports the bundle, an
98
+ authenticated `himi dist status` read starts the upload in the background and answers at once
99
+ (`himi dist` keeps waiting until it settles). A claim whose read died is taken over after
100
+ 60 minutes. The taker first asks Play whether the bundle's versionCode is already uploaded, and records
101
+ the job uploaded if it is, so a bundle never ships twice. The upload
102
+ first checks the bundle's signing certificate against the listing's Play upload certificate, by uploading
103
+ to a fresh edit that is always **deleted** and never committed. Then it uploads to the **internal** track
104
+ and commits. The track is a constant in the uploader: no production, staged
105
+ rollout or other track can be reached, and nothing is ever sent for review. The bundle's certificate
106
+ fingerprint is recorded on the job, under `playInternal`.
107
+ - **Build numbers (H11c).** play-internal reads the highest versionCode the listing has used, on any
108
+ track or in any uploaded bundle, and builds at least one above it. If Play cannot answer, the build is
109
+ refused (`play_internal_floor_unavailable`) rather than numbered by the clock, because a versionCode on a
110
+ live listing can never be taken back. TestFlight passes `DIST_BUILD_FLOOR_IOS` when the plane is wired to
111
+ read App Store Connect. Otherwise both keep the derived number.
112
+
113
+ Play-internal needs `HIMI_DIST_PLAY_SERVICE_ACCOUNT`, a Google service-account JSON key with release
114
+ access to the listing. Without it, the destination answers `play_internal_unavailable`.
115
+
116
+ Both settings are JSON. On a deployed plane, store `HIMI_DIST_PLAY_SERVICE_ACCOUNT` and
117
+ `HIMI_DIST_STORE_ADOPT` **base64-encoded** on one line (`base64 < key.json | tr -d '\n'`, which works on macOS and Linux): the secret is substituted into a JSON
118
+ string after the config is generated, so a raw JSON value breaks the whole config. The plane decodes
119
+ either form, so a local `.env` can keep raw JSON.
120
+
121
+ | `code` | When |
122
+ |---|---|
123
+ | `store_adopt_mismatch` (409) | `store.adopt` in config.ts at the built commit differs from the allow-list. `mismatches[]` names each field with both values. An app whose config adopts nothing differs on every field |
124
+ | `store_adopt_unverifiable` (501) / `store_adopt_unreadable` (503) | the plane cannot read `config.ts` from git, it does not parse, or GitHub could not say whether a commit is on `master`. The build is refused, never built unchecked |
125
+ | `store_adopt_internal_only` (403) | the caller is not a static operator credential: a self-serve login, a Release Operations login, or any token `himi login` issued |
126
+ | `store_adopt_unmerged` (409) | the release was pushed from a commit that is not on `master`, or from outside the repo. Merge first, then publish from a `master` checkout and build that release |
127
+ | `release_predates_store_adopt` (409) | the release's commit has a build runner from before adopted builds, which would ship an ordinary QA binary under the listing's id. Publish a new release from `master` |
128
+ | `store_adopt_shell_required` (400) | an adopted build named a shell other than the app's own |
129
+ | `store_adopt_release_required` (400) | no release to take the commit from |
130
+ | `store_adopt_signing_unavailable` (501) | minted App Store signing is not configured |
131
+ | `store_adopt_team_mismatch` (502, signing route) | the minted App Store profile is on another team than the allow-listed one. This is an Apple-account change, not a retry |
132
+ | `play_internal_not_allowed` (403) | the app has no `android` entry on the allow-list |
133
+ | `play_internal_unavailable` (501) | no Play service account on this plane |
134
+ | `play_internal_floor_unavailable` (503) | Google Play could not report the listing's highest versionCode. Retry |
135
+ | `play_internal_counter_unavailable` | this plane's job store cannot reserve versionCodes atomically, so it will not number a build for a live listing |
136
+ | `play_internal_android_only` / `play_internal_requires_aab` / `play_internal_signing_mismatch` / `play_internal_incompatible_options` / `play_internal_version_invalid` (400) | iOS, `androidFormat: apk`, another keystore, `--signing`, or a version that is not one to three numbers on play-internal |
137
+ | `playInternal.errorCode: play_upload_cert_mismatch` | the bundle's certificate is not Play's upload certificate. Both fingerprints are on the record (`certSha256`/`certSha1`, `playExpected`), and the check edit was discarded |
138
+ | `playInternal.errorCode: play_internal_version_code_unverified` / `play_internal_version_code_mismatch` / `play_internal_artifact_unhashed` | the build did not report the versionCode reserved from Play, Play read a different one from the bundle, or the build reported no sha256. Nothing was committed |
139
+ | `playInternal.errorCode: play_version_code_taken` | another bundle already holds this build's versionCode on the listing. Build again for a new one |
140
+ | `playInternal.errorCode: play_upload_failed` / `play_internal_artifact_mismatch` / `play_bundle_signature_unreadable` | the upload failed, the downloaded bundle is not the one the pool reported, or it carries no readable signature |
141
+
142
+ An app **not** on the allow-list keeps every answer it had before: `testflight_player_only`,
143
+ `testflight_player_shell_required`, `testflight_borrowed_ios_id_forbidden`, and `borrow_id_not_allowed`
144
+ for a store id.
145
+
43
146
  ### Customer App Store / TestFlight handoff
44
147
 
45
148
  For an owned app, the customer must authorize the selected site and provide the existing
@@ -517,6 +517,83 @@
517
517
  }
518
518
  ]
519
519
  },
520
+ {
521
+ "name": "@himalaya/barcode-detection",
522
+ "source": "core/sdk/barcode-detection/src/index.ts",
523
+ "description": "Tier-5 typed binding for ON-DEVICE barcode / QR detection in a STILL image.",
524
+ "api": [
525
+ {
526
+ "name": "ImageInput",
527
+ "kind": "type",
528
+ "jsdoc": "/** A file the worker holds: a FileHandle, or just its `uri` (+ `ownerScope`). */",
529
+ "decl": "export type ImageInput = FileHandle | { uri: string; ownerScope?: string };",
530
+ "verificationChecked": true
531
+ },
532
+ {
533
+ "name": "BarcodeFormat",
534
+ "kind": "type",
535
+ "jsdoc": "",
536
+ "decl": "export type BarcodeFormat =\n | \"qr\"\n | \"aztec\"\n | \"data_matrix\"\n | \"pdf417\"\n | \"ean13\"\n | \"ean8\"\n | \"upc_a\"\n | \"upc_e\"\n | \"code128\"\n | \"code39\"\n | \"code93\"\n | \"codabar\"\n | \"itf\"\n | \"unknown\";",
537
+ "verificationChecked": true
538
+ },
539
+ {
540
+ "name": "NormalizedBox",
541
+ "kind": "interface",
542
+ "jsdoc": "/** A rectangle normalised to 0..1 of the image's width / height, origin top-left. */",
543
+ "decl": "export interface NormalizedBox {\n x: number;\n y: number;\n width: number;\n height: number;\n}",
544
+ "verificationChecked": true
545
+ },
546
+ {
547
+ "name": "BarcodeDetectionAvailability",
548
+ "kind": "interface",
549
+ "jsdoc": "",
550
+ "decl": "export interface BarcodeDetectionAvailability {\n available: boolean;\n /** \"apple_vision\" | \"mlkit\" | \"barcode_detector\" when available. */\n engine?: string;\n reason?: string;\n}",
551
+ "verificationChecked": true
552
+ },
553
+ {
554
+ "name": "DetectOptions",
555
+ "kind": "interface",
556
+ "jsdoc": "",
557
+ "decl": "export interface DetectOptions {\n /** Only these formats (default: all). Narrowing speeds detection up. */\n formats?: BarcodeFormat[];\n}",
558
+ "verificationChecked": true
559
+ },
560
+ {
561
+ "name": "Barcode",
562
+ "kind": "interface",
563
+ "jsdoc": "",
564
+ "decl": "export interface Barcode {\n /** The decoded payload (a URL, a product number, a Wi-Fi config…). */\n value: string;\n format: BarcodeFormat;\n box: NormalizedBox;\n}",
565
+ "verificationChecked": true
566
+ },
567
+ {
568
+ "name": "DetectResult",
569
+ "kind": "interface",
570
+ "jsdoc": "",
571
+ "decl": "export interface DetectResult {\n barcodes: Barcode[];\n engine: string;\n}",
572
+ "verificationChecked": true
573
+ },
574
+ {
575
+ "name": "availability",
576
+ "kind": "function",
577
+ "jsdoc": "/** Whether on-device barcode detection is available on this device / host (spec R8). Never rejects. */",
578
+ "decl": "export async function availability(): Promise<BarcodeDetectionAvailability>;",
579
+ "verificationChecked": true
580
+ },
581
+ {
582
+ "name": "detect",
583
+ "kind": "function",
584
+ "jsdoc": "/** Find and decode the barcodes in an image the worker holds. Rejects when unavailable or the file is missing. */",
585
+ "decl": "export async function detect(image: ImageInput, opts: DetectOptions = {}): Promise<DetectResult>;",
586
+ "verificationChecked": true
587
+ },
588
+ {
589
+ "name": "version",
590
+ "kind": "const",
591
+ "jsdoc": "",
592
+ "decl": "export const version = 1;",
593
+ "verificationChecked": true
594
+ }
595
+ ]
596
+ },
520
597
  {
521
598
  "name": "@himalaya/base44",
522
599
  "source": "core/sdk/base44/src/index.ts",
@@ -3670,6 +3747,69 @@
3670
3747
  }
3671
3748
  ]
3672
3749
  },
3750
+ {
3751
+ "name": "@himalaya/image-labeling",
3752
+ "source": "core/sdk/image-labeling/src/index.ts",
3753
+ "description": "Tier-5 typed binding for ON-DEVICE image labelling.",
3754
+ "api": [
3755
+ {
3756
+ "name": "ImageInput",
3757
+ "kind": "type",
3758
+ "jsdoc": "/** A file the worker holds: a FileHandle, or just its `uri` (+ `ownerScope`). */",
3759
+ "decl": "export type ImageInput = FileHandle | { uri: string; ownerScope?: string };",
3760
+ "verificationChecked": true
3761
+ },
3762
+ {
3763
+ "name": "ImageLabelingAvailability",
3764
+ "kind": "interface",
3765
+ "jsdoc": "",
3766
+ "decl": "export interface ImageLabelingAvailability {\n available: boolean;\n /** \"apple_vision\" | \"mlkit\" when available. */\n engine?: string;\n reason?: string;\n}",
3767
+ "verificationChecked": true
3768
+ },
3769
+ {
3770
+ "name": "LabelOptions",
3771
+ "kind": "interface",
3772
+ "jsdoc": "",
3773
+ "decl": "export interface LabelOptions {\n /** Drop labels below this confidence (0..1). Default 0.5. */\n minConfidence?: number;\n /** At most this many labels. Default 10. */\n maxResults?: number;\n}",
3774
+ "verificationChecked": true
3775
+ },
3776
+ {
3777
+ "name": "ImageLabel",
3778
+ "kind": "interface",
3779
+ "jsdoc": "",
3780
+ "decl": "export interface ImageLabel {\n label: string;\n confidence: number;\n}",
3781
+ "verificationChecked": true
3782
+ },
3783
+ {
3784
+ "name": "LabelResult",
3785
+ "kind": "interface",
3786
+ "jsdoc": "",
3787
+ "decl": "export interface LabelResult {\n /** Most confident first. */\n labels: ImageLabel[];\n engine: string;\n}",
3788
+ "verificationChecked": true
3789
+ },
3790
+ {
3791
+ "name": "availability",
3792
+ "kind": "function",
3793
+ "jsdoc": "/** Whether on-device image labelling is available on this device / host (spec R8). Never rejects. */",
3794
+ "decl": "export async function availability(): Promise<ImageLabelingAvailability>;",
3795
+ "verificationChecked": true
3796
+ },
3797
+ {
3798
+ "name": "label",
3799
+ "kind": "function",
3800
+ "jsdoc": "/** Label an image the worker holds. Rejects when unavailable or the file is missing. */",
3801
+ "decl": "export async function label(image: ImageInput, opts: LabelOptions = {}): Promise<LabelResult>;",
3802
+ "verificationChecked": true
3803
+ },
3804
+ {
3805
+ "name": "version",
3806
+ "kind": "const",
3807
+ "jsdoc": "",
3808
+ "decl": "export const version = 1;",
3809
+ "verificationChecked": true
3810
+ }
3811
+ ]
3812
+ },
3673
3813
  {
3674
3814
  "name": "@himalaya/keyboard",
3675
3815
  "source": "core/sdk/keyboard/src/index.ts",
@@ -5910,6 +6050,76 @@
5910
6050
  }
5911
6051
  ]
5912
6052
  },
6053
+ {
6054
+ "name": "@himalaya/text-recognition",
6055
+ "source": "core/sdk/text-recognition/src/index.ts",
6056
+ "description": "Tier-5 typed binding for ON-DEVICE text recognition (OCR).",
6057
+ "api": [
6058
+ {
6059
+ "name": "ImageInput",
6060
+ "kind": "type",
6061
+ "jsdoc": "/** A file the worker holds: a FileHandle, or just its `uri` (+ `ownerScope`). */",
6062
+ "decl": "export type ImageInput = FileHandle | { uri: string; ownerScope?: string };",
6063
+ "verificationChecked": true
6064
+ },
6065
+ {
6066
+ "name": "NormalizedBox",
6067
+ "kind": "interface",
6068
+ "jsdoc": "/** A rectangle normalised to 0..1 of the image's width / height, origin top-left. */",
6069
+ "decl": "export interface NormalizedBox {\n x: number;\n y: number;\n width: number;\n height: number;\n}",
6070
+ "verificationChecked": true
6071
+ },
6072
+ {
6073
+ "name": "TextRecognitionAvailability",
6074
+ "kind": "interface",
6075
+ "jsdoc": "",
6076
+ "decl": "export interface TextRecognitionAvailability {\n available: boolean;\n /** \"apple_vision\" | \"mlkit\" when available. */\n engine?: string;\n /** Why it is unavailable (\"module_not_linked\", \"OCR is not available in this browser\", …). */\n reason?: string;\n}",
6077
+ "verificationChecked": true
6078
+ },
6079
+ {
6080
+ "name": "RecognizeOptions",
6081
+ "kind": "interface",
6082
+ "jsdoc": "",
6083
+ "decl": "export interface RecognizeOptions {\n /** BCP-47 language hints, most likely first (e.g. [\"en\", \"fr\"]). Engines may ignore them. */\n languages?: string[];\n /** \"accurate\" (default) or \"fast\". */\n level?: \"accurate\" | \"fast\";\n}",
6084
+ "verificationChecked": true
6085
+ },
6086
+ {
6087
+ "name": "TextBlock",
6088
+ "kind": "interface",
6089
+ "jsdoc": "",
6090
+ "decl": "export interface TextBlock {\n text: string;\n /** 0..1, absent when the engine reports none. */\n confidence?: number;\n box: NormalizedBox;\n}",
6091
+ "verificationChecked": true
6092
+ },
6093
+ {
6094
+ "name": "RecognizeResult",
6095
+ "kind": "interface",
6096
+ "jsdoc": "",
6097
+ "decl": "export interface RecognizeResult {\n /** Every block's text, joined by newlines in reading order. */\n text: string;\n blocks: TextBlock[];\n engine: string;\n}",
6098
+ "verificationChecked": true
6099
+ },
6100
+ {
6101
+ "name": "availability",
6102
+ "kind": "function",
6103
+ "jsdoc": "/** Whether on-device OCR is available on this device / host (spec R8). Never rejects. */",
6104
+ "decl": "export async function availability(): Promise<TextRecognitionAvailability>;",
6105
+ "verificationChecked": true
6106
+ },
6107
+ {
6108
+ "name": "recognize",
6109
+ "kind": "function",
6110
+ "jsdoc": "/** Recognise the text in an image the worker holds. Rejects when unavailable or the file is missing. */",
6111
+ "decl": "export async function recognize(image: ImageInput, opts: RecognizeOptions = {}): Promise<RecognizeResult>;",
6112
+ "verificationChecked": true
6113
+ },
6114
+ {
6115
+ "name": "version",
6116
+ "kind": "const",
6117
+ "jsdoc": "",
6118
+ "decl": "export const version = 1;",
6119
+ "verificationChecked": true
6120
+ }
6121
+ ]
6122
+ },
5913
6123
  {
5914
6124
  "name": "@himalaya/theme",
5915
6125
  "source": "core/sdk/theme/src/index.ts",
@@ -793,6 +793,11 @@ This works identically on web, iOS, and Android. (Regression-guarded by
793
793
  detail bundles for BOTH the primary `input.id` param and the back-compat
794
794
  `input.screenId` recovery.)
795
795
 
796
+ **The screen title is literal.** The bar shows `title` as written (or a `$t:` key, translated).
797
+ No host resolves a worker binding there, so `title: "$service:eventDetail.name"` shows that
798
+ raw token in the bar, and `himi validate` reports it (`screen_title_binding`). Give the detail a
799
+ literal title ("Event") and show the record's name as a heading `Text` in the body.
800
+
796
801
  **Prove the selected record, not just a successful build.** Each screen has its own worker,
797
802
  even when several screens name the same bundle and service. Setting a selected id in the list's
798
803
  service does not set the detail's state. Trace the tapped row id → navigation params →
@@ -1061,6 +1066,19 @@ the hand-off deliberately:
1061
1066
  Never author `$service:screenA.value` in screen B and expect screen A's worker to
1062
1067
  remain attached—the binding is unresolved by design. Bind `$app:<svc>.<path>` instead.
1063
1068
 
1069
+ **A record the user can change has one home, and every screen reads it from there.** When
1070
+ the user can create, edit, complete, favourite or move something, and another screen shows it
1071
+ (a list, a total, a chart, a search) or it should survive a reload, keep it in
1072
+ `@himalaya/local-db` (or the backend), never in a module constant or a service's initial
1073
+ state. A module constant is copied into every screen's worker: a change made on one screen
1074
+ stays in that worker, the other screens keep showing the seed, and a reload loses it. This
1075
+ holds for sample data too. Write the sample records into the store on first run, then read
1076
+ them from the store like real data. Every screen that shows the record reads the store in
1077
+ `load`, and again on its root `onAppear` when `appearReason` is `"return"` (see
1078
+ [Load data when the screen appears](#load-data-when-the-screen-appears-initial-load-hook)). Prove it with a journey whose `coldVisits` open
1079
+ each other screen that shows the record and assert the changed value there (`himi docs
1080
+ himi-test`, "Prove a local mutation survives a cold visit").
1081
+
1064
1082
  ### App services: state that outlives every screen
1065
1083
 
1066
1084
  An app service is a `defineService` in the app's one app-level bundle, which the shell
@@ -16,6 +16,7 @@ the SDK sources, so it matches the shipped SDKs.
16
16
 
17
17
  - [`app_info`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fapp_info?format=md) — This app's OWN build + OTA metadata, and the device it runs on. 2 methods · not in Brandy.
18
18
  - [`audio_record`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Faudio_record?format=md) — Microphone recording. 16 methods · returns FileHandles.
19
+ - [`barcode_detection`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbarcode_detection?format=md) — ON-DEVICE barcode / QR detection in a STILL image. 2 methods.
19
20
  - [`base44`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbase44?format=md) — A Base44 app's backend. 11 methods · Brandy: conditional.
20
21
  - [`biometrics`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbiometrics?format=md) — Biometric authentication capability. 2 methods.
21
22
  - [`browser_auth`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fbrowser_auth?format=md) — Native browser SSO. 1 method.
@@ -31,6 +32,7 @@ the SDK sources, so it matches the shipped SDKs.
31
32
  - [`health`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fhealth?format=md) — Platform HEALTH store. 5 methods.
32
33
  - [`himi_apps`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fhimi_apps?format=md) — Cross-app open / host queries. 4 methods · not in Brandy.
33
34
  - [`iap`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fiap?format=md) — In-app-purchase capability. 10 methods.
35
+ - [`image_labeling`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fimage_labeling?format=md) — ON-DEVICE image labelling. 2 methods.
34
36
  - [`keyboard`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fkeyboard?format=md) — Keyboard capability. 1 method.
35
37
  - [`legacy_import`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Flegacy_import?format=md) — One-time legacy import report. 3 methods · not in Brandy.
36
38
  - [`live_activity`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Flive_activity?format=md) — Live Activity capability. 3 methods · not in Brandy.
@@ -52,6 +54,7 @@ the SDK sources, so it matches the shipped SDKs.
52
54
  - [`speech`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fspeech?format=md) — Speech capability. 8 methods.
53
55
  - [`system_intents`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fsystem_intents?format=md) — System-intents capability. 2 methods · not in Brandy.
54
56
  - [`tasks`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftasks?format=md) — Reminders / to-dos. 7 methods.
57
+ - [`text_recognition`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftext_recognition?format=md) — ON-DEVICE text recognition (OCR). 2 methods.
55
58
  - [`theme`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftheme?format=md) — Runtime brand overlay. 2 methods.
56
59
  - [`torch`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftorch?format=md) — Torch (the camera flashlight). 4 methods.
57
60
  - [`ui`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fui?format=md) — Imperative popup capability. 2 methods · not in Brandy.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1726.0",
3
+ "version": "0.1728.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": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "71ae8d59e3a8ef13760a1760acd9ee95011ce21df2c747d6d3b9ea13"
84
+ "falconPackageHash": "1154f006d00ca8db78e45f16755e4a7ce8d5756950ed01565d76c03c"
85
85
  }