veryfront 0.1.1102 → 0.1.1104

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 (126) hide show
  1. package/esm/deno.js +1 -1
  2. package/esm/src/agent/ag-ui/tool-shared.d.ts.map +1 -1
  3. package/esm/src/agent/ag-ui/tool-shared.js +0 -4
  4. package/esm/src/agent/factory.d.ts.map +1 -1
  5. package/esm/src/agent/factory.js +29 -31
  6. package/esm/src/agent/hosted/chat-preparation.d.ts +1 -0
  7. package/esm/src/agent/hosted/chat-preparation.d.ts.map +1 -1
  8. package/esm/src/agent/hosted/chat-preparation.js +20 -12
  9. package/esm/src/agent/hosted/default-project-steering-refresh.d.ts +1 -1
  10. package/esm/src/agent/hosted/default-project-steering-refresh.d.ts.map +1 -1
  11. package/esm/src/agent/hosted/default-project-steering-refresh.js +5 -9
  12. package/esm/src/agent/hosted/runtime-essential-tools.d.ts +1 -1
  13. package/esm/src/agent/hosted/runtime-essential-tools.d.ts.map +1 -1
  14. package/esm/src/agent/hosted/runtime-essential-tools.js +14 -5
  15. package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
  16. package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +4 -0
  17. package/esm/src/agent/index.d.ts +1 -1
  18. package/esm/src/agent/index.js +1 -1
  19. package/esm/src/agent/runtime/agent-definition.d.ts.map +1 -1
  20. package/esm/src/agent/runtime/agent-definition.js +3 -0
  21. package/esm/src/agent/runtime/agent-runtime-step.js +1 -1
  22. package/esm/src/agent/runtime/index.d.ts.map +1 -1
  23. package/esm/src/agent/runtime/index.js +0 -2
  24. package/esm/src/agent/runtime/skill-metadata.d.ts +11 -0
  25. package/esm/src/agent/runtime/skill-metadata.d.ts.map +1 -1
  26. package/esm/src/agent/runtime/skill-metadata.js +24 -0
  27. package/esm/src/agent/runtime/skill-prompt.d.ts.map +1 -1
  28. package/esm/src/agent/runtime/skill-prompt.js +5 -2
  29. package/esm/src/agent/types.d.ts +8 -6
  30. package/esm/src/agent/types.d.ts.map +1 -1
  31. package/esm/src/channels/control-plane.d.ts.map +1 -1
  32. package/esm/src/channels/control-plane.js +1 -4
  33. package/esm/src/data/helpers.d.ts +20 -3
  34. package/esm/src/data/helpers.d.ts.map +1 -1
  35. package/esm/src/data/helpers.js +46 -12
  36. package/esm/src/data/static-data-fetcher.d.ts.map +1 -1
  37. package/esm/src/data/static-data-fetcher.js +15 -0
  38. package/esm/src/extensions/builtin-extensions.d.ts +1 -1
  39. package/esm/src/extensions/builtin-extensions.d.ts.map +1 -1
  40. package/esm/src/extensions/builtin-extensions.js +1 -6
  41. package/esm/src/extensions/builtin-schema-validator.d.ts +3 -0
  42. package/esm/src/extensions/builtin-schema-validator.d.ts.map +1 -0
  43. package/esm/src/extensions/builtin-schema-validator.js +8 -0
  44. package/esm/src/html/hydration-script-builder/templates/renderer.d.ts.map +1 -1
  45. package/esm/src/html/hydration-script-builder/templates/renderer.js +52 -28
  46. package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
  47. package/esm/src/internal-agents/run-stream.js +6 -11
  48. package/esm/src/internal-agents/run-system-prompt.d.ts +1 -1
  49. package/esm/src/internal-agents/run-system-prompt.js +1 -1
  50. package/esm/src/modules/server/module-server.d.ts.map +1 -1
  51. package/esm/src/modules/server/module-server.js +15 -9
  52. package/esm/src/rendering/orchestrator/module-loader/build-failure.d.ts +20 -0
  53. package/esm/src/rendering/orchestrator/module-loader/build-failure.d.ts.map +1 -0
  54. package/esm/src/rendering/orchestrator/module-loader/build-failure.js +26 -0
  55. package/esm/src/rendering/orchestrator/module-loader/index.d.ts +2 -1
  56. package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
  57. package/esm/src/rendering/orchestrator/module-loader/index.js +69 -7
  58. package/esm/src/rendering/orchestrator/module-loader/module-persistence.d.ts +6 -0
  59. package/esm/src/rendering/orchestrator/module-loader/module-persistence.d.ts.map +1 -1
  60. package/esm/src/rendering/orchestrator/module-loader/module-persistence.js +49 -0
  61. package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
  62. package/esm/src/rendering/orchestrator/pipeline.js +10 -1
  63. package/esm/src/routing/api/context-builder.d.ts +26 -15
  64. package/esm/src/routing/api/context-builder.d.ts.map +1 -1
  65. package/esm/src/routing/api/context-builder.js +34 -15
  66. package/esm/src/routing/api/module-loader/loader.js +57 -1
  67. package/esm/src/server/dev-server/middleware.d.ts.map +1 -1
  68. package/esm/src/server/dev-server/middleware.js +29 -6
  69. package/esm/src/server/handlers/request/ssr/ssr.handler.d.ts.map +1 -1
  70. package/esm/src/server/handlers/request/ssr/ssr.handler.js +6 -4
  71. package/esm/src/skill/prompt-augmentation.d.ts +4 -2
  72. package/esm/src/skill/prompt-augmentation.d.ts.map +1 -1
  73. package/esm/src/skill/prompt-augmentation.js +13 -2
  74. package/esm/src/transforms/esm/import-attributes.d.ts +32 -0
  75. package/esm/src/transforms/esm/import-attributes.d.ts.map +1 -0
  76. package/esm/src/transforms/esm/import-attributes.js +116 -0
  77. package/esm/src/transforms/esm/import-parser.d.ts.map +1 -1
  78. package/esm/src/transforms/esm/import-parser.js +68 -18
  79. package/esm/src/transforms/esm/lexer.d.ts +18 -0
  80. package/esm/src/transforms/esm/lexer.d.ts.map +1 -1
  81. package/esm/src/transforms/esm/lexer.js +21 -0
  82. package/esm/src/transforms/esm/specifier-resolver.d.ts.map +1 -1
  83. package/esm/src/transforms/esm/specifier-resolver.js +13 -0
  84. package/esm/src/transforms/esm/transform-utils.d.ts +8 -0
  85. package/esm/src/transforms/esm/transform-utils.d.ts.map +1 -1
  86. package/esm/src/transforms/esm/transform-utils.js +11 -1
  87. package/esm/src/transforms/import-rewriter/project-paths.d.ts +26 -0
  88. package/esm/src/transforms/import-rewriter/project-paths.d.ts.map +1 -0
  89. package/esm/src/transforms/import-rewriter/project-paths.js +49 -0
  90. package/esm/src/transforms/import-rewriter/strategies/alias-strategy.d.ts +0 -1
  91. package/esm/src/transforms/import-rewriter/strategies/alias-strategy.d.ts.map +1 -1
  92. package/esm/src/transforms/import-rewriter/strategies/alias-strategy.js +5 -20
  93. package/esm/src/transforms/import-rewriter/strategies/asset-strategy.d.ts +1 -1
  94. package/esm/src/transforms/import-rewriter/strategies/asset-strategy.d.ts.map +1 -1
  95. package/esm/src/transforms/import-rewriter/strategies/asset-strategy.js +62 -12
  96. package/esm/src/transforms/import-rewriter/strategies/bare-strategy.d.ts.map +1 -1
  97. package/esm/src/transforms/import-rewriter/strategies/bare-strategy.js +19 -3
  98. package/esm/src/transforms/import-rewriter/strategies/node-builtin-strategy.d.ts +11 -0
  99. package/esm/src/transforms/import-rewriter/strategies/node-builtin-strategy.d.ts.map +1 -1
  100. package/esm/src/transforms/import-rewriter/strategies/node-builtin-strategy.js +13 -0
  101. package/esm/src/transforms/import-rewriter/strategies/relative-strategy.d.ts +0 -1
  102. package/esm/src/transforms/import-rewriter/strategies/relative-strategy.d.ts.map +1 -1
  103. package/esm/src/transforms/import-rewriter/strategies/relative-strategy.js +2 -16
  104. package/esm/src/transforms/import-rewriter/strategies/veryfront-strategy.d.ts.map +1 -1
  105. package/esm/src/transforms/import-rewriter/strategies/veryfront-strategy.js +4 -3
  106. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.d.ts +4 -2
  107. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.d.ts.map +1 -1
  108. package/esm/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.js +23 -7
  109. package/esm/src/transforms/pipeline/stages/browser-node-builtin-imports.d.ts.map +1 -1
  110. package/esm/src/transforms/pipeline/stages/browser-node-builtin-imports.js +5 -0
  111. package/esm/src/transforms/pipeline/stages/browser-server-exports-strip.d.ts +25 -3
  112. package/esm/src/transforms/pipeline/stages/browser-server-exports-strip.d.ts.map +1 -1
  113. package/esm/src/transforms/pipeline/stages/browser-server-exports-strip.js +285 -44
  114. package/esm/src/transforms/pipeline/stages/compile.d.ts.map +1 -1
  115. package/esm/src/transforms/pipeline/stages/compile.js +6 -1
  116. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.d.ts +9 -5
  117. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.d.ts.map +1 -1
  118. package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.js +23 -9
  119. package/esm/src/transforms/shared/server-only-packages.d.ts +30 -0
  120. package/esm/src/transforms/shared/server-only-packages.d.ts.map +1 -0
  121. package/esm/src/transforms/shared/server-only-packages.js +47 -0
  122. package/esm/src/types/entities/getEntityInfo.d.ts.map +1 -1
  123. package/esm/src/types/entities/getEntityInfo.js +10 -2
  124. package/esm/src/utils/version-constant.d.ts +1 -1
  125. package/esm/src/utils/version-constant.js +1 -1
  126. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/src/agent/types.ts"],"names":[],"mappings":"AAAA;;4BAE4B;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAG3D,YAAY,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,YAAY,EACZ,OAAO,EACP,WAAW,EACX,aAAa,EACb,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAGjC,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEnE,0CAA0C;AAC1C,M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AAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,GACA,OAAO,CAAC,kBAAkB,CAAC,CAmB7B"}
@@ -219,12 +219,9 @@ async function verifySignedRequestJws(jws, body, options) {
219
219
  return claims;
220
220
  }
221
221
  export function resolveAgentSkills(agent) {
222
- if (!agent.config.skills) {
223
- return [];
224
- }
225
222
  // Owner-aware: the agent's metadata advertises exactly what the agent can
226
223
  // resolve at runtime — unowned skills plus its own.
227
- return Array.from(skillRegistry.resolveForAgent(agent.config.skills, { agentId: agent.id }).values())
224
+ return Array.from(skillRegistry.resolveForAgent(agent.config.skills ?? true, { agentId: agent.id }).values())
228
225
  .map((skill) => RuntimeAgentSkillSchema.parse({
229
226
  id: skill.id,
230
227
  name: skill.metadata.name || skill.id,
@@ -1,7 +1,18 @@
1
1
  import type { DataResult } from "./types.js";
2
- /** Return a redirect result from a data loader. */
2
+ /**
3
+ * Redirect the request from a data loader.
4
+ *
5
+ * Return it or throw it. `throw redirect("/login")` behaves exactly like
6
+ * `return redirect("/login")`.
7
+ */
3
8
  export declare function redirect(destination: string, permanent?: boolean): DataResult;
4
- /** Return a 404 result from a data loader. */
9
+ /**
10
+ * Render the 404 page from a data loader.
11
+ *
12
+ * Return it or throw it. `throw notFound()` behaves exactly like
13
+ * `return notFound()`, which is useful deep inside a helper that has no clean
14
+ * way to return to the loader.
15
+ */
5
16
  export declare function notFound(): DataResult;
6
17
  /**
7
18
  * True when `value` is a control-flow result produced by {@link notFound} or
@@ -11,8 +22,14 @@ export declare function notFound(): DataResult;
11
22
  * naturally and is what people coming from other frameworks reach for. Thrown,
12
23
  * the plain object is not an `Error`, so the SSR error handler stringified it
13
24
  * to `[object Object]` and returned a 500 instead of the intended 404 or
14
- * redirect. Recognising the shape lets a thrown result behave like a returned
25
+ * redirect. Recognising the brand lets a thrown result behave like a returned
15
26
  * one.
27
+ *
28
+ * The check is on the brand, never on the shape. A loader that does
29
+ * `throw await response.json()` against an upstream answering
30
+ * `{ notFound: true, message: "record locked" }` is reporting a failure, and
31
+ * reading that as a 404 would render the wrong page, log nothing, and cache a
32
+ * 404 the site never asked for.
16
33
  */
17
34
  export declare function isDataControlResult(value: unknown): value is DataResult;
18
35
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/src/data/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,mDAAmD;AACnD,wBAAgB,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,UAAU,CAE3E;AAED,8CAA8C;AAC9C,wBAAgB,QAAQ,IAAI,UAAU,CAErC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAUvE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAGlE"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/src/data/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA2B7C;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,UAAU,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,IAAI,UAAU,CAErC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAIvE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAGlE"}
@@ -1,10 +1,44 @@
1
- /** Return a redirect result from a data loader. */
1
+ /**
2
+ * Brand marking an object as produced by {@link notFound} or {@link redirect}.
3
+ *
4
+ * A registered symbol, so a result built by one copy of this module is
5
+ * recognised by another. Project code and the framework do not always share a
6
+ * module instance, and isolated data fetching crosses a realm boundary.
7
+ *
8
+ * Symbols are dropped by `structuredClone`, so the brand does not survive
9
+ * `postMessage`. Worker-side code normalises a thrown control result before it
10
+ * is posted back, while the object is still in-realm.
11
+ */
12
+ const DATA_CONTROL_RESULT = Symbol.for("veryfront.dataControlResult");
13
+ /**
14
+ * Mark a result as framework-produced control flow.
15
+ *
16
+ * The brand is non-enumerable, so it stays out of `Object.keys`,
17
+ * `JSON.stringify`, and the `DataResult` schema. A returned control result
18
+ * behaves exactly as it did before the brand existed.
19
+ */
20
+ function brandDataControlResult(result) {
21
+ Object.defineProperty(result, DATA_CONTROL_RESULT, { value: true });
22
+ return result;
23
+ }
24
+ /**
25
+ * Redirect the request from a data loader.
26
+ *
27
+ * Return it or throw it. `throw redirect("/login")` behaves exactly like
28
+ * `return redirect("/login")`.
29
+ */
2
30
  export function redirect(destination, permanent = false) {
3
- return { redirect: { destination, permanent } };
31
+ return brandDataControlResult({ redirect: { destination, permanent } });
4
32
  }
5
- /** Return a 404 result from a data loader. */
33
+ /**
34
+ * Render the 404 page from a data loader.
35
+ *
36
+ * Return it or throw it. `throw notFound()` behaves exactly like
37
+ * `return notFound()`, which is useful deep inside a helper that has no clean
38
+ * way to return to the loader.
39
+ */
6
40
  export function notFound() {
7
- return { notFound: true };
41
+ return brandDataControlResult({ notFound: true });
8
42
  }
9
43
  /**
10
44
  * True when `value` is a control-flow result produced by {@link notFound} or
@@ -14,19 +48,19 @@ export function notFound() {
14
48
  * naturally and is what people coming from other frameworks reach for. Thrown,
15
49
  * the plain object is not an `Error`, so the SSR error handler stringified it
16
50
  * to `[object Object]` and returned a 500 instead of the intended 404 or
17
- * redirect. Recognising the shape lets a thrown result behave like a returned
51
+ * redirect. Recognising the brand lets a thrown result behave like a returned
18
52
  * one.
53
+ *
54
+ * The check is on the brand, never on the shape. A loader that does
55
+ * `throw await response.json()` against an upstream answering
56
+ * `{ notFound: true, message: "record locked" }` is reporting a failure, and
57
+ * reading that as a 404 would render the wrong page, log nothing, and cache a
58
+ * 404 the site never asked for.
19
59
  */
20
60
  export function isDataControlResult(value) {
21
61
  if (value === null || typeof value !== "object")
22
62
  return false;
23
- if (value instanceof Error)
24
- return false;
25
- const candidate = value;
26
- if (candidate.notFound === true)
27
- return true;
28
- const destination = candidate.redirect?.destination;
29
- return typeof destination === "string";
63
+ return value[DATA_CONTROL_RESULT] === true;
30
64
  }
31
65
  /**
32
66
  * Reduce a thrown control result to the shape a returned one produces.
@@ -1 +1 @@
1
- {"version":3,"file":"static-data-fetcher.d.ts","sourceRoot":"","sources":["../../../src/src/data/static-data-fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA2DxE,qBAAa,iBAAiB;IAGhB,OAAO,CAAC,YAAY;IAFhC,OAAO,CAAC,oBAAoB,CAAoC;gBAE5C,YAAY,EAAE,YAAY;IAExC,KAAK,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IA4ChF,OAAO,CAAC,uBAAuB;YAMjB,iBAAiB;IAuB/B,OAAO,CAAC,eAAe;YAQT,iBAAiB;YA+BjB,UAAU;YAqEV,sBAAsB;IAoEpC;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;CAIjB"}
1
+ {"version":3,"file":"static-data-fetcher.d.ts","sourceRoot":"","sources":["../../../src/src/data/static-data-fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA2DxE,qBAAa,iBAAiB;IAGhB,OAAO,CAAC,YAAY;IAFhC,OAAO,CAAC,oBAAoB,CAAoC;gBAE5C,YAAY,EAAE,YAAY;IAExC,KAAK,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IA4ChF,OAAO,CAAC,uBAAuB;YAMjB,iBAAiB;IAuB/B,OAAO,CAAC,eAAe;YAQT,iBAAiB;YA+BjB,UAAU;YAqEV,sBAAsB;IAuFpC;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;CAIjB"}
@@ -188,6 +188,21 @@ export class StaticDataFetcher {
188
188
  const start = performance.now();
189
189
  try {
190
190
  const result = await this.executeStaticData(getStaticData, context, REVALIDATION_TIMEOUT_MS, `getStaticData revalidation for ${pathname}`);
191
+ // A background revalidation refreshes a page that is already being
192
+ // served. A notFound or redirect is not a refreshed page, so keep
193
+ // the entry that is live and let the next revalidation try again.
194
+ // Storing it would serve a 404 for the previously healthy page, and
195
+ // a control result carries no revalidate interval, so the entry
196
+ // would never revalidate again either.
197
+ if (result.notFound || result.redirect) {
198
+ serverLogger.warn("DATA_REVALIDATION_CONTROL_RESULT background revalidation returned a control result, keeping the cached entry", {
199
+ pathname,
200
+ durationMs: Math.round(performance.now() - start),
201
+ cacheKey,
202
+ control: result.notFound ? "notFound" : "redirect",
203
+ });
204
+ return;
205
+ }
191
206
  this.storeCacheEntry(cacheKey, result);
192
207
  }
193
208
  catch (error) {
@@ -1,6 +1,7 @@
1
1
  import type { Capability, ExtensionContractMetadata, ExtensionFactory, ResolvedExtension } from "./types.js";
2
2
  import type { EvalReportExporterRegistry } from "./eval/index.js";
3
3
  import type { LLMProviderRegistry } from "./llm/index.js";
4
+ export { ensureBuiltinSchemaValidator } from "./builtin-schema-validator.js";
4
5
  export type OptionalBuiltinExtensionDefinition = {
5
6
  name: string;
6
7
  origin: string;
@@ -13,7 +14,6 @@ export type OptionalBuiltinExtensionDefinition = {
13
14
  export declare const OPTIONAL_BUILTIN_EXTENSIONS: OptionalBuiltinExtensionDefinition[];
14
15
  export declare function ensureBuiltinEvalReportExporterRegistry(): EvalReportExporterRegistry;
15
16
  export declare function ensureBuiltinLLMProviders(): LLMProviderRegistry;
16
- export declare function ensureBuiltinSchemaValidator(): void;
17
17
  export declare function createOptionalBuiltinExtension(definition: OptionalBuiltinExtensionDefinition): ResolvedExtension;
18
18
  export declare function createBuiltinExtensions(): ResolvedExtension[];
19
19
  export declare function createEvalCliBuiltinExtensions(selectedExporterIds?: string[]): ResolvedExtension[];
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-extensions.d.ts","sourceRoot":"","sources":["../../../src/src/extensions/builtin-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAGV,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAMlE,OAAO,KAAK,EAAe,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAevE,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAoBF,eAAO,MAAM,2BAA2B,EAAE,kCAAkC,EA0I3E,CAAC;AAWF,wBAAgB,uCAAuC,IAAI,0BAA0B,CASpF;AAWD,wBAAgB,yBAAyB,IAAI,mBAAmB,CAM/D;AAED,wBAAgB,4BAA4B,IAAI,IAAI,CAInD;AA0CD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,kCAAkC,GAC7C,iBAAiB,CA6BnB;AAwDD,wBAAgB,uBAAuB,IAAI,iBAAiB,EAAE,CAa7D;AAED,wBAAgB,8BAA8B,CAC5C,mBAAmB,GAAE,MAAM,EAAO,GACjC,iBAAiB,EAAE,CAiBrB"}
1
+ {"version":3,"file":"builtin-extensions.d.ts","sourceRoot":"","sources":["../../../src/src/extensions/builtin-extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAGV,yBAAyB,EACzB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAMlE,OAAO,KAAK,EAAe,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAOvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAQ7E,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAoBF,eAAO,MAAM,2BAA2B,EAAE,kCAAkC,EA0I3E,CAAC;AAWF,wBAAgB,uCAAuC,IAAI,0BAA0B,CASpF;AAWD,wBAAgB,yBAAyB,IAAI,mBAAmB,CAM/D;AA0CD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,kCAAkC,GAC7C,iBAAiB,CA6BnB;AAwDD,wBAAgB,uBAAuB,IAAI,iBAAiB,EAAE,CAa7D;AAED,wBAAgB,8BAA8B,CAC5C,mBAAmB,GAAE,MAAM,EAAO,GACjC,iBAAiB,EAAE,CAiBrB"}
@@ -7,7 +7,7 @@ import { AnthropicProvider } from "../../extensions/ext-llm-anthropic/src/index.
7
7
  import { GoogleProvider } from "../../extensions/ext-llm-google/src/index.js";
8
8
  import extEvalReportMlflow from "../../extensions/ext-eval-report-mlflow/src/index.js";
9
9
  import extZod from "../../extensions/ext-schema-zod/src/index.js";
10
- import { createZodAdapter } from "../../extensions/ext-schema-zod/src/adapter.js";
10
+ export { ensureBuiltinSchemaValidator } from "./builtin-schema-validator.js";
11
11
  const BUILTIN_LLM_PROVIDERS = [
12
12
  {
13
13
  extensionName: "ext-llm-openai",
@@ -193,11 +193,6 @@ export function ensureBuiltinLLMProviders() {
193
193
  }
194
194
  return registry;
195
195
  }
196
- export function ensureBuiltinSchemaValidator() {
197
- if (!tryResolve("SchemaValidator")) {
198
- register("SchemaValidator", createZodAdapter());
199
- }
200
- }
201
196
  function createBuiltinLLMProviderExtension(definition) {
202
197
  const provider = definition.provider();
203
198
  let didRegister = false;
@@ -0,0 +1,3 @@
1
+ /** Ensure the default schema validator is available to schema-backed framework APIs. */
2
+ export declare function ensureBuiltinSchemaValidator(): void;
3
+ //# sourceMappingURL=builtin-schema-validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtin-schema-validator.d.ts","sourceRoot":"","sources":["../../../src/src/extensions/builtin-schema-validator.ts"],"names":[],"mappings":"AAIA,wFAAwF;AACxF,wBAAgB,4BAA4B,IAAI,IAAI,CAInD"}
@@ -0,0 +1,8 @@
1
+ import { register, tryResolve } from "./contracts.js";
2
+ import { createZodAdapter } from "../../extensions/ext-schema-zod/src/adapter.js";
3
+ /** Ensure the default schema validator is available to schema-backed framework APIs. */
4
+ export function ensureBuiltinSchemaValidator() {
5
+ if (!tryResolve("SchemaValidator")) {
6
+ register("SchemaValidator", createZodAdapter());
7
+ }
8
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../src/src/html/hydration-script-builder/templates/renderer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,cA4R7B,CAAC"}
1
+ {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../src/src/html/hydration-script-builder/templates/renderer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,cAoT7B,CAAC"}
@@ -3,17 +3,59 @@ export const getRendererScript = () => `
3
3
 
4
4
  // True when a dynamic import failed because the module could not be
5
5
  // fetched (404 / network), as opposed to being fetched and then failing to
6
- // link or evaluate. Browsers report the former as a TypeError with a
7
- // "dynamically imported module" message; link failures are SyntaxErrors and
8
- // evaluation failures are whatever the module threw.
6
+ // link or evaluate. Browsers word this as a TypeError naming the dynamic
7
+ // import itself; link failures are SyntaxErrors and evaluation failures are
8
+ // whatever the module threw. The wording is matched against the dynamic
9
+ // import phrases only, so app code throwing "Failed to load user profile"
10
+ // at module scope is not mistaken for a missing module.
9
11
  function isModuleNotFoundError(error) {
10
12
  if (!error) return false;
11
13
  if (error instanceof SyntaxError) return false;
12
14
  const message = String((error && error.message) || error);
13
- return /(?:Failed to fetch|error loading|Importing a module script failed|Failed to load)/i
15
+ return /(?:dynamically imported module|Importing a module script failed|Failed to load module script)/i
14
16
  .test(message);
15
17
  }
16
18
 
19
+ // Picks the error that describes the failure best. An error that proves a
20
+ // module was reached (link or evaluation) always beats one that only proves
21
+ // a URL could not be fetched, because a 404 on a path that was never
22
+ // expected to exist explains nothing. Otherwise the earlier error wins: it
23
+ // names the module the router actually intended to load.
24
+ function preferReachedModuleError(earlier, later) {
25
+ if (!earlier) return later;
26
+ if (!later) return earlier;
27
+ if (isModuleNotFoundError(earlier) && !isModuleNotFoundError(later)) return later;
28
+ return earlier;
29
+ }
30
+
31
+ // Loads a Pages Router page, retrying at <route>/index.js because both
32
+ // pages/about.tsx and pages/about/index.tsx are valid sources for the same
33
+ // route. The retry is unconditional: gating it on the wording of the
34
+ // first rejection turned any unrecognized wording into a blank page. Error
35
+ // selection, not the retry, is what must stay precise.
36
+ async function loadPageModuleWithIndexFallback(
37
+ basePath,
38
+ pageSlug,
39
+ pageModuleError,
40
+ importModule,
41
+ ) {
42
+ try {
43
+ return await importModule(basePath + '.js');
44
+ } catch (error) {
45
+ const routeError = preferReachedModuleError(pageModuleError, error);
46
+
47
+ // An index slug already resolves to <route>/index.js, so the retry
48
+ // would ask for <route>/index/index.js.
49
+ if (pageSlug === 'index' || pageSlug.endsWith('/index')) throw routeError;
50
+
51
+ try {
52
+ return await importModule(basePath + '/index.js');
53
+ } catch (indexError) {
54
+ throw preferReachedModuleError(routeError, indexError);
55
+ }
56
+ }
57
+ }
58
+
17
59
  async function renderPage(pathname) {
18
60
  const resolvedPathname = (() => {
19
61
  const input = typeof pathname === 'string' ? pathname : window.location.pathname;
@@ -128,30 +170,12 @@ export const getRendererScript = () => `
128
170
  const prefix = pageSlug.startsWith('@/') ? '' : '/pages';
129
171
  const basePath = MODULE_SERVER_URL + prefix + '/' + pageSlug;
130
172
 
131
- try {
132
- pageModule = await import(basePath + '.js');
133
- } catch (error) {
134
- pageModuleError = pageModuleError || error;
135
-
136
- // Only retry at <route>/index.js when the module genuinely could not
137
- // be found. If it was found but failed to link or evaluate, retrying
138
- // a path that does not exist replaces a precise error ("does not
139
- // provide an export named 'createHash'") with a misleading 404.
140
- const canRetryAsIndex = isModuleNotFoundError(error) &&
141
- pageSlug !== 'index' && !pageSlug.endsWith('/index');
142
-
143
- if (!canRetryAsIndex) throw pageModuleError;
144
-
145
- try {
146
- pageModule = await import(basePath + '/index.js');
147
- } catch (indexError) {
148
- // For a real <route>/index.tsx page, the first 404 was expected
149
- // and this retry is the path that matters: if it reached a module
150
- // and failed to link or evaluate, its error is the real one. Only
151
- // when the retry 404s as well does the original describe more.
152
- throw isModuleNotFoundError(indexError) ? pageModuleError : indexError;
153
- }
154
- }
173
+ pageModule = await loadPageModuleWithIndexFallback(
174
+ basePath,
175
+ pageSlug,
176
+ pageModuleError,
177
+ (moduleUrl) => import(moduleUrl),
178
+ );
155
179
  }
156
180
 
157
181
  if (!pageModule) {
@@ -1 +1 @@
1
- {"version":3,"file":"run-stream.d.ts","sourceRoot":"","sources":["../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ule } from "../extensions/first-party-import.js";
12
12
  import { SandboxShellToolsProviderName, } from "../extensions/sandbox/index.js";
13
13
  import { resolveHostedRuntimeAllowedToolNames } from "../agent/hosted/runtime-essential-tools.js";
14
- import { SKILL_TOOL_IDS } from "../skill/types.js";
15
14
  import { createToolsFromHostDefinitions, isToolVisibleTo, toolRegistry, } from "../tool/index.js";
15
+ import { skillRegistry } from "../skill/registry.js";
16
16
  import { addSpanEvent, setSpanAttributes, withSpan, } from "../observability/tracing/otlp-setup.js";
17
17
  import { defineSchema, lazySchema } from "../schemas/index.js";
18
18
  import { createStreamTransformState, finalizeRunEvents, formatAgUiEvent, mapRuntimeEventToAgUi, parseSseJsonEvents, } from "./ag-ui-sse.js";
@@ -84,9 +84,6 @@ export function buildMergedTools(agent, input, sessionManager, availableForwarde
84
84
  if (agent.config.tools === true) {
85
85
  const merged = {};
86
86
  for (const [toolId, registryTool] of toolRegistry.getAll()) {
87
- if (!agent.config.skills && SKILL_TOOL_IDS.has(toolId)) {
88
- continue;
89
- }
90
87
  // Owner-aware: another agent's owned tool never enters this agent's
91
88
  // model tool definitions.
92
89
  if (!isToolVisibleTo(registryTool, { agentId: agent.id })) {
@@ -273,8 +270,9 @@ function getRuntimeToolAllowlist(forwardedProps) {
273
270
  }
274
271
  /**
275
272
  * Intersects the merged run tool set with the restrictive tool allowlist.
276
- * Skill runtime/delegation tools are preserved for skill-enabled agents,
277
- * mirroring the hosted chat runtime's allowlist semantics.
273
+ * Skill runtime tools are preserved for every agent. Delegation tools are
274
+ * preserved only when the agent has at least one visible skill, mirroring
275
+ * the hosted chat runtime's allowlist semantics.
278
276
  *
279
277
  * The allowlist bounds this run's direct tool surface only: preserved skill
280
278
  * delegation tools (`invoke_agent`) can spawn child runs whose tool assembly
@@ -291,11 +289,8 @@ function applyRuntimeToolAllowlist(mergedTools, toolAllowlist, agent) {
291
289
  // rather than silently skipping enforcement.
292
290
  return {};
293
291
  }
294
- const availableSkillIds = agent.config.skills === true
295
- ? ["*"]
296
- : Array.isArray(agent.config.skills)
297
- ? agent.config.skills
298
- : undefined;
292
+ const visibleSkills = skillRegistry.resolveForAgent(true, { agentId: agent.id });
293
+ const availableSkillIds = visibleSkills.size > 0 ? [...visibleSkills.keys()] : undefined;
299
294
  const allowedToolNames = resolveHostedRuntimeAllowedToolNames({
300
295
  allowedToolNames: toolAllowlist,
301
296
  localToolNames: Object.keys(mergedTools),
@@ -9,7 +9,7 @@
9
9
  * executing in and asked users for values the harness already knew.
10
10
  *
11
11
  * The composed prompt extends the agent's resolved base instructions (which
12
- * already include the factory's skill manifest for skill-enabled agents) with:
12
+ * already include the factory's visible skill catalog) with:
13
13
  * - the shared project-context block (project reference + branch)
14
14
  * - the requested model
15
15
  * - the caller-supplied environment context (`studio_context` context item)
@@ -9,7 +9,7 @@
9
9
  * executing in and asked users for values the harness already knew.
10
10
  *
11
11
  * The composed prompt extends the agent's resolved base instructions (which
12
- * already include the factory's skill manifest for skill-enabled agents) with:
12
+ * already include the factory's visible skill catalog) with:
13
13
  * - the shared project-context block (project reference + branch)
14
14
  * - the requested model
15
15
  * - the caller-supplied environment context (`studio_context` context item)
@@ -1 +1 @@
1
- {"version":3,"file":"module-server.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/server/module-server.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAG5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AA2DtE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwDrD,CAAC;AAyEF,MAAM,WAAW,mBAAmB;IAClC,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,uBAAuB;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sFAAsF;IACtF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,sDAAsD;AACtD,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAqczF;AAwWD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAGrD;AAiBD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAyBlE"}
1
+ {"version":3,"file":"module-server.d.ts","sourceRoot":"","sources":["../../../../src/src/modules/server/module-server.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAG5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AA2DtE;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyDrD,CAAC;AAyEF,MAAM,WAAW,mBAAmB;IAClC,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,uBAAuB;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sFAAsF;IACtF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,sDAAsD;AACtD,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAqczF;AAwWD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAGrD;AAiBD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CA8BlE"}
@@ -87,8 +87,9 @@ export default {};
87
87
  ].join("\n") + "\n",
88
88
  "_dnt.polyfills": `export default {};\n`,
89
89
  // Deno import-map alias stub for browser/HTTP-served framework modules.
90
- // Must be a JS module (not JSON) because esbuild strips `with { type: "json" }`
91
- // at es2020 target, and browsers reject JSON MIME type without the assertion.
90
+ // Must be a JS module (not JSON): a browser refuses a JSON module unless the
91
+ // importer carries `with { type: "json" }`, so serving JS keeps the stub
92
+ // independent of how far import attribute support has reached the browser.
92
93
  "_veryfront/_deno-config": `export default ${JSON.stringify({ version: VERSION })};\n`,
93
94
  // dnt rewrites #deno-config to relative deno.js in npm framework modules.
94
95
  "deno": `export default ${JSON.stringify({ version: VERSION })};\n`,
@@ -795,17 +796,22 @@ const COMPILED_TO_JS_EXTENSIONS = /\.(?:tsx?|jsx|mdx|md)$/;
795
796
  */
796
797
  export function getDevModuleContentType(modulePath) {
797
798
  const normalizedPath = modulePath.toLowerCase();
798
- if (normalizedPath.endsWith(".map") || normalizedPath.endsWith(".json")) {
799
+ // The import rewriter appends `.js` to any specifier whose extension it does
800
+ // not recognise, so `@/lib/data.json` arrives here as `lib/data.json.js`
801
+ // while the source file, and therefore the body, is still raw JSON. Resolve
802
+ // the source extension the same way the module lookup does before deciding.
803
+ const sourcePath = normalizedPath.replace(/\.(?:mjs|js)$/, "");
804
+ if (sourcePath.endsWith(".map") || sourcePath.endsWith(".json")) {
799
805
  return "application/json; charset=utf-8";
800
806
  }
801
- if (normalizedPath.endsWith(".css")) {
807
+ if (sourcePath.endsWith(".css")) {
802
808
  return "text/css; charset=utf-8";
803
809
  }
804
- // The request path carries the *source* extension, but the body we serve is
805
- // always the compiled JavaScript. Typing the response from the source
806
- // extension yields `application/typescript`, which browsers refuse to execute
807
- // as a module under strict MIME checking.
808
- if (COMPILED_TO_JS_EXTENSIONS.test(normalizedPath)) {
810
+ // The request path can carry a source extension, but the body served for one
811
+ // is the compiled JavaScript. Typing the response from the source extension
812
+ // yields `application/typescript`, which browsers refuse to execute as a
813
+ // module under strict MIME checking.
814
+ if (COMPILED_TO_JS_EXTENSIONS.test(sourcePath)) {
809
815
  return "application/javascript; charset=utf-8";
810
816
  }
811
817
  const detected = getContentTypeForPath(normalizedPath);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Build-failure tagging for module loads.
3
+ *
4
+ * A page module can fail for two very different reasons, and callers need to
5
+ * tell them apart:
6
+ *
7
+ * - The source could not be compiled or resolved. That is a developer-facing
8
+ * build failure, and the message says how to fix it.
9
+ * - The module compiled, ran, and threw at module scope (a missing environment
10
+ * variable, a rejected top-level `await`). That is an ordinary application
11
+ * error, and a project's own error page should present it.
12
+ *
13
+ * Only the loader is in a position to know which happened, so it tags the
14
+ * error at the point of failure instead of leaving later layers to infer it.
15
+ */
16
+ /** Tag `error` as a build failure and return it. */
17
+ export declare function markBuildFailure(error: unknown): unknown;
18
+ /** True when `error` was raised while compiling or resolving project source. */
19
+ export declare function isBuildFailure(error: unknown): boolean;
20
+ //# sourceMappingURL=build-failure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-failure.d.ts","sourceRoot":"","sources":["../../../../../src/src/rendering/orchestrator/module-loader/build-failure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,oDAAoD;AACpD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAGxD;AAED,gFAAgF;AAChF,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEtD"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Build-failure tagging for module loads.
3
+ *
4
+ * A page module can fail for two very different reasons, and callers need to
5
+ * tell them apart:
6
+ *
7
+ * - The source could not be compiled or resolved. That is a developer-facing
8
+ * build failure, and the message says how to fix it.
9
+ * - The module compiled, ran, and threw at module scope (a missing environment
10
+ * variable, a rejected top-level `await`). That is an ordinary application
11
+ * error, and a project's own error page should present it.
12
+ *
13
+ * Only the loader is in a position to know which happened, so it tags the
14
+ * error at the point of failure instead of leaving later layers to infer it.
15
+ */
16
+ const BUILD_FAILURE = Symbol.for("veryfront.module-loader.build-failure");
17
+ /** Tag `error` as a build failure and return it. */
18
+ export function markBuildFailure(error) {
19
+ if (error instanceof Error)
20
+ error[BUILD_FAILURE] = true;
21
+ return error;
22
+ }
23
+ /** True when `error` was raised while compiling or resolving project source. */
24
+ export function isBuildFailure(error) {
25
+ return error instanceof Error && error[BUILD_FAILURE] === true;
26
+ }
@@ -7,6 +7,7 @@
7
7
  * @module rendering/orchestrator/module-loader
8
8
  */
9
9
  import type { RuntimeAdapter } from "../../../platform/adapters/base.js";
10
+ export { isBuildFailure } from "./build-failure.js";
10
11
  export { createEsmCache, createModuleCache, generateHash } from "./cache.js";
11
12
  export { fetchEsmModule, rewriteEsmPaths } from "./esm-rewriter.js";
12
13
  /**
@@ -19,7 +20,7 @@ export { fetchEsmModule, rewriteEsmPaths } from "./esm-rewriter.js";
19
20
  * @param useLocalAdapter - Whether to use local adapter for reading
20
21
  * @returns Path to the transformed module file
21
22
  */
22
- export declare function transformModuleWithDeps(filePath: string, tmpDir: string, localAdapter: RuntimeAdapter, config: ModuleLoaderConfig, useLocalAdapter?: boolean): Promise<string>;
23
+ export declare function transformModuleWithDeps(filePath: string, tmpDir: string, localAdapter: RuntimeAdapter, config: ModuleLoaderConfig, useLocalAdapter?: boolean, lineage?: ReadonlySet<string>, cycleTargets?: Set<string>): Promise<string>;
23
24
  export interface ModuleLoaderConfig {
24
25
  projectDir: string;
25
26
  projectId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/src/rendering/orchestrator/module-loader/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAiBzE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOpE;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,cAAc,EAC5B,MAAM,EAAE,kBAAkB,EAC1B,eAAe,UAAQ,GACtB,OAAO,CAAC,MAAM,CAAC,CA6FjB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAC;IACnC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAyBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GA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