@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.
Files changed (151) hide show
  1. package/dist/app.d.ts +5 -0
  2. package/dist/app.js +0 -0
  3. package/dist/effect/agent.d.ts +15 -0
  4. package/dist/effect/agent.js +0 -0
  5. package/dist/{v2/promise → effect}/aisdk.d.ts +9 -6
  6. package/dist/effect/aisdk.js +0 -0
  7. package/dist/effect/catalog.d.ts +33 -0
  8. package/dist/effect/catalog.js +2 -0
  9. package/dist/effect/command.d.ts +14 -0
  10. package/dist/effect/command.js +0 -0
  11. package/dist/effect/event.d.ts +3 -0
  12. package/dist/effect/event.js +0 -0
  13. package/dist/effect/index.d.ts +13 -0
  14. package/dist/effect/index.js +12 -0
  15. package/dist/effect/integration.d.ts +80 -0
  16. package/dist/effect/integration.js +2 -0
  17. package/dist/effect/mcp.d.ts +15 -0
  18. package/dist/effect/mcp.js +0 -0
  19. package/dist/effect/plugin.d.ts +43 -0
  20. package/dist/effect/reference.d.ts +13 -0
  21. package/dist/effect/reference.js +0 -0
  22. package/dist/effect/registration.d.ts +11 -0
  23. package/dist/effect/registration.js +0 -0
  24. package/dist/effect/session.d.ts +47 -0
  25. package/dist/effect/session.js +0 -0
  26. package/dist/effect/shell.d.ts +14 -0
  27. package/dist/effect/shell.js +0 -0
  28. package/dist/effect/skill.d.ts +14 -0
  29. package/dist/effect/skill.js +1 -0
  30. package/dist/effect/storage.d.ts +8 -0
  31. package/dist/effect/storage.js +0 -0
  32. package/dist/effect/tool.d.ts +40 -0
  33. package/dist/effect/tool.js +1 -0
  34. package/dist/effect/websearch.d.ts +20 -0
  35. package/dist/effect/websearch.js +0 -0
  36. package/dist/options.js +0 -0
  37. package/dist/promise/adapter.d.ts +12 -0
  38. package/dist/promise/adapter.js +257 -0
  39. package/dist/promise/agent.d.ts +15 -0
  40. package/dist/promise/agent.js +0 -0
  41. package/dist/{v2/effect → promise}/aisdk.d.ts +9 -6
  42. package/dist/promise/aisdk.js +0 -0
  43. package/dist/promise/catalog.d.ts +33 -0
  44. package/dist/promise/catalog.js +0 -0
  45. package/dist/promise/command.d.ts +13 -0
  46. package/dist/promise/command.js +0 -0
  47. package/dist/promise/event.d.ts +3 -0
  48. package/dist/promise/event.js +0 -0
  49. package/dist/promise/index.d.ts +14 -0
  50. package/dist/promise/index.js +12 -0
  51. package/dist/promise/integration.d.ts +79 -0
  52. package/dist/promise/integration.js +2 -0
  53. package/dist/promise/mcp.d.ts +15 -0
  54. package/dist/promise/mcp.js +0 -0
  55. package/dist/promise/plugin.d.ts +43 -0
  56. package/dist/{v2/effect → promise}/reference.d.ts +7 -5
  57. package/dist/promise/reference.js +0 -0
  58. package/dist/promise/registration.d.ts +10 -0
  59. package/dist/promise/registration.js +0 -0
  60. package/dist/promise/session.d.ts +47 -0
  61. package/dist/promise/session.js +0 -0
  62. package/dist/promise/shell.d.ts +14 -0
  63. package/dist/promise/shell.js +0 -0
  64. package/dist/promise/skill.d.ts +14 -0
  65. package/dist/promise/skill.js +0 -0
  66. package/dist/promise/storage.d.ts +8 -0
  67. package/dist/promise/storage.js +0 -0
  68. package/dist/promise/tool.d.ts +44 -0
  69. package/dist/promise/tool.js +2 -0
  70. package/dist/promise/types.d.ts +3 -0
  71. package/dist/promise/types.js +0 -0
  72. package/dist/promise/websearch.d.ts +21 -0
  73. package/dist/promise/websearch.js +0 -0
  74. package/dist/storage.d.ts +14 -0
  75. package/dist/storage.js +0 -0
  76. package/dist/tui/context.d.ts +421 -0
  77. package/dist/tui/context.js +0 -0
  78. package/dist/tui/index.d.ts +2 -0
  79. package/dist/tui/index.js +2 -0
  80. package/dist/tui/plugin.d.ts +8 -0
  81. package/dist/tui/plugin.js +3 -0
  82. package/dist/tui/solid.d.ts +7 -0
  83. package/dist/tui/solid.js +16 -0
  84. package/dist/v1/index.js +2 -0
  85. package/dist/v1/shell.js +0 -0
  86. package/dist/{tui.d.ts → v1/tui.d.ts} +70 -18
  87. package/package.json +40 -31
  88. package/dist/example-workspace.d.ts +0 -3
  89. package/dist/example-workspace.js +0 -30
  90. package/dist/example.d.ts +0 -2
  91. package/dist/example.js +0 -16
  92. package/dist/index.js +0 -1
  93. package/dist/shell.js +0 -1
  94. package/dist/v2/effect/agent.d.ts +0 -12
  95. package/dist/v2/effect/agent.js +0 -1
  96. package/dist/v2/effect/aisdk.js +0 -1
  97. package/dist/v2/effect/catalog.d.ts +0 -29
  98. package/dist/v2/effect/catalog.js +0 -1
  99. package/dist/v2/effect/command.d.ts +0 -11
  100. package/dist/v2/effect/command.js +0 -1
  101. package/dist/v2/effect/context.d.ts +0 -21
  102. package/dist/v2/effect/context.js +0 -1
  103. package/dist/v2/effect/event.d.ts +0 -8
  104. package/dist/v2/effect/event.js +0 -1
  105. package/dist/v2/effect/filesystem.d.ts +0 -23
  106. package/dist/v2/effect/filesystem.js +0 -1
  107. package/dist/v2/effect/index.d.ts +0 -3
  108. package/dist/v2/effect/index.js +0 -1
  109. package/dist/v2/effect/integration.d.ts +0 -46
  110. package/dist/v2/effect/integration.js +0 -1
  111. package/dist/v2/effect/location.d.ts +0 -6
  112. package/dist/v2/effect/location.js +0 -1
  113. package/dist/v2/effect/npm.d.ts +0 -7
  114. package/dist/v2/effect/npm.js +0 -1
  115. package/dist/v2/effect/path.d.ts +0 -8
  116. package/dist/v2/effect/path.js +0 -1
  117. package/dist/v2/effect/plugin.d.ts +0 -11
  118. package/dist/v2/effect/reference.js +0 -1
  119. package/dist/v2/effect/registration.d.ts +0 -10
  120. package/dist/v2/effect/registration.js +0 -1
  121. package/dist/v2/effect/skill.d.ts +0 -9
  122. package/dist/v2/effect/skill.js +0 -1
  123. package/dist/v2/options.js +0 -1
  124. package/dist/v2/promise/agent.d.ts +0 -6
  125. package/dist/v2/promise/agent.js +0 -1
  126. package/dist/v2/promise/aisdk.js +0 -1
  127. package/dist/v2/promise/catalog.d.ts +0 -6
  128. package/dist/v2/promise/catalog.js +0 -1
  129. package/dist/v2/promise/command.d.ts +0 -6
  130. package/dist/v2/promise/command.js +0 -1
  131. package/dist/v2/promise/context.d.ts +0 -21
  132. package/dist/v2/promise/context.js +0 -1
  133. package/dist/v2/promise/index.d.ts +0 -12
  134. package/dist/v2/promise/index.js +0 -1
  135. package/dist/v2/promise/integration.d.ts +0 -12
  136. package/dist/v2/promise/integration.js +0 -1
  137. package/dist/v2/promise/plugin.d.ts +0 -10
  138. package/dist/v2/promise/reference.d.ts +0 -6
  139. package/dist/v2/promise/reference.js +0 -1
  140. package/dist/v2/promise/registration.d.ts +0 -9
  141. package/dist/v2/promise/registration.js +0 -1
  142. package/dist/v2/promise/skill.d.ts +0 -6
  143. package/dist/v2/promise/skill.js +0 -1
  144. /package/dist/{v2/effect → effect}/plugin.js +0 -0
  145. /package/dist/{v2/options.d.ts → options.d.ts} +0 -0
  146. /package/dist/{v2/promise → promise}/plugin.js +0 -0
  147. /package/dist/{index.d.ts → v1/index.d.ts} +0 -0
  148. /package/dist/{shell.d.ts → v1/shell.d.ts} +0 -0
  149. /package/dist/{tool.d.ts → v1/tool.d.ts} +0 -0
  150. /package/dist/{tool.js → v1/tool.js} +0 -0
  151. /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";
@@ -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,6 +0,0 @@
1
- import type { ReferenceDraft } from "../effect/reference.js";
2
- import type { Hooks } from "./registration.js";
3
- export type { ReferenceDraft };
4
- export type ReferenceHooks = Hooks<{
5
- transform: ReferenceDraft;
6
- }>;
@@ -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 {};
@@ -1,6 +0,0 @@
1
- import type { SkillDraft } from "../effect/skill.js";
2
- import type { Hooks } from "./registration.js";
3
- export type { SkillDraft };
4
- export type SkillHooks = Hooks<{
5
- transform: SkillDraft;
6
- }>;
@@ -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