@alpic-ai/api 1.186.1 → 1.186.3

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.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import { AnyContractProcedure, AnySchema, ContractProcedureDef, ErrorMap, ErrorMapItem, InferContractRouterInputs, InferContractRouterOutputs, InferSchemaInput, Meta, OpenAPI } from "@orpc/contract";
3
- //#region ../domains/src/intents/schemas.d.ts
4
3
  export declare const intentCategoryColorSchema: z.ZodEnum<{
5
4
  red: "red";
6
5
  orange: "orange";
@@ -13,8 +12,6 @@ export declare const intentCategoryColorSchema: z.ZodEnum<{
13
12
  }>;
14
13
  type IntentCategoryColor = z.infer<typeof intentCategoryColorSchema>;
15
14
  export declare const INTENT_CATEGORY_COLORS: ("red" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "gray")[];
16
- //#endregion
17
- //#region ../domains/src/platforms/schemas.d.ts
18
15
  export declare const AI_PLATFORMS: readonly ["chatgpt", "claudeai"];
19
16
  declare const platformSchema: z.ZodEnum<{
20
17
  chatgpt: "chatgpt";
@@ -22,8 +19,6 @@ declare const platformSchema: z.ZodEnum<{
22
19
  }>;
23
20
  type Platform = z.infer<typeof platformSchema>;
24
21
  export declare const PLATFORM_LABELS: Record<Platform, string>;
25
- //#endregion
26
- //#region ../domains/src/projects/schemas.d.ts
27
22
  export declare const runtimeSchema: z.ZodEnum<{
28
23
  "python3.13": "python3.13";
29
24
  "python3.14": "python3.14";
@@ -37,8 +32,6 @@ export declare const transportSchema: z.ZodEnum<{
37
32
  sse: "sse";
38
33
  streamablehttp: "streamablehttp";
39
34
  }>;
40
- //#endregion
41
- //#region ../domains/src/submissions/schemas.d.ts
42
35
  declare const claudeSubmissionSchemaInternal: z.ZodObject<{
43
36
  id: z.ZodString;
44
37
  environmentId: z.ZodString;
@@ -1384,8 +1377,6 @@ declare const chatgptSubmissionSchemaInternal: z.ZodObject<{
1384
1377
  type ClaudeSubmission = z.infer<typeof claudeSubmissionSchemaInternal>;
1385
1378
  type ChatgptSubmission = z.infer<typeof chatgptSubmissionSchemaInternal>;
1386
1379
  type Submission = ClaudeSubmission | ChatgptSubmission;
1387
- //#endregion
1388
- //#region ../domains/src/telemetry/schemas.d.ts
1389
1380
  export declare const TELEMETRY_SIGNALS: readonly ["logs", "metrics", "traces"];
1390
1381
  export declare const telemetrySignalSchema: z.ZodEnum<{
1391
1382
  logs: "logs";
@@ -1397,8 +1388,6 @@ export declare const otlpProtocolSchema: z.ZodEnum<{
1397
1388
  "http/protobuf": "http/protobuf";
1398
1389
  "http/json": "http/json";
1399
1390
  }>;
1400
- //#endregion
1401
- //#region src/api.contract.d.ts
1402
1391
  export type ApiContext = {
1403
1392
  request: Request & {
1404
1393
  teamIds: string[];
@@ -6265,8 +6254,6 @@ export declare const contractForDocs: {
6265
6254
  };
6266
6255
  export type RouterInput = InferContractRouterInputs<typeof contract>;
6267
6256
  export type RouterOutput = InferContractRouterOutputs<typeof contract>;
6268
- //#endregion
6269
- //#region src/auth-scope.d.ts
6270
6257
  /** Credential scope required by an API route. */
6271
6258
  export type AuthScope = "any" | "user";
6272
6259
  /** Accepts an API key or OAuth access token (default for most routes). */
@@ -6276,8 +6263,6 @@ export declare const AUTH_SCOPE_USER = "user";
6276
6263
  export type RouteAuthMeta = {
6277
6264
  authScope?: AuthScope;
6278
6265
  };
6279
- //#endregion
6280
- //#region ../../node_modules/.pnpm/type-fest@5.10.0/node_modules/type-fest/source/promisable.d.ts
6281
6266
  /**
6282
6267
  Create a type that represents either the value or the value wrapped in `PromiseLike`.
6283
6268
 
@@ -6303,12 +6288,8 @@ await logger(() => Promise.resolve('bar'));
6303
6288
  @category Async
6304
6289
  */
6305
6290
  type Promisable<T> = T | PromiseLike<T>;
6306
- //#endregion
6307
- //#region ../../node_modules/.pnpm/@orpc+shared@1.15.7_@opentelemetry+api@1.9.1/node_modules/@orpc/shared/dist/index.d.mts
6308
6291
  type MaybeOptionalOptions<TOptions> = Record<never, never> extends TOptions ? [options?: TOptions] : [options: TOptions];
6309
6292
  type Value<T, TArgs extends any[] = []> = T | ((...args: TArgs) => T);
6310
- //#endregion
6311
- //#region ../../node_modules/.pnpm/@orpc+client@1.15.7_@opentelemetry+api@1.9.1/node_modules/@orpc/client/dist/index.d.mts
6312
6293
  declare const COMMON_ORPC_ERROR_DEFS: {
6313
6294
  readonly BAD_REQUEST: {
6314
6295
  readonly status: 400;
@@ -6420,8 +6401,6 @@ declare class ORPCError<TCode extends ORPCErrorCode, TData> extends Error {
6420
6401
  static [Symbol.hasInstance](instance: unknown): boolean;
6421
6402
  }
6422
6403
  type ORPCErrorJSON<TCode extends string, TData> = Pick<ORPCError<TCode, TData>, 'defined' | 'code' | 'status' | 'message' | 'data'>;
6423
- //#endregion
6424
- //#region ../../node_modules/.pnpm/@orpc+server@1.15.7_@opentelemetry+api@1.9.1_ws@8.22.0/node_modules/@orpc/server/dist/shared/server.qKsRrdxW.d.mts
6425
6404
  type Context = Record<PropertyKey, any>;
6426
6405
  type ORPCErrorConstructorMapItemOptions<TData> = Omit<ORPCErrorOptions<TData>, 'defined' | 'status'>;
6427
6406
  type ORPCErrorConstructorMapItem<TCode extends ORPCErrorCode, TInData> = (...rest: MaybeOptionalOptions<ORPCErrorConstructorMapItemOptions<TInData>>) => ORPCError<TCode, TInData>;
@@ -6491,14 +6470,10 @@ interface Middleware<TInContext extends Context, TOutContext extends Context, TI
6491
6470
  (options: MiddlewareOptions<TInContext, TOutput, TErrorConstructorMap, TMeta>, input: TInput, output: MiddlewareOutputFn<TOutput>): Promisable<MiddlewareResult<TOutContext, TOutput>>;
6492
6471
  }
6493
6472
  type AnyMiddleware = Middleware<any, any, any, any, any, any>;
6494
- //#endregion
6495
- //#region ../../node_modules/.pnpm/@orpc+server@1.15.7_@opentelemetry+api@1.9.1_ws@8.22.0/node_modules/@orpc/server/dist/shared/server.C8_sRzQB.d.mts
6496
6473
  interface TraverseContractProcedureCallbackOptions {
6497
6474
  contract: AnyContractProcedure | AnyProcedure;
6498
6475
  path: readonly string[];
6499
6476
  }
6500
- //#endregion
6501
- //#region ../../node_modules/.pnpm/json-schema-typed@8.0.2/node_modules/json-schema-typed/draft_2020_12.d.ts
6502
6477
  type MaybeReadonlyArray<T> = Array<T> | ReadonlyArray<T>;
6503
6478
  type ValueOf<T> = T[keyof T];
6504
6479
  /**
@@ -7525,8 +7500,6 @@ declare enum TypeName {
7525
7500
  */
7526
7501
  String = "string"
7527
7502
  }
7528
- //#endregion
7529
- //#region ../../node_modules/.pnpm/@orpc+openapi@1.15.7_@opentelemetry+api@1.9.1_ws@8.22.0/node_modules/@orpc/openapi/dist/shared/openapi.BGy4N6eR.d.mts
7530
7503
  interface SchemaConverterComponent {
7531
7504
  allowedStrategies: readonly SchemaConvertOptions['strategy'][];
7532
7505
  schema: AnySchema;
@@ -7603,12 +7576,8 @@ interface OpenAPIGeneratorGenerateOptions extends Partial<Omit<OpenAPI.Document,
7603
7576
  */
7604
7577
  customErrorResponseBodySchema?: Value<JSONSchema | undefined | null, [definedErrors: [code: string, defaultMessage: string, dataRequired: boolean, dataSchema: JSONSchema][], status: number]>;
7605
7578
  }
7606
- //#endregion
7607
- //#region src/doc.d.ts
7608
7579
  /** Shared by the served `openapi.json` and the snapshot test that guards it, so the two cannot drift. */
7609
7580
  export declare const OPENAPI_DOC_OPTIONS: OpenAPIGeneratorGenerateOptions;
7610
- //#endregion
7611
- //#region src/schemas.d.ts
7612
7581
  export type Runtime = z.infer<typeof runtimeSchema>;
7613
7582
  export type Transport = z.infer<typeof transportSchema>;
7614
7583
  export declare const environmentVariableSchema: z.ZodObject<{
@@ -7665,5 +7634,4 @@ export declare const serverFieldsSchema: z.ZodObject<{
7665
7634
  }, z.core.$strip>>>;
7666
7635
  }, z.core.$strip>>>;
7667
7636
  }, z.core.$strip>;
7668
- //#endregion
7669
7637
  export type { IntentCategoryColor, Platform };
package/dist/index.mjs CHANGED
@@ -2,10 +2,9 @@ import { z } from "zod";
2
2
  import * as z$1 from "zod/v4";
3
3
  import { oc } from "@orpc/contract";
4
4
  import ms from "ms";
5
- //#region \0rolldown/runtime.js
6
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
7
- //#endregion
8
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@8.1.1_zod@4.6.6/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
5
+ // \0rolldown/runtime.js
6
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
7
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@8.1.1_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
9
8
  /**
10
9
  * Reusable URL validation that disallows javascript: scheme
11
10
  */
@@ -182,8 +181,7 @@ z$1.object({
182
181
  token: z$1.string(),
183
182
  token_type_hint: z$1.string().optional()
184
183
  }).strip();
185
- //#endregion
186
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
184
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/constants.js
187
185
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
188
186
  module.exports = {
189
187
  MAX_LENGTH: 256,
@@ -191,6 +189,33 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
191
189
  MAX_SAFE_BUILD_LENGTH: 250,
192
190
  MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER ||
193
191
  /* istanbul ignore next */ 9007199254740991,
192
+ WHITESPACE_CHARACTERS: [
193
+ " ",
194
+ "\n",
195
+ "\v",
196
+ "\f",
197
+ "\r",
198
+ " ",
199
+ "\xA0",
200
+ " ",
201
+ " ",
202
+ " ",
203
+ " ",
204
+ " ",
205
+ " ",
206
+ " ",
207
+ " ",
208
+ " ",
209
+ " ",
210
+ " ",
211
+ " ",
212
+ "\u2028",
213
+ "\u2029",
214
+ " ",
215
+ " ",
216
+ " ",
217
+ ""
218
+ ],
194
219
  RELEASE_TYPES: [
195
220
  "major",
196
221
  "premajor",
@@ -205,13 +230,11 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
205
230
  FLAG_LOOSE: 2
206
231
  };
207
232
  }));
208
- //#endregion
209
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
233
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/debug.js
210
234
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
211
235
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
212
236
  }));
213
- //#endregion
214
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
237
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/re.js
215
238
  var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
216
239
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
217
240
  const debug = require_debug();
@@ -289,8 +312,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
289
312
  createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
290
313
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
291
314
  }));
292
- //#endregion
293
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
315
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/parse-options.js
294
316
  var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
295
317
  const looseOption = Object.freeze({ loose: true });
296
318
  const emptyOpts = Object.freeze({});
@@ -301,8 +323,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
301
323
  };
302
324
  module.exports = parseOptions;
303
325
  }));
304
- //#endregion
305
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
326
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/identifiers.js
306
327
  var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
307
328
  const numeric = /^[0-9]+$/;
308
329
  const compareIdentifiers = (a, b) => {
@@ -321,8 +342,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
321
342
  rcompareIdentifiers
322
343
  };
323
344
  }));
324
- //#endregion
325
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
345
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/semver.js
326
346
  var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
327
347
  const debug = require_debug();
328
348
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -507,8 +527,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
507
527
  }
508
528
  };
509
529
  }));
510
- //#endregion
511
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
530
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/parse.js
512
531
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
513
532
  const SemVer = require_semver$1();
514
533
  const parse = (version, options, throwErrors = false) => {
@@ -522,8 +541,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
522
541
  };
523
542
  module.exports = parse;
524
543
  }));
525
- //#endregion
526
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js
544
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/valid.js
527
545
  var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
528
546
  const parse = require_parse();
529
547
  const valid = (version, options) => {
@@ -532,8 +550,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
532
550
  };
533
551
  module.exports = valid;
534
552
  }));
535
- //#endregion
536
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js
553
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/clean.js
537
554
  var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
538
555
  const parse = require_parse();
539
556
  const clean = (version, options) => {
@@ -542,8 +559,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
542
559
  };
543
560
  module.exports = clean;
544
561
  }));
545
- //#endregion
546
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js
562
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/inc.js
547
563
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
548
564
  const SemVer = require_semver$1();
549
565
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -560,8 +576,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
560
576
  };
561
577
  module.exports = inc;
562
578
  }));
563
- //#endregion
564
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js
579
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/diff.js
565
580
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
566
581
  const parse = require_parse();
567
582
  const diff = (version1, version2) => {
@@ -588,29 +603,25 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
588
603
  };
589
604
  module.exports = diff;
590
605
  }));
591
- //#endregion
592
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js
606
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/major.js
593
607
  var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
594
608
  const SemVer = require_semver$1();
595
609
  const major = (a, loose) => new SemVer(a, loose).major;
596
610
  module.exports = major;
597
611
  }));
598
- //#endregion
599
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js
612
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/minor.js
600
613
  var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
601
614
  const SemVer = require_semver$1();
602
615
  const minor = (a, loose) => new SemVer(a, loose).minor;
603
616
  module.exports = minor;
604
617
  }));
605
- //#endregion
606
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js
618
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/patch.js
607
619
  var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
608
620
  const SemVer = require_semver$1();
609
621
  const patch = (a, loose) => new SemVer(a, loose).patch;
610
622
  module.exports = patch;
611
623
  }));
612
- //#endregion
613
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js
624
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/prerelease.js
614
625
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
615
626
  const parse = require_parse();
616
627
  const prerelease = (version, options) => {
@@ -619,29 +630,25 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
619
630
  };
620
631
  module.exports = prerelease;
621
632
  }));
622
- //#endregion
623
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js
633
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare.js
624
634
  var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
625
635
  const SemVer = require_semver$1();
626
636
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
627
637
  module.exports = compare;
628
638
  }));
629
- //#endregion
630
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js
639
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/rcompare.js
631
640
  var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
632
641
  const compare = require_compare();
633
642
  const rcompare = (a, b, loose) => compare(b, a, loose);
634
643
  module.exports = rcompare;
635
644
  }));
636
- //#endregion
637
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js
645
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare-loose.js
638
646
  var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
639
647
  const compare = require_compare();
640
648
  const compareLoose = (a, b) => compare(a, b, true);
641
649
  module.exports = compareLoose;
642
650
  }));
643
- //#endregion
644
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js
651
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/compare-build.js
645
652
  var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
646
653
  const SemVer = require_semver$1();
647
654
  const compareBuild = (a, b, loose) => {
@@ -651,64 +658,55 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
651
658
  };
652
659
  module.exports = compareBuild;
653
660
  }));
654
- //#endregion
655
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js
661
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/sort.js
656
662
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
657
663
  const compareBuild = require_compare_build();
658
664
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
659
665
  module.exports = sort;
660
666
  }));
661
- //#endregion
662
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js
667
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/rsort.js
663
668
  var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
664
669
  const compareBuild = require_compare_build();
665
670
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
666
671
  module.exports = rsort;
667
672
  }));
668
- //#endregion
669
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js
673
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/gt.js
670
674
  var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
671
675
  const compare = require_compare();
672
676
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
673
677
  module.exports = gt;
674
678
  }));
675
- //#endregion
676
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js
679
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/lt.js
677
680
  var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
678
681
  const compare = require_compare();
679
682
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
680
683
  module.exports = lt;
681
684
  }));
682
- //#endregion
683
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js
685
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/eq.js
684
686
  var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
685
687
  const compare = require_compare();
686
688
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
687
689
  module.exports = eq;
688
690
  }));
689
- //#endregion
690
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js
691
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/neq.js
691
692
  var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
692
693
  const compare = require_compare();
693
694
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
694
695
  module.exports = neq;
695
696
  }));
696
- //#endregion
697
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js
697
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/gte.js
698
698
  var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
699
699
  const compare = require_compare();
700
700
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
701
701
  module.exports = gte;
702
702
  }));
703
- //#endregion
704
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js
703
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/lte.js
705
704
  var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
706
705
  const compare = require_compare();
707
706
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
708
707
  module.exports = lte;
709
708
  }));
710
- //#endregion
711
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js
709
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/cmp.js
712
710
  var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
713
711
  const eq = require_eq();
714
712
  const neq = require_neq();
@@ -739,8 +737,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
739
737
  };
740
738
  module.exports = cmp;
741
739
  }));
742
- //#endregion
743
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js
740
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/coerce.js
744
741
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
745
742
  const SemVer = require_semver$1();
746
743
  const parse = require_parse();
@@ -771,8 +768,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
771
768
  };
772
769
  module.exports = coerce;
773
770
  }));
774
- //#endregion
775
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js
771
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/truncate.js
776
772
  var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
777
773
  const parse = require_parse();
778
774
  const constants = require_constants();
@@ -803,8 +799,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
803
799
  };
804
800
  module.exports = truncate;
805
801
  }));
806
- //#endregion
807
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js
802
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/lrucache.js
808
803
  var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
809
804
  var LRUCache = class {
810
805
  constructor() {
@@ -836,8 +831,344 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
836
831
  };
837
832
  module.exports = LRUCache;
838
833
  }));
839
- //#endregion
840
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js
834
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/internal/trim-comparator-whitespace.js
835
+ var require_trim_comparator_whitespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
836
+ const { MAX_LENGTH, MAX_SAFE_BUILD_LENGTH, WHITESPACE_CHARACTERS } = require_constants();
837
+ /**
838
+ * Remembers the last two rows of digits so their characters need not be reread.
839
+ * Positions start at -1 until a row has been found.
840
+ *
841
+ * @typedef {object} DigitRunCache
842
+ * @property {number} start The first character of the most recently found row.
843
+ * @property {number} end The position after that row's last character.
844
+ * @property {number} previousStart The first character of the previous row.
845
+ * @property {number} previousEnd The position after the previous row.
846
+ */
847
+ const whitespace = /* @__PURE__ */ new Uint8Array(65536);
848
+ for (const char of WHITESPACE_CHARACTERS) whitespace[char.charCodeAt(0)] = 1;
849
+ /**
850
+ * Checks whether a character is whitespace, like a space, tab, or newline.
851
+ * Looking past the end of the string returns false.
852
+ *
853
+ * @param {string|undefined} char One character, or undefined past the string's end.
854
+ * @returns {boolean} Whether the character is whitespace.
855
+ * @example isWhitespace(' ') // true
856
+ * @example isWhitespace('1') // false
857
+ */
858
+ const isWhitespace = (char) => char !== void 0 && whitespace[char.charCodeAt(0)] === 1;
859
+ /**
860
+ * Checks for v, =, or whitespace before the version number.
861
+ * These are historical version prefixes, not range operators:
862
+ * < and > are handled separately, as are tilde and caret ranges.
863
+ *
864
+ * @param {string|undefined} char One character to check.
865
+ * @returns {boolean} Whether the character can belong to a version prefix.
866
+ * @example isVersionPrefix('=') // true
867
+ * @example isVersionPrefix('>') // false
868
+ */
869
+ const isVersionPrefix = (char) => char === "v" || char === "=" || isWhitespace(char);
870
+ /**
871
+ * Checks whether a character is one of the digits 0 through 9.
872
+ *
873
+ * @param {string|undefined} char One character to check.
874
+ * @returns {boolean} Whether the character is an ASCII digit.
875
+ * @example isDigit('7') // true
876
+ * @example isDigit('.') // false
877
+ */
878
+ const isDigit = (char) => char !== void 0 && char >= "0" && char <= "9";
879
+ /**
880
+ * Checks whether a character is an English letter, uppercase or lowercase.
881
+ *
882
+ * @param {string|undefined} char One character to check.
883
+ * @returns {boolean} Whether the character is an ASCII letter.
884
+ * @example isLetter('b') // true
885
+ * @example isLetter('7') // false
886
+ */
887
+ const isLetter = (char) => char !== void 0 && (char >= "a" && char <= "z" || char >= "A" && char <= "Z");
888
+ /**
889
+ * Checks for a letter, digit, or hyphen: the characters allowed inside
890
+ * prerelease and build names such as beta-1.
891
+ *
892
+ * @param {string|undefined} char One character to check.
893
+ * @returns {boolean} Whether the character can be part of an identifier.
894
+ * @example isIdentifierCharacter('-') // true
895
+ * @example isIdentifierCharacter('.') // false; dots separate identifiers
896
+ */
897
+ const isIdentifierCharacter = (char) => isDigit(char) || isLetter(char) || char === "-";
898
+ /**
899
+ * Checks whether a version component can begin here: with a digit or
900
+ * a wildcard such as x, X, or *.
901
+ *
902
+ * @param {string|undefined} char One character to check.
903
+ * @returns {boolean} Whether a number or wildcard can start with this character.
904
+ * @example isVersionStart('x') // true
905
+ * @example isVersionStart('v') // false; v belongs to the prefix
906
+ */
907
+ const isVersionStart = (char) => isDigit(char) || char === "x" || char === "X" || char === "*";
908
+ /**
909
+ * Finds the end of a row of digits, but returns no more than limit digits.
910
+ * Remembers the last two rows so looking at them again does not reread them.
911
+ *
912
+ * @param {string} range The text to read; it is not changed.
913
+ * @param {number} start The position of the first character to check.
914
+ * @param {number} limit The most digit characters the returned match can include.
915
+ * @param {DigitRunCache} digitRuns Shared cache of digit-run positions, updated in place.
916
+ * @returns {number} The position after the matched digits, or start if none match.
917
+ * @example findDigitsEndIndex('123abc', 0, 10, digitRuns) // 3, pointing at a
918
+ * @example findDigitsEndIndex('123abc', 0, 2, digitRuns) // 2, pointing at the unread 3
919
+ */
920
+ const findDigitsEndIndex = (range, start, limit, digitRuns) => {
921
+ if (!isDigit(range[start])) return start;
922
+ if (start >= digitRuns.start && start < digitRuns.end) return Math.min(start + limit, digitRuns.end);
923
+ if (start >= digitRuns.previousStart && start < digitRuns.previousEnd) return Math.min(start + limit, digitRuns.previousEnd);
924
+ let end = start + 1;
925
+ while (isDigit(range[end])) end++;
926
+ digitRuns.previousStart = digitRuns.start;
927
+ digitRuns.previousEnd = digitRuns.end;
928
+ digitRuns.start = start;
929
+ digitRuns.end = end;
930
+ return Math.min(start + limit, end);
931
+ };
932
+ /**
933
+ * Reads a number using the old regex's length and leading-zero rules.
934
+ * Strict mode reads just the first zero in 012; loose mode can read all three.
935
+ *
936
+ * @param {string} range The text to read; it is not changed.
937
+ * @param {number} start The position where the number should begin.
938
+ * @param {boolean} loose Whether to allow leading zeros.
939
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
940
+ * @returns {number} The position after the matched digits, not their numeric value.
941
+ * @example findVersionNumberEndIndex('012', 0, false, digitRuns) // 1
942
+ * @example findVersionNumberEndIndex('012', 0, true, digitRuns) // 3
943
+ */
944
+ const findVersionNumberEndIndex = (range, start, loose, digitRuns) => {
945
+ if (!loose && range[start] === "0") return start + 1;
946
+ return findDigitsEndIndex(range, start, loose ? MAX_LENGTH : MAX_LENGTH + 1, digitRuns);
947
+ };
948
+ /**
949
+ * Reads one piece of a prerelease name, such as beta or 1 in beta.1.
950
+ * Tries the letter-or-hyphen form first, then the number-only form.
951
+ *
952
+ * @param {string} range The text to read; it is not changed.
953
+ * @param {number} start The position where the identifier should begin.
954
+ * @param {boolean} loose Whether numeric identifiers may have leading zeros.
955
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
956
+ * @returns {number} The position after the identifier, or start if none matches.
957
+ * @example findPrereleaseIdentifierEndIndex('beta.1', 0, false, digitRuns) // 4, at the dot
958
+ * @example findPrereleaseIdentifierEndIndex('001beta', 0, false, digitRuns) // 7
959
+ */
960
+ const findPrereleaseIdentifierEndIndex = (range, start, loose, digitRuns) => {
961
+ const digitsEnd = findDigitsEndIndex(range, start, MAX_LENGTH, digitRuns);
962
+ if (isLetter(range[digitsEnd]) || range[digitsEnd] === "-") {
963
+ let end = digitsEnd + 1;
964
+ const limit = end + MAX_SAFE_BUILD_LENGTH;
965
+ while (end < limit && isIdentifierCharacter(range[end])) end++;
966
+ return end;
967
+ }
968
+ return findVersionNumberEndIndex(range, start, loose, digitRuns);
969
+ };
970
+ /**
971
+ * Reads a prerelease suffix such as -beta.1, one dot-separated piece at a time.
972
+ * Loose mode also allows the name without its opening hyphen.
973
+ *
974
+ * @param {string} range The text to read; it is not changed.
975
+ * @param {number} start The position where the suffix should begin, including -.
976
+ * @param {boolean} loose Whether the opening hyphen is optional and zeros allowed.
977
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
978
+ * @returns {number} The position after the matched suffix, or start if absent.
979
+ * @example findPrereleaseEndIndex('-beta.1+sha', 0, false, digitRuns) // 7, at the plus
980
+ * @example findPrereleaseEndIndex('beta', 0, false, digitRuns) // 0; no opening hyphen
981
+ */
982
+ const findPrereleaseEndIndex = (range, start, loose, digitRuns) => {
983
+ const hyphen = range[start] === "-";
984
+ if (!loose && !hyphen) return start;
985
+ const identifierStart = start + (hyphen ? 1 : 0);
986
+ let end = findPrereleaseIdentifierEndIndex(range, identifierStart, loose, digitRuns);
987
+ if (end === identifierStart) {
988
+ if (!loose || !hyphen) return start;
989
+ end = findPrereleaseIdentifierEndIndex(range, start, loose, digitRuns);
990
+ }
991
+ while (range[end] === ".") {
992
+ const next = findPrereleaseIdentifierEndIndex(range, end + 1, loose, digitRuns);
993
+ if (next === end + 1) break;
994
+ end = next;
995
+ }
996
+ return end;
997
+ };
998
+ /**
999
+ * Reads one build-name piece, such as sha or 123 in +sha.123.
1000
+ * Stops at a disallowed character or the old regex's length limit.
1001
+ *
1002
+ * @param {string} range The text to read; it is not changed.
1003
+ * @param {number} start The position where the identifier should begin.
1004
+ * @returns {number} The position after the identifier, or start if none matches.
1005
+ * @example findBuildIdentifierEndIndex('sha.123', 0) // 3, at the dot
1006
+ * @example findBuildIdentifierEndIndex('001', 0) // 3; leading zeros are allowed
1007
+ */
1008
+ const findBuildIdentifierEndIndex = (range, start) => {
1009
+ let end = start;
1010
+ while (end - start < MAX_SAFE_BUILD_LENGTH && isIdentifierCharacter(range[end])) end++;
1011
+ return end;
1012
+ };
1013
+ /**
1014
+ * Reads optional build metadata such as +sha.123.
1015
+ * Leaves the position unchanged if there is no plus sign followed by a name.
1016
+ *
1017
+ * @param {string} range The text to read; it is not changed.
1018
+ * @param {number} start The position where the opening + should be.
1019
+ * @returns {number} The position after the matched metadata, or start if absent.
1020
+ * @example findBuildEndIndex('+sha.123 <2', 0) // 8, at the space
1021
+ * @example findBuildEndIndex('+', 0) // 0; a plus sign alone is not a match
1022
+ */
1023
+ const findBuildEndIndex = (range, start) => {
1024
+ if (range[start] !== "+") return start;
1025
+ let end = findBuildIdentifierEndIndex(range, start + 1);
1026
+ if (end === start + 1) return start;
1027
+ while (range[end] === ".") {
1028
+ const next = findBuildIdentifierEndIndex(range, end + 1);
1029
+ if (next === end + 1) break;
1030
+ end = next;
1031
+ }
1032
+ return end;
1033
+ };
1034
+ /**
1035
+ * Reads three numbers separated by dots, then any prerelease and build suffixes.
1036
+ * Uses loose rules, so forms such as 01.02.03beta can match here.
1037
+ *
1038
+ * @param {string} range The text to read; it is not changed.
1039
+ * @param {number} start The position of the first number, after any prefix.
1040
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
1041
+ * @returns {number} The position after the version match, or start if none matches.
1042
+ * @example findLooseFullVersionEndIndex('1.2.3-beta+sha <2', 0, digitRuns) // 14
1043
+ * @example findLooseFullVersionEndIndex('1.2', 0, digitRuns) // 0; needs three numbers
1044
+ */
1045
+ const findLooseFullVersionEndIndex = (range, start, digitRuns) => {
1046
+ let end = start;
1047
+ for (let component = 0; component < 3; component++) {
1048
+ const next = findVersionNumberEndIndex(range, end, true, digitRuns);
1049
+ if (next === end) return start;
1050
+ end = next;
1051
+ if (component < 2) {
1052
+ if (range[end] !== ".") return start;
1053
+ end++;
1054
+ }
1055
+ }
1056
+ const prereleaseEnd = findPrereleaseEndIndex(range, end, true, digitRuns);
1057
+ return findBuildEndIndex(range, prereleaseEnd);
1058
+ };
1059
+ /**
1060
+ * Reads one component of a partial or wildcard version, such as 2 or x in 2.x.
1061
+ * Numbers use strict leading-zero rules; wildcards take up one character.
1062
+ *
1063
+ * @param {string} range The text to read; it is not changed.
1064
+ * @param {number} start The position where the component should begin.
1065
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
1066
+ * @returns {number} The position after the component, or start if none matches.
1067
+ * @example findPartialVersionComponentEndIndex('2.x', 0, digitRuns) // 1, at the dot
1068
+ * @example findPartialVersionComponentEndIndex('2.x', 2, digitRuns) // 3, after x
1069
+ */
1070
+ const findPartialVersionComponentEndIndex = (range, start, digitRuns) => {
1071
+ if (isDigit(range[start])) return findVersionNumberEndIndex(range, start, false, digitRuns);
1072
+ return isVersionStart(range[start]) ? start + 1 : start;
1073
+ };
1074
+ /**
1075
+ * Reads up to three components, allowing forms such as 1, 1.2, or 1.x.
1076
+ * After the third component, also reads any strict prerelease and build suffixes.
1077
+ *
1078
+ * @param {string} range The text to read; it is not changed.
1079
+ * @param {number} start The position of a number or wildcard, after any prefix.
1080
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
1081
+ * @returns {number} The position after the matched version text.
1082
+ * @example findPartialVersionEndIndex('1.x <2', 0, digitRuns) // 3, at the space
1083
+ * @example findPartialVersionEndIndex('1.', 0, digitRuns) // 1; the trailing dot is unread
1084
+ */
1085
+ const findPartialVersionEndIndex = (range, start, digitRuns) => {
1086
+ let end = findPartialVersionComponentEndIndex(range, start, digitRuns);
1087
+ for (let component = 0; component < 2; component++) {
1088
+ if (range[end] !== ".") return end;
1089
+ const next = findPartialVersionComponentEndIndex(range, end + 1, digitRuns);
1090
+ if (next === end + 1) return end;
1091
+ end = next;
1092
+ }
1093
+ const prereleaseEnd = findPrereleaseEndIndex(range, end, false, digitRuns);
1094
+ return findBuildEndIndex(range, prereleaseEnd);
1095
+ };
1096
+ /**
1097
+ * Finds where a version match ends, without deciding whether the range is valid.
1098
+ * Tries a loose full version first, then a partial or wildcard version, just
1099
+ * like the old regex's LOOSEPLAIN and XRANGEPLAIN alternatives.
1100
+ *
1101
+ * @param {string} range The text to read; it is not changed.
1102
+ * @param {number} start The position of a number or wildcard, after any prefix.
1103
+ * @param {DigitRunCache} digitRuns Shared digit-run cache, updated as needed.
1104
+ * @returns {number} The position where scanning the next candidate can resume.
1105
+ * @example findVersionEndIndex('1.2.3 <2', 0, digitRuns) // 5, at the space
1106
+ * @example findVersionEndIndex('1.x <2', 0, digitRuns) // 3, at the space
1107
+ */
1108
+ const findVersionEndIndex = (range, start, digitRuns) => {
1109
+ const fullVersionEnd = findLooseFullVersionEndIndex(range, start, digitRuns);
1110
+ return fullVersionEnd !== start ? fullVersionEnd : findPartialVersionEndIndex(range, start, digitRuns);
1111
+ };
1112
+ /**
1113
+ * Finds the one whitespace character the old replacement would remove.
1114
+ * Keeps leading whitespace, skips an optional operator, and checks immediately
1115
+ * after it. Returns -1 if there is nothing to remove.
1116
+ *
1117
+ * @param {string} range The text containing a candidate already found by the caller.
1118
+ * @param {number} matchStart The candidate's position, including leading whitespace.
1119
+ * @returns {number} The position of the removable whitespace, or -1 if absent.
1120
+ * @example findRemovableWhitespaceIndex(' > 1', 0) // 2; keep the space at position 0
1121
+ * @example findRemovableWhitespaceIndex('>1', 0) // -1
1122
+ */
1123
+ const findRemovableWhitespaceIndex = (range, matchStart) => {
1124
+ let position = matchStart;
1125
+ if (isWhitespace(range[position])) position++;
1126
+ if (range[position] === "<" || range[position] === ">") position++;
1127
+ if (range[position] === "=") position++;
1128
+ return isWhitespace(range[position]) ? position : -1;
1129
+ };
1130
+ /**
1131
+ * Joins an operator to its version, turning > 1.2.3 into >1.2.3.
1132
+ * Copies everything else according to the old regex's matching rules.
1133
+ * Moves forward through prefixes and whole versions to avoid repeatedly
1134
+ * searching the same characters on long inputs.
1135
+ *
1136
+ * @param {string} range The range text to process; the original string is unchanged.
1137
+ * @returns {string} The range with matched operator whitespace removed.
1138
+ * @example trimComparatorWhitespace('> 1.2.3 < 2') // '>1.2.3 <2'
1139
+ * @example trimComparatorWhitespace('> invalid') // '> invalid'
1140
+ */
1141
+ const trimComparatorWhitespace = (range) => {
1142
+ let result = "";
1143
+ let copyFrom = 0;
1144
+ let cursor = 0;
1145
+ const digitRuns = {
1146
+ start: -1,
1147
+ end: -1,
1148
+ previousStart: -1,
1149
+ previousEnd: -1
1150
+ };
1151
+ while (cursor < range.length) {
1152
+ const matchStart = cursor;
1153
+ if (range[cursor] === "<" || range[cursor] === ">") cursor++;
1154
+ else if (!isVersionPrefix(range[cursor]) && !isVersionStart(range[cursor])) {
1155
+ cursor++;
1156
+ continue;
1157
+ }
1158
+ while (cursor < range.length && isVersionPrefix(range[cursor])) cursor++;
1159
+ if (!isVersionStart(range[cursor])) continue;
1160
+ const whitespacePosition = findRemovableWhitespaceIndex(range, matchStart);
1161
+ if (whitespacePosition !== -1) {
1162
+ result += range.slice(copyFrom, whitespacePosition);
1163
+ copyFrom = whitespacePosition + 1;
1164
+ }
1165
+ cursor = findVersionEndIndex(range, cursor, digitRuns);
1166
+ }
1167
+ return result + range.slice(copyFrom);
1168
+ };
1169
+ module.exports = trimComparatorWhitespace;
1170
+ }));
1171
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/range.js
841
1172
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
842
1173
  const SPACE_CHARACTERS = /\s+/g;
843
1174
  module.exports = class Range {
@@ -901,7 +1232,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
901
1232
  const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
902
1233
  range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
903
1234
  debug("hyphen replace", range);
904
- range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
1235
+ range = trimComparatorWhitespace(range);
905
1236
  debug("comparator trim", range);
906
1237
  range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
907
1238
  debug("tilde trim", range);
@@ -952,7 +1283,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
952
1283
  const Comparator = require_comparator();
953
1284
  const debug = require_debug();
954
1285
  const SemVer = require_semver$1();
955
- const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
1286
+ const trimComparatorWhitespace = require_trim_comparator_whitespace();
1287
+ const { safeRe: re, src, t, tildeTrimReplace, caretTrimReplace } = require_re();
956
1288
  const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
957
1289
  const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
958
1290
  const isNullSet = (c) => c.value === "<0.0.0-0";
@@ -1119,8 +1451,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1119
1451
  return true;
1120
1452
  };
1121
1453
  }));
1122
- //#endregion
1123
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js
1454
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/classes/comparator.js
1124
1455
  var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1125
1456
  const ANY = Symbol("SemVer ANY");
1126
1457
  module.exports = class Comparator {
@@ -1191,8 +1522,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1191
1522
  const SemVer = require_semver$1();
1192
1523
  const Range = require_range();
1193
1524
  }));
1194
- //#endregion
1195
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
1525
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/functions/satisfies.js
1196
1526
  var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1197
1527
  const Range = require_range();
1198
1528
  const satisfies = (version, range, options) => {
@@ -1205,15 +1535,13 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1205
1535
  };
1206
1536
  module.exports = satisfies;
1207
1537
  }));
1208
- //#endregion
1209
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js
1538
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/to-comparators.js
1210
1539
  var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1211
1540
  const Range = require_range();
1212
1541
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1213
1542
  module.exports = toComparators;
1214
1543
  }));
1215
- //#endregion
1216
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js
1544
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/max-satisfying.js
1217
1545
  var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1218
1546
  const SemVer = require_semver$1();
1219
1547
  const Range = require_range();
@@ -1238,8 +1566,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1238
1566
  };
1239
1567
  module.exports = maxSatisfying;
1240
1568
  }));
1241
- //#endregion
1242
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js
1569
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/min-satisfying.js
1243
1570
  var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1244
1571
  const SemVer = require_semver$1();
1245
1572
  const Range = require_range();
@@ -1264,8 +1591,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1264
1591
  };
1265
1592
  module.exports = minSatisfying;
1266
1593
  }));
1267
- //#endregion
1268
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
1594
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/min-version.js
1269
1595
  var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1270
1596
  const SemVer = require_semver$1();
1271
1597
  const Range = require_range();
@@ -1304,8 +1630,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1304
1630
  };
1305
1631
  module.exports = minVersion;
1306
1632
  }));
1307
- //#endregion
1308
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js
1633
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/valid.js
1309
1634
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1310
1635
  const Range = require_range();
1311
1636
  const validRange = (range, options) => {
@@ -1317,8 +1642,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1317
1642
  };
1318
1643
  module.exports = validRange;
1319
1644
  }));
1320
- //#endregion
1321
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js
1645
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/outside.js
1322
1646
  var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1323
1647
  const SemVer = require_semver$1();
1324
1648
  const Comparator = require_comparator();
@@ -1370,22 +1694,19 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1370
1694
  };
1371
1695
  module.exports = outside;
1372
1696
  }));
1373
- //#endregion
1374
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js
1697
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/gtr.js
1375
1698
  var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1376
1699
  const outside = require_outside();
1377
1700
  const gtr = (version, range, options) => outside(version, range, ">", options);
1378
1701
  module.exports = gtr;
1379
1702
  }));
1380
- //#endregion
1381
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js
1703
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/ltr.js
1382
1704
  var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1383
1705
  const outside = require_outside();
1384
1706
  const ltr = (version, range, options) => outside(version, range, "<", options);
1385
1707
  module.exports = ltr;
1386
1708
  }));
1387
- //#endregion
1388
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js
1709
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/intersects.js
1389
1710
  var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1390
1711
  const Range = require_range();
1391
1712
  const intersects = (r1, r2, options) => {
@@ -1395,8 +1716,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1395
1716
  };
1396
1717
  module.exports = intersects;
1397
1718
  }));
1398
- //#endregion
1399
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js
1719
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/simplify.js
1400
1720
  var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1401
1721
  const satisfies = require_satisfies();
1402
1722
  const compare = require_compare();
@@ -1425,8 +1745,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1425
1745
  return simplified.length < original.length ? simplified : range;
1426
1746
  };
1427
1747
  }));
1428
- //#endregion
1429
- //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js
1748
+ // ../../node_modules/.pnpm/semver@7.8.6/node_modules/semver/ranges/subset.js
1430
1749
  var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1431
1750
  const Range = require_range();
1432
1751
  const Comparator = require_comparator();
@@ -3034,14 +3353,12 @@ const hasDuplicateHeaderNames = (headers) => {
3034
3353
  const names = headers.map(({ name }) => name.trim().toLowerCase());
3035
3354
  return new Set(names).size !== names.length;
3036
3355
  };
3037
- //#endregion
3038
- //#region src/auth-scope.ts
3356
+ // src/auth-scope.ts
3039
3357
  /** Accepts an API key or OAuth access token (default for most routes). */
3040
3358
  const AUTH_SCOPE_ANY = "any";
3041
3359
  /** Requires a user OAuth access token; API keys are not accepted. */
3042
3360
  const AUTH_SCOPE_USER = "user";
3043
- //#endregion
3044
- //#region src/schemas.ts
3361
+ // src/schemas.ts
3045
3362
  const RESERVED_KEYS = [
3046
3363
  "_HANDLER",
3047
3364
  "_X_AMZN_TRACE_ID",
@@ -3130,8 +3447,7 @@ const serverFieldsSchema = z.object({
3130
3447
  })).optional()
3131
3448
  })).optional()
3132
3449
  });
3133
- //#endregion
3134
- //#region src/api.contract.ts
3450
+ // src/api.contract.ts
3135
3451
  const isValidIanaTimeZone = (timeZone) => {
3136
3452
  try {
3137
3453
  new Intl.DateTimeFormat("en-US", { timeZone });
@@ -4040,5 +4356,4 @@ const OPENAPI_DOC_OPTIONS = {
4040
4356
  ChatgptSubmissionFormDataUpdate: { schema: chatgptSubmissionUpdateSchema }
4041
4357
  }
4042
4358
  };
4043
- //#endregion
4044
4359
  export { AI_PLATFORMS, AUTH_SCOPE_ANY, AUTH_SCOPE_USER, INTENT_CATEGORY_COLORS, OPENAPI_DOC_OPTIONS, OTLP_PROTOCOLS, PLATFORM_LABELS, TELEMETRY_SIGNALS, buildSettingsSchema, chatgptSubmissionUpdateSchema, claudeSubmissionUpdateSchema, contract, contractForDocs, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, intentCategoryColorSchema, otlpProtocolSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, telemetrySignalSchema, transportSchema, updateEnvironmentVariableSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "1.186.1",
3
+ "version": "1.186.3",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -33,20 +33,20 @@
33
33
  "author": "Alpic",
34
34
  "license": "ISC",
35
35
  "dependencies": {
36
- "@orpc/contract": "^1.15.7",
36
+ "@orpc/contract": "^1.16.2",
37
37
  "ms": "^2.1.3",
38
- "zod": "^4.6.6"
38
+ "zod": "^4.6.7"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@alpic-ai/domains": "0.0.0",
42
- "@orpc/openapi": "^1.15.7",
43
- "@orpc/zod": "^1.15.7",
42
+ "@orpc/openapi": "^1.16.2",
43
+ "@orpc/zod": "^1.16.2",
44
44
  "@total-typescript/tsconfig": "^1.0.4",
45
45
  "@types/ms": "^2.1.0",
46
46
  "shx": "^0.4.0",
47
- "tsdown": "^0.23.1",
47
+ "tsdown": "^0.23.7",
48
48
  "typescript": "^6.0.3",
49
- "vitest": "^5.0.5"
49
+ "vitest": "^5.1.0"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "shx rm -rf dist && tsdown",