@nshiab/setup-data-project 4.0.8 → 4.0.10

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/dist/main.mjs CHANGED
@@ -223,7 +223,7 @@ async function installPackages(packages, options = {}) {
223
223
  //#endregion
224
224
  //#region package.json
225
225
  var name = "@nshiab/setup-data-project";
226
- var version = "4.0.8";
226
+ var version = "4.0.10";
227
227
  //#endregion
228
228
  //#region src/helpers/ensureTooling.ts
229
229
  const tools = [
package/dist/sda.mjs CHANGED
@@ -207,6 +207,59 @@ function pipeFixOutput(output) {
207
207
  });
208
208
  }
209
209
  //#endregion
210
+ //#region src/helpers/fileChanges.ts
211
+ function createFileChanges(selected, excluded) {
212
+ const files = /* @__PURE__ */ new Map();
213
+ let generation = 0;
214
+ function check() {
215
+ generation++;
216
+ let changed = false;
217
+ function update(path, value) {
218
+ const previous = files.get(path);
219
+ if (previous) {
220
+ if (previous.value !== value) {
221
+ previous.value = value;
222
+ changed = true;
223
+ }
224
+ previous.generation = generation;
225
+ } else {
226
+ files.set(path, {
227
+ value,
228
+ generation
229
+ });
230
+ changed = true;
231
+ }
232
+ }
233
+ function collect(path) {
234
+ if (excluded(path) || files.get(path)?.generation === generation) return;
235
+ try {
236
+ const stat = lstatSync(path, { bigint: true });
237
+ if (stat.isDirectory()) {
238
+ const names = readdirSync(path);
239
+ update(path, "directory");
240
+ for (const name of names) collect(join(path, name));
241
+ } else update(path, [
242
+ stat.dev,
243
+ stat.ino,
244
+ stat.size,
245
+ stat.mtimeNs,
246
+ stat.ctimeNs
247
+ ].join(":"));
248
+ } catch (error) {
249
+ if (!(error instanceof Error) || !("code" in error) || error.code !== "ENOENT" && error.code !== "ENOTDIR") throw error;
250
+ update(path, null);
251
+ }
252
+ }
253
+ for (const path of selected) collect(path);
254
+ for (const [path, entry] of files) if (entry.generation !== generation) {
255
+ files.delete(path);
256
+ changed = true;
257
+ }
258
+ return changed;
259
+ }
260
+ return { check };
261
+ }
262
+ //#endregion
210
263
  //#region src/sda.ts
211
264
  const { positionals: [entry, ...paths], values } = parseArgs({
212
265
  allowPositionals: true,
@@ -288,7 +341,7 @@ let timer;
288
341
  let checking = false;
289
342
  let closing = false;
290
343
  let needsCheck = true;
291
- let contents = /* @__PURE__ */ new Map();
344
+ const changes = createFileChanges(selected, excluded);
292
345
  const watchers = /* @__PURE__ */ new Map();
293
346
  function launch(args, command = process.execPath, summarize = false) {
294
347
  const child = spawn(command, args, {
@@ -320,33 +373,6 @@ function launch(args, command = process.execPath, summarize = false) {
320
373
  })
321
374
  };
322
375
  }
323
- function snapshot() {
324
- const files = /* @__PURE__ */ new Map();
325
- function collect(path) {
326
- if (excluded(path) || files.has(path)) return;
327
- try {
328
- const stat = lstatSync(path, { bigint: true });
329
- if (stat.isDirectory()) {
330
- files.set(path, "directory");
331
- for (const name of readdirSync(path)) collect(join(path, name));
332
- } else files.set(path, [
333
- stat.dev,
334
- stat.ino,
335
- stat.size,
336
- stat.mtimeNs,
337
- stat.ctimeNs
338
- ].join(":"));
339
- } catch (error) {
340
- if (errorCode(error) !== "ENOENT" && errorCode(error) !== "ENOTDIR") throw error;
341
- files.set(path, null);
342
- }
343
- }
344
- for (const path of selected) collect(path);
345
- return files;
346
- }
347
- function equal(left, right) {
348
- return left.size === right.size && [...left].every(([path, value]) => right.get(path) === value);
349
- }
350
376
  function refreshWatchers() {
351
377
  const directories = /* @__PURE__ */ new Map();
352
378
  const add = (directory, recursive) => {
@@ -412,14 +438,14 @@ async function stop(job) {
412
438
  }
413
439
  async function check() {
414
440
  if (closing || checking) return;
415
- if (!needsCheck && equal(contents, snapshot())) return;
441
+ const changed = changes.check();
442
+ if (!needsCheck && !changed) return;
416
443
  checking = true;
417
444
  needsCheck = false;
418
445
  await stop(analysis);
419
446
  analysis = void 0;
420
447
  if (closing) return;
421
448
  refreshWatchers();
422
- contents = snapshot();
423
449
  process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
424
450
  fixer = launch([
425
451
  "run",
@@ -428,9 +454,7 @@ async function check() {
428
454
  ], bun ? process.execPath : windows ? "npm.cmd" : "npm", true);
429
455
  const fixed = await fixer.done;
430
456
  if (closing) return;
431
- const current = snapshot();
432
- needsCheck = !equal(contents, current);
433
- contents = current;
457
+ needsCheck = changes.check();
434
458
  refreshWatchers();
435
459
  fixer = void 0;
436
460
  checking = false;
package/dist/sda.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sda.mjs","names":["errorCode","delay","errorCode","delay"],"sources":["../src/helpers/sdaLock.ts","../src/helpers/sdaStatus.ts","../src/helpers/pipeFixOutput.ts","../src/sda.ts"],"sourcesContent":["import { randomUUID } from \"node:crypto\";\nimport {\n existsSync,\n mkdirSync,\n readFileSync,\n readdirSync,\n realpathSync,\n renameSync,\n rmSync,\n writeFileSync,\n} from \"node:fs\";\nimport { join, resolve } from \"node:path\";\nimport { setTimeout as delay } from \"node:timers/promises\";\nimport { isObject } from \"./jsonObject.ts\";\n\nexport const SDA_LOCK_DIRECTORY = \".sda-cache/lock\";\n\ntype Claim = { id: string; pid: number; ticket: number; command?: string };\n\nfunction errorCode(error: unknown) {\n return error instanceof Error && \"code\" in error ? error.code : undefined;\n}\n\n// Bakery ordering: publish a unique claim before choosing a ticket, then wait for\n// concurrent ticket choices. Never replace/delete a shared lock during recovery.\n// https://www.microsoft.com/en-us/research/publication/new-solution-dijkstras-concurrent-programming-problem/\nexport async function acquireSdaLock(command: string): Promise<() => void> {\n const directory = resolve(SDA_LOCK_DIRECTORY);\n const id = `${process.pid}-${randomUUID()}`;\n const ownDirectory = join(directory, id);\n mkdirSync(directory, { recursive: true });\n mkdirSync(ownDirectory);\n const release = () => {\n rmSync(ownDirectory, { recursive: true, force: true });\n process.removeListener(\"exit\", release);\n };\n process.once(\"exit\", release);\n\n function readClaim(candidate: string): Claim | undefined {\n const match = /^(\\d+)-[\\da-f-]{36}$/.exec(candidate);\n if (!match) return;\n const pid = Number(match[1]);\n if (!Number.isInteger(pid) || pid <= 0 || pid > 2147483647) return;\n const path = join(directory, candidate);\n try {\n process.kill(pid, 0);\n } catch (error) {\n if (errorCode(error) !== \"ESRCH\") throw error;\n // Claim names are never reused, so another starter cannot acquire this path.\n rmSync(path, { recursive: true, force: true });\n return;\n }\n let record: unknown;\n try {\n record = JSON.parse(readFileSync(join(path, \"owner.json\"), \"utf8\"));\n } catch (error) {\n if (errorCode(error) !== \"ENOENT\") throw error;\n // A directory without a published ticket is still choosing, or has exited.\n return existsSync(path) ? { id: candidate, pid, ticket: 0 } : undefined;\n }\n if (\n !isObject(record) ||\n typeof record.ticket !== \"number\" ||\n !Number.isSafeInteger(record.ticket) ||\n record.ticket < 1 ||\n typeof record.command !== \"string\"\n )\n throw new Error(`Cannot read the SDA lock owned by process ${pid}.`);\n return { id: candidate, pid, ticket: record.ticket, command: record.command };\n }\n\n try {\n let ticket = 1;\n for (const candidate of readdirSync(directory)) {\n const claim = readClaim(candidate);\n if (claim) ticket = Math.max(ticket, claim.ticket + 1);\n }\n writeFileSync(\n join(ownDirectory, \"owner.tmp\"),\n JSON.stringify({ ticket, command, projectRoot: realpathSync(process.cwd()) }),\n );\n renameSync(join(ownDirectory, \"owner.tmp\"), join(ownDirectory, \"owner.json\"));\n const deadline = performance.now() + 5000;\n for (const candidate of readdirSync(directory)) {\n if (candidate === id) continue;\n let claim = readClaim(candidate);\n while (claim?.ticket === 0) {\n if (performance.now() >= deadline)\n throw new Error(\n `Another SDA command is still starting (PID ${claim.pid}). Wait for it to finish starting, then try again.`,\n );\n await delay(10);\n claim = readClaim(candidate);\n }\n if (claim && (claim.ticket < ticket || (claim.ticket === ticket && claim.id < id)))\n throw new Error(\n `${claim.command} is already running${claim.command?.endsWith(\"sda:watch\") ? \" and watching this project's files\" : \" an analysis for this project\"} (PID ${claim.pid}). Wait for it to finish or stop it with Ctrl+C in its terminal, then try again.`,\n );\n }\n return release;\n } catch (error) {\n release();\n throw error;\n }\n}\n","import { execFileSync } from \"node:child_process\";\nimport { readFileSync, readdirSync, realpathSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { isObject } from \"./jsonObject.ts\";\nimport { SDA_LOCK_DIRECTORY } from \"./sdaLock.ts\";\n\nfunction errorCode(error: unknown) {\n return error instanceof Error && \"code\" in error ? error.code : undefined;\n}\n\n// Status is read-only: a missing or dead owner is ignored, never removed.\nexport function printSdaStatus(): number {\n const run = `${process.versions.bun ? \"bun\" : \"npm\"} run`;\n const retry = `${run} sda:status`;\n try {\n const claims = new Map<number, string[]>();\n try {\n for (const name of readdirSync(SDA_LOCK_DIRECTORY)) {\n const match = /^(\\d+)-[\\da-f-]{36}$/.exec(name);\n if (match) {\n const pid = Number(match[1]);\n claims.set(pid, [...(claims.get(pid) ?? []), name]);\n }\n }\n } catch (error) {\n if (errorCode(error) !== \"ENOENT\") throw error;\n }\n const messages: string[] = [];\n for (const [pid, owners] of claims) {\n if (!Number.isInteger(pid) || pid <= 0 || pid > 2147483647)\n throw new Error(\"The recorded SDA PID is invalid.\");\n try {\n process.kill(pid, 0);\n } catch (error) {\n if (errorCode(error) === \"ESRCH\") continue;\n throw error;\n }\n let command: string;\n if (process.platform === \"win32\") {\n if (owners.length !== 1) throw new Error(`PID ${pid} has no unambiguous SDA owner record.`);\n const owner: unknown = JSON.parse(\n readFileSync(join(SDA_LOCK_DIRECTORY, owners[0], \"owner.json\"), \"utf8\"),\n );\n // WMI has no readable cwd. This is the claim's recorded project association,\n // not proof of the live process's cwd or protection against PID reuse.\n if (\n !isObject(owner) ||\n typeof owner.projectRoot !== \"string\" ||\n realpathSync(owner.projectRoot) !== realpathSync(process.cwd())\n )\n throw new Error(`PID ${pid} could not be verified as this project's SDA process.`);\n const result: unknown = JSON.parse(\n execFileSync(\n \"powershell.exe\",\n [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-Command\",\n \"[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); \" +\n `(Get-CimInstance Win32_Process -Filter 'ProcessId = ${pid}' -ErrorAction Stop).CommandLine | ConvertTo-Json -Compress`,\n ],\n {\n encoding: \"utf8\",\n // A cold PowerShell/CIM startup can exceed five seconds on Windows.\n timeout: 10000,\n maxBuffer: 64 * 1024,\n windowsHide: true,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n },\n ),\n );\n if (typeof result !== \"string\" || !result.trim())\n throw new Error(`PID ${pid} has no readable command line.`);\n command = result;\n } else if (process.platform === \"darwin\" || process.platform === \"linux\") {\n command = execFileSync(\"ps\", [\"-p\", String(pid), \"-o\", \"command=\"], {\n encoding: \"utf8\",\n timeout: 5000,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n }).trim();\n const cwd =\n process.platform === \"linux\"\n ? realpathSync(`/proc/${pid}/cwd`)\n : execFileSync(\"lsof\", [\"-a\", \"-p\", String(pid), \"-d\", \"cwd\", \"-Fn\"], {\n encoding: \"utf8\",\n timeout: 5000,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n })\n .split(\"\\n\")\n .find((line) => line.startsWith(\"n\"))\n ?.slice(1);\n if (!cwd || realpathSync(cwd) !== realpathSync(process.cwd()))\n throw new Error(`PID ${pid} could not be verified as this project's SDA process.`);\n } else {\n throw new Error(\"Active SDA processes cannot be verified on this platform.\");\n }\n const executable = process.argv[1];\n if (\n !executable ||\n (!command.includes(executable) &&\n !command.includes(realpathSync(executable)) &&\n !/(?:[\\\\/]@nshiab[\\\\/]setup-data-project[\\\\/]dist[\\\\/]sda\\.mjs|[\\\\/]node_modules[\\\\/]\\.bin[\\\\/]sda-run)(?:[\"\\s]|$)/.test(\n command,\n ))\n )\n throw new Error(`PID ${pid} could not be verified as this project's SDA process.`);\n messages.push(\n /(?:^|[\"\\s])--watch(?:[\"\\s]|$)/.test(command)\n ? `SDA watcher is running (${run} sda:watch, PID ${pid}). It automatically fixes files and reruns the analysis. If you are an agent, ask the user to stop it with Ctrl+C, then recheck with ${retry} before doing any work.`\n : `SDA analysis is running (${run} sda, PID ${pid}). Wait for it to finish. Recheck with ${retry} in 30 seconds before doing any work.`,\n );\n }\n for (const message of messages) console.log(message);\n if (messages.length) return 1;\n console.log(\"No active SDA process found. You can proceed.\");\n return 0;\n } catch (error) {\n console.error(\n `Unable to verify SDA status: ${error instanceof Error ? error.message : String(error)} If you are an agent, ask the user to confirm that neither ${run} sda nor ${run} sda:watch is running and that you may proceed, then wait for their confirmation before doing any work.`,\n );\n return 2;\n }\n}\n","import { createInterface } from \"node:readline\";\nimport type { Readable } from \"node:stream\";\nimport { stripVTControlCharacters, styleText } from \"node:util\";\n\nexport function pipeFixOutput(output: Readable) {\n const lines = createInterface({ input: output, crlfDelay: Infinity });\n lines.on(\"line\", (line: string) => {\n const plain = stripVTControlCharacters(line);\n if (plain === \"Found 0 warnings and 0 errors.\") return;\n const timing = plain.match(\n /^Finished in ([\\d.]+)(ms|s) on \\d+ files?( with \\d+ rules)? using \\d+ threads?\\.$/,\n );\n if (timing) {\n const label = timing[3] ? \"Linting and type checking\" : \"Formatting\";\n console.log(styleText(\"blue\", `${label}: ${timing[1]} ${timing[2]}`));\n } else {\n // Forward diagnostics and unfamiliar output unchanged, including custom fix scripts.\n console.log(line);\n }\n });\n}\n","#!/usr/bin/env node\nimport { existsSync, lstatSync, type FSWatcher, readdirSync, rmSync, watch } from \"node:fs\";\nimport { spawn, spawnSync, type ChildProcess } from \"node:child_process\";\nimport { dirname, join, resolve, sep } from \"node:path\";\nimport { setTimeout as delay } from \"node:timers/promises\";\nimport { parseArgs } from \"node:util\";\nimport { acquireSdaLock, SDA_LOCK_DIRECTORY } from \"./helpers/sdaLock.ts\";\nimport { printSdaStatus } from \"./helpers/sdaStatus.ts\";\nimport { pipeFixOutput } from \"./helpers/pipeFixOutput.ts\";\n\nconst {\n positionals: [entry, ...paths],\n values,\n} = parseArgs({\n allowPositionals: true,\n options: {\n clean: { type: \"boolean\", default: false },\n status: { type: \"boolean\", default: false },\n watch: { type: \"boolean\", default: false },\n ignore: { type: \"string\", multiple: true, default: [] },\n },\n});\nif (values.clean) {\n if (entry || values.status || values.watch || values.ignore.length) {\n console.error(\"Usage: sda-run --clean (without other options or paths)\");\n process.exit(1);\n }\n try {\n for (const path of [\".sda-cache\", \".journalism-cache\", \".tmp\"]) {\n if (path === \".sda-cache\") {\n const stat = lstatSync(path, { throwIfNoEntry: false });\n if (!stat) continue;\n if (!stat.isDirectory()) {\n rmSync(path, { force: true });\n continue;\n }\n // Keep the lock and its parent stable, including during concurrent starts.\n for (const name of readdirSync(path)) {\n const child = join(path, name);\n if (resolve(child) !== resolve(SDA_LOCK_DIRECTORY))\n rmSync(child, { recursive: true, force: true });\n }\n continue;\n }\n rmSync(path, { recursive: true, force: true });\n }\n } catch (error) {\n console.error(\"Could not clean caches: \" + errorMessage(error));\n process.exit(1);\n }\n process.exit(0);\n}\nif (values.status) process.exit(printSdaStatus());\nif (!entry) {\n console.error(\n \"Usage: sda-run --clean | --status | [--watch] <entry-file> [watch-paths...] [--ignore path]\",\n );\n process.exit(1);\n}\nconst watching = values.watch;\nconst selected = [entry, ...paths].map((path) => resolve(path));\nconst ignored = [SDA_LOCK_DIRECTORY, ...values.ignore].map((path) => resolve(path));\nconst within = (path: string, root: string) => path === root || path.startsWith(root + sep);\nconst excluded = (path: string) => ignored.some((root) => within(path, root));\nconst bun = Boolean(process.versions.bun);\nconst runCommand = (bun ? \"bun run \" : \"npm run \") + (watching ? \"sda:watch\" : \"sda\");\nconst windows = process.platform === \"win32\";\ntype Job = { child: ChildProcess; done: Promise<number | null> };\nlet releaseLock: (() => void) | undefined;\nlet fixer: Job | undefined;\nlet analysis: Job | undefined;\nlet timer: ReturnType<typeof setTimeout> | undefined;\nlet checking = false;\nlet closing = false;\nlet needsCheck = true;\nlet contents = new Map<string, string | null>();\nconst watchers = new Map<string, { watcher: FSWatcher; recursive: boolean }>();\n\nfunction launch(args: string[], command = process.execPath, summarize = false) {\n const child = spawn(command, args, {\n // Bun's Windows --bun shim is named node.exe; keep Bun CLI argument parsing.\n argv0: windows && bun && command === process.execPath ? \"bun\" : undefined,\n stdio: [\"inherit\", summarize ? \"pipe\" : \"inherit\", \"inherit\"],\n detached: !windows,\n shell: windows && command === \"npm.cmd\",\n });\n if (summarize && child.stdout) {\n const output = child.stdout;\n pipeFixOutput(output);\n child.once(\"exit\", () => {\n // Background descendants can inherit stdout; don't wait forever for their pipe to close.\n const timeout = setTimeout(() => output.destroy(), 1000);\n child.once(\"close\", () => clearTimeout(timeout));\n });\n }\n const done = new Promise<number | null>((resolve) => {\n child.once(\"error\", (error) => {\n console.error(errorMessage(error));\n resolve(1);\n });\n child.once(\"close\", resolve);\n });\n return { child, done };\n}\n\nfunction snapshot() {\n const files = new Map<string, string | null>();\n function collect(path: string) {\n if (excluded(path) || files.has(path)) return;\n try {\n const stat = lstatSync(path, { bigint: true });\n if (stat.isDirectory()) {\n files.set(path, \"directory\");\n for (const name of readdirSync(path)) collect(join(path, name));\n } else {\n // Compare metadata without reading potentially large datasets or following symlinks.\n files.set(path, [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(\":\"));\n }\n } catch (error) {\n if (errorCode(error) !== \"ENOENT\" && errorCode(error) !== \"ENOTDIR\") throw error;\n files.set(path, null);\n }\n }\n for (const path of selected) collect(path);\n return files;\n}\n\nfunction equal(left: Map<string, string | null>, right: Map<string, string | null>) {\n return left.size === right.size && [...left].every(([path, value]) => right.get(path) === value);\n}\n\nfunction refreshWatchers() {\n const directories = new Map<string, boolean>();\n const add = (directory: string, recursive: boolean) => {\n directories.set(directory, recursive || directories.get(directory) || false);\n };\n for (const path of selected) {\n if (excluded(path)) continue;\n if (lstatSync(path, { throwIfNoEntry: false })?.isDirectory()) add(path, true);\n // Watch the parent too, so deleted files and folders can be restored.\n let parent = dirname(path);\n while (!existsSync(parent)) parent = dirname(parent);\n add(parent, parent !== dirname(path));\n }\n for (const [directory, state] of watchers) {\n if (directories.get(directory) !== state.recursive) {\n state.watcher.close();\n watchers.delete(directory);\n }\n }\n for (const [directory, recursive] of directories) {\n if (watchers.has(directory)) continue;\n const watcher = watch(directory, { recursive }, (_event, name) => {\n if (checking || closing) return;\n const changed = name && resolve(directory, name.toString());\n if (\n !changed ||\n (!excluded(changed) &&\n selected.some((path) => within(changed, path) || within(path, changed)))\n )\n schedule();\n });\n watcher.on(\"error\", fail);\n watchers.set(directory, { watcher, recursive });\n }\n}\n\nasync function stop(job: Job | undefined) {\n if (!job?.child.pid) return;\n const pid = job.child.pid;\n if (windows) {\n if (job.child.exitCode === null && job.child.signalCode === null) {\n spawnSync(\"taskkill\", [\"/pid\", String(job.child.pid), \"/T\", \"/F\"], { stdio: \"ignore\" });\n }\n await job.done;\n return;\n }\n const signal = (name: NodeJS.Signals | 0) => {\n try {\n process.kill(-pid, name);\n return true;\n } catch (error) {\n if (errorCode(error) !== \"ESRCH\") throw error;\n return false;\n }\n };\n signal(\"SIGTERM\");\n // The direct child can exit first; retain the grace period for its entire process group.\n const deadline = performance.now() + 1000;\n while (signal(0)) {\n if (performance.now() >= deadline) {\n signal(\"SIGKILL\");\n break;\n }\n await delay(25);\n }\n await job.done;\n}\n\nasync function check() {\n if (closing || checking) return;\n if (!needsCheck && equal(contents, snapshot())) return;\n checking = true;\n needsCheck = false;\n await stop(analysis);\n analysis = undefined;\n if (closing) return;\n refreshWatchers();\n contents = snapshot();\n process.stdout.write(\"\\u001b[2J\\u001b[3J\\u001b[H\");\n fixer = launch(\n [\"run\", \"--silent\", \"fix\"],\n bun ? process.execPath : windows ? \"npm.cmd\" : \"npm\",\n true,\n );\n const fixed = await fixer.done;\n if (closing) return;\n const current = snapshot();\n // Recheck edits made during fixes; ignore delayed events for unchanged file states.\n needsCheck = !equal(contents, current);\n contents = current;\n refreshWatchers();\n fixer = undefined;\n checking = false;\n if (needsCheck) {\n schedule();\n } else if (fixed === 0) {\n console.log();\n analysis = launch(bun ? [\"run\", entry] : [\"--env-file=.env\", entry]);\n } else {\n console.log(\"Fix failed. Watching for changes...\");\n }\n}\n\nfunction schedule() {\n clearTimeout(timer);\n timer = setTimeout(() => check().catch(fail), 0);\n}\n\nasync function shutdown(code: number) {\n if (closing) return;\n closing = true;\n clearTimeout(timer);\n for (const { watcher } of watchers.values()) watcher.close();\n await Promise.all([stop(fixer), stop(analysis)]);\n releaseLock?.();\n process.exit(code);\n}\n\nfunction errorCode(error: unknown) {\n return error instanceof Error && \"code\" in error ? error.code : undefined;\n}\n\nfunction errorMessage(error: unknown) {\n return error instanceof Error ? error.message : String(error);\n}\n\nfunction fail(error: unknown) {\n console.error(errorMessage(error));\n void shutdown(1);\n}\n\nprocess.on(\"SIGINT\", () => void shutdown(0));\nprocess.on(\"SIGTERM\", () => void shutdown(0));\n\nasync function runOnce() {\n fixer = launch(\n [\"run\", \"--silent\", \"fix\"],\n bun ? process.execPath : windows ? \"npm.cmd\" : \"npm\",\n true,\n );\n const fixed = await fixer.done;\n if (closing) return;\n if (fixed !== 0) {\n await shutdown(fixed ?? 1);\n return;\n }\n await stop(fixer);\n fixer = undefined;\n if (closing) return;\n console.log();\n analysis = launch(bun ? [\"run\", entry] : [\"--env-file=.env\", entry]);\n const result = await analysis.done;\n await shutdown(result ?? 1);\n}\n\ntry {\n releaseLock = await acquireSdaLock(runCommand);\n if (closing) releaseLock();\n else if (watching) {\n refreshWatchers();\n void check().catch(fail);\n } else {\n void runOnce().catch(fail);\n }\n} catch (error) {\n fail(new Error(\"Cannot start \" + runCommand + \": \" + errorMessage(error)));\n}\n"],"mappings":";;;;;;;;;;AAeA,MAAa,qBAAqB;AAIlC,SAASA,YAAU,OAAgB;CACjC,OAAO,iBAAiB,SAAS,UAAU,QAAQ,MAAM,OAAO,KAAA;AAClE;AAKA,eAAsB,eAAe,SAAsC;CACzE,MAAM,YAAY,QAAQ,kBAAkB;CAC5C,MAAM,KAAK,GAAG,QAAQ,IAAI,GAAG,WAAW;CACxC,MAAM,eAAe,KAAK,WAAW,EAAE;CACvC,UAAU,WAAW,EAAE,WAAW,KAAK,CAAC;CACxC,UAAU,YAAY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us.ts","../src/helpers/pipeFixOutput.ts","../src/helpers/fileChanges.ts","../src/sda.ts"],"sourcesContent":["import { randomUUID } from \"node:crypto\";\nimport {\n existsSync,\n mkdirSync,\n readFileSync,\n readdirSync,\n realpathSync,\n renameSync,\n rmSync,\n writeFileSync,\n} from \"node:fs\";\nimport { join, resolve } from \"node:path\";\nimport { setTimeout as delay } from \"node:timers/promises\";\nimport { isObject } from \"./jsonObject.ts\";\n\nexport const SDA_LOCK_DIRECTORY = \".sda-cache/lock\";\n\ntype Claim = { id: string; pid: number; ticket: number; command?: string };\n\nfunction errorCode(error: unknown) {\n return error instanceof Error && \"code\" in error ? error.code : undefined;\n}\n\n// Bakery ordering: publish a unique claim before choosing a ticket, then wait for\n// concurrent ticket choices. Never replace/delete a shared lock during recovery.\n// https://www.microsoft.com/en-us/research/publication/new-solution-dijkstras-concurrent-programming-problem/\nexport async function acquireSdaLock(command: string): Promise<() => void> {\n const directory = resolve(SDA_LOCK_DIRECTORY);\n const id = `${process.pid}-${randomUUID()}`;\n const ownDirectory = join(directory, id);\n mkdirSync(directory, { recursive: true });\n mkdirSync(ownDirectory);\n const release = () => {\n rmSync(ownDirectory, { recursive: true, force: true });\n process.removeListener(\"exit\", release);\n };\n process.once(\"exit\", release);\n\n function readClaim(candidate: string): Claim | undefined {\n const match = /^(\\d+)-[\\da-f-]{36}$/.exec(candidate);\n if (!match) return;\n const pid = Number(match[1]);\n if (!Number.isInteger(pid) || pid <= 0 || pid > 2147483647) return;\n const path = join(directory, candidate);\n try {\n process.kill(pid, 0);\n } catch (error) {\n if (errorCode(error) !== \"ESRCH\") throw error;\n // Claim names are never reused, so another starter cannot acquire this path.\n rmSync(path, { recursive: true, force: true });\n return;\n }\n let record: unknown;\n try {\n record = JSON.parse(readFileSync(join(path, \"owner.json\"), \"utf8\"));\n } catch (error) {\n if (errorCode(error) !== \"ENOENT\") throw error;\n // A directory without a published ticket is still choosing, or has exited.\n return existsSync(path) ? { id: candidate, pid, ticket: 0 } : undefined;\n }\n if (\n !isObject(record) ||\n typeof record.ticket !== \"number\" ||\n !Number.isSafeInteger(record.ticket) ||\n record.ticket < 1 ||\n typeof record.command !== \"string\"\n )\n throw new Error(`Cannot read the SDA lock owned by process ${pid}.`);\n return { id: candidate, pid, ticket: record.ticket, command: record.command };\n }\n\n try {\n let ticket = 1;\n for (const candidate of readdirSync(directory)) {\n const claim = readClaim(candidate);\n if (claim) ticket = Math.max(ticket, claim.ticket + 1);\n }\n writeFileSync(\n join(ownDirectory, \"owner.tmp\"),\n JSON.stringify({ ticket, command, projectRoot: realpathSync(process.cwd()) }),\n );\n renameSync(join(ownDirectory, \"owner.tmp\"), join(ownDirectory, \"owner.json\"));\n const deadline = performance.now() + 5000;\n for (const candidate of readdirSync(directory)) {\n if (candidate === id) continue;\n let claim = readClaim(candidate);\n while (claim?.ticket === 0) {\n if (performance.now() >= deadline)\n throw new Error(\n `Another SDA command is still starting (PID ${claim.pid}). Wait for it to finish starting, then try again.`,\n );\n await delay(10);\n claim = readClaim(candidate);\n }\n if (claim && (claim.ticket < ticket || (claim.ticket === ticket && claim.id < id)))\n throw new Error(\n `${claim.command} is already running${claim.command?.endsWith(\"sda:watch\") ? \" and watching this project's files\" : \" an analysis for this project\"} (PID ${claim.pid}). Wait for it to finish or stop it with Ctrl+C in its terminal, then try again.`,\n );\n }\n return release;\n } catch (error) {\n release();\n throw error;\n }\n}\n","import { execFileSync } from \"node:child_process\";\nimport { readFileSync, readdirSync, realpathSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { isObject } from \"./jsonObject.ts\";\nimport { SDA_LOCK_DIRECTORY } from \"./sdaLock.ts\";\n\nfunction errorCode(error: unknown) {\n return error instanceof Error && \"code\" in error ? error.code : undefined;\n}\n\n// Status is read-only: a missing or dead owner is ignored, never removed.\nexport function printSdaStatus(): number {\n const run = `${process.versions.bun ? \"bun\" : \"npm\"} run`;\n const retry = `${run} sda:status`;\n try {\n const claims = new Map<number, string[]>();\n try {\n for (const name of readdirSync(SDA_LOCK_DIRECTORY)) {\n const match = /^(\\d+)-[\\da-f-]{36}$/.exec(name);\n if (match) {\n const pid = Number(match[1]);\n claims.set(pid, [...(claims.get(pid) ?? []), name]);\n }\n }\n } catch (error) {\n if (errorCode(error) !== \"ENOENT\") throw error;\n }\n const messages: string[] = [];\n for (const [pid, owners] of claims) {\n if (!Number.isInteger(pid) || pid <= 0 || pid > 2147483647)\n throw new Error(\"The recorded SDA PID is invalid.\");\n try {\n process.kill(pid, 0);\n } catch (error) {\n if (errorCode(error) === \"ESRCH\") continue;\n throw error;\n }\n let command: string;\n if (process.platform === \"win32\") {\n if (owners.length !== 1) throw new Error(`PID ${pid} has no unambiguous SDA owner record.`);\n const owner: unknown = JSON.parse(\n readFileSync(join(SDA_LOCK_DIRECTORY, owners[0], \"owner.json\"), \"utf8\"),\n );\n // WMI has no readable cwd. This is the claim's recorded project association,\n // not proof of the live process's cwd or protection against PID reuse.\n if (\n !isObject(owner) ||\n typeof owner.projectRoot !== \"string\" ||\n realpathSync(owner.projectRoot) !== realpathSync(process.cwd())\n )\n throw new Error(`PID ${pid} could not be verified as this project's SDA process.`);\n const result: unknown = JSON.parse(\n execFileSync(\n \"powershell.exe\",\n [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-Command\",\n \"[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); \" +\n `(Get-CimInstance Win32_Process -Filter 'ProcessId = ${pid}' -ErrorAction Stop).CommandLine | ConvertTo-Json -Compress`,\n ],\n {\n encoding: \"utf8\",\n // A cold PowerShell/CIM startup can exceed five seconds on Windows.\n timeout: 10000,\n maxBuffer: 64 * 1024,\n windowsHide: true,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n },\n ),\n );\n if (typeof result !== \"string\" || !result.trim())\n throw new Error(`PID ${pid} has no readable command line.`);\n command = result;\n } else if (process.platform === \"darwin\" || process.platform === \"linux\") {\n command = execFileSync(\"ps\", [\"-p\", String(pid), \"-o\", \"command=\"], {\n encoding: \"utf8\",\n timeout: 5000,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n }).trim();\n const cwd =\n process.platform === \"linux\"\n ? realpathSync(`/proc/${pid}/cwd`)\n : execFileSync(\"lsof\", [\"-a\", \"-p\", String(pid), \"-d\", \"cwd\", \"-Fn\"], {\n encoding: \"utf8\",\n timeout: 5000,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n })\n .split(\"\\n\")\n .find((line) => line.startsWith(\"n\"))\n ?.slice(1);\n if (!cwd || realpathSync(cwd) !== realpathSync(process.cwd()))\n throw new Error(`PID ${pid} could not be verified as this project's SDA process.`);\n } else {\n throw new Error(\"Active SDA processes cannot be verified on this platform.\");\n }\n const executable = process.argv[1];\n if (\n !executable ||\n (!command.includes(executable) &&\n !command.includes(realpathSync(executable)) &&\n !/(?:[\\\\/]@nshiab[\\\\/]setup-data-project[\\\\/]dist[\\\\/]sda\\.mjs|[\\\\/]node_modules[\\\\/]\\.bin[\\\\/]sda-run)(?:[\"\\s]|$)/.test(\n command,\n ))\n )\n throw new Error(`PID ${pid} could not be verified as this project's SDA process.`);\n messages.push(\n /(?:^|[\"\\s])--watch(?:[\"\\s]|$)/.test(command)\n ? `SDA watcher is running (${run} sda:watch, PID ${pid}). It automatically fixes files and reruns the analysis. If you are an agent, ask the user to stop it with Ctrl+C, then recheck with ${retry} before doing any work.`\n : `SDA analysis is running (${run} sda, PID ${pid}). Wait for it to finish. Recheck with ${retry} in 30 seconds before doing any work.`,\n );\n }\n for (const message of messages) console.log(message);\n if (messages.length) return 1;\n console.log(\"No active SDA process found. You can proceed.\");\n return 0;\n } catch (error) {\n console.error(\n `Unable to verify SDA status: ${error instanceof Error ? error.message : String(error)} If you are an agent, ask the user to confirm that neither ${run} sda nor ${run} sda:watch is running and that you may proceed, then wait for their confirmation before doing any work.`,\n );\n return 2;\n }\n}\n","import { createInterface } from \"node:readline\";\nimport type { Readable } from \"node:stream\";\nimport { stripVTControlCharacters, styleText } from \"node:util\";\n\nexport function pipeFixOutput(output: Readable) {\n const lines = createInterface({ input: output, crlfDelay: Infinity });\n lines.on(\"line\", (line: string) => {\n const plain = stripVTControlCharacters(line);\n if (plain === \"Found 0 warnings and 0 errors.\") return;\n const timing = plain.match(\n /^Finished in ([\\d.]+)(ms|s) on \\d+ files?( with \\d+ rules)? using \\d+ threads?\\.$/,\n );\n if (timing) {\n const label = timing[3] ? \"Linting and type checking\" : \"Formatting\";\n console.log(styleText(\"blue\", `${label}: ${timing[1]} ${timing[2]}`));\n } else {\n // Forward diagnostics and unfamiliar output unchanged, including custom fix scripts.\n console.log(line);\n }\n });\n}\n","import { lstatSync, readdirSync } from \"node:fs\";\nimport { join } from \"node:path\";\n\ntype Entry = { value: string | null; generation: number };\n// Reconcile the selected tree into one metadata index. Always start at the\n// selected roots: event paths can be incomplete or stale after a directory move.\nexport function createFileChanges(selected: string[], excluded: (path: string) => boolean) {\n const files = new Map<string, Entry>();\n let generation = 0;\n\n function check() {\n generation++;\n let changed = false;\n\n function update(path: string, value: string | null) {\n const previous = files.get(path);\n if (previous) {\n if (previous.value !== value) {\n previous.value = value;\n changed = true;\n }\n previous.generation = generation;\n } else {\n files.set(path, { value, generation });\n changed = true;\n }\n }\n\n function collect(path: string) {\n if (excluded(path) || files.get(path)?.generation === generation) return;\n try {\n const stat = lstatSync(path, { bigint: true });\n if (stat.isDirectory()) {\n const names = readdirSync(path);\n update(path, \"directory\");\n for (const name of names) collect(join(path, name));\n } else {\n update(path, [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(\":\"));\n }\n } catch (error) {\n if (\n !(error instanceof Error) ||\n !(\"code\" in error) ||\n (error.code !== \"ENOENT\" && error.code !== \"ENOTDIR\")\n )\n throw error;\n update(path, null);\n }\n }\n\n for (const path of selected) collect(path);\n // Remove entries not visited in this check without allocating a second map.\n for (const [path, entry] of files) {\n if (entry.generation !== generation) {\n files.delete(path);\n changed = true;\n }\n }\n return changed;\n }\n\n return { check };\n}\n","#!/usr/bin/env node\nimport { existsSync, lstatSync, type FSWatcher, readdirSync, rmSync, watch } from \"node:fs\";\nimport { spawn, spawnSync, type ChildProcess } from \"node:child_process\";\nimport { dirname, join, resolve, sep } from \"node:path\";\nimport { setTimeout as delay } from \"node:timers/promises\";\nimport { parseArgs } from \"node:util\";\nimport { acquireSdaLock, SDA_LOCK_DIRECTORY } from \"./helpers/sdaLock.ts\";\nimport { printSdaStatus } from \"./helpers/sdaStatus.ts\";\nimport { pipeFixOutput } from \"./helpers/pipeFixOutput.ts\";\nimport { createFileChanges } from \"./helpers/fileChanges.ts\";\n\nconst {\n positionals: [entry, ...paths],\n values,\n} = parseArgs({\n allowPositionals: true,\n options: {\n clean: { type: \"boolean\", default: false },\n status: { type: \"boolean\", default: false },\n watch: { type: \"boolean\", default: false },\n ignore: { type: \"string\", multiple: true, default: [] },\n },\n});\nif (values.clean) {\n if (entry || values.status || values.watch || values.ignore.length) {\n console.error(\"Usage: sda-run --clean (without other options or paths)\");\n process.exit(1);\n }\n try {\n for (const path of [\".sda-cache\", \".journalism-cache\", \".tmp\"]) {\n if (path === \".sda-cache\") {\n const stat = lstatSync(path, { throwIfNoEntry: false });\n if (!stat) continue;\n if (!stat.isDirectory()) {\n rmSync(path, { force: true });\n continue;\n }\n // Keep the lock and its parent stable, including during concurrent starts.\n for (const name of readdirSync(path)) {\n const child = join(path, name);\n if (resolve(child) !== resolve(SDA_LOCK_DIRECTORY))\n rmSync(child, { recursive: true, force: true });\n }\n continue;\n }\n rmSync(path, { recursive: true, force: true });\n }\n } catch (error) {\n console.error(\"Could not clean caches: \" + errorMessage(error));\n process.exit(1);\n }\n process.exit(0);\n}\nif (values.status) process.exit(printSdaStatus());\nif (!entry) {\n console.error(\n \"Usage: sda-run --clean | --status | [--watch] <entry-file> [watch-paths...] [--ignore path]\",\n );\n process.exit(1);\n}\nconst watching = values.watch;\nconst selected = [entry, ...paths].map((path) => resolve(path));\nconst ignored = [SDA_LOCK_DIRECTORY, ...values.ignore].map((path) => resolve(path));\nconst within = (path: string, root: string) => path === root || path.startsWith(root + sep);\nconst excluded = (path: string) => ignored.some((root) => within(path, root));\nconst bun = Boolean(process.versions.bun);\nconst runCommand = (bun ? \"bun run \" : \"npm run \") + (watching ? \"sda:watch\" : \"sda\");\nconst windows = process.platform === \"win32\";\ntype Job = { child: ChildProcess; done: Promise<number | null> };\nlet releaseLock: (() => void) | undefined;\nlet fixer: Job | undefined;\nlet analysis: Job | undefined;\nlet timer: ReturnType<typeof setTimeout> | undefined;\nlet checking = false;\nlet closing = false;\nlet needsCheck = true;\nconst changes = createFileChanges(selected, excluded);\nconst watchers = new Map<string, { watcher: FSWatcher; recursive: boolean }>();\n\nfunction launch(args: string[], command = process.execPath, summarize = false) {\n const child = spawn(command, args, {\n // Bun's Windows --bun shim is named node.exe; keep Bun CLI argument parsing.\n argv0: windows && bun && command === process.execPath ? \"bun\" : undefined,\n stdio: [\"inherit\", summarize ? \"pipe\" : \"inherit\", \"inherit\"],\n detached: !windows,\n shell: windows && command === \"npm.cmd\",\n });\n if (summarize && child.stdout) {\n const output = child.stdout;\n pipeFixOutput(output);\n child.once(\"exit\", () => {\n // Background descendants can inherit stdout; don't wait forever for their pipe to close.\n const timeout = setTimeout(() => output.destroy(), 1000);\n child.once(\"close\", () => clearTimeout(timeout));\n });\n }\n const done = new Promise<number | null>((resolve) => {\n child.once(\"error\", (error) => {\n console.error(errorMessage(error));\n resolve(1);\n });\n child.once(\"close\", resolve);\n });\n return { child, done };\n}\n\nfunction refreshWatchers() {\n const directories = new Map<string, boolean>();\n const add = (directory: string, recursive: boolean) => {\n directories.set(directory, recursive || directories.get(directory) || false);\n };\n for (const path of selected) {\n if (excluded(path)) continue;\n if (lstatSync(path, { throwIfNoEntry: false })?.isDirectory()) add(path, true);\n // Watch the parent too, so deleted files and folders can be restored.\n let parent = dirname(path);\n while (!existsSync(parent)) parent = dirname(parent);\n add(parent, parent !== dirname(path));\n }\n for (const [directory, state] of watchers) {\n if (directories.get(directory) !== state.recursive) {\n state.watcher.close();\n watchers.delete(directory);\n }\n }\n for (const [directory, recursive] of directories) {\n if (watchers.has(directory)) continue;\n const watcher = watch(directory, { recursive }, (_event, name) => {\n if (checking || closing) return;\n const changed = name && resolve(directory, name.toString());\n if (\n !changed ||\n (!excluded(changed) &&\n selected.some((path) => within(changed, path) || within(path, changed)))\n )\n schedule();\n });\n watcher.on(\"error\", fail);\n watchers.set(directory, { watcher, recursive });\n }\n}\n\nasync function stop(job: Job | undefined) {\n if (!job?.child.pid) return;\n const pid = job.child.pid;\n if (windows) {\n if (job.child.exitCode === null && job.child.signalCode === null) {\n spawnSync(\"taskkill\", [\"/pid\", String(job.child.pid), \"/T\", \"/F\"], { stdio: \"ignore\" });\n }\n await job.done;\n return;\n }\n const signal = (name: NodeJS.Signals | 0) => {\n try {\n process.kill(-pid, name);\n return true;\n } catch (error) {\n if (errorCode(error) !== \"ESRCH\") throw error;\n return false;\n }\n };\n signal(\"SIGTERM\");\n // The direct child can exit first; retain the grace period for its entire process group.\n const deadline = performance.now() + 1000;\n while (signal(0)) {\n if (performance.now() >= deadline) {\n signal(\"SIGKILL\");\n break;\n }\n await delay(25);\n }\n await job.done;\n}\n\nasync function check() {\n if (closing || checking) return;\n const changed = changes.check();\n if (!needsCheck && !changed) return;\n checking = true;\n needsCheck = false;\n await stop(analysis);\n analysis = undefined;\n if (closing) return;\n refreshWatchers();\n process.stdout.write(\"\\u001b[2J\\u001b[3J\\u001b[H\");\n fixer = launch(\n [\"run\", \"--silent\", \"fix\"],\n bun ? process.execPath : windows ? \"npm.cmd\" : \"npm\",\n true,\n );\n const fixed = await fixer.done;\n if (closing) return;\n // Recheck edits made during fixes; ignore delayed events for unchanged file states.\n needsCheck = changes.check();\n refreshWatchers();\n fixer = undefined;\n checking = false;\n if (needsCheck) {\n schedule();\n } else if (fixed === 0) {\n console.log();\n analysis = launch(bun ? [\"run\", entry] : [\"--env-file=.env\", entry]);\n } else {\n console.log(\"Fix failed. Watching for changes...\");\n }\n}\n\nfunction schedule() {\n clearTimeout(timer);\n timer = setTimeout(() => check().catch(fail), 0);\n}\n\nasync function shutdown(code: number) {\n if (closing) return;\n closing = true;\n clearTimeout(timer);\n for (const { watcher } of watchers.values()) watcher.close();\n await Promise.all([stop(fixer), stop(analysis)]);\n releaseLock?.();\n process.exit(code);\n}\n\nfunction errorCode(error: unknown) {\n return error instanceof Error && \"code\" in error ? error.code : undefined;\n}\n\nfunction errorMessage(error: unknown) {\n return error instanceof Error ? error.message : String(error);\n}\n\nfunction fail(error: unknown) {\n console.error(errorMessage(error));\n void shutdown(1);\n}\n\nprocess.on(\"SIGINT\", () => void shutdown(0));\nprocess.on(\"SIGTERM\", () => void shutdown(0));\n\nasync function runOnce() {\n fixer = launch(\n [\"run\", \"--silent\", \"fix\"],\n bun ? process.execPath : windows ? \"npm.cmd\" : \"npm\",\n true,\n );\n const fixed = await fixer.done;\n if (closing) return;\n if (fixed !== 0) {\n await shutdown(fixed ?? 1);\n return;\n }\n await stop(fixer);\n fixer = undefined;\n if (closing) return;\n console.log();\n analysis = launch(bun ? [\"run\", entry] : [\"--env-file=.env\", entry]);\n const result = await analysis.done;\n await shutdown(result ?? 1);\n}\n\ntry {\n releaseLock = await acquireSdaLock(runCommand);\n if (closing) releaseLock();\n else if (watching) {\n refreshWatchers();\n void check().catch(fail);\n } else {\n void runOnce().catch(fail);\n }\n} catch (error) {\n fail(new Error(\"Cannot start \" + runCommand + \": \" + errorMessage(error)));\n}\n"],"mappings":";;;;;;;;;;AAeA,MAAa,qBAAqB;AAIlC,SAASA,YAAU,OAAgB;CACjC,OAAO,iBAAiB,SAAS,UAAU,QAAQ,MAAM,OAAO,KAAA;AAClE;AAKA,eAAsB,eAAe,SAAsC;CACzE,MAAM,YAAY,QAAQ,kBAAkB;CAC5C,MAAM,KAAK,GAAG,QAAQ,IAAI,GAAG,WAAW;CACxC,MAAM,eAAe,KAAK,WAAW,EAAE;CACvC,UAAU,WAAW,EAAE,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;CACF,cAAc,MAAM,eAAe,UAAU;CAC7C,IAAI,SAAS,YAAY;MACpB,IAAI,UAAU;EACjB,gBAAgB;EAChB,MAAW,CAAC,CAAC,MAAM,IAAI;CACzB,OACE,QAAa,CAAC,CAAC,MAAM,IAAI;AAE7B,SAAS,OAAO;CACd,qBAAK,IAAI,MAAM,kBAAkB,aAAa,OAAO,aAAa,KAAK,CAAC,CAAC;AAC3E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nshiab/setup-data-project",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "description": "Quickly kick off a project using simple-data-analysis-core, simple-data-analysis, and journalism libraries.",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/nshiab/setup-data-project",