@gitterm/opencode-cloud 0.1.3 → 0.1.4
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 +3 -1
- package/dist/index.js +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -9,6 +9,8 @@ session stays local? Use [`@gitterm/opencode-sandbox`](../opencode-sandbox/READM
|
|
|
9
9
|
|
|
10
10
|
## 1. Install
|
|
11
11
|
|
|
12
|
+
Requires OpenCode 2.2.6 or newer.
|
|
13
|
+
|
|
12
14
|
```sh
|
|
13
15
|
opencode plugin add @gitterm/opencode-cloud
|
|
14
16
|
```
|
|
@@ -24,7 +26,7 @@ In GitTerm, add your model credentials and repository access first.
|
|
|
24
26
|
|
|
25
27
|
## 3. Use it
|
|
26
28
|
|
|
27
|
-
In a Git repository, stop the agent
|
|
29
|
+
In a Git repository, stop the agent and finish or stop its background jobs, then type:
|
|
28
30
|
|
|
29
31
|
```text
|
|
30
32
|
/cloud
|
package/dist/index.js
CHANGED
|
@@ -3865,6 +3865,9 @@ async function assertIdle(client, sessionID, signal) {
|
|
|
3865
3865
|
if ((await client.session.active({ signal }))[sessionID]) {
|
|
3866
3866
|
throw new Error("Stop this session's running agent before continuing in the cloud. Other sessions will not be interrupted.");
|
|
3867
3867
|
}
|
|
3868
|
+
const jobs = await client.experimental.job.list({ sessionID, status: "running", descendants: true }, { signal });
|
|
3869
|
+
if (jobs.length > 0)
|
|
3870
|
+
throw new Error("This session has running background jobs. Let them finish or stop them before continuing in the cloud; running processes cannot be transferred.");
|
|
3868
3871
|
if ((await client.session.inbox.list({ sessionID }, { signal })).length > 0) {
|
|
3869
3872
|
throw new Error("This session has pending input. Finish or cancel it before continuing in the cloud.");
|
|
3870
3873
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitterm/opencode-cloud",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Continue OpenCode sessions and local checkout changes in GitTerm cloud workspaces with /cloud",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gitterm",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"prepack": "bun run check-types && bun run build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@opencode/client": "^2.2.
|
|
37
|
+
"@opencode/client": "^2.2.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@gitterm/sdk": "workspace:*",
|
|
41
|
-
"@opencode/plugin": "^2.2.
|
|
41
|
+
"@opencode/plugin": "^2.2.6",
|
|
42
42
|
"@types/bun": "^1.2.6",
|
|
43
43
|
"typescript": "^5.8.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@opencode/plugin": "^2.2.
|
|
46
|
+
"@opencode/plugin": "^2.2.6"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"bun": ">=1.2.0"
|