@krodak/clickup-cli 0.11.0 → 0.11.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 +6 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -177,8 +177,8 @@ var ClickUpClient = class {
177
177
  async getTask(taskId) {
178
178
  return this.request(`/task/${taskId}`);
179
179
  }
180
- async updateTaskDescription(taskId, description) {
181
- return this.updateTask(taskId, { description });
180
+ async updateTaskMarkdown(taskId, markdown) {
181
+ return this.updateTask(taskId, { markdown_content: markdown });
182
182
  }
183
183
  async createTask(listId, options) {
184
184
  return this.request(`/list/${listId}/task`, {
@@ -712,7 +712,7 @@ function parseTimeEstimate(value) {
712
712
  function buildUpdatePayload(opts) {
713
713
  const payload = {};
714
714
  if (opts.name !== void 0) payload.name = opts.name;
715
- if (opts.description !== void 0) payload.description = opts.description;
715
+ if (opts.description !== void 0) payload.markdown_content = opts.description;
716
716
  if (opts.status !== void 0) payload.status = opts.status;
717
717
  if (opts.priority !== void 0) payload.priority = parsePriority(opts.priority);
718
718
  if (opts.dueDate !== void 0) {
@@ -728,7 +728,7 @@ function buildUpdatePayload(opts) {
728
728
  return payload;
729
729
  }
730
730
  function hasUpdateFields(options) {
731
- return options.name !== void 0 || options.description !== void 0 || options.status !== void 0 || options.priority !== void 0 || options.due_date !== void 0 || options.time_estimate !== void 0 || options.assignees !== void 0;
731
+ return options.name !== void 0 || options.description !== void 0 || options.markdown_content !== void 0 || options.status !== void 0 || options.priority !== void 0 || options.due_date !== void 0 || options.time_estimate !== void 0 || options.assignees !== void 0;
732
732
  }
733
733
  async function resolveStatus(client, taskId, statusInput) {
734
734
  const task = await client.getTask(taskId);
@@ -771,7 +771,7 @@ async function createTask(config, options) {
771
771
  }
772
772
  const payload = {
773
773
  name: options.name,
774
- ...options.description !== void 0 ? { description: options.description } : {},
774
+ ...options.description !== void 0 ? { markdown_content: options.description } : {},
775
775
  ...options.parent !== void 0 ? { parent: options.parent } : {},
776
776
  ...options.status !== void 0 ? { status: options.status } : {}
777
777
  };
@@ -2159,7 +2159,7 @@ program.command("update <taskId>").description("Update a task").option("-n, --na
2159
2159
  }
2160
2160
  })
2161
2161
  );
2162
- program.command("create").description("Create a new task").option("-l, --list <listId>", "Target list ID (auto-detected from --parent if omitted)").requiredOption("-n, --name <name>", "Task name").option("-d, --description <text>", "Task description").option("-p, --parent <taskId>", "Parent task ID (list auto-detected from parent)").option("-s, --status <status>", "Initial status").option("--priority <level>", "Priority: urgent, high, normal, low (or 1-4)").option("--due-date <date>", "Due date (YYYY-MM-DD)").option("--assignee <userId>", "Assignee user ID").option("--tags <tags>", "Comma-separated tag names").option("--custom-item-id <id>", "Custom task type ID (use to create initiatives)").option("--time-estimate <duration>", 'Time estimate (e.g. "2h", "30m", "1h30m")').option("--json", "Force JSON output even in terminal").action(
2162
+ program.command("create").description("Create a new task").option("-l, --list <listId>", "Target list ID (auto-detected from --parent if omitted)").requiredOption("-n, --name <name>", "Task name").option("-d, --description <text>", "Task description (markdown supported)").option("-p, --parent <taskId>", "Parent task ID (list auto-detected from parent)").option("-s, --status <status>", "Initial status").option("--priority <level>", "Priority: urgent, high, normal, low (or 1-4)").option("--due-date <date>", "Due date (YYYY-MM-DD)").option("--assignee <userId>", "Assignee user ID").option("--tags <tags>", "Comma-separated tag names").option("--custom-item-id <id>", "Custom task type ID (use to create initiatives)").option("--time-estimate <duration>", 'Time estimate (e.g. "2h", "30m", "1h30m")').option("--json", "Force JSON output even in terminal").action(
2163
2163
  wrapAction(async (opts) => {
2164
2164
  const config = loadConfig();
2165
2165
  const result = await createTask(config, opts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krodak/clickup-cli",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "ClickUp CLI for AI agents and humans",
5
5
  "type": "module",
6
6
  "license": "MIT",