@wix/himalaya-cli 0.1727.0 → 0.1729.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 (62) 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/entity-extraction/src/index.d.ts +34 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/image-labeling/src/index.d.ts +32 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +7 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-embedding/src/index.d.ts +37 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-recognition/src/index.d.ts +43 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/translation/src/index.d.ts +51 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +12 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +6 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/barcode-detection.mjs +36 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +6 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +6 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +6 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +6 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/entity-extraction.mjs +38 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/image-labeling.mjs +37 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +6 -0
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +6 -0
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +6 -0
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +6 -0
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +6 -0
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-embedding.mjs +76 -0
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-recognition.mjs +41 -0
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/translation.mjs +66 -0
  26. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +24 -0
  27. package/dist/browser-plane/assets.json +5 -5
  28. package/dist/browser-plane/preview-deferred/{962f3ed94715c3a8d073254239901e2ffd5bb99015fd5d37ae36eaa0f0dce2be.bin → ad21c55bd7cec9a3951ff818f08792daab5d3698b7e54af1b1764499335604ea.bin} +1 -1
  29. package/dist/browser-plane/sw.js +6 -6
  30. package/dist/cli.mjs +531 -91
  31. package/dist/preview-assets.generated.bin +0 -0
  32. package/guides/app-config.md +1 -1
  33. package/guides/capabilities.md +6 -0
  34. package/guides/himi-test.md +4 -2
  35. package/guides/importable-sdks.md +6 -0
  36. package/guides/qa-builds.md +104 -1
  37. package/guides/release-notes.md +30 -0
  38. package/guides/sdk-reference.json +448 -0
  39. package/guides/tier-5-add-a-screen.md +18 -0
  40. package/guides/web-page-sdk-reference.md +6 -0
  41. package/package.json +2 -2
  42. package/templates/beauty-salon-owner/dev/index.ts +35 -0
  43. package/templates/branded-lite/dev/index.ts +16 -0
  44. package/templates/community-club/dev/index.ts +2 -0
  45. package/templates/community-club-owner/dev/index.ts +35 -0
  46. package/templates/conference/dev/index.ts +1 -0
  47. package/templates/events-meetups/dev/index.ts +2 -0
  48. package/templates/events-meetups-owner/dev/index.ts +31 -0
  49. package/templates/gym-fitness/dev/index.ts +1 -0
  50. package/templates/gym-fitness-owner/dev/index.ts +37 -0
  51. package/templates/nonprofit-cause/dev/index.ts +2 -0
  52. package/templates/nonprofit-cause-owner/dev/index.ts +33 -0
  53. package/templates/owner-lite/dev/index.ts +37 -0
  54. package/templates/podcast-creator/dev/index.ts +2 -0
  55. package/templates/podcast-creator-owner/dev/index.ts +35 -0
  56. package/templates/portfolio-creative/dev/index.ts +2 -0
  57. package/templates/portfolio-creative-owner/dev/index.ts +35 -0
  58. package/templates/restaurant/dev/index.ts +2 -0
  59. package/templates/restaurant-owner/dev/index.ts +37 -0
  60. package/templates/retail-store-owner/dev/index.ts +33 -0
  61. package/templates/yoga-studio/dev/index.ts +2 -0
  62. package/templates/yoga-studio-owner/dev/index.ts +33 -0
@@ -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",
@@ -1644,6 +1721,69 @@
1644
1721
  }
1645
1722
  ]
1646
1723
  },
1724
+ {
1725
+ "name": "@himalaya/entity-extraction",
1726
+ "source": "core/sdk/entity-extraction/src/index.ts",
1727
+ "description": "Tier-5 typed binding for ON-DEVICE entity extraction.",
1728
+ "api": [
1729
+ {
1730
+ "name": "EntityType",
1731
+ "kind": "type",
1732
+ "jsdoc": "",
1733
+ "decl": "export type EntityType =\n | \"date_time\"\n | \"address\"\n | \"phone\"\n | \"email\"\n | \"url\"\n | \"money\"\n | \"flight_number\"\n | \"tracking_number\"\n | \"iban\"\n | \"payment_card\"\n | \"isbn\"\n | \"person\"\n | \"place\"\n | \"organization\";",
1734
+ "verificationChecked": true
1735
+ },
1736
+ {
1737
+ "name": "EntityExtractionAvailability",
1738
+ "kind": "interface",
1739
+ "jsdoc": "",
1740
+ "decl": "export interface EntityExtractionAvailability {\n available: boolean;\n /** \"apple_natural_language\" | \"mlkit\" when available. */\n engine?: string;\n reason?: string;\n}",
1741
+ "verificationChecked": true
1742
+ },
1743
+ {
1744
+ "name": "ExtractOptions",
1745
+ "kind": "interface",
1746
+ "jsdoc": "",
1747
+ "decl": "export interface ExtractOptions {\n /** BCP-47 language of the text. Default \"en\". */\n language?: string;\n /** Only these types (default: all the engine supports). */\n types?: EntityType[];\n}",
1748
+ "verificationChecked": true
1749
+ },
1750
+ {
1751
+ "name": "Entity",
1752
+ "kind": "interface",
1753
+ "jsdoc": "",
1754
+ "decl": "export interface Entity {\n /** The entity as it appears in the text. */\n text: string;\n /** Start index into the input (inclusive). */\n start: number;\n /** End index into the input (exclusive). */\n end: number;\n type: EntityType;\n /** A normalised form when the engine has one — ISO-8601 for date_time, the URL for url, … */\n value?: string;\n}",
1755
+ "verificationChecked": true
1756
+ },
1757
+ {
1758
+ "name": "ExtractResult",
1759
+ "kind": "interface",
1760
+ "jsdoc": "",
1761
+ "decl": "export interface ExtractResult {\n /** In order of appearance. */\n entities: Entity[];\n engine: string;\n}",
1762
+ "verificationChecked": true
1763
+ },
1764
+ {
1765
+ "name": "availability",
1766
+ "kind": "function",
1767
+ "jsdoc": "/** Whether on-device entity extraction is available for a language (default \"en\"). Never rejects. */",
1768
+ "decl": "export async function availability(language?: string): Promise<EntityExtractionAvailability>;",
1769
+ "verificationChecked": true
1770
+ },
1771
+ {
1772
+ "name": "extract",
1773
+ "kind": "function",
1774
+ "jsdoc": "/** Extract entities from text on device. Rejects when unavailable. */",
1775
+ "decl": "export async function extract(text: string, opts: ExtractOptions = {}): Promise<ExtractResult>;",
1776
+ "verificationChecked": true
1777
+ },
1778
+ {
1779
+ "name": "version",
1780
+ "kind": "const",
1781
+ "jsdoc": "",
1782
+ "decl": "export const version = 1;",
1783
+ "verificationChecked": true
1784
+ }
1785
+ ]
1786
+ },
1647
1787
  {
1648
1788
  "name": "@himalaya/file-picker",
1649
1789
  "source": "core/sdk/file-picker/src/index.ts",
@@ -3670,6 +3810,69 @@
3670
3810
  }
3671
3811
  ]
3672
3812
  },
3813
+ {
3814
+ "name": "@himalaya/image-labeling",
3815
+ "source": "core/sdk/image-labeling/src/index.ts",
3816
+ "description": "Tier-5 typed binding for ON-DEVICE image labelling.",
3817
+ "api": [
3818
+ {
3819
+ "name": "ImageInput",
3820
+ "kind": "type",
3821
+ "jsdoc": "/** A file the worker holds: a FileHandle, or just its `uri` (+ `ownerScope`). */",
3822
+ "decl": "export type ImageInput = FileHandle | { uri: string; ownerScope?: string };",
3823
+ "verificationChecked": true
3824
+ },
3825
+ {
3826
+ "name": "ImageLabelingAvailability",
3827
+ "kind": "interface",
3828
+ "jsdoc": "",
3829
+ "decl": "export interface ImageLabelingAvailability {\n available: boolean;\n /** \"apple_vision\" | \"mlkit\" when available. */\n engine?: string;\n reason?: string;\n}",
3830
+ "verificationChecked": true
3831
+ },
3832
+ {
3833
+ "name": "LabelOptions",
3834
+ "kind": "interface",
3835
+ "jsdoc": "",
3836
+ "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}",
3837
+ "verificationChecked": true
3838
+ },
3839
+ {
3840
+ "name": "ImageLabel",
3841
+ "kind": "interface",
3842
+ "jsdoc": "",
3843
+ "decl": "export interface ImageLabel {\n label: string;\n confidence: number;\n}",
3844
+ "verificationChecked": true
3845
+ },
3846
+ {
3847
+ "name": "LabelResult",
3848
+ "kind": "interface",
3849
+ "jsdoc": "",
3850
+ "decl": "export interface LabelResult {\n /** Most confident first. */\n labels: ImageLabel[];\n engine: string;\n}",
3851
+ "verificationChecked": true
3852
+ },
3853
+ {
3854
+ "name": "availability",
3855
+ "kind": "function",
3856
+ "jsdoc": "/** Whether on-device image labelling is available on this device / host (spec R8). Never rejects. */",
3857
+ "decl": "export async function availability(): Promise<ImageLabelingAvailability>;",
3858
+ "verificationChecked": true
3859
+ },
3860
+ {
3861
+ "name": "label",
3862
+ "kind": "function",
3863
+ "jsdoc": "/** Label an image the worker holds. Rejects when unavailable or the file is missing. */",
3864
+ "decl": "export async function label(image: ImageInput, opts: LabelOptions = {}): Promise<LabelResult>;",
3865
+ "verificationChecked": true
3866
+ },
3867
+ {
3868
+ "name": "version",
3869
+ "kind": "const",
3870
+ "jsdoc": "",
3871
+ "decl": "export const version = 1;",
3872
+ "verificationChecked": true
3873
+ }
3874
+ ]
3875
+ },
3673
3876
  {
3674
3877
  "name": "@himalaya/keyboard",
3675
3878
  "source": "core/sdk/keyboard/src/index.ts",
@@ -5910,6 +6113,146 @@
5910
6113
  }
5911
6114
  ]
5912
6115
  },
6116
+ {
6117
+ "name": "@himalaya/text-embedding",
6118
+ "source": "core/sdk/text-embedding/src/index.ts",
6119
+ "description": "Tier-5 typed binding for ON-DEVICE sentence embeddings.",
6120
+ "api": [
6121
+ {
6122
+ "name": "MAX_TEXTS_PER_CALL",
6123
+ "kind": "const",
6124
+ "jsdoc": "/** The most texts one `embed` call takes. */",
6125
+ "decl": "export const MAX_TEXTS_PER_CALL = 64;",
6126
+ "verificationChecked": true
6127
+ },
6128
+ {
6129
+ "name": "TextEmbeddingAvailability",
6130
+ "kind": "interface",
6131
+ "jsdoc": "",
6132
+ "decl": "export interface TextEmbeddingAvailability {\n available: boolean;\n /** \"apple_natural_language\" | \"mediapipe\" when available. */\n engine?: string;\n /** Vector length, when known. */\n dimensions?: number;\n /** Why it is unavailable — on Android, also while the model is still downloading. */\n reason?: string;\n}",
6133
+ "verificationChecked": true
6134
+ },
6135
+ {
6136
+ "name": "EmbedResult",
6137
+ "kind": "interface",
6138
+ "jsdoc": "",
6139
+ "decl": "export interface EmbedResult {\n /** One vector per input text, in the same order. */\n vectors: number[][];\n dimensions: number;\n engine: string;\n}",
6140
+ "verificationChecked": true
6141
+ },
6142
+ {
6143
+ "name": "RankedText",
6144
+ "kind": "interface",
6145
+ "jsdoc": "",
6146
+ "decl": "export interface RankedText {\n text: string;\n /** Index of the text in the input array. */\n index: number;\n /** Cosine similarity to the query, -1..1. */\n score: number;\n}",
6147
+ "verificationChecked": true
6148
+ },
6149
+ {
6150
+ "name": "availability",
6151
+ "kind": "function",
6152
+ "jsdoc": "/** Whether on-device embeddings are available for a language (default \"en\"). Never rejects. */",
6153
+ "decl": "export async function availability(language?: string): Promise<TextEmbeddingAvailability>;",
6154
+ "verificationChecked": true
6155
+ },
6156
+ {
6157
+ "name": "embed",
6158
+ "kind": "function",
6159
+ "jsdoc": "/** Embed up to {@link MAX_TEXTS_PER_CALL} texts on device. Rejects when unavailable. */",
6160
+ "decl": "export async function embed(texts: string[], opts: { language?: string } = {}): Promise<EmbedResult>;",
6161
+ "verificationChecked": true
6162
+ },
6163
+ {
6164
+ "name": "cosineSimilarity",
6165
+ "kind": "function",
6166
+ "jsdoc": "/** Cosine similarity of two vectors (-1..1); 0 when either is empty or zero or their lengths differ. */",
6167
+ "decl": "export function cosineSimilarity(a: readonly number[], b: readonly number[]): number;",
6168
+ "verificationChecked": true
6169
+ },
6170
+ {
6171
+ "name": "rank",
6172
+ "kind": "function",
6173
+ "jsdoc": "/** Rank `candidates` by semantic similarity to `query`, most similar first. Embeds in batches. */",
6174
+ "decl": "export async function rank(query: string, candidates: string[], opts: { language?: string } = {}): Promise<RankedText[]>;",
6175
+ "verificationChecked": true
6176
+ },
6177
+ {
6178
+ "name": "version",
6179
+ "kind": "const",
6180
+ "jsdoc": "",
6181
+ "decl": "export const version = 1;",
6182
+ "verificationChecked": true
6183
+ }
6184
+ ]
6185
+ },
6186
+ {
6187
+ "name": "@himalaya/text-recognition",
6188
+ "source": "core/sdk/text-recognition/src/index.ts",
6189
+ "description": "Tier-5 typed binding for ON-DEVICE text recognition (OCR).",
6190
+ "api": [
6191
+ {
6192
+ "name": "ImageInput",
6193
+ "kind": "type",
6194
+ "jsdoc": "/** A file the worker holds: a FileHandle, or just its `uri` (+ `ownerScope`). */",
6195
+ "decl": "export type ImageInput = FileHandle | { uri: string; ownerScope?: string };",
6196
+ "verificationChecked": true
6197
+ },
6198
+ {
6199
+ "name": "NormalizedBox",
6200
+ "kind": "interface",
6201
+ "jsdoc": "/** A rectangle normalised to 0..1 of the image's width / height, origin top-left. */",
6202
+ "decl": "export interface NormalizedBox {\n x: number;\n y: number;\n width: number;\n height: number;\n}",
6203
+ "verificationChecked": true
6204
+ },
6205
+ {
6206
+ "name": "TextRecognitionAvailability",
6207
+ "kind": "interface",
6208
+ "jsdoc": "",
6209
+ "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}",
6210
+ "verificationChecked": true
6211
+ },
6212
+ {
6213
+ "name": "RecognizeOptions",
6214
+ "kind": "interface",
6215
+ "jsdoc": "",
6216
+ "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}",
6217
+ "verificationChecked": true
6218
+ },
6219
+ {
6220
+ "name": "TextBlock",
6221
+ "kind": "interface",
6222
+ "jsdoc": "",
6223
+ "decl": "export interface TextBlock {\n text: string;\n /** 0..1, absent when the engine reports none. */\n confidence?: number;\n box: NormalizedBox;\n}",
6224
+ "verificationChecked": true
6225
+ },
6226
+ {
6227
+ "name": "RecognizeResult",
6228
+ "kind": "interface",
6229
+ "jsdoc": "",
6230
+ "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}",
6231
+ "verificationChecked": true
6232
+ },
6233
+ {
6234
+ "name": "availability",
6235
+ "kind": "function",
6236
+ "jsdoc": "/** Whether on-device OCR is available on this device / host (spec R8). Never rejects. */",
6237
+ "decl": "export async function availability(): Promise<TextRecognitionAvailability>;",
6238
+ "verificationChecked": true
6239
+ },
6240
+ {
6241
+ "name": "recognize",
6242
+ "kind": "function",
6243
+ "jsdoc": "/** Recognise the text in an image the worker holds. Rejects when unavailable or the file is missing. */",
6244
+ "decl": "export async function recognize(image: ImageInput, opts: RecognizeOptions = {}): Promise<RecognizeResult>;",
6245
+ "verificationChecked": true
6246
+ },
6247
+ {
6248
+ "name": "version",
6249
+ "kind": "const",
6250
+ "jsdoc": "",
6251
+ "decl": "export const version = 1;",
6252
+ "verificationChecked": true
6253
+ }
6254
+ ]
6255
+ },
5913
6256
  {
5914
6257
  "name": "@himalaya/theme",
5915
6258
  "source": "core/sdk/theme/src/index.ts",
@@ -6239,6 +6582,111 @@
6239
6582
  }
6240
6583
  ]
6241
6584
  },
6585
+ {
6586
+ "name": "@himalaya/translation",
6587
+ "source": "core/sdk/translation/src/index.ts",
6588
+ "description": "Tier-5 typed binding for ON-DEVICE language identification and translation.",
6589
+ "api": [
6590
+ {
6591
+ "name": "PairStatus",
6592
+ "kind": "type",
6593
+ "jsdoc": "",
6594
+ "decl": "export type PairStatus = \"installed\" | \"downloadable\" | \"unsupported\";",
6595
+ "verificationChecked": true
6596
+ },
6597
+ {
6598
+ "name": "TranslationAvailability",
6599
+ "kind": "interface",
6600
+ "jsdoc": "",
6601
+ "decl": "export interface TranslationAvailability {\n available: boolean;\n /** \"apple_translation\" | \"mlkit\" | \"chrome_built_in\" when available. */\n engine?: string;\n reason?: string;\n}",
6602
+ "verificationChecked": true
6603
+ },
6604
+ {
6605
+ "name": "PairAvailability",
6606
+ "kind": "interface",
6607
+ "jsdoc": "",
6608
+ "decl": "export interface PairAvailability extends TranslationAvailability {\n status: PairStatus;\n}",
6609
+ "verificationChecked": true
6610
+ },
6611
+ {
6612
+ "name": "LanguageCandidate",
6613
+ "kind": "interface",
6614
+ "jsdoc": "",
6615
+ "decl": "export interface LanguageCandidate {\n language: string;\n confidence: number;\n}",
6616
+ "verificationChecked": true
6617
+ },
6618
+ {
6619
+ "name": "IdentifyResult",
6620
+ "kind": "interface",
6621
+ "jsdoc": "",
6622
+ "decl": "export interface IdentifyResult {\n /** The most likely language, or \"und\". */\n language: string;\n confidence: number;\n /** Up to five candidates, most likely first. */\n candidates: LanguageCandidate[];\n engine: string;\n}",
6623
+ "verificationChecked": true
6624
+ },
6625
+ {
6626
+ "name": "PrepareResult",
6627
+ "kind": "interface",
6628
+ "jsdoc": "",
6629
+ "decl": "export interface PrepareResult {\n status: PairStatus;\n engine: string;\n reason?: string;\n}",
6630
+ "verificationChecked": true
6631
+ },
6632
+ {
6633
+ "name": "TranslateInput",
6634
+ "kind": "interface",
6635
+ "jsdoc": "",
6636
+ "decl": "export interface TranslateInput {\n text: string;\n /** The language to translate into. */\n target: string;\n /** The source language; identified from the text when omitted. */\n source?: string;\n}",
6637
+ "verificationChecked": true
6638
+ },
6639
+ {
6640
+ "name": "TranslateResult",
6641
+ "kind": "interface",
6642
+ "jsdoc": "",
6643
+ "decl": "export interface TranslateResult {\n text: string;\n source: string;\n target: string;\n engine: string;\n}",
6644
+ "verificationChecked": true
6645
+ },
6646
+ {
6647
+ "name": "availability",
6648
+ "kind": "function",
6649
+ "jsdoc": "/** Whether on-device translation is available at all on this device / host (spec R8). Never rejects. */",
6650
+ "decl": "export async function availability(): Promise<TranslationAvailability>;",
6651
+ "verificationChecked": true
6652
+ },
6653
+ {
6654
+ "name": "pairAvailability",
6655
+ "kind": "function",
6656
+ "jsdoc": "/** Whether a language pair is installed, downloadable or unsupported. Never rejects. */",
6657
+ "decl": "export async function pairAvailability(source: string, target: string): Promise<PairAvailability>;",
6658
+ "verificationChecked": true
6659
+ },
6660
+ {
6661
+ "name": "identifyLanguage",
6662
+ "kind": "function",
6663
+ "jsdoc": "/** Identify the language of a piece of text. Rejects when unavailable. */",
6664
+ "decl": "export async function identifyLanguage(text: string): Promise<IdentifyResult>;",
6665
+ "verificationChecked": true
6666
+ },
6667
+ {
6668
+ "name": "prepare",
6669
+ "kind": "function",
6670
+ "jsdoc": "/** Download a pair's models where the platform allows it (Android, web), and answer its status. */",
6671
+ "decl": "export async function prepare(source: string, target: string): Promise<PrepareResult>;",
6672
+ "verificationChecked": true
6673
+ },
6674
+ {
6675
+ "name": "translate",
6676
+ "kind": "function",
6677
+ "jsdoc": "/** Translate text on device. Rejects when the pair is unavailable or the source cannot be identified. */",
6678
+ "decl": "export async function translate(input: TranslateInput): Promise<TranslateResult>;",
6679
+ "verificationChecked": true
6680
+ },
6681
+ {
6682
+ "name": "version",
6683
+ "kind": "const",
6684
+ "jsdoc": "",
6685
+ "decl": "export const version = 1;",
6686
+ "verificationChecked": true
6687
+ }
6688
+ ]
6689
+ },
6242
6690
  {
6243
6691
  "name": "@himalaya/ui",
6244
6692
  "source": "core/sdk/ui/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.
@@ -24,6 +25,7 @@ the SDK sources, so it matches the shipped SDKs.
24
25
  - [`camera`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fcamera?format=md) — Camera capability. 4 methods · returns FileHandles.
25
26
  - [`clipboard`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fclipboard?format=md) — System clipboard. 5 methods.
26
27
  - [`contacts`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fcontacts?format=md) — Device address book. 6 methods.
28
+ - [`entity_extraction`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fentity_extraction?format=md) — ON-DEVICE entity extraction. 2 methods.
27
29
  - [`file_picker`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ffile_picker?format=md) — User-mediated document access OUTSIDE the app sandbox. 3 methods · returns FileHandles.
28
30
  - [`files`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ffiles?format=md) — App-scoped document storage. 9 methods · returns FileHandles.
29
31
  - [`godot`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fgodot?format=md) — A Godot game surface. 3 methods · not in Brandy.
@@ -31,6 +33,7 @@ the SDK sources, so it matches the shipped SDKs.
31
33
  - [`health`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fhealth?format=md) — Platform HEALTH store. 5 methods.
32
34
  - [`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
35
  - [`iap`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fiap?format=md) — In-app-purchase capability. 10 methods.
36
+ - [`image_labeling`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fimage_labeling?format=md) — ON-DEVICE image labelling. 2 methods.
34
37
  - [`keyboard`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fkeyboard?format=md) — Keyboard capability. 1 method.
35
38
  - [`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
39
  - [`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,8 +55,11 @@ the SDK sources, so it matches the shipped SDKs.
52
55
  - [`speech`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fspeech?format=md) — Speech capability. 8 methods.
53
56
  - [`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
57
  - [`tasks`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftasks?format=md) — Reminders / to-dos. 7 methods.
58
+ - [`text_embedding`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftext_embedding?format=md) — ON-DEVICE sentence embeddings. 3 methods.
59
+ - [`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
60
  - [`theme`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftheme?format=md) — Runtime brand overlay. 2 methods.
56
61
  - [`torch`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftorch?format=md) — Torch (the camera flashlight). 4 methods.
62
+ - [`translation`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftranslation?format=md) — ON-DEVICE language identification and translation. 5 methods.
57
63
  - [`ui`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fui?format=md) — Imperative popup capability. 2 methods · not in Brandy.
58
64
  - [`wix_cashier`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fwix_cashier?format=md) — Native cashier. 2 methods.
59
65
  - [`wix_chat`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fwix_chat?format=md) — Host-owned realtime Chat event subscriptions. 2 methods.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1727.0",
3
+ "version": "0.1729.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": "d29fa25f0393f50d8ade21f09561e54b911a76a5b9a4fd2f99d906f6"
84
+ "falconPackageHash": "0e8329f0e3407547ff894c7b7e187ae0dbe366a8e7c1919cb783cd8d"
85
85
  }