@dexto/tools-lifecycle 1.6.26 → 1.7.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.
package/dist/index.d.cts CHANGED
@@ -6,20 +6,18 @@ declare const LIFECYCLE_TOOL_NAMES: readonly ["view_logs", "search_history", "me
6
6
  type LifecycleToolName = (typeof LIFECYCLE_TOOL_NAMES)[number];
7
7
  declare const LifecycleToolsConfigSchema: z.ZodObject<{
8
8
  type: z.ZodLiteral<"lifecycle-tools">;
9
- enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["view_logs", "search_history", "memory_list", "memory_get", "memory_create", "memory_update", "memory_delete"]>, "many">>;
9
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
10
+ view_logs: "view_logs";
11
+ search_history: "search_history";
12
+ memory_list: "memory_list";
13
+ memory_get: "memory_get";
14
+ memory_create: "memory_create";
15
+ memory_update: "memory_update";
16
+ memory_delete: "memory_delete";
17
+ }>>>;
10
18
  maxLogLines: z.ZodDefault<z.ZodNumber>;
11
19
  maxLogBytes: z.ZodDefault<z.ZodNumber>;
12
- }, "strict", z.ZodTypeAny, {
13
- type: "lifecycle-tools";
14
- maxLogLines: number;
15
- maxLogBytes: number;
16
- enabledTools?: ("view_logs" | "search_history" | "memory_list" | "memory_get" | "memory_create" | "memory_update" | "memory_delete")[] | undefined;
17
- }, {
18
- type: "lifecycle-tools";
19
- enabledTools?: ("view_logs" | "search_history" | "memory_list" | "memory_get" | "memory_create" | "memory_update" | "memory_delete")[] | undefined;
20
- maxLogLines?: number | undefined;
21
- maxLogBytes?: number | undefined;
22
- }>;
20
+ }, z.core.$strict>;
23
21
  type LifecycleToolsConfig = z.output<typeof LifecycleToolsConfigSchema>;
24
22
 
25
23
  declare const lifecycleToolsFactory: ToolFactory<LifecycleToolsConfig>;
@@ -27,22 +25,22 @@ declare const lifecycleToolsFactory: ToolFactory<LifecycleToolsConfig>;
27
25
  declare const ViewLogsInputSchema: z.ZodObject<{
28
26
  lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
29
27
  query: z.ZodOptional<z.ZodString>;
30
- level: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["debug", "info", "warn", "error", "silly"]>, z.ZodArray<z.ZodEnum<["debug", "info", "warn", "error", "silly"]>, "many">]>>;
28
+ level: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
29
+ error: "error";
30
+ debug: "debug";
31
+ info: "info";
32
+ warn: "warn";
33
+ silly: "silly";
34
+ }>, z.ZodArray<z.ZodEnum<{
35
+ error: "error";
36
+ debug: "debug";
37
+ info: "info";
38
+ warn: "warn";
39
+ silly: "silly";
40
+ }>>]>>;
31
41
  component: z.ZodOptional<z.ZodString>;
32
42
  includeContext: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
33
- }, "strict", z.ZodTypeAny, {
34
- lines: number;
35
- includeContext: boolean;
36
- query?: string | undefined;
37
- level?: "debug" | "info" | "warn" | "error" | "silly" | ("debug" | "info" | "warn" | "error" | "silly")[] | undefined;
38
- component?: string | undefined;
39
- }, {
40
- lines?: number | undefined;
41
- query?: string | undefined;
42
- level?: "debug" | "info" | "warn" | "error" | "silly" | ("debug" | "info" | "warn" | "error" | "silly")[] | undefined;
43
- component?: string | undefined;
44
- includeContext?: boolean | undefined;
45
- }>;
43
+ }, z.core.$strict>;
46
44
  declare function createViewLogsTool(options: {
47
45
  maxLogLines: number;
48
46
  maxLogBytes: number;
@@ -50,26 +48,20 @@ declare function createViewLogsTool(options: {
50
48
 
51
49
  declare const SearchHistoryInputSchema: z.ZodObject<{
52
50
  query: z.ZodString;
53
- mode: z.ZodEnum<["messages", "sessions"]>;
51
+ mode: z.ZodEnum<{
52
+ messages: "messages";
53
+ sessions: "sessions";
54
+ }>;
54
55
  sessionId: z.ZodOptional<z.ZodString>;
55
- role: z.ZodOptional<z.ZodEnum<["user", "assistant", "system", "tool"]>>;
56
+ role: z.ZodOptional<z.ZodEnum<{
57
+ user: "user";
58
+ system: "system";
59
+ assistant: "assistant";
60
+ tool: "tool";
61
+ }>>;
56
62
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
57
63
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
58
- }, "strict", z.ZodTypeAny, {
59
- query: string;
60
- limit: number;
61
- offset: number;
62
- mode: "messages" | "sessions";
63
- sessionId?: string | undefined;
64
- role?: "user" | "system" | "assistant" | "tool" | undefined;
65
- }, {
66
- query: string;
67
- mode: "messages" | "sessions";
68
- sessionId?: string | undefined;
69
- limit?: number | undefined;
70
- offset?: number | undefined;
71
- role?: "user" | "system" | "assistant" | "tool" | undefined;
72
- }>;
64
+ }, z.core.$strict>;
73
65
  /**
74
66
  * Create the `search_history` tool.
75
67
  *
@@ -79,77 +71,44 @@ declare const SearchHistoryInputSchema: z.ZodObject<{
79
71
  declare function createSearchHistoryTool(): Tool<typeof SearchHistoryInputSchema>;
80
72
 
81
73
  declare const MemoryListInputSchema: z.ZodObject<{
82
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
- source: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
74
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
+ source: z.ZodOptional<z.ZodEnum<{
76
+ user: "user";
77
+ system: "system";
78
+ }>>;
84
79
  pinned: z.ZodOptional<z.ZodBoolean>;
85
80
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
86
81
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
87
- }, "strict", z.ZodTypeAny, {
88
- limit: number;
89
- offset: number;
90
- tags?: string[] | undefined;
91
- source?: "user" | "system" | undefined;
92
- pinned?: boolean | undefined;
93
- }, {
94
- tags?: string[] | undefined;
95
- source?: "user" | "system" | undefined;
96
- pinned?: boolean | undefined;
97
- limit?: number | undefined;
98
- offset?: number | undefined;
99
- }>;
82
+ }, z.core.$strict>;
100
83
  declare function createMemoryListTool(): Tool<typeof MemoryListInputSchema>;
101
84
  declare const MemoryGetInputSchema: z.ZodObject<{
102
85
  id: z.ZodString;
103
- }, "strict", z.ZodTypeAny, {
104
- id: string;
105
- }, {
106
- id: string;
107
- }>;
86
+ }, z.core.$strict>;
108
87
  declare function createMemoryGetTool(): Tool<typeof MemoryGetInputSchema>;
109
88
  declare const MemoryCreateInputSchema: z.ZodObject<{
110
89
  content: z.ZodString;
111
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
90
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
91
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
92
+ user: "user";
93
+ system: "system";
94
+ }>>>;
113
95
  pinned: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
- }, "strict", z.ZodTypeAny, {
115
- source: "user" | "system";
116
- pinned: boolean;
117
- content: string;
118
- tags?: string[] | undefined;
119
- }, {
120
- content: string;
121
- tags?: string[] | undefined;
122
- source?: "user" | "system" | undefined;
123
- pinned?: boolean | undefined;
124
- }>;
96
+ }, z.core.$strict>;
125
97
  declare function createMemoryCreateTool(): Tool<typeof MemoryCreateInputSchema>;
126
98
  declare const MemoryUpdateInputSchema: z.ZodObject<{
127
99
  id: z.ZodString;
128
100
  content: z.ZodOptional<z.ZodString>;
129
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
- source: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
101
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
102
+ source: z.ZodOptional<z.ZodEnum<{
103
+ user: "user";
104
+ system: "system";
105
+ }>>;
131
106
  pinned: z.ZodOptional<z.ZodBoolean>;
132
- }, "strict", z.ZodTypeAny, {
133
- id: string;
134
- tags?: string[] | undefined;
135
- source?: "user" | "system" | undefined;
136
- pinned?: boolean | undefined;
137
- content?: string | undefined;
138
- }, {
139
- id: string;
140
- tags?: string[] | undefined;
141
- source?: "user" | "system" | undefined;
142
- pinned?: boolean | undefined;
143
- content?: string | undefined;
144
- }>;
107
+ }, z.core.$strict>;
145
108
  declare function createMemoryUpdateTool(): Tool<typeof MemoryUpdateInputSchema>;
146
109
  declare const MemoryDeleteInputSchema: z.ZodObject<{
147
110
  id: z.ZodString;
148
- }, "strict", z.ZodTypeAny, {
149
- id: string;
150
- }, {
151
- id: string;
152
- }>;
111
+ }, z.core.$strict>;
153
112
  declare function createMemoryDeleteTool(): Tool<typeof MemoryDeleteInputSchema>;
154
113
 
155
114
  export { LIFECYCLE_TOOL_NAMES, type LifecycleToolName, type LifecycleToolsConfig, LifecycleToolsConfigSchema, createMemoryCreateTool, createMemoryDeleteTool, createMemoryGetTool, createMemoryListTool, createMemoryUpdateTool, createSearchHistoryTool, createViewLogsTool, lifecycleToolsFactory };
@@ -1,77 +1,44 @@
1
1
  import { z } from 'zod';
2
2
  import type { Tool } from '@dexto/core';
3
3
  declare const MemoryListInputSchema: z.ZodObject<{
4
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5
- source: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
4
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
+ source: z.ZodOptional<z.ZodEnum<{
6
+ user: "user";
7
+ system: "system";
8
+ }>>;
6
9
  pinned: z.ZodOptional<z.ZodBoolean>;
7
10
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
11
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
- }, "strict", z.ZodTypeAny, {
10
- limit: number;
11
- offset: number;
12
- tags?: string[] | undefined;
13
- source?: "user" | "system" | undefined;
14
- pinned?: boolean | undefined;
15
- }, {
16
- tags?: string[] | undefined;
17
- source?: "user" | "system" | undefined;
18
- pinned?: boolean | undefined;
19
- limit?: number | undefined;
20
- offset?: number | undefined;
21
- }>;
12
+ }, z.core.$strict>;
22
13
  export declare function createMemoryListTool(): Tool<typeof MemoryListInputSchema>;
23
14
  declare const MemoryGetInputSchema: z.ZodObject<{
24
15
  id: z.ZodString;
25
- }, "strict", z.ZodTypeAny, {
26
- id: string;
27
- }, {
28
- id: string;
29
- }>;
16
+ }, z.core.$strict>;
30
17
  export declare function createMemoryGetTool(): Tool<typeof MemoryGetInputSchema>;
31
18
  declare const MemoryCreateInputSchema: z.ZodObject<{
32
19
  content: z.ZodString;
33
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["user", "system"]>>>;
20
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
22
+ user: "user";
23
+ system: "system";
24
+ }>>>;
35
25
  pinned: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
36
- }, "strict", z.ZodTypeAny, {
37
- source: "user" | "system";
38
- pinned: boolean;
39
- content: string;
40
- tags?: string[] | undefined;
41
- }, {
42
- content: string;
43
- tags?: string[] | undefined;
44
- source?: "user" | "system" | undefined;
45
- pinned?: boolean | undefined;
46
- }>;
26
+ }, z.core.$strict>;
47
27
  export declare function createMemoryCreateTool(): Tool<typeof MemoryCreateInputSchema>;
48
28
  declare const MemoryUpdateInputSchema: z.ZodObject<{
49
29
  id: z.ZodString;
50
30
  content: z.ZodOptional<z.ZodString>;
51
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
- source: z.ZodOptional<z.ZodEnum<["user", "system"]>>;
31
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
32
+ source: z.ZodOptional<z.ZodEnum<{
33
+ user: "user";
34
+ system: "system";
35
+ }>>;
53
36
  pinned: z.ZodOptional<z.ZodBoolean>;
54
- }, "strict", z.ZodTypeAny, {
55
- id: string;
56
- tags?: string[] | undefined;
57
- source?: "user" | "system" | undefined;
58
- pinned?: boolean | undefined;
59
- content?: string | undefined;
60
- }, {
61
- id: string;
62
- tags?: string[] | undefined;
63
- source?: "user" | "system" | undefined;
64
- pinned?: boolean | undefined;
65
- content?: string | undefined;
66
- }>;
37
+ }, z.core.$strict>;
67
38
  export declare function createMemoryUpdateTool(): Tool<typeof MemoryUpdateInputSchema>;
68
39
  declare const MemoryDeleteInputSchema: z.ZodObject<{
69
40
  id: z.ZodString;
70
- }, "strict", z.ZodTypeAny, {
71
- id: string;
72
- }, {
73
- id: string;
74
- }>;
41
+ }, z.core.$strict>;
75
42
  export declare function createMemoryDeleteTool(): Tool<typeof MemoryDeleteInputSchema>;
76
43
  export {};
77
44
  //# sourceMappingURL=memory-tools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory-tools.d.ts","sourceRoot":"","sources":["../src/memory-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAqC,IAAI,EAAwB,MAAM,aAAa,CAAC;AAIjG,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAoBd,CAAC;AAEd,wBAAgB,oBAAoB,IAAI,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA6CzE;AAED,QAAA,MAAM,oBAAoB;;;;;;EAA8D,CAAC;AAEzF,wBAAgB,mBAAmB,IAAI,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAsBvE;AAED,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;EAShB,CAAC;AAEd,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CA4B7E;AAED,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAQhB,CAAC;AAEd,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CA0C7E;AAED,QAAA,MAAM,uBAAuB;;;;;;EAA8D,CAAC;AAE5F,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CAuB7E"}
1
+ {"version":3,"file":"memory-tools.d.ts","sourceRoot":"","sources":["../src/memory-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAqC,IAAI,EAAwB,MAAM,aAAa,CAAC;AAIjG,QAAA,MAAM,qBAAqB;;;;;;;;;kBAoBd,CAAC;AAEd,wBAAgB,oBAAoB,IAAI,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA6CzE;AAED,QAAA,MAAM,oBAAoB;;kBAA8D,CAAC;AAEzF,wBAAgB,mBAAmB,IAAI,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAsBvE;AAED,QAAA,MAAM,uBAAuB;;;;;;;;kBAShB,CAAC;AAEd,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CA4B7E;AAED,QAAA,MAAM,uBAAuB;;;;;;;;;kBAQhB,CAAC;AAEd,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CA0C7E;AAED,QAAA,MAAM,uBAAuB;;kBAA8D,CAAC;AAE5F,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CAuB7E"}
@@ -2,26 +2,20 @@ import { z } from 'zod';
2
2
  import type { Tool } from '@dexto/core';
3
3
  declare const SearchHistoryInputSchema: z.ZodObject<{
4
4
  query: z.ZodString;
5
- mode: z.ZodEnum<["messages", "sessions"]>;
5
+ mode: z.ZodEnum<{
6
+ messages: "messages";
7
+ sessions: "sessions";
8
+ }>;
6
9
  sessionId: z.ZodOptional<z.ZodString>;
7
- role: z.ZodOptional<z.ZodEnum<["user", "assistant", "system", "tool"]>>;
10
+ role: z.ZodOptional<z.ZodEnum<{
11
+ user: "user";
12
+ system: "system";
13
+ assistant: "assistant";
14
+ tool: "tool";
15
+ }>>;
8
16
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9
17
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10
- }, "strict", z.ZodTypeAny, {
11
- query: string;
12
- limit: number;
13
- offset: number;
14
- mode: "messages" | "sessions";
15
- sessionId?: string | undefined;
16
- role?: "user" | "system" | "assistant" | "tool" | undefined;
17
- }, {
18
- query: string;
19
- mode: "messages" | "sessions";
20
- sessionId?: string | undefined;
21
- limit?: number | undefined;
22
- offset?: number | undefined;
23
- role?: "user" | "system" | "assistant" | "tool" | undefined;
24
- }>;
18
+ }, z.core.$strict>;
25
19
  /**
26
20
  * Create the `search_history` tool.
27
21
  *
@@ -1 +1 @@
1
- {"version":3,"file":"search-history-tool.d.ts","sourceRoot":"","sources":["../src/search-history-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAG9D,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EA6BjB,CAAC;AAEd;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAqC/E"}
1
+ {"version":3,"file":"search-history-tool.d.ts","sourceRoot":"","sources":["../src/search-history-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAG9D,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;kBA6BjB,CAAC;AAEd;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAqC/E"}
@@ -3,19 +3,17 @@ export declare const LIFECYCLE_TOOL_NAMES: readonly ["view_logs", "search_histor
3
3
  export type LifecycleToolName = (typeof LIFECYCLE_TOOL_NAMES)[number];
4
4
  export declare const LifecycleToolsConfigSchema: z.ZodObject<{
5
5
  type: z.ZodLiteral<"lifecycle-tools">;
6
- enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["view_logs", "search_history", "memory_list", "memory_get", "memory_create", "memory_update", "memory_delete"]>, "many">>;
6
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7
+ view_logs: "view_logs";
8
+ search_history: "search_history";
9
+ memory_list: "memory_list";
10
+ memory_get: "memory_get";
11
+ memory_create: "memory_create";
12
+ memory_update: "memory_update";
13
+ memory_delete: "memory_delete";
14
+ }>>>;
7
15
  maxLogLines: z.ZodDefault<z.ZodNumber>;
8
16
  maxLogBytes: z.ZodDefault<z.ZodNumber>;
9
- }, "strict", z.ZodTypeAny, {
10
- type: "lifecycle-tools";
11
- maxLogLines: number;
12
- maxLogBytes: number;
13
- enabledTools?: ("view_logs" | "search_history" | "memory_list" | "memory_get" | "memory_create" | "memory_update" | "memory_delete")[] | undefined;
14
- }, {
15
- type: "lifecycle-tools";
16
- enabledTools?: ("view_logs" | "search_history" | "memory_list" | "memory_get" | "memory_create" | "memory_update" | "memory_delete")[] | undefined;
17
- maxLogLines?: number | undefined;
18
- maxLogBytes?: number | undefined;
19
- }>;
17
+ }, z.core.$strict>;
20
18
  export type LifecycleToolsConfig = z.output<typeof LifecycleToolsConfigSchema>;
21
19
  //# 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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,oBAAoB,0HAQvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EA0B1B,CAAC;AAEd,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"tool-factory-config.d.ts","sourceRoot":"","sources":["../src/tool-factory-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,oBAAoB,0HAQvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;kBA0B1B,CAAC;AAEd,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -3,22 +3,22 @@ import type { Tool } from '@dexto/core';
3
3
  declare const ViewLogsInputSchema: z.ZodObject<{
4
4
  lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5
5
  query: z.ZodOptional<z.ZodString>;
6
- level: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["debug", "info", "warn", "error", "silly"]>, z.ZodArray<z.ZodEnum<["debug", "info", "warn", "error", "silly"]>, "many">]>>;
6
+ level: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
7
+ error: "error";
8
+ debug: "debug";
9
+ info: "info";
10
+ warn: "warn";
11
+ silly: "silly";
12
+ }>, z.ZodArray<z.ZodEnum<{
13
+ error: "error";
14
+ debug: "debug";
15
+ info: "info";
16
+ warn: "warn";
17
+ silly: "silly";
18
+ }>>]>>;
7
19
  component: z.ZodOptional<z.ZodString>;
8
20
  includeContext: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9
- }, "strict", z.ZodTypeAny, {
10
- lines: number;
11
- includeContext: boolean;
12
- query?: string | undefined;
13
- level?: "debug" | "info" | "warn" | "error" | "silly" | ("debug" | "info" | "warn" | "error" | "silly")[] | undefined;
14
- component?: string | undefined;
15
- }, {
16
- lines?: number | undefined;
17
- query?: string | undefined;
18
- level?: "debug" | "info" | "warn" | "error" | "silly" | ("debug" | "info" | "warn" | "error" | "silly")[] | undefined;
19
- component?: string | undefined;
20
- includeContext?: boolean | undefined;
21
- }>;
21
+ }, z.core.$strict>;
22
22
  export declare function createViewLogsTool(options: {
23
23
  maxLogLines: number;
24
24
  maxLogBytes: number;
@@ -1 +1 @@
1
- {"version":3,"file":"view-logs-tool.d.ts","sourceRoot":"","sources":["../src/view-logs-tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAK9D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAwBZ,CAAC;AAyEd,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,GAAG,IAAI,CAAC,OAAO,mBAAmB,CAAC,CA4HnC"}
1
+ {"version":3,"file":"view-logs-tool.d.ts","sourceRoot":"","sources":["../src/view-logs-tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAK9D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;kBAwBZ,CAAC;AAyEd,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,GAAG,IAAI,CAAC,OAAO,mBAAmB,CAAC,CA4HnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/tools-lifecycle",
3
- "version": "1.6.26",
3
+ "version": "1.7.0",
4
4
  "description": "Lifecycle and self-observation tools for Dexto agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,9 +19,9 @@
19
19
  "memories"
20
20
  ],
21
21
  "dependencies": {
22
- "zod": "^3.25.0",
23
- "@dexto/agent-config": "1.6.26",
24
- "@dexto/core": "1.6.26"
22
+ "zod": "^4.3.6",
23
+ "@dexto/agent-config": "1.7.0",
24
+ "@dexto/core": "1.7.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsup": "^8.0.0",