veryfront 0.1.205 → 0.1.207
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/esm/deno.js +1 -1
- package/esm/src/agent/data-stream.d.ts.map +1 -1
- package/esm/src/agent/data-stream.js +19 -4
- package/esm/src/agent/runtime/tool-helpers.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-helpers.js +11 -2
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
- package/src/deno.js +1 -1
- package/src/src/agent/data-stream.ts +22 -4
- package/src/src/agent/runtime/tool-helpers.ts +13 -2
- package/src/src/utils/version-constant.ts +1 -1
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-stream.d.ts","sourceRoot":"","sources":["../../../src/src/agent/data-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMzE,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"data-stream.d.ts","sourceRoot":"","sources":["../../../src/src/agent/data-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMzE,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmB1E;AAED,wBAAgB,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAavF;AAED,wBAAgB,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CActF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiB5E;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG;IACvD,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB,CAoBA;AAED,wBAAuB,sBAAsB,CAC3C,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GACjC,cAAc,CAAC,sBAAsB,CAAC,CAkCxC"}
|
|
@@ -3,14 +3,29 @@ function isRecord(value) {
|
|
|
3
3
|
}
|
|
4
4
|
export function stripLeadingEmptyObjectPlaceholder(rawArgs) {
|
|
5
5
|
let normalized = rawArgs.trim();
|
|
6
|
-
while (normalized.startsWith("{}")
|
|
7
|
-
|
|
6
|
+
while (normalized.startsWith("{}")) {
|
|
7
|
+
const remainder = normalized.slice(2).trimStart();
|
|
8
|
+
if (remainder.startsWith("{")) {
|
|
9
|
+
normalized = remainder;
|
|
10
|
+
continue;
|
|
11
|
+
}
|
|
12
|
+
if (remainder.startsWith('"')) {
|
|
13
|
+
normalized = `{${remainder}`;
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
break;
|
|
8
17
|
}
|
|
9
18
|
return normalized;
|
|
10
19
|
}
|
|
11
20
|
export function mergeToolInputDelta(currentArguments, nextDelta) {
|
|
12
|
-
if (currentArguments === "{}"
|
|
13
|
-
|
|
21
|
+
if (currentArguments === "{}") {
|
|
22
|
+
const normalizedDelta = nextDelta.trimStart();
|
|
23
|
+
if (normalizedDelta.startsWith("{")) {
|
|
24
|
+
return normalizedDelta;
|
|
25
|
+
}
|
|
26
|
+
if (normalizedDelta.startsWith('"')) {
|
|
27
|
+
return `{${normalizedDelta}`;
|
|
28
|
+
}
|
|
14
29
|
}
|
|
15
30
|
return currentArguments + nextDelta;
|
|
16
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-helpers.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/tool-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,cAAc,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AAE,MAAM,EAAE,EACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,GACrC,OAAO,CAAC,OAAO,CAAC,CAoClB;AAoBD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,EAC/D,OAAO,CAAC,EAAE;IACR,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACvC,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;CAC1C,GACA,OAAO,CAAC,cAAc,EAAE,CAAC,CA+E3B"}
|
|
@@ -14,8 +14,17 @@ import { executeRemoteIntegrationTool, isRemoteIntegrationTool, } from "../../in
|
|
|
14
14
|
const logger = serverLogger.component("agent");
|
|
15
15
|
function stripLeadingEmptyObjectPlaceholder(rawArgs) {
|
|
16
16
|
let normalized = rawArgs.trim();
|
|
17
|
-
while (normalized.startsWith("{}")
|
|
18
|
-
|
|
17
|
+
while (normalized.startsWith("{}")) {
|
|
18
|
+
const remainder = normalized.slice(2).trimStart();
|
|
19
|
+
if (remainder.startsWith("{")) {
|
|
20
|
+
normalized = remainder;
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
if (remainder.startsWith('"')) {
|
|
24
|
+
normalized = `{${remainder}`;
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
break;
|
|
19
28
|
}
|
|
20
29
|
return normalized;
|
|
21
30
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.207";
|
|
2
2
|
//# sourceMappingURL=version-constant.d.ts.map
|
package/package.json
CHANGED
package/src/deno.js
CHANGED
|
@@ -7,16 +7,34 @@ function isRecord(value: unknown): value is Record<string, unknown> {
|
|
|
7
7
|
export function stripLeadingEmptyObjectPlaceholder(rawArgs: string): string {
|
|
8
8
|
let normalized = rawArgs.trim();
|
|
9
9
|
|
|
10
|
-
while (normalized.startsWith("{}")
|
|
11
|
-
|
|
10
|
+
while (normalized.startsWith("{}")) {
|
|
11
|
+
const remainder = normalized.slice(2).trimStart();
|
|
12
|
+
if (remainder.startsWith("{")) {
|
|
13
|
+
normalized = remainder;
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (remainder.startsWith('"')) {
|
|
18
|
+
normalized = `{${remainder}`;
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
break;
|
|
12
23
|
}
|
|
13
24
|
|
|
14
25
|
return normalized;
|
|
15
26
|
}
|
|
16
27
|
|
|
17
28
|
export function mergeToolInputDelta(currentArguments: string, nextDelta: string): string {
|
|
18
|
-
if (currentArguments === "{}"
|
|
19
|
-
|
|
29
|
+
if (currentArguments === "{}") {
|
|
30
|
+
const normalizedDelta = nextDelta.trimStart();
|
|
31
|
+
if (normalizedDelta.startsWith("{")) {
|
|
32
|
+
return normalizedDelta;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (normalizedDelta.startsWith('"')) {
|
|
36
|
+
return `{${normalizedDelta}`;
|
|
37
|
+
}
|
|
20
38
|
}
|
|
21
39
|
|
|
22
40
|
return currentArguments + nextDelta;
|
|
@@ -30,8 +30,19 @@ export interface ParsedToolArgs {
|
|
|
30
30
|
function stripLeadingEmptyObjectPlaceholder(rawArgs: string): string {
|
|
31
31
|
let normalized = rawArgs.trim();
|
|
32
32
|
|
|
33
|
-
while (normalized.startsWith("{}")
|
|
34
|
-
|
|
33
|
+
while (normalized.startsWith("{}")) {
|
|
34
|
+
const remainder = normalized.slice(2).trimStart();
|
|
35
|
+
if (remainder.startsWith("{")) {
|
|
36
|
+
normalized = remainder;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (remainder.startsWith('"')) {
|
|
41
|
+
normalized = `{${remainder}`;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
break;
|
|
35
46
|
}
|
|
36
47
|
|
|
37
48
|
return normalized;
|