@synopackageland/cli 0.54.6 → 0.54.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.54.7 (2026-11-17)
4
+
5
+ - App metadata accepts `screenshots_mobile`, a list of phone screenshots under the same rules as `screenshots` (at most 5 `https://` PNG or JPG URLs). `screenshots` stays the desktop list. The App page on synopkgland.com shows phone screenshots under a Mobile tab; DSM Package Center shows only `screenshots`.
6
+
3
7
  ## 0.54.6 (2026-11-15)
4
8
 
5
9
  - Approval baselines with an SDK inventory read historical approval facts instead of replaying the latest UI and lifecycle formats. Older entry pages without `launch.html` remain comparable; missing facts, inconsistent payload/asset pins and invalid executor task bindings report `APPROVAL_BASELINE_INVALID` with the failing fact.
@@ -24,10 +24,13 @@ export interface PackageMetadata {
24
24
  distributor_url?: string;
25
25
  support_url?: string;
26
26
  helpurl?: string;
27
+ /** Desktop screenshots; the DSM Package Center feed shows only these. */
27
28
  screenshots?: string[];
29
+ /** Phone screenshots, shown on the website under a separate tab. */
30
+ screenshots_mobile?: string[];
28
31
  }
29
32
  export declare function safeMetadataUrl(value: unknown, mail?: boolean): value is string;
30
- /** The catalog shows at most 5 screenshots and loads them over https only. */
33
+ /** The catalog shows at most 5 screenshots of each form and loads them over https only. */
31
34
  export declare const MAX_SCREENSHOTS = 5;
32
35
  export declare function validateMetadata(raw: unknown): PackageMetadata;
33
36
  export declare function metadataInfoFields(metadata?: PackageMetadata): [string, string][];
@@ -37,7 +37,7 @@ export function safeMetadataUrl(value, mail = false) {
37
37
  return false;
38
38
  }
39
39
  }
40
- /** The catalog shows at most 5 screenshots and loads them over https only. */
40
+ /** The catalog shows at most 5 screenshots of each form and loads them over https only. */
41
41
  export const MAX_SCREENSHOTS = 5;
42
42
  const safeScreenshotUrl = (value) => safeMetadataUrl(value) && value.startsWith("https:");
43
43
  export function validateMetadata(raw) {
@@ -60,6 +60,7 @@ export function validateMetadata(raw) {
60
60
  "support_url",
61
61
  "helpurl",
62
62
  "screenshots",
63
+ "screenshots_mobile",
63
64
  ];
64
65
  for (const [k, v] of Object.entries(raw)) {
65
66
  if (!allowed.includes(k))
@@ -68,7 +69,7 @@ export function validateMetadata(raw) {
68
69
  upstreamMetadata(v);
69
70
  continue;
70
71
  }
71
- if (k === "screenshots") {
72
+ if (k === "screenshots" || k === "screenshots_mobile") {
72
73
  if (!Array.isArray(v) ||
73
74
  v.length > MAX_SCREENSHOTS ||
74
75
  !v.every(safeScreenshotUrl))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/cli",
3
- "version": "0.54.6",
3
+ "version": "0.54.7",
4
4
  "description": "Syno Package Land Developer Kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -113,6 +113,15 @@
113
113
  "maxLength": 2048
114
114
  }
115
115
  },
116
+ "screenshots_mobile": {
117
+ "type": "array",
118
+ "maxItems": 5,
119
+ "items": {
120
+ "type": "string",
121
+ "pattern": "^https://",
122
+ "maxLength": 2048
123
+ }
124
+ },
116
125
  "upstream": {
117
126
  "oneOf": [
118
127
  {
@@ -315,6 +315,15 @@
315
315
  "pattern": "^https://",
316
316
  "maxLength": 2048
317
317
  }
318
+ },
319
+ "screenshots_mobile": {
320
+ "type": "array",
321
+ "maxItems": 5,
322
+ "items": {
323
+ "type": "string",
324
+ "pattern": "^https://",
325
+ "maxLength": 2048
326
+ }
318
327
  }
319
328
  }
320
329
  }
@@ -80,8 +80,13 @@ probing, language fallback and the package-specific identity cache.
80
80
 
81
81
  App-owned `app.status` should use SDK Go `api.AppStatusHandler`, registered via
82
82
  `api.HandleRequest`, or return `package`, `version`, `user`, `admin`, `lang` and
83
- `locale`. Supply trusted DSM language hints when available. Empty hints use the
84
- browser locale; generated Go handlers include these fallback fields.
83
+ `locale`. With a nil language, `api.AppStatusHandler` answers in the caller's
84
+ DSM display language: the entry page reads it on DSM's own origin and sends it
85
+ as the `dsmLanguage` parameter (a DSM code such as `cht`). Without a usable hint,
86
+ or when DSM follows the browser (`def`), it uses the browser's Accept-Language.
87
+ The backend never reads DSM with the browser's session. Declare the optional
88
+ `dsmLanguage` string in the `app.status` `paramsSchema`; the node, python and
89
+ rust templates map the same hint themselves.
85
90
 
86
91
  Run `synopkgland inspect dist/<package>-<version>-<arch>.spk`. It replays the
87
92
  recorded registration and asset digests; a changed or missing `mobile.json`,