@synopackageland/cli 0.53.9 → 0.53.10

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.53.10 (2026-11-11)
4
+
5
+ - `entry: admin-only` no longer turns `integration` routes (`api.HandleIntegration` callbacks, which have no DSM session) into `administrators`. Every admin-only App with an integration callback in its v2 `ctl.registry` failed `ctl generate`, `check` and `build` with `CTL_ROUTE_MISMATCH: missing spec or permission mismatch` for the callback. The registry keeps `integration` for these operations, and the generated permissions keep `integration`. Other App routes are still raised to `administrators`, so a registry that declares them below `administrators` is still refused. The v1 description path is unchanged.
6
+
3
7
  ## 0.53.9 (2026-11-11)
4
8
 
5
9
  - The v2 operation registry accepts the SDK 0.53.34 fields `ctl` and `gateway`. `ctl: hidden` keeps an operation off ctl (it can only narrow, like `mcp`). `gateway: "<method>"` routes an operation's ctl command through a dedicated hidden `invoke` operation, for Apps that run ctl through an audited engine. The gateway needs the same permission and audit class, at least the same effect, a JSON RPC route, and serves one operation. `ctl generate`, `check` and description validation refuse invalid values with the same messages as the SDK.
package/dist/bin.js CHANGED
File without changes
@@ -63,7 +63,8 @@ export async function describeApiRoutes(m, bridgeMethods, run) {
63
63
  }
64
64
  if (!Array.isArray(methods) || methods.some(item => typeof item.method !== 'string' || typeof item.permission !== 'string'))
65
65
  throw new StandaloneBuildError('CTL_DESCRIBE_FAILED', 'Invalid registry snapshot.');
66
- return methods.map(route => m.entry === 'admin-only' && !['identity.status', 'identity.login', 'identity.session', 'identity.logout'].includes(route.method) ? { ...route, permission: 'administrators' } : route);
66
+ // Integration callbacks carry no DSM session, so admin-only keeps them as integration.
67
+ return methods.map(route => m.entry === 'admin-only' && route.permission !== 'integration' && !['identity.status', 'identity.login', 'identity.session', 'identity.logout'].includes(route.method) ? { ...route, permission: 'administrators' } : route);
67
68
  }
68
69
  /** Retain the v1 protocol for existing Apps; new registries use the v2 path above. */
69
70
  function buildLegacyApiDescription(m, methods) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synopackageland/cli",
3
- "version": "0.53.9",
3
+ "version": "0.53.10",
4
4
  "description": "Syno Package Land Developer Kit CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,6 +25,20 @@
25
25
  "docs/compose-admin.md",
26
26
  "docs/install-memory.md"
27
27
  ],
28
+ "scripts": {
29
+ "check:docs": "node --test scripts/check-doc-versions.test.mjs && node scripts/check-doc-versions.mjs",
30
+ "build": "rm -rf dist && node scripts/prepare-native-http.mjs && tsc",
31
+ "test": "pnpm run build && node --import tsx --import ./test/helpers/strict-dsm-setup.ts --test --test-concurrency=${SYNOPKGLAND_GATE_JOBS:-3} test/*.test.ts test/ctl/*.test.ts",
32
+ "test:glossary": "node --test scripts/test/glossary-drift.test.mjs",
33
+ "test:scripts": "node --test scripts/test/gate.test.mjs scripts/test/release.test.mjs scripts/test/pack-docker.test.mjs scripts/test/npm-pack.test.mjs scripts/test/executor-bump.test.mjs scripts/test/smoke-exports.test.mjs scripts/test/parallel.test.mjs scripts/test/scaffold-matrix.test.mjs scripts/test/frontend-deps.test.mjs scripts/test/docker-gate.test.mjs scripts/test/gate-plan.test.mjs scripts/test/gates.test.mjs && python3 scripts/test/npm-publish.py",
34
+ "gates": "bash scripts/ci/gates.sh",
35
+ "gates:fast": "bash scripts/ci/gates.sh",
36
+ "prepublishOnly": "pnpm run build && node --input-type=module -e 'import {enforceRepositorySecrets} from \"./dist/secret-files.js\"; enforceRepositorySecrets(process.cwd())'",
37
+ "gates:full": "bash scripts/ci/gates.sh --full",
38
+ "test:basic": "node --import tsx --test test/schema.test.ts test/standalone-manifest.test.ts test/native-arch.test.ts test/archive-inventory.test.ts test/secret-files.test.ts",
39
+ "check:dsm-contract": "node scripts/check-dsm-api-contract.mjs",
40
+ "check:dsm-hub": "node scripts/check-dsm-api-hub.mjs"
41
+ },
28
42
  "dependencies": {
29
43
  "@napi-rs/keyring": "^2.1.1",
30
44
  "@synopackageland/templates": "~0.42.0",
@@ -85,17 +99,5 @@
85
99
  "./native-layout": "./dist/standalone/native-layout.js",
86
100
  "./e2e": "./dist/e2e/dsm.js"
87
101
  },
88
- "scripts": {
89
- "check:docs": "node --test scripts/check-doc-versions.test.mjs && node scripts/check-doc-versions.mjs",
90
- "build": "rm -rf dist && node scripts/prepare-native-http.mjs && tsc",
91
- "test": "pnpm run build && node --import tsx --import ./test/helpers/strict-dsm-setup.ts --test --test-concurrency=${SYNOPKGLAND_GATE_JOBS:-3} test/*.test.ts test/ctl/*.test.ts",
92
- "test:glossary": "node --test scripts/test/glossary-drift.test.mjs",
93
- "test:scripts": "node --test scripts/test/gate.test.mjs scripts/test/release.test.mjs scripts/test/pack-docker.test.mjs scripts/test/npm-pack.test.mjs scripts/test/executor-bump.test.mjs scripts/test/smoke-exports.test.mjs scripts/test/parallel.test.mjs scripts/test/scaffold-matrix.test.mjs scripts/test/frontend-deps.test.mjs scripts/test/docker-gate.test.mjs scripts/test/gate-plan.test.mjs scripts/test/gates.test.mjs && python3 scripts/test/npm-publish.py",
94
- "gates": "bash scripts/ci/gates.sh",
95
- "gates:fast": "bash scripts/ci/gates.sh",
96
- "gates:full": "bash scripts/ci/gates.sh --full",
97
- "test:basic": "node --import tsx --test test/schema.test.ts test/standalone-manifest.test.ts test/native-arch.test.ts test/archive-inventory.test.ts test/secret-files.test.ts",
98
- "check:dsm-contract": "node scripts/check-dsm-api-contract.mjs",
99
- "check:dsm-hub": "node scripts/check-dsm-api-hub.mjs"
100
- }
101
- }
102
+ "packageManager": "pnpm@12.18.0"
103
+ }