@mochabug/adapt-builder 0.1.11 → 0.2.0

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.
@@ -0,0 +1,117 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file mochabugapis/adapt/graph/user_defined_exchange_options.proto.
5
+ */
6
+ export declare const file_mochabugapis_adapt_graph_user_defined_exchange_options: GenFile;
7
+ /**
8
+ * UserDefinedExchangeOptions configures if and how users can create their own
9
+ * exchanges on a vertex at graph construction time.
10
+ *
11
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions
12
+ */
13
+ export type UserDefinedExchangeOptions = Message<"mochabugapis.adapt.graph.UserDefinedExchangeOptions"> & {
14
+ /**
15
+ * Restrictions on transmitter transceivers within user-defined exchanges.
16
+ * Unset = no restrictions beyond Exchange's own validation.
17
+ *
18
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions transmitter_options = 1;
19
+ */
20
+ transmitterOptions?: UserDefinedExchangeOptions_TransceiverOptions;
21
+ /**
22
+ * Restrictions on receiver transceivers within user-defined exchanges.
23
+ * Unset = no restrictions beyond Exchange's own validation.
24
+ *
25
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions receiver_options = 2;
26
+ */
27
+ receiverOptions?: UserDefinedExchangeOptions_TransceiverOptions;
28
+ /**
29
+ * Maximum number of user-defined exchanges allowed. Unset = no limit.
30
+ *
31
+ * @generated from field: optional int32 max_exchanges = 3;
32
+ */
33
+ maxExchanges?: number;
34
+ /**
35
+ * Minimum number of user-defined exchanges required. Unset = no minimum.
36
+ *
37
+ * @generated from field: optional int32 min_exchanges = 4;
38
+ */
39
+ minExchanges?: number;
40
+ };
41
+ /**
42
+ * UserDefinedExchangeOptions configures if and how users can create their own
43
+ * exchanges on a vertex at graph construction time.
44
+ *
45
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions
46
+ */
47
+ export type UserDefinedExchangeOptionsJson = {
48
+ /**
49
+ * Restrictions on transmitter transceivers within user-defined exchanges.
50
+ * Unset = no restrictions beyond Exchange's own validation.
51
+ *
52
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions transmitter_options = 1;
53
+ */
54
+ transmitterOptions?: UserDefinedExchangeOptions_TransceiverOptionsJson;
55
+ /**
56
+ * Restrictions on receiver transceivers within user-defined exchanges.
57
+ * Unset = no restrictions beyond Exchange's own validation.
58
+ *
59
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions receiver_options = 2;
60
+ */
61
+ receiverOptions?: UserDefinedExchangeOptions_TransceiverOptionsJson;
62
+ /**
63
+ * Maximum number of user-defined exchanges allowed. Unset = no limit.
64
+ *
65
+ * @generated from field: optional int32 max_exchanges = 3;
66
+ */
67
+ maxExchanges?: number;
68
+ /**
69
+ * Minimum number of user-defined exchanges required. Unset = no minimum.
70
+ *
71
+ * @generated from field: optional int32 min_exchanges = 4;
72
+ */
73
+ minExchanges?: number;
74
+ };
75
+ /**
76
+ * Describes the message mochabugapis.adapt.graph.UserDefinedExchangeOptions.
77
+ * Use `create(UserDefinedExchangeOptionsSchema)` to create a new message.
78
+ */
79
+ export declare const UserDefinedExchangeOptionsSchema: GenMessage<UserDefinedExchangeOptions, {
80
+ jsonType: UserDefinedExchangeOptionsJson;
81
+ }>;
82
+ /**
83
+ * TransceiverOptions restricts transceivers within user-defined exchanges.
84
+ *
85
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions
86
+ */
87
+ export type UserDefinedExchangeOptions_TransceiverOptions = Message<"mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions"> & {
88
+ /**
89
+ * Whether streaming transceivers are allowed.
90
+ * Unset or true = allowed. False = forbidden.
91
+ *
92
+ * @generated from field: optional bool allow_streaming = 1;
93
+ */
94
+ allowStreaming?: boolean;
95
+ };
96
+ /**
97
+ * TransceiverOptions restricts transceivers within user-defined exchanges.
98
+ *
99
+ * @generated from message mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions
100
+ */
101
+ export type UserDefinedExchangeOptions_TransceiverOptionsJson = {
102
+ /**
103
+ * Whether streaming transceivers are allowed.
104
+ * Unset or true = allowed. False = forbidden.
105
+ *
106
+ * @generated from field: optional bool allow_streaming = 1;
107
+ */
108
+ allowStreaming?: boolean;
109
+ };
110
+ /**
111
+ * Describes the message mochabugapis.adapt.graph.UserDefinedExchangeOptions.TransceiverOptions.
112
+ * Use `create(UserDefinedExchangeOptions_TransceiverOptionsSchema)` to create a new message.
113
+ */
114
+ export declare const UserDefinedExchangeOptions_TransceiverOptionsSchema: GenMessage<UserDefinedExchangeOptions_TransceiverOptions, {
115
+ jsonType: UserDefinedExchangeOptions_TransceiverOptionsJson;
116
+ }>;
117
+ //# sourceMappingURL=user_defined_exchange_options_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user_defined_exchange_options_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,2DAA2D,EAAE,OAC68B,CAAC;AAExhC;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,qDAAqD,CAAC,GAAG;IACxG;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,6CAA6C,CAAC;IAEnE;;;;;OAKG;IACH,eAAe,CAAC,EAAE,6CAA6C,CAAC;IAEhE;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,iDAAiD,CAAC;IAEvE;;;;;OAKG;IACH,eAAe,CAAC,EAAE,iDAAiD,CAAC;IAEpE;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,0BAA0B,EAAE;IAAC,QAAQ,EAAE,8BAA8B,CAAA;CAAC,CACnD,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,6CAA6C,GAAG,OAAO,CAAC,wEAAwE,CAAC,GAAG;IAC9I;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iDAAiD,GAAG;IAC9D;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,UAAU,CAAC,6CAA6C,EAAE;IAAC,QAAQ,EAAE,iDAAiD,CAAA;CAAC,CACzG,CAAC"}
@@ -2,6 +2,7 @@ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Exchange, ExchangeJson } from "./exchange_pb";
3
3
  import type { Receiver, ReceiverJson } from "./receiver_pb";
4
4
  import type { Transmitter, TransmitterJson } from "./transmitter_pb";
5
+ import type { UserDefinedExchangeOptions, UserDefinedExchangeOptionsJson } from "./user_defined_exchange_options_pb";
5
6
  import type { Message } from "@bufbuild/protobuf";
6
7
  /**
7
8
  * Describes the file mochabugapis/adapt/graph/vertex_metadata.proto.
@@ -41,6 +42,13 @@ export type VertexMetadata = Message<"mochabugapis.adapt.graph.VertexMetadata">
41
42
  * @generated from field: repeated mochabugapis.adapt.graph.Exchange exchanges = 4;
42
43
  */
43
44
  exchanges: Exchange[];
45
+ /**
46
+ * Options for user-defined exchanges on this vertex.
47
+ * When set, users can create their own exchanges at graph construction time.
48
+ *
49
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions ude_options = 5;
50
+ */
51
+ udeOptions?: UserDefinedExchangeOptions;
44
52
  /**
45
53
  * A unix cron expression to determine when the task should run.
46
54
  *
@@ -82,6 +90,13 @@ export type VertexMetadataJson = {
82
90
  * @generated from field: repeated mochabugapis.adapt.graph.Exchange exchanges = 4;
83
91
  */
84
92
  exchanges?: ExchangeJson[];
93
+ /**
94
+ * Options for user-defined exchanges on this vertex.
95
+ * When set, users can create their own exchanges at graph construction time.
96
+ *
97
+ * @generated from field: optional mochabugapis.adapt.graph.UserDefinedExchangeOptions ude_options = 5;
98
+ */
99
+ udeOptions?: UserDefinedExchangeOptionsJson;
85
100
  /**
86
101
  * A unix cron expression to determine when the task should run.
87
102
  *
@@ -1 +1 @@
1
- {"version":3,"file":"vertex_metadata_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,OACujC,CAAC;AAEpnC;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;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AE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,6CAA6C,EAAE,OACovC,CAAC;AAEjzC;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IAChF;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;IAEtB;;;;;OAKG;IACH,YAAY,EAAE,WAAW,EAAE,CAAC;IAE5B;;;;;OAKG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAC;IAExC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IAEjC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,8BAA8B,CAAC;IAE5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,cAAc,EAAE;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAC,CAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adapt-builder",
3
- "version": "0.1.11",
3
+ "version": "0.2.0",
4
4
  "description": "This encapsulate the building an bundling logic for mochabug adapt plugins",
5
5
  "keywords": [
6
6
  "plugin",
@@ -35,17 +35,17 @@
35
35
  "dependencies": {
36
36
  "@bufbuild/protobuf": "^2.11.0",
37
37
  "@bufbuild/protovalidate": "^1.1.1",
38
- "@cloudflare/unenv-preset": "2.12.1",
38
+ "@cloudflare/unenv-preset": "2.14.0",
39
39
  "@craftamap/esbuild-plugin-html": "^0.9.0",
40
40
  "ajv": "^8.18.0",
41
41
  "chalk": "^5.6.2",
42
42
  "esbuild": "^0.27.3",
43
- "glob": "^13.0.3",
43
+ "glob": "^13.0.6",
44
44
  "ora": "^9.3.0",
45
45
  "unenv": "npm:unenv-nightly@*"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/node": "^25.2.3",
48
+ "@types/node": "^25.3.0",
49
49
  "fs-extra": "^11.3.3",
50
50
  "typescript": "^5.9.3"
51
51
  }