@opencode/plugin 0.0.0-dev-20688 → 0.0.0-dev-20691
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.
|
@@ -26,11 +26,17 @@ export interface IntegrationKeyMethod {
|
|
|
26
26
|
readonly label?: string;
|
|
27
27
|
readonly form?: Form.Fields;
|
|
28
28
|
}
|
|
29
|
+
export interface IntegrationExternalMethod {
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly type: "external";
|
|
32
|
+
readonly label: string;
|
|
33
|
+
readonly form?: Form.Fields;
|
|
34
|
+
}
|
|
29
35
|
export interface IntegrationEnvMethod {
|
|
30
36
|
readonly type: "env";
|
|
31
37
|
readonly names: ReadonlyArray<string>;
|
|
32
38
|
}
|
|
33
|
-
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationEnvMethod;
|
|
39
|
+
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationExternalMethod | IntegrationEnvMethod;
|
|
34
40
|
export type IntegrationOAuthAuthorization = {
|
|
35
41
|
readonly url: string;
|
|
36
42
|
readonly instructions: string;
|
|
@@ -55,6 +61,9 @@ export type IntegrationMethodRegistration = IntegrationOAuthMethodRegistration |
|
|
|
55
61
|
} | {
|
|
56
62
|
readonly integrationID: string;
|
|
57
63
|
readonly method: IntegrationKeyMethod;
|
|
64
|
+
} | {
|
|
65
|
+
readonly integrationID: string;
|
|
66
|
+
readonly method: IntegrationExternalMethod;
|
|
58
67
|
} | {
|
|
59
68
|
readonly integrationID: string;
|
|
60
69
|
readonly method: IntegrationEnvMethod;
|
package/dist/promise/adapter.js
CHANGED
|
@@ -248,6 +248,7 @@ export function fromPromise(plugin) {
|
|
|
248
248
|
get: adaptApiMethod(IntegrationEndpoints["integration.get"], host.integration.get),
|
|
249
249
|
connect: {
|
|
250
250
|
key: adaptApiMethod(IntegrationEndpoints["integration.connect.key"], host.integration.connect.key),
|
|
251
|
+
external: adaptApiMethod(IntegrationEndpoints["integration.connect.external"], host.integration.connect.external),
|
|
251
252
|
},
|
|
252
253
|
oauth: {
|
|
253
254
|
connect: adaptApiMethod(IntegrationEndpoints["integration.oauth.connect"], host.integration.oauth.connect),
|
|
@@ -25,11 +25,17 @@ export interface IntegrationKeyMethod {
|
|
|
25
25
|
readonly label?: string;
|
|
26
26
|
readonly form?: Form.Fields;
|
|
27
27
|
}
|
|
28
|
+
export interface IntegrationExternalMethod {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly type: "external";
|
|
31
|
+
readonly label: string;
|
|
32
|
+
readonly form?: Form.Fields;
|
|
33
|
+
}
|
|
28
34
|
export interface IntegrationEnvMethod {
|
|
29
35
|
readonly type: "env";
|
|
30
36
|
readonly names: ReadonlyArray<string>;
|
|
31
37
|
}
|
|
32
|
-
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationEnvMethod;
|
|
38
|
+
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationExternalMethod | IntegrationEnvMethod;
|
|
33
39
|
export type IntegrationOAuthAuthorization = {
|
|
34
40
|
readonly url: string;
|
|
35
41
|
readonly instructions: string;
|
|
@@ -54,6 +60,9 @@ export type IntegrationMethodRegistration = IntegrationOAuthMethodRegistration |
|
|
|
54
60
|
} | {
|
|
55
61
|
readonly integrationID: string;
|
|
56
62
|
readonly method: IntegrationKeyMethod;
|
|
63
|
+
} | {
|
|
64
|
+
readonly integrationID: string;
|
|
65
|
+
readonly method: IntegrationExternalMethod;
|
|
57
66
|
} | {
|
|
58
67
|
readonly integrationID: string;
|
|
59
68
|
readonly method: IntegrationEnvMethod;
|
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-20691",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ai-sdk/provider": "3.0.8",
|
|
46
|
-
"@opencode/ai": "0.0.0-dev-
|
|
47
|
-
"@opencode/client": "0.0.0-dev-
|
|
48
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
49
|
-
"@opencode/schema": "0.0.0-dev-
|
|
50
|
-
"@opencode/util": "0.0.0-dev-
|
|
46
|
+
"@opencode/ai": "0.0.0-dev-20691",
|
|
47
|
+
"@opencode/client": "0.0.0-dev-20691",
|
|
48
|
+
"@opencode/protocol": "0.0.0-dev-20691",
|
|
49
|
+
"@opencode/schema": "0.0.0-dev-20691",
|
|
50
|
+
"@opencode/util": "0.0.0-dev-20691",
|
|
51
51
|
"effect": "4.0.0-rc.112"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@opencode/theme": "0.0.0-dev-
|
|
54
|
+
"@opencode/theme": "0.0.0-dev-20691",
|
|
55
55
|
"@opentui/core": ">=0.5.14",
|
|
56
56
|
"@opentui/solid": ">=0.5.14",
|
|
57
57
|
"solid-js": ">=1.9.0"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@opencode/theme": "0.0.0-dev-
|
|
74
|
+
"@opencode/theme": "0.0.0-dev-20691",
|
|
75
75
|
"@opentui/core": "0.5.14",
|
|
76
76
|
"@opentui/solid": "0.5.14",
|
|
77
77
|
"@tsconfig/bun": "1.0.9",
|