@hyperframes/gcp-cloud-run 0.9.59 → 0.9.63

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/dist/index.js CHANGED
@@ -863,7 +863,7 @@ async function deploySite(opts) {
863
863
  if (!statSync3(opts.projectDir).isDirectory()) {
864
864
  throw new Error(`[deploySite] projectDir is not a directory: ${opts.projectDir}`);
865
865
  }
866
- const files = listSiteFilesForUpload(opts.projectDir, opts.onNotice);
866
+ const files = listSiteFilesForUpload(opts.projectDir, opts.onNotice, opts.includeOutsideFiles);
867
867
  const siteId = opts.siteId ?? hashProjectDir(opts.projectDir, files);
868
868
  const key = `sites/${siteId}/project.tar.gz`;
869
869
  const projectGcsUri = formatGcsUri({ bucket: opts.bucketName, key });
@@ -984,6 +984,8 @@ async function renderToCloudRun(opts) {
984
984
  const site = opts.siteHandle ?? await deploySite({
985
985
  projectDir: opts.projectDir,
986
986
  bucketName: opts.bucketName,
987
+ onNotice: opts.onNotice,
988
+ includeOutsideFiles: opts.includeOutsideFiles,
987
989
  storage: opts.storage
988
990
  });
989
991
  const argument = {
@@ -26,6 +26,7 @@ export interface DeploySiteOptions {
26
26
  */
27
27
  siteId?: string;
28
28
  onNotice?: (message: string) => void;
29
+ includeOutsideFiles?: boolean;
29
30
  /** Injection seam for tests. Production callers leave unset. */
30
31
  storage?: Storage;
31
32
  }
package/dist/sdk/index.js CHANGED
@@ -70,7 +70,7 @@ async function deploySite(opts) {
70
70
  if (!statSync2(opts.projectDir).isDirectory()) {
71
71
  throw new Error(`[deploySite] projectDir is not a directory: ${opts.projectDir}`);
72
72
  }
73
- const files = listSiteFilesForUpload(opts.projectDir, opts.onNotice);
73
+ const files = listSiteFilesForUpload(opts.projectDir, opts.onNotice, opts.includeOutsideFiles);
74
74
  const siteId = opts.siteId ?? hashProjectDir(opts.projectDir, files);
75
75
  const key = `sites/${siteId}/project.tar.gz`;
76
76
  const projectGcsUri = formatGcsUri({ bucket: opts.bucketName, key });
@@ -202,6 +202,8 @@ async function renderToCloudRun(opts) {
202
202
  const site = opts.siteHandle ?? await deploySite({
203
203
  projectDir: opts.projectDir,
204
204
  bucketName: opts.bucketName,
205
+ onNotice: opts.onNotice,
206
+ includeOutsideFiles: opts.includeOutsideFiles,
205
207
  storage: opts.storage
206
208
  });
207
209
  const argument = {
@@ -48,6 +48,9 @@ export interface RenderToCloudRunOptions {
48
48
  projectDir?: string;
49
49
  /** Re-use an existing `deploySite` upload (skips tar+GCS upload). */
50
50
  siteHandle?: SiteHandle;
51
+ /** Passed to {@link deploySite} when this call uploads the project, with its left-out notices. */
52
+ includeOutsideFiles?: boolean;
53
+ onNotice?: (message: string) => void;
51
54
  /** Validated `SerializableDistributedRenderConfig` (no logger / abortSignal). */
52
55
  config: SerializableDistributedRenderConfig;
53
56
  /** GCS bucket from the Terraform output (`render_bucket_name`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/gcp-cloud-run",
3
- "version": "0.9.59",
3
+ "version": "0.9.63",
4
4
  "description": "Google Cloud Run + Workflows adapter for HyperFrames distributed rendering — request handler, client-side SDK, and Terraform module.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,7 +45,7 @@
45
45
  "hono": "^4.13.16",
46
46
  "puppeteer-core": "^25.8.0",
47
47
  "tar": "^7.5.22",
48
- "@hyperframes/producer": "^0.9.59"
48
+ "@hyperframes/producer": "^0.9.63"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/node": "^25.0.10",