Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions desktop/runtime/isolated-settings-manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'node:path'
import type { ResourceLoader, SettingsManager } from '@earendil-works/pi-coding-agent'
import type { SettingsManager } from '@earendil-works/pi-coding-agent'
import type { PiDefaultProjectTrust } from '../../shared/desktop-settings-contracts.ts'

type SettingsManagerFactory = {
Expand All @@ -11,6 +11,9 @@ type SettingsManagerFactory = {
inMemory: (settings?: Record<string, unknown>) => SettingsManager
}

type DefaultResourceLoaderFactory =
typeof import('@earendil-works/pi-coding-agent').DefaultResourceLoader

export function getRuntimeDefaultProjectTrust(options: {
SettingsManager: SettingsManagerFactory
agentDir: string
Expand Down Expand Up @@ -106,14 +109,7 @@ export function createRuntimeSettingsManager(options: {
}

export async function createIsolatedRuntimeResourceLoader(options: {
DefaultResourceLoader: new (loaderOptions: {
cwd: string
agentDir: string
settingsManager: SettingsManager
noSkills?: boolean
additionalSkillPaths?: string[]
systemPrompt?: string
}) => ResourceLoader
DefaultResourceLoader: DefaultResourceLoaderFactory
cwd: string
agentDir: string
settingsCwd?: string | null | undefined
Expand Down