veryfront 0.1.106 → 0.1.108

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.d.ts CHANGED
@@ -349,6 +349,7 @@ declare namespace _default {
349
349
  "start-split": string;
350
350
  "start-split:binary": string;
351
351
  sbom: string;
352
+ audit: string;
352
353
  };
353
354
  namespace lint {
354
355
  export let include: string[];
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.106",
3
+ "version": "0.1.108",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -366,7 +366,8 @@ export default {
366
366
  "rlm:audit": "deno run -A scripts/rlm-ts/apps/audit.ts",
367
367
  "start-split": "deno task generate && deno run --allow-all cli/main.ts serve --split",
368
368
  "start-split:binary": "deno task generate && deno run --allow-all cli/main.ts serve --split --binary",
369
- "sbom": "deno run --allow-read --allow-write scripts/build/generate-sbom.ts"
369
+ "sbom": "deno run --allow-read --allow-write scripts/build/generate-sbom.ts",
370
+ "audit": "deno run --allow-read --allow-run --allow-write scripts/security/audit-npm.ts"
370
371
  },
371
372
  "lint": {
372
373
  "include": [
@@ -51,6 +51,8 @@ interface HandlerContextOptions {
51
51
  moduleServerUrl: string | undefined;
52
52
  /** Environment ID for env var resolution (from proxy x-environment-id header) */
53
53
  environmentId: string | undefined;
54
+ /** Skip render-specific enriched context requirements for non-render control-plane routes */
55
+ skipEnrichedContext?: boolean;
54
56
  }
55
57
  /**
56
58
  * Build the HandlerContext for route handlers.
@@ -1 +1 @@
1
- {"version":3,"file":"handler-context-builder.d.ts","sourceRoot":"","sources":["../../../../src/src/server/runtime-handler/handler-context-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB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,SAAS,CAAC;IACpC,iFAAiF;IACjF,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc,CAkD/E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,cAAc,GAAG,IAAI,EACrC,aAAa,EAAE,aAAa,GAAG,IAAI,EACnC,KAAK,EAAE,OAAO,GAAG,SAAS,EAC1B,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,cAAc,CAShB"}
1
+ {"version":3,"file":"handler-context-builder.d.ts","sourceRoot":"","sources":["../../../../src/src/server/runtime-handler/handler-context-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,uEAAuE;AACvE,KAAK,aAAa,GAAG,MAAM,GAAG,IAAI,CAAC;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAIrE,UAAU,qBAAqB;IAC7B,wBAAwB;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,sBAAsB;IACtB,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,sBAAsB;IACtB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,iBAAiB;IACjB,KAAK,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,uBAAuB;IACvB,MAAM,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC,yBAAyB;IACzB,YAAY,EAAE,YAAY,CAAC;IAC3B,mBAAmB;IACnB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,iBAAiB;IACjB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,iBAAiB;IACjB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,iDAAiD;IACjD,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,uBAAuB;IACvB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,2BAA2B;IAC3B,mBAAmB,EAAE,SAAS,GAAG,YAAY,CAAC;IAC9C,kDAAkD;IAClD,cAAc,EAAE,OAAO,+BAA+B,EAAE,cAAc,CAAC;IACvE,qBAAqB;IACrB,aAAa,EAAE,aAAa,CAAC;IAC7B,sCAAsC;IACtC,cAAc,EAAE,OAAO,CAAC;IACxB,wBAAwB;IACxB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,iFAAiF;IACjF,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,6FAA6F;IAC7F,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc,CAmD/E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,cAAc,GAAG,IAAI,EACrC,aAAa,EAAE,aAAa,GAAG,IAAI,EACnC,KAAK,EAAE,OAAO,GAAG,SAAS,EAC1B,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,cAAc,CAShB"}
@@ -12,9 +12,10 @@ import { computeContentSourceId } from "../../cache/keys.js";
12
12
  * Build the HandlerContext for route handlers.
13
13
  */
14
14
  export function buildHandlerContext(opts) {
15
- const contentSourceId = computeContentSourceId(opts.isLocalProject, opts.resolvedEnvironment, opts.requestContext.branch, opts.releaseId);
15
+ const contentSourceId = opts.skipEnrichedContext ? undefined : computeContentSourceId(opts.isLocalProject, opts.resolvedEnvironment, opts.requestContext.branch, opts.releaseId);
16
16
  // Build enriched context if we have config and project slug
17
- const enrichedContext = opts.config && opts.projectSlug
17
+ const enrichedContext = !opts.skipEnrichedContext && opts.config && opts.projectSlug &&
18
+ contentSourceId
18
19
  ? buildEnrichedContext({
19
20
  projectId: opts.projectId ?? opts.projectSlug,
20
21
  projectSlug: opts.projectSlug,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/server/runtime-handler/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAQlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAK7D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AA0BpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AA8DrE,OAAO,EAAE,qBAAqB,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAMtF,2CAA2C;AAC3C,eAAO,MAAM,aAAa,yoBAiChB,CAAC;AAEX,6CAA6C;AAC7C,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IAClD,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAyCD;;;;;;;;;;GAUG;AACH,wBAAgB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,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uGAAuG;IACvG,kBAAkB,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;CAC/C;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,IAAI,GAAE,qBAAsC,GAC3C,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAyYnF;AAGD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC"}
@@ -383,6 +383,7 @@ export function createVeryfrontHandler(projectDir, adapter, opts = { projectDir
383
383
  if (envRes.errorResponse) {
384
384
  return envRes.errorResponse;
385
385
  }
386
+ const isInternalAgentControlPlanePath = url.pathname.startsWith("/internal/agents/");
386
387
  // Build handler context
387
388
  const ctx = buildHandlerContext({
388
389
  projectDir: adapterRes.projectDir,
@@ -403,6 +404,7 @@ export function createVeryfrontHandler(projectDir, adapter, opts = { projectDir
403
404
  isLocalProject: adapterRes.isLocalProject,
404
405
  moduleServerUrl: opts.moduleServerUrl,
405
406
  environmentId: headers.environmentId,
407
+ skipEnrichedContext: isInternalAgentControlPlanePath,
406
408
  });
407
409
  // Fetch per-project env vars for remote projects
408
410
  let envVarsForRequest = {};
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "0.1.106";
1
+ export declare const VERSION = "0.1.108";
2
2
  export declare function normalizeVeryfrontVersion(version: string | undefined): string | undefined;
3
3
  export declare function resolveRuntimeVersion(options?: {
4
4
  veryfrontVersion?: string;
@@ -2,7 +2,7 @@ import denoConfig from "../../deno.js";
2
2
  import { getEnv } from "../platform/compat/process.js";
3
3
  // Keep in sync with deno.json version.
4
4
  // scripts/release.ts updates this constant during releases.
5
- export const VERSION = "0.1.106";
5
+ export const VERSION = "0.1.108";
6
6
  export function normalizeVeryfrontVersion(version) {
7
7
  if (!version)
8
8
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.106",
3
+ "version": "0.1.108",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.106",
3
+ "version": "0.1.108",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -366,7 +366,8 @@ export default {
366
366
  "rlm:audit": "deno run -A scripts/rlm-ts/apps/audit.ts",
367
367
  "start-split": "deno task generate && deno run --allow-all cli/main.ts serve --split",
368
368
  "start-split:binary": "deno task generate && deno run --allow-all cli/main.ts serve --split --binary",
369
- "sbom": "deno run --allow-read --allow-write scripts/build/generate-sbom.ts"
369
+ "sbom": "deno run --allow-read --allow-write scripts/build/generate-sbom.ts",
370
+ "audit": "deno run --allow-read --allow-run --allow-write scripts/security/audit-npm.ts"
370
371
  },
371
372
  "lint": {
372
373
  "include": [
@@ -56,13 +56,15 @@ interface HandlerContextOptions {
56
56
  moduleServerUrl: string | undefined;
57
57
  /** Environment ID for env var resolution (from proxy x-environment-id header) */
58
58
  environmentId: string | undefined;
59
+ /** Skip render-specific enriched context requirements for non-render control-plane routes */
60
+ skipEnrichedContext?: boolean;
59
61
  }
60
62
 
61
63
  /**
62
64
  * Build the HandlerContext for route handlers.
63
65
  */
64
66
  export function buildHandlerContext(opts: HandlerContextOptions): HandlerContext {
65
- const contentSourceId = computeContentSourceId(
67
+ const contentSourceId = opts.skipEnrichedContext ? undefined : computeContentSourceId(
66
68
  opts.isLocalProject,
67
69
  opts.resolvedEnvironment,
68
70
  opts.requestContext.branch,
@@ -70,7 +72,8 @@ export function buildHandlerContext(opts: HandlerContextOptions): HandlerContext
70
72
  );
71
73
 
72
74
  // Build enriched context if we have config and project slug
73
- const enrichedContext = opts.config && opts.projectSlug
75
+ const enrichedContext = !opts.skipEnrichedContext && opts.config && opts.projectSlug &&
76
+ contentSourceId
74
77
  ? buildEnrichedContext({
75
78
  projectId: opts.projectId ?? opts.projectSlug,
76
79
  projectSlug: opts.projectSlug,
@@ -551,6 +551,8 @@ export function createVeryfrontHandler(
551
551
  return envRes.errorResponse;
552
552
  }
553
553
 
554
+ const isInternalAgentControlPlanePath = url.pathname.startsWith("/internal/agents/");
555
+
554
556
  // Build handler context
555
557
  const ctx = buildHandlerContext({
556
558
  projectDir: adapterRes.projectDir,
@@ -571,6 +573,7 @@ export function createVeryfrontHandler(
571
573
  isLocalProject: adapterRes.isLocalProject,
572
574
  moduleServerUrl: opts.moduleServerUrl,
573
575
  environmentId: headers.environmentId,
576
+ skipEnrichedContext: isInternalAgentControlPlanePath,
574
577
  });
575
578
 
576
579
  // Fetch per-project env vars for remote projects
@@ -3,7 +3,7 @@ import { getEnv } from "../platform/compat/process.js";
3
3
 
4
4
  // Keep in sync with deno.json version.
5
5
  // scripts/release.ts updates this constant during releases.
6
- export const VERSION = "0.1.106";
6
+ export const VERSION = "0.1.108";
7
7
 
8
8
  export function normalizeVeryfrontVersion(version: string | undefined): string | undefined {
9
9
  if (!version) return undefined;