@synopackageland/cli 0.48.4 → 0.48.5

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.48.5
4
+
5
+ - Require templates ~0.40.0: new scaffolds pin SDK/App 0.50.0 and UI 0.20.0, whose AppShell pages show no visible title and scroll only their content; the CLI controller SDK default stays 0.49.5
6
+
3
7
  ## 0.48.4
4
8
 
5
9
  - Derive executor policy and runtime operation defaults from the SDK shared operation contract; preserve explicit App overrides without inheriting shorter implicit daemon lifecycle defaults
package/README.md CHANGED
@@ -89,9 +89,9 @@ alongside npm lockfiles. Do not disable checksum verification for public SDK
89
89
  packages. Private mirrors can use explicitly configured Go authentication and
90
90
  checksum settings; a failed fetch reports `SDK_DOWNLOAD_FAILED`.
91
91
 
92
- The CLI pins SDK 0.49.5 for its daemon controllers, Compose planning and installer
93
- context. Explicit App SDK declarations take precedence. Templates use ~0.39.2
94
- and retain their own scaffold SDK pins; none declare daemon ingress.
92
+ The CLI pins one SDK release for its daemon controllers, Compose planning and installer
93
+ context. Explicit App SDK declarations take precedence. Templates come from the
94
+ installed templates package and retain their own scaffold SDK pins; none declare daemon ingress.
95
95
  Every App method is declared once in operations.json; ctl generate writes the
96
96
  permissions table and runtime bindings. Dynamic names and custom HTTP dispatchers
97
97
  are rejected. Use fixed
@@ -102,8 +102,8 @@ unimported development commands are excluded. Use
102
102
  authentication. See [App entry and registration](docs/app-entry.md).
103
103
 
104
104
  `init` and `add` read their templates from the locally installed
105
- `@synopackageland/templates`. CLI 0.48.1 depends on `~0.39.2`: npm installation or
106
- update can select the latest templates patch in the 0.39 minor line. Templates
105
+ `@synopackageland/templates`. The CLI depends on one templates minor line: npm installation or
106
+ update can select the latest templates patch in that line. Templates
107
107
  patches need only a templates release; update the npm installation to receive them.
108
108
  The CLI never fetches templates at runtime, so offline use works after installation;
109
109
  commit a lockfile and use `npm ci` to reproduce a chosen dependency tree.
@@ -629,7 +629,7 @@ package start activates nginx.
629
629
 
630
630
  Older SDK/DSM targets retain the direct listener and explain its certificate or
631
631
  unencrypted-HTTP limitations before opening it. Native resource/startup failures
632
- fail closed; they do not silently expose a direct listener. The native runtime uses the resolved SDK release; new scaffolds pin SDK 0.47.1.
632
+ fail closed; they do not silently expose a direct listener. The native runtime uses the resolved SDK release; new scaffolds pin the SDK release of the installed templates.
633
633
 
634
634
  Compose Apps may opt in to Intel render devices with
635
635
  `compose.devices.gpu.services: [media]`. The matching SDK discovers exact devices
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/cli",
3
- "version": "0.48.4",
3
+ "version": "0.48.5",
4
4
  "description": "Syno Package Land Developer Kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@napi-rs/keyring": "^2.1.1",
34
- "@synopackageland/templates": "~0.39.2",
34
+ "@synopackageland/templates": "~0.40.0",
35
35
  "ajv": "^8.17.1",
36
36
  "commander": "^13.1.0",
37
37
  "json-canonicalize": "^3.0.1",
package/skills/SKILL.md CHANGED
@@ -5,7 +5,7 @@ description: Initialize, extend, check, build, inspect, and deploy Synology appl
5
5
 
6
6
  # Independent Synology SPKs
7
7
 
8
- The CLI installs templates through `~0.39.2`. A templates patch needs only a
8
+ The CLI installs templates through one minor line. A templates patch needs only a
9
9
  templates release; npm install/update selects a patch in that minor line. The CLI
10
10
  uses the locally installed templates and reads their SDK pin for defaults; it
11
11
  never downloads templates at runtime. Preserve the lockfile and use `npm ci` for
@@ -14,7 +14,7 @@ the CLI: executor manifest format 1 in the resolved SDK pins the executor releas
14
14
  Go toolchain and six payload digests. Preserve npm integrity and Go module sums.
15
15
  The CLI verifies bytes before packaging and never fetches a manifest at NAS runtime.
16
16
  Unsupported formats require a CLI update; invalid manifests fail closed.
17
- Current scaffolds pin SDK/App 0.47.1 and declare operations in one v2 registry.
17
+ Current scaffolds pin one SDK/App release and declare operations in one v2 registry.
18
18
 
19
19
  For Apps with data folders or gateway listeners, read [reference/install.md](reference/install.md). Default to an App-named dedicated DSM data share and installer-selected ports. Existing-folder access, port number format/range and required HTTPS origins use localized wizard validation before Next; detected port conflicts are nonblocking inline warnings, and an unavailable DSM port inventory does not block installation; upgrades retain port selections.
20
20
 
@@ -26,7 +26,7 @@ compose:
26
26
  network: {egress: isolated}
27
27
  # Private package binds are rejected by DSM build; keep compatible upstream named volumes.
28
28
  identity_gateway:
29
- sdk: 0.47.1
29
+ sdk: <sdk-version>
30
30
  mode: none
31
31
  access: dsm-users
32
32
  listen: {http: 28000}
@@ -39,7 +39,7 @@ architecture-specific native payloads for token/account adapters. All lifecycle
39
39
  scripts run as the package account; containers are managed by Container Manager.
40
40
 
41
41
  For external access, pin both `compose.sdk` and `identity_gateway.sdk` to
42
- 0.47.1 and use the gateway's
42
+ the scaffold's SDK release and use the gateway's
43
43
  [`external_access` policy and DSM settings entry](identity-gateway.md#external-access).
44
44
  Declare required HTTPS origins through `install.settings`; wizard validation checks the selected HTTPS port before Next. See [install.md](install.md).
45
45
  Manual URL configuration does not require Connect. The SDK resolves the public
@@ -260,7 +260,7 @@ declared availability readiness, LAN isolation/egress, protected grant lifecycle
260
260
  ACLs, two-user visibility and clean install/upgrade/reboot/stop/uninstall before
261
261
  calling the package supported on a NAS. No NAS is accessed by the build gate.
262
262
 
263
- The unified Compose contract uses SDK defaults from locally installed templates `~0.39.2` with CLI 0.48.1. Templates patches can ship independently; npm install/update resolves them, and SDK defaults come from the installed templates. SDK minor upgrades do not require a CLI release when they declare supported executor manifest format 1; the resolved SDK owns the release mapping and verified payload digests. The CLI does not fetch templates at runtime. The legacy packaging route and bridge publish mode are removed.
263
+ The unified Compose contract uses SDK defaults from the locally installed templates. Templates patches can ship independently; npm install/update resolves them, and SDK defaults come from the installed templates. SDK minor upgrades do not require a CLI release when they declare supported executor manifest format 1; the resolved SDK owns the release mapping and verified payload digests. The CLI does not fetch templates at runtime. The legacy packaging route and bridge publish mode are removed.
264
264
 
265
265
  Primary override files, and each included override set, must share a directory. Cross-directory override bases are rejected before loader I/O. Included implicit .env files are confined, inventoried and preserved; symlinks are rejected.
266
266
 
@@ -46,8 +46,8 @@ rootOps 與 delegate 已共用管理員 PasswordConfirm 核准的 protected exec
46
46
  backend 寫 `runtime: python|node|rust`(`runtime: go` 等同 `kind: go`)。CGI 是 SDK 的 Go runtime(`bridge/cmd/runtime`),它驗證 DSM session、entry 與 `permissions.json` 後,以套件帳號(不是 root)每個請求啟動一次 App。App 放在 ui 以外的目錄,打包成 `target/app/`,build 寫入 `bridge.json`(spec/bridge/v1)並把它與 `permissions.json` 的 sha256 編進 runtime。
47
47
 
48
48
  ```yaml
49
- backend: {runtime: python, dir: app, entry: main.py, sdk: 0.47.1}
50
- backend: {runtime: node, dir: app, entry: main.mjs, sdk: 0.47.1, node: {package: Node.js_v22}}
49
+ backend: {runtime: python, dir: app, entry: main.py, sdk: <sdk-version>}
50
+ backend: {runtime: node, dir: app, entry: main.mjs, sdk: <sdk-version>, node: {package: Node.js_v22}}
51
51
  backend: {runtime: rust, dir: app, entry: hello, methods: [hello.greet]}
52
52
  ```
53
53
 
@@ -93,7 +93,7 @@ func deadline() api.DeadlineOption {
93
93
 
94
94
  直接 File Station 瀏覽器讀取預設也為 302 秒;identity gateway 等候 upstream headers 預設 310 秒,自訂期限需對齊 gateway 與外部 proxy。這些預設不保證所有 DSM/proxy 都能完成五分鐘請求。executor batch 的 60 秒上限、已核准 root policy/program budget 與 credential lifetime 維持原契約;長 root 工作使用既有 `root.start` / `root.jobs.*`。
95
95
 
96
- `ctl` transport 採 SDK 共用的五分鐘操作預算與回覆保留時間;job flow 不以累計時間中止存活工作。長工作必須映射既有 job flow,不以延長同步等待取代非同步 API;參考 [ctl](ctl.md)。完整契約見 SDK 的 [request deadlines](https://github.com/synopackageland/syno-pkg-land-sdk/blob/v0.47.1/docs/request-deadlines.md)。
96
+ `ctl` transport 採 SDK 共用的五分鐘操作預算與回覆保留時間;job flow 不以累計時間中止存活工作。長工作必須映射既有 job flow,不以延長同步等待取代非同步 API;參考 [ctl](ctl.md)。完整契約見 SDK 的 [request deadlines](https://github.com/synopackageland/syno-pkg-land-sdk/blob/main/docs/request-deadlines.md)。
97
97
 
98
98
  DSM 視窗預設 960×640、最小 700×420;`ui.window` 只寫要改的欄位:
99
99
 
@@ -157,7 +157,7 @@ direction, including hidden routes. The only infrastructure exceptions are the
157
157
  fixed describe and identity ceremony methods. SDK capability metadata comes from
158
158
  the SDK's own hidden catalog and can be explicitly overridden in the App spec.
159
159
  Never hand-edit generated operation descriptions or add them to a skill manually.
160
- Current scaffolds use SDK 0.47.1, templates 0.39.2 and CLI 0.48.1.
160
+ Current scaffolds pin the SDK release of the installed templates.
161
161
 
162
162
  For installed Apps, use `ctl tools <app> --host <profile>` and
163
163
  `ctl tool <app> <method> --input <file|-> --host <profile>`. These require the
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Upstream-authenticated paths
4
4
 
5
- Build with SDK 0.47.1 and CLI 0.48.1. Use `upstream_auth_paths` for client API
5
+ Build with the SDK the scaffold pins. Use `upstream_auth_paths` for client API
6
6
  paths that use upstream authentication.
7
7
 
8
8
  Keep browser routes behind `entry: admin-only` or `entry: app-privilege`; list
@@ -22,12 +22,12 @@ See `docs/app-entry.md` for the complete contract.
22
22
 
23
23
  ## External access
24
24
 
25
- Use SDK 0.47.1 with matching gateway sources. Add this to the existing
25
+ Use the scaffold's SDK release with matching gateway sources. Add this to the existing
26
26
  complete gateway declaration; keep the App's upstream, listener and auth policy:
27
27
 
28
28
  ```yaml
29
29
  identity_gateway:
30
- sdk: 0.47.1
30
+ sdk: <sdk-version>
31
31
  external_access:
32
32
  connect: optional # optional | none
33
33
  origin_change: none # none | confirm
@@ -191,7 +191,7 @@ For user-controlled mobile API or WebDAV access, declare fixed prefixes:
191
191
  ```yaml
192
192
  identity_gateway:
193
193
  # Add to the existing complete identity_gateway declaration.
194
- sdk: 0.47.1
194
+ sdk: <sdk-version>
195
195
  optional_passthrough:
196
196
  mobile:
197
197
  prefixes: [/dav, /api/mobile]
@@ -231,7 +231,7 @@ An upstream with its own OIDC login can opt into a generic browser bridge:
231
231
  install:
232
232
  ports: true
233
233
  identity_gateway:
234
- sdk: 0.47.1
234
+ sdk: <sdk-version>
235
235
  mode: oidc
236
236
  access: dsm-admins
237
237
  upstream: 8000
@@ -1,6 +1,6 @@
1
1
  # Native installation settings
2
2
 
3
- Use CLI 0.48.1 with SDK/App 0.47.1 and templates ~0.39.2. Configure installation through the manifest and generated wizard; do not add App ACL writers, root hooks or independent port state.
3
+ Use the CLI with the SDK/App release its templates pin. Configure installation through the manifest and generated wizard; do not add App ACL writers, root hooks or independent port state.
4
4
 
5
5
  ```yaml
6
6
  install:
@@ -11,7 +11,7 @@ install:
11
11
  name: MyApp
12
12
  permission: rw
13
13
  identity_gateway:
14
- sdk: 0.47.1
14
+ sdk: <sdk-version>
15
15
  listen: {https: 28443}
16
16
  ```
17
17