Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ name: CI
on:
push:
branches:
- "*"
- '*'
pull_request:
branches:
- main

permissions:
contents: read

env:
pnpm-version: 10.2.1
node-version: 23

jobs:
ci:
runs-on: ubuntu-latest
Expand All @@ -19,15 +23,15 @@ jobs:

- uses: pnpm/action-setup@v2
with:
version: 10.2.1
version: ${{ env.pnpm-version }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 23
node-version: ${{ env.node-version }}

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build:ci

Expand All @@ -38,4 +42,4 @@ jobs:
run: pnpm test

- name: Lint
run: pnpm lint
run: pnpm lint
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
dist
.env
runs
data
data
internal_docs
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.DS_Store
dist
*.local
node_modules/*
dist
coverage
pnpm-lock.yaml
173 changes: 0 additions & 173 deletions BROWSER_AUTOMATION.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# mycoder

## 0.1.1

### Patch Changes

- add respawn tool to help reduce context size

## 0.1.0

### Minor Changes
Expand Down
1 change: 1 addition & 0 deletions COMMIT_CONVENTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ docs: update README with new API documentation
## Changelog Generation

Commit messages are used to:

1. Automatically determine the next version number
2. Generate changelog entries
3. Create GitHub releases
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env node
import "../dist/index.js";
import '../dist/index.js';
100 changes: 50 additions & 50 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,78 +1,78 @@
// eslint.config.js
import js from "@eslint/js";
import ts from "typescript-eslint";
import prettierRecommended from "eslint-plugin-prettier/recommended";
import importPlugin from "eslint-plugin-import";
import unusedImports from "eslint-plugin-unused-imports";
import pluginPromise from "eslint-plugin-promise";
import js from '@eslint/js';
import ts from 'typescript-eslint';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import importPlugin from 'eslint-plugin-import';
import unusedImports from 'eslint-plugin-unused-imports';
import pluginPromise from 'eslint-plugin-promise';

export default ts.config(
js.configs.recommended,
ts.configs.recommendedTypeChecked,
prettierRecommended,
importPlugin.flatConfigs.recommended,
pluginPromise.configs["flat/recommended"],
pluginPromise.configs['flat/recommended'],
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
sourceType: 'module',
parserOptions: {
project: ["./tsconfig.eslint.json"],
project: ['./tsconfig.eslint.json'],
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
"unused-imports": unusedImports,
'unused-imports': unusedImports,
},
files: ["{src,test}/**/*.{js,ts}"],
files: ['{src,test}/**/*.{js,ts}'],
rules: {
// Basic code quality rules
"no-console": "off",
"prefer-const": "warn",
"no-var": "warn",
eqeqeq: ["warn", "always"],
'no-console': 'off',
'prefer-const': 'warn',
'no-var': 'warn',
eqeqeq: ['warn', 'always'],

// Light complexity rules
complexity: ["warn", { max: 20 }],
"max-depth": ["warn", { max: 4 }],
"max-lines-per-function": ["warn", { max: 150 }],
complexity: ['warn', { max: 20 }],
'max-depth': ['warn', { max: 4 }],
'max-lines-per-function': ['warn', { max: 150 }],

"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],

"import/no-unresolved": "off",
"import/named": "off",
"import/extensions": [
"error",
"ignorePackages",
{ js: "always", ts: "never" },
'import/no-unresolved': 'off',
'import/named': 'off',
'import/extensions': [
'error',
'ignorePackages',
{ js: 'always', ts: 'never' },
],

"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
'no-unused-vars': 'off', // or "@typescript-eslint/no-unused-vars": "off",
'unused-imports/no-unused-imports': 'error',

"promise/always-return": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-callback-in-promise": "warn",
"promise/avoid-new": "off",
"promise/no-new-statics": "error",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "warn",
"promise/no-multiple-resolved": "error",
'promise/always-return': 'error',
'promise/no-return-wrap': 'error',
'promise/param-names': 'error',
'promise/catch-or-return': 'error',
'promise/no-native': 'off',
'promise/no-nesting': 'warn',
'promise/no-promise-in-callback': 'warn',
'promise/no-callback-in-promise': 'warn',
'promise/avoid-new': 'off',
'promise/no-new-statics': 'error',
'promise/no-return-in-finally': 'warn',
'promise/valid-params': 'warn',
'promise/no-multiple-resolved': 'error',
},
}
},
);
Loading