@opencode-ai/plugin 0.0.0-dev-202608211346 → 0.0.0-dev-17813
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/app.d.ts +5 -0
- package/dist/app.js +0 -0
- package/dist/effect/agent.d.ts +15 -0
- package/dist/effect/agent.js +0 -0
- package/dist/{v2/promise → effect}/aisdk.d.ts +9 -6
- package/dist/effect/aisdk.js +0 -0
- package/dist/effect/catalog.d.ts +33 -0
- package/dist/effect/catalog.js +2 -0
- package/dist/effect/command.d.ts +14 -0
- package/dist/effect/command.js +0 -0
- package/dist/effect/event.d.ts +3 -0
- package/dist/effect/event.js +0 -0
- package/dist/effect/index.d.ts +13 -0
- package/dist/effect/index.js +12 -0
- package/dist/effect/integration.d.ts +80 -0
- package/dist/effect/integration.js +2 -0
- package/dist/effect/mcp.d.ts +15 -0
- package/dist/effect/mcp.js +0 -0
- package/dist/effect/plugin.d.ts +43 -0
- package/dist/effect/reference.d.ts +13 -0
- package/dist/effect/reference.js +0 -0
- package/dist/effect/registration.d.ts +11 -0
- package/dist/effect/registration.js +0 -0
- package/dist/effect/session.d.ts +47 -0
- package/dist/effect/session.js +0 -0
- package/dist/effect/shell.d.ts +14 -0
- package/dist/effect/shell.js +0 -0
- package/dist/effect/skill.d.ts +14 -0
- package/dist/effect/skill.js +1 -0
- package/dist/effect/storage.d.ts +8 -0
- package/dist/effect/storage.js +0 -0
- package/dist/effect/tool.d.ts +40 -0
- package/dist/effect/tool.js +1 -0
- package/dist/effect/websearch.d.ts +20 -0
- package/dist/effect/websearch.js +0 -0
- package/dist/options.js +0 -0
- package/dist/promise/adapter.d.ts +12 -0
- package/dist/promise/adapter.js +257 -0
- package/dist/promise/agent.d.ts +15 -0
- package/dist/promise/agent.js +0 -0
- package/dist/{v2/effect → promise}/aisdk.d.ts +9 -6
- package/dist/promise/aisdk.js +0 -0
- package/dist/promise/catalog.d.ts +33 -0
- package/dist/promise/catalog.js +0 -0
- package/dist/promise/command.d.ts +13 -0
- package/dist/promise/command.js +0 -0
- package/dist/promise/event.d.ts +3 -0
- package/dist/promise/event.js +0 -0
- package/dist/promise/index.d.ts +14 -0
- package/dist/promise/index.js +12 -0
- package/dist/promise/integration.d.ts +79 -0
- package/dist/promise/integration.js +2 -0
- package/dist/promise/mcp.d.ts +15 -0
- package/dist/promise/mcp.js +0 -0
- package/dist/promise/plugin.d.ts +43 -0
- package/dist/{v2/effect → promise}/reference.d.ts +7 -5
- package/dist/promise/reference.js +0 -0
- package/dist/promise/registration.d.ts +10 -0
- package/dist/promise/registration.js +0 -0
- package/dist/promise/session.d.ts +47 -0
- package/dist/promise/session.js +0 -0
- package/dist/promise/shell.d.ts +14 -0
- package/dist/promise/shell.js +0 -0
- package/dist/promise/skill.d.ts +14 -0
- package/dist/promise/skill.js +0 -0
- package/dist/promise/storage.d.ts +8 -0
- package/dist/promise/storage.js +0 -0
- package/dist/promise/tool.d.ts +44 -0
- package/dist/promise/tool.js +2 -0
- package/dist/promise/types.d.ts +3 -0
- package/dist/promise/types.js +0 -0
- package/dist/promise/websearch.d.ts +21 -0
- package/dist/promise/websearch.js +0 -0
- package/dist/storage.d.ts +14 -0
- package/dist/storage.js +0 -0
- package/dist/tui/context.d.ts +421 -0
- package/dist/tui/context.js +0 -0
- package/dist/tui/index.d.ts +2 -0
- package/dist/tui/index.js +2 -0
- package/dist/tui/plugin.d.ts +8 -0
- package/dist/tui/plugin.js +3 -0
- package/dist/tui/solid.d.ts +7 -0
- package/dist/tui/solid.js +16 -0
- package/dist/v1/index.js +2 -0
- package/dist/v1/shell.js +0 -0
- package/dist/{tui.d.ts → v1/tui.d.ts} +70 -18
- package/package.json +40 -31
- package/dist/example-workspace.d.ts +0 -3
- package/dist/example-workspace.js +0 -30
- package/dist/example.d.ts +0 -2
- package/dist/example.js +0 -16
- package/dist/index.js +0 -1
- package/dist/shell.js +0 -1
- package/dist/v2/effect/agent.d.ts +0 -12
- package/dist/v2/effect/agent.js +0 -1
- package/dist/v2/effect/aisdk.js +0 -1
- package/dist/v2/effect/catalog.d.ts +0 -29
- package/dist/v2/effect/catalog.js +0 -1
- package/dist/v2/effect/command.d.ts +0 -11
- package/dist/v2/effect/command.js +0 -1
- package/dist/v2/effect/context.d.ts +0 -21
- package/dist/v2/effect/context.js +0 -1
- package/dist/v2/effect/event.d.ts +0 -8
- package/dist/v2/effect/event.js +0 -1
- package/dist/v2/effect/filesystem.d.ts +0 -23
- package/dist/v2/effect/filesystem.js +0 -1
- package/dist/v2/effect/index.d.ts +0 -3
- package/dist/v2/effect/index.js +0 -1
- package/dist/v2/effect/integration.d.ts +0 -46
- package/dist/v2/effect/integration.js +0 -1
- package/dist/v2/effect/location.d.ts +0 -6
- package/dist/v2/effect/location.js +0 -1
- package/dist/v2/effect/npm.d.ts +0 -7
- package/dist/v2/effect/npm.js +0 -1
- package/dist/v2/effect/path.d.ts +0 -8
- package/dist/v2/effect/path.js +0 -1
- package/dist/v2/effect/plugin.d.ts +0 -11
- package/dist/v2/effect/reference.js +0 -1
- package/dist/v2/effect/registration.d.ts +0 -10
- package/dist/v2/effect/registration.js +0 -1
- package/dist/v2/effect/skill.d.ts +0 -9
- package/dist/v2/effect/skill.js +0 -1
- package/dist/v2/options.js +0 -1
- package/dist/v2/promise/agent.d.ts +0 -6
- package/dist/v2/promise/agent.js +0 -1
- package/dist/v2/promise/aisdk.js +0 -1
- package/dist/v2/promise/catalog.d.ts +0 -6
- package/dist/v2/promise/catalog.js +0 -1
- package/dist/v2/promise/command.d.ts +0 -6
- package/dist/v2/promise/command.js +0 -1
- package/dist/v2/promise/context.d.ts +0 -21
- package/dist/v2/promise/context.js +0 -1
- package/dist/v2/promise/index.d.ts +0 -12
- package/dist/v2/promise/index.js +0 -1
- package/dist/v2/promise/integration.d.ts +0 -12
- package/dist/v2/promise/integration.js +0 -1
- package/dist/v2/promise/plugin.d.ts +0 -10
- package/dist/v2/promise/reference.d.ts +0 -6
- package/dist/v2/promise/reference.js +0 -1
- package/dist/v2/promise/registration.d.ts +0 -9
- package/dist/v2/promise/registration.js +0 -1
- package/dist/v2/promise/skill.d.ts +0 -6
- package/dist/v2/promise/skill.js +0 -1
- /package/dist/{v2/effect → effect}/plugin.js +0 -0
- /package/dist/{v2/options.d.ts → options.d.ts} +0 -0
- /package/dist/{v2/promise → promise}/plugin.js +0 -0
- /package/dist/{index.d.ts → v1/index.d.ts} +0 -0
- /package/dist/{shell.d.ts → v1/shell.d.ts} +0 -0
- /package/dist/{tool.d.ts → v1/tool.d.ts} +0 -0
- /package/dist/{tool.js → v1/tool.js} +0 -0
- /package/dist/{tui.js → v1/tui.js} +0 -0
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { PluginOptions } from "../options.js";
|
|
2
|
-
import type { AgentHooks } from "./agent.js";
|
|
3
|
-
import type { AISDKHooks } from "./aisdk.js";
|
|
4
|
-
import type { CatalogHooks } from "./catalog.js";
|
|
5
|
-
import type { CommandHooks } from "./command.js";
|
|
6
|
-
import type { IntegrationHooks } from "./integration.js";
|
|
7
|
-
import type { PluginDomain } from "./plugin.js";
|
|
8
|
-
import type { ReferenceHooks } from "./reference.js";
|
|
9
|
-
import type { SkillHooks } from "./skill.js";
|
|
10
|
-
import type { Reload } from "./registration.js";
|
|
11
|
-
export interface PluginContext {
|
|
12
|
-
readonly options: PluginOptions;
|
|
13
|
-
readonly agent: AgentHooks & Reload;
|
|
14
|
-
readonly aisdk: AISDKHooks;
|
|
15
|
-
readonly catalog: CatalogHooks & Reload;
|
|
16
|
-
readonly command: CommandHooks & Reload;
|
|
17
|
-
readonly integration: IntegrationHooks & Reload;
|
|
18
|
-
readonly plugin: PluginDomain;
|
|
19
|
-
readonly reference: ReferenceHooks & Reload;
|
|
20
|
-
readonly skill: SkillHooks & Reload;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type { PluginContext } from "./context.js";
|
|
2
|
-
export type { PluginOptions } from "../options.js";
|
|
3
|
-
export { define } from "./plugin.js";
|
|
4
|
-
export type { Plugin, PluginDomain } from "./plugin.js";
|
|
5
|
-
export type { Registration, Reload } from "./registration.js";
|
|
6
|
-
export type { AgentDraft, AgentHooks } from "./agent.js";
|
|
7
|
-
export type { AISDKHooks } from "./aisdk.js";
|
|
8
|
-
export type { CatalogDraft, CatalogHooks, CatalogProviderRecord } from "./catalog.js";
|
|
9
|
-
export type { CommandDraft, CommandHooks } from "./command.js";
|
|
10
|
-
export type { IntegrationDraft, IntegrationHooks, IntegrationMethodRegistration } from "./integration.js";
|
|
11
|
-
export type { ReferenceDraft, ReferenceHooks } from "./reference.js";
|
|
12
|
-
export type { SkillDraft, SkillHooks } from "./skill.js";
|
package/dist/v2/promise/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { define } from "./plugin.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IntegrationDraft, IntegrationMethodRegistration } from "../effect/integration.js";
|
|
2
|
-
import type { CredentialValue } from "@opencode-ai/sdk/v2/types";
|
|
3
|
-
import type { Hooks } from "./registration.js";
|
|
4
|
-
export type { IntegrationDraft, IntegrationMethodRegistration };
|
|
5
|
-
export interface IntegrationHooks extends Hooks<{
|
|
6
|
-
transform: IntegrationDraft;
|
|
7
|
-
}> {
|
|
8
|
-
readonly connection: {
|
|
9
|
-
readonly active: (integrationID: string) => Promise<import("@opencode-ai/sdk/v2/types").ConnectionInfo | undefined>;
|
|
10
|
-
readonly resolve: (connection: import("@opencode-ai/sdk/v2/types").ConnectionInfo) => Promise<CredentialValue | undefined>;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PluginContext } from "./context.js";
|
|
2
|
-
export interface Plugin {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
readonly setup: (context: PluginContext) => Promise<void> | void;
|
|
5
|
-
}
|
|
6
|
-
export declare function define(plugin: Plugin): Plugin;
|
|
7
|
-
export interface PluginDomain {
|
|
8
|
-
readonly add: (plugin: Plugin) => Promise<void>;
|
|
9
|
-
readonly remove: (id: string) => Promise<void>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface Registration {
|
|
2
|
-
readonly dispose: () => Promise<void>;
|
|
3
|
-
}
|
|
4
|
-
export interface Reload {
|
|
5
|
-
readonly reload: () => Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
export type Hooks<Spec> = {
|
|
8
|
-
readonly [Name in keyof Spec]: (callback: (input: Spec[Name]) => Promise<void> | void) => Promise<Registration>;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/v2/promise/skill.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|