@synopackageland/cli 0.11.0 → 0.12.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.0 (2026-10-16)
4
+
5
+ - Generated Apps use templates 0.12.0, SDK 0.12.0 and UI 0.10.1. Vue pages and sections stack at the UI section gap, and SDK dialogs size to their content.
6
+ - `metadata.screenshots` accepts up to 5 `https://` URLs, matching the catalog; `check` refuses more, or an `http://` URL, with `STANDALONE_TEXT_INVALID`.
7
+ - The executor digest table records SDK 0.12.0, whose executor and lifecycle digests equal 0.11.0's. This CLI builds SDK 0.12.x executors; upgrade backend and frontend pins to 0.12.0 together.
8
+ - 繁中:產生的 App 使用 templates 0.12.0、SDK 0.12.0 與 UI 0.10.1;Vue 頁面與區塊以 UI section gap 排列,SDK 對話框依內容決定寬度。`metadata.screenshots` 最多 5 個 `https://` URL,與 catalog 一致,超過或使用 `http://` 時 `check` 回報 `STANDALONE_TEXT_INVALID`。digest 表記錄 SDK 0.12.0(與 0.11.0 相同);此 CLI 建置 SDK 0.12.x executor,後端/前端 pin 需一併升級至 0.12.0。
9
+
3
10
  ## 0.11.0 (2026-10-16)
4
11
 
5
12
  - Add capabilities.webapi named profiles with purpose and exact API/method/version lists, pinned in the administrator-approved executor policy. Build, inspect, lifecycle, bridge services and consent details support WebAPI-only Apps without granting file/root operations.
package/README.md CHANGED
@@ -185,7 +185,7 @@ Third-party components keep their own terms.
185
185
  - Keep `backend/THIRD_PARTY_NOTICES.txt` current when you change Go modules. Your own binaries,
186
186
  added modules, container images and upstream apps need their own notices.
187
187
 
188
- SDK 0.11.0 adds delegated JSON WebAPI profiles. With CLI 0.11.0, declare:
188
+ Delegated JSON WebAPI profiles need SDK 0.11.0 or later. Declare:
189
189
 
190
190
  ```yaml
191
191
  capabilities:
@@ -199,7 +199,7 @@ capabilities:
199
199
  delete: [6]
200
200
  ```
201
201
 
202
- Use matching backend/frontend SDK 0.11.0 pins. The profile participates in the
202
+ Use matching backend/frontend SDK pins. The profile participates in the
203
203
  normal executor approval digest; a profile change needs administrator approval.
204
204
  Users grant the named profile separately. The permanent denylist, current-user
205
205
  permission checks, bounded JSON and uncertain-outcome rules are in the SDK's
@@ -17,5 +17,7 @@ export interface PackageMetadata {
17
17
  screenshots?: string[];
18
18
  }
19
19
  export declare function safeMetadataUrl(value: unknown, mail?: boolean): value is string;
20
+ /** The catalog shows at most 5 screenshots and loads them over https only. */
21
+ export declare const MAX_SCREENSHOTS = 5;
20
22
  export declare function validateMetadata(raw: unknown): PackageMetadata;
21
23
  export declare function metadataInfoFields(metadata?: PackageMetadata): [string, string][];
@@ -14,6 +14,9 @@ export function safeMetadataUrl(value, mail = false) {
14
14
  return false;
15
15
  }
16
16
  }
17
+ /** The catalog shows at most 5 screenshots and loads them over https only. */
18
+ export const MAX_SCREENSHOTS = 5;
19
+ const safeScreenshotUrl = (value) => safeMetadataUrl(value) && value.startsWith("https:");
17
20
  export function validateMetadata(raw) {
18
21
  if (!raw || typeof raw !== "object" || Array.isArray(raw))
19
22
  throw new Error("invalid metadata");
@@ -38,8 +41,8 @@ export function validateMetadata(raw) {
38
41
  throw new Error("unknown metadata");
39
42
  if (k === "screenshots") {
40
43
  if (!Array.isArray(v) ||
41
- v.length > 12 ||
42
- !v.every((u) => safeMetadataUrl(u)))
44
+ v.length > MAX_SCREENSHOTS ||
45
+ !v.every(safeScreenshotUrl))
43
46
  throw new Error("invalid screenshots");
44
47
  }
45
48
  else if ((k === "long_description" || k === "changelog") &&
@@ -1,5 +1,5 @@
1
1
  {
2
- "0.11.0": {
2
+ "0.12.0": {
3
3
  "x86_64": "abe0a42699fed06aeeb7520e5a4f3393cae64f83a66773b70630f0db0c5ed107",
4
4
  "aarch64": "1fdf171a665279f16ca1c2605a54996b2359fa69531c6fe4e890f5bda61c1bef",
5
5
  "armv7": "946f73df833929283f94289f025fd73897416777be5e0867d1e73f0b6c3031d7",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/cli",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Syno Package Land Developer Kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "prepublishOnly": "npm run build"
26
26
  },
27
27
  "dependencies": {
28
- "@synopackageland/templates": "0.11.0",
28
+ "@synopackageland/templates": "0.12.0",
29
29
  "ajv": "^8.17.1",
30
30
  "commander": "^13.1.0",
31
31
  "tar": "^7.4.3",
@@ -90,10 +90,10 @@
90
90
  },
91
91
  "screenshots": {
92
92
  "type": "array",
93
- "maxItems": 12,
93
+ "maxItems": 5,
94
94
  "items": {
95
95
  "type": "string",
96
- "pattern": "^https?://",
96
+ "pattern": "^https://",
97
97
  "maxLength": 2048
98
98
  }
99
99
  }
@@ -275,10 +275,10 @@
275
275
  },
276
276
  "screenshots": {
277
277
  "type": "array",
278
- "maxItems": 12,
278
+ "maxItems": 5,
279
279
  "items": {
280
280
  "type": "string",
281
- "pattern": "^https?://",
281
+ "pattern": "^https://",
282
282
  "maxLength": 2048
283
283
  }
284
284
  }