@mochabug/adaptkit 0.14.5 → 1.0.0-beta.10

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 (70) hide show
  1. package/assets/build-client.js +107 -0
  2. package/assets/build.js +57 -0
  3. package/assets/configurator.App.tsx +123 -0
  4. package/assets/configurator.main.tsx +19 -0
  5. package/assets/configurator.ssg.tsx +31 -0
  6. package/assets/{configurator.ts → configurator_none.ts} +1 -1
  7. package/assets/configurator_react.tsx +38 -0
  8. package/assets/executor.App.tsx +103 -0
  9. package/assets/executor.main.tsx +19 -0
  10. package/assets/executor.ssg.tsx +31 -0
  11. package/assets/{executor_browser.ts → executor_browser_none.ts} +1 -1
  12. package/assets/executor_browser_react.tsx +51 -0
  13. package/assets/gitignore +3 -0
  14. package/assets/global.d.ts +7 -0
  15. package/assets/inject.js +15 -0
  16. package/assets/tsconf.json +9 -3
  17. package/bin/index.js +12 -3243
  18. package/bin/index.js.map +7 -0
  19. package/package.json +11 -23
  20. package/assets/rollup.config.ts +0 -40
  21. package/bin/add.d.ts +0 -3
  22. package/bin/add.d.ts.map +0 -1
  23. package/bin/genproto/buf/validate/validate.d.ts +0 -4657
  24. package/bin/genproto/buf/validate/validate.d.ts.map +0 -1
  25. package/bin/genproto/google/api/client.d.ts +0 -785
  26. package/bin/genproto/google/api/client.d.ts.map +0 -1
  27. package/bin/genproto/google/api/http.d.ts +0 -452
  28. package/bin/genproto/google/api/http.d.ts.map +0 -1
  29. package/bin/genproto/google/api/launch_stage.d.ts +0 -78
  30. package/bin/genproto/google/api/launch_stage.d.ts.map +0 -1
  31. package/bin/genproto/google/protobuf/descriptor.d.ts +0 -2337
  32. package/bin/genproto/google/protobuf/descriptor.d.ts.map +0 -1
  33. package/bin/genproto/google/protobuf/duration.d.ts +0 -113
  34. package/bin/genproto/google/protobuf/duration.d.ts.map +0 -1
  35. package/bin/genproto/google/protobuf/struct.d.ts +0 -185
  36. package/bin/genproto/google/protobuf/struct.d.ts.map +0 -1
  37. package/bin/genproto/google/protobuf/timestamp.d.ts +0 -156
  38. package/bin/genproto/google/protobuf/timestamp.d.ts.map +0 -1
  39. package/bin/genproto/mochabugapis/adapt/graph/exchange.d.ts +0 -50
  40. package/bin/genproto/mochabugapis/adapt/graph/exchange.d.ts.map +0 -1
  41. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema.d.ts +0 -129
  42. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema.d.ts.map +0 -1
  43. package/bin/genproto/mochabugapis/adapt/graph/receiver.d.ts +0 -46
  44. package/bin/genproto/mochabugapis/adapt/graph/receiver.d.ts.map +0 -1
  45. package/bin/genproto/mochabugapis/adapt/graph/signal_binding.d.ts +0 -93
  46. package/bin/genproto/mochabugapis/adapt/graph/signal_binding.d.ts.map +0 -1
  47. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor.d.ts +0 -56
  48. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor.d.ts.map +0 -1
  49. package/bin/genproto/mochabugapis/adapt/graph/transceiver.d.ts +0 -44
  50. package/bin/genproto/mochabugapis/adapt/graph/transceiver.d.ts.map +0 -1
  51. package/bin/genproto/mochabugapis/adapt/graph/transmitter.d.ts +0 -50
  52. package/bin/genproto/mochabugapis/adapt/graph/transmitter.d.ts.map +0 -1
  53. package/bin/genproto/mochabugapis/adapt/graph/vertex_config.d.ts +0 -68
  54. package/bin/genproto/mochabugapis/adapt/graph/vertex_config.d.ts.map +0 -1
  55. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins.client.d.ts +0 -46
  56. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins.client.d.ts.map +0 -1
  57. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins.d.ts +0 -840
  58. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins.d.ts.map +0 -1
  59. package/bin/index.d.ts +0 -2
  60. package/bin/index.d.ts.map +0 -1
  61. package/bin/init.d.ts +0 -2
  62. package/bin/init.d.ts.map +0 -1
  63. package/bin/oauth2.d.ts +0 -2
  64. package/bin/oauth2.d.ts.map +0 -1
  65. package/bin/publish.d.ts +0 -4
  66. package/bin/publish.d.ts.map +0 -1
  67. package/bin/utils.d.ts +0 -6
  68. package/bin/utils.d.ts.map +0 -1
  69. package/bin/vertices.d.ts +0 -3
  70. package/bin/vertices.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adaptkit",
3
- "version": "0.14.5",
3
+ "version": "1.0.0-beta.10",
4
4
  "description": "A cmd to create, emulate and publish Mochabug Adapt plugins",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -21,9 +21,7 @@
21
21
  ],
22
22
  "scripts": {
23
23
  "generate": "rm -rf src/genproto && buf generate --include-imports --path api/mochabugapis/adapt/plugins --path api/mochabugapis/adapt/graph",
24
- "clean": "rm -rf bin",
25
- "build": "npm run generate && npm run test && npm run clean && rollup -c rollup.config.js",
26
- "test": "jest --collectCoverage --passWithNoTests"
24
+ "build": "npm run generate && node build.js"
27
25
  },
28
26
  "keywords": [
29
27
  "plugin",
@@ -38,8 +36,6 @@
38
36
  "author": "Mikael Hedberg",
39
37
  "license": "Apache-2.0",
40
38
  "devDependencies": {
41
- "@jest/globals": "^29.7.0",
42
- "@mochabug/adapt-plugin-toolkit": "^0.16.4",
43
39
  "@rollup/plugin-commonjs": "^28.0.2",
44
40
  "@rollup/plugin-json": "^6.1.0",
45
41
  "@rollup/plugin-node-resolve": "^16.0.0",
@@ -49,37 +45,29 @@
49
45
  "@types/archiver": "^6.0.3",
50
46
  "@types/express": "^5.0.0",
51
47
  "@types/figlet": "^1.7.0",
52
- "@types/jest": "^29.5.14",
53
- "@types/node": "^22.10.6",
48
+ "@types/node": "^22.12.0",
54
49
  "@types/semver": "^7.5.8",
55
50
  "@types/update-notifier": "^6.0.8",
56
- "jest": "^29.7.0",
57
- "rollup": "^4.30.1",
58
- "rollup-plugin-string": "^3.0.0",
59
- "ts-jest": "^29.2.5",
60
- "ts-node": "^10.9.2",
61
- "tslib": "^2.8.1",
51
+ "esbuild": "^0.24.2",
62
52
  "typescript": "^5.7.3"
63
53
  },
64
54
  "dependencies": {
65
- "@grpc/grpc-js": "^1.12.5",
66
- "@inquirer/prompts": "^7.2.3",
67
- "@protobuf-ts/grpc-transport": "^2.9.4",
68
- "@protobuf-ts/runtime": "^2.9.4",
69
- "@protobuf-ts/runtime-rpc": "^2.9.4",
55
+ "@bufbuild/buf": "^1.50.0",
56
+ "@connectrpc/connect": "^2.0.1",
57
+ "@connectrpc/connect-node": "^2.0.1",
58
+ "@inquirer/prompts": "^7.2.4",
70
59
  "archiver": "^7.0.1",
71
60
  "chalk": "^5.4.1",
72
- "commander": "^13.0.0",
61
+ "commander": "^13.1.0",
73
62
  "express": "^4.21.2",
74
63
  "fast-glob": "^3.3.3",
75
64
  "figlet": "^1.8.0",
76
- "is-valid-hostname": "^1.0.2",
77
65
  "mkdirp": "^3.0.1",
78
66
  "node-fetch": "^3.3.2",
79
67
  "open": "^10.1.0",
80
68
  "pkce-challenge": "^4.1.0",
81
- "semver": "^7.6.3",
69
+ "semver": "^7.7.0",
82
70
  "sharp": "^0.33.5",
83
71
  "update-notifier": "^7.3.1"
84
72
  }
85
- }
73
+ }
@@ -1,40 +0,0 @@
1
- import fs from 'fs';
2
- import typescript from '@rollup/plugin-typescript';
3
- import { nodeResolve } from '@rollup/plugin-node-resolve';
4
- import terser from '@rollup/plugin-terser';
5
- import commonjs from '@rollup/plugin-commonjs';
6
-
7
- const config = [
8
- {
9
- input: 'src/executors.ts',
10
- output: {
11
- file: 'dist/executors.js',
12
- format: 'esm'
13
- },
14
- plugins: [typescript(), nodeResolve(
15
- {
16
- browser: true,
17
- preferBuiltins: false
18
- }
19
- ), commonjs(), terser()]
20
- }
21
- ];
22
-
23
- // Check if 'src/configurators.ts' exists
24
- if (fs.existsSync('src/configurators.ts')) {
25
- config.push({
26
- input: 'src/configurators.ts',
27
- output: {
28
- file: 'dist/configurators.js',
29
- format: 'esm'
30
- },
31
- plugins: [typescript(), nodeResolve(
32
- {
33
- browser: true,
34
- preferBuiltins: false
35
- }
36
- ), commonjs(), terser()]
37
- });
38
- }
39
-
40
- export default config;
package/bin/add.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Manifest } from './genproto/mochabugapis/adapt/plugins/v1/plugins';
2
- export declare function add(manifest: Manifest): Promise<void>;
3
- //# sourceMappingURL=add.d.ts.map
package/bin/add.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../src/add.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAG5E,wBAAsB,GAAG,CAAC,QAAQ,EAAE,QAAQ,iBAuE3C"}