@staff0rd/assist 0.297.1 → 0.297.3

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/README.md CHANGED
@@ -158,7 +158,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
158
158
  - `assist verify init` - Add verify scripts to a project (writes to `assist.yml` by default; pass `--package-json` to write to `package.json` scripts instead)
159
159
  - `assist verify hardcoded-colors` - Check for hardcoded hex colors in src/ (supports `hardcodedColors.ignore` globs in config)
160
160
  - `assist verify comment-policy` - Flag comments added on changed lines (staged + unstaged) unless they carry a justification marker; supports `commentPolicy.markers` and `commentPolicy.ignore` globs in config
161
- - `assist lint [-f, --fix]` - Run lint checks for conventions not enforced by biomejs (use `-f` to auto-fix)
161
+ - `assist lint [-f, --fix]` - Run lint checks for conventions not enforced by oxlint (use `-f` to auto-fix)
162
162
  - `assist lint init` - Initialize Biome with standard linter config
163
163
  - `assist refactor check [pattern]` - Check for files that exceed the maximum line count
164
164
  - `assist refactor ignore <file>` - Add a file to the refactor ignore list
@@ -12,14 +12,14 @@ export function getExistingSiteId(): string | null {
12
12
  if (!existsSync(WORKFLOW_PATH)) {
13
13
  return null;
14
14
  }
15
- const content = readFileSync(WORKFLOW_PATH, "utf-8");
15
+ const content = readFileSync(WORKFLOW_PATH, "utf8");
16
16
  const match = content.match(/-s\s+([a-f0-9-]{36})/);
17
17
  return match ? match[1] : null;
18
18
  }
19
19
 
20
20
  function getTemplateContent(siteId: string): string {
21
21
  const templatePath = join(__dirname, "commands/deploy/build.yml");
22
- const template = readFileSync(templatePath, "utf-8");
22
+ const template = readFileSync(templatePath, "utf8");
23
23
  return template.replace("{{NETLIFY_SITE_ID}}", siteId);
24
24
  }
25
25
 
@@ -32,7 +32,7 @@ export async function updateWorkflow(siteId: string): Promise<void> {
32
32
  }
33
33
 
34
34
  if (existsSync(WORKFLOW_PATH)) {
35
- const oldContent = readFileSync(WORKFLOW_PATH, "utf-8");
35
+ const oldContent = readFileSync(WORKFLOW_PATH, "utf8");
36
36
 
37
37
  if (oldContent === newContent) {
38
38
  console.log(chalk.green("build.yml is already up to date"));
@@ -15,7 +15,7 @@ export function redirect(): void {
15
15
  return;
16
16
  }
17
17
 
18
- const content = readFileSync(indexPath, "utf-8");
18
+ const content = readFileSync(indexPath, "utf8");
19
19
 
20
20
  if (content.includes("window.location.pathname.endsWith('/')")) {
21
21
  console.log(chalk.dim("Trailing slash script already present"));
@@ -28,11 +28,9 @@ export function redirect(): void {
28
28
  return;
29
29
  }
30
30
 
31
- const newContent =
32
- content.slice(0, headCloseIndex) +
33
- TRAILING_SLASH_SCRIPT +
34
- "\n " +
35
- content.slice(headCloseIndex);
31
+ const newContent = `${
32
+ content.slice(0, headCloseIndex) + TRAILING_SLASH_SCRIPT
33
+ }\n ${content.slice(headCloseIndex)}`;
36
34
 
37
35
  writeFileSync(indexPath, newContent);
38
36
  console.log(chalk.green("Added trailing slash redirect to index.html"));
@@ -25,8 +25,8 @@ export async function init(): Promise<void> {
25
25
  }
26
26
 
27
27
  const linterConfigPath = join(__dirname, "commands/lint/biome.linter.json");
28
- const linterConfig = JSON.parse(readFileSync(linterConfigPath, "utf-8"));
29
- const biomeConfig = JSON.parse(readFileSync(biomeConfigPath, "utf-8"));
28
+ const linterConfig = JSON.parse(readFileSync(linterConfigPath, "utf8"));
29
+ const biomeConfig = JSON.parse(readFileSync(biomeConfigPath, "utf8"));
30
30
 
31
31
  const oldContent = `${JSON.stringify(biomeConfig, null, 2)}\n`;
32
32
  biomeConfig.linter = linterConfig.linter;
@@ -63,7 +63,7 @@ export function checkFileNames(): FileNameViolation[] {
63
63
  if (/\.(stories|test)\.(ts|tsx)$/.test(fileName)) continue;
64
64
 
65
65
  if (/^[A-Z]/.test(nameWithoutExt)) {
66
- const content = fs.readFileSync(filePath, "utf-8");
66
+ const content = fs.readFileSync(filePath, "utf8");
67
67
  if (
68
68
  !hasClassOrComponent(content) &&
69
69
  !hasMatchingTypeExport(content, nameWithoutExt)
@@ -1,4 +1,3 @@
1
- // Implements conventions not enforced by biomejs
2
1
  import { runFileNameCheck } from "./runFileNameCheck";
3
2
  import { runImportExtensionCheck } from "./runImportExtensionCheck";
4
3
  import { runStaticImportCheck } from "./runStaticImportCheck";
@@ -3,7 +3,7 @@ import { findSourceFiles } from "../../../shared/findSourceFiles";
3
3
  import { type LintViolation, reportViolations } from "../shared";
4
4
 
5
5
  function checkForImportExtensions(filePath: string): LintViolation[] {
6
- const content = fs.readFileSync(filePath, "utf-8");
6
+ const content = fs.readFileSync(filePath, "utf8");
7
7
  const lines = content.split("\n");
8
8
  const violations: LintViolation[] = [];
9
9
 
@@ -3,7 +3,7 @@ import { findSourceFiles } from "../../../shared/findSourceFiles";
3
3
  import { type LintViolation, reportViolations } from "../shared";
4
4
 
5
5
  function checkForDynamicImports(filePath: string): LintViolation[] {
6
- const content = fs.readFileSync(filePath, "utf-8");
6
+ const content = fs.readFileSync(filePath, "utf8");
7
7
  const lines = content.split("\n");
8
8
  const violations: LintViolation[] = [];
9
9
 
@@ -6,18 +6,14 @@ dependencies = []
6
6
 
7
7
  [project.optional-dependencies]
8
8
  runtime = [
9
- "onnxruntime>=1.17",
10
- "sounddevice>=0.4",
11
- "numpy>=1.24",
12
- "nemo_toolkit[asr]>=1.22",
13
- "silero-vad>=5.1",
14
- "torch>=2.0",
15
- ]
16
- dev = [
17
- "radon>=6.0",
18
- "ruff>=0.8",
19
- "xenon>=0.9",
9
+ "onnxruntime>=1.17",
10
+ "sounddevice>=0.4",
11
+ "numpy>=1.24",
12
+ "nemo_toolkit[asr]>=1.22",
13
+ "silero-vad>=5.1",
14
+ "torch>=2.0",
20
15
  ]
16
+ dev = ["radon>=6.0", "ruff>=0.8", "xenon>=0.9"]
21
17
 
22
18
  [[tool.uv.index]]
23
19
  name = "pytorch-cu124"