@eum-agent/session-todo 1.0.0 → 1.0.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 (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -109,7 +109,7 @@ const TodoItem = z.strictObject({
109
109
  * for a client — they happen to agree on the fields and not on what has to
110
110
  * be said about them. */
111
111
  const TodoItemInput = z.strictObject({
112
- content: z.string().min(1).refine((text) => [...text].length <= 200, { message: `at most 200 characters` }).describe(`One task, in a few words. Not a paragraph. At most 200 characters.`),
112
+ content: z.string().min(1).refine((text) => [...text].length <= 200, { message: `at most 200 characters` }).meta({ maxLength: 200 }).describe(`One task, in a few words. Not a paragraph. At most 200 Unicode code points.`),
113
113
  status: TodoStatus.describe("pending: not started. in-progress: being worked on right now. completed: done.")
114
114
  });
115
115
  //#endregion
@@ -166,7 +166,11 @@ function openTodoStore(ctx) {
166
166
  if (row === void 0) return [];
167
167
  const items = itemsFrom(row.items);
168
168
  if (items !== void 0) return items;
169
- ctx.log.error(`todo list for session ${sessionId} could not be read; treating it as empty`);
169
+ ctx.log.emit({
170
+ level: "error",
171
+ event: "plugin.event",
172
+ fields: { localCode: "TODO_LIST_FOR_SESSION" }
173
+ });
170
174
  return [];
171
175
  },
172
176
  replace(sessionId, items) {
@@ -193,8 +197,11 @@ const WRITE_FAILED = "todo store write failed";
193
197
  function writeTodosTool(store, announce) {
194
198
  return {
195
199
  name: "todo_write",
200
+ preload: true,
196
201
  description: DESCRIPTION,
197
202
  inputSchema: WriteTodosInput,
203
+ outputSchema: z.string().max(1024),
204
+ deliveryKind: "receipt",
198
205
  async execute(input, ctx) {
199
206
  let stored;
200
207
  try {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "en-US": "Session Todo List",
5
5
  "zh-CN": "会话待办清单"
6
6
  },
7
- "version": "1.0.0",
7
+ "version": "1.0.1",
8
8
  "type": "module",
9
9
  "description": "Todo items and progress maintained within a conversation",
10
10
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  "devDependencies": {
24
24
  "@eum-agent/container": "1.0.0",
25
25
  "@eum-agent/kernel": "1.0.0",
26
- "@eum-agent/plugin": "1.0.0",
26
+ "@eum-agent/plugin": "1.0.1",
27
27
  "@types/react": "^19.2.18",
28
28
  "@types/react-dom": "^19.2.5",
29
29
  "react": "^19.2.0",
@@ -38,8 +38,8 @@
38
38
  "dependencies": {},
39
39
  "kind": "extension",
40
40
  "foundationDependencies": {
41
- "@eum-agent/infra-local": "1.0.0",
42
- "@eum-agent/storage-sqlite": "1.0.0"
41
+ "@eum-agent/infra-local": "1.0.1",
42
+ "@eum-agent/storage-sqlite": "1.0.1"
43
43
  }
44
44
  },
45
45
  "scripts": {