@nuvin/agent-core 0.1.0-rc.4 → 0.1.0-rc.6
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/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-FKZ3QQWZ.js +1 -1
- package/dist/chunk-NHBKADBW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/chat-model.d.ts +2 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +9 -0
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x4666f0,_0x56d1d8){var _0x5d7313={_0x530b60:0xe4,_0x1142b3:0xe5,_0x525354:0xde,_0x563ab4:0xe8,_0x1bc747:0xe6,_0x2c9a64:0xe0,_0x89c723:0xdc,_0x2fb30c:0xda,_0x498a12:0xd8,_0x4a91ee:0xe2,_0x1f36cd:0xe7,_0x3b5157:0xe8,_0x9cbd33:0xea,_0x4fcad4:0xe5,_0x3730f2:0xe6,_0xd6c3d8:0xe6,_0x25ab4c:0xe9,_0x39f866:0xe4,_0x24c305:0xe4},_0xf4caa2={_0x20bb52:0x2ad},_0x2499c9={_0x17ed82:0x2b4},_0x40caa2=_0x4666f0();function _0x17cd87(_0x58d553,_0x4deac7,_0xc8db2f,_0x39c6bd){return _0x175e(_0x58d553- -_0x2499c9._0x17ed82,_0xc8db2f);}function _0x14abba(_0x504aff,_0x3288dd,_0x134f2a,_0x11b54d){return _0x175e(_0x3288dd- -_0xf4caa2._0x20bb52,_0x11b54d);}while(!![]){try{var _0xf45f34=parseInt(_0x17cd87(-_0x5d7313._0x530b60,-_0x5d7313._0x1142b3,-0xe3,-_0x5d7313._0x525354))/0x1+-parseInt(_0x17cd87(-0xe6,-0xec,-0xe5,-_0x5d7313._0x563ab4))/0x2*(-parseInt(_0x14abba(-0xe0,-0xe2,-0xe1,-_0x5d7313._0x1bc747))/0x3)+-parseInt(_0x14abba(-_0x5d7313._0x2c9a64,-0xe4,-0xe7,-0xe3))/0x4*(parseInt(_0x14abba(-0xe0,-0xda,-0xde,-0xd8))/0x5)+-parseInt(_0x14abba(-0xdc,-_0x5d7313._0x89c723,-_0x5d7313._0x2fb30c,-_0x5d7313._0x498a12))/0x6*(-parseInt(_0x17cd87(-_0x5d7313._0x4a91ee,-_0x5d7313._0x1f36cd,-0xdc,-_0x5d7313._0x3b5157))/0x7)+-parseInt(_0x17cd87(-_0x5d7313._0x3b5157,-_0x5d7313._0x9cbd33,-0xeb,-0xee))/0x8*(parseInt(_0x17cd87(-_0x5d7313._0x4fcad4,-0xe0,-0xe7,-_0x5d7313._0x3730f2))/0x9)+-parseInt(_0x14abba(-_0x5d7313._0xd6c3d8,-0xe0,-0xe2,-0xdb))/0xa*(-parseInt(_0x14abba(-_0x5d7313._0x25ab4c,-0xe3,-0xe3,-0xe0))/0xb)+-parseInt(_0x17cd87(-0xe0,-_0x5d7313._0x39f866,-_0x5d7313._0x24c305,-0xda))/0xc;if(_0xf45f34===_0x56d1d8)break;else _0x40caa2['push'](_0x40caa2['shift']());}catch(_0x4d35d8){_0x40caa2['push'](_0x40caa2['shift']());}}}(_0x4e42,0xdc27d));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';function _0x4e42(){var _0x3c3462=['mJiWmdK3n1jJwLf5Dq','mtqWndC2neH4EuvLAq','mta5ohvHDgTPDG','ntuWotDpsvfrtK8','mtG2otK0nwrpsNL1ta','mJCYndeYnZjjCg56tfO','oeDuwxvZEG','ntq2nZa2nMPXuKnOvW','mZmXndf1tg9OBxu','ndbfBLLpBMW','mZbYswnsDuq','mtq2u0DsBLH2'];_0x4e42=function(){return _0x3c3462;};return _0x4e42();}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x175e(_0x115eda,_0x4eb397){_0x115eda=_0x115eda-0x1c9;var _0x4e4204=_0x4e42();var _0x175ed3=_0x4e4204[_0x115eda];if(_0x175e['FrQHrD']===undefined){var _0x4940f0=function(_0x4ca632){var _0x297541='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x54f54e='',_0x54d366='';for(var _0x450202=0x0,_0x1bea17,_0x55c487,_0xf5cd5f=0x0;_0x55c487=_0x4ca632['charAt'](_0xf5cd5f++);~_0x55c487&&(_0x1bea17=_0x450202%0x4?_0x1bea17*0x40+_0x55c487:_0x55c487,_0x450202++%0x4)?_0x54f54e+=String['fromCharCode'](0xff&_0x1bea17>>(-0x2*_0x450202&0x6)):0x0){_0x55c487=_0x297541['indexOf'](_0x55c487);}for(var _0x571b25=0x0,_0x1c394e=_0x54f54e['length'];_0x571b25<_0x1c394e;_0x571b25++){_0x54d366+='%'+('00'+_0x54f54e['charCodeAt'](_0x571b25)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54d366);};_0x175e['GoaShW']=_0x4940f0,_0x175e['Ezcanw']={},_0x175e['FrQHrD']=!![];}var _0x2c2072=_0x4e4204[0x0],_0x55bb29=_0x115eda+_0x2c2072,_0x5d7dd9=_0x175e['Ezcanw'][_0x55bb29];return!_0x5d7dd9?(_0x175ed3=_0x175e['GoaShW'](_0x175ed3),_0x175e['Ezcanw'][_0x55bb29]=_0x175ed3):_0x175ed3=_0x5d7dd9,_0x175ed3;}export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -503,6 +503,15 @@ export type ToolRuntimeDispatchDecision = {
|
|
|
503
503
|
reason?: string;
|
|
504
504
|
} | {
|
|
505
505
|
action: "run";
|
|
506
|
+
/**
|
|
507
|
+
* Present when the user granted directory access as part of approving
|
|
508
|
+
* this call (dir-access prompt). Applied by the dispatcher that owns
|
|
509
|
+
* the live allowedDirs array; the tool runtime itself ignores it.
|
|
510
|
+
*/
|
|
511
|
+
grantDir?: {
|
|
512
|
+
dir: string;
|
|
513
|
+
persist: boolean;
|
|
514
|
+
};
|
|
506
515
|
};
|
|
507
516
|
export type ToolRuntimeToolCallHandler = (toolCall: ToolUseBlock, ctx: ToolExecutionContext) => Promise<ToolRuntimeDispatchDecision | undefined> | ToolRuntimeDispatchDecision | undefined;
|
|
508
517
|
export type ToolRuntimeEventHandler = (event: ToolRuntimeEvent, ctx: ToolExecutionContext) => Promise<void> | void;
|