@synopackageland/cli 0.48.0 → 0.48.1

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,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.48.1
4
+
5
+ - Align Go requirement messages, native build guidance and fixtures with Go 1.26.10 (#130)
6
+ - Pin the runtime SDK default to 0.47.1 and require templates ~0.39.2 with UI 0.19.5
7
+
3
8
  ## 0.48.0
4
9
 
5
10
  - Generate permissions, runtime bindings, ctl commands, AI/MCP tools and App references from one synopkgland.api v2 operation registry
package/README.md CHANGED
@@ -11,7 +11,7 @@ Full documentation: <https://www.varvis.me/docs/> ([繁體中文](https://www.va
11
11
  npm install -g @synopackageland/cli --registry=https://registry.npmjs.org
12
12
  ```
13
13
 
14
- Native Go apps need Go 1.25+ and npm. The CLI is tested on Node.js 22.19.
14
+ Native Go apps need Go 1.26.10 and npm. The CLI is tested on Node.js 22.19.
15
15
 
16
16
  ## Quick start
17
17
 
@@ -89,8 +89,8 @@ 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.47.0 for its daemon controllers, Compose planning and installer
93
- context. Explicit App SDK declarations take precedence. Templates use ~0.39.0
92
+ The CLI pins SDK 0.47.1 for its daemon controllers, Compose planning and installer
93
+ context. Explicit App SDK declarations take precedence. Templates use ~0.39.2
94
94
  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
@@ -102,7 +102,7 @@ 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.0 depends on `~0.39.0`: npm installation or
105
+ `@synopackageland/templates`. CLI 0.48.1 depends on `~0.39.2`: npm installation or
106
106
  update can select the latest templates patch in the 0.39 minor 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;
@@ -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.47.0 and approve
367
+ downloads retain their separate 64 MiB limit. Rebuild with SDK 0.47.1 and approve
368
368
  the refreshed executor payload.
369
369
 
370
370
  ## App launch mode
@@ -626,7 +626,7 @@ package start activates nginx.
626
626
 
627
627
  Older SDK/DSM targets retain the direct listener and explain its certificate or
628
628
  unencrypted-HTTP limitations before opening it. Native resource/startup failures
629
- fail closed; they do not silently expose a direct listener. The native runtime uses the resolved SDK release; new scaffolds pin SDK 0.47.0.
629
+ 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.
630
630
 
631
631
  Compose Apps may opt in to Intel render devices with
632
632
  `compose.devices.gpu.services: [media]`. The matching SDK discovers exact devices
@@ -444,7 +444,7 @@ export const ERROR_REGISTRY = {
444
444
  STANDALONE_BACKGROUND_BUILD_FAILED: {
445
445
  code: "STANDALONE_BACKGROUND_BUILD_FAILED",
446
446
  description: "The package background worker could not be built.",
447
- suggestion: "Install Go 1.25 or later, confirm the backend has cmd/background-worker (create it with synopkgland init -t native-go --with jobs), and check the compiler stderr.",
447
+ suggestion: "Install Go 1.26.10, confirm the backend has cmd/background-worker (create it with synopkgland init -t native-go --with jobs), and check the compiler stderr.",
448
448
  },
449
449
  STANDALONE_BACKGROUND_ARTIFACT_REQUIRED: {
450
450
  code: "STANDALONE_BACKGROUND_ARTIFACT_REQUIRED",
@@ -614,7 +614,7 @@ export const ERROR_REGISTRY = {
614
614
  STANDALONE_GO_MISSING: {
615
615
  code: "STANDALONE_GO_MISSING",
616
616
  description: "The go command was not found.",
617
- suggestion: "Install Go 1.25 or later (https://go.dev/dl/), or package an existing executable with backend.files.",
617
+ suggestion: "Install Go 1.26.10 (https://go.dev/dl/), or package an existing executable with backend.files.",
618
618
  },
619
619
  STANDALONE_GO_BUILD_FAILED: {
620
620
  code: "STANDALONE_GO_BUILD_FAILED",
@@ -1,7 +1,7 @@
1
1
  export { goPrivateCovers } from './go-env.js';
2
2
  import { type ExecutorManifest } from './sdk-executor-manifest.js';
3
3
  /** Pinned SDK for CLI-owned controllers and Compose planning; App pins take precedence. */
4
- export declare const DEFAULT_SDK_VERSION = "0.47.0";
4
+ export declare const DEFAULT_SDK_VERSION = "0.47.1";
5
5
  export declare const SDK_PACKAGE = "@synopackageland/sdk";
6
6
  export declare const SDK_MODULE = "github.com/synopackageland/syno-pkg-land-sdk";
7
7
  export declare const EXECUTOR_MODULE = "github.com/synopackageland/syno-pkg-land-sdk/executor";
@@ -5,7 +5,7 @@ import { tmpdir } from 'node:os';
5
5
  import { join } from 'node:path';
6
6
  import { readExecutorManifest, predatesExecutorManifest } from './sdk-executor-manifest.js';
7
7
  /** Pinned SDK for CLI-owned controllers and Compose planning; App pins take precedence. */
8
- export const DEFAULT_SDK_VERSION = '0.47.0';
8
+ export const DEFAULT_SDK_VERSION = '0.47.1';
9
9
  export const SDK_PACKAGE = '@synopackageland/sdk';
10
10
  export const SDK_MODULE = 'github.com/synopackageland/syno-pkg-land-sdk';
11
11
  export const EXECUTOR_MODULE = `${SDK_MODULE}/executor`;
@@ -295,7 +295,7 @@ async function buildGoCgi(manifest, backend, arch, work, run) {
295
295
  env: goChildEnv({ ...process.env, ...goBuildEnv(arch) }),
296
296
  });
297
297
  if (result.missing) {
298
- throw new StandaloneBuildError("STANDALONE_GO_MISSING", "The go command was not found. Install Go 1.25 or later (https://go.dev/dl/), or package an existing executable with backend.binary.");
298
+ throw new StandaloneBuildError("STANDALONE_GO_MISSING", "The go command was not found. Install Go 1.26.10 (https://go.dev/dl/), or package an existing executable with backend.binary.");
299
299
  }
300
300
  if (result.status !== 0) {
301
301
  const fetchingSdk = result.stderr.includes(`${SDK_MODULE}@`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/cli",
3
- "version": "0.48.0",
3
+ "version": "0.48.1",
4
4
  "description": "Syno Package Land Developer Kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@napi-rs/keyring": "^2.1.1",
32
- "@synopackageland/templates": "~0.39.0",
32
+ "@synopackageland/templates": "~0.39.2",
33
33
  "ajv": "^8.17.1",
34
34
  "commander": "^13.1.0",
35
35
  "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.0`. A templates patch needs only a
8
+ The CLI installs templates through `~0.39.2`. 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.0 and declare operations in one v2 registry.
17
+ Current scaffolds pin SDK/App 0.47.1 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.0
29
+ sdk: 0.47.1
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.0 and use the gateway's
42
+ 0.47.1 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.0` with CLI 0.48.0. 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 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.
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.0}
50
- backend: {runtime: node, dir: app, entry: main.mjs, sdk: 0.47.0, node: {package: Node.js_v22}}
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
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 預設仍是 62 秒。長工作必須映射既有 job flow,不以延長同步等待取代非同步 API;參考 [ctl](ctl.md)。完整契約見 SDK 的 [request deadlines](https://github.com/synopackageland/syno-pkg-land-sdk/blob/v0.47.0/docs/request-deadlines.md)。
96
+ 獨立 `ctl` transport 預設仍是 62 秒。長工作必須映射既有 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)。
97
97
 
98
98
  DSM 視窗預設 960×640、最小 700×420;`ui.window` 只寫要改的欄位:
99
99
 
@@ -152,7 +152,7 @@ direction, including hidden routes. The only infrastructure exceptions are the
152
152
  fixed describe and identity ceremony methods. SDK capability metadata comes from
153
153
  the SDK's own hidden catalog and can be explicitly overridden in the App spec.
154
154
  Never hand-edit generated operation descriptions or add them to a skill manually.
155
- Current scaffolds use SDK 0.47.0, templates 0.39.1 and CLI 0.48.0.
155
+ Current scaffolds use SDK 0.47.1, templates 0.39.2 and CLI 0.48.1.
156
156
 
157
157
  For installed Apps, use `ctl tools <app> --host <profile>` and
158
158
  `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.0 and CLI 0.48.0. Use `upstream_auth_paths` for client API
5
+ Build with SDK 0.47.1 and CLI 0.48.1. 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.0 with matching gateway sources. Add this to the existing
25
+ Use SDK 0.47.1 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.0
30
+ sdk: 0.47.1
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.0
194
+ sdk: 0.47.1
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.0
234
+ sdk: 0.47.1
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.0 with SDK/App 0.47.0 and templates ~0.39.0. Configure installation through the manifest and generated wizard; do not add App ACL writers, root hooks or independent port state.
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.
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.0
14
+ sdk: 0.47.1
15
15
  listen: {https: 28443}
16
16
  ```
17
17