veryfront 0.1.1087 → 0.1.1088
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 +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;
|
|
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;AAGpF,OAAO,EAEL,KAAK,+BAA+B,EACrC,MAAM,wCAAwC,CAAC;AAQhD,OAAO,EACL,4BAA4B,EAE7B,MAAM,2CAA2C,CAAC;AA0BnD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAkBnG,MAAM,WAAW,sBACf,SAAQ,yBAAyB,EAAE,+BAA+B;IAClE,4BAA4B,CAAC,EAAE,OAAO,4BAA4B,CAAC;IACnE,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,+BAA+B,CAAC,YAAY,CAAC,CAAC;CACpF;AAkhBD,qBAAa,kBAAmB,SAAQ,WAAW;IASrC,OAAO,CAAC,QAAQ,CAAC,IAAI;IARjC,QAAQ,EAAE,eAAe,CAMvB;gBAE2B,IAAI,GAAE,sBAAoC;IAIvE,OAAO,CAAC,sBAAsB;IAsBxB,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CA4NxE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createRemoteMCPToolSource, toolRegistry, } from "../../../tool/index.js";
|
|
2
2
|
import { defaultChannelInvokeDeps } from "../../../channels/invoke.js";
|
|
3
3
|
import { getDiscoveredHostTools } from "../../../agent/hosted/veryfront-cloud-agent-service.js";
|
|
4
|
+
import { runWithVerifiedCacheApiCredential } from "../../../cache/verified-api-credential-context.js";
|
|
4
5
|
import { createRuntimeAgentStreamResponse, } from "../../../internal-agents/run-stream.js";
|
|
5
6
|
import { createRuntimeAgentFromMarkdownDefinition } from "../../../agent/runtime/agent-markdown-adapter.js";
|
|
6
7
|
import { buildStudioMcpHeaders } from "../../../agent/project/live-studio-mcp-tools.js";
|
|
@@ -468,7 +469,7 @@ export class AgentStreamHandler extends BaseHandler {
|
|
|
468
469
|
agentSourceType: payload.agentSource.type,
|
|
469
470
|
hasAgentConfig: Boolean(payload.agentConfig),
|
|
470
471
|
});
|
|
471
|
-
|
|
472
|
+
const runWithAgentSourceContext = () => this.withAgentSourceContext(requestScopedContext, payload.agentSource, async () => {
|
|
472
473
|
const sourceConfig = await resolveAgentSourceConfig(requestScopedContext, payload.agentSource);
|
|
473
474
|
const sourceScopedContext = {
|
|
474
475
|
...requestScopedContext,
|
|
@@ -557,7 +558,8 @@ export class AgentStreamHandler extends BaseHandler {
|
|
|
557
558
|
: response;
|
|
558
559
|
return this.respond(applyBuilderHeaders(responseWithOwner, builder.headers));
|
|
559
560
|
});
|
|
560
|
-
})
|
|
561
|
+
});
|
|
562
|
+
return await runWithVerifiedCacheApiCredential(verifiedClaims, runWithAgentSourceContext);
|
|
561
563
|
}
|
|
562
564
|
catch (error) {
|
|
563
565
|
if (error instanceof InternalAgentRequestBodyTooLargeError) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1088",
|
|
4
4
|
"description": "The simplest way to build AI-powered apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -328,10 +328,10 @@
|
|
|
328
328
|
"@types/react": "19.2.14",
|
|
329
329
|
"@types/react-dom": "19.2.3",
|
|
330
330
|
"ws": "8.21.0",
|
|
331
|
-
"@veryfront/ext-bundler-esbuild": "0.1.
|
|
332
|
-
"@veryfront/ext-content-mdx": "0.1.
|
|
333
|
-
"@veryfront/ext-css-tailwind": "0.1.
|
|
334
|
-
"@veryfront/ext-parser-babel": "0.1.
|
|
331
|
+
"@veryfront/ext-bundler-esbuild": "0.1.1088",
|
|
332
|
+
"@veryfront/ext-content-mdx": "0.1.1088",
|
|
333
|
+
"@veryfront/ext-css-tailwind": "0.1.1088",
|
|
334
|
+
"@veryfront/ext-parser-babel": "0.1.1088"
|
|
335
335
|
},
|
|
336
336
|
"devDependencies": {
|
|
337
337
|
"@types/node": "20.9.0"
|