@qomicex/cli 0.1.4 → 0.1.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/dist/index.js CHANGED
@@ -54,7 +54,7 @@ qomicex v${VERSION} — Qomicex 插件生态 CLI
54
54
  manifest 合法性 + 权限最小化 + 长循环告警 + 签名检查
55
55
  qomicex bump <major|minor|patch> [--version <v>]
56
56
  递增 manifest.json 版本号(或 --version 直接指定)
57
- qomicex publish [--key <k>] [--slug <s>] [--changelog <c>] [--api <url>] [--org-id <id>] [--package <f>] [--yes]
57
+ qomicex publish [--key <k>] [--slug <s>] [--changelog <c>] [--api <url>] [--org-id <id>] [--package <f>] [--skip-build] [--yes]
58
58
  设备流登录 → 注册签名公钥 → 签名 → 上传到商店
59
59
  qomicex --help | -h 显示帮助
60
60
  qomicex --version | -v 显示版本
@@ -110,6 +110,7 @@ async function main() {
110
110
  orgId: typeof options['org-id'] === 'string' ? options['org-id'] : undefined,
111
111
  package: typeof options['package'] === 'string' ? options['package'] : undefined,
112
112
  yes: options['yes'] === true,
113
+ skipBuild: options['skip-build'] === true,
113
114
  });
114
115
  break;
115
116
  default:
@@ -8,7 +8,7 @@ export const SIGNATURE_FILE = 'signature.json';
8
8
  export const CERT_FILE = 'signature.cert.json';
9
9
  export const ALG = 'Ed25519';
10
10
  /** 商店签名根公钥(raw base64),与 launcher plugin_signature.rs ROOT_PUBLIC_KEY_B64 一致 */
11
- export const STORE_ROOT_PUBLIC_KEY_B64 = 'sPKcrc6QR5gcOnQMdq21Jo3yqxN7Mbm61OYxZnKuHE0=';
11
+ export const STORE_ROOT_PUBLIC_KEY_B64 = 'YkYb+Oh8CNHyGwKAEy/1p6Vz8FYp7UafymXoHCZhfmQ=';
12
12
  /** Ed25519 PKCS#8 DER 固定前缀(前 16 字节),后接 32 字节 seed */
13
13
  const ED25519_PKCS8_PREFIX = Uint8Array.from([0x30, 0x2e, 0x02, 0x01, 0x00, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x70, 0x04, 0x22, 0x04, 0x20]);
14
14
  export function bytesToBase64(bytes) {
package/dist/lib/store.js CHANGED
@@ -34,8 +34,9 @@ async function request(base, path, init, token) {
34
34
  body = text;
35
35
  }
36
36
  if (!res.ok) {
37
- const errBody = body;
38
- throw new StoreApiError(res.status, errBody?.message ?? errBody?.error ?? `HTTP ${res.status}`, errBody?.code);
37
+ const err = body?.error;
38
+ const message = typeof err?.message === 'string' ? err.message : body?.message ?? `HTTP ${res.status}`;
39
+ throw new StoreApiError(res.status, message, err?.code ?? body?.code);
39
40
  }
40
41
  return body;
41
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qomicex/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -75,6 +75,6 @@ qomicex verify --package ./release/x.qplugin
75
75
  ## 商店根公钥
76
76
 
77
77
  ```
78
- sPKcrc6QR5gcOnQMdq21Jo3yqxN7Mbm61OYxZnKuHE0=
78
+ YkYb+Oh8CNHyGwKAEy/1p6Vz8FYp7UafymXoHCZhfmQ=
79
79
  ```
80
80
  (raw base64 Ed25519 公钥;开发 / 自建商店需替换为对应根钥)