@krodak/clickup-cli 1.9.0 → 1.9.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "clickup-cli",
3
3
  "description": "ClickUp CLI skills for managing tasks, sprints, comments, checklists, custom fields, tags, and time tracking via the cup command",
4
- "version": "1.9.0",
4
+ "version": "1.9.1",
5
5
  "author": {
6
6
  "name": "Krzysztof Rodak"
7
7
  },
package/dist/index.js CHANGED
@@ -1612,6 +1612,7 @@ async function resolveAssigneeId(client, value) {
1612
1612
  return parseAssigneeId(value);
1613
1613
  }
1614
1614
  function parseTimeEstimate(value) {
1615
+ if (value === "0" || value.toLowerCase() === "none" || value === "") return 0;
1615
1616
  const pattern = /^(?:(\d+)h)?(?:(\d+)m)?$/i;
1616
1617
  const match = value.match(pattern);
1617
1618
  if (match && (match[1] || match[2])) {
@@ -1620,8 +1621,10 @@ function parseTimeEstimate(value) {
1620
1621
  return (hours * 60 + minutes) * 60 * 1e3;
1621
1622
  }
1622
1623
  const ms = Number(value);
1623
- if (Number.isFinite(ms) && ms > 0) return ms;
1624
- throw new Error('Time estimate must be a duration (e.g. "2h", "30m", "1h30m") or milliseconds');
1624
+ if (Number.isFinite(ms) && ms >= 0) return ms;
1625
+ throw new Error(
1626
+ 'Time estimate must be a duration (e.g. "2h", "30m", "1h30m"), milliseconds, or "0" to clear'
1627
+ );
1625
1628
  }
1626
1629
  function buildUpdatePayload(opts) {
1627
1630
  const payload = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krodak/clickup-cli",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "ClickUp CLI for AI agents and humans",
5
5
  "type": "module",
6
6
  "license": "MIT",