@intentius/terragucci 0.4.46 → 0.4.47
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/audit.schema.json +2 -2
- package/dist/terragucci.mjs +937 -900
- package/dist/terragucci.mjs.map +4 -4
- package/dist/terragucci.schema.json +42 -0
- package/dist/types.d.ts +22 -0
- package/package.json +6 -6
- package/dist/registry-edge-token-stores +0 -1
|
@@ -430,6 +430,27 @@
|
|
|
430
430
|
],
|
|
431
431
|
"description": "The control repo to tell after the default branch's apply succeeds; it runs this repo's dependents."
|
|
432
432
|
},
|
|
433
|
+
"templates": {
|
|
434
|
+
"type": "object",
|
|
435
|
+
"properties": {
|
|
436
|
+
"registry": {
|
|
437
|
+
"type": "string",
|
|
438
|
+
"pattern": "^https?://[^\\s/]+"
|
|
439
|
+
},
|
|
440
|
+
"apps": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$))(?!.*//)(?!.*/$).*\\{name\\}"
|
|
443
|
+
},
|
|
444
|
+
"require": {
|
|
445
|
+
"enum": [
|
|
446
|
+
"signed",
|
|
447
|
+
"any"
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"additionalProperties": false,
|
|
452
|
+
"description": "Apps from templates: the registry whose catalog lists them, the path of a requested app's root, and the attestation a version needs."
|
|
453
|
+
},
|
|
433
454
|
"gitlab": {
|
|
434
455
|
"type": "object",
|
|
435
456
|
"properties": {
|
|
@@ -2354,6 +2375,27 @@
|
|
|
2354
2375
|
],
|
|
2355
2376
|
"description": "The control repo to tell after the default branch's apply succeeds; it runs this repo's dependents."
|
|
2356
2377
|
},
|
|
2378
|
+
"templates": {
|
|
2379
|
+
"type": "object",
|
|
2380
|
+
"properties": {
|
|
2381
|
+
"registry": {
|
|
2382
|
+
"type": "string",
|
|
2383
|
+
"pattern": "^https?://[^\\s/]+"
|
|
2384
|
+
},
|
|
2385
|
+
"apps": {
|
|
2386
|
+
"type": "string",
|
|
2387
|
+
"pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$))(?!.*//)(?!.*/$).*\\{name\\}"
|
|
2388
|
+
},
|
|
2389
|
+
"require": {
|
|
2390
|
+
"enum": [
|
|
2391
|
+
"signed",
|
|
2392
|
+
"any"
|
|
2393
|
+
]
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
"additionalProperties": false,
|
|
2397
|
+
"description": "Apps from templates: the registry whose catalog lists them, the path of a requested app's root, and the attestation a version needs."
|
|
2398
|
+
},
|
|
2357
2399
|
"gitlab": {
|
|
2358
2400
|
"type": "object",
|
|
2359
2401
|
"properties": {
|
package/dist/types.d.ts
CHANGED
|
@@ -419,6 +419,22 @@ export interface ControlSettings {
|
|
|
419
419
|
/** The branch of the control repo a GitLab pipeline or a Forgejo workflow runs on. Default `main`; GitHub's dispatch always runs the default branch. */
|
|
420
420
|
ref?: string;
|
|
421
421
|
}
|
|
422
|
+
/** `templates`' settings. */
|
|
423
|
+
export declare const TEMPLATES_KEYS: readonly ["registry", "apps", "require"];
|
|
424
|
+
/** `templates.require`: `signed` takes a signed or verified version, `any` an unsigned one too. */
|
|
425
|
+
export declare const TEMPLATES_REQUIRE: readonly ["signed", "any"];
|
|
426
|
+
/** Where a requested app's root goes by default. */
|
|
427
|
+
export declare const TEMPLATES_APPS = "apps/{name}";
|
|
428
|
+
export interface TemplatesSettings {
|
|
429
|
+
/** The registry URL whose release catalog lists the templates. Default `modules.registry.url`. */
|
|
430
|
+
registry?: string;
|
|
431
|
+
/** The path of a requested app's root, with `{name}` in it. Default `apps/{name}`. */
|
|
432
|
+
apps?: string;
|
|
433
|
+
/** The lowest attestation a template version needs. Default `signed`. */
|
|
434
|
+
require?: (typeof TEMPLATES_REQUIRE)[number];
|
|
435
|
+
}
|
|
436
|
+
/** The problems of a `templates` value. */
|
|
437
|
+
export declare function templatesProblems(v: unknown, where: string): string[];
|
|
422
438
|
export declare const CONTROL_KEYS: readonly ["repo", "op", "forge", "member", "token_env", "read_token_env", "ref"];
|
|
423
439
|
/** The token a member holds for the dispatch when `control.token_env` is unset. */
|
|
424
440
|
export declare const CONTROL_TOKEN_ENV = "TERRAGUCCI_CONTROL_TOKEN";
|
|
@@ -558,6 +574,12 @@ export interface ProjectSettings {
|
|
|
558
574
|
* control repo. `respond.rollout: off` leaves the job out.
|
|
559
575
|
*/
|
|
560
576
|
rollouts?: string | false;
|
|
577
|
+
/**
|
|
578
|
+
* Apps from templates (`terragucci templates`, `terragucci request`): the
|
|
579
|
+
* registry whose catalog lists the templates, where a requested app's root
|
|
580
|
+
* goes, and the lowest attestation a template version needs.
|
|
581
|
+
*/
|
|
582
|
+
templates?: TemplatesSettings;
|
|
561
583
|
/**
|
|
562
584
|
* The control repo to tell once the default branch's apply succeeded (ControlSettings). The pipeline gets a
|
|
563
585
|
* job that sends the control repo a dispatch, and the control repo runs this project's dependents.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/terragucci",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.47",
|
|
4
4
|
"description": "The whole Terraform lifecycle, handled: one config file, generated pipelines for GitHub, GitLab and Forgejo.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build": "node ../../scripts/build-cli.mjs"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@intentius/chant": "0.124.
|
|
39
|
+
"@intentius/chant": "0.124.57"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@intentius/tsad-reference": "2.x",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@cdktn/hcl2json": "0.24.0",
|
|
55
|
-
"@intentius/chant-lexicon-forgejo": "0.124.
|
|
56
|
-
"@intentius/chant-lexicon-github": "0.124.
|
|
57
|
-
"@intentius/chant-lexicon-gitlab": "0.124.
|
|
58
|
-
"@intentius/chant-lexicon-terraform": "0.124.
|
|
55
|
+
"@intentius/chant-lexicon-forgejo": "0.124.57",
|
|
56
|
+
"@intentius/chant-lexicon-github": "0.124.57",
|
|
57
|
+
"@intentius/chant-lexicon-gitlab": "0.124.57",
|
|
58
|
+
"@intentius/chant-lexicon-terraform": "0.124.57",
|
|
59
59
|
"@intentius/tsad-reference": "2.1.0",
|
|
60
60
|
"@modelcontextprotocol/sdk": "1.30.1"
|
|
61
61
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
chant#4590
|