commit 427b2783af95234798fcda460262ea5a36d8c877 Author: Travis Fischer Date: Tue Apr 25 13:47:18 2023 -0700 feat: init diff --git a/.github/funding.yml b/.github/funding.yml new file mode 100644 index 0000000..9377c23 --- /dev/null +++ b/.github/funding.yml @@ -0,0 +1 @@ +github: [transitive-bullshit] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..37053d2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,51 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + name: Test Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: + - 19 + - 18 + - 16 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install pnpm + uses: pnpm/action-setup@v2 + id: pnpm-install + with: + version: 8 + run_install: false + + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run test + run: pnpm run test diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f547d03 --- /dev/null +++ b/.gitignore @@ -0,0 +1,47 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +*.swp +.idea + +# dependencies +node_modules/ +.pnp/ +.pnp.js + +# testing +/coverage + +# next.js +.next/ +out/ + +# production +build/ + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +# local env files +.env +.env.local +.env.build +.env.development.local +.env.test.local +.env.production.local diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..d4a43dd --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run pre-commit diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..6c59086 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +enable-pre-post-scripts=true diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..0e57050 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +.snapshots/ +build/ +dist/ +node_modules/ +.next/ +.vercel/ \ No newline at end of file diff --git a/.prettierrc.cjs b/.prettierrc.cjs new file mode 100644 index 0000000..f46033e --- /dev/null +++ b/.prettierrc.cjs @@ -0,0 +1,16 @@ +module.exports = { + plugins: [require('@trivago/prettier-plugin-sort-imports')], + singleQuote: true, + jsxSingleQuote: true, + semi: false, + useTabs: false, + tabWidth: 2, + bracketSpacing: true, + bracketSameLine: false, + arrowParens: 'always', + trailingComma: 'none', + importOrder: ['^node:.*', '', '^(@/(.*)$)', '^[./]'], + importOrderSeparation: true, + importOrderSortSpecifiers: true, + importOrderGroupNamespaceSpecifiers: true +} diff --git a/license b/license new file mode 100644 index 0000000..3a2c00b --- /dev/null +++ b/license @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Travis Fischer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/package.json b/package.json new file mode 100644 index 0000000..29cc30a --- /dev/null +++ b/package.json @@ -0,0 +1,58 @@ +{ + "name": "agentic", + "private": true, + "description": "TODO", + "author": "Travis Fischer ", + "repository": "transitive-bullshit/agentic", + "license": "MIT", + "type": "module", + "engines": { + "node": ">=14" + }, + "workspaces": [ + "packages/*" + ], + "scripts": { + "build": "run-s build:*", + "build:tsup": "lerna run build --no-private", + "build:tsc": "tsc --build", + "deploy": "lerna run deploy", + "clean": "del packages/*/build", + "prebuild": "run-s clean", + "prepare": "husky install", + "pre-commit": "lint-staged", + "pretest": "run-s build", + "test": "run-p test:*", + "test:prettier": "prettier '**/*.{js,jsx,ts,tsx}' --check" + }, + "devDependencies": { + "@trivago/prettier-plugin-sort-imports": "^4.1.1", + "@types/node": "^18.15.13", + "del-cli": "^5.0.0", + "husky": "^8.0.3", + "lint-staged": "^13.2.1", + "npm-run-all": "^4.1.5", + "prettier": "^2.8.7", + "tsup": "^6.7.0", + "tsx": "^3.12.6", + "typescript": "^5.0.4" + }, + "lint-staged": { + "*.{ts,tsx}": [ + "prettier --write" + ] + }, + "keywords": [ + "ai", + "agent", + "autogpt", + "agi", + "babyagi", + "llms", + "chatgpt", + "openai", + "openapi", + "guardrails", + "plugins" + ] +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..2592875 --- /dev/null +++ b/readme.md @@ -0,0 +1,22 @@ +

Agentic

+ +

+ TODO +

+ +

+ agentic NPM package + Build Status + MIT License + Prettier Code Formatting +

+ +## Intro + +TODO + +## License + +MIT © [Travis Fischer](https://transitivebullsh.it) + +If you found this project interesting, please consider [sponsoring me](https://github.com/sponsors/transitive-bullshit) or following me on twitter twitter