@opencode-ai/client 0.0.0-dev-18262 → 0.0.0-dev-18266
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.
|
@@ -1907,9 +1907,10 @@ export declare const make: (options?: {
|
|
|
1907
1907
|
} | {
|
|
1908
1908
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1909
1909
|
readonly data: {
|
|
1910
|
-
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1911
1910
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1911
|
+
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1912
1912
|
readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1913
|
+
readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
|
|
1913
1914
|
};
|
|
1914
1915
|
readonly durable: {
|
|
1915
1916
|
readonly aggregateID: string;
|
package/dist/solid/data.js
CHANGED
|
@@ -477,7 +477,20 @@ export function createData(config) {
|
|
|
477
477
|
}
|
|
478
478
|
case "worktree.resolved": {
|
|
479
479
|
for (const [sessionID, info] of Object.entries(store.session.info)) {
|
|
480
|
-
const
|
|
480
|
+
const explicit = event.data.adopted?.includes(info.projectID);
|
|
481
|
+
const directory = explicit ? store.project.info[info.projectID]?.canonical : info.location.directory;
|
|
482
|
+
if (!directory) {
|
|
483
|
+
if (info.location.workspaceID)
|
|
484
|
+
continue;
|
|
485
|
+
result.session.invalidate(sessionID);
|
|
486
|
+
void result.session.sync(sessionID);
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
const adopted = Worktree.adopt({
|
|
490
|
+
projectID: info.projectID,
|
|
491
|
+
directory,
|
|
492
|
+
workspaceID: info.location.workspaceID,
|
|
493
|
+
}, event.data);
|
|
481
494
|
if (!adopted)
|
|
482
495
|
continue;
|
|
483
496
|
setStore("session", "info", sessionID, "projectID", adopted.projectID);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-18266",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsgo --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode-ai/schema": "0.0.0-dev-
|
|
61
|
-
"@opencode-ai/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode-ai/schema": "0.0.0-dev-18266",
|
|
61
|
+
"@opencode-ai/protocol": "0.0.0-dev-18266"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.111",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.111",
|
|
77
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-dev-18266",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.3.13",
|
|
80
80
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|