@veryfront/ext-sandbox-shell-tools 0.1.1260-rc.19601 → 0.1.1260-rc.19622

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
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAE/B,MAAM,8BAA8B,CAAC;AAEtC,KAAK,eAAe,GAAG,CACrB,KAAK,EAAE,4BAA4B,KAChC,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,CAAC;AAEjD,wBAAgB,+BAA+B,CAC7C,kBAAkB,EAAE,eAAe,GAClC,yBAAyB,CAE3B;AAED,QAAA,MAAM,QAAQ,2BAGZ,CAAC;AAEH,QAAA,MAAM,oBAAoB,EAAE,gBAa1B,CAAC;AAEH,eAAe,oBAAoB,CAAC;AACpC,OAAO,EAAE,QAAQ,IAAI,mCAAmC,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAE/B,MAAM,8BAA8B,CAAC;AAEtC,KAAK,eAAe,GAAG,CACrB,KAAK,EAAE,4BAA4B,KAChC,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,CAAC;AAEjD,wBAAgB,+BAA+B,CAC7C,kBAAkB,EAAE,eAAe,GAClC,yBAAyB,CAE3B;AAED,QAAA,MAAM,QAAQ,2BAaZ,CAAC;AAEH,QAAA,MAAM,oBAAoB,EAAE,gBAa1B,CAAC;AAEH,eAAe,oBAAoB,CAAC;AACpC,OAAO,EAAE,QAAQ,IAAI,mCAAmC,EAAE,CAAC"}
package/esm/index.js CHANGED
@@ -8,8 +8,14 @@ export function createSandboxShellToolsProvider(createBashToolImpl) {
8
8
  return async (input) => await createBashToolImpl(input);
9
9
  }
10
10
  const provider = createSandboxShellToolsProvider(async (input) => {
11
+ const { asSchema } = await import("ai");
11
12
  const { createBashTool: createBashToolImpl } = await import("bash-tool");
12
- return await createBashToolImpl(input);
13
+ const result = await createBashToolImpl(input);
14
+ const tools = Object.fromEntries(await Promise.all(Object.entries(result.tools).map(async ([name, tool]) => [name, {
15
+ ...tool,
16
+ inputSchemaJson: await asSchema(tool.inputSchema).jsonSchema,
17
+ }])));
18
+ return { ...result, tools };
13
19
  });
14
20
  const extSandboxShellTools = () => ({
15
21
  name: "ext-sandbox-shell-tools",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryfront/ext-sandbox-shell-tools",
3
- "version": "0.1.1260-rc.19601",
3
+ "version": "0.1.1260-rc.19622",
4
4
  "description": "Veryfront first-party extension package for ext-sandbox-shell-tools",
5
5
  "keywords": [
6
6
  "veryfront",
@@ -55,7 +55,7 @@
55
55
  "just-bash": "3.0.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "veryfront": "^0.1.1260-rc.19601"
58
+ "veryfront": "^0.1.1260-rc.19622"
59
59
  },
60
60
  "type": "module",
61
61
  "types": "./esm/index.d.ts",
@@ -65,5 +65,5 @@
65
65
  "NOTICE",
66
66
  "README.md"
67
67
  ],
68
- "gitHead": "28684963df413658b0fe91fb6d7ca3605765056e"
68
+ "gitHead": "a5e12ed74ce5d0e25852e825370c3f4e63e1aefa"
69
69
  }