@kici-dev/engine 0.1.16 → 0.1.17
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/dist/approval/types.js +1 -1
- package/dist/audit/access-log-policy.js +3 -1
- package/dist/audit/activity.js +1 -1
- package/dist/audit/retention-policy.js +5 -1
- package/dist/bundler/index.js +1 -1
- package/dist/bundler/rolldown-config.js +1 -1
- package/dist/env/environment-allowlist.js +1 -1
- package/dist/environment/index.js +1 -1
- package/dist/environment/scope-resolver.js +1 -1
- package/dist/environment/types.js +1 -1
- package/dist/fanout/materialize.d.ts +67 -0
- package/dist/fanout/materialize.js +119 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +8 -7
- package/dist/labels.js +1 -1
- package/dist/matrix/expand.d.ts +43 -0
- package/dist/matrix/expand.js +66 -0
- package/dist/matrix/format.d.ts +10 -0
- package/dist/matrix/format.js +19 -0
- package/dist/metrics/catalog-policy.js +8 -3
- package/dist/metrics/metric-catalog.generated.d.ts +1 -1
- package/dist/metrics/metric-catalog.generated.js +2 -2
- package/dist/protocol/analytics-events.js +1 -1
- package/dist/protocol/cluster-name.js +1 -1
- package/dist/protocol/dashboard-global-workflows.js +1 -1
- package/dist/protocol/dashboard-write-operations.js +1 -1
- package/dist/protocol/event-log-payload.js +1 -1
- package/dist/protocol/messages/access-log.d.ts +15 -5
- package/dist/protocol/messages/access-log.js +3 -1
- package/dist/protocol/messages/actor.js +1 -1
- package/dist/protocol/messages/auth.d.ts +1 -0
- package/dist/protocol/messages/auth.js +11 -2
- package/dist/protocol/messages/browser.js +1 -1
- package/dist/protocol/messages/capabilities.js +1 -1
- package/dist/protocol/messages/common.js +1 -1
- package/dist/protocol/messages/dashboard-global-workflows.js +1 -1
- package/dist/protocol/messages/dashboard.d.ts +976 -56
- package/dist/protocol/messages/dashboard.js +362 -6
- package/dist/protocol/messages/event-log.js +1 -1
- package/dist/protocol/messages/execution-status.d.ts +13 -1
- package/dist/protocol/messages/execution-status.js +13 -3
- package/dist/protocol/messages/join.js +1 -1
- package/dist/protocol/messages/log-pull.js +1 -1
- package/dist/protocol/messages/observe.d.ts +1 -0
- package/dist/protocol/messages/oidc-token-relay.d.ts +31 -0
- package/dist/protocol/messages/oidc-token-relay.js +34 -0
- package/dist/protocol/messages/orchestrator-agent.d.ts +41 -0
- package/dist/protocol/messages/orchestrator-agent.js +33 -2
- package/dist/protocol/messages/peer.js +1 -1
- package/dist/protocol/messages/platform-orchestrator.d.ts +171 -4
- package/dist/protocol/messages/platform-orchestrator.js +1 -1
- package/dist/protocol/messages/run-events.js +1 -1
- package/dist/protocol/messages/scaler-event.js +1 -1
- package/dist/protocol/messages/source-registration.d.ts +7 -6
- package/dist/protocol/messages/source-registration.js +7 -6
- package/dist/protocol/version.js +1 -1
- package/dist/provenance/bundle.d.ts +54 -0
- package/dist/provenance/bundle.js +53 -0
- package/dist/provenance/dsse.d.ts +39 -0
- package/dist/provenance/dsse.js +53 -0
- package/dist/provenance/schema.js +1 -1
- package/dist/provenance/verify.d.ts +71 -0
- package/dist/provenance/verify.js +135 -0
- package/dist/provider/changed-files-fetcher.js +1 -1
- package/dist/provider/check-run-conclusion.js +1 -1
- package/dist/provider/check-status-poster.js +1 -1
- package/dist/provider/clone-token-provider.js +1 -1
- package/dist/provider/contributor-resolver.js +1 -1
- package/dist/provider/index.js +1 -1
- package/dist/provider/lock-file-fetcher.js +1 -1
- package/dist/provider/lock-file-parse-error.js +3 -1
- package/dist/provider/repo-url-builder.js +1 -1
- package/dist/provider/types.d.ts +2 -2
- package/dist/provider/types.js +1 -1
- package/dist/provider/webhook-normalizer.js +1 -1
- package/dist/registration/registerable-trigger-type.js +1 -1
- package/dist/scaler/resource-types.js +1 -1
- package/dist/scaler/scaler-backend-type.js +1 -1
- package/dist/secrets/index.js +1 -1
- package/dist/secrets/types.js +1 -1
- package/dist/state-machine/index.js +1 -1
- package/dist/state-machine/machine.js +1 -1
- package/dist/state-machine/types.js +1 -1
- package/dist/trigger/decision-trace.js +1 -1
- package/dist/trigger/jsonpath-matcher.js +1 -1
- package/dist/trigger/matcher.js +1 -1
- package/dist/trigger/trigger-event-type.js +1 -1
- package/dist/trigger/types.d.ts +13 -1
- package/dist/trigger/types.js +13 -5
- package/dist/webhook/signature.js +1 -1
- package/dist/ws/close-codes.js +1 -1
- package/dist/ws/rate-limiter.js +3 -1
- package/dist/ws/ws-like.js +1 -1
- package/package.json +19 -1
- package/sbom.spdx.json +55 -5
- package/dist/protocol/messages/observe.js +0 -70
- package/dist/protocol/messages/test-run.js +0 -52
- /package/dist/{chunk-gOLHoazu.js → chunk-BTugEXQM.js} +0 -0
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.17",
|
|
6
|
+
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.1.17/6284c0d2-b9a6-423e-bed6-92121170fef3",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-06-
|
|
8
|
+
"created": "2026-06-14T12:30:15Z",
|
|
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.17",
|
|
58
58
|
"downloadLocation": "NOASSERTION",
|
|
59
59
|
"filesAnalyzed": false,
|
|
60
60
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -65,12 +65,52 @@
|
|
|
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.17"
|
|
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.",
|
|
72
72
|
"homepage": "https://kici.dev"
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"SPDXID": "SPDXRef-Package-fast-cartesian-9.0.1",
|
|
76
|
+
"name": "fast-cartesian",
|
|
77
|
+
"versionInfo": "9.0.1",
|
|
78
|
+
"downloadLocation": "https://registry.npmjs.org/fast-cartesian/-/fast-cartesian-9.0.1.tgz",
|
|
79
|
+
"filesAnalyzed": false,
|
|
80
|
+
"licenseConcluded": "NOASSERTION",
|
|
81
|
+
"licenseDeclared": "Apache-2.0",
|
|
82
|
+
"copyrightText": "NOASSERTION",
|
|
83
|
+
"supplier": "NOASSERTION",
|
|
84
|
+
"externalRefs": [
|
|
85
|
+
{
|
|
86
|
+
"referenceCategory": "PACKAGE-MANAGER",
|
|
87
|
+
"referenceType": "purl",
|
|
88
|
+
"referenceLocator": "pkg:npm/fast-cartesian@9.0.1"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"description": "Fast cartesian product",
|
|
92
|
+
"homepage": "https://www.github.com/ehmicky/fast-cartesian"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"SPDXID": "SPDXRef-Package-jose-6.2.3",
|
|
96
|
+
"name": "jose",
|
|
97
|
+
"versionInfo": "6.2.3",
|
|
98
|
+
"downloadLocation": "https://registry.npmjs.org/jose/-/jose-6.2.3.tgz",
|
|
99
|
+
"filesAnalyzed": false,
|
|
100
|
+
"licenseConcluded": "NOASSERTION",
|
|
101
|
+
"licenseDeclared": "MIT",
|
|
102
|
+
"copyrightText": "NOASSERTION",
|
|
103
|
+
"supplier": "NOASSERTION",
|
|
104
|
+
"externalRefs": [
|
|
105
|
+
{
|
|
106
|
+
"referenceCategory": "PACKAGE-MANAGER",
|
|
107
|
+
"referenceType": "purl",
|
|
108
|
+
"referenceLocator": "pkg:npm/jose@6.2.3"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"description": "JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",
|
|
112
|
+
"homepage": "https://github.com/panva/jose"
|
|
113
|
+
},
|
|
74
114
|
{
|
|
75
115
|
"SPDXID": "SPDXRef-Package-jsep-1.4.0",
|
|
76
116
|
"name": "jsep",
|
|
@@ -168,6 +208,16 @@
|
|
|
168
208
|
"relatedSpdxElement": "SPDXRef-Package-jsep-1.4.0",
|
|
169
209
|
"relationshipType": "DEPENDS_ON"
|
|
170
210
|
},
|
|
211
|
+
{
|
|
212
|
+
"spdxElementId": "SPDXRef-RootPackage",
|
|
213
|
+
"relatedSpdxElement": "SPDXRef-Package-fast-cartesian-9.0.1",
|
|
214
|
+
"relationshipType": "DEPENDS_ON"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"spdxElementId": "SPDXRef-RootPackage",
|
|
218
|
+
"relatedSpdxElement": "SPDXRef-Package-jose-6.2.3",
|
|
219
|
+
"relationshipType": "DEPENDS_ON"
|
|
220
|
+
},
|
|
171
221
|
{
|
|
172
222
|
"spdxElementId": "SPDXRef-RootPackage",
|
|
173
223
|
"relatedSpdxElement": "SPDXRef-Package-jsonpath-plus-10.4.0",
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import "../../chunk-gOLHoazu.js";
|
|
2
|
-
import { ExecutionRunStatus } from "./execution-status.js";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
//#region src/protocol/messages/observe.ts
|
|
5
|
-
/** Subscribe to observe a running test execution. */
|
|
6
|
-
const observeSubscribeSchema = z.object({
|
|
7
|
-
type: z.literal("observe.subscribe"),
|
|
8
|
-
runId: z.string(),
|
|
9
|
-
token: z.string(),
|
|
10
|
-
lastSeenSequence: z.number().optional()
|
|
11
|
-
});
|
|
12
|
-
/** Run status update sent to observer. */
|
|
13
|
-
const observeStatusSchema = z.object({
|
|
14
|
-
type: z.literal("observe.status"),
|
|
15
|
-
runId: z.string(),
|
|
16
|
-
status: ExecutionRunStatus,
|
|
17
|
-
jobName: z.string().optional(),
|
|
18
|
-
timestamp: z.number()
|
|
19
|
-
});
|
|
20
|
-
/** Log chunk sent to observer. */
|
|
21
|
-
const observeLogSchema = z.object({
|
|
22
|
-
type: z.literal("observe.log"),
|
|
23
|
-
runId: z.string(),
|
|
24
|
-
jobId: z.string(),
|
|
25
|
-
jobName: z.string(),
|
|
26
|
-
stepIndex: z.number(),
|
|
27
|
-
stepName: z.string(),
|
|
28
|
-
lines: z.array(z.string()),
|
|
29
|
-
sequence: z.number(),
|
|
30
|
-
timestamp: z.number()
|
|
31
|
-
});
|
|
32
|
-
/** Step lifecycle event sent to observer. */
|
|
33
|
-
const observeStepSchema = z.object({
|
|
34
|
-
type: z.literal("observe.step"),
|
|
35
|
-
runId: z.string(),
|
|
36
|
-
jobId: z.string(),
|
|
37
|
-
jobName: z.string(),
|
|
38
|
-
stepName: z.string(),
|
|
39
|
-
state: z.enum([
|
|
40
|
-
"pending",
|
|
41
|
-
"running",
|
|
42
|
-
"success",
|
|
43
|
-
"failed",
|
|
44
|
-
"skipped"
|
|
45
|
-
]),
|
|
46
|
-
durationMs: z.number().optional(),
|
|
47
|
-
timestamp: z.number()
|
|
48
|
-
});
|
|
49
|
-
/** Run completion summary sent to observer. */
|
|
50
|
-
const observeCompleteSchema = z.object({
|
|
51
|
-
type: z.literal("observe.complete"),
|
|
52
|
-
runId: z.string(),
|
|
53
|
-
status: z.enum([
|
|
54
|
-
"success",
|
|
55
|
-
"failed",
|
|
56
|
-
"cancelled"
|
|
57
|
-
]),
|
|
58
|
-
summary: z.object({
|
|
59
|
-
totalDurationMs: z.number(),
|
|
60
|
-
jobs: z.array(z.object({
|
|
61
|
-
name: z.string(),
|
|
62
|
-
status: z.string(),
|
|
63
|
-
durationMs: z.number().optional()
|
|
64
|
-
}))
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
//#endregion
|
|
68
|
-
export { observeCompleteSchema, observeLogSchema, observeStatusSchema, observeStepSchema, observeSubscribeSchema };
|
|
69
|
-
|
|
70
|
-
//# sourceMappingURL=observe.js.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import "../../chunk-gOLHoazu.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
//#region src/protocol/messages/test-run.ts
|
|
4
|
-
/** Simulated event shape embedded in test trigger messages. */
|
|
5
|
-
const testEventSchema = z.object({
|
|
6
|
-
type: z.string(),
|
|
7
|
-
action: z.string().optional(),
|
|
8
|
-
targetBranch: z.string(),
|
|
9
|
-
sourceBranch: z.string().optional(),
|
|
10
|
-
payload: z.record(z.string(), z.unknown()),
|
|
11
|
-
changedFiles: z.array(z.string()).optional()
|
|
12
|
-
});
|
|
13
|
-
/** Test trigger sent by CLI to orchestrator to initiate a test run. */
|
|
14
|
-
const testTriggerSchema = z.object({
|
|
15
|
-
type: z.literal("test.trigger"),
|
|
16
|
-
messageId: z.string(),
|
|
17
|
-
fixtureId: z.string(),
|
|
18
|
-
event: testEventSchema,
|
|
19
|
-
uploadId: z.string().optional(),
|
|
20
|
-
routingKey: z.string(),
|
|
21
|
-
secrets: z.record(z.string(), z.string()).optional(),
|
|
22
|
-
workflowName: z.string().optional()
|
|
23
|
-
});
|
|
24
|
-
/** Test trigger response from orchestrator to CLI. */
|
|
25
|
-
const testTriggerResponseSchema = z.object({
|
|
26
|
-
type: z.literal("test.trigger.response"),
|
|
27
|
-
messageId: z.string(),
|
|
28
|
-
runId: z.string(),
|
|
29
|
-
observeUrl: z.string(),
|
|
30
|
-
status: z.enum(["accepted", "rejected"]),
|
|
31
|
-
reason: z.string().optional()
|
|
32
|
-
});
|
|
33
|
-
/** Test cancel request sent by CLI to orchestrator. */
|
|
34
|
-
const testCancelSchema = z.object({
|
|
35
|
-
type: z.literal("test.cancel"),
|
|
36
|
-
messageId: z.string(),
|
|
37
|
-
runId: z.string()
|
|
38
|
-
});
|
|
39
|
-
/** Test cancel response from orchestrator to CLI. */
|
|
40
|
-
const testCancelResponseSchema = z.object({
|
|
41
|
-
type: z.literal("test.cancel.response"),
|
|
42
|
-
messageId: z.string(),
|
|
43
|
-
status: z.enum([
|
|
44
|
-
"cancelled",
|
|
45
|
-
"not_found",
|
|
46
|
-
"already_complete"
|
|
47
|
-
])
|
|
48
|
-
});
|
|
49
|
-
//#endregion
|
|
50
|
-
export { testCancelResponseSchema, testCancelSchema, testEventSchema, testTriggerResponseSchema, testTriggerSchema };
|
|
51
|
-
|
|
52
|
-
//# sourceMappingURL=test-run.js.map
|
|
File without changes
|