@iaforged/context-code 2.1.3 → 2.1.5

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.
@@ -1 +1 @@
1
- import{jsx as e,jsxs as o}from"react/jsx-runtime";import{c as t}from"react/compiler-runtime";import{Box as n,Text as r,useTheme as i}from"../../../ink.js";import{FallbackPermissionRequest as s}from"../FallbackPermissionRequest.js";import{FilePermissionDialog as l}from"../FilePermissionDialog/FilePermissionDialog.js";export function FilesystemPermissionRequest(a){const c=t(30),{toolUseConfirm:m,onDone:u,onReject:p,verbose:f,toolUseContext:d,workerBadge:g}=a,[h]=i();let j;c[0]!==m?(j=function(e){const o=e.tool;if("getPath"in o&&"function"==typeof o.getPath)try{return o.getPath(e.input)}catch{return null}return null}(m),c[0]=m,c[1]=j):j=c[1];const x=j;let y;c[2]!==m.input||c[3]!==m.tool?(y=m.tool.userFacingName(m.input),c[2]=m.input,c[3]=m.tool,c[4]=y):y=c[4];const P=y,R=isReadOnly?"Leer archivo":"Editar archivo",U=_temp;if(!x){let o;return c[5]!==u||c[6]!==p||c[7]!==m||c[8]!==d||c[9]!==f||c[10]!==g?(o=e(s,{toolUseConfirm:m,toolUseContext:d,onDone:u,onReject:p,verbose:f,workerBadge:g}),c[5]=u,c[6]=p,c[7]=m,c[8]=d,c[9]=f,c[10]=g,c[11]=o):o=c[11],o}let C,D;c[12]!==h||c[13]!==m.input||c[14]!==m.tool||c[15]!==f?(C=m.tool.renderToolUseMessage(m.input,{theme:h,verbose:f}),c[12]=h,c[13]=m.input,c[14]=m.tool,c[15]=f,c[16]=C):C=c[16],c[17]!==C||c[18]!==P?(D=e(n,{flexDirection:"column",paddingX:2,paddingY:1,children:o(r,{children:[P,"(",C,")"]})}),c[17]=C,c[18]=P,c[19]=D):D=c[19];const k=D,v=isReadOnly?"read":"write";let F;return c[20]!==k||c[21]!==u||c[22]!==p||c[23]!==x||c[24]!==v||c[25]!==R||c[26]!==m||c[27]!==d||c[28]!==g?(F=e(l,{toolUseConfirm:m,toolUseContext:d,onDone:u,onReject:p,workerBadge:g,title:R,content:k,path:x,parseInput:U,operationType:v,completionType:"tool_use_single"}),c[20]=k,c[21]=u,c[22]=p,c[23]=x,c[24]=v,c[25]=R,c[26]=m,c[27]=d,c[28]=g,c[29]=F):F=c[29],F}function _temp(e){return e}
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import{c as t}from"react/compiler-runtime";import{Box as n,Text as r,useTheme as i}from"../../../ink.js";import{FallbackPermissionRequest as s}from"../FallbackPermissionRequest.js";import{FilePermissionDialog as l}from"../FilePermissionDialog/FilePermissionDialog.js";export function FilesystemPermissionRequest(a){const c=t(30),{toolUseConfirm:u,onDone:m,onReject:p,verbose:f,toolUseContext:d,workerBadge:g}=a,[h]=i();let j;c[0]!==u?(j=function(e){const o=e.tool;if("getPath"in o&&"function"==typeof o.getPath)try{return o.getPath(e.input)}catch{return null}return null}(u),c[0]=u,c[1]=j):j=c[1];const x=j;let P;c[2]!==u.input||c[3]!==u.tool?(P=u.tool.userFacingName(u.input),c[2]=u.input,c[3]=u.tool,c[4]=P):P=c[4];const U=P,y=u.tool.isReadOnly(u.input),C=y?"Leer archivo":"Editar archivo",D=_temp;if(!x){let o;return c[5]!==m||c[6]!==p||c[7]!==u||c[8]!==d||c[9]!==f||c[10]!==g?(o=e(s,{toolUseConfirm:u,toolUseContext:d,onDone:m,onReject:p,verbose:f,workerBadge:g}),c[5]=m,c[6]=p,c[7]=u,c[8]=d,c[9]=f,c[10]=g,c[11]=o):o=c[11],o}let R,k;c[12]!==h||c[13]!==u.input||c[14]!==u.tool||c[15]!==f?(R=u.tool.renderToolUseMessage(u.input,{theme:h,verbose:f}),c[12]=h,c[13]=u.input,c[14]=u.tool,c[15]=f,c[16]=R):R=c[16],c[17]!==R||c[18]!==U?(k=e(n,{flexDirection:"column",paddingX:2,paddingY:1,children:o(r,{children:[U,"(",R,")"]})}),c[17]=R,c[18]=U,c[19]=k):k=c[19];const v=k,F=y?"read":"write";let b;return c[20]!==v||c[21]!==m||c[22]!==p||c[23]!==x||c[24]!==F||c[25]!==C||c[26]!==u||c[27]!==d||c[28]!==g?(b=e(l,{toolUseConfirm:u,toolUseContext:d,onDone:m,onReject:p,workerBadge:g,title:C,content:v,path:x,parseInput:D,operationType:F,completionType:"tool_use_single"}),c[20]=v,c[21]=m,c[22]=p,c[23]=x,c[24]=F,c[25]=C,c[26]=u,c[27]=d,c[28]=g,c[29]=b):b=c[29],b}function _temp(e){return e}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iaforged/context-code",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "Context Code es un asistente de desarrollo para la terminal. Puede revisar tu proyecto, editar archivos, ejecutar comandos y apoyarte en tareas reales de programacion.",
5
5
  "author": "Context AI",
6
6
  "license": "MIT",