@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 +7 -0
- package/README.md +2 -2
- package/dist/package-metadata.d.ts +2 -0
- package/dist/package-metadata.js +5 -2
- package/dist/runtime/executor-digests.json +1 -1
- package/package.json +2 -2
- package/schema/package-metadata.schema.json +2 -2
- package/schema/synology-app.schema.json +2 -2
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
|
-
|
|
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
|
|
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][];
|
package/dist/package-metadata.js
CHANGED
|
@@ -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 >
|
|
42
|
-
!v.every(
|
|
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") &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/cli",
|
|
3
|
-
"version": "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.
|
|
28
|
+
"@synopackageland/templates": "0.12.0",
|
|
29
29
|
"ajv": "^8.17.1",
|
|
30
30
|
"commander": "^13.1.0",
|
|
31
31
|
"tar": "^7.4.3",
|