@mochabug/adaptkit 1.0.0-rc.56 → 1.0.0-rc.57
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/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +15 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/state_contract_pb.d.ts +107 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/state_contract_pb.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +31 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
- package/bin/index.js +22 -5
- package/bin/index.js.map +3 -3
- package/bin/init.d.ts.map +1 -1
- package/bin/vertices.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { ServiceDefinition, ServiceDefinitionJson } from "./service_definition_pb";
|
|
3
|
+
import type { StateContract, StateContractJson } from "./state_contract_pb";
|
|
3
4
|
import type { Vertex, VertexJson } from "./vertex_pb";
|
|
4
5
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
6
|
/**
|
|
@@ -191,6 +192,13 @@ export type Manifest = Message<"mochabugapis.adapt.plugins.v1.Manifest"> & {
|
|
|
191
192
|
* @generated from field: repeated string system_services = 13;
|
|
192
193
|
*/
|
|
193
194
|
systemServices: string[];
|
|
195
|
+
/**
|
|
196
|
+
* 'config_store_plugin' is the contract for the plugin-wide config store.
|
|
197
|
+
* If unset, the platform uses generation "default".
|
|
198
|
+
*
|
|
199
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.StateContract config_store_plugin = 14;
|
|
200
|
+
*/
|
|
201
|
+
configStorePlugin?: StateContract | undefined;
|
|
194
202
|
};
|
|
195
203
|
/**
|
|
196
204
|
* Manifest describes a plugin and its properties.
|
|
@@ -377,6 +385,13 @@ export type ManifestJson = {
|
|
|
377
385
|
* @generated from field: repeated string system_services = 13;
|
|
378
386
|
*/
|
|
379
387
|
systemServices?: string[];
|
|
388
|
+
/**
|
|
389
|
+
* 'config_store_plugin' is the contract for the plugin-wide config store.
|
|
390
|
+
* If unset, the platform uses generation "default".
|
|
391
|
+
*
|
|
392
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.StateContract config_store_plugin = 14;
|
|
393
|
+
*/
|
|
394
|
+
configStorePlugin?: StateContractJson;
|
|
380
395
|
};
|
|
381
396
|
/**
|
|
382
397
|
* Describes the message mochabugapis.adapt.plugins.v1.Manifest.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,
|
|
1
|
+
{"version":3,"file":"manifest_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,O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;;;;;;;;;;;GAiEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IAExB;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,QAAQ,EAAE;IAAC,QAAQ,EAAE,YAAY,CAAA;CAAC,CACb,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file mochabugapis/adapt/plugins/v1/state_contract.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_mochabugapis_adapt_plugins_v1_state_contract: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* StateContract describes the compatibility class for opaque plugin-owned
|
|
9
|
+
* state. If a manifest omits a state contract, the platform treats that scope
|
|
10
|
+
* as generation "default". If a StateContract is present, both generation and
|
|
11
|
+
* on_generation_change must be explicit. Generations are author-defined
|
|
12
|
+
* compatibility labels and are not derived from plugin semver.
|
|
13
|
+
*
|
|
14
|
+
* @generated from message mochabugapis.adapt.plugins.v1.StateContract
|
|
15
|
+
*/
|
|
16
|
+
export type StateContract = Message<"mochabugapis.adapt.plugins.v1.StateContract"> & {
|
|
17
|
+
/**
|
|
18
|
+
* 'generation' identifies the state format compatibility class.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: string generation = 1;
|
|
21
|
+
*/
|
|
22
|
+
generation: string;
|
|
23
|
+
/**
|
|
24
|
+
* 'on_generation_change' is the policy the platform applies when updating
|
|
25
|
+
* from a different generation into this target generation.
|
|
26
|
+
*
|
|
27
|
+
* @generated from oneof mochabugapis.adapt.plugins.v1.StateContract.on_generation_change
|
|
28
|
+
*/
|
|
29
|
+
onGenerationChange: {
|
|
30
|
+
/**
|
|
31
|
+
* Wipe the affected state. This is the only supported policy today.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.WipeState wipe = 2;
|
|
34
|
+
*/
|
|
35
|
+
value: WipeState;
|
|
36
|
+
case: "wipe";
|
|
37
|
+
} | {
|
|
38
|
+
case: undefined;
|
|
39
|
+
value?: undefined;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* StateContract describes the compatibility class for opaque plugin-owned
|
|
44
|
+
* state. If a manifest omits a state contract, the platform treats that scope
|
|
45
|
+
* as generation "default". If a StateContract is present, both generation and
|
|
46
|
+
* on_generation_change must be explicit. Generations are author-defined
|
|
47
|
+
* compatibility labels and are not derived from plugin semver.
|
|
48
|
+
*
|
|
49
|
+
* @generated from message mochabugapis.adapt.plugins.v1.StateContract
|
|
50
|
+
*/
|
|
51
|
+
export type StateContractJson = {
|
|
52
|
+
/**
|
|
53
|
+
* 'generation' identifies the state format compatibility class.
|
|
54
|
+
*
|
|
55
|
+
* @generated from field: string generation = 1;
|
|
56
|
+
*/
|
|
57
|
+
generation?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Wipe the affected state. This is the only supported policy today.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.WipeState wipe = 2;
|
|
62
|
+
*/
|
|
63
|
+
wipe?: WipeStateJson;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Describes the message mochabugapis.adapt.plugins.v1.StateContract.
|
|
67
|
+
* Use `create(StateContractSchema)` to create a new message.
|
|
68
|
+
*/
|
|
69
|
+
export declare const StateContractSchema: GenMessage<StateContract, {
|
|
70
|
+
jsonType: StateContractJson;
|
|
71
|
+
}>;
|
|
72
|
+
/**
|
|
73
|
+
* WipeState declares that state should be deleted when entering a generation
|
|
74
|
+
* from any different generation.
|
|
75
|
+
*
|
|
76
|
+
* @generated from message mochabugapis.adapt.plugins.v1.WipeState
|
|
77
|
+
*/
|
|
78
|
+
export type WipeState = Message<"mochabugapis.adapt.plugins.v1.WipeState"> & {
|
|
79
|
+
/**
|
|
80
|
+
* Optional short reason attached to the wipe decision.
|
|
81
|
+
*
|
|
82
|
+
* @generated from field: optional string reason = 1;
|
|
83
|
+
*/
|
|
84
|
+
reason?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* WipeState declares that state should be deleted when entering a generation
|
|
88
|
+
* from any different generation.
|
|
89
|
+
*
|
|
90
|
+
* @generated from message mochabugapis.adapt.plugins.v1.WipeState
|
|
91
|
+
*/
|
|
92
|
+
export type WipeStateJson = {
|
|
93
|
+
/**
|
|
94
|
+
* Optional short reason attached to the wipe decision.
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: optional string reason = 1;
|
|
97
|
+
*/
|
|
98
|
+
reason?: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message mochabugapis.adapt.plugins.v1.WipeState.
|
|
102
|
+
* Use `create(WipeStateSchema)` to create a new message.
|
|
103
|
+
*/
|
|
104
|
+
export declare const WipeStateSchema: GenMessage<WipeState, {
|
|
105
|
+
jsonType: WipeStateJson;
|
|
106
|
+
}>;
|
|
107
|
+
//# sourceMappingURL=state_contract_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state_contract_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/state_contract_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,iDAAiD,EAAE,OAC+Y,CAAC;AAEhd;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,6CAA6C,CAAC,GAAG;IACnF;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,kBAAkB,EAAE;QAClB;;;;WAIG;QACH,KAAK,EAAE,SAAS,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;CAC5C,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,EAAE;IAAC,QAAQ,EAAE,iBAAiB,CAAA;CAAC,CACtB,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IAC3E;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,SAAS,EAAE;IAAC,QAAQ,EAAE,aAAa,CAAA;CAAC,CACV,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { StateContract, StateContractJson } from "./state_contract_pb";
|
|
2
3
|
import type { Message } from "@bufbuild/protobuf";
|
|
3
4
|
/**
|
|
4
5
|
* Describes the file mochabugapis/adapt/plugins/v1/vertex.proto.
|
|
@@ -99,6 +100,21 @@ export type Vertex = Message<"mochabugapis.adapt.plugins.v1.Vertex"> & {
|
|
|
99
100
|
* @generated from field: optional bool deprecated = 9;
|
|
100
101
|
*/
|
|
101
102
|
deprecated?: boolean | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* 'vertex_config' is the contract for configurator-owned opaque
|
|
105
|
+
* configuration bytes and metadata. Only configurator vertices may set this.
|
|
106
|
+
* If unset, the platform uses generation "default".
|
|
107
|
+
*
|
|
108
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.StateContract vertex_config = 10;
|
|
109
|
+
*/
|
|
110
|
+
vertexConfig?: StateContract | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* 'config_store_vertex' is the contract for the vertex-scoped config store.
|
|
113
|
+
* If unset, the platform uses generation "default".
|
|
114
|
+
*
|
|
115
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.StateContract config_store_vertex = 11;
|
|
116
|
+
*/
|
|
117
|
+
configStoreVertex?: StateContract | undefined;
|
|
102
118
|
};
|
|
103
119
|
/**
|
|
104
120
|
* Vertex represents a graph vertex that defines a plugin.
|
|
@@ -195,6 +211,21 @@ export type VertexJson = {
|
|
|
195
211
|
* @generated from field: optional bool deprecated = 9;
|
|
196
212
|
*/
|
|
197
213
|
deprecated?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* 'vertex_config' is the contract for configurator-owned opaque
|
|
216
|
+
* configuration bytes and metadata. Only configurator vertices may set this.
|
|
217
|
+
* If unset, the platform uses generation "default".
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.StateContract vertex_config = 10;
|
|
220
|
+
*/
|
|
221
|
+
vertexConfig?: StateContractJson;
|
|
222
|
+
/**
|
|
223
|
+
* 'config_store_vertex' is the contract for the vertex-scoped config store.
|
|
224
|
+
* If unset, the platform uses generation "default".
|
|
225
|
+
*
|
|
226
|
+
* @generated from field: mochabugapis.adapt.plugins.v1.StateContract config_store_vertex = 11;
|
|
227
|
+
*/
|
|
228
|
+
configStoreVertex?: StateContractJson;
|
|
198
229
|
};
|
|
199
230
|
/**
|
|
200
231
|
* Describes the message mochabugapis.adapt.plugins.v1.Vertex.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertex_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,
|
|
1
|
+
{"version":3,"file":"vertex_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAA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H,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAEhC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IAEjC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,MAAM,EAAE;IAAC,QAAQ,EAAE,UAAU,CAAA;CAAC,CACT,CAAC;AAE5D;;;;;;;;;GASG;AACH,oBAAY,UAAU;IACpB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;;OAKG;IACH,IAAI,IAAI;IAER;;;;;OAKG;IACH,QAAQ,IAAI;IAEZ;;;;;OAKG;IACH,YAAY,IAAI;IAEhB;;;;;OAKG;IACH,OAAO,IAAI;CACZ;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,yBAAyB,GAAG,oBAAoB,CAAC;AAErJ;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,UAAU,EAAE,cAAc,CACT,CAAC"}
|
package/bin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// <define:__PACKAGE_JSON__>
|
|
4
|
-
var define_PACKAGE_JSON_default = { name: "@mochabug/adaptkit", version: "1.0.0-rc.
|
|
4
|
+
var define_PACKAGE_JSON_default = { name: "@mochabug/adaptkit", version: "1.0.0-rc.57" };
|
|
5
5
|
|
|
6
6
|
// node_modules/@bufbuild/protobuf/dist/esm/is-message.js
|
|
7
7
|
function isMessage(arg, schema) {
|
|
@@ -4503,12 +4503,15 @@ var file_mochabugapis_adapt_plugins_v1_variable_service = /* @__PURE__ */ fileDe
|
|
|
4503
4503
|
// src/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.ts
|
|
4504
4504
|
var file_mochabugapis_adapt_plugins_v1_service_definition = /* @__PURE__ */ fileDesc("CjZtb2NoYWJ1Z2FwaXMvYWRhcHQvcGx1Z2lucy92MS9zZXJ2aWNlX2RlZmluaXRpb24ucHJvdG8SHW1vY2hhYnVnYXBpcy5hZGFwdC5wbHVnaW5zLnYxIqMEChFTZXJ2aWNlRGVmaW5pdGlvbhIzCgRuYW1lGAEgASgJQiW6SCJyIBABGGQyGl5bXyRhLXpBLVpdW18kYS16QS1aMC05XSokEhgKBWxhYmVsGAIgASgJQgm6SAZyBBABGGQSJAoLZGVzY3JpcHRpb24YAyABKAlCCrpIB3IFEAEY+gFIAYgBARIVCghvcHRpb25hbBgEIAEoCEgCiAEBEkUKCHZhcmlhYmxlGAUgASgLMjEubW9jaGFidWdhcGlzLmFkYXB0LnBsdWdpbnMudjEuVmFyaWFibGVEZWZpbml0aW9uSAASQQoGb2F1dGgyGAYgASgLMi8ubW9jaGFidWdhcGlzLmFkYXB0LnBsdWdpbnMudjEuT2F1dGgyRGVmaW5pdGlvbkgAEkgKCmh0dHBfcHJveHkYByABKAsyMi5tb2NoYWJ1Z2FwaXMuYWRhcHQucGx1Z2lucy52MS5IdHRwUHJveHlEZWZpbml0aW9uSAASQQoFZ3JvdXAYCCABKAsyMC5tb2NoYWJ1Z2FwaXMuYWRhcHQucGx1Z2lucy52MS5Hcm91cGVkRGVmaW5pdGlvbkgAEj8KBW9uZW9mGAkgASgLMi4ubW9jaGFidWdhcGlzLmFkYXB0LnBsdWdpbnMudjEuT25lT2ZEZWZpbml0aW9uSABCDQoEdHlwZRIFukgCCAFCDgoMX2Rlc2NyaXB0aW9uQgsKCV9vcHRpb25hbGIGcHJvdG8z", [file_buf_validate_validate, file_mochabugapis_adapt_plugins_v1_compound_services, file_mochabugapis_adapt_plugins_v1_http_proxy_service, file_mochabugapis_adapt_plugins_v1_oauth2_service, file_mochabugapis_adapt_plugins_v1_variable_service]);
|
|
4505
4505
|
|
|
4506
|
+
// src/genproto/mochabugapis/adapt/plugins/v1/state_contract_pb.ts
|
|
4507
|
+
var file_mochabugapis_adapt_plugins_v1_state_contract = /* @__PURE__ */ fileDesc("CjJtb2NoYWJ1Z2FwaXMvYWRhcHQvcGx1Z2lucy92MS9zdGF0ZV9jb250cmFjdC5wcm90bxIdbW9jaGFidWdhcGlzLmFkYXB0LnBsdWdpbnMudjEiowEKDVN0YXRlQ29udHJhY3QSOQoKZ2VuZXJhdGlvbhgBIAEoCUIlukgiciAQARhkMhpeW18kYS16QS1aXVtfJGEtekEtWjAtOV0qJBI4CgR3aXBlGAIgASgLMigubW9jaGFidWdhcGlzLmFkYXB0LnBsdWdpbnMudjEuV2lwZVN0YXRlSABCHQoUb25fZ2VuZXJhdGlvbl9jaGFuZ2USBbpIAggBIjcKCVdpcGVTdGF0ZRIfCgZyZWFzb24YASABKAlCCrpIB3IFEAEY+gFIAIgBAUIJCgdfcmVhc29uYgZwcm90bzM", [file_buf_validate_validate]);
|
|
4508
|
+
|
|
4506
4509
|
// src/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.ts
|
|
4507
|
-
var file_mochabugapis_adapt_plugins_v1_vertex = /* @__PURE__ */ fileDesc("
|
|
4510
|
+
var file_mochabugapis_adapt_plugins_v1_vertex = /* @__PURE__ */ fileDesc("Ciptb2NoYWJ1Z2FwaXMvYWRhcHQvcGx1Z2lucy92MS92ZXJ0ZXgucHJvdG8SHW1vY2hhYnVnYXBpcy5hZGFwdC5wbHVnaW5zLnYxIucGCgZWZXJ0ZXgSMwoEbmFtZRgBIAEoCUIlukgiciAQARhkMhpeW18kYS16QS1aXVtfJGEtekEtWjAtOV0qJBIYCgVsYWJlbBgCI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IaChZDQVBBQklMSVRZX1VOU1BFQ0lGSUVEEAASEwoPQ0FQQUJJTElUWV9DUk9OEAESFwoTQ0FQQUJJTElUWV9FWFRFUk5BTBACEhsKF0NBUEFCSUxJVFlfQ09ORklHVVJBVE9SEAMSFgoSQ0FQQUJJTElUWV9CUk9XU0VSEARiBnByb3RvMw", [file_buf_validate_validate, file_mochabugapis_adapt_plugins_v1_state_contract]);
|
|
4508
4511
|
var VertexSchema = /* @__PURE__ */ messageDesc(file_mochabugapis_adapt_plugins_v1_vertex, 0);
|
|
4509
4512
|
|
|
4510
4513
|
// src/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.ts
|
|
4511
|
-
var file_mochabugapis_adapt_plugins_v1_manifest = /* @__PURE__ */ fileDesc("
|
|
4514
|
+
var file_mochabugapis_adapt_plugins_v1_manifest = /* @__PURE__ */ fileDesc("Cixtb2NoYWJ1Z2FwaXMvYWRhcHQvcGx1Z2lucy92MS9tYW5pZmVzdC5wcm90bxIdbW9jaGFidWdhcGlzLmFkYXB0LnBsdWdpbnMudjEiwAsKCE1hbmlmZXN0EjMKBG5hbWUYASABKAlCJbpIInIgEAEYZDIaXltfJGEtekEtWl1bXyRhLXpBLVowLTldKiQS1AEKB3ZlcnNpb24YAiABKAlCwgG6SL4BcrsBEAUYlgEyswFeKDB8WzEtOV1cZCopXC4oMHxbMS05XVxkKilcLigwfFsxLTldXGQqKSg/Oi0oKD86MHxbMS05XVxkKnxcZCpbYS16QS1aLV1bMC05YS16QS1aLV0qKSg/OlwuKD86MHxbMS05XVxkKnxcZCpbYS16QS1aLV1bMC05YS16QS1aLV0qKSkqKSk/KD86XCsoWzAtOWEtekEtWi1dKyg/OlwuWzAtOWEtekEtWi1dKykqKSk/JBIYCgVsYWJlbBgDIAEoCUIJukgGcgQQARhkEh8KC2Rlc2NyaXB0aW9uGAQgASgJQgq6SAdyBRABGPoBEh4KDG9yZ2FuaXphdGlvbhgFIAEoCUIIukgFcgOwAQESVQoIaG9tZXBhZ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FwcGVhciBtb3JlIHRoYW4gb25jZRoodGhpcy5tYXAoc2VydmljZSwgc2VydmljZS5uYW1lKS51bmlxdWUoKZIBBQgAEPQDEkoKD3N5c3RlbV9zZXJ2aWNlcxgNIAMoCUIxukgukgErCAAQ9AMYASIiciAQARhkMhpeW18kYS16QS1aXVtfJGEtekEtWjAtOV0qJBJJChNjb25maWdfc3RvcmVfcGx1Z2luGA4gASgLMiwubW9jaGFidWdhcGlzLmFkYXB0LnBsdWdpbnMudjEuU3RhdGVDb250cmFjdEILCglfaG9tZXBhZ2VCDQoLX3JlcG9zaXRvcnlCBwoFX2J1Z3NCCQoHX2F1dGhvckIHCgVfbG9nb2IGcHJvdG8z", [file_buf_validate_validate, file_mochabugapis_adapt_plugins_v1_service_definition, file_mochabugapis_adapt_plugins_v1_state_contract, file_mochabugapis_adapt_plugins_v1_vertex]);
|
|
4512
4515
|
var ManifestSchema = /* @__PURE__ */ messageDesc(file_mochabugapis_adapt_plugins_v1_manifest, 0);
|
|
4513
4516
|
|
|
4514
4517
|
// src/utils.ts
|
|
@@ -4757,7 +4760,17 @@ async function addVertex(cwd, name, folder, capabilities, frontendLib) {
|
|
|
4757
4760
|
label: labelize(name),
|
|
4758
4761
|
description: `The better description of what ${name} is doing, the better it is for both AI and humans`,
|
|
4759
4762
|
capabilities,
|
|
4760
|
-
metadata: "metadata.json"
|
|
4763
|
+
metadata: "metadata.json",
|
|
4764
|
+
...capabilities.includes("CAPABILITY_CONFIGURATOR") ? {
|
|
4765
|
+
vertexConfig: {
|
|
4766
|
+
generation: "default",
|
|
4767
|
+
wipe: {}
|
|
4768
|
+
}
|
|
4769
|
+
} : {},
|
|
4770
|
+
configStoreVertex: {
|
|
4771
|
+
generation: "default",
|
|
4772
|
+
wipe: {}
|
|
4773
|
+
}
|
|
4761
4774
|
};
|
|
4762
4775
|
const uiPath = path2.join(folder, "ui");
|
|
4763
4776
|
if (frontendLib === "react") {
|
|
@@ -5128,7 +5141,11 @@ async function init(dir) {
|
|
|
5128
5141
|
author: "John Doe",
|
|
5129
5142
|
bugs: "bugs@foobar.com",
|
|
5130
5143
|
homepage: `https://www.foobar.com`,
|
|
5131
|
-
repository: `https://github.com
|
|
5144
|
+
repository: `https://github.com`,
|
|
5145
|
+
configStorePlugin: {
|
|
5146
|
+
generation: "default",
|
|
5147
|
+
wipe: {}
|
|
5148
|
+
}
|
|
5132
5149
|
};
|
|
5133
5150
|
mkdirp3.sync(path3.join(dir, "assets"));
|
|
5134
5151
|
mkdirp3.sync(path3.join(dir, "cdn"));
|