Skip to content

Commit ae46a8f

Browse files
committed
release: update pi core package scope
1 parent 3d92349 commit ae46a8f

71 files changed

Lines changed: 995 additions & 961 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

extensions/all/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# pi-mono-all
22

3+
## 1.0.1
4+
5+
### Patch Changes
6+
7+
### Maintenance
8+
9+
- all-in-one package peer dependencies now target the new `@earendil-works` pi core package scope.
10+
311
## 1.0.0
412

513
### Major Changes

extensions/all/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pi-mono-all",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "All pi-mono extensions and bundled skills",
55
"type": "module",
66
"keywords": [
@@ -45,9 +45,9 @@
4545
"pi-mono-team-mode"
4646
],
4747
"peerDependencies": {
48-
"@mariozechner/pi-ai": "*",
49-
"@mariozechner/pi-coding-agent": "*",
50-
"@mariozechner/pi-tui": "*",
48+
"@earendil-works/pi-ai": "*",
49+
"@earendil-works/pi-coding-agent": "*",
50+
"@earendil-works/pi-tui": "*",
5151
"@sinclair/typebox": "*"
5252
},
5353
"pi": {

extensions/ask-user-question/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# pi-mono-ask-user-question
22

3+
## 1.7.4
4+
5+
### Patch Changes
6+
7+
### Maintenance
8+
9+
- Update pi core imports and peer dependencies to the new `@earendil-works` package scope.
10+
311
## 1.7.3
412

513
### Patch Changes
@@ -17,7 +25,7 @@
1725

1826
### Fixed: ask-user-question
1927

20-
- Remove unused `StringEnum` import from `@mariozechner/pi-ai`.
28+
- Remove unused `StringEnum` import from `@earendil-works/pi-ai`.
2129

2230
## 1.7.1
2331

extensions/ask-user-question/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ The tool includes `promptSnippet` and `promptGuidelines` so the LLM knows when a
220220

221221
| Package | Role |
222222
| ------------------------------- | ------------------------------------------------- |
223-
| `@mariozechner/pi-coding-agent` | Extension API, theme types |
224-
| `@mariozechner/pi-tui` | TUI primitives: Editor, Key, matchesKey, etc. |
225-
| `@mariozechner/pi-ai` | `StringEnum` for Google-compatible enum schemas |
223+
| `@earendil-works/pi-coding-agent` | Extension API, theme types |
224+
| `@earendil-works/pi-tui` | TUI primitives: Editor, Key, matchesKey, etc. |
225+
| `@earendil-works/pi-ai` | `StringEnum` for Google-compatible enum schemas |
226226
| `@sinclair/typebox` | JSON Schema definitions for tool parameters |

extensions/ask-user-question/index.ts

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* - Esc to cancel
1919
*/
2020

21-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
22-
import { Editor, type EditorTheme, Key, matchesKey, Text, truncateToWidth, visibleWidth } from "@mariozechner/pi-tui";
21+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
22+
import { Editor, type EditorTheme, Key, matchesKey, Text, truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
2323
import { Type } from "@sinclair/typebox";
2424

2525
// ─── Types ───────────────────────────────────────────────────────────────────
@@ -63,6 +63,12 @@ interface FormResult {
6363
cancelled: boolean;
6464
}
6565

66+
interface AskUserQuestionInput {
67+
title?: string;
68+
description?: string;
69+
questions: Question[];
70+
}
71+
6672
// ─── Schema ──────────────────────────────────────────────────────────────────
6773

6874
const OptionSchema = Type.Object({
@@ -182,11 +188,12 @@ Use this tool when you need user input to proceed — for clarifying requirement
182188
if (!ctx.hasUI) {
183189
return errorResult("Error: UI not available (running in non-interactive mode)");
184190
}
185-
if (!params.questions.length) {
191+
const input = params as AskUserQuestionInput;
192+
if (!input.questions.length) {
186193
return errorResult("Error: No questions provided");
187194
}
188195

189-
const questions = normalize(params.questions as Question[]);
196+
const questions = normalize(input.questions);
190197
const isMulti = questions.length > 1;
191198
const totalTabs = questions.length + (isMulti ? 1 : 0); // +1 for Submit tab
192199

@@ -344,7 +351,7 @@ Use this tool when you need user input to proceed — for clarifying requirement
344351
answers.push({ id: q.id, type: "text", value: t, wasCustom: true });
345352
}
346353
}
347-
done({ title: params.title, questions, answers, cancelled });
354+
done({ title: input.title, questions, answers, cancelled });
348355
}
349356

350357
// ── Editor submit (for "Other" mode) ────────────────────
@@ -549,13 +556,13 @@ Use this tool when you need user input to proceed — for clarifying requirement
549556
hr();
550557

551558
// Title & description
552-
if (params.title) {
553-
add(` ${theme.fg("accent", theme.bold(params.title))}`);
559+
if (input.title) {
560+
add(` ${theme.fg("accent", theme.bold(input.title))}`);
554561
}
555-
if (params.description) {
556-
add(` ${theme.fg("muted", params.description)}`);
562+
if (input.description) {
563+
add(` ${theme.fg("muted", input.description)}`);
557564
}
558-
if (params.title || params.description) lines.push("");
565+
if (input.title || input.description) lines.push("");
559566

560567
// Tab bar (multi-question)
561568
if (isMulti) {
@@ -876,8 +883,9 @@ Use this tool when you need user input to proceed — for clarifying requirement
876883
// ── Custom rendering ─────────────────────────────────────────────
877884

878885
renderCall(args, theme, _context) {
879-
const qs = (args.questions as Question[]) || [];
880-
const title = args.title as string | undefined;
886+
const input = args as Partial<AskUserQuestionInput>;
887+
const qs = input.questions || [];
888+
const title = input.title;
881889
let text = theme.fg("toolTitle", theme.bold("ask_user_question "));
882890
if (title) {
883891
text += theme.fg("accent", title) + " ";

extensions/ask-user-question/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "pi-mono-ask-user-question",
3-
"version": "1.7.3",
3+
"version": "1.7.4",
44
"description": "Pi extension for asking users structured interactive questions",
55
"keywords": [
66
"pi-package",
77
"pi-extension"
88
],
99
"peerDependencies": {
10-
"@mariozechner/pi-ai": "*",
11-
"@mariozechner/pi-coding-agent": "*",
12-
"@mariozechner/pi-tui": "*",
10+
"@earendil-works/pi-ai": "*",
11+
"@earendil-works/pi-coding-agent": "*",
12+
"@earendil-works/pi-tui": "*",
1313
"@sinclair/typebox": "*"
1414
},
1515
"pi": {
@@ -26,4 +26,4 @@
2626
"url": "https://github.com/emanuelcasco/pi-mono-extensions/issues"
2727
},
2828
"homepage": "https://github.com/emanuelcasco/pi-mono-extensions#readme"
29-
}
29+
}

extensions/auto-fix/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# pi-mono-auto-fix
22

3+
## 0.3.1
4+
5+
### Patch Changes
6+
7+
### Maintenance
8+
9+
- Update pi core imports and peer dependencies to the new `@earendil-works` package scope.
10+
311
## 0.3.0
412

513
### Added

extensions/auto-fix/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import type {
1717
ExtensionAPI,
1818
ExtensionContext,
19-
} from "@mariozechner/pi-coding-agent";
19+
} from "@earendil-works/pi-coding-agent";
2020
import { spawn } from "node:child_process";
2121
import { existsSync, readFileSync, statSync } from "node:fs";
2222
import { homedir } from "node:os";

extensions/auto-fix/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "pi-mono-auto-fix",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Pi extension that runs language-appropriate fixers (eslint, black, prettier, ...) on files touched during a turn",
55
"keywords": [
66
"pi-package",
77
"pi-extension"
88
],
99
"peerDependencies": {
10-
"@mariozechner/pi-coding-agent": "*",
10+
"@earendil-works/pi-coding-agent": "*",
1111
"@sinclair/typebox": "*"
1212
},
1313
"pi": {

extensions/btw/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# pi-mono-btw
22

3+
## 1.7.4
4+
5+
### Patch Changes
6+
7+
### Maintenance
8+
9+
- Update pi core imports and peer dependencies to the new `@earendil-works` package scope.
10+
311
## 1.7.3
412

513
### Patch Changes
@@ -15,7 +23,7 @@
1523

1624
### Fixed: ask-user-question
1725

18-
- Remove unused `StringEnum` import from `@mariozechner/pi-ai`.
26+
- Remove unused `StringEnum` import from `@earendil-works/pi-ai`.
1927

2028
## 1.7.1
2129

0 commit comments

Comments
 (0)