@cortexkit/opencode-openai-auth 0.3.1 → 0.3.2
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/cli.js +1 -1
- package/dist/core/oauth.d.ts +1 -1
- package/dist/{index-n33dsxp3.js → index-z21wp7ac.js} +7 -7
- package/dist/index.js +42 -42
- package/dist/prompt-context.d.ts +19 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve prompt context for synthetic OpenCode user messages.
|
|
3
|
+
*
|
|
4
|
+
* OpenCode records even ignored/noReply prompt messages as user messages. If a
|
|
5
|
+
* plugin sends one (e.g. a hidden /openai-* command reply) without the previous
|
|
6
|
+
* model/variant, OpenCode's next real prompt can inherit the synthetic message's
|
|
7
|
+
* default model/variant and silently change the model, usage, or cache
|
|
8
|
+
* attribution. Resolve the most recent assistant context and pass it through on
|
|
9
|
+
* hidden command replies so the user's selected model (including -pro) is kept.
|
|
10
|
+
*/
|
|
11
|
+
export interface ResolvedPromptContext {
|
|
12
|
+
agent?: string;
|
|
13
|
+
model?: {
|
|
14
|
+
providerID: string;
|
|
15
|
+
modelID: string;
|
|
16
|
+
};
|
|
17
|
+
variant?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function resolvePromptContext(client: unknown, sessionId: string): Promise<ResolvedPromptContext | null>;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PackageVersion = "0.3.
|
|
1
|
+
export declare const PackageVersion = "0.3.2";
|