@synopackageland/cli 0.42.0 → 0.42.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 +5 -1
- package/dist/cli.js +2 -0
- package/dist/error-registry.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.42.1 (2026-11-01)
|
|
4
|
+
|
|
5
|
+
- Add `--version` and `-V` to report the installed CLI version.
|
|
6
|
+
- Register the installed-App approval diagnostic as `CTL_APP_NEEDS_APPROVAL`
|
|
7
|
+
with the App-scoped approve command, replacing the retired error entry.
|
|
4
8
|
|
|
5
9
|
## 0.42.0 (2026-11-01)
|
|
6
10
|
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { nasFlags, withNasOptions } from './nas/options.js';
|
|
2
2
|
import { upstreamRepository, upstreamMaintainer } from './upstream-attribution.js';
|
|
3
3
|
import { Command, CommanderError } from "commander";
|
|
4
|
+
import { CLI_VERSION } from "./cli-version.js";
|
|
4
5
|
import { existsSync, readFileSync, renameSync, statSync } from "node:fs";
|
|
5
6
|
import { createHash } from "node:crypto";
|
|
6
7
|
import { basename, resolve, dirname, join } from "node:path";
|
|
@@ -322,6 +323,7 @@ async function runCliWithin(argv) {
|
|
|
322
323
|
const program = new Command()
|
|
323
324
|
.name("synopkgland")
|
|
324
325
|
.description("Syno Package Land Developer Kit CLI")
|
|
326
|
+
.version(CLI_VERSION)
|
|
325
327
|
.option("--project <dir>", "App project root")
|
|
326
328
|
.option("--strict-tls", "Verify NAS CA, hostname, validity and recorded certificate")
|
|
327
329
|
.option("--ca <file>", "Verify NAS HTTPS with a PEM CA file")
|
package/dist/error-registry.js
CHANGED
|
@@ -33,7 +33,7 @@ export const ERROR_REGISTRY = {
|
|
|
33
33
|
INIT_HEALTH_INVALID: { code: "INIT_HEALTH_INVALID", description: "The Compose readiness selection is invalid.", suggestion: "Supply both --health-path and --health-status with the actual endpoint and expected 2xx response; redirects are not followed." },
|
|
34
34
|
INIT_UPSTREAM_IMAGE_REQUIRED: { code: "INIT_UPSTREAM_IMAGE_REQUIRED", description: "The official upstream image repository was not selected.", suggestion: "Use init --upstream-fork --upstream-image <official-repository> for Compose." },
|
|
35
35
|
INIT_UPSTREAM_IMAGE_INVALID: { code: "INIT_UPSTREAM_IMAGE_INVALID", description: "The upstream image repository is invalid.", suggestion: "Supply the official repository without a tag or digest; upgrade.sh selects the matching release and resolves its digest." },
|
|
36
|
-
|
|
36
|
+
CTL_APP_NEEDS_APPROVAL: { "code": "CTL_APP_NEEDS_APPROVAL", "description": "The installed App needs approval or re-approval.", "suggestion": "Run synopkgland ctl list --app <package-id> --approve-installed --host <host>." },
|
|
37
37
|
COMPOSE_HEALTH_REQUIRED: { code: "COMPOSE_HEALTH_REQUIRED", description: "Compose web readiness was not selected.", suggestion: "Set compose.web.health.path and expected 2xx status for the actual App; redirects are not followed." },
|
|
38
38
|
CTL_UNSUPPORTED_BACKEND: { "code": "CTL_UNSUPPORTED_BACKEND", "description": "Automatic descriptions require a native SDK backend.", "suggestion": "Disable ctl for binary/Compose wrappers or implement the public contract separately." },
|
|
39
39
|
CTL_DESCRIBE_REQUIRED: { "code": "CTL_DESCRIBE_REQUIRED", "description": "The Go backend has no build-only registry exporter.", "suggestion": "Update the native template and implement --describe using api.DescribeRoutes." },
|