opencode-telegram-connect 1.0.1 → 1.0.2
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 +4 -4
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ notepad "$env:USERPROFILE\.config\opencode\opencode.json"
|
|
|
50
50
|
```json
|
|
51
51
|
{
|
|
52
52
|
"$schema": "https://opencode.ai/config.json",
|
|
53
|
-
"plugin": ["opencode-telegram-connect@1.0.
|
|
53
|
+
"plugin": ["opencode-telegram-connect@1.0.2"]
|
|
54
54
|
}
|
|
55
55
|
```
|
|
56
56
|
|
|
@@ -59,7 +59,7 @@ Keep any other settings and plugins in the file. OpenCode downloads and installs
|
|
|
59
59
|
Optionally install the package globally to get the `opencode-telegram-user-id` helper command:
|
|
60
60
|
|
|
61
61
|
```powershell
|
|
62
|
-
npm install -g opencode-telegram-connect@1.0.
|
|
62
|
+
npm install -g opencode-telegram-connect@1.0.2
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
See also the [OpenCode plugin documentation](https://opencode.ai/docs/plugins/).
|
|
@@ -74,7 +74,7 @@ nano ~/.config/opencode/opencode.json
|
|
|
74
74
|
opencode
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
If your global config is `opencode.jsonc`, that file takes precedence - add the entry to its `plugin` array and check the effective list with `opencode debug config`. Pinning a version (e.g. `opencode-telegram-connect@1.0.
|
|
77
|
+
If your global config is `opencode.jsonc`, that file takes precedence - add the entry to its `plugin` array and check the effective list with `opencode debug config`. Pinning a version (e.g. `opencode-telegram-connect@1.0.2`) is recommended; the bare `latest` spec is cached permanently on first install.
|
|
78
78
|
|
|
79
79
|
## Uninstall
|
|
80
80
|
|
|
@@ -125,7 +125,7 @@ Save the file exactly as `telegram.env`, not `telegram.env.txt`.
|
|
|
125
125
|
Keep the Telegram connection off in OpenCode. After you have privately sent your bot `Hallo`, run:
|
|
126
126
|
|
|
127
127
|
```sh
|
|
128
|
-
npx --yes --package=opencode-telegram-connect@1.0.
|
|
128
|
+
npx --yes --package=opencode-telegram-connect@1.0.2 opencode-telegram-user-id
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
The helper reads the token from your file and prints the user IDs of pending messages, for example `DeinName: TELEGRAM_USER=123456789`. It sends no message and never prints the token. If several people are listed, take your own ID. If nothing is listed, send `Hallo` again and repeat. No other application may poll this bot while you do this.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-telegram-connect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Native OpenCode plugin to securely control sessions from Telegram.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -26,10 +26,6 @@
|
|
|
26
26
|
],
|
|
27
27
|
"author": "Joel Buchholz",
|
|
28
28
|
"license": "MIT",
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/joel-buchholz/opencode-telegram-control.git"
|
|
32
|
-
},
|
|
33
29
|
"os": [
|
|
34
30
|
"win32",
|
|
35
31
|
"linux",
|
|
@@ -55,5 +51,10 @@
|
|
|
55
51
|
},
|
|
56
52
|
"bin": {
|
|
57
53
|
"opencode-telegram-user-id": "src/user-id.js"
|
|
58
|
-
}
|
|
54
|
+
},
|
|
55
|
+
"maintainers": [
|
|
56
|
+
{
|
|
57
|
+
"name": "Joel Buchholz"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
59
60
|
}
|