@opencode/plugin 0.0.0-dev-1074 → 0.0.0-dev-1112
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/session.d.ts +13 -0
- package/dist/promise/session.d.ts +13 -0
- package/package.json +8 -8
package/dist/effect/session.d.ts
CHANGED
|
@@ -59,6 +59,18 @@ export interface SessionTitle extends SessionRequest {
|
|
|
59
59
|
* hook identity but need to be told apart from the agent loop.
|
|
60
60
|
*/
|
|
61
61
|
export type SessionRequestKind = "primary" | "compaction" | "title" | "generate";
|
|
62
|
+
/**
|
|
63
|
+
* Runs whenever a Session resolves the model for a request, before anything is built for it. `model` starts as the
|
|
64
|
+
* Session's or agent's selection; change it to serve this request with another model from the same provider, including
|
|
65
|
+
* models hidden from the picker. The Session keeps its selection, and the request and its records use the new model.
|
|
66
|
+
* Router models such as GitHub Copilot's Auto use it. Experimental.
|
|
67
|
+
*/
|
|
68
|
+
export interface SessionModelResolve {
|
|
69
|
+
readonly sessionID: Session.ID;
|
|
70
|
+
readonly agent: Agent.ID;
|
|
71
|
+
readonly kind: SessionRequestKind;
|
|
72
|
+
model: Model.Ref;
|
|
73
|
+
}
|
|
62
74
|
export interface SessionModelRequest {
|
|
63
75
|
readonly sessionID: Session.ID;
|
|
64
76
|
readonly agent: Agent.ID;
|
|
@@ -174,6 +186,7 @@ export interface SessionHooks {
|
|
|
174
186
|
readonly compaction: SessionCompaction;
|
|
175
187
|
readonly generate: SessionGenerate;
|
|
176
188
|
readonly title: SessionTitle;
|
|
189
|
+
readonly "experimental.model.resolve": SessionModelResolve;
|
|
177
190
|
readonly "model.request": SessionModelRequest;
|
|
178
191
|
readonly "http.request": SessionHttpRequest;
|
|
179
192
|
readonly "http.response": SessionHttpResponse;
|
|
@@ -59,6 +59,18 @@ export interface SessionTitle extends SessionRequest {
|
|
|
59
59
|
* hook identity but need to be told apart from the agent loop.
|
|
60
60
|
*/
|
|
61
61
|
export type SessionRequestKind = "primary" | "compaction" | "title" | "generate";
|
|
62
|
+
/**
|
|
63
|
+
* Runs whenever a Session resolves the model for a request, before anything is built for it. `model` starts as the
|
|
64
|
+
* Session's or agent's selection; change it to serve this request with another model from the same provider, including
|
|
65
|
+
* models hidden from the picker. The Session keeps its selection, and the request and its records use the new model.
|
|
66
|
+
* Router models such as GitHub Copilot's Auto use it. Experimental.
|
|
67
|
+
*/
|
|
68
|
+
export interface SessionModelResolve {
|
|
69
|
+
readonly sessionID: Session.ID;
|
|
70
|
+
readonly agent: Agent.ID;
|
|
71
|
+
readonly kind: SessionRequestKind;
|
|
72
|
+
model: Model.Ref;
|
|
73
|
+
}
|
|
62
74
|
export interface SessionModelRequest {
|
|
63
75
|
readonly sessionID: Session.ID;
|
|
64
76
|
readonly agent: Agent.ID;
|
|
@@ -174,6 +186,7 @@ export interface SessionHooks {
|
|
|
174
186
|
readonly compaction: SessionCompaction;
|
|
175
187
|
readonly generate: SessionGenerate;
|
|
176
188
|
readonly title: SessionTitle;
|
|
189
|
+
readonly "experimental.model.resolve": SessionModelResolve;
|
|
177
190
|
readonly "model.request": SessionModelRequest;
|
|
178
191
|
readonly "http.request": SessionHttpRequest;
|
|
179
192
|
readonly "http.response": SessionHttpResponse;
|
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-1112",
|
|
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-1112",
|
|
82
|
+
"@opencode/client": "0.0.0-dev-1112",
|
|
83
|
+
"@opencode/protocol": "0.0.0-dev-1112",
|
|
84
|
+
"@opencode/schema": "0.0.0-dev-1112",
|
|
85
|
+
"@opencode/util": "0.0.0-dev-1112",
|
|
86
86
|
"effect": "4.1.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@opencode/theme": "0.0.0-dev-
|
|
89
|
+
"@opencode/theme": "0.0.0-dev-1112",
|
|
90
90
|
"@opentui/core": ">=0.8.1",
|
|
91
91
|
"@opentui/solid": ">=0.8.1",
|
|
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-1112",
|
|
122
122
|
"@opentui/core": "0.8.1",
|
|
123
123
|
"@opentui/solid": "0.8.1",
|
|
124
124
|
"@tsconfig/bun": "1.0.9",
|