@nuvin/agent-core 0.1.0-rc.2 → 0.1.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x31966e,_0x1ff036){var _0x8f1acb={_0x44c8a4:0x212,_0x13ea01:0x214,_0x13ed83:0x211,_0x459334:0x20e,_0x2875b4:0x459,_0x31492d:0x457,_0x355aec:0x464,_0x210bd7:0x461,_0x77bc93:0x213,_0x41309b:0x45a,_0x6a6644:0x217,_0x53838f:0x217,_0x5eb644:0x216,_0x11dee6:0x210,_0x1f2299:0x211,_0x509956:0x20c,_0x4c3a61:0x215,_0x4f814d:0x212,_0x296c73:0x20e,_0x365cbe:0x20f},_0x410c22={_0x5beca9:0x2fb},_0xb36b6e={_0x2aa234:0x373};function _0x4c611d(_0x21f4dd,_0x1c5e00,_0x4fc8c0,_0x4b2bf2){return _0xd15b(_0x1c5e00- -_0xb36b6e._0x2aa234,_0x21f4dd);}function _0x8534ee(_0x13b129,_0xa3244e,_0x373f6f,_0x3b7a25){return _0xd15b(_0x373f6f-_0x410c22._0x5beca9,_0xa3244e);}var _0xd9020e=_0x31966e();while(!![]){try{var _0x1e1502=parseInt(_0x4c611d(-0x20a,-0x20f,-0x210,-_0x8f1acb._0x44c8a4))/0x1*(parseInt(_0x4c611d(-0x20e,-0x213,-0x20e,-_0x8f1acb._0x13ea01))/0x2)+-parseInt(_0x4c611d(-_0x8f1acb._0x13ed83,-0x212,-_0x8f1acb._0x459334,-0x211))/0x3*(parseInt(_0x8534ee(0x454,0x456,_0x8f1acb._0x2875b4,_0x8f1acb._0x31492d))/0x4)+parseInt(_0x8534ee(0x458,_0x8f1acb._0x355aec,0x45e,_0x8f1acb._0x210bd7))/0x5+parseInt(_0x4c611d(-0x20a,-0x20d,-0x20b,-_0x8f1acb._0x77bc93))/0x6+parseInt(_0x8534ee(0x457,_0x8f1acb._0x2875b4,_0x8f1acb._0x41309b,0x458))/0x7*(parseInt(_0x4c611d(-0x214,-_0x8f1acb._0x6a6644,-0x216,-0x21b))/0x8)+parseInt(_0x4c611d(-_0x8f1acb._0x53838f,-_0x8f1acb._0x5eb644,-0x211,-0x215))/0x9*(parseInt(_0x4c611d(-_0x8f1acb._0x11dee6,-_0x8f1acb._0x1f2299,-_0x8f1acb._0x509956,-_0x8f1acb._0x4c3a61))/0xa)+-parseInt(_0x4c611d(-_0x8f1acb._0x4f814d,-0x20e,-_0x8f1acb._0x296c73,-_0x8f1acb._0x365cbe))/0xb;if(_0x1e1502===_0x1ff036)break;else _0xd9020e['push'](_0xd9020e['shift']());}catch(_0x3fdec0){_0xd9020e['push'](_0xd9020e['shift']());}}}(_0x3430,0x97679));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0xd15b(_0x2d1c1c,_0x4da259){_0x2d1c1c=_0x2d1c1c-0x15c;var _0x3430e0=_0x3430();var _0xd15bf3=_0x3430e0[_0x2d1c1c];if(_0xd15b['AjJlHh']===undefined){var _0x16b9d7=function(_0x25a6da){var _0x30dfc2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x371f13='',_0x47b4ea='';for(var _0x53858f=0x0,_0x390005,_0x39840f,_0x42afc5=0x0;_0x39840f=_0x25a6da['charAt'](_0x42afc5++);~_0x39840f&&(_0x390005=_0x53858f%0x4?_0x390005*0x40+_0x39840f:_0x39840f,_0x53858f++%0x4)?_0x371f13+=String['fromCharCode'](0xff&_0x390005>>(-0x2*_0x53858f&0x6)):0x0){_0x39840f=_0x30dfc2['indexOf'](_0x39840f);}for(var _0x5306e2=0x0,_0x38421c=_0x371f13['length'];_0x5306e2<_0x38421c;_0x5306e2++){_0x47b4ea+='%'+('00'+_0x371f13['charCodeAt'](_0x5306e2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47b4ea);};_0xd15b['aVPQUw']=_0x16b9d7,_0xd15b['oomlRn']={},_0xd15b['AjJlHh']=!![];}var _0x14135d=_0x3430e0[0x0],_0x3f151f=_0x2d1c1c+_0x14135d,_0x32cca2=_0xd15b['oomlRn'][_0x3f151f];return!_0x32cca2?(_0xd15bf3=_0xd15b['aVPQUw'](_0xd15bf3),_0xd15b['oomlRn'][_0x3f151f]=_0xd15bf3):_0xd15bf3=_0x32cca2,_0xd15bf3;}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};function _0x3430(){var _0x5f2282=['nJi0odaZA29MvMvQ','odKYmZG3mvb2z0v6ta','mtuZmZG4mLbnufriAa','otG4ndi0uunduuTj','ndmZmtDcuezNBK8','nJiYndbTzgD4vMy','mJHyBw9LBxa','mNHxvvb0tW','mJeZyMfyCfnR','mtKXmhjOsu1puW','mtiXmte0nvnYqKzVEG'];_0x3430=function(){return _0x5f2282;};return _0x3430();}
1
+ function _0x450f(){var _0x5324fc=['mtmYodC2ndb3sezHqK8','mJu4odqWofbqsKvwCa','nduZmZbmt01Lvg4','m0TnthnpDa','mtHjAKL3Ewu','mJyYnJC0mgnNC2fKwa','nZu4oti4uNDnwMDt','nZaZmdzTEwTMEuC','nJq3mZq4ohP6rxPcCW','ntq1yNPovgHg'];_0x450f=function(){return _0x5324fc;};return _0x450f();}function _0x167c(_0x3f90a7,_0x1d49e6){_0x3f90a7=_0x3f90a7-0x121;var _0x450f16=_0x450f();var _0x167c29=_0x450f16[_0x3f90a7];if(_0x167c['HEtrnv']===undefined){var _0x46c286=function(_0x3f0ec5){var _0x3714d2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x378824='',_0x33b79f='';for(var _0x512352=0x0,_0x4868d6,_0x4f25f0,_0x530489=0x0;_0x4f25f0=_0x3f0ec5['charAt'](_0x530489++);~_0x4f25f0&&(_0x4868d6=_0x512352%0x4?_0x4868d6*0x40+_0x4f25f0:_0x4f25f0,_0x512352++%0x4)?_0x378824+=String['fromCharCode'](0xff&_0x4868d6>>(-0x2*_0x512352&0x6)):0x0){_0x4f25f0=_0x3714d2['indexOf'](_0x4f25f0);}for(var _0x2c1079=0x0,_0x32fbd6=_0x378824['length'];_0x2c1079<_0x32fbd6;_0x2c1079++){_0x33b79f+='%'+('00'+_0x378824['charCodeAt'](_0x2c1079)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x33b79f);};_0x167c['ZNDQou']=_0x46c286,_0x167c['kbjwSF']={},_0x167c['HEtrnv']=!![];}var _0x2ad8f7=_0x450f16[0x0],_0x2b90e0=_0x3f90a7+_0x2ad8f7,_0x3c0cfe=_0x167c['kbjwSF'][_0x2b90e0];return!_0x3c0cfe?(_0x167c29=_0x167c['ZNDQou'](_0x167c29),_0x167c['kbjwSF'][_0x2b90e0]=_0x167c29):_0x167c29=_0x3c0cfe,_0x167c29;}(function(_0x27c9a7,_0x2adcea){var _0x1d6f43={_0x41adad:0x127,_0xa0e473:0x125,_0x2c8950:0x80,_0x2141b0:0x81,_0x14e89d:0x122,_0xd65568:0x77,_0x336918:0x126,_0x20f76b:0x12f,_0x256bea:0x7b,_0x5b1e43:0x12c,_0x55330a:0x12d,_0x3ea36e:0x124,_0x2cb25f:0x126,_0x58926f:0x11f,_0x3f4b76:0x7d,_0x211db1:0x82,_0x25fb39:0x79,_0x5b0dba:0x75},_0x45335a={_0x4a227e:0x24d},_0x36cb7f=_0x27c9a7();function _0x465725(_0x3d7d8f,_0x3ab830,_0x35a989,_0x4a2aa3){return _0x167c(_0x3d7d8f- -_0x45335a._0x4a227e,_0x3ab830);}function _0x3c24b9(_0x2849d0,_0x1fbeb5,_0x30d2f7,_0x1a7133){return _0x167c(_0x2849d0- -0xaa,_0x1a7133);}while(!![]){try{var _0x293736=parseInt(_0x465725(-_0x1d6f43._0x41adad,-0x129,-_0x1d6f43._0xa0e473,-0x127))/0x1*(parseInt(_0x3c24b9(0x80,0x7c,_0x1d6f43._0x2c8950,_0x1d6f43._0x2141b0))/0x2)+parseInt(_0x465725(-_0x1d6f43._0xa0e473,-0x12a,-0x12a,-_0x1d6f43._0x14e89d))/0x3+parseInt(_0x3c24b9(0x7a,_0x1d6f43._0xd65568,0x7a,0x7e))/0x4+-parseInt(_0x465725(-0x12b,-_0x1d6f43._0x336918,-0x129,-_0x1d6f43._0x20f76b))/0x5*(-parseInt(_0x3c24b9(0x7b,0x79,0x7b,_0x1d6f43._0x256bea))/0x6)+parseInt(_0x465725(-_0x1d6f43._0x5b1e43,-0x12f,-_0x1d6f43._0x55330a,-0x12c))/0x7+-parseInt(_0x465725(-_0x1d6f43._0x3ea36e,-_0x1d6f43._0x41adad,-_0x1d6f43._0x2cb25f,-_0x1d6f43._0x58926f))/0x8+parseInt(_0x3c24b9(_0x1d6f43._0x3f4b76,_0x1d6f43._0x211db1,0x7e,0x7d))/0x9*(-parseInt(_0x3c24b9(_0x1d6f43._0x25fb39,0x77,0x77,_0x1d6f43._0x5b0dba))/0xa);if(_0x293736===_0x2adcea)break;else _0x36cb7f['push'](_0x36cb7f['shift']());}catch(_0x50d441){_0x36cb7f['push'](_0x36cb7f['shift']());}}}(_0x450f,0x9859a));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
@@ -6,6 +6,7 @@ export type JsonValue = JsonObject | JsonPrimitive | JsonValue[];
6
6
  export type JsonSchemaType = "array" | "boolean" | "number" | "object" | "string";
7
7
  export interface JsonSchemaString {
8
8
  type: "string";
9
+ description?: string;
9
10
  }
10
11
  export interface JsonSchemaNumber {
11
12
  type: "number";
@@ -4,8 +4,8 @@ export declare function createAskUserTool(): import("../shared/types.ts").ToolDe
4
4
  question: string;
5
5
  topic: string;
6
6
  options: {
7
- label: string;
8
7
  description: string;
8
+ label: string;
9
9
  }[];
10
10
  multiSelect: boolean;
11
11
  }[];
@@ -1,6 +1,7 @@
1
1
  import type { BackgroundProcessRegistry } from "./background-process-registry.ts";
2
2
  export interface BashToolInput {
3
3
  command: string;
4
+ description: string;
4
5
  cwd?: string;
5
6
  timeoutMs?: number;
6
7
  ignoreOutput?: boolean;
@@ -19,6 +20,7 @@ export interface BashToolOptions {
19
20
  backgroundRegistry?: BackgroundProcessRegistry;
20
21
  }
21
22
  export declare function createBashTool(options?: BashToolOptions): import("../shared/types.ts").ToolDefinition<{
23
+ description: string;
22
24
  command: string;
23
25
  timeoutMs?: number | undefined;
24
26
  cwd?: string | undefined;
@@ -30,6 +32,10 @@ export declare function createBashTool(options?: BashToolOptions): import("../sh
30
32
  command: {
31
33
  type: "string";
32
34
  };
35
+ description: {
36
+ type: "string";
37
+ description: string;
38
+ };
33
39
  cwd: {
34
40
  type: "string";
35
41
  };
@@ -43,9 +49,10 @@ export declare function createBashTool(options?: BashToolOptions): import("../sh
43
49
  type: "boolean";
44
50
  };
45
51
  };
46
- required: readonly ["command"];
52
+ required: readonly ["command", "description"];
47
53
  }>;
48
54
  export declare function createShellExecTool(options?: BashToolOptions): import("../shared/types.ts").ToolDefinition<{
55
+ description: string;
49
56
  command: string;
50
57
  timeoutMs?: number | undefined;
51
58
  cwd?: string | undefined;
@@ -57,6 +64,10 @@ export declare function createShellExecTool(options?: BashToolOptions): import("
57
64
  command: {
58
65
  type: "string";
59
66
  };
67
+ description: {
68
+ type: "string";
69
+ description: string;
70
+ };
60
71
  cwd: {
61
72
  type: "string";
62
73
  };
@@ -70,6 +81,6 @@ export declare function createShellExecTool(options?: BashToolOptions): import("
70
81
  type: "boolean";
71
82
  };
72
83
  };
73
- required: readonly ["command"];
84
+ required: readonly ["command", "description"];
74
85
  }>;
75
86
  //# sourceMappingURL=bash-tool.d.ts.map
@@ -7,6 +7,7 @@ export declare function createFileEditTool(options?: FileEditToolOptions): impor
7
7
  filePath: string;
8
8
  oldText: string;
9
9
  newText: string;
10
+ description?: string | undefined;
10
11
  dryRun?: boolean | undefined;
11
12
  }, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
12
13
  type: "object";
@@ -14,6 +15,10 @@ export declare function createFileEditTool(options?: FileEditToolOptions): impor
14
15
  filePath: {
15
16
  type: "string";
16
17
  };
18
+ description: {
19
+ type: "string";
20
+ description: string;
21
+ };
17
22
  oldText: {
18
23
  type: "string";
19
24
  };