@wix/himalaya-cli 0.1228.0 → 0.1229.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/ts/src/app-registry-client.d.ts +2 -43
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/registry-app-normalize.d.ts +50 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -1
- package/package.json +2 -2
|
@@ -1,49 +1,8 @@
|
|
|
1
1
|
import type { RegistryStatus } from "./app-identity.js";
|
|
2
|
+
import { type RegistryApp } from "./registry-app-normalize.js";
|
|
2
3
|
export { isPlayerRequirements, normalizeServeApp, PLAYER_REQUIREMENT_KINDS } from "./registry-app-normalize.js";
|
|
4
|
+
export type { RegistryApp, RegistryTemplate } from "./registry-app-normalize.js";
|
|
3
5
|
export type RegistryKind = "serve" | "control";
|
|
4
|
-
/** The normalized registry entry the picker + validator consume. */
|
|
5
|
-
export interface RegistryApp {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
environment?: string;
|
|
9
|
-
/** A design-system icon NAME (glyph), when the app-config declared one. */
|
|
10
|
-
icon?: string;
|
|
11
|
-
/** Absolute URL to the app's launcher-icon bitmap (`GET /v1/app-icon`), when the
|
|
12
|
-
* release baked one. The picker prefers this over `icon` for a real per-app image. */
|
|
13
|
-
iconUrl?: string;
|
|
14
|
-
homeScreenId?: string;
|
|
15
|
-
releaseId?: string;
|
|
16
|
-
minBinaryVersion?: string | null;
|
|
17
|
-
publishedAt?: string;
|
|
18
|
-
publicationKind?: "build" | "patch" | "draft";
|
|
19
|
-
playerRequirements?: {
|
|
20
|
-
capabilities: string[];
|
|
21
|
-
nativeComponents: string[];
|
|
22
|
-
authProviders: string[];
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
/** The normalized template-catalog entry the Templates picker consumes. A template
|
|
26
|
-
* is a released app carrying a scaffold-source archive (manifest.sourceHash +
|
|
27
|
-
* templateMeta), namespaced `himi-template-<name>` and served from `GET /v1/templates`
|
|
28
|
-
* (RFC 0012 templates channel — deliberately kept OUT of `/v1/apps`). `id` is the
|
|
29
|
-
* full `himi-template-<name>` app id (a valid, runnable release the player boots via
|
|
30
|
-
* `select_app`); `name` is that id minus the reserved prefix (the `himi init --template`
|
|
31
|
-
* value). */
|
|
32
|
-
export interface RegistryTemplate {
|
|
33
|
-
/** The `himi init --template <name>` value (app id minus the reserved prefix). */
|
|
34
|
-
name: string;
|
|
35
|
-
/** The full `himi-template-<name>` app id the player boots via `select_app`. */
|
|
36
|
-
id: string;
|
|
37
|
-
title: string;
|
|
38
|
-
description: string;
|
|
39
|
-
tags: string[];
|
|
40
|
-
category?: string;
|
|
41
|
-
releaseId?: string;
|
|
42
|
-
minBinaryVersion?: string | null;
|
|
43
|
-
/** Absolute URL to the template's launcher-icon bitmap (`GET /v1/app-icon`), when
|
|
44
|
-
* the release baked one — the picker reduces it to a host-less path. */
|
|
45
|
-
iconUrl?: string;
|
|
46
|
-
}
|
|
47
6
|
export interface AppRegistryClientOptions {
|
|
48
7
|
/** Full registry URL — the baked-per-flavor origin + path (never link-selectable). */
|
|
49
8
|
url: string;
|
|
@@ -1,9 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
/** The normalized registry entry the picker + validator consume. */
|
|
2
|
+
export interface RegistryApp {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
environment?: string;
|
|
6
|
+
/** A design-system icon NAME (glyph), when the app-config declared one. */
|
|
7
|
+
icon?: string;
|
|
8
|
+
/** Absolute URL to the app's launcher-icon bitmap (`GET /v1/app-icon`), when the
|
|
9
|
+
* release baked one. The picker prefers this over `icon` for a real per-app image. */
|
|
10
|
+
iconUrl?: string;
|
|
11
|
+
homeScreenId?: string;
|
|
12
|
+
releaseId?: string;
|
|
13
|
+
minBinaryVersion?: string | null;
|
|
14
|
+
publishedAt?: string;
|
|
15
|
+
publicationKind?: "build" | "patch" | "draft";
|
|
16
|
+
playerRequirements?: {
|
|
17
|
+
capabilities: string[];
|
|
18
|
+
nativeComponents: string[];
|
|
19
|
+
authProviders: string[];
|
|
20
|
+
};
|
|
21
|
+
/** Set when the entry carried a `playerRequirements` that is not well-formed (null, a kind missing
|
|
22
|
+
* or not a list of ids). The value is dropped, but the release is not legacy: it reads as
|
|
23
|
+
* "malformed" to every consumer, the Player picker's worker included. */
|
|
24
|
+
playerRequirementsMalformed?: true;
|
|
25
|
+
}
|
|
26
|
+
/** The normalized template-catalog entry the Templates picker consumes. A template
|
|
27
|
+
* is a released app carrying a scaffold-source archive (manifest.sourceHash +
|
|
28
|
+
* templateMeta), namespaced `himi-template-<name>` and served from `GET /v1/templates`
|
|
29
|
+
* (RFC 0012 templates channel — deliberately kept OUT of `/v1/apps`). `id` is the
|
|
30
|
+
* full `himi-template-<name>` app id (a valid, runnable release the player boots via
|
|
31
|
+
* `select_app`); `name` is that id minus the reserved prefix (the `himi init --template`
|
|
32
|
+
* value). */
|
|
33
|
+
export interface RegistryTemplate {
|
|
34
|
+
/** The `himi init --template <name>` value (app id minus the reserved prefix). */
|
|
35
|
+
name: string;
|
|
36
|
+
/** The full `himi-template-<name>` app id the player boots via `select_app`. */
|
|
37
|
+
id: string;
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
tags: string[];
|
|
41
|
+
category?: string;
|
|
42
|
+
releaseId?: string;
|
|
43
|
+
minBinaryVersion?: string | null;
|
|
44
|
+
/** Absolute URL to the template's launcher-icon bitmap (`GET /v1/app-icon`), when
|
|
45
|
+
* the release baked one — the picker reduces it to a host-less path. */
|
|
46
|
+
iconUrl?: string;
|
|
47
|
+
}
|
|
2
48
|
/** The id lists a release's `playerRequirements` carries, and a Player's compiled claims too. */
|
|
3
49
|
export declare const PLAYER_REQUIREMENT_KINDS: readonly ["capabilities", "nativeComponents", "authProviders"];
|
|
4
50
|
/** A well-formed `playerRequirements` (or claims) value: every kind is a list of string ids. */
|
|
5
51
|
export declare function isPlayerRequirements(v: unknown): v is NonNullable<RegistryApp["playerRequirements"]>;
|
|
6
52
|
/** One `/v1/apps` (serve) entry, normalized: null without a non-empty string id, each field coerced to its type
|
|
7
|
-
* or dropped, and `playerRequirements` kept only when well-formed
|
|
8
|
-
*
|
|
53
|
+
* or dropped, and `playerRequirements` kept only when well-formed; one that is present but not
|
|
54
|
+
* well-formed is dropped and flagged `playerRequirementsMalformed`. Pure, so the Player picker's
|
|
55
|
+
* worker, which parses the registry body itself, normalizes entries exactly as the client does. */
|
|
9
56
|
export declare function normalizeServeApp(a: any): RegistryApp | null;
|
|
@@ -13062,7 +13062,7 @@ function normalizeServeApp(a) {
|
|
|
13062
13062
|
...typeof a.minBinaryVersion === "string" || a.minBinaryVersion === null ? { minBinaryVersion: a.minBinaryVersion } : {},
|
|
13063
13063
|
...typeof a.publishedAt === "string" ? { publishedAt: a.publishedAt } : {},
|
|
13064
13064
|
...a.publicationKind === "build" || a.publicationKind === "patch" || a.publicationKind === "draft" ? { publicationKind: a.publicationKind } : {},
|
|
13065
|
-
...isPlayerRequirements(a.playerRequirements) ? { playerRequirements: a.playerRequirements } : {}
|
|
13065
|
+
...isPlayerRequirements(a.playerRequirements) ? { playerRequirements: a.playerRequirements } : a.playerRequirements !== void 0 || a.playerRequirementsMalformed === true ? { playerRequirementsMalformed: true } : {}
|
|
13066
13066
|
};
|
|
13067
13067
|
}
|
|
13068
13068
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1229.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": [
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"artifactId": "himalaya-cli"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"falconPackageHash": "
|
|
70
|
+
"falconPackageHash": "520a08a2a0a67dbaa3d551c2628049f08b1481f99918c3890592c9cf"
|
|
71
71
|
}
|