@dexto/tools-process 1.6.27 → 1.7.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.
@@ -13,19 +13,7 @@ declare const BashExecInputSchema: z.ZodObject<{
13
13
  timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14
14
  run_in_background: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15
15
  cwd: z.ZodOptional<z.ZodString>;
16
- }, "strict", z.ZodTypeAny, {
17
- command: string;
18
- timeout: number;
19
- run_in_background: boolean;
20
- cwd?: string | undefined;
21
- description?: string | undefined;
22
- }, {
23
- command: string;
24
- timeout?: number | undefined;
25
- cwd?: string | undefined;
26
- description?: string | undefined;
27
- run_in_background?: boolean | undefined;
28
- }>;
16
+ }, z.core.$strict>;
29
17
  /**
30
18
  * Create the bash_exec internal tool
31
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"bash-exec-tool.d.ts","sourceRoot":"","sources":["../src/bash-exec-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAQtD,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAwBZ,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;AAE9F,wBAAgB,kBAAkB,CAC9B,iBAAiB,EAAE,oBAAoB,GACxC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAmKlC"}
1
+ {"version":3,"file":"bash-exec-tool.d.ts","sourceRoot":"","sources":["../src/bash-exec-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAQtD,QAAA,MAAM,mBAAmB;;;;;;kBAwBZ,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;AAE9F,wBAAgB,kBAAkB,CAC9B,iBAAiB,EAAE,oBAAoB,GACxC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAmKlC"}
@@ -8,11 +8,7 @@ import type { Tool } from '@dexto/core';
8
8
  import type { ProcessServiceGetter } from './bash-exec-tool.js';
9
9
  declare const BashOutputInputSchema: z.ZodObject<{
10
10
  process_id: z.ZodString;
11
- }, "strict", z.ZodTypeAny, {
12
- process_id: string;
13
- }, {
14
- process_id: string;
15
- }>;
11
+ }, z.core.$strict>;
16
12
  /**
17
13
  * Create the bash_output internal tool
18
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"bash-output-tool.d.ts","sourceRoot":"","sources":["../src/bash-output-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,QAAA,MAAM,qBAAqB;;;;;;EAId,CAAC;AAEd;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,iBAAiB,EAAE,oBAAoB,GACxC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA+BpC"}
1
+ {"version":3,"file":"bash-output-tool.d.ts","sourceRoot":"","sources":["../src/bash-output-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,QAAA,MAAM,qBAAqB;;kBAId,CAAC;AAEd;;GAEG;AACH,wBAAgB,oBAAoB,CAChC,iBAAiB,EAAE,oBAAoB,GACxC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA+BpC"}
package/dist/index.d.cts CHANGED
@@ -24,35 +24,19 @@ import { Logger, DextoRuntimeError, ToolExecutionContext, Tool } from '@dexto/co
24
24
  */
25
25
  declare const ProcessToolsConfigSchema: z.ZodObject<{
26
26
  type: z.ZodLiteral<"process-tools">;
27
- securityLevel: z.ZodDefault<z.ZodEnum<["strict", "moderate", "permissive"]>>;
27
+ securityLevel: z.ZodDefault<z.ZodEnum<{
28
+ strict: "strict";
29
+ moderate: "moderate";
30
+ permissive: "permissive";
31
+ }>>;
28
32
  maxTimeout: z.ZodDefault<z.ZodNumber>;
29
33
  maxConcurrentProcesses: z.ZodDefault<z.ZodNumber>;
30
34
  maxOutputBuffer: z.ZodDefault<z.ZodNumber>;
31
35
  workingDirectory: z.ZodOptional<z.ZodString>;
32
- allowedCommands: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
33
- blockedCommands: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
36
+ allowedCommands: z.ZodDefault<z.ZodArray<z.ZodString>>;
37
+ blockedCommands: z.ZodDefault<z.ZodArray<z.ZodString>>;
34
38
  environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
35
- }, "strict", z.ZodTypeAny, {
36
- securityLevel: "strict" | "moderate" | "permissive";
37
- maxTimeout: number;
38
- maxConcurrentProcesses: number;
39
- maxOutputBuffer: number;
40
- allowedCommands: string[];
41
- blockedCommands: string[];
42
- environment: Record<string, string>;
43
- type: "process-tools";
44
- workingDirectory?: string | undefined;
45
- }, {
46
- type: "process-tools";
47
- securityLevel?: "strict" | "moderate" | "permissive" | undefined;
48
- maxTimeout?: number | undefined;
49
- maxConcurrentProcesses?: number | undefined;
50
- maxOutputBuffer?: number | undefined;
51
- allowedCommands?: string[] | undefined;
52
- blockedCommands?: string[] | undefined;
53
- environment?: Record<string, string> | undefined;
54
- workingDirectory?: string | undefined;
55
- }>;
39
+ }, z.core.$strict>;
56
40
  type ProcessToolsConfig = z.output<typeof ProcessToolsConfigSchema>;
57
41
 
58
42
  declare const processToolsFactory: ToolFactory<ProcessToolsConfig>;
@@ -427,19 +411,7 @@ declare const BashExecInputSchema: z.ZodObject<{
427
411
  timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
428
412
  run_in_background: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
429
413
  cwd: z.ZodOptional<z.ZodString>;
430
- }, "strict", z.ZodTypeAny, {
431
- command: string;
432
- timeout: number;
433
- run_in_background: boolean;
434
- cwd?: string | undefined;
435
- description?: string | undefined;
436
- }, {
437
- command: string;
438
- timeout?: number | undefined;
439
- cwd?: string | undefined;
440
- description?: string | undefined;
441
- run_in_background?: boolean | undefined;
442
- }>;
414
+ }, z.core.$strict>;
443
415
  /**
444
416
  * Create the bash_exec internal tool
445
417
  */
@@ -454,11 +426,7 @@ declare function createBashExecTool(getProcessService: ProcessServiceGetter): To
454
426
 
455
427
  declare const BashOutputInputSchema: z.ZodObject<{
456
428
  process_id: z.ZodString;
457
- }, "strict", z.ZodTypeAny, {
458
- process_id: string;
459
- }, {
460
- process_id: string;
461
- }>;
429
+ }, z.core.$strict>;
462
430
  /**
463
431
  * Create the bash_output internal tool
464
432
  */
@@ -472,11 +440,7 @@ declare function createBashOutputTool(getProcessService: ProcessServiceGetter):
472
440
 
473
441
  declare const KillProcessInputSchema: z.ZodObject<{
474
442
  process_id: z.ZodString;
475
- }, "strict", z.ZodTypeAny, {
476
- process_id: string;
477
- }, {
478
- process_id: string;
479
- }>;
443
+ }, z.core.$strict>;
480
444
  /**
481
445
  * Create the kill_process internal tool
482
446
  */
@@ -8,11 +8,7 @@ import type { Tool } from '@dexto/core';
8
8
  import type { ProcessServiceGetter } from './bash-exec-tool.js';
9
9
  declare const KillProcessInputSchema: z.ZodObject<{
10
10
  process_id: z.ZodString;
11
- }, "strict", z.ZodTypeAny, {
12
- process_id: string;
13
- }, {
14
- process_id: string;
15
- }>;
11
+ }, z.core.$strict>;
16
12
  /**
17
13
  * Create the kill_process internal tool
18
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"kill-process-tool.d.ts","sourceRoot":"","sources":["../src/kill-process-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,QAAA,MAAM,sBAAsB;;;;;;EAIf,CAAC;AAEd;;GAEG;AACH,wBAAgB,qBAAqB,CACjC,iBAAiB,EAAE,oBAAoB,GACxC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CA8BrC"}
1
+ {"version":3,"file":"kill-process-tool.d.ts","sourceRoot":"","sources":["../src/kill-process-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,QAAA,MAAM,sBAAsB;;kBAIf,CAAC;AAEd;;GAEG;AACH,wBAAgB,qBAAqB,CACjC,iBAAiB,EAAE,oBAAoB,GACxC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CA8BrC"}
@@ -46,7 +46,7 @@ const ProcessToolsConfigSchema = import_zod.z.object({
46
46
  "Explicitly allowed commands (empty = all allowed with approval, strict mode only)"
47
47
  ),
48
48
  blockedCommands: import_zod.z.array(import_zod.z.string()).default(DEFAULT_BLOCKED_COMMANDS).describe("Blocked command patterns (applies to all security levels)"),
49
- environment: import_zod.z.record(import_zod.z.string()).default(DEFAULT_ENVIRONMENT).describe("Custom environment variables to set for command execution")
49
+ environment: import_zod.z.record(import_zod.z.string(), import_zod.z.string()).default(DEFAULT_ENVIRONMENT).describe("Custom environment variables to set for command execution")
50
50
  }).strict();
51
51
  // Annotate the CommonJS export names for ESM import in node:
52
52
  0 && (module.exports = {
@@ -20,34 +20,18 @@ import { z } from 'zod';
20
20
  */
21
21
  export declare const ProcessToolsConfigSchema: z.ZodObject<{
22
22
  type: z.ZodLiteral<"process-tools">;
23
- securityLevel: z.ZodDefault<z.ZodEnum<["strict", "moderate", "permissive"]>>;
23
+ securityLevel: z.ZodDefault<z.ZodEnum<{
24
+ strict: "strict";
25
+ moderate: "moderate";
26
+ permissive: "permissive";
27
+ }>>;
24
28
  maxTimeout: z.ZodDefault<z.ZodNumber>;
25
29
  maxConcurrentProcesses: z.ZodDefault<z.ZodNumber>;
26
30
  maxOutputBuffer: z.ZodDefault<z.ZodNumber>;
27
31
  workingDirectory: z.ZodOptional<z.ZodString>;
28
- allowedCommands: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
29
- blockedCommands: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
32
+ allowedCommands: z.ZodDefault<z.ZodArray<z.ZodString>>;
33
+ blockedCommands: z.ZodDefault<z.ZodArray<z.ZodString>>;
30
34
  environment: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
31
- }, "strict", z.ZodTypeAny, {
32
- securityLevel: "strict" | "moderate" | "permissive";
33
- maxTimeout: number;
34
- maxConcurrentProcesses: number;
35
- maxOutputBuffer: number;
36
- allowedCommands: string[];
37
- blockedCommands: string[];
38
- environment: Record<string, string>;
39
- type: "process-tools";
40
- workingDirectory?: string | undefined;
41
- }, {
42
- type: "process-tools";
43
- securityLevel?: "strict" | "moderate" | "permissive" | undefined;
44
- maxTimeout?: number | undefined;
45
- maxConcurrentProcesses?: number | undefined;
46
- maxOutputBuffer?: number | undefined;
47
- allowedCommands?: string[] | undefined;
48
- blockedCommands?: string[] | undefined;
49
- environment?: Record<string, string> | undefined;
50
- workingDirectory?: string | undefined;
51
- }>;
35
+ }, z.core.$strict>;
52
36
  export type ProcessToolsConfig = z.output<typeof ProcessToolsConfigSchema>;
53
37
  //# sourceMappingURL=tool-factory-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-factory-config.d.ts","sourceRoot":"","sources":["../src/tool-factory-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDxB,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"tool-factory-config.d.ts","sourceRoot":"","sources":["../src/tool-factory-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;kBAmDxB,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -23,7 +23,7 @@ const ProcessToolsConfigSchema = z.object({
23
23
  "Explicitly allowed commands (empty = all allowed with approval, strict mode only)"
24
24
  ),
25
25
  blockedCommands: z.array(z.string()).default(DEFAULT_BLOCKED_COMMANDS).describe("Blocked command patterns (applies to all security levels)"),
26
- environment: z.record(z.string()).default(DEFAULT_ENVIRONMENT).describe("Custom environment variables to set for command execution")
26
+ environment: z.record(z.string(), z.string()).default(DEFAULT_ENVIRONMENT).describe("Custom environment variables to set for command execution")
27
27
  }).strict();
28
28
  export {
29
29
  ProcessToolsConfigSchema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/tools-process",
3
- "version": "1.6.27",
3
+ "version": "1.7.1",
4
4
  "description": "Process tools factory for Dexto agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,9 +19,9 @@
19
19
  "shell"
20
20
  ],
21
21
  "dependencies": {
22
- "zod": "^3.25.0",
23
- "@dexto/agent-config": "1.6.27",
24
- "@dexto/core": "1.6.27"
22
+ "zod": "^4.3.6",
23
+ "@dexto/agent-config": "1.7.1",
24
+ "@dexto/core": "1.7.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsup": "^8.0.0",