{"_id":"@bombenprodukt/zai","_rev":"1-f41f1212fb813ee781ddc66f5d753e88","name":"@bombenprodukt/zai","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@bombenprodukt/zai","version":"1.0.0","description":"AI-Assisted Development Workflows in a pragmatic CLI • Powered by OpenAI","keywords":["ai","chat-gpt","cli-app","cli-tool","cli","cross-platform","git","gpt","openai","zai-cli","zai"],"repository":{"type":"git","url":"git+https://github.com/BombenProdukt/zai.git"},"funding":"https://github.com/sponsors/BombenProdukt","license":"MIT","author":{"name":"Brian Faust","email":"brian@bombenprodukt.com","url":"https://bombenprodukt.com"},"type":"module","bin":{"zai":"distribution/index.js"},"scripts":{"build":"pnpm run clean && tsc","build:watch":"pnpm run clean && tsc -w","clean":"del distribution","fmt":"dprint fmt","fmt:check":"dprint check","lint":"eslint 'source/**/*.ts' --format=codeframe --config=./.eslintrc.cjs --fix --quiet","npm-check-updates":"npm-check-updates -u","prettier":"pnpm run sort-package-json && pnpm run lint && pnpm run fmt","sort-package-json":"sort-package-json","test":"vitest run","test:coverage":"vitest run --coverage","test:ui":"vitest --ui","test:watch":"vitest"},"dependencies":{"@clack/prompts":"0.6.3","@dqbd/tiktoken":"1.0.7","ava":"5.3.0","chalk":"5.2.0","clipanion":"3.2.0","clipboardy":"3.0.0","dot-prop":"8.0.0","env-paths":"3.0.0","execa":"7.1.1","fs-extra":"11.1.1","got":"13.0.0","octokit":"2.0.19","openai":"3.2.1","plur":"5.1.0","typanion":"3.12.1","zod":"3.21.4"},"devDependencies":{"@sindresorhus/tsconfig":"3.0.1","@types/fs-extra":"11.0.1","@types/node":"20.2.5","@typescript-eslint/eslint-plugin":"5.59.7","@typescript-eslint/parser":"5.59.7","@vitest/coverage-c8":"0.31.1","@vitest/ui":"0.31.1","c8":"7.14.0","del-cli":"5.0.0","depcheck":"1.4.3","dprint":"^0.36.1","eslint":"8.41.0","eslint-config-prettier":"8.8.0","eslint-config-turbo":"1.9.9","eslint-formatter-codeframe":"7.32.1","eslint-plugin-github":"4.7.0","eslint-plugin-import":"2.27.5","eslint-plugin-n":"16.0.0","eslint-plugin-prettier":"4.2.1","eslint-plugin-promise":"6.1.1","eslint-plugin-security":"1.7.1","eslint-plugin-simple-import-sort":"10.0.0","eslint-plugin-sonarjs":"0.19.0","eslint-plugin-sort-class-members":"1.18.0","eslint-plugin-sort-destructure-keys":"1.5.0","eslint-plugin-sort-keys-fix":"1.1.2","eslint-plugin-tsdoc":"0.2.17","eslint-plugin-unicorn":"47.0.0","eslint-plugin-unused-imports":"2.0.0","npm-check-updates":"16.10.12","sort-package-json":"2.4.1","typescript":"5.0.4","vite":"^4.3.9","vitest":"^0.31.1"},"engines":{"node":">=14.16"},"gitHead":"879371eed06dcc19a36c32cb23ac52dc0ba748da","bugs":{"url":"https://github.com/BombenProdukt/zai/issues"},"homepage":"https://github.com/BombenProdukt/zai#readme","_id":"@bombenprodukt/zai@1.0.0","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-JdZ5vrrwv+ZGPkdakv5FoWhVc0h81BfF4cRQL7YgFKUeW8PVRpHR86LVmvFFzX+0uw227ul3pIpTTze5eaXfmw==","shasum":"f8daf9b4d4f262024fe186bfcf77de55b23da5b8","tarball":"https://registry.npmjs.org/@bombenprodukt/zai/-/zai-1.0.0.tgz","fileCount":49,"unpackedSize":121449,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFctUpjSYvHeKL4ExhMZUJREZOEI+eNy+QW+7fFzxmkQAiEA6d9mLK5Semc5cBkcA1+FH192CwF0wEdtOcR5yuwUegg="}]},"_npmUser":{"name":"faustbrian","email":"hello@basecode.sh"},"directories":{},"maintainers":[{"name":"faustbrian","email":"hello@basecode.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zai_1.0.0_1685324241253_0.8287620976792609"},"_hasShrinkwrap":false},"1.1.0":{"name":"@bombenprodukt/zai","version":"1.1.0","description":"AI-Assisted Development Workflows in a pragmatic CLI • Powered by OpenAI","keywords":["ai","chat-gpt","cli-app","cli-tool","cli","cross-platform","git","gpt","openai","zai-cli","zai"],"repository":{"type":"git","url":"git+https://github.com/BombenProdukt/zai.git"},"funding":"https://github.com/sponsors/BombenProdukt","license":"MIT","author":{"name":"Brian Faust","email":"brian@bombenprodukt.com","url":"https://bombenprodukt.com"},"type":"module","bin":{"zai":"distribution/index.js"},"scripts":{"build":"pnpm run clean && tsc","build:watch":"pnpm run clean && tsc -w","clean":"del distribution","fmt":"dprint fmt","fmt:check":"dprint check","lint":"eslint 'source/**/*.ts' --format=codeframe --config=./.eslintrc.cjs --fix --quiet","npm-check-updates":"npm-check-updates -u","prettier":"pnpm run sort-package-json && pnpm run lint && pnpm run fmt","sort-package-json":"sort-package-json","test":"vitest run","test:coverage":"vitest run --coverage","test:ui":"vitest --ui","test:watch":"vitest"},"dependencies":{"@clack/prompts":"0.6.3","@dqbd/tiktoken":"1.0.7","ava":"5.3.0","chalk":"5.2.0","clipanion":"3.2.0","clipboardy":"3.0.0","dot-prop":"8.0.0","env-paths":"3.0.0","execa":"7.1.1","fs-extra":"11.1.1","got":"13.0.0","octokit":"2.0.19","openai":"3.2.1","plur":"5.1.0","typanion":"3.12.1","zod":"3.21.4"},"devDependencies":{"@sindresorhus/tsconfig":"3.0.1","@types/fs-extra":"11.0.1","@types/node":"20.2.5","@typescript-eslint/eslint-plugin":"5.59.7","@typescript-eslint/parser":"5.59.7","@vitest/coverage-c8":"0.31.1","@vitest/ui":"0.31.1","c8":"7.14.0","del-cli":"5.0.0","depcheck":"1.4.3","dprint":"^0.36.1","eslint":"8.41.0","eslint-config-prettier":"8.8.0","eslint-config-turbo":"1.9.9","eslint-formatter-codeframe":"7.32.1","eslint-plugin-github":"4.7.0","eslint-plugin-import":"2.27.5","eslint-plugin-n":"16.0.0","eslint-plugin-prettier":"4.2.1","eslint-plugin-promise":"6.1.1","eslint-plugin-security":"1.7.1","eslint-plugin-simple-import-sort":"10.0.0","eslint-plugin-sonarjs":"0.19.0","eslint-plugin-sort-class-members":"1.18.0","eslint-plugin-sort-destructure-keys":"1.5.0","eslint-plugin-sort-keys-fix":"1.1.2","eslint-plugin-tsdoc":"0.2.17","eslint-plugin-unicorn":"47.0.0","eslint-plugin-unused-imports":"2.0.0","npm-check-updates":"16.10.12","sort-package-json":"2.4.1","typescript":"5.0.4","vite":"^4.3.9","vitest":"^0.31.1"},"engines":{"node":">=14.16"},"gitHead":"037b1e67bb50b10971ac4f0a965d437ded378a36","bugs":{"url":"https://github.com/BombenProdukt/zai/issues"},"homepage":"https://github.com/BombenProdukt/zai#readme","_id":"@bombenprodukt/zai@1.1.0","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-7b8jy1iK2viq2TW4/TpQIbEkJ9WZjN6uNHjoI4TawySpQ80ggYsp93ftNSiodo3nwISyNAoig39p4EylIhK35w==","shasum":"f9fc65a1343fec8a689cfa6e6c574d0e57295ba0","tarball":"https://registry.npmjs.org/@bombenprodukt/zai/-/zai-1.1.0.tgz","fileCount":49,"unpackedSize":123151,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDiQNGSir0T1STwbFaXk1Z2fn0V//HZJrlpeyxHsA72AiEAwJbH8+SpnTOB4IVq5ujAJuvCUAAFADxf996zD1v2QbM="}]},"_npmUser":{"name":"faustbrian","email":"hello@basecode.sh"},"directories":{},"maintainers":[{"name":"faustbrian","email":"hello@basecode.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zai_1.1.0_1685329066726_0.6745908100918989"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-29T01:37:21.193Z","1.0.0":"2023-05-29T01:37:21.464Z","modified":"2023-05-29T02:57:47.112Z","1.1.0":"2023-05-29T02:57:46.968Z"},"maintainers":[{"name":"faustbrian","email":"hello@basecode.sh"}],"description":"AI-Assisted Development Workflows in a pragmatic CLI • Powered by OpenAI","homepage":"https://github.com/BombenProdukt/zai#readme","keywords":["ai","chat-gpt","cli-app","cli-tool","cli","cross-platform","git","gpt","openai","zai-cli","zai"],"repository":{"type":"git","url":"git+https://github.com/BombenProdukt/zai.git"},"author":{"name":"Brian Faust","email":"brian@bombenprodukt.com","url":"https://bombenprodukt.com"},"bugs":{"url":"https://github.com/BombenProdukt/zai/issues"},"license":"MIT","readme":"# zai\n\n![Badge Mascot](/banner.png)\n\nBe sure to browse through the [changelog](CHANGELOG.md), [code of conduct](.github/CODE_OF_CONDUCT.md), [contribution guidelines](.github/CONTRIBUTING.md), [license](LICENSE), and [security policy](.github/SECURITY.md).\n\n## Installation\n\n```\nnpm install @bombenprodukt/zai -g\n```\n\n## Usage\n\n##### Initialize the configuration file\n\n```bash\nzai config init --github-token={token} --openapi-token={token}\n```\n\n##### Set a configuration key to a value\n\n```bash\nzai config set --key={key} --value={value}\n```\n\n##### Get a configuration value by key\n\n```bash\nzai config get --key={key}\n```\n\n##### Delete a configuration value by key\n\n```bash\nzai config unset --key={key}\n```\n\n##### Summarize unstaged or staged changes in a git repository\n\n```bash\nzai git commit --style={style} --only-staged={onlyStaged}\n```\n\n##### Summarize a GitHub pull request\n\n```bash\nzai git summarize pr --repo={org}/{repo} {--number=} {--state=open} {--style=changelog}\n```\n\n##### List all open PR's for selection\n\n```bash\nzai git summarize pr --repo=laravel/framework\n```\n\n##### List all closed PR's for selection\n\n```bash\nzai git summarize pr --repo=laravel/framework --state=closed\n```\n\n##### Summarize a specific PR by its number\n\n```bash\nzai git summarize pr --repo=laravel/framework --number=45943\n```\n\n##### Summarize a specific PR by its number responding in a \"commit\" style\n\n```bash\nzai git summarize pr --repo=laravel/framework --number=45943 --style=commit\n```\n\n##### Summarize a GitHub commit or range of commits\n\n```bash\nzai git summarize commit --repo={org}/{repo} {--sha=} {--base=} {--head=} {--style=changelog}\n```\n\n##### List recent commits to summarize\n\n```bash\nzai git summarize commit --repo=laravel/framework\n```\n\n##### List recent commits in a specific branch to summarize\n\n```bash\nzai git summarize commit --repo=laravel/framework --branch=10.x\n```\n\n##### Summarize a specific commit\n\n```bash\nzai git summarize commit --repo=laravel/framework {--sha=}\n```\n\n##### Summarize a specific commit responding in a \"commit\" style\n\n```bash\nzai git summarize commit --repo=laravel/framework {--sha=} --style=commit\n```\n\n##### Summarize a range of commits from the tagged version to `master`\n\n```bash\nzai git summarize commit --repo=laravel/framework --base=v10.0.1\n```\n\n##### Summarize a range of commits from the tagged version to another tagged version\n\n```bash\nzai git summarize commit --repo=laravel/framework --base=v10.0.1 --head=v10.0.2\n```\n\n##### Summarize a range of commits\n\n```bash\nzai git summarize commit --repo=laravel/framework --base={sha} --head={sha}\n```\n\n##### Summarize a range of commits (from the given commit to `master`\n\n```bash\nzai git summarize commit --repo=laravel/framework --base={sha}\n```\n\n##### Generate a test for a given file, type, language, framework, and syntax\n\n```bash\nzai test generate --file={path/to/file} --type={type} --language={language} --framework={framework} --syntax={syntax}\n```\n\n##### Generate a regular expression for a given subject and language\n\n```bash\nzai regex generate --subject={subject} --language={language}\n```\n\n##### Generate a cron expression for a given subject\n\n```bash\nzai cron generate --subject={subject}\n```\n","readmeFilename":"README.md"}