@lapius/bin-cli 0.5.0 → 0.7.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 (2) hide show
  1. package/README.md +19 -0
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -52,6 +52,14 @@ bin alias set blog <id> # 短い名前を付ける(以降 bin
52
52
  bin visibility private --tag draft # 公開範囲を一括変更 / bin bulk tag --add x
53
53
  bin edit <id> --editor # $EDITOR で編集して反映
54
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> # 作成済み一覧 / トークン表示
55
63
  bin create dir/ --exclude "*.log" # --include / --exclude / .binignore で絞り込み
56
64
  bin patch <id> a.js --replace @init --text "..." # 行番号の代わりに @関数名 や /開始/,/終了/ も指定可
57
65
  bin star <id> / bin starred # スター・スターしたGistの一覧
@@ -68,6 +76,17 @@ bin version # バージョン表示。配布中
68
76
 
69
77
  `<id>`にはGistのURLもそのまま渡せる。
70
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
+
71
90
  ### 手元のフォルダと同期
72
91
 
73
92
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lapius/bin-cli",
3
- "version": "0.5.0",
3
+ "version": "0.7.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.5.0",
34
- "@lapius/bin-cli-linux-arm64": "0.5.0",
35
- "@lapius/bin-cli-darwin-x64": "0.5.0",
36
- "@lapius/bin-cli-darwin-arm64": "0.5.0",
37
- "@lapius/bin-cli-win32-x64": "0.5.0"
33
+ "@lapius/bin-cli-linux-x64": "0.7.0",
34
+ "@lapius/bin-cli-linux-arm64": "0.7.0",
35
+ "@lapius/bin-cli-darwin-x64": "0.7.0",
36
+ "@lapius/bin-cli-darwin-arm64": "0.7.0",
37
+ "@lapius/bin-cli-win32-x64": "0.7.0"
38
38
  }
39
39
  }