claude-task-worker 0.2.0 → 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.
- package/README.md +12 -0
- package/dist/index.js +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -300,6 +300,18 @@ claude-task-worker update
|
|
|
300
300
|
|
|
301
301
|
いずれかのステップが失敗しても処理は継続し、`[update]` プレフィックス付きでエラー内容がログ出力される。
|
|
302
302
|
|
|
303
|
+
### version
|
|
304
|
+
|
|
305
|
+
インストールされている `claude-task-worker` CLI のバージョンを表示する。
|
|
306
|
+
|
|
307
|
+
```bash
|
|
308
|
+
claude-task-worker version
|
|
309
|
+
claude-task-worker --version
|
|
310
|
+
claude-task-worker -v
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
`package.json` の `version` を出力する(例: `0.2.0`)。
|
|
314
|
+
|
|
303
315
|
## 設定ファイル
|
|
304
316
|
|
|
305
317
|
コマンドを実行したディレクトリ直下の `claude-task-worker.json` を読み込む。
|
package/dist/index.js
CHANGED
|
@@ -1740,6 +1740,22 @@ async function update() {
|
|
|
1740
1740
|
console.log("[update] Done.");
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
|
+
// src/commands/version.ts
|
|
1744
|
+
import { readFileSync as readFileSync3 } from "node:fs";
|
|
1745
|
+
import { dirname, join as join3 } from "node:path";
|
|
1746
|
+
import { fileURLToPath } from "node:url";
|
|
1747
|
+
function version() {
|
|
1748
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
1749
|
+
const pkgPath = join3(here, "..", "package.json");
|
|
1750
|
+
try {
|
|
1751
|
+
const pkg = JSON.parse(readFileSync3(pkgPath, "utf8"));
|
|
1752
|
+
console.log(pkg.version ?? "unknown");
|
|
1753
|
+
} catch (err) {
|
|
1754
|
+
console.error(`[version] Failed to read version: ${err.message}`);
|
|
1755
|
+
process.exitCode = 1;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1743
1759
|
// src/index.ts
|
|
1744
1760
|
var WORKERS = {
|
|
1745
1761
|
"exec-issue": execIssueWorker,
|
|
@@ -1761,6 +1777,7 @@ Commands:
|
|
|
1761
1777
|
install Add the claude-task-worker marketplace, install the plugin, and install/update the CLI
|
|
1762
1778
|
update Update the claude-task-worker plugin/marketplace and the CLI itself
|
|
1763
1779
|
usage Notify current usage to Slack
|
|
1780
|
+
version Print the installed claude-task-worker CLI version (aliases: --version, -v)
|
|
1764
1781
|
|
|
1765
1782
|
Workers:
|
|
1766
1783
|
exec-issue Poll issues and run /exec-issue
|
|
@@ -1790,6 +1807,10 @@ Example:
|
|
|
1790
1807
|
claude-task-worker yolo --epic 100 --epic 200 --label priority-high`);
|
|
1791
1808
|
}
|
|
1792
1809
|
var workerType = process.argv[2];
|
|
1810
|
+
if (workerType === "version" || workerType === "--version" || workerType === "-v") {
|
|
1811
|
+
version();
|
|
1812
|
+
process.exit(process.exitCode ?? 0);
|
|
1813
|
+
}
|
|
1793
1814
|
if (!workerType) {
|
|
1794
1815
|
printUsage();
|
|
1795
1816
|
process.exit(1);
|