@lobehub/cli 0.0.139 → 0.0.141

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
@@ -24182,7 +24182,7 @@ const GOMS_KLM_TIMING_SECONDS = {
24182
24182
  };
24183
24183
 
24184
24184
  //#endregion
24185
- //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
24185
+ //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
24186
24186
  /**
24187
24187
  * Creates an observable. `subscribe` runs for each subscriber, and can
24188
24188
  * return a function that cleans up when it unsubscribes.
@@ -24408,7 +24408,7 @@ function observableToAsyncIterable(observable, signal) {
24408
24408
  }
24409
24409
 
24410
24410
  //#endregion
24411
- //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
24411
+ //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
24412
24412
  /**
24413
24413
  * Shares one subscription to the source between all subscribers. It
24414
24414
  * starts with the first subscriber and ends when the last unsubscribes.
@@ -24534,7 +24534,7 @@ function behaviorSubject(initialValue) {
24534
24534
  }
24535
24535
 
24536
24536
  //#endregion
24537
- //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
24537
+ //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
24538
24538
  /** @internal */
24539
24539
  function createChain(opts) {
24540
24540
  return observable$1((observer) => {
@@ -24553,7 +24553,7 @@ function createChain(opts) {
24553
24553
  }
24554
24554
 
24555
24555
  //#endregion
24556
- //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
24556
+ //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
24557
24557
  function _typeof$1(o) {
24558
24558
  "@babel/helpers - typeof";
24559
24559
  return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -24607,7 +24607,7 @@ function _objectSpread2$1(e) {
24607
24607
  }
24608
24608
 
24609
24609
  //#endregion
24610
- //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
24610
+ //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
24611
24611
  /**
24612
24612
  * Check that value is object
24613
24613
  * @internal
@@ -24670,7 +24670,7 @@ const retryableRpcCodes = [
24670
24670
  ];
24671
24671
 
24672
24672
  //#endregion
24673
- //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
24673
+ //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
24674
24674
  const noop$4 = () => {};
24675
24675
  const freezeIfAvailable = (obj) => {
24676
24676
  if (Object.freeze) Object.freeze(obj);
@@ -24775,7 +24775,7 @@ function _objectSpread2(e) {
24775
24775
  }
24776
24776
 
24777
24777
  //#endregion
24778
- //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/asyncGeneratorDelegate-Bmz6asKS.mjs
24778
+ //#region node_modules/.pnpm/@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/asyncGeneratorDelegate-Bmz6asKS.mjs
24779
24779
  /** @internal */
24780
24780
  function transformResultInner(response, transformer) {
24781
24781
  if ("error" in response) {
@@ -24881,7 +24881,7 @@ AsyncGenerator$1.prototype["function" == typeof Symbol && Symbol.asyncIterator |
24881
24881
  };
24882
24882
 
24883
24883
  //#endregion
24884
- //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
24884
+ //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
24885
24885
  /**
24886
24886
  * Whether a value is a `TRPCClientError`, typed for a router or procedure.
24887
24887
  * @see https://trpc.io/docs/client/vanilla/error-handling#catching-a-thrown-error
@@ -24937,7 +24937,7 @@ var TRPCClientError = class TRPCClientError extends Error {
24937
24937
  };
24938
24938
 
24939
24939
  //#endregion
24940
- //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/unstable-internals.mjs
24940
+ //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/unstable-internals.mjs
24941
24941
  /**
24942
24942
  * @internal
24943
24943
  */
@@ -24964,7 +24964,7 @@ function getTransformer(transformer) {
24964
24964
  }
24965
24965
 
24966
24966
  //#endregion
24967
- //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
24967
+ //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
24968
24968
  const isFunction$1 = (fn) => typeof fn === "function";
24969
24969
  /**
24970
24970
  * The `fetch` to use: `customFetchImpl` if given, or else the global one.
@@ -25100,7 +25100,7 @@ async function httpRequest(opts) {
25100
25100
  }
25101
25101
 
25102
25102
  //#endregion
25103
- //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpLink-B4UwXApa.mjs
25103
+ //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpLink-B4UwXApa.mjs
25104
25104
  /** Whether an input is binary: a `Uint8Array`, `Blob` or `File`. */
25105
25105
  function isOctetType(input) {
25106
25106
  return input instanceof Uint8Array || input instanceof Blob;
@@ -25193,7 +25193,7 @@ function httpLink(opts) {
25193
25193
  }
25194
25194
 
25195
25195
  //#endregion
25196
- //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/wsLink-DYx-NUSN.mjs
25196
+ //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/wsLink-DYx-NUSN.mjs
25197
25197
  /**
25198
25198
  * Get the result of a value or function that returns a value
25199
25199
  * It also optionally accepts typesafe arguments for the function
@@ -25383,7 +25383,7 @@ var WsConnection = class WsConnection {
25383
25383
  _defineProperty$1(WsConnection, "connectCount", 0);
25384
25384
 
25385
25385
  //#endregion
25386
- //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/index.mjs
25386
+ //#region node_modules/.pnpm/@trpc+client@11.29.5_@trpc+server@11.29.5_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/index.mjs
25387
25387
  const observerKeys = [
25388
25388
  "onStarted",
25389
25389
  "onData",
@@ -26528,7 +26528,7 @@ const cliVersion = pkg.version;
26528
26528
  const cliNodeEngine = pkg.engines?.node;
26529
26529
 
26530
26530
  //#endregion
26531
- //#region ../../node_modules/.pnpm/@trpc+server@11.29.4_@types+aws-lambda@8.10.164_@types+express@5.0.6_@types+ws@8.18.2_n_1da893035cfd9de0030f23e9af289d37/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
26531
+ //#region ../../node_modules/.pnpm/@trpc+server@11.29.5_@types+aws-lambda@8.10.164_@types+express@5.0.6_@types+ws@8.18.2_n_d0ee0c058429d0f6dbf2db4bfd1f1e09/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
26532
26532
  /**
26533
26533
  * Creates an observable. `subscribe` runs for each subscriber, and can
26534
26534
  * return a function that cleans up when it unsubscribes.
@@ -328105,7 +328105,7 @@ var init_stream = __esmMin((() => {
328105
328105
  }));
328106
328106
 
328107
328107
  //#endregion
328108
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/buffer_utils.js
328108
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/buffer_utils.js
328109
328109
  function concat(...buffers) {
328110
328110
  const size = buffers.reduce((acc, { length }) => acc + length, 0), buf = new Uint8Array(size);
328111
328111
  let i = 0;
@@ -328173,7 +328173,7 @@ var init_buffer_utils = __esmMin((() => {
328173
328173
  }));
328174
328174
 
328175
328175
  //#endregion
328176
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/util/errors.js
328176
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/util/errors.js
328177
328177
  var errors_exports = /* @__PURE__ */ __exportAll$2({
328178
328178
  JOSEAlgNotAllowed: () => JOSEAlgNotAllowed,
328179
328179
  JOSEError: () => JOSEError,
@@ -328295,7 +328295,7 @@ var init_errors = __esmMin((() => {
328295
328295
  }));
328296
328296
 
328297
328297
  //#endregion
328298
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/util/base64url.js
328298
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/util/base64url.js
328299
328299
  var base64url_exports = /* @__PURE__ */ __exportAll$2({
328300
328300
  decode: () => decode$1,
328301
328301
  encode: () => encode$1
@@ -328317,7 +328317,7 @@ var init_base64url = __esmMin((() => {
328317
328317
  }));
328318
328318
 
328319
328319
  //#endregion
328320
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/validate.js
328320
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/validate.js
328321
328321
  function assertUint8Array(input, label) {
328322
328322
  if (!(input instanceof Uint8Array)) throw new TypeError(`${label} must be an instance of Uint8Array`);
328323
328323
  }
@@ -328418,7 +328418,7 @@ var init_validate = __esmMin((() => {
328418
328418
  }));
328419
328419
 
328420
328420
  //#endregion
328421
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/key.js
328421
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/key.js
328422
328422
  async function prepareKey(entry, key, usage) {
328423
328423
  const { alg, secret } = entry, requiresPrivateKey = usage === "decrypt" || usage === "sign";
328424
328424
  if (secret && key instanceof Uint8Array) return key;
@@ -328533,6 +328533,7 @@ var init_key = __esmMin((() => {
328533
328533
  const expected = usage === "sign" || usage === "verify" ? "sig" : "enc";
328534
328534
  if (key.use !== expected) throw new TypeError(`Invalid key for this operation, its "use" must be "${expected}" when present`);
328535
328535
  }
328536
+ if (key.kty === "AKP" && key.alg === void 0) throw new TypeError("missing \"alg\" (Algorithm) Parameter value");
328536
328537
  if (key.alg !== void 0 && key.alg !== alg) throw new TypeError(`Invalid key for this operation, its "alg" must be "${alg}" when present`);
328537
328538
  if (Array.isArray(key.key_ops)) {
328538
328539
  const expectedKeyOp = usage === "encrypt" || usage === "decrypt" ? entry.ops?.[usage === "encrypt" ? 0 : 1] : usage;
@@ -328559,7 +328560,7 @@ var init_key = __esmMin((() => {
328559
328560
  }));
328560
328561
 
328561
328562
  //#endregion
328562
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/content_encryption.js
328563
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/content_encryption.js
328563
328564
  function checkCekLength(cek, expected) {
328564
328565
  const actual = cek.byteLength << 3;
328565
328566
  if (actual !== expected) throw new JWEInvalid(`Invalid Content Encryption Key length. Expected ${expected} bits, got ${actual} bits`);
@@ -328653,7 +328654,7 @@ var init_content_encryption = __esmMin((() => {
328653
328654
  }));
328654
328655
 
328655
328656
  //#endregion
328656
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/key_descriptor.js
328657
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/key_descriptor.js
328657
328658
  function table(entries) {
328658
328659
  const out = { __proto__: null };
328659
328660
  for (const alg in entries) out[alg] = {
@@ -328665,7 +328666,7 @@ function table(entries) {
328665
328666
  var init_key_descriptor = __esmMin((() => {}));
328666
328667
 
328667
328668
  //#endregion
328668
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jwe_algorithms.js
328669
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jwe_algorithms.js
328669
328670
  function rsaes(bits) {
328670
328671
  return {
328671
328672
  kty: ["RSA"],
@@ -328788,7 +328789,7 @@ var init_jwe_algorithms = __esmMin((() => {
328788
328789
  }));
328789
328790
 
328790
328791
  //#endregion
328791
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/key_management.js
328792
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/key_management.js
328792
328793
  function checkEcdhCryptoKey(key, usage) {
328793
328794
  if (key.algorithm.name !== "ECDH" && key.algorithm.name !== "X25519") throw new TypeError("CryptoKey does not support this operation, its algorithm.name must be ECDH or X25519");
328794
328795
  checkUsage(key, usage);
@@ -328992,7 +328993,7 @@ var init_key_management = __esmMin((() => {
328992
328993
  }));
328993
328994
 
328994
328995
  //#endregion
328995
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/deflate.js
328996
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/deflate.js
328996
328997
  function validateZip(joseHeader, protectedHeader) {
328997
328998
  if (joseHeader.zip !== void 0 && joseHeader.zip !== "DEF") throw new JOSENotSupported("Unsupported JWE \"zip\" (Compression Algorithm) Header Parameter value.");
328998
328999
  if (joseHeader.zip !== void 0 && !protectedHeader?.zip) throw new JWEInvalid("JWE \"zip\" (Compression Algorithm) Header Parameter MUST be in a protected header.");
@@ -329025,7 +329026,7 @@ var init_deflate = __esmMin((() => {
329025
329026
  }));
329026
329027
 
329027
329028
  //#endregion
329028
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jwe_decrypt.js
329029
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jwe_decrypt.js
329029
329030
  function snapshotSharedJWE(jwe) {
329030
329031
  const { aad, ciphertext, iv, protected: encodedProtected, tag, unprotected } = jwe;
329031
329032
  if (iv !== void 0 && (typeof iv != "string" || !iv)) throw new JWEInvalid("JWE Initialization Vector incorrect type");
@@ -329153,7 +329154,7 @@ async function decryptJWE(jwe, shared, key, token = shareJWE(jwe)) {
329153
329154
  const decompressionLimit = maxDecompressedLength ?? 25e4;
329154
329155
  if (decompressionLimit === 0) throw new JOSENotSupported("JWE \"zip\" (Compression Algorithm) Header Parameter is not supported.");
329155
329156
  plaintext = await decompress(plaintext, decompressionLimit).catch((cause) => {
329156
- throw cause instanceof JWEInvalid ? cause : new JWEInvalid("Failed to decompress plaintext", { cause });
329157
+ throw cause instanceof JWEInvalid || cause instanceof JOSENotSupported ? cause : new JWEInvalid("Failed to decompress plaintext", { cause });
329157
329158
  });
329158
329159
  }
329159
329160
  return {
@@ -329189,7 +329190,7 @@ var init_jwe_decrypt = __esmMin((() => {
329189
329190
  }));
329190
329191
 
329191
329192
  //#endregion
329192
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/compact/decrypt.js
329193
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/compact/decrypt.js
329193
329194
  async function compactDecrypt(jwe, key, options) {
329194
329195
  return decryptCompact(jwe, prepareDecrypt(options), key);
329195
329196
  }
@@ -329198,7 +329199,7 @@ var init_decrypt$3 = __esmMin((() => {
329198
329199
  }));
329199
329200
 
329200
329201
  //#endregion
329201
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js
329202
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js
329202
329203
  async function flattenedDecrypt(jwe, key, options) {
329203
329204
  if (!isObject$1(jwe)) throw new JWEInvalid("Flattened JWE must be an object");
329204
329205
  const shared = snapshotSharedJWE(jwe), [recipient, , error] = snapshotRecipientJWE(jwe);
@@ -329216,7 +329217,7 @@ var init_decrypt$2 = __esmMin((() => {
329216
329217
  }));
329217
329218
 
329218
329219
  //#endregion
329219
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/general/decrypt.js
329220
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/general/decrypt.js
329220
329221
  async function generalDecrypt(jwe, key, options) {
329221
329222
  if (!isObject$1(jwe)) throw new JWEInvalid("General JWE must be an object");
329222
329223
  const inputRecipients = jwe.recipients;
@@ -329253,7 +329254,7 @@ var init_decrypt$1 = __esmMin((() => {
329253
329254
  }));
329254
329255
 
329255
329256
  //#endregion
329256
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jwe_encrypt.js
329257
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jwe_encrypt.js
329257
329258
  function checkDisjoint(protectedHeader, unprotectedHeader, sharedUnprotectedHeader) {
329258
329259
  if (!isDisjoint(protectedHeader, unprotectedHeader, sharedUnprotectedHeader)) throw new JWEInvalid("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");
329259
329260
  }
@@ -329304,7 +329305,7 @@ async function encryptJWE(input, checked, key) {
329304
329305
  const encodedProtectedHeader = protectedHeader ? encode$1(JSON.stringify(protectedHeader)) : "", encodedAad = aad?.byteLength ? encode$1(aad) : void 0, additionalAuthenticatedData = encode$2(encodedAad ? `${encodedProtectedHeader}.${encodedAad}` : encodedProtectedHeader);
329305
329306
  let plaintext = inputPlaintext;
329306
329307
  joseHeader.zip === "DEF" && (plaintext = await compress(plaintext).catch((cause) => {
329307
- throw new JWEInvalid("Failed to compress plaintext", { cause });
329308
+ throw cause instanceof JOSENotSupported ? cause : new JWEInvalid("Failed to compress plaintext", { cause });
329308
329309
  }));
329309
329310
  let ciphertext, tag, iv;
329310
329311
  algEntry.mode === "integrated-encryption" ? [encryptedKey, ciphertext] = await algEntry.encrypt(cek, plaintext, additionalAuthenticatedData, protectedHeader, joseHeader, keyManagementParameters) : {ciphertext, tag, iv} = await encrypt(encEntry, plaintext, cek, inputIv, additionalAuthenticatedData);
@@ -329336,7 +329337,7 @@ var init_jwe_encrypt = __esmMin((() => {
329336
329337
  }));
329337
329338
 
329338
329339
  //#endregion
329339
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/general/encrypt.js
329340
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/general/encrypt.js
329340
329341
  var IndividualRecipient, GeneralEncrypt;
329341
329342
  var init_encrypt$3 = __esmMin((() => {
329342
329343
  init_validate();
@@ -329449,7 +329450,7 @@ var init_encrypt$3 = __esmMin((() => {
329449
329450
  }));
329450
329451
 
329451
329452
  //#endregion
329452
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jws_algorithms.js
329453
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jws_algorithms.js
329453
329454
  function hmac(bits) {
329454
329455
  const subtle = {
329455
329456
  name: "HMAC",
@@ -329545,7 +329546,7 @@ var init_jws_algorithms = __esmMin((() => {
329545
329546
  }));
329546
329547
 
329547
329548
  //#endregion
329548
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jws_verify.js
329549
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jws_verify.js
329549
329550
  function snapshotJws(jws, sharedPayload) {
329550
329551
  const encodedProtectedHeader = jws.protected, inputHeader = jws.header, header = isObject$1(inputHeader) ? { ...inputHeader } : inputHeader;
329551
329552
  let payload = sharedPayload ? sharedPayload[0] : jws.payload;
@@ -329628,7 +329629,7 @@ var init_jws_verify = __esmMin((() => {
329628
329629
  }));
329629
329630
 
329630
329631
  //#endregion
329631
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/compact/verify.js
329632
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/compact/verify.js
329632
329633
  async function compactVerify(jws, key, options) {
329633
329634
  const [result] = await verifyCompact(jws, prepareVerify(options), key);
329634
329635
  return result;
@@ -329638,7 +329639,7 @@ var init_verify$3 = __esmMin((() => {
329638
329639
  }));
329639
329640
 
329640
329641
  //#endregion
329641
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/flattened/verify.js
329642
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/flattened/verify.js
329642
329643
  async function flattenedVerify(jws, key, options) {
329643
329644
  if (!isObject$1(jws)) throw new JWSInvalid("Flattened JWS must be an object");
329644
329645
  const [result] = await verifySignature(snapshotJws(jws), prepareVerify(options), key, encodeJsonUnencodedPayload);
@@ -329651,7 +329652,7 @@ var init_verify$2 = __esmMin((() => {
329651
329652
  }));
329652
329653
 
329653
329654
  //#endregion
329654
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/general/verify.js
329655
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/general/verify.js
329655
329656
  function snapshotSignature(signature, payload) {
329656
329657
  try {
329657
329658
  const jws = snapshotJws(signature, [payload]), protectedHeader = parseProtectedHeader(jws.protected), { b64, crit } = protectedHeader;
@@ -329687,7 +329688,7 @@ var init_verify$1 = __esmMin((() => {
329687
329688
  }));
329688
329689
 
329689
329690
  //#endregion
329690
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jwt_claims_set.js
329691
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jwt_claims_set.js
329691
329692
  function invalidDuration() {
329692
329693
  throw new TypeError("Invalid time period format");
329693
329694
  }
@@ -329696,7 +329697,7 @@ function secs(str) {
329696
329697
  const matched = REGEX.exec(str);
329697
329698
  (!matched || matched[4] && matched[1]) && invalidDuration();
329698
329699
  const value = parseFloat(matched[2]), durationSeconds = Math.round(value * multipliers[matched[3][0].toLowerCase()]);
329699
- return Number.isFinite(durationSeconds) || invalidDuration(), matched[1] === "-" || matched[4] === "ago" ? -durationSeconds : durationSeconds;
329700
+ return Number.isFinite(durationSeconds) || invalidDuration(), matched[1] === "-" || matched[4]?.toLowerCase() === "ago" ? -durationSeconds : durationSeconds;
329700
329701
  }
329701
329702
  function validateInput(label, input) {
329702
329703
  if (!Number.isFinite(input)) throw new TypeError(`Invalid ${label} input`);
@@ -329822,7 +329823,7 @@ var init_jwt_claims_set = __esmMin((() => {
329822
329823
  }));
329823
329824
 
329824
329825
  //#endregion
329825
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/verify.js
329826
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/verify.js
329826
329827
  async function jwtVerify(jwt, key, options) {
329827
329828
  const [verified, b64] = await verifyCompact(jwt, prepareVerify(options), key);
329828
329829
  if (!b64) throw new JWTInvalid("JWTs MUST NOT use unencoded payload");
@@ -329839,7 +329840,7 @@ var init_verify = __esmMin((() => {
329839
329840
  }));
329840
329841
 
329841
329842
  //#endregion
329842
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/decrypt.js
329843
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/decrypt.js
329843
329844
  async function jwtDecrypt(jwt, key, options) {
329844
329845
  const { plaintext, ...result } = await decryptCompact(jwt, prepareDecrypt(options), key), { protectedHeader } = result, payload = validateClaimsSet(protectedHeader, plaintext, options);
329845
329846
  for (const claim of [
@@ -329859,7 +329860,7 @@ var init_decrypt = __esmMin((() => {
329859
329860
  }));
329860
329861
 
329861
329862
  //#endregion
329862
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/compact/encrypt.js
329863
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/compact/encrypt.js
329863
329864
  var CompactEncrypt;
329864
329865
  var init_encrypt$2 = __esmMin((() => {
329865
329866
  init_validate();
@@ -329888,7 +329889,7 @@ var init_encrypt$2 = __esmMin((() => {
329888
329889
  }));
329889
329890
 
329890
329891
  //#endregion
329891
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js
329892
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js
329892
329893
  var FlattenedEncrypt;
329893
329894
  var init_encrypt$1 = __esmMin((() => {
329894
329895
  init_validate();
@@ -329926,7 +329927,7 @@ var init_encrypt$1 = __esmMin((() => {
329926
329927
  }));
329927
329928
 
329928
329929
  //#endregion
329929
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/jws_sign.js
329930
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/jws_sign.js
329930
329931
  async function createSignature(input, key, rejectUnencoded) {
329931
329932
  let [payload, protectedHeader, unprotectedHeader, crit] = input, encodedProtectedHeader = "";
329932
329933
  if (protectedHeader !== void 0) {
@@ -329978,7 +329979,7 @@ var init_jws_sign = __esmMin((() => {
329978
329979
  }));
329979
329980
 
329980
329981
  //#endregion
329981
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/compact/sign.js
329982
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/compact/sign.js
329982
329983
  var CompactSign;
329983
329984
  var init_sign$3 = __esmMin((() => {
329984
329985
  init_jws_sign();
@@ -330001,7 +330002,7 @@ var init_sign$3 = __esmMin((() => {
330001
330002
  }));
330002
330003
 
330003
330004
  //#endregion
330004
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/flattened/sign.js
330005
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/flattened/sign.js
330005
330006
  var FlattenedSign;
330006
330007
  var init_sign$2 = __esmMin((() => {
330007
330008
  init_jws_sign();
@@ -330027,7 +330028,7 @@ var init_sign$2 = __esmMin((() => {
330027
330028
  }));
330028
330029
 
330029
330030
  //#endregion
330030
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jws/general/sign.js
330031
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jws/general/sign.js
330031
330032
  var IndividualSignature, GeneralSign;
330032
330033
  var init_sign$1 = __esmMin((() => {
330033
330034
  init_jws_sign();
@@ -330096,7 +330097,7 @@ var init_sign$1 = __esmMin((() => {
330096
330097
  }));
330097
330098
 
330098
330099
  //#endregion
330099
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/sign.js
330100
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/sign.js
330100
330101
  var SignJWT_base, SignJWT;
330101
330102
  var init_sign = __esmMin((() => {
330102
330103
  init_jws_sign();
@@ -330118,7 +330119,7 @@ var init_sign = __esmMin((() => {
330118
330119
  }));
330119
330120
 
330120
330121
  //#endregion
330121
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/encrypt.js
330122
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/encrypt.js
330122
330123
  var EncryptJWT_base, EncryptJWT;
330123
330124
  var init_encrypt = __esmMin((() => {
330124
330125
  init_jwe_encrypt();
@@ -330152,21 +330153,18 @@ var init_encrypt = __esmMin((() => {
330152
330153
  return this.#replicateAudienceAsHeader = !0, this;
330153
330154
  }
330154
330155
  async encrypt(key, options) {
330155
- const plaintext = jwtClaimsSetBytes(this);
330156
- this.#input[1] && (this.#replicateIssuerAsHeader || this.#replicateSubjectAsHeader || this.#replicateAudienceAsHeader) && (this.#input[1] = {
330157
- ...this.#input[1],
330158
- iss: this.#replicateIssuerAsHeader ? jwtClaim(this, "iss") : void 0,
330159
- sub: this.#replicateSubjectAsHeader ? jwtClaim(this, "sub") : void 0,
330160
- aud: this.#replicateAudienceAsHeader ? jwtClaim(this, "aud") : void 0
330161
- });
330162
330156
  const input = [...this.#input];
330163
- return input[0] = plaintext, compactJWE(await createJWE(input, key, options));
330157
+ if (input[0] = jwtClaimsSetBytes(this), input[1] && (this.#replicateIssuerAsHeader || this.#replicateSubjectAsHeader || this.#replicateAudienceAsHeader)) {
330158
+ const header = { ...input[1] };
330159
+ this.#replicateIssuerAsHeader && (header.iss = jwtClaim(this, "iss")), this.#replicateSubjectAsHeader && (header.sub = jwtClaim(this, "sub")), this.#replicateAudienceAsHeader && (header.aud = jwtClaim(this, "aud")), input[1] = header;
330160
+ }
330161
+ return compactJWE(await createJWE(input, key, options));
330164
330162
  }
330165
330163
  };
330166
330164
  }));
330167
330165
 
330168
330166
  //#endregion
330169
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/key_algorithm.js
330167
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/key_algorithm.js
330170
330168
  function unsupportedAlg(source = "JWK \"alg\" (Algorithm) Parameter") {
330171
330169
  throw new JOSENotSupported(`Invalid or unsupported ${source} value`);
330172
330170
  }
@@ -330182,7 +330180,7 @@ var init_key_algorithm = __esmMin((() => {
330182
330180
  }));
330183
330181
 
330184
330182
  //#endregion
330185
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/lib/asn1.js
330183
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/lib/asn1.js
330186
330184
  function parseKeyHeader(state, keyFormat) {
330187
330185
  if (expectTag(state, 48, `Invalid ${keyFormat === "spki" ? "SPKI" : "PKCS#8"} structure`), parseLength(state), keyFormat === "pkcs8") {
330188
330186
  expectTag(state, 2, "Expected version field");
@@ -330334,7 +330332,7 @@ ${(b64.match(/.{1,64}/g) || []).join(`
330334
330332
  }));
330335
330333
 
330336
330334
  //#endregion
330337
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/key/export.js
330335
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/key/export.js
330338
330336
  function exportSPKI(key) {
330339
330337
  return toSPKI(key);
330340
330338
  }
@@ -330362,7 +330360,7 @@ var init_export = __esmMin((() => {
330362
330360
  }));
330363
330361
 
330364
330362
  //#endregion
330365
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwk/thumbprint.js
330363
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwk/thumbprint.js
330366
330364
  async function calculateJwkThumbprint(key, digestAlgorithm) {
330367
330365
  let jwk;
330368
330366
  if (isObject$1(key)) {
@@ -330432,7 +330430,7 @@ var init_thumbprint = __esmMin((() => {
330432
330430
  }));
330433
330431
 
330434
330432
  //#endregion
330435
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwk/embedded.js
330433
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwk/embedded.js
330436
330434
  async function EmbeddedJWK(protectedHeader, token) {
330437
330435
  const joseHeader = {
330438
330436
  ...protectedHeader,
@@ -330460,7 +330458,7 @@ var init_embedded = __esmMin((() => {
330460
330458
  }));
330461
330459
 
330462
330460
  //#endregion
330463
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwks/local.js
330461
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwks/local.js
330464
330462
  function isUsableJWK(jwk, entry, alg, kid) {
330465
330463
  const { kty, key_ops: keyOps, ext, kid: jwkKid, alg: jwkAlg, use, crv } = jwk;
330466
330464
  return (ext === void 0 || typeof ext == "boolean") && (keyOps === void 0 || Array.isArray(keyOps) && keyOps.every((operation, index) => typeof operation == "string" && keyOps.indexOf(operation) === index) && keyOps.includes("verify")) && entry.kty.includes(kty) && (kid === void 0 || typeof kid == "string" && kid === jwkKid) && (jwkAlg === void 0 ? kty !== "AKP" : alg === jwkAlg) && (use === void 0 || use === "sig") && (!entry.crv || crv === entry.crv);
@@ -330517,7 +330515,7 @@ var init_local = __esmMin((() => {
330517
330515
  }));
330518
330516
 
330519
330517
  //#endregion
330520
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwks/remote.js
330518
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwks/remote.js
330521
330519
  function isCloudflareWorkers() {
330522
330520
  return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
330523
330521
  }
@@ -330534,7 +330532,7 @@ async function fetchJwks(url, headers, signal, fetchImpl = fetch) {
330534
330532
  try {
330535
330533
  return await response.json();
330536
330534
  } catch (cause) {
330537
- throw new JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON", { cause });
330535
+ throw signal.aborted ? new JWKSTimeout(void 0, { cause }) : new JOSEError("Failed to parse the JSON Web Key Set HTTP response as JSON", { cause });
330538
330536
  }
330539
330537
  }
330540
330538
  function isFreshFor(timestamp, duration) {
@@ -330608,13 +330606,13 @@ var init_remote = __esmMin((() => {
330608
330606
  init_local();
330609
330607
  init_validate();
330610
330608
  ;
330611
- (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.17");
330609
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT = "jose/v6.2.18");
330612
330610
  customFetch = /* @__PURE__ */ Symbol();
330613
330611
  jwksCache = /* @__PURE__ */ Symbol();
330614
330612
  }));
330615
330613
 
330616
330614
  //#endregion
330617
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/jwt/unsecured.js
330615
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/jwt/unsecured.js
330618
330616
  var UnsecuredJWT_base, UnsecuredJWT;
330619
330617
  var init_unsecured = __esmMin((() => {
330620
330618
  init_base64url();
@@ -330649,7 +330647,7 @@ var init_unsecured = __esmMin((() => {
330649
330647
  }));
330650
330648
 
330651
330649
  //#endregion
330652
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/key/import.js
330650
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/key/import.js
330653
330651
  async function importSPKI(spki, alg, options) {
330654
330652
  if (typeof spki != "string" || spki.indexOf("-----BEGIN PUBLIC KEY-----") !== 0) throw new TypeError("\"spki\" must be SPKI formatted string");
330655
330653
  return fromSPKI(spki, alg, options);
@@ -330690,7 +330688,7 @@ var init_import = __esmMin((() => {
330690
330688
  }));
330691
330689
 
330692
330690
  //#endregion
330693
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/util/decode_protected_header.js
330691
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/util/decode_protected_header.js
330694
330692
  function decodeProtectedHeader(token) {
330695
330693
  let encodedProtectedHeader;
330696
330694
  if (typeof token == "string") {
@@ -330707,7 +330705,7 @@ var init_decode_protected_header = __esmMin((() => {
330707
330705
  }));
330708
330706
 
330709
330707
  //#endregion
330710
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/util/decode_jwt.js
330708
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/util/decode_jwt.js
330711
330709
  function decodeJwt(jwt) {
330712
330710
  if (typeof jwt != "string") throw new JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");
330713
330711
  const { 1: encodedPayload, length } = jwt.split(".");
@@ -330737,7 +330735,7 @@ var init_decode_jwt = __esmMin((() => {
330737
330735
  }));
330738
330736
 
330739
330737
  //#endregion
330740
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/key/generate_key_pair.js
330738
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/key/generate_key_pair.js
330741
330739
  function getModulusLengthOption(options) {
330742
330740
  const modulusLength = options?.modulusLength ?? 2048;
330743
330741
  if (typeof modulusLength != "number" || !Number.isInteger(modulusLength) || modulusLength < 2048) throw new JOSENotSupported("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");
@@ -330773,7 +330771,7 @@ var init_generate_key_pair = __esmMin((() => {
330773
330771
  }));
330774
330772
 
330775
330773
  //#endregion
330776
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/key/generate_secret.js
330774
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/key/generate_secret.js
330777
330775
  async function generateSecret(alg, options) {
330778
330776
  const extractable = validateExtractableOption(options?.extractable);
330779
330777
  let keyLengthBits, algorithm, keyUsages;
@@ -330819,7 +330817,7 @@ var init_generate_secret = __esmMin((() => {
330819
330817
  }));
330820
330818
 
330821
330819
  //#endregion
330822
- //#region node_modules/.pnpm/jose@6.2.17/node_modules/jose/dist/webapi/index.js
330820
+ //#region node_modules/.pnpm/jose@6.2.18/node_modules/jose/dist/webapi/index.js
330823
330821
  var webapi_exports = /* @__PURE__ */ __exportAll$2({
330824
330822
  CompactEncrypt: () => CompactEncrypt,
330825
330823
  CompactSign: () => CompactSign,
package/man/man1/lh.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Code generated by `npm run man:generate`; DO NOT EDIT.
2
2
  .\" Manual command details come from the Commander command tree.
3
- .TH LH 1 "" "@lobehub/cli 0.0.139" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.141" "User Commands"
4
4
  .SH NAME
5
5
  lh \- LobeHub CLI \- manage and connect to LobeHub services
6
6
  .SH SYNOPSIS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/cli",
3
- "version": "0.0.139",
3
+ "version": "0.0.141",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lobehub/lobehub",
@@ -83,5 +83,5 @@
83
83
  "access": "public",
84
84
  "registry": "https://registry.npmjs.org"
85
85
  },
86
- "gitHead": "479ae3060dfe09a8f8317e521e45b7ebdb1d0bdb"
86
+ "gitHead": "d46a77aa0da62fcb13cbced8dda127339ee85a0d"
87
87
  }