@ubiquity-os/plugin-sdk 3.6.0 → 3.6.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/README.md +34 -109
- package/dist/configuration.d.mts +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2633 -13
- package/dist/configuration.mjs +2633 -3
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2187 -137
- package/dist/index.mjs +2178 -128
- package/dist/llm.d.mts +6 -43
- package/dist/llm.d.ts +6 -43
- package/dist/llm.js +12 -20
- package/dist/llm.mjs +12 -20
- package/dist/octokit.d.mts +2 -2
- package/dist/octokit.d.ts +2 -2
- package/dist/octokit.js +164 -2
- package/dist/octokit.mjs +163 -1
- package/dist/signature.d.mts +1 -3
- package/dist/signature.d.ts +1 -3
- package/dist/signature.js +1 -4
- package/dist/signature.mjs +1 -4
- package/package.json +43 -41
package/dist/signature.d.ts
CHANGED
|
@@ -15,10 +15,9 @@ declare class PluginInput<T extends EmitterWebhookEventName = EmitterWebhookEven
|
|
|
15
15
|
eventPayload: EmitterWebhookEvent<T>["payload"];
|
|
16
16
|
settings: unknown;
|
|
17
17
|
authToken: string;
|
|
18
|
-
ubiquityKernelToken?: string;
|
|
19
18
|
ref: string;
|
|
20
19
|
command: CommandCall;
|
|
21
|
-
constructor(privateKey: string, stateId: string, eventName: T, eventPayload: EmitterWebhookEvent<T>["payload"], settings: unknown, authToken: string, ref: string, command: CommandCall
|
|
20
|
+
constructor(privateKey: string, stateId: string, eventName: T, eventPayload: EmitterWebhookEvent<T>["payload"], settings: unknown, authToken: string, ref: string, command: CommandCall);
|
|
22
21
|
getInputs(): Promise<{
|
|
23
22
|
signature: string;
|
|
24
23
|
stateId: string;
|
|
@@ -26,7 +25,6 @@ declare class PluginInput<T extends EmitterWebhookEventName = EmitterWebhookEven
|
|
|
26
25
|
eventPayload: string;
|
|
27
26
|
settings: string;
|
|
28
27
|
authToken: string;
|
|
29
|
-
ubiquityKernelToken: string | undefined;
|
|
30
28
|
ref: string;
|
|
31
29
|
command: string;
|
|
32
30
|
}>;
|
package/dist/signature.js
CHANGED
|
@@ -42,10 +42,9 @@ var PluginInput = class {
|
|
|
42
42
|
eventPayload;
|
|
43
43
|
settings;
|
|
44
44
|
authToken;
|
|
45
|
-
ubiquityKernelToken;
|
|
46
45
|
ref;
|
|
47
46
|
command;
|
|
48
|
-
constructor(privateKey, stateId, eventName, eventPayload, settings, authToken, ref, command
|
|
47
|
+
constructor(privateKey, stateId, eventName, eventPayload, settings, authToken, ref, command) {
|
|
49
48
|
this._privateKey = privateKey;
|
|
50
49
|
this.stateId = stateId;
|
|
51
50
|
this.eventName = eventName;
|
|
@@ -54,7 +53,6 @@ var PluginInput = class {
|
|
|
54
53
|
this.authToken = authToken;
|
|
55
54
|
this.ref = ref;
|
|
56
55
|
this.command = command;
|
|
57
|
-
this.ubiquityKernelToken = ubiquityKernelToken;
|
|
58
56
|
}
|
|
59
57
|
async getInputs() {
|
|
60
58
|
const inputs = {
|
|
@@ -63,7 +61,6 @@ var PluginInput = class {
|
|
|
63
61
|
eventPayload: compressString(JSON.stringify(this.eventPayload)),
|
|
64
62
|
settings: JSON.stringify(this.settings),
|
|
65
63
|
authToken: this.authToken,
|
|
66
|
-
ubiquityKernelToken: this.ubiquityKernelToken,
|
|
67
64
|
ref: this.ref,
|
|
68
65
|
command: JSON.stringify(this.command)
|
|
69
66
|
};
|
package/dist/signature.mjs
CHANGED
|
@@ -14,10 +14,9 @@ var PluginInput = class {
|
|
|
14
14
|
eventPayload;
|
|
15
15
|
settings;
|
|
16
16
|
authToken;
|
|
17
|
-
ubiquityKernelToken;
|
|
18
17
|
ref;
|
|
19
18
|
command;
|
|
20
|
-
constructor(privateKey, stateId, eventName, eventPayload, settings, authToken, ref, command
|
|
19
|
+
constructor(privateKey, stateId, eventName, eventPayload, settings, authToken, ref, command) {
|
|
21
20
|
this._privateKey = privateKey;
|
|
22
21
|
this.stateId = stateId;
|
|
23
22
|
this.eventName = eventName;
|
|
@@ -26,7 +25,6 @@ var PluginInput = class {
|
|
|
26
25
|
this.authToken = authToken;
|
|
27
26
|
this.ref = ref;
|
|
28
27
|
this.command = command;
|
|
29
|
-
this.ubiquityKernelToken = ubiquityKernelToken;
|
|
30
28
|
}
|
|
31
29
|
async getInputs() {
|
|
32
30
|
const inputs = {
|
|
@@ -35,7 +33,6 @@ var PluginInput = class {
|
|
|
35
33
|
eventPayload: compressString(JSON.stringify(this.eventPayload)),
|
|
36
34
|
settings: JSON.stringify(this.settings),
|
|
37
35
|
authToken: this.authToken,
|
|
38
|
-
ubiquityKernelToken: this.ubiquityKernelToken,
|
|
39
36
|
ref: this.ref,
|
|
40
37
|
command: JSON.stringify(this.command)
|
|
41
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubiquity-os/plugin-sdk",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"description": "SDK for plugin support.",
|
|
5
5
|
"author": "Ubiquity DAO",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"exports": {
|
|
43
43
|
".": {
|
|
44
44
|
"types": "./dist/index.d.ts",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
45
|
+
"import": "./dist/index.mjs",
|
|
46
|
+
"require": "./dist/index.js"
|
|
47
47
|
},
|
|
48
48
|
"./manifest": {
|
|
49
49
|
"types": "./dist/manifest.d.ts",
|
|
@@ -90,15 +90,17 @@
|
|
|
90
90
|
"dist"
|
|
91
91
|
],
|
|
92
92
|
"scripts": {
|
|
93
|
-
"
|
|
94
|
-
"
|
|
93
|
+
"build": "tsup",
|
|
94
|
+
"dev": "run-p worker proxy",
|
|
95
|
+
"format": "run-s format:*",
|
|
95
96
|
"format:lint": "eslint --fix .",
|
|
96
97
|
"format:prettier": "prettier --write .",
|
|
97
98
|
"format:cspell": "cspell **/*",
|
|
99
|
+
"jest:test": "jest --coverage",
|
|
98
100
|
"knip": "knip --config .github/knip.ts",
|
|
99
101
|
"knip-ci": "knip --no-exit-code --reporter json --config .github/knip.ts",
|
|
100
102
|
"prepare": "node .husky/install.mjs",
|
|
101
|
-
"
|
|
103
|
+
"prebuild": "rimraf dist"
|
|
102
104
|
},
|
|
103
105
|
"keywords": [
|
|
104
106
|
"typescript",
|
|
@@ -108,48 +110,48 @@
|
|
|
108
110
|
"open-source"
|
|
109
111
|
],
|
|
110
112
|
"dependencies": {
|
|
111
|
-
"@
|
|
112
|
-
"@
|
|
113
|
-
"@octokit/
|
|
114
|
-
"@octokit/plugin-
|
|
115
|
-
"@octokit/plugin-
|
|
116
|
-
"@octokit/plugin-
|
|
117
|
-
"@octokit/plugin-
|
|
118
|
-
"@octokit/
|
|
119
|
-
"@octokit/types": "^
|
|
120
|
-
"@octokit/webhooks": "^
|
|
121
|
-
"@
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"@sinclair/typebox": "0.34.41"
|
|
113
|
+
"@octokit/auth-app": "^7.1.1",
|
|
114
|
+
"@octokit/core": "^6.1.3",
|
|
115
|
+
"@octokit/plugin-paginate-rest": "^11.4.2",
|
|
116
|
+
"@octokit/plugin-request-log": "^5.3.1",
|
|
117
|
+
"@octokit/plugin-rest-endpoint-methods": "^13.2.1",
|
|
118
|
+
"@octokit/plugin-retry": "^7.1.2",
|
|
119
|
+
"@octokit/plugin-throttling": "^9.3.2",
|
|
120
|
+
"@octokit/rest": "^21.0.2",
|
|
121
|
+
"@octokit/types": "^13.6.1",
|
|
122
|
+
"@octokit/webhooks": "^13.4.1",
|
|
123
|
+
"@octokit/webhooks-types": "^7.6.1",
|
|
124
|
+
"@sinclair/typebox": "^0.33.17",
|
|
125
|
+
"libsodium-wrappers": "^0.7.15",
|
|
126
|
+
"openai": "^4.70.2",
|
|
127
|
+
"pino": "^9.7.0",
|
|
128
|
+
"typebox-validators": "^0.3.5",
|
|
129
|
+
"yaml": "^2.7.0"
|
|
129
130
|
},
|
|
130
131
|
"devDependencies": {
|
|
131
|
-
"@
|
|
132
|
-
"@commitlint/
|
|
133
|
-
"@
|
|
134
|
-
"@cspell/dict-
|
|
135
|
-
"@cspell/dict-
|
|
136
|
-
"@
|
|
137
|
-
"@
|
|
138
|
-
"@
|
|
139
|
-
"@
|
|
140
|
-
"@swc/jest": "^0.2.
|
|
141
|
-
"@types/
|
|
142
|
-
"@types/
|
|
132
|
+
"@cloudflare/workers-types": "^4.20241224.0",
|
|
133
|
+
"@commitlint/cli": "^19.7.1",
|
|
134
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
135
|
+
"@cspell/dict-node": "^5.0.8",
|
|
136
|
+
"@cspell/dict-software-terms": "^4.2.1",
|
|
137
|
+
"@cspell/dict-typescript": "^3.1.6",
|
|
138
|
+
"@eslint/js": "^9.17.0",
|
|
139
|
+
"@jest/globals": "^29.7.0",
|
|
140
|
+
"@swc/core": "^1.10.1",
|
|
141
|
+
"@swc/jest": "^0.2.36",
|
|
142
|
+
"@types/jest": "^29.5.14",
|
|
143
|
+
"@types/libsodium-wrappers": "^0.7.14",
|
|
144
|
+
"@types/node": "^22.10.1",
|
|
143
145
|
"@ubiquity-os/eslint-plugin-no-empty-strings": "^1.0.3",
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"eslint": "^9.
|
|
146
|
+
"cspell": "^8.17.0",
|
|
147
|
+
"esbuild": "^0.24.0",
|
|
148
|
+
"eslint": "^9.17.0",
|
|
147
149
|
"eslint-config-prettier": "^9.1.2",
|
|
148
150
|
"eslint-plugin-check-file": "^2.8.0",
|
|
149
|
-
"eslint-plugin-prettier": "^5.
|
|
151
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
150
152
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
151
153
|
"husky": "^9.1.7",
|
|
152
|
-
"jest": "^
|
|
154
|
+
"jest": "^29.7.0",
|
|
153
155
|
"jest-junit": "^16.0.0",
|
|
154
156
|
"jest-md-dashboard": "^0.8.1",
|
|
155
157
|
"knip": "^5.69.1",
|