@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.
@@ -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, ubiquityKernelToken?: string);
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, ubiquityKernelToken) {
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
  };
@@ -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, ubiquityKernelToken) {
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.0",
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
- "require": "./dist/index.js",
46
- "import": "./dist/index.mjs"
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
- "sdk:build": "tsup",
94
- "format": "run-s format:lint format:prettier format:cspell",
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
- "jest:test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --setupFiles dotenv/config --coverage"
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
- "@actions/core": "^1.11.1",
112
- "@actions/github": "^6.0.1",
113
- "@octokit/core": "^7.0.6",
114
- "@octokit/plugin-paginate-graphql": "^6.0.0",
115
- "@octokit/plugin-paginate-rest": "^14.0.0",
116
- "@octokit/plugin-rest-endpoint-methods": "^17.0.0",
117
- "@octokit/plugin-retry": "^8.0.3",
118
- "@octokit/plugin-throttling": "^11.0.3",
119
- "@octokit/types": "^16.0.0",
120
- "@octokit/webhooks": "^14.1.3",
121
- "@ubiquity-os/ubiquity-os-logger": "^1.4.0",
122
- "dotenv": "^17.2.3",
123
- "hono": "^4.10.6",
124
- "js-yaml": "^4.1.1",
125
- "openai": "^4.70.2"
126
- },
127
- "peerDependencies": {
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
- "@commitlint/cli": "^18.6.1",
132
- "@commitlint/config-conventional": "^18.6.3",
133
- "@cspell/dict-node": "^4.0.3",
134
- "@cspell/dict-software-terms": "^3.4.10",
135
- "@cspell/dict-typescript": "^3.2.3",
136
- "@eslint/js": "^9.39.1",
137
- "@jest/globals": "^30.2.0",
138
- "@mswjs/data": "0.15.0",
139
- "@mswjs/http-middleware": "^0.10.3",
140
- "@swc/jest": "^0.2.39",
141
- "@types/js-yaml": "^4.0.9",
142
- "@types/node": "^20.19.25",
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
- "cross-env": "^7.0.3",
145
- "cspell": "^8.19.4",
146
- "eslint": "^9.39.1",
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.5.4",
151
+ "eslint-plugin-prettier": "^5.2.1",
150
152
  "eslint-plugin-sonarjs": "^3.0.5",
151
153
  "husky": "^9.1.7",
152
- "jest": "^30.2.0",
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",