@synopackageland/cli 0.52.0 → 0.52.2

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,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.52.2
4
+
5
+ - Restore `tcp_listeners` scope `all` for IPv4 `0.0.0.0`; `loopback` remains the default
6
+ - Accept both scopes in manifest validation, the JSON schema, compiled policies and SPK inspection
7
+ - Pin CLI-owned SDK defaults to 0.53.2 and align raw TCP documentation with both scopes
8
+
9
+ ## 0.52.1
10
+
11
+ - Pin CLI-owned SDK defaults and the packaged native HTTP contract to SDK 0.53.1
12
+ - Restrict `tcp_listeners` to IPv4 loopback: omit `scope` or use `loopback`
13
+ - Reject non-loopback scopes in manifest validation, compiled policies and archived SPK inspection
14
+ - Align the schema, diagnostics and raw TCP skill guidance with the loopback-only contract
15
+
3
16
  ## 0.52.0
4
17
 
5
18
  - Add declarative `tcp_listeners` for native Go protocols, validating listener IDs, bind scopes, port bounds, and SDK policy support
package/README.md CHANGED
@@ -721,6 +721,8 @@ sections and keys per DSM language. See `synopkgland skill show dsm-texts` and
721
721
  ### Raw TCP protocols
722
722
 
723
723
  Declare `tcp_listeners` for a native Go protocol listener, then call
724
- `ipc.ListenTCP(ctx, "declared_id", port)` directly. `check` validates bind scope,
724
+ `ipc.ListenTCP(ctx, "declared_id", port)` directly. Omit `scope` or set it to
725
+ `loopback` to bind IPv4 `127.0.0.1`; use `scope: all` to bind IPv4 `0.0.0.0`,
726
+ exposed on all IPv4 interfaces. `check` validates bind scope,
725
727
  port bounds and SDK policy support; audit rejects undeclared/dynamic IDs and
726
728
  constructor aliases. See `synopkgland skill show raw-tcp`.
@@ -1 +1 @@
1
- {"module":"github.com/synopackageland/syno-pkg-land-sdk","version":"development","local":true}
1
+ {"module":"github.com/synopackageland/syno-pkg-land-sdk","version":"0.53.2","local":false}
@@ -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.53.0";
4
+ export declare const DEFAULT_SDK_VERSION = "0.53.2";
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.53.0';
8
+ export const DEFAULT_SDK_VERSION = '0.53.2';
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`;
package/dist/skill.js CHANGED
@@ -33,7 +33,7 @@ const SKILL_CATALOG = [
33
33
  when: "Needs a DSM sign-in",
34
34
  },
35
35
  { id: "dsm-texts", file: "reference/dsm-texts.md", when: "Ship native DSM sections and fixed desktop notification strings" },
36
- { id: "raw-tcp", file: "reference/raw-tcp.md", when: "Declare raw TCP protocol listeners and their bind/port boundary" },
36
+ { id: "raw-tcp", file: "reference/raw-tcp.md", when: "Declare loopback or all-interface raw TCP protocol listeners and their port boundary" },
37
37
  { id: "mobile", file: "reference/mobile.md", when: "Register an App for the mobile shell and generate its SDK entry page" },
38
38
  { id: "files", file: "reference/files.md", when: "Needs NAS files" },
39
39
  {
@@ -52,6 +52,6 @@ export function tcpSDKProblem(backend) {
52
52
  export function tcpPolicyFlag(m) {
53
53
  if (!m.tcpListeners)
54
54
  return [];
55
- const policy = Buffer.from(JSON.stringify({ schema: 1, listeners: m.tcpListeners })).toString('base64url');
55
+ const policy = Buffer.from(JSON.stringify({ schema: 1, listeners: readTCPListeners(m.tcpListeners) })).toString('base64url');
56
56
  return [`-X github.com/synopackageland/syno-pkg-land-sdk/ipc.tcpListenersPolicy=${policy}`];
57
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/cli",
3
- "version": "0.52.0",
3
+ "version": "0.52.2",
4
4
  "description": "Syno Package Land Developer Kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
package/skills/SKILL.md CHANGED
@@ -7,7 +7,8 @@ description: Initialize, extend, check, build, inspect, and deploy Synology appl
7
7
 
8
8
  For native DSM strings and fixed desktop notifications, read
9
9
  [reference/dsm-texts.md](reference/dsm-texts.md) (`synopkgland skill show dsm-texts`).
10
- For raw TCP protocols, read [reference/raw-tcp.md](reference/raw-tcp.md)
10
+ For raw TCP protocols (`scope: loopback` by default, or `scope: all` for all IPv4
11
+ interfaces), read [reference/raw-tcp.md](reference/raw-tcp.md)
11
12
  (`synopkgland skill show raw-tcp`).
12
13
 
13
14
  For mobile registration, entry pages and native-shell capabilities, read
@@ -3,9 +3,8 @@
3
3
  `ipc.ListenTCP(ctx, "mail_relay", port)` returns a `net.Listener` constrained by
4
4
  the native Go package's build-bound manifest declaration. This supports private
5
5
  protocols such as a loopback SMTP relay without permitting arbitrary `net.Listen`
6
- constructors in shipped application binaries. Use a matching CLI with TCP policy
7
- v1 support; look up matching released SDK and CLI versions before updating pins.
8
- No release is made by this change.
6
+ constructors in shipped application binaries. The CLI and Go SDK use TCP policy
7
+ v1 with loopback or all-interface declarations.
9
8
 
10
9
  ```yaml
11
10
  # dsm-package.yaml, schema 2
@@ -29,8 +28,8 @@ A zero requested port selects the manifest default, rather than an ephemeral
29
28
  port. Without `port_range`, only that fixed default is allowed. All ports must
30
29
  be unprivileged integers, 1024–65535. Only the declaration selects the address:
31
30
  `scope: loopback` (default) means `tcp4` on `127.0.0.1`; explicit `scope: all`
32
- means `tcp4` on `0.0.0.0`. IPv6, DNS names, arbitrary host strings and privileged
33
- ports are unsupported. Names use lowercase ASCII letters, digits and underscores,
31
+ means `tcp4` on `0.0.0.0`, exposed on all IPv4 interfaces. IPv6, DNS names,
32
+ arbitrary host strings and privileged ports are unsupported. Names use lowercase ASCII letters, digits and underscores,
34
33
  start with a letter and have at most 64 characters. At most 64 declarations are
35
34
  allowed. Duplicate default ports fail CLI validation; overlapping configurable
36
35
  ranges are allowed and runtime binding decides conflicts. No DSM firewall rule,