@nuvin/agent-core 0.1.0 → 0.2.0-rc.1
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-D5IVWJHX.js +1 -1
- package/dist/chunk-E4R6CEFK.js +1 -0
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-RABU4RC2.js +1 -0
- package/dist/chunk-RTDLM6FU.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/formats/message-format.d.ts +1 -0
- package/dist/hooks/index.js +1 -1
- package/dist/models/github-model.d.ts +2 -0
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +4 -0
- package/dist/tools/bash-tool.d.ts +11 -0
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-BLGBVFVX.js +0 -1
- package/dist/chunk-UIXQPCSN.js +0 -1
- package/dist/chunk-YWQXXHHU.js +0 -1
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x1a44ae,_0x4b642c){var _0x1769c9={_0x2059bc:0x263,_0x38ba40:0x267,_0xf31b37:0x26b,_0x29ef54:0x26a,_0x42fa9f:0x269,_0x3c7788:0x262,_0x120428:0x261,_0xc4fb5d:0x224,_0x19adf5:0x21f,_0x2f92dd:0x21e,_0x2b2d28:0x266,_0x59f9ca:0x265,_0x4f2921:0x264,_0x38a5ed:0x227,_0x47f7a3:0x21d,_0x210ff3:0x222,_0x49b3aa:0x228,_0x48b494:0x223,_0x661105:0x272,_0x1c67da:0x26c,_0x212a38:0x21c,_0x56f2d4:0x21a,_0x417d50:0x220,_0x108f40:0x268},_0x13548a={_0x32b835:0x395},_0x524750=_0x1a44ae();function _0x2612ef(_0x507809,_0x3168d3,_0x388964,_0x8067bf){return _0x4438(_0x388964-0xf3,_0x8067bf);}function _0x4d3df5(_0x1461e6,_0xc32b9f,_0x5c9ca0,_0x58377a){return _0x4438(_0x5c9ca0- -_0x13548a._0x32b835,_0x1461e6);}while(!![]){try{var _0x501036=parseInt(_0x4d3df5(-0x26c,-_0x1769c9._0x2059bc,-_0x1769c9._0x38ba40,-_0x1769c9._0xf31b37))/0x1+parseInt(_0x4d3df5(-0x26d,-_0x1769c9._0x29ef54,-0x26b,-_0x1769c9._0x42fa9f))/0x2+-parseInt(_0x4d3df5(-_0x1769c9._0x3c7788,-_0x1769c9._0x120428,-0x262,-0x265))/0x3*(parseInt(_0x2612ef(0x220,_0x1769c9._0xc4fb5d,_0x1769c9._0x19adf5,_0x1769c9._0x2f92dd))/0x4)+parseInt(_0x4d3df5(-0x260,-_0x1769c9._0x2b2d28,-_0x1769c9._0x59f9ca,-_0x1769c9._0x4f2921))/0x5+-parseInt(_0x2612ef(_0x1769c9._0x38a5ed,_0x1769c9._0x47f7a3,_0x1769c9._0x210ff3,0x228))/0x6*(parseInt(_0x2612ef(_0x1769c9._0x49b3aa,0x223,0x225,_0x1769c9._0x48b494))/0x7)+-parseInt(_0x4d3df5(-0x269,-_0x1769c9._0x661105,-_0x1769c9._0x1c67da,-0x26a))/0x8*(-parseInt(_0x2612ef(_0x1769c9._0x212a38,_0x1769c9._0x56f2d4,_0x1769c9._0x417d50,0x224))/0x9)+-parseInt(_0x2612ef(0x221,0x222,0x224,0x227))/0xa*(parseInt(_0x4d3df5(-_0x1769c9._0x108f40,-0x26f,-0x26a,-0x26e))/0xb);if(_0x501036===_0x4b642c)break;else _0x524750['push'](_0x524750['shift']());}catch(_0x440116){_0x524750['push'](_0x524750['shift']());}}}(_0x212a,0x20f04));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0x212a(){var _0x47964d=['mZG1ntv2tvzXtwy','mJb6wurgDhm','mtHrzKj1vMC','mty2mdK5vgretMzs','nZj6yKLzr2q','mti3ndu0mhnWwfzNuW','ntiWsMzitvff','mteYnZKXB2rfzgje','nJC5odLdCurzqwq','mJq2ndmYDgfVs01j','mJGYndy0D0Loz21q'];_0x212a=function(){return _0x47964d;};return _0x212a();}import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0x4438(_0x2c8eb2,_0x4df041){_0x2c8eb2=_0x2c8eb2-0x129;var _0x212a73=_0x212a();var _0x4438d8=_0x212a73[_0x2c8eb2];if(_0x4438['FKnJEj']===undefined){var _0x348666=function(_0x1469e8){var _0x2177cf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3b5833='',_0x4d09b2='';for(var _0x48a4d9=0x0,_0x1baa76,_0x5cbaf4,_0xd85d51=0x0;_0x5cbaf4=_0x1469e8['charAt'](_0xd85d51++);~_0x5cbaf4&&(_0x1baa76=_0x48a4d9%0x4?_0x1baa76*0x40+_0x5cbaf4:_0x5cbaf4,_0x48a4d9++%0x4)?_0x3b5833+=String['fromCharCode'](0xff&_0x1baa76>>(-0x2*_0x48a4d9&0x6)):0x0){_0x5cbaf4=_0x2177cf['indexOf'](_0x5cbaf4);}for(var _0x3a9311=0x0,_0x1c0456=_0x3b5833['length'];_0x3a9311<_0x1c0456;_0x3a9311++){_0x4d09b2+='%'+('00'+_0x3b5833['charCodeAt'](_0x3a9311)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d09b2);};_0x4438['ixrnln']=_0x348666,_0x4438['JwTCHQ']={},_0x4438['FKnJEj']=!![];}var _0x2498ea=_0x212a73[0x0],_0x59c234=_0x2c8eb2+_0x2498ea,_0x331644=_0x4438['JwTCHQ'][_0x59c234];return!_0x331644?(_0x4438d8=_0x4438['ixrnln'](_0x4438d8),_0x4438['JwTCHQ'][_0x59c234]=_0x4438d8):_0x4438d8=_0x331644,_0x4438d8;}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,modelIdentityFromParts,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ export interface MessageProviderState {
|
|
|
121
121
|
anthropicAssistantContent?: AnthropicAssistantContentBlock[];
|
|
122
122
|
openaiResponsesOutput?: OpenAiResponsesOutputItem[];
|
|
123
123
|
openaiResponsesResponseId?: string;
|
|
124
|
+
originModelIdentity?: string;
|
|
124
125
|
}
|
|
125
126
|
export type AssistantContentBlock = AnthropicRedactedThinkingBlock | AnthropicThinkingBlock | OpenAiReasoningBlock | TextBlock | ToolUseBlock;
|
|
126
127
|
export type ContentBlock = AssistantContentBlock | ImageBlock | ToolResultBlock;
|
|
@@ -168,6 +169,7 @@ export interface ModelRequest {
|
|
|
168
169
|
metadata: {
|
|
169
170
|
session_id: string;
|
|
170
171
|
turn_id: string;
|
|
172
|
+
model_identity?: string;
|
|
171
173
|
};
|
|
172
174
|
outputFormat?: OutputFormat;
|
|
173
175
|
}
|
|
@@ -191,6 +193,7 @@ export interface ChatRequest {
|
|
|
191
193
|
metadata: {
|
|
192
194
|
sessionId: string;
|
|
193
195
|
turnId: string;
|
|
196
|
+
modelIdentity?: string;
|
|
194
197
|
};
|
|
195
198
|
outputFormat?: OutputFormat;
|
|
196
199
|
}
|
|
@@ -366,6 +369,7 @@ export interface ModelExecutionOptions {
|
|
|
366
369
|
export interface TurnMessageMeta {
|
|
367
370
|
provider?: string;
|
|
368
371
|
model?: string;
|
|
372
|
+
modelIdentity?: string;
|
|
369
373
|
/** ms epoch — provider request sent. */
|
|
370
374
|
turnStartedAt?: number;
|
|
371
375
|
/** ms epoch — response fully received. */
|
|
@@ -5,6 +5,7 @@ export interface BashToolInput {
|
|
|
5
5
|
cwd?: string;
|
|
6
6
|
timeoutMs?: number;
|
|
7
7
|
ignoreOutput?: boolean;
|
|
8
|
+
outputRegex?: string;
|
|
8
9
|
runInBackground?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export interface BashToolOptions {
|
|
@@ -25,6 +26,7 @@ export declare function createBashTool(options?: BashToolOptions): import("../sh
|
|
|
25
26
|
timeoutMs?: number | undefined;
|
|
26
27
|
cwd?: string | undefined;
|
|
27
28
|
ignoreOutput?: boolean | undefined;
|
|
29
|
+
outputRegex?: string | undefined;
|
|
28
30
|
runInBackground?: boolean | undefined;
|
|
29
31
|
}, string, import("../shared/types.ts").ToolOutputEnvelope, {
|
|
30
32
|
type: "object";
|
|
@@ -45,6 +47,10 @@ export declare function createBashTool(options?: BashToolOptions): import("../sh
|
|
|
45
47
|
ignoreOutput: {
|
|
46
48
|
type: "boolean";
|
|
47
49
|
};
|
|
50
|
+
outputRegex: {
|
|
51
|
+
type: "string";
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
48
54
|
runInBackground: {
|
|
49
55
|
type: "boolean";
|
|
50
56
|
};
|
|
@@ -57,6 +63,7 @@ export declare function createShellExecTool(options?: BashToolOptions): import("
|
|
|
57
63
|
timeoutMs?: number | undefined;
|
|
58
64
|
cwd?: string | undefined;
|
|
59
65
|
ignoreOutput?: boolean | undefined;
|
|
66
|
+
outputRegex?: string | undefined;
|
|
60
67
|
runInBackground?: boolean | undefined;
|
|
61
68
|
}, string, import("../shared/types.ts").ToolOutputEnvelope, {
|
|
62
69
|
type: "object";
|
|
@@ -77,6 +84,10 @@ export declare function createShellExecTool(options?: BashToolOptions): import("
|
|
|
77
84
|
ignoreOutput: {
|
|
78
85
|
type: "boolean";
|
|
79
86
|
};
|
|
87
|
+
outputRegex: {
|
|
88
|
+
type: "string";
|
|
89
|
+
description: string;
|
|
90
|
+
};
|
|
80
91
|
runInBackground: {
|
|
81
92
|
type: "boolean";
|
|
82
93
|
};
|