veryfront 0.1.635 → 0.1.636

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 (70) hide show
  1. package/esm/cli/commands/serve/command.d.ts.map +1 -1
  2. package/esm/cli/commands/serve/command.js +2 -1
  3. package/esm/deno.js +1 -1
  4. package/esm/src/cache/distributed-cache-init.d.ts +11 -2
  5. package/esm/src/cache/distributed-cache-init.d.ts.map +1 -1
  6. package/esm/src/cache/distributed-cache-init.js +2 -14
  7. package/esm/src/channels/control-plane.d.ts +5 -5
  8. package/esm/src/embedding/chunk.js +4 -2
  9. package/esm/src/errors/error-registry/agent.d.ts +16 -0
  10. package/esm/src/errors/error-registry/agent.d.ts.map +1 -0
  11. package/esm/src/errors/error-registry/agent.js +52 -0
  12. package/esm/src/errors/error-registry/boundary.d.ts +16 -0
  13. package/esm/src/errors/error-registry/boundary.d.ts.map +1 -0
  14. package/esm/src/errors/error-registry/boundary.js +52 -0
  15. package/esm/src/errors/error-registry/build.d.ts +20 -0
  16. package/esm/src/errors/error-registry/build.d.ts.map +1 -0
  17. package/esm/src/errors/error-registry/build.js +68 -0
  18. package/esm/src/errors/error-registry/config.d.ts +22 -0
  19. package/esm/src/errors/error-registry/config.d.ts.map +1 -0
  20. package/esm/src/errors/error-registry/config.js +70 -0
  21. package/esm/src/errors/error-registry/deploy.d.ts +12 -0
  22. package/esm/src/errors/error-registry/deploy.d.ts.map +1 -0
  23. package/esm/src/errors/error-registry/deploy.js +36 -0
  24. package/esm/src/errors/error-registry/dev.d.ts +14 -0
  25. package/esm/src/errors/error-registry/dev.d.ts.map +1 -0
  26. package/esm/src/errors/error-registry/dev.js +44 -0
  27. package/esm/src/errors/error-registry/general.d.ts +29 -0
  28. package/esm/src/errors/error-registry/general.d.ts.map +1 -0
  29. package/esm/src/errors/error-registry/general.js +92 -0
  30. package/esm/src/errors/error-registry/module.d.ts +16 -0
  31. package/esm/src/errors/error-registry/module.d.ts.map +1 -0
  32. package/esm/src/errors/error-registry/module.js +52 -0
  33. package/esm/src/errors/error-registry/route.d.ts +16 -0
  34. package/esm/src/errors/error-registry/route.d.ts.map +1 -0
  35. package/esm/src/errors/error-registry/route.js +52 -0
  36. package/esm/src/errors/error-registry/runtime.d.ts +18 -0
  37. package/esm/src/errors/error-registry/runtime.d.ts.map +1 -0
  38. package/esm/src/errors/error-registry/runtime.js +60 -0
  39. package/esm/src/errors/error-registry/server.d.ts +39 -0
  40. package/esm/src/errors/error-registry/server.d.ts.map +1 -0
  41. package/esm/src/errors/error-registry/server.js +129 -0
  42. package/esm/src/errors/error-registry.d.ts +79 -157
  43. package/esm/src/errors/error-registry.d.ts.map +1 -1
  44. package/esm/src/errors/error-registry.js +37 -706
  45. package/esm/src/integrations/schema.d.ts +4 -4
  46. package/esm/src/internal-agents/control-plane-auth.d.ts +1 -1
  47. package/esm/src/internal-agents/run-stream.d.ts.map +1 -1
  48. package/esm/src/internal-agents/run-stream.js +15 -1
  49. package/esm/src/security/sandbox/project-worker.d.ts.map +1 -1
  50. package/esm/src/security/sandbox/project-worker.js +0 -1
  51. package/esm/src/server/dev-server/server.d.ts.map +1 -1
  52. package/esm/src/server/dev-server/server.js +2 -1
  53. package/esm/src/server/distributed-cache-initializers.d.ts +13 -0
  54. package/esm/src/server/distributed-cache-initializers.d.ts.map +1 -0
  55. package/esm/src/server/distributed-cache-initializers.js +22 -0
  56. package/esm/src/server/handlers/request/agent-stream.handler.d.ts.map +1 -1
  57. package/esm/src/server/handlers/request/agent-stream.handler.js +56 -16
  58. package/esm/src/server/index.d.ts +1 -0
  59. package/esm/src/server/index.d.ts.map +1 -1
  60. package/esm/src/server/index.js +1 -0
  61. package/esm/src/server/production-server.d.ts.map +1 -1
  62. package/esm/src/server/production-server.js +2 -1
  63. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
  64. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
  65. package/esm/src/utils/redis-client.d.ts.map +1 -1
  66. package/esm/src/utils/redis-client.js +0 -3
  67. package/esm/src/utils/version-constant.d.ts +1 -1
  68. package/esm/src/utils/version-constant.js +1 -1
  69. package/esm/src/workflow/schemas/workflow.schema.d.ts +4 -4
  70. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import type { InferSchema } from "../extensions/schema/index.js";
2
- export declare const getIntegrationNameSchema: () => import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "linear" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "harvest" | "monday" | "zoom" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
2
+ export declare const getIntegrationNameSchema: () => import("../internal-agents/schema.js").Schema<"github" | "anthropic" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "linear" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "twitter" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "harvest" | "monday" | "zoom" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
3
3
  /** Zod schema for integration name. */
4
- export declare const IntegrationNameSchema: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "linear" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "harvest" | "monday" | "zoom" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
4
+ export declare const IntegrationNameSchema: import("../internal-agents/schema.js").Schema<"github" | "anthropic" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "linear" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "twitter" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "harvest" | "monday" | "zoom" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
5
5
  export declare const getEnvVarSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
6
6
  name: import("../internal-agents/schema.js").Schema<string>;
7
7
  description: import("../internal-agents/schema.js").Schema<string>;
@@ -412,7 +412,7 @@ export declare const IntegrationPromptSchema: import("../internal-agents/schema.
412
412
  icon: import("../internal-agents/schema.js").Schema<string | undefined>;
413
413
  }>>;
414
414
  export declare const getIntegrationConfigSchema: () => import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
415
- name: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "linear" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "harvest" | "monday" | "zoom" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
415
+ name: import("../internal-agents/schema.js").Schema<"github" | "anthropic" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "linear" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "twitter" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "harvest" | "monday" | "zoom" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
416
416
  displayName: import("../internal-agents/schema.js").Schema<string>;
417
417
  icon: import("../internal-agents/schema.js").Schema<string | undefined>;
418
418
  description: import("../internal-agents/schema.js").Schema<string>;
@@ -535,7 +535,7 @@ export declare const getIntegrationConfigSchema: () => import("../internal-agent
535
535
  }>>;
536
536
  /** Zod schema for integration config. */
537
537
  export declare const IntegrationConfigSchema: import("../internal-agents/schema.js").Schema<import("../extensions/schema/schema-validator.js").InferShape<{
538
- name: import("../internal-agents/schema.js").Schema<"github" | "twitter" | "anthropic" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "linear" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "harvest" | "monday" | "zoom" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
538
+ name: import("../internal-agents/schema.js").Schema<"github" | "anthropic" | "gmail" | "slack" | "calendar" | "jira" | "notion" | "servicenow" | "confluence" | "linear" | "gitlab" | "outlook" | "teams" | "figma" | "sheets" | "airtable" | "supabase" | "neon" | "sharepoint" | "stripe" | "salesforce" | "twitter" | "onedrive" | "bitbucket" | "sentry" | "posthog" | "zendesk" | "asana" | "harvest" | "monday" | "zoom" | "trello" | "box" | "shopify" | "clickup" | "intercom" | "pipedrive" | "mailchimp" | "webex" | "freshdesk" | "quickbooks" | "xero" | "drive" | "docs-google" | "snowflake" | "mixpanel" | "twilio" | "aws">;
539
539
  displayName: import("../internal-agents/schema.js").Schema<string>;
540
540
  icon: import("../internal-agents/schema.js").Schema<string | undefined>;
541
541
  description: import("../internal-agents/schema.js").Schema<string>;
@@ -12,7 +12,7 @@ export declare function verifyControlPlaneRequest(req: Request, ctx: HandlerCont
12
12
  iss: import("./schema.js").Schema<string>;
13
13
  aud: import("./schema.js").Schema<string>;
14
14
  sub: import("./schema.js").Schema<string>;
15
- surface: import("./schema.js").Schema<"mcp" | "studio" | "channels" | "a2a">;
15
+ surface: import("./schema.js").Schema<"mcp" | "channels" | "studio" | "a2a">;
16
16
  project_id: import("./schema.js").Schema<string>;
17
17
  request_hash: import("./schema.js").Schema<string>;
18
18
  iat: import("./schema.js").Schema<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"run-stream.d.ts","sourceRoot":"","sources":["../../../src/src/internal-agents/run-stream.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,YAAY,IAAI,OAAO,EAC5B,KAAK,aAAa,EAEnB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,qBAAqB,CAAC;AAkB7B,OAAO,EAA0B,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAuBxD,MAAM,WAAW,+BAA+B;IAC9C,cAAc,EAAE,sBAAsB,CAAC;IACvC,mBAAmB,CAAC,EAAE;QACpB,MAAM,CAAC,EA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AE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAkCxD,MAAM,WAAW,+BAA+B;IAC9C,cAAc,EAAE,sBAAsB,CAAC;IACvC,mBAAmB,CAAC,EAAE;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,cAAc,CAAC,EAAE,+BAA+B,CAAC,gBAAgB,CAAC,CAAC;IACnE,8BAA8B,CAAC,EAAE,CAC/B,KAAK,EAAE,+BAA+B,KACnC,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC7C,aAAa,CAAC,EAAE,CACd,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,KAClC;QACH,MAAM,EAAE,CACN,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,SAAS,CAAC,EAAE;YACV,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;SAC9C,EACD,aAAa,CAAC,EAAE,MAAM,EACtB,uBAAuB,CAAC,EAAE,MAAM,EAChC,WAAW,CAAC,EAAE,WAAW,KACtB,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;KAC1C,CAAC;CACH;AA6QD,wBAAsB,gCAAgC,CACpD,KAAK,EAAE,oBAAoB,EAC3B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,+BAA+B,GACpC,OAAO,CAAC,QAAQ,CAAC,CA0SnB"}
@@ -20,6 +20,16 @@ function getAgentAllowedRemoteToolNames(agent) {
20
20
  const raw = agent.config.allowedRemoteTools;
21
21
  return Array.isArray(raw) && raw.every((toolName) => typeof toolName === "string") ? raw : [];
22
22
  }
23
+ function mergeRemoteToolNames(source, forwarded) {
24
+ const merged = new Set();
25
+ for (const toolName of source) {
26
+ merged.add(toolName);
27
+ }
28
+ for (const toolName of forwarded) {
29
+ merged.add(toolName);
30
+ }
31
+ return [...merged];
32
+ }
23
33
  function createInjectedStudioTool(runId, toolName, description, parameters, sessionManager) {
24
34
  return {
25
35
  id: toolName,
@@ -225,7 +235,11 @@ export async function createRuntimeAgentStreamResponse(input, agent, deps) {
225
235
  runId: input.runId,
226
236
  threadId: input.threadId,
227
237
  });
228
- const allowedRemoteToolNames = getAllowedRemoteToolNames(input.forwardedProps);
238
+ const forwardedAllowedRemoteToolNames = getAllowedRemoteToolNames(input.forwardedProps);
239
+ const sourceAllowedRemoteToolNames = getAgentAllowedRemoteToolNames(agent);
240
+ const allowedRemoteToolNames = forwardedAllowedRemoteToolNames === undefined
241
+ ? undefined
242
+ : mergeRemoteToolNames(sourceAllowedRemoteToolNames, forwardedAllowedRemoteToolNames);
229
243
  const forwardedIntegrationToolDefs = getForwardedIntegrationToolDefinitions(input.forwardedProps);
230
244
  const availableForwardedToolNames = forwardedIntegrationToolDefs?.map((tool) => tool.name);
231
245
  const sandboxTools = await buildProjectAgentSandboxTools({ agent, deps });
@@ -1 +1 @@
1
- {"version":3,"file":"project-worker.d.ts","sourceRoot":"","sources":["../../../../src/src/security/sandbox/project-worker.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EAGf,MAAM,mBAAmB,CAAC;AAW3B,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAcD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,M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AAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,gBAAgB;CAazB"}
@@ -55,7 +55,6 @@ export class ProjectWorker {
55
55
  name: `project-worker-${this.projectId}`,
56
56
  deno: { permissions: this.permissions },
57
57
  };
58
- // @ts-ignore - Deno Worker accepts extended options
59
58
  this.worker = new Worker(workerUrl, workerOptions);
60
59
  this._status = "idle";
61
60
  this.worker.onmessage = (event) => {
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/src/server/dev-server/server.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAkCvD,4BAA4B;AAC5B,qBAAa,SAAS;IAiBR,OAAO,CAAC,OAAO;IAhB3B,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,iBAAiB,CAAqB;IAC9C,OAAO,CAAC,cAAc,CAAC,CAAiB;IACxC,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,SAAS,CAA8B;IAC/C,OAAO,CAAC,cAAc,CAAC,CAAiB;IACxC,OAAO,CAAC,QAAQ,CAAC,CAAsC;IACvD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,iBAAiB,CAAC,CAAa;IACvC,OAAO,CAAC,qBAAqB,CAAC,CAAa;IAC3C,OAAO,CAAC,8BAA8B,CAAC,CAAa;gBAEhC,OAAO,EAAE,gBAAgB;IAQ7C,OAAO,CAAC,OAAO;YAID,YAAY;IAWpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA8K5B,qEAAqE;IACrE,IAAI,OAAO,IAAI,CAAC,GAAG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AY;IAWpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAgL5B,qEAAqE;IACrE,IAAI,OAAO,IAAI,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAKjD;IAED,OAAO,CAAC,oBAAoB;YAkBd,qBAAqB;YAkBrB,yBAAyB;YAoBzB,uBAAuB;YA4BvB,wBAAwB;IAmBtC,OAAO,CAAC,kBAAkB;IAuBpB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC;YAe7B,iBAAiB;IAsC/B,qBAAqB,IAAI,UAAU,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,GAAG,IAAI;IAIlE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CA6B5B"}
@@ -17,6 +17,7 @@ import { FileWatchSetup } from "./file-watch-setup.js";
17
17
  import { enableSSRClientOnlyFetching, enableSSRFetchInterception, setSSRServerPort, } from "../../rendering/ssr-globals.js";
18
18
  import { setEnv } from "../../platform/compat/process.js";
19
19
  import { initializeDistributedCaches } from "../../cache/distributed-cache-init.js";
20
+ import { defaultDistributedCacheInitializers } from "../distributed-cache-initializers.js";
20
21
  import { isDiskCacheConfigured } from "../../cache/backend.js";
21
22
  import { clearTranspileCache, discoverAll } from "../../discovery/index.js";
22
23
  const rscLog = logger.component("rsc");
@@ -117,7 +118,7 @@ export class DevServer {
117
118
  await this.logRSCStatus();
118
119
  // Initialize disk cache in dev mode when explicitly configured
119
120
  if (isDiskCacheConfigured()) {
120
- void initializeDistributedCaches().catch((error) => {
121
+ void initializeDistributedCaches(defaultDistributedCacheInitializers).catch((error) => {
121
122
  logger.debug("[DevServer] Cache initialization failed, using memory fallback", { error });
122
123
  });
123
124
  }
@@ -0,0 +1,13 @@
1
+ import type { DistributedCacheInitializers } from "../cache/distributed-cache-init.js";
2
+ /**
3
+ * Default wiring of distributed-cache initializers, assembled at the server
4
+ * composition root.
5
+ *
6
+ * The concrete initializers live in the `transforms`, `modules`, `html`, and
7
+ * `platform` layers. Keeping this wiring in `src/server` (which is free to
8
+ * depend on every layer) lets `src/cache/distributed-cache-init.ts` remain a
9
+ * low-level orchestrator that takes its initializers as an injected dependency
10
+ * instead of reaching up into those layers itself.
11
+ */
12
+ export declare const defaultDistributedCacheInitializers: DistributedCacheInitializers;
13
+ //# sourceMappingURL=distributed-cache-initializers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"distributed-cache-initializers.d.ts","sourceRoot":"","sources":["../../../src/src/server/distributed-cache-initializers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAOvF;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC,EAAE,4BAMjD,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { initializeFileCacheBackend } from "../platform/adapters/fs/cache/file-cache.js";
2
+ import { initializeSSRDistributedCache } from "../modules/react-loader/ssr-module-loader/index.js";
3
+ import { initializeTransformCache } from "../transforms/esm/transform-cache.js";
4
+ import { initializeHttpModuleDistributedCache } from "../transforms/esm/http-cache-wrapper.js";
5
+ import { initializeProjectCSSCache } from "../html/styles-builder/tailwind-compiler.js";
6
+ /**
7
+ * Default wiring of distributed-cache initializers, assembled at the server
8
+ * composition root.
9
+ *
10
+ * The concrete initializers live in the `transforms`, `modules`, `html`, and
11
+ * `platform` layers. Keeping this wiring in `src/server` (which is free to
12
+ * depend on every layer) lets `src/cache/distributed-cache-init.ts` remain a
13
+ * low-level orchestrator that takes its initializers as an injected dependency
14
+ * instead of reaching up into those layers itself.
15
+ */
16
+ export const defaultDistributedCacheInitializers = {
17
+ transformCache: initializeTransformCache,
18
+ ssrModuleCache: initializeSSRDistributedCache,
19
+ fileCache: initializeFileCacheBackend,
20
+ projectCSSCache: initializeProjectCSSCache,
21
+ httpModuleCache: initializeHttpModuleDistributedCache,
22
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"agent-stream.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/agent-stream.handler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,4BAA4B,EAE7B,MAAM,2CAA2C,CAAC;AAwBnD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAUnG,MAAM,WAAW,sBACf,SAAQ,yBAAyB,EAAE,+BAA+B;IAClE,4BAA4B,CAAC,EAAE,OAAO,4BAA4B,CAAC;CACpE;AAyND,qBAAa,kBAAmB,SAAQ,WAAW;IASrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IARjC,QAAQ,EAAE,eAAe,CAMvB;gBAE2B,IAAI,GAAE,sBAAoC;IAIvE,OAAO,CAAC,sBAAsB;IAwBxB,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CA+JxE"}
1
+ {"version":3,"file":"agent-stream.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/agent-stream.handler.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,4BAA4B,EAE7B,MAAM,2CAA2C,CAAC;AAwBnD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAUnG,MAAM,WAAW,sBACf,SAAQ,yBAAyB,EAAE,+BAA+B;IAClE,4BAA4B,CAAC,EAAE,OAAO,4BAA4B,CAAC;CACpE;AAyQD,qBAAa,kBAAmB,SAAQ,WAAW;IASrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IARjC,QAAQ,EAAE,eAAe,CAMvB;gBAE2B,IAAI,GAAE,sBAAoC;IAIvE,OAAO,CAAC,sBAAsB;IAwBxB,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAiKxE"}
@@ -1,4 +1,4 @@
1
- import { createRemoteMCPToolSource } from "../../../tool/index.js";
1
+ import { createRemoteMCPToolSource, toolRegistry, } from "../../../tool/index.js";
2
2
  import { defaultChannelInvokeDeps } from "../../../channels/invoke.js";
3
3
  import { createRuntimeAgentStreamResponse, } from "../../../internal-agents/run-stream.js";
4
4
  import { resolveRuntimeOwnerInvokeUrl, RUNTIME_OWNER_INVOKE_URL_HEADER, } from "../../../internal-agents/runtime-owner.js";
@@ -20,7 +20,7 @@ const defaultDeps = {
20
20
  const logger = serverLogger.component("agent-stream-handler");
21
21
  const RUN_STREAM_PATH_REGEX = /^\/api\/control-plane\/runs\/([^/]+)\/stream$/;
22
22
  const VERYFRONT_PLATFORM_REMOTE_TOOL_SOURCE_ID = "veryfront-platform-mcp";
23
- const VERYFRONT_PLATFORM_REMOTE_TOOL_NAMES = new Set(["search_knowledge", "get_file"]);
23
+ const LOCAL_RUNTIME_BOOLEAN_TOOL_NAMES = new Set(["bash"]);
24
24
  // Per-environment env var cache shared across all agent stream requests (60s TTL)
25
25
  const _agentEnvVarCache = new EnvironmentVariableCache((environmentId, token, projectSlug) => {
26
26
  const apiBaseUrl = getHostEnv("VERYFRONT_API_URL") ?? "https://api.veryfront.com";
@@ -50,13 +50,17 @@ async function _resolveProductionEnvironmentId(projectSlug, token) {
50
50
  return null;
51
51
  }
52
52
  }
53
- function getRequestedVeryfrontPlatformToolNames(agent) {
54
- const tools = agent.config.tools;
53
+ function getRequestedUnresolvedBooleanToolNames(input) {
54
+ const availableToolNames = new Set(input.availableToolNames ?? []);
55
+ const tools = input.agent.config.tools;
55
56
  if (!tools || tools === true) {
56
57
  return [];
57
58
  }
58
59
  return Object.entries(tools)
59
- .filter(([toolName, entry]) => entry === true && VERYFRONT_PLATFORM_REMOTE_TOOL_NAMES.has(toolName))
60
+ .filter(([toolName, entry]) => entry === true &&
61
+ !toolRegistry.get(toolName) &&
62
+ !availableToolNames.has(toolName) &&
63
+ !LOCAL_RUNTIME_BOOLEAN_TOOL_NAMES.has(toolName))
60
64
  .map(([toolName]) => toolName)
61
65
  .sort();
62
66
  }
@@ -73,26 +77,60 @@ function hasVeryfrontPlatformRemoteToolSource(remoteTools) {
73
77
  return remoteTools?.some((source) => source.id === VERYFRONT_PLATFORM_REMOTE_TOOL_SOURCE_ID) ??
74
78
  false;
75
79
  }
76
- function withVeryfrontPlatformRemoteTools(input) {
77
- const requestedToolNames = getRequestedVeryfrontPlatformToolNames(input.agent);
80
+ function createStaticRemoteToolSource(source, toolDefinitions) {
81
+ return {
82
+ id: source.id,
83
+ listTools: async () => toolDefinitions,
84
+ executeTool: (toolName, args, context) => source.executeTool(toolName, args, context),
85
+ };
86
+ }
87
+ async function withVeryfrontPlatformRemoteTools(input) {
88
+ const requestedToolNames = getRequestedUnresolvedBooleanToolNames({
89
+ agent: input.agent,
90
+ availableToolNames: input.availableToolNames,
91
+ });
78
92
  if (requestedToolNames.length === 0 || !input.token) {
79
93
  return input.agent;
80
94
  }
81
95
  const apiUrl = getHostEnv("VERYFRONT_API_URL") ?? "https://api.veryfront.com";
96
+ const platformRemoteToolSource = createRemoteMCPToolSource({
97
+ id: VERYFRONT_PLATFORM_REMOTE_TOOL_SOURCE_ID,
98
+ endpoint: `${apiUrl}/mcp`,
99
+ headers: { Authorization: `Bearer ${input.token}` },
100
+ });
101
+ let platformToolDefinitions = null;
102
+ try {
103
+ platformToolDefinitions = await platformRemoteToolSource.listTools({
104
+ ...(input.projectId ? { projectId: input.projectId } : {}),
105
+ });
106
+ }
107
+ catch (error) {
108
+ logger.warn("Unable to discover Veryfront platform MCP tools", {
109
+ projectId: input.projectId ?? undefined,
110
+ error: error instanceof Error ? error.message : String(error),
111
+ });
112
+ }
113
+ const platformToolNames = platformToolDefinitions
114
+ ? new Set(platformToolDefinitions.map((tool) => tool.name))
115
+ : null;
116
+ const requestedPlatformToolNames = platformToolNames
117
+ ? requestedToolNames.filter((toolName) => platformToolNames.has(toolName))
118
+ : requestedToolNames;
119
+ if (requestedPlatformToolNames.length === 0) {
120
+ return input.agent;
121
+ }
82
122
  const remoteTools = input.agent.config.remoteTools ?? [];
83
- const platformRemoteToolSource = hasVeryfrontPlatformRemoteToolSource(remoteTools) ? [] : [
84
- createRemoteMCPToolSource({
85
- id: VERYFRONT_PLATFORM_REMOTE_TOOL_SOURCE_ID,
86
- endpoint: `${apiUrl}/mcp`,
87
- headers: { Authorization: `Bearer ${input.token}` },
88
- }),
123
+ const platformRemoteToolSources = hasVeryfrontPlatformRemoteToolSource(remoteTools) ? [] : [
124
+ platformToolDefinitions
125
+ ? createStaticRemoteToolSource(platformRemoteToolSource, platformToolDefinitions)
126
+ : platformRemoteToolSource,
89
127
  ];
90
128
  return {
91
129
  ...input.agent,
92
130
  config: {
93
131
  ...input.agent.config,
94
- allowedRemoteTools: mergeAllowedRemoteTools(input.agent.config.allowedRemoteTools, requestedToolNames),
95
- remoteTools: [...remoteTools, ...platformRemoteToolSource],
132
+ allowedRemoteTools: mergeAllowedRemoteTools(input.agent.config.allowedRemoteTools, requestedPlatformToolNames),
133
+ remoteTools: [...remoteTools, ...platformRemoteToolSources],
96
134
  },
97
135
  };
98
136
  }
@@ -227,9 +265,11 @@ export class AgentStreamHandler extends BaseHandler {
227
265
  return this.respond(builder.json({ error: "Agent not found" }, 404));
228
266
  }
229
267
  const runtimeInput = toRuntimeRunAgentInput(payload);
230
- const runtimeAgent = withVeryfrontPlatformRemoteTools({
268
+ const runtimeAgent = await withVeryfrontPlatformRemoteTools({
231
269
  agent: agent,
232
270
  token: ctx.proxyToken || getHostEnv("VERYFRONT_API_TOKEN") || null,
271
+ projectId: ctx.projectId ?? null,
272
+ availableToolNames: runtimeInput.tools.map((tool) => tool.name),
233
273
  });
234
274
  // Load project env vars so source-defined MCP tool headers resolve
235
275
  // via _getProjectEnv(). Control-plane requests don't go through the proxy and
@@ -29,6 +29,7 @@ export type { DevServerOptions, DiscoveryOptions, FileWatcherMetrics, RouteDirec
29
29
  import { ReloadNotifier } from "./reload-notifier.js";
30
30
  export { ReloadNotifier };
31
31
  export type { BuildOptions, BuildStats } from "./build-types.js";
32
+ export { defaultDistributedCacheInitializers } from "./distributed-cache-initializers.js";
32
33
  /** Shared options for both development and production server modes. */
33
34
  interface BaseServerOptions {
34
35
  /** Project root directory. Defaults to process.cwd(). */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/server/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,yBAAyB,CAAC;AAKjC,OAAO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,cAAc,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,qBAAqB,EACrB,KAAK,4BAA4B,EAClC,MAAM,wBAAwB,CAAC;AAahC,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,qBAAqB,EAAE,CAAC;AAC5D,OAAO,EACL,qBAAqB,EACrB,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,oBAAoB,EACpB,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,oCAAoC,EACzC,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,GACvC,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,gBAAgB,EAChB,g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,CAAC,EAAE,EAAE,SAAS,KAAK,IAAI,CAAC;CACrC,CAAC;AAwCF,wEAAwE;AACxE,wBAAsB,aAAa,CACjC,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GACxF,OAAO,CAAC,gBAAgB,CAAC,CA8G3B;AAED;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,eAAe,CAAC,CAkD1B"}
@@ -38,6 +38,7 @@ export { DevServer, startDevServer, startProductionServer };
38
38
  export { createVeryfrontServer, startNodeVeryfrontServer, startVeryfrontServer, } from "./service-server.js";
39
39
  import { ReloadNotifier } from "./reload-notifier.js";
40
40
  export { ReloadNotifier };
41
+ export { defaultDistributedCacheInitializers } from "./distributed-cache-initializers.js";
41
42
  /**
42
43
  * Create a Veryfront request handler for use with any HTTP framework.
43
44
  *
@@ -1 +1 @@
1
- {"version":3,"file":"production-server.d.ts","sourceRoot":"","sources":["../../../src/src/server/production-server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA2BrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAgFtE,sEAAsE;AACtE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,sFAAsF;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uGAAuG;IACvG,kBAAkB,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;IAC9C;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE,oFAAoF;IACpF,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,sFAAsF;IACtF,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC;AAED,6CAA6C;AAC7C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED,mDAAmD;AACnD,MAAM,WAAW,4BAA6B,SAAQ,aAAa;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,8FAA8F;IAC9F,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,gCAAgC;AAChC,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,YAAY,CAAC,CA0JvB"}
1
+ {"version":3,"file":"production-server.d.ts","sourceRoot":"","sources":["../../../src/src/server/production-server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA4BrE,O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;AAED,gCAAgC;AAChC,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,YAAY,CAAC,CA0JvB"}
@@ -8,6 +8,7 @@ import { isDebugEnabled } from "../utils/constants/env.js";
8
8
  import { initializeOTLPWithApis, shutdownOTLP, withSpan, } from "../observability/tracing/otlp-setup.js";
9
9
  import { startConfiguredMemoryMonitoring, stopMemoryMonitoring, } from "../utils/memory/index.js";
10
10
  import { initializeDistributedCaches } from "../cache/distributed-cache-init.js";
11
+ import { defaultDistributedCacheInitializers } from "./distributed-cache-initializers.js";
11
12
  import { getConfig } from "../config/index.js";
12
13
  import { resolveStyleContentVersion } from "../html/styles-builder/content-version.js";
13
14
  import { buildPreparedCSSArtifactFromFiles, collectLocalProjectSourceFiles, readLocalProjectStylesheet, } from "../html/styles-builder/css-pregeneration.js";
@@ -220,7 +221,7 @@ if (globalThis[Symbol.for("import-meta-ponyfill-esmodule")](import.meta).main) {
220
221
  // Backend: API (production) > Redis (local dev) > Memory (fallback)
221
222
  const [otlpResult, cacheResult] = await Promise.allSettled([
222
223
  initializeOTLPWithApis(),
223
- initializeDistributedCaches(),
224
+ initializeDistributedCaches(defaultDistributedCacheInitializers),
224
225
  ]);
225
226
  if (otlpResult.status === "rejected") {
226
227
  logger.warn("OTLP initialization failed, continuing without tracing", {
@@ -1 +1 @@
1
- {"version":3,"file":"rsc-bundles.generated.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,kBAAkB,EAAE,MACu2xB,CAAC;AAEz4xB,eAAO,MAAM,iBAAiB,EAAE,MAC83iB,CAAC"}
1
+ {"version":3,"file":"rsc-bundles.generated.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,kBAAkB,EAAE,MACi11B,CAAC;AAEn31B,eAAO,MAAM,iBAAiB,EAAE,MAC40mB,CAAC"}