This commit is contained in:
2026-07-26 14:02:37 +07:00
parent bc56546b49
commit 367ebc1c7f
171 changed files with 4617 additions and 10402 deletions
@@ -13,6 +13,7 @@
* pi --extension examples/extensions/custom-compaction.ts
*/
import { uuidv7 } from "@earendil-works/pi-ai";
import { complete } from "@earendil-works/pi-ai/compat";
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
import { convertToLlm, serializeConversation } from "@earendil-works/pi-coding-agent";
@@ -96,6 +97,8 @@ ${conversationText}
env: auth.env,
maxTokens: 8192,
signal,
cacheRetention: "none",
sessionId: uuidv7(),
},
);
@@ -1,12 +1,12 @@
{
"name": "pi-extension-custom-provider",
"version": "0.81.1",
"version": "0.82.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "pi-extension-custom-provider",
"version": "0.81.1",
"version": "0.82.1",
"dependencies": {
"@anthropic-ai/sdk": "^0.52.0"
}
@@ -1,7 +1,7 @@
{
"name": "pi-extension-custom-provider-anthropic",
"private": true,
"version": "0.81.1",
"version": "0.82.1",
"type": "module",
"scripts": {
"clean": "echo 'nothing to clean'",
@@ -1,7 +1,7 @@
{
"name": "pi-extension-custom-provider-gitlab-duo",
"private": true,
"version": "0.81.1",
"version": "0.82.1",
"type": "module",
"scripts": {
"clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
{
"name": "pi-extension-gondolin",
"version": "0.81.1",
"version": "0.82.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "pi-extension-gondolin",
"version": "0.81.1",
"version": "0.82.1",
"dependencies": {
"@earendil-works/gondolin": "0.12.0"
}
@@ -1,7 +1,7 @@
{
"name": "pi-extension-gondolin",
"private": true,
"version": "0.81.1",
"version": "0.82.1",
"type": "module",
"scripts": {
"clean": "echo 'nothing to clean'",
@@ -13,6 +13,7 @@
*/
import type { AgentMessage } from "@earendil-works/pi-agent-core";
import { uuidv7 } from "@earendil-works/pi-ai";
import { complete, type Message } from "@earendil-works/pi-ai/compat";
import type { ExtensionAPI, SessionEntry } from "@earendil-works/pi-coding-agent";
import { BorderedLoader, convertToLlm, serializeConversation } from "@earendil-works/pi-coding-agent";
@@ -136,7 +137,14 @@ export default function (pi: ExtensionAPI) {
const response = await complete(
ctx.model!,
{ systemPrompt: SYSTEM_PROMPT, messages: [userMessage] },
{ apiKey: auth.apiKey, headers: auth.headers, env: auth.env, signal: loader.signal },
{
apiKey: auth.apiKey,
headers: auth.headers,
env: auth.env,
signal: loader.signal,
cacheRetention: "none",
sessionId: uuidv7(),
},
);
if (response.stopReason === "aborted") {
@@ -12,7 +12,7 @@ import { Box, Text } from "@earendil-works/pi-tui";
export default function (pi: ExtensionAPI) {
// Register custom renderer for "status-update" messages
pi.registerMessageRenderer("status-update", (message, { expanded }, theme) => {
pi.registerMessageRenderer("status-update", (message, { expanded, outputPad }, theme) => {
const details = message.details as { level: string; timestamp: number } | undefined;
const level = details?.level ?? "info";
@@ -29,7 +29,7 @@ export default function (pi: ExtensionAPI) {
}
// Use Box with customMessageBg for consistent styling
const box = new Box(1, 1, (t) => theme.bg("customMessageBg", t));
const box = new Box(outputPad, 1, (t) => theme.bg("customMessageBg", t));
box.addChild(new Text(text, 0, 0));
return box;
});
@@ -1,12 +1,12 @@
{
"name": "pi-extension-sandbox",
"version": "1.11.1",
"version": "1.12.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "pi-extension-sandbox",
"version": "1.11.1",
"version": "1.12.1",
"dependencies": {
"@anthropic-ai/sandbox-runtime": "^0.0.26"
}
@@ -1,7 +1,7 @@
{
"name": "pi-extension-sandbox",
"private": true,
"version": "1.11.1",
"version": "1.12.1",
"type": "module",
"scripts": {
"clean": "echo 'nothing to clean'",
@@ -1,3 +1,4 @@
import { uuidv7 } from "@earendil-works/pi-ai";
import { complete, getModel } from "@earendil-works/pi-ai/compat";
import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
import { DynamicBorder, getMarkdownTheme } from "@earendil-works/pi-coding-agent";
@@ -193,6 +194,8 @@ export default function (pi: ExtensionAPI) {
headers: auth.headers,
env: auth.env,
reasoningEffort: "high",
cacheRetention: "none",
sessionId: uuidv7(),
},
);
@@ -1,12 +1,12 @@
{
"name": "pi-extension-with-deps",
"version": "0.81.1",
"version": "0.82.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "pi-extension-with-deps",
"version": "0.81.1",
"version": "0.82.1",
"dependencies": {
"ms": "^2.1.3"
},
@@ -1,7 +1,7 @@
{
"name": "pi-extension-with-deps",
"private": true,
"version": "0.81.1",
"version": "0.82.1",
"type": "module",
"scripts": {
"clean": "echo 'nothing to clean'",