@wix/himalaya-cli 0.1728.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/entity-extraction/src/index.d.ts +34 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-embedding/src/index.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/translation/src/index.d.ts +51 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/entity-extraction.mjs +38 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-embedding.mjs +76 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/translation.mjs +66 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +12 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{ec5d778f3e7ecbc2351ab7a8f3509483b798094de9f889fe8b03447db1413cb6.bin → ad21c55bd7cec9a3951ff818f08792daab5d3698b7e54af1b1764499335604ea.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +205 -52
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-config.md +1 -1
- package/guides/capabilities.md +3 -0
- package/guides/importable-sdks.md +3 -0
- package/guides/release-notes.md +30 -0
- package/guides/sdk-reference.json +238 -0
- package/guides/web-page-sdk-reference.md +3 -0
- package/package.json +2 -2
- package/templates/beauty-salon-owner/dev/index.ts +35 -0
- package/templates/branded-lite/dev/index.ts +16 -0
- package/templates/community-club/dev/index.ts +2 -0
- package/templates/community-club-owner/dev/index.ts +35 -0
- package/templates/conference/dev/index.ts +1 -0
- package/templates/events-meetups/dev/index.ts +2 -0
- package/templates/events-meetups-owner/dev/index.ts +31 -0
- package/templates/gym-fitness/dev/index.ts +1 -0
- package/templates/gym-fitness-owner/dev/index.ts +37 -0
- package/templates/nonprofit-cause/dev/index.ts +2 -0
- package/templates/nonprofit-cause-owner/dev/index.ts +33 -0
- package/templates/owner-lite/dev/index.ts +37 -0
- package/templates/podcast-creator/dev/index.ts +2 -0
- package/templates/podcast-creator-owner/dev/index.ts +35 -0
- package/templates/portfolio-creative/dev/index.ts +2 -0
- package/templates/portfolio-creative-owner/dev/index.ts +35 -0
- package/templates/restaurant/dev/index.ts +2 -0
- package/templates/restaurant-owner/dev/index.ts +37 -0
- package/templates/retail-store-owner/dev/index.ts +33 -0
- package/templates/yoga-studio/dev/index.ts +2 -0
- package/templates/yoga-studio-owner/dev/index.ts +33 -0
|
Binary file
|
package/guides/app-config.md
CHANGED
|
@@ -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`, `text_recognition`, `image_labeling`, `barcode_detection`, `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`, `translation`, `image_labeling`, `barcode_detection`, `text_embedding`, `entity_extraction`, `app_info`, `release_control`, `legacy_import`, `godot`, `base44`, `animation`, `video_playback`.
|
|
141
141
|
|
|
142
142
|
## What `himi validate` checks (7 passes)
|
|
143
143
|
|
package/guides/capabilities.md
CHANGED
|
@@ -310,6 +310,7 @@ binary carries neither the code nor the store-review footprint of a framework it
|
|
|
310
310
|
| calendar | `calendar` |
|
|
311
311
|
| calls | `calls` |
|
|
312
312
|
| contacts | `contacts` |
|
|
313
|
+
| entity_extraction | `entity_extraction` |
|
|
313
314
|
| godot | `godot` |
|
|
314
315
|
| health | `health` |
|
|
315
316
|
| iap | `iap` (and `wix_cashier` on iOS) |
|
|
@@ -323,7 +324,9 @@ binary carries neither the code nor the store-review footprint of a framework it
|
|
|
323
324
|
| push | `push` |
|
|
324
325
|
| speech (iOS) | `speech` |
|
|
325
326
|
| tasks (iOS) | `tasks` |
|
|
327
|
+
| text_embedding | `text_embedding` |
|
|
326
328
|
| text_recognition | `text_recognition` |
|
|
329
|
+
| translation | `translation` |
|
|
327
330
|
|
|
328
331
|
What that means for a worker:
|
|
329
332
|
|
|
@@ -28,6 +28,7 @@ package in one greppable file) or `GET /v1/sdk/<name>` over HTTP; in the CLI,
|
|
|
28
28
|
- `@himalaya/contacts` — Tier-5 typed binding for the device address book.
|
|
29
29
|
- `@himalaya/core` — App config & navigation types — `defineApp` (what every `apps/<app>/config.ts` calls) and the OTA `NavigationConfig`. NOT a Tier-5 worker capability: import it from `config.ts`, not from a bundle. Full config surface: `himi docs app-config`; descriptor/component types: `himi components`.
|
|
30
30
|
- `@himalaya/dispatch` — Tier-5 action dispatch.
|
|
31
|
+
- `@himalaya/entity-extraction` — Tier-5 typed binding for ON-DEVICE entity extraction.
|
|
31
32
|
- `@himalaya/file-picker` — Tier-5 typed binding for user-mediated document access OUTSIDE the app sandbox.
|
|
32
33
|
- `@himalaya/files` — Tier-5 typed binding for app-scoped document storage.
|
|
33
34
|
- `@himalaya/godot` — Tier-5 typed binding for a Godot game surface.
|
|
@@ -64,10 +65,12 @@ package in one greppable file) or `GET /v1/sdk/<name>` over HTTP; in the CLI,
|
|
|
64
65
|
- `@himalaya/speech` — Tier-5 typed binding to the platform's speech capability.
|
|
65
66
|
- `@himalaya/system-intents` — Tier-5 typed binding to the platform's system-intents capability.
|
|
66
67
|
- `@himalaya/tasks` — Tier-5 typed binding for reminders / to-dos.
|
|
68
|
+
- `@himalaya/text-embedding` — Tier-5 typed binding for ON-DEVICE sentence embeddings.
|
|
67
69
|
- `@himalaya/text-recognition` — Tier-5 typed binding for ON-DEVICE text recognition (OCR).
|
|
68
70
|
- `@himalaya/theme` — Tier-5 typed binding for the runtime brand overlay.
|
|
69
71
|
- `@himalaya/time` — Tier-5 temporal helpers.
|
|
70
72
|
- `@himalaya/torch` — Tier-5 typed binding for the platform's torch (the camera flashlight).
|
|
73
|
+
- `@himalaya/translation` — Tier-5 typed binding for ON-DEVICE language identification and translation.
|
|
71
74
|
- `@himalaya/ui` — Tier-5 typed binding to the platform's imperative popup capability.
|
|
72
75
|
- `@himalaya/webview` — Tier-5 typed binding for the page ↔ worker message channel of a worker-backed webview screen (Part 2 / RFC 0025 composition).
|
|
73
76
|
- `@himalaya/webview-page` — browser-side SDK for a trusted page hosted by a worker-backed Himalaya WebView.
|
package/guides/release-notes.md
CHANGED
|
@@ -14,6 +14,36 @@ areas, always in the same order, so you can skim for the one you care about.
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
## 2026-11-15
|
|
18
|
+
|
|
19
|
+
### Logic, data & SDKs
|
|
20
|
+
|
|
21
|
+
- **On-device AI runs on Android, and gains three writing tasks on every platform.**
|
|
22
|
+
`@himalaya/on-device-ai` now uses Gemini Nano on Android devices that have it (Pixel 9 and later,
|
|
23
|
+
recent Galaxy S, others with AICore). It downloads the model on first use and says so in
|
|
24
|
+
`availability()`. Its reason says so if the download fails. New `summarize`, `rewrite` and `proofread`
|
|
25
|
+
calls handle the common text jobs without a prompt. They run on Apple Foundation Models, Gemini Nano,
|
|
26
|
+
or Chrome's built-in Summarizer / Rewriter / Proofreader, and never fall back to the cloud. Declare
|
|
27
|
+
`on_device_ai`. (#5880)
|
|
28
|
+
- **Region monitoring works on Android.** `addMonitoredRegion` and `watchMonitoredRegions` from
|
|
29
|
+
`@himalaya/location` now register real OS geofences on Android, as they already did on iOS. Crossings
|
|
30
|
+
reach your worker even if the app was closed when they happened, and regions are restored after a
|
|
31
|
+
reboot. Declare `location_background`. Approximate-only location is refused with a reason that asks
|
|
32
|
+
for precise location. (#5880)
|
|
33
|
+
- **Read text, barcodes and image labels from a photo, on device.** `@himalaya/text-recognition`
|
|
34
|
+
(`recognize`), `@himalaya/barcode-detection` (`detect`, a still image with no camera permission) and
|
|
35
|
+
`@himalaya/image-labeling` (`label`) run Apple Vision on iOS and macOS and ML Kit on Android. Barcode
|
|
36
|
+
detection also runs on the web where the browser has `BarcodeDetector`. Pass a file your worker holds
|
|
37
|
+
and declare the capability plus `files`. (#5887)
|
|
38
|
+
- **Translate, compare and pick apart text, on device.** `@himalaya/translation` identifies a language
|
|
39
|
+
and translates. It uses Apple Translation, ML Kit, or Chrome's built-in Translator. On Android and
|
|
40
|
+
Chrome a language pack downloads on first use. On iOS and macOS it uses the languages installed in
|
|
41
|
+
Settings, and `prepare()` reports a missing pair as `downloadable`. `@himalaya/text-embedding` turns text into vectors, with `rank` and
|
|
42
|
+
`cosineSimilarity` for "find the closest note" search. `@himalaya/entity-extraction` finds dates,
|
|
43
|
+
addresses, phone numbers, emails and URLs in a text. Names of people, places and organizations are
|
|
44
|
+
found on iOS and macOS only; money amounts and tracking, IBAN, card and ISBN numbers on Android only.
|
|
45
|
+
(#5899)
|
|
46
|
+
|
|
17
47
|
## 2026-11-14
|
|
18
48
|
|
|
19
49
|
### Logic, data & SDKs
|
|
@@ -1721,6 +1721,69 @@
|
|
|
1721
1721
|
}
|
|
1722
1722
|
]
|
|
1723
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
|
+
},
|
|
1724
1787
|
{
|
|
1725
1788
|
"name": "@himalaya/file-picker",
|
|
1726
1789
|
"source": "core/sdk/file-picker/src/index.ts",
|
|
@@ -6050,6 +6113,76 @@
|
|
|
6050
6113
|
}
|
|
6051
6114
|
]
|
|
6052
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
|
+
},
|
|
6053
6186
|
{
|
|
6054
6187
|
"name": "@himalaya/text-recognition",
|
|
6055
6188
|
"source": "core/sdk/text-recognition/src/index.ts",
|
|
@@ -6449,6 +6582,111 @@
|
|
|
6449
6582
|
}
|
|
6450
6583
|
]
|
|
6451
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
|
+
},
|
|
6452
6690
|
{
|
|
6453
6691
|
"name": "@himalaya/ui",
|
|
6454
6692
|
"source": "core/sdk/ui/src/index.ts",
|
|
@@ -25,6 +25,7 @@ the SDK sources, so it matches the shipped SDKs.
|
|
|
25
25
|
- [`camera`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fcamera?format=md) — Camera capability. 4 methods · returns FileHandles.
|
|
26
26
|
- [`clipboard`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fclipboard?format=md) — System clipboard. 5 methods.
|
|
27
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.
|
|
28
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.
|
|
29
30
|
- [`files`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ffiles?format=md) — App-scoped document storage. 9 methods · returns FileHandles.
|
|
30
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.
|
|
@@ -54,9 +55,11 @@ the SDK sources, so it matches the shipped SDKs.
|
|
|
54
55
|
- [`speech`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fspeech?format=md) — Speech capability. 8 methods.
|
|
55
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.
|
|
56
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.
|
|
57
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.
|
|
58
60
|
- [`theme`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftheme?format=md) — Runtime brand overlay. 2 methods.
|
|
59
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.
|
|
60
63
|
- [`ui`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fui?format=md) — Imperative popup capability. 2 methods · not in Brandy.
|
|
61
64
|
- [`wix_cashier`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fwix_cashier?format=md) — Native cashier. 2 methods.
|
|
62
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.
|
|
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": "
|
|
84
|
+
"falconPackageHash": "0e8329f0e3407547ff894c7b7e187ae0dbe366a8e7c1919cb783cd8d"
|
|
85
85
|
}
|
|
@@ -349,6 +349,7 @@ const SCREENS = runtimeSetting({
|
|
|
349
349
|
"package": "himalaya",
|
|
350
350
|
"type": "HStack",
|
|
351
351
|
"props": {
|
|
352
|
+
"alignment": "center",
|
|
352
353
|
"children": [
|
|
353
354
|
{
|
|
354
355
|
"id": "",
|
|
@@ -399,6 +400,7 @@ const SCREENS = runtimeSetting({
|
|
|
399
400
|
"package": "himalaya",
|
|
400
401
|
"type": "HStack",
|
|
401
402
|
"props": {
|
|
403
|
+
"alignment": "center",
|
|
402
404
|
"children": [
|
|
403
405
|
{
|
|
404
406
|
"id": "",
|
|
@@ -3703,6 +3705,7 @@ const SCREENS = runtimeSetting({
|
|
|
3703
3705
|
"package": "himalaya",
|
|
3704
3706
|
"type": "HStack",
|
|
3705
3707
|
"props": {
|
|
3708
|
+
"alignment": "center",
|
|
3706
3709
|
"children": [
|
|
3707
3710
|
{
|
|
3708
3711
|
"id": "",
|
|
@@ -3753,6 +3756,7 @@ const SCREENS = runtimeSetting({
|
|
|
3753
3756
|
"package": "himalaya",
|
|
3754
3757
|
"type": "HStack",
|
|
3755
3758
|
"props": {
|
|
3759
|
+
"alignment": "center",
|
|
3756
3760
|
"children": [
|
|
3757
3761
|
{
|
|
3758
3762
|
"id": "",
|
|
@@ -7057,6 +7061,7 @@ const SCREENS = runtimeSetting({
|
|
|
7057
7061
|
"package": "himalaya",
|
|
7058
7062
|
"type": "HStack",
|
|
7059
7063
|
"props": {
|
|
7064
|
+
"alignment": "center",
|
|
7060
7065
|
"children": [
|
|
7061
7066
|
{
|
|
7062
7067
|
"id": "",
|
|
@@ -10144,6 +10149,7 @@ const SCREENS = runtimeSetting({
|
|
|
10144
10149
|
"package": "himalaya",
|
|
10145
10150
|
"type": "HStack",
|
|
10146
10151
|
"props": {
|
|
10152
|
+
"alignment": "center",
|
|
10147
10153
|
"children": [
|
|
10148
10154
|
{
|
|
10149
10155
|
"id": "",
|
|
@@ -10194,6 +10200,7 @@ const SCREENS = runtimeSetting({
|
|
|
10194
10200
|
"package": "himalaya",
|
|
10195
10201
|
"type": "HStack",
|
|
10196
10202
|
"props": {
|
|
10203
|
+
"alignment": "center",
|
|
10197
10204
|
"children": [
|
|
10198
10205
|
{
|
|
10199
10206
|
"id": "",
|
|
@@ -13498,6 +13505,7 @@ const SCREENS = runtimeSetting({
|
|
|
13498
13505
|
"package": "himalaya",
|
|
13499
13506
|
"type": "HStack",
|
|
13500
13507
|
"props": {
|
|
13508
|
+
"alignment": "center",
|
|
13501
13509
|
"children": [
|
|
13502
13510
|
{
|
|
13503
13511
|
"id": "",
|
|
@@ -13548,6 +13556,7 @@ const SCREENS = runtimeSetting({
|
|
|
13548
13556
|
"package": "himalaya",
|
|
13549
13557
|
"type": "HStack",
|
|
13550
13558
|
"props": {
|
|
13559
|
+
"alignment": "center",
|
|
13551
13560
|
"children": [
|
|
13552
13561
|
{
|
|
13553
13562
|
"id": "",
|
|
@@ -16852,6 +16861,7 @@ const SCREENS = runtimeSetting({
|
|
|
16852
16861
|
"package": "himalaya",
|
|
16853
16862
|
"type": "HStack",
|
|
16854
16863
|
"props": {
|
|
16864
|
+
"alignment": "center",
|
|
16855
16865
|
"children": [
|
|
16856
16866
|
{
|
|
16857
16867
|
"id": "",
|
|
@@ -16902,6 +16912,7 @@ const SCREENS = runtimeSetting({
|
|
|
16902
16912
|
"package": "himalaya",
|
|
16903
16913
|
"type": "HStack",
|
|
16904
16914
|
"props": {
|
|
16915
|
+
"alignment": "center",
|
|
16905
16916
|
"children": [
|
|
16906
16917
|
{
|
|
16907
16918
|
"id": "",
|
|
@@ -20206,6 +20217,7 @@ const SCREENS = runtimeSetting({
|
|
|
20206
20217
|
"package": "himalaya",
|
|
20207
20218
|
"type": "HStack",
|
|
20208
20219
|
"props": {
|
|
20220
|
+
"alignment": "center",
|
|
20209
20221
|
"children": [
|
|
20210
20222
|
{
|
|
20211
20223
|
"id": "",
|
|
@@ -20256,6 +20268,7 @@ const SCREENS = runtimeSetting({
|
|
|
20256
20268
|
"package": "himalaya",
|
|
20257
20269
|
"type": "HStack",
|
|
20258
20270
|
"props": {
|
|
20271
|
+
"alignment": "center",
|
|
20259
20272
|
"children": [
|
|
20260
20273
|
{
|
|
20261
20274
|
"id": "",
|
|
@@ -23560,6 +23573,7 @@ const SCREENS = runtimeSetting({
|
|
|
23560
23573
|
"package": "himalaya",
|
|
23561
23574
|
"type": "HStack",
|
|
23562
23575
|
"props": {
|
|
23576
|
+
"alignment": "center",
|
|
23563
23577
|
"children": [
|
|
23564
23578
|
{
|
|
23565
23579
|
"id": "",
|
|
@@ -23610,6 +23624,7 @@ const SCREENS = runtimeSetting({
|
|
|
23610
23624
|
"package": "himalaya",
|
|
23611
23625
|
"type": "HStack",
|
|
23612
23626
|
"props": {
|
|
23627
|
+
"alignment": "center",
|
|
23613
23628
|
"children": [
|
|
23614
23629
|
{
|
|
23615
23630
|
"id": "",
|
|
@@ -26914,6 +26929,7 @@ const SCREENS = runtimeSetting({
|
|
|
26914
26929
|
"package": "himalaya",
|
|
26915
26930
|
"type": "HStack",
|
|
26916
26931
|
"props": {
|
|
26932
|
+
"alignment": "center",
|
|
26917
26933
|
"children": [
|
|
26918
26934
|
{
|
|
26919
26935
|
"id": "",
|
|
@@ -26964,6 +26980,7 @@ const SCREENS = runtimeSetting({
|
|
|
26964
26980
|
"package": "himalaya",
|
|
26965
26981
|
"type": "HStack",
|
|
26966
26982
|
"props": {
|
|
26983
|
+
"alignment": "center",
|
|
26967
26984
|
"children": [
|
|
26968
26985
|
{
|
|
26969
26986
|
"id": "",
|
|
@@ -30268,6 +30285,7 @@ const SCREENS = runtimeSetting({
|
|
|
30268
30285
|
"package": "himalaya",
|
|
30269
30286
|
"type": "HStack",
|
|
30270
30287
|
"props": {
|
|
30288
|
+
"alignment": "center",
|
|
30271
30289
|
"children": [
|
|
30272
30290
|
{
|
|
30273
30291
|
"id": "",
|
|
@@ -30318,6 +30336,7 @@ const SCREENS = runtimeSetting({
|
|
|
30318
30336
|
"package": "himalaya",
|
|
30319
30337
|
"type": "HStack",
|
|
30320
30338
|
"props": {
|
|
30339
|
+
"alignment": "center",
|
|
30321
30340
|
"children": [
|
|
30322
30341
|
{
|
|
30323
30342
|
"id": "",
|
|
@@ -33622,6 +33641,7 @@ const SCREENS = runtimeSetting({
|
|
|
33622
33641
|
"package": "himalaya",
|
|
33623
33642
|
"type": "HStack",
|
|
33624
33643
|
"props": {
|
|
33644
|
+
"alignment": "center",
|
|
33625
33645
|
"children": [
|
|
33626
33646
|
{
|
|
33627
33647
|
"id": "",
|
|
@@ -36709,6 +36729,7 @@ const SCREENS = runtimeSetting({
|
|
|
36709
36729
|
"package": "himalaya",
|
|
36710
36730
|
"type": "HStack",
|
|
36711
36731
|
"props": {
|
|
36732
|
+
"alignment": "center",
|
|
36712
36733
|
"children": [
|
|
36713
36734
|
{
|
|
36714
36735
|
"id": "",
|
|
@@ -36759,6 +36780,7 @@ const SCREENS = runtimeSetting({
|
|
|
36759
36780
|
"package": "himalaya",
|
|
36760
36781
|
"type": "HStack",
|
|
36761
36782
|
"props": {
|
|
36783
|
+
"alignment": "center",
|
|
36762
36784
|
"children": [
|
|
36763
36785
|
{
|
|
36764
36786
|
"id": "",
|
|
@@ -40063,6 +40085,7 @@ const SCREENS = runtimeSetting({
|
|
|
40063
40085
|
"package": "himalaya",
|
|
40064
40086
|
"type": "HStack",
|
|
40065
40087
|
"props": {
|
|
40088
|
+
"alignment": "center",
|
|
40066
40089
|
"children": [
|
|
40067
40090
|
{
|
|
40068
40091
|
"id": "",
|
|
@@ -40113,6 +40136,7 @@ const SCREENS = runtimeSetting({
|
|
|
40113
40136
|
"package": "himalaya",
|
|
40114
40137
|
"type": "HStack",
|
|
40115
40138
|
"props": {
|
|
40139
|
+
"alignment": "center",
|
|
40116
40140
|
"children": [
|
|
40117
40141
|
{
|
|
40118
40142
|
"id": "",
|
|
@@ -43417,6 +43441,7 @@ const SCREENS = runtimeSetting({
|
|
|
43417
43441
|
"package": "himalaya",
|
|
43418
43442
|
"type": "HStack",
|
|
43419
43443
|
"props": {
|
|
43444
|
+
"alignment": "center",
|
|
43420
43445
|
"children": [
|
|
43421
43446
|
{
|
|
43422
43447
|
"id": "",
|
|
@@ -43467,6 +43492,7 @@ const SCREENS = runtimeSetting({
|
|
|
43467
43492
|
"package": "himalaya",
|
|
43468
43493
|
"type": "HStack",
|
|
43469
43494
|
"props": {
|
|
43495
|
+
"alignment": "center",
|
|
43470
43496
|
"children": [
|
|
43471
43497
|
{
|
|
43472
43498
|
"id": "",
|
|
@@ -46771,6 +46797,7 @@ const SCREENS = runtimeSetting({
|
|
|
46771
46797
|
"package": "himalaya",
|
|
46772
46798
|
"type": "HStack",
|
|
46773
46799
|
"props": {
|
|
46800
|
+
"alignment": "center",
|
|
46774
46801
|
"children": [
|
|
46775
46802
|
{
|
|
46776
46803
|
"id": "",
|
|
@@ -68368,6 +68395,7 @@ const SCREENS = runtimeSetting({
|
|
|
68368
68395
|
"package": "himalaya",
|
|
68369
68396
|
"type": "HStack",
|
|
68370
68397
|
"props": {
|
|
68398
|
+
"alignment": "center",
|
|
68371
68399
|
"children": [
|
|
68372
68400
|
{
|
|
68373
68401
|
"id": "",
|
|
@@ -68418,6 +68446,7 @@ const SCREENS = runtimeSetting({
|
|
|
68418
68446
|
"package": "himalaya",
|
|
68419
68447
|
"type": "HStack",
|
|
68420
68448
|
"props": {
|
|
68449
|
+
"alignment": "center",
|
|
68421
68450
|
"children": [
|
|
68422
68451
|
{
|
|
68423
68452
|
"id": "",
|
|
@@ -71098,6 +71127,7 @@ const SCREENS = runtimeSetting({
|
|
|
71098
71127
|
"package": "himalaya",
|
|
71099
71128
|
"type": "HStack",
|
|
71100
71129
|
"props": {
|
|
71130
|
+
"alignment": "center",
|
|
71101
71131
|
"children": [
|
|
71102
71132
|
{
|
|
71103
71133
|
"id": "",
|
|
@@ -71148,6 +71178,7 @@ const SCREENS = runtimeSetting({
|
|
|
71148
71178
|
"package": "himalaya",
|
|
71149
71179
|
"type": "HStack",
|
|
71150
71180
|
"props": {
|
|
71181
|
+
"alignment": "center",
|
|
71151
71182
|
"children": [
|
|
71152
71183
|
{
|
|
71153
71184
|
"id": "",
|
|
@@ -73645,6 +73676,7 @@ const SCREENS = runtimeSetting({
|
|
|
73645
73676
|
"package": "himalaya",
|
|
73646
73677
|
"type": "HStack",
|
|
73647
73678
|
"props": {
|
|
73679
|
+
"alignment": "center",
|
|
73648
73680
|
"children": [
|
|
73649
73681
|
{
|
|
73650
73682
|
"id": "",
|
|
@@ -73695,6 +73727,7 @@ const SCREENS = runtimeSetting({
|
|
|
73695
73727
|
"package": "himalaya",
|
|
73696
73728
|
"type": "HStack",
|
|
73697
73729
|
"props": {
|
|
73730
|
+
"alignment": "center",
|
|
73698
73731
|
"children": [
|
|
73699
73732
|
{
|
|
73700
73733
|
"id": "",
|
|
@@ -76284,6 +76317,7 @@ const SCREENS = runtimeSetting({
|
|
|
76284
76317
|
"package": "himalaya",
|
|
76285
76318
|
"type": "HStack",
|
|
76286
76319
|
"props": {
|
|
76320
|
+
"alignment": "center",
|
|
76287
76321
|
"children": [
|
|
76288
76322
|
{
|
|
76289
76323
|
"id": "",
|
|
@@ -76334,6 +76368,7 @@ const SCREENS = runtimeSetting({
|
|
|
76334
76368
|
"package": "himalaya",
|
|
76335
76369
|
"type": "HStack",
|
|
76336
76370
|
"props": {
|
|
76371
|
+
"alignment": "center",
|
|
76337
76372
|
"children": [
|
|
76338
76373
|
{
|
|
76339
76374
|
"id": "",
|