Skip to content
Myr

Add packages/artifacts: the RepoHost port and its memory adapter

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- RepoHost is the one door to Artifacts, shaped by S1: reads resolve a short branch or a commit id only (Revision), so custom refs such as refs/asked/landed are listed by `refs` but unreadable by name; a push is a compare-and-swap per ref with no atomicity across refs, each ref coming back Updated or Stale with the tip it met; forks take the default branch as it stands. Errors: RepoNotFound, RepoExists, ForkInProgress, HostBusy. - /memory runs isomorphic-git 1.43.0 over an in-memory fs. A push copies objects from the pusher's repo, children first, rewriting each from its parsed form and dying if an id would change. isomorphic-git probes an fs by calling `readFile()` with no path, so that call must reject. - A contract suite (describeRepoHost) states the port once, for /memory now and /binding at S2: reads at a branch and at a commit, first-parent log, per-ref CAS, fork isolation, custom refs, tokens, removal. - Lint fits Effect: typescript/promise-function-async is off, since Effect's asyncFunction diagnostic bans `async`.

authored by oscabriel · committed by oscabriel · parent f5cf847 · Browse files · 12 files+1349 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

12 files+1349 added−0 removed

  • tests:+418 added−0 removed
  • other:+931 added−0 removed

12 files+1349 added−0 removed

added:packages/artifacts/src/repo-host/memory-fs.ts+208 added
1/**2 * An in-memory file system: the part of `fs.promises` that isomorphic-git3 * calls (`docs/fs.md` in isomorphic-git), with node's error codes.4 */56type ReadOptions = string | { readonly encoding?: string } | undefined;78interface Stats {9 readonly mode: number;10 readonly size: number;11 readonly ino: number;12 readonly uid: number;13 readonly gid: number;14 readonly dev: number;15 readonly mtimeMs: number;16 readonly ctimeMs: number;17 readonly isFile: () => boolean;18 readonly isDirectory: () => boolean;19 readonly isSymbolicLink: () => boolean;20}2122const failure = (code: string, path: string) =>23 Promise.reject(Object.assign(new Error(`${code}: ${path}`), { code }));2425const normalize = (path: string) =>26 `/${path27 .split("/")28 .filter((part) => part !== "")29 .join("/")}`;3031const parentOf = (path: string) => {32 const cut = path.lastIndexOf("/");3334 return cut <= 0 ? "/" : path.slice(0, cut);35};3637// isomorphic-git asks for text as "utf8", alone or as `{ encoding }`.38const UTF8 = /^utf-?8$/iu;3940const wantsText = (options: ReadOptions) =>41 options instanceof Object42 ? UTF8.test(options.encoding ?? "")43 : UTF8.test(options ?? "");4445const stats = (kind: "file" | "dir", size: number): Stats => ({46 ctimeMs: 0,47 dev: 1,48 gid: 1,49 ino: 0,50 isDirectory: () => kind === "dir",51 isFile: () => kind === "file",52 isSymbolicLink: () => false,53 mode: kind === "dir" ? 0o4_0000 : 0o10_0644,54 mtimeMs: 0,55 size,56 uid: 1,57});5859// Repos here hold no symlinks, but isomorphic-git binds both methods.60const readlink = (raw: string) => failure("EINVAL", normalize(raw));6162const symlink = (_target: string, raw: string) =>63 failure("ENOSYS", normalize(raw));6465export const memoryFs = () => {66 const files = new Map<string, Uint8Array>();67 const dirs = new Set<string>(["/"]);6869 const childrenOf = (dir: string) => {70 const prefix = dir === "/" ? "/" : `${dir}/`;71 const names = new Set<string>();7273 for (const path of [...files.keys(), ...dirs]) {74 if (path !== dir && path.startsWith(prefix)) {75 names.add(path.slice(prefix.length).split("/")[0] ?? "");76 }77 }7879 return [...names];80 };8182 // isomorphic-git calls `readFile()` with no path to learn whether this fs83 // returns promises, so that call must answer with a rejected promise.84 const readFile = (raw?: string, options?: ReadOptions) => {85 const path = normalize(raw ?? "");86 const content = files.get(path);8788 if (content === undefined) {89 return failure(dirs.has(path) ? "EISDIR" : "ENOENT", path);90 }9192 return Promise.resolve(93 wantsText(options) ? new TextDecoder().decode(content) : content94 );95 };9697 const writeFile = (raw: string, data: string | Uint8Array) => {98 const path = normalize(raw);99100 if (!dirs.has(parentOf(path))) {101 return failure("ENOENT", path);102 }103104 files.set(105 path,106 data instanceof Uint8Array107 ? Uint8Array.from(data)108 : new TextEncoder().encode(data)109 );110111 return Promise.resolve();112 };113114 const unlink = (raw: string) => {115 const path = normalize(raw);116117 return files.delete(path) ? Promise.resolve() : failure("ENOENT", path);118 };119120 const readdir = (raw: string) => {121 const path = normalize(raw);122123 if (files.has(path)) {124 return failure("ENOTDIR", path);125 }126127 return dirs.has(path)128 ? Promise.resolve(childrenOf(path))129 : failure("ENOENT", path);130 };131132 const mkdir = (raw: string) => {133 const path = normalize(raw);134135 if (dirs.has(path) || files.has(path)) {136 return failure("EEXIST", path);137 }138139 if (!dirs.has(parentOf(path))) {140 return failure("ENOENT", path);141 }142143 dirs.add(path);144145 return Promise.resolve();146 };147148 const rmdir = (raw: string) => {149 const path = normalize(raw);150151 if (!dirs.has(path)) {152 return failure("ENOENT", path);153 }154155 if (childrenOf(path).length > 0) {156 return failure("ENOTEMPTY", path);157 }158159 dirs.delete(path);160161 return Promise.resolve();162 };163164 const stat = (raw: string) => {165 const path = normalize(raw);166 const content = files.get(path);167168 if (content !== undefined) {169 return Promise.resolve(stats("file", content.byteLength));170 }171172 return dirs.has(path)173 ? Promise.resolve(stats("dir", 0))174 : failure("ENOENT", path);175 };176177 /** Deletes a directory and everything under it; not part of `fs`. */178 const removeTree = (raw: string) => {179 const root = normalize(raw);180181 const inside = (path: string) =>182 path === root || path.startsWith(`${root}/`);183184 for (const path of [...files.keys()].filter(inside)) {185 files.delete(path);186 }187188 for (const path of [...dirs].filter(inside)) {189 dirs.delete(path);190 }191 };192193 return {194 promises: {195 lstat: stat,196 mkdir,197 readFile,198 readdir,199 readlink,200 rmdir,201 stat,202 symlink,203 unlink,204 writeFile,205 },206 removeTree,207 };208};
added:packages/artifacts/src/repo-host/memory.ts+378 added
1import { CommitSha } from "@repo/protocol/ids";2import {3 Array,4 Data,5 DateTime,6 Effect,7 Equal,8 Layer,9 Match,10 Option,11 Redacted,12 Semaphore,13} from "effect";14import {15 Errors,16 init,17 listRefs,18 readBlob,19 readCommit,20 readTree,21 resolveRef,22 writeBlob,23 writeCommit,24 writeRef,25 writeTree,26} from "isomorphic-git";2728import {29 ObjectId,30 RefName,31 RefOutcome,32 RepoExists,33 RepoHost,34 RepoNotFound,35 Revision,36} from "../repo-host.ts";37import type { Commit, PushSource, RefUpdate, RepoName } from "../repo-host.ts";38import { memoryFs } from "./memory-fs.ts";3940class GitFailure extends Data.TaggedError("GitFailure")<{41 readonly cause: unknown;42}> {}4344const git = <A>(run: () => Promise<A>) =>45 Effect.tryPromise({ catch: (cause) => new GitFailure({ cause }), try: run });4647/** `None` where isomorphic-git finds no such object, ref or file. */48const unlessMissing = <A>(49 run: () => Promise<A>50): Effect.Effect<Option.Option<A>> =>51 git(run).pipe(52 Effect.asSome,53 Effect.catchIf(54 (failure) =>55 failure.cause instanceof Errors.NotFoundError ||56 failure.cause instanceof Errors.ObjectTypeError,57 () => Effect.succeedNone58 ),59 Effect.orDie60 );6162// Each object is rewritten from its parsed form; a changed id would mean the63// copy is not the object the pusher sent.64const keep = (oid: string, write: () => Promise<string>) =>65 git(write).pipe(66 Effect.orDie,67 Effect.flatMap((written) =>68 written === oid69 ? Effect.void70 : Effect.die(`copying ${oid} produced ${written}`)71 )72 );7374const mainRef = "refs/heads/main";7576const remoteOf = (name: RepoName) => `memory://${name}.git`;7778interface Repo {79 readonly gitdir: string;80 readonly lock: Semaphore.Semaphore;81 /** Token ids still live; the memory store authenticates nothing. */82 readonly tokens: Set<string>;83}8485/**86 * Artifacts in memory, as S1 found it: each repo a bare git directory, a push87 * a compare-and-swap per ref with no atomicity across refs, and reads that88 * resolve short branch names and commit ids only.89 */90const make = () => {91 const fs = memoryFs();92 const repos = new Map<RepoName, Repo>();93 let minted = 0;9495 const known = (name: RepoName): Effect.Effect<Repo, RepoNotFound> => {96 const repo = repos.get(name);9798 return repo === undefined99 ? Effect.fail(new RepoNotFound({ name }))100 : Effect.succeed(repo);101 };102103 const tipOf = (repo: Repo, ref: string) =>104 unlessMissing(() => resolveRef({ fs, gitdir: repo.gitdir, ref })).pipe(105 Effect.map(Option.map((sha) => CommitSha.make(sha)))106 );107108 // The copies write children before parents, so every object in a repo has109 // everything it points to.110 const copyBlob = (source: PushSource, repo: Repo, oid: string) =>111 Effect.gen(function* () {112 const present = yield* unlessMissing(() =>113 readBlob({ fs, gitdir: repo.gitdir, oid })114 );115116 if (Option.isSome(present)) {117 return;118 }119120 const { blob } = yield* git(() => readBlob({ ...source, oid })).pipe(121 Effect.orDie122 );123124 yield* keep(oid, () => writeBlob({ blob, fs, gitdir: repo.gitdir }));125 });126127 const copyTree = (128 source: PushSource,129 repo: Repo,130 oid: string131 ): Effect.Effect<void> =>132 Effect.gen(function* () {133 const present = yield* unlessMissing(() =>134 readTree({ fs, gitdir: repo.gitdir, oid })135 );136137 if (Option.isSome(present)) {138 return;139 }140141 const { tree } = yield* git(() => readTree({ ...source, oid })).pipe(142 Effect.orDie143 );144145 // Submodule entries ("commit") point outside the repo; git copies none.146 yield* Effect.forEach(tree, (entry) =>147 Match.value(entry.type).pipe(148 Match.when("blob", () => copyBlob(source, repo, entry.oid)),149 Match.when("tree", () => copyTree(source, repo, entry.oid)),150 Match.when("commit", () => Effect.void),151 Match.exhaustive152 )153 );154 yield* keep(oid, () => writeTree({ fs, gitdir: repo.gitdir, tree }));155 });156157 const copyCommit = (158 source: PushSource,159 repo: Repo,160 oid: string161 ): Effect.Effect<void> =>162 Effect.gen(function* () {163 const present = yield* unlessMissing(() =>164 readCommit({ fs, gitdir: repo.gitdir, oid })165 );166167 if (Option.isSome(present)) {168 return;169 }170171 const { commit } = yield* git(() => readCommit({ ...source, oid })).pipe(172 Effect.orDie173 );174175 yield* copyTree(source, repo, commit.tree);176 yield* Effect.forEach(commit.parent, (parent) =>177 copyCommit(source, repo, parent)178 );179 yield* keep(oid, () => writeCommit({ commit, fs, gitdir: repo.gitdir }));180 });181182 const apply = (repo: Repo, source: PushSource, update: RefUpdate) =>183 Effect.gen(function* () {184 const tip = yield* tipOf(repo, update.ref);185186 if (!Equal.equals(tip, update.from)) {187 return RefOutcome.Stale({ ref: update.ref, tip });188 }189190 yield* copyCommit(source, repo, update.to);191 yield* git(() =>192 writeRef({193 force: true,194 fs,195 gitdir: repo.gitdir,196 ref: update.ref,197 value: update.to,198 })199 ).pipe(Effect.orDie);200201 return RefOutcome.Updated({ ref: update.ref });202 });203204 const resolve = (repo: Repo, at: Revision) =>205 Revision.$match(at, {206 Branch: ({ name }) => tipOf(repo, `refs/heads/${name}`),207 Commit: ({ sha }) => Effect.succeedSome(sha),208 });209210 // Artifacts drops one trailing newline from a commit message.211 const commitAt = (repo: Repo, sha: CommitSha) =>212 unlessMissing(() => readCommit({ fs, gitdir: repo.gitdir, oid: sha })).pipe(213 Effect.map(214 Option.map(({ commit, oid }): Commit => ({215 author: { email: commit.author.email, name: commit.author.name },216 committer: {217 email: commit.committer.email,218 name: commit.committer.name,219 },220 message: commit.message.replace(/\n$/u, ""),221 parents: commit.parent.map((parent) => CommitSha.make(parent)),222 sha: CommitSha.make(oid),223 tree: ObjectId.make(commit.tree),224 }))225 )226 );227228 const open = (name: RepoName) =>229 Effect.gen(function* () {230 if (repos.has(name)) {231 return yield* new RepoExists({ name });232 }233234 const repo: Repo = {235 gitdir: `/${name}.git`,236 lock: Semaphore.makeUnsafe(1),237 tokens: new Set(),238 };239240 repos.set(name, repo);241 yield* git(() =>242 init({ bare: true, defaultBranch: "main", fs, gitdir: repo.gitdir })243 ).pipe(Effect.orDie);244245 return { name, remote: remoteOf(name) };246 });247248 return RepoHost.of({249 create: (name) => open(name),250 // The default branch only, copied as it stands: later pushes to the base251 // or to a sibling never reach this fork.252 fork: (base, name) =>253 Effect.gen(function* () {254 const from = yield* known(base);255 const tip = yield* tipOf(from, mainRef);256 const created = yield* open(name);257 const repo = yield* known(name);258259 if (Option.isSome(tip)) {260 yield* copyCommit({ fs, gitdir: from.gitdir }, repo, tip.value);261 yield* git(() =>262 writeRef({263 fs,264 gitdir: repo.gitdir,265 ref: mainRef,266 value: tip.value,267 })268 ).pipe(Effect.orDie);269 }270271 return created;272 }),273 log: (name, at, limit) =>274 Effect.gen(function* () {275 const repo = yield* known(name);276 const commits: Commit[] = [];277 let next = yield* resolve(repo, at);278279 while (Option.isSome(next) && commits.length < limit) {280 const commit = yield* commitAt(repo, next.value);281282 if (Option.isNone(commit)) {283 break;284 }285286 commits.push(commit.value);287 next = Option.fromNullishOr(commit.value.parents[0]);288 }289290 return commits;291 }),292 mintToken: (name, scope, ttl) =>293 Effect.gen(function* () {294 const repo = yield* known(name);295 const now = yield* DateTime.now;296297 minted += 1;298299 const id = `token-${minted}`;300301 repo.tokens.add(id);302303 return {304 expiresAt: DateTime.addDuration(now, ttl),305 id,306 scope,307 secret: Redacted.make(`memory-${id}`),308 };309 }),310 push: (name, source, updates) =>311 Effect.gen(function* () {312 const repo = yield* known(name);313314 return yield* repo.lock.withPermit(315 Effect.forEach(updates, (update) => apply(repo, source, update))316 );317 }),318 readCommit: (name, sha) =>319 known(name).pipe(Effect.flatMap((repo) => commitAt(repo, sha))),320 readFile: (name, at, path) =>321 Effect.gen(function* () {322 const repo = yield* known(name);323 const sha = yield* resolve(repo, at);324325 if (Option.isNone(sha)) {326 return Option.none();327 }328329 const blob = yield* unlessMissing(() =>330 readBlob({331 filepath: path,332 fs,333 gitdir: repo.gitdir,334 oid: sha.value,335 })336 );337338 return Option.map(blob, ({ blob: bytes }) => bytes);339 }),340 refs: (name) =>341 Effect.gen(function* () {342 const repo = yield* known(name);343344 const names = yield* git(() =>345 listRefs({ filepath: "refs", fs, gitdir: repo.gitdir })346 ).pipe(Effect.orDie);347348 const listed = yield* Effect.forEach(names, (relative) =>349 Effect.gen(function* () {350 const ref = RefName.make(`refs/${relative}`);351 const tip = yield* tipOf(repo, ref);352353 return Option.map(tip, (sha) => [ref, sha] as const);354 })355 );356357 return new Map(Array.getSomes(listed));358 }),359 remote: (name) => known(name).pipe(Effect.as(remoteOf(name))),360 remove: (name) =>361 Effect.sync(() => {362 const repo = repos.get(name);363364 if (repo === undefined) {365 return false;366 }367368 fs.removeTree(repo.gitdir);369370 return repos.delete(name);371 }),372 revokeToken: (name, id) =>373 known(name).pipe(Effect.map((repo) => repo.tokens.delete(id))),374 });375};376377/** A fresh, empty store each time the layer is built. */378export const RepoHostMemory = Layer.sync(RepoHost, make);
added:packages/artifacts/src/repo-host.ts+184 added
1import { CommitSha } from "@repo/protocol/ids";2import type { RepoPath } from "@repo/protocol/ids";3import { Context, Data, Schema } from "effect";4import type {5 Array,6 DateTime,7 Duration,8 Effect,9 Option,10 Redacted,11} from "effect";12import type { FsClient } from "isomorphic-git";1314/** A repo's name in its namespace: letters, digits, dots, dashes, underscores. */15export const RepoName = Schema.String.pipe(16 Schema.check(Schema.isPattern(/^[A-Za-z0-9._-]+$/u)),17 Schema.brand("RepoName")18);1920export type RepoName = typeof RepoName.Type;2122/** A short branch name such as `main` or `feature/x`, never `refs/…`. */23export const BranchName = Schema.String.pipe(24 Schema.check(25 Schema.isPattern(26 /^(?!refs\/)(?!.*\.\.)[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)*$/u27 )28 ),29 Schema.brand("BranchName")30);3132export type BranchName = typeof BranchName.Type;3334/** A full ref name: `refs/heads/main`, `refs/asked/landed`, `refs/notes/commits`. */35export const RefName = Schema.String.pipe(36 Schema.check(37 Schema.isPattern(/^refs\/(?!.*\.\.)[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)+$/u)38 ),39 Schema.brand("RefName")40);4142export type RefName = typeof RefName.Type;4344/** A git object id: 40 lowercase hex digits. */45export const ObjectId = Schema.String.pipe(46 Schema.check(Schema.isPattern(/^[0-9a-f]{40}$/u)),47 Schema.brand("ObjectId")48);4950export type ObjectId = typeof ObjectId.Type;5152/**53 * Where a read starts. Artifacts' binding resolves short branch names and54 * commit ids only (S1 #20), so these are the only two kinds.55 */56export type Revision = Data.TaggedEnum<{57 Branch: { readonly name: BranchName };58 Commit: { readonly sha: CommitSha };59}>;6061export const Revision = Data.taggedEnum<Revision>();6263const Person = Schema.Struct({ email: Schema.String, name: Schema.String });6465export const Commit = Schema.Struct({66 author: Person,67 committer: Person,68 message: Schema.String,69 parents: Schema.Array(CommitSha),70 sha: CommitSha,71 tree: ObjectId,72});7374export type Commit = typeof Commit.Type;7576export type TokenScope = "read" | "write";7778export interface RepoToken {79 readonly id: string;80 readonly secret: Redacted.Redacted;81 readonly scope: TokenScope;82 readonly expiresAt: DateTime.Utc;83}8485export interface RepoCreated {86 readonly name: RepoName;87 readonly remote: string;88}8990/** A local git repo, read through isomorphic-git, that a push takes objects from. */91export interface PushSource {92 readonly fs: FsClient;93 readonly gitdir: string;94}9596/**97 * One ref's compare-and-swap. `from` is the tip the pusher expects; `None`98 * means the ref must not exist yet.99 */100export interface RefUpdate {101 readonly ref: RefName;102 readonly from: Option.Option<CommitSha>;103 readonly to: CommitSha;104}105106/** What one ref in a push came to. A push is never atomic across refs (S1 #6). */107export type RefOutcome = Data.TaggedEnum<{108 Updated: { readonly ref: RefName };109 Stale: { readonly ref: RefName; readonly tip: Option.Option<CommitSha> };110}>;111112export const RefOutcome = Data.taggedEnum<RefOutcome>();113114export class RepoNotFound extends Schema.TaggedError<RepoNotFound>()(115 "RepoNotFound",116 { name: RepoName }117) {}118119export class RepoExists extends Schema.TaggedError<RepoExists>()("RepoExists", {120 name: RepoName,121}) {}122123/** Artifacts is still forking this repo; retry. */124export class ForkInProgress extends Schema.TaggedError<ForkInProgress>()(125 "ForkInProgress",126 { name: RepoName }127) {}128129/** The store refused a whole push while busy with another (S1 #5); retry. */130export class HostBusy extends Schema.TaggedError<HostBusy>()("HostBusy", {131 name: RepoName,132}) {}133134/**135 * The git store the platform keeps repos in. The only way to Artifacts: every136 * other package reaches it through this port.137 */138export class RepoHost extends Context.Service<139 RepoHost,140 {141 readonly create: (name: RepoName) => Effect.Effect<RepoCreated, RepoExists>;142 /** Forks the default branch only, as Artifacts does by default. */143 readonly fork: (144 base: RepoName,145 name: RepoName146 ) => Effect.Effect<RepoCreated, RepoNotFound | RepoExists | ForkInProgress>;147 readonly remove: (name: RepoName) => Effect.Effect<boolean>;148 readonly mintToken: (149 name: RepoName,150 scope: TokenScope,151 ttl: Duration.Duration152 ) => Effect.Effect<RepoToken, RepoNotFound>;153 readonly revokeToken: (154 name: RepoName,155 id: string156 ) => Effect.Effect<boolean, RepoNotFound>;157 /** The git URL that pushes and fetches go to. */158 readonly remote: (name: RepoName) => Effect.Effect<string, RepoNotFound>;159 readonly readFile: (160 name: RepoName,161 at: Revision,162 path: RepoPath163 ) => Effect.Effect<Option.Option<Uint8Array>, RepoNotFound>;164 readonly readCommit: (165 name: RepoName,166 sha: CommitSha167 ) => Effect.Effect<Option.Option<Commit>, RepoNotFound>;168 /** First parents from `at`, newest first. */169 readonly log: (170 name: RepoName,171 at: Revision,172 limit: number173 ) => Effect.Effect<readonly Commit[], RepoNotFound>;174 /** Every ref, as `ls-remote` lists them, custom refs included. */175 readonly refs: (176 name: RepoName177 ) => Effect.Effect<ReadonlyMap<RefName, CommitSha>, RepoNotFound>;178 readonly push: (179 name: RepoName,180 source: PushSource,181 updates: Array.NonEmptyReadonlyArray<RefUpdate>182 ) => Effect.Effect<readonly RefOutcome[], RepoNotFound | HostBusy>;183 }184>()("artifacts/RepoHost") {}
added:packages/artifacts/test/git-client.ts+86 added
1import { CommitSha } from "@repo/protocol/ids";2import { Effect } from "effect";3import { init, writeBlob, writeCommit, writeTree } from "isomorphic-git";4import type { TreeEntry } from "isomorphic-git";56import type { PushSource } from "../src/repo-host.ts";7import { memoryFs } from "../src/repo-host/memory-fs.ts";89/** Paths and their text, such as `[["src/a.ts", "v1"]]`. */10export type Files = readonly (readonly [path: string, content: string])[];1112// Fixed, so the same files and parents always make the same commit id.13const signature = {14 email: "answerer@example.com",15 name: "Answerer",16 timestamp: 1_791_300_000,17 timezoneOffset: 0,18};1920/** A local bare repo that tests build commits in and push from. */21export const gitClient = Effect.gen(function* () {22 const source: PushSource = { fs: memoryFs(), gitdir: "/client.git" };2324 yield* Effect.promise(() =>25 init({ ...source, bare: true, defaultBranch: "main" })26 );2728 const tree = (files: Files): Effect.Effect<string> =>29 Effect.gen(function* () {30 const entries: TreeEntry[] = [];31 const nested = new Map<string, [string, string][]>();3233 for (const [path, content] of files) {34 const [head = path, ...rest] = path.split("/");3536 if (rest.length === 0) {37 const oid = yield* Effect.promise(() =>38 writeBlob({ ...source, blob: new TextEncoder().encode(content) })39 );4041 entries.push({ mode: "100644", oid, path: head, type: "blob" });42 } else {43 nested.set(head, [44 ...(nested.get(head) ?? []),45 [rest.join("/"), content],46 ]);47 }48 }4950 for (const [path, inner] of nested) {51 const oid = yield* tree(inner);5253 entries.push({ mode: "040000", oid, path, type: "tree" });54 }5556 return yield* Effect.promise(() =>57 writeTree({ ...source, tree: entries })58 );59 });6061 const commit = (62 message: string,63 files: Files,64 parents: readonly CommitSha[] = []65 ) =>66 Effect.gen(function* () {67 const root = yield* tree(files);6869 const oid = yield* Effect.promise(() =>70 writeCommit({71 ...source,72 commit: {73 author: signature,74 committer: signature,75 message: `${message}\n`,76 parent: [...parents],77 tree: root,78 },79 })80 );8182 return CommitSha.make(oid);83 });8485 return { commit, source };86});
added:packages/artifacts/test/memory.test.ts+4 added
added:packages/artifacts/test/repo-host-contract.ts+309 added
1import { describe, expect, it } from "@effect/vitest";2import { RepoPath } from "@repo/protocol/ids";3import { DateTime, Duration, Effect, Option, Redacted } from "effect";4import type { Layer } from "effect";56import {7 BranchName,8 RefName,9 RefOutcome,10 RepoExists,11 RepoHost,12 RepoName,13 RepoNotFound,14 Revision,15} from "../src/repo-host.ts";16import { gitClient } from "./git-client.ts";1718const main = RefName.make("refs/heads/main");1920const landed = RefName.make("refs/asked/landed");2122const notes = RefName.make("refs/notes/commits");2324const path = RepoPath.make("src/a.ts");2526const text = (bytes: Uint8Array) => new TextDecoder().decode(bytes);2728/**29 * What every RepoHost adapter must do, written against the port. `/memory`30 * runs it on every `verify`; `/binding` runs it against live Artifacts.31 */32export const describeRepoHost = (33 adapter: string,34 host: Layer.Layer<RepoHost>35) => {36 describe(`RepoHost over ${adapter}`, () => {37 it.effect("reads a file at a branch and at an older commit", () =>38 Effect.gen(function* () {39 const repos = yield* RepoHost;40 const client = yield* gitClient;41 const first = yield* client.commit("v1", [["src/a.ts", "v1"]]);4243 const second = yield* client.commit(44 "v2",45 [["src/a.ts", "v2"]],46 [first]47 );4849 const name = RepoName.make("reads");5051 yield* repos.create(name);52 yield* repos.push(name, client.source, [53 { from: Option.none(), ref: main, to: second },54 ]);5556 const at = (revision: Revision) =>57 repos58 .readFile(name, revision, path)59 .pipe(Effect.map(Option.map(text)));6061 expect(62 yield* at(Revision.Branch({ name: BranchName.make("main") }))63 ).toStrictEqual(Option.some("v2"));64 expect(yield* at(Revision.Commit({ sha: first }))).toStrictEqual(65 Option.some("v1")66 );67 expect(68 yield* at(Revision.Branch({ name: BranchName.make("absent") }))69 ).toStrictEqual(Option.none());70 }).pipe(Effect.provide(host))71 );7273 it.effect("logs first parents from a revision, newest first", () =>74 Effect.gen(function* () {75 const repos = yield* RepoHost;76 const client = yield* gitClient;77 const first = yield* client.commit("first", [["a", "1"]]);78 const side = yield* client.commit("side", [["b", "1"]]);7980 const merge = yield* client.commit(81 "merge",82 [["a", "2"]],83 [first, side]84 );8586 const name = RepoName.make("history");8788 yield* repos.create(name);89 yield* repos.push(name, client.source, [90 { from: Option.none(), ref: main, to: merge },91 ]);9293 const messages = (at: Revision, limit: number) =>94 repos95 .log(name, at, limit)96 .pipe(97 Effect.map((commits) => commits.map((commit) => commit.message))98 );99100 const tip = Revision.Branch({ name: BranchName.make("main") });101102 expect(yield* messages(tip, 10)).toStrictEqual(["merge", "first"]);103 expect(yield* messages(tip, 1)).toStrictEqual(["merge"]);104 expect(105 yield* messages(Revision.Commit({ sha: side }), 10)106 ).toStrictEqual(["side"]);107 expect(108 yield* messages(109 Revision.Branch({ name: BranchName.make("absent") }),110 10111 )112 ).toStrictEqual([]);113 }).pipe(Effect.provide(host))114 );115116 // S1 #6: Artifacts refuses `--atomic`, so landing pushes main by itself and117 // treats each ref's outcome on its own.118 it.effect("applies each ref's compare-and-swap on its own", () =>119 Effect.gen(function* () {120 const repos = yield* RepoHost;121 const client = yield* gitClient;122 const first = yield* client.commit("first", [["a", "1"]]);123 const second = yield* client.commit("second", [["a", "2"]], [first]);124 const name = RepoName.make("compare-and-swap");125126 yield* repos.create(name);127 yield* repos.push(name, client.source, [128 { from: Option.none(), ref: main, to: first },129 { from: Option.none(), ref: landed, to: first },130 ]);131132 const outcomes = yield* repos.push(name, client.source, [133 { from: Option.some(first), ref: main, to: second },134 { from: Option.some(second), ref: landed, to: second },135 ]);136137 expect(outcomes).toStrictEqual([138 RefOutcome.Updated({ ref: main }),139 RefOutcome.Stale({ ref: landed, tip: Option.some(first) }),140 ]);141 expect(142 yield* repos.log(143 name,144 Revision.Branch({ name: BranchName.make("main") }),145 1146 )147 ).toMatchObject([{ sha: second }]);148 }).pipe(Effect.provide(host))149 );150151 it.effect("refuses to create a ref that already exists", () =>152 Effect.gen(function* () {153 const repos = yield* RepoHost;154 const client = yield* gitClient;155 const first = yield* client.commit("first", [["a", "1"]]);156 const other = yield* client.commit("other", [["a", "x"]]);157 const name = RepoName.make("create-only");158159 yield* repos.create(name);160 yield* repos.push(name, client.source, [161 { from: Option.none(), ref: main, to: first },162 ]);163164 expect(165 yield* repos.push(name, client.source, [166 { from: Option.none(), ref: main, to: other },167 ])168 ).toStrictEqual([169 RefOutcome.Stale({ ref: main, tip: Option.some(first) }),170 ]);171 }).pipe(Effect.provide(host))172 );173174 // S1 #10 and #19: a fork shares what it inherited and nothing a sibling175 // adds later.176 it.effect("keeps each fork's own commits to itself", () =>177 Effect.gen(function* () {178 const repos = yield* RepoHost;179 const client = yield* gitClient;180 const first = yield* client.commit("first", [["a", "1"]]);181 const onlyA = yield* client.commit("only in a", [["a", "a"]], [first]);182 const base = RepoName.make("fork-base");183 const forkA = RepoName.make("fork-a");184 const forkB = RepoName.make("fork-b");185186 yield* repos.create(base);187 yield* repos.push(base, client.source, [188 { from: Option.none(), ref: main, to: first },189 ]);190 yield* repos.fork(base, forkA);191 yield* repos.fork(base, forkB);192 yield* repos.push(forkA, client.source, [193 { from: Option.some(first), ref: main, to: onlyA },194 ]);195196 const has = (name: RepoName, sha: typeof first) =>197 repos.readCommit(name, sha).pipe(Effect.map(Option.isSome));198199 expect(yield* has(forkA, onlyA)).toBeTruthy();200 expect(yield* has(forkB, onlyA)).toBeFalsy();201 expect(yield* has(base, onlyA)).toBeFalsy();202 expect(yield* has(forkB, first)).toBeTruthy();203 expect(204 yield* repos.log(205 forkB,206 Revision.Branch({ name: BranchName.make("main") }),207 10208 )209 ).toMatchObject([{ sha: first }]);210 }).pipe(Effect.provide(host))211 );212213 // S1 #7 and #20: custom refs are kept and listed, but the binding's reads214 // resolve branch names only, so the platform reads them from this list.215 it.effect("lists custom refs that no read can name", () =>216 Effect.gen(function* () {217 const repos = yield* RepoHost;218 const client = yield* gitClient;219 const first = yield* client.commit("first", [["a", "1"]]);220 const name = RepoName.make("custom-refs");221222 yield* repos.create(name);223 yield* repos.push(name, client.source, [224 { from: Option.none(), ref: main, to: first },225 { from: Option.none(), ref: landed, to: first },226 { from: Option.none(), ref: notes, to: first },227 ]);228229 expect(yield* repos.refs(name)).toStrictEqual(230 new Map([231 [landed, first],232 [main, first],233 [notes, first],234 ])235 );236 expect(237 yield* repos.readFile(238 name,239 Revision.Branch({ name: BranchName.make("asked/landed") }),240 RepoPath.make("a")241 )242 ).toStrictEqual(Option.none());243 }).pipe(Effect.provide(host))244 );245246 it.effect("names the repo it could not find or could not create", () =>247 Effect.gen(function* () {248 const repos = yield* RepoHost;249 const taken = RepoName.make("taken");250 const missing = RepoName.make("missing");251252 yield* repos.create(taken);253254 expect(yield* Effect.flip(repos.create(taken))).toStrictEqual(255 new RepoExists({ name: taken })256 );257 expect(yield* Effect.flip(repos.fork(missing, taken))).toStrictEqual(258 new RepoNotFound({ name: missing })259 );260 expect(yield* Effect.flip(repos.fork(taken, taken))).toStrictEqual(261 new RepoExists({ name: taken })262 );263 expect(yield* Effect.flip(repos.refs(missing))).toStrictEqual(264 new RepoNotFound({ name: missing })265 );266 }).pipe(Effect.provide(host))267 );268269 it.effect(270 "mints a token that expires after its ttl, and revokes it once",271 () =>272 Effect.gen(function* () {273 const repos = yield* RepoHost;274 const name = RepoName.make("tokens");275276 yield* repos.create(name);277278 const now = yield* DateTime.now;279 const token = yield* repos.mintToken(name, "read", Duration.hours(1));280281 expect(token.scope).toBe("read");282 expect(Redacted.value(token.secret)).not.toBe("");283 expect(token.expiresAt).toStrictEqual(284 DateTime.add(now, { hours: 1 })285 );286 expect(yield* repos.revokeToken(name, token.id)).toBeTruthy();287 expect(yield* repos.revokeToken(name, token.id)).toBeFalsy();288 }).pipe(Effect.provide(host))289 );290291 it.effect("removes a repo once, freeing its name", () =>292 Effect.gen(function* () {293 const repos = yield* RepoHost;294 const name = RepoName.make("removed");295296 yield* repos.create(name);297 expect(yield* repos.remote(name)).not.toBe("");298 expect(yield* repos.remove(name)).toBeTruthy();299 expect(yield* repos.remove(name)).toBeFalsy();300 expect(yield* Effect.flip(repos.remote(name))).toStrictEqual(301 new RepoNotFound({ name })302 );303 expect(304 yield* repos.refs((yield* repos.create(name)).name)305 ).toStrictEqual(new Map());306 }).pipe(Effect.provide(host))307 );308 });309};
added:packages/artifacts/test/revision.test.ts+19 added
added:packages/artifacts/package.json+24 added
added:packages/artifacts/tsconfig.json+7 added
added:packages/artifacts/vitest.config.ts+1 added
modified:bun.lock+126 added
18 unmodified lines
19 "ultracite": "7.12.4",20 "varlock": "1.21.1",21 },22 },23 "packages/artifacts": {24 "name": "@repo/artifacts",25 "dependencies": {26 "@repo/protocol": "workspace:*",27 "effect": "catalog:",28 "isomorphic-git": "1.43.0",29 },30 "devDependencies": {31 "@effect/vitest": "catalog:",32 "@repo/config": "workspace:*",33 "typescript": "catalog:",34 "vitest": "catalog:",35 },36 },37 "packages/brand": {38 "name": "@repo/brand",39 "dependencies": {40 "effect": "catalog:",
253 unmodified lines
294 "@poppinss/dumper": ["@poppinss/dumper@0.6.5", "", { "dependencies": { "@poppinss/colors": "^4.1.5", "@sindresorhus/is": "^7.0.2", "supports-color": "^10.0.0" } }, "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw=="],295296 "@poppinss/exception": ["@poppinss/exception@1.2.3", "", {}, "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw=="],297298 "@repo/artifacts": ["@repo/artifacts@workspace:packages/artifacts"],299300 "@repo/brand": ["@repo/brand@workspace:packages/brand"],301302 "@repo/config": ["@repo/config@workspace:packages/config"],303
112 unmodified lines
416 "@vitest/mocker": ["@vitest/mocker@5.0.3", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.31", "@vitest/spy": "5.0.3", "estree-walker": "^3.0.3", "magic-string": "^1.2.3" }, "peerDependencies": { "msw": "^2.4.9", "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "optionalPeers": ["msw", "vite"] }, "sha512-T8sWAIbkSyAjkwTcaEc3Iu0o9A27X1/kdXrizhZkGuSKScRQtRzclfAMpOTcGdXCsqxeWlpGy3XjqaW8CpLORg=="],417418 "@vitest/spy": ["@vitest/spy@5.0.3", "", {}, "sha512-XhFysQTB8AZ+P4gMi+Lpo99vg2AZi0qKpaB9yXQl37+CaMEAPO3iH/wGVnSyL5MPERiLezpqTVtrR6UZH5GCXg=="],419420 "abort-controller": ["abort-controller@3.0.0", "", { "dependencies": { "event-target-shim": "^5.0.0" } }, "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg=="],421422 "acorn": ["acorn@8.18.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ=="],423424 "ansi-escapes": ["ansi-escapes@7.3.0", "", { "dependencies": { "environment": "^1.0.0" } }, "sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg=="],425
2 unmodified lines
428 "ansi-styles": ["ansi-styles@6.2.3", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],429430 "assertion-error": ["assertion-error@2.0.1", "", {}, "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA=="],431432 "async-lock": ["async-lock@1.4.1", "", {}, "sha512-Az2ZTpuytrtqENulXwO3GGv1Bztugx6TT37NIo7imr/Qo0gsYiGtSdBa2B6fsXhTpVZDNfu1Qn3pk531e3q+nQ=="],433434 "available-typed-arrays": ["available-typed-arrays@1.0.7", "", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="],435436 "base64-js": ["base64-js@1.5.1", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="],437438 "blake3-wasm": ["blake3-wasm@2.1.5", "", {}, "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g=="],439440 "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="],441442 "buffer": ["buffer@6.0.3", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" } }, "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA=="],443444 "call-bind": ["call-bind@1.0.9", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "get-intrinsic": "^1.3.0", "set-function-length": "^1.2.2" } }, "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ=="],445446 "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],447448 "call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="],449450 "cf": ["cf@1.0.0-beta.12", "", { "dependencies": { "@cloudflare/build-output-utils": "0.8.5", "@cloudflare/codemods": "0.4.0", "@cloudflare/config": "0.23.0", "@cloudflare/runtime-types": "0.1.7", "blake3-wasm": "2.1.5", "miniflare": "5.20260930.0-alpha", "minisearch": "7.2.0" }, "bin": { "cf": "./bin/cf", "cloudflare": "./bin/cf" } }, "sha512-tyQ+Jpnw+4NDwDtl7ZNteXBm7N0TeJ6gYww79kkabpcYoCEXkUUpmt9BlDUKH8ub17tjAeiuyqa9NQzH0vp2Aw=="],451452 "chai": ["chai@6.3.0", "", {}, "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg=="],453454 "citty": ["citty@0.2.2", "", {}, "sha512-+6vJA3L98yv+IdfKGZHBNiGW5KHn22e/JwID0Strsz8h4S/csAu/OuICwxrg44k5MRiZHWIo8XXuJgQTriRP4w=="],455456 "clean-git-ref": ["clean-git-ref@2.0.1", "", {}, "sha512-bLSptAy2P0s6hU4PzuIMKmMJJSE6gLXGH1cntDu7bWJUksvuM+7ReOK61mozULErYvP6a15rnYl0zFDef+pyPw=="],457458 "cli-cursor": ["cli-cursor@5.0.0", "", { "dependencies": { "restore-cursor": "^5.0.0" } }, "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw=="],459460 "cli-truncate": ["cli-truncate@6.1.1", "", { "dependencies": { "slice-ansi": "^9.0.0", "string-width": "^8.2.0" } }, "sha512-06p9vyLahLa4zkGcgsGxU6iEkSOiuI4fhCH6Emhe2lPAcoUv73n72DnODsnHA+5wwXGnV0n9M9/qOQJSjYhFhw=="],461
2 unmodified lines
464 "confbox": ["confbox@0.1.8", "", {}, "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w=="],465466 "cookie": ["cookie@1.1.1", "", {}, "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ=="],467468 "crc-32": ["crc-32@1.2.2", "", { "bin": { "crc32": "bin/crc32.njs" } }, "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ=="],469470 "decompress-response": ["decompress-response@6.0.0", "", { "dependencies": { "mimic-response": "^3.1.0" } }, "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ=="],471472 "deepmerge": ["deepmerge@4.3.1", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="],473474 "define-data-property": ["define-data-property@1.1.4", "", { "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", "gopd": "^1.0.1" } }, "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A=="],475476 "detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],477478 "diff3": ["diff3@0.0.3", "", {}, "sha512-iSq8ngPOt0K53A6eVr4d5Kn6GNrM2nQZtC740pzIriHtn4pOQ2lyzEXQMBeVcWERN0ye7fhBsk9PbLLQOnUx/g=="],479480 "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],481482 "effect": ["effect@4.0.1", "", {}, "sha512-b1VlQG9g8fwxE5QnIZuPoOP/0MsqHJSRKxUijjoM80E5q95FXrX5yWtY5XI8G+GJsBQAVSDbLS458z9a++uVvw=="],483484 "empathic": ["empathic@2.1.0", "", {}, "sha512-AnfC1ATldl49/cvZdLPDjBfrRNwbDO05aibiOtzQu3qtlbJtomNLhF30HEtn/7iBz50dlMECqATo3fG0LrdEgw=="],485486 "environment": ["environment@1.1.0", "", {}, "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q=="],487488 "error-stack-parser-es": ["error-stack-parser-es@1.0.5", "", {}, "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA=="],489490 "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],491492 "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],493494 "es-module-lexer": ["es-module-lexer@2.3.2", "", {}, "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw=="],495496 "es-object-atoms": ["es-object-atoms@1.1.2", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw=="],497498 "estree-walker": ["estree-walker@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.0" } }, "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g=="],499500 "event-target-shim": ["event-target-shim@5.0.1", "", {}, "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="],501502 "events": ["events@3.3.0", "", {}, "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="],503504 "execa": ["execa@10.0.1", "", { "dependencies": { "@sindresorhus/merge-streams": "^4.0.0", "figures": "^6.1.0", "get-stream": "^9.0.1", "human-signals": "^8.0.1", "is-plain-obj": "^4.1.0", "is-stream": "^4.0.1", "npm-run-path": "^6.0.0", "pretty-ms": "^9.3.0", "signal-exit": "^4.1.0", "strip-final-newline": "^4.0.0", "which-command": "^0.1.0", "yoctocolors": "^2.1.2" } }, "sha512-ge98qjkRK4IB7tL7Ju/6qmm5LHoH1eEMt5FNZrz3f4UIYhF28lggX20z3FaX1sgc67msLEn0N0BscOs29iuwyw=="],505506 "expect-type": ["expect-type@1.4.0", "", {}, "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA=="],507
14 unmodified lines
522 "fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="],523524 "find-workspaces": ["find-workspaces@0.3.1", "", { "dependencies": { "fast-glob": "^3.3.2", "pkg-types": "^1.0.3", "yaml": "^2.3.4" } }, "sha512-UDkGILGJSA1LN5Aa7McxCid4sqW3/e+UYsVwyxki3dDT0F8+ym0rAfnCkEfkL0rO7M+8/mvkim4t/s3IPHmg+w=="],525526 "for-each": ["for-each@0.3.5", "", { "dependencies": { "is-callable": "^1.2.7" } }, "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg=="],527528 "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],529530 "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="],531532 "get-east-asian-width": ["get-east-asian-width@1.7.0", "", {}, "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q=="],533534 "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],535536 "get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="],537538 "get-stream": ["get-stream@9.0.1", "", { "dependencies": { "@sec-ant/readable-stream": "^0.4.1", "is-stream": "^4.0.1" } }, "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA=="],539540 "glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],541542 "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],543544 "has-property-descriptors": ["has-property-descriptors@1.0.2", "", { "dependencies": { "es-define-property": "^1.0.0" } }, "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg=="],545546 "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],547548 "has-tostringtag": ["has-tostringtag@1.0.2", "", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="],549550 "hasown": ["hasown@2.0.4", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A=="],551552 "human-signals": ["human-signals@8.0.1", "", {}, "sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ=="],553554 "ieee754": ["ieee754@1.2.1", "", {}, "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA=="],555556 "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],557558 "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="],559560 "is-callable": ["is-callable@1.2.7", "", {}, "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA=="],561562 "is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="],563564 "is-fullwidth-code-point": ["is-fullwidth-code-point@5.1.0", "", { "dependencies": { "get-east-asian-width": "^1.3.1" } }, "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ=="],565
4 unmodified lines
570 "is-plain-obj": ["is-plain-obj@4.1.0", "", {}, "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg=="],571572 "is-stream": ["is-stream@4.0.1", "", {}, "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A=="],573574 "is-typed-array": ["is-typed-array@1.1.15", "", { "dependencies": { "which-typed-array": "^1.1.16" } }, "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ=="],575576 "is-unicode-supported": ["is-unicode-supported@2.1.0", "", {}, "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ=="],577578 "isarray": ["isarray@2.0.5", "", {}, "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="],579580 "isomorphic-git": ["isomorphic-git@1.43.0", "", { "dependencies": { "async-lock": "^1.4.1", "clean-git-ref": "^2.0.1", "crc-32": "^1.2.0", "diff3": "0.0.3", "ignore": "^5.1.4", "minimisted": "^2.0.0", "pako": "^1.0.10", "pify": "^4.0.1", "readable-stream": "^4.0.0", "sha.js": "^2.4.12", "simple-get": "^4.0.1" }, "bin": { "isogit": "cli.cjs" } }, "sha512-QhJ97lDzpcsV9++LLDs3GcSsY6JwbV7aWbB53gfxNXDDve30Uf3T9G1IzIL2TXfPCvx2rOcbrf5X31oSoPaX/w=="],581582 "jsonc-parser": ["jsonc-parser@3.3.1", "", {}, "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ=="],583584 "kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="],585
26 unmodified lines
612 "magic-string": ["magic-string@1.4.3", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.6.0" } }, "sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ=="],613614 "magicast": ["magicast@0.5.5", "", { "dependencies": { "@babel/parser": "^7.29.7", "@babel/types": "^7.29.7", "source-map-js": "^1.2.1" } }, "sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA=="],615616 "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],617618 "merge2": ["merge2@1.4.1", "", {}, "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="],619620 "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="],621622 "mimic-function": ["mimic-function@5.0.1", "", {}, "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA=="],623624 "mimic-response": ["mimic-response@3.1.0", "", {}, "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="],625626 "miniflare": ["miniflare@5.20260930.0-alpha", "", { "dependencies": { "@cspotcode/source-map-support": "0.8.1", "sharp": "0.35.4", "undici": "7.29.1", "workerd": "1.20260930.2", "ws": "8.21.0", "youch": "4.1.0-beta.10" } }, "sha512-vZljfRtOEeynbhJtuvYsnCU8t6zF5wIUm9ql4YFHB7zvYw2+F2tpT0BzXjzaa++eiUIml1gsODCf02qShBmJdg=="],627628 "minimist": ["minimist@1.2.8", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="],629630 "minimisted": ["minimisted@2.0.1", "", { "dependencies": { "minimist": "^1.2.5" } }, "sha512-1oPjfuLQa2caorJUM8HV8lGgWCc0qqAO1MNv/k05G4qslmsndV/5WdNZrqCiyqiz3wohia2Ij2B7w2Dr7/IyrA=="],631632 "minisearch": ["minisearch@7.2.0", "", {}, "sha512-dqT2XBYUOZOiC5t2HRnwADjhNS2cecp9u+TJRiJ1Qp/f5qjkeT5APcGPjHw+bz89Ms8Jp+cG4AlE+QZ/QnDglg=="],633634 "mlly": ["mlly@1.8.2", "", { "dependencies": { "acorn": "^8.16.0", "pathe": "^2.0.3", "pkg-types": "^1.3.1", "ufo": "^1.6.3" } }, "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA=="],635
4 unmodified lines
640 "nypm": ["nypm@0.6.10", "", { "dependencies": { "citty": "^0.2.2", "pathe": "^2.0.3", "tinyexec": "^1.3.1" }, "bin": { "nypm": "./dist/cli.mjs" } }, "sha512-W72Hrj1petq+b3Hk2aAC+9zswetlIFTnDW4s5djseZh2nYqBbyQLOtj472HwcbcWykPBUW1WpWpjOd4nK6gMRw=="],641642 "obug": ["obug@2.2.1", "", {}, "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q=="],643644 "once": ["once@1.4.0", "", { "dependencies": { "wrappy": "1" } }, "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="],645646 "onetime": ["onetime@7.0.0", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="],647648 "oxfmt": ["oxfmt@0.72.0", "", { "dependencies": { "tinypool": "2.2.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.72.0", "@oxfmt/binding-android-arm64": "0.72.0", "@oxfmt/binding-darwin-arm64": "0.72.0", "@oxfmt/binding-darwin-x64": "0.72.0", "@oxfmt/binding-freebsd-x64": "0.72.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.72.0", "@oxfmt/binding-linux-arm-musleabihf": "0.72.0", "@oxfmt/binding-linux-arm64-gnu": "0.72.0", "@oxfmt/binding-linux-arm64-musl": "0.72.0", "@oxfmt/binding-linux-ppc64-gnu": "0.72.0", "@oxfmt/binding-linux-riscv64-gnu": "0.72.0", "@oxfmt/binding-linux-riscv64-musl": "0.72.0", "@oxfmt/binding-linux-s390x-gnu": "0.72.0", "@oxfmt/binding-linux-x64-gnu": "0.72.0", "@oxfmt/binding-linux-x64-musl": "0.72.0", "@oxfmt/binding-openharmony-arm64": "0.72.0", "@oxfmt/binding-win32-arm64-msvc": "0.72.0", "@oxfmt/binding-win32-ia32-msvc": "0.72.0", "@oxfmt/binding-win32-x64-msvc": "0.72.0" }, "peerDependencies": { "svelte": "^5.0.0", "vite-plus": "*" }, "optionalPeers": ["svelte", "vite-plus"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-16OQeL0uhPZbfmT9S9WWM0Nv9+BmVi8Ra1uTYaSKj/qSCs6FB30KOhz9JoNYw6thT+K5bVxsk/tSEOu497i34g=="],649650 "oxlint": ["oxlint@1.87.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.87.0", "@oxlint/binding-android-arm64": "1.87.0", "@oxlint/binding-darwin-arm64": "1.87.0", "@oxlint/binding-darwin-x64": "1.87.0", "@oxlint/binding-freebsd-x64": "1.87.0", "@oxlint/binding-linux-arm-gnueabihf": "1.87.0", "@oxlint/binding-linux-arm-musleabihf": "1.87.0", "@oxlint/binding-linux-arm64-gnu": "1.87.0", "@oxlint/binding-linux-arm64-musl": "1.87.0", "@oxlint/binding-linux-ppc64-gnu": "1.87.0", "@oxlint/binding-linux-riscv64-gnu": "1.87.0", "@oxlint/binding-linux-riscv64-musl": "1.87.0", "@oxlint/binding-linux-s390x-gnu": "1.87.0", "@oxlint/binding-linux-x64-gnu": "1.87.0", "@oxlint/binding-linux-x64-musl": "1.87.0", "@oxlint/binding-openharmony-arm64": "1.87.0", "@oxlint/binding-win32-arm64-msvc": "1.87.0", "@oxlint/binding-win32-ia32-msvc": "1.87.0", "@oxlint/binding-win32-x64-msvc": "1.87.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2003", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-drxVlaW7Oqq7wSy1CN25znRu00aRq8n57Q2wniJRxCmtYVz07ufCm7EVDPQFZURrTgQIjzKrVEHAD/HcvJXObg=="],651652 "oxlint-tsgolint": ["oxlint-tsgolint@7.0.2003", "", { "optionalDependencies": { "@oxlint-tsgolint/darwin-arm64": "7.0.2003", "@oxlint-tsgolint/darwin-x64": "7.0.2003", "@oxlint-tsgolint/linux-arm64": "7.0.2003", "@oxlint-tsgolint/linux-x64": "7.0.2003", "@oxlint-tsgolint/win32-arm64": "7.0.2003", "@oxlint-tsgolint/win32-x64": "7.0.2003" }, "bin": { "tsgolint": "./bin/tsgolint.js" } }, "sha512-VnK4zlqgmgq/7ZcjzCk/WpN8kKFsYGcB85Io9qT3wL4K8Un3RKmJkp793crNETieMusPMKOA4a+Mw2wbteI6TQ=="],653654 "pako": ["pako@1.0.11", "", {}, "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="],655656 "parse-ms": ["parse-ms@4.0.0", "", {}, "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw=="],657658 "path-key": ["path-key@4.0.0", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="],659
2 unmodified lines
662 "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],663664 "picomatch": ["picomatch@4.0.7", "", {}, "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA=="],665666 "pify": ["pify@4.0.1", "", {}, "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g=="],667668 "pkg-types": ["pkg-types@1.3.1", "", { "dependencies": { "confbox": "^0.1.8", "mlly": "^1.7.4", "pathe": "^2.0.1" } }, "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ=="],669670 "possible-typed-array-names": ["possible-typed-array-names@1.1.0", "", {}, "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg=="],671672 "postcss": ["postcss@8.5.29", "", { "dependencies": { "nanoid": "^3.3.19", "picocolors": "^1.1.1", "source-map-js": "^1.2.2" } }, "sha512-49cGhUbXj8Qenv0iTMxA1cFBzxXoctpC9Ujd77t1WcbJIr6nF/eI7g/8MgxrYldFRuAXvja7xQRwavoW7kgrxQ=="],673674 "pretty-ms": ["pretty-ms@9.3.1", "", { "dependencies": { "parse-ms": "^4.0.0" } }, "sha512-HzMy3Geq23nVALD/M2LliU+F+M+gVNsvkQWWqeBZ8HDiCgzo6YPJ/Omrmtq24EFrIsk0a3EkQGEd7bDOo+IhGA=="],675676 "process": ["process@0.11.10", "", {}, "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A=="],677678 "queue-microtask": ["queue-microtask@1.2.3", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="],679680 "readable-stream": ["readable-stream@4.7.0", "", { "dependencies": { "abort-controller": "^3.0.0", "buffer": "^6.0.3", "events": "^3.3.0", "process": "^0.11.10", "string_decoder": "^1.3.0" } }, "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg=="],681682 "resolve.exports": ["resolve.exports@2.0.3", "", {}, "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A=="],683684 "restore-cursor": ["restore-cursor@5.1.0", "", { "dependencies": { "onetime": "^7.0.0", "signal-exit": "^4.1.0" } }, "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA=="],685
2 unmodified lines
688 "rolldown": ["rolldown@1.2.12", "", { "dependencies": { "@oxc-project/types": "=0.152.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.2.12", "@rolldown/binding-android-arm64": "1.2.12", "@rolldown/binding-darwin-arm64": "1.2.12", "@rolldown/binding-darwin-x64": "1.2.12", "@rolldown/binding-freebsd-x64": "1.2.12", "@rolldown/binding-linux-arm-gnueabihf": "1.2.12", "@rolldown/binding-linux-arm64-gnu": "1.2.12", "@rolldown/binding-linux-arm64-musl": "1.2.12", "@rolldown/binding-linux-ppc64-gnu": "1.2.12", "@rolldown/binding-linux-s390x-gnu": "1.2.12", "@rolldown/binding-linux-x64-gnu": "1.2.12", "@rolldown/binding-linux-x64-musl": "1.2.12", "@rolldown/binding-openharmony-arm64": "1.2.12", "@rolldown/binding-win32-arm64-msvc": "1.2.12", "@rolldown/binding-win32-x64-msvc": "1.2.12" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-8wafseiaG80xmXSfqidUNqZcylTlhmPZZt+za2m+js2sFZ8dTNlhIOV2WcbIPx2hgwPBJpEUGFAMZ9bgBBLTSQ=="],689690 "run-parallel": ["run-parallel@1.2.0", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="],691692 "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],693694 "semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="],695696 "set-function-length": ["set-function-length@1.2.2", "", { "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", "has-property-descriptors": "^1.0.2" } }, "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg=="],697698 "sha.js": ["sha.js@2.4.12", "", { "dependencies": { "inherits": "^2.0.4", "safe-buffer": "^5.2.1", "to-buffer": "^1.2.0" }, "bin": { "sha.js": "bin.js" } }, "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w=="],699700 "sharp": ["sharp@0.35.4", "", { "dependencies": { "@img/colour": "^1.1.0", "detect-libc": "^2.1.2", "semver": "^7.8.5" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.35.4", "@img/sharp-darwin-x64": "0.35.4", "@img/sharp-freebsd-wasm32": "0.35.4", "@img/sharp-libvips-darwin-arm64": "1.3.3", "@img/sharp-libvips-darwin-x64": "1.3.3", "@img/sharp-libvips-linux-arm": "1.3.3", "@img/sharp-libvips-linux-arm64": "1.3.3", "@img/sharp-libvips-linux-ppc64": "1.3.3", "@img/sharp-libvips-linux-riscv64": "1.3.3", "@img/sharp-libvips-linux-s390x": "1.3.3", "@img/sharp-libvips-linux-x64": "1.3.3", "@img/sharp-libvips-linuxmusl-arm64": "1.3.3", "@img/sharp-libvips-linuxmusl-x64": "1.3.3", "@img/sharp-linux-arm": "0.35.4", "@img/sharp-linux-arm64": "0.35.4", "@img/sharp-linux-ppc64": "0.35.4", "@img/sharp-linux-riscv64": "0.35.4", "@img/sharp-linux-s390x": "0.35.4", "@img/sharp-linux-x64": "0.35.4", "@img/sharp-linuxmusl-arm64": "0.35.4", "@img/sharp-linuxmusl-x64": "0.35.4", "@img/sharp-webcontainers-wasm32": "0.35.4", "@img/sharp-win32-arm64": "0.35.4", "@img/sharp-win32-ia32": "0.35.4", "@img/sharp-win32-x64": "0.35.4" }, "peerDependencies": { "@types/node": "*" }, "optionalPeers": ["@types/node"] }, "sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA=="],701702 "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],703704 "simple-concat": ["simple-concat@1.0.1", "", {}, "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="],705706 "simple-get": ["simple-get@4.0.1", "", { "dependencies": { "decompress-response": "^6.0.0", "once": "^1.3.1", "simple-concat": "^1.0.0" } }, "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA=="],707708 "sisteransi": ["sisteransi@1.0.5", "", {}, "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="],709710 "slice-ansi": ["slice-ansi@9.0.1", "", { "dependencies": { "ansi-styles": "^6.2.3", "is-fullwidth-code-point": "^5.1.0" } }, "sha512-aBY19bn/XA+hKOKX0qL7Z0UfdBsbQvc9hn993U8ALUjzxCvDcuZqLoRXjGJrUARWAlwMnsRVD9sw2AFNOYvalA=="],711
2 unmodified lines
714 "std-env": ["std-env@4.3.0", "", {}, "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag=="],715716 "string-width": ["string-width@8.3.0", "", { "dependencies": { "get-east-asian-width": "^1.5.0", "strip-ansi": "^7.1.2" } }, "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ=="],717718 "string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="],719720 "strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],721722 "strip-final-newline": ["strip-final-newline@4.0.0", "", {}, "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw=="],723
6 unmodified lines
730 "tinyglobby": ["tinyglobby@0.2.17", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g=="],731732 "tinypool": ["tinypool@2.2.0", "", {}, "sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ=="],733734 "to-buffer": ["to-buffer@1.2.2", "", { "dependencies": { "isarray": "^2.0.5", "safe-buffer": "^5.2.1", "typed-array-buffer": "^1.0.3" } }, "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw=="],735736 "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="],737738 "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],739740 "turbo": ["turbo@2.11.7", "", { "optionalDependencies": { "@turbo/darwin-64": "2.11.7", "@turbo/darwin-arm64": "2.11.7", "@turbo/linux-64": "2.11.7", "@turbo/linux-arm64": "2.11.7", "@turbo/windows-64": "2.11.7", "@turbo/windows-arm64": "2.11.7" }, "bin": { "turbo": "bin/turbo" } }, "sha512-RhXHbqfvY6o3xt/zSHCwSNwLrZlXiqHzewi4eAj9PtZ1T1CqgMJ2yIDb7SKPTG9IikTm925mfzL6hldQVdyNWw=="],741742 "typed-array-buffer": ["typed-array-buffer@1.0.3", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-typed-array": "^1.1.14" } }, "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw=="],743744 "typescript": ["typescript@7.0.2", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@typescript/typescript-linux-ppc64": "7.0.2", "@typescript/typescript-linux-riscv64": "7.0.2", "@typescript/typescript-linux-s390x": "7.0.2", "@typescript/typescript-linux-x64": "7.0.2", "@typescript/typescript-netbsd-arm64": "7.0.2", "@typescript/typescript-netbsd-x64": "7.0.2", "@typescript/typescript-openbsd-arm64": "7.0.2", "@typescript/typescript-openbsd-x64": "7.0.2", "@typescript/typescript-sunos-x64": "7.0.2", "@typescript/typescript-win32-arm64": "7.0.2", "@typescript/typescript-win32-x64": "7.0.2" }, "bin": { "tsc": "bin/tsc" } }, "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA=="],745746 "ufo": ["ufo@1.6.4", "", {}, "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA=="],747
12 unmodified lines
760 "vitest": ["vitest@5.0.3", "", { "dependencies": { "@types/chai": "^5.2.2", "@vitest/mocker": "5.0.3", "chai": "^6.2.2", "es-module-lexer": "^2.3.2", "expect-type": "^1.4.0", "magic-string": "^1.2.3", "obug": "^2.1.4", "picomatch": "^4.0.7", "std-env": "^4.2.0", "tinybench": "^6.1.4", "tinyexec": "^1.3.0", "tinyglobby": "^0.2.17", "why-is-node-running": "3.2.1" }, "peerDependencies": { "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^22.0.0 || >=24.0.0", "@vitest/browser-playwright": "5.0.3", "@vitest/browser-preview": "5.0.3", "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", "@vitest/coverage-istanbul": "5.0.3", "@vitest/coverage-v8": "5.0.3", "@vitest/ui": "5.0.3", "happy-dom": "*", "jsdom": "*", "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" }, "optionalPeers": ["@edge-runtime/vm", "@opentelemetry/api", "@types/node", "@vitest/browser-playwright", "@vitest/browser-preview", "@vitest/browser-webdriverio", "@vitest/coverage-istanbul", "@vitest/coverage-v8", "@vitest/ui", "happy-dom", "jsdom"], "bin": { "vitest": "./vitest.mjs" } }, "sha512-xMw97S3rjdtj5dkVat7jCsqWBpvchs3RlpQctUqwJD0KkERk40vz2fJ77lDwW/Vzh/pk18eItYAzkodhSes3jQ=="],761762 "which-command": ["which-command@0.1.0", "", { "bin": { "which-command": "cli.js" } }, "sha512-XZyoF5/5hZtXitIwzrU4NKK+Wtbb9aB9CezUEw2Q0wlYK8NUYQxC1rRXgNueYLtBAJwXIb+/tFVk4dozciNJMA=="],763764 "which-typed-array": ["which-typed-array@1.1.24", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.9", "call-bound": "^1.0.4", "for-each": "^0.3.5", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" } }, "sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ=="],765766 "why-is-node-running": ["why-is-node-running@3.2.1", "", { "bin": { "why-is-node-running": "cli.js" } }, "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ=="],767768 "workerd": ["workerd@1.20261001.1", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20261001.1", "@cloudflare/workerd-darwin-arm64": "1.20261001.1", "@cloudflare/workerd-linux-64": "1.20261001.1", "@cloudflare/workerd-linux-arm64": "1.20261001.1", "@cloudflare/workerd-windows-64": "1.20261001.1" }, "bin": { "workerd": "bin/workerd" } }, "sha512-d/SIYHFO0PT/wiFZg8in4NpRIxYuFwslX1HdylOtWkBIIUmSpkGFhK820cV84XACFylwJ48xuRoWW/8DWDPsPQ=="],769770 "wrap-ansi": ["wrap-ansi@10.0.2", "", { "dependencies": { "ansi-styles": "^6.2.3", "string-width": "^8.2.0" } }, "sha512-6OLRNZqRntVGBm26ghZ5eZhCuWWyOkRCSn8XsOIuq5stpCE/tjLbdozd93naILZig0lmD8ANfRwnhn0DLeXGlg=="],771772 "wrappy": ["wrappy@1.0.2", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="],773774 "ws": ["ws@8.22.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg=="],775776 "yaml": ["yaml@2.9.1", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw=="],777
33 unmodified lines
modified:oxlint.config.ts+3 added