@opencode/plugin 0.0.0-dev-21920 → 0.0.0-dev-44
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/dist/effect/event.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { EventSubscribeInput, EventSubscribeOutput, SelectedEvent } from "@opencode/client/effect/api";
|
|
2
|
+
import type { Stream } from "effect";
|
|
3
|
+
type EventType = NonNullable<EventSubscribeInput["types"]>[number];
|
|
4
|
+
export interface EventDomain {
|
|
5
|
+
readonly subscribe: <Type extends EventType = EventType>(input?: {
|
|
6
|
+
readonly types?: ReadonlyArray<Type>;
|
|
7
|
+
}) => Stream.Stream<SelectedEvent<EventSubscribeOutput, Type>, unknown>;
|
|
3
8
|
}
|
|
9
|
+
export {};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import type { ConnectionInfo } from "@opencode/client";
|
|
1
|
+
import type { ConnectionInfo, IntegrationInfo } from "@opencode/client";
|
|
2
2
|
import type { IntegrationApi } from "@opencode/client/effect/api";
|
|
3
3
|
import { Connection } from "@opencode/schema/connection";
|
|
4
4
|
import { Credential } from "@opencode/schema/credential";
|
|
5
5
|
import { Form } from "@opencode/schema/form";
|
|
6
6
|
import type { Effect, Scope } from "effect";
|
|
7
7
|
import type { Transform } from "./registration.js";
|
|
8
|
-
type IntegrationRef =
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
8
|
+
type IntegrationRef = Pick<IntegrationInfo, "id" | "name" | "configured">;
|
|
12
9
|
export interface IntegrationOAuthMethod {
|
|
13
10
|
readonly id: string;
|
|
14
11
|
readonly type: "oauth";
|
package/dist/promise/adapter.js
CHANGED
|
@@ -227,7 +227,7 @@ export function fromPromise(plugin) {
|
|
|
227
227
|
activate: adaptApiMethod(CredentialEndpoints["credential.activate"], host.credential.activate),
|
|
228
228
|
},
|
|
229
229
|
event: {
|
|
230
|
-
subscribe: (options) => streams(host.event.subscribe().pipe(Stream.mapEffect((event) => encodeOpenCodeEvent(event)), Stream.map((event) => event)), options),
|
|
230
|
+
subscribe: (options) => streams(host.event.subscribe({ types: options?.types }).pipe(Stream.mapEffect((event) => encodeOpenCodeEvent(event)), Stream.map((event) => event)), options),
|
|
231
231
|
},
|
|
232
232
|
experimental: {
|
|
233
233
|
terminal: {
|
package/dist/promise/event.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { OpenCodeEvent } from "@opencode/client";
|
|
2
|
+
import type { SelectedEvent, SubscribeOptions } from "@opencode/client/promise/api";
|
|
3
|
+
type EventType = Exclude<OpenCodeEvent["type"], "server.connected">;
|
|
4
|
+
export interface EventDomain {
|
|
5
|
+
readonly subscribe: <Type extends EventType = EventType>(options?: SubscribeOptions<Type>) => AsyncIterable<SelectedEvent<OpenCodeEvent, Type>>;
|
|
3
6
|
}
|
|
7
|
+
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type { ConnectionInfo } from "@opencode/client";
|
|
1
|
+
import type { ConnectionInfo, IntegrationInfo } from "@opencode/client";
|
|
2
2
|
import type { IntegrationApi } from "@opencode/client/promise/api";
|
|
3
3
|
import { Connection } from "@opencode/schema/connection";
|
|
4
4
|
import { Credential } from "@opencode/schema/credential";
|
|
5
5
|
import { Form } from "@opencode/schema/form";
|
|
6
6
|
import type { Transform } from "./registration.js";
|
|
7
|
-
type IntegrationRef =
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
7
|
+
type IntegrationRef = Pick<IntegrationInfo, "id" | "name" | "configured">;
|
|
11
8
|
export interface IntegrationOAuthMethod {
|
|
12
9
|
readonly id: string;
|
|
13
10
|
readonly type: "oauth";
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/plugin",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-44",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "bun test --only-failures",
|
|
9
9
|
"typecheck": "bun check --no-script",
|
|
10
10
|
"typecheck:tsc": "tsc --noEmit",
|
|
11
|
-
"build": "tsc -p tsconfig.build.json"
|
|
11
|
+
"build": "tsc -p tsconfig.build.json",
|
|
12
|
+
"pack": "bun run script/pack.ts"
|
|
12
13
|
},
|
|
13
14
|
"exports": {
|
|
14
15
|
".": {
|
|
@@ -48,17 +49,17 @@
|
|
|
48
49
|
],
|
|
49
50
|
"dependencies": {
|
|
50
51
|
"@ai-sdk/provider": "3.0.8",
|
|
51
|
-
"@opencode/ai": "0.0.0-dev-
|
|
52
|
-
"@opencode/client": "0.0.0-dev-
|
|
53
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
54
|
-
"@opencode/schema": "0.0.0-dev-
|
|
55
|
-
"@opencode/util": "0.0.0-dev-
|
|
52
|
+
"@opencode/ai": "0.0.0-dev-44",
|
|
53
|
+
"@opencode/client": "0.0.0-dev-44",
|
|
54
|
+
"@opencode/protocol": "0.0.0-dev-44",
|
|
55
|
+
"@opencode/schema": "0.0.0-dev-44",
|
|
56
|
+
"@opencode/util": "0.0.0-dev-44",
|
|
56
57
|
"effect": "4.0.1"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
|
-
"@opencode/theme": "0.0.0-dev-
|
|
60
|
-
"@opentui/core": "
|
|
61
|
-
"@opentui/solid": "
|
|
60
|
+
"@opencode/theme": "0.0.0-dev-44",
|
|
61
|
+
"@opentui/core": "0.7.0",
|
|
62
|
+
"@opentui/solid": "0.7.0",
|
|
62
63
|
"solid-js": ">=1.9.0"
|
|
63
64
|
},
|
|
64
65
|
"peerDependenciesMeta": {
|
|
@@ -76,9 +77,9 @@
|
|
|
76
77
|
}
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
79
|
-
"@opencode/theme": "0.0.0-dev-
|
|
80
|
-
"@opentui/core": "0.
|
|
81
|
-
"@opentui/solid": "0.
|
|
80
|
+
"@opencode/theme": "0.0.0-dev-44",
|
|
81
|
+
"@opentui/core": "0.7.0",
|
|
82
|
+
"@opentui/solid": "0.7.0",
|
|
82
83
|
"@tsconfig/bun": "1.0.9",
|
|
83
84
|
"@tsconfig/node22": "22.0.2",
|
|
84
85
|
"@types/bun": "1.4.3",
|
|
@@ -86,5 +87,10 @@
|
|
|
86
87
|
"solid-js": "1.9.15",
|
|
87
88
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
88
89
|
"@typescript/native": "npm:typescript@7.1.0-beta"
|
|
90
|
+
},
|
|
91
|
+
"repository": {
|
|
92
|
+
"type": "git",
|
|
93
|
+
"url": "git+https://github.com/anomalyco/opencode.git",
|
|
94
|
+
"directory": "packages/plugin"
|
|
89
95
|
}
|
|
90
|
-
}
|
|
96
|
+
}
|