@anthropic-ai/claude-agent-sdk 0.3.196 → 0.3.197

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.
package/browser-sdk.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://code.claude.com/docs/en/legal-and-compliance.
2
2
 
3
- // Version: 0.3.196
3
+ // Version: 0.3.197
4
4
  var Z8=Object.create;var{getPrototypeOf:K8,defineProperty:fa,getOwnPropertyNames:S_,getOwnPropertyDescriptor:V8}=Object,x_=Object.prototype.hasOwnProperty;function k_(e){return this[e]}var W8,G8,M_=(e,t,r)=>{var i=e!=null&&typeof e==="object";if(i){var n=t?W8??=new WeakMap:G8??=new WeakMap,o=n.get(e);if(o)return o}r=e!=null?Z8(K8(e)):{};let s=t||!e||!e.__esModule?fa(r,"default",{value:e,enumerable:!0}):r;for(let h of S_(e))if(!x_.call(s,h))fa(s,h,{get:k_.bind(e,h),enumerable:!0});if(i)n.set(e,s);return s},xt=(e)=>{var t=(w_??=new WeakMap).get(e),r;if(t)return t;if(t=fa({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var i of S_(e))if(!x_.call(t,i))fa(t,i,{get:k_.bind(e,i),enumerable:!(r=V8(e,i))||r.enumerable})}return w_.set(e,t),t},w_,Je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var J8=(e)=>e;function X8(e,t){this[e]=J8.bind(null,t)}var vn=(e,t)=>{for(var r in t)fa(e,r,{get:t[r],enumerable:!0,configurable:!0,set:X8.bind(t,r)})};var ha=(e,t)=>()=>(e&&(t=e(e=0)),t);var $i=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Y8=Symbol.dispose||Symbol.for("Symbol.dispose"),Q8=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),Bt=(e,t,r)=>{if(t!=null){if(typeof t!=="object"&&typeof t!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var i;if(r)i=t[Q8];if(i===void 0)i=t[Y8];if(typeof i!=="function")throw TypeError("Object not disposable");e.push([r,i,t])}else if(r)e.push([r]);return t},Ht=(e,t,r)=>{var i=typeof SuppressedError==="function"?SuppressedError:function(s,h,b,v){return v=Error(b),v.name="SuppressedError",v.error=s,v.suppressed=h,v},n=(s)=>t=r?new i(s,t,"An error was suppressed during disposal"):(r=!0,s),o=(s)=>{while(s=e.pop())try{var h=s[1]&&s[1].call(s[2]);if(s[0])return Promise.resolve(h).then(o,(b)=>(n(b),o()))}catch(b){n(b)}if(r)throw t};return o()};var Er={};vn(Er,{transcode:()=>G$,resolveObjectURL:()=>K$,kStringMaxLength:()=>h1,kMaxLength:()=>ga,isUtf8:()=>V$,isAscii:()=>W$,default:()=>J$,constants:()=>_$,btoa:()=>g$,atob:()=>y$,INSPECT_MAX_BYTES:()=>f1,File:()=>v$,Buffer:()=>fe,Blob:()=>b$});function d$(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");if(r===-1)r=t;var i=r===t?0:4-r%4;return[r,i]}function f$(e,t){return(e+t)*3/4-t}function h$(e){var t,r=d$(e),i=r[0],n=r[1],o=new Uint8Array(f$(i,n)),s=0,h=n>0?i-4:i,b;for(b=0;b<h;b+=4)t=_n[e.charCodeAt(b)]<<18|_n[e.charCodeAt(b+1)]<<12|_n[e.charCodeAt(b+2)]<<6|_n[e.charCodeAt(b+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;if(n===2)t=_n[e.charCodeAt(b)]<<2|_n[e.charCodeAt(b+1)]>>4,o[s++]=t&255;if(n===1)t=_n[e.charCodeAt(b)]<<10|_n[e.charCodeAt(b+1)]<<4|_n[e.charCodeAt(b+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255;return o}function p$(e){return Vn[e>>18&63]+Vn[e>>12&63]+Vn[e>>6&63]+Vn[e&63]}function m$(e,t,r){var i,n=[];for(var o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(p$(i));return n.join("")}function s1(e){var t,r=e.length,i=r%3,n=[],o=16383;for(var s=0,h=r-i;s<h;s+=o)n.push(m$(e,s,s+o>h?h:s+o));if(i===1)t=e[r-1],n.push(Vn[t>>2]+Vn[t<<4&63]+"==");else if(i===2)t=(e[r-2]<<8)+e[r-1],n.push(Vn[t>>10]+Vn[t>>4&63]+Vn[t<<2&63]+"=");return n.join("")}function Mc(e,t,r,i,n){var o,s,h=n*8-i-1,b=(1<<h)-1,v=b>>1,_=-7,g=r?n-1:0,S=r?-1:1,x=e[t+g];g+=S,o=x&(1<<-_)-1,x>>=-_,_+=h;for(;_>0;o=o*256+e[t+g],g+=S,_-=8);s=o&(1<<-_)-1,o>>=-_,_+=i;for(;_>0;s=s*256+e[t+g],g+=S,_-=8);if(o===0)o=1-v;else if(o===b)return s?NaN:(x?-1:1)*(1/0);else s=s+Math.pow(2,i),o=o-v;return(x?-1:1)*s*Math.pow(2,o-i)}function d1(e,t,r,i,n,o){var s,h,b,v=o*8-n-1,_=(1<<v)-1,g=_>>1,S=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=i?0:o-1,M=i?1:-1,$=t<0||t===0&&1/t<0?1:0;if(t=Math.abs(t),isNaN(t)||t===1/0)h=isNaN(t)?1:0,s=_;else{if(s=Math.floor(Math.log(t)/Math.LN2),t*(b=Math.pow(2,-s))<1)s--,b*=2;if(s+g>=1)t+=S/b;else t+=S*Math.pow(2,1-g);if(t*b>=2)s++,b/=2;if(s+g>=_)h=0,s=_;else if(s+g>=1)h=(t*b-1)*Math.pow(2,n),s=s+g;else h=t*Math.pow(2,g-1)*Math.pow(2,n),s=0}for(;n>=8;e[r+x]=h&255,x+=M,h/=256,n-=8);s=s<<n|h,v+=n;for(;v>0;e[r+x]=s&255,x+=M,s/=256,v-=8);e[r+x-M]|=$*128}function ni(e){if(e>ga)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,fe.prototype),t}function om(e,t,r){return class extends r{constructor(){super();Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function fe(e,t,r){if(typeof e==="number"){if(typeof t==="string")throw TypeError('The "string" argument must be of type string. Received type number');return sm(e)}return p1(e,t,r)}function p1(e,t,r){if(typeof e==="string")return k$(e,t);if(ArrayBuffer.isView(e))return M$(e);if(e==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Wn(e,ArrayBuffer)||e&&Wn(e.buffer,ArrayBuffer))return nm(e,t,r);if(typeof SharedArrayBuffer<"u"&&(Wn(e,SharedArrayBuffer)||e&&Wn(e.buffer,SharedArrayBuffer)))return nm(e,t,r);if(typeof e==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return fe.from(i,t,r);let n=E$(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==="function")return fe.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function m1(e){if(typeof e!=="number")throw TypeError('"size" argument must be of type number');else if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function x$(e,t,r){if(m1(e),e<=0)return ni(e);if(t!==void 0)return typeof r==="string"?ni(e).fill(t,r):ni(e).fill(t);return ni(e)}function sm(e){return m1(e),ni(e<0?0:am(e)|0)}function k$(e,t){if(typeof t!=="string"||t==="")t="utf8";if(!fe.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=g1(e,t)|0,i=ni(r),n=i.write(e,t);if(n!==r)i=i.slice(0,n);return i}function rm(e){let t=e.length<0?0:am(e.length)|0,r=ni(t);for(let i=0;i<t;i+=1)r[i]=e[i]&255;return r}function M$(e){if(Wn(e,Uint8Array)){let t=new Uint8Array(e);return nm(t.buffer,t.byteOffset,t.byteLength)}return rm(e)}function nm(e,t,r){if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');let i;if(t===void 0&&r===void 0)i=new Uint8Array(e);else if(r===void 0)i=new Uint8Array(e,t);else i=new Uint8Array(e,t,r);return Object.setPrototypeOf(i,fe.prototype),i}function E$(e){if(fe.isBuffer(e)){let t=am(e.length)|0,r=ni(t);if(r.length===0)return r;return e.copy(r,0,0,t),r}if(e.length!==void 0){if(typeof e.length!=="number"||Number.isNaN(e.length))return ni(0);return rm(e)}if(e.type==="Buffer"&&Array.isArray(e.data))return rm(e.data)}function am(e){if(e>=ga)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ga.toString(16)+" bytes");return e|0}function g1(e,t){if(fe.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Wn(e,ArrayBuffer))return e.byteLength;if(typeof e!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return im(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return M1(e).length;default:if(n)return i?-1:im(e).length;t=(""+t).toLowerCase(),n=!0}}function $$(e,t,r){let i=!1;if(t===void 0||t<0)t=0;if(t>this.length)return"";if(r===void 0||r>this.length)r=this.length;if(r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";if(!e)e="utf8";while(!0)switch(e){case"hex":return z$(this,t,r);case"utf8":case"utf-8":return v1(this,t,r);case"ascii":return D$(this,t,r);case"latin1":case"binary":return N$(this,t,r);case"base64":return C$(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j$(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function lo(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function y1(e,t,r,i,n){if(e.length===0)return-1;if(typeof r==="string")i=r,r=0;else if(r>2147483647)r=2147483647;else if(r<-2147483648)r=-2147483648;if(r=+r,Number.isNaN(r))r=n?0:e.length-1;if(r<0)r=e.length+r;if(r>=e.length)if(n)return-1;else r=e.length-1;else if(r<0)if(n)r=0;else return-1;if(typeof t==="string")t=fe.from(t,i);if(fe.isBuffer(t)){if(t.length===0)return-1;return u1(e,t,r,i,n)}else if(typeof t==="number"){if(t=t&255,typeof Uint8Array.prototype.indexOf==="function")if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return u1(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function u1(e,t,r,i,n){let o=1,s=e.length,h=t.length;if(i!==void 0){if(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le"){if(e.length<2||t.length<2)return-1;o=2,s/=2,h/=2,r/=2}}function b(_,g){if(o===1)return _[g];else return _.readUInt16BE(g*o)}let v;if(n){let _=-1;for(v=r;v<s;v++)if(b(e,v)===b(t,_===-1?0:v-_)){if(_===-1)_=v;if(v-_+1===h)return _*o}else{if(_!==-1)v-=v-_;_=-1}}else{if(r+h>s)r=s-h;for(v=r;v>=0;v--){let _=!0;for(let g=0;g<h;g++)if(b(e,v+g)!==b(t,g)){_=!1;break}if(_)return v}}return-1}function I$(e,t,r,i){r=Number(r)||0;let n=e.length-r;if(!i)i=n;else if(i=Number(i),i>n)i=n;let o=t.length;if(i>o/2)i=o/2;let s;for(s=0;s<i;++s){let h=parseInt(t.substr(s*2,2),16);if(Number.isNaN(h))return s;e[r+s]=h}return s}function P$(e,t,r,i){return Ec(im(t,e.length-r),e,r,i)}function T$(e,t,r,i){return Ec(F$(t),e,r,i)}function A$(e,t,r,i){return Ec(M1(t),e,r,i)}function R$(e,t,r,i){return Ec(B$(t,e.length-r),e,r,i)}function C$(e,t,r){if(t===0&&r===e.length)return s1(e);else return s1(e.slice(t,r))}function v1(e,t,r){r=Math.min(e.length,r);let i=[],n=t;while(n<r){let o=e[n],s=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=r){let b,v,_,g;switch(h){case 1:if(o<128)s=o;break;case 2:if(b=e[n+1],(b&192)===128){if(g=(o&31)<<6|b&63,g>127)s=g}break;case 3:if(b=e[n+1],v=e[n+2],(b&192)===128&&(v&192)===128){if(g=(o&15)<<12|(b&63)<<6|v&63,g>2047&&(g<55296||g>57343))s=g}break;case 4:if(b=e[n+1],v=e[n+2],_=e[n+3],(b&192)===128&&(v&192)===128&&(_&192)===128){if(g=(o&15)<<18|(b&63)<<12|(v&63)<<6|_&63,g>65535&&g<1114112)s=g}}}if(s===null)s=65533,h=1;else if(s>65535)s-=65536,i.push(s>>>10&1023|55296),s=56320|s&1023;i.push(s),n+=h}return O$(i)}function O$(e){let t=e.length;if(t<=l1)return String.fromCharCode.apply(String,e);let r="",i=0;while(i<t)r+=String.fromCharCode.apply(String,e.slice(i,i+=l1));return r}function D$(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]&127);return i}function N$(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function z$(e,t,r){let i=e.length;if(!t||t<0)t=0;if(!r||r<0||r>i)r=i;let n="";for(let o=t;o<r;++o)n+=H$[e[o]];return n}function j$(e,t,r){let i=e.slice(t,r),n="";for(let o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}function Mr(e,t,r){if(e%1!==0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function Jr(e,t,r,i,n,o){if(!fe.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function b1(e,t,r,i,n){k1(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function _1(e,t,r,i,n){k1(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o=o>>8,e[r+6]=o,o=o>>8,e[r+5]=o,o=o>>8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}function w1(e,t,r,i,n,o){if(r+i>e.length)throw RangeError("Index out of range");if(r<0)throw RangeError("Index out of range")}function S1(e,t,r,i,n){if(t=+t,r=r>>>0,!n)w1(e,t,r,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return d1(e,t,r,i,23,4),r+4}function x1(e,t,r,i,n){if(t=+t,r=r>>>0,!n)w1(e,t,r,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return d1(e,t,r,i,52,8),r+8}function c1(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U$(e,t,r){if(ts(t,"offset"),e[t]===void 0||e[t+r]===void 0)ya(t,e.length-(r+1))}function k1(e,t,r,i,n,o){if(e>r||e<t){let s=typeof t==="bigint"?"n":"",h;if(o>3)if(t===0||t===BigInt(0))h=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`;else h=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`;else h=`>= ${t}${s} and <= ${r}${s}`;throw new tm("value",h,e)}U$(i,n,o)}function ts(e,t){if(typeof e!=="number")throw new S$(t,"number",e)}function ya(e,t,r){if(Math.floor(e)!==e)throw ts(e,r),new tm(r||"offset","an integer",e);if(t<0)throw new w$;throw new tm(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}function q$(e){if(e=e.split("=")[0],e=e.trim().replace(L$,""),e.length<2)return"";while(e.length%4!==0)e=e+"=";return e}function im(e,t){t=t||1/0;let r,i=e.length,n=null,o=[];for(let s=0;s<i;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!n){if(r>56319){if((t-=3)>-1)o.push(239,191,189);continue}else if(s+1===i){if((t-=3)>-1)o.push(239,191,189);continue}n=r;continue}if(r<56320){if((t-=3)>-1)o.push(239,191,189);n=r;continue}r=(n-55296<<10|r-56320)+65536}else if(n){if((t-=3)>-1)o.push(239,191,189)}if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw Error("Invalid code point")}return o}function F$(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function B$(e,t){let r,i,n,o=[];for(let s=0;s<e.length;++s){if((t-=2)<0)break;r=e.charCodeAt(s),i=r>>8,n=r%256,o.push(n),o.push(i)}return o}function M1(e){return h$(q$(e))}function Ec(e,t,r,i){let n;for(n=0;n<i;++n){if(n+r>=t.length||n>=e.length)break;t[n+r]=e[n]}return n}function Wn(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Ti(e){return typeof BigInt>"u"?Z$:e}function Z$(){throw Error("BigInt not supported")}function um(e){return()=>{throw Error(e+" is not implemented for node:buffer browser polyfill")}}var Vn,_n,em="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uo,o1,a1,f1=50,ga=2147483647,h1=536870888,g$,y$,v$,b$,_$,w$,S$,tm,l1=4096,L$,H$,K$,V$,W$=(e)=>{for(let t of e)if(t.charCodeAt(0)>127)return!1;return!0},G$,J$;var $r=ha(()=>{Vn=[],_n=[];for(uo=0,o1=em.length;uo<o1;++uo)Vn[uo]=em[uo],_n[em.charCodeAt(uo)]=uo;_n[45]=62;_n[95]=63;a1=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,g$=globalThis.btoa,y$=globalThis.atob,v$=globalThis.File,b$=globalThis.Blob,_$={MAX_LENGTH:ga,MAX_STRING_LENGTH:h1};w$=om("ERR_BUFFER_OUT_OF_BOUNDS",function(e){if(e)return`${e} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),S$=om("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),tm=om("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;if(Number.isInteger(r)&&Math.abs(r)>4294967296)n=c1(String(r));else if(typeof r==="bigint"){if(n=String(r),r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))n=c1(n);n+="n"}return i+=` It must be ${t}. Received ${n}`,i},RangeError);Object.defineProperty(fe.prototype,"parent",{enumerable:!0,get:function(){if(!fe.isBuffer(this))return;return this.buffer}});Object.defineProperty(fe.prototype,"offset",{enumerable:!0,get:function(){if(!fe.isBuffer(this))return;return this.byteOffset}});fe.poolSize=8192;fe.from=function(e,t,r){return p1(e,t,r)};Object.setPrototypeOf(fe.prototype,Uint8Array.prototype);Object.setPrototypeOf(fe,Uint8Array);fe.alloc=function(e,t,r){return x$(e,t,r)};fe.allocUnsafe=function(e){return sm(e)};fe.allocUnsafeSlow=function(e){return sm(e)};fe.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==fe.prototype};fe.compare=function(e,t){if(Wn(e,Uint8Array))e=fe.from(e,e.offset,e.byteLength);if(Wn(t,Uint8Array))t=fe.from(t,t.offset,t.byteLength);if(!fe.isBuffer(e)||!fe.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,i=t.length;for(let n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}if(r<i)return-1;if(i<r)return 1;return 0};fe.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};fe.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return fe.alloc(0);let r;if(t===void 0){t=0;for(r=0;r<e.length;++r)t+=e[r].length}let i=fe.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){let o=e[r];if(Wn(o,Uint8Array))if(n+o.length>i.length){if(!fe.isBuffer(o))o=fe.from(o);o.copy(i,n)}else Uint8Array.prototype.set.call(i,o,n);else if(!fe.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');else o.copy(i,n);n+=o.length}return i};fe.byteLength=g1;fe.prototype._isBuffer=!0;fe.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)lo(this,t,t+1);return this};fe.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)lo(this,t,t+3),lo(this,t+1,t+2);return this};fe.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)lo(this,t,t+7),lo(this,t+1,t+6),lo(this,t+2,t+5),lo(this,t+3,t+4);return this};fe.prototype.toString=function(){let e=this.length;if(e===0)return"";if(arguments.length===0)return v1(this,0,e);return $$.apply(this,arguments)};fe.prototype.toLocaleString=fe.prototype.toString;fe.prototype.equals=function(e){if(!fe.isBuffer(e))throw TypeError("Argument must be a Buffer");if(this===e)return!0;return fe.compare(this,e)===0};fe.prototype.inspect=function(){let e="",t=f1;if(e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t)e+=" ... ";return"<Buffer "+e+">"};if(a1)fe.prototype[a1]=fe.prototype.inspect;fe.prototype.compare=function(e,t,r,i,n){if(Wn(e,Uint8Array))e=fe.from(e,e.offset,e.byteLength);if(!fe.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0)t=0;if(r===void 0)r=e?e.length:0;if(i===void 0)i=0;if(n===void 0)n=this.length;if(t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;let o=n-i,s=r-t,h=Math.min(o,s),b=this.slice(i,n),v=e.slice(t,r);for(let _=0;_<h;++_)if(b[_]!==v[_]){o=b[_],s=v[_];break}if(o<s)return-1;if(s<o)return 1;return 0};fe.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1};fe.prototype.indexOf=function(e,t,r){return y1(this,e,t,r,!0)};fe.prototype.lastIndexOf=function(e,t,r){return y1(this,e,t,r,!1)};fe.prototype.write=function(e,t,r,i){if(t===void 0)i="utf8",r=this.length,t=0;else if(r===void 0&&typeof t==="string")i=t,r=this.length,t=0;else if(isFinite(t))if(t=t>>>0,isFinite(r)){if(r=r>>>0,i===void 0)i="utf8"}else i=r,r=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let n=this.length-t;if(r===void 0||r>n)r=n;if(e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!i)i="utf8";let o=!1;for(;;)switch(i){case"hex":return I$(this,e,t,r);case"utf8":case"utf-8":return P$(this,e,t,r);case"ascii":case"latin1":case"binary":return T$(this,e,t,r);case"base64":return A$(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R$(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};fe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};fe.prototype.slice=function(e,t){let r=this.length;if(e=~~e,t=t===void 0?r:~~t,e<0){if(e+=r,e<0)e=0}else if(e>r)e=r;if(t<0){if(t+=r,t<0)t=0}else if(t>r)t=r;if(t<e)t=e;let i=this.subarray(e,t);return Object.setPrototypeOf(i,fe.prototype),i};fe.prototype.readUintLE=fe.prototype.readUIntLE=function(e,t,r){if(e=e>>>0,t=t>>>0,!r)Mr(e,t,this.length);let i=this[e],n=1,o=0;while(++o<t&&(n*=256))i+=this[e+o]*n;return i};fe.prototype.readUintBE=fe.prototype.readUIntBE=function(e,t,r){if(e=e>>>0,t=t>>>0,!r)Mr(e,t,this.length);let i=this[e+--t],n=1;while(t>0&&(n*=256))i+=this[e+--t]*n;return i};fe.prototype.readUint8=fe.prototype.readUInt8=function(e,t){if(e=e>>>0,!t)Mr(e,1,this.length);return this[e]};fe.prototype.readUint16LE=fe.prototype.readUInt16LE=function(e,t){if(e=e>>>0,!t)Mr(e,2,this.length);return this[e]|this[e+1]<<8};fe.prototype.readUint16BE=fe.prototype.readUInt16BE=function(e,t){if(e=e>>>0,!t)Mr(e,2,this.length);return this[e]<<8|this[e+1]};fe.prototype.readUint32LE=fe.prototype.readUInt32LE=function(e,t){if(e=e>>>0,!t)Mr(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};fe.prototype.readUint32BE=fe.prototype.readUInt32BE=function(e,t){if(e=e>>>0,!t)Mr(e,4,this.length);return this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};fe.prototype.readBigUInt64LE=Ti(function(e){e=e>>>0,ts(e,"offset");let t=this[e],r=this[e+7];if(t===void 0||r===void 0)ya(e,this.length-8);let i=t+this[++e]*256+this[++e]*65536+this[++e]*16777216,n=this[++e]+this[++e]*256+this[++e]*65536+r*16777216;return BigInt(i)+(BigInt(n)<<BigInt(32))});fe.prototype.readBigUInt64BE=Ti(function(e){e=e>>>0,ts(e,"offset");let t=this[e],r=this[e+7];if(t===void 0||r===void 0)ya(e,this.length-8);let i=t*16777216+this[++e]*65536+this[++e]*256+this[++e],n=this[++e]*16777216+this[++e]*65536+this[++e]*256+r;return(BigInt(i)<<BigInt(32))+BigInt(n)});fe.prototype.readIntLE=function(e,t,r){if(e=e>>>0,t=t>>>0,!r)Mr(e,t,this.length);let i=this[e],n=1,o=0;while(++o<t&&(n*=256))i+=this[e+o]*n;if(n*=128,i>=n)i-=Math.pow(2,8*t);return i};fe.prototype.readIntBE=function(e,t,r){if(e=e>>>0,t=t>>>0,!r)Mr(e,t,this.length);let i=t,n=1,o=this[e+--i];while(i>0&&(n*=256))o+=this[e+--i]*n;if(n*=128,o>=n)o-=Math.pow(2,8*t);return o};fe.prototype.readInt8=function(e,t){if(e=e>>>0,!t)Mr(e,1,this.length);if(!(this[e]&128))return this[e];return(255-this[e]+1)*-1};fe.prototype.readInt16LE=function(e,t){if(e=e>>>0,!t)Mr(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};fe.prototype.readInt16BE=function(e,t){if(e=e>>>0,!t)Mr(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};fe.prototype.readInt32LE=function(e,t){if(e=e>>>0,!t)Mr(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};fe.prototype.readInt32BE=function(e,t){if(e=e>>>0,!t)Mr(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};fe.prototype.readBigInt64LE=Ti(function(e){e=e>>>0,ts(e,"offset");let t=this[e],r=this[e+7];if(t===void 0||r===void 0)ya(e,this.length-8);let i=this[e+4]+this[e+5]*256+this[e+6]*65536+(r<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++e]*256+this[++e]*65536+this[++e]*16777216)});fe.prototype.readBigInt64BE=Ti(function(e){e=e>>>0,ts(e,"offset");let t=this[e],r=this[e+7];if(t===void 0||r===void 0)ya(e,this.length-8);let i=(t<<24)+this[++e]*65536+this[++e]*256+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*16777216+this[++e]*65536+this[++e]*256+r)});fe.prototype.readFloatLE=function(e,t){if(e=e>>>0,!t)Mr(e,4,this.length);return Mc(this,e,!0,23,4)};fe.prototype.readFloatBE=function(e,t){if(e=e>>>0,!t)Mr(e,4,this.length);return Mc(this,e,!1,23,4)};fe.prototype.readDoubleLE=function(e,t){if(e=e>>>0,!t)Mr(e,8,this.length);return Mc(this,e,!0,52,8)};fe.prototype.readDoubleBE=function(e,t){if(e=e>>>0,!t)Mr(e,8,this.length);return Mc(this,e,!1,52,8)};fe.prototype.writeUintLE=fe.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t=t>>>0,r=r>>>0,!i){let s=Math.pow(2,8*r)-1;Jr(this,e,t,r,s,0)}let n=1,o=0;this[t]=e&255;while(++o<r&&(n*=256))this[t+o]=e/n&255;return t+r};fe.prototype.writeUintBE=fe.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t=t>>>0,r=r>>>0,!i){let s=Math.pow(2,8*r)-1;Jr(this,e,t,r,s,0)}let n=r-1,o=1;this[t+n]=e&255;while(--n>=0&&(o*=256))this[t+n]=e/o&255;return t+r};fe.prototype.writeUint8=fe.prototype.writeUInt8=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,1,255,0);return this[t]=e&255,t+1};fe.prototype.writeUint16LE=fe.prototype.writeUInt16LE=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,2,65535,0);return this[t]=e&255,this[t+1]=e>>>8,t+2};fe.prototype.writeUint16BE=fe.prototype.writeUInt16BE=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,2,65535,0);return this[t]=e>>>8,this[t+1]=e&255,t+2};fe.prototype.writeUint32LE=fe.prototype.writeUInt32LE=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,4,4294967295,0);return this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};fe.prototype.writeUint32BE=fe.prototype.writeUInt32BE=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,4,4294967295,0);return this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};fe.prototype.writeBigUInt64LE=Ti(function(e,t=0){return b1(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});fe.prototype.writeBigUInt64BE=Ti(function(e,t=0){return _1(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});fe.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t=t>>>0,!i){let h=Math.pow(2,8*r-1);Jr(this,e,t,r,h-1,-h)}let n=0,o=1,s=0;this[t]=e&255;while(++n<r&&(o*=256)){if(e<0&&s===0&&this[t+n-1]!==0)s=1;this[t+n]=(e/o>>0)-s&255}return t+r};fe.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t=t>>>0,!i){let h=Math.pow(2,8*r-1);Jr(this,e,t,r,h-1,-h)}let n=r-1,o=1,s=0;this[t+n]=e&255;while(--n>=0&&(o*=256)){if(e<0&&s===0&&this[t+n+1]!==0)s=1;this[t+n]=(e/o>>0)-s&255}return t+r};fe.prototype.writeInt8=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,1,127,-128);if(e<0)e=255+e+1;return this[t]=e&255,t+1};fe.prototype.writeInt16LE=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,2,32767,-32768);return this[t]=e&255,this[t+1]=e>>>8,t+2};fe.prototype.writeInt16BE=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,2,32767,-32768);return this[t]=e>>>8,this[t+1]=e&255,t+2};fe.prototype.writeInt32LE=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,4,2147483647,-2147483648);return this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};fe.prototype.writeInt32BE=function(e,t,r){if(e=+e,t=t>>>0,!r)Jr(this,e,t,4,2147483647,-2147483648);if(e<0)e=4294967295+e+1;return this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};fe.prototype.writeBigInt64LE=Ti(function(e,t=0){return b1(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});fe.prototype.writeBigInt64BE=Ti(function(e,t=0){return _1(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});fe.prototype.writeFloatLE=function(e,t,r){return S1(this,e,t,!0,r)};fe.prototype.writeFloatBE=function(e,t,r){return S1(this,e,t,!1,r)};fe.prototype.writeDoubleLE=function(e,t,r){return x1(this,e,t,!0,r)};fe.prototype.writeDoubleBE=function(e,t,r){return x1(this,e,t,!1,r)};fe.prototype.copy=function(e,t,r,i){if(!fe.isBuffer(e))throw TypeError("argument should be a Buffer");if(!r)r=0;if(!i&&i!==0)i=this.length;if(t>=e.length)t=e.length;if(!t)t=0;if(i>0&&i<r)i=r;if(i===r)return 0;if(e.length===0||this.length===0)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");if(i>this.length)i=this.length;if(e.length-t<i-r)i=e.length-t+r;let n=i-r;if(this===e&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(t,r,i);else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n};fe.prototype.fill=function(e,t,r,i){if(typeof e==="string"){if(typeof t==="string")i=t,t=0,r=this.length;else if(typeof r==="string")i=r,r=this.length;if(i!==void 0&&typeof i!=="string")throw TypeError("encoding must be a string");if(typeof i==="string"&&!fe.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(e.length===1){let o=e.charCodeAt(0);if(i==="utf8"&&o<128||i==="latin1")e=o}}else if(typeof e==="number")e=e&255;else if(typeof e==="boolean")e=Number(e);if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t=t>>>0,r=r===void 0?this.length:r>>>0,!e)e=0;let n;if(typeof e==="number")for(n=t;n<r;++n)this[n]=e;else{let o=fe.isBuffer(e)?e:fe.from(e,i),s=o.length;if(s===0)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s]}return this};L$=/[^+/0-9A-Za-z-_]/g;H$=function(){let e=Array(256);for(let t=0;t<16;++t){let r=t*16;for(let i=0;i<16;++i)e[r+i]="0123456789abcdef"[t]+"0123456789abcdef"[i]}return e}();K$=um("resolveObjectURL"),V$=um("isUtf8"),G$=um("transcode"),J$=fe});var D1={};vn(D1,{types:()=>sI,promisify:()=>A1,log:()=>I1,isUndefined:()=>rs,isSymbol:()=>uI,isString:()=>Rc,isRegExp:()=>$c,isPrimitive:()=>lI,isObject:()=>ns,isNumber:()=>$1,isNullOrUndefined:()=>aI,isNull:()=>Ac,isFunction:()=>Pc,isError:()=>Ic,isDate:()=>fm,isBuffer:()=>cI,isBoolean:()=>pm,isArray:()=>E1,inspect:()=>co,inherits:()=>P1,format:()=>hm,deprecate:()=>Y$,default:()=>hI,debuglog:()=>Q$,callbackifyOnRejected:()=>ym,callbackify:()=>R1,_extend:()=>gm,TextEncoder:()=>C1,TextDecoder:()=>O1});function hm(e,...t){if(!Rc(e)){var r=[e];for(var i=0;i<t.length;i++)r.push(co(t[i]));return r.join(" ")}var i=0,n=t.length,o=String(e).replace(X$,function(h){if(h==="%%")return"%";if(i>=n)return h;switch(h){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(b){return"[Circular]"}default:return h}});for(var s=t[i];i<n;s=t[++i])if(Ac(s)||!ns(s))o+=" "+s;else o+=" "+co(s);return o}function Y$(e,t){if(typeof process>"u"||process?.noDeprecation===!0)return e;var r=!1;function i(...n){if(!r){if(process.throwDeprecation)throw Error(t);else if(process.traceDeprecation)console.trace(t);else console.error(t);r=!0}return e.apply(this,...n)}return i}function eI(e,t){var r=co.styles[t];if(r)return"\x1B["+co.colors[r][0]+"m"+e+"\x1B["+co.colors[r][1]+"m";else return e}function tI(e,t){return e}function rI(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function Tc(e,t,r){if(e.customInspect&&t&&Pc(t.inspect)&&t.inspect!==co&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);if(!Rc(i))i=Tc(e,i,r);return i}var n=nI(e,t);if(n)return n;var o=Object.keys(t),s=rI(o);if(e.showHidden)o=Object.getOwnPropertyNames(t);if(Ic(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return lm(t);if(o.length===0){if(Pc(t)){var h=t.name?": "+t.name:"";return e.stylize("[Function"+h+"]","special")}if($c(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(fm(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ic(t))return lm(t)}var b="",v=!1,_=["{","}"];if(E1(t))v=!0,_=["[","]"];if(Pc(t)){var g=t.name?": "+t.name:"";b=" [Function"+g+"]"}if($c(t))b=" "+RegExp.prototype.toString.call(t);if(fm(t))b=" "+Date.prototype.toUTCString.call(t);if(Ic(t))b=" "+lm(t);if(o.length===0&&(!v||t.length==0))return _[0]+b+_[1];if(r<0)if($c(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");else return e.stylize("[Object]","special");e.seen.push(t);var S;if(v)S=iI(e,t,r,s,o);else S=o.map(function(x){return dm(e,t,r,s,x,v)});return e.seen.pop(),oI(S,b,_)}function nI(e,t){if(rs(t))return e.stylize("undefined","undefined");if(Rc(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if($1(t))return e.stylize(""+t,"number");if(pm(t))return e.stylize(""+t,"boolean");if(Ac(t))return e.stylize("null","null")}function lm(e){return"["+Error.prototype.toString.call(e)+"]"}function iI(e,t,r,i,n){var o=[];for(var s=0,h=t.length;s<h;++s)if(T1(t,String(s)))o.push(dm(e,t,r,i,String(s),!0));else o.push("");return n.forEach(function(b){if(!b.match(/^\d+$/))o.push(dm(e,t,r,i,b,!0))}),o}function dm(e,t,r,i,n,o){var s,h,b;if(b=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},b.get)if(b.set)h=e.stylize("[Getter/Setter]","special");else h=e.stylize("[Getter]","special");else if(b.set)h=e.stylize("[Setter]","special");if(!T1(i,n))s="["+n+"]";if(!h)if(e.seen.indexOf(b.value)<0){if(Ac(r))h=Tc(e,b.value,null);else h=Tc(e,b.value,r-1);if(h.indexOf(`
5
5
  `)>-1)if(o)h=h.split(`
6
6
  `).map(function(v){return" "+v}).join(`
package/manifest.json CHANGED
@@ -1,47 +1,47 @@
1
1
  {
2
- "version": "2.1.196",
3
- "commit": "a4ca500badcac68511fb5f04303e32e4360f3dfb",
4
- "buildDate": "2026-06-29T01:55:28Z",
2
+ "version": "2.1.197",
3
+ "commit": "c8fd8048f30950a21d28734718275aa7e97f5143",
4
+ "buildDate": "2026-06-29T19:16:30Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude",
8
- "checksum": "6fc6e61ab7582c2bf241225ff90d9f79e91d69380cb9589fc9dedd3a30070f5a",
9
- "size": 225782608
8
+ "checksum": "8cc0c4d1e4eb1dca3b0cc92ab02ee3505de764e023f8c901761c167b72041fb8",
9
+ "size": 227251472
10
10
  },
11
11
  "darwin-x64": {
12
12
  "binary": "claude",
13
- "checksum": "32c74d66e27b9ca77aea638fc46cb11c90470bd0d294b2a981065da8896d1ee0",
14
- "size": 235139408
13
+ "checksum": "5e8a57cc7a92377f0744fa4c79191cf93d4b26c79cb919b07a407511fed1be26",
14
+ "size": 235288016
15
15
  },
16
16
  "linux-arm64": {
17
17
  "binary": "claude",
18
- "checksum": "05aa9189d335d1e921ca9608acd699193e661559aff56704456ce5bda6fd4dd8",
19
- "size": 242203376
18
+ "checksum": "fb48473c467c27615ac799a754f4ef0b68c363e4596cefbb59c3815d51a0cc8a",
19
+ "size": 242334448
20
20
  },
21
21
  "linux-x64": {
22
22
  "binary": "claude",
23
- "checksum": "eb933c6dd5534db89b83ba09009d5c0932bd1395f7e3bb0f34ba37eec37bbade",
24
- "size": 245373752
23
+ "checksum": "f54e69cbc89b2da61a415700af7ff52a147e862517d4f1b0eecf768448cf7f83",
24
+ "size": 245517112
25
25
  },
26
26
  "linux-arm64-musl": {
27
27
  "binary": "claude",
28
- "checksum": "0591ff8e1378d3773c85456d0c812bf79b333cac2d06396cd076ecfc75022ba4",
29
- "size": 235451576
28
+ "checksum": "acb885610ba06d90c46206ded9b14121bc30e96affecbfb3c37d511bf02af2bd",
29
+ "size": 235582648
30
30
  },
31
31
  "linux-x64-musl": {
32
32
  "binary": "claude",
33
- "checksum": "fa7e93303ea5eda7defce9f70f360c1f951b06f9f36b03296baffbade512049f",
34
- "size": 240058752
33
+ "checksum": "2f610c0f81341052426981b5dc59277a33e6ec3df924071b24edbc05e6a096dc",
34
+ "size": 240202112
35
35
  },
36
36
  "win32-x64": {
37
37
  "binary": "claude.exe",
38
- "checksum": "180d7b279455e8b89d4353a5146447be2f80b80fb0db14bdc6dd9cb98c0aef09",
39
- "size": 235977376
38
+ "checksum": "038bd9fe90c60304601e19751269a50d62925c541dd6a2b3da5274549e9416ee",
39
+ "size": 236121248
40
40
  },
41
41
  "win32-arm64": {
42
42
  "binary": "claude.exe",
43
- "checksum": "882ed64ae93385067bff7b1e1d1975898f1cbca739dff322e0e370cd2db3e6ed",
44
- "size": 230444704
43
+ "checksum": "8d2baeaf77b0e79ea33cf5ce78a37e64804c3a26d63d35355a830fda404a4f61",
44
+ "size": 230588064
45
45
  }
46
46
  }
47
47
  }
package/manifest.zst.json CHANGED
@@ -1,55 +1,55 @@
1
1
  {
2
- "version": "2.1.196",
3
- "commit": "a4ca500badcac68511fb5f04303e32e4360f3dfb",
4
- "buildDate": "2026-06-29T01:57:03Z",
2
+ "version": "2.1.197",
3
+ "commit": "c8fd8048f30950a21d28734718275aa7e97f5143",
4
+ "buildDate": "2026-06-29T19:18:17Z",
5
5
  "platforms": {
6
6
  "darwin-arm64": {
7
7
  "binary": "claude.zst",
8
- "checksum": "10fed08630de5ee96d282bd46468c8846fe2efcf912ffb7081b6100b82bb1b41",
9
- "size": 46562853,
8
+ "checksum": "9b11f0d6c9ce73434bf75440eb19f339c47e099da6d53c481cda1a9c6e693a7d",
9
+ "size": 47889227,
10
10
  "bundle": {
11
- "checksum": "17bb23e00ade792182c1b1b77007ab76de6eb6aea6f297a44a0b1d4634aa62c7",
12
- "size": 46573556
11
+ "checksum": "c921aa65eb8f10a3f387a86526f97b94dee721f26b741dadf0d2357ac376c437",
12
+ "size": 47903450
13
13
  }
14
14
  },
15
15
  "darwin-x64": {
16
16
  "binary": "claude.zst",
17
- "checksum": "bff7cdb27a7020d6b21fbe5d4d4d41f59531172c7927f9599e533bf342dd9fb4",
18
- "size": 50891667,
17
+ "checksum": "a1dc9d160ae29aff4373dec60623111080fe2c645a21f25c96dd2b443ee184e6",
18
+ "size": 50919995,
19
19
  "bundle": {
20
- "checksum": "b7738d70a60a7097dfcc35b54bc13030671339790b6b9fa90c5d31ac4d9ed486",
21
- "size": 50896401
20
+ "checksum": "f2d6011db80732e4f0850d5c27e0ce83bb4d2c4a66374072134232214dddedab",
21
+ "size": 50915693
22
22
  }
23
23
  },
24
24
  "linux-arm64": {
25
25
  "binary": "claude.zst",
26
- "checksum": "6be5c69d32441ee7ee5d75c61816c3011422de98d9584b0cde45daa2bb4c675f",
27
- "size": 55673912
26
+ "checksum": "e5f4307ad01f9720878ce4088331f33722cdd610aaa1d0026260ca9ced498030",
27
+ "size": 55692187
28
28
  },
29
29
  "linux-x64": {
30
30
  "binary": "claude.zst",
31
- "checksum": "8d9b31a9309541e63e201d64f04ced4b4603b4c91bf579645c1f95f56fca737c",
32
- "size": 56938352
31
+ "checksum": "bbb773dbaaa24c20d564ae83ce906d9b676c3ccb8f092176722bcbc5016d957b",
32
+ "size": 56956227
33
33
  },
34
34
  "linux-arm64-musl": {
35
35
  "binary": "claude.zst",
36
- "checksum": "1f2fcfc247efba1c882451de9c51c399c7e1fc3910c575660a543d43c6b8d92e",
37
- "size": 54346444
36
+ "checksum": "55464849825a33e23de886656a1b7e2bdaa0edc21854c88f9e5468ac97997f1d",
37
+ "size": 54362236
38
38
  },
39
39
  "linux-x64-musl": {
40
40
  "binary": "claude.zst",
41
- "checksum": "d0108bfbd32283b7ecafdd13f6433d525fd4741264bdfb921314dffec3a7ea83",
42
- "size": 55731691
41
+ "checksum": "506a64a81005e1cd7b4b540061b10f6de62297a456a47070894faa994e1cf5eb",
42
+ "size": 55764001
43
43
  },
44
44
  "win32-x64": {
45
45
  "binary": "claude.exe.zst",
46
- "checksum": "6a5543df854f30efe169b2e2f5609f4dd6b85db8eaba0e2a65ef335ac0e96998",
47
- "size": 57049291
46
+ "checksum": "e5a97e820e244ddfef2f3fd61e7dbc15daed49615ab9ec7f7946256aca565456",
47
+ "size": 57090391
48
48
  },
49
49
  "win32-arm64": {
50
50
  "binary": "claude.exe.zst",
51
- "checksum": "5adb89a3270336fc9598cf4b5b2ab4cebf48b41f8fdaa45fdaa2a5578c33f45d",
52
- "size": 55081320
51
+ "checksum": "e75b4797151ea6eba808d353759b28a22d6c1cf12cc327f349fdeef414607ecc",
52
+ "size": 55093687
53
53
  }
54
54
  }
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.3.196",
3
+ "version": "0.3.197",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -57,14 +57,14 @@
57
57
  "zod": "^4.0.0"
58
58
  },
59
59
  "optionalDependencies": {
60
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.196",
61
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.196",
62
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.196",
63
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.196",
64
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.196",
65
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.196",
66
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.196",
67
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.196"
60
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.197",
61
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.197",
62
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.197",
63
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.197",
64
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.197",
65
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.197",
66
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.197",
67
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.197"
68
68
  },
69
69
  "files": [
70
70
  "sdk.mjs",
@@ -80,5 +80,5 @@
80
80
  "manifest.json",
81
81
  "manifest.zst.json"
82
82
  ],
83
- "claudeCodeVersion": "2.1.196"
83
+ "claudeCodeVersion": "2.1.197"
84
84
  }
package/sdk.d.ts CHANGED
@@ -496,7 +496,7 @@ export declare function deleteSession(_sessionId: string, _options?: SessionMuta
496
496
  * - `'low'` — Minimal thinking, fastest responses
497
497
  * - `'medium'` — Moderate thinking
498
498
  * - `'high'` — Deep reasoning (default)
499
- * - `'xhigh'` — Deeper than high (Fable 5, Opus 4.7+; falls back to `'high'` elsewhere)
499
+ * - `'xhigh'` — Deeper than high (Fable 5, Opus 4.7+, Sonnet 5; falls back to `'high'` elsewhere)
500
500
  * - `'max'` — Maximum effort (select models only)
501
501
  */
502
502
  export declare type EffortLevel = 'low' | 'medium' | 'high' | 'xhigh' | 'max';
@@ -1168,6 +1168,10 @@ export declare type ModelInfo = {
1168
1168
  * Model identifier to use in API calls
1169
1169
  */
1170
1170
  value: string;
1171
+ /**
1172
+ * Canonical wire model id this row's `value` resolves to (e.g. 'sonnet' → 'claude-sonnet-5'). Lets hosts match a persisted explicit id against the alias row that covers it.
1173
+ */
1174
+ resolvedModel?: string;
1171
1175
  /**
1172
1176
  * Human-readable display name
1173
1177
  */
@@ -1197,6 +1201,7 @@ export declare type ModelInfo = {
1197
1201
  */
1198
1202
  supportsAutoMode?: boolean;
1199
1203
 
1204
+
1200
1205
  };
1201
1206
 
1202
1207
  export declare type ModelUsage = {
@@ -1585,8 +1590,8 @@ export declare type Options = {
1585
1590
  * - `'low'` — Minimal thinking, fastest responses
1586
1591
  * - `'medium'` — Moderate thinking
1587
1592
  * - `'high'` — Deep reasoning (default)
1588
- * - `'xhigh'` — Deeper than high (Fable 5, Opus 4.7+)
1589
- * - `'max'` — Maximum effort (Fable 5, Opus 4.6+, Sonnet 4.6)
1593
+ * - `'xhigh'` — Deeper than high (Fable 5, Opus 4.7+, Sonnet 5)
1594
+ * - `'max'` — Maximum effort (Fable 5, Opus 4.6+, Sonnet 4.6+)
1590
1595
  *
1591
1596
  * @see https://docs.anthropic.com/en/docs/build-with-claude/effort
1592
1597
  */
@@ -1637,7 +1642,7 @@ export declare type Options = {
1637
1642
  mcpServers?: Record<string, McpServerConfig>;
1638
1643
  /**
1639
1644
  * Claude model to use. Defaults to the CLI default model.
1640
- * Examples: 'claude-sonnet-4-6', 'claude-opus-4-8', 'claude-fable-5'
1645
+ * Examples: 'claude-sonnet-5', 'claude-opus-4-8', 'claude-fable-5'
1641
1646
  */
1642
1647
  model?: string;
1643
1648
  /**
@@ -1793,7 +1798,7 @@ export declare type Options = {
1793
1798
  *
1794
1799
  * @example Inline settings object
1795
1800
  * ```typescript
1796
- * settings: { model: 'claude-sonnet-4-6', permissions: { allow: ['Bash(*)'] } }
1801
+ * settings: { model: 'claude-sonnet-5', permissions: { allow: ['Bash(*)'] } }
1797
1802
  * ```
1798
1803
  *
1799
1804
  * @example Path to settings file
@@ -4859,7 +4864,7 @@ export declare interface Settings {
4859
4864
  */
4860
4865
  timeout?: number;
4861
4866
  /**
4862
- * Model to use for this prompt hook (e.g., "claude-sonnet-4-6"). If not specified, uses the default small fast model.
4867
+ * Model to use for this prompt hook (e.g., "claude-sonnet-5"). If not specified, uses the default small fast model.
4863
4868
  */
4864
4869
  model?: string;
4865
4870
  /**
@@ -4892,7 +4897,7 @@ export declare interface Settings {
4892
4897
  */
4893
4898
  timeout?: number;
4894
4899
  /**
4895
- * Model to use for this agent hook (e.g., "claude-sonnet-4-6"). If not specified, uses Haiku.
4900
+ * Model to use for this agent hook (e.g., "claude-sonnet-5"). If not specified, uses Haiku.
4896
4901
  */
4897
4902
  model?: string;
4898
4903
  /**