@dexto/tools-lifecycle 1.9.8 → 1.10.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.
- package/dist/memory-tools.cjs +5 -0
- package/dist/memory-tools.d.ts.map +1 -1
- package/dist/memory-tools.js +6 -0
- package/dist/search-history-tool.cjs +1 -0
- package/dist/search-history-tool.d.ts.map +1 -1
- package/dist/search-history-tool.js +2 -0
- package/dist/view-logs-tool.cjs +1 -0
- package/dist/view-logs-tool.d.ts.map +1 -1
- package/dist/view-logs-tool.js +2 -1
- package/package.json +3 -3
package/dist/memory-tools.cjs
CHANGED
|
@@ -41,6 +41,7 @@ function createMemoryListTool() {
|
|
|
41
41
|
description: "List stored memories for this agent, with optional filtering.",
|
|
42
42
|
inputSchema: MemoryListInputSchema,
|
|
43
43
|
presentation: {
|
|
44
|
+
activity: import_tools.TOOL_ACTIVITY.listMemories,
|
|
44
45
|
describeHeader: (input) => {
|
|
45
46
|
const filterParts = [];
|
|
46
47
|
if (input.tags && input.tags.length > 0) {
|
|
@@ -84,6 +85,7 @@ function createMemoryGetTool() {
|
|
|
84
85
|
description: "Get a memory by ID.",
|
|
85
86
|
inputSchema: MemoryGetInputSchema,
|
|
86
87
|
presentation: {
|
|
88
|
+
activity: import_tools.TOOL_ACTIVITY.readMemory,
|
|
87
89
|
describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
|
|
88
90
|
title: "Get Memory",
|
|
89
91
|
argsText: (0, import_tools.truncateForHeader)(input.id, 140)
|
|
@@ -111,6 +113,7 @@ function createMemoryCreateTool() {
|
|
|
111
113
|
description: "Create a new memory.",
|
|
112
114
|
inputSchema: MemoryCreateInputSchema,
|
|
113
115
|
presentation: {
|
|
116
|
+
activity: import_tools.TOOL_ACTIVITY.createMemory,
|
|
114
117
|
describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
|
|
115
118
|
title: "Create Memory",
|
|
116
119
|
argsText: (0, import_tools.truncateForHeader)(input.content, 140)
|
|
@@ -144,6 +147,7 @@ function createMemoryUpdateTool() {
|
|
|
144
147
|
description: "Update an existing memory.",
|
|
145
148
|
inputSchema: MemoryUpdateInputSchema,
|
|
146
149
|
presentation: {
|
|
150
|
+
activity: import_tools.TOOL_ACTIVITY.updateMemory,
|
|
147
151
|
describeHeader: (input) => {
|
|
148
152
|
const updateParts = [];
|
|
149
153
|
if (input.content !== void 0) updateParts.push("content");
|
|
@@ -181,6 +185,7 @@ function createMemoryDeleteTool() {
|
|
|
181
185
|
description: "Delete a memory by ID.",
|
|
182
186
|
inputSchema: MemoryDeleteInputSchema,
|
|
183
187
|
presentation: {
|
|
188
|
+
activity: import_tools.TOOL_ACTIVITY.deleteMemory,
|
|
184
189
|
describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
|
|
185
190
|
title: "Delete Memory",
|
|
186
191
|
argsText: (0, import_tools.truncateForHeader)(input.id, 140)
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"memory-tools.d.ts","sourceRoot":"","sources":["../src/memory-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAIpE,QAAA,MAAM,qBAAqB;;;;;;;;;kBAoBd,CAAC;AAEd,wBAAgB,oBAAoB,IAAI,IAAI,CAAC,OAAO,qBAAqB,CAAC,CA8CzE;AAED,QAAA,MAAM,oBAAoB;;kBAA8D,CAAC;AAEzF,wBAAgB,mBAAmB,IAAI,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAuBvE;AAED,QAAA,MAAM,uBAAuB;;;;;;;;kBAShB,CAAC;AAEd,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CA6B7E;AAED,QAAA,MAAM,uBAAuB;;;;;;;;;kBAQhB,CAAC;AAEd,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CA2C7E;AAED,QAAA,MAAM,uBAAuB;;kBAA8D,CAAC;AAE5F,wBAAgB,sBAAsB,IAAI,IAAI,CAAC,OAAO,uBAAuB,CAAC,CAwB7E"}
|
package/dist/memory-tools.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import {
|
|
3
3
|
ToolError,
|
|
4
|
+
TOOL_ACTIVITY,
|
|
4
5
|
createLocalToolCallHeader,
|
|
5
6
|
defineTool,
|
|
6
7
|
truncateForHeader
|
|
@@ -19,6 +20,7 @@ function createMemoryListTool() {
|
|
|
19
20
|
description: "List stored memories for this agent, with optional filtering.",
|
|
20
21
|
inputSchema: MemoryListInputSchema,
|
|
21
22
|
presentation: {
|
|
23
|
+
activity: TOOL_ACTIVITY.listMemories,
|
|
22
24
|
describeHeader: (input) => {
|
|
23
25
|
const filterParts = [];
|
|
24
26
|
if (input.tags && input.tags.length > 0) {
|
|
@@ -62,6 +64,7 @@ function createMemoryGetTool() {
|
|
|
62
64
|
description: "Get a memory by ID.",
|
|
63
65
|
inputSchema: MemoryGetInputSchema,
|
|
64
66
|
presentation: {
|
|
67
|
+
activity: TOOL_ACTIVITY.readMemory,
|
|
65
68
|
describeHeader: (input) => createLocalToolCallHeader({
|
|
66
69
|
title: "Get Memory",
|
|
67
70
|
argsText: truncateForHeader(input.id, 140)
|
|
@@ -89,6 +92,7 @@ function createMemoryCreateTool() {
|
|
|
89
92
|
description: "Create a new memory.",
|
|
90
93
|
inputSchema: MemoryCreateInputSchema,
|
|
91
94
|
presentation: {
|
|
95
|
+
activity: TOOL_ACTIVITY.createMemory,
|
|
92
96
|
describeHeader: (input) => createLocalToolCallHeader({
|
|
93
97
|
title: "Create Memory",
|
|
94
98
|
argsText: truncateForHeader(input.content, 140)
|
|
@@ -122,6 +126,7 @@ function createMemoryUpdateTool() {
|
|
|
122
126
|
description: "Update an existing memory.",
|
|
123
127
|
inputSchema: MemoryUpdateInputSchema,
|
|
124
128
|
presentation: {
|
|
129
|
+
activity: TOOL_ACTIVITY.updateMemory,
|
|
125
130
|
describeHeader: (input) => {
|
|
126
131
|
const updateParts = [];
|
|
127
132
|
if (input.content !== void 0) updateParts.push("content");
|
|
@@ -159,6 +164,7 @@ function createMemoryDeleteTool() {
|
|
|
159
164
|
description: "Delete a memory by ID.",
|
|
160
165
|
inputSchema: MemoryDeleteInputSchema,
|
|
161
166
|
presentation: {
|
|
167
|
+
activity: TOOL_ACTIVITY.deleteMemory,
|
|
162
168
|
describeHeader: (input) => createLocalToolCallHeader({
|
|
163
169
|
title: "Delete Memory",
|
|
164
170
|
argsText: truncateForHeader(input.id, 140)
|
|
@@ -41,6 +41,7 @@ function createSearchHistoryTool() {
|
|
|
41
41
|
description: 'Search through conversation history across sessions. Use mode="messages" to search for specific messages, or mode="sessions" to find sessions containing the query. For message search, you can filter by sessionId (specific session), role (user/assistant/system/tool), limit results, and set pagination offset.',
|
|
42
42
|
inputSchema: SearchHistoryInputSchema,
|
|
43
43
|
presentation: {
|
|
44
|
+
activity: import_tools.TOOL_ACTIVITY.searchHistory,
|
|
44
45
|
describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
|
|
45
46
|
title: "Search History",
|
|
46
47
|
argsText: (0, import_tools.truncateForHeader)(`${input.mode}: ${input.query}`, 140)
|
|
@@ -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;
|
|
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;AASxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,mBAAmB,CAAC;AAEpE,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;kBA6BjB,CAAC;AAEd;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAsC/E"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import {
|
|
3
3
|
ToolError,
|
|
4
|
+
TOOL_ACTIVITY,
|
|
4
5
|
createLocalToolCallHeader,
|
|
5
6
|
defineTool,
|
|
6
7
|
truncateForHeader
|
|
@@ -23,6 +24,7 @@ function createSearchHistoryTool() {
|
|
|
23
24
|
description: 'Search through conversation history across sessions. Use mode="messages" to search for specific messages, or mode="sessions" to find sessions containing the query. For message search, you can filter by sessionId (specific session), role (user/assistant/system/tool), limit results, and set pagination offset.',
|
|
24
25
|
inputSchema: SearchHistoryInputSchema,
|
|
25
26
|
presentation: {
|
|
27
|
+
activity: TOOL_ACTIVITY.searchHistory,
|
|
26
28
|
describeHeader: (input) => createLocalToolCallHeader({
|
|
27
29
|
title: "Search History",
|
|
28
30
|
argsText: truncateForHeader(`${input.mode}: ${input.query}`, 140)
|
package/dist/view-logs-tool.cjs
CHANGED
|
@@ -95,6 +95,7 @@ function createViewLogsTool(options) {
|
|
|
95
95
|
description: "View this session log file (tail). Returns the most recent log lines for debugging. If file logging is not configured, returns a message instead.",
|
|
96
96
|
inputSchema: ViewLogsInputSchema,
|
|
97
97
|
presentation: {
|
|
98
|
+
activity: import_tools.TOOL_ACTIVITY.inspectLogs,
|
|
98
99
|
describeHeader: (input) => (0, import_tools.createLocalToolCallHeader)({
|
|
99
100
|
title: "View Logs",
|
|
100
101
|
argsText: `${input.lines} lines`
|
|
@@ -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,mBAAmB,CAAC;AAKpE,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,
|
|
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,mBAAmB,CAAC;AAKpE,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,CA6HnC"}
|
package/dist/view-logs-tool.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as fs from "node:fs/promises";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { ToolError, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
|
|
3
|
+
import { TOOL_ACTIVITY, ToolError, createLocalToolCallHeader, defineTool } from "@dexto/core/tools";
|
|
4
4
|
const LOG_LEVEL_VALUES = ["debug", "info", "warn", "error", "silly"];
|
|
5
5
|
const ViewLogsInputSchema = z.object({
|
|
6
6
|
lines: z.number().int().positive().optional().default(200).describe("Number of log lines to return from the end of the log file"),
|
|
@@ -62,6 +62,7 @@ function createViewLogsTool(options) {
|
|
|
62
62
|
description: "View this session log file (tail). Returns the most recent log lines for debugging. If file logging is not configured, returns a message instead.",
|
|
63
63
|
inputSchema: ViewLogsInputSchema,
|
|
64
64
|
presentation: {
|
|
65
|
+
activity: TOOL_ACTIVITY.inspectLogs,
|
|
65
66
|
describeHeader: (input) => createLocalToolCallHeader({
|
|
66
67
|
title: "View Logs",
|
|
67
68
|
argsText: `${input.lines} lines`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/tools-lifecycle",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Lifecycle and self-observation tools for Dexto agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"zod": "^4.3.6",
|
|
23
|
-
"@dexto/agent-config": "1.
|
|
24
|
-
"@dexto/core": "1.
|
|
23
|
+
"@dexto/agent-config": "1.10.1",
|
|
24
|
+
"@dexto/core": "1.10.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"tsup": "^8.0.0",
|