@inerrata-corporation/errata 2.0.22-dev.4293 → 2.0.22-dev.4411

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/errata.mjs CHANGED
@@ -1084,9 +1084,13 @@ function predicateIsTheEntity(text, entityId, entityCount) {
1084
1084
  }
1085
1085
  function canonicalClaimId(text, scope) {
1086
1086
  const s = claimStructure(text, scope);
1087
- return digest(
1088
- s.raw !== void 0 ? { raw: s.raw, scope: s.scope, stance: s.stance } : { entities: s.entities, predicate: s.predicate, stance: s.stance, scope: s.scope }
1089
- );
1087
+ return s.raw !== void 0 ? conceptDigest(s.raw, s.scope, s.stance) : digest({ entities: s.entities, predicate: s.predicate, stance: s.stance, scope: s.scope });
1088
+ }
1089
+ function conceptClaimId(text, scope) {
1090
+ return conceptDigest(conceptBag(text), scope ?? {}, detectStance(text));
1091
+ }
1092
+ function conceptDigest(raw2, scope, stance) {
1093
+ return digest({ raw: raw2, scope, stance });
1090
1094
  }
1091
1095
  var init_claim_id = __esm({
1092
1096
  "../../packages/shared/src/nlp/claim-id.ts"() {
@@ -1114,14 +1118,14 @@ function identityId(input) {
1114
1118
  statement: canonicalClaimId(input.statement.trim())
1115
1119
  });
1116
1120
  case "DesignProblem":
1117
- return `${DESIGN_PROBLEM_PREFIX}${canonicalClaimId(input.statement.trim())}`.slice(
1121
+ return `${DESIGN_PROBLEM_PREFIX}${conceptClaimId(input.statement.trim())}`.slice(
1118
1122
  0,
1119
1123
  DESIGN_PROBLEM_ID_LENGTH
1120
1124
  );
1121
1125
  case "DiagnosticProblem":
1122
1126
  return `${DIAGNOSTIC_PROBLEM_PREFIX}${digest({ key: input.key }).slice(0, DIAGNOSTIC_HASH_LENGTH)}`;
1123
1127
  case "Triage":
1124
- return `${TRIAGE_PREFIX}${canonicalClaimId(input.statement.trim())}`.slice(
1128
+ return `${TRIAGE_PREFIX}${conceptClaimId(input.statement.trim())}`.slice(
1125
1129
  0,
1126
1130
  TRIAGE_ID_LENGTH
1127
1131
  );
@@ -17531,7 +17535,7 @@ var init_triage_canon = __esm({
17531
17535
  // ../../packages/shared/src/project-wire-attrs.ts
17532
17536
  function projectWireAttrs(obj) {
17533
17537
  return Object.fromEntries(Object.entries(obj).filter(
17534
- ([key]) => !/^(?:orgId|teamId|groupId|projectId|aliasTexts|aliasCanonicalIds|mergedFrom.*|.*WitnessKeys|.*Sessions|authoringSession.*|contributor.*|witnessKeys.*|communitySupportIds)$/.test(key)
17538
+ ([key]) => !/^(?:orgId|teamId|groupId|projectId|aliasTexts|aliasCanonicalIds|mergedFrom.*|.*WitnessKeys|.*Sessions|authoringSession.*|contributor.*|witnessKeys.*|communitySupportIds|residueAudienceVerified)$/.test(key)
17535
17539
  ));
17536
17540
  }
17537
17541
  var init_project_wire_attrs = __esm({
@@ -17667,6 +17671,7 @@ __export(src_exports, {
17667
17671
  claimStructure: () => claimStructure,
17668
17672
  compactHistoryQuality: () => compactHistoryQuality,
17669
17673
  conceptBag: () => conceptBag,
17674
+ conceptClaimId: () => conceptClaimId,
17670
17675
  conceptTokens: () => conceptTokens,
17671
17676
  depLanguage: () => depLanguage,
17672
17677
  depPurl: () => depPurl,
@@ -18864,7 +18869,7 @@ function installHistoryCacheFloor(db) {
18864
18869
  OR EXISTS(SELECT 1 FROM history_cache_withdrawals w WHERE w.id = nodes.id))
18865
18870
  AND (embedding_blob IS NOT NULL OR embedding_json <> '[]' OR is_landmark <> 0
18866
18871
  OR description <> ${description} OR attrs_json <> ${attrs});`;
18867
- const internal = `key IN ('orgId','teamId','groupId','projectId','aliasTexts','aliasCanonicalIds')
18872
+ const internal = `key IN ('orgId','teamId','groupId','projectId','aliasTexts','aliasCanonicalIds','residueAudienceVerified')
18868
18873
  OR key GLOB 'mergedFrom*' OR key GLOB '*WitnessKeys' OR key GLOB '*Sessions'
18869
18874
  OR key GLOB 'authoringSession*' OR key GLOB 'contributor*' OR key GLOB 'witnessKeys*'`;
18870
18875
  const stripMetadata = (scope) => `UPDATE nodes SET attrs_json=(
@@ -30324,10 +30329,10 @@ var init_cloud_auth = __esm({
30324
30329
  }
30325
30330
  });
30326
30331
 
30327
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/compose.js
30332
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/compose.js
30328
30333
  var compose;
30329
30334
  var init_compose = __esm({
30330
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/compose.js"() {
30335
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/compose.js"() {
30331
30336
  compose = (middleware, onError, onNotFound) => {
30332
30337
  return (context, next) => {
30333
30338
  let index = -1;
@@ -30373,23 +30378,58 @@ var init_compose = __esm({
30373
30378
  }
30374
30379
  });
30375
30380
 
30376
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/http-exception.js
30381
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/http-exception.js
30377
30382
  var init_http_exception = __esm({
30378
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/http-exception.js"() {
30383
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/http-exception.js"() {
30379
30384
  }
30380
30385
  });
30381
30386
 
30382
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/request/constants.js
30387
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/request/constants.js
30383
30388
  var GET_MATCH_RESULT;
30384
30389
  var init_constants2 = __esm({
30385
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/request/constants.js"() {
30390
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/request/constants.js"() {
30386
30391
  GET_MATCH_RESULT = /* @__PURE__ */ Symbol();
30387
30392
  }
30388
30393
  });
30389
30394
 
30390
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/body.js
30395
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/crypto.js
30396
+ var init_crypto = __esm({
30397
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/crypto.js"() {
30398
+ }
30399
+ });
30400
+
30401
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/buffer.js
30402
+ var bufferToFormData;
30403
+ var init_buffer = __esm({
30404
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/buffer.js"() {
30405
+ init_crypto();
30406
+ bufferToFormData = (arrayBuffer, contentType) => {
30407
+ const response = new Response(arrayBuffer, {
30408
+ headers: {
30409
+ // Normalize the media type (case-insensitive) while keeping parameters like the boundary
30410
+ "Content-Type": contentType.replace(/^[^;]+/, (mediaType) => mediaType.toLowerCase())
30411
+ }
30412
+ });
30413
+ return response.formData();
30414
+ };
30415
+ }
30416
+ });
30417
+
30418
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/body.js
30391
30419
  async function parseFormData(request, options) {
30392
- const formData = await request.formData();
30420
+ if (!isRawRequest(request) && request.bodyCache.formData) {
30421
+ return convertFormDataToBodyData(
30422
+ await request.bodyCache.formData,
30423
+ options
30424
+ );
30425
+ }
30426
+ const headers = isRawRequest(request) ? request.headers : request.raw.headers;
30427
+ const arrayBuffer = await request.arrayBuffer();
30428
+ const formDataPromise = bufferToFormData(arrayBuffer, headers.get("Content-Type") || "");
30429
+ if (!isRawRequest(request)) {
30430
+ request.bodyCache.formData = formDataPromise;
30431
+ }
30432
+ const formData = await formDataPromise;
30393
30433
  if (formData) {
30394
30434
  return convertFormDataToBodyData(formData, options);
30395
30435
  }
@@ -30416,15 +30456,17 @@ function convertFormDataToBodyData(formData, options) {
30416
30456
  }
30417
30457
  return form;
30418
30458
  }
30419
- var parseBody, handleParsingAllValues, handleParsingNestedValues;
30459
+ var isRawRequest, parseBody, handleParsingAllValues, handleParsingNestedValues;
30420
30460
  var init_body = __esm({
30421
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/body.js"() {
30422
- init_request();
30461
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/body.js"() {
30462
+ init_buffer();
30463
+ isRawRequest = (request) => "headers" in request;
30423
30464
  parseBody = async (request, options = /* @__PURE__ */ Object.create(null)) => {
30424
30465
  const { all = false, dot = false } = options;
30425
- const headers = request instanceof HonoRequest ? request.raw.headers : request.headers;
30466
+ const headers = isRawRequest(request) ? request.headers : request.raw.headers;
30426
30467
  const contentType = headers.get("Content-Type");
30427
- if (contentType?.startsWith("multipart/form-data") || contentType?.startsWith("application/x-www-form-urlencoded")) {
30468
+ const mediaType = contentType?.split(";")[0].trim().toLowerCase();
30469
+ if (mediaType === "multipart/form-data" || mediaType === "application/x-www-form-urlencoded") {
30428
30470
  return parseFormData(request, { all, dot });
30429
30471
  }
30430
30472
  return {};
@@ -30465,10 +30507,10 @@ var init_body = __esm({
30465
30507
  }
30466
30508
  });
30467
30509
 
30468
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/url.js
30510
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/url.js
30469
30511
  var splitPath, splitRoutingPath, extractGroupsFromPath, replaceGroupMarks, patternCache, getPattern, tryDecode, tryDecodeURI, getPath, getPathNoStrict, mergePath, checkOptionalParameter, _decodeURI, _getQueryParam, getQueryParam, getQueryParams, decodeURIComponent_;
30470
30512
  var init_url = __esm({
30471
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/url.js"() {
30513
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/url.js"() {
30472
30514
  splitPath = (path3) => {
30473
30515
  const paths = path3.split("/");
30474
30516
  if (paths[0] === "") {
@@ -30625,7 +30667,7 @@ var init_url = __esm({
30625
30667
  return void 0;
30626
30668
  }
30627
30669
  }
30628
- const results = {};
30670
+ const results = /* @__PURE__ */ Object.create(null);
30629
30671
  encoded ??= /[%+]/.test(url2);
30630
30672
  let keyIndex = url2.indexOf("?", 8);
30631
30673
  while (keyIndex !== -1) {
@@ -30674,10 +30716,10 @@ var init_url = __esm({
30674
30716
  }
30675
30717
  });
30676
30718
 
30677
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/request.js
30719
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/request.js
30678
30720
  var tryDecodeURIComponent, HonoRequest;
30679
30721
  var init_request = __esm({
30680
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/request.js"() {
30722
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/request.js"() {
30681
30723
  init_http_exception();
30682
30724
  init_constants2();
30683
30725
  init_body();
@@ -30755,14 +30797,14 @@ var init_request = __esm({
30755
30797
  if (name2) {
30756
30798
  return this.raw.headers.get(name2) ?? void 0;
30757
30799
  }
30758
- const headerData = {};
30800
+ const headerData = /* @__PURE__ */ Object.create(null);
30759
30801
  this.raw.headers.forEach((value, key) => {
30760
30802
  headerData[key] = value;
30761
30803
  });
30762
30804
  return headerData;
30763
30805
  }
30764
30806
  async parseBody(options) {
30765
- return this.bodyCache.parsedBody ??= await parseBody(this, options);
30807
+ return parseBody(this, options);
30766
30808
  }
30767
30809
  #cachedBody = (key) => {
30768
30810
  const { bodyCache, raw: raw2 } = this;
@@ -30826,6 +30868,21 @@ var init_request = __esm({
30826
30868
  arrayBuffer() {
30827
30869
  return this.#cachedBody("arrayBuffer");
30828
30870
  }
30871
+ /**
30872
+ * `.bytes()` parses the request body as a `Uint8Array`.
30873
+ *
30874
+ * @see {@link https://hono.dev/docs/api/request#bytes}
30875
+ *
30876
+ * @example
30877
+ * ```ts
30878
+ * app.post('/entry', async (c) => {
30879
+ * const body = await c.req.bytes()
30880
+ * })
30881
+ * ```
30882
+ */
30883
+ bytes() {
30884
+ return this.#cachedBody("arrayBuffer").then((buffer) => new Uint8Array(buffer));
30885
+ }
30829
30886
  /**
30830
30887
  * Parses the request body as a `Blob`.
30831
30888
  * @example
@@ -30951,10 +31008,10 @@ var init_request = __esm({
30951
31008
  }
30952
31009
  });
30953
31010
 
30954
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/html.js
31011
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/html.js
30955
31012
  var HtmlEscapedCallbackPhase, raw, resolveCallback;
30956
31013
  var init_html = __esm({
30957
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/html.js"() {
31014
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/html.js"() {
30958
31015
  HtmlEscapedCallbackPhase = {
30959
31016
  Stringify: 1,
30960
31017
  BeforeStream: 2,
@@ -30998,10 +31055,10 @@ var init_html = __esm({
30998
31055
  }
30999
31056
  });
31000
31057
 
31001
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/context.js
31058
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/context.js
31002
31059
  var TEXT_PLAIN, setDefaultContentType, createResponseInstance, Context;
31003
31060
  var init_context = __esm({
31004
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/context.js"() {
31061
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/context.js"() {
31005
31062
  init_request();
31006
31063
  init_html();
31007
31064
  TEXT_PLAIN = "text/plain; charset=UTF-8";
@@ -31412,10 +31469,10 @@ var init_context = __esm({
31412
31469
  }
31413
31470
  });
31414
31471
 
31415
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router.js
31472
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router.js
31416
31473
  var METHOD_NAME_ALL, METHOD_NAME_ALL_LOWERCASE, METHODS, MESSAGE_MATCHER_IS_ALREADY_BUILT, UnsupportedPathError;
31417
31474
  var init_router = __esm({
31418
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router.js"() {
31475
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router.js"() {
31419
31476
  METHOD_NAME_ALL = "ALL";
31420
31477
  METHOD_NAME_ALL_LOWERCASE = "all";
31421
31478
  METHODS = ["get", "post", "put", "delete", "options", "patch"];
@@ -31425,18 +31482,18 @@ var init_router = __esm({
31425
31482
  }
31426
31483
  });
31427
31484
 
31428
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/constants.js
31485
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/constants.js
31429
31486
  var COMPOSED_HANDLER;
31430
31487
  var init_constants3 = __esm({
31431
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/constants.js"() {
31488
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/utils/constants.js"() {
31432
31489
  COMPOSED_HANDLER = "__COMPOSED_HANDLER";
31433
31490
  }
31434
31491
  });
31435
31492
 
31436
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/hono-base.js
31493
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/hono-base.js
31437
31494
  var notFoundHandler, errorHandler, Hono;
31438
31495
  var init_hono_base = __esm({
31439
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/hono-base.js"() {
31496
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/hono-base.js"() {
31440
31497
  init_compose();
31441
31498
  init_context();
31442
31499
  init_router();
@@ -31556,7 +31613,7 @@ var init_hono_base = __esm({
31556
31613
  handler = async (c, next) => (await compose([], app.errorHandler)(c, () => r.handler(c, next))).res;
31557
31614
  handler[COMPOSED_HANDLER] = r.handler;
31558
31615
  }
31559
- subApp.#addRoute(r.method, r.path, handler);
31616
+ subApp.#addRoute(r.method, r.path, handler, r.basePath);
31560
31617
  });
31561
31618
  return this;
31562
31619
  }
@@ -31680,7 +31737,7 @@ var init_hono_base = __esm({
31680
31737
  const pathPrefixLength = mergedPath === "/" ? 0 : mergedPath.length;
31681
31738
  return (request) => {
31682
31739
  const url2 = new URL(request.url);
31683
- url2.pathname = url2.pathname.slice(pathPrefixLength) || "/";
31740
+ url2.pathname = this.getPath(request).slice(pathPrefixLength) || "/";
31684
31741
  return new Request(url2, request);
31685
31742
  };
31686
31743
  })();
@@ -31694,10 +31751,15 @@ var init_hono_base = __esm({
31694
31751
  this.#addRoute(METHOD_NAME_ALL, mergePath(path3, "*"), handler);
31695
31752
  return this;
31696
31753
  }
31697
- #addRoute(method, path3, handler) {
31754
+ #addRoute(method, path3, handler, baseRoutePath) {
31698
31755
  method = method.toUpperCase();
31699
31756
  path3 = mergePath(this._basePath, path3);
31700
- const r = { basePath: this._basePath, path: path3, method, handler };
31757
+ const r = {
31758
+ basePath: baseRoutePath !== void 0 ? mergePath(this._basePath, baseRoutePath) : this._basePath,
31759
+ path: path3,
31760
+ method,
31761
+ handler
31762
+ };
31701
31763
  this.router.add(method, path3, [handler, r]);
31702
31764
  this.routes.push(r);
31703
31765
  }
@@ -31814,7 +31876,7 @@ var init_hono_base = __esm({
31814
31876
  }
31815
31877
  });
31816
31878
 
31817
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/matcher.js
31879
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/matcher.js
31818
31880
  function match(method, path3) {
31819
31881
  const matchers = this.buildAllMatchers();
31820
31882
  const match2 = ((method2, path22) => {
@@ -31835,13 +31897,13 @@ function match(method, path3) {
31835
31897
  }
31836
31898
  var emptyParam;
31837
31899
  var init_matcher = __esm({
31838
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/matcher.js"() {
31900
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/matcher.js"() {
31839
31901
  init_router();
31840
31902
  emptyParam = [];
31841
31903
  }
31842
31904
  });
31843
31905
 
31844
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/node.js
31906
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/node.js
31845
31907
  function compareKey(a, b) {
31846
31908
  if (a.length === 1) {
31847
31909
  return b.length === 1 ? a < b ? -1 : 1 : -1;
@@ -31863,7 +31925,7 @@ function compareKey(a, b) {
31863
31925
  }
31864
31926
  var LABEL_REG_EXP_STR, ONLY_WILDCARD_REG_EXP_STR, TAIL_WILDCARD_REG_EXP_STR, PATH_ERROR, regExpMetaChars, Node;
31865
31927
  var init_node = __esm({
31866
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/node.js"() {
31928
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/node.js"() {
31867
31929
  LABEL_REG_EXP_STR = "[^/]+";
31868
31930
  ONLY_WILDCARD_REG_EXP_STR = ".*";
31869
31931
  TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
@@ -31954,10 +32016,10 @@ var init_node = __esm({
31954
32016
  }
31955
32017
  });
31956
32018
 
31957
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/trie.js
32019
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/trie.js
31958
32020
  var Trie;
31959
32021
  var init_trie = __esm({
31960
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/trie.js"() {
32022
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/trie.js"() {
31961
32023
  init_node();
31962
32024
  Trie = class {
31963
32025
  #context = { varIndex: 0 };
@@ -32016,7 +32078,7 @@ var init_trie = __esm({
32016
32078
  }
32017
32079
  });
32018
32080
 
32019
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/router.js
32081
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/router.js
32020
32082
  function buildWildcardRegExp(path3) {
32021
32083
  return wildcardRegExpCache[path3] ??= new RegExp(
32022
32084
  path3 === "*" ? "" : `^${path3.replace(
@@ -32098,7 +32160,7 @@ function findMiddleware(middleware, path3) {
32098
32160
  }
32099
32161
  var nullMatcher, wildcardRegExpCache, RegExpRouter;
32100
32162
  var init_router2 = __esm({
32101
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/router.js"() {
32163
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/router.js"() {
32102
32164
  init_router();
32103
32165
  init_url();
32104
32166
  init_matcher();
@@ -32205,27 +32267,27 @@ var init_router2 = __esm({
32205
32267
  }
32206
32268
  });
32207
32269
 
32208
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/prepared-router.js
32270
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/prepared-router.js
32209
32271
  var init_prepared_router = __esm({
32210
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/prepared-router.js"() {
32272
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/prepared-router.js"() {
32211
32273
  init_router();
32212
32274
  init_matcher();
32213
32275
  init_router2();
32214
32276
  }
32215
32277
  });
32216
32278
 
32217
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/index.js
32279
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/index.js
32218
32280
  var init_reg_exp_router = __esm({
32219
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/reg-exp-router/index.js"() {
32281
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/reg-exp-router/index.js"() {
32220
32282
  init_router2();
32221
32283
  init_prepared_router();
32222
32284
  }
32223
32285
  });
32224
32286
 
32225
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/smart-router/router.js
32287
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/smart-router/router.js
32226
32288
  var SmartRouter;
32227
32289
  var init_router3 = __esm({
32228
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/smart-router/router.js"() {
32290
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/smart-router/router.js"() {
32229
32291
  init_router();
32230
32292
  SmartRouter = class {
32231
32293
  name = "SmartRouter";
@@ -32283,17 +32345,17 @@ var init_router3 = __esm({
32283
32345
  }
32284
32346
  });
32285
32347
 
32286
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/smart-router/index.js
32348
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/smart-router/index.js
32287
32349
  var init_smart_router = __esm({
32288
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/smart-router/index.js"() {
32350
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/smart-router/index.js"() {
32289
32351
  init_router3();
32290
32352
  }
32291
32353
  });
32292
32354
 
32293
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/trie-router/node.js
32355
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/trie-router/node.js
32294
32356
  var emptyParams, hasChildren, Node2;
32295
32357
  var init_node2 = __esm({
32296
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/trie-router/node.js"() {
32358
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/trie-router/node.js"() {
32297
32359
  init_router();
32298
32360
  init_url();
32299
32361
  emptyParams = /* @__PURE__ */ Object.create(null);
@@ -32429,6 +32491,15 @@ var init_node2 = __esm({
32429
32491
  if (m) {
32430
32492
  params[name2] = m[0];
32431
32493
  this.#pushHandlerSets(handlerSets, child, method, node2.#params, params);
32494
+ if (m[0].length === restPathString.length && child.#children["*"]) {
32495
+ this.#pushHandlerSets(
32496
+ handlerSets,
32497
+ child.#children["*"],
32498
+ method,
32499
+ node2.#params,
32500
+ params
32501
+ );
32502
+ }
32432
32503
  if (hasChildren(child.#children)) {
32433
32504
  child.#params = params;
32434
32505
  const componentCount = m[0].match(/\//)?.length ?? 0;
@@ -32472,10 +32543,10 @@ var init_node2 = __esm({
32472
32543
  }
32473
32544
  });
32474
32545
 
32475
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/trie-router/router.js
32546
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/trie-router/router.js
32476
32547
  var TrieRouter;
32477
32548
  var init_router4 = __esm({
32478
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/trie-router/router.js"() {
32549
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/trie-router/router.js"() {
32479
32550
  init_url();
32480
32551
  init_node2();
32481
32552
  TrieRouter = class {
@@ -32501,17 +32572,17 @@ var init_router4 = __esm({
32501
32572
  }
32502
32573
  });
32503
32574
 
32504
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/trie-router/index.js
32575
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/trie-router/index.js
32505
32576
  var init_trie_router = __esm({
32506
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/router/trie-router/index.js"() {
32577
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/router/trie-router/index.js"() {
32507
32578
  init_router4();
32508
32579
  }
32509
32580
  });
32510
32581
 
32511
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/hono.js
32582
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/hono.js
32512
32583
  var Hono2;
32513
32584
  var init_hono = __esm({
32514
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/hono.js"() {
32585
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/hono.js"() {
32515
32586
  init_hono_base();
32516
32587
  init_reg_exp_router();
32517
32588
  init_smart_router();
@@ -32532,10 +32603,11 @@ var init_hono = __esm({
32532
32603
  }
32533
32604
  });
32534
32605
 
32535
- // ../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/index.js
32606
+ // ../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/index.js
32536
32607
  var init_dist = __esm({
32537
- "../../node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/index.js"() {
32608
+ "../../node_modules/.pnpm/hono@4.12.34/node_modules/hono/dist/index.js"() {
32538
32609
  init_hono();
32610
+ init_context();
32539
32611
  }
32540
32612
  });
32541
32613
 
@@ -61841,11 +61913,11 @@ var require_util2 = __commonJS({
61841
61913
  var { isUint8Array } = __require("node:util/types");
61842
61914
  var { webidl } = require_webidl();
61843
61915
  var supportedHashes = [];
61844
- var crypto2;
61916
+ var crypto3;
61845
61917
  try {
61846
- crypto2 = __require("node:crypto");
61918
+ crypto3 = __require("node:crypto");
61847
61919
  const possibleRelevantHashes = ["sha256", "sha384", "sha512"];
61848
- supportedHashes = crypto2.getHashes().filter((hash2) => possibleRelevantHashes.includes(hash2));
61920
+ supportedHashes = crypto3.getHashes().filter((hash2) => possibleRelevantHashes.includes(hash2));
61849
61921
  } catch {
61850
61922
  }
61851
61923
  function responseURL(response) {
@@ -62118,7 +62190,7 @@ var require_util2 = __commonJS({
62118
62190
  }
62119
62191
  }
62120
62192
  function bytesMatch(bytes, metadataList) {
62121
- if (crypto2 === void 0) {
62193
+ if (crypto3 === void 0) {
62122
62194
  return true;
62123
62195
  }
62124
62196
  const parsedMetadata = parseMetadata(metadataList);
@@ -62133,7 +62205,7 @@ var require_util2 = __commonJS({
62133
62205
  for (const item2 of metadata2) {
62134
62206
  const algorithm = item2.algo;
62135
62207
  const expectedValue = item2.hash;
62136
- let actualValue = crypto2.createHash(algorithm).update(bytes).digest("base64");
62208
+ let actualValue = crypto3.createHash(algorithm).update(bytes).digest("base64");
62137
62209
  if (actualValue[actualValue.length - 1] === "=") {
62138
62210
  if (actualValue[actualValue.length - 2] === "=") {
62139
62211
  actualValue = actualValue.slice(0, -2);
@@ -62785,7 +62857,7 @@ var require_formdata = __commonJS({
62785
62857
  var { File: NativeFile } = __require("node:buffer");
62786
62858
  var nodeUtil = __require("node:util");
62787
62859
  var File2 = globalThis.File ?? NativeFile;
62788
- var FormData = class _FormData {
62860
+ var FormData2 = class _FormData {
62789
62861
  constructor(form) {
62790
62862
  webidl.util.markAsUncloneable(this);
62791
62863
  if (form !== void 0) {
@@ -62887,8 +62959,8 @@ var require_formdata = __commonJS({
62887
62959
  return `FormData ${output.slice(output.indexOf("]") + 2)}`;
62888
62960
  }
62889
62961
  };
62890
- iteratorMixin("FormData", FormData, kState, "name", "value");
62891
- Object.defineProperties(FormData.prototype, {
62962
+ iteratorMixin("FormData", FormData2, kState, "name", "value");
62963
+ Object.defineProperties(FormData2.prototype, {
62892
62964
  append: kEnumerableProperty,
62893
62965
  delete: kEnumerableProperty,
62894
62966
  get: kEnumerableProperty,
@@ -62916,7 +62988,7 @@ var require_formdata = __commonJS({
62916
62988
  }
62917
62989
  return { name: name2, value };
62918
62990
  }
62919
- module2.exports = { FormData, makeEntry };
62991
+ module2.exports = { FormData: FormData2, makeEntry };
62920
62992
  }
62921
62993
  });
62922
62994
 
@@ -63186,7 +63258,7 @@ var require_body = __commonJS({
63186
63258
  extractMimeType,
63187
63259
  utf8DecodeBytes
63188
63260
  } = require_util2();
63189
- var { FormData } = require_formdata();
63261
+ var { FormData: FormData2 } = require_formdata();
63190
63262
  var { kState } = require_symbols2();
63191
63263
  var { webidl } = require_webidl();
63192
63264
  var { Blob: Blob2 } = __require("node:buffer");
@@ -63197,8 +63269,8 @@ var require_body = __commonJS({
63197
63269
  var { multipartFormDataParser } = require_formdata_parser();
63198
63270
  var random;
63199
63271
  try {
63200
- const crypto2 = __require("node:crypto");
63201
- random = (max) => crypto2.randomInt(0, max);
63272
+ const crypto3 = __require("node:crypto");
63273
+ random = (max) => crypto3.randomInt(0, max);
63202
63274
  } catch {
63203
63275
  random = (max) => Math.floor(Math.random(max));
63204
63276
  }
@@ -63406,13 +63478,13 @@ Content-Type: ${value.type || "application/octet-stream"}\r
63406
63478
  if (parsed === "failure") {
63407
63479
  throw new TypeError("Failed to parse body as FormData.");
63408
63480
  }
63409
- const fd = new FormData();
63481
+ const fd = new FormData2();
63410
63482
  fd[kState] = parsed;
63411
63483
  return fd;
63412
63484
  }
63413
63485
  case "application/x-www-form-urlencoded": {
63414
63486
  const entries = new URLSearchParams(value.toString());
63415
- const fd = new FormData();
63487
+ const fd = new FormData2();
63416
63488
  for (const [name2, value2] of entries) {
63417
63489
  fd.append(name2, value2);
63418
63490
  }
@@ -69949,7 +70021,7 @@ var require_response = __commonJS({
69949
70021
  } = require_constants3();
69950
70022
  var { kState, kHeaders } = require_symbols2();
69951
70023
  var { webidl } = require_webidl();
69952
- var { FormData } = require_formdata();
70024
+ var { FormData: FormData2 } = require_formdata();
69953
70025
  var { URLSerializer } = require_data_url();
69954
70026
  var { kConstruct } = require_symbols();
69955
70027
  var assert2 = __require("node:assert");
@@ -70262,7 +70334,7 @@ var require_response = __commonJS({
70262
70334
  ReadableStream
70263
70335
  );
70264
70336
  webidl.converters.FormData = webidl.interfaceConverter(
70265
- FormData
70337
+ FormData2
70266
70338
  );
70267
70339
  webidl.converters.URLSearchParams = webidl.interfaceConverter(
70268
70340
  URLSearchParams
@@ -74606,13 +74678,13 @@ var require_frame = __commonJS({
74606
74678
  "use strict";
74607
74679
  var { maxUnsigned16Bit } = require_constants5();
74608
74680
  var BUFFER_SIZE = 16386;
74609
- var crypto2;
74681
+ var crypto3;
74610
74682
  var buffer = null;
74611
74683
  var bufIdx = BUFFER_SIZE;
74612
74684
  try {
74613
- crypto2 = __require("node:crypto");
74685
+ crypto3 = __require("node:crypto");
74614
74686
  } catch {
74615
- crypto2 = {
74687
+ crypto3 = {
74616
74688
  // not full compatibility, but minimum.
74617
74689
  randomFillSync: function randomFillSync(buffer2, _offset, _size2) {
74618
74690
  for (let i2 = 0; i2 < buffer2.length; ++i2) {
@@ -74625,7 +74697,7 @@ var require_frame = __commonJS({
74625
74697
  function generateMask() {
74626
74698
  if (bufIdx === BUFFER_SIZE) {
74627
74699
  bufIdx = 0;
74628
- crypto2.randomFillSync(buffer ??= Buffer.allocUnsafe(BUFFER_SIZE), 0, BUFFER_SIZE);
74700
+ crypto3.randomFillSync(buffer ??= Buffer.allocUnsafe(BUFFER_SIZE), 0, BUFFER_SIZE);
74629
74701
  }
74630
74702
  return [buffer[bufIdx++], buffer[bufIdx++], buffer[bufIdx++], buffer[bufIdx++]];
74631
74703
  }
@@ -74697,9 +74769,9 @@ var require_connection = __commonJS({
74697
74769
  var { Headers: Headers2, getHeadersList } = require_headers();
74698
74770
  var { getDecodeSplit } = require_util2();
74699
74771
  var { WebsocketFrameSend } = require_frame();
74700
- var crypto2;
74772
+ var crypto3;
74701
74773
  try {
74702
- crypto2 = __require("node:crypto");
74774
+ crypto3 = __require("node:crypto");
74703
74775
  } catch {
74704
74776
  }
74705
74777
  function establishWebSocketConnection(url2, protocols, client, ws, onEstablish, options) {
@@ -74719,7 +74791,7 @@ var require_connection = __commonJS({
74719
74791
  const headersList = getHeadersList(new Headers2(options.headers));
74720
74792
  request.headersList = headersList;
74721
74793
  }
74722
- const keyValue = crypto2.randomBytes(16).toString("base64");
74794
+ const keyValue = crypto3.randomBytes(16).toString("base64");
74723
74795
  request.headersList.append("sec-websocket-key", keyValue);
74724
74796
  request.headersList.append("sec-websocket-version", "13");
74725
74797
  for (const protocol of protocols) {
@@ -74749,7 +74821,7 @@ var require_connection = __commonJS({
74749
74821
  return;
74750
74822
  }
74751
74823
  const secWSAccept = response.headersList.get("Sec-WebSocket-Accept");
74752
- const digest2 = crypto2.createHash("sha1").update(keyValue + uid).digest("base64");
74824
+ const digest2 = crypto3.createHash("sha1").update(keyValue + uid).digest("base64");
74753
74825
  if (secWSAccept !== digest2) {
74754
74826
  failWebsocketConnection(ws, "Incorrect hash received in Sec-WebSocket-Accept header.");
74755
74827
  return;
@@ -76900,12 +76972,12 @@ import { spawn as spawn5 } from "node:child_process";
76900
76972
  // src/daemon.ts
76901
76973
  import { existsSync as existsSync29, writeFileSync as writeFileSync24 } from "node:fs";
76902
76974
 
76903
- // ../../node_modules/.pnpm/@hono+node-server@1.19.11_hono@4.12.8/node_modules/@hono/node-server/dist/index.mjs
76975
+ // ../../node_modules/.pnpm/@hono+node-server@1.19.11_hono@4.12.34/node_modules/@hono/node-server/dist/index.mjs
76904
76976
  import { createServer as createServerHTTP } from "http";
76905
76977
  import { Http2ServerRequest as Http2ServerRequest2 } from "http2";
76906
76978
  import { Http2ServerRequest } from "http2";
76907
76979
  import { Readable } from "stream";
76908
- import crypto from "crypto";
76980
+ import crypto2 from "crypto";
76909
76981
  var RequestError = class extends Error {
76910
76982
  constructor(message2, options) {
76911
76983
  super(message2, options);
@@ -77222,7 +77294,7 @@ var buildOutgoingHttpHeaders = (headers) => {
77222
77294
  };
77223
77295
  var X_ALREADY_SENT = "x-hono-already-sent";
77224
77296
  if (typeof global.crypto === "undefined") {
77225
- global.crypto = crypto;
77297
+ global.crypto = crypto2;
77226
77298
  }
77227
77299
  var outgoingEnded = Symbol("outgoingEnded");
77228
77300
  var handleRequestError = () => new Response(null, {
@@ -86302,7 +86374,7 @@ function createWatchBreaker(deps) {
86302
86374
  }
86303
86375
 
86304
86376
  // src/engine.ts
86305
- var DAEMON_VERSION = true ? "2.0.22-dev.4293" : "2.0.0-alpha.0";
86377
+ var DAEMON_VERSION = true ? "2.0.22-dev.4411" : "2.0.0-alpha.0";
86306
86378
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
86307
86379
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
86308
86380
  var GIT_OP_MUTE_MS = 4e3;