@ryukin-dev/pi-featherless-kali 1.1.0 → 1.1.2

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 CHANGED
@@ -1,15 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.2
4
+
5
+ - `kaliai` installiert den Pi Coding Agent automatisch, wenn er fehlt.
6
+ - Kein manueller `npm install -g @earendil-works/pi-coding-agent` mehr nötig.
7
+
8
+ ## 1.1.1
9
+
10
+ - Unerwünschte Abhängigkeiten (`puppeteer`, `openai`, `JSONStream`) entfernt.
11
+ - Globale Installation bricht nicht mehr beim Chrome-Download ab.
12
+ - Package-Scope auf `@ryukin-dev` geändert.
13
+
3
14
  ## 1.1.0
4
15
 
5
16
  - Package auf npm unter `@ryukin-dev/pi-featherless-kali` veröffentlicht.
6
- - KaliAI CLI-Binary `kali-ai` hinzugefügt:
7
- - Menu statt direktem `pi` Start.
8
- - `kali-ai chat` startet die Chat UI.
9
- - `kali-ai update` führt das Update durch.
10
- - `kali-ai whatsnew` zeigt die neuesten Änderungen.
17
+ - KaliAI CLI-Binary `kaliai` hinzugefügt:
18
+ - `kaliai` startet direkt die Chat UI.
19
+ - `kaliai Update` führt das Update durch.
20
+ - `kaliai whatsnew` zeigt die neuesten Änderungen.
11
21
  - Extensions und Skills werden automatisch in `~/.pi/agent/` eingerichtet.
12
22
  - Update-Verfügbarkeitsbanner oben in der Chat UI.
13
- - Neue Chat-Befehle: `/kali-update`, `/kali-whatsnew`.
14
- - Package-Scope auf `@earendil-works/pi-*` umgestellt.
15
- - Featherless-Provider ist jetzt API-Key-basiert (`/login` → API keys).
23
+ - Neue Chat-Befehle: `/update`, `/whatsnew`.
24
+ - Featherless-Provider ist jetzt API-Key-basiert (`/login` → API keys).
package/bin/kaliai.js CHANGED
@@ -32,6 +32,25 @@ function getPiCliPath() {
32
32
  return join(root, PI_PACKAGE, "dist", "cli.js");
33
33
  }
34
34
 
35
+ function ensurePiAgentInstalled() {
36
+ const piCli = getPiCliPath();
37
+ if (piCli && existsSync(piCli)) return piCli;
38
+ print("==> Pi Coding Agent wird installiert...");
39
+ const result = spawnSync("npm", ["install", "-g", PI_PACKAGE], {
40
+ stdio: "inherit",
41
+ });
42
+ if (result.status !== 0) {
43
+ print("Fehler: Pi Coding Agent konnte nicht installiert werden.");
44
+ process.exit(1);
45
+ }
46
+ const fresh = getPiCliPath();
47
+ if (!fresh || !existsSync(fresh)) {
48
+ print("Fehler: Pi Coding Agent nicht auffindbar nach der Installation.");
49
+ process.exit(1);
50
+ }
51
+ return fresh;
52
+ }
53
+
35
54
  function readPackageVersion(dir) {
36
55
  try {
37
56
  const pkg = JSON.parse(readFileSync(join(dir, "package.json"), "utf8"));
@@ -98,13 +117,7 @@ function installExtension() {
98
117
 
99
118
  async function startChat() {
100
119
  installExtension();
101
- const piCli = getPiCliPath();
102
- if (!piCli || !existsSync(piCli)) {
103
- print("Fehler: Pi Coding Agent nicht gefunden.");
104
- print(`Installiere ihn mit:`);
105
- print(` npm install -g ${PI_PACKAGE}`);
106
- process.exit(1);
107
- }
120
+ const piCli = ensurePiAgentInstalled();
108
121
  print("==> Starte KaliAI Chat UI...");
109
122
  spawnSync(process.execPath, [piCli], { stdio: "inherit" });
110
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryukin-dev/pi-featherless-kali",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Featherless Provider for Pi with accurate tokenization and concurrency tracking.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -54,11 +54,7 @@
54
54
  "skills/**/SKILL.md"
55
55
  ]
56
56
  },
57
- "dependencies": {
58
- "JSONStream": "^1.3.5",
59
- "openai": "^6.33.0",
60
- "puppeteer": "^24.40.0"
61
- },
57
+ "dependencies": {},
62
58
  "devDependencies": {
63
59
  "@earendil-works/pi-ai": "^0.80.2",
64
60
  "@earendil-works/pi-coding-agent": "^0.80.2",