@anthropic-ai/claude-agent-sdk 0.3.153 → 0.3.156
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/assistant.mjs +60 -60
- package/bridge.mjs +2 -2
- package/browser-sdk.js +1 -1
- package/manifest.json +19 -19
- package/manifest.zst.json +23 -23
- package/package.json +10 -10
- package/sdk-tools.d.ts +31 -1
- package/sdk.d.ts +12 -5
- package/sdk.mjs +47 -47
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.
|
|
3
|
+
// Version: 0.3.156
|
|
4
4
|
var $q=Object.create;var{getPrototypeOf:Xq,defineProperty:hQ,getOwnPropertyNames:Jq}=Object;var zq=Object.prototype.hasOwnProperty;function Qq($){return this[$]}var Yq,Wq,RU=($,X,J)=>{var Q=$!=null&&typeof $==="object";if(Q){var z=X?Yq??=new WeakMap:Wq??=new WeakMap,Y=z.get($);if(Y)return Y}J=$!=null?$q(Xq($)):{};let W=X||!$||!$.__esModule?hQ(J,"default",{value:$,enumerable:!0}):J;for(let G of Jq($))if(!zq.call(W,G))hQ(W,G,{get:Qq.bind($,G),enumerable:!0});if(Q)z.set($,W);return W};var x=($,X)=>()=>(X||$((X={exports:{}}).exports,X),X.exports);var Gq=($)=>$;function Uq($,X){this[$]=Gq.bind(null,X)}var H6=($,X)=>{for(var J in X)hQ($,J,{get:X[J],enumerable:!0,configurable:!0,set:Uq.bind(X,J)})};var Kq=($,X)=>()=>($&&(X=$($=0)),X);var c6=(($)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy($,{get:(X,J)=>(typeof require<"u"?require:X)[J]}):$)(function($){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+$+'" is not supported')}),wq=Symbol.dispose||Symbol.for("Symbol.dispose"),Vq=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),F$=($,X,J)=>{if(X!=null){if(typeof X!=="object"&&typeof X!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var Q;if(J)Q=X[Vq];if(Q===void 0)Q=X[wq];if(typeof Q!=="function")throw TypeError("Object not disposable");$.push([J,Q,X])}else if(J)$.push([J]);return X},M$=($,X,J)=>{var Q=typeof SuppressedError==="function"?SuppressedError:function(W,G,U,K){return K=Error(U),K.name="SuppressedError",K.error=W,K.suppressed=G,K},z=(W)=>X=J?new Q(W,X,"An error was suppressed during disposal"):(J=!0,W),Y=(W)=>{while(W=$.pop())try{var G=W[1]&&W[1].call(W[2]);if(W[0])return Promise.resolve(G).then(Y,(U)=>(z(U),Y()))}catch(U){z(U)}if(J)throw X};return Y()};var d6={};H6(d6,{sep:()=>dQ,resolve:()=>C1,relative:()=>wK,posix:()=>jK,parse:()=>OK,normalize:()=>iQ,join:()=>u4,isAbsolute:()=>nQ,format:()=>HK,extname:()=>NK,dirname:()=>p6,delimiter:()=>BK,default:()=>xL,basename:()=>pQ,_makeLong:()=>VK});function h4($){if(typeof $!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify($))}function KK($,X){var J="",Q=0,z=-1,Y=0,W;for(var G=0;G<=$.length;++G){if(G<$.length)W=$.charCodeAt(G);else if(W===47)break;else W=47;if(W===47){if(z===G-1||Y===1);else if(z!==G-1&&Y===2){if(J.length<2||Q!==2||J.charCodeAt(J.length-1)!==46||J.charCodeAt(J.length-2)!==46){if(J.length>2){var U=J.lastIndexOf("/");if(U!==J.length-1){if(U===-1)J="",Q=0;else J=J.slice(0,U),Q=J.length-1-J.lastIndexOf("/");z=G,Y=0;continue}}else if(J.length===2||J.length===1){J="",Q=0,z=G,Y=0;continue}}if(X){if(J.length>0)J+="/..";else J="..";Q=2}}else{if(J.length>0)J+="/"+$.slice(z+1,G);else J=$.slice(z+1,G);Q=G-z-1}z=G,Y=0}else if(W===46&&Y!==-1)++Y;else Y=-1}return J}function _L($,X){var J=X.dir||X.root,Q=X.base||(X.name||"")+(X.ext||"");if(!J)return Q;if(J===X.root)return J+Q;return J+$+Q}function C1(){var $="",X=!1,J;for(var Q=arguments.length-1;Q>=-1&&!X;Q--){var z;if(Q>=0)z=arguments[Q];else{if(J===void 0)J=process.cwd();z=J}if(h4(z),z.length===0)continue;$=z+"/"+$,X=z.charCodeAt(0)===47}if($=KK($,!X),X)if($.length>0)return"/"+$;else return"/";else if($.length>0)return $;else return"."}function iQ($){if(h4($),$.length===0)return".";var X=$.charCodeAt(0)===47,J=$.charCodeAt($.length-1)===47;if($=KK($,!X),$.length===0&&!X)$=".";if($.length>0&&J)$+="/";if(X)return"/"+$;return $}function nQ($){return h4($),$.length>0&&$.charCodeAt(0)===47}function u4(){if(arguments.length===0)return".";var $;for(var X=0;X<arguments.length;++X){var J=arguments[X];if(h4(J),J.length>0)if($===void 0)$=J;else $+="/"+J}if($===void 0)return".";return iQ($)}function wK($,X){if(h4($),h4(X),$===X)return"";if($=C1($),X=C1(X),$===X)return"";var J=1;for(;J<$.length;++J)if($.charCodeAt(J)!==47)break;var Q=$.length,z=Q-J,Y=1;for(;Y<X.length;++Y)if(X.charCodeAt(Y)!==47)break;var W=X.length,G=W-Y,U=z<G?z:G,K=-1,w=0;for(;w<=U;++w){if(w===U){if(G>U){if(X.charCodeAt(Y+w)===47)return X.slice(Y+w+1);else if(w===0)return X.slice(Y+w)}else if(z>U){if($.charCodeAt(J+w)===47)K=w;else if(w===0)K=0}break}var V=$.charCodeAt(J+w),H=X.charCodeAt(Y+w);if(V!==H)break;else if(V===47)K=w}var N="";for(w=J+K+1;w<=Q;++w)if(w===Q||$.charCodeAt(w)===47)if(N.length===0)N+="..";else N+="/..";if(N.length>0)return N+X.slice(Y+K);else{if(Y+=K,X.charCodeAt(Y)===47)++Y;return X.slice(Y)}}function VK($){return $}function p6($){if(h4($),$.length===0)return".";var X=$.charCodeAt(0),J=X===47,Q=-1,z=!0;for(var Y=$.length-1;Y>=1;--Y)if(X=$.charCodeAt(Y),X===47){if(!z){Q=Y;break}}else z=!1;if(Q===-1)return J?"/":".";if(J&&Q===1)return"//";return $.slice(0,Q)}function pQ($,X){if(X!==void 0&&typeof X!=="string")throw TypeError('"ext" argument must be a string');h4($);var J=0,Q=-1,z=!0,Y;if(X!==void 0&&X.length>0&&X.length<=$.length){if(X.length===$.length&&X===$)return"";var W=X.length-1,G=-1;for(Y=$.length-1;Y>=0;--Y){var U=$.charCodeAt(Y);if(U===47){if(!z){J=Y+1;break}}else{if(G===-1)z=!1,G=Y+1;if(W>=0)if(U===X.charCodeAt(W)){if(--W===-1)Q=Y}else W=-1,Q=G}}if(J===Q)Q=G;else if(Q===-1)Q=$.length;return $.slice(J,Q)}else{for(Y=$.length-1;Y>=0;--Y)if($.charCodeAt(Y)===47){if(!z){J=Y+1;break}}else if(Q===-1)z=!1,Q=Y+1;if(Q===-1)return"";return $.slice(J,Q)}}function NK($){h4($);var X=-1,J=0,Q=-1,z=!0,Y=0;for(var W=$.length-1;W>=0;--W){var G=$.charCodeAt(W);if(G===47){if(!z){J=W+1;break}continue}if(Q===-1)z=!1,Q=W+1;if(G===46){if(X===-1)X=W;else if(Y!==1)Y=1}else if(X!==-1)Y=-1}if(X===-1||Q===-1||Y===0||Y===1&&X===Q-1&&X===J+1)return"";return $.slice(X,Q)}function HK($){if($===null||typeof $!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof $);return _L("/",$)}function OK($){h4($);var X={root:"",dir:"",base:"",ext:"",name:""};if($.length===0)return X;var J=$.charCodeAt(0),Q=J===47,z;if(Q)X.root="/",z=1;else z=0;var Y=-1,W=0,G=-1,U=!0,K=$.length-1,w=0;for(;K>=z;--K){if(J=$.charCodeAt(K),J===47){if(!U){W=K+1;break}continue}if(G===-1)U=!1,G=K+1;if(J===46){if(Y===-1)Y=K;else if(w!==1)w=1}else if(Y!==-1)w=-1}if(Y===-1||G===-1||w===0||w===1&&Y===G-1&&Y===W+1){if(G!==-1)if(W===0&&Q)X.base=X.name=$.slice(1,G);else X.base=X.name=$.slice(W,G)}else{if(W===0&&Q)X.name=$.slice(1,Y),X.base=$.slice(1,G);else X.name=$.slice(W,Y),X.base=$.slice(W,G);X.ext=$.slice(Y,G)}if(W>0)X.dir=$.slice(0,W-1);else if(Q)X.dir="/";return X}var dQ="/",BK=":",jK,xL;var P4=Kq(()=>{jK=(($)=>($.posix=$,$))({resolve:C1,normalize:iQ,isAbsolute:nQ,join:u4,relative:wK,_makeLong:VK,dirname:p6,basename:pQ,extname:NK,format:HK,parse:OK,sep:dQ,delimiter:BK,win32:null,posix:null}),xL=jK});var K8=x((KH)=>{Object.defineProperty(KH,"__esModule",{value:!0});KH.regexpCode=KH.getEsmExportName=KH.getProperty=KH.safeStringify=KH.stringify=KH.strConcat=KH.addCodeArg=KH.str=KH._=KH.nil=KH._Code=KH.Name=KH.IDENTIFIER=KH._CodeOrName=void 0;class XQ{}KH._CodeOrName=XQ;KH.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class b0 extends XQ{constructor($){super();if(!KH.IDENTIFIER.test($))throw Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}KH.Name=b0;class _4 extends XQ{constructor($){super();this._items=typeof $==="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((X,J)=>`${X}${J}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((X,J)=>{if(J instanceof b0)X[J.str]=(X[J.str]||0)+1;return X},{})}}KH._Code=_4;KH.nil=new _4("");function GH($,...X){let J=[$[0]],Q=0;while(Q<X.length)BG(J,X[Q]),J.push($[++Q]);return new _4(J)}KH._=GH;var OG=new _4("+");function UH($,...X){let J=[U8($[0])],Q=0;while(Q<X.length)J.push(OG),BG(J,X[Q]),J.push(OG,U8($[++Q]));return AP(J),new _4(J)}KH.str=UH;function BG($,X){if(X instanceof _4)$.push(...X._items);else if(X instanceof b0)$.push(X);else $.push(ZP(X))}KH.addCodeArg=BG;function AP($){let X=1;while(X<$.length-1){if($[X]===OG){let J=bP($[X-1],$[X+1]);if(J!==void 0){$.splice(X-1,3,J);continue}$[X++]="+"}X++}}function bP($,X){if(X==='""')return $;if($==='""')return X;if(typeof $=="string"){if(X instanceof b0||$[$.length-1]!=='"')return;if(typeof X!="string")return`${$.slice(0,-1)}${X}"`;if(X[0]==='"')return $.slice(0,-1)+X.slice(1);return}if(typeof X=="string"&&X[0]==='"'&&!($ instanceof b0))return`"${$}${X.slice(1)}`;return}function PP($,X){return X.emptyStr()?$:$.emptyStr()?X:UH`${$}${X}`}KH.strConcat=PP;function ZP($){return typeof $=="number"||typeof $=="boolean"||$===null?$:U8(Array.isArray($)?$.join(","):$)}function SP($){return new _4(U8($))}KH.stringify=SP;function U8($){return JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}KH.safeStringify=U8;function RP($){return typeof $=="string"&&KH.IDENTIFIER.test($)?new _4(`.${$}`):GH`[${$}]`}KH.getProperty=RP;function EP($){if(typeof $=="string"&&KH.IDENTIFIER.test($))return new _4(`${$}`);throw Error(`CodeGen: invalid export name: ${$}, use explicit $id name mapping`)}KH.getEsmExportName=EP;function vP($){return new _4($.toString())}KH.regexpCode=vP});var LG=x((HH)=>{Object.defineProperty(HH,"__esModule",{value:!0});HH.ValueScope=HH.ValueScopeName=HH.Scope=HH.varKinds=HH.UsedValueState=void 0;var X4=K8();class VH extends Error{constructor($){super(`CodeGen: "code" for ${$} not defined`);this.value=$.value}}var zQ;(function($){$[$.Started=0]="Started",$[$.Completed=1]="Completed"})(zQ||(HH.UsedValueState=zQ={}));HH.varKinds={const:new X4.Name("const"),let:new X4.Name("let"),var:new X4.Name("var")};class DG{constructor({prefixes:$,parent:X}={}){this._names={},this._prefixes=$,this._parent=X}toName($){return $ instanceof X4.Name?$:this.name($)}name($){return new X4.Name(this._newName($))}_newName($){let X=this._names[$]||this._nameGroup($);return`${$}${X.index++}`}_nameGroup($){var X,J;if(((J=(X=this._parent)===null||X===void 0?void 0:X._prefixes)===null||J===void 0?void 0:J.has($))||this._prefixes&&!this._prefixes.has($))throw Error(`CodeGen: prefix "${$}" is not allowed in this scope`);return this._names[$]={prefix:$,index:0}}}HH.Scope=DG;class qG extends X4.Name{constructor($,X){super(X);this.prefix=$}setValue($,{property:X,itemIndex:J}){this.value=$,this.scopePath=X4._`.${new X4.Name(X)}[${J}]`}}HH.ValueScopeName=qG;var cP=X4._`\n`;class NH extends DG{constructor($){super($);this._values={},this._scope=$.scope,this.opts={...$,_n:$.lines?cP:X4.nil}}get(){return this._scope}name($){return new qG($,this._newName($))}value($,X){var J;if(X.ref===void 0)throw Error("CodeGen: ref must be passed in value");let Q=this.toName($),{prefix:z}=Q,Y=(J=X.key)!==null&&J!==void 0?J:X.ref,W=this._values[z];if(W){let K=W.get(Y);if(K)return K}else W=this._values[z]=new Map;W.set(Y,Q);let G=this._scope[z]||(this._scope[z]=[]),U=G.length;return G[U]=X.ref,Q.setValue(X,{property:z,itemIndex:U}),Q}getValue($,X){let J=this._values[$];if(!J)return;return J.get(X)}scopeRefs($,X=this._values){return this._reduceValues(X,(J)=>{if(J.scopePath===void 0)throw Error(`CodeGen: name "${J}" has no value`);return X4._`${$}${J.scopePath}`})}scopeCode($=this._values,X,J){return this._reduceValues($,(Q)=>{if(Q.value===void 0)throw Error(`CodeGen: name "${Q}" has no value`);return Q.value.code},X,J)}_reduceValues($,X,J={},Q){let z=X4.nil;for(let Y in $){let W=$[Y];if(!W)continue;let G=J[Y]=J[Y]||new Map;W.forEach((U)=>{if(G.has(U))return;G.set(U,zQ.Started);let K=X(U);if(K){let w=this.opts.es5?HH.varKinds.var:HH.varKinds.const;z=X4._`${z}${w} ${U} = ${K};${this.opts._n}`}else if(K=Q===null||Q===void 0?void 0:Q(U))z=X4._`${z}${K}${this.opts._n}`;else throw new VH(U);G.set(U,zQ.Completed)})}return z}}HH.ValueScope=NH});var s=x((J4)=>{Object.defineProperty(J4,"__esModule",{value:!0});J4.or=J4.and=J4.not=J4.CodeGen=J4.operators=J4.varKinds=J4.ValueScopeName=J4.ValueScope=J4.Scope=J4.Name=J4.regexpCode=J4.stringify=J4.getProperty=J4.nil=J4.strConcat=J4.str=J4._=void 0;var Q$=K8(),x4=LG(),T6=K8();Object.defineProperty(J4,"_",{enumerable:!0,get:function(){return T6._}});Object.defineProperty(J4,"str",{enumerable:!0,get:function(){return T6.str}});Object.defineProperty(J4,"strConcat",{enumerable:!0,get:function(){return T6.strConcat}});Object.defineProperty(J4,"nil",{enumerable:!0,get:function(){return T6.nil}});Object.defineProperty(J4,"getProperty",{enumerable:!0,get:function(){return T6.getProperty}});Object.defineProperty(J4,"stringify",{enumerable:!0,get:function(){return T6.stringify}});Object.defineProperty(J4,"regexpCode",{enumerable:!0,get:function(){return T6.regexpCode}});Object.defineProperty(J4,"Name",{enumerable:!0,get:function(){return T6.Name}});var KQ=LG();Object.defineProperty(J4,"Scope",{enumerable:!0,get:function(){return KQ.Scope}});Object.defineProperty(J4,"ValueScope",{enumerable:!0,get:function(){return KQ.ValueScope}});Object.defineProperty(J4,"ValueScopeName",{enumerable:!0,get:function(){return KQ.ValueScopeName}});Object.defineProperty(J4,"varKinds",{enumerable:!0,get:function(){return KQ.varKinds}});J4.operators={GT:new Q$._Code(">"),GTE:new Q$._Code(">="),LT:new Q$._Code("<"),LTE:new Q$._Code("<="),EQ:new Q$._Code("==="),NEQ:new Q$._Code("!=="),NOT:new Q$._Code("!"),OR:new Q$._Code("||"),AND:new Q$._Code("&&"),ADD:new Q$._Code("+")};class f6{optimizeNodes(){return this}optimizeNames($,X){return this}}class BH extends f6{constructor($,X,J){super();this.varKind=$,this.name=X,this.rhs=J}render({es5:$,_n:X}){let J=$?x4.varKinds.var:this.varKind,Q=this.rhs===void 0?"":` = ${this.rhs}`;return`${J} ${this.name}${Q};`+X}optimizeNames($,X){if(!$[this.name.str])return;if(this.rhs)this.rhs=Z0(this.rhs,$,X);return this}get names(){return this.rhs instanceof Q$._CodeOrName?this.rhs.names:{}}}class IG extends f6{constructor($,X,J){super();this.lhs=$,this.rhs=X,this.sideEffects=J}render({_n:$}){return`${this.lhs} = ${this.rhs};`+$}optimizeNames($,X){if(this.lhs instanceof Q$.Name&&!$[this.lhs.str]&&!this.sideEffects)return;return this.rhs=Z0(this.rhs,$,X),this}get names(){let $=this.lhs instanceof Q$.Name?{}:{...this.lhs.names};return UQ($,this.rhs)}}class jH extends IG{constructor($,X,J,Q){super($,J,Q);this.op=X}render({_n:$}){return`${this.lhs} ${this.op}= ${this.rhs};`+$}}class DH extends f6{constructor($){super();this.label=$,this.names={}}render({_n:$}){return`${this.label}:`+$}}class qH extends f6{constructor($){super();this.label=$,this.names={}}render({_n:$}){return`break${this.label?` ${this.label}`:""};`+$}}class LH extends f6{constructor($){super();this.error=$}render({_n:$}){return`throw ${this.error};`+$}get names(){return this.error.names}}class FH extends f6{constructor($){super();this.code=$}render({_n:$}){return`${this.code};`+$}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames($,X){return this.code=Z0(this.code,$,X),this}get names(){return this.code instanceof Q$._CodeOrName?this.code.names:{}}}class wQ extends f6{constructor($=[]){super();this.nodes=$}render($){return this.nodes.reduce((X,J)=>X+J.render($),"")}optimizeNodes(){let{nodes:$}=this,X=$.length;while(X--){let J=$[X].optimizeNodes();if(Array.isArray(J))$.splice(X,1,...J);else if(J)$[X]=J;else $.splice(X,1)}return $.length>0?this:void 0}optimizeNames($,X){let{nodes:J}=this,Q=J.length;while(Q--){let z=J[Q];if(z.optimizeNames($,X))continue;dP($,z.names),J.splice(Q,1)}return J.length>0?this:void 0}get names(){return this.nodes.reduce(($,X)=>q1($,X.names),{})}}class g6 extends wQ{render($){return"{"+$._n+super.render($)+"}"+$._n}}class MH extends wQ{}class w8 extends g6{}w8.kind="else";class K6 extends g6{constructor($,X){super(X);this.condition=$}render($){let X=`if(${this.condition})`+super.render($);if(this.else)X+="else "+this.else.render($);return X}optimizeNodes(){super.optimizeNodes();let $=this.condition;if($===!0)return this.nodes;let X=this.else;if(X){let J=X.optimizeNodes();X=this.else=Array.isArray(J)?new w8(J):J}if(X){if($===!1)return X instanceof K6?X:X.nodes;if(this.nodes.length)return this;return new K6(ZH($),X instanceof K6?[X]:X.nodes)}if($===!1||!this.nodes.length)return;return this}optimizeNames($,X){var J;if(this.else=(J=this.else)===null||J===void 0?void 0:J.optimizeNames($,X),!(super.optimizeNames($,X)||this.else))return;return this.condition=Z0(this.condition,$,X),this}get names(){let $=super.names;if(UQ($,this.condition),this.else)q1($,this.else.names);return $}}K6.kind="if";class P0 extends g6{}P0.kind="for";class IH extends P0{constructor($){super();this.iteration=$}render($){return`for(${this.iteration})`+super.render($)}optimizeNames($,X){if(!super.optimizeNames($,X))return;return this.iteration=Z0(this.iteration,$,X),this}get names(){return q1(super.names,this.iteration.names)}}class AH extends P0{constructor($,X,J,Q){super();this.varKind=$,this.name=X,this.from=J,this.to=Q}render($){let X=$.es5?x4.varKinds.var:this.varKind,{name:J,from:Q,to:z}=this;return`for(${X} ${J}=${Q}; ${J}<${z}; ${J}++)`+super.render($)}get names(){let $=UQ(super.names,this.from);return UQ($,this.to)}}class FG extends P0{constructor($,X,J,Q){super();this.loop=$,this.varKind=X,this.name=J,this.iterable=Q}render($){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render($)}optimizeNames($,X){if(!super.optimizeNames($,X))return;return this.iterable=Z0(this.iterable,$,X),this}get names(){return q1(super.names,this.iterable.names)}}class QQ extends g6{constructor($,X,J){super();this.name=$,this.args=X,this.async=J}render($){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render($)}}QQ.kind="func";class YQ extends wQ{render($){return"return "+super.render($)}}YQ.kind="return";class bH extends g6{render($){let X="try"+super.render($);if(this.catch)X+=this.catch.render($);if(this.finally)X+=this.finally.render($);return X}optimizeNodes(){var $,X;return super.optimizeNodes(),($=this.catch)===null||$===void 0||$.optimizeNodes(),(X=this.finally)===null||X===void 0||X.optimizeNodes(),this}optimizeNames($,X){var J,Q;return super.optimizeNames($,X),(J=this.catch)===null||J===void 0||J.optimizeNames($,X),(Q=this.finally)===null||Q===void 0||Q.optimizeNames($,X),this}get names(){let $=super.names;if(this.catch)q1($,this.catch.names);if(this.finally)q1($,this.finally.names);return $}}class WQ extends g6{constructor($){super();this.error=$}render($){return`catch(${this.error})`+super.render($)}}WQ.kind="catch";class GQ extends g6{render($){return"finally"+super.render($)}}GQ.kind="finally";class PH{constructor($,X={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...X,_n:X.lines?`
|
|
5
5
|
`:""},this._extScope=$,this._scope=new x4.Scope({parent:$}),this._nodes=[new MH]}toString(){return this._root.render(this.opts)}name($){return this._scope.name($)}scopeName($){return this._extScope.name($)}scopeValue($,X){let J=this._extScope.value($,X);return(this._values[J.prefix]||(this._values[J.prefix]=new Set)).add(J),J}getScopeValue($,X){return this._extScope.getValue($,X)}scopeRefs($){return this._extScope.scopeRefs($,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def($,X,J,Q){let z=this._scope.toName(X);if(J!==void 0&&Q)this._constants[z.str]=J;return this._leafNode(new BH($,z,J)),z}const($,X,J){return this._def(x4.varKinds.const,$,X,J)}let($,X,J){return this._def(x4.varKinds.let,$,X,J)}var($,X,J){return this._def(x4.varKinds.var,$,X,J)}assign($,X,J){return this._leafNode(new IG($,X,J))}add($,X){return this._leafNode(new jH($,J4.operators.ADD,X))}code($){if(typeof $=="function")$();else if($!==Q$.nil)this._leafNode(new FH($));return this}object(...$){let X=["{"];for(let[J,Q]of $){if(X.length>1)X.push(",");if(X.push(J),J!==Q||this.opts.es5)X.push(":"),(0,Q$.addCodeArg)(X,Q)}return X.push("}"),new Q$._Code(X)}if($,X,J){if(this._blockNode(new K6($)),X&&J)this.code(X).else().code(J).endIf();else if(X)this.code(X).endIf();else if(J)throw Error('CodeGen: "else" body without "then" body');return this}elseIf($){return this._elseNode(new K6($))}else(){return this._elseNode(new w8)}endIf(){return this._endBlockNode(K6,w8)}_for($,X){if(this._blockNode($),X)this.code(X).endFor();return this}for($,X){return this._for(new IH($),X)}forRange($,X,J,Q,z=this.opts.es5?x4.varKinds.var:x4.varKinds.let){let Y=this._scope.toName($);return this._for(new AH(z,Y,X,J),()=>Q(Y))}forOf($,X,J,Q=x4.varKinds.const){let z=this._scope.toName($);if(this.opts.es5){let Y=X instanceof Q$.Name?X:this.var("_arr",X);return this.forRange("_i",0,Q$._`${Y}.length`,(W)=>{this.var(z,Q$._`${Y}[${W}]`),J(z)})}return this._for(new FG("of",Q,z,X),()=>J(z))}forIn($,X,J,Q=this.opts.es5?x4.varKinds.var:x4.varKinds.const){if(this.opts.ownProperties)return this.forOf($,Q$._`Object.keys(${X})`,J);let z=this._scope.toName($);return this._for(new FG("in",Q,z,X),()=>J(z))}endFor(){return this._endBlockNode(P0)}label($){return this._leafNode(new DH($))}break($){return this._leafNode(new qH($))}return($){let X=new YQ;if(this._blockNode(X),this.code($),X.nodes.length!==1)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(YQ)}try($,X,J){if(!X&&!J)throw Error('CodeGen: "try" without "catch" and "finally"');let Q=new bH;if(this._blockNode(Q),this.code($),X){let z=this.name("e");this._currNode=Q.catch=new WQ(z),X(z)}if(J)this._currNode=Q.finally=new GQ,this.code(J);return this._endBlockNode(WQ,GQ)}throw($){return this._leafNode(new LH($))}block($,X){if(this._blockStarts.push(this._nodes.length),$)this.code($).endBlock(X);return this}endBlock($){let X=this._blockStarts.pop();if(X===void 0)throw Error("CodeGen: not in self-balancing block");let J=this._nodes.length-X;if(J<0||$!==void 0&&J!==$)throw Error(`CodeGen: wrong number of nodes: ${J} vs ${$} expected`);return this._nodes.length=X,this}func($,X=Q$.nil,J,Q){if(this._blockNode(new QQ($,X,J)),Q)this.code(Q).endFunc();return this}endFunc(){return this._endBlockNode(QQ)}optimize($=1){while($-- >0)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode($){return this._currNode.nodes.push($),this}_blockNode($){this._currNode.nodes.push($),this._nodes.push($)}_endBlockNode($,X){let J=this._currNode;if(J instanceof $||X&&J instanceof X)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${X?`${$.kind}/${X.kind}`:$.kind}"`)}_elseNode($){let X=this._currNode;if(!(X instanceof K6))throw Error('CodeGen: "else" without "if"');return this._currNode=X.else=$,this}get _root(){return this._nodes[0]}get _currNode(){let $=this._nodes;return $[$.length-1]}set _currNode($){let X=this._nodes;X[X.length-1]=$}}J4.CodeGen=PH;function q1($,X){for(let J in X)$[J]=($[J]||0)+(X[J]||0);return $}function UQ($,X){return X instanceof Q$._CodeOrName?q1($,X.names):$}function Z0($,X,J){if($ instanceof Q$.Name)return Q($);if(!z($))return $;return new Q$._Code($._items.reduce((Y,W)=>{if(W instanceof Q$.Name)W=Q(W);if(W instanceof Q$._Code)Y.push(...W._items);else Y.push(W);return Y},[]));function Q(Y){let W=J[Y.str];if(W===void 0||X[Y.str]!==1)return Y;return delete X[Y.str],W}function z(Y){return Y instanceof Q$._Code&&Y._items.some((W)=>W instanceof Q$.Name&&X[W.str]===1&&J[W.str]!==void 0)}}function dP($,X){for(let J in X)$[J]=($[J]||0)-(X[J]||0)}function ZH($){return typeof $=="boolean"||typeof $=="number"||$===null?!$:Q$._`!${MG($)}`}J4.not=ZH;var rP=SH(J4.operators.AND);function oP(...$){return $.reduce(rP)}J4.and=oP;var tP=SH(J4.operators.OR);function aP(...$){return $.reduce(tP)}J4.or=aP;function SH($){return(X,J)=>X===Q$.nil?J:J===Q$.nil?X:Q$._`${MG(X)} ${$} ${MG(J)}`}function MG($){return $ instanceof Q$.Name?$:Q$._`(${$})`}});var Y$=x((fH)=>{Object.defineProperty(fH,"__esModule",{value:!0});fH.checkStrictMode=fH.getErrorPath=fH.Type=fH.useFunc=fH.setEvaluated=fH.evaluatedPropsToName=fH.mergeEvaluated=fH.eachItem=fH.unescapeJsonPointer=fH.escapeJsonPointer=fH.escapeFragment=fH.unescapeFragment=fH.schemaRefOrVal=fH.schemaHasRulesButRef=fH.schemaHasRules=fH.checkUnknownRules=fH.alwaysValidSchema=fH.toHash=void 0;var B$=s(),XZ=K8();function JZ($){let X={};for(let J of $)X[J]=!0;return X}fH.toHash=JZ;function zZ($,X){if(typeof X=="boolean")return X;if(Object.keys(X).length===0)return!0;return CH($,X),!kH(X,$.self.RULES.all)}fH.alwaysValidSchema=zZ;function CH($,X=$.schema){let{opts:J,self:Q}=$;if(!J.strictSchema)return;if(typeof X==="boolean")return;let z=Q.RULES.keywords;for(let Y in X)if(!z[Y])TH($,`unknown keyword: "${Y}"`)}fH.checkUnknownRules=CH;function kH($,X){if(typeof $=="boolean")return!$;for(let J in $)if(X[J])return!0;return!1}fH.schemaHasRules=kH;function QZ($,X){if(typeof $=="boolean")return!$;for(let J in $)if(J!=="$ref"&&X.all[J])return!0;return!1}fH.schemaHasRulesButRef=QZ;function YZ({topSchemaRef:$,schemaPath:X},J,Q,z){if(!z){if(typeof J=="number"||typeof J=="boolean")return J;if(typeof J=="string")return B$._`${J}`}return B$._`${$}${X}${(0,B$.getProperty)(Q)}`}fH.schemaRefOrVal=YZ;function WZ($){return _H(decodeURIComponent($))}fH.unescapeFragment=WZ;function GZ($){return encodeURIComponent(bG($))}fH.escapeFragment=GZ;function bG($){if(typeof $=="number")return`${$}`;return $.replace(/~/g,"~0").replace(/\//g,"~1")}fH.escapeJsonPointer=bG;function _H($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}fH.unescapeJsonPointer=_H;function UZ($,X){if(Array.isArray($))for(let J of $)X(J);else X($)}fH.eachItem=UZ;function EH({mergeNames:$,mergeToName:X,mergeValues:J,resultToName:Q}){return(z,Y,W,G)=>{let U=W===void 0?Y:W instanceof B$.Name?(Y instanceof B$.Name?$(z,Y,W):X(z,Y,W),W):Y instanceof B$.Name?(X(z,W,Y),Y):J(Y,W);return G===B$.Name&&!(U instanceof B$.Name)?Q(z,U):U}}fH.mergeEvaluated={props:EH({mergeNames:($,X,J)=>$.if(B$._`${J} !== true && ${X} !== undefined`,()=>{$.if(B$._`${X} === true`,()=>$.assign(J,!0),()=>$.assign(J,B$._`${J} || {}`).code(B$._`Object.assign(${J}, ${X})`))}),mergeToName:($,X,J)=>$.if(B$._`${J} !== true`,()=>{if(X===!0)$.assign(J,!0);else $.assign(J,B$._`${J} || {}`),PG($,J,X)}),mergeValues:($,X)=>$===!0?!0:{...$,...X},resultToName:xH}),items:EH({mergeNames:($,X,J)=>$.if(B$._`${J} !== true && ${X} !== undefined`,()=>$.assign(J,B$._`${X} === true ? true : ${J} > ${X} ? ${J} : ${X}`)),mergeToName:($,X,J)=>$.if(B$._`${J} !== true`,()=>$.assign(J,X===!0?!0:B$._`${J} > ${X} ? ${J} : ${X}`)),mergeValues:($,X)=>$===!0?!0:Math.max($,X),resultToName:($,X)=>$.var("items",X)})};function xH($,X){if(X===!0)return $.var("props",!0);let J=$.var("props",B$._`{}`);if(X!==void 0)PG($,J,X);return J}fH.evaluatedPropsToName=xH;function PG($,X,J){Object.keys(J).forEach((Q)=>$.assign(B$._`${X}${(0,B$.getProperty)(Q)}`,!0))}fH.setEvaluated=PG;var vH={};function KZ($,X){return $.scopeValue("func",{ref:X,code:vH[X.code]||(vH[X.code]=new XZ._Code(X.code))})}fH.useFunc=KZ;var AG;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(AG||(fH.Type=AG={}));function wZ($,X,J){if($ instanceof B$.Name){let Q=X===AG.Num;return J?Q?B$._`"[" + ${$} + "]"`:B$._`"['" + ${$} + "']"`:Q?B$._`"/" + ${$}`:B$._`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return J?(0,B$.getProperty)($).toString():"/"+bG($)}fH.getErrorPath=wZ;function TH($,X,J=$.opts.strictSchema){if(!J)return;if(X=`strict mode: ${X}`,J===!0)throw Error(X);$.self.logger.warn(X)}fH.checkStrictMode=TH});var w6=x((yH)=>{Object.defineProperty(yH,"__esModule",{value:!0});var i$=s(),RZ={data:new i$.Name("data"),valCxt:new i$.Name("valCxt"),instancePath:new i$.Name("instancePath"),parentData:new i$.Name("parentData"),parentDataProperty:new i$.Name("parentDataProperty"),rootData:new i$.Name("rootData"),dynamicAnchors:new i$.Name("dynamicAnchors"),vErrors:new i$.Name("vErrors"),errors:new i$.Name("errors"),this:new i$.Name("this"),self:new i$.Name("self"),scope:new i$.Name("scope"),json:new i$.Name("json"),jsonPos:new i$.Name("jsonPos"),jsonLen:new i$.Name("jsonLen"),jsonPart:new i$.Name("jsonPart")};yH.default=RZ});var V8=x((mH)=>{Object.defineProperty(mH,"__esModule",{value:!0});mH.extendErrors=mH.resetErrorsCount=mH.reportExtraError=mH.reportError=mH.keyword$DataError=mH.keywordError=void 0;var W$=s(),NQ=Y$(),r$=w6();mH.keywordError={message:({keyword:$})=>W$.str`must pass "${$}" keyword validation`};mH.keyword$DataError={message:({keyword:$,schemaType:X})=>X?W$.str`"${$}" keyword must be ${X} ($data)`:W$.str`"${$}" keyword is invalid ($data)`};function vZ($,X=mH.keywordError,J,Q){let{it:z}=$,{gen:Y,compositeRule:W,allErrors:G}=z,U=lH($,X,J);if(Q!==null&&Q!==void 0?Q:W||G)hH(Y,U);else uH(z,W$._`[${U}]`)}mH.reportError=vZ;function CZ($,X=mH.keywordError,J){let{it:Q}=$,{gen:z,compositeRule:Y,allErrors:W}=Q,G=lH($,X,J);if(hH(z,G),!(Y||W))uH(Q,r$.default.vErrors)}mH.reportExtraError=CZ;function kZ($,X){$.assign(r$.default.errors,X),$.if(W$._`${r$.default.vErrors} !== null`,()=>$.if(X,()=>$.assign(W$._`${r$.default.vErrors}.length`,X),()=>$.assign(r$.default.vErrors,null)))}mH.resetErrorsCount=kZ;function _Z({gen:$,keyword:X,schemaValue:J,data:Q,errsCount:z,it:Y}){if(z===void 0)throw Error("ajv implementation error");let W=$.name("err");$.forRange("i",z,r$.default.errors,(G)=>{if($.const(W,W$._`${r$.default.vErrors}[${G}]`),$.if(W$._`${W}.instancePath === undefined`,()=>$.assign(W$._`${W}.instancePath`,(0,W$.strConcat)(r$.default.instancePath,Y.errorPath))),$.assign(W$._`${W}.schemaPath`,W$.str`${Y.errSchemaPath}/${X}`),Y.opts.verbose)$.assign(W$._`${W}.schema`,J),$.assign(W$._`${W}.data`,Q)})}mH.extendErrors=_Z;function hH($,X){let J=$.const("err",X);$.if(W$._`${r$.default.vErrors} === null`,()=>$.assign(r$.default.vErrors,W$._`[${J}]`),W$._`${r$.default.vErrors}.push(${J})`),$.code(W$._`${r$.default.errors}++`)}function uH($,X){let{gen:J,validateName:Q,schemaEnv:z}=$;if(z.$async)J.throw(W$._`new ${$.ValidationError}(${X})`);else J.assign(W$._`${Q}.errors`,X),J.return(!1)}var L1={keyword:new W$.Name("keyword"),schemaPath:new W$.Name("schemaPath"),params:new W$.Name("params"),propertyName:new W$.Name("propertyName"),message:new W$.Name("message"),schema:new W$.Name("schema"),parentSchema:new W$.Name("parentSchema")};function lH($,X,J){let{createErrors:Q}=$.it;if(Q===!1)return W$._`{}`;return xZ($,X,J)}function xZ($,X,J={}){let{gen:Q,it:z}=$,Y=[TZ(z,J),fZ($,J)];return gZ($,X,Y),Q.object(...Y)}function TZ({errorPath:$},{instancePath:X}){let J=X?W$.str`${$}${(0,NQ.getErrorPath)(X,NQ.Type.Str)}`:$;return[r$.default.instancePath,(0,W$.strConcat)(r$.default.instancePath,J)]}function fZ({keyword:$,it:{errSchemaPath:X}},{schemaPath:J,parentSchema:Q}){let z=Q?X:W$.str`${X}/${$}`;if(J)z=W$.str`${z}${(0,NQ.getErrorPath)(J,NQ.Type.Str)}`;return[L1.schemaPath,z]}function gZ($,{params:X,message:J},Q){let{keyword:z,data:Y,schemaValue:W,it:G}=$,{opts:U,propertyName:K,topSchemaRef:w,schemaPath:V}=G;if(Q.push([L1.keyword,z],[L1.params,typeof X=="function"?X($):X||W$._`{}`]),U.messages)Q.push([L1.message,typeof J=="function"?J($):J]);if(U.verbose)Q.push([L1.schema,W],[L1.parentSchema,W$._`${w}${V}`],[r$.default.data,Y]);if(K)Q.push([L1.propertyName,K])}});var dH=x((nH)=>{Object.defineProperty(nH,"__esModule",{value:!0});nH.boolOrEmptySchema=nH.topBoolOrEmptySchema=void 0;var mZ=V8(),cZ=s(),iZ=w6(),nZ={message:"boolean schema is false"};function pZ($){let{gen:X,schema:J,validateName:Q}=$;if(J===!1)iH($,!1);else if(typeof J=="object"&&J.$async===!0)X.return(iZ.default.data);else X.assign(cZ._`${Q}.errors`,null),X.return(!0)}nH.topBoolOrEmptySchema=pZ;function dZ($,X){let{gen:J,schema:Q}=$;if(Q===!1)J.var(X,!1),iH($);else J.var(X,!0)}nH.boolOrEmptySchema=dZ;function iH($,X){let{gen:J,data:Q}=$,z={gen:J,keyword:"false schema",data:Q,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:$};(0,mZ.reportError)(z,nZ,void 0,X)}});var SG=x((rH)=>{Object.defineProperty(rH,"__esModule",{value:!0});rH.getRules=rH.isJSONType=void 0;var oZ=["string","number","integer","boolean","null","object","array"],tZ=new Set(oZ);function aZ($){return typeof $=="string"&&tZ.has($)}rH.isJSONType=aZ;function sZ(){let $={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...$,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},$.number,$.string,$.array,$.object],post:{rules:[]},all:{},keywords:{}}}rH.getRules=sZ});var RG=x((sH)=>{Object.defineProperty(sH,"__esModule",{value:!0});sH.shouldUseRule=sH.shouldUseGroup=sH.schemaHasRulesForType=void 0;function $S({schema:$,self:X},J){let Q=X.RULES.types[J];return Q&&Q!==!0&&tH($,Q)}sH.schemaHasRulesForType=$S;function tH($,X){return X.rules.some((J)=>aH($,J))}sH.shouldUseGroup=tH;function aH($,X){var J;return $[X.keyword]!==void 0||((J=X.definition.implements)===null||J===void 0?void 0:J.some((Q)=>$[Q]!==void 0))}sH.shouldUseRule=aH});var N8=x((zO)=>{Object.defineProperty(zO,"__esModule",{value:!0});zO.reportTypeError=zO.checkDataTypes=zO.checkDataType=zO.coerceAndCheckDataType=zO.getJSONTypes=zO.getSchemaTypes=zO.DataType=void 0;var zS=SG(),QS=RG(),YS=V8(),a=s(),$O=Y$(),S0;(function($){$[$.Correct=0]="Correct",$[$.Wrong=1]="Wrong"})(S0||(zO.DataType=S0={}));function WS($){let X=XO($.type);if(X.includes("null")){if($.nullable===!1)throw Error("type: null contradicts nullable: false")}else{if(!X.length&&$.nullable!==void 0)throw Error('"nullable" cannot be used without "type"');if($.nullable===!0)X.push("null")}return X}zO.getSchemaTypes=WS;function XO($){let X=Array.isArray($)?$:$?[$]:[];if(X.every(zS.isJSONType))return X;throw Error("type must be JSONType or JSONType[]: "+X.join(","))}zO.getJSONTypes=XO;function GS($,X){let{gen:J,data:Q,opts:z}=$,Y=US(X,z.coerceTypes),W=X.length>0&&!(Y.length===0&&X.length===1&&(0,QS.schemaHasRulesForType)($,X[0]));if(W){let G=vG(X,Q,z.strictNumbers,S0.Wrong);J.if(G,()=>{if(Y.length)KS($,X,Y);else CG($)})}return W}zO.coerceAndCheckDataType=GS;var JO=new Set(["string","number","integer","boolean","null"]);function US($,X){return X?$.filter((J)=>JO.has(J)||X==="array"&&J==="array"):[]}function KS($,X,J){let{gen:Q,data:z,opts:Y}=$,W=Q.let("dataType",a._`typeof ${z}`),G=Q.let("coerced",a._`undefined`);if(Y.coerceTypes==="array")Q.if(a._`${W} == 'object' && Array.isArray(${z}) && ${z}.length == 1`,()=>Q.assign(z,a._`${z}[0]`).assign(W,a._`typeof ${z}`).if(vG(X,z,Y.strictNumbers),()=>Q.assign(G,z)));Q.if(a._`${G} !== undefined`);for(let K of J)if(JO.has(K)||K==="array"&&Y.coerceTypes==="array")U(K);Q.else(),CG($),Q.endIf(),Q.if(a._`${G} !== undefined`,()=>{Q.assign(z,G),wS($,G)});function U(K){switch(K){case"string":Q.elseIf(a._`${W} == "number" || ${W} == "boolean"`).assign(G,a._`"" + ${z}`).elseIf(a._`${z} === null`).assign(G,a._`""`);return;case"number":Q.elseIf(a._`${W} == "boolean" || ${z} === null
|
|
6
6
|
|| (${W} == "string" && ${z} && ${z} == +${z})`).assign(G,a._`+${z}`);return;case"integer":Q.elseIf(a._`${W} === "boolean" || ${z} === null
|
package/manifest.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-05-
|
|
2
|
+
"version": "2.1.156",
|
|
3
|
+
"commit": "de3d672b5e8c35ae78d81c9dd83844d334ec63af",
|
|
4
|
+
"buildDate": "2026-05-28T18:38:44Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "9c1e8601031f5cbb3101e49dda22bf8ba31183692c705e267a6923585fa2ba09",
|
|
9
|
+
"size": 214986144
|
|
10
10
|
},
|
|
11
11
|
"darwin-x64": {
|
|
12
12
|
"binary": "claude",
|
|
13
|
-
"checksum": "
|
|
14
|
-
"size":
|
|
13
|
+
"checksum": "ccd608c694677324e24dec7d1253b51f887a7be838cdb75b22d5362c97351107",
|
|
14
|
+
"size": 217500304
|
|
15
15
|
},
|
|
16
16
|
"linux-arm64": {
|
|
17
17
|
"binary": "claude",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "7ed95d0a93aeb40e2b98e234b760d9295b7044ef678c62db8d1f5e14bfd57878",
|
|
19
|
+
"size": 240301704
|
|
20
20
|
},
|
|
21
21
|
"linux-x64": {
|
|
22
22
|
"binary": "claude",
|
|
23
|
-
"checksum": "
|
|
24
|
-
"size":
|
|
23
|
+
"checksum": "6d83cd2264450c5e54fc988be1032c288cf418ee604294acfb8fc4ac28f5f7a3",
|
|
24
|
+
"size": 240420560
|
|
25
25
|
},
|
|
26
26
|
"linux-arm64-musl": {
|
|
27
27
|
"binary": "claude",
|
|
28
|
-
"checksum": "
|
|
29
|
-
"size":
|
|
28
|
+
"checksum": "858aa70793d5ba6293ae64b0e351514040a6e1021e9b2bac7129a791216505ce",
|
|
29
|
+
"size": 233156440
|
|
30
30
|
},
|
|
31
31
|
"linux-x64-musl": {
|
|
32
32
|
"binary": "claude",
|
|
33
|
-
"checksum": "
|
|
34
|
-
"size":
|
|
33
|
+
"checksum": "a594c2a56f7333816b85f53ed0501399b49bd44c05f25b315869b5b102ff34c3",
|
|
34
|
+
"size": 234814512
|
|
35
35
|
},
|
|
36
36
|
"win32-x64": {
|
|
37
37
|
"binary": "claude.exe",
|
|
38
|
-
"checksum": "
|
|
39
|
-
"size":
|
|
38
|
+
"checksum": "188cc105e1caaed88f63ac2060283eb426ea17a69130810c10126b2c14f7dc7e",
|
|
39
|
+
"size": 236074144
|
|
40
40
|
},
|
|
41
41
|
"win32-arm64": {
|
|
42
42
|
"binary": "claude.exe",
|
|
43
|
-
"checksum": "
|
|
44
|
-
"size":
|
|
43
|
+
"checksum": "1e10b4fa9e8a4829cfdf77a9c55cfe0dd26c54f2afb4d3dd9d19ff9e99ca1887",
|
|
44
|
+
"size": 232039072
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"commit": "
|
|
4
|
-
"buildDate": "2026-05-
|
|
2
|
+
"version": "2.1.156",
|
|
3
|
+
"commit": "de3d672b5e8c35ae78d81c9dd83844d334ec63af",
|
|
4
|
+
"buildDate": "2026-05-28T18:46:28Z",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"binary": "claude.zst",
|
|
8
|
-
"checksum": "
|
|
9
|
-
"size":
|
|
8
|
+
"checksum": "ef1d06de9dad9ef0b9c408083748f3c76eb8d163f370eff0ab38d4bef9586e2c",
|
|
9
|
+
"size": 44355013,
|
|
10
10
|
"bundle": {
|
|
11
|
-
"checksum": "
|
|
12
|
-
"size":
|
|
11
|
+
"checksum": "878e9eb859dfb877eed42d8a83ab1940b638506d37abd6979ddca1ab0670b28e",
|
|
12
|
+
"size": 44356884
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"darwin-x64": {
|
|
16
16
|
"binary": "claude.zst",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "73750963a2bac3f5290afc2581b0ebbcfd6445f4d5b687b734a05742414ed7a3",
|
|
18
|
+
"size": 46259340,
|
|
19
19
|
"bundle": {
|
|
20
|
-
"checksum": "
|
|
21
|
-
"size":
|
|
20
|
+
"checksum": "90fabef0afe7352402712b784b9e790c3485a2c1d24c3c29544ea86d9a69abcf",
|
|
21
|
+
"size": 46267708
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"linux-arm64": {
|
|
25
25
|
"binary": "claude.zst",
|
|
26
|
-
"checksum": "
|
|
27
|
-
"size":
|
|
26
|
+
"checksum": "83f58f60ed9d50aa682262360c1770bc54a695114355d8e3a9b9864dfe1b32fe",
|
|
27
|
+
"size": 52075602
|
|
28
28
|
},
|
|
29
29
|
"linux-x64": {
|
|
30
30
|
"binary": "claude.zst",
|
|
31
|
-
"checksum": "
|
|
32
|
-
"size":
|
|
31
|
+
"checksum": "fba8bf8eaa943a387ae226d1941e02097913a9a6d3cc22ecac9dab8ea4c4e9cd",
|
|
32
|
+
"size": 52707007
|
|
33
33
|
},
|
|
34
34
|
"linux-arm64-musl": {
|
|
35
35
|
"binary": "claude.zst",
|
|
36
|
-
"checksum": "
|
|
37
|
-
"size":
|
|
36
|
+
"checksum": "79f767de07af8f2da054a0e68ae265770910f12d604d1b8bffb304867462c56f",
|
|
37
|
+
"size": 50698548
|
|
38
38
|
},
|
|
39
39
|
"linux-x64-musl": {
|
|
40
40
|
"binary": "claude.zst",
|
|
41
|
-
"checksum": "
|
|
42
|
-
"size":
|
|
41
|
+
"checksum": "c8d1796fc7f5ca96380e6a8c0e74df781c4641c934a5d50900171e7e883838d8",
|
|
42
|
+
"size": 51405617
|
|
43
43
|
},
|
|
44
44
|
"win32-x64": {
|
|
45
45
|
"binary": "claude.exe.zst",
|
|
46
|
-
"checksum": "
|
|
47
|
-
"size":
|
|
46
|
+
"checksum": "e0c59484eb7ac6bf4773f5a5ebe91c792f7f5db07a7789775d13c149e3c5505e",
|
|
47
|
+
"size": 53436360
|
|
48
48
|
},
|
|
49
49
|
"win32-arm64": {
|
|
50
50
|
"binary": "claude.exe.zst",
|
|
51
|
-
"checksum": "
|
|
52
|
-
"size":
|
|
51
|
+
"checksum": "c220d8a0e815603644c99e1f6f67ea997109c7fe4cfdc978b5ca95046335bbf5",
|
|
52
|
+
"size": 51723669
|
|
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.
|
|
3
|
+
"version": "0.3.156",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"zod": "^4.0.0"
|
|
62
62
|
},
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
68
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
69
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
70
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
71
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.156",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.156",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.156",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.156",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.156",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.156",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.156",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.156"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"sdk.mjs",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"manifest.json",
|
|
87
87
|
"manifest.zst.json"
|
|
88
88
|
],
|
|
89
|
-
"claudeCodeVersion": "2.1.
|
|
89
|
+
"claudeCodeVersion": "2.1.156"
|
|
90
90
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -2282,7 +2282,7 @@ export interface WorkflowInput {
|
|
|
2282
2282
|
*/
|
|
2283
2283
|
title?: string;
|
|
2284
2284
|
/**
|
|
2285
|
-
* Optional input value exposed to the script as the global `args
|
|
2285
|
+
* Optional input value exposed to the script as the global `args`, verbatim. Pass arrays/objects as actual JSON values, NOT as a JSON-encoded string — a stringified list breaks `args.filter`/`args.map` in the script. Use for parameterized named workflows (e.g. a research question).
|
|
2286
2286
|
*/
|
|
2287
2287
|
args?: {
|
|
2288
2288
|
[k: string]: unknown;
|
|
@@ -2458,6 +2458,36 @@ export interface BashOutput {
|
|
|
2458
2458
|
* Model-facing system-reminder appended when a gh command reports a GitHub API rate-limit error
|
|
2459
2459
|
*/
|
|
2460
2460
|
ghRateLimitHint?: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* @internal Structured classification of git/gh operations detected in this command (commit/push/merge/rebase/PR). Client-facing — lets clients render git activity without re-parsing stdout; not surfaced to the model.
|
|
2463
|
+
*/
|
|
2464
|
+
gitOperation?: {
|
|
2465
|
+
commit?: {
|
|
2466
|
+
sha: string;
|
|
2467
|
+
kind: "committed" | "amended" | "cherry-picked";
|
|
2468
|
+
};
|
|
2469
|
+
push?: {
|
|
2470
|
+
branch: string;
|
|
2471
|
+
};
|
|
2472
|
+
branch?: {
|
|
2473
|
+
ref: string;
|
|
2474
|
+
action: "merged" | "rebased";
|
|
2475
|
+
};
|
|
2476
|
+
pr?: {
|
|
2477
|
+
number: number;
|
|
2478
|
+
url?: string;
|
|
2479
|
+
action:
|
|
2480
|
+
| "created"
|
|
2481
|
+
| "edited"
|
|
2482
|
+
| "merged"
|
|
2483
|
+
| "commented"
|
|
2484
|
+
| "closed"
|
|
2485
|
+
| "ready"
|
|
2486
|
+
| "draft"
|
|
2487
|
+
| "auto-merge-enabled"
|
|
2488
|
+
| "auto-merge-disabled";
|
|
2489
|
+
};
|
|
2490
|
+
};
|
|
2461
2491
|
}
|
|
2462
2492
|
export interface ExitPlanModeOutput {
|
|
2463
2493
|
/**
|
package/sdk.d.ts
CHANGED
|
@@ -519,7 +519,7 @@ export declare function deleteSession(_sessionId: string, _options?: SessionMuta
|
|
|
519
519
|
* - `'low'` — Minimal thinking, fastest responses
|
|
520
520
|
* - `'medium'` — Moderate thinking
|
|
521
521
|
* - `'high'` — Deep reasoning (default)
|
|
522
|
-
* - `'xhigh'` — Deeper than high (Opus 4.7
|
|
522
|
+
* - `'xhigh'` — Deeper than high (Opus 4.7+; falls back to `'high'` elsewhere)
|
|
523
523
|
* - `'max'` — Maximum effort (select models only)
|
|
524
524
|
*/
|
|
525
525
|
export declare type EffortLevel = 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
@@ -1549,8 +1549,8 @@ export declare type Options = {
|
|
|
1549
1549
|
* - `'low'` — Minimal thinking, fastest responses
|
|
1550
1550
|
* - `'medium'` — Moderate thinking
|
|
1551
1551
|
* - `'high'` — Deep reasoning (default)
|
|
1552
|
-
* - `'xhigh'` — Deeper than high (Opus 4.7
|
|
1553
|
-
* - `'max'` — Maximum effort (Opus 4.6
|
|
1552
|
+
* - `'xhigh'` — Deeper than high (Opus 4.7+)
|
|
1553
|
+
* - `'max'` — Maximum effort (Opus 4.6+, Sonnet 4.6)
|
|
1554
1554
|
*
|
|
1555
1555
|
* @see https://docs.anthropic.com/en/docs/build-with-claude/effort
|
|
1556
1556
|
*/
|
|
@@ -1601,7 +1601,7 @@ export declare type Options = {
|
|
|
1601
1601
|
mcpServers?: Record<string, McpServerConfig>;
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Claude model to use. Defaults to the CLI default model.
|
|
1604
|
-
* Examples: 'claude-sonnet-4-6', 'claude-opus-4-
|
|
1604
|
+
* Examples: 'claude-sonnet-4-6', 'claude-opus-4-8'
|
|
1605
1605
|
*/
|
|
1606
1606
|
model?: string;
|
|
1607
1607
|
/**
|
|
@@ -4454,7 +4454,10 @@ export declare interface Settings {
|
|
|
4454
4454
|
* Disable Remote Control (claude.ai/code, `claude remote-control`, `--remote-control`/`--rc`, auto-start, and the in-session toggle). Typically set in managed settings.
|
|
4455
4455
|
*/
|
|
4456
4456
|
disableRemoteControl?: boolean;
|
|
4457
|
-
|
|
4457
|
+
/**
|
|
4458
|
+
* Disable the Workflows feature (also via CLAUDE_CODE_DISABLE_WORKFLOWS).
|
|
4459
|
+
*/
|
|
4460
|
+
disableWorkflows?: boolean;
|
|
4458
4461
|
/**
|
|
4459
4462
|
* Enable or disable the Workflows feature for this user. Unset = default by plan once the feature is available.
|
|
4460
4463
|
*/
|
|
@@ -5285,6 +5288,10 @@ export declare interface Settings {
|
|
|
5285
5288
|
* Persisted effort level for supported models.
|
|
5286
5289
|
*/
|
|
5287
5290
|
effortLevel?: 'low' | 'medium' | 'high' | 'xhigh';
|
|
5291
|
+
/**
|
|
5292
|
+
* Enable ultracode for the session: xhigh effort plus standing dynamic-workflow orchestration. Session-scoped — typically provided via --settings or the apply_flag_settings control request; interactive toggles never persist it. Requires workflows to be enabled and an xhigh-capable model.
|
|
5293
|
+
*/
|
|
5294
|
+
ultracode?: boolean;
|
|
5288
5295
|
/**
|
|
5289
5296
|
* Auto-compact window size
|
|
5290
5297
|
*/
|