debatable 0.0.0-semantic-release

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 ADDED
@@ -0,0 +1,74 @@
1
+ # debatable
2
+
3
+ [![CI](https://github.com/kk-spartans/debatable/actions/workflows/ci.yml/badge.svg)](https://github.com/kk-spartans/debatable/actions/workflows/ci.yml)
4
+ [![npm version](https://img.shields.io/npm/v/debatable)](https://www.npmjs.com/package/debatable)
5
+ [![License: Unlicense](https://img.shields.io/badge/license-Unlicense-blue.svg)](https://unlicense.org/)
6
+
7
+ AI debate simulator - two LLM instances argue PRO and NEG on a given topic, with web search, streaming TUI, and markdown report generation.
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install -g debatable
13
+ ```
14
+
15
+ Or run directly:
16
+
17
+ ```bash
18
+ npx debatable
19
+ bunx debatable
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ ```
25
+ debatable [options] <topic>
26
+
27
+ Arguments:
28
+ topic Debate topic
29
+
30
+ Options:
31
+ -r, --rounds <n> Number of debate rounds (default: 3)
32
+ -m, --min-searches <n> Minimum searches per round (default: 2)
33
+ -k, --api-key <key> API key (passed directly)
34
+ --api-key-env <var> Environment variable name containing the API key (default: OPENROUTER_API_KEY)
35
+ --model <model> LLM model to use (default: openai/gpt-4o)
36
+ --pro-model <model> Override model for PRO
37
+ --con-model <model> Override model for NEG
38
+ --judge-model <model> Override model for judge
39
+ -o, --output <path> Output path for markdown report
40
+ --headless Run in headless mode (no TUI)
41
+ --completions <shell> Generate shell completions (bash, zsh, fish, powershell, elvish, nushell)
42
+ -h, --help Show help
43
+
44
+ Shell completions are generated via [usage](https://usage.jdx.dev) (available in the dev shell).
45
+ Supported shells: bash, zsh, fish, powershell, nushell.
46
+ ```
47
+
48
+ ### Examples
49
+
50
+ ```bash
51
+ debatable "Is AI a threat to humanity?"
52
+ debatable -r 5 "Should we colonize Mars?"
53
+ debatable --headless -o report.md "Is pineapple on pizza acceptable?"
54
+ debatable --api-key-env ANTHROPIC_API_KEY "Will AI replace all jobs?" --headless
55
+ debatable --completions bash > /etc/bash_completion.d/debatable
56
+ ```
57
+
58
+ ## Requirements
59
+
60
+ - [Bun](https://bun.sh/) runtime
61
+ - [usage](https://usage.jdx.dev) CLI for shell completion generation (or use `devenv shell`)
62
+ - An API key for a supported AI provider — set via `OPENROUTER_API_KEY` (default), `--api-key-env`, or `--api-key`
63
+
64
+ ## Development
65
+
66
+ ```bash
67
+ devenv.sh
68
+ bun install
69
+ bun dev
70
+ ```
71
+
72
+ ## License
73
+
74
+ [The Unlicense](https://unlicense.org/)
package/dist/debatable ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "debatable",
3
+ "version": "0.0.0-semantic-release",
4
+ "description": "AI debate simulator - two LLM instances argue PRO and NEG on a topic",
5
+ "license": "Unlicense",
6
+ "bin": {
7
+ "debatable": "dist/debatable"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "type": "module",
13
+ "scripts": {
14
+ "start": "bun --watch run src/index.tsx",
15
+ "check": "bun build --compile --outfile dist/debatable src/index.tsx && oxlint --type-aware --type-check --fix && oxfmt --write && knip && e18e-cli analyze --log-level error && bunx react-doctor --score",
16
+ "ci": "bun install && bun build --compile --outfile dist/debatable src/index.tsx && oxlint --type-aware --type-check && oxfmt --check && knip && e18e-cli analyze --log-level error && react-doctor --score",
17
+ "release": "semantic-release"
18
+ },
19
+ "dependencies": {
20
+ "@opentui/core": "^0.3.1",
21
+ "@opentui/react": "^0.3.1",
22
+ "react": "^19.2.7",
23
+ "zod": "^4.4.3"
24
+ },
25
+ "devDependencies": {
26
+ "@ai-sdk/gateway": "^3.0.123",
27
+ "@e18e/cli": "^0.7.0",
28
+ "@semantic-release/changelog": "^6.0.3",
29
+ "@semantic-release/git": "^10.0.1",
30
+ "@semantic-release/github": "^12.0.8",
31
+ "@semantic-release/npm": "^13.1.5",
32
+ "@types/bun": "latest",
33
+ "@types/react": "^19.2.16",
34
+ "ai": "^6.0.195",
35
+ "effect": "^4.0.0-beta.76",
36
+ "knip": "^6.15.0",
37
+ "oxfmt": "^0.53.0",
38
+ "oxlint": "^1.68.0",
39
+ "oxlint-tsgolint": "^0.23.0",
40
+ "react-doctor": "^0.2.16",
41
+ "semantic-release": "^25.0.3",
42
+ "typescript": "^6.0.3"
43
+ }
44
+ }