@lapius/bin-cli 0.4.0 → 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.
- package/README.md +22 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -45,11 +45,21 @@ bin cp <id> a.js b.js # コピー(--to <id> / --new で別
|
|
|
45
45
|
bin undo [<id>] / bin restore <id> ~2 # 直前の変更を取り消す / 過去のリビジョンへ戻す(--dry-run あり)
|
|
46
46
|
bin open|copy|share [<id>] # ブラウザで開く / クリップボードへ / URL・埋め込み・QR を表示
|
|
47
47
|
bin search <text> # 自分の Gist を全文検索
|
|
48
|
-
bin watch
|
|
48
|
+
bin watch main.js # 新規 Gist を作り、保存するたびに自動反映
|
|
49
|
+
bin watch ./src README.md -t "メモ" # フォルダ・複数ファイルも監視(消したファイルも反映)
|
|
50
|
+
bin watch <id> main.js # 既存 Gist へ反映(--mirror で手元に無いファイルを消す)
|
|
49
51
|
bin alias set blog <id> # 短い名前を付ける(以降 bin edit blog …)
|
|
50
52
|
bin visibility private --tag draft # 公開範囲を一括変更 / bin bulk tag --add x
|
|
51
53
|
bin edit <id> --editor # $EDITOR で編集して反映
|
|
52
54
|
bin create --clipboard -f note.txt # クリップボードから作成
|
|
55
|
+
|
|
56
|
+
# ログイン不要の匿名ペースト(/try。1ファイル200KB・合計1MB・10ファイル、保存1〜100日)
|
|
57
|
+
bin try create main.go --days 30 # 共有URLを作る(既定7日)。編集用トークンはこの端末に保存
|
|
58
|
+
echo hi | bin try create -f note.txt -t メモ # 標準入力からも可
|
|
59
|
+
bin try view <id|url> [-f <file>] # 表示
|
|
60
|
+
bin try edit <id|url> new.go --remove old.go # 追加・上書き・削除(--token <トークン> で他の端末からも)
|
|
61
|
+
bin try delete <id|url> -y # 削除
|
|
62
|
+
bin try list / bin try token <id> # 作成済み一覧 / トークン表示
|
|
53
63
|
bin create dir/ --exclude "*.log" # --include / --exclude / .binignore で絞り込み
|
|
54
64
|
bin patch <id> a.js --replace @init --text "..." # 行番号の代わりに @関数名 や /開始/,/終了/ も指定可
|
|
55
65
|
bin star <id> / bin starred # スター・スターしたGistの一覧
|
|
@@ -66,6 +76,17 @@ bin version # バージョン表示。配布中
|
|
|
66
76
|
|
|
67
77
|
`<id>`にはGistのURLもそのまま渡せる。
|
|
68
78
|
|
|
79
|
+
## AIエージェントに使わせる
|
|
80
|
+
|
|
81
|
+
Claude Code や Codex などのAIに `bin` の使い方を教えるには、次の文をそのまま渡す。
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
https://bin.lapius7.com/cli/llms.txt を読んで、bin CLI の使い方を把握してください。
|
|
85
|
+
そのうえで、次の作業を bin コマンドで行ってください: <やりたいこと>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`llms.txt` は、AI向けに標準出力の扱い、非対話での認証(`BIN_TOKEN`)、公開範囲の既定値、コマンド一覧、制限をまとめたもの。ファイルとして渡す場合は `curl -fsSL https://bin.lapius7.com/cli/llms.txt -o llms.txt` で取得する。CIやエージェントには、読み取り専用などに絞った `bin token create` のトークンを `BIN_TOKEN` で渡す。
|
|
89
|
+
|
|
69
90
|
### 手元のフォルダと同期
|
|
70
91
|
|
|
71
92
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lapius/bin-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "bin.lapius7.com(LapBin)の CLI クライアント",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"arm64"
|
|
31
31
|
],
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@lapius/bin-cli-linux-x64": "0.
|
|
34
|
-
"@lapius/bin-cli-linux-arm64": "0.
|
|
35
|
-
"@lapius/bin-cli-darwin-x64": "0.
|
|
36
|
-
"@lapius/bin-cli-darwin-arm64": "0.
|
|
37
|
-
"@lapius/bin-cli-win32-x64": "0.
|
|
33
|
+
"@lapius/bin-cli-linux-x64": "0.6.0",
|
|
34
|
+
"@lapius/bin-cli-linux-arm64": "0.6.0",
|
|
35
|
+
"@lapius/bin-cli-darwin-x64": "0.6.0",
|
|
36
|
+
"@lapius/bin-cli-darwin-arm64": "0.6.0",
|
|
37
|
+
"@lapius/bin-cli-win32-x64": "0.6.0"
|
|
38
38
|
}
|
|
39
39
|
}
|