@kici-dev/engine 0.1.5 → 0.1.6
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.
|
@@ -379,7 +379,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
379
379
|
}, z.core.$strip>, z.ZodObject<{
|
|
380
380
|
type: z.ZodLiteral<"source.register.ack">;
|
|
381
381
|
messageId: z.ZodString;
|
|
382
|
-
accepted: z.ZodArray<z.
|
|
382
|
+
accepted: z.ZodArray<z.ZodObject<{
|
|
383
|
+
routingKey: z.ZodString;
|
|
384
|
+
webhookUrl: z.ZodNullable<z.ZodString>;
|
|
385
|
+
}, z.core.$strip>>;
|
|
383
386
|
rejected: z.ZodArray<z.ZodObject<{
|
|
384
387
|
routingKey: z.ZodString;
|
|
385
388
|
reason: z.ZodString;
|
|
@@ -70,11 +70,27 @@ export declare const sourceRegistrationSchema: z.ZodObject<{
|
|
|
70
70
|
s3LogAccess: z.ZodOptional<z.ZodBoolean>;
|
|
71
71
|
queueTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
72
72
|
}, z.core.$strip>;
|
|
73
|
+
/**
|
|
74
|
+
* One accepted source in a {@link sourceRegistrationAckSchema}. Carries the
|
|
75
|
+
* public webhook URL the Platform computed for this routing key so the
|
|
76
|
+
* orchestrator (which only knows its org *alias*, never the canonical org id)
|
|
77
|
+
* can surface it to the operator — e.g. `kici-admin source add` printing the
|
|
78
|
+
* URL to paste into a GitHub App. `webhookUrl` is null when the Platform has
|
|
79
|
+
* no public webhook base configured (`config.webhookPublicUrl` unset).
|
|
80
|
+
*/
|
|
81
|
+
export declare const acceptedSourceSchema: z.ZodObject<{
|
|
82
|
+
routingKey: z.ZodString;
|
|
83
|
+
webhookUrl: z.ZodNullable<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type AcceptedSource = z.infer<typeof acceptedSourceSchema>;
|
|
73
86
|
/** Platform acknowledgment of source registration. */
|
|
74
87
|
export declare const sourceRegistrationAckSchema: z.ZodObject<{
|
|
75
88
|
type: z.ZodLiteral<"source.register.ack">;
|
|
76
89
|
messageId: z.ZodString;
|
|
77
|
-
accepted: z.ZodArray<z.
|
|
90
|
+
accepted: z.ZodArray<z.ZodObject<{
|
|
91
|
+
routingKey: z.ZodString;
|
|
92
|
+
webhookUrl: z.ZodNullable<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
78
94
|
rejected: z.ZodArray<z.ZodObject<{
|
|
79
95
|
routingKey: z.ZodString;
|
|
80
96
|
reason: z.ZodString;
|
|
@@ -95,11 +95,23 @@ const sourceRegistrationSchema = z.object({
|
|
|
95
95
|
/** Queue timeout in ms. Platform uses this (with margin) for safety-net GC of stale queued jobs. */
|
|
96
96
|
queueTimeoutMs: z.number().optional()
|
|
97
97
|
});
|
|
98
|
+
/**
|
|
99
|
+
* One accepted source in a {@link sourceRegistrationAckSchema}. Carries the
|
|
100
|
+
* public webhook URL the Platform computed for this routing key so the
|
|
101
|
+
* orchestrator (which only knows its org *alias*, never the canonical org id)
|
|
102
|
+
* can surface it to the operator — e.g. `kici-admin source add` printing the
|
|
103
|
+
* URL to paste into a GitHub App. `webhookUrl` is null when the Platform has
|
|
104
|
+
* no public webhook base configured (`config.webhookPublicUrl` unset).
|
|
105
|
+
*/
|
|
106
|
+
const acceptedSourceSchema = z.object({
|
|
107
|
+
routingKey: z.string(),
|
|
108
|
+
webhookUrl: z.string().nullable()
|
|
109
|
+
});
|
|
98
110
|
/** Platform acknowledgment of source registration. */
|
|
99
111
|
const sourceRegistrationAckSchema = z.object({
|
|
100
112
|
type: z.literal("source.register.ack"),
|
|
101
113
|
messageId: z.string(),
|
|
102
|
-
accepted: z.array(
|
|
114
|
+
accepted: z.array(acceptedSourceSchema),
|
|
103
115
|
rejected: z.array(z.object({
|
|
104
116
|
routingKey: z.string(),
|
|
105
117
|
reason: z.string()
|
|
@@ -125,6 +137,6 @@ const sourceDeregisterAckSchema = z.object({
|
|
|
125
137
|
removed: z.array(z.string())
|
|
126
138
|
});
|
|
127
139
|
//#endregion
|
|
128
|
-
export { SourceProvider, SourceSubtype, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema };
|
|
140
|
+
export { SourceProvider, SourceSubtype, acceptedSourceSchema, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema };
|
|
129
141
|
|
|
130
142
|
//# sourceMappingURL=source-registration.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kici",
|
package/sbom.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@kici-dev/engine@0.1.
|
|
6
|
-
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.1.
|
|
5
|
+
"name": "@kici-dev/engine@0.1.6",
|
|
6
|
+
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.1.6/b89e3174-b4cd-4b4c-9a07-e0b491f3e36e",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-05-
|
|
8
|
+
"created": "2026-05-26T05:00:09Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: kici-sbom-generator"
|
|
11
11
|
]
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
{
|
|
55
55
|
"SPDXID": "SPDXRef-RootPackage",
|
|
56
56
|
"name": "@kici-dev/engine",
|
|
57
|
-
"versionInfo": "0.1.
|
|
57
|
+
"versionInfo": "0.1.6",
|
|
58
58
|
"downloadLocation": "NOASSERTION",
|
|
59
59
|
"filesAnalyzed": false,
|
|
60
60
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{
|
|
66
66
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
67
67
|
"referenceType": "purl",
|
|
68
|
-
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.1.
|
|
68
|
+
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.1.6"
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
71
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|