@dexto/core 1.10.0 → 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.
Files changed (53) hide show
  1. package/dist/approval/schemas.cjs +2 -7
  2. package/dist/approval/schemas.d.ts +508 -5
  3. package/dist/approval/schemas.d.ts.map +1 -1
  4. package/dist/approval/schemas.js +1 -6
  5. package/dist/context/utils.cjs +28 -0
  6. package/dist/context/utils.d.ts.map +1 -1
  7. package/dist/context/utils.js +28 -0
  8. package/dist/index.browser.cjs +6 -0
  9. package/dist/index.browser.d.ts +4 -0
  10. package/dist/index.browser.d.ts.map +1 -1
  11. package/dist/index.browser.js +4 -0
  12. package/dist/llm/errors.d.ts +8 -8
  13. package/dist/llm/formatters/vercel.cjs +59 -24
  14. package/dist/llm/formatters/vercel.d.ts.map +1 -1
  15. package/dist/llm/formatters/vercel.js +59 -24
  16. package/dist/llm/schemas.d.ts +3 -3
  17. package/dist/llm/services/factory.cjs +7 -0
  18. package/dist/llm/services/factory.d.ts.map +1 -1
  19. package/dist/llm/services/factory.js +7 -0
  20. package/dist/session/schemas.d.ts +2 -2
  21. package/dist/storage/tool-executions/types.cjs +2 -1
  22. package/dist/storage/tool-executions/types.d.ts +254 -3
  23. package/dist/storage/tool-executions/types.d.ts.map +1 -1
  24. package/dist/storage/tool-executions/types.js +2 -1
  25. package/dist/systemPrompt/schemas.d.ts +3 -3
  26. package/dist/tools/activity.cjs +341 -0
  27. package/dist/tools/activity.d.ts +70 -0
  28. package/dist/tools/activity.d.ts.map +1 -0
  29. package/dist/tools/activity.js +318 -0
  30. package/dist/tools/display-types.cjs +34 -4
  31. package/dist/tools/display-types.d.ts.map +1 -1
  32. package/dist/tools/display-types.js +34 -4
  33. package/dist/tools/index.cjs +8 -1
  34. package/dist/tools/index.d.ts +3 -0
  35. package/dist/tools/index.d.ts.map +1 -1
  36. package/dist/tools/index.js +8 -1
  37. package/dist/tools/presentation/tool-presentation.cjs +78 -25
  38. package/dist/tools/presentation/tool-presentation.d.ts +2 -1
  39. package/dist/tools/presentation/tool-presentation.d.ts.map +1 -1
  40. package/dist/tools/presentation/tool-presentation.js +78 -25
  41. package/dist/tools/presentation-schema.cjs +118 -0
  42. package/dist/tools/presentation-schema.d.ts +132 -0
  43. package/dist/tools/presentation-schema.d.ts.map +1 -0
  44. package/dist/tools/presentation-schema.js +94 -0
  45. package/dist/tools/presentation.cjs +8 -0
  46. package/dist/tools/presentation.d.ts +4 -0
  47. package/dist/tools/presentation.d.ts.map +1 -1
  48. package/dist/tools/presentation.js +8 -0
  49. package/dist/tools/types.d.ts +12 -79
  50. package/dist/tools/types.d.ts.map +1 -1
  51. package/dist/workspace/types.d.ts +1 -0
  52. package/dist/workspace/types.d.ts.map +1 -1
  53. package/package.json +7 -2
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  import type { ToolExecutionResult } from '../../tools/types.js';
3
- import type { ToolPresentationSnapshotV1 } from '../../tools/types.js';
4
3
  import type { ToolCallMetadata } from '../../tools/tool-call-metadata.js';
5
4
  export declare const ToolExecutionIdentitySchema: z.ZodObject<{
6
5
  runId: z.ZodString;
@@ -38,7 +37,133 @@ export declare const ToolExecutionCompletedRecordSchema: z.ZodObject<{
38
37
  completedAt: z.ZodCoercedDate<unknown>;
39
38
  modelOutput: z.ZodUnknown;
40
39
  resultMetadata: z.ZodOptional<z.ZodObject<{
41
- presentationSnapshot: z.ZodOptional<z.ZodCustom<ToolPresentationSnapshotV1, ToolPresentationSnapshotV1>>;
40
+ presentationSnapshot: z.ZodOptional<z.ZodObject<{
41
+ version: z.ZodLiteral<1>;
42
+ activity: z.ZodOptional<z.ZodObject<{
43
+ category: z.ZodString;
44
+ label: z.ZodObject<{
45
+ running: z.ZodString;
46
+ completed: z.ZodString;
47
+ }, z.core.$strict>;
48
+ summary: z.ZodObject<{
49
+ verb: z.ZodString;
50
+ singular: z.ZodString;
51
+ plural: z.ZodString;
52
+ }, z.core.$strict>;
53
+ }, z.core.$strict>>;
54
+ source: z.ZodOptional<z.ZodObject<{
55
+ type: z.ZodEnum<{
56
+ mcp: "mcp";
57
+ local: "local";
58
+ }>;
59
+ mcpServerName: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strict>>;
61
+ header: z.ZodOptional<z.ZodObject<{
62
+ title: z.ZodOptional<z.ZodString>;
63
+ argsText: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strict>>;
65
+ chips: z.ZodOptional<z.ZodArray<z.ZodObject<{
66
+ kind: z.ZodEnum<{
67
+ info: "info";
68
+ warning: "warning";
69
+ success: "success";
70
+ danger: "danger";
71
+ neutral: "neutral";
72
+ }>;
73
+ text: z.ZodString;
74
+ }, z.core.$strict>>>;
75
+ args: z.ZodOptional<z.ZodObject<{
76
+ summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ label: z.ZodString;
78
+ display: z.ZodString;
79
+ kind: z.ZodOptional<z.ZodEnum<{
80
+ path: "path";
81
+ command: "command";
82
+ url: "url";
83
+ text: "text";
84
+ json: "json";
85
+ }>>;
86
+ sensitive: z.ZodOptional<z.ZodBoolean>;
87
+ }, z.core.$strict>>>;
88
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
89
+ id: z.ZodString;
90
+ label: z.ZodString;
91
+ collapsedByDefault: z.ZodOptional<z.ZodBoolean>;
92
+ items: z.ZodArray<z.ZodObject<{
93
+ label: z.ZodString;
94
+ display: z.ZodString;
95
+ kind: z.ZodOptional<z.ZodEnum<{
96
+ path: "path";
97
+ command: "command";
98
+ url: "url";
99
+ text: "text";
100
+ json: "json";
101
+ }>>;
102
+ sensitive: z.ZodOptional<z.ZodBoolean>;
103
+ }, z.core.$strict>>;
104
+ }, z.core.$strict>>>;
105
+ }, z.core.$strict>>;
106
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
+ approval: z.ZodOptional<z.ZodObject<{
108
+ actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
109
+ id: z.ZodString;
110
+ label: z.ZodString;
111
+ kind: z.ZodOptional<z.ZodEnum<{
112
+ primary: "primary";
113
+ secondary: "secondary";
114
+ danger: "danger";
115
+ }>>;
116
+ responseData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
117
+ uiEffects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
118
+ type: z.ZodLiteral<"setFlag">;
119
+ flag: z.ZodEnum<{
120
+ autoApproveEdits: "autoApproveEdits";
121
+ planModeActive: "planModeActive";
122
+ planModeInitialized: "planModeInitialized";
123
+ }>;
124
+ value: z.ZodBoolean;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ type: z.ZodLiteral<"toast">;
127
+ kind: z.ZodEnum<{
128
+ info: "info";
129
+ error: "error";
130
+ warning: "warning";
131
+ success: "success";
132
+ }>;
133
+ message: z.ZodString;
134
+ }, z.core.$strict>], "type">>>;
135
+ }, z.core.$strict>, z.ZodObject<{
136
+ id: z.ZodString;
137
+ label: z.ZodString;
138
+ kind: z.ZodOptional<z.ZodLiteral<"danger">>;
139
+ denyWithFeedback: z.ZodObject<{
140
+ placeholder: z.ZodOptional<z.ZodString>;
141
+ messageTemplate: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strict>;
143
+ }, z.core.$strict>]>>>;
144
+ }, z.core.$strict>>;
145
+ result: z.ZodOptional<z.ZodObject<{
146
+ summaryText: z.ZodOptional<z.ZodString>;
147
+ uiEffects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
148
+ type: z.ZodLiteral<"setFlag">;
149
+ flag: z.ZodEnum<{
150
+ autoApproveEdits: "autoApproveEdits";
151
+ planModeActive: "planModeActive";
152
+ planModeInitialized: "planModeInitialized";
153
+ }>;
154
+ value: z.ZodBoolean;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ type: z.ZodLiteral<"toast">;
157
+ kind: z.ZodEnum<{
158
+ info: "info";
159
+ error: "error";
160
+ warning: "warning";
161
+ success: "success";
162
+ }>;
163
+ message: z.ZodString;
164
+ }, z.core.$strict>], "type">>>;
165
+ }, z.core.$strict>>;
166
+ }, z.core.$strict>>;
42
167
  meta: z.ZodOptional<z.ZodCustom<ToolCallMetadata, ToolCallMetadata>>;
43
168
  requireApproval: z.ZodOptional<z.ZodBoolean>;
44
169
  approvalStatus: z.ZodOptional<z.ZodEnum<{
@@ -108,7 +233,133 @@ export declare const ToolExecutionRecordSchema: z.ZodDiscriminatedUnion<[z.ZodOb
108
233
  completedAt: z.ZodCoercedDate<unknown>;
109
234
  modelOutput: z.ZodUnknown;
110
235
  resultMetadata: z.ZodOptional<z.ZodObject<{
111
- presentationSnapshot: z.ZodOptional<z.ZodCustom<ToolPresentationSnapshotV1, ToolPresentationSnapshotV1>>;
236
+ presentationSnapshot: z.ZodOptional<z.ZodObject<{
237
+ version: z.ZodLiteral<1>;
238
+ activity: z.ZodOptional<z.ZodObject<{
239
+ category: z.ZodString;
240
+ label: z.ZodObject<{
241
+ running: z.ZodString;
242
+ completed: z.ZodString;
243
+ }, z.core.$strict>;
244
+ summary: z.ZodObject<{
245
+ verb: z.ZodString;
246
+ singular: z.ZodString;
247
+ plural: z.ZodString;
248
+ }, z.core.$strict>;
249
+ }, z.core.$strict>>;
250
+ source: z.ZodOptional<z.ZodObject<{
251
+ type: z.ZodEnum<{
252
+ mcp: "mcp";
253
+ local: "local";
254
+ }>;
255
+ mcpServerName: z.ZodOptional<z.ZodString>;
256
+ }, z.core.$strict>>;
257
+ header: z.ZodOptional<z.ZodObject<{
258
+ title: z.ZodOptional<z.ZodString>;
259
+ argsText: z.ZodOptional<z.ZodString>;
260
+ }, z.core.$strict>>;
261
+ chips: z.ZodOptional<z.ZodArray<z.ZodObject<{
262
+ kind: z.ZodEnum<{
263
+ info: "info";
264
+ warning: "warning";
265
+ success: "success";
266
+ danger: "danger";
267
+ neutral: "neutral";
268
+ }>;
269
+ text: z.ZodString;
270
+ }, z.core.$strict>>>;
271
+ args: z.ZodOptional<z.ZodObject<{
272
+ summary: z.ZodOptional<z.ZodArray<z.ZodObject<{
273
+ label: z.ZodString;
274
+ display: z.ZodString;
275
+ kind: z.ZodOptional<z.ZodEnum<{
276
+ path: "path";
277
+ command: "command";
278
+ url: "url";
279
+ text: "text";
280
+ json: "json";
281
+ }>>;
282
+ sensitive: z.ZodOptional<z.ZodBoolean>;
283
+ }, z.core.$strict>>>;
284
+ groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
285
+ id: z.ZodString;
286
+ label: z.ZodString;
287
+ collapsedByDefault: z.ZodOptional<z.ZodBoolean>;
288
+ items: z.ZodArray<z.ZodObject<{
289
+ label: z.ZodString;
290
+ display: z.ZodString;
291
+ kind: z.ZodOptional<z.ZodEnum<{
292
+ path: "path";
293
+ command: "command";
294
+ url: "url";
295
+ text: "text";
296
+ json: "json";
297
+ }>>;
298
+ sensitive: z.ZodOptional<z.ZodBoolean>;
299
+ }, z.core.$strict>>;
300
+ }, z.core.$strict>>>;
301
+ }, z.core.$strict>>;
302
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
303
+ approval: z.ZodOptional<z.ZodObject<{
304
+ actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
305
+ id: z.ZodString;
306
+ label: z.ZodString;
307
+ kind: z.ZodOptional<z.ZodEnum<{
308
+ primary: "primary";
309
+ secondary: "secondary";
310
+ danger: "danger";
311
+ }>>;
312
+ responseData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
313
+ uiEffects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
314
+ type: z.ZodLiteral<"setFlag">;
315
+ flag: z.ZodEnum<{
316
+ autoApproveEdits: "autoApproveEdits";
317
+ planModeActive: "planModeActive";
318
+ planModeInitialized: "planModeInitialized";
319
+ }>;
320
+ value: z.ZodBoolean;
321
+ }, z.core.$strict>, z.ZodObject<{
322
+ type: z.ZodLiteral<"toast">;
323
+ kind: z.ZodEnum<{
324
+ info: "info";
325
+ error: "error";
326
+ warning: "warning";
327
+ success: "success";
328
+ }>;
329
+ message: z.ZodString;
330
+ }, z.core.$strict>], "type">>>;
331
+ }, z.core.$strict>, z.ZodObject<{
332
+ id: z.ZodString;
333
+ label: z.ZodString;
334
+ kind: z.ZodOptional<z.ZodLiteral<"danger">>;
335
+ denyWithFeedback: z.ZodObject<{
336
+ placeholder: z.ZodOptional<z.ZodString>;
337
+ messageTemplate: z.ZodOptional<z.ZodString>;
338
+ }, z.core.$strict>;
339
+ }, z.core.$strict>]>>>;
340
+ }, z.core.$strict>>;
341
+ result: z.ZodOptional<z.ZodObject<{
342
+ summaryText: z.ZodOptional<z.ZodString>;
343
+ uiEffects: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
344
+ type: z.ZodLiteral<"setFlag">;
345
+ flag: z.ZodEnum<{
346
+ autoApproveEdits: "autoApproveEdits";
347
+ planModeActive: "planModeActive";
348
+ planModeInitialized: "planModeInitialized";
349
+ }>;
350
+ value: z.ZodBoolean;
351
+ }, z.core.$strict>, z.ZodObject<{
352
+ type: z.ZodLiteral<"toast">;
353
+ kind: z.ZodEnum<{
354
+ info: "info";
355
+ error: "error";
356
+ warning: "warning";
357
+ success: "success";
358
+ }>;
359
+ message: z.ZodString;
360
+ }, z.core.$strict>], "type">>>;
361
+ }, z.core.$strict>>;
362
+ }, z.core.$strict>>;
112
363
  meta: z.ZodOptional<z.ZodCustom<ToolCallMetadata, ToolCallMetadata>>;
113
364
  requireApproval: z.ZodOptional<z.ZodBoolean>;
114
365
  approvalStatus: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/storage/tool-executions/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE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AAC,MAAM,EAAE,mBAAmB,GAAG;IACnE,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,2BAA2B,CAAC;CAChD,CAmBA;AAED,wBAAgB,8BAA8B,CAC1C,MAAM,EAAE,4BAA4B,GACrC,mBAAmB,CAcrB"}
@@ -1,6 +1,7 @@
1
1
  import "../../chunk-C6A6W6XS.js";
2
2
  import { createHash } from "crypto";
3
3
  import { z } from "zod";
4
+ import { ToolPresentationSnapshotV1Schema } from "../../tools/presentation-schema.js";
4
5
  const ToolExecutionIdentitySchema = z.object({
5
6
  runId: z.string().min(1),
6
7
  turnId: z.string().min(1),
@@ -8,7 +9,7 @@ const ToolExecutionIdentitySchema = z.object({
8
9
  toolCallId: z.string().min(1)
9
10
  }).strict();
10
11
  const ToolExecutionResultMetadataSchema = z.object({
11
- presentationSnapshot: z.custom().optional(),
12
+ presentationSnapshot: ToolPresentationSnapshotV1Schema.optional(),
12
13
  meta: z.custom().optional(),
13
14
  requireApproval: z.boolean().optional(),
14
15
  approvalStatus: z.enum(["approved", "rejected"]).optional()
@@ -11,9 +11,9 @@ export declare const ContributorConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObje
11
11
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
12
  type: z.ZodLiteral<"dynamic">;
13
13
  source: z.ZodEnum<{
14
+ resources: "resources";
14
15
  date: "date";
15
16
  env: "env";
16
- resources: "resources";
17
17
  }>;
18
18
  }, z.core.$strict>, z.ZodObject<{
19
19
  id: z.ZodString;
@@ -53,9 +53,9 @@ export declare const SystemPromptContributorsSchema: z.ZodObject<{
53
53
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
54
54
  type: z.ZodLiteral<"dynamic">;
55
55
  source: z.ZodEnum<{
56
+ resources: "resources";
56
57
  date: "date";
57
58
  env: "env";
58
- resources: "resources";
59
59
  }>;
60
60
  }, z.core.$strict>, z.ZodObject<{
61
61
  id: z.ZodString;
@@ -96,9 +96,9 @@ export declare const SystemPromptConfigSchema: z.core.$ZodBranded<z.ZodUnion<rea
96
96
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
97
97
  type: z.ZodLiteral<"dynamic">;
98
98
  source: z.ZodEnum<{
99
+ resources: "resources";
99
100
  date: "date";
100
101
  env: "env";
101
- resources: "resources";
102
102
  }>;
103
103
  }, z.core.$strict>, z.ZodObject<{
104
104
  id: z.ZodString;
@@ -0,0 +1,341 @@
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 activity_exports = {};
20
+ __export(activity_exports, {
21
+ TOOL_ACTIVITY: () => TOOL_ACTIVITY
22
+ });
23
+ module.exports = __toCommonJS(activity_exports);
24
+ function activity(category, running, completed, verb, singular, plural) {
25
+ return {
26
+ category,
27
+ label: { running, completed },
28
+ summary: { verb, singular, plural }
29
+ };
30
+ }
31
+ const TOOL_ACTIVITY = {
32
+ runCommand: activity(
33
+ "command",
34
+ "Running command",
35
+ "Ran command",
36
+ "Ran",
37
+ "a command",
38
+ "commands"
39
+ ),
40
+ checkCommandOutput: activity(
41
+ "command-output",
42
+ "Checking command output",
43
+ "Checked command output",
44
+ "Checked",
45
+ "command output",
46
+ "command outputs"
47
+ ),
48
+ stopProcess: activity(
49
+ "process",
50
+ "Stopping process",
51
+ "Stopped process",
52
+ "Stopped",
53
+ "a process",
54
+ "processes"
55
+ ),
56
+ readFile: activity("file-read", "Reading file", "Read file", "Read", "a file", "files"),
57
+ writeFile: activity("file-write", "Writing file", "Wrote file", "Wrote", "a file", "files"),
58
+ createFile: activity(
59
+ "file-create",
60
+ "Creating file",
61
+ "Created file",
62
+ "Created",
63
+ "a file",
64
+ "files"
65
+ ),
66
+ editFile: activity("file-edit", "Editing file", "Edited file", "Edited", "a file", "files"),
67
+ searchFiles: activity(
68
+ "file-search",
69
+ "Searching files",
70
+ "Searched files",
71
+ "Ran",
72
+ "a file search",
73
+ "file searches"
74
+ ),
75
+ searchWeb: activity(
76
+ "web-search",
77
+ "Searching the web",
78
+ "Searched the web",
79
+ "Ran",
80
+ "a web search",
81
+ "web searches"
82
+ ),
83
+ searchCode: activity(
84
+ "code-search",
85
+ "Searching code",
86
+ "Searched code",
87
+ "Ran",
88
+ "a code search",
89
+ "code searches"
90
+ ),
91
+ useSkill: activity("skill", "Using skill", "Used skill", "Used", "a skill", "skills"),
92
+ readSkill: activity("skill-read", "Reading skill", "Read skill", "Read", "a skill", "skills"),
93
+ createSkill: activity(
94
+ "skill-create",
95
+ "Creating skill",
96
+ "Created skill",
97
+ "Created",
98
+ "a skill",
99
+ "skills"
100
+ ),
101
+ updateSkill: activity(
102
+ "skill-update",
103
+ "Updating skill",
104
+ "Updated skill",
105
+ "Updated",
106
+ "a skill",
107
+ "skills"
108
+ ),
109
+ refreshSkill: activity(
110
+ "skill-refresh",
111
+ "Refreshing skill",
112
+ "Refreshed skill",
113
+ "Refreshed",
114
+ "a skill",
115
+ "skills"
116
+ ),
117
+ searchSkills: activity(
118
+ "skill-search",
119
+ "Searching skills",
120
+ "Searched skills",
121
+ "Ran",
122
+ "a skill search",
123
+ "skill searches"
124
+ ),
125
+ readResource: activity(
126
+ "resource",
127
+ "Reading resource",
128
+ "Read resource",
129
+ "Read",
130
+ "a resource",
131
+ "resources"
132
+ ),
133
+ listResources: activity(
134
+ "resource-list",
135
+ "Listing resources",
136
+ "Listed resources",
137
+ "Listed",
138
+ "a resource catalog",
139
+ "resource catalogs"
140
+ ),
141
+ requestHttp: activity(
142
+ "http-request",
143
+ "Sending request",
144
+ "Sent request",
145
+ "Sent",
146
+ "a request",
147
+ "requests"
148
+ ),
149
+ delegate: activity(
150
+ "delegation",
151
+ "Delegating task",
152
+ "Delegated task",
153
+ "Delegated",
154
+ "a task",
155
+ "tasks"
156
+ ),
157
+ runAgent: activity("agent", "Running agent", "Ran agent", "Ran", "an agent", "agents"),
158
+ checkTask: activity(
159
+ "task-check",
160
+ "Checking task",
161
+ "Checked task",
162
+ "Checked",
163
+ "a task",
164
+ "tasks"
165
+ ),
166
+ listTasks: activity(
167
+ "task-list",
168
+ "Listing tasks",
169
+ "Listed tasks",
170
+ "Listed",
171
+ "a task collection",
172
+ "task collections"
173
+ ),
174
+ updateTasks: activity(
175
+ "task",
176
+ "Updating tasks",
177
+ "Updated tasks",
178
+ "Updated",
179
+ "a task list",
180
+ "task lists"
181
+ ),
182
+ createPlan: activity(
183
+ "plan-create",
184
+ "Creating plan",
185
+ "Created plan",
186
+ "Created",
187
+ "a plan",
188
+ "plans"
189
+ ),
190
+ readPlan: activity("plan-read", "Reading plan", "Read plan", "Read", "a plan", "plans"),
191
+ reviewPlan: activity(
192
+ "plan-review",
193
+ "Reviewing plan",
194
+ "Reviewed plan",
195
+ "Reviewed",
196
+ "a plan",
197
+ "plans"
198
+ ),
199
+ updatePlan: activity(
200
+ "plan-update",
201
+ "Updating plan",
202
+ "Updated plan",
203
+ "Updated",
204
+ "a plan",
205
+ "plans"
206
+ ),
207
+ listMemories: activity(
208
+ "memory-list",
209
+ "Listing memories",
210
+ "Listed memories",
211
+ "Listed",
212
+ "a memory collection",
213
+ "memory collections"
214
+ ),
215
+ readMemory: activity(
216
+ "memory-read",
217
+ "Reading memory",
218
+ "Read memory",
219
+ "Read",
220
+ "a memory",
221
+ "memories"
222
+ ),
223
+ createMemory: activity(
224
+ "memory-create",
225
+ "Creating memory",
226
+ "Created memory",
227
+ "Created",
228
+ "a memory",
229
+ "memories"
230
+ ),
231
+ updateMemory: activity(
232
+ "memory-update",
233
+ "Updating memory",
234
+ "Updated memory",
235
+ "Updated",
236
+ "a memory",
237
+ "memories"
238
+ ),
239
+ deleteMemory: activity(
240
+ "memory-delete",
241
+ "Deleting memory",
242
+ "Deleted memory",
243
+ "Deleted",
244
+ "a memory",
245
+ "memories"
246
+ ),
247
+ searchHistory: activity(
248
+ "history-search",
249
+ "Searching history",
250
+ "Searched history",
251
+ "Ran",
252
+ "a history search",
253
+ "history searches"
254
+ ),
255
+ listSchedules: activity(
256
+ "schedule-list",
257
+ "Listing schedules",
258
+ "Listed schedules",
259
+ "Listed",
260
+ "a schedule collection",
261
+ "schedule collections"
262
+ ),
263
+ readSchedule: activity(
264
+ "schedule-read",
265
+ "Reading schedule",
266
+ "Read schedule",
267
+ "Read",
268
+ "a schedule",
269
+ "schedules"
270
+ ),
271
+ readScheduleHistory: activity(
272
+ "schedule-history",
273
+ "Reading schedule history",
274
+ "Read schedule history",
275
+ "Read",
276
+ "a schedule history",
277
+ "schedule histories"
278
+ ),
279
+ createSchedule: activity(
280
+ "schedule-create",
281
+ "Creating schedule",
282
+ "Created schedule",
283
+ "Created",
284
+ "a schedule",
285
+ "schedules"
286
+ ),
287
+ updateSchedule: activity(
288
+ "schedule-update",
289
+ "Updating schedule",
290
+ "Updated schedule",
291
+ "Updated",
292
+ "a schedule",
293
+ "schedules"
294
+ ),
295
+ deleteSchedule: activity(
296
+ "schedule-delete",
297
+ "Deleting schedule",
298
+ "Deleted schedule",
299
+ "Deleted",
300
+ "a schedule",
301
+ "schedules"
302
+ ),
303
+ triggerSchedule: activity(
304
+ "schedule-trigger",
305
+ "Running schedule",
306
+ "Ran schedule",
307
+ "Ran",
308
+ "a schedule",
309
+ "schedules"
310
+ ),
311
+ inspectLogs: activity(
312
+ "logs",
313
+ "Inspecting logs",
314
+ "Inspected logs",
315
+ "Inspected",
316
+ "a log set",
317
+ "log sets"
318
+ ),
319
+ wait: activity("wait", "Waiting", "Waited", "Waited for", "an event", "events"),
320
+ pause: activity("pause", "Waiting", "Waited", "Waited for", "a period", "periods"),
321
+ askUser: activity(
322
+ "user-input",
323
+ "Waiting for input",
324
+ "Received input",
325
+ "Requested",
326
+ "user input",
327
+ "user inputs"
328
+ ),
329
+ discoverTools: activity(
330
+ "tool-discovery",
331
+ "Finding tools",
332
+ "Found tools",
333
+ "Ran",
334
+ "a tool search",
335
+ "tool searches"
336
+ )
337
+ };
338
+ // Annotate the CommonJS export names for ESM import in node:
339
+ 0 && (module.exports = {
340
+ TOOL_ACTIVITY
341
+ });