@openclaw/google-meet 2026.8.1-beta.2 → 2026.9.1-beta.1

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.
Files changed (141) hide show
  1. package/dist/{cli-o7RWVqDb.js → cli-Bd63VJ5q.js} +31 -19
  2. package/dist/{create-UHeaRzsH.js → create-BEDHM6uL.js} +1 -1
  3. package/dist/index.js +2 -2
  4. package/dist/{plugin-helpers-CfeT1SYY.js → plugin-helpers-C9-Y0Ago.js} +2 -2
  5. package/dist/{plugin-registration-rSOssQmm.js → plugin-registration-Csi-NdQU.js} +3 -13
  6. package/node_modules/typebox/build/format/date.d.mts +1 -1
  7. package/node_modules/typebox/build/format/date.mjs +1 -1
  8. package/node_modules/typebox/build/format/date_time.d.mts +2 -2
  9. package/node_modules/typebox/build/format/date_time.mjs +3 -3
  10. package/node_modules/typebox/build/format/email.d.mts +1 -1
  11. package/node_modules/typebox/build/format/email.mjs +2 -2
  12. package/node_modules/typebox/build/format/hostname.mjs +2 -10
  13. package/node_modules/typebox/build/format/idn_email.d.mts +1 -1
  14. package/node_modules/typebox/build/format/idn_email.mjs +3 -3
  15. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -0
  16. package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
  17. package/node_modules/typebox/build/format/idna/format/bidi.d.mts +3 -0
  18. package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
  19. package/node_modules/typebox/build/format/idna/format/puny.d.mts +3 -0
  20. package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
  21. package/node_modules/typebox/build/format/idna/hostname.d.mts +1 -0
  22. package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
  23. package/node_modules/typebox/build/format/idna/idn-hostname.d.mts +1 -0
  24. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +23 -0
  25. package/node_modules/typebox/build/format/idna/index.d.mts +2 -0
  26. package/node_modules/typebox/build/format/idna/index.mjs +2 -0
  27. package/node_modules/typebox/build/format/idna/label/ascii.d.mts +1 -0
  28. package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
  29. package/node_modules/typebox/build/format/idna/label/puny.d.mts +1 -0
  30. package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
  31. package/node_modules/typebox/build/format/idna/label/unicode.d.mts +1 -0
  32. package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
  33. package/node_modules/typebox/build/format/idna/pattern/pattern.d.mts +30 -0
  34. package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
  35. package/node_modules/typebox/build/format/ipv4.d.mts +0 -1
  36. package/node_modules/typebox/build/format/ipv4.mjs +2 -32
  37. package/node_modules/typebox/build/format/ipv6.mjs +2 -61
  38. package/node_modules/typebox/build/format/iri.d.mts +2 -2
  39. package/node_modules/typebox/build/format/iri.mjs +26 -8
  40. package/node_modules/typebox/build/format/iri_reference.d.mts +2 -2
  41. package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
  42. package/node_modules/typebox/build/format/regex.d.mts +1 -2
  43. package/node_modules/typebox/build/format/regex.mjs +2 -6
  44. package/node_modules/typebox/build/format/time.d.mts +2 -2
  45. package/node_modules/typebox/build/format/time.mjs +19 -14
  46. package/node_modules/typebox/build/format/uri.d.mts +1 -1
  47. package/node_modules/typebox/build/format/uri.mjs +3 -130
  48. package/node_modules/typebox/build/format/uri_reference.d.mts +1 -1
  49. package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
  50. package/node_modules/typebox/build/format/uri_template.d.mts +2 -3
  51. package/node_modules/typebox/build/format/uri_template.mjs +4 -5
  52. package/node_modules/typebox/build/format/url.d.mts +3 -3
  53. package/node_modules/typebox/build/format/url.mjs +4 -5
  54. package/node_modules/typebox/build/guard/emit.d.mts +3 -1
  55. package/node_modules/typebox/build/guard/emit.mjs +12 -5
  56. package/node_modules/typebox/build/guard/guard.d.mts +8 -2
  57. package/node_modules/typebox/build/guard/guard.mjs +25 -4
  58. package/node_modules/typebox/build/guard/string.d.mts +2 -2
  59. package/node_modules/typebox/build/guard/string.mjs +7 -7
  60. package/node_modules/typebox/build/schema/engine/_context.mjs +3 -3
  61. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -2
  62. package/node_modules/typebox/build/schema/engine/_regexp.d.mts +2 -0
  63. package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
  64. package/node_modules/typebox/build/schema/engine/_stack.mjs +12 -13
  65. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
  66. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +4 -3
  67. package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
  68. package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
  69. package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
  70. package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
  71. package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
  72. package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
  73. package/node_modules/typebox/build/schema/engine/oneOf.mjs +7 -6
  74. package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
  75. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
  76. package/node_modules/typebox/build/schema/engine/ref.mjs +1 -7
  77. package/node_modules/typebox/build/schema/engine/schema.mjs +13 -4
  78. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  79. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
  80. package/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
  81. package/node_modules/typebox/build/schema/static/propertyNames.d.mts +5 -0
  82. package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
  83. package/node_modules/typebox/build/schema/static/schema.d.mts +3 -0
  84. package/node_modules/typebox/build/schema/types/index.d.mts +0 -2
  85. package/node_modules/typebox/build/schema/types/index.mjs +0 -2
  86. package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
  87. package/node_modules/typebox/build/system/memory/discard.mjs +6 -5
  88. package/node_modules/typebox/build/system/settings/settings.d.mts +9 -0
  89. package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
  90. package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +6 -1
  91. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
  92. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
  93. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +5 -5
  94. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
  95. package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +6 -10
  96. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
  97. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +7 -4
  98. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
  99. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +4 -20
  100. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
  101. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +4 -4
  102. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
  103. package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +1 -1
  104. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
  105. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -2
  106. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
  107. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
  108. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +1 -1
  109. package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
  110. package/node_modules/typebox/build/type/engine/priority/priority.d.mts +2 -2
  111. package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
  112. package/node_modules/typebox/build/type/script/mapping.d.mts +32 -29
  113. package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
  114. package/node_modules/typebox/build/type/script/parser.d.mts +19 -25
  115. package/node_modules/typebox/build/type/script/parser.mjs +27 -23
  116. package/node_modules/typebox/build/value/errors/errors.d.mts +2 -2
  117. package/node_modules/typebox/build/value/errors/errors.mjs +1 -1
  118. package/node_modules/typebox/package.json +27 -27
  119. package/node_modules/typebox/readme.md +79 -82
  120. package/openclaw.plugin.json +7 -0
  121. package/package.json +5 -7
  122. package/node_modules/pretty-ms/index.d.ts +0 -157
  123. package/node_modules/pretty-ms/index.js +0 -149
  124. package/node_modules/pretty-ms/license +0 -9
  125. package/node_modules/pretty-ms/node_modules/parse-ms/index.d.ts +0 -30
  126. package/node_modules/pretty-ms/node_modules/parse-ms/index.js +0 -45
  127. package/node_modules/pretty-ms/node_modules/parse-ms/license +0 -9
  128. package/node_modules/pretty-ms/node_modules/parse-ms/package.json +0 -47
  129. package/node_modules/pretty-ms/node_modules/parse-ms/readme.md +0 -46
  130. package/node_modules/pretty-ms/package.json +0 -55
  131. package/node_modules/pretty-ms/readme.md +0 -179
  132. package/node_modules/typebox/build/format/_idna.d.mts +0 -2
  133. package/node_modules/typebox/build/format/_idna.mjs +0 -246
  134. package/node_modules/typebox/build/format/_puny.d.mts +0 -1
  135. package/node_modules/typebox/build/format/_puny.mjs +0 -77
  136. package/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -3
  137. package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
  138. package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +0 -9
  139. package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
  140. package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +0 -9
  141. package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
@@ -1,19 +1,18 @@
1
- import { a as resolveGoogleMeetTokenFromParams, c as buildGoogleMeetPreflightReport, d as fetchGoogleMeetSpace, f as fetchLatestGoogleMeetConferenceRecord, i as resolveArtifactQueryFromParams, l as createGoogleMeetSpace, m as listGoogleMeetCalendarEvents, n as fetchResolvedGoogleMeetAttendance, o as resolveMeetingFromParams, p as buildGoogleMeetCalendarDayWindow, s as resolveSpaceFromParams, t as fetchResolvedGoogleMeetArtifacts, u as endGoogleMeetActiveConference } from "./plugin-helpers-CfeT1SYY.js";
1
+ import { a as resolveGoogleMeetTokenFromParams, c as buildGoogleMeetPreflightReport, d as fetchGoogleMeetSpace, f as fetchLatestGoogleMeetConferenceRecord, i as resolveArtifactQueryFromParams, l as createGoogleMeetSpace, m as listGoogleMeetCalendarEvents, n as fetchResolvedGoogleMeetAttendance, o as resolveMeetingFromParams, p as buildGoogleMeetCalendarDayWindow, s as resolveSpaceFromParams, t as fetchResolvedGoogleMeetArtifacts, u as endGoogleMeetActiveConference } from "./plugin-helpers-C9-Y0Ago.js";
2
2
  import { i as resolveGoogleMeetGatewayOperationTimeoutMs } from "./config-wBK8loBb.js";
3
3
  import { buildGoogleMeetAuthUrl, exchangeGoogleMeetAuthCode, resolveGoogleMeetAccessToken, waitForGoogleMeetAuthCode } from "./oauth-9sUJ68Mw.js";
4
- import { n as hasCreateSpaceConfigInput, r as resolveCreateSpaceConfig } from "./create-UHeaRzsH.js";
5
- import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4
+ import { n as hasCreateSpaceConfigInput, r as resolveCreateSpaceConfig } from "./create-BEDHM6uL.js";
6
5
  import { clampTimerTimeoutMs, parseStrictNonNegativeInteger, parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
7
- import { callGatewayFromCli } from "openclaw/plugin-sdk/gateway-runtime";
6
+ import { callGatewayFromCli, isGatewayClientRequestError, isGatewayTransportError } from "openclaw/plugin-sdk/gateway-runtime";
8
7
  import { generateHexPkceVerifierChallenge } from "openclaw/plugin-sdk/provider-auth";
9
8
  import { generateOAuthState } from "openclaw/plugin-sdk/provider-auth-runtime";
10
- import fsp, { writeFile } from "node:fs/promises";
9
+ import fsp, { stat } from "node:fs/promises";
11
10
  import path from "node:path";
12
11
  import JSZip from "jszip";
13
- import { writeExternalFileWithinRoot } from "openclaw/plugin-sdk/security-runtime";
12
+ import { replaceFileAtomic, writeExternalFileWithinRoot } from "openclaw/plugin-sdk/security-runtime";
14
13
  import { createInterface } from "node:readline/promises";
15
14
  import { format } from "node:util";
16
- import prettyMilliseconds from "pretty-ms";
15
+ import { formatDurationCompact } from "openclaw/plugin-sdk/time-runtime";
17
16
  //#region extensions/google-meet/src/cli-command-context.ts
18
17
  function addGoogleMeetOAuthOptions(command) {
19
18
  return command.option("--access-token <token>", "Access token override").option("--refresh-token <token>", "Refresh token override").option("--client-id <id>", "OAuth client id override").option("--client-secret <secret>", "OAuth client secret override").option("--expires-at <ms>", "Cached access token expiry as unix epoch milliseconds");
@@ -29,12 +28,6 @@ function addGoogleMeetArtifactOptions(command) {
29
28
  }
30
29
  //#endregion
31
30
  //#region extensions/google-meet/src/cli-shared.ts
32
- const testing = {
33
- parsePositiveNumber,
34
- resolveGoogleMeetGatewayOperationTimeoutMs,
35
- resolveGoogleMeetGatewayTimeoutMs,
36
- resolveGoogleMeetOAuthCallbackTimeoutMs
37
- };
38
31
  const GOOGLE_MEET_GATEWAY_DEFAULT_TIMEOUT_MS = 5e3;
39
32
  const PLAIN_DECIMAL_NUMBER_RE = /^\d+(?:\.\d+)?$/;
40
33
  function parseGoogleMeetMode(value) {
@@ -54,15 +47,26 @@ function writeStdoutJson(value) {
54
47
  process.stdout.write(`${JSON.stringify(value, null, 2)}\n`);
55
48
  }
56
49
  function isGatewayUnavailableForLocalFallback(err, method) {
57
- const message = formatErrorMessage(err);
58
- return message.includes("ECONNREFUSED") || message.includes("ECONNRESET") || message.includes("EHOSTUNREACH") || message.includes("ENOTFOUND") || message.includes("gateway not connected") || message.includes(`unknown method: ${method}`);
50
+ if (isGatewayTransportError(err)) return err.kind === "closed" && err.code === void 0;
51
+ return isGatewayClientRequestError(err) && err.message.includes(`unknown method: ${method}`);
59
52
  }
60
53
  function writeStdoutLine(...values) {
61
54
  process.stdout.write(`${format(...values)}\n`);
62
55
  }
63
56
  async function writeCliOutput(options, text) {
64
57
  if (options.output?.trim()) {
65
- await writeFile(options.output, text.endsWith("\n") ? text : `${text}\n`, "utf8");
58
+ const dirMode = (await stat(path.dirname(options.output))).mode & 4095;
59
+ await replaceFileAtomic({
60
+ filePath: options.output,
61
+ content: text.endsWith("\n") ? text : `${text}\n`,
62
+ dirMode,
63
+ mode: 438 & ~process.umask(),
64
+ preserveExistingMode: true,
65
+ tempPrefix: ".google-meet-output",
66
+ syncTempFile: true,
67
+ syncParentDir: true,
68
+ throwOnCleanupError: true
69
+ });
66
70
  writeStdoutLine("wrote: %s", options.output);
67
71
  return;
68
72
  }
@@ -135,7 +139,10 @@ async function callGoogleMeetGateway(params) {
135
139
  }
136
140
  function formatDuration(value) {
137
141
  if (value === void 0) return "n/a";
138
- return prettyMilliseconds(Math.max(0, Math.round(value / 1e3) * 1e3), { unitCount: 2 });
142
+ return formatDurationCompact(Math.max(0, Math.round(value / 1e3) * 1e3), {
143
+ showYears: true,
144
+ spaced: true
145
+ }) ?? "0ms";
139
146
  }
140
147
  function writeDoctorStatus(status) {
141
148
  if (!status.found) {
@@ -585,7 +592,12 @@ async function publishMeetExportFile(outputPath, content) {
585
592
  async function writeMeetExportBundle(params) {
586
593
  const outputDir = params.outputDir?.trim() || defaultExportDirectory();
587
594
  await fsp.mkdir(outputDir, { recursive: true });
588
- const zipFile = params.zip ? `${outputDir.replace(/\/$/, "")}.zip` : void 0;
595
+ let zipOutputDir = outputDir;
596
+ if (params.zip) {
597
+ const resolvedOutputDir = path.resolve(outputDir);
598
+ if (resolvedOutputDir !== path.parse(resolvedOutputDir).root) zipOutputDir = outputDir.replace(path.sep === "\\" ? /[\\/]+$/ : /\/+$/, "");
599
+ }
600
+ const zipFile = params.zip ? `${zipOutputDir.replace(/\/$/, "")}.zip` : void 0;
589
601
  const fileNames = googleMeetExportFileNames();
590
602
  const files = [
591
603
  {
@@ -1359,4 +1371,4 @@ function registerGoogleMeetCli(params) {
1359
1371
  registerGoogleMeetLifecycleCommands(context);
1360
1372
  }
1361
1373
  //#endregion
1362
- export { buildGoogleMeetExportManifest, googleMeetExportFileNames, registerGoogleMeetCli, testing, writeMeetExportBundle };
1374
+ export { buildGoogleMeetExportManifest, googleMeetExportFileNames, registerGoogleMeetCli, writeMeetExportBundle };
@@ -1,4 +1,4 @@
1
- import { h as __exportAll, l as createGoogleMeetSpace } from "./plugin-helpers-CfeT1SYY.js";
1
+ import { h as __exportAll, l as createGoogleMeetSpace } from "./plugin-helpers-C9-Y0Ago.js";
2
2
  import { resolveGoogleMeetAccessToken } from "./oauth-9sUJ68Mw.js";
3
3
  import { t as createMeetWithBrowserProxyOnNode } from "./chrome-create-PKAyxCiL.js";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as GOOGLE_MEET_CLI_DESCRIPTOR } from "./cli-output-mode-BwH_6tH8.js";
2
2
  import { n as GOOGLE_MEET_NODE_COMMAND } from "./google-meet-platform-constants-Bs5iAg3E.js";
3
3
  import { r as resolveGoogleMeetConfig } from "./config-wBK8loBb.js";
4
- import { a as createLazyGoogleMeetNodeInvokePolicy, c as loadGoogleMeetCliModule, d as normalizeMode, f as normalizeTransport, g as testing, h as shouldJoinCreatedMeet, i as createGoogleMeetRuntimeAccessor, l as loadGoogleMeetNodeHostModule, m as sendGoogleMeetGatewayError, n as assertGoogleMeetAgentToolActionSupported, o as formatGoogleMeetGatewayError, p as resolveMeetingInput, r as callGoogleMeetGatewayFromTool, s as keepTrustedToolAgentId, t as asParamRecord, u as loadGoogleMeetPluginHelpers } from "./plugin-registration-rSOssQmm.js";
4
+ import { a as createLazyGoogleMeetNodeInvokePolicy, c as loadGoogleMeetCliModule, d as normalizeMode, f as normalizeTransport, h as shouldJoinCreatedMeet, i as createGoogleMeetRuntimeAccessor, l as loadGoogleMeetNodeHostModule, m as sendGoogleMeetGatewayError, n as assertGoogleMeetAgentToolActionSupported, o as formatGoogleMeetGatewayError, p as resolveMeetingInput, r as callGoogleMeetGatewayFromTool, s as keepTrustedToolAgentId, t as asParamRecord, u as loadGoogleMeetPluginHelpers } from "./plugin-registration-Csi-NdQU.js";
5
5
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
6
6
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import { jsonResult } from "openclaw/plugin-sdk/tool-results";
@@ -375,4 +375,4 @@ var google_meet_default = definePluginEntry({
375
375
  }
376
376
  });
377
377
  //#endregion
378
- export { google_meet_default as default, testing };
378
+ export { google_meet_default as default };
@@ -1,4 +1,4 @@
1
- import { c as loadGoogleMeetCliModule, p as resolveMeetingInput } from "./plugin-registration-rSOssQmm.js";
1
+ import { c as loadGoogleMeetCliModule, p as resolveMeetingInput } from "./plugin-registration-Csi-NdQU.js";
2
2
  import { t as googleApiError } from "./google-api-errors-CDUYkIcK.js";
3
3
  import { t as normalizeMeetUrl } from "./meet-url-BP2Jlvjs.js";
4
4
  import { normalizeOptionalString, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -773,7 +773,7 @@ var plugin_helpers_exports = /* @__PURE__ */ __exportAll({
773
773
  resolveMeetingFromParams: () => resolveMeetingFromParams,
774
774
  resolveSpaceFromParams: () => resolveSpaceFromParams
775
775
  });
776
- const loadGoogleMeetCreateModule = createLazyRuntimeModule(() => import("./create-UHeaRzsH.js").then((n) => n.t));
776
+ const loadGoogleMeetCreateModule = createLazyRuntimeModule(() => import("./create-BEDHM6uL.js").then((n) => n.t));
777
777
  async function createMeetFromParams(params) {
778
778
  return (await loadGoogleMeetCreateModule()).createMeetFromParams(params);
779
779
  }
@@ -4,8 +4,8 @@ import { asNonArrayRecord as asParamRecord, normalizeOptionalString } from "open
4
4
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  //#region extensions/google-meet/src/plugin-registration.ts
7
- const loadGoogleMeetPluginHelpers = createLazyRuntimeModule(() => import("./plugin-helpers-CfeT1SYY.js").then((n) => n.r));
8
- const loadGoogleMeetCliModule = createLazyRuntimeModule(() => import("./cli-o7RWVqDb.js"));
7
+ const loadGoogleMeetPluginHelpers = createLazyRuntimeModule(() => import("./plugin-helpers-C9-Y0Ago.js").then((n) => n.r));
8
+ const loadGoogleMeetCliModule = createLazyRuntimeModule(() => import("./cli-Bd63VJ5q.js"));
9
9
  const loadGoogleMeetNodeHostModule = createLazyRuntimeModule(() => import("./node-host-BXtXbsMa.js"));
10
10
  const loadGoogleMeetRuntimeModule = createLazyRuntimeModule(() => import("./runtime-B8d1beHo.js"));
11
11
  const loadGoogleMeetNodeInvokePolicyModule = createLazyRuntimeModule(() => import("./node-invoke-policy-B0gOlLJR.js"));
@@ -127,15 +127,5 @@ function sendGoogleMeetGatewayError(respond, err, code = "UNAVAILABLE") {
127
127
  details: payload
128
128
  });
129
129
  }
130
- const testing = {
131
- setCallGatewayFromCliForTests(next) {
132
- googleMeetToolDeps.callGatewayFromCli = next;
133
- },
134
- setPlatformForTests(next) {
135
- googleMeetToolDeps.platform = next ?? (() => process.platform);
136
- },
137
- isGoogleMeetAgentToolActionUnsupportedOnHost,
138
- resolveGoogleMeetGatewayOperationTimeoutMs
139
- };
140
130
  //#endregion
141
- export { createLazyGoogleMeetNodeInvokePolicy as a, loadGoogleMeetCliModule as c, normalizeMode as d, normalizeTransport as f, testing as g, shouldJoinCreatedMeet as h, createGoogleMeetRuntimeAccessor as i, loadGoogleMeetNodeHostModule as l, sendGoogleMeetGatewayError as m, assertGoogleMeetAgentToolActionSupported as n, formatGoogleMeetGatewayError as o, resolveMeetingInput as p, callGoogleMeetGatewayFromTool as r, keepTrustedToolAgentId as s, asParamRecord as t, loadGoogleMeetPluginHelpers as u };
131
+ export { createLazyGoogleMeetNodeInvokePolicy as a, loadGoogleMeetCliModule as c, normalizeMode as d, normalizeTransport as f, shouldJoinCreatedMeet as h, createGoogleMeetRuntimeAccessor as i, loadGoogleMeetNodeHostModule as l, sendGoogleMeetGatewayError as m, assertGoogleMeetAgentToolActionSupported as n, formatGoogleMeetGatewayError as o, resolveMeetingInput as p, callGoogleMeetGatewayFromTool as r, keepTrustedToolAgentId as s, asParamRecord as t, loadGoogleMeetPluginHelpers as u };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Returns true if the value is a ISO8601 Date component string
3
- * @source ajv-formats
3
+ * @description https://datatracker.ietf.org/doc/html/rfc3339
4
4
  * @example `2020-12-12`
5
5
  */
6
6
  export declare function IsDate(value: string): boolean;
@@ -5,7 +5,7 @@ function IsLeapYear(year) {
5
5
  }
6
6
  /**
7
7
  * Returns true if the value is a ISO8601 Date component string
8
- * @source ajv-formats
8
+ * @description https://datatracker.ietf.org/doc/html/rfc3339
9
9
  * @example `2020-12-12`
10
10
  */
11
11
  export function IsDate(value) {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Returns true if the value is a ISO8601 DateTime string
3
- * @source ajv-formats
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc3339
4
4
  * @example `2020-12-12T20:20:40+00:00`
5
5
  */
6
- export declare function IsDateTime(value: string, strictTimeZone?: boolean): boolean;
6
+ export declare function IsDateTime(value: string): boolean;
@@ -2,10 +2,10 @@ import { IsDate } from './date.mjs';
2
2
  import { IsTime } from './time.mjs';
3
3
  /**
4
4
  * Returns true if the value is a ISO8601 DateTime string
5
- * @source ajv-formats
5
+ * @specification https://datatracker.ietf.org/doc/html/rfc3339
6
6
  * @example `2020-12-12T20:20:40+00:00`
7
7
  */
8
- export function IsDateTime(value, strictTimeZone = true) {
8
+ export function IsDateTime(value) {
9
9
  const dateTime = value.split(/T/i);
10
- return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1], strictTimeZone);
10
+ return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1]);
11
11
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Returns true if the value is an Email
3
- * @specification ajv-formats
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc5322
4
4
  */
5
5
  export declare function IsEmail(value: string): boolean;
@@ -1,7 +1,7 @@
1
- const Email = /^(?!.*\.\.)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;
1
+ const Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\.)*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;
2
2
  /**
3
3
  * Returns true if the value is an Email
4
- * @specification ajv-formats
4
+ * @specification https://datatracker.ietf.org/doc/html/rfc5322
5
5
  */
6
6
  export function IsEmail(value) {
7
7
  return Email.test(value);
@@ -1,4 +1,4 @@
1
- import * as Idna from './_idna.mjs';
1
+ import * as Idna from './idna/index.mjs';
2
2
  /**
3
3
  * Returns true if the value is a valid hostname.
4
4
  * @specification https://tools.ietf.org/html/rfc1123
@@ -6,13 +6,5 @@ import * as Idna from './_idna.mjs';
6
6
  * @specification https://tools.ietf.org/html/rfc5892
7
7
  */
8
8
  export function IsHostname(value) {
9
- if (value.length === 0 || value.length > 253)
10
- return false;
11
- if (value.charCodeAt(value.length - 1) === 46)
12
- return false;
13
- for (const label of value.split('.')) {
14
- if (!Idna.IsLabel(label))
15
- return false;
16
- }
17
- return true;
9
+ return Idna.IsHostname(value);
18
10
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Returns true if the value is an IdnEmail
3
- * @specification ajv-formats (unicode-extension)
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc4952
4
4
  */
5
5
  export declare function IsIdnEmail(value: string): boolean;
@@ -1,8 +1,8 @@
1
- const IdnEmail = /^(?!.*\.\.)[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+(?:\.[\p{L}\p{N}!#$%&'*+/=?^_`{|}~-]+)*@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?)*$/iu;
1
+ const IdnEmail = /^(?:[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+(?:\.[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+)*|"(?:[^"\\]|\\.)*")@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-)(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-))*$/iu;
2
2
  /**
3
3
  * Returns true if the value is an IdnEmail
4
- * @specification ajv-formats (unicode-extension)
4
+ * @specification https://datatracker.ietf.org/doc/html/rfc4952
5
5
  */
6
6
  export function IsIdnEmail(value) {
7
- return IdnEmail.test(value);
7
+ return IdnEmail.test(value.normalize('NFC'));
8
8
  }
@@ -3,5 +3,6 @@
3
3
  * @specification https://tools.ietf.org/html/rfc3490
4
4
  * @specification https://tools.ietf.org/html/rfc5891
5
5
  * @specification https://tools.ietf.org/html/rfc5892
6
+ * @specification https://tools.ietf.org/html/rfc5893
6
7
  */
7
8
  export declare function IsIdnHostname(value: string): boolean;
@@ -1,19 +1,11 @@
1
- import { IsIdnLabel } from './_idna.mjs';
1
+ import * as Idna from './idna/index.mjs';
2
2
  /**
3
3
  * Returns true if the value is a valid internationalized (IDN) hostname.
4
4
  * @specification https://tools.ietf.org/html/rfc3490
5
5
  * @specification https://tools.ietf.org/html/rfc5891
6
6
  * @specification https://tools.ietf.org/html/rfc5892
7
+ * @specification https://tools.ietf.org/html/rfc5893
7
8
  */
8
9
  export function IsIdnHostname(value) {
9
- if (value.length === 0 || value.includes(' '))
10
- return false;
11
- const canonical = value.normalize('NFC').replace(/[\u002E\u3002\uFF0E\uFF61]/g, '.');
12
- if (canonical.length > 253)
13
- return false;
14
- for (const label of canonical.split('.')) {
15
- if (!IsIdnLabel(label))
16
- return false;
17
- }
18
- return true;
10
+ return Idna.IsIdnHostname(value);
19
11
  }
@@ -0,0 +1,3 @@
1
+ export declare function HasBidiChars(value: string): boolean;
2
+ export declare function HasRightToLeftCharacters(value: string): boolean;
3
+ export declare function SatisfiesBidiRule(value: string): boolean;
@@ -0,0 +1,98 @@
1
+ // deno-fmt-ignore-file
2
+ import * as FormatPuny from './puny.mjs';
3
+ import * as Pattern from '../pattern/pattern.mjs';
4
+ // ------------------------------------------------------------------
5
+ // LOCAL REGEX: Allowed Bidi classes per direction (RFC 5893)
6
+ // ------------------------------------------------------------------
7
+ const RE_RTL_ALLOWED = /^(?:R|AL|AN|EN|ES|CS|ET|ON|BN|NSM)$/;
8
+ const RE_LTR_ALLOWED = /^(?:L|EN|ES|CS|ET|ON|BN|NSM)$/;
9
+ const RE_RTL_CLASSES = /^(?:R|AL|AN)$/;
10
+ // ------------------------------------------------------------------
11
+ // HasBidiChars
12
+ //
13
+ // Decodes a punycode label to its Unicode form (if it is one) and
14
+ // checks whether the result is an RTL label per RFC 5893 §1.4.
15
+ // ------------------------------------------------------------------
16
+ export function HasBidiChars(value) {
17
+ if (FormatPuny.IsAcePrefixed(value)) {
18
+ try {
19
+ return HasRightToLeftCharacters(FormatPuny.Decode(value.slice(4).toLowerCase()));
20
+ }
21
+ catch {
22
+ return false;
23
+ }
24
+ }
25
+ return HasRightToLeftCharacters(value);
26
+ }
27
+ // ------------------------------------------------------------------
28
+ // GetBidiClass
29
+ // ------------------------------------------------------------------
30
+ function GetBidiClass(codePoint) {
31
+ const char = String.fromCodePoint(codePoint);
32
+ return (Pattern.RE_EUROPEAN_NUMBER.test(char) ? 'EN' :
33
+ Pattern.RE_ARABIC_INDIC_DIGIT.test(char) ? 'AN' :
34
+ // Pattern.RE_EUROPEAN_SEPARATOR.test(char) ? 'ES' : // (no-spec-coverage)
35
+ // Pattern.RE_COMMON_SEPARATOR.test(char) ? 'CS' : // (no-spec-coverage)
36
+ Pattern.RE_MARK_NONSPACING.test(char) ? 'NSM' :
37
+ Pattern.RE_SCRIPT_HEBREW.test(char) ? 'R' :
38
+ Pattern.RE_SCRIPT_ARABIC_LETTER.test(char) ? 'AL' :
39
+ Pattern.RE_LETTER.test(char) ? 'L' :
40
+ 'ON');
41
+ }
42
+ // ------------------------------------------------------------------
43
+ // HasRightToLeftCharacters
44
+ //
45
+ // Per RFC 5893 §1.4: "An RTL label is a label that contains at least
46
+ // one character of type R, AL, or AN." Used to determine whether a
47
+ // domain name is a "Bidi domain name" (RFC 5893 §1.4), in which case
48
+ // the Bidi Rule applies to every label in the domain.
49
+ // ------------------------------------------------------------------
50
+ export function HasRightToLeftCharacters(value) {
51
+ for (const ch of value)
52
+ if (RE_RTL_CLASSES.test(GetBidiClass(ch.codePointAt(0))))
53
+ return true;
54
+ return false;
55
+ }
56
+ // ------------------------------------------------------------------
57
+ // SatisfiesBidiRule
58
+ // ------------------------------------------------------------------
59
+ export function SatisfiesBidiRule(value) {
60
+ let isRtl = false;
61
+ let allowed = RE_LTR_ALLOWED;
62
+ let sawEN = false;
63
+ let sawAN = false;
64
+ let isFirst = true;
65
+ // let lastClass: string | null = null // (no-spec-coverage)
66
+ for (const ch of value) {
67
+ const bidiClass = GetBidiClass(ch.codePointAt(0));
68
+ if (isFirst) {
69
+ // 1. The first character must be a character with Bidi property L, R, or AL.
70
+ if (bidiClass !== 'L' && bidiClass !== 'R' && bidiClass !== 'AL')
71
+ return false;
72
+ isRtl = bidiClass === 'R' || bidiClass === 'AL';
73
+ allowed = isRtl ? RE_RTL_ALLOWED : RE_LTR_ALLOWED;
74
+ isFirst = false;
75
+ }
76
+ // 2 / 5. Only characters in the allowed set for this direction may appear.
77
+ if (!allowed.test(bidiClass))
78
+ return false;
79
+ if (bidiClass === 'EN')
80
+ sawEN = true;
81
+ else if (bidiClass === 'AN')
82
+ sawAN = true;
83
+ // if (bidiClass !== 'NSM') lastClass = bidiClass // (no-spec-coverage)
84
+ }
85
+ if (isRtl && sawEN && sawAN)
86
+ return false; // spec coverage path
87
+ // (no-spec-coverage)
88
+ // if (isRtl) {
89
+ // // 3. The end of the label must be R, AL, EN, or AN (ignoring trailing NSM).
90
+ // // if (lastClass !== 'R' && lastClass !== 'AL' && lastClass !== 'EN' && lastClass !== 'AN') return false
91
+ // // 4. If an EN is present, no AN may be present, and vice versa.
92
+ // if (sawEN && sawAN) return false
93
+ // } else {
94
+ // // 6. The end of the label must be L or EN (ignoring trailing NSM).
95
+ // // if (lastClass !== 'L' && lastClass !== 'EN') return false
96
+ // }
97
+ return true;
98
+ }
@@ -0,0 +1,3 @@
1
+ export declare function IsAcePrefixed(value: string): boolean;
2
+ export declare function Decode(value: string): string;
3
+ export declare function Encode(input: string): string;
@@ -0,0 +1,144 @@
1
+ import * as Pattern from '../pattern/pattern.mjs';
2
+ // ------------------------------------------------------------------
3
+ // PunyCode (RFC 3492)
4
+ // ------------------------------------------------------------------
5
+ const PUNYCODE_BASE = 36;
6
+ const PUNYCODE_TMIN = 1;
7
+ const PUNYCODE_TMAX = 26;
8
+ const PUNYCODE_SKEW = 38;
9
+ const PUNYCODE_DAMP = 700;
10
+ const PUNYCODE_INITIAL_BIAS = 72;
11
+ const PUNYCODE_INITIAL_N = 128;
12
+ // ------------------------------------------------------------------
13
+ // ThrowDontCare
14
+ // ------------------------------------------------------------------
15
+ function ThrowDontCare() {
16
+ throw null;
17
+ }
18
+ // ------------------------------------------------------------------
19
+ // IsAcePrefixed
20
+ // ------------------------------------------------------------------
21
+ export function IsAcePrefixed(value) {
22
+ return value.toLowerCase().startsWith('xn--');
23
+ }
24
+ // ------------------------------------------------------------------
25
+ // Adapt
26
+ // ------------------------------------------------------------------
27
+ function Adapt(delta, numPoints, firstTime) {
28
+ delta = firstTime ? Math.floor(delta / PUNYCODE_DAMP) : delta >> 1;
29
+ delta += Math.floor(delta / numPoints);
30
+ let k = 0;
31
+ while (delta > (((PUNYCODE_BASE - PUNYCODE_TMIN) * PUNYCODE_TMAX) >> 1)) {
32
+ delta = Math.floor(delta / (PUNYCODE_BASE - PUNYCODE_TMIN));
33
+ k += PUNYCODE_BASE;
34
+ }
35
+ return k + Math.floor(((PUNYCODE_BASE - PUNYCODE_TMIN + 1) * delta) / (delta + PUNYCODE_SKEW));
36
+ }
37
+ // ------------------------------------------------------------------
38
+ // Decode
39
+ // ------------------------------------------------------------------
40
+ export function Decode(value) {
41
+ const output = [];
42
+ let n = PUNYCODE_INITIAL_N;
43
+ let i = 0;
44
+ let bias = PUNYCODE_INITIAL_BIAS;
45
+ const delimIdx = value.lastIndexOf('-');
46
+ if (delimIdx > 0) {
47
+ for (let j = 0; j < delimIdx; j++) {
48
+ const cp = value.charCodeAt(j);
49
+ if (cp >= 128)
50
+ ThrowDontCare(); // throw new Error('Invalid punycode: non-basic before delimiter')
51
+ output.push(cp);
52
+ }
53
+ }
54
+ let inIdx = delimIdx < 0 ? 0 : delimIdx + 1;
55
+ while (inIdx < value.length) {
56
+ const oldi = i;
57
+ let w = 1;
58
+ let k = PUNYCODE_BASE;
59
+ while (true) {
60
+ if (inIdx >= value.length)
61
+ ThrowDontCare(); // throw new Error('Invalid punycode: unexpected end of input')
62
+ const ch = value.charCodeAt(inIdx++);
63
+ let digit;
64
+ if (ch >= 0x61 && ch <= 0x7a)
65
+ digit = ch - 0x61; // a-z => 0-25
66
+ else if (ch >= 0x30 && ch <= 0x39)
67
+ digit = ch - 0x30 + 26; // 0-9 => 26-35
68
+ // else if (ch >= 0x41 && ch <= 0x5a) digit = ch - 0x41 // A-Z => 0-25 // (no-spec-coverage)
69
+ else
70
+ ThrowDontCare(); // throw new Error('Invalid punycode: bad digit character')
71
+ i += digit * w;
72
+ const t = k <= bias ? PUNYCODE_TMIN : k >= bias + PUNYCODE_TMAX ? PUNYCODE_TMAX : k - bias;
73
+ if (digit < t)
74
+ break;
75
+ w *= PUNYCODE_BASE - t;
76
+ k += PUNYCODE_BASE;
77
+ }
78
+ const outLen = output.length + 1;
79
+ bias = Adapt(i - oldi, outLen, oldi === 0);
80
+ n += Math.floor(i / outLen);
81
+ i %= outLen;
82
+ output.splice(i, 0, n);
83
+ i++;
84
+ }
85
+ return String.fromCodePoint(...output);
86
+ }
87
+ // ------------------------------------------------------------------
88
+ // DigitToChar
89
+ // ------------------------------------------------------------------
90
+ function DigitToChar(digit) {
91
+ return digit < 26 ? String.fromCharCode(digit + 0x61) : String.fromCharCode(digit - 26 + 0x30);
92
+ }
93
+ // ------------------------------------------------------------------
94
+ // Encode
95
+ //
96
+ // Encodes a Unicode string into its Punycode payload (the part that
97
+ // follows the 'xn--' ACE prefix). Used to compute the true A-label
98
+ // length of a U-label, since the 63-octet label length limit (RFC
99
+ // 5891 §4.2.4) applies to the encoded form, not the code point count.
100
+ // ------------------------------------------------------------------
101
+ const RE_REPLACE_NON_ASCII = new RegExp(Pattern.RE_NON_ASCII.source, 'gu');
102
+ export function Encode(input) {
103
+ // Extract basic ASCII characters and set initial output array state
104
+ const basic = input.replace(RE_REPLACE_NON_ASCII, '');
105
+ const basicLength = basic.length;
106
+ const result = basicLength > 0 ? [basic, '-'] : [];
107
+ // Extract unicode codepoints
108
+ const codePoints = Array.from(input, (char) => char.codePointAt(0));
109
+ let n = PUNYCODE_INITIAL_N;
110
+ let delta = 0;
111
+ let bias = PUNYCODE_INITIAL_BIAS;
112
+ let handledCPCount = basicLength;
113
+ while (handledCPCount < codePoints.length) {
114
+ let m = Infinity;
115
+ for (const cp of codePoints) {
116
+ if (cp >= n && cp < m)
117
+ m = cp;
118
+ }
119
+ delta += (m - n) * (handledCPCount + 1);
120
+ n = m;
121
+ for (const cp of codePoints) {
122
+ if (cp < n)
123
+ delta++;
124
+ if (cp === n) {
125
+ let q = delta;
126
+ for (let k = PUNYCODE_BASE;; k += PUNYCODE_BASE) {
127
+ const t = k <= bias ? PUNYCODE_TMIN : k >= bias + PUNYCODE_TMAX ? PUNYCODE_TMAX : k - bias;
128
+ if (q < t)
129
+ break;
130
+ const digit = t + ((q - t) % (PUNYCODE_BASE - t));
131
+ result.push(DigitToChar(digit));
132
+ q = Math.floor((q - t) / (PUNYCODE_BASE - t));
133
+ }
134
+ result.push(DigitToChar(q));
135
+ bias = Adapt(delta, handledCPCount + 1, handledCPCount === basicLength);
136
+ delta = 0;
137
+ handledCPCount++;
138
+ }
139
+ }
140
+ delta++;
141
+ n++;
142
+ }
143
+ return result.join('');
144
+ }
@@ -0,0 +1 @@
1
+ export declare function IsHostname(value: string): boolean;
@@ -0,0 +1,16 @@
1
+ import * as LabelAscii from './label/ascii.mjs';
2
+ import * as LabelPuny from './label/puny.mjs';
3
+ function IsValidLabelLength(value) {
4
+ return value.length > 0 && value.length <= 63;
5
+ }
6
+ function IsLabel(value) {
7
+ return IsValidLabelLength(value) && (LabelPuny.IsPunyLabel(value) ||
8
+ LabelAscii.IsAsciiLabel(value));
9
+ }
10
+ export function IsHostname(value) {
11
+ if (value.length === 0 || value.length > 253)
12
+ return false;
13
+ if (value.charCodeAt(value.length - 1) === 46)
14
+ return false;
15
+ return value.split('.').every((label) => IsLabel(label));
16
+ }
@@ -0,0 +1 @@
1
+ export declare function IsIdnHostname(value: string): boolean;
@@ -0,0 +1,23 @@
1
+ import * as FormatBidi from './format/bidi.mjs';
2
+ import * as LabelUnicode from './label/unicode.mjs';
3
+ import * as LabelPuny from './label/puny.mjs';
4
+ function IsValidLabelLength(value) {
5
+ return value.length > 0 && value.length <= 63;
6
+ }
7
+ function IsLabel(value) {
8
+ return IsValidLabelLength(value) && (LabelPuny.IsPunyLabel(value) ||
9
+ LabelUnicode.IsUnicodeLabel(value));
10
+ }
11
+ function NormalizeHostname(value) {
12
+ return value.normalize('NFC').replace(/[\u002E\u3002\uFF0E\uFF61]/g, '.');
13
+ }
14
+ export function IsIdnHostname(value) {
15
+ if (value.length === 0 || value.includes(' '))
16
+ return false;
17
+ const normalized = NormalizeHostname(value);
18
+ if (normalized.length > 253)
19
+ return false;
20
+ const labels = normalized.split('.');
21
+ const hasBidiChars = labels.some((label) => FormatBidi.HasBidiChars(label));
22
+ return labels.every((label) => IsLabel(label) && (!hasBidiChars || FormatBidi.SatisfiesBidiRule(label)));
23
+ }
@@ -0,0 +1,2 @@
1
+ export * from './hostname.mjs';
2
+ export * from './idn-hostname.mjs';
@@ -0,0 +1,2 @@
1
+ export * from './hostname.mjs';
2
+ export * from './idn-hostname.mjs';
@@ -0,0 +1 @@
1
+ export declare function IsAsciiLabel(value: string): boolean;
@@ -0,0 +1,9 @@
1
+ import * as Pattern from '../pattern/pattern.mjs';
2
+ // -------------------------------------------------------------------
3
+ // Validates an ASCII LDH label per RFC 5891 §4.2.3.1
4
+ // -------------------------------------------------------------------
5
+ export function IsAsciiLabel(value) {
6
+ return (Pattern.RE_RULE_HYPHEN_PLACEMENT.test(value) &&
7
+ Pattern.RE_RULE_NOT_RESERVED_ACE.test(value) &&
8
+ Pattern.RE_ASCII_LDH.test(value));
9
+ }
@@ -0,0 +1 @@
1
+ export declare function IsPunyLabel(value: string): boolean;