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 CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.205",
3
+ "version": "0.1.207",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -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,CAQ1E;AAED,wBAAgB,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAMvF;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"}
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("{}") && normalized.slice(2).trimStart().startsWith("{")) {
7
- normalized = normalized.slice(2).trimStart();
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 === "{}" && nextDelta.trimStart().startsWith("{")) {
13
- return nextDelta;
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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C,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,EAC/D,OAAO,CAAC,EAAE,oBAAoB,EAC9B,sBAAsB,CAAC,EAAE,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("{}") && normalized.slice(2).trimStart().startsWith("{")) {
18
- normalized = normalized.slice(2).trimStart();
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.205";
1
+ export declare const VERSION = "0.1.207";
2
2
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.205";
3
+ export const VERSION = "0.1.207";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.205",
3
+ "version": "0.1.207",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.205",
3
+ "version": "0.1.207",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -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("{}") && normalized.slice(2).trimStart().startsWith("{")) {
11
- normalized = normalized.slice(2).trimStart();
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 === "{}" && nextDelta.trimStart().startsWith("{")) {
19
- return nextDelta;
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("{}") && normalized.slice(2).trimStart().startsWith("{")) {
34
- normalized = normalized.slice(2).trimStart();
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;
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.205";
3
+ export const VERSION = "0.1.207";