veryfront 0.1.312 → 0.1.315

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 (76) hide show
  1. package/esm/cli/mcp/tools/run-lint-tool.d.ts.map +1 -1
  2. package/esm/cli/mcp/tools/run-lint-tool.js +51 -17
  3. package/esm/deno.js +1 -1
  4. package/esm/deps/jsr.io/@std/fmt/1.0.10/colors.d.ts.map +1 -0
  5. package/esm/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.10}/colors.js +2 -2
  6. package/esm/deps/jsr.io/@std/fs/1.0.23/copy.js +1 -1
  7. package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.js +1 -1
  8. package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.js +1 -1
  9. package/esm/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +1 -0
  10. package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/_os.js +1 -1
  11. package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/os.d.ts.map +1 -1
  12. package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/os.js +1 -1
  13. package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +1 -1
  14. package/esm/deps/jsr.io/@std/path/1.1.4/constants.js +1 -1
  15. package/esm/deps/jsr.io/@std/path/1.1.4/dirname.js +1 -1
  16. package/esm/deps/jsr.io/@std/path/1.1.4/extname.js +1 -1
  17. package/esm/deps/jsr.io/@std/path/1.1.4/format.js +1 -1
  18. package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.js +1 -1
  19. package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +1 -1
  20. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +1 -1
  21. package/esm/deps/jsr.io/@std/path/1.1.4/join.js +1 -1
  22. package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.js +1 -1
  23. package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +1 -1
  24. package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.js +1 -1
  25. package/esm/deps/jsr.io/@std/path/1.1.4/parse.js +1 -1
  26. package/esm/deps/jsr.io/@std/path/1.1.4/relative.js +1 -1
  27. package/esm/deps/jsr.io/@std/path/1.1.4/resolve.js +1 -1
  28. package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.js +1 -1
  29. package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.js +1 -1
  30. package/esm/src/agent/hosted-child-requested-tools.d.ts +26 -0
  31. package/esm/src/agent/hosted-child-requested-tools.d.ts.map +1 -0
  32. package/esm/src/agent/hosted-child-requested-tools.js +85 -0
  33. package/esm/src/agent/hosted-child-stream-watchdog.js +2 -3
  34. package/esm/src/agent/index.d.ts +1 -0
  35. package/esm/src/agent/index.d.ts.map +1 -1
  36. package/esm/src/agent/index.js +1 -0
  37. package/esm/src/platform/compat/console/deno.d.ts +1 -1
  38. package/esm/src/platform/compat/console/deno.d.ts.map +1 -1
  39. package/esm/src/platform/compat/console/deno.js +1 -1
  40. package/esm/src/utils/version-constant.d.ts +1 -1
  41. package/esm/src/utils/version-constant.js +1 -1
  42. package/package.json +1 -1
  43. package/src/cli/mcp/tools/run-lint-tool.ts +52 -16
  44. package/src/deno.js +1 -1
  45. package/src/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.10}/colors.ts +2 -2
  46. package/src/deps/jsr.io/@std/fs/1.0.23/copy.ts +1 -1
  47. package/src/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.ts +1 -1
  48. package/src/deps/jsr.io/@std/fs/1.0.23/expand_glob.ts +1 -1
  49. package/src/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/_os.ts +1 -1
  50. package/src/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/os.ts +1 -1
  51. package/src/deps/jsr.io/@std/path/1.1.4/basename.ts +1 -1
  52. package/src/deps/jsr.io/@std/path/1.1.4/constants.ts +1 -1
  53. package/src/deps/jsr.io/@std/path/1.1.4/dirname.ts +1 -1
  54. package/src/deps/jsr.io/@std/path/1.1.4/extname.ts +1 -1
  55. package/src/deps/jsr.io/@std/path/1.1.4/format.ts +1 -1
  56. package/src/deps/jsr.io/@std/path/1.1.4/from_file_url.ts +1 -1
  57. package/src/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.ts +1 -1
  58. package/src/deps/jsr.io/@std/path/1.1.4/is_absolute.ts +1 -1
  59. package/src/deps/jsr.io/@std/path/1.1.4/join.ts +1 -1
  60. package/src/deps/jsr.io/@std/path/1.1.4/join_globs.ts +1 -1
  61. package/src/deps/jsr.io/@std/path/1.1.4/normalize.ts +1 -1
  62. package/src/deps/jsr.io/@std/path/1.1.4/normalize_glob.ts +1 -1
  63. package/src/deps/jsr.io/@std/path/1.1.4/parse.ts +1 -1
  64. package/src/deps/jsr.io/@std/path/1.1.4/relative.ts +1 -1
  65. package/src/deps/jsr.io/@std/path/1.1.4/resolve.ts +1 -1
  66. package/src/deps/jsr.io/@std/path/1.1.4/to_file_url.ts +1 -1
  67. package/src/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.ts +1 -1
  68. package/src/src/agent/hosted-child-requested-tools.ts +131 -0
  69. package/src/src/agent/index.ts +7 -0
  70. package/src/src/platform/compat/console/deno.ts +1 -1
  71. package/src/src/utils/version-constant.ts +1 -1
  72. package/esm/deps/jsr.io/@std/fmt/1.0.9/colors.d.ts.map +0 -1
  73. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +0 -1
  74. /package/esm/deps/jsr.io/@std/fmt/{1.0.9 → 1.0.10}/colors.d.ts +0 -0
  75. /package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/_os.d.ts +0 -0
  76. /package/esm/deps/jsr.io/@std/internal/{1.0.12 → 1.0.13}/os.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"run-lint-tool.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/tools/run-lint-tool.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,gCAAgC,CAAC;AAEtF,QAAA,MAAM,YAAY;;iBAIhB,CAAC;AAEH,KAAK,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,oFAAoF;AACpF,wBAAsB,WAAW,CAC/B,KAAK,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,OAAO,CAAC,UAAU,CAAC,CA2BrB;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,YAAY,EAAE,UAAU,CAevD,CAAC"}
1
+ {"version":3,"file":"run-lint-tool.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/tools/run-lint-tool.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,gCAAgC,CAAC;AAEtF,QAAA,MAAM,YAAY;;iBAIhB,CAAC;AAEH,KAAK,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAqBjD,oFAAoF;AACpF,wBAAsB,WAAW,CAC/B,KAAK,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,OAAO,CAAC,UAAU,CAAC,CA4CrB;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,YAAY,EAAE,UAAU,CAevD,CAAC"}
@@ -10,6 +10,24 @@ import { parseLintJsonOutput } from "../../commands/lint/command.js";
10
10
  const runLintInput = z.object({
11
11
  timeout: z.number().optional().default(120000).describe("Maximum time to wait for lint completion in milliseconds. Defaults to 120000 (2 minutes)."),
12
12
  });
13
+ const PROCESS_CLEANUP_TIMEOUT_MS = 1000;
14
+ async function waitForProcessCleanup(outputSettled) {
15
+ let cleanupTimeout;
16
+ try {
17
+ await Promise.race([
18
+ outputSettled,
19
+ new Promise((resolve) => {
20
+ cleanupTimeout = dntShim.setTimeout(resolve, PROCESS_CLEANUP_TIMEOUT_MS);
21
+ dntShim.Deno.unrefTimer(cleanupTimeout);
22
+ }),
23
+ ]);
24
+ }
25
+ finally {
26
+ if (cleanupTimeout !== undefined) {
27
+ clearTimeout(cleanupTimeout);
28
+ }
29
+ }
30
+ }
13
31
  /** Spawn deno lint and return structured results. Exported for standalone reuse. */
14
32
  export async function executeLint(input = {}) {
15
33
  const cmd = new dntShim.Deno.Command("deno", {
@@ -19,23 +37,39 @@ export async function executeLint(input = {}) {
19
37
  });
20
38
  const child = cmd.spawn();
21
39
  const timeoutMs = input.timeout ?? 120000;
22
- const result = await Promise.race([
23
- child.output(),
24
- new Promise((_, reject) => {
25
- const timer = dntShim.setTimeout(() => {
26
- try {
27
- child.kill();
28
- }
29
- catch {
30
- // Process may have already exited
31
- }
32
- reject(new Error(`Lint execution timed out after ${timeoutMs}ms`));
33
- }, timeoutMs);
34
- dntShim.Deno.unrefTimer(timer);
35
- }),
36
- ]);
37
- const stdout = new TextDecoder().decode(result.stdout);
38
- return parseLintJsonOutput(stdout, result.code);
40
+ const outputPromise = child.output();
41
+ const outputSettled = outputPromise.then(() => undefined, () => undefined);
42
+ let timeout;
43
+ try {
44
+ const result = await Promise.race([
45
+ outputPromise,
46
+ new Promise((_, reject) => {
47
+ timeout = dntShim.setTimeout(() => {
48
+ try {
49
+ child.kill();
50
+ }
51
+ catch {
52
+ // Process may have already exited
53
+ }
54
+ reject(new Error(`Lint execution timed out after ${timeoutMs}ms`));
55
+ }, timeoutMs);
56
+ dntShim.Deno.unrefTimer(timeout);
57
+ }),
58
+ ]);
59
+ const stdout = new TextDecoder().decode(result.stdout);
60
+ return parseLintJsonOutput(stdout, result.code);
61
+ }
62
+ catch (error) {
63
+ if (error instanceof Error && error.message.includes("timed out")) {
64
+ await waitForProcessCleanup(outputSettled);
65
+ }
66
+ throw error;
67
+ }
68
+ finally {
69
+ if (timeout !== undefined) {
70
+ clearTimeout(timeout);
71
+ }
72
+ }
39
73
  }
40
74
  export const vfRunLint = {
41
75
  name: "vf_run_lint",
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.312",
3
+ "version": "0.1.315",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/1.0.10/colors.ts"],"names":[],"mappings":"AAoEA,qEAAqE;AACrE,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAID;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,QAM7C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AA0BD;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,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,MAAM,CAEpD"}
@@ -881,7 +881,7 @@ export function bgRgb24(str, color) {
881
881
  ], 49));
882
882
  }
883
883
  // https://github.com/chalk/ansi-regex/blob/02fa893d619d3da85411acc8fd4e2eea0e95a9d9/index.js
884
- const ANSI_PATTERN = new RegExp([
884
+ const ANSI_REGEXP = new RegExp([
885
885
  "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
886
886
  "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TXZcf-nq-uy=><~]))",
887
887
  ].join("|"), "g");
@@ -899,5 +899,5 @@ const ANSI_PATTERN = new RegExp([
899
899
  * @returns The text without ANSI escape codes
900
900
  */
901
901
  export function stripAnsiCode(string) {
902
- return string.replace(ANSI_PATTERN, "");
902
+ return string.replace(ANSI_REGEXP, "");
903
903
  }
@@ -7,7 +7,7 @@ import { ensureDir, ensureDirSync } from "./ensure_dir.js";
7
7
  import { getFileInfoType } from "./_get_file_info_type.js";
8
8
  import { toPathString } from "./_to_path_string.js";
9
9
  import { isSubdir } from "./_is_subdir.js";
10
- import { isWindows } from "../../internal/1.0.12/os.js";
10
+ import { isWindows } from "../../internal/1.0.13/os.js";
11
11
  function assertIsDate(date, name) {
12
12
  if (date === null) {
13
13
  throw new Error(`${name} is unavailable`);
@@ -5,7 +5,7 @@ import { resolve } from "../../path/1.1.4/resolve.js";
5
5
  import { ensureDir, ensureDirSync } from "./ensure_dir.js";
6
6
  import { getFileInfoType } from "./_get_file_info_type.js";
7
7
  import { toPathString } from "./_to_path_string.js";
8
- import { isWindows } from "../../internal/1.0.12/os.js";
8
+ import { isWindows } from "../../internal/1.0.13/os.js";
9
9
  function resolveSymlinkTarget(target, linkName) {
10
10
  if (typeof target !== "string")
11
11
  return target; // URL is always absolute path
@@ -9,7 +9,7 @@ import { SEPARATOR_PATTERN } from "../../path/1.1.4/constants.js";
9
9
  import { walk, walkSync } from "./walk.js";
10
10
  import { toPathString } from "./_to_path_string.js";
11
11
  import { createWalkEntry, createWalkEntrySync, } from "./_create_walk_entry.js";
12
- import { isWindows } from "../../internal/1.0.12/os.js";
12
+ import { isWindows } from "../../internal/1.0.13/os.js";
13
13
  function split(path) {
14
14
  const s = SEPARATOR_PATTERN.source;
15
15
  const segments = path
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.13/_os.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,IAAI,OAAO,CAUtC"}
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
  export function checkWindows() {
4
4
  // deno-lint-ignore no-explicit-any
@@ -1 +1 @@
1
- {"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/os.ts"],"names":[],"mappings":"AAKA,8CAA8C;AAC9C,eAAO,MAAM,SAAS,EAAE,OAAwB,CAAC"}
1
+ {"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.13/os.ts"],"names":[],"mappings":"AAKA,8CAA8C;AAC9C,eAAO,MAAM,SAAS,EAAE,OAAwB,CAAC"}
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { checkWindows } from "./_os.js";
4
4
  /** Whether the current platform is Windows */
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { basename as posixBasename } from "./posix/basename.js";
5
5
  import { basename as windowsBasename } from "./windows/basename.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  /**
5
5
  * The character used to separate entries in the PATH environment variable.
6
6
  * On Windows, this is `;`. On all other platforms, this is `:`.
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { dirname as posixDirname } from "./posix/dirname.js";
5
5
  import { dirname as windowsDirname } from "./windows/dirname.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { extname as posixExtname } from "./posix/extname.js";
5
5
  import { extname as windowsExtname } from "./windows/extname.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { format as posixFormat } from "./posix/format.js";
5
5
  import { format as windowsFormat } from "./windows/format.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { fromFileUrl as posixFromFileUrl } from "./posix/from_file_url.js";
5
5
  import { fromFileUrl as windowsFromFileUrl } from "./windows/from_file_url.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { globToRegExp as posixGlobToRegExp } from "./posix/glob_to_regexp.js";
5
5
  import { globToRegExp as windowsGlobToRegExp, } from "./windows/glob_to_regexp.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { isAbsolute as posixIsAbsolute } from "./posix/is_absolute.js";
5
5
  import { isAbsolute as windowsIsAbsolute } from "./windows/is_absolute.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { join as posixJoin } from "./posix/join.js";
5
5
  import { join as windowsJoin } from "./windows/join.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { joinGlobs as posixJoinGlobs } from "./posix/join_globs.js";
5
5
  import { joinGlobs as windowsJoinGlobs } from "./windows/join_globs.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { normalize as posixNormalize } from "./posix/normalize.js";
5
5
  import { normalize as windowsNormalize } from "./windows/normalize.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
5
5
  import { normalizeGlob as windowsNormalizeGlob, } from "./windows/normalize_glob.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { parse as posixParse } from "./posix/parse.js";
5
5
  import { parse as windowsParse } from "./windows/parse.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { relative as posixRelative } from "./posix/relative.js";
5
5
  import { relative as windowsRelative } from "./windows/relative.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { resolve as posixResolve } from "./posix/resolve.js";
5
5
  import { resolve as windowsResolve } from "./windows/resolve.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { toFileUrl as posixToFileUrl } from "./posix/to_file_url.js";
5
5
  import { toFileUrl as windowsToFileUrl } from "./windows/to_file_url.js";
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
  import { toNamespacedPath as posixToNamespacedPath } from "./posix/to_namespaced_path.js";
5
5
  import { toNamespacedPath as windowsToNamespacedPath } from "./windows/to_namespaced_path.js";
6
6
  /**
@@ -0,0 +1,26 @@
1
+ export interface HostedChildRequestedToolsInput {
2
+ prompt: string;
3
+ requestedTools?: readonly string[];
4
+ excludedTools?: ReadonlySet<string>;
5
+ companionTools?: Readonly<Record<string, readonly string[]>>;
6
+ sandboxToolNames?: readonly string[];
7
+ artifactToolNames?: readonly string[];
8
+ sandboxRequiredCuePattern?: RegExp;
9
+ isTextArtifactPrompt?: (prompt: string) => boolean;
10
+ }
11
+ export declare function sanitizeHostedChildRequestedTools(input: HostedChildRequestedToolsInput): string[] | undefined;
12
+ export declare function expandHostedChildRequestedTools(input: {
13
+ requestedTools?: readonly string[];
14
+ excludedTools?: ReadonlySet<string>;
15
+ companionTools?: Readonly<Record<string, readonly string[]>>;
16
+ }): string[] | undefined;
17
+ export declare function shouldPruneSandboxToolsFromHostedChildRequest(input: {
18
+ prompt: string;
19
+ requestedTools?: readonly string[];
20
+ sandboxToolNames?: readonly string[];
21
+ artifactToolNames?: readonly string[];
22
+ sandboxRequiredCuePattern?: RegExp;
23
+ isTextArtifactPrompt?: (prompt: string) => boolean;
24
+ }): boolean;
25
+ export declare function buildHostedChildToolDescription(): string;
26
+ //# sourceMappingURL=hosted-child-requested-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosted-child-requested-tools.d.ts","sourceRoot":"","sources":["../../../src/src/agent/hosted-child-requested-tools.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;IAC7D,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;CACpD;AAKD,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,8BAA8B,GACpC,MAAM,EAAE,GAAG,SAAS,CAyBtB;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACrD,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;CAC9D,GAAG,MAAM,EAAE,GAAG,SAAS,CA4BvB;AAED,wBAAgB,6CAA6C,CAAC,KAAK,EAAE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;CACpD,GAAG,OAAO,CAyBV;AAED,wBAAgB,+BAA+B,IAAI,MAAM,CAWxD"}
@@ -0,0 +1,85 @@
1
+ const DEFAULT_SANDBOX_TOOL_NAMES = ["bash", "readFile", "writeFile"];
2
+ const DEFAULT_ARTIFACT_TOOL_NAMES = ["create_file", "update_file"];
3
+ export function sanitizeHostedChildRequestedTools(input) {
4
+ const expandedTools = expandHostedChildRequestedTools({
5
+ requestedTools: input.requestedTools,
6
+ excludedTools: input.excludedTools,
7
+ companionTools: input.companionTools,
8
+ });
9
+ if (!expandedTools) {
10
+ return expandedTools;
11
+ }
12
+ if (!shouldPruneSandboxToolsFromHostedChildRequest({
13
+ prompt: input.prompt,
14
+ requestedTools: expandedTools,
15
+ sandboxToolNames: input.sandboxToolNames ?? DEFAULT_SANDBOX_TOOL_NAMES,
16
+ artifactToolNames: input.artifactToolNames ?? DEFAULT_ARTIFACT_TOOL_NAMES,
17
+ sandboxRequiredCuePattern: input.sandboxRequiredCuePattern,
18
+ isTextArtifactPrompt: input.isTextArtifactPrompt,
19
+ })) {
20
+ return expandedTools;
21
+ }
22
+ const sandboxToolNames = new Set(input.sandboxToolNames ?? DEFAULT_SANDBOX_TOOL_NAMES);
23
+ return expandedTools.filter((toolName) => !sandboxToolNames.has(toolName));
24
+ }
25
+ export function expandHostedChildRequestedTools(input) {
26
+ if (!input.requestedTools) {
27
+ return undefined;
28
+ }
29
+ if (input.requestedTools.length === 0) {
30
+ return [];
31
+ }
32
+ const expandedTools = new Set();
33
+ for (const toolName of input.requestedTools) {
34
+ if (input.excludedTools?.has(toolName)) {
35
+ continue;
36
+ }
37
+ expandedTools.add(toolName);
38
+ for (const companionTool of input.companionTools?.[toolName] ?? []) {
39
+ if (input.excludedTools?.has(companionTool)) {
40
+ continue;
41
+ }
42
+ expandedTools.add(companionTool);
43
+ }
44
+ }
45
+ return [...expandedTools];
46
+ }
47
+ export function shouldPruneSandboxToolsFromHostedChildRequest(input) {
48
+ const requestedTools = input.requestedTools;
49
+ if (!requestedTools?.length) {
50
+ return false;
51
+ }
52
+ const sandboxToolNames = input.sandboxToolNames ?? DEFAULT_SANDBOX_TOOL_NAMES;
53
+ if (!sandboxToolNames.some((toolName) => requestedTools.includes(toolName))) {
54
+ return false;
55
+ }
56
+ const artifactToolNames = input.artifactToolNames ?? DEFAULT_ARTIFACT_TOOL_NAMES;
57
+ if (!artifactToolNames.some((toolName) => requestedTools.includes(toolName))) {
58
+ return false;
59
+ }
60
+ if (!input.isTextArtifactPrompt?.(input.prompt)) {
61
+ return false;
62
+ }
63
+ if (!input.sandboxRequiredCuePattern) {
64
+ return true;
65
+ }
66
+ return !matchesSandboxRequiredCue(input.sandboxRequiredCuePattern, input.prompt);
67
+ }
68
+ export function buildHostedChildToolDescription() {
69
+ return `Invoke a focused child agent on an isolated subtask.
70
+ Call multiple times in one response to run child agents in parallel.
71
+
72
+ Use when:
73
+ - Work can be isolated from the main conversation
74
+ - You need focused context without polluting the main thread
75
+ - A subtask benefits from different tools, model, or step limits
76
+ - You want the child result returned back to the main thread
77
+
78
+ This uses the shared child-run execution engine. Prefer this as the long-term child-work primitive.`;
79
+ }
80
+ function matchesSandboxRequiredCue(pattern, prompt) {
81
+ const deterministicFlags = [...pattern.flags]
82
+ .filter((flag) => flag !== "g" && flag !== "y")
83
+ .join("");
84
+ return new RegExp(pattern.source, deterministicFlags).test(prompt);
85
+ }
@@ -1,4 +1,3 @@
1
- import * as dntShim from "../../_dnt.shims.js";
2
1
  import { throwIfChildRunAborted } from "./child-run-execution-support.js";
3
2
  export class HostedChildStreamIdleTimeoutError extends Error {
4
3
  timeoutMs;
@@ -53,7 +52,7 @@ export async function* withHostedChildStreamIdleTimeout(input) {
53
52
  const result = await Promise.race([
54
53
  pendingNext,
55
54
  new Promise((resolve) => {
56
- timeoutId = dntShim.dntGlobalThis.setTimeout(() => {
55
+ timeoutId = globalThis.setTimeout(() => {
57
56
  resolve(HOSTED_CHILD_STREAM_TIMEOUT_TOKEN);
58
57
  }, watchdogState.timeoutMs);
59
58
  }),
@@ -84,7 +83,7 @@ export async function resolveHostedChildPromiseWithTimeout(promise, timeoutMs) {
84
83
  return await Promise.race([
85
84
  Promise.resolve(promise),
86
85
  new Promise((resolve) => {
87
- timeoutId = dntShim.dntGlobalThis.setTimeout(() => resolve(HOSTED_CHILD_STREAM_TIMEOUT_TOKEN), timeoutMs);
86
+ timeoutId = globalThis.setTimeout(() => resolve(HOSTED_CHILD_STREAM_TIMEOUT_TOKEN), timeoutMs);
88
87
  }),
89
88
  ]);
90
89
  }
@@ -114,6 +114,7 @@ export { formatChildRunStreamPartError, isChildRunAbortError, throwIfChildRunAbo
114
114
  export { type ChildRunExecutionBufferCleanupInput, type ChildRunExecutionResourceFinalizeInput, closeChildRunExecutionBuffers, finalizeChildRunExecutionResources, } from "./child-run-execution-cleanup.js";
115
115
  export { createHostedChildPendingToolLifecycle, type HostedChildPendingToolCallPhase, type HostedChildPendingToolCallState, type HostedChildPendingToolLifecycleCloseLog, type HostedChildPendingToolLifecycleCloseReason, type HostedChildPendingToolLifecycleInput, type HostedChildPendingToolLifecycleLogger, type HostedChildPendingToolLifecycleUnknownToolLog, } from "./hosted-child-pending-tool-lifecycle.js";
116
116
  export { composeAbortSignals, HOSTED_CHILD_STREAM_TIMEOUT_TOKEN, HostedChildStreamIdleTimeoutError, type HostedChildStreamWatchdogPhase, type HostedChildStreamWatchdogState, resolveHostedChildPromiseWithTimeout, resolveHostedChildStreamWatchdogState, withHostedChildStreamIdleTimeout, } from "./hosted-child-stream-watchdog.js";
117
+ export { buildHostedChildToolDescription, expandHostedChildRequestedTools, type HostedChildRequestedToolsInput, sanitizeHostedChildRequestedTools, shouldPruneSandboxToolsFromHostedChildRequest, } from "./hosted-child-requested-tools.js";
117
118
  export { buildChildRunResultSummary, buildRootOwnedChildRunResultHint, buildRootOwnedChildRunResultText, summarizeChildRunResultText, summarizeChildRunResultValue, } from "./child-run-result-summary.js";
118
119
  export { buildChildRunExecutionSnapshot, buildChildRunFailureResult, buildChildRunFailureSnapshot, buildChildRunResultCommon, buildChildRunSuccessResult, buildChildRunSuccessSnapshot, type ChildRunExecutionResult, type ChildRunExecutionSnapshot, type ChildRunExecutionUsage, type ChildRunResultCommon, type ChildRunToolCallSnapshot, type ChildRunToolResultSnapshot, getChildRunSnapshotUsage, } from "./child-run-execution-snapshot.js";
119
120
  export { type ConversationRunChunkMirror, type ConversationRunChunkMirrorApiOptions, type ConversationRunChunkMirrorOptions, type ConversationRunChunkMirrorPrepareChunkEventsInput, type ConversationRunChunkMirrorPreparedChunk, type ConversationRunChunkMirrorPreparedEvents, type ConversationRunChunkMirrorPrepareExternalEventsInput, type ConversationRunChunkMirrorQueueOptions, createConversationRunChunkMirror, } from "./conversation-run-chunk-mirror.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,OAAO,yBAAyB,CAAC;AAGjC,YAAY,EACV,KAAK,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EACf,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,OAAO,IAAI,YAAY,EACvB,WAAW,EACX,aAAa,EACb,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEnF,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,WAAW,EACX,KAAK,iBAAiB,EACtB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,WAAW,EACX,cAAc,EACd,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB,MAAM,wBA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MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,YAAY,EACjB,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,EAC5B,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,OAAO,yBAAyB,C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,KAAK,WAAW,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,EAC5B,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
@@ -113,6 +113,7 @@ export { formatChildRunStreamPartError, isChildRunAbortError, throwIfChildRunAbo
113
113
  export { closeChildRunExecutionBuffers, finalizeChildRunExecutionResources, } from "./child-run-execution-cleanup.js";
114
114
  export { createHostedChildPendingToolLifecycle, } from "./hosted-child-pending-tool-lifecycle.js";
115
115
  export { composeAbortSignals, HOSTED_CHILD_STREAM_TIMEOUT_TOKEN, HostedChildStreamIdleTimeoutError, resolveHostedChildPromiseWithTimeout, resolveHostedChildStreamWatchdogState, withHostedChildStreamIdleTimeout, } from "./hosted-child-stream-watchdog.js";
116
+ export { buildHostedChildToolDescription, expandHostedChildRequestedTools, sanitizeHostedChildRequestedTools, shouldPruneSandboxToolsFromHostedChildRequest, } from "./hosted-child-requested-tools.js";
116
117
  export { buildChildRunResultSummary, buildRootOwnedChildRunResultHint, buildRootOwnedChildRunResultText, summarizeChildRunResultText, summarizeChildRunResultValue, } from "./child-run-result-summary.js";
117
118
  export { buildChildRunExecutionSnapshot, buildChildRunFailureResult, buildChildRunFailureSnapshot, buildChildRunResultCommon, buildChildRunSuccessResult, buildChildRunSuccessSnapshot, getChildRunSnapshotUsage, } from "./child-run-execution-snapshot.js";
118
119
  export { createConversationRunChunkMirror, } from "./conversation-run-chunk-mirror.js";
@@ -1,4 +1,4 @@
1
- import { blue, bold, cyan, dim, gray, green, italic, magenta, red, reset, strikethrough, underline, white, yellow } from "../../../../deps/jsr.io/@std/fmt/1.0.9/colors.js";
1
+ import { blue, bold, cyan, dim, gray, green, italic, magenta, red, reset, strikethrough, underline, white, yellow } from "../../../../deps/jsr.io/@std/fmt/1.0.10/colors.js";
2
2
  import type { ConsoleStyler } from "./types.js";
3
3
  export declare const colors: ConsoleStyler;
4
4
  export { blue, bold, cyan, dim, gray, green, italic, magenta, red, reset, strikethrough, underline, white, yellow, };
@@ -1 +1 @@
1
- {"version":3,"file":"deno.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/compat/console/deno.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,EACP,GAAG,EACH,KAAK,EACL,aAAa,EACb,SAAS,EACT,KAAK,EACL,MAAM,EACP,MAAM,kDAAkD,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,MAAM,EAAE,aAepB,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,EACP,GAAG,EACH,KAAK,EACL,aAAa,EACb,SAAS,EACT,KAAK,EACL,MAAM,GACP,CAAC"}
1
+ {"version":3,"file":"deno.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/compat/console/deno.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,EACP,GAAG,EACH,KAAK,EACL,aAAa,EACb,SAAS,EACT,KAAK,EACL,MAAM,EACP,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,MAAM,EAAE,aAepB,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,EACP,GAAG,EACH,KAAK,EACL,aAAa,EACb,SAAS,EACT,KAAK,EACL,MAAM,GACP,CAAC"}
@@ -1,4 +1,4 @@
1
- import { blue, bold, cyan, dim, gray, green, italic, magenta, red, reset, strikethrough, underline, white, yellow, } from "../../../../deps/jsr.io/@std/fmt/1.0.9/colors.js";
1
+ import { blue, bold, cyan, dim, gray, green, italic, magenta, red, reset, strikethrough, underline, white, yellow, } from "../../../../deps/jsr.io/@std/fmt/1.0.10/colors.js";
2
2
  export const colors = {
3
3
  red,
4
4
  green,
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.312";
1
+ export declare const VERSION = "0.1.315";
2
2
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.312";
3
+ export const VERSION = "0.1.315";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.312",
3
+ "version": "0.1.315",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
@@ -19,6 +19,25 @@ const runLintInput = z.object({
19
19
 
20
20
  type RunLintInput = z.infer<typeof runLintInput>;
21
21
 
22
+ const PROCESS_CLEANUP_TIMEOUT_MS = 1000;
23
+
24
+ async function waitForProcessCleanup(outputSettled: Promise<void>): Promise<void> {
25
+ let cleanupTimeout: number | undefined;
26
+ try {
27
+ await Promise.race([
28
+ outputSettled,
29
+ new Promise<void>((resolve) => {
30
+ cleanupTimeout = dntShim.setTimeout(resolve, PROCESS_CLEANUP_TIMEOUT_MS);
31
+ dntShim.Deno.unrefTimer(cleanupTimeout);
32
+ }),
33
+ ]);
34
+ } finally {
35
+ if (cleanupTimeout !== undefined) {
36
+ clearTimeout(cleanupTimeout);
37
+ }
38
+ }
39
+ }
40
+
22
41
  /** Spawn deno lint and return structured results. Exported for standalone reuse. */
23
42
  export async function executeLint(
24
43
  input: { timeout?: number } = {},
@@ -31,24 +50,41 @@ export async function executeLint(
31
50
 
32
51
  const child = cmd.spawn();
33
52
  const timeoutMs = input.timeout ?? 120000;
53
+ const outputPromise = child.output();
54
+ const outputSettled = outputPromise.then(
55
+ () => undefined,
56
+ () => undefined,
57
+ );
58
+ let timeout: number | undefined;
34
59
 
35
- const result = await Promise.race([
36
- child.output(),
37
- new Promise<never>((_, reject) => {
38
- const timer = dntShim.setTimeout(() => {
39
- try {
40
- child.kill();
41
- } catch {
42
- // Process may have already exited
43
- }
44
- reject(new Error(`Lint execution timed out after ${timeoutMs}ms`));
45
- }, timeoutMs);
46
- dntShim.Deno.unrefTimer(timer);
47
- }),
48
- ]);
60
+ try {
61
+ const result = await Promise.race([
62
+ outputPromise,
63
+ new Promise<never>((_, reject) => {
64
+ timeout = dntShim.setTimeout(() => {
65
+ try {
66
+ child.kill();
67
+ } catch {
68
+ // Process may have already exited
69
+ }
70
+ reject(new Error(`Lint execution timed out after ${timeoutMs}ms`));
71
+ }, timeoutMs);
72
+ dntShim.Deno.unrefTimer(timeout);
73
+ }),
74
+ ]);
49
75
 
50
- const stdout = new TextDecoder().decode(result.stdout);
51
- return parseLintJsonOutput(stdout, result.code);
76
+ const stdout = new TextDecoder().decode(result.stdout);
77
+ return parseLintJsonOutput(stdout, result.code);
78
+ } catch (error) {
79
+ if (error instanceof Error && error.message.includes("timed out")) {
80
+ await waitForProcessCleanup(outputSettled);
81
+ }
82
+ throw error;
83
+ } finally {
84
+ if (timeout !== undefined) {
85
+ clearTimeout(timeout);
86
+ }
87
+ }
52
88
  }
53
89
 
54
90
  export const vfRunLint: MCPTool<RunLintInput, LintResult> = {
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.312",
3
+ "version": "0.1.315",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -978,7 +978,7 @@ export function bgRgb24(str: string, color: number | Rgb): string {
978
978
  }
979
979
 
980
980
  // https://github.com/chalk/ansi-regex/blob/02fa893d619d3da85411acc8fd4e2eea0e95a9d9/index.js
981
- const ANSI_PATTERN = new RegExp(
981
+ const ANSI_REGEXP = new RegExp(
982
982
  [
983
983
  "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
984
984
  "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TXZcf-nq-uy=><~]))",
@@ -1000,5 +1000,5 @@ const ANSI_PATTERN = new RegExp(
1000
1000
  * @returns The text without ANSI escape codes
1001
1001
  */
1002
1002
  export function stripAnsiCode(string: string): string {
1003
- return string.replace(ANSI_PATTERN, "");
1003
+ return string.replace(ANSI_REGEXP, "");
1004
1004
  }
@@ -9,7 +9,7 @@ import { ensureDir, ensureDirSync } from "./ensure_dir.js";
9
9
  import { getFileInfoType } from "./_get_file_info_type.js";
10
10
  import { toPathString } from "./_to_path_string.js";
11
11
  import { isSubdir } from "./_is_subdir.js";
12
- import { isWindows } from "../../internal/1.0.12/os.js";
12
+ import { isWindows } from "../../internal/1.0.13/os.js";
13
13
 
14
14
  /** Options for {@linkcode copy} and {@linkcode copySync}. */
15
15
  export interface CopyOptions {
@@ -6,7 +6,7 @@ import { resolve } from "../../path/1.1.4/resolve.js";
6
6
  import { ensureDir, ensureDirSync } from "./ensure_dir.js";
7
7
  import { getFileInfoType, type PathType } from "./_get_file_info_type.js";
8
8
  import { toPathString } from "./_to_path_string.js";
9
- import { isWindows } from "../../internal/1.0.12/os.js";
9
+ import { isWindows } from "../../internal/1.0.13/os.js";
10
10
 
11
11
  function resolveSymlinkTarget(target: string | URL, linkName: string | URL) {
12
12
  if (typeof target !== "string") return target; // URL is always absolute path
@@ -14,7 +14,7 @@ import {
14
14
  createWalkEntrySync,
15
15
  type WalkEntry,
16
16
  } from "./_create_walk_entry.js";
17
- import { isWindows } from "../../internal/1.0.12/os.js";
17
+ import { isWindows } from "../../internal/1.0.13/os.js";
18
18
 
19
19
  export type { GlobOptions, WalkEntry };
20
20
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  import * as dntShim from "../../../../../_dnt.shims.js";
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2025 the Deno authors. MIT license.
1
+ // Copyright 2018-2026 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
4
  import { checkWindows } from "./_os.js";
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { basename as posixBasename } from "./posix/basename.js";
6
6
  import { basename as windowsBasename } from "./windows/basename.js";
7
7
 
@@ -1,6 +1,6 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
- import { isWindows } from "../../internal/1.0.12/os.js";
3
+ import { isWindows } from "../../internal/1.0.13/os.js";
4
4
 
5
5
  /**
6
6
  * The character used to separate entries in the PATH environment variable.
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { dirname as posixDirname } from "./posix/dirname.js";
6
6
  import { dirname as windowsDirname } from "./windows/dirname.js";
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { extname as posixExtname } from "./posix/extname.js";
6
6
  import { extname as windowsExtname } from "./windows/extname.js";
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { format as posixFormat } from "./posix/format.js";
6
6
  import { format as windowsFormat } from "./windows/format.js";
7
7
  import type { ParsedPath } from "./types.js";
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { fromFileUrl as posixFromFileUrl } from "./posix/from_file_url.js";
6
6
  import { fromFileUrl as windowsFromFileUrl } from "./windows/from_file_url.js";
7
7
 
@@ -2,7 +2,7 @@
2
2
  // This module is browser compatible.
3
3
 
4
4
  import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
5
- import { isWindows } from "../../internal/1.0.12/os.js";
5
+ import { isWindows } from "../../internal/1.0.13/os.js";
6
6
 
7
7
  import { globToRegExp as posixGlobToRegExp } from "./posix/glob_to_regexp.js";
8
8
  import {
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { isAbsolute as posixIsAbsolute } from "./posix/is_absolute.js";
6
6
  import { isAbsolute as windowsIsAbsolute } from "./windows/is_absolute.js";
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { join as posixJoin } from "./posix/join.js";
6
6
  import { join as windowsJoin } from "./windows/join.js";
7
7
 
@@ -2,7 +2,7 @@
2
2
  // This module is browser compatible.
3
3
 
4
4
  import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
5
- import { isWindows } from "../../internal/1.0.12/os.js";
5
+ import { isWindows } from "../../internal/1.0.13/os.js";
6
6
  import { joinGlobs as posixJoinGlobs } from "./posix/join_globs.js";
7
7
  import { joinGlobs as windowsJoinGlobs } from "./windows/join_globs.js";
8
8
 
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { normalize as posixNormalize } from "./posix/normalize.js";
6
6
  import { normalize as windowsNormalize } from "./windows/normalize.js";
7
7
  /**
@@ -2,7 +2,7 @@
2
2
  // This module is browser compatible.
3
3
 
4
4
  import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
5
- import { isWindows } from "../../internal/1.0.12/os.js";
5
+ import { isWindows } from "../../internal/1.0.13/os.js";
6
6
  import { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
7
7
  import {
8
8
  normalizeGlob as windowsNormalizeGlob,
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import type { ParsedPath } from "./types.js";
6
6
  import { parse as posixParse } from "./posix/parse.js";
7
7
  import { parse as windowsParse } from "./windows/parse.js";
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { relative as posixRelative } from "./posix/relative.js";
6
6
  import { relative as windowsRelative } from "./windows/relative.js";
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { resolve as posixResolve } from "./posix/resolve.js";
6
6
  import { resolve as windowsResolve } from "./windows/resolve.js";
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { toFileUrl as posixToFileUrl } from "./posix/to_file_url.js";
6
6
  import { toFileUrl as windowsToFileUrl } from "./windows/to_file_url.js";
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
 
4
- import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { isWindows } from "../../internal/1.0.13/os.js";
5
5
  import { toNamespacedPath as posixToNamespacedPath } from "./posix/to_namespaced_path.js";
6
6
  import { toNamespacedPath as windowsToNamespacedPath } from "./windows/to_namespaced_path.js";
7
7
 
@@ -0,0 +1,131 @@
1
+ export interface HostedChildRequestedToolsInput {
2
+ prompt: string;
3
+ requestedTools?: readonly string[];
4
+ excludedTools?: ReadonlySet<string>;
5
+ companionTools?: Readonly<Record<string, readonly string[]>>;
6
+ sandboxToolNames?: readonly string[];
7
+ artifactToolNames?: readonly string[];
8
+ sandboxRequiredCuePattern?: RegExp;
9
+ isTextArtifactPrompt?: (prompt: string) => boolean;
10
+ }
11
+
12
+ const DEFAULT_SANDBOX_TOOL_NAMES = ["bash", "readFile", "writeFile"];
13
+ const DEFAULT_ARTIFACT_TOOL_NAMES = ["create_file", "update_file"];
14
+
15
+ export function sanitizeHostedChildRequestedTools(
16
+ input: HostedChildRequestedToolsInput,
17
+ ): string[] | undefined {
18
+ const expandedTools = expandHostedChildRequestedTools({
19
+ requestedTools: input.requestedTools,
20
+ excludedTools: input.excludedTools,
21
+ companionTools: input.companionTools,
22
+ });
23
+ if (!expandedTools) {
24
+ return expandedTools;
25
+ }
26
+
27
+ if (
28
+ !shouldPruneSandboxToolsFromHostedChildRequest({
29
+ prompt: input.prompt,
30
+ requestedTools: expandedTools,
31
+ sandboxToolNames: input.sandboxToolNames ?? DEFAULT_SANDBOX_TOOL_NAMES,
32
+ artifactToolNames: input.artifactToolNames ?? DEFAULT_ARTIFACT_TOOL_NAMES,
33
+ sandboxRequiredCuePattern: input.sandboxRequiredCuePattern,
34
+ isTextArtifactPrompt: input.isTextArtifactPrompt,
35
+ })
36
+ ) {
37
+ return expandedTools;
38
+ }
39
+
40
+ const sandboxToolNames = new Set(input.sandboxToolNames ?? DEFAULT_SANDBOX_TOOL_NAMES);
41
+ return expandedTools.filter((toolName) => !sandboxToolNames.has(toolName));
42
+ }
43
+
44
+ export function expandHostedChildRequestedTools(input: {
45
+ requestedTools?: readonly string[];
46
+ excludedTools?: ReadonlySet<string>;
47
+ companionTools?: Readonly<Record<string, readonly string[]>>;
48
+ }): string[] | undefined {
49
+ if (!input.requestedTools) {
50
+ return undefined;
51
+ }
52
+
53
+ if (input.requestedTools.length === 0) {
54
+ return [];
55
+ }
56
+
57
+ const expandedTools = new Set<string>();
58
+
59
+ for (const toolName of input.requestedTools) {
60
+ if (input.excludedTools?.has(toolName)) {
61
+ continue;
62
+ }
63
+
64
+ expandedTools.add(toolName);
65
+
66
+ for (const companionTool of input.companionTools?.[toolName] ?? []) {
67
+ if (input.excludedTools?.has(companionTool)) {
68
+ continue;
69
+ }
70
+
71
+ expandedTools.add(companionTool);
72
+ }
73
+ }
74
+
75
+ return [...expandedTools];
76
+ }
77
+
78
+ export function shouldPruneSandboxToolsFromHostedChildRequest(input: {
79
+ prompt: string;
80
+ requestedTools?: readonly string[];
81
+ sandboxToolNames?: readonly string[];
82
+ artifactToolNames?: readonly string[];
83
+ sandboxRequiredCuePattern?: RegExp;
84
+ isTextArtifactPrompt?: (prompt: string) => boolean;
85
+ }): boolean {
86
+ const requestedTools = input.requestedTools;
87
+ if (!requestedTools?.length) {
88
+ return false;
89
+ }
90
+
91
+ const sandboxToolNames = input.sandboxToolNames ?? DEFAULT_SANDBOX_TOOL_NAMES;
92
+ if (!sandboxToolNames.some((toolName) => requestedTools.includes(toolName))) {
93
+ return false;
94
+ }
95
+
96
+ const artifactToolNames = input.artifactToolNames ?? DEFAULT_ARTIFACT_TOOL_NAMES;
97
+ if (!artifactToolNames.some((toolName) => requestedTools.includes(toolName))) {
98
+ return false;
99
+ }
100
+
101
+ if (!input.isTextArtifactPrompt?.(input.prompt)) {
102
+ return false;
103
+ }
104
+
105
+ if (!input.sandboxRequiredCuePattern) {
106
+ return true;
107
+ }
108
+
109
+ return !matchesSandboxRequiredCue(input.sandboxRequiredCuePattern, input.prompt);
110
+ }
111
+
112
+ export function buildHostedChildToolDescription(): string {
113
+ return `Invoke a focused child agent on an isolated subtask.
114
+ Call multiple times in one response to run child agents in parallel.
115
+
116
+ Use when:
117
+ - Work can be isolated from the main conversation
118
+ - You need focused context without polluting the main thread
119
+ - A subtask benefits from different tools, model, or step limits
120
+ - You want the child result returned back to the main thread
121
+
122
+ This uses the shared child-run execution engine. Prefer this as the long-term child-work primitive.`;
123
+ }
124
+
125
+ function matchesSandboxRequiredCue(pattern: RegExp, prompt: string): boolean {
126
+ const deterministicFlags = [...pattern.flags]
127
+ .filter((flag) => flag !== "g" && flag !== "y")
128
+ .join("");
129
+
130
+ return new RegExp(pattern.source, deterministicFlags).test(prompt);
131
+ }
@@ -349,6 +349,13 @@ export {
349
349
  resolveHostedChildStreamWatchdogState,
350
350
  withHostedChildStreamIdleTimeout,
351
351
  } from "./hosted-child-stream-watchdog.js";
352
+ export {
353
+ buildHostedChildToolDescription,
354
+ expandHostedChildRequestedTools,
355
+ type HostedChildRequestedToolsInput,
356
+ sanitizeHostedChildRequestedTools,
357
+ shouldPruneSandboxToolsFromHostedChildRequest,
358
+ } from "./hosted-child-requested-tools.js";
352
359
  export {
353
360
  buildChildRunResultSummary,
354
361
  buildRootOwnedChildRunResultHint,
@@ -13,7 +13,7 @@ import {
13
13
  underline,
14
14
  white,
15
15
  yellow,
16
- } from "../../../../deps/jsr.io/@std/fmt/1.0.9/colors.js";
16
+ } from "../../../../deps/jsr.io/@std/fmt/1.0.10/colors.js";
17
17
  import type { ConsoleStyler } from "./types.js";
18
18
 
19
19
  export const colors: ConsoleStyler = {
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.312";
3
+ export const VERSION = "0.1.315";
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/1.0.9/colors.ts"],"names":[],"mappings":"AAoEA,qEAAqE;AACrE,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAID;;;;;;;;;;;;;;;;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