@krodak/clickup-cli 1.18.0 → 1.18.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 +11 -7
- package/package.json +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.18.
|
|
4
|
+
"version": "1.18.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Krzysztof Rodak"
|
|
7
7
|
},
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
-
import { realpathSync } from "fs";
|
|
4
|
+
import { realpathSync as realpathSync2 } from "fs";
|
|
5
5
|
import { basename, resolve } from "path";
|
|
6
6
|
import { Command } from "commander";
|
|
7
7
|
import { createRequire } from "module";
|
|
8
|
-
import { fileURLToPath
|
|
8
|
+
import { fileURLToPath } from "url";
|
|
9
9
|
|
|
10
10
|
// src/api.ts
|
|
11
11
|
var BASE_URL = "https://api.clickup.com/api/v2";
|
|
@@ -4667,14 +4667,18 @@ function generateCompletion(shell, name = "cup") {
|
|
|
4667
4667
|
}
|
|
4668
4668
|
|
|
4669
4669
|
// src/commands/skill.ts
|
|
4670
|
-
import { readFileSync, mkdirSync, copyFileSync, existsSync } from "fs";
|
|
4670
|
+
import { readFileSync, realpathSync, mkdirSync, copyFileSync, existsSync } from "fs";
|
|
4671
4671
|
import { join as join2, dirname } from "path";
|
|
4672
|
-
import { fileURLToPath } from "url";
|
|
4673
4672
|
import { homedir as homedir2 } from "os";
|
|
4674
4673
|
import chalk7 from "chalk";
|
|
4675
4674
|
function skillPath() {
|
|
4676
|
-
const
|
|
4677
|
-
|
|
4675
|
+
const entryPoint = realpathSync(process.argv[1] ?? "");
|
|
4676
|
+
const packageRoot = dirname(dirname(entryPoint));
|
|
4677
|
+
const candidate = join2(packageRoot, "skills", "clickup-cli", "SKILL.md");
|
|
4678
|
+
if (existsSync(candidate)) return candidate;
|
|
4679
|
+
const altCandidate = join2(dirname(entryPoint), "..", "skills", "clickup-cli", "SKILL.md");
|
|
4680
|
+
if (existsSync(altCandidate)) return altCandidate;
|
|
4681
|
+
throw new Error("SKILL.md not found. Reinstall with: npm install -g @krodak/clickup-cli");
|
|
4678
4682
|
}
|
|
4679
4683
|
function printSkill() {
|
|
4680
4684
|
return readFileSync(skillPath(), "utf-8");
|
|
@@ -7589,7 +7593,7 @@ process.on("SIGINT", () => {
|
|
|
7589
7593
|
});
|
|
7590
7594
|
function checkDirectExecution() {
|
|
7591
7595
|
try {
|
|
7592
|
-
return process.argv[1] !== void 0 &&
|
|
7596
|
+
return process.argv[1] !== void 0 && fileURLToPath(import.meta.url) === realpathSync2(resolve(process.argv[1]));
|
|
7593
7597
|
} catch {
|
|
7594
7598
|
return false;
|
|
7595
7599
|
}
|