@caelo-cms/provisioning 0.2.50 → 0.2.52
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/package.json +2 -2
- package/stacks/gcp/index.ts +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caelo-cms/provisioning",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.52",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"description": "Pulumi-driven provisioning for Caelo CMS — `bunx @caelo-cms/provisioning --provider <self-hosted|gcp|aws|azure>` brings up a TLS-served install with Postgres + storage + secrets manager + the admin + the API gateway.",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prepublishOnly": "tsc -b --force"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@caelo-cms/shared": "^0.2.
|
|
41
|
+
"@caelo-cms/shared": "^0.2.52",
|
|
42
42
|
"@clack/prompts": "1.3.0",
|
|
43
43
|
"@pulumi/aws": "^7",
|
|
44
44
|
"@pulumi/awsx": "^3",
|
package/stacks/gcp/index.ts
CHANGED
|
@@ -440,6 +440,14 @@ interface CloudRunArgs {
|
|
|
440
440
|
readonly minInstances: number;
|
|
441
441
|
readonly maxInstances: number;
|
|
442
442
|
readonly memory: string;
|
|
443
|
+
/**
|
|
444
|
+
* Per-request timeout. Cloud Run's default is 300s (5min), which is too
|
|
445
|
+
* short for the admin's SSE chat-stream — a multi-tool compose-page session
|
|
446
|
+
* regularly runs 5–15 min. Pass an explicit "<n>s" Pulumi-style duration
|
|
447
|
+
* string. Gateway stays on the default; visitor-facing endpoints don't
|
|
448
|
+
* legitimately need longer.
|
|
449
|
+
*/
|
|
450
|
+
readonly timeout?: string;
|
|
443
451
|
readonly extraEnv?: ReadonlyArray<{ name: string; value: pulumi.Input<string> }>;
|
|
444
452
|
}
|
|
445
453
|
|
|
@@ -468,6 +476,7 @@ function cloudRunService(args: CloudRunArgs): gcp.cloudrunv2.Service {
|
|
|
468
476
|
minInstanceCount: args.minInstances,
|
|
469
477
|
maxInstanceCount: args.maxInstances,
|
|
470
478
|
},
|
|
479
|
+
timeout: args.timeout,
|
|
471
480
|
containers: [
|
|
472
481
|
{
|
|
473
482
|
image: imageTag(args.serviceName),
|
|
@@ -517,6 +526,13 @@ const adminSvc = cloudRunService({
|
|
|
517
526
|
minInstances: adminMinInstances,
|
|
518
527
|
maxInstances: adminMaxInstances,
|
|
519
528
|
memory: "1Gi",
|
|
529
|
+
// 1 hour — covers the longest realistic SSE chat session (multi-tool
|
|
530
|
+
// compose-page runs that orchestrate 10+ tool calls). Cloud Run's
|
|
531
|
+
// 300s default truncated mid-stream and surfaced to operators as
|
|
532
|
+
// "request canceled" in the network panel + "Truncated response body"
|
|
533
|
+
// in Cloud Run logs. 3600s is the platform max; no cost penalty for
|
|
534
|
+
// unused timeout (Cloud Run bills running time, not allocated time).
|
|
535
|
+
timeout: "3600s",
|
|
520
536
|
// Admin's second pool: admin_role on cms_public for cross-DB reads
|
|
521
537
|
// + DDL + migrations. NOT public_role (write-limited).
|
|
522
538
|
extraEnv: [{ name: "PUBLIC_ADMIN_DATABASE_URL", value: publicAdminDatabaseUrl }],
|