@opencode/plugin 2.0.18 → 2.0.20
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ConnectionInfo } from "@opencode/client";
|
|
2
2
|
import type { IntegrationApi } from "@opencode/client/effect/api";
|
|
3
|
+
import { Connection } from "@opencode/schema/connection";
|
|
3
4
|
import { Credential } from "@opencode/schema/credential";
|
|
4
5
|
import { Form } from "@opencode/schema/form";
|
|
5
6
|
import type { Effect, Scope } from "effect";
|
|
@@ -75,6 +76,12 @@ export interface IntegrationDomain extends Omit<IntegrationApi<unknown>, "wellkn
|
|
|
75
76
|
readonly connection: {
|
|
76
77
|
readonly active: (integrationID: string) => Effect.Effect<ConnectionInfo | undefined>;
|
|
77
78
|
readonly resolve: (connection: ConnectionInfo) => Effect.Effect<Credential.Value | undefined, unknown>;
|
|
79
|
+
/** Reports a problem with a connection, such as a required sign-in; `undefined` clears it. */
|
|
80
|
+
readonly status: (input: {
|
|
81
|
+
readonly integrationID: string;
|
|
82
|
+
readonly connection: ConnectionInfo;
|
|
83
|
+
readonly status: Connection.Status | undefined;
|
|
84
|
+
}) => Effect.Effect<void>;
|
|
78
85
|
};
|
|
79
86
|
}
|
|
80
87
|
export {};
|
package/dist/promise/adapter.js
CHANGED
|
@@ -294,6 +294,7 @@ export function fromPromise(plugin) {
|
|
|
294
294
|
connection: {
|
|
295
295
|
active: (id) => Effect.runPromiseWith(runtime)(host.integration.connection.active(id)),
|
|
296
296
|
resolve: (connection) => Effect.runPromiseWith(runtime)(host.integration.connection.resolve(connection)),
|
|
297
|
+
status: (input) => run(host.integration.connection.status(input)),
|
|
297
298
|
},
|
|
298
299
|
},
|
|
299
300
|
mcp: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ConnectionInfo } from "@opencode/client";
|
|
2
2
|
import type { IntegrationApi } from "@opencode/client/promise/api";
|
|
3
|
+
import { Connection } from "@opencode/schema/connection";
|
|
3
4
|
import { Credential } from "@opencode/schema/credential";
|
|
4
5
|
import { Form } from "@opencode/schema/form";
|
|
5
6
|
import type { Transform } from "./registration.js";
|
|
@@ -74,6 +75,12 @@ export interface IntegrationDomain extends Omit<IntegrationApi, "wellknown"> {
|
|
|
74
75
|
readonly connection: {
|
|
75
76
|
readonly active: (integrationID: string) => Promise<ConnectionInfo | undefined>;
|
|
76
77
|
readonly resolve: (connection: ConnectionInfo) => Promise<Credential.Value | undefined>;
|
|
78
|
+
/** Reports a problem with a connection, such as a required sign-in; `undefined` clears it. */
|
|
79
|
+
readonly status: (input: {
|
|
80
|
+
readonly integrationID: string;
|
|
81
|
+
readonly connection: ConnectionInfo;
|
|
82
|
+
readonly status: Connection.Status | undefined;
|
|
83
|
+
}) => Promise<void>;
|
|
77
84
|
};
|
|
78
85
|
}
|
|
79
86
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/plugin",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ai-sdk/provider": "3.0.8",
|
|
46
|
-
"@opencode/ai": "2.0.
|
|
47
|
-
"@opencode/client": "2.0.
|
|
48
|
-
"@opencode/protocol": "2.0.
|
|
49
|
-
"@opencode/schema": "2.0.
|
|
50
|
-
"@opencode/util": "2.0.
|
|
46
|
+
"@opencode/ai": "2.0.20",
|
|
47
|
+
"@opencode/client": "2.0.20",
|
|
48
|
+
"@opencode/protocol": "2.0.20",
|
|
49
|
+
"@opencode/schema": "2.0.20",
|
|
50
|
+
"@opencode/util": "2.0.20",
|
|
51
51
|
"@standard-schema/spec": "1.1.0",
|
|
52
52
|
"effect": "4.0.0-rc.112",
|
|
53
53
|
"zod": "4.1.8"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@opencode/theme": "2.0.
|
|
56
|
+
"@opencode/theme": "2.0.20",
|
|
57
57
|
"@opentui/core": ">=0.5.12",
|
|
58
58
|
"@opentui/solid": ">=0.5.12",
|
|
59
59
|
"solid-js": ">=1.9.0"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@opencode/theme": "2.0.
|
|
76
|
+
"@opencode/theme": "2.0.20",
|
|
77
77
|
"@opentui/core": "0.5.12",
|
|
78
78
|
"@opentui/solid": "0.5.12",
|
|
79
79
|
"@tsconfig/bun": "1.0.9",
|