veryfront 0.1.969 → 0.1.970

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.969",
3
+ "version": "0.1.970",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "minimumDependencyAge": {
@@ -1 +1 @@
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;AAOhD,OAAO,EACL,4BAA4B,EAE7B,MAAM,2CAA2C,CAAC;AAyBnD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAanG,MAAM,WAAW,sBACf,SAAQ,yBAAyB,EAAE,+BAA+B;IAClE,4BAA4B,CAAC,EAAE,OAAO,4BAA4B,CAAC;CACpE;AAqdD,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;CAoLxE"}
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;AAOhD,OAAO,EACL,4BAA4B,EAE7B,MAAM,2CAA2C,CAAC;AAyBnD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAanG,MAAM,WAAW,sBACf,SAAQ,yBAAyB,EAAE,+BAA+B;IAClE,4BAA4B,CAAC,EAAE,OAAO,4BAA4B,CAAC;CACpE;AAkfD,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;CAoLxE"}
@@ -99,6 +99,26 @@ function getForwardedAllowedRemoteToolNames(forwardedProps) {
99
99
  ? allowedTools
100
100
  : [];
101
101
  }
102
+ function getForwardedIntegrationToolNames(runtimeOverrides) {
103
+ const toolNames = new Set();
104
+ const serverResolvedTools = runtimeOverrides.serverResolvedIntegrationTools;
105
+ if (Array.isArray(serverResolvedTools)) {
106
+ for (const toolName of serverResolvedTools) {
107
+ if (typeof toolName === "string" && toolName.length > 0) {
108
+ toolNames.add(toolName);
109
+ }
110
+ }
111
+ }
112
+ const definitions = runtimeOverrides.integrationToolDefinitions;
113
+ if (Array.isArray(definitions)) {
114
+ for (const definition of definitions) {
115
+ if (isRecord(definition) && typeof definition.name === "string" && definition.name.length > 0) {
116
+ toolNames.add(definition.name);
117
+ }
118
+ }
119
+ }
120
+ return toolNames;
121
+ }
102
122
  function getRequestedStudioToolNames(input) {
103
123
  const requestedToolNames = new Set([
104
124
  ...getForwardedAllowedRemoteToolNames(input.forwardedProps),
@@ -124,11 +144,13 @@ function sanitizeForwardedRuntimeAllowedTools(input) {
124
144
  return forwardedProps;
125
145
  }
126
146
  const availableToolNames = new Set(input.availableToolNames);
147
+ const forwardedIntegrationToolNames = getForwardedIntegrationToolNames(runtimeOverrides);
127
148
  // Platform remote tools are gated separately by the child agent config in
128
149
  // withVeryfrontPlatformRemoteTools. The Studio path is the one that consumes
129
150
  // forwarded allowedTools, and Studio-only runtime tools are preserved only
130
151
  // for trusted Studio clients that can already attach the Studio MCP surface.
131
152
  const sanitizedAllowedTools = allowedTools.filter((toolName) => availableToolNames.has(toolName) ||
153
+ forwardedIntegrationToolNames.has(toolName) ||
132
154
  (input.allowStudioRuntimeTools && STUDIO_RUNTIME_REMOTE_TOOL_NAMES.has(toolName)));
133
155
  if (sanitizedAllowedTools.length === allowedTools.length) {
134
156
  return forwardedProps;
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.969";
2
+ export declare const VERSION = "0.1.970";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.969";
4
+ export const VERSION = "0.1.970";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.969",
3
+ "version": "0.1.970",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",