@intentius/chant-lexicon-gcp 0.80.0 → 0.81.0
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/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/dist/spec/fetch.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/spec/fetch.ts +11 -1
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "b304d4fa65c9605c5b290507994c8f82b02b7ad36bfd7d1f13fe8acf06b69f36",
|
|
5
5
|
"meta.json": "475f10909854d059a2e2d4fb541c058803422e38b9c64bd4d6858c0623eedb8c",
|
|
6
6
|
"types/index.d.ts": "5433b54c04b57d6fda8f3d81ef92ed0aca87f7e8e5dd3ea92d8de6e62a3ccfab",
|
|
7
7
|
"rules/hardcoded-project.ts": "228631d3159e1ffcce2359c66073d4ae59bb0285f378e46e446f416aec50481c",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"skills/chant-gcp-patterns.md": "4c6809fc7c37fa1879379ad4c0e2d114dec9497bc6eb9d1bca4e79fddea4f509",
|
|
41
41
|
"skills/chant-gcp-gke.md": "be277019da9a722c851e47cd2dfb9c9536668948c3535fb20db7697e934c4e2b"
|
|
42
42
|
},
|
|
43
|
-
"composite": "
|
|
43
|
+
"composite": "46b6d3aa8b322b2a9cf8e1d8d1718d2c2f5907f200b70d6c122960a60c69e375"
|
|
44
44
|
}
|
package/dist/manifest.json
CHANGED
package/dist/spec/fetch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/spec/fetch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/spec/fetch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH;;GAEG;AACH,eAAO,MAAM,WAAW,aAAa,CAAC;AActC;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,KAAK,UAAQ,EACb,OAAO,GAAE,MAAoB,GAC5B,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAW9B;AAwED,wBAAgB,YAAY,CAAC,OAAO,GAAE,MAAoB,GAAG,MAAM,CAElE;AAED,wBAAgB,UAAU,CAAC,OAAO,GAAE,MAAoB,GAAG,IAAI,CAE9D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-gcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"description": "Google Cloud lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"typescript": "^5.9.3"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@intentius/chant": "^0.
|
|
79
|
+
"@intentius/chant": "^0.81.0",
|
|
80
80
|
"typescript": "^5.9.3"
|
|
81
81
|
}
|
|
82
82
|
}
|
package/src/spec/fetch.ts
CHANGED
|
@@ -8,6 +8,11 @@ import { homedir } from "os";
|
|
|
8
8
|
import { join } from "path";
|
|
9
9
|
import { fetchWithCache, clearCacheFile } from "@intentius/chant/codegen/fetch";
|
|
10
10
|
|
|
11
|
+
/** Per-attempt download timeout for a multi-megabyte archive. */
|
|
12
|
+
const ARCHIVE_ATTEMPT_TIMEOUT_MS = 120_000;
|
|
13
|
+
/** A tagged archive never changes, so a cached copy stays good for a week. */
|
|
14
|
+
const ARCHIVE_CACHE_TTL_MS = 7 * 24 * 60 * 60 * 1000;
|
|
15
|
+
|
|
11
16
|
/**
|
|
12
17
|
* Pinned Config Connector version for reproducible codegen.
|
|
13
18
|
*/
|
|
@@ -38,7 +43,12 @@ export async function fetchCRDBundle(
|
|
|
38
43
|
const url = bundleUrl(version);
|
|
39
44
|
const cache = cacheFile(version);
|
|
40
45
|
|
|
41
|
-
|
|
46
|
+
// The archive is a whole source tree at a pinned tag: tens of megabytes,
|
|
47
|
+
// immutable, so it gets a long attempt and a week of cache.
|
|
48
|
+
const tarData = await fetchWithCache(
|
|
49
|
+
{ url, cacheFile: cache, attemptTimeoutMs: ARCHIVE_ATTEMPT_TIMEOUT_MS, cacheTtlMs: ARCHIVE_CACHE_TTL_MS },
|
|
50
|
+
force,
|
|
51
|
+
);
|
|
42
52
|
return extractCRDs(tarData);
|
|
43
53
|
}
|
|
44
54
|
|