@synopackageland/cli 0.48.4 → 0.48.6

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 an SDK release for its daemon controllers, Compose planning and installer
93
+ context. Explicit App SDK declarations take precedence. Locally installed templates
94
+ 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's npm dependency range selects compatible
106
+ templates patches during installation or update. 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.
@@ -364,7 +364,7 @@ contract for the complete transport and CGI validation rules.
364
364
 
365
365
  `webapi.call` request parameters are JSON-only; it has no request upload field.
366
366
  Use streaming `files.write` for uploads, up to 100 MiB per file. Reads and URL
367
- downloads retain their separate 64 MiB limit. Rebuild with SDK 0.49.5 and approve
367
+ downloads retain their separate 64 MiB limit. Rebuild with an SDK that supports the requested file descriptor budget and approve
368
368
  the refreshed executor payload.
369
369
 
370
370
  ## App launch mode
@@ -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 selected by 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.6",
4
4
  "description": "Syno Package Land Developer Kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,6 +19,7 @@
19
19
  "docs/shared-folders.md"
20
20
  ],
21
21
  "scripts": {
22
+ "check:docs": "node --test scripts/check-doc-versions.test.mjs && node scripts/check-doc-versions.mjs",
22
23
  "build": "rm -rf dist && tsc",
23
24
  "test": "npm run build && node --import tsx --test --test-concurrency=${SYNOPKGLAND_GATE_JOBS:-3} test/*.test.ts test/ctl/*.test.ts",
24
25
  "test:glossary": "node --test scripts/test/glossary-drift.test.mjs",
@@ -31,7 +32,7 @@
31
32
  },
32
33
  "dependencies": {
33
34
  "@napi-rs/keyring": "^2.1.1",
34
- "@synopackageland/templates": "~0.39.2",
35
+ "@synopackageland/templates": "~0.40.0",
35
36
  "ajv": "^8.17.1",
36
37
  "commander": "^13.1.0",
37
38
  "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 its declared npm dependency range. 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,10 @@ 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
+ Scaffolds pin matching SDK/App releases and declare operations in one v2 registry.
18
+ Query published releases with `npm view @synopackageland/cli version`,
19
+ `npm view @synopackageland/templates version` and `npm view @synopackageland/sdk version`;
20
+ keep the installed dependency tree and generated pins consistent.
18
21
 
19
22
  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
23
 
@@ -4,6 +4,8 @@ The CLI converts schema-2 declarations to an SPK. The SDK owns Compose planning,
4
4
  identity gateway and lifecycle control. There is no separate wrapper container
5
5
  or SSO Server. Upstream files stay byte-for-byte unchanged, including comments.
6
6
 
7
+ `<sdk-version>` is a placeholder, not manifest syntax. `synopkgland init` copies compatible SDK pins from the locally installed templates. For a manual configuration, query `npm view @synopackageland/sdk version`, replace the placeholder with that exact release, and keep all App SDK declarations (including Go, Rust and frontend dependencies) aligned. Run `synopkgland check` with an up-to-date CLI before building.
8
+
7
9
  ```yaml
8
10
  schema: 2
9
11
  package: MediaApp
@@ -26,7 +28,7 @@ compose:
26
28
  network: {egress: isolated}
27
29
  # Private package binds are rejected by DSM build; keep compatible upstream named volumes.
28
30
  identity_gateway:
29
- sdk: 0.47.1
31
+ sdk: <sdk-version>
30
32
  mode: none
31
33
  access: dsm-users
32
34
  listen: {http: 28000}
@@ -39,7 +41,7 @@ architecture-specific native payloads for token/account adapters. All lifecycle
39
41
  scripts run as the package account; containers are managed by Container Manager.
40
42
 
41
43
  For external access, pin both `compose.sdk` and `identity_gateway.sdk` to
42
- 0.47.1 and use the gateway's
44
+ the same release with external access support and use the gateway's
43
45
  [`external_access` policy and DSM settings entry](identity-gateway.md#external-access).
44
46
  Declare required HTTPS origins through `install.settings`; wizard validation checks the selected HTTPS port before Next. See [install.md](install.md).
45
47
  Manual URL configuration does not require Connect. The SDK resolves the public
@@ -260,7 +262,7 @@ declared availability readiness, LAN isolation/egress, protected grant lifecycle
260
262
  ACLs, two-user visibility and clean install/upgrade/reboot/stop/uninstall before
261
263
  calling the package supported on a NAS. No NAS is accessed by the build gate.
262
264
 
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.
265
+ The unified Compose contract uses SDK defaults from locally installed templates and a matching CLI. 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
266
 
265
267
  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
268
 
@@ -45,9 +45,11 @@ rootOps 與 delegate 已共用管理員 PasswordConfirm 核准的 protected exec
45
45
 
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
+ `<sdk-version>` is a placeholder, not manifest syntax. `synopkgland init` copies compatible SDK pins from the locally installed templates. For a manual configuration, query `npm view @synopackageland/sdk version`, replace the placeholder with that exact release, and keep all App SDK declarations (including Go, Rust and frontend dependencies) aligned. Run `synopkgland check` with an up-to-date CLI before building.
49
+
48
50
  ```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}}
51
+ backend: {runtime: python, dir: app, entry: main.py, sdk: <sdk-version>}
52
+ backend: {runtime: node, dir: app, entry: main.mjs, sdk: <sdk-version>, node: {package: Node.js_v22}}
51
53
  backend: {runtime: rust, dir: app, entry: hello, methods: [hello.greet]}
52
54
  ```
53
55
 
@@ -93,7 +95,7 @@ func deadline() api.DeadlineOption {
93
95
 
94
96
  直接 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
97
 
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)。
98
+ `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
99
 
98
100
  DSM 視窗預設 960×640、最小 700×420;`ui.window` 只寫要改的欄位:
99
101
 
@@ -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
+ Use the SDK pins in the project generated by `synopkgland init`; query published releases with `npm view @synopackageland/sdk version`, `npm view @synopackageland/templates version` and `npm view @synopackageland/cli version`.
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 matching SDK and CLI releases. 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,14 @@ 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 an SDK 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
+ `<sdk-version>` is a placeholder, not manifest syntax. `synopkgland init` copies compatible SDK pins from the locally installed templates. For a manual configuration, query `npm view @synopackageland/sdk version`, replace the placeholder with that exact release, and keep all App SDK declarations (including Go, Rust and frontend dependencies) aligned. Run `synopkgland check` with an up-to-date CLI before building.
29
+
28
30
  ```yaml
29
31
  identity_gateway:
30
- sdk: 0.47.1
32
+ sdk: <sdk-version>
31
33
  external_access:
32
34
  connect: optional # optional | none
33
35
  origin_change: none # none | confirm
@@ -191,7 +193,7 @@ For user-controlled mobile API or WebDAV access, declare fixed prefixes:
191
193
  ```yaml
192
194
  identity_gateway:
193
195
  # Add to the existing complete identity_gateway declaration.
194
- sdk: 0.47.1
196
+ sdk: <sdk-version>
195
197
  optional_passthrough:
196
198
  mobile:
197
199
  prefixes: [/dav, /api/mobile]
@@ -231,7 +233,7 @@ An upstream with its own OIDC login can opt into a generic browser bridge:
231
233
  install:
232
234
  ports: true
233
235
  identity_gateway:
234
- sdk: 0.47.1
236
+ sdk: <sdk-version>
235
237
  mode: oidc
236
238
  access: dsm-admins
237
239
  upstream: 8000
@@ -1,6 +1,8 @@
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 matching CLI, SDK/App and templates releases, preserving the pins generated by `synopkgland init`. Configure installation through the manifest and generated wizard; do not add App ACL writers, root hooks or independent port state.
4
+
5
+ `<sdk-version>` is a placeholder, not manifest syntax. `synopkgland init` copies compatible SDK pins from the locally installed templates. For a manual configuration, query `npm view @synopackageland/sdk version`, replace the placeholder with that exact release, and keep all App SDK declarations (including Go, Rust and frontend dependencies) aligned. Run `synopkgland check` with an up-to-date CLI before building.
4
6
 
5
7
  ```yaml
6
8
  install:
@@ -11,7 +13,7 @@ install:
11
13
  name: MyApp
12
14
  permission: rw
13
15
  identity_gateway:
14
- sdk: 0.47.1
16
+ sdk: <sdk-version>
15
17
  listen: {https: 28443}
16
18
  ```
17
19
 
@@ -139,9 +139,9 @@ by these settings.
139
139
 
140
140
  Native daemon Apps may opt in with `daemon.nofile: 32768`. The value must be an
141
141
  integer from 1024 to 1048576; omission keeps the legacy controller path. This
142
- requires DSM 7.0-40761 or later and SDK 0.49.5 or later, including an explicit Go App SDK pin or gateway
143
- pin. CLI 0.48.3 retains the SDK 0.49.5 default introduced in 0.48.2. Check and
144
- build reject older pins; build also verifies matching controller sources.
142
+ requires DSM 7.0-40761 or later and an SDK with file descriptor budget support,
143
+ including any explicit Go App or gateway SDK pin. Check and build reject
144
+ unsupported pins; build also verifies matching controller sources.
145
145
 
146
146
  The CLI generates only `conf/systemd/pkg-<package>-daemon.service`. DSM acquires
147
147
  this fixed system unit directly; it needs no `systemd-user-unit` resource