pi-ext bugabingas pi extensions
owned by admin
README Source History Refs Compare Notes Search refactor: use Pi thinking-level types
0144fb4bb5f9bf7dec271f5673c637abcf1617d1
Oliver Krylow <o.krylow@isp-insoft.de > · 7 Sep 2026
SSH signature · not checked
Browse files Compare with HEAD
Changed files (2) extensions/btw/index.ts Modified 6 - ThinkingLevel
as AiThinkingLevel,
9 9 }
from "@earendil-works/pi-ai" ;
46 46 const BTW_SUMMARY_PROMPT
= 47 47 "Summarize this side conversation for handoff into the main conversation. Keep key decisions, findings, risks, and next actions. Output only the summary." ;
49 - type SessionThinkingLevel = "off" | AiThinkingLevel ;
51 49 type BtwDetails = {
57 - thinkingLevel
: SessionThinkingLevel ;
55 + thinkingLevel
: ModelThinkingLevel ;
58 56 usage
?: AssistantMessage [
"usage" ];
652 650 const { session }
= await createAgentSession ({
653 651 sessionManager: SessionManager.
inMemory (),
654 652 model: ctx.model,
655 - thinkingLevel: pi.
getThinkingLevel ()
as SessionThinkingLevel ,
653 + thinkingLevel: pi.
getThinkingLevel (),
656 654 tools: [
... SIDE_TOOLS],
657 655 resourceLoader:
createBtwResourceLoader (ctx),
985 983 timestamp :
Date .
now (),
986 984 provider : model.provider,
988 - thinkingLevel : pi.
getThinkingLevel ()
as SessionThinkingLevel ,
986 + thinkingLevel : pi.
getThinkingLevel (),
989 987 usage : response.usage,
991 989 thread.
push (details);
extensions/masks/index.ts Modified 20 20 const SETTINGS_KEY
= "masks" ;
21 21 const DEFAULT_PICKER_SHORTCUT
= "alt+m" ;
22 - const THINKING_LEVELS
= [
22 + type ThinkingLevel = ReturnType <
ExtensionAPI [
"getThinkingLevel" ]>;
23 + const THINKING_LEVELS
: readonly ThinkingLevel []
= [
32 - type ThinkingLevel = (
typeof THINKING_LEVELS)[
number ];
33 32 type Shortcut = Parameters <
ExtensionAPI [
"registerShortcut" ]>[
0 ];