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

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 _0x12fd(){var _0x239dc2=['m2nStuf2wa','mtjswwjkyLy','ndm1nZqWAuPzvwPf','mtm1nJa5nKzWCwDpwG','mtKZmtC2meHJDhPNCa','ndK1ndK4y3PUy3jc','mZK0mJG2neTvD2LcDq','otaWmJqWDgXXsufh','mZu5mJqWDujbBfz4'];_0x12fd=function(){return _0x239dc2;};return _0x12fd();}(function(_0x4a2fc4,_0x2c8b2f){var _0x3b79ee={_0x4e1788:0xbe,_0x34e469:0xb7,_0x3e685c:0x245,_0x548bea:0x24a,_0xf59a7e:0x247,_0x31f92f:0x24d,_0x2fb111:0x24c,_0x1edbad:0xbb,_0x5cb2a7:0xb7,_0x2ac971:0x24f,_0x514805:0xb6,_0x499953:0x243,_0x1e9760:0x246,_0x5ef12e:0x251,_0x6da2a1:0x24e},_0x1afb76={_0x57f2a3:0x15c};function _0x470f4a(_0x113d34,_0x2aa621,_0x1f565a,_0x28c043){return _0x46f1(_0x113d34- -_0x1afb76._0x57f2a3,_0x2aa621);}function _0x20e72e(_0x42f862,_0x525cf1,_0x1fee18,_0x408414){return _0x46f1(_0x408414-0x1a7,_0x42f862);}var _0x4ba3cb=_0x4a2fc4();while(!![]){try{var _0x4b3399=parseInt(_0x470f4a(-0xbd,-_0x3b79ee._0x4e1788,-_0x3b79ee._0x4e1788,-0xbf))/0x1+parseInt(_0x470f4a(-0xba,-0xb9,-0xb6,-_0x3b79ee._0x34e469))/0x2*(parseInt(_0x20e72e(_0x3b79ee._0x3e685c,0x24e,0x24f,_0x3b79ee._0x548bea))/0x3)+parseInt(_0x20e72e(_0x3b79ee._0xf59a7e,_0x3b79ee._0x31f92f,0x24c,_0x3b79ee._0x2fb111))/0x4+-parseInt(_0x470f4a(-_0x3b79ee._0x1edbad,-0xb9,-_0x3b79ee._0x5cb2a7,-0xbf))/0x5+-parseInt(_0x20e72e(_0x3b79ee._0x2fb111,_0x3b79ee._0x2ac971,0x24e,0x24b))/0x6*(-parseInt(_0x470f4a(-_0x3b79ee._0x514805,-0xba,-0xb7,-0xb5))/0x7)+-parseInt(_0x20e72e(_0x3b79ee._0x499953,0x24a,_0x3b79ee._0x1e9760,0x247))/0x8+-parseInt(_0x20e72e(_0x3b79ee._0x5ef12e,0x24e,0x24d,_0x3b79ee._0x6da2a1))/0x9;if(_0x4b3399===_0x2c8b2f)break;else _0x4ba3cb['push'](_0x4ba3cb['shift']());}catch(_0xc155e2){_0x4ba3cb['push'](_0x4ba3cb['shift']());}}}(_0x12fd,0x4553b));function _0x46f1(_0x4019ca,_0x3d7026){_0x4019ca=_0x4019ca-0x9f;var _0x12fdaa=_0x12fd();var _0x46f19c=_0x12fdaa[_0x4019ca];if(_0x46f1['yloCmM']===undefined){var _0x24a3aa=function(_0x2bad99){var _0x50cf86='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x138046='',_0x594972='';for(var _0x3ec49e=0x0,_0x38d577,_0x2092ac,_0x503767=0x0;_0x2092ac=_0x2bad99['charAt'](_0x503767++);~_0x2092ac&&(_0x38d577=_0x3ec49e%0x4?_0x38d577*0x40+_0x2092ac:_0x2092ac,_0x3ec49e++%0x4)?_0x138046+=String['fromCharCode'](0xff&_0x38d577>>(-0x2*_0x3ec49e&0x6)):0x0){_0x2092ac=_0x50cf86['indexOf'](_0x2092ac);}for(var _0x64fccb=0x0,_0x27bc6b=_0x138046['length'];_0x64fccb<_0x27bc6b;_0x64fccb++){_0x594972+='%'+('00'+_0x138046['charCodeAt'](_0x64fccb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x594972);};_0x46f1['sqoOFd']=_0x24a3aa,_0x46f1['yFjYCe']={},_0x46f1['yloCmM']=!![];}var _0x3d4658=_0x12fdaa[0x0],_0x359b4e=_0x4019ca+_0x3d4658,_0x5f51ae=_0x46f1['yFjYCe'][_0x359b4e];return!_0x5f51ae?(_0x46f19c=_0x46f1['sqoOFd'](_0x46f19c),_0x46f1['yFjYCe'][_0x359b4e]=_0x46f19c):_0x46f19c=_0x5f51ae,_0x46f19c;}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
  };