@taskless/cli 0.5.3 → 0.6.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 +34 -3
  2. package/dist/index.js +8263 -6522
  3. package/package.json +4 -1
package/README.md CHANGED
@@ -31,17 +31,48 @@ Outputs CLI version, tool status, and login info as JSON to stdout:
31
31
 
32
32
  ### `taskless init`
33
33
 
34
- Install or update Taskless skills into detected tool directories (e.g. `.claude/`).
34
+ Launches an interactive wizard that detects supported tool directories in the
35
+ current project (`.claude/`, `.opencode/`, `.cursor/`, `.agents/`), lets you
36
+ pick which ones to install into, optionally includes the `taskless-ci` skill,
37
+ and walks through the auth tradeoff before writing anything. Running `taskless`
38
+ with no subcommand in a TTY also launches this wizard.
39
+
40
+ For CI and scripted installs, pass `--no-interactive` to skip all prompts.
41
+ This installs every mandatory skill to every detected tool, or falls back to
42
+ `.agents/skills/` when no tools are detected:
43
+
44
+ ```bash
45
+ taskless init # interactive wizard (default in a TTY)
46
+ taskless init --no-interactive # scripted install, no prompts
47
+ ```
48
+
49
+ The wizard records what it installed in `.taskless/taskless.json` so later
50
+ runs can compute a diff and surgically remove files that are no longer
51
+ selected. Cancelling the wizard at any step (Ctrl-C) aborts cleanly with no
52
+ filesystem changes.
35
53
 
36
54
  ### `taskless check`
37
55
 
38
56
  Run ast-grep rules from `.taskless/rules/` against the codebase. Exits with code 1 if any error-severity matches are found.
39
57
 
40
58
  ```bash
41
- taskless check # human-readable output
42
- taskless check --json # JSONL output
59
+ taskless check # human-readable output, scans whole project
60
+ taskless check --json # JSON output
43
61
  ```
44
62
 
63
+ Accepts optional positional path arguments to scan only specific files or
64
+ directories — useful for CI workflows that only want to check changed files.
65
+ Paths that don't exist on disk (e.g. files deleted in a diff) are silently
66
+ filtered, so raw git-diff output can be piped in directly:
67
+
68
+ ```bash
69
+ taskless check src/foo.ts src/bar.ts
70
+ taskless check $(git diff --name-only main...HEAD) # PR-only scan
71
+ taskless check $(git diff --cached --name-only) # pre-commit scan
72
+ ```
73
+
74
+ If every supplied path is missing, the command exits 0 with empty results.
75
+
45
76
  ### `taskless auth login` / `taskless auth logout`
46
77
 
47
78
  Authenticate with taskless.io using the device flow. Tokens are stored in `~/.config/taskless/auth.json`.