@skuba-lib/api 3.0.1 → 3.1.0-add-CDK.ensureAssetPlaceholders-20261027233644

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 (63) hide show
  1. package/lib/buildkite/index.cjs +1 -1
  2. package/lib/buildkite/index.d.cts +1 -1
  3. package/lib/buildkite/index.d.mts +1 -1
  4. package/lib/buildkite/index.mjs +1 -2
  5. package/lib/{buildkite-D6oioQR_.mjs → buildkite-ChVcxGm7.mjs} +6 -9
  6. package/lib/{buildkite-Br2Fyde2.cjs → buildkite-ClGGPaJV.cjs} +6 -9
  7. package/lib/cdk/index.cjs +3 -12
  8. package/lib/cdk/index.d.cts +2 -6
  9. package/lib/cdk/index.d.mts +2 -6
  10. package/lib/cdk/index.mjs +1 -7
  11. package/lib/cdk-BSFGwx14.mjs +20 -0
  12. package/lib/cdk-ByEVlN14.cjs +38 -0
  13. package/lib/{error-UWg8a0Ma.mjs → error-B7tbxXTQ.mjs} +2 -4
  14. package/lib/{error-C1BybmHW.cjs → error-CG8rNpOB.cjs} +2 -4
  15. package/lib/{exec-DqBpB5Vp.cjs → exec-BIvSnwhj.cjs} +11 -9
  16. package/lib/{exec-GeacTdU5.mjs → exec-DC-QAW0e.mjs} +10 -8
  17. package/lib/{fs-Cjt5C6XD.mjs → fs-Bac0LYeg.mjs} +2 -3
  18. package/lib/{fs-CuSraRTN.cjs → fs-DF1Qj2xv.cjs} +3 -4
  19. package/lib/git/index.cjs +1 -1
  20. package/lib/git/index.d.cts +1 -1
  21. package/lib/git/index.d.mts +1 -1
  22. package/lib/git/index.mjs +1 -2
  23. package/lib/{git-CSGc8r3Q.cjs → git-BOuG-9aF.cjs} +18 -32
  24. package/lib/{git-BygvGOZr.mjs → git-DsCvTj_4.mjs} +16 -30
  25. package/lib/github/index.cjs +2 -2
  26. package/lib/github/index.d.cts +1 -1
  27. package/lib/github/index.d.mts +1 -1
  28. package/lib/github/index.mjs +2 -2
  29. package/lib/{github-BLyV25Ac.mjs → github-B_q9oeR0.mjs} +11 -16
  30. package/lib/{github-CuWb88m1.cjs → github-CY8WyO3R.cjs} +11 -16
  31. package/lib/{index-J0PI37zH.d.mts → index-BIoXUgOB.d.mts} +8 -12
  32. package/lib/{index-BKHTGdUP.d.cts → index-BqaQKTmE.d.cts} +0 -2
  33. package/lib/{index-BKHTGdUP.d.mts → index-BqaQKTmE.d.mts} +0 -2
  34. package/lib/{index-CLEYcnJY.d.cts → index-CX5l1M9F.d.cts} +0 -22
  35. package/lib/{index-CLEYcnJY.d.mts → index-CX5l1M9F.d.mts} +0 -22
  36. package/lib/index-DP8zjEgM.d.cts +8 -0
  37. package/lib/index-DP8zjEgM.d.mts +8 -0
  38. package/lib/{index-CNxgBJm_.d.cts → index-DhV1vmV_.d.cts} +0 -4
  39. package/lib/{index-CNxgBJm_.d.mts → index-DhV1vmV_.d.mts} +0 -4
  40. package/lib/{index--hWvZI6b.d.cts → index-ozhcNkrB.d.cts} +8 -12
  41. package/lib/{index-C9lVo3vU.d.cts → index-tjm5vla2.d.cts} +0 -4
  42. package/lib/{index-C9lVo3vU.d.mts → index-tjm5vla2.d.mts} +0 -4
  43. package/lib/index.cjs +7 -7
  44. package/lib/index.d.cts +6 -6
  45. package/lib/index.d.mts +6 -6
  46. package/lib/index.mjs +6 -6
  47. package/lib/{logging-BQNEupxh.mjs → logging-BnwLxc05.mjs} +1 -2
  48. package/lib/{logging-BqpzZfsF.cjs → logging-DlMiOLHo.cjs} +1 -2
  49. package/lib/net/index.cjs +1 -1
  50. package/lib/net/index.d.cts +1 -1
  51. package/lib/net/index.d.mts +1 -1
  52. package/lib/net/index.mjs +1 -2
  53. package/lib/{net-BONidEnf.cjs → net-B0uYVMTV.cjs} +6 -10
  54. package/lib/{net-BxPK6QHR.mjs → net-Biz58RYT.mjs} +6 -10
  55. package/lib/rolldown/index.cjs +1 -1
  56. package/lib/rolldown/index.d.cts +1 -1
  57. package/lib/rolldown/index.d.mts +1 -1
  58. package/lib/rolldown/index.mjs +1 -2
  59. package/lib/{rolldown-CHdN4G5F.mjs → rolldown-BT1dfSUF.mjs} +34 -37
  60. package/lib/{rolldown-runtime-C0BPl7ul.cjs → rolldown-runtime-BW-eSwOZ.cjs} +1 -2
  61. package/lib/{rolldown-runtime-D7D4PA-g.mjs → rolldown-runtime-D8jQpDG7.mjs} +1 -2
  62. package/lib/{rolldown-B47lAoi7.cjs → rolldown-uS0trAmM.cjs} +9 -12
  63. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
- import { t as pathExists } from "./fs-Cjt5C6XD.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.mjs";
2
+ import { t as pathExists } from "./fs-Bac0LYeg.mjs";
3
3
  import fs from "fs-extra";
4
4
  import git, { findRoot } from "isomorphic-git";
5
5
  import path from "path";
6
6
  import ignoreFilter from "ignore";
7
7
  import http from "isomorphic-git/http/node";
8
- //#region src/git/commit.ts
8
+ // src/git/commit.ts
9
9
  /**
10
10
  * Writes a commit to the local Git repository.
11
11
  */
@@ -16,8 +16,7 @@ const commit = async ({ author = { name: "skuba" }, committer = { name: "skuba"
16
16
  fs,
17
17
  message
18
18
  });
19
- //#endregion
20
- //#region src/git/findRoot.ts
19
+ // src/git/findRoot.ts
21
20
  /**
22
21
  * Returns the first Git root directory encountered walking up from the provided
23
22
  * `dir`.
@@ -33,8 +32,7 @@ const findRoot$1 = async ({ dir }) => {
33
32
  throw err;
34
33
  }
35
34
  };
36
- //#endregion
37
- //#region src/git/getChangedFiles.ts
35
+ // src/git/getChangedFiles.ts
38
36
  const mapState = (row) => {
39
37
  if (row[1] === 0) return "added";
40
38
  if (row[2] === 2) return "modified";
@@ -128,8 +126,7 @@ const createIsLfsFilter = async (gitRoot) => {
128
126
  const filter = ignoreFilter().add((await fs.promises.readFile(lfsFile, "utf8")).split("\n").map((l) => l.trim()).filter((l) => !l.startsWith("#") && l.includes("filter=lfs")).map((l) => l.split(/\s+/)[0]).flatMap((l) => l ? [l] : []));
129
127
  return (pathname) => filter.ignores(pathname);
130
128
  };
131
- //#endregion
132
- //#region src/git/commitAllChanges.ts
129
+ // src/git/commitAllChanges.ts
133
130
  /**
134
131
  * Stages all changes and writes a commit to the local Git repository.
135
132
  */
@@ -160,8 +157,7 @@ const commitAllChanges = async ({ dir, message, author, committer, ignore }) =>
160
157
  committer
161
158
  });
162
159
  };
163
- //#endregion
164
- //#region src/git/currentBranch.ts
160
+ // src/git/currentBranch.ts
165
161
  /**
166
162
  * Tries to return a Git branch name from CI environment variables.
167
163
  */
@@ -183,8 +179,7 @@ const currentBranch = async ({ dir, env = process.env } = {}) => {
183
179
  fs
184
180
  }) ?? void 0;
185
181
  };
186
- //#endregion
187
- //#region src/git/log.ts
182
+ // src/git/log.ts
188
183
  const EMPTY_GIT_LOG_ERROR = /* @__PURE__ */ new Error("Git log does not contain any commits");
189
184
  /**
190
185
  * Gets the object ID of the head commit.
@@ -220,8 +215,7 @@ const getHeadCommitMessage = async ({ dir, env = process.env }) => {
220
215
  if (!headResult) throw EMPTY_GIT_LOG_ERROR;
221
216
  return headResult.commit.message;
222
217
  };
223
- //#endregion
224
- //#region src/git/remote.ts
218
+ // src/git/remote.ts
225
219
  /**
226
220
  * Matches the owner and repository names in a GitHub repository URL.
227
221
  *
@@ -288,14 +282,12 @@ const getOwnerAndRepo = async ({ dir, env = process.env }) => {
288
282
  }
289
283
  throw new Error("Could not find a GitHub remote");
290
284
  };
291
- //#endregion
292
- //#region ../../src/utils/env.ts
285
+ // ../../src/utils/env.ts
293
286
  /**
294
287
  * Whether the code is executing in a CI environment.
295
288
  */
296
289
  const isCiEnv = (env = process.env) => Boolean(env.BUILDKITE || env.CI || env.GITHUB_ACTIONS);
297
- //#endregion
298
- //#region src/github/environment.ts
290
+ // src/github/environment.ts
299
291
  /**
300
292
  * Returns the name of the build as seen in GitHub status checks.
301
293
  *
@@ -317,8 +309,7 @@ const enabledFromEnvironment = (env = process.env) => isCiEnv(env) && Boolean(ap
317
309
  * Tries to return a GitHub API token from the environment.
318
310
  */
319
311
  const apiTokenFromEnvironment = (env = process.env) => env.GITHUB_API_TOKEN ?? env.GITHUB_TOKEN;
320
- //#endregion
321
- //#region src/git/push.ts
312
+ // src/git/push.ts
322
313
  /**
323
314
  * Pushes the specified `ref` from the local Git repository to a remote.
324
315
  */
@@ -340,8 +331,7 @@ const push = async ({ auth, dir, ref, remote, remoteRef, force }) => {
340
331
  force
341
332
  });
342
333
  };
343
- //#endregion
344
- //#region src/git/pull.ts
334
+ // src/git/pull.ts
345
335
  /**
346
336
  * Fast forwards the specified `ref` on the local Git repository to match the remote branch.
347
337
  */
@@ -363,8 +353,7 @@ const fastForwardBranch = async ({ auth, dir, ref, remote, remoteRef }) => {
363
353
  singleBranch: true
364
354
  });
365
355
  };
366
- //#endregion
367
- //#region src/git/reset.ts
356
+ // src/git/reset.ts
368
357
  /**
369
358
  * Resets the specified branch in the local Git repository to a particular
370
359
  * commit.
@@ -385,15 +374,13 @@ const reset = async ({ dir, branch, commitId, hard }) => {
385
374
  });
386
375
  }
387
376
  };
388
- //#endregion
389
- //#region src/git/isFileGitIgnored.ts
377
+ // src/git/isFileGitIgnored.ts
390
378
  const isFileGitIgnored = ({ absolutePath, gitRoot }) => git.isIgnored({
391
379
  dir: gitRoot,
392
380
  filepath: path.relative(gitRoot, absolutePath),
393
381
  fs
394
382
  });
395
- //#endregion
396
- //#region src/git/index.ts
383
+ // src/git/index.ts
397
384
  var git_exports = /* @__PURE__ */ __exportAll({
398
385
  commit: () => commit,
399
386
  commitAllChanges: () => commitAllChanges,
@@ -408,5 +395,4 @@ var git_exports = /* @__PURE__ */ __exportAll({
408
395
  push: () => push,
409
396
  reset: () => reset
410
397
  });
411
- //#endregion
412
398
  export { push as a, enabledFromEnvironment as c, getHeadCommitMessage as d, currentBranch as f, commit as g, findRoot$1 as h, fastForwardBranch as i, getOwnerAndRepo as l, getChangedFiles as m, isFileGitIgnored as n, apiTokenFromEnvironment as o, commitAllChanges as p, reset as r, buildNameFromEnvironment as s, git_exports as t, getHeadCommitId as u };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_git = require("../git-CSGc8r3Q.cjs");
3
- const require_github = require("../github-CuWb88m1.cjs");
2
+ const require_git = require("../git-BOuG-9aF.cjs");
3
+ const require_github = require("../github-CY8WyO3R.cjs");
4
4
  exports.apiTokenFromEnvironment = require_git.apiTokenFromEnvironment;
5
5
  exports.buildNameFromEnvironment = require_git.buildNameFromEnvironment;
6
6
  exports.createCheckRun = require_github.createCheckRun;
@@ -1,2 +1,2 @@
1
- import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index--hWvZI6b.cjs";
1
+ import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-ozhcNkrB.cjs";
2
2
  export { type Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
@@ -1,2 +1,2 @@
1
- import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-J0PI37zH.mjs";
1
+ import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-BIoXUgOB.mjs";
2
2
  export { type Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
@@ -1,3 +1,3 @@
1
- import { c as enabledFromEnvironment, o as apiTokenFromEnvironment, s as buildNameFromEnvironment } from "../git-BygvGOZr.mjs";
2
- import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-BLyV25Ac.mjs";
1
+ import { c as enabledFromEnvironment, o as apiTokenFromEnvironment, s as buildNameFromEnvironment } from "../git-DsCvTj_4.mjs";
2
+ import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-B_q9oeR0.mjs";
3
3
  export { apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
@@ -1,13 +1,12 @@
1
- import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
2
- import { n as pluralise } from "./logging-BQNEupxh.mjs";
3
- import { c as enabledFromEnvironment, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, o as apiTokenFromEnvironment, s as buildNameFromEnvironment, u as getHeadCommitId } from "./git-BygvGOZr.mjs";
1
+ import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.mjs";
2
+ import { n as pluralise } from "./logging-BnwLxc05.mjs";
3
+ import { c as enabledFromEnvironment, h as findRoot, i as fastForwardBranch, l as getOwnerAndRepo, m as getChangedFiles, o as apiTokenFromEnvironment, s as buildNameFromEnvironment, u as getHeadCommitId } from "./git-DsCvTj_4.mjs";
4
4
  import fs from "fs-extra";
5
5
  import path from "path";
6
- //#region src/github/octokit.ts
6
+ // src/github/octokit.ts
7
7
  const createRestClient = async (options) => new (await (import("@octokit/rest"))).Octokit(options);
8
8
  const graphql = async (query, parameters) => (await import("@octokit/graphql")).graphql(query, parameters);
9
- //#endregion
10
- //#region src/github/checkRun.ts
9
+ // src/github/checkRun.ts
11
10
  const GITHUB_MAX_ANNOTATIONS = 50;
12
11
  /**
13
12
  * Suffixes the title with the number of annotations added, e.g.
@@ -31,11 +30,12 @@ const createEnrichedSummary = (summary, inputAnnotations) => [summary, ...inputA
31
30
  * A `GITHUB_API_TOKEN` or `GITHUB_TOKEN` with the `checks:write` permission
32
31
  * must be present on the environment.
33
32
  */
34
- const createCheckRun = async ({ annotations, conclusion, name, summary, text, title }) => {
33
+ const createCheckRun = async ({ annotations, conclusion, detailsUrl, name, summary, text, title }) => {
35
34
  const dir = process.cwd();
36
35
  const [commitId, { owner, repo }] = await Promise.all([getHeadCommitId({ dir }), getOwnerAndRepo({ dir })]);
37
36
  await (await createRestClient({ auth: apiTokenFromEnvironment() })).checks.create({
38
37
  conclusion,
38
+ details_url: detailsUrl,
39
39
  head_sha: commitId,
40
40
  name,
41
41
  output: {
@@ -48,8 +48,7 @@ const createCheckRun = async ({ annotations, conclusion, name, summary, text, ti
48
48
  repo
49
49
  });
50
50
  };
51
- //#endregion
52
- //#region src/github/pullRequest.ts
51
+ // src/github/pullRequest.ts
53
52
  /**
54
53
  * Gets the number of the current pull request.
55
54
  *
@@ -76,8 +75,7 @@ const getPullRequestNumber = async (params = {}) => {
76
75
  if (!pullRequestData) throw new Error(`Commit ${commitId} is not associated with an open GitHub pull request`);
77
76
  return pullRequestData.number;
78
77
  };
79
- //#endregion
80
- //#region src/github/issueComment.ts
78
+ // src/github/issueComment.ts
81
79
  const getUserId = async (client) => {
82
80
  const { data } = await client.users.getAuthenticated();
83
81
  return data.id;
@@ -133,8 +131,7 @@ const putIssueComment = async (params) => {
133
131
  repo
134
132
  }))).data.id };
135
133
  };
136
- //#endregion
137
- //#region src/github/push.ts
134
+ // src/github/push.ts
138
135
  /**
139
136
  * Retrieves all file changes from the local Git repository using
140
137
  * `getChangedFiles`, then uploads the changes to a specified GitHub branch
@@ -237,8 +234,7 @@ const uploadFileChanges = async ({ dir, branch, messageHeadline, messageBody, fi
237
234
  headers: { authorization: `Bearer ${authToken}` }
238
235
  })).createCommitOnBranch.commit.oid;
239
236
  };
240
- //#endregion
241
- //#region src/github/index.ts
237
+ // src/github/index.ts
242
238
  var github_exports = /* @__PURE__ */ __exportAll({
243
239
  apiTokenFromEnvironment: () => apiTokenFromEnvironment,
244
240
  buildNameFromEnvironment: () => buildNameFromEnvironment,
@@ -250,5 +246,4 @@ var github_exports = /* @__PURE__ */ __exportAll({
250
246
  uploadAllFileChanges: () => uploadAllFileChanges,
251
247
  uploadFileChanges: () => uploadFileChanges
252
248
  });
253
- //#endregion
254
249
  export { putIssueComment as a, uploadFileChanges as i, readFileChanges as n, getPullRequestNumber as o, uploadAllFileChanges as r, createCheckRun as s, github_exports as t };
@@ -1,15 +1,14 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
2
- const require_logging = require("./logging-BqpzZfsF.cjs");
3
- const require_git = require("./git-CSGc8r3Q.cjs");
1
+ const require_rolldown_runtime = require("./rolldown-runtime-BW-eSwOZ.cjs");
2
+ const require_logging = require("./logging-DlMiOLHo.cjs");
3
+ const require_git = require("./git-BOuG-9aF.cjs");
4
4
  let fs_extra = require("fs-extra");
5
5
  fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
6
6
  let path = require("path");
7
7
  path = require_rolldown_runtime.__toESM(path, 1);
8
- //#region src/github/octokit.ts
8
+ // src/github/octokit.ts
9
9
  const createRestClient = async (options) => new (await (import("@octokit/rest"))).Octokit(options);
10
10
  const graphql = async (query, parameters) => (await import("@octokit/graphql")).graphql(query, parameters);
11
- //#endregion
12
- //#region src/github/checkRun.ts
11
+ // src/github/checkRun.ts
13
12
  const GITHUB_MAX_ANNOTATIONS = 50;
14
13
  /**
15
14
  * Suffixes the title with the number of annotations added, e.g.
@@ -33,11 +32,12 @@ const createEnrichedSummary = (summary, inputAnnotations) => [summary, ...inputA
33
32
  * A `GITHUB_API_TOKEN` or `GITHUB_TOKEN` with the `checks:write` permission
34
33
  * must be present on the environment.
35
34
  */
36
- const createCheckRun = async ({ annotations, conclusion, name, summary, text, title }) => {
35
+ const createCheckRun = async ({ annotations, conclusion, detailsUrl, name, summary, text, title }) => {
37
36
  const dir = process.cwd();
38
37
  const [commitId, { owner, repo }] = await Promise.all([require_git.getHeadCommitId({ dir }), require_git.getOwnerAndRepo({ dir })]);
39
38
  await (await createRestClient({ auth: require_git.apiTokenFromEnvironment() })).checks.create({
40
39
  conclusion,
40
+ details_url: detailsUrl,
41
41
  head_sha: commitId,
42
42
  name,
43
43
  output: {
@@ -50,8 +50,7 @@ const createCheckRun = async ({ annotations, conclusion, name, summary, text, ti
50
50
  repo
51
51
  });
52
52
  };
53
- //#endregion
54
- //#region src/github/pullRequest.ts
53
+ // src/github/pullRequest.ts
55
54
  /**
56
55
  * Gets the number of the current pull request.
57
56
  *
@@ -78,8 +77,7 @@ const getPullRequestNumber = async (params = {}) => {
78
77
  if (!pullRequestData) throw new Error(`Commit ${commitId} is not associated with an open GitHub pull request`);
79
78
  return pullRequestData.number;
80
79
  };
81
- //#endregion
82
- //#region src/github/issueComment.ts
80
+ // src/github/issueComment.ts
83
81
  const getUserId = async (client) => {
84
82
  const { data } = await client.users.getAuthenticated();
85
83
  return data.id;
@@ -135,8 +133,7 @@ const putIssueComment = async (params) => {
135
133
  repo
136
134
  }))).data.id };
137
135
  };
138
- //#endregion
139
- //#region src/github/push.ts
136
+ // src/github/push.ts
140
137
  /**
141
138
  * Retrieves all file changes from the local Git repository using
142
139
  * `getChangedFiles`, then uploads the changes to a specified GitHub branch
@@ -239,8 +236,7 @@ const uploadFileChanges = async ({ dir, branch, messageHeadline, messageBody, fi
239
236
  headers: { authorization: `Bearer ${authToken}` }
240
237
  })).createCommitOnBranch.commit.oid;
241
238
  };
242
- //#endregion
243
- //#region src/github/index.ts
239
+ // src/github/index.ts
244
240
  var github_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
245
241
  apiTokenFromEnvironment: () => require_git.apiTokenFromEnvironment,
246
242
  buildNameFromEnvironment: () => require_git.buildNameFromEnvironment,
@@ -252,7 +248,6 @@ var github_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
252
248
  uploadAllFileChanges: () => uploadAllFileChanges,
253
249
  uploadFileChanges: () => uploadFileChanges
254
250
  });
255
- //#endregion
256
251
  Object.defineProperty(exports, "createCheckRun", {
257
252
  enumerable: true,
258
253
  get: function() {
@@ -1,7 +1,6 @@
1
- import { f as ChangedFile, t as index_d_exports$1 } from "./index-CLEYcnJY.mjs";
1
+ import { f as ChangedFile } from "./index-CX5l1M9F.mjs";
2
2
  import { Endpoints } from "@octokit/types";
3
3
  import { Octokit } from "@octokit/rest";
4
- //#region src/github/checkRun.d.ts
5
4
  type Output = NonNullable<Endpoints['PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}']['parameters']['output']>;
6
5
  type Annotation = NonNullable<Output['annotations']>[number];
7
6
  /**
@@ -18,6 +17,12 @@ interface CreateCheckRunParameters {
18
17
  * The final conclusion of the check.
19
18
  */
20
19
  conclusion: 'failure' | 'success';
20
+ /**
21
+ * A URL that links to the full details of the check, such as a CI build.
22
+ *
23
+ * Defaults to the homepage of the GitHub App that created the check run.
24
+ */
25
+ detailsUrl?: string;
21
26
  /**
22
27
  * The name of the check. For example, "code-coverage".
23
28
  */
@@ -43,9 +48,7 @@ interface CreateCheckRunParameters {
43
48
  * A `GITHUB_API_TOKEN` or `GITHUB_TOKEN` with the `checks:write` permission
44
49
  * must be present on the environment.
45
50
  */
46
- declare const createCheckRun: ({ annotations, conclusion, name, summary, text, title }: CreateCheckRunParameters) => Promise<void>;
47
- //#endregion
48
- //#region src/github/environment.d.ts
51
+ declare const createCheckRun: ({ annotations, conclusion, detailsUrl, name, summary, text, title }: CreateCheckRunParameters) => Promise<void>;
49
52
  /**
50
53
  * Returns the name of the build as seen in GitHub status checks.
51
54
  *
@@ -63,8 +66,6 @@ declare const enabledFromEnvironment: (env?: NodeJS.ProcessEnv) => boolean;
63
66
  * Tries to return a GitHub API token from the environment.
64
67
  */
65
68
  declare const apiTokenFromEnvironment: (env?: NodeJS.ProcessEnv) => string | undefined;
66
- //#endregion
67
- //#region src/github/pullRequest.d.ts
68
69
  interface GetPullRequestParameters {
69
70
  /**
70
71
  * A preconstructed Octokit client to interact with GitHub's APIs.
@@ -84,8 +85,6 @@ interface GetPullRequestParameters {
84
85
  * associated pull requests, or if they are all closed or locked.
85
86
  */
86
87
  declare const getPullRequestNumber: (params?: GetPullRequestParameters) => Promise<number>;
87
- //#endregion
88
- //#region src/github/issueComment.d.ts
89
88
  /**
90
89
  * https://docs.github.com/en/rest/reference/issues#create-an-issue-comment
91
90
  */
@@ -146,8 +145,6 @@ interface IssueComment {
146
145
  * on the environment.
147
146
  */
148
147
  declare const putIssueComment: (params: PutIssueCommentParameters) => Promise<IssueComment | null>;
149
- //#endregion
150
- //#region src/github/push.d.ts
151
148
  interface UploadAllFileChangesParams {
152
149
  dir: string;
153
150
  /**
@@ -234,5 +231,4 @@ declare const uploadFileChanges: ({ dir, branch, messageHeadline, messageBody, f
234
231
  declare namespace index_d_exports {
235
232
  export { Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
236
233
  }
237
- //#endregion
238
234
  export { putIssueComment as a, buildNameFromEnvironment as c, createCheckRun as d, uploadFileChanges as i, enabledFromEnvironment as l, readFileChanges as n, getPullRequestNumber as o, uploadAllFileChanges as r, apiTokenFromEnvironment as s, index_d_exports as t, Annotation as u };
@@ -1,5 +1,4 @@
1
1
  import { Plugin } from "rolldown";
2
- //#region src/rolldown/lambdaAsset.d.ts
3
2
  interface LambdaAssetFile {
4
3
  /**
5
4
  * Path to the file or directory to copy, resolved relative to `projectRoot`.
@@ -93,5 +92,4 @@ declare const lambdaAsset: ({ nodeModules, assets, projectRoot: projectRootOptio
93
92
  declare namespace index_d_exports {
94
93
  export { LambdaAssetFile, LambdaAssetOptions, lambdaAsset };
95
94
  }
96
- //#endregion
97
95
  export { lambdaAsset as i, LambdaAssetFile as n, LambdaAssetOptions as r, index_d_exports as t };
@@ -1,5 +1,4 @@
1
1
  import { Plugin } from "rolldown";
2
- //#region src/rolldown/lambdaAsset.d.ts
3
2
  interface LambdaAssetFile {
4
3
  /**
5
4
  * Path to the file or directory to copy, resolved relative to `projectRoot`.
@@ -93,5 +92,4 @@ declare const lambdaAsset: ({ nodeModules, assets, projectRoot: projectRootOptio
93
92
  declare namespace index_d_exports {
94
93
  export { LambdaAssetFile, LambdaAssetOptions, lambdaAsset };
95
94
  }
96
- //#endregion
97
95
  export { lambdaAsset as i, LambdaAssetFile as n, LambdaAssetOptions as r, index_d_exports as t };
@@ -1,4 +1,3 @@
1
- //#region src/git/commit.d.ts
2
1
  interface Identity {
3
2
  email?: string;
4
3
  name?: string;
@@ -13,8 +12,6 @@ interface CommitParameters {
13
12
  * Writes a commit to the local Git repository.
14
13
  */
15
14
  declare const commit: ({ author, committer, dir, message }: CommitParameters) => Promise<string>;
16
- //#endregion
17
- //#region src/git/getChangedFiles.d.ts
18
15
  type ChangedFileState = 'added' | 'modified' | 'deleted';
19
16
  interface ChangedFile {
20
17
  path: string;
@@ -53,8 +50,6 @@ type ChangedFilesParameters = {
53
50
  * the changes between `src` and `dst` references.
54
51
  */
55
52
  declare const getChangedFiles: ({ dir, src, dst, ignore }: ChangedFilesParameters) => Promise<ChangedFile[]>;
56
- //#endregion
57
- //#region src/git/commitAllChanges.d.ts
58
53
  interface CommitAllParameters {
59
54
  dir: string;
60
55
  message: string;
@@ -71,8 +66,6 @@ interface CommitAllParameters {
71
66
  * Stages all changes and writes a commit to the local Git repository.
72
67
  */
73
68
  declare const commitAllChanges: ({ dir, message, author, committer, ignore }: CommitAllParameters) => Promise<string | undefined>;
74
- //#endregion
75
- //#region src/git/currentBranch.d.ts
76
69
  interface CurrentBranchParameters {
77
70
  dir?: string;
78
71
  env?: Record<string, string | undefined>;
@@ -82,8 +75,6 @@ interface CurrentBranchParameters {
82
75
  * to the local Git repository when the current working `dir` is supplied.
83
76
  */
84
77
  declare const currentBranch: ({ dir, env }?: CurrentBranchParameters) => Promise<string | undefined>;
85
- //#endregion
86
- //#region src/git/findRoot.d.ts
87
78
  interface FindRootParameters {
88
79
  dir: string;
89
80
  }
@@ -92,8 +83,6 @@ interface FindRootParameters {
92
83
  * `dir`.
93
84
  */
94
85
  declare const findRoot: ({ dir }: FindRootParameters) => Promise<string | null>;
95
- //#endregion
96
- //#region src/git/log.d.ts
97
86
  interface GetHeadCommitParameters {
98
87
  dir: string;
99
88
  env?: Record<string, string | undefined>;
@@ -112,8 +101,6 @@ declare const getHeadCommitId: ({ dir, env }: GetHeadCommitParameters) => Promis
112
101
  * and falls back to the local Git repository log.
113
102
  */
114
103
  declare const getHeadCommitMessage: ({ dir, env }: GetHeadCommitParameters) => Promise<string>;
115
- //#endregion
116
- //#region src/git/remote.d.ts
117
104
  interface GetOwnerAndRepoParameters {
118
105
  dir: string;
119
106
  env?: Record<string, string | undefined>;
@@ -133,8 +120,6 @@ declare const getOwnerAndRepo: ({ dir, env }: GetOwnerAndRepoParameters) => Prom
133
120
  owner: string;
134
121
  repo: string;
135
122
  }>;
136
- //#endregion
137
- //#region src/git/push.d.ts
138
123
  /**
139
124
  * Use a GitHub app token to auth the Git push.
140
125
  *
@@ -186,8 +171,6 @@ interface PushResult {
186
171
  * Pushes the specified `ref` from the local Git repository to a remote.
187
172
  */
188
173
  declare const push: ({ auth, dir, ref, remote, remoteRef, force }: PushParameters) => Promise<PushResult>;
189
- //#endregion
190
- //#region src/git/pull.d.ts
191
174
  /**
192
175
  * Use a GitHub app token to auth the Git push.
193
176
  *
@@ -222,8 +205,6 @@ interface PullParameters {
222
205
  * Fast forwards the specified `ref` on the local Git repository to match the remote branch.
223
206
  */
224
207
  declare const fastForwardBranch: ({ auth, dir, ref, remote, remoteRef }: PullParameters) => Promise<void>;
225
- //#endregion
226
- //#region src/git/reset.d.ts
227
208
  interface ResetParameters {
228
209
  dir: string;
229
210
  branch: string;
@@ -235,8 +216,6 @@ interface ResetParameters {
235
216
  * commit.
236
217
  */
237
218
  declare const reset: ({ dir, branch, commitId, hard }: ResetParameters) => Promise<void>;
238
- //#endregion
239
- //#region src/git/isFileGitIgnored.d.ts
240
219
  declare const isFileGitIgnored: ({ absolutePath, gitRoot }: {
241
220
  absolutePath: string;
242
221
  gitRoot: string;
@@ -244,5 +223,4 @@ declare const isFileGitIgnored: ({ absolutePath, gitRoot }: {
244
223
  declare namespace index_d_exports {
245
224
  export { ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
246
225
  }
247
- //#endregion
248
226
  export { push as a, getHeadCommitMessage as c, commitAllChanges as d, ChangedFile as f, fastForwardBranch as i, findRoot as l, commit as m, isFileGitIgnored as n, getOwnerAndRepo as o, getChangedFiles as p, reset as r, getHeadCommitId as s, index_d_exports as t, currentBranch as u };
@@ -1,4 +1,3 @@
1
- //#region src/git/commit.d.ts
2
1
  interface Identity {
3
2
  email?: string;
4
3
  name?: string;
@@ -13,8 +12,6 @@ interface CommitParameters {
13
12
  * Writes a commit to the local Git repository.
14
13
  */
15
14
  declare const commit: ({ author, committer, dir, message }: CommitParameters) => Promise<string>;
16
- //#endregion
17
- //#region src/git/getChangedFiles.d.ts
18
15
  type ChangedFileState = 'added' | 'modified' | 'deleted';
19
16
  interface ChangedFile {
20
17
  path: string;
@@ -53,8 +50,6 @@ type ChangedFilesParameters = {
53
50
  * the changes between `src` and `dst` references.
54
51
  */
55
52
  declare const getChangedFiles: ({ dir, src, dst, ignore }: ChangedFilesParameters) => Promise<ChangedFile[]>;
56
- //#endregion
57
- //#region src/git/commitAllChanges.d.ts
58
53
  interface CommitAllParameters {
59
54
  dir: string;
60
55
  message: string;
@@ -71,8 +66,6 @@ interface CommitAllParameters {
71
66
  * Stages all changes and writes a commit to the local Git repository.
72
67
  */
73
68
  declare const commitAllChanges: ({ dir, message, author, committer, ignore }: CommitAllParameters) => Promise<string | undefined>;
74
- //#endregion
75
- //#region src/git/currentBranch.d.ts
76
69
  interface CurrentBranchParameters {
77
70
  dir?: string;
78
71
  env?: Record<string, string | undefined>;
@@ -82,8 +75,6 @@ interface CurrentBranchParameters {
82
75
  * to the local Git repository when the current working `dir` is supplied.
83
76
  */
84
77
  declare const currentBranch: ({ dir, env }?: CurrentBranchParameters) => Promise<string | undefined>;
85
- //#endregion
86
- //#region src/git/findRoot.d.ts
87
78
  interface FindRootParameters {
88
79
  dir: string;
89
80
  }
@@ -92,8 +83,6 @@ interface FindRootParameters {
92
83
  * `dir`.
93
84
  */
94
85
  declare const findRoot: ({ dir }: FindRootParameters) => Promise<string | null>;
95
- //#endregion
96
- //#region src/git/log.d.ts
97
86
  interface GetHeadCommitParameters {
98
87
  dir: string;
99
88
  env?: Record<string, string | undefined>;
@@ -112,8 +101,6 @@ declare const getHeadCommitId: ({ dir, env }: GetHeadCommitParameters) => Promis
112
101
  * and falls back to the local Git repository log.
113
102
  */
114
103
  declare const getHeadCommitMessage: ({ dir, env }: GetHeadCommitParameters) => Promise<string>;
115
- //#endregion
116
- //#region src/git/remote.d.ts
117
104
  interface GetOwnerAndRepoParameters {
118
105
  dir: string;
119
106
  env?: Record<string, string | undefined>;
@@ -133,8 +120,6 @@ declare const getOwnerAndRepo: ({ dir, env }: GetOwnerAndRepoParameters) => Prom
133
120
  owner: string;
134
121
  repo: string;
135
122
  }>;
136
- //#endregion
137
- //#region src/git/push.d.ts
138
123
  /**
139
124
  * Use a GitHub app token to auth the Git push.
140
125
  *
@@ -186,8 +171,6 @@ interface PushResult {
186
171
  * Pushes the specified `ref` from the local Git repository to a remote.
187
172
  */
188
173
  declare const push: ({ auth, dir, ref, remote, remoteRef, force }: PushParameters) => Promise<PushResult>;
189
- //#endregion
190
- //#region src/git/pull.d.ts
191
174
  /**
192
175
  * Use a GitHub app token to auth the Git push.
193
176
  *
@@ -222,8 +205,6 @@ interface PullParameters {
222
205
  * Fast forwards the specified `ref` on the local Git repository to match the remote branch.
223
206
  */
224
207
  declare const fastForwardBranch: ({ auth, dir, ref, remote, remoteRef }: PullParameters) => Promise<void>;
225
- //#endregion
226
- //#region src/git/reset.d.ts
227
208
  interface ResetParameters {
228
209
  dir: string;
229
210
  branch: string;
@@ -235,8 +216,6 @@ interface ResetParameters {
235
216
  * commit.
236
217
  */
237
218
  declare const reset: ({ dir, branch, commitId, hard }: ResetParameters) => Promise<void>;
238
- //#endregion
239
- //#region src/git/isFileGitIgnored.d.ts
240
219
  declare const isFileGitIgnored: ({ absolutePath, gitRoot }: {
241
220
  absolutePath: string;
242
221
  gitRoot: string;
@@ -244,5 +223,4 @@ declare const isFileGitIgnored: ({ absolutePath, gitRoot }: {
244
223
  declare namespace index_d_exports {
245
224
  export { ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
246
225
  }
247
- //#endregion
248
226
  export { push as a, getHeadCommitMessage as c, commitAllChanges as d, ChangedFile as f, fastForwardBranch as i, findRoot as l, commit as m, isFileGitIgnored as n, getOwnerAndRepo as o, getChangedFiles as p, reset as r, getHeadCommitId as s, index_d_exports as t, currentBranch as u };
@@ -0,0 +1,8 @@
1
+ declare namespace index_d_exports {
2
+ export { ensureAssetPlaceholders, normaliseTemplate };
3
+ }
4
+ declare const normaliseTemplate: (template: object) => unknown;
5
+ declare const ensureAssetPlaceholders: (dirs: readonly string[], { cwd }?: {
6
+ cwd?: string;
7
+ }) => void;
8
+ export { index_d_exports as n, normaliseTemplate as r, ensureAssetPlaceholders as t };
@@ -0,0 +1,8 @@
1
+ declare namespace index_d_exports {
2
+ export { ensureAssetPlaceholders, normaliseTemplate };
3
+ }
4
+ declare const normaliseTemplate: (template: object) => unknown;
5
+ declare const ensureAssetPlaceholders: (dirs: readonly string[], { cwd }?: {
6
+ cwd?: string;
7
+ }) => void;
8
+ export { index_d_exports as n, normaliseTemplate as r, ensureAssetPlaceholders as t };
@@ -1,4 +1,3 @@
1
- //#region src/buildkite/annotate.d.ts
2
1
  type AnnotationStyle = 'success' | 'info' | 'warning' | 'error';
3
2
  interface AnnotationOptions {
4
3
  context?: string;
@@ -24,8 +23,6 @@ interface AnnotationOptions {
24
23
  * The `buildkite-agent` binary must also be on your `PATH`.
25
24
  */
26
25
  declare const annotate: (markdown: string, opts?: AnnotationOptions) => Promise<void>;
27
- //#endregion
28
- //#region src/buildkite/md.d.ts
29
26
  /**
30
27
  * @internal
31
28
  */
@@ -35,5 +32,4 @@ declare const md: {
35
32
  declare namespace index_d_exports {
36
33
  export { AnnotationStyle, annotate, md };
37
34
  }
38
- //#endregion
39
35
  export { annotate as i, md as n, AnnotationStyle as r, index_d_exports as t };