@dexto/tools-builtins 1.6.0

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.
Files changed (77) hide show
  1. package/LICENSE +44 -0
  2. package/dist/builtin-tools-factory.cjs +95 -0
  3. package/dist/builtin-tools-factory.d.cts +19 -0
  4. package/dist/builtin-tools-factory.d.ts +17 -0
  5. package/dist/builtin-tools-factory.d.ts.map +1 -0
  6. package/dist/builtin-tools-factory.js +69 -0
  7. package/dist/builtin-tools-factory.test.cjs +26 -0
  8. package/dist/builtin-tools-factory.test.d.cts +2 -0
  9. package/dist/builtin-tools-factory.test.d.ts +2 -0
  10. package/dist/builtin-tools-factory.test.d.ts.map +1 -0
  11. package/dist/builtin-tools-factory.test.js +25 -0
  12. package/dist/implementations/ask-user-tool.cjs +65 -0
  13. package/dist/implementations/ask-user-tool.d.cts +46 -0
  14. package/dist/implementations/ask-user-tool.d.ts +45 -0
  15. package/dist/implementations/ask-user-tool.d.ts.map +1 -0
  16. package/dist/implementations/ask-user-tool.js +41 -0
  17. package/dist/implementations/delegate-to-url-tool.cjs +183 -0
  18. package/dist/implementations/delegate-to-url-tool.d.cts +27 -0
  19. package/dist/implementations/delegate-to-url-tool.d.ts +26 -0
  20. package/dist/implementations/delegate-to-url-tool.d.ts.map +1 -0
  21. package/dist/implementations/delegate-to-url-tool.js +159 -0
  22. package/dist/implementations/delegate-to-url-tool.test.cjs +75 -0
  23. package/dist/implementations/delegate-to-url-tool.test.d.cts +2 -0
  24. package/dist/implementations/delegate-to-url-tool.test.d.ts +2 -0
  25. package/dist/implementations/delegate-to-url-tool.test.d.ts.map +1 -0
  26. package/dist/implementations/delegate-to-url-tool.test.js +74 -0
  27. package/dist/implementations/exa-code-search-tool.cjs +57 -0
  28. package/dist/implementations/exa-code-search-tool.d.cts +21 -0
  29. package/dist/implementations/exa-code-search-tool.d.ts +20 -0
  30. package/dist/implementations/exa-code-search-tool.d.ts.map +1 -0
  31. package/dist/implementations/exa-code-search-tool.js +33 -0
  32. package/dist/implementations/exa-mcp.cjs +98 -0
  33. package/dist/implementations/exa-mcp.d.cts +24 -0
  34. package/dist/implementations/exa-mcp.d.ts +23 -0
  35. package/dist/implementations/exa-mcp.d.ts.map +1 -0
  36. package/dist/implementations/exa-mcp.js +74 -0
  37. package/dist/implementations/exa-tools.test.cjs +91 -0
  38. package/dist/implementations/exa-tools.test.d.cts +2 -0
  39. package/dist/implementations/exa-tools.test.d.ts +2 -0
  40. package/dist/implementations/exa-tools.test.d.ts.map +1 -0
  41. package/dist/implementations/exa-tools.test.js +90 -0
  42. package/dist/implementations/exa-web-search-tool.cjs +63 -0
  43. package/dist/implementations/exa-web-search-tool.d.cts +30 -0
  44. package/dist/implementations/exa-web-search-tool.d.ts +29 -0
  45. package/dist/implementations/exa-web-search-tool.d.ts.map +1 -0
  46. package/dist/implementations/exa-web-search-tool.js +39 -0
  47. package/dist/implementations/get-resource-tool.cjs +121 -0
  48. package/dist/implementations/get-resource-tool.d.cts +22 -0
  49. package/dist/implementations/get-resource-tool.d.ts +21 -0
  50. package/dist/implementations/get-resource-tool.d.ts.map +1 -0
  51. package/dist/implementations/get-resource-tool.js +97 -0
  52. package/dist/implementations/http-request-tool.cjs +327 -0
  53. package/dist/implementations/http-request-tool.d.cts +31 -0
  54. package/dist/implementations/http-request-tool.d.ts +30 -0
  55. package/dist/implementations/http-request-tool.d.ts.map +1 -0
  56. package/dist/implementations/http-request-tool.js +303 -0
  57. package/dist/implementations/invoke-skill-tool.cjs +134 -0
  58. package/dist/implementations/invoke-skill-tool.d.cts +26 -0
  59. package/dist/implementations/invoke-skill-tool.d.ts +25 -0
  60. package/dist/implementations/invoke-skill-tool.d.ts.map +1 -0
  61. package/dist/implementations/invoke-skill-tool.js +110 -0
  62. package/dist/implementations/list-resources-tool.cjs +99 -0
  63. package/dist/implementations/list-resources-tool.d.cts +26 -0
  64. package/dist/implementations/list-resources-tool.d.ts +25 -0
  65. package/dist/implementations/list-resources-tool.d.ts.map +1 -0
  66. package/dist/implementations/list-resources-tool.js +75 -0
  67. package/dist/implementations/sleep-tool.cjs +45 -0
  68. package/dist/implementations/sleep-tool.d.cts +16 -0
  69. package/dist/implementations/sleep-tool.d.ts +15 -0
  70. package/dist/implementations/sleep-tool.d.ts.map +1 -0
  71. package/dist/implementations/sleep-tool.js +21 -0
  72. package/dist/index.cjs +33 -0
  73. package/dist/index.d.cts +3 -0
  74. package/dist/index.d.ts +17 -0
  75. package/dist/index.d.ts.map +1 -0
  76. package/dist/index.js +7 -0
  77. package/package.json +38 -0
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var list_resources_tool_exports = {};
20
+ __export(list_resources_tool_exports, {
21
+ createListResourcesTool: () => createListResourcesTool
22
+ });
23
+ module.exports = __toCommonJS(list_resources_tool_exports);
24
+ var import_zod = require("zod");
25
+ var import_core = require("@dexto/core");
26
+ const ListResourcesInputSchema = import_zod.z.object({
27
+ source: import_zod.z.enum(["all", "tool", "user"]).optional().default("all").describe(
28
+ 'Filter by source: "tool" for tool-generated resources, "user" for user-uploaded, "all" for both'
29
+ ),
30
+ kind: import_zod.z.enum(["all", "image", "audio", "video", "binary"]).optional().default("all").describe('Filter by type: "image", "audio", "video", "binary", or "all"'),
31
+ limit: import_zod.z.number().optional().default(50).describe("Maximum number of resources to return (default: 50)")
32
+ }).strict();
33
+ function createListResourcesTool() {
34
+ return (0, import_core.defineTool)({
35
+ id: "list_resources",
36
+ displayName: "List Resources",
37
+ description: "List available resources (images, files, etc.). Returns resource references that can be used with get_resource to obtain shareable URLs or metadata. Filter by source (tool/user) or kind (image/audio/video/binary).",
38
+ inputSchema: ListResourcesInputSchema,
39
+ async execute(input, context) {
40
+ const { source, kind, limit } = input;
41
+ const resourceManager = context.services?.resources;
42
+ if (!resourceManager) {
43
+ throw import_core.ToolError.configInvalid(
44
+ "list_resources requires ToolExecutionContext.services.resources"
45
+ );
46
+ }
47
+ try {
48
+ const blobStore = resourceManager.getBlobStore();
49
+ const allBlobs = await blobStore.listBlobs();
50
+ const resources = [];
51
+ for (const blob of allBlobs) {
52
+ if (blob.metadata.source === "system") {
53
+ continue;
54
+ }
55
+ if (source !== "all" && blob.metadata.source !== source) {
56
+ continue;
57
+ }
58
+ const mimeType = blob.metadata.mimeType;
59
+ let resourceKind = "binary";
60
+ if (mimeType.startsWith("image/")) resourceKind = "image";
61
+ else if (mimeType.startsWith("audio/")) resourceKind = "audio";
62
+ else if (mimeType.startsWith("video/")) resourceKind = "video";
63
+ if (kind !== "all" && resourceKind !== kind) {
64
+ continue;
65
+ }
66
+ resources.push({
67
+ reference: blob.uri,
68
+ kind: resourceKind,
69
+ mimeType: blob.metadata.mimeType,
70
+ ...blob.metadata.originalName && { filename: blob.metadata.originalName },
71
+ source: blob.metadata.source || "tool",
72
+ size: blob.metadata.size,
73
+ createdAt: blob.metadata.createdAt.toISOString()
74
+ });
75
+ }
76
+ resources.sort(
77
+ (a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
78
+ );
79
+ const limitedResources = resources.slice(0, limit);
80
+ return {
81
+ success: true,
82
+ count: limitedResources.length,
83
+ resources: limitedResources,
84
+ _hint: limitedResources.length > 0 ? "Use get_resource with a reference to get a shareable URL or metadata" : "No resources found matching the criteria"
85
+ };
86
+ } catch (error) {
87
+ return {
88
+ success: false,
89
+ error: `Failed to list resources: ${error instanceof Error ? error.message : String(error)}`,
90
+ resources: []
91
+ };
92
+ }
93
+ }
94
+ });
95
+ }
96
+ // Annotate the CommonJS export names for ESM import in node:
97
+ 0 && (module.exports = {
98
+ createListResourcesTool
99
+ });
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import { Tool } from '@dexto/core';
3
+
4
+ declare const ListResourcesInputSchema: z.ZodObject<{
5
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["all", "tool", "user"]>>>;
6
+ kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["all", "image", "audio", "video", "binary"]>>>;
7
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
+ }, "strict", z.ZodTypeAny, {
9
+ kind: "all" | "image" | "audio" | "video" | "binary";
10
+ source: "all" | "user" | "tool";
11
+ limit: number;
12
+ }, {
13
+ kind?: "all" | "image" | "audio" | "video" | "binary" | undefined;
14
+ source?: "all" | "user" | "tool" | undefined;
15
+ limit?: number | undefined;
16
+ }>;
17
+ /**
18
+ * Create the `list_resources` tool.
19
+ *
20
+ * Lists stored resources (backed by the configured BlobStore) and returns references
21
+ * that can be passed to `get_resource`.
22
+ * Requires `ToolExecutionContext.services.resources`.
23
+ */
24
+ declare function createListResourcesTool(): Tool<typeof ListResourcesInputSchema>;
25
+
26
+ export { createListResourcesTool };
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ import type { Tool } from '@dexto/core';
3
+ declare const ListResourcesInputSchema: z.ZodObject<{
4
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["all", "tool", "user"]>>>;
5
+ kind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["all", "image", "audio", "video", "binary"]>>>;
6
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ kind: "all" | "image" | "audio" | "video" | "binary";
9
+ source: "user" | "tool" | "all";
10
+ limit: number;
11
+ }, {
12
+ kind?: "all" | "image" | "audio" | "video" | "binary" | undefined;
13
+ source?: "user" | "tool" | "all" | undefined;
14
+ limit?: number | undefined;
15
+ }>;
16
+ /**
17
+ * Create the `list_resources` tool.
18
+ *
19
+ * Lists stored resources (backed by the configured BlobStore) and returns references
20
+ * that can be passed to `get_resource`.
21
+ * Requires `ToolExecutionContext.services.resources`.
22
+ */
23
+ export declare function createListResourcesTool(): Tool<typeof ListResourcesInputSchema>;
24
+ export {};
25
+ //# sourceMappingURL=list-resources-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-resources-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/list-resources-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAE9D,QAAA,MAAM,wBAAwB;;;;;;;;;;;;EAoBjB,CAAC;AAYd;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAAC,OAAO,wBAAwB,CAAC,CA8E/E"}
@@ -0,0 +1,75 @@
1
+ import { z } from "zod";
2
+ import { ToolError, defineTool } from "@dexto/core";
3
+ const ListResourcesInputSchema = z.object({
4
+ source: z.enum(["all", "tool", "user"]).optional().default("all").describe(
5
+ 'Filter by source: "tool" for tool-generated resources, "user" for user-uploaded, "all" for both'
6
+ ),
7
+ kind: z.enum(["all", "image", "audio", "video", "binary"]).optional().default("all").describe('Filter by type: "image", "audio", "video", "binary", or "all"'),
8
+ limit: z.number().optional().default(50).describe("Maximum number of resources to return (default: 50)")
9
+ }).strict();
10
+ function createListResourcesTool() {
11
+ return defineTool({
12
+ id: "list_resources",
13
+ displayName: "List Resources",
14
+ description: "List available resources (images, files, etc.). Returns resource references that can be used with get_resource to obtain shareable URLs or metadata. Filter by source (tool/user) or kind (image/audio/video/binary).",
15
+ inputSchema: ListResourcesInputSchema,
16
+ async execute(input, context) {
17
+ const { source, kind, limit } = input;
18
+ const resourceManager = context.services?.resources;
19
+ if (!resourceManager) {
20
+ throw ToolError.configInvalid(
21
+ "list_resources requires ToolExecutionContext.services.resources"
22
+ );
23
+ }
24
+ try {
25
+ const blobStore = resourceManager.getBlobStore();
26
+ const allBlobs = await blobStore.listBlobs();
27
+ const resources = [];
28
+ for (const blob of allBlobs) {
29
+ if (blob.metadata.source === "system") {
30
+ continue;
31
+ }
32
+ if (source !== "all" && blob.metadata.source !== source) {
33
+ continue;
34
+ }
35
+ const mimeType = blob.metadata.mimeType;
36
+ let resourceKind = "binary";
37
+ if (mimeType.startsWith("image/")) resourceKind = "image";
38
+ else if (mimeType.startsWith("audio/")) resourceKind = "audio";
39
+ else if (mimeType.startsWith("video/")) resourceKind = "video";
40
+ if (kind !== "all" && resourceKind !== kind) {
41
+ continue;
42
+ }
43
+ resources.push({
44
+ reference: blob.uri,
45
+ kind: resourceKind,
46
+ mimeType: blob.metadata.mimeType,
47
+ ...blob.metadata.originalName && { filename: blob.metadata.originalName },
48
+ source: blob.metadata.source || "tool",
49
+ size: blob.metadata.size,
50
+ createdAt: blob.metadata.createdAt.toISOString()
51
+ });
52
+ }
53
+ resources.sort(
54
+ (a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
55
+ );
56
+ const limitedResources = resources.slice(0, limit);
57
+ return {
58
+ success: true,
59
+ count: limitedResources.length,
60
+ resources: limitedResources,
61
+ _hint: limitedResources.length > 0 ? "Use get_resource with a reference to get a shareable URL or metadata" : "No resources found matching the criteria"
62
+ };
63
+ } catch (error) {
64
+ return {
65
+ success: false,
66
+ error: `Failed to list resources: ${error instanceof Error ? error.message : String(error)}`,
67
+ resources: []
68
+ };
69
+ }
70
+ }
71
+ });
72
+ }
73
+ export {
74
+ createListResourcesTool
75
+ };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var sleep_tool_exports = {};
20
+ __export(sleep_tool_exports, {
21
+ createSleepTool: () => createSleepTool
22
+ });
23
+ module.exports = __toCommonJS(sleep_tool_exports);
24
+ var import_zod = require("zod");
25
+ var import_core = require("@dexto/core");
26
+ const SleepInputSchema = import_zod.z.object({
27
+ ms: import_zod.z.number().int().positive().max(6e5).describe("Milliseconds to sleep (max 10 minutes)")
28
+ }).strict();
29
+ function createSleepTool() {
30
+ return (0, import_core.defineTool)({
31
+ id: "sleep",
32
+ displayName: "Sleep",
33
+ description: "Pause execution for a specified number of milliseconds.",
34
+ inputSchema: SleepInputSchema,
35
+ async execute(input, _context) {
36
+ const { ms } = input;
37
+ await new Promise((resolve) => setTimeout(resolve, ms));
38
+ return { sleptMs: ms };
39
+ }
40
+ });
41
+ }
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ createSleepTool
45
+ });
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { Tool } from '@dexto/core';
3
+
4
+ declare const SleepInputSchema: z.ZodObject<{
5
+ ms: z.ZodNumber;
6
+ }, "strict", z.ZodTypeAny, {
7
+ ms: number;
8
+ }, {
9
+ ms: number;
10
+ }>;
11
+ /**
12
+ * Internal tool for sleeping/delaying execution.
13
+ */
14
+ declare function createSleepTool(): Tool<typeof SleepInputSchema>;
15
+
16
+ export { createSleepTool };
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import type { Tool } from '@dexto/core';
3
+ declare const SleepInputSchema: z.ZodObject<{
4
+ ms: z.ZodNumber;
5
+ }, "strict", z.ZodTypeAny, {
6
+ ms: number;
7
+ }, {
8
+ ms: number;
9
+ }>;
10
+ /**
11
+ * Internal tool for sleeping/delaying execution.
12
+ */
13
+ export declare function createSleepTool(): Tool<typeof SleepInputSchema>;
14
+ export {};
15
+ //# sourceMappingURL=sleep-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sleep-tool.d.ts","sourceRoot":"","sources":["../../src/implementations/sleep-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAE9D,QAAA,MAAM,gBAAgB;;;;;;EAST,CAAC;AAEd;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAY/D"}
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ import { defineTool } from "@dexto/core";
3
+ const SleepInputSchema = z.object({
4
+ ms: z.number().int().positive().max(6e5).describe("Milliseconds to sleep (max 10 minutes)")
5
+ }).strict();
6
+ function createSleepTool() {
7
+ return defineTool({
8
+ id: "sleep",
9
+ displayName: "Sleep",
10
+ description: "Pause execution for a specified number of milliseconds.",
11
+ inputSchema: SleepInputSchema,
12
+ async execute(input, _context) {
13
+ const { ms } = input;
14
+ await new Promise((resolve) => setTimeout(resolve, ms));
15
+ return { sleptMs: ms };
16
+ }
17
+ });
18
+ }
19
+ export {
20
+ createSleepTool
21
+ };
package/dist/index.cjs ADDED
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var index_exports = {};
20
+ __export(index_exports, {
21
+ BUILTIN_TOOL_NAMES: () => import_builtin_tools_factory2.BUILTIN_TOOL_NAMES,
22
+ BuiltinToolsConfigSchema: () => import_builtin_tools_factory.BuiltinToolsConfigSchema,
23
+ builtinToolsFactory: () => import_builtin_tools_factory.builtinToolsFactory
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var import_builtin_tools_factory = require("./builtin-tools-factory.js");
27
+ var import_builtin_tools_factory2 = require("./builtin-tools-factory.js");
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ BUILTIN_TOOL_NAMES,
31
+ BuiltinToolsConfigSchema,
32
+ builtinToolsFactory
33
+ });
@@ -0,0 +1,3 @@
1
+ export { BUILTIN_TOOL_NAMES, BuiltinToolName, BuiltinToolsConfig, BuiltinToolsConfigSchema, builtinToolsFactory } from './builtin-tools-factory.cjs';
2
+ import 'zod';
3
+ import '@dexto/agent-config';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @dexto/tools-builtins
3
+ *
4
+ * Built-in tools shipped with Dexto.
5
+ * These are always available to an agent and can be enabled/disabled via config.
6
+ *
7
+ * Tool IDs:
8
+ * - ask_user
9
+ * - delegate_to_url
10
+ * - list_resources
11
+ * - get_resource
12
+ * - invoke_skill
13
+ */
14
+ export { builtinToolsFactory, BuiltinToolsConfigSchema } from './builtin-tools-factory.js';
15
+ export { BUILTIN_TOOL_NAMES } from './builtin-tools-factory.js';
16
+ export type { BuiltinToolsConfig, BuiltinToolName } from './builtin-tools-factory.js';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { builtinToolsFactory, BuiltinToolsConfigSchema } from "./builtin-tools-factory.js";
2
+ import { BUILTIN_TOOL_NAMES } from "./builtin-tools-factory.js";
3
+ export {
4
+ BUILTIN_TOOL_NAMES,
5
+ BuiltinToolsConfigSchema,
6
+ builtinToolsFactory
7
+ };
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@dexto/tools-builtins",
3
+ "version": "1.6.0",
4
+ "description": "Built-in tools factory for Dexto agents",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "keywords": [
15
+ "dexto",
16
+ "tools",
17
+ "builtins"
18
+ ],
19
+ "dependencies": {
20
+ "undici": "^7.22.0",
21
+ "zod": "^3.25.0",
22
+ "@dexto/agent-config": "1.6.0",
23
+ "@dexto/core": "1.6.0"
24
+ },
25
+ "devDependencies": {
26
+ "tsup": "^8.0.0",
27
+ "typescript": "^5.3.3"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "README.md"
32
+ ],
33
+ "scripts": {
34
+ "build": "tsup",
35
+ "typecheck": "tsc --noEmit",
36
+ "clean": "rm -rf dist"
37
+ }
38
+ }