@xeonr/pipelines-sdk 0.2.0 → 0.4.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.
- package/README.md +231 -22
- package/dist/auth.d.ts +1 -1
- package/dist/client.d.ts +73 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +47 -4
- package/dist/client.js.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts +179 -16
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js +45 -28
- package/dist/gen/xeonr/pipelines/private/v1/attempt_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts +136 -17
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js +42 -35
- package/dist/gen/xeonr/pipelines/private/v1/step_local_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts +224 -8
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js +43 -9
- package/dist/gen/xeonr/pipelines/private/v1/worker_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts +64 -8
- package/dist/gen/xeonr/pipelines/v1/common_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/common_pb.js +62 -5
- package/dist/gen/xeonr/pipelines/v1/common_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts +312 -9
- package/dist/gen/xeonr/pipelines/v1/definition_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/definition_pb.js +100 -7
- package/dist/gen/xeonr/pipelines/v1/definition_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/pipelines_pb.d.ts +1072 -0
- package/dist/gen/xeonr/pipelines/v1/pipelines_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/pipelines_pb.js +299 -0
- package/dist/gen/xeonr/pipelines/v1/pipelines_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts +103 -8
- package/dist/gen/xeonr/pipelines/v1/pools_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/pools_pb.js +32 -24
- package/dist/gen/xeonr/pipelines/v1/pools_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/queues_pb.d.ts +711 -0
- package/dist/gen/xeonr/pipelines/v1/queues_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/queues_pb.js +185 -0
- package/dist/gen/xeonr/pipelines/v1/queues_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts +92 -23
- package/dist/gen/xeonr/pipelines/v1/registry_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/registry_pb.js +36 -33
- package/dist/gen/xeonr/pipelines/v1/registry_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts +1191 -33
- package/dist/gen/xeonr/pipelines/v1/runs_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/runs_pb.js +419 -35
- package/dist/gen/xeonr/pipelines/v1/runs_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.d.ts +194 -0
- package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.js +100 -0
- package/dist/gen/xeonr/pipelines/v1/schedule_targets_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/schedules_pb.d.ts +1186 -0
- package/dist/gen/xeonr/pipelines/v1/schedules_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/schedules_pb.js +335 -0
- package/dist/gen/xeonr/pipelines/v1/schedules_pb.js.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts +32 -5
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.js +12 -3
- package/dist/gen/xeonr/pipelines/v1/secrets_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts +270 -27
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.js +163 -24
- package/dist/gen/xeonr/pipelines/v1/sinks_pb.js.map +1 -1
- package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.d.ts +391 -0
- package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.d.ts.map +1 -0
- package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.js +100 -0
- package/dist/gen/xeonr/pipelines/v1/tenant_policies_pb.js.map +1 -0
- package/dist/gen/xeonr/platform/v1/options_pb.d.ts +137 -1
- package/dist/gen/xeonr/platform/v1/options_pb.d.ts.map +1 -1
- package/dist/gen/xeonr/platform/v1/options_pb.js +104 -1
- package/dist/gen/xeonr/platform/v1/options_pb.js.map +1 -1
- package/dist/handler.d.ts +51 -1
- package/dist/handler.d.ts.map +1 -1
- package/dist/handler.js +27 -0
- package/dist/handler.js.map +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/queues.d.ts +158 -0
- package/dist/queues.d.ts.map +1 -0
- package/dist/queues.js +117 -0
- package/dist/queues.js.map +1 -0
- package/dist/reporter.d.ts +120 -0
- package/dist/reporter.d.ts.map +1 -0
- package/dist/reporter.js +323 -0
- package/dist/reporter.js.map +1 -0
- package/dist/schedules.d.ts +193 -0
- package/dist/schedules.d.ts.map +1 -0
- package/dist/schedules.js +126 -0
- package/dist/schedules.js.map +1 -0
- package/dist/testing/cron.d.ts +33 -0
- package/dist/testing/cron.d.ts.map +1 -0
- package/dist/testing/cron.js +177 -0
- package/dist/testing/cron.js.map +1 -0
- package/dist/testing/index.d.ts +229 -7
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +1304 -103
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/pipelines.d.ts +99 -0
- package/dist/testing/pipelines.d.ts.map +1 -0
- package/dist/testing/pipelines.js +445 -0
- package/dist/testing/pipelines.js.map +1 -0
- package/dist/testing/queues.d.ts +49 -0
- package/dist/testing/queues.d.ts.map +1 -0
- package/dist/testing/queues.js +72 -0
- package/dist/testing/queues.js.map +1 -0
- package/dist/testing/schedules.d.ts +125 -0
- package/dist/testing/schedules.d.ts.map +1 -0
- package/dist/testing/schedules.js +422 -0
- package/dist/testing/schedules.js.map +1 -0
- package/dist/worker.d.ts +48 -7
- package/dist/worker.d.ts.map +1 -1
- package/dist/worker.js +59 -9
- package/dist/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { FieldOptions, MethodOptions } from "@bufbuild/protobuf/wkt";
|
|
2
|
+
import type { FieldOptions, FileOptions, MethodOptions, ServiceOptions } from "@bufbuild/protobuf/wkt";
|
|
3
3
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
4
|
/**
|
|
5
5
|
* Describes the file xeonr/platform/v1/options.proto.
|
|
@@ -120,6 +120,45 @@ export type McpProduct = Message<"xeonr.platform.v1.McpProduct"> & {
|
|
|
120
120
|
* Use `create(McpProductSchema)` to create a new message.
|
|
121
121
|
*/
|
|
122
122
|
export declare const McpProductSchema: GenMessage<McpProduct>;
|
|
123
|
+
/**
|
|
124
|
+
* McpExclusion is the value of mcp_exclude, mcp_exclude_service and
|
|
125
|
+
* mcp_exclude_file. Where one is written, mcpx.Lint flags it without a reason, an
|
|
126
|
+
* OTHER without detail, a NOT_PERSON_CALLABLE without ticket and a
|
|
127
|
+
* SUPERSEDED whose superseded_by is not one of the product's tools.
|
|
128
|
+
*
|
|
129
|
+
* @generated from message xeonr.platform.v1.McpExclusion
|
|
130
|
+
*/
|
|
131
|
+
export type McpExclusion = Message<"xeonr.platform.v1.McpExclusion"> & {
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: xeonr.platform.v1.McpExcluded reason = 1;
|
|
134
|
+
*/
|
|
135
|
+
reason: McpExcluded;
|
|
136
|
+
/**
|
|
137
|
+
* Free text: why, in a sentence. Required for MCP_EXCLUDED_OTHER.
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: string detail = 2;
|
|
140
|
+
*/
|
|
141
|
+
detail: string;
|
|
142
|
+
/**
|
|
143
|
+
* Trellis key of the ticket that would make it a tool ("AUTH-301").
|
|
144
|
+
* Required for MCP_EXCLUDED_NOT_PERSON_CALLABLE.
|
|
145
|
+
*
|
|
146
|
+
* @generated from field: string ticket = 3;
|
|
147
|
+
*/
|
|
148
|
+
ticket: string;
|
|
149
|
+
/**
|
|
150
|
+
* The tool (snake_case, no product prefix) that covers this RPC.
|
|
151
|
+
* Required for MCP_EXCLUDED_SUPERSEDED.
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: string superseded_by = 4;
|
|
154
|
+
*/
|
|
155
|
+
supersededBy: string;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Describes the message xeonr.platform.v1.McpExclusion.
|
|
159
|
+
* Use `create(McpExclusionSchema)` to create a new message.
|
|
160
|
+
*/
|
|
161
|
+
export declare const McpExclusionSchema: GenMessage<McpExclusion>;
|
|
123
162
|
/**
|
|
124
163
|
* McpTier says whether the gateway lists a tool or only finds it on request.
|
|
125
164
|
*
|
|
@@ -174,6 +213,69 @@ export declare enum McpEffect {
|
|
|
174
213
|
* Describes the enum xeonr.platform.v1.McpEffect.
|
|
175
214
|
*/
|
|
176
215
|
export declare const McpEffectSchema: GenEnum<McpEffect>;
|
|
216
|
+
/**
|
|
217
|
+
* McpExcluded is why an RPC is deliberately not an MCP tool.
|
|
218
|
+
*
|
|
219
|
+
* @generated from enum xeonr.platform.v1.McpExcluded
|
|
220
|
+
*/
|
|
221
|
+
export declare enum McpExcluded {
|
|
222
|
+
/**
|
|
223
|
+
* @generated from enum value: MCP_EXCLUDED_UNSPECIFIED = 0;
|
|
224
|
+
*/
|
|
225
|
+
UNSPECIFIED = 0,
|
|
226
|
+
/**
|
|
227
|
+
* Sign-in, passkey, consent, OAuth and session flows a browser drives.
|
|
228
|
+
*
|
|
229
|
+
* @generated from enum value: MCP_EXCLUDED_INTERACTIVE_AUTH = 1;
|
|
230
|
+
*/
|
|
231
|
+
INTERACTIVE_AUTH = 1,
|
|
232
|
+
/**
|
|
233
|
+
* Called by a machine, not a person: runner, agent, webhook,
|
|
234
|
+
* service-to-service, controller callbacks.
|
|
235
|
+
*
|
|
236
|
+
* @generated from enum value: MCP_EXCLUDED_MACHINE_PROTOCOL = 2;
|
|
237
|
+
*/
|
|
238
|
+
MACHINE_PROTOCOL = 2,
|
|
239
|
+
/**
|
|
240
|
+
* Moves bytes (uploads, downloads, chunked transfers) a model cannot carry
|
|
241
|
+
* as JSON arguments or results.
|
|
242
|
+
*
|
|
243
|
+
* @generated from enum value: MCP_EXCLUDED_BYTE_TRANSFER = 3;
|
|
244
|
+
*/
|
|
245
|
+
BYTE_TRANSFER = 3,
|
|
246
|
+
/**
|
|
247
|
+
* Needs a principal the gateway cannot carry (an API key, an automation
|
|
248
|
+
* key, a service account, a device). McpExclusion.ticket names the ticket
|
|
249
|
+
* that would lift it.
|
|
250
|
+
*
|
|
251
|
+
* @generated from enum value: MCP_EXCLUDED_NOT_PERSON_CALLABLE = 4;
|
|
252
|
+
*/
|
|
253
|
+
NOT_PERSON_CALLABLE = 4,
|
|
254
|
+
/**
|
|
255
|
+
* Another tool of the same product covers it. McpExclusion.superseded_by
|
|
256
|
+
* names that tool.
|
|
257
|
+
*
|
|
258
|
+
* @generated from enum value: MCP_EXCLUDED_SUPERSEDED = 5;
|
|
259
|
+
*/
|
|
260
|
+
SUPERSEDED = 5,
|
|
261
|
+
/**
|
|
262
|
+
* Platform staff operations (require_admin and the like) that a person's
|
|
263
|
+
* gateway connection should not reach.
|
|
264
|
+
*
|
|
265
|
+
* @generated from enum value: MCP_EXCLUDED_PLATFORM_ADMIN = 6;
|
|
266
|
+
*/
|
|
267
|
+
PLATFORM_ADMIN = 6,
|
|
268
|
+
/**
|
|
269
|
+
* None of the above. McpExclusion.detail says why.
|
|
270
|
+
*
|
|
271
|
+
* @generated from enum value: MCP_EXCLUDED_OTHER = 7;
|
|
272
|
+
*/
|
|
273
|
+
OTHER = 7
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Describes the enum xeonr.platform.v1.McpExcluded.
|
|
277
|
+
*/
|
|
278
|
+
export declare const McpExcludedSchema: GenEnum<McpExcluded>;
|
|
177
279
|
/**
|
|
178
280
|
* no_authentication marks a method callable without a bearer token. A
|
|
179
281
|
* bearer that IS presented is still verified and, when valid, placed on the
|
|
@@ -310,4 +412,38 @@ export declare const mcp_hidden: GenExtension<FieldOptions, boolean>;
|
|
|
310
412
|
* @generated from extension: string mcp_description = 9902;
|
|
311
413
|
*/
|
|
312
414
|
export declare const mcp_description: GenExtension<FieldOptions, string>;
|
|
415
|
+
/**
|
|
416
|
+
* mcp_resource marks the string field naming a resource inside the product
|
|
417
|
+
* (EP-46, SCOPED-ACCESS.md §7.1): its value is the product's resource type,
|
|
418
|
+
* bare, exactly as registered on the Auth application ("project", "ticket",
|
|
419
|
+
* "repository"); the wire type is "<product key>:<value>". At most one field
|
|
420
|
+
* per resource type per request message, top level, singular string, and
|
|
421
|
+
* the type must be one the product declares (mcpx.Product.ResourceTypes).
|
|
422
|
+
* The manifest lists it in ManifestTool.resource_fields. It drives the
|
|
423
|
+
* gateway's listing, schema hints and early refusal only: the product
|
|
424
|
+
* enforces resource scope itself, through go-platform authn Resources().
|
|
425
|
+
*
|
|
426
|
+
* @generated from extension: string mcp_resource = 9903;
|
|
427
|
+
*/
|
|
428
|
+
export declare const mcp_resource: GenExtension<FieldOptions, string>;
|
|
429
|
+
/**
|
|
430
|
+
* mcp_exclude marks a unary RPC as deliberately not an MCP tool.
|
|
431
|
+
*
|
|
432
|
+
* @generated from extension: xeonr.platform.v1.McpExclusion mcp_exclude = 9911;
|
|
433
|
+
*/
|
|
434
|
+
export declare const mcp_exclude: GenExtension<MethodOptions, McpExclusion>;
|
|
435
|
+
/**
|
|
436
|
+
* mcp_exclude_service excludes every method of the service that does not
|
|
437
|
+
* carry mcp_tool or its own mcp_exclude.
|
|
438
|
+
*
|
|
439
|
+
* @generated from extension: xeonr.platform.v1.McpExclusion mcp_exclude_service = 9900;
|
|
440
|
+
*/
|
|
441
|
+
export declare const mcp_exclude_service: GenExtension<ServiceOptions, McpExclusion>;
|
|
442
|
+
/**
|
|
443
|
+
* mcp_exclude_file excludes every method of every service in the file
|
|
444
|
+
* that does not carry mcp_tool or its own exclusion.
|
|
445
|
+
*
|
|
446
|
+
* @generated from extension: xeonr.platform.v1.McpExclusion mcp_exclude_file = 9900;
|
|
447
|
+
*/
|
|
448
|
+
export declare const mcp_exclude_file: GenExtension<FileOptions, McpExclusion>;
|
|
313
449
|
//# sourceMappingURL=options_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/xeonr/platform/v1/options_pb.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE/F,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"options_pb.d.ts","sourceRoot":"","sources":["../../../../../src/gen/xeonr/platform/v1/options_pb.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY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C;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE,OAAO,CACd,CAAC;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,YAAY,EAAE,MAAM,CAClB,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,YAAY,EAAE,MAAM,CACf,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,aAAa,EAAE,YAAY,CACrB,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,cAAc,EAAE,YAAY,CAC9B,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,WAAW,EAAE,YAAY,CACxB,CAAC"}
|
|
@@ -24,7 +24,7 @@ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
|
24
24
|
/**
|
|
25
25
|
* Describes the file xeonr/platform/v1/options.proto.
|
|
26
26
|
*/
|
|
27
|
-
export const file_xeonr_platform_v1_options = /*@__PURE__*/ fileDesc("
|
|
27
|
+
export const file_xeonr_platform_v1_options = /*@__PURE__*/ fileDesc("Ch94ZW9uci9wbGF0Zm9ybS92MS9vcHRpb25zLnByb3RvEhF4ZW9uci5wbGF0Zm9ybS52MSK4AQoHTWNwVG9vbBIMCgRuYW1lGAEgASgJEg8KB3Rvb2xzZXQYAiABKAkSKAoEdGllchgDIAEoDjIaLnhlb25yLnBsYXRmb3JtLnYxLk1jcFRpZXISLAoGZWZmZWN0GAQgASgOMhwueGVvbnIucGxhdGZvcm0udjEuTWNwRWZmZWN0EhMKC2Rlc2NyaXB0aW9uGAUgASgJEg0KBXRpdGxlGAYgASgJEhIKCmlkZW1wb3RlbnQYByABKAgiWgoKTWNwVG9vbHNldBIMCgRuYW1lGAEgASgJEhMKC2Rlc2NyaXB0aW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wcm90b2J1Zi5GaWVsZE9wdGlvbnMYrE0gASgIUgdtY3BUZWFtOj0KCm1jcF9oaWRkZW4SHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGK1NIAEoCFIJbWNwSGlkZGVuOkcKD21jcF9kZXNjcmlwdGlvbhIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYrk0gASgJUg5tY3BEZXNjcmlwdGlvbjpBCgxtY3BfcmVzb3VyY2USHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGK9NIAEoCVILbWNwUmVzb3VyY2U6YQoLbWNwX2V4Y2x1ZGUSHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxi3TSABKAsyHy54ZW9uci5wbGF0Zm9ybS52MS5NY3BFeGNsdXNpb25SCm1jcEV4Y2x1ZGU6cQoTbWNwX2V4Y2x1ZGVfc2VydmljZRIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0aW9ucxisTSABKAsyHy54ZW9uci5wbGF0Zm9ybS52MS5NY3BFeGNsdXNpb25SEW1jcEV4Y2x1ZGVTZXJ2aWNlOmgKEG1jcF9leGNsdWRlX2ZpbGUSHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMYrE0gASgLMh8ueGVvbnIucGxhdGZvcm0udjEuTWNwRXhjbHVzaW9uUg5tY3BFeGNsdWRlRmlsZUJWWlRwcm90by5wcm9kLnd0Zi9nZW4vZ28veGVvbnIvcGxhdGZvcm0vcHJvdG9jb2xidWZmZXJzL2dvL3hlb25yL3BsYXRmb3JtL3YxO3BsYXRmb3JtdjFiBnByb3RvMw", [file_google_protobuf_descriptor]);
|
|
28
28
|
/**
|
|
29
29
|
* Describes the message xeonr.platform.v1.McpTool.
|
|
30
30
|
* Use `create(McpToolSchema)` to create a new message.
|
|
@@ -40,6 +40,11 @@ export const McpToolsetSchema = /*@__PURE__*/ messageDesc(file_xeonr_platform_v1
|
|
|
40
40
|
* Use `create(McpProductSchema)` to create a new message.
|
|
41
41
|
*/
|
|
42
42
|
export const McpProductSchema = /*@__PURE__*/ messageDesc(file_xeonr_platform_v1_options, 2);
|
|
43
|
+
/**
|
|
44
|
+
* Describes the message xeonr.platform.v1.McpExclusion.
|
|
45
|
+
* Use `create(McpExclusionSchema)` to create a new message.
|
|
46
|
+
*/
|
|
47
|
+
export const McpExclusionSchema = /*@__PURE__*/ messageDesc(file_xeonr_platform_v1_options, 3);
|
|
43
48
|
/**
|
|
44
49
|
* McpTier says whether the gateway lists a tool or only finds it on request.
|
|
45
50
|
*
|
|
@@ -96,6 +101,70 @@ export var McpEffect;
|
|
|
96
101
|
* Describes the enum xeonr.platform.v1.McpEffect.
|
|
97
102
|
*/
|
|
98
103
|
export const McpEffectSchema = /*@__PURE__*/ enumDesc(file_xeonr_platform_v1_options, 1);
|
|
104
|
+
/**
|
|
105
|
+
* McpExcluded is why an RPC is deliberately not an MCP tool.
|
|
106
|
+
*
|
|
107
|
+
* @generated from enum xeonr.platform.v1.McpExcluded
|
|
108
|
+
*/
|
|
109
|
+
export var McpExcluded;
|
|
110
|
+
(function (McpExcluded) {
|
|
111
|
+
/**
|
|
112
|
+
* @generated from enum value: MCP_EXCLUDED_UNSPECIFIED = 0;
|
|
113
|
+
*/
|
|
114
|
+
McpExcluded[McpExcluded["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
115
|
+
/**
|
|
116
|
+
* Sign-in, passkey, consent, OAuth and session flows a browser drives.
|
|
117
|
+
*
|
|
118
|
+
* @generated from enum value: MCP_EXCLUDED_INTERACTIVE_AUTH = 1;
|
|
119
|
+
*/
|
|
120
|
+
McpExcluded[McpExcluded["INTERACTIVE_AUTH"] = 1] = "INTERACTIVE_AUTH";
|
|
121
|
+
/**
|
|
122
|
+
* Called by a machine, not a person: runner, agent, webhook,
|
|
123
|
+
* service-to-service, controller callbacks.
|
|
124
|
+
*
|
|
125
|
+
* @generated from enum value: MCP_EXCLUDED_MACHINE_PROTOCOL = 2;
|
|
126
|
+
*/
|
|
127
|
+
McpExcluded[McpExcluded["MACHINE_PROTOCOL"] = 2] = "MACHINE_PROTOCOL";
|
|
128
|
+
/**
|
|
129
|
+
* Moves bytes (uploads, downloads, chunked transfers) a model cannot carry
|
|
130
|
+
* as JSON arguments or results.
|
|
131
|
+
*
|
|
132
|
+
* @generated from enum value: MCP_EXCLUDED_BYTE_TRANSFER = 3;
|
|
133
|
+
*/
|
|
134
|
+
McpExcluded[McpExcluded["BYTE_TRANSFER"] = 3] = "BYTE_TRANSFER";
|
|
135
|
+
/**
|
|
136
|
+
* Needs a principal the gateway cannot carry (an API key, an automation
|
|
137
|
+
* key, a service account, a device). McpExclusion.ticket names the ticket
|
|
138
|
+
* that would lift it.
|
|
139
|
+
*
|
|
140
|
+
* @generated from enum value: MCP_EXCLUDED_NOT_PERSON_CALLABLE = 4;
|
|
141
|
+
*/
|
|
142
|
+
McpExcluded[McpExcluded["NOT_PERSON_CALLABLE"] = 4] = "NOT_PERSON_CALLABLE";
|
|
143
|
+
/**
|
|
144
|
+
* Another tool of the same product covers it. McpExclusion.superseded_by
|
|
145
|
+
* names that tool.
|
|
146
|
+
*
|
|
147
|
+
* @generated from enum value: MCP_EXCLUDED_SUPERSEDED = 5;
|
|
148
|
+
*/
|
|
149
|
+
McpExcluded[McpExcluded["SUPERSEDED"] = 5] = "SUPERSEDED";
|
|
150
|
+
/**
|
|
151
|
+
* Platform staff operations (require_admin and the like) that a person's
|
|
152
|
+
* gateway connection should not reach.
|
|
153
|
+
*
|
|
154
|
+
* @generated from enum value: MCP_EXCLUDED_PLATFORM_ADMIN = 6;
|
|
155
|
+
*/
|
|
156
|
+
McpExcluded[McpExcluded["PLATFORM_ADMIN"] = 6] = "PLATFORM_ADMIN";
|
|
157
|
+
/**
|
|
158
|
+
* None of the above. McpExclusion.detail says why.
|
|
159
|
+
*
|
|
160
|
+
* @generated from enum value: MCP_EXCLUDED_OTHER = 7;
|
|
161
|
+
*/
|
|
162
|
+
McpExcluded[McpExcluded["OTHER"] = 7] = "OTHER";
|
|
163
|
+
})(McpExcluded || (McpExcluded = {}));
|
|
164
|
+
/**
|
|
165
|
+
* Describes the enum xeonr.platform.v1.McpExcluded.
|
|
166
|
+
*/
|
|
167
|
+
export const McpExcludedSchema = /*@__PURE__*/ enumDesc(file_xeonr_platform_v1_options, 2);
|
|
99
168
|
/**
|
|
100
169
|
* no_authentication marks a method callable without a bearer token. A
|
|
101
170
|
* bearer that IS presented is still verified and, when valid, placed on the
|
|
@@ -232,4 +301,38 @@ export const mcp_hidden = /*@__PURE__*/ extDesc(file_xeonr_platform_v1_options,
|
|
|
232
301
|
* @generated from extension: string mcp_description = 9902;
|
|
233
302
|
*/
|
|
234
303
|
export const mcp_description = /*@__PURE__*/ extDesc(file_xeonr_platform_v1_options, 13);
|
|
304
|
+
/**
|
|
305
|
+
* mcp_resource marks the string field naming a resource inside the product
|
|
306
|
+
* (EP-46, SCOPED-ACCESS.md §7.1): its value is the product's resource type,
|
|
307
|
+
* bare, exactly as registered on the Auth application ("project", "ticket",
|
|
308
|
+
* "repository"); the wire type is "<product key>:<value>". At most one field
|
|
309
|
+
* per resource type per request message, top level, singular string, and
|
|
310
|
+
* the type must be one the product declares (mcpx.Product.ResourceTypes).
|
|
311
|
+
* The manifest lists it in ManifestTool.resource_fields. It drives the
|
|
312
|
+
* gateway's listing, schema hints and early refusal only: the product
|
|
313
|
+
* enforces resource scope itself, through go-platform authn Resources().
|
|
314
|
+
*
|
|
315
|
+
* @generated from extension: string mcp_resource = 9903;
|
|
316
|
+
*/
|
|
317
|
+
export const mcp_resource = /*@__PURE__*/ extDesc(file_xeonr_platform_v1_options, 14);
|
|
318
|
+
/**
|
|
319
|
+
* mcp_exclude marks a unary RPC as deliberately not an MCP tool.
|
|
320
|
+
*
|
|
321
|
+
* @generated from extension: xeonr.platform.v1.McpExclusion mcp_exclude = 9911;
|
|
322
|
+
*/
|
|
323
|
+
export const mcp_exclude = /*@__PURE__*/ extDesc(file_xeonr_platform_v1_options, 15);
|
|
324
|
+
/**
|
|
325
|
+
* mcp_exclude_service excludes every method of the service that does not
|
|
326
|
+
* carry mcp_tool or its own mcp_exclude.
|
|
327
|
+
*
|
|
328
|
+
* @generated from extension: xeonr.platform.v1.McpExclusion mcp_exclude_service = 9900;
|
|
329
|
+
*/
|
|
330
|
+
export const mcp_exclude_service = /*@__PURE__*/ extDesc(file_xeonr_platform_v1_options, 16);
|
|
331
|
+
/**
|
|
332
|
+
* mcp_exclude_file excludes every method of every service in the file
|
|
333
|
+
* that does not carry mcp_tool or its own exclusion.
|
|
334
|
+
*
|
|
335
|
+
* @generated from extension: xeonr.platform.v1.McpExclusion mcp_exclude_file = 9900;
|
|
336
|
+
*/
|
|
337
|
+
export const mcp_exclude_file = /*@__PURE__*/ extDesc(file_xeonr_platform_v1_options, 17);
|
|
235
338
|
//# sourceMappingURL=options_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options_pb.js","sourceRoot":"","sources":["../../../../../src/gen/xeonr/platform/v1/options_pb.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,kEAAkE;AAClE,EAAE;AACF,8EAA8E;AAC9E,0EAA0E;AAC1E,yEAAyE;AACzE,4EAA4E;AAC5E,+EAA+E;AAC/E,4EAA4E;AAC5E,kEAAkE;AAClE,2EAA2E;AAC3E,EAAE;AACF,2EAA2E;AAC3E,0DAA0D;AAC1D,EAAE;AACF,0EAA0E;AAC1E,oEAAoE;AACpE,iEAAiE;AACjE,8EAA8E;AAC9E,8EAA8E;AAC9E,2BAA2B;AAO3B,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAY,aAAa,CAClE,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"options_p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aAAa,CAC1E,OAAO,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;AAE9C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAuC,aAAa,CAC9E,OAAO,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,YAAY,GAAuC,aAAa,CAC3E,OAAO,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;AAE9C;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAA8C,aAAa,CACjF,OAAO,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA+C,aAAa,CAC1F,OAAO,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA4C,aAAa,CACpF,OAAO,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC"}
|
package/dist/handler.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { JsonObject, JsonValue, MessageInitShape } from "@bufbuild/protobuf";
|
|
2
2
|
import type { InputSlotSchema, OutputSlotSchema } from "./gen/xeonr/pipelines/v1/registry_pb.js";
|
|
3
|
+
import type { IssueInput, ProgressUpdate, SpanHandle, StageDef } from "./reporter.js";
|
|
4
|
+
import type { ScheduleTargetJson } from "./schedules.js";
|
|
3
5
|
/** The `<namespace>/<name>` pattern the contract holds handler names to. */
|
|
4
6
|
export declare const HANDLER_NAME: RegExp;
|
|
5
7
|
/** One attempt of a node, as the handler running it sees it. */
|
|
@@ -16,7 +18,7 @@ export interface AttemptInfo {
|
|
|
16
18
|
readonly tenant: string;
|
|
17
19
|
/** When the worker stops the handler, if the attempt has a timeout. */
|
|
18
20
|
readonly deadline: Date | undefined;
|
|
19
|
-
/** What the run is about, as the
|
|
21
|
+
/** What the run is about, as the service described it. */
|
|
20
22
|
readonly resource: {
|
|
21
23
|
kind: string;
|
|
22
24
|
id: string;
|
|
@@ -48,6 +50,34 @@ export interface HandlerContext<I> {
|
|
|
48
50
|
readonly attempt: AttemptInfo;
|
|
49
51
|
/** The attempt's log in pipelines. */
|
|
50
52
|
readonly log: AttemptLogger;
|
|
53
|
+
/**
|
|
54
|
+
* Enters a stage: one the handler declares in `stages`, or a new one,
|
|
55
|
+
* added with weight 0. Entering a stage finishes the one before it; the
|
|
56
|
+
* last one is finished when the handler returns (or fails). Pass `state`
|
|
57
|
+
* to finish or skip the current stage explicitly.
|
|
58
|
+
*/
|
|
59
|
+
stage(key: string, opts?: {
|
|
60
|
+
name?: string;
|
|
61
|
+
state?: "running" | "succeeded" | "failed" | "skipped";
|
|
62
|
+
message?: string;
|
|
63
|
+
}): void;
|
|
64
|
+
/**
|
|
65
|
+
* Reports progress within the current stage (or the attempt as a whole):
|
|
66
|
+
* items processed, total and failed, a fraction, a message. Sent about
|
|
67
|
+
* once a second at most, and once more before the attempt completes.
|
|
68
|
+
*/
|
|
69
|
+
progress(update: ProgressUpdate): void;
|
|
70
|
+
/**
|
|
71
|
+
* Reports a structured, non-fatal problem with one item of the work. The
|
|
72
|
+
* run can still succeed; it carries the issues. Batched, never fails the
|
|
73
|
+
* handler.
|
|
74
|
+
*/
|
|
75
|
+
issue(issue: IssueInput): void;
|
|
76
|
+
/**
|
|
77
|
+
* Runs `fn` inside a span of the attempt's trace, recorded with
|
|
78
|
+
* `ReportSpans` (status `error` when `fn` throws, which is rethrown).
|
|
79
|
+
*/
|
|
80
|
+
span<T>(name: string, fn: (span: SpanHandle) => Promise<T> | T, attributes?: JsonObject): Promise<T>;
|
|
51
81
|
}
|
|
52
82
|
/** kv outputs a handler returns, by output slot. */
|
|
53
83
|
export type HandlerOutputs = Record<string, JsonValue>;
|
|
@@ -69,6 +99,14 @@ export interface HandlerDefinition<I = JsonObject, O extends HandlerOutputs | vo
|
|
|
69
99
|
/** Resource kinds the handler accepts; empty accepts any. */
|
|
70
100
|
readonly resourceKinds?: string[];
|
|
71
101
|
readonly readmeMd?: string;
|
|
102
|
+
/** The handler's title for people ("Image convert"); empty shows the name. */
|
|
103
|
+
readonly title?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The stages the handler's work goes through, in order, published in the
|
|
106
|
+
* manifest so a console can draw them before the attempt starts. Enter
|
|
107
|
+
* each with `ctx.stage(key)`.
|
|
108
|
+
*/
|
|
109
|
+
readonly stages?: readonly StageDef[];
|
|
72
110
|
/**
|
|
73
111
|
* The most attempts of this handler one worker process runs at once.
|
|
74
112
|
* Default: the worker's overall concurrency.
|
|
@@ -91,4 +129,16 @@ export interface HandlerDefinition<I = JsonObject, O extends HandlerOutputs | vo
|
|
|
91
129
|
* register it with `worker.handle`.
|
|
92
130
|
*/
|
|
93
131
|
export declare function defineHandler<I = JsonObject, O extends HandlerOutputs | void = HandlerOutputs | void>(def: HandlerDefinition<I, O>): HandlerDefinition<I, O>;
|
|
132
|
+
/**
|
|
133
|
+
* Defines a schedule's enumeration handler: at each occurrence it returns
|
|
134
|
+
* the targets the schedule fans out to, published as the kv output
|
|
135
|
+
* `targets` the platform reads.
|
|
136
|
+
*/
|
|
137
|
+
export declare function defineEnumerator<I = JsonObject>(def: Omit<HandlerDefinition<I, {
|
|
138
|
+
targets: JsonValue;
|
|
139
|
+
}>, "run" | "outputs"> & {
|
|
140
|
+
run: (ctx: HandlerContext<I>) => Promise<readonly ScheduleTargetJson[]> | readonly ScheduleTargetJson[];
|
|
141
|
+
}): HandlerDefinition<I, {
|
|
142
|
+
targets: JsonValue;
|
|
143
|
+
}>;
|
|
94
144
|
//# sourceMappingURL=handler.d.ts.map
|
package/dist/handler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,o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,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CAC1D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,SAAS,cAAc,GAAG,IAAI,GAAG,cAAc,GAAG,IAAI,EACnG,GAAG,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3B,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAkBzB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,GAAG,UAAU,EAAE,GAAG,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,SAAS,CAAA;CAAE,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC,GAAG;IAC5H,GAAG,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,SAAS,kBAAkB,EAAE,CAAC,GAAG,SAAS,kBAAkB,EAAE,CAAC;CACzG,GAAG,iBAAiB,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,SAAS,CAAA;CAAE,CAAC,CAM/C"}
|
package/dist/handler.js
CHANGED
|
@@ -10,9 +10,36 @@ export function defineHandler(def) {
|
|
|
10
10
|
throw new TypeError(`defineHandler: ${JSON.stringify(def.name)} is not <namespace>/<name>`);
|
|
11
11
|
if (!VERSION.test(def.version))
|
|
12
12
|
throw new TypeError(`defineHandler: ${JSON.stringify(def.version)} is not a semantic version`);
|
|
13
|
+
const keys = new Set();
|
|
14
|
+
for (const st of def.stages ?? []) {
|
|
15
|
+
if (!/^[a-z][a-z0-9_.-]{0,63}$/.test(st.key))
|
|
16
|
+
throw new TypeError(`defineHandler: stage key ${JSON.stringify(st.key)} is not valid`);
|
|
17
|
+
if (keys.has(st.key))
|
|
18
|
+
throw new TypeError(`defineHandler: stage ${st.key} is declared twice`);
|
|
19
|
+
if (!st.name || st.name.length > 128)
|
|
20
|
+
throw new TypeError(`defineHandler: stage ${st.key} needs a name of at most 128 characters`);
|
|
21
|
+
if (st.weight !== undefined && (!Number.isInteger(st.weight) || st.weight < 0 || st.weight > 1000)) {
|
|
22
|
+
throw new TypeError(`defineHandler: stage ${st.key}'s weight must be an integer from 0 to 1000`);
|
|
23
|
+
}
|
|
24
|
+
keys.add(st.key);
|
|
25
|
+
}
|
|
26
|
+
if ((def.stages?.length ?? 0) > 32)
|
|
27
|
+
throw new TypeError("defineHandler: at most 32 stages");
|
|
13
28
|
if (def.concurrency !== undefined && (!Number.isInteger(def.concurrency) || def.concurrency < 1)) {
|
|
14
29
|
throw new TypeError("defineHandler: concurrency must be a positive integer");
|
|
15
30
|
}
|
|
16
31
|
return def;
|
|
17
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Defines a schedule's enumeration handler: at each occurrence it returns
|
|
35
|
+
* the targets the schedule fans out to, published as the kv output
|
|
36
|
+
* `targets` the platform reads.
|
|
37
|
+
*/
|
|
38
|
+
export function defineEnumerator(def) {
|
|
39
|
+
return defineHandler({
|
|
40
|
+
...def,
|
|
41
|
+
outputs: [{ name: "targets", type: 1, required: true }],
|
|
42
|
+
run: async (ctx) => ({ targets: (await def.run(ctx)) }),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
18
45
|
//# sourceMappingURL=handler.js.map
|
package/dist/handler.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAKA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,oDAAoD,CAAC;AACjF,MAAM,OAAO,GAAG,4CAA4C,CAAC;AAuH7D;;;GAGG;AACH,MAAM,UAAU,aAAa,CAC3B,GAA4B;IAE5B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,MAAM,IAAI,SAAS,CAAC,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C,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,EAAE;QAAE,MAAM,IAAI,SAAS,CAAC,kCAAkC,CAAC,CAAC;IAC5F,IAAI,GAAG,CAAC,WAAW,KAAK,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE,CAAC;QACjG,MAAM,IAAI,SAAS,CAAC,uDAAuD,CAAC,CAAC;IAC/E,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAiB,GAEhD;IACC,OAAO,aAAa,CAA4B;QAC9C,GAAG,GAAG;QACN,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACvD,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAyB,EAAE,CAAC;KAChF,CAAC,CAAC;AACL,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* - {@link PipelinesClient}: start runs and enqueue jobs on the public API
|
|
5
5
|
* (`CreateRun`, `CreateJob`), read and cancel them.
|
|
6
|
-
* - {@link Worker}: run a
|
|
6
|
+
* - {@link Worker}: run a service's handlers inside its own Node.js process,
|
|
7
7
|
* claiming its attempts from pipelines-api (`WorkerService`).
|
|
8
|
-
* - {@link jwtBearer}: the
|
|
8
|
+
* - {@link jwtBearer}: the service's Auth service-account token, cached and
|
|
9
9
|
* refreshed single-flight.
|
|
10
10
|
*
|
|
11
11
|
* The generated messages are under `@xeonr/pipelines-sdk/gen/*`, and an
|
|
@@ -27,4 +27,15 @@ export { AttemptState, FailureClass, NodeState, RunState, Termination } from "./
|
|
|
27
27
|
export { Visibility, SlotType } from "./gen/xeonr/pipelines/v1/registry_pb.js";
|
|
28
28
|
export { HandlerFailureKind } from "./gen/xeonr/pipelines/private/v1/worker_pb.js";
|
|
29
29
|
export type { Run, NodeRun, Attempt } from "./gen/xeonr/pipelines/v1/runs_pb.js";
|
|
30
|
+
export { declareQueues, QueuesClient } from "./queues.js";
|
|
31
|
+
export type { QueueDecl, QueueRef, QueuesClientOptions } from "./queues.js";
|
|
32
|
+
export { declareSchedules, SchedulesClient } from "./schedules.js";
|
|
33
|
+
export type { ScheduleDecl, ScheduleJobDecl, SchedulesClientOptions, ScheduleTargetJson } from "./schedules.js";
|
|
34
|
+
export { defineEnumerator } from "./handler.js";
|
|
35
|
+
export type { IssueInput, ProgressUpdate, SpanHandle, StageDef } from "./reporter.js";
|
|
36
|
+
export { IssueSeverity, RunOrigin, RunTrigger, StageState } from "./gen/xeonr/pipelines/v1/runs_pb.js";
|
|
37
|
+
export type { RunIssue, TraceSpan, AttemptProgress } from "./gen/xeonr/pipelines/v1/runs_pb.js";
|
|
38
|
+
export type { Queue } from "./gen/xeonr/pipelines/v1/queues_pb.js";
|
|
39
|
+
export { MisfirePolicy, OccurrenceOutcome } from "./gen/xeonr/pipelines/v1/schedules_pb.js";
|
|
40
|
+
export type { Schedule } from "./gen/xeonr/pipelines/v1/schedules_pb.js";
|
|
30
41
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC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AAa,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACnE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACvG,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAChG,YAAY,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC5F,YAAY,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* - {@link PipelinesClient}: start runs and enqueue jobs on the public API
|
|
5
5
|
* (`CreateRun`, `CreateJob`), read and cancel them.
|
|
6
|
-
* - {@link Worker}: run a
|
|
6
|
+
* - {@link Worker}: run a service's handlers inside its own Node.js process,
|
|
7
7
|
* claiming its attempts from pipelines-api (`WorkerService`).
|
|
8
|
-
* - {@link jwtBearer}: the
|
|
8
|
+
* - {@link jwtBearer}: the service's Auth service-account token, cached and
|
|
9
9
|
* refreshed single-flight.
|
|
10
10
|
*
|
|
11
11
|
* The generated messages are under `@xeonr/pipelines-sdk/gen/*`, and an
|
|
@@ -21,4 +21,9 @@ export { consoleLogger, Worker } from "./worker.js";
|
|
|
21
21
|
export { AttemptState, FailureClass, NodeState, RunState, Termination } from "./gen/xeonr/pipelines/v1/common_pb.js";
|
|
22
22
|
export { Visibility, SlotType } from "./gen/xeonr/pipelines/v1/registry_pb.js";
|
|
23
23
|
export { HandlerFailureKind } from "./gen/xeonr/pipelines/private/v1/worker_pb.js";
|
|
24
|
+
export { declareQueues, QueuesClient } from "./queues.js";
|
|
25
|
+
export { declareSchedules, SchedulesClient } from "./schedules.js";
|
|
26
|
+
export { defineEnumerator } from "./handler.js";
|
|
27
|
+
export { IssueSeverity, RunOrigin, RunTrigger, StageState } from "./gen/xeonr/pipelines/v1/runs_pb.js";
|
|
28
|
+
export { MisfirePolicy, OccurrenceOutcome } from "./gen/xeonr/pipelines/v1/schedules_pb.js";
|
|
24
29
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEvJ,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEpD,0DAA0D;AAC1D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACrH,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","source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