Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions apps/cli/ai/runtimes/pi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import fs from 'fs';
import Anthropic from '@anthropic-ai/sdk';
import { type AgentTool } from '@earendil-works/pi-agent-core';
import { type Model, type SimpleStreamOptions } from '@earendil-works/pi-ai';
import { streamAnthropic, type AnthropicOptions } from '@earendil-works/pi-ai/anthropic';
import {
stream as streamAnthropic,
type AnthropicOptions,
} from '@earendil-works/pi-ai/api/anthropic-messages';
import {
AuthStorage,
createAgentSession,
Expand Down Expand Up @@ -293,6 +296,7 @@ async function createStudioAgentSession(
noThemes: true,
noContextFiles: true,
systemPrompt,
appendSystemPrompt: [],
} );
await resourceLoader.reload();

Expand Down Expand Up @@ -430,10 +434,13 @@ function createWpcomAnthropicProviderConfig(
}

function createSettingsManager( _env: Record< string, string > ): SettingsManager {
return SettingsManager.inMemory( {
defaultThinkingLevel: 'high',
compaction: STUDIO_COMPACTION_SETTINGS,
} );
return SettingsManager.inMemory(
{
defaultThinkingLevel: 'high',
compaction: STUDIO_COMPACTION_SETTINGS,
},
{ projectTrusted: false }
);
}

function toToolDefinition(
Expand Down
8 changes: 4 additions & 4 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
},
"dependencies": {
"@anthropic-ai/sdk": "^0.91.1",
"@earendil-works/pi-agent-core": "0.78.0",
"@earendil-works/pi-ai": "0.78.0",
"@earendil-works/pi-coding-agent": "0.78.0",
"@earendil-works/pi-tui": "0.78.0",
"@earendil-works/pi-agent-core": "0.80.3",
"@earendil-works/pi-ai": "0.80.3",
"@earendil-works/pi-coding-agent": "0.80.3",
"@earendil-works/pi-tui": "0.80.3",
"@formatjs/intl-localematcher": "^0.5.4",
"@inquirer/prompts": "^8.5.2",
"@modelcontextprotocol/sdk": "^1.27.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@automattic/generate-password": "^0.2.0",
"@automattic/interpolate-components": "^1.2.1",
"@base-ui/react": "^1.3.0",
"@earendil-works/pi-coding-agent": "0.78.0",
"@earendil-works/pi-coding-agent": "0.80.3",
"@electron-forge/cli": "^7.11.2",
"@electron-forge/maker-deb": "^7.11.2",
"@electron-forge/maker-dmg": "^7.11.2",
Expand Down
Loading
Loading