@thask-org/cli 0.3.0

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 (3) hide show
  1. package/README.md +43 -0
  2. package/bin/thask.js +47 -0
  3. package/package.json +33 -0
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # thask
2
+
3
+ Graph-based dependency visualization for AI-assisted development.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g thask
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```bash
14
+ # Configure
15
+ thask config set url http://localhost:7244
16
+ thask config set token <your-api-key>
17
+
18
+ # Scan a Go project
19
+ thask scan --path . --dry-run
20
+
21
+ # Analyze dependencies
22
+ thask graph analyze -p <projectId>
23
+
24
+ # Use with Claude Code (.claude/mcp.json)
25
+ ```
26
+
27
+ ```json
28
+ {
29
+ "mcpServers": {
30
+ "thask": {
31
+ "command": "npx",
32
+ "args": ["-y", "thask", "mcp", "serve", "--url", "http://localhost:7244", "--token", "<key>"]
33
+ }
34
+ }
35
+ }
36
+ ```
37
+
38
+ ## Links
39
+
40
+ - [GitHub](https://github.com/kimgh06/Thask)
41
+ - [Documentation](https://github.com/kimgh06/Thask/tree/main/docs)
42
+ - [CLI Reference](https://github.com/kimgh06/Thask/blob/main/docs/CLI.md)
43
+ - [MCP Guide](https://github.com/kimgh06/Thask/blob/main/docs/MCP.md)
package/bin/thask.js ADDED
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ const { spawnSync } = require("child_process");
5
+
6
+ const PLATFORMS = {
7
+ "darwin-arm64": "@thask-org/cli-darwin-arm64",
8
+ "darwin-x64": "@thask-org/cli-darwin-x64",
9
+ "linux-arm64": "@thask-org/cli-linux-arm64",
10
+ "linux-x64": "@thask-org/cli-linux-x64",
11
+ "win32-x64": "@thask-org/cli-win32-x64",
12
+ };
13
+
14
+ const key = `${process.platform}-${process.arch}`;
15
+ const pkg = PLATFORMS[key];
16
+
17
+ if (!pkg) {
18
+ console.error(
19
+ `thask: unsupported platform ${key}\n` +
20
+ `Supported: ${Object.keys(PLATFORMS).join(", ")}\n` +
21
+ `Install from source: https://github.com/kimgh06/Thask/tree/main/cli`
22
+ );
23
+ process.exit(1);
24
+ }
25
+
26
+ let binPath;
27
+ try {
28
+ const suffix = process.platform === "win32" ? ".exe" : "";
29
+ binPath = require.resolve(`${pkg}/bin/thask${suffix}`);
30
+ } catch {
31
+ console.error(
32
+ `thask: failed to find binary for ${key}\n` +
33
+ `Try reinstalling: npm install -g thask`
34
+ );
35
+ process.exit(1);
36
+ }
37
+
38
+ const { status, error } = spawnSync(binPath, process.argv.slice(2), {
39
+ stdio: "inherit",
40
+ });
41
+
42
+ if (error) {
43
+ console.error(`thask: ${error.message}`);
44
+ process.exit(1);
45
+ }
46
+
47
+ process.exit(status ?? 1);
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@thask-org/cli",
3
+ "version": "0.3.0",
4
+ "description": "Graph-based dependency visualization for AI-assisted development",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/kimgh06/Thask"
9
+ },
10
+ "homepage": "https://thask.kimgh06.com",
11
+ "keywords": [
12
+ "dependency-graph",
13
+ "mcp",
14
+ "claude-code",
15
+ "cursor",
16
+ "ai-tools",
17
+ "devtools",
18
+ "cli"
19
+ ],
20
+ "bin": {
21
+ "thask": "bin/thask.js"
22
+ },
23
+ "engines": {
24
+ "node": ">=18"
25
+ },
26
+ "optionalDependencies": {
27
+ "@thask-org/cli-darwin-arm64": "0.3.0",
28
+ "@thask-org/cli-darwin-x64": "0.3.0",
29
+ "@thask-org/cli-linux-arm64": "0.3.0",
30
+ "@thask-org/cli-linux-x64": "0.3.0",
31
+ "@thask-org/cli-win32-x64": "0.3.0"
32
+ }
33
+ }