killeros 1.0.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/Killeros.ts +1265 -0
- package/LICENSE +21 -0
- package/README.md +114 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 KyrosHendrix
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# KillerOS
|
|
2
|
+
|
|
3
|
+
A production-hardened Pi extension that combines a custom TUI, reasoning controls, interactive questions, command aliases, and concise-response guidance.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Node.js `22.19.0` or later
|
|
8
|
+
- Pi `0.82.1` or later
|
|
9
|
+
- Interactive TUI mode for the custom header, editor, footer, and `question` tool
|
|
10
|
+
|
|
11
|
+
The extension is strict TypeScript and uses only packages provided by Pi.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
### npm
|
|
16
|
+
|
|
17
|
+
After the first npm release:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pi install npm:killeros
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Git
|
|
24
|
+
|
|
25
|
+
Install the latest commit:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pi install git:github.com/KyrosHendrix/pi-KillerOS
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Pin an install to a release:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pi install git:github.com/KyrosHendrix/pi-KillerOS@v1.0.0
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Add `-l` to either command for a project-only install. Restart Pi after installing.
|
|
38
|
+
|
|
39
|
+
## Features
|
|
40
|
+
|
|
41
|
+
- Animated startup header with current model, reasoning level, and working-directory context
|
|
42
|
+
- Framed multiline editor with Shift+Enter support
|
|
43
|
+
- Footer with model, reasoning, context remaining, Git branch, elapsed time, and cost
|
|
44
|
+
- `/variants` selector and direct reasoning-level arguments
|
|
45
|
+
- `question` tool with filtering, keyboard selection, custom answers, history, cancellation, and resize-safe rendering
|
|
46
|
+
- Mid-prompt slash completion with current Pi `0.82.1` commands, extensions, prompts, and skills
|
|
47
|
+
- `/clear` for a confirmed new session, plus `/quit` for graceful shutdown
|
|
48
|
+
- Concise system-prompt guidance without modifying completed assistant messages
|
|
49
|
+
|
|
50
|
+
## Commands
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
/variants Open the reasoning-level selector
|
|
54
|
+
/variants high Set a reasoning level directly
|
|
55
|
+
/clear Start a new session after confirmation
|
|
56
|
+
/quit Quit Pi gracefully
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Supported reasoning levels are `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. KillerOS limits choices to levels supported by the current model.
|
|
60
|
+
|
|
61
|
+
## Configuration
|
|
62
|
+
|
|
63
|
+
KillerOS displays provider costs in USD.
|
|
64
|
+
|
|
65
|
+
Set a custom footer shortcut hint with:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
PI_SHORTCUT_HINT=/variants
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Behavior by mode
|
|
72
|
+
|
|
73
|
+
| Mode | Behavior |
|
|
74
|
+
|---|---|
|
|
75
|
+
| TUI | All features are available |
|
|
76
|
+
| RPC | Commands and concise prompt guidance work; TUI components are disabled |
|
|
77
|
+
| Print/JSON | Concise prompt guidance works; interactive questions fail explicitly |
|
|
78
|
+
|
|
79
|
+
## Validation
|
|
80
|
+
|
|
81
|
+
Before release, run:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npm ci
|
|
85
|
+
npm run check
|
|
86
|
+
npm pack --dry-run
|
|
87
|
+
pi -e . --mode rpc
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The package manifest lists Pi’s built-in modules as peer dependencies, so npm does not bundle a second copy.
|
|
91
|
+
|
|
92
|
+
## Publish
|
|
93
|
+
|
|
94
|
+
The [`pi-package`](https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/packages.md) keyword makes a published npm release visible in Pi’s package catalog.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npm login
|
|
98
|
+
npm publish
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Create and push a matching Git tag after publication:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
git tag v1.0.0
|
|
105
|
+
git push origin main v1.0.0
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Security
|
|
109
|
+
|
|
110
|
+
Pi extensions run with your user permissions. Review the source before installing it globally.
|
|
111
|
+
|
|
112
|
+
## License
|
|
113
|
+
|
|
114
|
+
[MIT](LICENSE) © 2026 KyrosHendrix
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "killeros",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A production-hardened TUI and workflow extension for the Pi coding agent.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"pi-package",
|
|
8
|
+
"pi-extension",
|
|
9
|
+
"coding-agent",
|
|
10
|
+
"tui"
|
|
11
|
+
],
|
|
12
|
+
"author": "KyrosHendrix",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"homepage": "https://github.com/KyrosHendrix/pi-KillerOS#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/KyrosHendrix/pi-KillerOS/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/KyrosHendrix/pi-KillerOS.git"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"Killeros.ts",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=22.19.0"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"check": "tsc --noEmit"
|
|
31
|
+
},
|
|
32
|
+
"pi": {
|
|
33
|
+
"extensions": [
|
|
34
|
+
"./Killeros.ts"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
39
|
+
"@earendil-works/pi-tui": "*",
|
|
40
|
+
"typebox": "*"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@earendil-works/pi-coding-agent": "0.82.1",
|
|
44
|
+
"@earendil-works/pi-tui": "0.82.1",
|
|
45
|
+
"@types/node": "24.12.4",
|
|
46
|
+
"typebox": "1.1.38",
|
|
47
|
+
"typescript": "5.9.3"
|
|
48
|
+
}
|
|
49
|
+
}
|