@alicesystems/cli 0.0.0-stage → 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +29 -2
- package/dist/apps/cli/package.json +17 -0
- package/dist/apps/cli/src/commands/init/index.mjs +45 -0
- package/dist/apps/cli/src/commands/init/prompts.mjs +38 -0
- package/dist/apps/cli/src/helpers/validation.mjs +53 -0
- package/dist/apps/cli/src/index.mjs +37 -0
- package/dist/index.mjs +2 -0
- package/dist/packages/template-generator/src/foundation.mjs +128 -0
- package/dist/packages/template-generator/templates/README.md +7 -0
- package/dist/packages/template-generator/templates/base/.editorconfig +12 -0
- package/dist/packages/template-generator/templates/base/.env.example +2 -0
- package/dist/packages/template-generator/templates/base/.gitattributes +3 -0
- package/dist/packages/template-generator/templates/base/.github/workflows/ci.yml +31 -0
- package/dist/packages/template-generator/templates/base/.gitleaks.toml +7 -0
- package/dist/packages/template-generator/templates/base/.husky/pre-commit +2 -0
- package/dist/packages/template-generator/templates/base/.husky/pre-push +2 -0
- package/dist/packages/template-generator/templates/base/.node-version +1 -0
- package/dist/packages/template-generator/templates/base/AGENTS.md +11 -0
- package/dist/packages/template-generator/templates/base/README.md +26 -0
- package/dist/packages/template-generator/templates/base/alice.json +38 -0
- package/dist/packages/template-generator/templates/base/biome.json +27 -0
- package/dist/packages/template-generator/templates/base/documentation/architecture.md +13 -0
- package/dist/packages/template-generator/templates/base/documentation/environment.md +24 -0
- package/dist/packages/template-generator/templates/base/documentation/infisical.md +39 -0
- package/dist/packages/template-generator/templates/base/documentation/validation-results.md +25 -0
- package/dist/packages/template-generator/templates/base/documentation/validation.md +21 -0
- package/dist/packages/template-generator/templates/base/lint-staged.config.mjs +3 -0
- package/dist/packages/template-generator/templates/base/package.json +42 -0
- package/dist/packages/template-generator/templates/base/packages/env/README.md +9 -0
- package/dist/packages/template-generator/templates/base/packages/env/package.json +32 -0
- package/dist/packages/template-generator/templates/base/packages/env/src/client.ts +5 -0
- package/dist/packages/template-generator/templates/base/packages/env/src/policy.ts +9 -0
- package/dist/packages/template-generator/templates/base/packages/env/src/server.ts +15 -0
- package/dist/packages/template-generator/templates/base/packages/env/tests/env.test.ts +66 -0
- package/dist/packages/template-generator/templates/base/packages/env/tsconfig.json +10 -0
- package/dist/packages/template-generator/templates/base/packages/env/tsconfig.tooling.json +9 -0
- package/dist/packages/template-generator/templates/base/packages/env/tsdown.config.ts +11 -0
- package/dist/packages/template-generator/templates/base/packages/env/vitest.config.ts +16 -0
- package/dist/packages/template-generator/templates/base/packages/typescript/README.md +7 -0
- package/dist/packages/template-generator/templates/base/packages/typescript/base.json +15 -0
- package/dist/packages/template-generator/templates/base/packages/typescript/bundler.json +9 -0
- package/dist/packages/template-generator/templates/base/packages/typescript/nextjs.json +12 -0
- package/dist/packages/template-generator/templates/base/packages/typescript/node.json +6 -0
- package/dist/packages/template-generator/templates/base/packages/typescript/package.json +12 -0
- package/dist/packages/template-generator/templates/base/packages/typescript/react.json +8 -0
- package/dist/packages/template-generator/templates/base/pnpm-lock.yaml +1664 -0
- package/dist/packages/template-generator/templates/base/pnpm-workspace.yaml +10 -0
- package/dist/packages/template-generator/templates/base/scripts/check-presets.mjs +14 -0
- package/dist/packages/template-generator/templates/base/scripts/e2e.mjs +8 -0
- package/dist/packages/template-generator/templates/base/scripts/infisical-connect.mjs +119 -0
- package/dist/packages/template-generator/templates/base/scripts/infisical-local.mjs +509 -0
- package/dist/packages/template-generator/templates/base/scripts/prepare.mjs +15 -0
- package/dist/packages/template-generator/templates/base/scripts/secrets.mjs +68 -0
- package/dist/packages/template-generator/templates/base/scripts/security-tools.mjs +58 -0
- package/dist/packages/template-generator/templates/base/scripts/setup-infisical-local.mjs +115 -0
- package/dist/packages/template-generator/templates/base/scripts/setup-local.mjs +8 -0
- package/dist/packages/template-generator/templates/base/tests/fixtures/browser/boundary.ts +13 -0
- package/dist/packages/template-generator/templates/base/tests/fixtures/browser/tsconfig.json +8 -0
- package/dist/packages/template-generator/templates/base/tests/fixtures/node/boundary.ts +4 -0
- package/dist/packages/template-generator/templates/base/tests/fixtures/node/tsconfig.json +4 -0
- package/dist/packages/template-generator/templates/base/tests/foundation.test.mjs +39 -0
- package/dist/packages/template-generator/templates/base/tooling/ultracite/LICENSE +7 -0
- package/dist/packages/template-generator/templates/base/tooling/ultracite/README.md +10 -0
- package/dist/packages/template-generator/templates/base/tooling/ultracite/core/biome.jsonc +706 -0
- package/dist/packages/template-generator/templates/base/tsconfig.json +1 -0
- package/dist/packages/template-generator/templates/base/turbo.json +28 -0
- package/package.json +15 -4
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { existsSync, readdirSync } from "node:fs";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
|
|
5
|
+
const binary = resolve(
|
|
6
|
+
".tools/gitleaks-8.30.1",
|
|
7
|
+
process.platform === "win32" ? "gitleaks.exe" : "gitleaks",
|
|
8
|
+
);
|
|
9
|
+
if (!existsSync(binary)) {
|
|
10
|
+
throw new Error(
|
|
11
|
+
"Secret scan unavailable. Run pnpm security:tools to obtain the verified workspace scanner.",
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
const version = spawnSync(binary, ["version"], { encoding: "utf8" });
|
|
15
|
+
if (version.status !== 0 || version.stdout.trim() !== "8.30.1") {
|
|
16
|
+
throw new Error("Unexpected secret scanner version.");
|
|
17
|
+
}
|
|
18
|
+
const scannerOptions = ["--redact=100", "--no-banner", "--config", ".gitleaks.toml"];
|
|
19
|
+
|
|
20
|
+
if (process.argv.includes("--staged")) {
|
|
21
|
+
const names = spawnSync("git", ["diff", "--cached", "--name-only", "--diff-filter=ACMR", "-z"], {
|
|
22
|
+
encoding: "utf8",
|
|
23
|
+
maxBuffer: 16 * 1024 * 1024,
|
|
24
|
+
});
|
|
25
|
+
if (names.status !== 0 || names.error) {
|
|
26
|
+
throw new Error("Unable to determine staged scan scope.");
|
|
27
|
+
}
|
|
28
|
+
for (const filename of names.stdout.split("\0").filter(Boolean)) {
|
|
29
|
+
const content = spawnSync("git", ["show", `:${filename}`], { maxBuffer: 16 * 1024 * 1024 });
|
|
30
|
+
if (content.status !== 0 || content.error) {
|
|
31
|
+
throw new Error("Unable to read an indexed file safely. Secret scanning is incomplete.");
|
|
32
|
+
}
|
|
33
|
+
const result = spawnSync(binary, ["stdin", ...scannerOptions], {
|
|
34
|
+
input: content.stdout,
|
|
35
|
+
stdio: ["pipe", "inherit", "inherit"],
|
|
36
|
+
});
|
|
37
|
+
if (result.status !== 0) {
|
|
38
|
+
process.exit(result.status ?? 1);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
console.log("Indexed file contents passed secret scanning.");
|
|
42
|
+
} else {
|
|
43
|
+
if (existsSync(".git")) {
|
|
44
|
+
const trackedEnv = spawnSync("git", ["ls-files", "--", ".env"], { encoding: "utf8" });
|
|
45
|
+
if (trackedEnv.error || trackedEnv.status !== 0 || trackedEnv.stdout.trim()) {
|
|
46
|
+
throw new Error(
|
|
47
|
+
"Root .env must remain untracked; scan cannot proceed with tracked local values or an unreadable index.",
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Omit only the intentional root value file, never nested env files or staged content.
|
|
52
|
+
const excluded = new Set([".env", ".git", "node_modules", ".tools"]);
|
|
53
|
+
const entries = readdirSync(".").filter((entry) => !excluded.has(entry));
|
|
54
|
+
for (const entry of entries) {
|
|
55
|
+
const result = spawnSync(binary, ["dir", entry, ...scannerOptions, "--log-level", "warn"], {
|
|
56
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
57
|
+
});
|
|
58
|
+
if (result.status !== 0 || result.error) {
|
|
59
|
+
console.error(
|
|
60
|
+
`Secret scan failed for ${entry}; check it with the pinned scanner and --redact=100.`,
|
|
61
|
+
);
|
|
62
|
+
process.exit(result.status ?? 1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
console.log(
|
|
66
|
+
"Workspace files passed secret scanning; the untracked root value file was excluded. Staged scanning remains strict.",
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
|
+
import { resolve } from "node:path";
|
|
5
|
+
|
|
6
|
+
const assets = {
|
|
7
|
+
"linux-x64": {
|
|
8
|
+
name: "gitleaks_8.30.1_linux_x64.tar.gz",
|
|
9
|
+
sha256: "551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb",
|
|
10
|
+
},
|
|
11
|
+
"win32-x64": {
|
|
12
|
+
name: "gitleaks_8.30.1_windows_x64.zip",
|
|
13
|
+
sha256: "d29144deff3a68aa93ced33dddf84b7fdc26070add4aa0f4513094c8332afc4e",
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const asset = assets[`${process.platform}-${process.arch}`];
|
|
17
|
+
if (!asset) {
|
|
18
|
+
throw new Error("This reference scanner fixture supports Windows/Linux x64 only.");
|
|
19
|
+
}
|
|
20
|
+
const directory = resolve(".tools/gitleaks-8.30.1");
|
|
21
|
+
mkdirSync(directory, { recursive: true });
|
|
22
|
+
const archive = resolve(directory, asset.name);
|
|
23
|
+
if (!existsSync(archive)) {
|
|
24
|
+
const response = await fetch(
|
|
25
|
+
`https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/${asset.name}`,
|
|
26
|
+
);
|
|
27
|
+
if (!response.ok) {
|
|
28
|
+
throw new Error("Could not download the pinned scanner.");
|
|
29
|
+
}
|
|
30
|
+
writeFileSync(archive, Buffer.from(await response.arrayBuffer()));
|
|
31
|
+
}
|
|
32
|
+
if (createHash("sha256").update(readFileSync(archive)).digest("hex") !== asset.sha256) {
|
|
33
|
+
throw new Error("Scanner checksum mismatch. Refusing extraction.");
|
|
34
|
+
}
|
|
35
|
+
const result =
|
|
36
|
+
process.platform === "win32"
|
|
37
|
+
? spawnSync(
|
|
38
|
+
"powershell.exe",
|
|
39
|
+
[
|
|
40
|
+
"-NoProfile",
|
|
41
|
+
"-NonInteractive",
|
|
42
|
+
"-Command",
|
|
43
|
+
"Add-Type -AssemblyName System.IO.Compression.FileSystem; $toolArchive = [IO.Compression.ZipFile]::OpenRead($env:ALICE_SCANNER_ARCHIVE); try { $toolEntry = $toolArchive.GetEntry('gitleaks.exe'); [IO.Compression.ZipFileExtensions]::ExtractToFile($toolEntry, (Join-Path $env:ALICE_SCANNER_DIRECTORY 'gitleaks.exe'), $true) } finally { $toolArchive.Dispose() }",
|
|
44
|
+
],
|
|
45
|
+
{
|
|
46
|
+
env: {
|
|
47
|
+
...process.env,
|
|
48
|
+
ALICE_SCANNER_ARCHIVE: archive,
|
|
49
|
+
ALICE_SCANNER_DIRECTORY: directory,
|
|
50
|
+
},
|
|
51
|
+
stdio: "inherit",
|
|
52
|
+
},
|
|
53
|
+
)
|
|
54
|
+
: spawnSync("tar", ["-xzf", archive, "-C", directory], { stdio: "inherit" });
|
|
55
|
+
if (result.status !== 0) {
|
|
56
|
+
throw new Error("Scanner extraction failed.");
|
|
57
|
+
}
|
|
58
|
+
console.log("Verified Gitleaks 8.30.1 cached inside this workspace.");
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { createInterface } from "node:readline/promises";
|
|
2
|
+
import { pathToFileURL } from "node:url";
|
|
3
|
+
import { parseArgs } from "node:util";
|
|
4
|
+
import { linkLocalProject } from "./infisical-connect.mjs";
|
|
5
|
+
import { images, localPlan, setupLocal } from "./infisical-local.mjs";
|
|
6
|
+
|
|
7
|
+
export async function runLocalSetup(args = process.argv.slice(2)) {
|
|
8
|
+
const { values } = parseArgs({
|
|
9
|
+
args,
|
|
10
|
+
options: {
|
|
11
|
+
interactive: { default: false, type: "boolean" },
|
|
12
|
+
port: { default: "8088", type: "string" },
|
|
13
|
+
start: { default: false, type: "boolean" },
|
|
14
|
+
target: { default: process.cwd(), type: "string" },
|
|
15
|
+
write: { default: false, type: "boolean" },
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
let port = Number(values.port);
|
|
19
|
+
let { start } = values;
|
|
20
|
+
let write = values.write || start;
|
|
21
|
+
let terminal;
|
|
22
|
+
try {
|
|
23
|
+
if (values.interactive) {
|
|
24
|
+
if (!(process.stdin.isTTY && process.stdout.isTTY)) {
|
|
25
|
+
throw new Error(
|
|
26
|
+
"Interactive setup needs a terminal. Use --target <path> --write --start for explicit automation.",
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
terminal = createInterface({ input: process.stdin, output: process.stdout });
|
|
30
|
+
port = Number((await terminal.question(`Local web port [${port}]: `)).trim() || port);
|
|
31
|
+
}
|
|
32
|
+
const plan = await localPlan(values.target, port);
|
|
33
|
+
console.log(`Local Infisical: ${plan.url}`);
|
|
34
|
+
console.log(`Docker project: ${plan.project}`);
|
|
35
|
+
console.log(
|
|
36
|
+
`Images: ${Object.values(images)
|
|
37
|
+
.map((image) => image.split("@")[0])
|
|
38
|
+
.join(", ")}`,
|
|
39
|
+
);
|
|
40
|
+
console.log(
|
|
41
|
+
"Three isolated containers: Infisical plus its private PostgreSQL and Redis. No database/cache app packages are added.",
|
|
42
|
+
);
|
|
43
|
+
console.log(
|
|
44
|
+
"Only the web interface is published, on 127.0.0.1. Named Docker volumes retain data when containers stop.",
|
|
45
|
+
);
|
|
46
|
+
console.log(
|
|
47
|
+
"Bootstrap keys live only in your ignored root .env under ALICE_INFISICAL_*; keep a secure backup of that file and the database volume together.",
|
|
48
|
+
);
|
|
49
|
+
console.log(
|
|
50
|
+
"Losing/replacing the encryption key can prevent recovery. Do not run down --volumes or share the root .env. Docker administrators can inspect container secrets.",
|
|
51
|
+
);
|
|
52
|
+
console.log(
|
|
53
|
+
"This is a local development stack. Account creation is a browser step; project linking and root-value sync remain pending. Email delivery is not configured.",
|
|
54
|
+
);
|
|
55
|
+
if (terminal) {
|
|
56
|
+
const choice = (
|
|
57
|
+
await terminal.question("Create configuration and start this local Docker stack? [y/N]: ")
|
|
58
|
+
)
|
|
59
|
+
.trim()
|
|
60
|
+
.toLowerCase();
|
|
61
|
+
if (!["y", "yes"].includes(choice)) {
|
|
62
|
+
console.log("Cancelled. No setup files were changed.");
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
write = true;
|
|
66
|
+
start = true;
|
|
67
|
+
}
|
|
68
|
+
if (!write) {
|
|
69
|
+
console.log(
|
|
70
|
+
"Preview only. Use --write to configure or --write --start to configure and start.",
|
|
71
|
+
);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
await setupLocal(plan.root, { port, start });
|
|
75
|
+
console.log(
|
|
76
|
+
start
|
|
77
|
+
? "Instance readiness verified. Account/project setup and secret sync have not been verified."
|
|
78
|
+
: "Configuration created; container startup and readiness have not been verified.",
|
|
79
|
+
);
|
|
80
|
+
console.log(
|
|
81
|
+
`Open ${plan.url} to create the instance administrator and choose/create your organisation and secrets project.`,
|
|
82
|
+
);
|
|
83
|
+
console.log(
|
|
84
|
+
"Do not upload the complete root .env: ALICE_INFISICAL_* keys belong to the secrets service bootstrap, not the project.",
|
|
85
|
+
);
|
|
86
|
+
if (terminal && start) {
|
|
87
|
+
const account = (
|
|
88
|
+
await terminal.question(
|
|
89
|
+
"Once you have created your browser account and secrets project, connect the CLI now? [y/N]: ",
|
|
90
|
+
)
|
|
91
|
+
)
|
|
92
|
+
.trim()
|
|
93
|
+
.toLowerCase();
|
|
94
|
+
if (["y", "yes"].includes(account)) {
|
|
95
|
+
terminal.close();
|
|
96
|
+
terminal = undefined;
|
|
97
|
+
const connection = await linkLocalProject(plan);
|
|
98
|
+
console.log(
|
|
99
|
+
`CLI project linked using profile ${connection.profile}. Access verification, environment setup and secret sync remain pending.`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
} finally {
|
|
104
|
+
terminal?.close();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|
109
|
+
try {
|
|
110
|
+
await runLocalSetup();
|
|
111
|
+
} catch (error) {
|
|
112
|
+
console.error(error.message);
|
|
113
|
+
process.exitCode = 1;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { existsSync, writeFileSync } from "node:fs";
|
|
2
|
+
|
|
3
|
+
if (existsSync(".env")) {
|
|
4
|
+
console.log("Kept the existing root .env unchanged.");
|
|
5
|
+
} else {
|
|
6
|
+
writeFileSync(".env", "NODE_ENV=development\n", { flag: "wx", mode: 0o600 });
|
|
7
|
+
console.log("Created the ignored root .env with the development runtime mode.");
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createEnv } from "@alice-reference/env/client";
|
|
2
|
+
|
|
3
|
+
export const createPublicEnv = createEnv;
|
|
4
|
+
export const browserUrl = new URL("https://example.test");
|
|
5
|
+
// @ts-expect-error Browser source must not inherit Node globals.
|
|
6
|
+
process.exit(0);
|
|
7
|
+
// @ts-expect-error Exact optional properties distinguish absence from undefined.
|
|
8
|
+
const options: { value?: string } = { value: undefined };
|
|
9
|
+
const entries: Record<string, string> = {};
|
|
10
|
+
// @ts-expect-error Indexed values may be missing.
|
|
11
|
+
const value: string = entries.missing;
|
|
12
|
+
|
|
13
|
+
export { options, value };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { readdirSync, readFileSync } from "node:fs";
|
|
3
|
+
import test from "node:test";
|
|
4
|
+
|
|
5
|
+
const readJson = (path) => JSON.parse(readFileSync(path, "utf8"));
|
|
6
|
+
const invalidEnvironment = /Environment validation failed/;
|
|
7
|
+
const forbiddenClientSource = /process\.env|createBaseEnv|NODE_ENV|from\s+["']node:/;
|
|
8
|
+
const unresolvedAlias = /from\s+["']@\//;
|
|
9
|
+
|
|
10
|
+
test("base has exactly two scoped packages and no apps or deployments", () => {
|
|
11
|
+
assert.deepEqual(readdirSync("packages").sort(), ["env", "typescript"]);
|
|
12
|
+
const manifest = readJson(process.env.ALICE_INIT_CANDIDATE_MANIFEST ?? "alice.json");
|
|
13
|
+
assert.deepEqual(manifest.apps, {});
|
|
14
|
+
assert.deepEqual(manifest.deployments, {});
|
|
15
|
+
for (const name of ["env", "typescript"]) {
|
|
16
|
+
assert.equal(readJson(`packages/${name}/package.json`).name, `@alice-reference/${name}`);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test("built server helpers compose without reading a global secret object", async () => {
|
|
21
|
+
const { createBaseEnv } = await import("@alice-reference/env/server");
|
|
22
|
+
assert.equal(createBaseEnv({ NODE_ENV: "production" }).NODE_ENV, "production");
|
|
23
|
+
assert.throws(() => createBaseEnv({ NODE_ENV: "staging" }), invalidEnvironment);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test("client output has no server implementation or Node environment access", () => {
|
|
27
|
+
const output = readFileSync("packages/env/dist/client.js", "utf8");
|
|
28
|
+
assert.doesNotMatch(output, forbiddenClientSource);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
test("build resolves private aliases and exports runnable entry points", () => {
|
|
32
|
+
const manifest = readJson("packages/env/package.json");
|
|
33
|
+
assert.equal(manifest.exports["."], undefined);
|
|
34
|
+
for (const boundary of ["server", "client"]) {
|
|
35
|
+
const output = readFileSync(`packages/env/dist/${boundary}.js`, "utf8");
|
|
36
|
+
assert.doesNotMatch(output, unresolvedAlias);
|
|
37
|
+
assert.ok(readFileSync(`packages/env/dist/${boundary}.d.ts`, "utf8").length > 0);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2022 — Present Hayden Bleasel
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Pinned Ultracite Biome preset
|
|
2
|
+
|
|
3
|
+
This is the core preset from ultracite 7.12.4, distributed under the accompanying MIT licence. Source: https://github.com/haydenbleasel/ultracite and the published npm package ultracite@7.12.4.
|
|
4
|
+
|
|
5
|
+
The template invokes Biome directly, so the Ultracite setup CLI is unnecessary. Its fast-glob/micromatch/braces dependency currently triggers GHSA-vfj7-8cjw-p6xm with no patched release. Keeping only the static preset preserves Ultracite policy without shipping that unused dependency. No advisory is ignored.
|
|
6
|
+
|
|
7
|
+
Upstream preset SHA256: 30add6f74eb98a139bb9e5ce808bd9491151f746f1b48d58854d7494d3652193.
|
|
8
|
+
Published package integrity: sha512-6jVEwaZBaytFm6XRoI3WGS2ZydrkrNvHTD0qTf7983ti2FlEWL1YcxnPaMaYuS6PkXqMhIK2XGr0cbsL4x5pQA==.
|
|
9
|
+
|
|
10
|
+
Do not edit or reformat the vendored preset. Upgrade deliberately from a verified upstream package, preserve its licence/provenance, and rerun quality/compatibility fixtures. Root biome.json records Alice formatting overrides. It is not a third workspace package.
|