@opencode-ai/plugin 0.0.0-next-15626 → 0.0.0-next-15628
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.
|
@@ -10,6 +10,9 @@ export interface AgentDraft {
|
|
|
10
10
|
remove(id: string): void;
|
|
11
11
|
}
|
|
12
12
|
export interface AgentDomain extends AgentApi<unknown> {
|
|
13
|
+
readonly get: (id: string) => Effect.Effect<AgentGetOutput | undefined>;
|
|
13
14
|
readonly transform: Transform<AgentDraft>;
|
|
14
15
|
readonly reload: () => Effect.Effect<void>;
|
|
15
16
|
}
|
|
17
|
+
type AgentGetOutput = Effect.Success<ReturnType<AgentApi<unknown>["list"]>>["data"][number];
|
|
18
|
+
export {};
|
|
@@ -27,6 +27,11 @@ export interface CatalogDraft {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
export interface CatalogDomain extends CatalogApi<unknown> {
|
|
30
|
+
readonly model: CatalogApi<unknown>["model"] & {
|
|
31
|
+
readonly get: (providerID: string, modelID: string) => Effect.Effect<ModelGetOutput | undefined>;
|
|
32
|
+
};
|
|
30
33
|
readonly transform: Transform<CatalogDraft>;
|
|
31
34
|
readonly reload: () => Effect.Effect<void>;
|
|
32
35
|
}
|
|
36
|
+
type ModelGetOutput = Effect.Success<ReturnType<CatalogApi<unknown>["model"]["list"]>>["data"][number];
|
|
37
|
+
export {};
|
|
@@ -3,6 +3,8 @@ import type { AgentDraft } from "../effect/agent.js";
|
|
|
3
3
|
import type { Transform } from "./registration.js";
|
|
4
4
|
export type { AgentDraft };
|
|
5
5
|
export interface AgentDomain extends AgentApi {
|
|
6
|
+
readonly get: (id: string) => Promise<AgentGetOutput | undefined>;
|
|
6
7
|
readonly transform: Transform<AgentDraft>;
|
|
7
8
|
readonly reload: () => Promise<void>;
|
|
8
9
|
}
|
|
10
|
+
type AgentGetOutput = Awaited<ReturnType<AgentApi["list"]>>["data"][number];
|
|
@@ -3,6 +3,10 @@ import type { CatalogDraft, CatalogProviderRecord } from "../effect/catalog.js";
|
|
|
3
3
|
import type { Transform } from "./registration.js";
|
|
4
4
|
export type { CatalogDraft, CatalogProviderRecord };
|
|
5
5
|
export interface CatalogDomain extends CatalogApi {
|
|
6
|
+
readonly model: CatalogApi["model"] & {
|
|
7
|
+
readonly get: (providerID: string, modelID: string) => Promise<ModelGetOutput | undefined>;
|
|
8
|
+
};
|
|
6
9
|
readonly transform: Transform<CatalogDraft>;
|
|
7
10
|
readonly reload: () => Promise<void>;
|
|
8
11
|
}
|
|
12
|
+
type ModelGetOutput = Awaited<ReturnType<CatalogApi["model"]["list"]>>["data"][number];
|
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-15628",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
],
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@ai-sdk/provider": "3.0.8",
|
|
55
|
-
"@opencode-ai/ai": "0.0.0-next-
|
|
56
|
-
"@opencode-ai/client": "0.0.0-next-
|
|
57
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
58
|
-
"@opencode-ai/sdk": "0.0.0-next-
|
|
55
|
+
"@opencode-ai/ai": "0.0.0-next-15628",
|
|
56
|
+
"@opencode-ai/client": "0.0.0-next-15628",
|
|
57
|
+
"@opencode-ai/schema": "0.0.0-next-15628",
|
|
58
|
+
"@opencode-ai/sdk": "0.0.0-next-15628",
|
|
59
59
|
"effect": "4.0.0-beta.83",
|
|
60
60
|
"zod": "4.1.8"
|
|
61
61
|
},
|