Skip to content

Commit 2c57304

Browse files
authored
Merge pull request #34 from bhouston/sleepTool
Sleep tool
2 parents 58cd964 + fdadaaf commit 2c57304

27 files changed

+356
-293
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ name: CI
33
on:
44
push:
55
branches:
6-
- "*"
6+
- '*'
77
pull_request:
88
branches:
99
- main
1010

1111
permissions:
1212
contents: read
1313

14+
env:
15+
pnpm-version: 10.2.1
16+
node-version: 23
17+
1418
jobs:
1519
ci:
1620
runs-on: ubuntu-latest
@@ -19,15 +23,15 @@ jobs:
1923

2024
- uses: pnpm/action-setup@v2
2125
with:
22-
version: 10.2.1
26+
version: ${{ env.pnpm-version }}
2327

24-
- uses: actions/setup-node@v3
28+
- uses: actions/setup-node@v4
2529
with:
26-
node-version: 23
30+
node-version: ${{ env.node-version }}
2731

2832
- name: Install dependencies
2933
run: pnpm install --frozen-lockfile
30-
34+
3135
- name: Build
3236
run: pnpm build:ci
3337

@@ -38,4 +42,4 @@ jobs:
3842
run: pnpm test
3943

4044
- name: Lint
41-
run: pnpm lint
45+
run: pnpm lint

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
dist
33
.env
44
runs
5-
data
5+
data
6+
internal_docs

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
*.local
5+
node_modules/*
6+
dist
7+
coverage
8+
pnpm-lock.yaml

BROWSER_AUTOMATION.md

Lines changed: 0 additions & 173 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# mycoder
22

3+
## 0.1.1
4+
5+
### Patch Changes
6+
7+
- add respawn tool to help reduce context size
8+
39
## 0.1.0
410

511
### Minor Changes

COMMIT_CONVENTION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ docs: update README with new API documentation
4747
## Changelog Generation
4848

4949
Commit messages are used to:
50+
5051
1. Automatically determine the next version number
5152
2. Generate changelog entries
5253
3. Create GitHub releases

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
import "../dist/index.js";
2+
import '../dist/index.js';

eslint.config.js

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
11
// eslint.config.js
2-
import js from "@eslint/js";
3-
import ts from "typescript-eslint";
4-
import prettierRecommended from "eslint-plugin-prettier/recommended";
5-
import importPlugin from "eslint-plugin-import";
6-
import unusedImports from "eslint-plugin-unused-imports";
7-
import pluginPromise from "eslint-plugin-promise";
2+
import js from '@eslint/js';
3+
import ts from 'typescript-eslint';
4+
import prettierRecommended from 'eslint-plugin-prettier/recommended';
5+
import importPlugin from 'eslint-plugin-import';
6+
import unusedImports from 'eslint-plugin-unused-imports';
7+
import pluginPromise from 'eslint-plugin-promise';
88

99
export default ts.config(
1010
js.configs.recommended,
1111
ts.configs.recommendedTypeChecked,
1212
prettierRecommended,
1313
importPlugin.flatConfigs.recommended,
14-
pluginPromise.configs["flat/recommended"],
14+
pluginPromise.configs['flat/recommended'],
1515
{
1616
languageOptions: {
1717
ecmaVersion: 2022,
18-
sourceType: "module",
18+
sourceType: 'module',
1919
parserOptions: {
20-
project: ["./tsconfig.eslint.json"],
20+
project: ['./tsconfig.eslint.json'],
2121
tsconfigRootDir: import.meta.dirname,
2222
},
2323
},
2424
plugins: {
25-
"unused-imports": unusedImports,
25+
'unused-imports': unusedImports,
2626
},
27-
files: ["{src,test}/**/*.{js,ts}"],
27+
files: ['{src,test}/**/*.{js,ts}'],
2828
rules: {
2929
// Basic code quality rules
30-
"no-console": "off",
31-
"prefer-const": "warn",
32-
"no-var": "warn",
33-
eqeqeq: ["warn", "always"],
30+
'no-console': 'off',
31+
'prefer-const': 'warn',
32+
'no-var': 'warn',
33+
eqeqeq: ['warn', 'always'],
3434

3535
// Light complexity rules
36-
complexity: ["warn", { max: 20 }],
37-
"max-depth": ["warn", { max: 4 }],
38-
"max-lines-per-function": ["warn", { max: 150 }],
36+
complexity: ['warn', { max: 20 }],
37+
'max-depth': ['warn', { max: 4 }],
38+
'max-lines-per-function': ['warn', { max: 150 }],
3939

40-
"@typescript-eslint/no-unsafe-assignment": "off",
41-
"@typescript-eslint/no-explicit-any": "off",
42-
"@typescript-eslint/no-unsafe-member-access": "off",
43-
"@typescript-eslint/no-unsafe-call": "off",
44-
"@typescript-eslint/no-unsafe-return": "off",
45-
"@typescript-eslint/no-unsafe-argument": "off",
46-
"@typescript-eslint/no-explicit-any": "off",
47-
"@typescript-eslint/no-unused-vars": [
48-
"error",
49-
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
40+
'@typescript-eslint/no-unsafe-assignment': 'off',
41+
'@typescript-eslint/no-explicit-any': 'off',
42+
'@typescript-eslint/no-unsafe-member-access': 'off',
43+
'@typescript-eslint/no-unsafe-call': 'off',
44+
'@typescript-eslint/no-unsafe-return': 'off',
45+
'@typescript-eslint/no-unsafe-argument': 'off',
46+
'@typescript-eslint/no-explicit-any': 'off',
47+
'@typescript-eslint/no-unused-vars': [
48+
'error',
49+
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
5050
],
5151

52-
"import/no-unresolved": "off",
53-
"import/named": "off",
54-
"import/extensions": [
55-
"error",
56-
"ignorePackages",
57-
{ js: "always", ts: "never" },
52+
'import/no-unresolved': 'off',
53+
'import/named': 'off',
54+
'import/extensions': [
55+
'error',
56+
'ignorePackages',
57+
{ js: 'always', ts: 'never' },
5858
],
5959

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

63-
"promise/always-return": "error",
64-
"promise/no-return-wrap": "error",
65-
"promise/param-names": "error",
66-
"promise/catch-or-return": "error",
67-
"promise/no-native": "off",
68-
"promise/no-nesting": "warn",
69-
"promise/no-promise-in-callback": "warn",
70-
"promise/no-callback-in-promise": "warn",
71-
"promise/avoid-new": "off",
72-
"promise/no-new-statics": "error",
73-
"promise/no-return-in-finally": "warn",
74-
"promise/valid-params": "warn",
75-
"promise/no-multiple-resolved": "error",
63+
'promise/always-return': 'error',
64+
'promise/no-return-wrap': 'error',
65+
'promise/param-names': 'error',
66+
'promise/catch-or-return': 'error',
67+
'promise/no-native': 'off',
68+
'promise/no-nesting': 'warn',
69+
'promise/no-promise-in-callback': 'warn',
70+
'promise/no-callback-in-promise': 'warn',
71+
'promise/avoid-new': 'off',
72+
'promise/no-new-statics': 'error',
73+
'promise/no-return-in-finally': 'warn',
74+
'promise/valid-params': 'warn',
75+
'promise/no-multiple-resolved': 'error',
7676
},
77-
}
77+
},
7878
);

0 commit comments

Comments
 (0)