@intentius/chant-lexicon-gitlab 0.7.0 → 0.8.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/codegen/docs-cli.d.ts +2 -0
- package/dist/codegen/docs-cli.d.ts.map +1 -0
- package/dist/codegen/docs.d.ts +12 -0
- package/dist/codegen/docs.d.ts.map +1 -0
- package/dist/codegen/fetch.d.ts +40 -0
- package/dist/codegen/fetch.d.ts.map +1 -0
- package/dist/codegen/generate-cli.d.ts +6 -0
- package/dist/codegen/generate-cli.d.ts.map +1 -0
- package/dist/codegen/generate-lexicon.d.ts +19 -0
- package/dist/codegen/generate-lexicon.d.ts.map +1 -0
- package/dist/codegen/generate-typescript.d.ts +11 -0
- package/dist/codegen/generate-typescript.d.ts.map +1 -0
- package/dist/codegen/generate.d.ts +19 -0
- package/dist/codegen/generate.d.ts.map +1 -0
- package/dist/codegen/naming.d.ts +15 -0
- package/dist/codegen/naming.d.ts.map +1 -0
- package/dist/codegen/package.d.ts +11 -0
- package/dist/codegen/package.d.ts.map +1 -0
- package/dist/codegen/parse.d.ts +60 -0
- package/dist/codegen/parse.d.ts.map +1 -0
- package/dist/codegen/patches.d.ts +31 -0
- package/dist/codegen/patches.d.ts.map +1 -0
- package/dist/codegen/typecheck.d.ts +5 -0
- package/dist/codegen/typecheck.d.ts.map +1 -0
- package/dist/composites/docker-build.d.ts +29 -0
- package/dist/composites/docker-build.d.ts.map +1 -0
- package/dist/composites/index.d.ts +11 -0
- package/dist/composites/index.d.ts.map +1 -0
- package/dist/composites/mr-plan-report.d.ts +43 -0
- package/dist/composites/mr-plan-report.d.ts.map +1 -0
- package/dist/composites/node-pipeline.d.ts +55 -0
- package/dist/composites/node-pipeline.d.ts.map +1 -0
- package/dist/composites/python-pipeline.d.ts +21 -0
- package/dist/composites/python-pipeline.d.ts.map +1 -0
- package/dist/composites/review-app.d.ts +24 -0
- package/dist/composites/review-app.d.ts.map +1 -0
- package/dist/coverage.d.ts +18 -0
- package/dist/coverage.d.ts.map +1 -0
- package/dist/generated/index.d.ts +22 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/runtime.d.ts +5 -0
- package/dist/generated/runtime.d.ts.map +1 -0
- package/dist/import/generator.d.ts +19 -0
- package/dist/import/generator.d.ts.map +1 -0
- package/dist/import/parser.d.ts +14 -0
- package/dist/import/parser.d.ts.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/integrity.json +12 -12
- package/dist/intrinsics.d.ts +30 -0
- package/dist/intrinsics.d.ts.map +1 -0
- package/dist/lint/post-synth/index.d.ts +3 -0
- package/dist/lint/post-synth/index.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl010.d.ts +9 -0
- package/dist/lint/post-synth/wgl010.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl011.d.ts +13 -0
- package/dist/lint/post-synth/wgl011.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl012.d.ts +13 -0
- package/dist/lint/post-synth/wgl012.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl013.d.ts +16 -0
- package/dist/lint/post-synth/wgl013.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl014.d.ts +13 -0
- package/dist/lint/post-synth/wgl014.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl015.d.ts +12 -0
- package/dist/lint/post-synth/wgl015.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl016.d.ts +10 -0
- package/dist/lint/post-synth/wgl016.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl017.d.ts +10 -0
- package/dist/lint/post-synth/wgl017.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl018.d.ts +9 -0
- package/dist/lint/post-synth/wgl018.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl019.d.ts +9 -0
- package/dist/lint/post-synth/wgl019.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl020.d.ts +11 -0
- package/dist/lint/post-synth/wgl020.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl021.d.ts +10 -0
- package/dist/lint/post-synth/wgl021.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl022.d.ts +10 -0
- package/dist/lint/post-synth/wgl022.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl023.d.ts +10 -0
- package/dist/lint/post-synth/wgl023.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl024.d.ts +10 -0
- package/dist/lint/post-synth/wgl024.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl025.d.ts +10 -0
- package/dist/lint/post-synth/wgl025.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl026.d.ts +10 -0
- package/dist/lint/post-synth/wgl026.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl027.d.ts +9 -0
- package/dist/lint/post-synth/wgl027.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl028.d.ts +11 -0
- package/dist/lint/post-synth/wgl028.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl029.d.ts +11 -0
- package/dist/lint/post-synth/wgl029.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl030.d.ts +11 -0
- package/dist/lint/post-synth/wgl030.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl031.d.ts +11 -0
- package/dist/lint/post-synth/wgl031.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl032.d.ts +12 -0
- package/dist/lint/post-synth/wgl032.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl033.d.ts +11 -0
- package/dist/lint/post-synth/wgl033.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl034.d.ts +12 -0
- package/dist/lint/post-synth/wgl034.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl035.d.ts +12 -0
- package/dist/lint/post-synth/wgl035.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl036.d.ts +14 -0
- package/dist/lint/post-synth/wgl036.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl037.d.ts +12 -0
- package/dist/lint/post-synth/wgl037.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl038.d.ts +14 -0
- package/dist/lint/post-synth/wgl038.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl039.d.ts +11 -0
- package/dist/lint/post-synth/wgl039.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl040.d.ts +11 -0
- package/dist/lint/post-synth/wgl040.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl041.d.ts +13 -0
- package/dist/lint/post-synth/wgl041.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl042.d.ts +12 -0
- package/dist/lint/post-synth/wgl042.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl043.d.ts +12 -0
- package/dist/lint/post-synth/wgl043.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl044.d.ts +11 -0
- package/dist/lint/post-synth/wgl044.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl045.d.ts +12 -0
- package/dist/lint/post-synth/wgl045.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl046.d.ts +12 -0
- package/dist/lint/post-synth/wgl046.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl047.d.ts +11 -0
- package/dist/lint/post-synth/wgl047.d.ts.map +1 -0
- package/dist/lint/post-synth/wgl048.d.ts +11 -0
- package/dist/lint/post-synth/wgl048.d.ts.map +1 -0
- package/dist/lint/post-synth/yaml-helpers.d.ts +107 -0
- package/dist/lint/post-synth/yaml-helpers.d.ts.map +1 -0
- package/dist/lint/rules/artifact-no-expiry.d.ts +9 -0
- package/dist/lint/rules/artifact-no-expiry.d.ts.map +1 -0
- package/dist/lint/rules/data/known-include-sources.d.ts +14 -0
- package/dist/lint/rules/data/known-include-sources.d.ts.map +1 -0
- package/dist/lint/rules/data/untrusted-variables.d.ts +14 -0
- package/dist/lint/rules/data/untrusted-variables.d.ts.map +1 -0
- package/dist/lint/rules/deprecated-only-except.d.ts +10 -0
- package/dist/lint/rules/deprecated-only-except.d.ts.map +1 -0
- package/dist/lint/rules/index.d.ts +8 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/missing-script.d.ts +9 -0
- package/dist/lint/rules/missing-script.d.ts.map +1 -0
- package/dist/lint/rules/missing-stage.d.ts +9 -0
- package/dist/lint/rules/missing-stage.d.ts.map +1 -0
- package/dist/lsp/completions.d.ts +6 -0
- package/dist/lsp/completions.d.ts.map +1 -0
- package/dist/lsp/hover.d.ts +6 -0
- package/dist/lsp/hover.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/mcp/context-tools.d.ts +20 -0
- package/dist/mcp/context-tools.d.ts.map +1 -0
- package/dist/migrate/from-github/actions/index.d.ts +13 -0
- package/dist/migrate/from-github/actions/index.d.ts.map +1 -0
- package/dist/migrate/from-github/actions/registry.d.ts +63 -0
- package/dist/migrate/from-github/actions/registry.d.ts.map +1 -0
- package/dist/migrate/from-github/actions/tier-1.d.ts +20 -0
- package/dist/migrate/from-github/actions/tier-1.d.ts.map +1 -0
- package/dist/migrate/from-github/actions/tier-2.d.ts +9 -0
- package/dist/migrate/from-github/actions/tier-2.d.ts.map +1 -0
- package/dist/migrate/from-github/actions/tier-3.d.ts +9 -0
- package/dist/migrate/from-github/actions/tier-3.d.ts.map +1 -0
- package/dist/migrate/from-github/composites/patterns.d.ts +27 -0
- package/dist/migrate/from-github/composites/patterns.d.ts.map +1 -0
- package/dist/migrate/from-github/composites/rewriter.d.ts +14 -0
- package/dist/migrate/from-github/composites/rewriter.d.ts.map +1 -0
- package/dist/migrate/from-github/diagnostics.d.ts +17 -0
- package/dist/migrate/from-github/diagnostics.d.ts.map +1 -0
- package/dist/migrate/from-github/emit-yaml.d.ts +16 -0
- package/dist/migrate/from-github/emit-yaml.d.ts.map +1 -0
- package/dist/migrate/from-github/expressions.d.ts +65 -0
- package/dist/migrate/from-github/expressions.d.ts.map +1 -0
- package/dist/migrate/from-github/index.d.ts +61 -0
- package/dist/migrate/from-github/index.d.ts.map +1 -0
- package/dist/migrate/from-github/provenance.d.ts +68 -0
- package/dist/migrate/from-github/provenance.d.ts.map +1 -0
- package/dist/migrate/from-github/rules.d.ts +12 -0
- package/dist/migrate/from-github/rules.d.ts.map +1 -0
- package/dist/migrate/from-github/security.d.ts +35 -0
- package/dist/migrate/from-github/security.d.ts.map +1 -0
- package/dist/migrate/from-github/stages.d.ts +34 -0
- package/dist/migrate/from-github/stages.d.ts.map +1 -0
- package/dist/migrate/from-github/transformer.d.ts +26 -0
- package/dist/migrate/from-github/transformer.d.ts.map +1 -0
- package/dist/package-cli.d.ts +3 -0
- package/dist/package-cli.d.ts.map +1 -0
- package/dist/plugin.d.ts +9 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/rules/wgl011.ts +2 -2
- package/dist/rules/wgl012.ts +2 -2
- package/dist/rules/wgl018.ts +2 -2
- package/dist/rules/wgl019.ts +2 -2
- package/dist/rules/wgl022.ts +2 -2
- package/dist/rules/wgl023.ts +2 -2
- package/dist/rules/wgl024.ts +2 -2
- package/dist/rules/wgl025.ts +2 -2
- package/dist/rules/wgl026.ts +2 -2
- package/dist/rules/wgl027.ts +2 -2
- package/dist/serializer.d.ts +14 -0
- package/dist/serializer.d.ts.map +1 -0
- package/dist/testdata/create-fixture.d.ts +7 -0
- package/dist/testdata/create-fixture.d.ts.map +1 -0
- package/dist/testdata/load-fixtures.d.ts +12 -0
- package/dist/testdata/load-fixtures.d.ts.map +1 -0
- package/dist/validate-cli.d.ts +3 -0
- package/dist/validate-cli.d.ts.map +1 -0
- package/dist/validate.d.ts +17 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/variables.d.ts +31 -0
- package/dist/variables.d.ts.map +1 -0
- package/package.json +20 -6
- package/src/codegen/parse.ts +2 -2
- package/src/lint/post-synth/index.ts +83 -0
- package/src/lint/post-synth/wgl011.ts +2 -2
- package/src/lint/post-synth/wgl012.ts +2 -2
- package/src/lint/post-synth/wgl018.ts +2 -2
- package/src/lint/post-synth/wgl019.ts +2 -2
- package/src/lint/post-synth/wgl022.ts +2 -2
- package/src/lint/post-synth/wgl023.ts +2 -2
- package/src/lint/post-synth/wgl024.ts +2 -2
- package/src/lint/post-synth/wgl025.ts +2 -2
- package/src/lint/post-synth/wgl026.ts +2 -2
- package/src/lint/post-synth/wgl027.ts +2 -2
- package/src/mcp/context-tools.ts +3 -5
- package/src/plugin.ts +2 -3
- package/src/serializer.ts +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-cli.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-cli.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Documentation generation for GitLab CI lexicon.
|
|
3
|
+
*
|
|
4
|
+
* Generates Starlight MDX pages for CI entities using the core docs pipeline.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Generate documentation for the GitLab CI lexicon.
|
|
8
|
+
*/
|
|
9
|
+
export declare function generateDocs(opts?: {
|
|
10
|
+
verbose?: boolean;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/codegen/docs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAiFH;;GAEG;AACH,wBAAsB,YAAY,CAAC,IAAI,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA41B9E"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitLab CI schema fetching — downloads the CI JSON Schema
|
|
3
|
+
* and caches it locally.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Pinned schema version — a GitLab release tag that produces a known-good
|
|
7
|
+
* schema. Override at runtime with `--schema-version <tag>` in generate-cli
|
|
8
|
+
* or by setting `schemaVersion` in the generate options.
|
|
9
|
+
*
|
|
10
|
+
* Using a tag (e.g. "v17.8.1-ee") rather than `master` ensures reproducible
|
|
11
|
+
* codegen across environments and CI runs.
|
|
12
|
+
*/
|
|
13
|
+
export declare const GITLAB_SCHEMA_VERSION = "v17.8.1-ee";
|
|
14
|
+
/**
|
|
15
|
+
* Get the cache file path for the CI schema.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCachePath(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Fetch the GitLab CI JSON Schema, returning the raw JSON buffer.
|
|
20
|
+
* Uses local file caching with 24-hour TTL.
|
|
21
|
+
*
|
|
22
|
+
* @param force Bypass cache and download fresh.
|
|
23
|
+
* @param version GitLab ref (tag, branch, or SHA) to fetch from.
|
|
24
|
+
* Defaults to {@link GITLAB_SCHEMA_VERSION}.
|
|
25
|
+
*/
|
|
26
|
+
export declare function fetchCISchema(force?: boolean, version?: string): Promise<Buffer>;
|
|
27
|
+
/**
|
|
28
|
+
* Fetch the CI schema and return it as a Map<typeName, Buffer>
|
|
29
|
+
* compatible with the generatePipeline fetchSchemas callback.
|
|
30
|
+
*
|
|
31
|
+
* The CI schema is a single document, so we return a single entry
|
|
32
|
+
* keyed by "GitLab::CI::Pipeline" — the parse step will split it
|
|
33
|
+
* into multiple entities.
|
|
34
|
+
*/
|
|
35
|
+
export declare function fetchSchemas(force?: boolean, version?: string): Promise<Map<string, Buffer>>;
|
|
36
|
+
/**
|
|
37
|
+
* Clear the cached schema file.
|
|
38
|
+
*/
|
|
39
|
+
export declare function clearCache(): void;
|
|
40
|
+
//# sourceMappingURL=fetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/codegen/fetch.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,eAAe,CAAC;AASlD;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAStF;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAKlG;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,IAAI,CAEjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-cli.d.ts","sourceRoot":"","sources":["../../src/codegen/generate-cli.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lexicon JSON generator — produces lexicon-gitlab.json with metadata
|
|
3
|
+
* for all GitLab CI entities.
|
|
4
|
+
*/
|
|
5
|
+
import type { PropertyConstraints } from "@intentius/chant/codegen/json-schema";
|
|
6
|
+
import type { GitLabParseResult } from "./parse.js";
|
|
7
|
+
import type { NamingStrategy } from "./naming.js";
|
|
8
|
+
export interface LexiconEntry {
|
|
9
|
+
resourceType: string;
|
|
10
|
+
kind: "resource" | "property";
|
|
11
|
+
lexicon: "gitlab";
|
|
12
|
+
deprecatedProperties?: string[];
|
|
13
|
+
constraints?: Record<string, PropertyConstraints>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Generate the lexicon-gitlab.json content.
|
|
17
|
+
*/
|
|
18
|
+
export declare function generateLexiconJSON(results: GitLabParseResult[], naming: NamingStrategy): string;
|
|
19
|
+
//# sourceMappingURL=generate-lexicon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-lexicon.d.ts","sourceRoot":"","sources":["../../src/codegen/generate-lexicon.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAO/C,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IAC9B,OAAO,EAAE,QAAQ,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CACnD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,iBAAiB,EAAE,EAC5B,MAAM,EAAE,cAAc,GACrB,MAAM,CA4BR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript declaration file generator — produces index.d.ts with all
|
|
3
|
+
* GitLab CI entity classes.
|
|
4
|
+
*/
|
|
5
|
+
import type { GitLabParseResult } from "./parse.js";
|
|
6
|
+
import type { NamingStrategy } from "./naming.js";
|
|
7
|
+
/**
|
|
8
|
+
* Generate the complete .d.ts file content.
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateTypeScriptDeclarations(results: GitLabParseResult[], naming: NamingStrategy): string;
|
|
11
|
+
//# sourceMappingURL=generate-typescript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-typescript.d.ts","sourceRoot":"","sources":["../../src/codegen/generate-typescript.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAsB/C;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,iBAAiB,EAAE,EAC5B,MAAM,EAAE,cAAc,GACrB,MAAM,CA0ER"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitLab CI generation pipeline — uses core generatePipeline
|
|
3
|
+
* with GitLab-specific fetch, parse, naming, and generation callbacks.
|
|
4
|
+
*/
|
|
5
|
+
import { type GenerateOptions, type GenerateResult } from "@intentius/chant/codegen/generate";
|
|
6
|
+
export type { GenerateResult };
|
|
7
|
+
export interface GitLabGenerateOptions extends GenerateOptions {
|
|
8
|
+
/** GitLab ref (tag, branch, or SHA) to fetch the schema from. */
|
|
9
|
+
schemaVersion?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Run the full GitLab generation pipeline.
|
|
13
|
+
*/
|
|
14
|
+
export declare function generate(opts?: GitLabGenerateOptions): Promise<GenerateResult>;
|
|
15
|
+
/**
|
|
16
|
+
* Write generated artifacts to disk.
|
|
17
|
+
*/
|
|
18
|
+
export declare function writeGeneratedFiles(result: GenerateResult, baseDir: string): void;
|
|
19
|
+
//# sourceMappingURL=generate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/codegen/generate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EAEpB,MAAM,mCAAmC,CAAC;AAa3C,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAC,IAAI,GAAE,qBAA0B,GAAG,OAAO,CAAC,cAAc,CAAC,CA+CxF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAUjF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitLab CI naming strategy — simpler than AWS since CI entities
|
|
3
|
+
* use a flat GitLab::CI:: namespace with few collisions.
|
|
4
|
+
*/
|
|
5
|
+
import { NamingStrategy as CoreNamingStrategy } from "@intentius/chant/codegen/naming";
|
|
6
|
+
import { type GitLabParseResult } from "./parse.js";
|
|
7
|
+
export { propertyTypeName, extractDefName } from "@intentius/chant/codegen/naming";
|
|
8
|
+
/**
|
|
9
|
+
* GitLab-specific naming strategy.
|
|
10
|
+
* Extends core NamingStrategy with GitLab naming config.
|
|
11
|
+
*/
|
|
12
|
+
export declare class NamingStrategy extends CoreNamingStrategy {
|
|
13
|
+
constructor(results: GitLabParseResult[]);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=naming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/codegen/naming.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,cAAc,IAAI,kBAAkB,EAGrC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAsC,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAErF,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AA8BnF;;;GAGG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;gBACxC,OAAO,EAAE,iBAAiB,EAAE;CAOzC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitLab lexicon packaging — delegates to core packagePipeline
|
|
3
|
+
* with GitLab-specific manifest building and skill collection.
|
|
4
|
+
*/
|
|
5
|
+
import { type PackageOptions, type PackageResult } from "@intentius/chant/codegen/package";
|
|
6
|
+
export type { PackageOptions, PackageResult };
|
|
7
|
+
/**
|
|
8
|
+
* Package the GitLab lexicon into a distributable BundleSpec.
|
|
9
|
+
*/
|
|
10
|
+
export declare function packageLexicon(opts?: PackageOptions): Promise<PackageResult>;
|
|
11
|
+
//# sourceMappingURL=package.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../../src/codegen/package.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,kCAAkC,CAAC;AAG1C,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC;AAI9C;;GAEG;AACH,wBAAsB,cAAc,CAAC,IAAI,GAAE,cAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CAqCtF"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitLab CI JSON Schema parser.
|
|
3
|
+
*
|
|
4
|
+
* Parses the single CI schema into multiple entity results — one per CI
|
|
5
|
+
* entity (Job, Pipeline, Artifacts, Cache, etc.). The schema is a single
|
|
6
|
+
* document unlike CloudFormation which has one schema per resource type.
|
|
7
|
+
*/
|
|
8
|
+
import type { PropertyConstraints } from "@intentius/chant/codegen/json-schema";
|
|
9
|
+
import { constraintsIsEmpty as coreConstraintsIsEmpty } from "@intentius/chant/codegen/json-schema";
|
|
10
|
+
export type { PropertyConstraints };
|
|
11
|
+
export { coreConstraintsIsEmpty as constraintsIsEmpty };
|
|
12
|
+
export interface ParsedProperty {
|
|
13
|
+
name: string;
|
|
14
|
+
tsType: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
description?: string;
|
|
17
|
+
enum?: string[];
|
|
18
|
+
constraints: PropertyConstraints;
|
|
19
|
+
}
|
|
20
|
+
export interface ParsedPropertyType {
|
|
21
|
+
name: string;
|
|
22
|
+
/** The definition name in the original schema */
|
|
23
|
+
defType: string;
|
|
24
|
+
properties: ParsedProperty[];
|
|
25
|
+
}
|
|
26
|
+
export interface ParsedEnum {
|
|
27
|
+
name: string;
|
|
28
|
+
values: string[];
|
|
29
|
+
}
|
|
30
|
+
export interface ParsedResource {
|
|
31
|
+
typeName: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
properties: ParsedProperty[];
|
|
34
|
+
attributes: Array<{
|
|
35
|
+
name: string;
|
|
36
|
+
tsType: string;
|
|
37
|
+
}>;
|
|
38
|
+
deprecatedProperties: string[];
|
|
39
|
+
}
|
|
40
|
+
export interface GitLabParseResult {
|
|
41
|
+
resource: ParsedResource;
|
|
42
|
+
propertyTypes: ParsedPropertyType[];
|
|
43
|
+
enums: ParsedEnum[];
|
|
44
|
+
/** Whether this entity is a "property" type (nested inside resources) */
|
|
45
|
+
isProperty?: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Parse the GitLab CI JSON Schema into multiple entity results.
|
|
49
|
+
* Returns one result per CI entity with its properties and nested types.
|
|
50
|
+
*/
|
|
51
|
+
export declare function parseCISchema(data: string | Buffer): GitLabParseResult[];
|
|
52
|
+
/**
|
|
53
|
+
* Extract short name: "GitLab::CI::Job" → "Job"
|
|
54
|
+
*/
|
|
55
|
+
export declare function gitlabShortName(typeName: string): string;
|
|
56
|
+
/**
|
|
57
|
+
* Extract service name: "GitLab::CI::Job" → "CI"
|
|
58
|
+
*/
|
|
59
|
+
export declare function gitlabServiceName(typeName: string): string;
|
|
60
|
+
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/codegen/parse.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAEL,kBAAkB,IAAI,sBAAsB,EAI7C,MAAM,sCAAsC,CAAC;AAI9C,YAAY,EAAE,mBAAmB,EAAE,CAAC;AACpC,OAAO,EAAE,sBAAsB,IAAI,kBAAkB,EAAE,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,mBAAmB,CAAC;CAClC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,UAAU,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpD,oBAAoB,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,cAAc,CAAC;IACzB,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AA+FD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,iBAAiB,EAAE,CAoBxE;AAkcD;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGxD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG1D"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schema augmentation patches for GitLab CI JSON Schema.
|
|
3
|
+
*
|
|
4
|
+
* The official GitLab CI schema sometimes has gaps, missing properties,
|
|
5
|
+
* or incorrect types. Patches are applied after fetch but before parse
|
|
6
|
+
* to fix these issues.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* A targeted fix for a schema definition.
|
|
10
|
+
*/
|
|
11
|
+
export interface SchemaPatch {
|
|
12
|
+
/** Human-readable description of what this patch fixes */
|
|
13
|
+
description: string;
|
|
14
|
+
/** JSON path to the definition to patch (e.g. "definitions.job_template") */
|
|
15
|
+
path: string;
|
|
16
|
+
/** Function that applies the patch to the definition */
|
|
17
|
+
apply(def: Record<string, unknown>): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Registry of known schema patches.
|
|
21
|
+
*/
|
|
22
|
+
export declare const schemaPatches: SchemaPatch[];
|
|
23
|
+
/**
|
|
24
|
+
* Apply all registered patches to a parsed schema.
|
|
25
|
+
* Modifies the schema in place.
|
|
26
|
+
*/
|
|
27
|
+
export declare function applyPatches(schema: Record<string, unknown>): {
|
|
28
|
+
applied: string[];
|
|
29
|
+
skipped: string[];
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=patches.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patches.d.ts","sourceRoot":"","sources":["../../src/codegen/patches.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,0DAA0D;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC3C;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,WAAW,EA4CtC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CA0BtG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typecheck.d.ts","sourceRoot":"","sources":["../../src/codegen/typecheck.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Job, Rule } from "../generated/index.js";
|
|
2
|
+
export interface DockerBuildProps {
|
|
3
|
+
/** Job stage. Default: "build" */
|
|
4
|
+
stage?: string;
|
|
5
|
+
/** Image tag. Default: $CI_COMMIT_REF_SLUG */
|
|
6
|
+
tag?: string;
|
|
7
|
+
/** Dockerfile path. Default: "Dockerfile" */
|
|
8
|
+
dockerfile?: string;
|
|
9
|
+
/** Build context. Default: "." */
|
|
10
|
+
context?: string;
|
|
11
|
+
/** Container registry. Default: $CI_REGISTRY */
|
|
12
|
+
registry?: string;
|
|
13
|
+
/** Full image name. Default: $CI_REGISTRY_IMAGE */
|
|
14
|
+
image?: string;
|
|
15
|
+
/** Tag as :latest on default branch. Default: true */
|
|
16
|
+
tagLatest?: boolean;
|
|
17
|
+
/** Extra docker build --build-arg flags */
|
|
18
|
+
buildArgs?: Record<string, string>;
|
|
19
|
+
/** Job rules. Default: none (always runs) */
|
|
20
|
+
rules?: InstanceType<typeof Rule>[];
|
|
21
|
+
/** Docker version. Default: "27" */
|
|
22
|
+
dockerVersion?: string;
|
|
23
|
+
/** Per-member defaults for customizing the build job. */
|
|
24
|
+
defaults?: {
|
|
25
|
+
build?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare const DockerBuild: import("@intentius/chant").CompositeDefinition<DockerBuildProps, import("@intentius/chant").CompositeMembers>;
|
|
29
|
+
//# sourceMappingURL=docker-build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker-build.d.ts","sourceRoot":"","sources":["../../src/composites/docker-build.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAkB,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzD,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,6CAA6C;IAC7C,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC;IACpC,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACvD,CAAC;CACH;AAED,eAAO,MAAM,WAAW,+GAsDP,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { DockerBuild } from "./docker-build.js";
|
|
2
|
+
export type { DockerBuildProps } from "./docker-build.js";
|
|
3
|
+
export { NodePipeline, BunPipeline, PnpmPipeline } from "./node-pipeline.js";
|
|
4
|
+
export type { NodePipelineProps } from "./node-pipeline.js";
|
|
5
|
+
export { PythonPipeline } from "./python-pipeline.js";
|
|
6
|
+
export type { PythonPipelineProps } from "./python-pipeline.js";
|
|
7
|
+
export { ReviewApp } from "./review-app.js";
|
|
8
|
+
export type { ReviewAppProps } from "./review-app.js";
|
|
9
|
+
export { MrPlanReport } from "./mr-plan-report.js";
|
|
10
|
+
export type { MrPlanReportProps } from "./mr-plan-report.js";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composites/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1E,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Job } from "../generated/index.js";
|
|
2
|
+
export interface MrPlanReportProps {
|
|
3
|
+
/**
|
|
4
|
+
* Lifecycle environment to plan against — the `<environment>` argument of
|
|
5
|
+
* `chant lifecycle plan`.
|
|
6
|
+
*/
|
|
7
|
+
environment: string;
|
|
8
|
+
/** Restrict the plan to one lexicon (the optional `[lexicon]` argument). */
|
|
9
|
+
lexicon?: string;
|
|
10
|
+
/** Stage for the plan job. Default: `"plan"` */
|
|
11
|
+
stage?: string;
|
|
12
|
+
/** Image to run chant in. Default: `"node:22-alpine"` */
|
|
13
|
+
image?: string;
|
|
14
|
+
/** Plan against chant-owned resources only (passes `--owned`). */
|
|
15
|
+
ownedOnly?: boolean;
|
|
16
|
+
/** Artifact filename the report is written to. Default: `"tfplan.json"` */
|
|
17
|
+
reportFile?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Commands to run before the plan — typically cloud-credential setup, since
|
|
20
|
+
* the plan queries the live system to classify create/update/delete.
|
|
21
|
+
*/
|
|
22
|
+
before?: string[];
|
|
23
|
+
/** Per-member defaults for customizing the generated job. */
|
|
24
|
+
defaults?: {
|
|
25
|
+
plan?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A CI job that publishes `chant lifecycle plan` as the GitLab merge-request
|
|
30
|
+
* plan widget.
|
|
31
|
+
*
|
|
32
|
+
* The job runs the plan with `--report gitlab-mr`, writes the count JSON to a
|
|
33
|
+
* file, and declares it as `artifacts:reports:terraform`. GitLab then renders
|
|
34
|
+
* "N to add, M to change, K to delete" on the MR — the same widget Terraform
|
|
35
|
+
* uses. The label reads "Terraform" regardless of producer; that is GitLab's
|
|
36
|
+
* fixed string. Counts are create/update/delete only — `adopt` and `noop` do
|
|
37
|
+
* not appear.
|
|
38
|
+
*
|
|
39
|
+
* The plan reads the live system to classify drift, so wire cloud credentials
|
|
40
|
+
* via `before` or CI variables.
|
|
41
|
+
*/
|
|
42
|
+
export declare const MrPlanReport: import("@intentius/chant").CompositeDefinition<MrPlanReportProps, import("@intentius/chant").CompositeMembers>;
|
|
43
|
+
//# sourceMappingURL=mr-plan-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mr-plan-report.d.ts","sourceRoot":"","sources":["../../src/composites/mr-plan-report.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAoB,MAAM,cAAc,CAAC;AAErD,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACtD,CAAC;CACH;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,gHAqCP,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Job, Default } from "../generated/index.js";
|
|
2
|
+
export interface NodePipelineProps {
|
|
3
|
+
/** Node.js version. Default: "22" */
|
|
4
|
+
nodeVersion?: string;
|
|
5
|
+
/** Package manager. Default: "npm" */
|
|
6
|
+
packageManager?: "npm" | "pnpm" | "bun";
|
|
7
|
+
/** Build script name (runs via package manager). Default: "build" */
|
|
8
|
+
buildScript?: string;
|
|
9
|
+
/** Test script name. Default: "test" */
|
|
10
|
+
testScript?: string;
|
|
11
|
+
/** Artifact paths from build. Default: ["dist/"] */
|
|
12
|
+
buildArtifactPaths?: string[];
|
|
13
|
+
/** Artifact expiry. Default: "1 hour" */
|
|
14
|
+
artifactExpiry?: string;
|
|
15
|
+
/** Override auto-detected install command */
|
|
16
|
+
installCommand?: string;
|
|
17
|
+
/** Per-member defaults for customizing the generated resources. */
|
|
18
|
+
defaults?: {
|
|
19
|
+
defaults?: Partial<ConstructorParameters<typeof Default>[0]>;
|
|
20
|
+
build?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
21
|
+
test?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const NodePipeline: import("@intentius/chant").CompositeDefinition<NodePipelineProps, import("@intentius/chant").CompositeMembers>;
|
|
25
|
+
/** NodePipeline preset for Bun projects. */
|
|
26
|
+
export declare const BunPipeline: import("@intentius/chant").CompositeDefinition<{
|
|
27
|
+
nodeVersion?: string | undefined;
|
|
28
|
+
defaults?: {
|
|
29
|
+
defaults?: Partial<ConstructorParameters<typeof Default>[0]>;
|
|
30
|
+
build?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
31
|
+
test?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
32
|
+
} | undefined;
|
|
33
|
+
installCommand?: string | undefined;
|
|
34
|
+
buildScript?: string | undefined;
|
|
35
|
+
buildArtifactPaths?: string[] | undefined;
|
|
36
|
+
artifactExpiry?: string | undefined;
|
|
37
|
+
testScript?: string | undefined;
|
|
38
|
+
packageManager?: "npm" | "pnpm" | "bun" | undefined;
|
|
39
|
+
}, import("@intentius/chant").CompositeMembers>;
|
|
40
|
+
/** NodePipeline preset for pnpm projects. */
|
|
41
|
+
export declare const PnpmPipeline: import("@intentius/chant").CompositeDefinition<{
|
|
42
|
+
nodeVersion?: string | undefined;
|
|
43
|
+
defaults?: {
|
|
44
|
+
defaults?: Partial<ConstructorParameters<typeof Default>[0]>;
|
|
45
|
+
build?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
46
|
+
test?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
47
|
+
} | undefined;
|
|
48
|
+
installCommand?: string | undefined;
|
|
49
|
+
buildScript?: string | undefined;
|
|
50
|
+
buildArtifactPaths?: string[] | undefined;
|
|
51
|
+
artifactExpiry?: string | undefined;
|
|
52
|
+
testScript?: string | undefined;
|
|
53
|
+
packageManager?: "npm" | "pnpm" | "bun" | undefined;
|
|
54
|
+
}, import("@intentius/chant").CompositeMembers>;
|
|
55
|
+
//# sourceMappingURL=node-pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-pipeline.d.ts","sourceRoot":"","sources":["../../src/composites/node-pipeline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,OAAO,EAA2B,MAAM,cAAc,CAAC;AAGrE,MAAM,WAAW,iBAAiB;IAChC,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;IACxC,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7D,KAAK,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACtD,CAAC;CACH;AA0BD,eAAO,MAAM,YAAY,gHAqDP,CAAC;AAEnB,4CAA4C;AAC5C,eAAO,MAAM,WAAW;kBArGR,MAAM;eAcT;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7D,KAAK,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACtD;qBANgB,MAAM;kBART,MAAM;yBAIC,MAAM,EAAE;qBAEZ,MAAM;iBAJV,MAAM;qBAJF,KAAK,GAAG,MAAM,GAAG,KAAK;+CAmGgD,CAAC;AAE1F,6CAA6C;AAC7C,eAAO,MAAM,YAAY;kBAxGT,MAAM;eAcT;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7D,KAAK,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACtD;qBANgB,MAAM;kBART,MAAM;yBAIC,MAAM,EAAE;qBAEZ,MAAM;iBAJV,MAAM;qBAJF,KAAK,GAAG,MAAM,GAAG,KAAK;+CAsGkD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Job, Default } from "../generated/index.js";
|
|
2
|
+
export interface PythonPipelineProps {
|
|
3
|
+
/** Python version. Default: "3.12" */
|
|
4
|
+
pythonVersion?: string;
|
|
5
|
+
/** Test command. Default: "pytest --junitxml=report.xml --cov" */
|
|
6
|
+
testCommand?: string;
|
|
7
|
+
/** Lint command. Set to null to omit lint job. Default: "ruff check ." */
|
|
8
|
+
lintCommand?: string | null;
|
|
9
|
+
/** Requirements file. Default: "requirements.txt" */
|
|
10
|
+
requirementsFile?: string;
|
|
11
|
+
/** Use poetry instead of pip. Default: false */
|
|
12
|
+
usePoetry?: boolean;
|
|
13
|
+
/** Per-member defaults for customizing the generated resources. */
|
|
14
|
+
defaults?: {
|
|
15
|
+
defaults?: Partial<ConstructorParameters<typeof Default>[0]>;
|
|
16
|
+
test?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
17
|
+
lint?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare const PythonPipeline: import("@intentius/chant").CompositeDefinition<PythonPipelineProps, import("@intentius/chant").CompositeMembers>;
|
|
21
|
+
//# sourceMappingURL=python-pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"python-pipeline.d.ts","sourceRoot":"","sources":["../../src/composites/python-pipeline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,OAAO,EAA2B,MAAM,cAAc,CAAC;AAGrE,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,QAAQ,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7D,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrD,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACtD,CAAC;CACH;AAED,eAAO,MAAM,cAAc,kHA0DP,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Job, Image } from "../generated/index.js";
|
|
2
|
+
export interface ReviewAppProps {
|
|
3
|
+
/** Base name for the jobs (e.g. "review" → review-deploy, review-stop in YAML). */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Deploy script command(s). */
|
|
6
|
+
deployScript: string | string[];
|
|
7
|
+
/** Stop script command(s). Default: echo "Stopping review app..." */
|
|
8
|
+
stopScript?: string | string[];
|
|
9
|
+
/** Environment URL pattern. Default: "https://$CI_ENVIRONMENT_SLUG.example.com" */
|
|
10
|
+
urlPattern?: string;
|
|
11
|
+
/** Auto-stop timer. Default: "1 week" */
|
|
12
|
+
autoStopIn?: string;
|
|
13
|
+
/** Override image for both jobs. */
|
|
14
|
+
image?: InstanceType<typeof Image>;
|
|
15
|
+
/** Job stage. Default: "deploy" */
|
|
16
|
+
stage?: string;
|
|
17
|
+
/** Per-member defaults for customizing the deploy and stop jobs. */
|
|
18
|
+
defaults?: {
|
|
19
|
+
deploy?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
20
|
+
stop?: Partial<ConstructorParameters<typeof Job>[0]>;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare const ReviewApp: import("@intentius/chant").CompositeDefinition<ReviewAppProps, import("@intentius/chant").CompositeMembers>;
|
|
24
|
+
//# sourceMappingURL=review-app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review-app.d.ts","sourceRoot":"","sources":["../../src/composites/review-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,KAAK,EAAqB,MAAM,cAAc,CAAC;AAG7D,MAAM,WAAW,cAAc;IAC7B,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC;IACnC,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACvD,IAAI,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACtD,CAAC;CACH;AAED,eAAO,MAAM,SAAS,6GA0CP,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coverage analysis for GitLab CI lexicon.
|
|
3
|
+
*
|
|
4
|
+
* Measures how many of the CI schema's definitions are covered
|
|
5
|
+
* by the generated lexicon entities.
|
|
6
|
+
*/
|
|
7
|
+
import { computeCoverage, overallPct, formatSummary, formatVerbose, checkThresholds, type CoverageReport, type CoverageThresholds } from "@intentius/chant/codegen/coverage";
|
|
8
|
+
export type { CoverageReport, CoverageThresholds };
|
|
9
|
+
export { computeCoverage, overallPct, formatSummary, formatVerbose, checkThresholds };
|
|
10
|
+
/**
|
|
11
|
+
* Run coverage analysis for the GitLab lexicon.
|
|
12
|
+
*/
|
|
13
|
+
export declare function analyzeGitLabCoverage(opts?: {
|
|
14
|
+
basePath?: string;
|
|
15
|
+
verbose?: boolean;
|
|
16
|
+
minOverall?: number;
|
|
17
|
+
}): Promise<CoverageReport>;
|
|
18
|
+
//# sourceMappingURL=coverage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage.d.ts","sourceRoot":"","sources":["../src/coverage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EACL,eAAe,EACf,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,EACf,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAEtF;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,CAAC,EAAE;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,cAAc,CAAC,CAqB1B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const Default: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
2
|
+
export declare const Job: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
3
|
+
export declare const Workflow: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
4
|
+
export declare const AllowFailure: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
5
|
+
export declare const Artifacts: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
6
|
+
export declare const AutoCancel: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
7
|
+
export declare const Cache: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
8
|
+
export declare const Environment: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
9
|
+
export declare const Image: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
10
|
+
export declare const Include: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
11
|
+
export declare const Inherit: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
12
|
+
export declare const Need: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
13
|
+
export declare const Parallel: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
14
|
+
export declare const Release: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
15
|
+
export declare const Retry: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
16
|
+
export declare const Rule: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
17
|
+
export declare const Service: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
18
|
+
export declare const Trigger: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
19
|
+
export declare const WorkflowRule: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
20
|
+
export { reference } from "../intrinsics.js";
|
|
21
|
+
export { CI } from "../variables.js";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,+IAAsD,CAAC;AAC3E,eAAO,MAAM,GAAG,+IAAkD,CAAC;AACnE,eAAO,MAAM,QAAQ,+IAAuD,CAAC;AAE7E,eAAO,MAAM,YAAY,iEAAuD,CAAC;AACjF,eAAO,MAAM,SAAS,iEAAoD,CAAC;AAC3E,eAAO,MAAM,UAAU,iEAAqD,CAAC;AAC7E,eAAO,MAAM,KAAK,iEAAgD,CAAC;AACnE,eAAO,MAAM,WAAW,iEAAsD,CAAC;AAC/E,eAAO,MAAM,KAAK,iEAAgD,CAAC;AACnE,eAAO,MAAM,OAAO,iEAAkD,CAAC;AACvE,eAAO,MAAM,OAAO,iEAAkD,CAAC;AACvE,eAAO,MAAM,IAAI,iEAA+C,CAAC;AACjE,eAAO,MAAM,QAAQ,iEAAmD,CAAC;AACzE,eAAO,MAAM,OAAO,iEAAkD,CAAC;AACvE,eAAO,MAAM,KAAK,iEAAgD,CAAC;AACnE,eAAO,MAAM,IAAI,iEAA+C,CAAC;AACjE,eAAO,MAAM,OAAO,iEAAkD,CAAC;AACvE,eAAO,MAAM,OAAO,iEAAkD,CAAC;AACvE,eAAO,MAAM,YAAY,iEAAuD,CAAC;AAGjF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/generated/runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript code generator for GitLab CI import.
|
|
3
|
+
*
|
|
4
|
+
* Converts a TemplateIR (from parsed .gitlab-ci.yml) into TypeScript
|
|
5
|
+
* source code using the @intentius/chant-lexicon-gitlab constructors.
|
|
6
|
+
*/
|
|
7
|
+
import type { TypeScriptGenerator, GeneratedFile } from "@intentius/chant/import/generator";
|
|
8
|
+
import type { TemplateIR } from "@intentius/chant/import/parser";
|
|
9
|
+
/**
|
|
10
|
+
* Generate TypeScript source code from a GitLab CI IR.
|
|
11
|
+
*/
|
|
12
|
+
export declare class GitLabGenerator implements TypeScriptGenerator {
|
|
13
|
+
generate(ir: TemplateIR): GeneratedFile[];
|
|
14
|
+
private collectNestedConstructors;
|
|
15
|
+
private emitProps;
|
|
16
|
+
private emitValue;
|
|
17
|
+
private emitLiteral;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/import/generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,gCAAgC,CAAC;AAsC7E;;GAEG;AACH,qBAAa,eAAgB,YAAW,mBAAmB;IACzD,QAAQ,CAAC,EAAE,EAAE,UAAU,GAAG,aAAa,EAAE;IA4DzC,OAAO,CAAC,yBAAyB;IAYjC,OAAO,CAAC,SAAS;IAejB,OAAO,CAAC,SAAS;IA2BjB,OAAO,CAAC,WAAW;CA2BpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitLab CI YAML parser for `chant import`.
|
|
3
|
+
*
|
|
4
|
+
* Parses an existing .gitlab-ci.yml file into the core TemplateIR format,
|
|
5
|
+
* mapping GitLab CI constructs to resources and property types.
|
|
6
|
+
*/
|
|
7
|
+
import type { TemplateParser, TemplateIR } from "@intentius/chant/import/parser";
|
|
8
|
+
/**
|
|
9
|
+
* GitLab CI YAML parser implementation.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GitLabParser implements TemplateParser {
|
|
12
|
+
parse(content: string): TemplateIR;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../src/import/parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAc,MAAM,gCAAgC,CAAC;AA6B7F;;GAEG;AACH,qBAAa,YAAa,YAAW,cAAc;IACjD,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU;CA6DnC"}
|