@cbnventures/nova 0.38.0 → 0.40.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/build/package.json +1 -1
- package/build/scaffold-versions.json +10 -9
- package/build/src/api/app-store-connect.d.ts +17 -2
- package/build/src/api/app-store-connect.d.ts.map +1 -1
- package/build/src/api/app-store-connect.js +654 -171
- package/build/src/api/app-store-connect.js.map +1 -1
- package/build/src/api/docker-hub.d.ts +14 -0
- package/build/src/api/docker-hub.d.ts.map +1 -0
- package/build/src/api/docker-hub.js +275 -0
- package/build/src/api/docker-hub.js.map +1 -0
- package/build/src/api/github-runner-images.d.ts +13 -0
- package/build/src/api/github-runner-images.d.ts.map +1 -0
- package/build/src/api/github-runner-images.js +238 -0
- package/build/src/api/github-runner-images.js.map +1 -0
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +2 -2
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint-validate.js +260 -50
- package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.d.ts +6 -4
- package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.js +632 -74
- package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
- package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/agent-conventions.js +1 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
- package/build/src/cli/index.js +41 -1
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/integration/app-store-connect.d.ts +10 -0
- package/build/src/cli/integration/app-store-connect.d.ts.map +1 -1
- package/build/src/cli/integration/app-store-connect.js +701 -80
- package/build/src/cli/integration/app-store-connect.js.map +1 -1
- package/build/src/cli/recipe/docker-hub/docker-hub-precheck.d.ts +3 -0
- package/build/src/cli/recipe/docker-hub/docker-hub-precheck.d.ts.map +1 -0
- package/build/src/cli/recipe/docker-hub/docker-hub-precheck.js +72 -0
- package/build/src/cli/recipe/docker-hub/docker-hub-precheck.js.map +1 -0
- package/build/src/cli/recipe/docker-hub/sync-identity.d.ts +5 -0
- package/build/src/cli/recipe/docker-hub/sync-identity.d.ts.map +1 -0
- package/build/src/cli/recipe/docker-hub/sync-identity.js +124 -0
- package/build/src/cli/recipe/docker-hub/sync-identity.js.map +1 -0
- package/build/src/cli/recipe/docker-hub/sync-policies.d.ts +5 -0
- package/build/src/cli/recipe/docker-hub/sync-policies.d.ts.map +1 -0
- package/build/src/cli/recipe/docker-hub/sync-policies.js +63 -0
- package/build/src/cli/recipe/docker-hub/sync-policies.js.map +1 -0
- package/build/src/cli/recipe/index.d.ts.map +1 -1
- package/build/src/cli/recipe/index.js +12 -0
- package/build/src/cli/recipe/index.js.map +1 -1
- package/build/src/cli/recipe/nova-config/normalize-order.js +3 -3
- package/build/src/cli/recipe/nova-config/normalize-order.js.map +1 -1
- package/build/src/cli/scaffold/package/pfsense.d.ts +3 -0
- package/build/src/cli/scaffold/package/pfsense.d.ts.map +1 -1
- package/build/src/cli/scaffold/package/pfsense.js +140 -6
- package/build/src/cli/scaffold/package/pfsense.js.map +1 -1
- package/build/src/cli/scaffold/tool/serverless.d.ts +2 -0
- package/build/src/cli/scaffold/tool/serverless.d.ts.map +1 -1
- package/build/src/cli/scaffold/tool/serverless.js +35 -1
- package/build/src/cli/scaffold/tool/serverless.js.map +1 -1
- package/build/src/cli/utility/changelog.d.ts +7 -0
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +800 -7
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/configure.d.ts +4 -1
- package/build/src/cli/utility/configure.d.ts.map +1 -1
- package/build/src/cli/utility/configure.js +396 -24
- package/build/src/cli/utility/configure.js.map +1 -1
- package/build/src/lib/docker-packaging.d.ts +1 -0
- package/build/src/lib/docker-packaging.d.ts.map +1 -1
- package/build/src/lib/docker-packaging.js +39 -2
- package/build/src/lib/docker-packaging.js.map +1 -1
- package/build/src/lib/env-namespace.d.ts.map +1 -1
- package/build/src/lib/env-namespace.js +2 -1
- package/build/src/lib/env-namespace.js.map +1 -1
- package/build/src/lib/item.d.ts +2 -1
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +23 -0
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/nova-config-order.d.ts.map +1 -1
- package/build/src/lib/nova-config-order.js +35 -1
- package/build/src/lib/nova-config-order.js.map +1 -1
- package/build/src/lib/nova-config.d.ts +1 -0
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +178 -3
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/regex.d.ts +16 -0
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +16 -0
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/scaffold.d.ts +3 -3
- package/build/src/lib/scaffold.d.ts.map +1 -1
- package/build/src/lib/scaffold.js +111 -8
- package/build/src/lib/scaffold.js.map +1 -1
- package/build/src/lib/schema.d.ts +34 -0
- package/build/src/lib/schema.d.ts.map +1 -1
- package/build/src/lib/schema.js +31 -0
- package/build/src/lib/schema.js.map +1 -1
- package/build/src/lib/workflow-templates.d.ts +4 -1
- package/build/src/lib/workflow-templates.d.ts.map +1 -1
- package/build/src/lib/workflow-templates.js +46 -16
- package/build/src/lib/workflow-templates.js.map +1 -1
- package/build/src/types/api/app-store-connect.d.ts +476 -33
- package/build/src/types/api/docker-hub.d.ts +237 -0
- package/build/src/types/api/github-runner-images.d.ts +199 -0
- package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +79 -17
- package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +131 -9
- package/build/src/types/cli/index.d.ts +2 -0
- package/build/src/types/cli/integration/app-store-connect.d.ts +470 -6
- package/build/src/types/cli/recipe/docker-hub/docker-hub-precheck.d.ts +78 -0
- package/build/src/types/cli/recipe/docker-hub/sync-identity.d.ts +80 -0
- package/build/src/types/cli/recipe/docker-hub/sync-policies.d.ts +57 -0
- package/build/src/types/cli/recipe/index.d.ts +3 -1
- package/build/src/types/cli/scaffold/package/pfsense.d.ts +83 -0
- package/build/src/types/cli/scaffold/tool/serverless.d.ts +30 -0
- package/build/src/types/cli/utility/changelog.d.ts +327 -1
- package/build/src/types/cli/utility/configure.d.ts +199 -4
- package/build/src/types/lib/docker-packaging.d.ts +25 -1
- package/build/src/types/lib/env-namespace.d.ts +4 -1
- package/build/src/types/lib/item.d.ts +11 -0
- package/build/src/types/lib/nova-config-order.d.ts +34 -1
- package/build/src/types/lib/nova-config.d.ts +100 -0
- package/build/src/types/lib/regex.d.ts +91 -0
- package/build/src/types/lib/scaffold.d.ts +48 -4
- package/build/src/types/lib/workflow-templates.d.ts +26 -0
- package/build/src/types/shared.d.ts +353 -3
- package/build/src/types/tests/api/app-store-connect.test.d.ts +162 -0
- package/build/src/types/tests/api/docker-hub.test.d.ts +84 -0
- package/build/src/types/tests/api/github-runner-images.test.d.ts +113 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-generate.test.d.ts +19 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-parity.test.d.ts +0 -9
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +108 -25
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +139 -30
- package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +45 -0
- package/build/src/types/tests/cli/generate/github/workflows-version-contract.test.d.ts +2 -2
- package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +2 -0
- package/build/src/types/tests/cli/integration/app-store-connect.test.d.ts +876 -0
- package/build/src/types/tests/cli/recipe/nova-config/normalize-order.test.d.ts +4 -0
- package/build/src/types/tests/cli/scaffold/tool/serverless.test.d.ts +21 -0
- package/build/src/types/tests/cli/utility/changelog-android.test.d.ts +14 -0
- package/build/src/types/tests/cli/utility/changelog-apple.test.d.ts +21 -0
- package/build/src/types/tests/cli/utility/changelog-fold.test.d.ts +350 -0
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +50 -0
- package/build/src/types/tests/cli/utility/configure.test.d.ts +90 -0
- package/build/src/types/tests/lib/nova-config.test.d.ts +29 -1
- package/build/src/types/tests/lib/scaffold.test.d.ts +59 -2
- package/build/src/types/tests/scaffold-output-contract.test.d.ts +136 -0
- package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +1 -0
- package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +1 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/nova.md +6 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/pfsense.md +311 -0
- package/build/templates/scaffold/app/android/package.json +1 -1
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-ios-1024.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-128.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-128@2x.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-16.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-16@2x.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-256.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-256@2x.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-32.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-32@2x.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-512.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-512@2x.png +0 -0
- package/build/templates/scaffold/app/apple/package.json +1 -1
- package/build/templates/scaffold/app/astro/package.json +1 -1
- package/build/templates/scaffold/app/discord-bot/package.json +1 -1
- package/build/templates/scaffold/app/express/package.json +1 -1
- package/build/templates/scaffold/app/nextjs/package.json +1 -1
- package/build/templates/scaffold/app/vite/package.json +1 -1
- package/build/templates/scaffold/docs/docusaurus/package.json +2 -2
- package/build/templates/scaffold/package/github-action/package.json +1 -1
- package/build/templates/scaffold/package/homebridge/package.json +1 -1
- package/build/templates/scaffold/package/pfsense/package.json +2 -2
- package/build/templates/scaffold/package/pfsense/port/Makefile.template +16 -1
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__]/FileLock.php +93 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__]/PackagePaths.php +40 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__]/UpdateManager.php +1667 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc +161 -13
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].xml +37 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/sbin/[__WORKSPACE_NAME__] +203 -8
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/share/pfSense-pkg-[__WORKSPACE_IDENTIFIER__]/logo.svg +12 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/share/pfSense-pkg-[__WORKSPACE_IDENTIFIER__]/release-signing.pub +9 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/www/[__WORKSPACE_NAME__]-about.php +437 -0
- package/build/templates/scaffold/package/pfsense/port/pkg-plist +6 -0
- package/build/templates/scaffold/package/pfsense/scripts/build-package.sh +61 -0
- package/build/templates/scaffold/package/pfsense/scripts/check-package.mjs +114 -1
- package/build/templates/scaffold/package/pfsense/scripts/regex.mjs +10 -0
- package/build/templates/scaffold/package/pfsense/scripts/stage-package.mjs +48 -2
- package/build/templates/scaffold/package/pfsense/tests/updates.php +695 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/drawable/ic_launcher_background.xml +1 -1
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/docker-image/common/Dockerfile +7 -0
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/types/worker/index.test.d.ts +40 -2
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/types/worker/landing-page.d.ts +23 -0
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/worker/index.test.ts +119 -4
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/worker/index.ts +25 -3
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/worker/landing-page.ts +278 -0
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/api/index.test.ts +121 -6
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/api/index.ts +49 -12
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +3 -1
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/src/function/landing-page.ts +278 -0
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/src/types/api/index.d.ts +17 -2
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/src/types/api/index.test.d.ts +40 -2
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/src/types/function/landing-page.d.ts +23 -0
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/tsconfig.functions.json +3 -1
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/vercel.json +7 -1
- package/package.json +1 -1
- package/build/templates/scaffold/package/pfsense-root/.github/workflows/pfsense-[__WORKSPACE_NAME__].yml +0 -62
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { LIB_REGEX_LINEBREAK_CRLF_OR_LF, LIB_REGEX_PATTERN_GITHUB_RUNNER_LABEL, } from '../lib/regex.js';
|
|
2
|
+
import { Logger } from '../toolkit/index.js';
|
|
3
|
+
export const GITHUB_RUNNER_IMAGES_README_URL = 'https://raw.githubusercontent.com/actions/runner-images/main/README.md';
|
|
4
|
+
export class Runner {
|
|
5
|
+
static #images;
|
|
6
|
+
static #populated;
|
|
7
|
+
static async fetchRunnerImages() {
|
|
8
|
+
if (Runner.#populated === true) {
|
|
9
|
+
return Runner.#images;
|
|
10
|
+
}
|
|
11
|
+
try {
|
|
12
|
+
const response = await fetch(GITHUB_RUNNER_IMAGES_README_URL);
|
|
13
|
+
if (response.ok === false) {
|
|
14
|
+
Logger.customize({
|
|
15
|
+
name: 'Runner',
|
|
16
|
+
purpose: 'fetch',
|
|
17
|
+
}).error(`Failed to fetch GitHub runner images. HTTP status: ${response.status}`);
|
|
18
|
+
Runner.#populated = true;
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
const markdown = await response.text();
|
|
22
|
+
const parsedImages = Runner.parseReadme(markdown);
|
|
23
|
+
if (parsedImages === undefined) {
|
|
24
|
+
Logger.customize({
|
|
25
|
+
name: 'Runner',
|
|
26
|
+
purpose: 'parse',
|
|
27
|
+
}).error('Failed to parse GitHub runner images from the runner-images README.');
|
|
28
|
+
Runner.#populated = true;
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
Runner.#images = parsedImages;
|
|
32
|
+
Runner.#populated = true;
|
|
33
|
+
return Runner.#images;
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
const errorMessage = [
|
|
37
|
+
'Failed to fetch GitHub runner images.',
|
|
38
|
+
error,
|
|
39
|
+
].join('\n');
|
|
40
|
+
Logger.customize({
|
|
41
|
+
name: 'Runner',
|
|
42
|
+
purpose: 'fetch',
|
|
43
|
+
}).error(errorMessage);
|
|
44
|
+
Runner.#populated = true;
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
static parseReadme(markdown) {
|
|
49
|
+
const lines = markdown.split(LIB_REGEX_LINEBREAK_CRLF_OR_LF);
|
|
50
|
+
const headingIndex = lines.findIndex((line) => line.trim().toLowerCase() === '## available images');
|
|
51
|
+
if (headingIndex === -1) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
let headerRowIndex = -1;
|
|
55
|
+
for (let rowIndex = headingIndex + 1; rowIndex < lines.length; rowIndex += 1) {
|
|
56
|
+
const candidateRow = lines[rowIndex] ?? '';
|
|
57
|
+
const candidateRowTrimmed = candidateRow.trimStart();
|
|
58
|
+
if (candidateRowTrimmed.startsWith('## ') === true) {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
if (candidateRowTrimmed.startsWith('|') === true) {
|
|
62
|
+
headerRowIndex = rowIndex;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (headerRowIndex === -1) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
const headerCells = Runner.#parseCells(lines[headerRowIndex] ?? '');
|
|
70
|
+
const separatorRowIndex = headerRowIndex + 1;
|
|
71
|
+
const separatorCells = Runner.#parseCells(lines[separatorRowIndex] ?? '');
|
|
72
|
+
if (Runner.#isSeparatorRow(separatorCells) === false) {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
const imageColumnIndex = headerCells.findIndex((header) => header.toLowerCase() === 'image');
|
|
76
|
+
const architectureColumnIndex = headerCells.findIndex((header) => header.toLowerCase() === 'architecture');
|
|
77
|
+
const labelColumnIndex = headerCells.findIndex((header) => header.toLowerCase() === 'yaml label');
|
|
78
|
+
if (imageColumnIndex === -1
|
|
79
|
+
|| architectureColumnIndex === -1
|
|
80
|
+
|| labelColumnIndex === -1) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
const images = [];
|
|
84
|
+
let hasUbuntu = false;
|
|
85
|
+
let hasMacos = false;
|
|
86
|
+
let hasWindows = false;
|
|
87
|
+
for (let rowIndex = separatorRowIndex + 1; rowIndex < lines.length; rowIndex += 1) {
|
|
88
|
+
const row = lines[rowIndex] ?? '';
|
|
89
|
+
if (row.trimStart().startsWith('|') === false) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
const cells = Runner.#parseCells(row);
|
|
93
|
+
if (Runner.#isSeparatorRow(cells) === true) {
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
const imageCell = cells[imageColumnIndex];
|
|
97
|
+
const architectureCell = cells[architectureColumnIndex];
|
|
98
|
+
const labelCell = cells[labelColumnIndex];
|
|
99
|
+
if (imageCell === undefined
|
|
100
|
+
|| architectureCell === undefined
|
|
101
|
+
|| labelCell === undefined) {
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
let nameEnd = imageCell.length;
|
|
105
|
+
const breakIndex = imageCell.toLowerCase().indexOf('<br');
|
|
106
|
+
const badgeIndex = imageCell.indexOf('[![');
|
|
107
|
+
if (breakIndex !== -1 && breakIndex < nameEnd) {
|
|
108
|
+
nameEnd = breakIndex;
|
|
109
|
+
}
|
|
110
|
+
if (badgeIndex !== -1 && badgeIndex < nameEnd) {
|
|
111
|
+
nameEnd = badgeIndex;
|
|
112
|
+
}
|
|
113
|
+
const name = imageCell.slice(0, nameEnd).trim();
|
|
114
|
+
const architecture = architectureCell.trim();
|
|
115
|
+
if (name.length === 0
|
|
116
|
+
|| (architecture !== 'x64'
|
|
117
|
+
&& architecture !== 'arm64')) {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
const labels = [];
|
|
121
|
+
let cursor = 0;
|
|
122
|
+
while (cursor < labelCell.length) {
|
|
123
|
+
const openIndex = labelCell.indexOf('`', cursor);
|
|
124
|
+
if (openIndex === -1) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
const closeIndex = labelCell.indexOf('`', openIndex + 1);
|
|
128
|
+
if (closeIndex === -1) {
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
const label = labelCell.slice(openIndex + 1, closeIndex).trim();
|
|
132
|
+
if (label.length === 0 || LIB_REGEX_PATTERN_GITHUB_RUNNER_LABEL.test(label) === false) {
|
|
133
|
+
return undefined;
|
|
134
|
+
}
|
|
135
|
+
labels.push(label);
|
|
136
|
+
if (label.startsWith('ubuntu-') === true) {
|
|
137
|
+
hasUbuntu = true;
|
|
138
|
+
}
|
|
139
|
+
if (label.startsWith('macos-') === true) {
|
|
140
|
+
hasMacos = true;
|
|
141
|
+
}
|
|
142
|
+
if (label.startsWith('windows-') === true) {
|
|
143
|
+
hasWindows = true;
|
|
144
|
+
}
|
|
145
|
+
cursor = closeIndex + 1;
|
|
146
|
+
}
|
|
147
|
+
if (labels.length === 0) {
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
let status = 'available';
|
|
151
|
+
if (imageCell.includes('/badge/deprecated-') === true) {
|
|
152
|
+
status = 'deprecated';
|
|
153
|
+
}
|
|
154
|
+
else if (imageCell.includes('/badge/preview-') === true) {
|
|
155
|
+
status = 'preview';
|
|
156
|
+
}
|
|
157
|
+
const image = {
|
|
158
|
+
name,
|
|
159
|
+
architecture,
|
|
160
|
+
labels,
|
|
161
|
+
status,
|
|
162
|
+
};
|
|
163
|
+
images.push(image);
|
|
164
|
+
}
|
|
165
|
+
if (images.length === 0
|
|
166
|
+
|| hasUbuntu === false
|
|
167
|
+
|| hasMacos === false
|
|
168
|
+
|| hasWindows === false) {
|
|
169
|
+
return undefined;
|
|
170
|
+
}
|
|
171
|
+
return images;
|
|
172
|
+
}
|
|
173
|
+
static isLatestLabel(label) {
|
|
174
|
+
return label.includes('-latest');
|
|
175
|
+
}
|
|
176
|
+
static isPaidLabel(label) {
|
|
177
|
+
return label.endsWith('-large') || label.endsWith('-xlarge');
|
|
178
|
+
}
|
|
179
|
+
static selectableLabels(images) {
|
|
180
|
+
const labels = [];
|
|
181
|
+
const seen = new Set();
|
|
182
|
+
for (const imageEntry of images) {
|
|
183
|
+
const image = imageEntry;
|
|
184
|
+
if (image['status'] !== 'available') {
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
for (const labelEntry of image['labels']) {
|
|
188
|
+
const label = labelEntry;
|
|
189
|
+
if (Runner.isLatestLabel(label) === true || seen.has(label) === true) {
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
seen.add(label);
|
|
193
|
+
labels.push({
|
|
194
|
+
label,
|
|
195
|
+
architecture: image['architecture'],
|
|
196
|
+
imageName: image['name'],
|
|
197
|
+
paid: Runner.isPaidLabel(label),
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return labels;
|
|
202
|
+
}
|
|
203
|
+
static findLabel(images, label) {
|
|
204
|
+
for (const imageEntry of images) {
|
|
205
|
+
const image = imageEntry;
|
|
206
|
+
if (image['labels'].includes(label) === true) {
|
|
207
|
+
return {
|
|
208
|
+
image,
|
|
209
|
+
status: image['status'],
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return undefined;
|
|
214
|
+
}
|
|
215
|
+
static resetForTesting() {
|
|
216
|
+
Runner.#images = undefined;
|
|
217
|
+
Runner.#populated = undefined;
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
static #parseCells(row) {
|
|
221
|
+
const withPlaceholders = row.replaceAll('\\|', '\x00');
|
|
222
|
+
const parts = withPlaceholders.split('|');
|
|
223
|
+
const hasTrailingPipe = row.trimEnd().endsWith('|') === true;
|
|
224
|
+
const rawCells = (hasTrailingPipe === true) ? parts.slice(1, -1) : parts.slice(1);
|
|
225
|
+
return rawCells.map((cell) => cell.trim().replaceAll('\x00', '|'));
|
|
226
|
+
}
|
|
227
|
+
static #isSeparatorRow(cells) {
|
|
228
|
+
if (cells.length === 0) {
|
|
229
|
+
return false;
|
|
230
|
+
}
|
|
231
|
+
return cells.every((cell) => {
|
|
232
|
+
const withoutDashes = cell.split('-').join('');
|
|
233
|
+
const withoutColons = withoutDashes.split(':').join('').trim();
|
|
234
|
+
return cell.includes('-') === true && withoutColons.length === 0;
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
//# sourceMappingURL=github-runner-images.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-runner-images.js","sourceRoot":"","sources":["../../../src/api/github-runner-images.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,qCAAqC,GACtC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAiF7C,MAAM,CAAC,MAAM,+BAA+B,GAAqC,wEAAwE,CAAC;AAU1J,MAAM,OAAO,MAAM;IAWjB,MAAM,CAAC,OAAO,CAAuC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AClH,MAAM,KAAK,GAAmD,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1F,MAAM,eAAe,GAA6D,GAAG,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;QACvH,MAAM,QAAQ,GAAsD,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAErI,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IACrE,CAAC;IAgBD,MAAM,CAAC,eAAe,CAAC,KAAyD;QAC9E,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE;YAC1B,MAAM,aAAa,GAA+D,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC3G,MAAM,aAAa,GAA+D,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YAE3H,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Artifacts, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Environment, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_RawWorkflows, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Returns, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_VersionStrategy, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Workspaces } from '../../../types/cli/generate/github/workflows-blueprint-validate.d.ts';
|
|
1
|
+
import type { Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Artifacts, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_DockerHub, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Environment, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_RawWorkflows, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Returns, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_RunnerImages, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_VersionStrategy, Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Workspaces } from '../../../types/cli/generate/github/workflows-blueprint-validate.d.ts';
|
|
2
2
|
export declare class Runner {
|
|
3
|
-
static validate(rawWorkflows: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_RawWorkflows, workspaces: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Workspaces, versionStrategy?: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_VersionStrategy, environment?: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Environment, artifacts?: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Artifacts): Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Returns;
|
|
3
|
+
static validate(rawWorkflows: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_RawWorkflows, workspaces: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Workspaces, versionStrategy?: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_VersionStrategy, environment?: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Environment, artifacts?: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Artifacts, dockerHub?: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_DockerHub, runnerImages?: Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_RunnerImages): Cli_Generate_Github_WorkflowsBlueprintValidate_Runner_Validate_Returns;
|
|
4
4
|
private static detectCircularDependsOn;
|
|
5
5
|
private static isNonEmptyStringArray;
|
|
6
6
|
private static isContainerCoordinateComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows-blueprint-validate.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows-blueprint-validate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflows-blueprint-validate.d.ts","sourceRoot":"","sources":["../../../../../src/cli/generate/github/workflows-blueprint-validate.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAsCV,wEAAwE,EAqBxE,wEAAwE,EAaxE,0EAA0E,EA+C1E,2EAA2E,EAK3E,sEAAsE,EACtE,2EAA2E,EAiD3E,8EAA8E,EAM9E,yEAAyE,EAI1E,MAAM,sEAAsE,CAAC;AAsF9E,qBAAa,MAAM;WAmBH,QAAQ,CAAC,YAAY,EAAE,2EAA2E,EAAE,UAAU,EAAE,yEAAyE,EAAE,eAAe,GAAE,8EAAyF,EAAE,WAAW,GAAE,0EAA+E,EAAE,SAAS,GAAE,wEAA6E,EAAE,SAAS,GAAE,wEAAoF,EAAE,YAAY,GAAE,2EAAuF,GAAG,sEAAsE;IA+sC5vB,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAoEtC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAoBpC,OAAO,CAAC,MAAM,CAAC,8BAA8B;IAoB7C,OAAO,CAAC,MAAM,CAAC,qBAAqB;IA2BpC,OAAO,CAAC,MAAM,CAAC,aAAa;IAoB5B,OAAO,CAAC,MAAM,CAAC,4BAA4B;IA+C3C,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAsCpC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IA8ClC,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAahC"}
|