@krodak/clickup-cli 1.14.0 → 1.14.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/.claude-plugin/plugin.json +1 -1
- package/dist/index.js +13 -3
- package/package.json +1 -1
- package/skills/clickup-cli/SKILL.md +1 -1
|
@@ -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.14.
|
|
4
|
+
"version": "1.14.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Krzysztof Rodak"
|
|
7
7
|
},
|
package/dist/index.js
CHANGED
|
@@ -1708,6 +1708,9 @@ function parseTimeEstimate(value) {
|
|
|
1708
1708
|
);
|
|
1709
1709
|
}
|
|
1710
1710
|
function buildUpdatePayload(opts) {
|
|
1711
|
+
if (opts.archive && opts.unarchive) {
|
|
1712
|
+
throw new Error("Cannot use --archive and --unarchive together");
|
|
1713
|
+
}
|
|
1711
1714
|
const payload = {};
|
|
1712
1715
|
if (opts.name !== void 0) {
|
|
1713
1716
|
if (!opts.name.trim()) throw new Error("Task name cannot be empty");
|
|
@@ -1727,10 +1730,12 @@ function buildUpdatePayload(opts) {
|
|
|
1727
1730
|
payload.time_estimate = parseTimeEstimate(opts.timeEstimate);
|
|
1728
1731
|
}
|
|
1729
1732
|
if (opts.parent !== void 0) payload.parent = opts.parent;
|
|
1733
|
+
if (opts.archive) payload.archived = true;
|
|
1734
|
+
if (opts.unarchive) payload.archived = false;
|
|
1730
1735
|
return payload;
|
|
1731
1736
|
}
|
|
1732
1737
|
function hasUpdateFields(options) {
|
|
1733
|
-
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 || options.parent !== void 0;
|
|
1738
|
+
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 || options.parent !== void 0 || options.archived !== void 0;
|
|
1734
1739
|
}
|
|
1735
1740
|
async function resolveStatus(client, taskId, statusInput) {
|
|
1736
1741
|
const task = await client.getTask(taskId);
|
|
@@ -1749,7 +1754,7 @@ async function resolveStatus(client, taskId, statusInput) {
|
|
|
1749
1754
|
async function updateTask(config, taskId, options) {
|
|
1750
1755
|
if (!hasUpdateFields(options))
|
|
1751
1756
|
throw new Error(
|
|
1752
|
-
"Provide at least one of: --name, --description, --status, --priority, --due-date, --time-estimate, --assignee, --parent"
|
|
1757
|
+
"Provide at least one of: --name, --description, --status, --priority, --due-date, --time-estimate, --assignee, --parent, --archive, --unarchive"
|
|
1753
1758
|
);
|
|
1754
1759
|
const client = new ClickUpClient(config);
|
|
1755
1760
|
if (options.status !== void 0) {
|
|
@@ -2758,6 +2763,8 @@ var commandMetadata = [
|
|
|
2758
2763
|
"--time-estimate",
|
|
2759
2764
|
"--assignee",
|
|
2760
2765
|
"--parent",
|
|
2766
|
+
"--archive",
|
|
2767
|
+
"--unarchive",
|
|
2761
2768
|
"--field",
|
|
2762
2769
|
"--json"
|
|
2763
2770
|
],
|
|
@@ -3671,6 +3678,9 @@ ${renderZshTopLevelCommands(name)}
|
|
|
3671
3678
|
'--time-estimate[Time estimate]:duration:' \\
|
|
3672
3679
|
'--assignee[Add assignee]:user_id:' \\
|
|
3673
3680
|
'--parent[Set parent task]:task_id:' \\
|
|
3681
|
+
'--archive[Archive the task]' \\
|
|
3682
|
+
'--unarchive[Unarchive the task]' \\
|
|
3683
|
+
'--field[Set custom field]:field_name_and_value:' \\
|
|
3674
3684
|
'--json[Force JSON output]'
|
|
3675
3685
|
;;
|
|
3676
3686
|
create)
|
|
@@ -5465,7 +5475,7 @@ function buildProgram(programName = basename(process.argv[1] ?? "cup")) {
|
|
|
5465
5475
|
}
|
|
5466
5476
|
})
|
|
5467
5477
|
);
|
|
5468
|
-
program.command("update <taskId>").description("Update a task").option("-n, --name <text>", "New task name").option("-d, --description <text>", "New description (markdown supported)").option("-s, --status <status>", 'New status (e.g. "in progress", "done")').option("--priority <level>", "Priority: urgent, high, normal, low (or 1-4)").option("--due-date <date>", "Due date (YYYY-MM-DD)").option("--time-estimate <duration>", 'Time estimate (e.g. "2h", "30m", "1h30m")').option("--assignee <userId>", 'Add assignee by user ID or "me"').option("--parent <taskId>", "Set parent task (makes this a subtask)").option("--field <nameAndValue...>", 'Set custom field: --field "Name" value').option("--json", "Force JSON output even in terminal").action(
|
|
5478
|
+
program.command("update <taskId>").description("Update a task").option("-n, --name <text>", "New task name").option("-d, --description <text>", "New description (markdown supported)").option("-s, --status <status>", 'New status (e.g. "in progress", "done")').option("--priority <level>", "Priority: urgent, high, normal, low (or 1-4)").option("--due-date <date>", "Due date (YYYY-MM-DD)").option("--time-estimate <duration>", 'Time estimate (e.g. "2h", "30m", "1h30m")').option("--assignee <userId>", 'Add assignee by user ID or "me"').option("--parent <taskId>", "Set parent task (makes this a subtask)").option("--archive", "Archive the task").option("--unarchive", "Unarchive the task").option("--field <nameAndValue...>", 'Set custom field: --field "Name" value').option("--json", "Force JSON output even in terminal").action(
|
|
5469
5479
|
wrapAction(
|
|
5470
5480
|
async (taskId, opts) => {
|
|
5471
5481
|
const config = loadConfig(getProfileName());
|
package/package.json
CHANGED
|
@@ -72,7 +72,7 @@ All commands support `--help` for full flag details. All commands support `--jso
|
|
|
72
72
|
| Command | What it does |
|
|
73
73
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------- |
|
|
74
74
|
| `cup create -n name [-l listId] [-p parentId] [-d desc] [-s status] [--priority p] [--due-date d] [--time-estimate t] [--assignee id\|me] [--tags t] [--custom-item-id n] [--template id]` | Create task |
|
|
75
|
-
| `cup update <id> [-n name] [-d desc] [-s status] [--priority p] [--due-date d] [--time-estimate t] [--assignee id\|me] [--parent id] [--field "Name" val]`
|
|
75
|
+
| `cup update <id> [-n name] [-d desc] [-s status] [--priority p] [--due-date d] [--time-estimate t] [--assignee id\|me] [--parent id] [--archive] [--unarchive] [--field "Name" val]` | Update task fields (including custom fields) |
|
|
76
76
|
| `cup comment <id> -m text [--notify-all]` | Post comment on task |
|
|
77
77
|
| `cup comment-edit <commentId> -m text [--resolved] [--unresolved]` | Edit a comment |
|
|
78
78
|
| `cup comment-delete <commentId>` | Delete a comment |
|