@opencode-ai/plugin 0.0.0-next-15618 → 0.0.0-next-15623
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,2 +1,24 @@
|
|
|
1
1
|
import type { SessionApi } from "@opencode-ai/client/effect/api";
|
|
2
|
-
|
|
2
|
+
import type { Message, SystemPart } from "@opencode-ai/ai";
|
|
3
|
+
import type { Agent } from "@opencode-ai/schema/agent";
|
|
4
|
+
import type { Model } from "@opencode-ai/schema/model";
|
|
5
|
+
import type { Session } from "@opencode-ai/schema/session";
|
|
6
|
+
import type { JsonSchema } from "effect";
|
|
7
|
+
import type { Hooks } from "./registration.js";
|
|
8
|
+
export interface SessionContext {
|
|
9
|
+
readonly sessionID: Session.ID;
|
|
10
|
+
readonly agent: Agent.ID;
|
|
11
|
+
readonly model: Model.Ref;
|
|
12
|
+
system: Array<SystemPart>;
|
|
13
|
+
messages: Array<Message>;
|
|
14
|
+
tools: Record<string, {
|
|
15
|
+
description: string;
|
|
16
|
+
input: JsonSchema.JsonSchema;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
export interface SessionHooks {
|
|
20
|
+
readonly context: SessionContext;
|
|
21
|
+
}
|
|
22
|
+
export type SessionDomain = Pick<SessionApi<unknown>, "create" | "get" | "prompt" | "command" | "interrupt"> & {
|
|
23
|
+
readonly hook: Hooks<SessionHooks>;
|
|
24
|
+
};
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import type { SessionApi } from "@opencode-ai/client/promise/api";
|
|
2
|
-
|
|
2
|
+
import type { Message, SystemPart } from "@opencode-ai/ai";
|
|
3
|
+
import type { Agent } from "@opencode-ai/schema/agent";
|
|
4
|
+
import type { Model } from "@opencode-ai/schema/model";
|
|
5
|
+
import type { Session } from "@opencode-ai/schema/session";
|
|
6
|
+
import type { JsonSchema } from "effect";
|
|
7
|
+
import type { Hooks } from "./registration.js";
|
|
8
|
+
export interface SessionContext {
|
|
9
|
+
readonly sessionID: Session.ID;
|
|
10
|
+
readonly agent: Agent.ID;
|
|
11
|
+
readonly model: Model.Ref;
|
|
12
|
+
system: Array<SystemPart>;
|
|
13
|
+
messages: Array<Message>;
|
|
14
|
+
tools: Record<string, {
|
|
15
|
+
description: string;
|
|
16
|
+
input: JsonSchema.JsonSchema;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
export interface SessionHooks {
|
|
20
|
+
readonly context: SessionContext;
|
|
21
|
+
}
|
|
22
|
+
export type SessionDomain = Pick<SessionApi, "create" | "get" | "prompt" | "command" | "interrupt"> & {
|
|
23
|
+
readonly hook: Hooks<SessionHooks>;
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/plugin",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-15623",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -52,9 +52,10 @@
|
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@ai-sdk/provider": "3.0.8",
|
|
55
|
-
"@opencode-ai/
|
|
56
|
-
"@opencode-ai/
|
|
57
|
-
"@opencode-ai/
|
|
55
|
+
"@opencode-ai/ai": "0.0.0-next-15623",
|
|
56
|
+
"@opencode-ai/client": "0.0.0-next-15623",
|
|
57
|
+
"@opencode-ai/schema": "0.0.0-next-15623",
|
|
58
|
+
"@opencode-ai/sdk": "0.0.0-next-15623",
|
|
58
59
|
"effect": "4.0.0-beta.83",
|
|
59
60
|
"zod": "4.1.8"
|
|
60
61
|
},
|