openclaw-opencode-bridge 2.1.6 → 2.1.7
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
CHANGED
|
@@ -83,8 +83,8 @@ Contoh:
|
|
|
83
83
|
|
|
84
84
|
## Perilaku Timeout
|
|
85
85
|
|
|
86
|
-
- `/cc` memakai timeout adaptif dengan base `
|
|
87
|
-
- `/ccn` memakai timeout adaptif dengan base `
|
|
86
|
+
- `/cc` memakai timeout adaptif dengan base `300s` dan maksimum `600s`.
|
|
87
|
+
- `/ccn` memakai timeout adaptif dengan base `300s` dan maksimum `600s`.
|
|
88
88
|
- Timeout adalah batas maksimal proses. Kalau OpenCode selesai lebih cepat, reply langsung dikirim saat itu juga.
|
|
89
89
|
|
|
90
90
|
## Catatan Sesi
|
|
@@ -121,6 +121,11 @@ Ini akan menghapus plugin, script bridge, AGENTS.md hasil instalasi bridge, dan
|
|
|
121
121
|
| Perintah lambat/timeout | Cek prompt terlalu berat, lihat log bridge, pastikan OpenCode CLI normal |
|
|
122
122
|
| Output aneh/berantakan | Ulangi onboarding agar script/plugin terbaru terpasang |
|
|
123
123
|
|
|
124
|
+
## Attribution
|
|
125
|
+
|
|
126
|
+
Proyek ini diadaptasi dari karya original:
|
|
127
|
+
`https://github.com/bettep-dev/openclaw-claude-bridge`
|
|
128
|
+
|
|
124
129
|
## License
|
|
125
130
|
|
|
126
131
|
[MIT](LICENSE)
|
package/README_EN.md
CHANGED
|
@@ -77,8 +77,8 @@ Examples:
|
|
|
77
77
|
|
|
78
78
|
## Timeout Behavior
|
|
79
79
|
|
|
80
|
-
- `/cc` uses adaptive timeout with base `
|
|
81
|
-
- `/ccn` uses adaptive timeout with base `
|
|
80
|
+
- `/cc` uses adaptive timeout with base `300s` and max `600s`.
|
|
81
|
+
- `/ccn` uses adaptive timeout with base `300s` and max `600s`.
|
|
82
82
|
- Timeout is a hard upper bound. If OpenCode finishes early, output is sent immediately.
|
|
83
83
|
|
|
84
84
|
## Session Notes
|
|
@@ -121,6 +121,11 @@ If this project helps you, you can support it via:
|
|
|
121
121
|
|
|
122
122
|
`0xe81c32383C8F21A14E6C2264939dA512e9F9bb42`
|
|
123
123
|
|
|
124
|
+
## Attribution
|
|
125
|
+
|
|
126
|
+
This project is adapted from the original work:
|
|
127
|
+
`https://github.com/bettep-dev/openclaw-claude-bridge`
|
|
128
|
+
|
|
124
129
|
## License
|
|
125
130
|
|
|
126
131
|
[MIT](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
# bridge-version:
|
|
2
|
+
# bridge-version: 17
|
|
3
3
|
# Start fresh session asynchronously and send instruction
|
|
4
4
|
MSG="$1"
|
|
5
5
|
OPENCODE="{{OPENCODE_BIN}}"
|
|
@@ -7,8 +7,8 @@ CHANNEL="{{CHANNEL}}"
|
|
|
7
7
|
TARGET="{{TARGET_ID}}"
|
|
8
8
|
WORKSPACE="{{WORKSPACE}}"
|
|
9
9
|
LOG_FILE="/tmp/opencode-bridge-send.log"
|
|
10
|
-
BASE_TIMEOUT_SEC=
|
|
11
|
-
MAX_TIMEOUT_SEC=
|
|
10
|
+
BASE_TIMEOUT_SEC=300
|
|
11
|
+
MAX_TIMEOUT_SEC=600
|
|
12
12
|
LOCK_WAIT_SEC=3
|
|
13
13
|
|
|
14
14
|
if [ -z "$MSG" ]; then
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
# bridge-version:
|
|
2
|
+
# bridge-version: 19
|
|
3
3
|
# Dispatch instruction to OpenCode asynchronously and relay response
|
|
4
4
|
MSG="$1"
|
|
5
5
|
OPENCODE="{{OPENCODE_BIN}}"
|
|
@@ -7,8 +7,8 @@ CHANNEL="{{CHANNEL}}"
|
|
|
7
7
|
TARGET="{{TARGET_ID}}"
|
|
8
8
|
WORKSPACE="{{WORKSPACE}}"
|
|
9
9
|
LOG_FILE="/tmp/opencode-bridge-send.log"
|
|
10
|
-
BASE_TIMEOUT_SEC=
|
|
11
|
-
MAX_TIMEOUT_SEC=
|
|
10
|
+
BASE_TIMEOUT_SEC=300
|
|
11
|
+
MAX_TIMEOUT_SEC=600
|
|
12
12
|
LOCK_WAIT_SEC=3
|
|
13
13
|
|
|
14
14
|
if [ -z "$MSG" ]; then
|