@deltabox/toolchain 2.1.1 → 2.3.4

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.
Files changed (140) hide show
  1. package/CHANGELOG.md +416 -628
  2. package/README.md +6 -0
  3. package/dist/changelog.d.ts +6 -5
  4. package/dist/changelog.js +1 -1
  5. package/dist/cli/commands/providers.js +1 -1
  6. package/dist/cli/commands/reset.js +1 -1
  7. package/dist/cli/config-selection.js +1 -1
  8. package/dist/cli/index.d.ts +2 -2
  9. package/dist/cli/index.js +1 -1
  10. package/dist/cli/update-check.js +1 -1
  11. package/dist/config.d.ts +2 -2
  12. package/dist/config.js +1 -1
  13. package/dist/index.d.ts +38 -30
  14. package/dist/index.js +1 -1
  15. package/dist/migrate.d.ts +2 -2
  16. package/dist/migrate.js +1 -1
  17. package/dist/package.js +1 -1
  18. package/dist/packages/changelog/src/cli/index.js +1 -1
  19. package/dist/packages/changelog/src/index.d.ts +7 -6
  20. package/dist/packages/changelog/src/index.js +1 -1
  21. package/dist/packages/changelog/src/run-workflows.d.ts +39 -2
  22. package/dist/packages/changelog/src/run-workflows.js +1 -1
  23. package/dist/packages/changelog/src/run.d.ts +1 -1
  24. package/dist/packages/changelog/src/run.js +1 -1
  25. package/dist/packages/changelog/src/sync.js +1 -1
  26. package/dist/packages/changelog/src/templates.js +1 -1
  27. package/dist/packages/changelog/src/utils/format.d.ts +5 -3
  28. package/dist/packages/changelog/src/utils/format.js +5 -5
  29. package/dist/packages/changelog/src/utils/git.d.ts +1 -1
  30. package/dist/packages/changelog/src/utils/git.js +1 -1
  31. package/dist/packages/changelog/src/utils/reformat.d.ts +7 -2
  32. package/dist/packages/changelog/src/utils/reformat.js +5 -4
  33. package/dist/packages/changelog/src/utils/release-notes.js +1 -1
  34. package/dist/packages/changelog/src/utils/repo.js +1 -1
  35. package/dist/packages/changelog/src/utils/summary.d.ts +1 -1
  36. package/dist/packages/changelog/src/utils/types.d.ts +9 -46
  37. package/dist/packages/changelog/src/utils/versioning.d.ts +11 -14
  38. package/dist/packages/changelog/src/utils/write.js +1 -1
  39. package/dist/packages/changelog/src/workflows.d.ts +11 -3
  40. package/dist/packages/changelog/src/workflows.js +5 -5
  41. package/dist/packages/config/src/cli/index.d.ts +1 -1
  42. package/dist/packages/config/src/collect.js +1 -1
  43. package/dist/packages/config/src/config-json.js +1 -1
  44. package/dist/packages/config/src/generators/env.js +2 -2
  45. package/dist/packages/config/src/generators/markdown.js +8 -8
  46. package/dist/packages/config/src/generators/output.js +1 -0
  47. package/dist/packages/config/src/generators/types.js +3 -3
  48. package/dist/packages/config/src/index.d.ts +3 -3
  49. package/dist/packages/config/src/index.js +1 -1
  50. package/dist/packages/config/src/schema.d.ts +16 -0
  51. package/dist/packages/config/src/schema.js +1 -1
  52. package/dist/packages/config/src/types.d.ts +5 -0
  53. package/dist/packages/core/src/editor-config.js +1 -1
  54. package/dist/packages/core/src/loader.js +1 -1
  55. package/dist/packages/core/src/manifest.js +1 -1
  56. package/dist/packages/core/src/paths.js +1 -0
  57. package/dist/packages/core/src/provider-registry.js +1 -1
  58. package/dist/packages/core/src/reset.d.ts +3 -0
  59. package/dist/packages/core/src/reset.js +1 -1
  60. package/dist/packages/core/src/sync.js +1 -1
  61. package/dist/packages/core/src/vscode.js +1 -1
  62. package/dist/packages/core/src/watch.d.ts +1 -1
  63. package/dist/packages/core/src/watch.js +1 -1
  64. package/dist/packages/migrate/src/cli/index.js +1 -1
  65. package/dist/packages/migrate/src/eslint.js +1 -1
  66. package/dist/packages/migrate/src/index.d.ts +2 -2
  67. package/dist/packages/migrate/src/index.js +1 -1
  68. package/dist/packages/migrate/src/prettier.d.ts +2 -0
  69. package/dist/packages/migrate/src/prettier.js +2 -2
  70. package/dist/packages/migrate/src/vite-target.js +1 -1
  71. package/dist/packages/project/src/cli/index.js +1 -1
  72. package/dist/packages/project/src/index.d.ts +4 -4
  73. package/dist/packages/project/src/index.js +1 -1
  74. package/dist/packages/project/src/typescript.d.ts +4 -2
  75. package/dist/packages/project/src/typescript.js +2 -2
  76. package/dist/packages/shared/src/changelog-callbacks.d.ts +72 -0
  77. package/dist/packages/shared/src/config-schema/biome.d.ts +8 -1
  78. package/dist/packages/shared/src/config-schema/biome.js +1 -1
  79. package/dist/packages/shared/src/config-schema/changelog.d.ts +3049 -30
  80. package/dist/packages/shared/src/config-schema/changelog.js +1 -1
  81. package/dist/packages/shared/src/config-schema/ci.d.ts +1163 -23
  82. package/dist/packages/shared/src/config-schema/external.js +1 -0
  83. package/dist/packages/shared/src/config-schema/format.d.ts +16 -10
  84. package/dist/packages/shared/src/config-schema/format.js +1 -1
  85. package/dist/packages/shared/src/config-schema/generated/azure-pipelines.d.ts +10501 -0
  86. package/dist/packages/shared/src/config-schema/generated/biome-config.d.ts +5962 -0
  87. package/dist/packages/shared/src/config-schema/generated/github-workflow.d.ts +179 -0
  88. package/dist/packages/shared/src/config-schema/generated/gitlab-ci.d.ts +296 -0
  89. package/dist/packages/shared/src/config-schema/generated/oxfmt-config.d.ts +411 -0
  90. package/dist/packages/shared/src/config-schema/generated/oxlint-config.d.ts +2218 -0
  91. package/dist/packages/shared/src/config-schema/index.d.ts +5355 -142
  92. package/dist/packages/shared/src/config-schema/index.js +1 -1
  93. package/dist/packages/shared/src/config-schema/json.d.ts +18 -0
  94. package/dist/packages/shared/src/config-schema/json.js +1 -0
  95. package/dist/packages/shared/src/config-schema/logger.d.ts +10 -1
  96. package/dist/packages/shared/src/config-schema/logger.js +1 -1
  97. package/dist/packages/shared/src/config-schema/tsconfig.d.ts +5 -4
  98. package/dist/packages/shared/src/config-schema/tsconfig.js +1 -1
  99. package/dist/packages/shared/src/config-schema/vite.d.ts +5 -3
  100. package/dist/packages/shared/src/config-schema/vite.js +1 -1
  101. package/dist/packages/shared/src/config-schema/workflow.d.ts +946 -31
  102. package/dist/packages/shared/src/config-schema/workflow.js +1 -1
  103. package/dist/packages/shared/src/config-types.d.ts +257 -33
  104. package/dist/packages/shared/src/fs-utils.d.ts +12 -0
  105. package/dist/packages/shared/src/fs-utils.js +8 -1
  106. package/dist/packages/shared/src/index.d.ts +19 -11
  107. package/dist/packages/shared/src/index.js +1 -1
  108. package/dist/packages/shared/src/object-utils.d.ts +2 -0
  109. package/dist/packages/shared/src/object-utils.js +1 -1
  110. package/dist/packages/shared/src/registry-policy.d.ts +3 -2
  111. package/dist/packages/shared/src/registry-policy.js +1 -1
  112. package/dist/packages/shared/src/run.d.ts +2 -0
  113. package/dist/packages/shared/src/run.js +1 -1
  114. package/dist/packages/shared/src/string-utils.d.ts +7 -5
  115. package/dist/packages/shared/src/string-utils.js +2 -2
  116. package/dist/packages/shared/src/template.d.ts +2 -1
  117. package/dist/packages/shared/src/template.js +1 -1
  118. package/dist/packages/shared/src/toolchain.d.ts +14 -7
  119. package/dist/packages/shared/src/toolchain.js +1 -1
  120. package/dist/packages/shared/src/types.d.ts +5 -0
  121. package/dist/packages/shared/src/vite-defaults.d.ts +4 -3
  122. package/dist/packages/shared/src/vite-defaults.js +1 -1
  123. package/dist/packages/shared/src/yaml.js +5 -5
  124. package/dist/packages/template/src/scaffold.js +1 -1
  125. package/dist/packages/tsconfig/src/cli/generate/index.js +1 -1
  126. package/dist/packages/tsconfig/src/overrides.d.ts +5 -5
  127. package/dist/packages/tsdown/src/config/node.d.ts +5 -0
  128. package/dist/packages/tsdown/src/config/node.js +2 -2
  129. package/dist/packages/tsdown/src/index.d.ts +3 -3
  130. package/dist/packages/tsdown/src/index.js +1 -1
  131. package/dist/packages/vite/src/plugin.js +1 -1
  132. package/dist/packages/vite/src/vp.js +1 -1
  133. package/dist/project.d.ts +3 -3
  134. package/dist/project.js +1 -1
  135. package/dist/shared.d.ts +18 -10
  136. package/dist/shared.js +1 -1
  137. package/dist/tooling.js +1 -1
  138. package/dist/tsdown.d.ts +2 -2
  139. package/dist/tsdown.js +1 -1
  140. package/package.json +25 -13
@@ -0,0 +1,179 @@
1
+ import __tsdown_shims_path from 'node:path';
2
+ import __tsdown_shims_url from 'node:url';
3
+ //#region packages/shared/src/config-schema/generated/github-workflow.d.ts
4
+ export interface GitHubWorkflow {
5
+ /**
6
+ * The name of your workflow. GitHub displays the names of your workflows on your repository's
7
+ * actions page. If you omit this field, GitHub sets the name to the workflow's filename.
8
+ */
9
+ name?: string;
10
+ /**
11
+ * The name of the GitHub event that triggers the workflow. You can provide a single event string,
12
+ * array of events, array of event types, or an event configuration map that schedules a workflow
13
+ * or restricts the execution of a workflow to specific files, tags, or branch changes. For a list
14
+ * of available events, see
15
+ * https://help.github.com/en/github/automating-your-workflow-with-github-actions/events-that-trigger-workflows.
16
+ *
17
+ * @required
18
+ */
19
+ on: 'branch_protection_rule' | 'check_run' | 'check_suite' | 'create' | 'delete' | 'deployment' | 'deployment_status' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issue_comment' | 'issues' | 'label' | 'merge_group' | 'milestone' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'pull_request_target' | 'push' | 'registry_package' | 'release' | 'status' | 'watch' | 'workflow_call' | 'workflow_dispatch' | 'workflow_run' | 'repository_dispatch' | Array<'branch_protection_rule' | 'check_run' | 'check_suite' | 'create' | 'delete' | 'deployment' | 'deployment_status' | 'discussion' | 'discussion_comment' | 'fork' | 'gollum' | 'issue_comment' | 'issues' | 'label' | 'merge_group' | 'milestone' | 'page_build' | 'project' | 'project_card' | 'project_column' | 'public' | 'pull_request' | 'pull_request_review' | 'pull_request_review_comment' | 'pull_request_target' | 'push' | 'registry_package' | 'release' | 'status' | 'watch' | 'workflow_call' | 'workflow_dispatch' | 'workflow_run' | 'repository_dispatch'> | {
20
+ branch_protection_rule?: null | {
21
+ types?: Array<unknown> | string;
22
+ };
23
+ check_run?: null | {
24
+ types?: Array<unknown> | string;
25
+ };
26
+ check_suite?: null | {
27
+ types?: Array<unknown> | string;
28
+ };
29
+ create?: {} | null;
30
+ delete?: {} | null;
31
+ deployment?: {} | null;
32
+ deployment_status?: {} | null;
33
+ discussion?: null | {
34
+ types?: Array<unknown> | string;
35
+ };
36
+ discussion_comment?: null | {
37
+ types?: Array<unknown> | string;
38
+ };
39
+ fork?: {} | null;
40
+ gollum?: {} | null;
41
+ issue_comment?: null | {
42
+ types?: Array<unknown> | string;
43
+ };
44
+ issues?: null | {
45
+ types?: Array<unknown> | string;
46
+ };
47
+ label?: null | {
48
+ types?: Array<unknown> | string;
49
+ };
50
+ merge_group?: null | {
51
+ types?: Array<unknown> | string;
52
+ };
53
+ milestone?: null | {
54
+ types?: Array<unknown> | string;
55
+ };
56
+ page_build?: {} | null;
57
+ project?: null | {
58
+ types?: Array<unknown> | string;
59
+ };
60
+ project_card?: null | {
61
+ types?: Array<unknown> | string;
62
+ };
63
+ project_column?: null | {
64
+ types?: Array<unknown> | string;
65
+ };
66
+ public?: {} | null;
67
+ pull_request?: null | unknown;
68
+ pull_request_review?: null | {
69
+ types?: Array<unknown> | string;
70
+ };
71
+ pull_request_review_comment?: null | {
72
+ types?: Array<unknown> | string;
73
+ };
74
+ pull_request_target?: null | unknown;
75
+ push?: null | unknown;
76
+ registry_package?: null | {
77
+ types?: Array<unknown> | string;
78
+ };
79
+ release?: null | {
80
+ types?: Array<unknown> | string;
81
+ };
82
+ status?: {} | null;
83
+ watch?: {} | null;
84
+ workflow_call?: null | {
85
+ inputs?: {};
86
+ outputs?: {};
87
+ secrets?: {};
88
+ };
89
+ workflow_dispatch?: null | {
90
+ inputs?: {};
91
+ };
92
+ workflow_run?: null | {
93
+ types?: Array<unknown> | string;
94
+ workflows?: Array<string>;
95
+ };
96
+ repository_dispatch?: {} | null;
97
+ schedule?: Array<{
98
+ cron: string;
99
+ timezone?: string;
100
+ }>;
101
+ };
102
+ /** A map of environment variables that are available to all jobs and steps in the workflow. */
103
+ env?: {} | string;
104
+ /** A map of default settings that will apply to all jobs in the workflow. */
105
+ defaults?: {
106
+ run?: {
107
+ /**
108
+ * You can override the default shell settings in the runner's operating system using the shell
109
+ * keyword. You can use built-in shell keywords, or you can define a custom set of shell
110
+ * options.
111
+ */
112
+ shell?: string | 'bash' | 'pwsh' | 'python' | 'sh' | 'cmd' | 'powershell';
113
+ /**
114
+ * Using the working-directory keyword, you can specify the working directory of where to run the
115
+ * command.
116
+ */
117
+ 'working-directory'?: string;
118
+ };
119
+ };
120
+ /**
121
+ * Concurrency ensures that only a single job or workflow using the same concurrency group will run
122
+ * at a time. A concurrency group can be any string or expression. The expression can use any
123
+ * context except for the secrets context. You can also specify concurrency at the workflow level.
124
+ * When a concurrent job or workflow is queued, if another job or workflow using the same
125
+ * concurrency group in the repository is in progress, the queued job or workflow will be pending.
126
+ * By default any previously pending job or workflow in the concurrency group will be canceled;
127
+ * this behavior can be changed with `queue`. To also cancel any currently running job or workflow
128
+ * in the same concurrency group, specify cancel-in-progress: true.
129
+ */
130
+ concurrency?: string | {
131
+ group: string;
132
+ 'cancel-in-progress'?: boolean | string;
133
+ queue?: 'single' | 'max';
134
+ };
135
+ /** Controls the level of GitHub Actions cache access granted to a workflow or job. */
136
+ 'cache-mode'?: 'read' | 'write' | 'write-only' | 'none';
137
+ /**
138
+ * A workflow run is made up of one or more jobs. Jobs run in parallel by default. To run jobs
139
+ * sequentially, you can define dependencies on other jobs using the jobs.<job_id>.needs keyword.
140
+ * Each job runs in a fresh instance of the virtual environment specified by runs-on. You can run
141
+ * an unlimited number of jobs as long as you are within the workflow usage limits. For more
142
+ * information, see
143
+ * https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#usage-limits.
144
+ *
145
+ * @required
146
+ */
147
+ jobs: any;
148
+ /**
149
+ * The name for workflow runs generated from the workflow. GitHub displays the workflow run name in
150
+ * the list of workflow runs on your repository's 'Actions' tab.
151
+ */
152
+ 'run-name'?: string;
153
+ /**
154
+ * You can modify the default permissions granted to the GITHUB_TOKEN, adding or removing access as
155
+ * required, so that you only allow the minimum required access.
156
+ */
157
+ permissions?: 'read-all' | 'write-all' | {
158
+ actions?: 'read' | 'write' | 'none';
159
+ 'artifact-metadata'?: 'read' | 'write' | 'none';
160
+ attestations?: 'read' | 'write' | 'none';
161
+ checks?: 'read' | 'write' | 'none';
162
+ 'code-quality'?: 'read' | 'write' | 'none';
163
+ contents?: 'read' | 'write' | 'none';
164
+ deployments?: 'read' | 'write' | 'none';
165
+ discussions?: 'read' | 'write' | 'none';
166
+ 'id-token'?: 'write' | 'none';
167
+ issues?: 'read' | 'write' | 'none';
168
+ models?: 'read' | 'none';
169
+ packages?: 'read' | 'write' | 'none';
170
+ pages?: 'read' | 'write' | 'none';
171
+ 'pull-requests'?: 'read' | 'write' | 'none';
172
+ 'repository-projects'?: 'read' | 'write' | 'none';
173
+ 'security-events'?: 'read' | 'write' | 'none';
174
+ statuses?: 'read' | 'write' | 'none';
175
+ 'vulnerability-alerts'?: 'read' | 'none';
176
+ 'copilot-requests'?: 'write';
177
+ };
178
+ }
179
+ //#endregion
@@ -0,0 +1,296 @@
1
+ import __tsdown_shims_path from 'node:path';
2
+ import __tsdown_shims_url from 'node:url';
3
+ //#region packages/shared/src/config-schema/generated/gitlab-ci.d.ts
4
+ export interface GitLabCi {
5
+ spec?: {
6
+ /** @allowExtraKeys true */
7
+ inputs?: any;
8
+ include?: Array<{
9
+ local: string;
10
+ } | {
11
+ project: string;
12
+ ref?: string;
13
+ file: string | Array<string>;
14
+ } | {
15
+ remote: string;
16
+ integrity?: string;
17
+ cache?: boolean | string;
18
+ }>;
19
+ component?: Array<'name' | 'sha' | 'version' | 'reference'>;
20
+ description?: string;
21
+ };
22
+ image?: string | {
23
+ name: string;
24
+ entrypoint?: Array<unknown>;
25
+ docker?: {
26
+ platform?: string;
27
+ user?: string;
28
+ };
29
+ kubernetes?: {
30
+ user?: string | number;
31
+ };
32
+ pull_policy?: 'always' | 'never' | 'if-not-present' | Array<'always' | 'never' | 'if-not-present'>;
33
+ };
34
+ services?: Array<string | {
35
+ name: string;
36
+ entrypoint?: Array<string>;
37
+ docker?: {
38
+ platform?: string;
39
+ user?: string;
40
+ };
41
+ kubernetes?: {
42
+ user?: string | number;
43
+ };
44
+ pull_policy?: 'always' | 'never' | 'if-not-present' | Array<'always' | 'never' | 'if-not-present'>;
45
+ command?: string | Array<string | Array<string>>;
46
+ alias?: string;
47
+ variables?: {};
48
+ }>;
49
+ before_script?: string | Array<string | Array<string>>;
50
+ after_script?: string | Array<string | Array<string>>;
51
+ /** @allowExtraKeys true */
52
+ variables?: any;
53
+ cache?: {
54
+ key?: string | {
55
+ files?: Array<string>;
56
+ files_commits?: Array<string>;
57
+ prefix?: string;
58
+ };
59
+ paths?: Array<string>;
60
+ policy?: string;
61
+ unprotect?: boolean;
62
+ untracked?: boolean;
63
+ when?: 'on_success' | 'on_failure' | 'always';
64
+ fallback_keys?: Array<string>;
65
+ } | Array<{
66
+ key?: string | {
67
+ files?: Array<string>;
68
+ files_commits?: Array<string>;
69
+ prefix?: string;
70
+ };
71
+ paths?: Array<string>;
72
+ policy?: string;
73
+ unprotect?: boolean;
74
+ untracked?: boolean;
75
+ when?: 'on_success' | 'on_failure' | 'always';
76
+ fallback_keys?: Array<string>;
77
+ }>;
78
+ '!reference'?: Array<string>;
79
+ default?: {
80
+ after_script?: string | Array<string | Array<string>>;
81
+ artifacts?: {
82
+ paths?: Array<string>;
83
+ exclude?: Array<string>;
84
+ expose_as?: string;
85
+ name?: string;
86
+ untracked?: boolean;
87
+ when?: 'on_success' | 'on_failure' | 'always';
88
+ access?: 'none' | 'developer' | 'maintainer' | 'all';
89
+ public?: boolean;
90
+ expire_in?: string;
91
+ reports?: {
92
+ accessibility?: string;
93
+ annotations?: string;
94
+ api_fuzzing?: string | Array<string>;
95
+ junit?: string | Array<string>;
96
+ browser_performance?: string;
97
+ coverage_report?: {
98
+ coverage_format?: 'cobertura' | 'jacoco';
99
+ path?: string;
100
+ } | null;
101
+ coverage_fuzzing?: string | Array<string>;
102
+ codequality?: string | Array<string>;
103
+ dotenv?: string | Array<string>;
104
+ lsif?: string | Array<string>;
105
+ sast?: string | Array<string>;
106
+ dependency_scanning?: string | Array<string>;
107
+ container_scanning?: string | Array<string>;
108
+ dast?: string | Array<string>;
109
+ license_management?: string | Array<string>;
110
+ license_scanning?: string | Array<string>;
111
+ requirements?: string | Array<string>;
112
+ secret_detection?: string | Array<string>;
113
+ metrics?: string | Array<string>;
114
+ terraform?: string | Array<string>;
115
+ cyclonedx?: string | Array<string>;
116
+ sarif?: string | Array<string>;
117
+ load_performance?: string | Array<string>;
118
+ repository_xray?: string | Array<string>;
119
+ };
120
+ } | null;
121
+ before_script?: string | Array<string | Array<string>>;
122
+ hooks?: {
123
+ pre_get_sources_script?: string | Array<string | Array<string>>;
124
+ };
125
+ cache?: {
126
+ key?: string | {
127
+ files?: Array<string>;
128
+ files_commits?: Array<string>;
129
+ prefix?: string;
130
+ };
131
+ paths?: Array<string>;
132
+ policy?: string;
133
+ unprotect?: boolean;
134
+ untracked?: boolean;
135
+ when?: 'on_success' | 'on_failure' | 'always';
136
+ fallback_keys?: Array<string>;
137
+ } | Array<{
138
+ key?: string | {
139
+ files?: Array<string>;
140
+ files_commits?: Array<string>;
141
+ prefix?: string;
142
+ };
143
+ paths?: Array<string>;
144
+ policy?: string;
145
+ unprotect?: boolean;
146
+ untracked?: boolean;
147
+ when?: 'on_success' | 'on_failure' | 'always';
148
+ fallback_keys?: Array<string>;
149
+ }>;
150
+ image?: string | {
151
+ name: string;
152
+ entrypoint?: Array<unknown>;
153
+ docker?: {
154
+ platform?: string;
155
+ user?: string;
156
+ };
157
+ kubernetes?: {
158
+ user?: string | number;
159
+ };
160
+ pull_policy?: 'always' | 'never' | 'if-not-present' | Array<'always' | 'never' | 'if-not-present'>;
161
+ };
162
+ /** @default false */
163
+ interruptible?: boolean;
164
+ /** @allowExtraKeys true */
165
+ id_tokens?: any;
166
+ identity?: 'google_cloud';
167
+ retry?: number | {
168
+ max?: number;
169
+ when?: 'always' | 'unknown_failure' | 'script_failure' | 'api_failure' | 'stuck_or_timeout_failure' | 'stuck_pending_with_matching_runners' | 'stuck_pending_no_matching_runners' | 'no_updates_running' | 'no_updates_canceling' | 'runner_system_failure' | 'runner_configuration_error' | 'runner_external_dependency_failure' | 'runner_interrupted' | 'runner_unsupported' | 'stale_schedule' | 'job_execution_timeout' | 'server_timeout_running' | 'server_timeout_canceling' | 'archived_failure' | 'unmet_prerequisites' | 'scheduler_failure' | 'data_integrity_failure' | Array<'always' | 'unknown_failure' | 'script_failure' | 'api_failure' | 'stuck_or_timeout_failure' | 'stuck_pending_with_matching_runners' | 'stuck_pending_no_matching_runners' | 'no_updates_running' | 'no_updates_canceling' | 'runner_system_failure' | 'runner_configuration_error' | 'runner_external_dependency_failure' | 'runner_interrupted' | 'runner_unsupported' | 'stale_schedule' | 'job_execution_timeout' | 'server_timeout_running' | 'server_timeout_canceling' | 'archived_failure' | 'unmet_prerequisites' | 'scheduler_failure' | 'data_integrity_failure'>;
170
+ exit_codes?: Array<number> | number;
171
+ };
172
+ services?: Array<string | {
173
+ name: string;
174
+ entrypoint?: Array<string>;
175
+ docker?: {
176
+ platform?: string;
177
+ user?: string;
178
+ };
179
+ kubernetes?: {
180
+ user?: string | number;
181
+ };
182
+ pull_policy?: 'always' | 'never' | 'if-not-present' | Array<'always' | 'never' | 'if-not-present'>;
183
+ command?: string | Array<string | Array<string>>;
184
+ alias?: string;
185
+ variables?: {};
186
+ }>;
187
+ tags?: Array<string | Array<string>>;
188
+ timeout?: string;
189
+ '!reference'?: Array<string>;
190
+ };
191
+ /** @default ['build', 'test', 'deploy'] */
192
+ stages?: Array<string | Array<string>>;
193
+ include?: unknown | {
194
+ local: string;
195
+ rules?: Array<{
196
+ changes?: unknown | Array<string>;
197
+ exists?: Array<string> | unknown | unknown;
198
+ when?: 'never' | 'always' | null;
199
+ } | string | Array<string>> | null;
200
+ inputs?: {};
201
+ } | {
202
+ project: string;
203
+ ref?: string;
204
+ file: string | Array<string>;
205
+ rules?: Array<{
206
+ changes?: unknown | Array<string>;
207
+ exists?: Array<string> | unknown | unknown;
208
+ when?: 'never' | 'always' | null;
209
+ } | string | Array<string>> | null;
210
+ inputs?: {};
211
+ } | {
212
+ template: string;
213
+ rules?: Array<{
214
+ changes?: unknown | Array<string>;
215
+ exists?: Array<string> | unknown | unknown;
216
+ when?: 'never' | 'always' | null;
217
+ } | string | Array<string>> | null;
218
+ inputs?: {};
219
+ } | {
220
+ component: string;
221
+ rules?: Array<{
222
+ changes?: unknown | Array<string>;
223
+ exists?: Array<string> | unknown | unknown;
224
+ when?: 'never' | 'always' | null;
225
+ } | string | Array<string>> | null;
226
+ inputs?: {};
227
+ } | {
228
+ remote: string;
229
+ integrity?: string;
230
+ cache?: boolean | string;
231
+ rules?: Array<{
232
+ changes?: unknown | Array<string>;
233
+ exists?: Array<string> | unknown | unknown;
234
+ when?: 'never' | 'always' | null;
235
+ } | string | Array<string>> | null;
236
+ inputs?: {};
237
+ } | Array<unknown | {
238
+ local: string;
239
+ rules?: Array<{
240
+ changes?: unknown | Array<string>;
241
+ exists?: Array<string> | unknown | unknown;
242
+ when?: 'never' | 'always' | null;
243
+ } | string | Array<string>> | null;
244
+ inputs?: {};
245
+ } | {
246
+ project: string;
247
+ ref?: string;
248
+ file: string | Array<string>;
249
+ rules?: Array<{
250
+ changes?: unknown | Array<string>;
251
+ exists?: Array<string> | unknown | unknown;
252
+ when?: 'never' | 'always' | null;
253
+ } | string | Array<string>> | null;
254
+ inputs?: {};
255
+ } | {
256
+ template: string;
257
+ rules?: Array<{
258
+ changes?: unknown | Array<string>;
259
+ exists?: Array<string> | unknown | unknown;
260
+ when?: 'never' | 'always' | null;
261
+ } | string | Array<string>> | null;
262
+ inputs?: {};
263
+ } | {
264
+ component: string;
265
+ rules?: Array<{
266
+ changes?: unknown | Array<string>;
267
+ exists?: Array<string> | unknown | unknown;
268
+ when?: 'never' | 'always' | null;
269
+ } | string | Array<string>> | null;
270
+ inputs?: {};
271
+ } | {
272
+ remote: string;
273
+ integrity?: string;
274
+ cache?: boolean | string;
275
+ rules?: Array<{
276
+ changes?: unknown | Array<string>;
277
+ exists?: Array<string> | unknown | unknown;
278
+ when?: 'never' | 'always' | null;
279
+ } | string | Array<string>> | null;
280
+ inputs?: {};
281
+ }>;
282
+ pages?: unknown;
283
+ /** @allowExtraKeys true */
284
+ workflow?: {
285
+ name?: string;
286
+ /** Define the rules for when pipeline should be automatically cancelled. */
287
+ auto_cancel?: {
288
+ /** @default 'none' */
289
+ on_job_failure?: 'none' | 'all';
290
+ on_new_commit?: 'conservative' | 'interruptible' | 'none';
291
+ };
292
+ rules?: Array<{} | Array<string>>;
293
+ };
294
+ [key: string]: unknown;
295
+ }
296
+ //#endregion