@bugabinga/pi-ext-devil 0.1.0
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/CHANGELOG.md +16 -0
- package/README.md +82 -0
- package/__tests__/helpers.test.ts +207 -0
- package/assets/advisor_suite.gif +0 -0
- package/bun.lock +300 -0
- package/helpers.ts +105 -0
- package/index.ts +897 -0
- package/package.json +25 -0
- package/types.ts +14 -0
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bugabinga/pi-ext-devil",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "bun test ./__tests__/*.test.ts",
|
|
8
|
+
"test:unit": "bun test ./__tests__/helpers.test.ts",
|
|
9
|
+
"test:harness": "bun test ./__tests__/harness.test.ts"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"@earendil-works/pi-ai": "*",
|
|
13
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
14
|
+
"@earendil-works/pi-tui": "*"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@marcfargas/pi-test-harness": "git+ssh://git@github.com/bugabinga/pi-test-harness.git#0cb5ce5f10fb18c9a80e904e2e3310cc98a28e29"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"description": "Devil's advocate debate command for Pi.",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"pi",
|
|
23
|
+
"pi-extension"
|
|
24
|
+
]
|
|
25
|
+
}
|
package/types.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for the Devil's Advocate debate tool
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export interface DebateOutput {
|
|
6
|
+
synthesis: string;
|
|
7
|
+
roundsData: string[];
|
|
8
|
+
recommendation: "proceed" | "proceed_with_caution" | "revise" | "abandon";
|
|
9
|
+
/** Blocking concerns raised by devil across all rounds */
|
|
10
|
+
blockingRaised: number;
|
|
11
|
+
/** Blocking concerns remaining after synthesis evaluation */
|
|
12
|
+
blockingRemaining: number;
|
|
13
|
+
aborted?: boolean;
|
|
14
|
+
}
|