@capybara-hq/plugin-todo 0.1.0-rc.10 → 0.1.0-rc.12

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "todo",
4
- "version": "0.1.0-rc.10",
4
+ "version": "0.1.0-rc.12",
5
5
  "publisher": "Capybara",
6
6
  "description": "Todo list tool for agents: plugin__todo__write keeps a per-conversation todo list in PostgreSQL",
7
7
  "displayName": {
@@ -14,7 +14,7 @@
14
14
  "entry": "./dist/index.mjs",
15
15
  "manifest": {
16
16
  "name": "todo",
17
- "version": "0.1.0-rc.10",
17
+ "version": "0.1.0-rc.12",
18
18
  "sdk": "^0.1.0-rc.0",
19
19
  "provides": [],
20
20
  "requires": [],
@@ -27,8 +27,7 @@
27
27
  "views": [
28
28
  "tasks-panel",
29
29
  "tasks-section",
30
- "tasks-card",
31
- "tasks"
30
+ "tasks-card"
32
31
  ]
33
32
  }
34
33
  },
@@ -43,7 +42,7 @@
43
42
  "zh": "待办",
44
43
  "en": "Todos"
45
44
  },
46
- "place": "panel",
45
+ "slot": "conversation.panel",
47
46
  "kind": "view",
48
47
  "icon": "list-checks"
49
48
  },
@@ -53,7 +52,7 @@
53
52
  "zh": "待办",
54
53
  "en": "Todos"
55
54
  },
56
- "place": "section",
55
+ "slot": "conversation.properties.section",
57
56
  "kind": "view",
58
57
  "icon": "list-checks"
59
58
  },
@@ -63,19 +62,9 @@
63
62
  "zh": "待办",
64
63
  "en": "Todos"
65
64
  },
66
- "place": "inline",
65
+ "slot": "conversation.tool-result.card",
67
66
  "kind": "view",
68
67
  "icon": "list-checks"
69
- },
70
- {
71
- "id": "tasks",
72
- "title": {
73
- "zh": "待办",
74
- "en": "Todos"
75
- },
76
- "place": "conversation",
77
- "kind": "view",
78
- "aliasOf": "tasks-panel"
79
68
  }
80
69
  ]
81
70
  },
package/dist/index.mjs CHANGED
@@ -104,8 +104,7 @@ async function readSnapshot(db, conversationId, id) {
104
104
  var TASKS_PANEL = "tasks-panel";
105
105
  var TASKS_SECTION = "tasks-section";
106
106
  var TASKS_CARD = "tasks-card";
107
- var TASKS_LEGACY = "tasks";
108
- var TASKS_ALL = [TASKS_PANEL, TASKS_SECTION, TASKS_CARD, TASKS_LEGACY];
107
+ var TASKS_ALL = [TASKS_PANEL, TASKS_SECTION, TASKS_CARD];
109
108
  var label = (t) => t.status === "in_progress" ? t.activeForm : t.content;
110
109
  var badge = (todos) => todos.length === 0 ? {} : { badge: `${todos.filter((t) => t.status === "completed").length}/${todos.length}` };
111
110
  function tasksView(todos) {
@@ -175,19 +174,30 @@ function writeHandler(db, ui) {
175
174
  var title = { zh: "待办", en: "Todos" };
176
175
  var index_default = defineExtension({
177
176
  name: "todo",
178
- version: "0.1.0-rc.10",
177
+ version: "0.1.0-rc.12",
179
178
  sdk: "^0.1.0-rc.0",
180
179
  provides: [],
181
180
  migrations: "../migrations",
182
181
  ui: [
183
- { id: "tasks-panel", title, place: "panel", kind: "view", icon: "list-checks" },
184
- { id: "tasks-section", title, place: "section", kind: "view", icon: "list-checks" },
185
- { id: "tasks-card", title, place: "inline", kind: "view", icon: "list-checks" },
186
- { id: "tasks", title, place: "conversation", kind: "view", aliasOf: "tasks-panel" }
182
+ { id: "tasks-panel", title, slot: "conversation.panel", kind: "view", icon: "list-checks" },
183
+ {
184
+ id: "tasks-section",
185
+ title,
186
+ slot: "conversation.properties.section",
187
+ kind: "view",
188
+ icon: "list-checks"
189
+ },
190
+ {
191
+ id: "tasks-card",
192
+ title,
193
+ slot: "conversation.tool-result.card",
194
+ kind: "view",
195
+ icon: "list-checks"
196
+ }
187
197
  ],
188
198
  permissions: {
189
199
  tools: ["write"],
190
- ui: { views: ["tasks-panel", "tasks-section", "tasks-card", "tasks"] }
200
+ ui: { views: ["tasks-panel", "tasks-section", "tasks-card"] }
191
201
  },
192
202
  setup(ctx) {
193
203
  ctx.tools.register(
@@ -212,7 +222,6 @@ var index_default = defineExtension({
212
222
  export {
213
223
  SNAPSHOTS_PER_CONVERSATION,
214
224
  TASKS_CARD,
215
- TASKS_LEGACY,
216
225
  TASKS_PANEL,
217
226
  TASKS_SECTION,
218
227
  index_default as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capybara-hq/plugin-todo",
3
- "version": "0.1.0-rc.10",
3
+ "version": "0.1.0-rc.12",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Todo list tool for agents: plugin__todo__write keeps a per-conversation todo list in PostgreSQL",