@createtodo/cli 0.1.0 → 0.1.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/index.js +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var __export = (target, all) => {
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
import { parseArgs } from "util";
|
|
10
10
|
|
|
11
|
-
// ../mcp/dist/chunk-
|
|
11
|
+
// ../mcp/dist/chunk-V2FSHPLG.js
|
|
12
12
|
import { AsyncLocalStorage } from "async_hooks";
|
|
13
13
|
|
|
14
14
|
// ../../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
|
|
@@ -4052,7 +4052,7 @@ var coerce = {
|
|
|
4052
4052
|
};
|
|
4053
4053
|
var NEVER = INVALID;
|
|
4054
4054
|
|
|
4055
|
-
// ../mcp/dist/chunk-
|
|
4055
|
+
// ../mcp/dist/chunk-V2FSHPLG.js
|
|
4056
4056
|
var storage = new AsyncLocalStorage();
|
|
4057
4057
|
function getApiContext() {
|
|
4058
4058
|
return storage.getStore();
|
|
@@ -4912,6 +4912,11 @@ async function createTodo(input) {
|
|
|
4912
4912
|
};
|
|
4913
4913
|
const warnings = validateNewTodo(input);
|
|
4914
4914
|
if (warnings.length > 0) response.warnings = warnings;
|
|
4915
|
+
if (containerId) {
|
|
4916
|
+
const lists = await getLists();
|
|
4917
|
+
const conventions = lists.find((l) => l.id === containerId)?.description;
|
|
4918
|
+
if (conventions?.trim()) response.listConventions = conventions;
|
|
4919
|
+
}
|
|
4915
4920
|
return JSON.stringify(response, null, 2);
|
|
4916
4921
|
}
|
|
4917
4922
|
var THIN_DESCRIPTION_CHARS = 40;
|
|
@@ -5109,7 +5114,7 @@ var todoTools = {
|
|
|
5109
5114
|
}
|
|
5110
5115
|
},
|
|
5111
5116
|
save_todo: {
|
|
5112
|
-
description: 'Create or update a todo. If identifier is provided, updates; otherwise creates. When creating, name is required; omitting `list` (or passing "inbox") files the todo into the virtual Inbox. Creating a top-level todo without a description or acceptance criteria returns warnings \u2014 heed them.',
|
|
5117
|
+
description: 'Create or update a todo. If identifier is provided, updates; otherwise creates. When creating, name is required; omitting `list` (or passing "inbox") files the todo into the virtual Inbox. Creating a top-level todo without a description or acceptance criteria returns warnings \u2014 heed them. When creating into a list, the response may include listConventions \u2014 that list\'s own description, which often documents structure, labeling, or tone other todos there follow. Match it.',
|
|
5113
5118
|
inputSchema: external_exports.object({
|
|
5114
5119
|
identifier: external_exports.string().min(1).max(200).optional().describe(
|
|
5115
5120
|
'Todo identifier (e.g., "<PREFIX>-123"). If provided, updates the existing todo'
|
|
@@ -5990,7 +5995,7 @@ import path2 from "path";
|
|
|
5990
5995
|
// package.json
|
|
5991
5996
|
var package_default = {
|
|
5992
5997
|
name: "@createtodo/cli",
|
|
5993
|
-
version: "0.1.
|
|
5998
|
+
version: "0.1.1",
|
|
5994
5999
|
description: "createtodo from the command line \u2014 the ct command",
|
|
5995
6000
|
type: "module",
|
|
5996
6001
|
license: "MIT",
|