(options?: {
readonly cwd?: string
readonly permissionMode?: 'default' | 'acceptEdits' | 'bypassPermissions'
})
| 42 | } |
| 43 | |
| 44 | export function buildWrapperPromptFooterText(options?: { |
| 45 | readonly cwd?: string |
| 46 | readonly permissionMode?: 'default' | 'acceptEdits' | 'bypassPermissions' |
| 47 | }) { |
| 48 | const runtimeConfig = getSmokeRuntimeConfig() |
| 49 | const runtimeModel = getRuntimeMainLoopModel({ |
| 50 | permissionMode: options?.permissionMode ?? 'default', |
| 51 | mainLoopModel: runtimeConfig.model, |
| 52 | exceeds200kTokens: false, |
| 53 | }) |
| 54 | return renderStarshipStatusLineText({ |
| 55 | modelName: renderModelName(runtimeModel), |
| 56 | effortLevel: getDisplayedEffortLevel(runtimeModel, undefined), |
| 57 | contextRemaining: null, |
| 58 | cwd: options?.cwd ?? WRAPPER_HARNESS_REPO_ROOT, |
| 59 | permissionMode: options?.permissionMode ?? 'default', |
| 60 | }) |
| 61 | } |
| 62 | |
| 63 | export function buildWrapperPromptStatusPrefix(options?: { |
| 64 | readonly permissionMode?: 'default' | 'acceptEdits' | 'bypassPermissions' |
nothing calls this directly
no test coverage detected