pi-agent-ide 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{chunk-LG22ELG4.js → chunk-26SMC6OS.js} +1 -1
  3. package/dist/{chunk-QC6VFZSB.js → chunk-3BRGWFEI.js} +1 -1
  4. package/dist/chunk-3JBQYLJ4.js +5 -0
  5. package/dist/{chunk-LRAMFOUP.js → chunk-3KM5DSWL.js} +1 -1
  6. package/dist/{chunk-FVWMI4GP.js → chunk-7OAAM5FL.js} +1 -1
  7. package/dist/{chunk-X4CU7CMR.js → chunk-C327T6YP.js} +1 -1
  8. package/dist/{chunk-WZ7MNISG.js → chunk-KM4NOIOB.js} +1 -1
  9. package/dist/{chunk-NGWQRV25.js → chunk-L2YDUMZC.js} +1 -1
  10. package/dist/chunk-MCHU3BLO.js +53 -0
  11. package/dist/{chunk-AKUBFJAR.js → chunk-NSBRKTZ7.js} +1 -1
  12. package/dist/{chunk-SKHD2QIT.js → chunk-QUK5ZEYX.js} +1 -1
  13. package/dist/{chunk-E6G3UVS7.js → chunk-RYJEEBET.js} +1 -1
  14. package/dist/chunk-UN3XLVPR.js +18 -0
  15. package/dist/{chunk-KJ6HZC6L.js → chunk-VQ2RA43A.js} +1 -1
  16. package/dist/{chunk-HUICUICD.js → chunk-VWYI4WF7.js} +1 -1
  17. package/dist/{chunk-UHGHVYAW.js → chunk-W25HNEMR.js} +1 -1
  18. package/dist/entry-0.js +1 -1
  19. package/dist/entry-20.js +1 -1
  20. package/dist/entry-38.js +1 -1
  21. package/dist/entry-44.js +1 -1
  22. package/dist/entry-57.js +1 -1
  23. package/dist/entry-58.js +1 -1
  24. package/dist/entry-59.js +1 -1
  25. package/dist/entry-60.js +1 -1
  26. package/dist/entry-61.js +1 -1
  27. package/dist/entry-62.js +1 -1
  28. package/dist/entry-94.js +1 -1
  29. package/dist/pi-agent-ide.js +1 -1
  30. package/docs/nightly.md +7 -1
  31. package/docs/releases.md +1 -1
  32. package/node_modules/pi-agent-doctor/package.json +1 -1
  33. package/node_modules/pi-agent-documentation/package.json +1 -1
  34. package/node_modules/pi-agent-filesystem/package.json +7 -7
  35. package/node_modules/pi-agent-filesystem-image/package.json +3 -3
  36. package/node_modules/pi-agent-filesystem-jq/package.json +5 -5
  37. package/node_modules/pi-agent-filesystem-pdf/package.json +3 -3
  38. package/node_modules/pi-agent-filesystem-text/package.json +3 -3
  39. package/node_modules/pi-agent-ide-ast/package.json +13 -13
  40. package/node_modules/pi-agent-ide-changes/package.json +8 -8
  41. package/node_modules/pi-agent-ide-formatter/package.json +3 -3
  42. package/node_modules/pi-agent-ide-languages/package.json +2 -2
  43. package/node_modules/pi-agent-ide-lint/package.json +7 -7
  44. package/node_modules/pi-agent-ide-lsp/package.json +12 -12
  45. package/node_modules/pi-agent-ide-lsp/src/lsp/client.ts +28 -0
  46. package/node_modules/pi-agent-ide-lsp/src/lsp/corrected-names.ts +16 -5
  47. package/node_modules/pi-agent-ide-lsp/src/lsp/declaration-scan.ts +116 -0
  48. package/node_modules/pi-agent-ide-lsp/src/lsp/initialization-options.ts +37 -0
  49. package/node_modules/pi-agent-ide-lsp/src/lsp/manager.ts +138 -128
  50. package/node_modules/pi-agent-ide-lsp/src/lsp/navigation.ts +1 -24
  51. package/node_modules/pi-agent-ide-lsp/src/lsp/project.ts +40 -12
  52. package/node_modules/pi-agent-ide-lsp/src/lsp/symbol-search.ts +98 -40
  53. package/node_modules/pi-agent-ide-lsp/src/lsp/symbol-selectors.ts +48 -0
  54. package/node_modules/pi-agent-ide-lsp/src/lsp/symbols.ts +61 -0
  55. package/node_modules/pi-agent-ide-lsp/src/rename-plan.ts +1 -1
  56. package/node_modules/pi-agent-ide-lsp/src/search-resolver.ts +51 -2
  57. package/node_modules/pi-agent-image/package.json +2 -2
  58. package/node_modules/pi-agent-invariant/package.json +1 -1
  59. package/node_modules/pi-agent-pdf/package.json +2 -2
  60. package/node_modules/pi-agent-read/package.json +7 -7
  61. package/node_modules/pi-agent-resource/package.json +1 -1
  62. package/node_modules/pi-agent-search/package.json +4 -4
  63. package/node_modules/pi-agent-search/src/api/structured-result.ts +28 -4
  64. package/node_modules/pi-agent-search-text/package.json +10 -10
  65. package/node_modules/pi-agent-text/package.json +2 -2
  66. package/node_modules/pi-agent-text-anchor-constant/package.json +3 -3
  67. package/node_modules/pi-agent-text-anchor-exact/package.json +3 -3
  68. package/node_modules/pi-agent-text-anchor-line-hash/package.json +5 -5
  69. package/node_modules/pi-agent-text-editor/package.json +8 -8
  70. package/node_modules/pi-agent-text-editor-renderer/package.json +5 -5
  71. package/node_modules/pi-agent-text-editor-stale-anchor/package.json +4 -4
  72. package/node_modules/pi-agent-tool-call-interception/package.json +2 -2
  73. package/node_modules/pi-agent-tool-ui/package.json +1 -1
  74. package/node_modules/pi-agent-web/package.json +7 -7
  75. package/node_modules/pi-agent-web-html/package.json +2 -2
  76. package/node_modules/pi-agent-web-image/package.json +3 -3
  77. package/node_modules/pi-agent-web-pdf/package.json +3 -3
  78. package/node_modules/pi-agent-web-text/package.json +3 -3
  79. package/package.json +35 -35
  80. package/src/composite/script-values/lsp-search.ts +56 -12
  81. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +7 -7
  82. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/package.json +3 -3
  83. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/package.json +5 -5
  84. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-pdf/package.json +3 -3
  85. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/package.json +3 -3
  86. package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +7 -7
  87. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +2 -2
  88. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/package.json +3 -3
  89. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/package.json +3 -3
  90. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/package.json +3 -3
  91. package/src/extensions/pi-agent-read/package.json +7 -7
  92. package/src/extensions/pi-agent-search/package.json +4 -4
  93. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +10 -10
  94. package/src/extensions/pi-agent-search/src/api/structured-result.ts +28 -4
  95. package/src/extensions/pi-agent-text-editor/package.json +8 -8
  96. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json +3 -3
  97. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +3 -3
  98. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/package.json +5 -5
  99. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +5 -5
  100. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +4 -4
  101. package/src/plugins/pi-agent-ide-ast/package.json +13 -13
  102. package/src/plugins/pi-agent-ide-changes/package.json +8 -8
  103. package/src/plugins/pi-agent-ide-formatter/package.json +3 -3
  104. package/src/plugins/pi-agent-ide-languages/package.json +2 -2
  105. package/src/plugins/pi-agent-ide-lint/package.json +7 -7
  106. package/src/plugins/pi-agent-ide-lsp/package.json +12 -12
  107. package/src/plugins/pi-agent-ide-lsp/src/lsp/client.ts +28 -0
  108. package/src/plugins/pi-agent-ide-lsp/src/lsp/corrected-names.ts +16 -5
  109. package/src/plugins/pi-agent-ide-lsp/src/lsp/declaration-scan.ts +116 -0
  110. package/src/plugins/pi-agent-ide-lsp/src/lsp/initialization-options.ts +37 -0
  111. package/src/plugins/pi-agent-ide-lsp/src/lsp/manager.ts +138 -128
  112. package/src/plugins/pi-agent-ide-lsp/src/lsp/navigation.ts +1 -24
  113. package/src/plugins/pi-agent-ide-lsp/src/lsp/project.ts +40 -12
  114. package/src/plugins/pi-agent-ide-lsp/src/lsp/symbol-search.ts +98 -40
  115. package/src/plugins/pi-agent-ide-lsp/src/lsp/symbol-selectors.ts +48 -0
  116. package/src/plugins/pi-agent-ide-lsp/src/lsp/symbols.ts +61 -0
  117. package/src/plugins/pi-agent-ide-lsp/src/rename-plan.ts +1 -1
  118. package/src/plugins/pi-agent-ide-lsp/src/search-resolver.ts +51 -2
  119. package/dist/chunk-4AEYLVSR.js +0 -5
  120. package/dist/chunk-DSB6A5P5.js +0 -53
  121. package/dist/chunk-YSGPCH52.js +0 -18
package/dist/entry-0.js CHANGED
@@ -1 +1 @@
1
- import{a as he}from"./chunk-UHGHVYAW.js";import{c as de,d as ue}from"./chunk-VB5P3TXJ.js";import{a as ge}from"./chunk-XLTAP5YC.js";import{b as ce}from"./chunk-YHADTHQM.js";import"./chunk-J5CKSIH7.js";import"./chunk-TIZ4QDF3.js";import"./chunk-JMCI2ZE2.js";import{a as pe}from"./chunk-RNDSWVJF.js";import{a as me}from"./chunk-HRZAIZGR.js";import"./chunk-3V3OQO5S.js";import"./chunk-ASVMQMPX.js";import{a as fe}from"./chunk-E7JBYW43.js";import"./chunk-MJMRV76H.js";import"./chunk-72WO7H5T.js";import{a as ie}from"./chunk-HUICUICD.js";import{b as le}from"./chunk-X4CU7CMR.js";import"./chunk-QC6VFZSB.js";import"./chunk-KJ6HZC6L.js";import"./chunk-SF44YQCB.js";import"./chunk-QR7JR3P2.js";import{a as ae}from"./chunk-R7576HPO.js";import"./chunk-LG22ELG4.js";import"./chunk-SKHD2QIT.js";import"./chunk-D23NS4VV.js";import"./chunk-4AEYLVSR.js";import"./chunk-47SPPIXK.js";import"./chunk-VAXLSPPU.js";import{a as se}from"./chunk-DSB6A5P5.js";import"./chunk-XKVU6AAS.js";import"./chunk-E4V4VNRM.js";import"./chunk-GDIF3WT6.js";import"./chunk-VNG4QPPT.js";import"./chunk-YGGKGZO2.js";import"./chunk-VNNAVC4S.js";import"./chunk-6DC2Q5BI.js";import{d as oe}from"./chunk-BW3XONMZ.js";import"./chunk-GTZOIJCH.js";import"./chunk-JXULBI4S.js";import"./chunk-MPT3R4BL.js";import"./chunk-KN6VPARZ.js";import"./chunk-2YO6RVX4.js";import"./chunk-MLFJU2US.js";import{a as ne}from"./chunk-SJQGFUXR.js";import"./chunk-IZTOXSTR.js";import"./chunk-QCAGAJHJ.js";import"./chunk-JY63UUC2.js";import{a as Z}from"./chunk-I3G6K7QU.js";import{a as K,b as Q}from"./chunk-HSAGZWPO.js";import{e as re}from"./chunk-PS2B6THP.js";import{d as ee,e as te}from"./chunk-XEPCURYZ.js";import{G as J,H as X,ma as B,ta as k}from"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-2EY3LEZ7.js";import{c as Y}from"./chunk-RQ7JJ7GV.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import{a as n}from"./chunk-EI7MMDWY.js";import{Type as we}from"typebox";var ye=["read","search","write","replace","insert","delete","copy","move","diff"],Re={read:["path"],search:["path"],write:["path"],replace:["path"],insert:["path"],delete:["path"],copy:["path","target"],move:["path","target"],diff:["before","after"]},be=new Set(["read","search","diff"]),Se="pi-agent-ide/standalone-reservation/v1",g=n(a=>a!==null&&typeof a=="object"&&!Array.isArray(a),"record"),Ee=n(a=>a.startsWith("pi-agent-ide/operation-approval/")||a.startsWith("pi-agent-ide/settings/"),"shared"),H=class extends Error{constructor(d,w){super(w?"Local filesystem paths are not supported by this standalone host. Use a provider-owned resource URI.":"This resource URI is not owned by this standalone host. Use a resource owned by this namespace.");this.source=d;this.code=w?"RESOURCE_HOST_LOCAL_PATH":"RESOURCE_HOST_FOREIGN_SOURCE"}static{n(this,"ResourceHostSourceError")}code};function Te(a,y){let d=y.namespace.name;if(!/^[a-z][a-z0-9_]*$/u.test(d))throw new Error("Resource host namespace must be a lowercase identifier.");let w=new Set(y.tools??ye);if([...w].some(e=>!ye.includes(e)))throw new Error("Unsupported resource host tool.");let p={namespace:d,claimed:!1};if(a.events.emit(Se,p),p.claimed)throw new Error(`Resource host namespace already registered: ${d}`);let _=a.events.on(Se,e=>{g(e)&&e.namespace===d&&(e.claimed=!0)}),E=new Map,u=new Set,h=[_],T=new Map,U=new Map,v=new Set,C=!1,z,P,b=n(e=>`${d}_${e}`,"publicName"),S=n(e=>typeof e=="string"&&e.startsWith(d+"_")&&w.has(e.slice(d.length+1))?e.slice(d.length+1):void 0,"localName"),$=n(e=>e.replace(/\b(?:read|search|select|write|replace|insert|delete|copy|move|diff)\b/gu,(t,o)=>{let s=e.slice(0,o),r=e.slice(o+t.length);return s.endsWith("tools.")||s.endsWith("`")&&/^[`.]/u.test(r)||/(?:\bUse|\band) $/u.test(s)&&r.startsWith(" to ")?b(t):t}),"words");function j(e,t){let o=e.startsWith("raw:")&&!t?e.slice(4):e;return!t&&(o.startsWith("docs:")||o.startsWith("temp:"))?!0:/^[a-z][a-z\d+.-]*:\/\//iu.test(o)&&!/^(?:file:|[a-z]:[/\\])/iu.test(o)&&y.ownsSource(o)}n(j,"owns");let M=n((e,t)=>{let o=e.startsWith("raw:")&&!t?e.slice(4):e,s=!/^[a-z][a-z\d+.-]*:/iu.test(o)||/^(?:file:|[a-z]:)/iu.test(o);return new H(e,s)},"sourceError"),W=n(()=>k(P),"targets");async function O(e,t,o){let s=W().source(e,t.cwd,!o);if(Array.isArray(s)){for(let r of s)await O(r,t,o);return}if(g(s)&&"path"in s){await O(s.path,t,o);return}if(typeof s!="string")throw new Error("Use an owned resource URI or an issued source result.");if(s.startsWith("RESULT#")){let r=W().resolve(s,t.cwd),m=r.targets.find(i=>!j(i.source,o));if(m)throw M(m.source,o);await W().verify(r,t.signal);return}if(s.startsWith("SEARCH#")){let r=await z?.read({path:s},{cwd:t.cwd,signal:t.signal},"script");if(r?.isError||r?.script?.kind!=="text"||!r.script.target)throw new Error("Unknown or expired resource search selection.");await O(r.script.target,t,o);return}if(!j(s,o))throw M(s,o)}n(O,"checkSource");async function G(e,t,o){if(C)throw new Error("Standalone resource host is closed.");if(!g(t))throw new Error("Resource tool arguments must be an object.");let s=!be.has(e),r=Re[e]??[];if(["read","search"].includes(e)&&t.path===void 0)throw new Error("Supply an explicit owned resource or source result.");if(s&&t.path===void 0){let m=ce(P)?.source;if(!m)throw new Error("Supply an owned source before editing.");await O(m,o,!0)}for(let m of r)t[m]!==void 0&&await O(t[m],o,s);for(let m of oe(e)){let i=t[m];(B(i)!==void 0||typeof i=="string"&&/^(?:RESULT#|SEARCH#|<system-result)/u.test(i))&&await O(i,o,s)}if(e==="write"&&typeof t.content!="string")throw new Error("Standalone resource Write accepts text/JSON content, not filesystem image writes.")}n(G,"validate");let I=n((e,t)=>a.on(e,async(o,s)=>await t({...o},s)),"subscribe"),A=new Map;h.push(I("tool_call",async(e,t)=>{let o=S(e.toolName);if(o)try{await G(o,e.input,t)}catch(s){if(typeof e.toolCallId=="string")A.set(e.toolCallId,s instanceof Error?s:new Error(String(s)));else return{block:!0,reason:s instanceof Error?s.message:String(s)}}}));let Ae=n((e,t)=>{let o=t;if(e==="session_shutdown")return u.add(o),()=>{u.delete(o)};let s=I(e,async(r,m)=>{if(C||e==="tool_call"&&typeof r.toolCallId=="string"&&A.has(r.toolCallId))return;let i=r;if(e.startsWith("tool_")){let c=S(r.toolName);if(c)typeof r.parentToolCallId=="string"&&v.add(r.parentToolCallId),i={...r,toolName:c};else if(typeof r.toolCallId=="string"&&v.has(r.toolCallId))i={...r,toolName:r.toolName==="codemode"?"codemode":"__standalone_parent"};else return}if(e==="message_end"){if(!g(r.message)||r.message.role!=="toolResult")return;let c=S(r.message.toolName);if(!c)return;i={...r,message:{...r.message,toolName:c}}}e==="context"&&Array.isArray(r.messages)&&(i={...r,messages:r.messages.map(c=>g(c)&&typeof c.toolName=="string"?{...c,toolName:S(c.toolName)??"__outside_resource_host"}:c)});let l=await o(i,m);if(!g(l))return l;if(e==="message_end"&&g(l.message)&&g(r.message))return{...l,message:{...l.message,toolName:r.message.toolName}};if(e==="context"&&Array.isArray(l.messages)&&Array.isArray(r.messages)){let c=r.messages;if(l.messages.length!==c.length)throw new Error("Resource host context handlers must preserve message positions.");return{...l,messages:l.messages.map((R,N)=>{let x=c[N];return g(R)&&g(x)&&typeof x.toolName=="string"?{...R,toolName:x.toolName}:R})}}return l});return h.push(s),s},"on"),xe={emit(e,t){if(C)throw new Error("Standalone resource host is closed.");if(Ee(e))a.events.emit(e,t);else for(let o of E.get(e)??[])o(t)},on(e,t){if(Ee(e)){let s=a.events.on(e,t);return h.push(s),s}let o=E.get(e);return o||E.set(e,o=new Set),o.add(t),()=>{o.delete(t)}}};function D(e){return Array.isArray(e)?e.map(D):g(e)?Object.fromEntries(Object.entries(e).map(([t,o])=>[t,t==="description"&&typeof o=="string"?$(o):D(o)])):e}n(D,"descriptions");function _e(e){return{...e,tools:e.tools.flatMap(t=>{let o=S(t.name);return o?[{...t,name:o}]:[]}),executeTool(t,o,s){if(!w.has(t))throw new Error("Tool is not owned by this resource host.");return e.executeTool(b(t),o,s)}}}n(_e,"toolContext"),P={...a,events:xe,on:Ae,registerTool:n(e=>{let t=e.name;if(!w.has(t))return;let o=Object.getOwnPropertyDescriptors(e);o.name={value:b(t),enumerable:!0,configurable:!0},o.label={value:b(t),enumerable:!0,configurable:!0},o.namespace={value:y.namespace,enumerable:!0,configurable:!0},o.exposure={value:"deferred",enumerable:!0,configurable:!0},o.description={get:n(()=>`Use ${b(t)} to ${t==="read"?"inspect provider-owned resources and packaged guides":t==="search"?"find objects or text within an explicit provider-owned resource":`${t} provider-owned text resources`}.`,"get"),enumerable:!0,configurable:!0},o.promptSnippet={get:n(()=>$(e.promptSnippet??""),"get"),enumerable:!0,configurable:!0},o.promptGuidelines={get:n(()=>[...(e.promptGuidelines??[]).map($),"Use only this namespace's owned resource URIs and issued results. Local filesystem paths are not supported."],"get"),enumerable:!0,configurable:!0},o.parameters={get:n(()=>{let i=D(e.parameters),l=g(i.properties)?{...i.properties}:{};for(let R of Re[t]??[])g(l[R])&&(l[R]={...l[R],description:"Provider-owned resource URI, unchanged source result, or an issued reference."});if(t!=="write")return Object.assign({},e.parameters,i,{properties:l});delete l.image,l.content=we.String({description:"Complete text/Markdown or JSON payload for the selected provider resource."});let c=Array.isArray(i.required)?i.required:[];return Object.assign({},e.parameters,i,{properties:l,required:[...new Set([...c,"content"])]})},"get"),enumerable:!0,configurable:!0};let s=n(async(i,l,c,R,N)=>{if(C)throw new Error("Standalone resource host is closed.");let x=new AbortController,q=n(()=>{},"finish"),Ce=new Promise(f=>{q=f});T.set(x,Ce);let Oe=[c,N.signal,x.signal].filter(f=>f!==void 0),L=AbortSignal.any(Oe);try{let f=A.get(i);if(A.delete(i),f)throw f;let F={..._e(N),signal:L};return await G(t,l,F),L.throwIfAborted(),await e.execute(i,l,L,R,F)}catch(f){if(!(f instanceof H))throw f;return X({content:[{type:"text",text:`${f.code}: ${f.message} (${f.source})`}],details:{boundary:{code:f.code,source:f.source}}},we.Unknown(),{status:"error",errors:[J(f,f.code,f.source)]})}finally{T.delete(x),q()}},"execute");o.execute={value:s,enumerable:!0,configurable:!0};let r=n((i,l,c)=>!be.has(t)&&e.renderCall?e.renderCall(i,l,c):re(c.lastComponent,{tool:b(t),primary:{text:g(i)?String(i.path??i.query??"owned resource"):"owned resource",truncate:"end"},expanded:c.expanded},l),"renderCall");o.renderCall={value:r,enumerable:!0,configurable:!0};let m=Object.defineProperties({},o);U.set(t,()=>a.registerTool({...m,exposure:"hidden"})),a.registerTool(m)},"registerTool"),getActiveTools:n(()=>a.getActiveTools().flatMap(e=>{let t=S(e);return t?[t]:[]}),"getActiveTools"),getAllTools:n(()=>a.getAllTools().flatMap(e=>{let t=S(e.name);return t?[{...e,name:t}]:[]}),"getAllTools"),setActiveTools(e){let t=a.getActiveTools().filter(o=>!S(o));a.setActiveTools([...t,...e.filter(o=>w.has(o)).map(b)])}},h.push(I("session_start",()=>{v.clear(),A.clear(),!(a.getSettings().defaultTools??[]).includes("-tool_search")&&a.getAllTools().some(e=>e.name==="tool_search"&&e.exposure!=="hidden")&&!a.getActiveTools().includes("tool_search")&&a.setActiveTools([...a.getActiveTools(),"tool_search"])})),h.push(I("agent_end",()=>{v.clear(),A.clear()}));async function V(e,t=!0){if(C)return;C=!0;for(let r of T.keys())r.abort();await Promise.all(T.values());let o=await Promise.allSettled([...u].map(r=>r({type:"session_shutdown"},e)));for(let r of h)r();if(E.clear(),u.clear(),v.clear(),A.clear(),t)for(let r of U.values())r();U.clear();let s=o.find(r=>r.status==="rejected");if(s?.status==="rejected")throw s.reason}return n(V,"dispose"),h.push(I("session_shutdown",(e,t)=>V(t,!1))),{api:P,owns:j,tools:[...w].map(b),dispose:V,setApi(e){P=e},setRead(e){z=e}}}n(Te,"createResourceHostApi");async function ve(a,y){Y(a);let d=Te(a,y),w=se(d.api,{resourceOutput:!0,promptSection:`resource_${y.namespace.name}_results`}),p=w.api;d.setApi(p);try{await ae(p);let _;await Z(p,{protocol:K,apiVersion:Q,id:"standalone-resource-boundary",setup(u){_=u,d.setRead(u),u.addResourceGuard({id:"standalone-resource-boundary",guard:n(h=>d.owns(h.resourceSource,!1)?{kind:"accepted"}:{kind:"rejected",reason:"Resource belongs outside this standalone host."},"guard")}),u.addHandler({stage:"post-read",handler:ne(k(p),u.read,h=>d.owns(h,!0))})}}),await ie(p);let E=await de(p);if(await E.registerPlugin({protocol:ee,apiVersion:te,id:"standalone-resource-boundary",setup(u){u.addMutationGuard({id:"standalone-resource-boundary",guard:n(h=>h.resources.every(T=>d.owns(T.source,!0)&&T.binary===void 0)?{kind:"accepted"}:{kind:"rejected",rejection:{code:"RESOURCE_HOST_BOUNDARY",reason:"Resource belongs outside this standalone host.",message:"Use this host only for its provider-owned text resources.",effect:"not-applied"}},"guard")})}}),await pe(p),await fe(p),await me(p),await le(p),!_)throw new Error("Standalone Read host did not initialize.");return await he(p,{recordType:`agent-documentation-read/${y.namespace.name}`,ownsTool:n(u=>typeof u=="string"&&d.tools.includes(u),"ownsTool")}),await ge(p,{preferences:{},toolName:n(u=>`${y.namespace.name}_${u}`,"toolName")}),ue(p,E),w.finalize(),{api:p,tools:d.tools,dispose:n(u=>d.dispose(u),"dispose")}}catch(_){throw await d.dispose(),_}}n(ve,"createStandaloneResourceHost");export{ve as createStandaloneResourceHost};
1
+ import{a as he}from"./chunk-W25HNEMR.js";import{c as de,d as ue}from"./chunk-VB5P3TXJ.js";import{a as ge}from"./chunk-XLTAP5YC.js";import{b as ce}from"./chunk-YHADTHQM.js";import"./chunk-J5CKSIH7.js";import"./chunk-TIZ4QDF3.js";import"./chunk-JMCI2ZE2.js";import{a as pe}from"./chunk-RNDSWVJF.js";import{a as me}from"./chunk-HRZAIZGR.js";import"./chunk-3V3OQO5S.js";import"./chunk-ASVMQMPX.js";import{a as fe}from"./chunk-E7JBYW43.js";import"./chunk-MJMRV76H.js";import"./chunk-72WO7H5T.js";import{a as ie}from"./chunk-VWYI4WF7.js";import{b as le}from"./chunk-C327T6YP.js";import"./chunk-3BRGWFEI.js";import"./chunk-VQ2RA43A.js";import"./chunk-SF44YQCB.js";import"./chunk-QR7JR3P2.js";import{a as ae}from"./chunk-R7576HPO.js";import"./chunk-26SMC6OS.js";import"./chunk-QUK5ZEYX.js";import"./chunk-D23NS4VV.js";import"./chunk-3JBQYLJ4.js";import"./chunk-47SPPIXK.js";import"./chunk-VAXLSPPU.js";import{a as se}from"./chunk-MCHU3BLO.js";import"./chunk-XKVU6AAS.js";import"./chunk-E4V4VNRM.js";import"./chunk-GDIF3WT6.js";import"./chunk-VNG4QPPT.js";import"./chunk-YGGKGZO2.js";import"./chunk-VNNAVC4S.js";import"./chunk-6DC2Q5BI.js";import{d as oe}from"./chunk-BW3XONMZ.js";import"./chunk-GTZOIJCH.js";import"./chunk-JXULBI4S.js";import"./chunk-MPT3R4BL.js";import"./chunk-KN6VPARZ.js";import"./chunk-2YO6RVX4.js";import"./chunk-MLFJU2US.js";import{a as ne}from"./chunk-SJQGFUXR.js";import"./chunk-IZTOXSTR.js";import"./chunk-QCAGAJHJ.js";import"./chunk-JY63UUC2.js";import{a as Z}from"./chunk-I3G6K7QU.js";import{a as K,b as Q}from"./chunk-HSAGZWPO.js";import{e as re}from"./chunk-PS2B6THP.js";import{d as ee,e as te}from"./chunk-XEPCURYZ.js";import{G as J,H as X,ma as B,ta as k}from"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-2EY3LEZ7.js";import{c as Y}from"./chunk-RQ7JJ7GV.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import{a as n}from"./chunk-EI7MMDWY.js";import{Type as we}from"typebox";var ye=["read","search","write","replace","insert","delete","copy","move","diff"],Re={read:["path"],search:["path"],write:["path"],replace:["path"],insert:["path"],delete:["path"],copy:["path","target"],move:["path","target"],diff:["before","after"]},be=new Set(["read","search","diff"]),Se="pi-agent-ide/standalone-reservation/v1",g=n(a=>a!==null&&typeof a=="object"&&!Array.isArray(a),"record"),Ee=n(a=>a.startsWith("pi-agent-ide/operation-approval/")||a.startsWith("pi-agent-ide/settings/"),"shared"),H=class extends Error{constructor(d,w){super(w?"Local filesystem paths are not supported by this standalone host. Use a provider-owned resource URI.":"This resource URI is not owned by this standalone host. Use a resource owned by this namespace.");this.source=d;this.code=w?"RESOURCE_HOST_LOCAL_PATH":"RESOURCE_HOST_FOREIGN_SOURCE"}static{n(this,"ResourceHostSourceError")}code};function Te(a,y){let d=y.namespace.name;if(!/^[a-z][a-z0-9_]*$/u.test(d))throw new Error("Resource host namespace must be a lowercase identifier.");let w=new Set(y.tools??ye);if([...w].some(e=>!ye.includes(e)))throw new Error("Unsupported resource host tool.");let p={namespace:d,claimed:!1};if(a.events.emit(Se,p),p.claimed)throw new Error(`Resource host namespace already registered: ${d}`);let _=a.events.on(Se,e=>{g(e)&&e.namespace===d&&(e.claimed=!0)}),E=new Map,u=new Set,h=[_],T=new Map,U=new Map,v=new Set,C=!1,z,P,b=n(e=>`${d}_${e}`,"publicName"),S=n(e=>typeof e=="string"&&e.startsWith(d+"_")&&w.has(e.slice(d.length+1))?e.slice(d.length+1):void 0,"localName"),$=n(e=>e.replace(/\b(?:read|search|select|write|replace|insert|delete|copy|move|diff)\b/gu,(t,o)=>{let s=e.slice(0,o),r=e.slice(o+t.length);return s.endsWith("tools.")||s.endsWith("`")&&/^[`.]/u.test(r)||/(?:\bUse|\band) $/u.test(s)&&r.startsWith(" to ")?b(t):t}),"words");function j(e,t){let o=e.startsWith("raw:")&&!t?e.slice(4):e;return!t&&(o.startsWith("docs:")||o.startsWith("temp:"))?!0:/^[a-z][a-z\d+.-]*:\/\//iu.test(o)&&!/^(?:file:|[a-z]:[/\\])/iu.test(o)&&y.ownsSource(o)}n(j,"owns");let M=n((e,t)=>{let o=e.startsWith("raw:")&&!t?e.slice(4):e,s=!/^[a-z][a-z\d+.-]*:/iu.test(o)||/^(?:file:|[a-z]:)/iu.test(o);return new H(e,s)},"sourceError"),W=n(()=>k(P),"targets");async function O(e,t,o){let s=W().source(e,t.cwd,!o);if(Array.isArray(s)){for(let r of s)await O(r,t,o);return}if(g(s)&&"path"in s){await O(s.path,t,o);return}if(typeof s!="string")throw new Error("Use an owned resource URI or an issued source result.");if(s.startsWith("RESULT#")){let r=W().resolve(s,t.cwd),m=r.targets.find(i=>!j(i.source,o));if(m)throw M(m.source,o);await W().verify(r,t.signal);return}if(s.startsWith("SEARCH#")){let r=await z?.read({path:s},{cwd:t.cwd,signal:t.signal},"script");if(r?.isError||r?.script?.kind!=="text"||!r.script.target)throw new Error("Unknown or expired resource search selection.");await O(r.script.target,t,o);return}if(!j(s,o))throw M(s,o)}n(O,"checkSource");async function G(e,t,o){if(C)throw new Error("Standalone resource host is closed.");if(!g(t))throw new Error("Resource tool arguments must be an object.");let s=!be.has(e),r=Re[e]??[];if(["read","search"].includes(e)&&t.path===void 0)throw new Error("Supply an explicit owned resource or source result.");if(s&&t.path===void 0){let m=ce(P)?.source;if(!m)throw new Error("Supply an owned source before editing.");await O(m,o,!0)}for(let m of r)t[m]!==void 0&&await O(t[m],o,s);for(let m of oe(e)){let i=t[m];(B(i)!==void 0||typeof i=="string"&&/^(?:RESULT#|SEARCH#|<system-result)/u.test(i))&&await O(i,o,s)}if(e==="write"&&typeof t.content!="string")throw new Error("Standalone resource Write accepts text/JSON content, not filesystem image writes.")}n(G,"validate");let I=n((e,t)=>a.on(e,async(o,s)=>await t({...o},s)),"subscribe"),A=new Map;h.push(I("tool_call",async(e,t)=>{let o=S(e.toolName);if(o)try{await G(o,e.input,t)}catch(s){if(typeof e.toolCallId=="string")A.set(e.toolCallId,s instanceof Error?s:new Error(String(s)));else return{block:!0,reason:s instanceof Error?s.message:String(s)}}}));let Ae=n((e,t)=>{let o=t;if(e==="session_shutdown")return u.add(o),()=>{u.delete(o)};let s=I(e,async(r,m)=>{if(C||e==="tool_call"&&typeof r.toolCallId=="string"&&A.has(r.toolCallId))return;let i=r;if(e.startsWith("tool_")){let c=S(r.toolName);if(c)typeof r.parentToolCallId=="string"&&v.add(r.parentToolCallId),i={...r,toolName:c};else if(typeof r.toolCallId=="string"&&v.has(r.toolCallId))i={...r,toolName:r.toolName==="codemode"?"codemode":"__standalone_parent"};else return}if(e==="message_end"){if(!g(r.message)||r.message.role!=="toolResult")return;let c=S(r.message.toolName);if(!c)return;i={...r,message:{...r.message,toolName:c}}}e==="context"&&Array.isArray(r.messages)&&(i={...r,messages:r.messages.map(c=>g(c)&&typeof c.toolName=="string"?{...c,toolName:S(c.toolName)??"__outside_resource_host"}:c)});let l=await o(i,m);if(!g(l))return l;if(e==="message_end"&&g(l.message)&&g(r.message))return{...l,message:{...l.message,toolName:r.message.toolName}};if(e==="context"&&Array.isArray(l.messages)&&Array.isArray(r.messages)){let c=r.messages;if(l.messages.length!==c.length)throw new Error("Resource host context handlers must preserve message positions.");return{...l,messages:l.messages.map((R,N)=>{let x=c[N];return g(R)&&g(x)&&typeof x.toolName=="string"?{...R,toolName:x.toolName}:R})}}return l});return h.push(s),s},"on"),xe={emit(e,t){if(C)throw new Error("Standalone resource host is closed.");if(Ee(e))a.events.emit(e,t);else for(let o of E.get(e)??[])o(t)},on(e,t){if(Ee(e)){let s=a.events.on(e,t);return h.push(s),s}let o=E.get(e);return o||E.set(e,o=new Set),o.add(t),()=>{o.delete(t)}}};function D(e){return Array.isArray(e)?e.map(D):g(e)?Object.fromEntries(Object.entries(e).map(([t,o])=>[t,t==="description"&&typeof o=="string"?$(o):D(o)])):e}n(D,"descriptions");function _e(e){return{...e,tools:e.tools.flatMap(t=>{let o=S(t.name);return o?[{...t,name:o}]:[]}),executeTool(t,o,s){if(!w.has(t))throw new Error("Tool is not owned by this resource host.");return e.executeTool(b(t),o,s)}}}n(_e,"toolContext"),P={...a,events:xe,on:Ae,registerTool:n(e=>{let t=e.name;if(!w.has(t))return;let o=Object.getOwnPropertyDescriptors(e);o.name={value:b(t),enumerable:!0,configurable:!0},o.label={value:b(t),enumerable:!0,configurable:!0},o.namespace={value:y.namespace,enumerable:!0,configurable:!0},o.exposure={value:"deferred",enumerable:!0,configurable:!0},o.description={get:n(()=>`Use ${b(t)} to ${t==="read"?"inspect provider-owned resources and packaged guides":t==="search"?"find objects or text within an explicit provider-owned resource":`${t} provider-owned text resources`}.`,"get"),enumerable:!0,configurable:!0},o.promptSnippet={get:n(()=>$(e.promptSnippet??""),"get"),enumerable:!0,configurable:!0},o.promptGuidelines={get:n(()=>[...(e.promptGuidelines??[]).map($),"Use only this namespace's owned resource URIs and issued results. Local filesystem paths are not supported."],"get"),enumerable:!0,configurable:!0},o.parameters={get:n(()=>{let i=D(e.parameters),l=g(i.properties)?{...i.properties}:{};for(let R of Re[t]??[])g(l[R])&&(l[R]={...l[R],description:"Provider-owned resource URI, unchanged source result, or an issued reference."});if(t!=="write")return Object.assign({},e.parameters,i,{properties:l});delete l.image,l.content=we.String({description:"Complete text/Markdown or JSON payload for the selected provider resource."});let c=Array.isArray(i.required)?i.required:[];return Object.assign({},e.parameters,i,{properties:l,required:[...new Set([...c,"content"])]})},"get"),enumerable:!0,configurable:!0};let s=n(async(i,l,c,R,N)=>{if(C)throw new Error("Standalone resource host is closed.");let x=new AbortController,q=n(()=>{},"finish"),Ce=new Promise(f=>{q=f});T.set(x,Ce);let Oe=[c,N.signal,x.signal].filter(f=>f!==void 0),L=AbortSignal.any(Oe);try{let f=A.get(i);if(A.delete(i),f)throw f;let F={..._e(N),signal:L};return await G(t,l,F),L.throwIfAborted(),await e.execute(i,l,L,R,F)}catch(f){if(!(f instanceof H))throw f;return X({content:[{type:"text",text:`${f.code}: ${f.message} (${f.source})`}],details:{boundary:{code:f.code,source:f.source}}},we.Unknown(),{status:"error",errors:[J(f,f.code,f.source)]})}finally{T.delete(x),q()}},"execute");o.execute={value:s,enumerable:!0,configurable:!0};let r=n((i,l,c)=>!be.has(t)&&e.renderCall?e.renderCall(i,l,c):re(c.lastComponent,{tool:b(t),primary:{text:g(i)?String(i.path??i.query??"owned resource"):"owned resource",truncate:"end"},expanded:c.expanded},l),"renderCall");o.renderCall={value:r,enumerable:!0,configurable:!0};let m=Object.defineProperties({},o);U.set(t,()=>a.registerTool({...m,exposure:"hidden"})),a.registerTool(m)},"registerTool"),getActiveTools:n(()=>a.getActiveTools().flatMap(e=>{let t=S(e);return t?[t]:[]}),"getActiveTools"),getAllTools:n(()=>a.getAllTools().flatMap(e=>{let t=S(e.name);return t?[{...e,name:t}]:[]}),"getAllTools"),setActiveTools(e){let t=a.getActiveTools().filter(o=>!S(o));a.setActiveTools([...t,...e.filter(o=>w.has(o)).map(b)])}},h.push(I("session_start",()=>{v.clear(),A.clear(),!(a.getSettings().defaultTools??[]).includes("-tool_search")&&a.getAllTools().some(e=>e.name==="tool_search"&&e.exposure!=="hidden")&&!a.getActiveTools().includes("tool_search")&&a.setActiveTools([...a.getActiveTools(),"tool_search"])})),h.push(I("agent_end",()=>{v.clear(),A.clear()}));async function V(e,t=!0){if(C)return;C=!0;for(let r of T.keys())r.abort();await Promise.all(T.values());let o=await Promise.allSettled([...u].map(r=>r({type:"session_shutdown"},e)));for(let r of h)r();if(E.clear(),u.clear(),v.clear(),A.clear(),t)for(let r of U.values())r();U.clear();let s=o.find(r=>r.status==="rejected");if(s?.status==="rejected")throw s.reason}return n(V,"dispose"),h.push(I("session_shutdown",(e,t)=>V(t,!1))),{api:P,owns:j,tools:[...w].map(b),dispose:V,setApi(e){P=e},setRead(e){z=e}}}n(Te,"createResourceHostApi");async function ve(a,y){Y(a);let d=Te(a,y),w=se(d.api,{resourceOutput:!0,promptSection:`resource_${y.namespace.name}_results`}),p=w.api;d.setApi(p);try{await ae(p);let _;await Z(p,{protocol:K,apiVersion:Q,id:"standalone-resource-boundary",setup(u){_=u,d.setRead(u),u.addResourceGuard({id:"standalone-resource-boundary",guard:n(h=>d.owns(h.resourceSource,!1)?{kind:"accepted"}:{kind:"rejected",reason:"Resource belongs outside this standalone host."},"guard")}),u.addHandler({stage:"post-read",handler:ne(k(p),u.read,h=>d.owns(h,!0))})}}),await ie(p);let E=await de(p);if(await E.registerPlugin({protocol:ee,apiVersion:te,id:"standalone-resource-boundary",setup(u){u.addMutationGuard({id:"standalone-resource-boundary",guard:n(h=>h.resources.every(T=>d.owns(T.source,!0)&&T.binary===void 0)?{kind:"accepted"}:{kind:"rejected",rejection:{code:"RESOURCE_HOST_BOUNDARY",reason:"Resource belongs outside this standalone host.",message:"Use this host only for its provider-owned text resources.",effect:"not-applied"}},"guard")})}}),await pe(p),await fe(p),await me(p),await le(p),!_)throw new Error("Standalone Read host did not initialize.");return await he(p,{recordType:`agent-documentation-read/${y.namespace.name}`,ownsTool:n(u=>typeof u=="string"&&d.tools.includes(u),"ownsTool")}),await ge(p,{preferences:{},toolName:n(u=>`${y.namespace.name}_${u}`,"toolName")}),ue(p,E),w.finalize(),{api:p,tools:d.tools,dispose:n(u=>d.dispose(u),"dispose")}}catch(_){throw await d.dispose(),_}}n(ve,"createStandaloneResourceHost");export{ve as createStandaloneResourceHost};
package/dist/entry-20.js CHANGED
@@ -1 +1 @@
1
- import{A as F,B as G,a as x,b as a,c as b,e as c,f as d,g,h,i,j,k,l,m as n,o as q,p as s,q as u,r as v,s as w,t as y,u as z,v as A,w as B,x as C,y as D,z as E}from"./chunk-4AEYLVSR.js";import{a as H}from"./chunk-47SPPIXK.js";import{a as o,b as r,c as e,d as f,e as m,f as p,g as t}from"./chunk-VAXLSPPU.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-EI7MMDWY.js";export{D as FuzzyVocabulary,r as SEARCH_API_VERSION,e as SEARCH_CORE_READY_EVENT,f as SEARCH_PLUGIN_REGISTER_EVENT,o as SEARCH_PROTOCOL,z as SearchCaptureGuard,y as SearchCaptureLimitError,s as SearchScopeChangedError,H as connectSearchPlugin,v as containsSearchMatch,u as currentScope,k as describePathArgument,G as formatFuzzyCandidate,F as fuzzyCandidateData,A as fuzzyLimits,C as isFuzzyQuery,B as isFuzzyResultData,g as isResultReference,m as isSearchCoreReady,p as isSearchPlugin,t as isSearchPluginRegistrationRequest,c as markNullFields,d as nullFieldsMessage,j as pathMachine,h as plainPathList,E as rankFuzzyIdentifiers,q as renderSearchMatches,l as searchCallPolicy,x as searchDataSchema,a as searchOutputSchema,n as searchSchema,b as selectionData,w as splitGlobList,i as uniquePaths};
1
+ import{A as F,B as G,a as x,b as a,c as b,e as c,f as d,g,h,i,j,k,l,m as n,o as q,p as s,q as u,r as v,s as w,t as y,u as z,v as A,w as B,x as C,y as D,z as E}from"./chunk-3JBQYLJ4.js";import{a as H}from"./chunk-47SPPIXK.js";import{a as o,b as r,c as e,d as f,e as m,f as p,g as t}from"./chunk-VAXLSPPU.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-EI7MMDWY.js";export{D as FuzzyVocabulary,r as SEARCH_API_VERSION,e as SEARCH_CORE_READY_EVENT,f as SEARCH_PLUGIN_REGISTER_EVENT,o as SEARCH_PROTOCOL,z as SearchCaptureGuard,y as SearchCaptureLimitError,s as SearchScopeChangedError,H as connectSearchPlugin,v as containsSearchMatch,u as currentScope,k as describePathArgument,G as formatFuzzyCandidate,F as fuzzyCandidateData,A as fuzzyLimits,C as isFuzzyQuery,B as isFuzzyResultData,g as isResultReference,m as isSearchCoreReady,p as isSearchPlugin,t as isSearchPluginRegistrationRequest,c as markNullFields,d as nullFieldsMessage,j as pathMachine,h as plainPathList,E as rankFuzzyIdentifiers,q as renderSearchMatches,l as searchCallPolicy,x as searchDataSchema,a as searchOutputSchema,n as searchSchema,b as selectionData,w as splitGlobList,i as uniquePaths};
package/dist/entry-38.js CHANGED
@@ -1,4 +1,4 @@
1
- import{a as nt,b as V,c as Z}from"./chunk-GNYFA6FS.js";import"./chunk-NNCZYO4Q.js";import{b as z}from"./chunk-LG22ELG4.js";import"./chunk-SKHD2QIT.js";import{b as Ze}from"./chunk-D23NS4VV.js";import{a as Me,b as $e,c as oe,e as Be,f as De,k as je,l as Fe,q as Ge,r as Ve,s as ie,t as He,u as Ue}from"./chunk-4AEYLVSR.js";import{a as We}from"./chunk-47SPPIXK.js";import{a as Ie,b as ke}from"./chunk-VAXLSPPU.js";import{f as Y,g as K}from"./chunk-JXULBI4S.js";import{f as qe,g as Qe}from"./chunk-KN6VPARZ.js";import{a as Ye}from"./chunk-2YO6RVX4.js";import{b as Je,c as Xe}from"./chunk-MLFJU2US.js";import{n as ve,o as Ne}from"./chunk-SJQGFUXR.js";import{d as Ce}from"./chunk-IZTOXSTR.js";import{a as Ke}from"./chunk-JY63UUC2.js";import{a as Le}from"./chunk-I3G6K7QU.js";import{a as Re,b as Te}from"./chunk-HSAGZWPO.js";import{e as X}from"./chunk-PS2B6THP.js";import{d as Oe,e as Pe,f as _e}from"./chunk-XEPCURYZ.js";import{G as ye,H as Se,I as J,ia as we,la as be,pa as xe,ta as Ae}from"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import{e as ze}from"./chunk-2EY3LEZ7.js";import{d as se,e as I,f as tt}from"./chunk-JKM4E5VB.js";import{b as et}from"./chunk-XQMNVPNS.js";import{i as Ee,s as re}from"./chunk-IRLWXPL4.js";import{a as _}from"./chunk-ZC65Z3CK.js";import"./chunk-KINKBPPX.js";import{a as l}from"./chunk-EI7MMDWY.js";function rt(n,e){function t(o){let i=JSON.stringify({path:e,offset:1,limit:100});throw new Error(`File exceeds the ${o} outline input limit. Outline paging limits output, not parsing. Use search on ${JSON.stringify(e)} to find declarations or call read with ${i} to inspect source lines.`)}l(t,"tooLarge"),n.length>1e5&&t("100,000-line");let r=Math.max(0,n.length-1);for(let o of n){if(o.includes("\0"))throw new Error("Binary resources cannot be read as AST outlines.");r+=Buffer.byteLength(o),r>4194304&&t("4 MiB")}}l(rt,"validateOutlineSnapshot");function ot(n,e,t){let{offset:r=1,limit:o=100}=t,i=n.renderedLines.length<=1?n.renderedLines:n.renderedLines.filter(m=>m.sourceLine!==void 0||m.text.trim()!=="");if(r>Math.max(1,i.length))throw new Error(`Outline offset ${r} is beyond the ${i.length} projected rows. Retry with offset: 1; outline offsets are not source line numbers.`);let s=[],a=r-1,u=0,c,p;for(;a<i.length&&s.length<o;a++){let m=i[a];if(m===void 0)break;let f=m.sourceLine?.lineNumber,g=Buffer.byteLength(m.text)+1,S=g<=12288?m:{text:f===void 0?`[Outline row ${a+1} exceeds the page byte limit and was omitted.]`:`[Outline row ${a+1} (source line ${f}) exceeds the page byte limit and was omitted. Use read to inspect the source.]`};if(u+=S===m?g:Buffer.byteLength(S.text)+1,u>12288)break;s.push(S),S===m&&f!==void 0&&(c??=f,p=f)}if(r===1&&a===n.renderedLines.length&&s.every((m,f)=>m===n.renderedLines[f]))return n;if(i.length===0)return{...n,renderedLines:[]};let d=a<i.length?a+1:void 0,h=`Outline rows ${r}-${a} of ${i.length}.`;return{...n,startLine:c??0,endLine:p??0,renderedLines:s,warning:d===void 0?h:`${h} Continue with outline(${JSON.stringify({path:e,offset:d,limit:o})}).`}}l(ot,"pageOutline");import N from"node:path";import{readdir as Ht}from"node:fs/promises";import Ut from"node:path";async function ae(n){let e=[],t=await Ht(n,{withFileTypes:!0});for(let r of t){let o=Ut.join(n,r.name);r.isDirectory()?e.push(...await ae(o)):(r.isFile()||r.isSymbolicLink())&&e.push(o)}return e}l(ae,"collectFiles");import{readFile as Wt}from"node:fs/promises";var it=256*1024;async function q(n){if(n.includes("://"))throw new Error("URI outlines require an owned text snapshot, not a local file read.");let e=await Wt(n);if(e.byteLength>it)throw new Error(`File exceeds the ${it}-byte AST outline limit: ${n}`);if(e.includes(0))throw new Error(`File appears to be binary and cannot be read as text: ${n}`);let t=e.toString("utf8"),r=t.endsWith(`
1
+ import{a as nt,b as V,c as Z}from"./chunk-GNYFA6FS.js";import"./chunk-NNCZYO4Q.js";import{b as z}from"./chunk-26SMC6OS.js";import"./chunk-QUK5ZEYX.js";import{b as Ze}from"./chunk-D23NS4VV.js";import{a as Me,b as $e,c as oe,e as Be,f as De,k as je,l as Fe,q as Ge,r as Ve,s as ie,t as He,u as Ue}from"./chunk-3JBQYLJ4.js";import{a as We}from"./chunk-47SPPIXK.js";import{a as Ie,b as ke}from"./chunk-VAXLSPPU.js";import{f as Y,g as K}from"./chunk-JXULBI4S.js";import{f as qe,g as Qe}from"./chunk-KN6VPARZ.js";import{a as Ye}from"./chunk-2YO6RVX4.js";import{b as Je,c as Xe}from"./chunk-MLFJU2US.js";import{n as ve,o as Ne}from"./chunk-SJQGFUXR.js";import{d as Ce}from"./chunk-IZTOXSTR.js";import{a as Ke}from"./chunk-JY63UUC2.js";import{a as Le}from"./chunk-I3G6K7QU.js";import{a as Re,b as Te}from"./chunk-HSAGZWPO.js";import{e as X}from"./chunk-PS2B6THP.js";import{d as Oe,e as Pe,f as _e}from"./chunk-XEPCURYZ.js";import{G as ye,H as Se,I as J,ia as we,la as be,pa as xe,ta as Ae}from"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import{e as ze}from"./chunk-2EY3LEZ7.js";import{d as se,e as I,f as tt}from"./chunk-JKM4E5VB.js";import{b as et}from"./chunk-XQMNVPNS.js";import{i as Ee,s as re}from"./chunk-IRLWXPL4.js";import{a as _}from"./chunk-ZC65Z3CK.js";import"./chunk-KINKBPPX.js";import{a as l}from"./chunk-EI7MMDWY.js";function rt(n,e){function t(o){let i=JSON.stringify({path:e,offset:1,limit:100});throw new Error(`File exceeds the ${o} outline input limit. Outline paging limits output, not parsing. Use search on ${JSON.stringify(e)} to find declarations or call read with ${i} to inspect source lines.`)}l(t,"tooLarge"),n.length>1e5&&t("100,000-line");let r=Math.max(0,n.length-1);for(let o of n){if(o.includes("\0"))throw new Error("Binary resources cannot be read as AST outlines.");r+=Buffer.byteLength(o),r>4194304&&t("4 MiB")}}l(rt,"validateOutlineSnapshot");function ot(n,e,t){let{offset:r=1,limit:o=100}=t,i=n.renderedLines.length<=1?n.renderedLines:n.renderedLines.filter(m=>m.sourceLine!==void 0||m.text.trim()!=="");if(r>Math.max(1,i.length))throw new Error(`Outline offset ${r} is beyond the ${i.length} projected rows. Retry with offset: 1; outline offsets are not source line numbers.`);let s=[],a=r-1,u=0,c,p;for(;a<i.length&&s.length<o;a++){let m=i[a];if(m===void 0)break;let f=m.sourceLine?.lineNumber,g=Buffer.byteLength(m.text)+1,S=g<=12288?m:{text:f===void 0?`[Outline row ${a+1} exceeds the page byte limit and was omitted.]`:`[Outline row ${a+1} (source line ${f}) exceeds the page byte limit and was omitted. Use read to inspect the source.]`};if(u+=S===m?g:Buffer.byteLength(S.text)+1,u>12288)break;s.push(S),S===m&&f!==void 0&&(c??=f,p=f)}if(r===1&&a===n.renderedLines.length&&s.every((m,f)=>m===n.renderedLines[f]))return n;if(i.length===0)return{...n,renderedLines:[]};let d=a<i.length?a+1:void 0,h=`Outline rows ${r}-${a} of ${i.length}.`;return{...n,startLine:c??0,endLine:p??0,renderedLines:s,warning:d===void 0?h:`${h} Continue with outline(${JSON.stringify({path:e,offset:d,limit:o})}).`}}l(ot,"pageOutline");import N from"node:path";import{readdir as Ht}from"node:fs/promises";import Ut from"node:path";async function ae(n){let e=[],t=await Ht(n,{withFileTypes:!0});for(let r of t){let o=Ut.join(n,r.name);r.isDirectory()?e.push(...await ae(o)):(r.isFile()||r.isSymbolicLink())&&e.push(o)}return e}l(ae,"collectFiles");import{readFile as Wt}from"node:fs/promises";var it=256*1024;async function q(n){if(n.includes("://"))throw new Error("URI outlines require an owned text snapshot, not a local file read.");let e=await Wt(n);if(e.byteLength>it)throw new Error(`File exceeds the ${it}-byte AST outline limit: ${n}`);if(e.includes(0))throw new Error(`File appears to be binary and cannot be read as text: ${n}`);let t=e.toString("utf8"),r=t.endsWith(`
2
2
  `)?t.slice(0,-1):t,o=r.length===0?[]:r.split(`
3
3
  `);return{content:t,lines:o}}l(q,"readTextFile");var Jt=new Set([...Object.keys(nt),".ts",".tsx",".mts",".cts",".js",".jsx",".mjs",".cjs",".py",".pyi",".rs",".c",".cc",".hh",".hxx",".cpp",".cxx",".h",".hpp",".json",".jsonc",".yaml",".yml",".toml"]),Xt=new Set([".json",".jsonc",".yaml",".yml",".toml"]),ut=new Set(["class_declaration","class_definition","class_specifier","enum_declaration","enum_definition","enum_item","enum_specifier","export_statement","function_declaration","function_definition","function_item","impl_item","interface_declaration","lexical_declaration","namespace_definition","mod_item","public_field_definition","method_definition","method_signature","property_signature","field_declaration","struct_item","struct_specifier","trait_item","type_alias_declaration","type_item","variable_declaration","assignment"]),Yt=new Set(["module","program","source_file"]),Kt=new Set(["import_declaration","import_from_statement","import_statement","use_declaration"]),st=new Set(["arrow_function","function_declaration","function_definition","function_item","function_expression","method_definition"]),zt=new Set(["public_field_definition","variable_declarator","assignment"]),de=new Set(["field_identifier","identifier","property_identifier","shorthand_property_identifier_pattern","type_identifier"]);function M(n){return Jt.has(N.extname(n).toLowerCase())}l(M,"isSupportedOutlinePath");var H={failureLabel:"PEEK_FAILED",emptyReason:"no entries to peek.",recovery:['Call peek with { peers: [{ path: "path/to/file.ts" }, ...] }.']},Zt={failureLabel:"AST_OUTLINE_FAILED",emptyReason:"no AST outline was produced."};function pt(n){return I([n],Zt)}l(pt,"formatAstOutline");var $=class{constructor(e=Number.POSITIVE_INFINITY){this.maxDepth=e}static{l(this,"AstOutlineManager")}fallbackScopeManager=new Z;async readFileOutline(e,t){let r=ce(e,t),o=r.includes("://")?r:N.relative(t,r)||r;if(!M(r))throw new Error(`AST outline is not supported for ${o}.`);let i=await q(r);return this.readDocumentOutline(r,t,i.lines)}async readDocumentOutline(e,t,r,o){let i=ce(e,t),s=i.includes("://")?i:N.relative(t,i)||i;if(!M(i))throw new Error(`AST outline is not supported for ${s}.`);return await V(i,t,r,async a=>{if(!a)throw new Error(`No AST parser is available for ${s}.`);if(Number.isFinite(this.maxDepth)&&a.rootNode.hasError)throw new Error(`Cannot build an automatic outline from invalid syntax in ${s}.`);let u=r.join(`
4
4
  `),c=N.extname(i).toLowerCase(),p=lt(a.rootNode,c,this.maxDepth),d=new Set(p.map(f=>f.depth)),h=this.prepareSourceView(a.rootNode,r),m;for(let f=this.maxDepth;;f-=1)if((m===void 0||d.has(f)||d.has(f+1))&&(m=this.createSourceViewBlock(a.rootNode,i,s,r,u,dt(p,f),h),o===void 0||o(m))||f<=0||!Number.isFinite(f))return m})}async formatFile(e,t){let r=ce(e,t),o=r.includes("://")?r:N.relative(t,r)||r;if(!M(r)){let i=await q(r);return I([qt(r,o,i.lines)],H)}try{return I([await this.readFileOutline(r,t)],H)}catch(i){let s=i instanceof Error?i.message:String(i);return I([at(o,s)],H)}}async formatSymbol(e,t){let o=(await ae(t)).filter(i=>M(i)).sort();for(let i of o){let s;try{s=await q(i)}catch{continue}let a,u={parsed:!1};try{a=await V(i,t,s.lines,async c=>{u.parsed=!0;let p=c&&en(c.rootNode,e);if(!p)return;let d=N.relative(t,i)||i;return this.createSourceViewBlock(p,i,d,s.lines,s.content,dt(lt(p,N.extname(i).toLowerCase(),this.maxDepth),this.maxDepth),this.prepareSourceView(c.rootNode,s.lines),e,[`defined in: ${d}:${p.startPosition.row+1}`])})}catch(c){if(u.parsed)throw c;continue}if(a)return I([a],H)}return I([at("",`symbol not found: ${e}`,"PEEK_NOT_FOUND")],H)}prepareSourceView(e,t){let r=re(t);return{markersByLine:Qt(this.fallbackScopeManager.getTreeScopes(e,r)),anchors:r}}createSourceViewBlock(e,t,r,o,i,s,{markersByLine:a,anchors:u},c,p){let h=rn(e,i,s).map(m=>{let f=m.sourceLine,g=f===void 0?void 0:o[f-1]??"",R=(f===void 0?void 0:a.get(f))?.map(O=>` <!-- ${O} -->`).join("")??"";return se({content:m.content,...!(f===void 0||g===void 0)&&{sourceLine:{source:t,lineNumber:f,content:g,...u[f-1]!==void 0&&{anchor:u[f-1]}}},...R.length>0&&{suffix:R}})});return{path:r,...c!==void 0&&{heading:c},...p!==void 0&&{details:p},startLine:e.startPosition.row+1,endLine:e.endPosition.row+1,totalLines:o.length,renderedLines:h}}};function qt(n,e,t){let r=re(t);return{path:e,startLine:t.length>0?1:0,endLine:t.length,totalLines:t.length,renderedLines:t.map((o,i)=>se({content:o,sourceLine:{source:n,lineNumber:i+1,content:o,anchor:_(r[i])}}))}}l(qt,"formatUnsupportedSourceBlock");function at(n,e,t="PEEK_FAILED"){return{path:n,startLine:0,endLine:0,totalLines:0,renderedLines:[],status:"failed",error:e,code:t}}l(at,"failedSourceViewBlock");function Qt(n){let e=new Map;for(let t of n){let r=e.get(t.startLine)??[];r.push(t.beginAnchor.value),e.set(t.startLine,r);let o=e.get(t.endLine)??[];o.push(t.endScopeAnchor.value),e.set(t.endLine,o)}return e}l(Qt,"buildScopeMarkers");function ce(n,e){return n.startsWith("ssh://")?n:n.startsWith("file://")?decodeURIComponent(n.slice(7)):N.isAbsolute(n)?n:N.resolve(e,n)}l(ce,"resolvePath");function en(n,e){let t,r=l(o=>{if(!t){if(ut.has(o.type)&&tn(o)===e){t=nn(o);return}for(let i of o.namedChildren)r(i)}},"visit");return r(n),t}l(en,"findSymbol");function tn(n){let e=n.childForFieldName("name");if(e&&de.has(e.type))return e.text;for(let t of n.namedChildren)if(de.has(t.type))return t.text;if(n.type==="lexical_declaration"||n.type==="variable_declaration")return n.namedChildren.find(o=>o.type==="variable_declarator")?.childForFieldName("name")?.text;if(n.type==="function_definition"){let t=n.childForFieldName("declarator");return t?ft(t):void 0}}l(tn,"getNodeName");function ft(n){if(de.has(n.type))return n.text;for(let e of n.namedChildren){let t=ft(e);if(t)return t}}l(ft,"findNestedName");function nn(n){let e=n.parent;return e&&(e.type==="export_statement"||e.type==="decorated_definition"||e.type==="template_declaration")?e:n}l(nn,"unwrapDeclaration");function rn(n,e,t){let r=on(e,n.startIndex),o=sn(e,n.endIndex),i=t.filter(d=>d.start>=r&&d.end<=o).sort((d,h)=>d.start-h.start),s=[[]],a=l((d,h)=>{let m=0;for(let f=0;;m+=1){let g=d.indexOf(`
package/dist/entry-44.js CHANGED
@@ -1 +1 @@
1
- import{a,b,c,d,e,f}from"./chunk-YSGPCH52.js";import"./chunk-PBMHSK6J.js";import"./chunk-OA26FH5G.js";import"./chunk-BXGMMZT3.js";import"./chunk-4AEYLVSR.js";import"./chunk-47SPPIXK.js";import"./chunk-VAXLSPPU.js";import"./chunk-BW3XONMZ.js";import"./chunk-GTZOIJCH.js";import"./chunk-JXULBI4S.js";import"./chunk-2YO6RVX4.js";import"./chunk-MLFJU2US.js";import"./chunk-JY63UUC2.js";import"./chunk-I3G6K7QU.js";import"./chunk-HSAGZWPO.js";import"./chunk-PS2B6THP.js";import"./chunk-XEPCURYZ.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-2EY3LEZ7.js";import"./chunk-YNOR4LIE.js";import"./chunk-JKM4E5VB.js";import"./chunk-XQMNVPNS.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import"./chunk-ZAWRSA7N.js";import"./chunk-OFILFO6D.js";import"./chunk-KINKBPPX.js";import"./chunk-EI7MMDWY.js";export{a as LSP_RECIPES,b as LspServerRegistry,e as default,c as filesContainingArguments,d as filesContainingOutput,f as registerLspWithOwner};
1
+ import{a,b,c,d,e,f}from"./chunk-UN3XLVPR.js";import"./chunk-PBMHSK6J.js";import"./chunk-OA26FH5G.js";import"./chunk-BXGMMZT3.js";import"./chunk-3JBQYLJ4.js";import"./chunk-47SPPIXK.js";import"./chunk-VAXLSPPU.js";import"./chunk-BW3XONMZ.js";import"./chunk-GTZOIJCH.js";import"./chunk-JXULBI4S.js";import"./chunk-2YO6RVX4.js";import"./chunk-MLFJU2US.js";import"./chunk-JY63UUC2.js";import"./chunk-I3G6K7QU.js";import"./chunk-HSAGZWPO.js";import"./chunk-PS2B6THP.js";import"./chunk-XEPCURYZ.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-2EY3LEZ7.js";import"./chunk-YNOR4LIE.js";import"./chunk-JKM4E5VB.js";import"./chunk-XQMNVPNS.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import"./chunk-ZAWRSA7N.js";import"./chunk-OFILFO6D.js";import"./chunk-KINKBPPX.js";import"./chunk-EI7MMDWY.js";export{a as LSP_RECIPES,b as LspServerRegistry,e as default,c as filesContainingArguments,d as filesContainingOutput,f as registerLspWithOwner};
package/dist/entry-57.js CHANGED
@@ -1 +1 @@
1
- import{A as y,B as z,a,b,c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"./chunk-4AEYLVSR.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-EI7MMDWY.js";export{w as FuzzyVocabulary,s as SearchCaptureGuard,r as SearchCaptureLimitError,n as SearchScopeChangedError,p as containsSearchMatch,o as currentScope,j as describePathArgument,z as formatFuzzyCandidate,y as fuzzyCandidateData,t as fuzzyLimits,v as isFuzzyQuery,u as isFuzzyResultData,f as isResultReference,d as markNullFields,e as nullFieldsMessage,i as pathMachine,g as plainPathList,x as rankFuzzyIdentifiers,m as renderSearchMatches,k as searchCallPolicy,a as searchDataSchema,b as searchOutputSchema,l as searchSchema,c as selectionData,q as splitGlobList,h as uniquePaths};
1
+ import{A as y,B as z,a,b,c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"./chunk-3JBQYLJ4.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-EI7MMDWY.js";export{w as FuzzyVocabulary,s as SearchCaptureGuard,r as SearchCaptureLimitError,n as SearchScopeChangedError,p as containsSearchMatch,o as currentScope,j as describePathArgument,z as formatFuzzyCandidate,y as fuzzyCandidateData,t as fuzzyLimits,v as isFuzzyQuery,u as isFuzzyResultData,f as isResultReference,d as markNullFields,e as nullFieldsMessage,i as pathMachine,g as plainPathList,x as rankFuzzyIdentifiers,m as renderSearchMatches,k as searchCallPolicy,a as searchDataSchema,b as searchOutputSchema,l as searchSchema,c as selectionData,q as splitGlobList,h as uniquePaths};
package/dist/entry-58.js CHANGED
@@ -1 +1 @@
1
- import{a as e}from"./chunk-HUICUICD.js";import"./chunk-4AEYLVSR.js";import"./chunk-VAXLSPPU.js";import"./chunk-JXULBI4S.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-EI7MMDWY.js";export{e as default};
1
+ import{a as e}from"./chunk-VWYI4WF7.js";import"./chunk-3JBQYLJ4.js";import"./chunk-VAXLSPPU.js";import"./chunk-JXULBI4S.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-EI7MMDWY.js";export{e as default};
package/dist/entry-59.js CHANGED
@@ -1 +1 @@
1
- import{a as b,b as c}from"./chunk-X4CU7CMR.js";import"./chunk-QC6VFZSB.js";import{i as a}from"./chunk-KJ6HZC6L.js";import"./chunk-SF44YQCB.js";import"./chunk-QR7JR3P2.js";import"./chunk-LG22ELG4.js";import"./chunk-SKHD2QIT.js";import"./chunk-D23NS4VV.js";import"./chunk-4AEYLVSR.js";import"./chunk-47SPPIXK.js";import"./chunk-VAXLSPPU.js";import"./chunk-JXULBI4S.js";import"./chunk-2YO6RVX4.js";import"./chunk-MLFJU2US.js";import"./chunk-JY63UUC2.js";import"./chunk-I3G6K7QU.js";import"./chunk-HSAGZWPO.js";import"./chunk-PS2B6THP.js";import"./chunk-XEPCURYZ.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-2EY3LEZ7.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as createSearchSessionId,b as default,c as registerResourceSearchSelections};
1
+ import{a as b,b as c}from"./chunk-C327T6YP.js";import"./chunk-3BRGWFEI.js";import{i as a}from"./chunk-VQ2RA43A.js";import"./chunk-SF44YQCB.js";import"./chunk-QR7JR3P2.js";import"./chunk-26SMC6OS.js";import"./chunk-QUK5ZEYX.js";import"./chunk-D23NS4VV.js";import"./chunk-3JBQYLJ4.js";import"./chunk-47SPPIXK.js";import"./chunk-VAXLSPPU.js";import"./chunk-JXULBI4S.js";import"./chunk-2YO6RVX4.js";import"./chunk-MLFJU2US.js";import"./chunk-JY63UUC2.js";import"./chunk-I3G6K7QU.js";import"./chunk-HSAGZWPO.js";import"./chunk-PS2B6THP.js";import"./chunk-XEPCURYZ.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-2EY3LEZ7.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as createSearchSessionId,b as default,c as registerResourceSearchSelections};
package/dist/entry-60.js CHANGED
@@ -1 +1 @@
1
- import{i as a,j as b,k as c,l as d,m as e,n as f,o as g,p as h,q as i}from"./chunk-KJ6HZC6L.js";import"./chunk-SF44YQCB.js";import"./chunk-QR7JR3P2.js";import"./chunk-SKHD2QIT.js";import"./chunk-4AEYLVSR.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{e as SearchRefreshError,f as SearchSessionStore,d as SearchSnapshotChangedError,c as allocateSearchSessionId,h as canonicalSource,i as compareMatches,a as createSearchSessionId,b as createSearchSessionIdentity,g as matchDescribesText};
1
+ import{i as a,j as b,k as c,l as d,m as e,n as f,o as g,p as h,q as i}from"./chunk-VQ2RA43A.js";import"./chunk-SF44YQCB.js";import"./chunk-QR7JR3P2.js";import"./chunk-QUK5ZEYX.js";import"./chunk-3JBQYLJ4.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{e as SearchRefreshError,f as SearchSessionStore,d as SearchSnapshotChangedError,c as allocateSearchSessionId,h as canonicalSource,i as compareMatches,a as createSearchSessionId,b as createSearchSessionIdentity,g as matchDescribesText};
package/dist/entry-61.js CHANGED
@@ -1 +1 @@
1
- import{b as a,c as b}from"./chunk-LG22ELG4.js";import"./chunk-SKHD2QIT.js";import"./chunk-4AEYLVSR.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-IRLWXPL4.js";import"./chunk-EI7MMDWY.js";export{b as SearchResultPanel,a as renderSearchResult};
1
+ import{b as a,c as b}from"./chunk-26SMC6OS.js";import"./chunk-QUK5ZEYX.js";import"./chunk-3JBQYLJ4.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-IRLWXPL4.js";import"./chunk-EI7MMDWY.js";export{b as SearchResultPanel,a as renderSearchResult};
package/dist/entry-62.js CHANGED
@@ -1 +1 @@
1
- import{c as a,d as b,e as c,f as d,g as e}from"./chunk-SKHD2QIT.js";import"./chunk-4AEYLVSR.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-EI7MMDWY.js";export{b as createFuzzyPresentation,a as createSearchToolDetails,d as displaySource,c as isSearchToolDetails,e as unreadableNotice};
1
+ import{c as a,d as b,e as c,f as d,g as e}from"./chunk-QUK5ZEYX.js";import"./chunk-3JBQYLJ4.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-EI7MMDWY.js";export{b as createFuzzyPresentation,a as createSearchToolDetails,d as displaySource,c as isSearchToolDetails,e as unreadableNotice};
package/dist/entry-94.js CHANGED
@@ -1 +1 @@
1
- import{b as a,c as b}from"./chunk-WZ7MNISG.js";import"./chunk-NNCZYO4Q.js";import"./chunk-4AEYLVSR.js";import"./chunk-47SPPIXK.js";import"./chunk-VAXLSPPU.js";import"./chunk-2YO6RVX4.js";import"./chunk-MLFJU2US.js";import"./chunk-IZTOXSTR.js";import"./chunk-I3G6K7QU.js";import"./chunk-HSAGZWPO.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-2EY3LEZ7.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default,b as registerWebWithOwner};
1
+ import{b as a,c as b}from"./chunk-KM4NOIOB.js";import"./chunk-NNCZYO4Q.js";import"./chunk-3JBQYLJ4.js";import"./chunk-47SPPIXK.js";import"./chunk-VAXLSPPU.js";import"./chunk-2YO6RVX4.js";import"./chunk-MLFJU2US.js";import"./chunk-IZTOXSTR.js";import"./chunk-I3G6K7QU.js";import"./chunk-HSAGZWPO.js";import"./chunk-PS2B6THP.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import"./chunk-2EY3LEZ7.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import"./chunk-EI7MMDWY.js";export{a as default,b as registerWebWithOwner};
@@ -1,4 +1,4 @@
1
- import{a as Me}from"./chunk-X7CHS7JB.js";import{a as $e,b as Fe}from"./chunk-OTVNO5SX.js";import{a as Oe,b as Ne}from"./chunk-LLP3EIJL.js";import{a as V,b as z,c as J,d as X,e as $,f as B}from"./chunk-XHFAV2NI.js";import"./chunk-JYITLCXC.js";import{a as xe}from"./chunk-DSB6A5P5.js";import{b as Ae}from"./chunk-XKVU6AAS.js";import{a as Ie}from"./chunk-E4V4VNRM.js";import{f as Q}from"./chunk-GDIF3WT6.js";import"./chunk-VNG4QPPT.js";import{a as Te}from"./chunk-YGGKGZO2.js";import"./chunk-VNNAVC4S.js";import"./chunk-6DC2Q5BI.js";import"./chunk-BW3XONMZ.js";import"./chunk-GTZOIJCH.js";import"./chunk-JXULBI4S.js";import"./chunk-MPT3R4BL.js";import{g as Se}from"./chunk-KN6VPARZ.js";import"./chunk-I3G6K7QU.js";import"./chunk-HSAGZWPO.js";import"./chunk-PS2B6THP.js";import"./chunk-XEPCURYZ.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import{a as re,b as Re,c as Pe}from"./chunk-TSQ6FBTB.js";import{a as Ce,b as _e,c as ke,f as ie,g as De}from"./chunk-YNOR4LIE.js";import{c as ve}from"./chunk-RQ7JJ7GV.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import{a as d}from"./chunk-EI7MMDWY.js";var se={"ide.core":["IDE services","Shared services used by language, formatting and diagnostic modules."],"ide.tips":["Getting started tips","Show contextual guidance while setting up a project."],"ide.documentation":["Progressive agent documentation","Expose packaged guides and attach them on first relevant tool use."],"ide.doctor":["Setup doctor","Check external tools and help configure project support."],"ide.languages":["Language setup","Discover languages and their recommended toolchains."],"ide.processes":["Agent IDE processes","Show active terminal and debugger sessions in one shared process surface."],"ide.debugger":["Debugger sessions","Debug local programs through addressable DAP sessions and anchored breakpoints."],"ide.terminal":["Terminal sessions","Run and manage local interactive and background terminal processes."],"read.core":["Read tools","Read sources through the configured readers and views."],"read.filesystem":["Local files","Resolve files and folders from the local filesystem."],"read.ssh":["SSH files","Read and edit configured SSH file sources through existing tools."],"read.filesystem.jq":["JSON queries","Query local JSON files through jq read views."],"read.filesystem.image":["Local images","Read local images as visual content."],"read.filesystem.pdf":["Local PDFs","Extract readable content from local PDF documents."],"read.filesystem.text":["Local text","Read local text files with their source coordinates."],"read.web":["Web sources","Read remote sources over HTTP and HTTPS."],"read.web.html":["Web pages","Extract readable content from HTML pages."],"read.web.image":["Web images","Read remote images as visual content."],"read.web.pdf":["Web PDFs","Extract text from remote PDF documents."],"read.web.text":["Web text","Read remote plain-text sources."],"search.core":["Search tools","Run searches through the configured search providers."],"search.text":["Text search","Find text and files and register reusable search selections."],"search.semantic":["Optional semantic search","Search indexed project code by meaning using the selected engine."],"editor.core":["Editing tools","Make guarded text and whole-file changes, directly or through native Codemode."],"editor.renderer":["Edit previews","Display changes in the shared colored diff panels."],"editor.anchor.constant":["File boundary selectors","Use begin and end to select file boundaries."],"editor.anchor.line-hash":["Line anchors","Select lines by content-derived anchors that stay valid while other lines change."],"editor.anchor.exact":["Exact text selectors","Locate edit ranges using unique source text."],"editor.stale-anchor":["Stale selection recovery","Provide recovery guidance when an edit selection is outdated."],"ide.ast":["Structural code support","Read code outlines and search or edit exact syntax-tree nodes."],"ide.formatter":["Code formatting","Run configured formatters after edits."],"ide.lint":["Lint checks","Run configured linters and collect their findings."],"ide.changes":["Git changes","Inspect and manage uncommitted changes and undo history."],"ide.lsp":["Language servers","Resolve symbols, rename references and collect language-server diagnostics."],"ide.diagnostics":["Diagnostic views","Show diagnostic findings through read views and sources."]};var M=[A("ide.core",()=>import("./chunk-AB6RSWMB.js")),A("ide.tips",()=>import("./chunk-7JWZPJI5.js")),A("ide.doctor",()=>import("./chunk-ZYG5E3DI.js")),A("ide.languages",()=>import("./entry-42.js"),["ide.doctor"]),A("read.core",()=>import("./entry-52.js")),A("ide.documentation",async()=>{let{default:e}=await import("./chunk-E6G3UVS7.js");return{default:d(t=>e(t),"default")}},["read.core"]),A("read.filesystem",()=>import("./entry-31.js"),["read.core","editor.core"]),A("read.ssh",()=>import("./chunk-MNAIMZRO.js"),["read.filesystem"]),A("read.filesystem.jq",()=>import("./entry-34.js"),["read.filesystem","ide.documentation","ide.doctor"]),A("read.filesystem.image",()=>import("./entry-32.js"),["read.filesystem"]),A("read.filesystem.pdf",()=>import("./entry-35.js"),["read.filesystem"]),A("read.filesystem.text",()=>import("./entry-36.js"),["read.filesystem"]),A("read.web",()=>import("./chunk-FVWMI4GP.js"),["read.core"]),A("read.web.html",()=>import("./entry-95.js"),["read.web"]),A("read.web.image",()=>import("./entry-96.js"),["read.web"]),A("read.web.pdf",()=>import("./entry-97.js"),["read.web"]),A("read.web.text",()=>import("./entry-98.js"),["read.web"]),A("search.core",()=>import("./entry-58.js")),A("search.semantic",()=>import("./chunk-NGWQRV25.js"),["search.core"]),A("search.text",()=>import("./entry-59.js"),["search.core"]),A("editor.renderer",()=>import("./entry-89.js"),["editor.core"]),A("editor.core",()=>import("./entry-88.js")),A("editor.anchor.constant",()=>import("./entry-64.js"),["read.core","editor.core"]),A("editor.anchor.line-hash",()=>import("./entry-68.js"),["read.core","editor.core"]),A("editor.anchor.exact",()=>import("./entry-66.js"),["editor.core"]),A("editor.stale-anchor",()=>import("./entry-90.js"),["editor.core"]),A("ide.ast",()=>import("./entry-38.js"),["ide.core","read.core","search.core","editor.core"]),A("ide.formatter",()=>import("./chunk-SKZTIAE4.js"),["ide.core"]),A("ide.lint",()=>import("./chunk-O2C3F3MA.js"),["ide.core"]),A("ide.changes",()=>import("./chunk-5TPYHUJV.js"),["ide.core","read.core","editor.core"]),A("ide.lsp",()=>import("./chunk-AKUBFJAR.js"),["ide.core","read.core","search.core"]),A("ide.processes",()=>import("./chunk-GT2JPOBM.js")),A("ide.debugger",()=>import("./chunk-45EJ4762.js"),["ide.processes","read.core","editor.core"]),A("ide.terminal",()=>import("./chunk-LRAMFOUP.js"),["ide.processes","read.core","search.core","editor.core","editor.anchor.constant"]),A("ide.diagnostics",()=>import("./chunk-NWCTAVGR.js"),["ide.core","read.core"])];function A(e,t,i=[],r=!0){return{id:e,name:se[e][0],description:se[e][1],dependencies:i,async register(n,s){await(await t()).default(n,s)},...r?{}:{defaultEnabled:!1}}}d(A,"builtin");function ee(e,t,i){return{kind:"choice",id:e,name:t,description:i,default:"compact",group:"ui",values:[{value:"full",label:"Full"},{value:"compact",label:"Compact"},{value:"disabled",label:"Disabled"}]}}d(ee,"presentationPreference");var te=[{kind:"choice",id:"search.semantic.engine",name:"Semantic search engine",description:"Choose the engine used by /semantic-index and semantic_search.",default:"colgrep",group:"features",values:[{value:"colgrep",label:"ColGREP"},{value:"vera",label:"Vera"}]},{kind:"choice",id:"ui.codemode",name:"Show tool results from Codemode",description:"Show extra Agent IDE result panels using each tool's presentation setting. Off hides successful panels; errors stay visible. Codemode's own output and other tools are unchanged.",default:"off",group:"ui",values:[{value:"off",label:"Off"},{value:"on",label:"On"}]},ee("ui.diffs","Diffs","Choose how mutation and comparison diffs are displayed."),ee("ui.read","Read","Choose how Read calls and results are displayed."),ee("ui.search","Search","Choose how Search calls and results are displayed."),ee("ui.terminal","Terminal","Choose how shell commands and terminal output are displayed."),{kind:"choice",id:"processes.activity",name:"Active Agent IDE processes",description:"Choose detailed process cards, a compact active count, or no persistent Agent IDE process UI.",default:"detailed",group:"ui",values:[{value:"detailed",label:"Detailed cards"},{value:"compact",label:"Compact count"},{value:"off",label:"Off"}]},{kind:"text",id:"lsp.idle-timeout",name:"Language server idle timeout",description:"Minutes without requests before a language server stops; the next request starts it again. Use a positive number.",default:"10",group:"features",placeholder:"10"}];function Y(e,t,i=[]){let r=new Map;for(let p of e){if(r.has(p.id))throw new Error(`Duplicate Pi Agent IDE extension ID: ${p.id}`);r.set(p.id,p)}for(let p of e)for(let v of p.dependencies)if(!r.has(v))throw new Error(`Pi Agent IDE extension ${p.id} has unknown dependency ${v}`);let n=new Set;for(let p of t)r.has(p)&&n.add(p);for(let p of i)if(!r.has(p))throw new Error(`Unknown Pi Agent IDE extension ID in enabled: ${p}`);let s=Tt(r,i,n),a=new Set;for(let p of e)(p.defaultEnabled===!1&&!s.has(p.id)||n.has(p.id))&&a.add(p.id);let f=!0;for(;f;){f=!1;for(let p of e)a.has(p.id)||p.dependencies.every(v=>!a.has(v))||(a.add(p.id),f=!0)}return{enabled:e.filter(p=>!a.has(p.id)),disabled:a}}d(Y,"selectBuiltinExtensions");function Tt(e,t,i){let r=new Set,n=[...t];for(;n.length>0;){let s=n.pop();if(!(r.has(s)||i.has(s))){r.add(s);for(let a of e.get(s)?.dependencies??[])r.has(a)||n.push(a)}}return r}d(Tt,"collectForcedOn");import{Input as Ft}from"@earendil-works/pi-tui";import{mkdir as St,readFile as At,writeFile as Rt}from"node:fs/promises";import Pt from"node:path";import{withFileMutationQueue as Ct}from"@earendil-works/pi-coding-agent";async function Le(e,t,i=new Map,r=new Map,n){await Ct(e,async()=>{let s=await B(e),a={};try{a=JSON.parse(await At(e,"utf8"))}catch(b){if(!(b instanceof Error&&"code"in b&&b.code==="ENOENT"))throw b}let f=new Set(s.disabled),p=new Set(s.enabled);for(let[b,g]of t)f.delete(b),p.delete(b),g==="disabled"&&f.add(b),g==="enabled"&&p.add(b);let v={...s.preferences};for(let[b,g]of r)g===void 0?delete v[b]:v[b]=g;let I={...s.flags};for(let[b,g]of i)b==="pi-agent-ide-no-animations"&&delete a.noAnimations,b==="pi-agent-ide-no-post-processing"&&delete a.noPostProcessing,g===void 0?delete I[b]:I[b]=g;n===null&&delete a.preset,await St(Pt.dirname(e),{recursive:!0}),await Rt(e,`${JSON.stringify({...a,disabled:[...f],enabled:[...p],...n==null?{}:{preset:n},...i.size>0?{flags:I}:{},...r.size>0?{preferences:v}:{}},null,2)}
1
+ import{a as Me}from"./chunk-X7CHS7JB.js";import{a as $e,b as Fe}from"./chunk-OTVNO5SX.js";import{a as Oe,b as Ne}from"./chunk-LLP3EIJL.js";import{a as V,b as z,c as J,d as X,e as $,f as B}from"./chunk-XHFAV2NI.js";import"./chunk-JYITLCXC.js";import{a as xe}from"./chunk-MCHU3BLO.js";import{b as Ae}from"./chunk-XKVU6AAS.js";import{a as Ie}from"./chunk-E4V4VNRM.js";import{f as Q}from"./chunk-GDIF3WT6.js";import"./chunk-VNG4QPPT.js";import{a as Te}from"./chunk-YGGKGZO2.js";import"./chunk-VNNAVC4S.js";import"./chunk-6DC2Q5BI.js";import"./chunk-BW3XONMZ.js";import"./chunk-GTZOIJCH.js";import"./chunk-JXULBI4S.js";import"./chunk-MPT3R4BL.js";import{g as Se}from"./chunk-KN6VPARZ.js";import"./chunk-I3G6K7QU.js";import"./chunk-HSAGZWPO.js";import"./chunk-PS2B6THP.js";import"./chunk-XEPCURYZ.js";import"./chunk-OEEE5BLN.js";import"./chunk-2QCE7GOV.js";import{a as re,b as Re,c as Pe}from"./chunk-TSQ6FBTB.js";import{a as Ce,b as _e,c as ke,f as ie,g as De}from"./chunk-YNOR4LIE.js";import{c as ve}from"./chunk-RQ7JJ7GV.js";import"./chunk-IRLWXPL4.js";import"./chunk-ZC65Z3CK.js";import{a as d}from"./chunk-EI7MMDWY.js";var se={"ide.core":["IDE services","Shared services used by language, formatting and diagnostic modules."],"ide.tips":["Getting started tips","Show contextual guidance while setting up a project."],"ide.documentation":["Progressive agent documentation","Expose packaged guides and attach them on first relevant tool use."],"ide.doctor":["Setup doctor","Check external tools and help configure project support."],"ide.languages":["Language setup","Discover languages and their recommended toolchains."],"ide.processes":["Agent IDE processes","Show active terminal and debugger sessions in one shared process surface."],"ide.debugger":["Debugger sessions","Debug local programs through addressable DAP sessions and anchored breakpoints."],"ide.terminal":["Terminal sessions","Run and manage local interactive and background terminal processes."],"read.core":["Read tools","Read sources through the configured readers and views."],"read.filesystem":["Local files","Resolve files and folders from the local filesystem."],"read.ssh":["SSH files","Read and edit configured SSH file sources through existing tools."],"read.filesystem.jq":["JSON queries","Query local JSON files through jq read views."],"read.filesystem.image":["Local images","Read local images as visual content."],"read.filesystem.pdf":["Local PDFs","Extract readable content from local PDF documents."],"read.filesystem.text":["Local text","Read local text files with their source coordinates."],"read.web":["Web sources","Read remote sources over HTTP and HTTPS."],"read.web.html":["Web pages","Extract readable content from HTML pages."],"read.web.image":["Web images","Read remote images as visual content."],"read.web.pdf":["Web PDFs","Extract text from remote PDF documents."],"read.web.text":["Web text","Read remote plain-text sources."],"search.core":["Search tools","Run searches through the configured search providers."],"search.text":["Text search","Find text and files and register reusable search selections."],"search.semantic":["Optional semantic search","Search indexed project code by meaning using the selected engine."],"editor.core":["Editing tools","Make guarded text and whole-file changes, directly or through native Codemode."],"editor.renderer":["Edit previews","Display changes in the shared colored diff panels."],"editor.anchor.constant":["File boundary selectors","Use begin and end to select file boundaries."],"editor.anchor.line-hash":["Line anchors","Select lines by content-derived anchors that stay valid while other lines change."],"editor.anchor.exact":["Exact text selectors","Locate edit ranges using unique source text."],"editor.stale-anchor":["Stale selection recovery","Provide recovery guidance when an edit selection is outdated."],"ide.ast":["Structural code support","Read code outlines and search or edit exact syntax-tree nodes."],"ide.formatter":["Code formatting","Run configured formatters after edits."],"ide.lint":["Lint checks","Run configured linters and collect their findings."],"ide.changes":["Git changes","Inspect and manage uncommitted changes and undo history."],"ide.lsp":["Language servers","Resolve symbols, rename references and collect language-server diagnostics."],"ide.diagnostics":["Diagnostic views","Show diagnostic findings through read views and sources."]};var M=[A("ide.core",()=>import("./chunk-AB6RSWMB.js")),A("ide.tips",()=>import("./chunk-7JWZPJI5.js")),A("ide.doctor",()=>import("./chunk-ZYG5E3DI.js")),A("ide.languages",()=>import("./entry-42.js"),["ide.doctor"]),A("read.core",()=>import("./entry-52.js")),A("ide.documentation",async()=>{let{default:e}=await import("./chunk-RYJEEBET.js");return{default:d(t=>e(t),"default")}},["read.core"]),A("read.filesystem",()=>import("./entry-31.js"),["read.core","editor.core"]),A("read.ssh",()=>import("./chunk-MNAIMZRO.js"),["read.filesystem"]),A("read.filesystem.jq",()=>import("./entry-34.js"),["read.filesystem","ide.documentation","ide.doctor"]),A("read.filesystem.image",()=>import("./entry-32.js"),["read.filesystem"]),A("read.filesystem.pdf",()=>import("./entry-35.js"),["read.filesystem"]),A("read.filesystem.text",()=>import("./entry-36.js"),["read.filesystem"]),A("read.web",()=>import("./chunk-7OAAM5FL.js"),["read.core"]),A("read.web.html",()=>import("./entry-95.js"),["read.web"]),A("read.web.image",()=>import("./entry-96.js"),["read.web"]),A("read.web.pdf",()=>import("./entry-97.js"),["read.web"]),A("read.web.text",()=>import("./entry-98.js"),["read.web"]),A("search.core",()=>import("./entry-58.js")),A("search.semantic",()=>import("./chunk-L2YDUMZC.js"),["search.core"]),A("search.text",()=>import("./entry-59.js"),["search.core"]),A("editor.renderer",()=>import("./entry-89.js"),["editor.core"]),A("editor.core",()=>import("./entry-88.js")),A("editor.anchor.constant",()=>import("./entry-64.js"),["read.core","editor.core"]),A("editor.anchor.line-hash",()=>import("./entry-68.js"),["read.core","editor.core"]),A("editor.anchor.exact",()=>import("./entry-66.js"),["editor.core"]),A("editor.stale-anchor",()=>import("./entry-90.js"),["editor.core"]),A("ide.ast",()=>import("./entry-38.js"),["ide.core","read.core","search.core","editor.core"]),A("ide.formatter",()=>import("./chunk-SKZTIAE4.js"),["ide.core"]),A("ide.lint",()=>import("./chunk-O2C3F3MA.js"),["ide.core"]),A("ide.changes",()=>import("./chunk-5TPYHUJV.js"),["ide.core","read.core","editor.core"]),A("ide.lsp",()=>import("./chunk-NSBRKTZ7.js"),["ide.core","read.core","search.core"]),A("ide.processes",()=>import("./chunk-GT2JPOBM.js")),A("ide.debugger",()=>import("./chunk-45EJ4762.js"),["ide.processes","read.core","editor.core"]),A("ide.terminal",()=>import("./chunk-3KM5DSWL.js"),["ide.processes","read.core","search.core","editor.core","editor.anchor.constant"]),A("ide.diagnostics",()=>import("./chunk-NWCTAVGR.js"),["ide.core","read.core"])];function A(e,t,i=[],r=!0){return{id:e,name:se[e][0],description:se[e][1],dependencies:i,async register(n,s){await(await t()).default(n,s)},...r?{}:{defaultEnabled:!1}}}d(A,"builtin");function ee(e,t,i){return{kind:"choice",id:e,name:t,description:i,default:"compact",group:"ui",values:[{value:"full",label:"Full"},{value:"compact",label:"Compact"},{value:"disabled",label:"Disabled"}]}}d(ee,"presentationPreference");var te=[{kind:"choice",id:"search.semantic.engine",name:"Semantic search engine",description:"Choose the engine used by /semantic-index and semantic_search.",default:"colgrep",group:"features",values:[{value:"colgrep",label:"ColGREP"},{value:"vera",label:"Vera"}]},{kind:"choice",id:"ui.codemode",name:"Show tool results from Codemode",description:"Show extra Agent IDE result panels using each tool's presentation setting. Off hides successful panels; errors stay visible. Codemode's own output and other tools are unchanged.",default:"off",group:"ui",values:[{value:"off",label:"Off"},{value:"on",label:"On"}]},ee("ui.diffs","Diffs","Choose how mutation and comparison diffs are displayed."),ee("ui.read","Read","Choose how Read calls and results are displayed."),ee("ui.search","Search","Choose how Search calls and results are displayed."),ee("ui.terminal","Terminal","Choose how shell commands and terminal output are displayed."),{kind:"choice",id:"processes.activity",name:"Active Agent IDE processes",description:"Choose detailed process cards, a compact active count, or no persistent Agent IDE process UI.",default:"detailed",group:"ui",values:[{value:"detailed",label:"Detailed cards"},{value:"compact",label:"Compact count"},{value:"off",label:"Off"}]},{kind:"text",id:"lsp.idle-timeout",name:"Language server idle timeout",description:"Minutes without requests before a language server stops; the next request starts it again. Use a positive number.",default:"10",group:"features",placeholder:"10"}];function Y(e,t,i=[]){let r=new Map;for(let p of e){if(r.has(p.id))throw new Error(`Duplicate Pi Agent IDE extension ID: ${p.id}`);r.set(p.id,p)}for(let p of e)for(let v of p.dependencies)if(!r.has(v))throw new Error(`Pi Agent IDE extension ${p.id} has unknown dependency ${v}`);let n=new Set;for(let p of t)r.has(p)&&n.add(p);for(let p of i)if(!r.has(p))throw new Error(`Unknown Pi Agent IDE extension ID in enabled: ${p}`);let s=Tt(r,i,n),a=new Set;for(let p of e)(p.defaultEnabled===!1&&!s.has(p.id)||n.has(p.id))&&a.add(p.id);let f=!0;for(;f;){f=!1;for(let p of e)a.has(p.id)||p.dependencies.every(v=>!a.has(v))||(a.add(p.id),f=!0)}return{enabled:e.filter(p=>!a.has(p.id)),disabled:a}}d(Y,"selectBuiltinExtensions");function Tt(e,t,i){let r=new Set,n=[...t];for(;n.length>0;){let s=n.pop();if(!(r.has(s)||i.has(s))){r.add(s);for(let a of e.get(s)?.dependencies??[])r.has(a)||n.push(a)}}return r}d(Tt,"collectForcedOn");import{Input as Ft}from"@earendil-works/pi-tui";import{mkdir as St,readFile as At,writeFile as Rt}from"node:fs/promises";import Pt from"node:path";import{withFileMutationQueue as Ct}from"@earendil-works/pi-coding-agent";async function Le(e,t,i=new Map,r=new Map,n){await Ct(e,async()=>{let s=await B(e),a={};try{a=JSON.parse(await At(e,"utf8"))}catch(b){if(!(b instanceof Error&&"code"in b&&b.code==="ENOENT"))throw b}let f=new Set(s.disabled),p=new Set(s.enabled);for(let[b,g]of t)f.delete(b),p.delete(b),g==="disabled"&&f.add(b),g==="enabled"&&p.add(b);let v={...s.preferences};for(let[b,g]of r)g===void 0?delete v[b]:v[b]=g;let I={...s.flags};for(let[b,g]of i)b==="pi-agent-ide-no-animations"&&delete a.noAnimations,b==="pi-agent-ide-no-post-processing"&&delete a.noPostProcessing,g===void 0?delete I[b]:I[b]=g;n===null&&delete a.preset,await St(Pt.dirname(e),{recursive:!0}),await Rt(e,`${JSON.stringify({...a,disabled:[...f],enabled:[...p],...n==null?{}:{preset:n},...i.size>0?{flags:I}:{},...r.size>0?{preferences:v}:{}},null,2)}
2
2
  `)})}d(Le,"saveModuleChoices");import{getSettingsListTheme as _t}from"@earendil-works/pi-coding-agent";import{matchesKey as ne,SettingsList as kt,truncateToWidth as je,visibleWidth as ae}from"@earendil-works/pi-tui";var Dt=12,Ot=3,Nt=18,Be=[" Tab switch \xB7 Enter change \xB7 Ctrl+S save \xB7 Esc exit "," Tab \xB7 Enter \xB7 Ctrl+S save \xB7 Esc "," Ctrl+S save "];function Ge(e,t,i,r,n="",s=()=>Number.POSITIVE_INFINITY){let a=["extensions","behavior","ui"],f="extensions",p=d(o=>o==="extensions"?"modules":o==="behavior"?"features":"ui","itemKey"),v=d(o=>o==="extensions"?"modules":o==="behavior"?"features":"ui","changeKey"),I=d(()=>Math.max(Ot,Math.min(Dt,s()-Nt)),"visibleEntries"),b=d(()=>{let o=p(f),c=t()[o]??[];return new kt(c,I(),_t(),(u,h)=>{i(v(f),u,h);for(let y of t()[o]??[]){let T=c.find(w=>w.id===y.id);T&&Object.assign(T,y)}},()=>r(!1),{enableSearch:!0})},"createList"),g=b(),m=d(o=>e.fg("borderMuted",o),"border"),S=d((o,c)=>{if(c<=1)return m("\u2502");let u=c-2,h=je(o,u);return`${m("\u2502")}${h}${" ".repeat(Math.max(0,u-ae(h)))}${m("\u2502")}`},"row"),l=d(o=>m(o<=1?"\u251C":`\u251C${"\u2500".repeat(Math.max(0,o-2))}\u2524`),"rule");return{render(o){let c=Math.max(1,o),u=Math.max(1,c-4),h=` Agent IDE settings${n?` \xB7 ${n}`:""} `,y=c<=1?m("\u256D"):`${m("\u256D\u2500")}${e.fg("accent",e.bold(je(h,Math.max(0,c-3),"")))}${m(`${"\u2500".repeat(Math.max(0,c-ae(h)-3))}\u256E`)}`,T={extensions:"Features",behavior:"Behavior",ui:"UI"},w=a.map(P=>P===f?e.fg("accent",e.bold(`[ ${T[P]} ]`)):e.fg("dim",` ${T[P]} `)).join(" "),R=g.render(u).map(P=>S(` ${P} `,c)),E=Be.find(P=>ae(P)<=c-2)??Be[2],_=e.fg("dim",E);return[y,S(` ${w} `,c),l(c),...R,l(c),S(_,c),m(c<=1?"\u2570":`\u2570${"\u2500".repeat(Math.max(0,c-2))}\u256F`)]},invalidate(){g.invalidate()},handleInput(o){ne(o,"tab")||ne(o,"shift+tab")?(f=a[(a.indexOf(f)+(ne(o,"shift+tab")?2:1))%a.length]??"extensions",g=b()):ne(o,"ctrl+s")?r(!0):g.handleInput(o)}}}d(Ge,"createSettingsPanel");var Mt=new Set(["pi-agent-ide-yolo","pi-agent-ide-filesystem-yolo","pi-agent-ide-no-post-processing","pi-agent-ide-no-animations","pi-agent-ide-code-review","pi-agent-ide-code-review-capture"]),$t=new Set(["search.semantic.engine","ui.codemode","ui.diffs","ui.read","ui.search","ui.terminal","processes.activity"]);function de(e){return!Mt.has(e)}d(de,"flagRequiresReload");function le(e){return!$t.has(e)}d(le,"preferenceRequiresReload");function ce(e,t,i,r,n,s=new Set){let a=d(g=>Y(i,[...z(i,g.preset??"full"),...g.disabled],g.enabled).disabled,"selected"),f=a(e),p=a(t),v=i.filter(g=>f.has(g.id)!==p.has(g.id)).map(g=>g.name??g.id),I=$(e),b=$(t);for(let g of r)de(g.id)&&!s.has(g.id)&&(I[g.id]??g.default)!==(b[g.id]??g.default)&&v.push(g.name);for(let g of n)le(g.id)&&(e.preferences?.[g.id]??g.default)!==(t.preferences?.[g.id]??g.default)&&v.push(g.name);return v}d(ce,"pendingReloadChanges");function Ue(e,t=[],i=[],r){let n=r;e.registerCommand("agent-ide-settings",{description:"Configure Agent IDE modules and features",async handler(s,a){if(a.hasUI)try{let f=await a.ui.select("Agent IDE settings \u2014 save scope",["Project","Global"]);if(f===void 0)return;let p=J(process.env,void 0,a.cwd),v=await X(p);n??=v;let I=new Set(t.filter(R=>process.argv.some(E=>E===`--${R.id}`||E.startsWith(`--${R.id}=`))).map(R=>R.id)),b=new Set(ce(n,v,M,t,i,I)),g=f==="Project"?p.projectPath:p.globalPath,m=await B(g),S=await B(f==="Project"?p.globalPath:p.projectPath),l=new Map,o=new Map,c=new Map,u,h=await a.ui.custom((R,E,_,P)=>{let F=Ge(E,()=>{let O=new Set(m.disabled),k=new Set(m.enabled);for(let[C,x]of l)O.delete(C),k.delete(C),x==="disabled"&&O.add(C),x==="enabled"&&k.add(C);let N=Y(M,[...z(M,f==="Project"?(u===void 0?m.preset:u)??S.preset??"full":S.preset??(u===void 0?m.preset:u)??"full"),...O,...S.disabled],[...k,...S.enabled]);return{modules:M.map(C=>({id:C.id,label:`${C.name??C.id}${b.has(C.name??C.id)?" *":""}`,description:`${C.description??""} Reload required for changes. Effective: ${N.disabled.has(C.id)?"off":"on"}.${S.disabled.includes(C.id)?" Disabled in the other scope.":C.dependencies.some(x=>N.disabled.has(x))?" A dependency is disabled.":""}`,currentValue:l.get(C.id)??(m.disabled.includes(C.id)?"disabled":m.enabled.includes(C.id)?"enabled":"default"),values:["default","enabled","disabled"]})),features:[D(),...W("features"),...L("features")],ui:[...W("ui"),...L("ui")]};function D(){let C=u===void 0?m.preset:u;return{id:"preset",label:"Preset",description:"Choose the built-in Agent IDE capability set. Reload required.",currentValue:V.find(x=>x.value===C)?.label??"default",values:["default",...V.map(x=>x.label)]}}function L(C){return i.filter(x=>x.group===C).map(x=>{let q=c.has(x.id)?c.get(x.id):m.preferences?.[x.id];return{id:x.id,label:`${x.name}${b.has(x.name)?" *":""}`,description:`${x.description}${le(x.id)?" Reload required for changes.":""} Default: ${x.kind==="choice"?x.values.find(j=>j.value===x.default)?.label??x.default:x.default||"empty"}.`,currentValue:q===void 0?"default":x.kind==="choice"?x.values.find(j=>j.value===q)?.label??q:q,...x.kind==="choice"?{values:["default",...x.values.map(j=>j.label)]}:{submenu:d((j,we)=>{let H=new Ft,Ee=j==="default"?x.default:j;return Ee.length>0&&H.handleInput(Ee),H.focused=!0,H.onSubmit=It=>we(It),H.onEscape=()=>we(),H},"submenu")}}})}function W(C){return t.filter(x=>(x.group??"features")===C).map(x=>{let q=o.has(x.id)?o.get(x.id):$(m)[x.id];return{id:x.id,label:`${x.name}${b.has(x.name)?" *":""}`,description:`${x.description}${de(x.id)?" Reload required for changes.":""}`,currentValue:q===void 0?"default":q?x.labels?.on??"enabled":x.labels?.off??"disabled",values:["default",x.labels?.off??"disabled",x.labels?.on??"enabled"]}})}},(O,k,N)=>{if(O==="modules"){let D=m.disabled.includes(k)?"disabled":m.enabled.includes(k)?"enabled":"default";N===D?l.delete(k):l.set(k,N)}else if(k==="preset"){let D=V.find(L=>L.label===N)?.value??null;u=D===(m.preset??null)?void 0:D}else if(i.some(D=>D.id===k)){let D=i.find(W=>W.id===k),L=N==="default"||N.length===0?void 0:D?.kind==="choice"?D.values.find(W=>W.label===N)?.value:N;L===m.preferences?.[k]?c.delete(k):c.set(k,L)}else{let D=N==="default"?void 0:N===(t.find(L=>L.id===k)?.labels?.on??"enabled");D===$(m)[k]?o.delete(k):o.set(k,D)}},P,`${f}${b.size?" \xB7 * reload pending":""}`,()=>R.terminal.rows);return{render:d(O=>F.render(O),"render"),invalidate:d(()=>F.invalidate(),"invalidate"),handleInput(O){F.handleInput(O),R.requestRender()}}});if(l.size+o.size+c.size+(u===void 0?0:1)===0||!h&&!await a.ui.confirm("Unsaved changes","Save changes?"))return;await Le(g,l,o,c,u);let y=await X(p);for(let R of i){let E=y.preferences?.[R.id];if(E!==void 0&&R.kind==="choice"&&!R.values.some(_=>_.value===E))throw new Error(`Saved settings contain an invalid choice: ${R.id}`)}e.events?.emit($e,{preferences:y.preferences??{}}),e.events?.emit(Oe,{flags:$(y)});let T=[];e.events?.emit(Me,{cwd:a.cwd,waitUntil:d(R=>T.push(R),"waitUntil")}),await Promise.all(T);let w=ce(n,y,M,t,i,I);if(a.ui.setStatus("pi-agent-ide-reload",w.length?`Reload required (${w.length}; see settings)`:void 0),w.length===0){a.ui.notify(`Saved ${f.toLowerCase()} Agent IDE settings.`,"info");return}a.ui.notify(`Saved ${f.toLowerCase()} Agent IDE settings. Reload required: ${w.join(", ")}.`,"info"),await a.ui.confirm("Reload Pi?","Reload extensions to apply pending settings. In-memory extension state may reset.")&&await a.reload()}catch(f){a.ui.notify(f instanceof Error?f.message:String(f),"error")}}})}d(Ue,"registerModuleSettings");import{readFile as Lt}from"node:fs/promises";import ue from"node:path";import{getMarkdownTheme as jt}from"@earendil-works/pi-coding-agent";import{Markdown as Bt,matchesKey as G,ScrollView as Gt,truncateToWidth as Ut}from"@earendil-works/pi-tui";function qt(){return Lt(ue.join(ue.dirname(ue.dirname(import.meta.dirname)),"docs/settings-help.md"),"utf8")}d(qt,"readSettingsHelp");function qe(e){e.registerCommand("agent-ide-help",{description:"Read the short Agent IDE settings guide",async handler(t,i){if(!(i.mode!=="tui"||!i.hasUI))try{let r=await qt();await i.ui.custom((n,s,a,f)=>new fe(r,s,()=>Math.max(5,Math.min(36,n.terminal.rows-4)),()=>n.requestRender(),f),{overlay:!0,overlayOptions:{width:92,margin:1}})}catch(r){i.ui.notify(r instanceof Error?r.message:String(r),"error")}}})}d(qe,"registerSettingsHelp");var fe=class{constructor(t,i,r,n,s){this.content=t;this.theme=i;this.height=r;this.requestRender=n;this.done=s;this.markdown=this.createMarkdown(),this.scroll=new Gt(this.markdown)}static{d(this,"SettingsHelpPanel")}markdown;scroll;createMarkdown(){return new Bt(this.content,0,0,jt(),{color:d(t=>this.theme.fg("text",t),"color")})}invalidate(){this.markdown.invalidate()}handleInput(t){if(G(t,"escape")){this.done();return}G(t,"up")?this.scroll.scrollBy(-1):G(t,"down")?this.scroll.scrollBy(1):G(t,"pageUp")?this.scroll.scrollBy(-this.scroll.viewportHeight):G(t,"pageDown")||G(t,"space")?this.scroll.scrollBy(this.scroll.viewportHeight):G(t,"home")?this.scroll.scrollToStart():G(t,"end")&&this.scroll.scrollToEnd()}render(t){let i=Math.max(1,t-4),r=this.markdown.render(i),n=Math.max(1,this.height()-4);this.scroll.updateLayout(r.length,n,this.requestRender);let s=r.slice(this.scroll.scrollTop,this.scroll.scrollTop+n);for(;s.length<n;)s.push("");let a=this.theme.fg("border","\u2500".repeat(Math.max(0,t-2))),f=d(p=>this.theme.fg("border","\u2502 ")+Ut(p,i,"\u2026",!0)+this.theme.fg("border"," \u2502"),"row");return[this.theme.fg("border","\u256D")+a+this.theme.fg("border","\u256E"),f(this.theme.fg("accent","Agent IDE settings help")),...s.map(f),f(this.theme.fg("muted","\u2191\u2193 scroll \xB7 PgUp/PgDn page \xB7 Home/End \xB7 Esc close")),this.theme.fg("border","\u2570")+a+this.theme.fg("border","\u256F")]}};function We(e,t){let i=[];return{definitions:i,register(r){if(i.some(n=>n.id===r.id))throw new Error(`Duplicate feature flag: ${r.id}`);i.push(r),e.registerFlag(r.id,{type:"boolean",description:r.description,default:t[r.id]??r.default})}}}d(We,"createFeatureFlags");function Ve(e,t=te){return{id:"ide-settings",description:"IDE settings and their scopes",triggers:[{tool:"read",resourcePrefixes:["docs:ide-settings"]}],get markdown(){let i={preferences:t,flags:e,modules:M.map(({id:n,name:s,description:a,defaultEnabled:f,dependencies:p})=>({id:n,name:s,description:a,default:f!==!1,dependencies:p})),presets:V};return`# IDE settings
3
3
 
4
4
  This catalog describes supported settings, not current saved values or live runtime state. It is generated from the registrations used by /agent-ide-settings. Read both configuration scopes to inspect overrides. The settings menu applies live settings on save and marks pending reload-only settings with an asterisk. Module selection, diagnostic buffering, developer mode and unknown external settings require reload; effective changes masked by other scopes, dependencies or CLI flags do not. Reverting pending changes clears the indicator. Built-in CLI flags can override saved defaults for an invocation.
package/docs/nightly.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  The public repository runs the normal CI suite on a pinned `develop` commit around midnight in Berlin. GitHub Actions cron uses UTC, so `.github/workflows/nightly.yml` runs at both 22:00 and 23:00 UTC. Only the run that falls in Berlin's midnight hour continues. GitHub may delay scheduled runs; if it starts after that hour, it is skipped. Use **Run workflow** to retry a missed night.
4
4
 
5
+ GitHub starts scheduled runs from the workflow file on the default branch. `develop` is the default branch, so a change to this workflow takes effect on the next night after it merges to `develop`; it does not wait for a release.
6
+
5
7
  Successful runs retain an installable `nightly-package` archive for 30 days. Unit and integration test reports are retained as `test-results` for 30 days, including failed runs when reports are available. Download the archive from the workflow run and install that exact `.tgz` in a disposable Pi environment to try the build. Nightlies are not published to npm and do not change `latest`.
6
8
 
7
- The nightly runner pins the `develop` commit before calling the same CI workflow used for regular changes. Its package is scanned and smoke-installed. A failed run is the regression report; inspect its job logs and test artifacts. This workflow is active only after a public `develop` branch and this workflow have been merged into the public repository.
9
+ The nightly runner pins the `develop` commit before calling the same CI workflow used for regular changes. Its package is scanned and smoke-installed. A failed run is the regression report; inspect its job logs and test artifacts.
10
+
11
+ A failed nightly opens a `Develop nightly is failing` issue labeled `nightly`, with the run link and the failed jobs. While that issue is open, each failed night adds a comment; the next passing nightly closes it. The workflow's `report` job does this with the run's own token. The owner also gets an email for every failed run and for a night with no nightly build at all; the GitHub intake receiver in agent-infrastructure sends both.
12
+
13
+ To test this path, run the workflow manually with **simulate_failure** checked. The run fails before building anything and opens a separate `Develop nightly is failing (simulated test)` issue; close it by hand afterwards.
package/docs/releases.md CHANGED
@@ -30,7 +30,7 @@ The required `Validate` check and commit-range security scan still run on reused
30
30
 
31
31
  Choose a release cut by its full commit SHA. If that commit is not yet on main, promote it through a separate pinned branch such as `chore/promote-X.Y.Z`, not a PR whose head is the moving `develop` branch. Keep that promotion head unchanged while CI runs. New develop merges do not join the release unless its scope is explicitly changed. After promotion and main-to-develop synchronization succeed, start the versioned release below. See `.pi/skills/publish-pi-agent-ide/SKILL.md` for the agent runbook.
32
32
 
33
- Run **Start release** on `main` with an unused `X.Y.Z` and finished release notes. The workflow checks that no other release branch or registry version exists, creates `release/X.Y.Z` with the version and changelog update, and opens a PR to `main`. The App needs Contents and Pull requests write access to this public repository. Configure `RELEASE_APP_ID` and `RELEASE_APP_PRIVATE_KEY` as Actions secrets; never commit the key. A release branch is the freeze marker. The `Validate` check is required on PRs to `main`; it rejects `develop` while a release branch exists. It admits only the matching release PR or a `fix/release-*` PR labeled `release-fix`. Review the fix itself: a label is not proof that a change is a fix.
33
+ Run **Start release** on `main` with an unused `X.Y.Z` and finished release notes. The repository's default branch is `develop`, so choose `main` in **Run workflow** for this and the other release workflows; they refuse to run from any other branch. The workflow checks that no other release branch or registry version exists, creates `release/X.Y.Z` with the version and changelog update, and opens a PR to `main`. The App needs Contents and Pull requests write access to this public repository. Configure `RELEASE_APP_ID` and `RELEASE_APP_PRIVATE_KEY` as Actions secrets; never commit the key. A release branch is the freeze marker. The `Validate` check is required on PRs to `main`; it rejects `develop` while a release branch exists. It admits only the matching release PR or a `fix/release-*` PR labeled `release-fix`. Review the fix itself: a label is not proof that a change is a fix.
34
34
  Only a branch named exactly `release/X.Y.Z` is an active release marker; older `release/v*` and `release/official-*` branches do not block a new release. Remove merged or abandoned release branches when no open PR, running workflow, or worktree still needs them. Delete with an expected-head lease and keep all release tags. Active release branches stay until publication and synchronization, or confirmed cancellation, finish.
35
35
 
36
36
  During the freeze, fix defects in `main` through a labeled fix PR. Rebase `release/X.Y.Z` onto the updated `main` using `--force-with-lease` and wait for the release PR's new CI run. A changed base, head or archive requires fresh candidate evidence. Do not merge features into `main` while a release is active.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-doctor",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-documentation",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "types": "./src/index.ts",
6
6
  "exports": {
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-image": "1.0.0",
10
- "pi-agent-invariant": "1.0.0",
11
- "pi-agent-read": "1.0.0",
12
- "pi-agent-resource": "1.0.0",
13
- "pi-agent-text": "1.0.0",
14
- "pi-agent-text-editor": "1.0.0"
9
+ "pi-agent-image": "1.0.1",
10
+ "pi-agent-invariant": "1.0.1",
11
+ "pi-agent-read": "1.0.1",
12
+ "pi-agent-resource": "1.0.1",
13
+ "pi-agent-text": "1.0.1",
14
+ "pi-agent-text-editor": "1.0.1"
15
15
  },
16
16
  "pi": {
17
17
  "extensions": [
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem-image",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#extension": "./index.ts"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-image": "1.0.0",
10
- "pi-agent-resource": "1.0.0"
9
+ "pi-agent-image": "1.0.1",
10
+ "pi-agent-resource": "1.0.1"
11
11
  },
12
12
  "pi": {
13
13
  "extensions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem-jq",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -12,10 +12,10 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "pi-agent-doctor": "1.0.0",
16
- "pi-agent-documentation": "1.0.0",
17
- "pi-agent-read": "1.0.0",
18
- "pi-agent-text": "1.0.0"
15
+ "pi-agent-doctor": "1.0.1",
16
+ "pi-agent-documentation": "1.0.1",
17
+ "pi-agent-read": "1.0.1",
18
+ "pi-agent-text": "1.0.1"
19
19
  },
20
20
  "pi": {
21
21
  "extensions": [
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem-pdf",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-pdf": "1.0.0",
7
- "pi-agent-resource": "1.0.0"
6
+ "pi-agent-pdf": "1.0.1",
7
+ "pi-agent-resource": "1.0.1"
8
8
  },
9
9
  "pi": {
10
10
  "extensions": [
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem-text",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#extension": "./index.ts"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-resource": "1.0.0",
10
- "pi-agent-text": "1.0.0"
9
+ "pi-agent-resource": "1.0.1",
10
+ "pi-agent-text": "1.0.1"
11
11
  },
12
12
  "pi": {
13
13
  "extensions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-ide-ast",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -12,17 +12,17 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "pi-agent-doctor": "1.0.0",
16
- "pi-agent-documentation": "1.0.0",
17
- "pi-agent-invariant": "1.0.0",
18
- "pi-agent-read": "1.0.0",
19
- "pi-agent-resource": "1.0.0",
20
- "pi-agent-search": "1.0.0",
21
- "pi-agent-search-text": "1.0.0",
22
- "pi-agent-text": "1.0.0",
23
- "pi-agent-text-editor": "1.0.0",
24
- "pi-agent-tool-call-interception": "1.0.0",
25
- "pi-agent-tool-ui": "1.0.0"
15
+ "pi-agent-doctor": "1.0.1",
16
+ "pi-agent-documentation": "1.0.1",
17
+ "pi-agent-invariant": "1.0.1",
18
+ "pi-agent-read": "1.0.1",
19
+ "pi-agent-resource": "1.0.1",
20
+ "pi-agent-search": "1.0.1",
21
+ "pi-agent-search-text": "1.0.1",
22
+ "pi-agent-text": "1.0.1",
23
+ "pi-agent-text-editor": "1.0.1",
24
+ "pi-agent-tool-call-interception": "1.0.1",
25
+ "pi-agent-tool-ui": "1.0.1"
26
26
  },
27
27
  "pi": {
28
28
  "extensions": [
@@ -32,7 +32,7 @@
32
32
  "peerDependencies": {
33
33
  "@earendil-works/pi-coding-agent": "*",
34
34
  "@earendil-works/pi-tui": "*",
35
- "pi-agent-ide": "1.0.0",
35
+ "pi-agent-ide": "1.0.1",
36
36
  "typebox": "*"
37
37
  },
38
38
  "peerDependenciesMeta": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-ide-changes",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -12,13 +12,13 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "pi-agent-doctor": "1.0.0",
16
- "pi-agent-documentation": "1.0.0",
17
- "pi-agent-invariant": "1.0.0",
18
- "pi-agent-read": "1.0.0",
19
- "pi-agent-resource": "1.0.0",
20
- "pi-agent-text": "1.0.0",
21
- "pi-agent-text-editor": "1.0.0"
15
+ "pi-agent-doctor": "1.0.1",
16
+ "pi-agent-documentation": "1.0.1",
17
+ "pi-agent-invariant": "1.0.1",
18
+ "pi-agent-read": "1.0.1",
19
+ "pi-agent-resource": "1.0.1",
20
+ "pi-agent-text": "1.0.1",
21
+ "pi-agent-text-editor": "1.0.1"
22
22
  },
23
23
  "pi": {
24
24
  "extensions": [
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "pi-agent-ide-formatter",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-doctor": "1.0.0"
6
+ "pi-agent-doctor": "1.0.1"
7
7
  },
8
8
  "pi": {
9
9
  "extensions": [
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "peerDependencies": {
14
14
  "@earendil-works/pi-coding-agent": "*",
15
- "pi-agent-ide": "1.0.0"
15
+ "pi-agent-ide": "1.0.1"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "pi-agent-ide": {
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "pi-agent-ide-languages",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-doctor": "1.0.0"
6
+ "pi-agent-doctor": "1.0.1"
7
7
  },
8
8
  "pi": {
9
9
  "extensions": [
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pi-agent-ide-lint",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-doctor": "1.0.0",
7
- "pi-agent-invariant": "1.0.0",
8
- "pi-agent-read": "1.0.0",
9
- "pi-agent-resource": "1.0.0",
10
- "pi-agent-text": "1.0.0"
6
+ "pi-agent-doctor": "1.0.1",
7
+ "pi-agent-invariant": "1.0.1",
8
+ "pi-agent-read": "1.0.1",
9
+ "pi-agent-resource": "1.0.1",
10
+ "pi-agent-text": "1.0.1"
11
11
  },
12
12
  "pi": {
13
13
  "extensions": [
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "peerDependencies": {
18
18
  "@earendil-works/pi-coding-agent": "*",
19
- "pi-agent-ide": "1.0.0"
19
+ "pi-agent-ide": "1.0.1"
20
20
  },
21
21
  "peerDependenciesMeta": {
22
22
  "pi-agent-ide": {