@opencode/plugin 0.0.0-dev-192 → 0.0.0-dev-197
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/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CredentialApi, ExperimentalApi,
|
|
1
|
+
import type { CredentialApi, ExperimentalApi, ExperimentalGenerateApi, PluginApi } from "@opencode/client/effect/api";
|
|
2
2
|
import type { Location } from "@opencode/schema/location";
|
|
3
3
|
import type { Effect, Scope } from "effect";
|
|
4
4
|
import type { PluginOptions } from "../options.js";
|
|
@@ -34,13 +34,13 @@ export interface Context {
|
|
|
34
34
|
readonly experimental: {
|
|
35
35
|
readonly terminal: Pick<ExperimentalApi<unknown>["persistentPty"], "read">;
|
|
36
36
|
/** Stateless generation with a model and a prompt: no session, history or tools. */
|
|
37
|
-
readonly generate:
|
|
37
|
+
readonly generate: ExperimentalGenerateApi<unknown>;
|
|
38
38
|
};
|
|
39
39
|
readonly integration: IntegrationDomain;
|
|
40
40
|
readonly mcp: MCPDomain;
|
|
41
41
|
readonly model: ModelDomain;
|
|
42
42
|
/** @deprecated Use `experimental.generate.text`. */
|
|
43
|
-
readonly generate: Pick<
|
|
43
|
+
readonly generate: Pick<ExperimentalGenerateApi<unknown>, "text">;
|
|
44
44
|
readonly permission: PermissionDomain;
|
|
45
45
|
readonly plugin: Pick<PluginApi<unknown>, "list">;
|
|
46
46
|
readonly provider: ProviderDomain;
|
package/dist/effect/session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionApi } from "@opencode/client/effect/api";
|
|
1
|
+
import type { ExperimentalSessionApi, SessionApi } from "@opencode/client/effect/api";
|
|
2
2
|
import type { GenerationOptionsFields, Message, SystemPart } from "@opencode/ai/effect";
|
|
3
3
|
import type { Agent } from "@opencode/schema/agent";
|
|
4
4
|
import type { Model } from "@opencode/schema/model";
|
|
@@ -141,6 +141,6 @@ export interface SessionHooks {
|
|
|
141
141
|
readonly "experimental.ws.receive": SessionWebSocketReceive;
|
|
142
142
|
readonly retry: SessionRetry;
|
|
143
143
|
}
|
|
144
|
-
export type SessionDomain = Pick<SessionApi<unknown>, "list" | "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "
|
|
144
|
+
export type SessionDomain = Pick<SessionApi<unknown>, "list" | "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "context"> & Pick<ExperimentalSessionApi<unknown>, "wait" | "instructions"> & {
|
|
145
145
|
readonly hook: ModelHooks<SessionHooks>;
|
|
146
146
|
};
|
package/dist/promise/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OpenCodeClient } from "@opencode/client";
|
|
2
|
-
import type { CredentialApi,
|
|
2
|
+
import type { CredentialApi, ExperimentalGenerateApi, PluginApi } from "@opencode/client/promise/api";
|
|
3
3
|
import type { Location } from "@opencode/schema/location";
|
|
4
4
|
import type { PluginOptions } from "../options.js";
|
|
5
5
|
import type { App } from "../app.js";
|
|
@@ -34,13 +34,13 @@ export interface Context {
|
|
|
34
34
|
readonly experimental: {
|
|
35
35
|
readonly terminal: Pick<OpenCodeClient["experimental"]["persistentPty"], "read">;
|
|
36
36
|
/** Stateless generation with a model and a prompt: no session, history or tools. */
|
|
37
|
-
readonly generate:
|
|
37
|
+
readonly generate: ExperimentalGenerateApi;
|
|
38
38
|
};
|
|
39
39
|
readonly integration: IntegrationDomain;
|
|
40
40
|
readonly mcp: MCPDomain;
|
|
41
41
|
readonly model: ModelDomain;
|
|
42
42
|
/** @deprecated Use `experimental.generate.text`. */
|
|
43
|
-
readonly generate: Pick<
|
|
43
|
+
readonly generate: Pick<ExperimentalGenerateApi, "text">;
|
|
44
44
|
readonly permission: PermissionDomain;
|
|
45
45
|
readonly plugin: Pick<PluginApi, "list">;
|
|
46
46
|
readonly provider: ProviderDomain;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionApi } from "@opencode/client/promise/api";
|
|
1
|
+
import type { ExperimentalSessionApi, SessionApi } from "@opencode/client/promise/api";
|
|
2
2
|
import type { GenerationOptionsFields, Message, SystemPart } from "@opencode/ai/effect";
|
|
3
3
|
import type { Agent } from "@opencode/schema/agent";
|
|
4
4
|
import type { Model } from "@opencode/schema/model";
|
|
@@ -141,6 +141,6 @@ export interface SessionHooks {
|
|
|
141
141
|
readonly "experimental.ws.receive": SessionWebSocketReceive;
|
|
142
142
|
readonly retry: SessionRetry;
|
|
143
143
|
}
|
|
144
|
-
export type SessionDomain = Pick<SessionApi, "list" | "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "
|
|
144
|
+
export type SessionDomain = Pick<SessionApi, "list" | "create" | "get" | "remove" | "switchAgent" | "switchModel" | "prompt" | "generate" | "command" | "compact" | "synthetic" | "interrupt" | "update" | "move" | "context"> & Pick<ExperimentalSessionApi, "wait" | "instructions"> & {
|
|
145
145
|
readonly hook: ModelHooks<SessionHooks>;
|
|
146
146
|
};
|
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": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-197",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
],
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@ai-sdk/provider": "3.0.8",
|
|
81
|
-
"@opencode/ai": "0.0.0-dev-
|
|
82
|
-
"@opencode/client": "0.0.0-dev-
|
|
83
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
84
|
-
"@opencode/schema": "0.0.0-dev-
|
|
85
|
-
"@opencode/util": "0.0.0-dev-
|
|
81
|
+
"@opencode/ai": "0.0.0-dev-197",
|
|
82
|
+
"@opencode/client": "0.0.0-dev-197",
|
|
83
|
+
"@opencode/protocol": "0.0.0-dev-197",
|
|
84
|
+
"@opencode/schema": "0.0.0-dev-197",
|
|
85
|
+
"@opencode/util": "0.0.0-dev-197",
|
|
86
86
|
"effect": "4.0.1"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@opencode/theme": "0.0.0-dev-
|
|
89
|
+
"@opencode/theme": "0.0.0-dev-197",
|
|
90
90
|
"@opentui/core": "0.7.0",
|
|
91
91
|
"@opentui/solid": "0.7.0",
|
|
92
92
|
"electron": "*",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@opencode/theme": "0.0.0-dev-
|
|
121
|
+
"@opencode/theme": "0.0.0-dev-197",
|
|
122
122
|
"@opentui/core": "0.7.0",
|
|
123
123
|
"@opentui/solid": "0.7.0",
|
|
124
124
|
"@tsconfig/bun": "1.0.9",
|