@kici-dev/agent 0.1.16 → 0.1.18
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/execution/dep-installer.d.ts +12 -3
- package/dist/execution/dep-packer.d.ts +9 -1
- package/dist/execution/env-init/presets/directives.d.ts +20 -0
- package/dist/execution/env-init/presets/expand.d.ts +16 -0
- package/dist/execution/env-init/presets/mise/cache-key.d.ts +7 -0
- package/dist/execution/env-init/presets/mise/expander.d.ts +16 -0
- package/dist/execution/env-init/presets/mise/templates.d.ts +16 -0
- package/dist/execution/env-init/presets/mise/windows-install.d.ts +18 -0
- package/dist/execution/env-init/presets/registry.d.ts +31 -0
- package/dist/execution/init-runner.d.ts +7 -0
- package/dist/execution/job-runner.d.ts +9 -1
- package/dist/execution/sandbox/env-delta.d.ts +2 -0
- package/dist/execution/sandbox/index.d.ts +1 -1
- package/dist/execution/sandbox/ipc-protocol.d.ts +81 -3
- package/dist/execution/sandbox/types.d.ts +9 -1
- package/dist/execution/sandbox/workflow-runner.d.ts +12 -7
- package/dist/execution/validate-kici-deps.d.ts +10 -2
- package/dist/execution/workflow-loader.d.ts +5 -1
- package/dist/execution/workspace-siblings.d.ts +33 -0
- package/dist/execution/yarnrc-berry-config.d.ts +23 -0
- package/dist/index.js +423 -17
- package/dist/provenance/attest.d.ts +30 -0
- package/dist/provenance/sign.d.ts +21 -0
- package/dist/provenance/statement-builder.d.ts +38 -0
- package/dist/server.js +703 -160
- package/dist/version.d.ts +2 -0
- package/dist/workflow-runner.js +955 -59
- package/dist/ws/orchestrator-client.d.ts +16 -1
- package/package.json +14 -12
- package/sbom.spdx.json +2526 -5994
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AgentToOrchestratorMessage, type JobDispatch, type JobCancel, type FleetLogsRequest } from '@kici-dev/engine';
|
|
2
|
-
import type { CacheRequestIpc, CacheResponseIpc, StepApprovalRequestIpc, StepApprovalResolvedIpc } from '../execution/sandbox/index.js';
|
|
2
|
+
import type { CacheRequestIpc, CacheResponseIpc, ProvenanceRequestIpc, ProvenanceResponseIpc, StepApprovalRequestIpc, StepApprovalResolvedIpc } from '../execution/sandbox/index.js';
|
|
3
3
|
export type ConnectionState = 'disconnected' | 'connecting' | 'authenticating' | 'registering' | 'registered';
|
|
4
4
|
export interface OrchestratorClientOptions {
|
|
5
5
|
/** WebSocket URL of the orchestrator. */
|
|
@@ -186,6 +186,14 @@ export declare class OrchestratorClient {
|
|
|
186
186
|
arch: string;
|
|
187
187
|
depsHash?: string;
|
|
188
188
|
}): void;
|
|
189
|
+
/**
|
|
190
|
+
* Request a presigned PUT URL for a provenance bundle. Sends a
|
|
191
|
+
* `provenance.upload.request` and waits for a `provenance.upload.response`
|
|
192
|
+
* (resolved via the shared upload-request pending map). Times out after 30s.
|
|
193
|
+
*/
|
|
194
|
+
requestProvenanceUploadUrl(jobId: string, subjectDigest: string): Promise<string>;
|
|
195
|
+
/** Notify the orchestrator a provenance bundle upload completed (records an attestations row). */
|
|
196
|
+
sendProvenanceUploadComplete(jobId: string, subjectName: string, subjectDigest: string, mediaType: string): void;
|
|
189
197
|
/**
|
|
190
198
|
* Send an event.emit WS message to the orchestrator and await the response.
|
|
191
199
|
*
|
|
@@ -228,6 +236,13 @@ export declare class OrchestratorClient {
|
|
|
228
236
|
* Times out after 30 seconds for the round-trip ops.
|
|
229
237
|
*/
|
|
230
238
|
requestUserCache(jobId: string, request: CacheRequestIpc): Promise<CacheResponseIpc>;
|
|
239
|
+
/**
|
|
240
|
+
* Relay a provenance bundle upload operation to the orchestrator. Maps the
|
|
241
|
+
* IPC `provenance.request` onto `requestProvenanceUploadUrl` (returns the
|
|
242
|
+
* presigned URL) or `sendProvenanceUploadComplete` (fire-and-forget) and
|
|
243
|
+
* returns the result on the IPC response shape.
|
|
244
|
+
*/
|
|
245
|
+
relayProvenance(jobId: string, request: ProvenanceRequestIpc): Promise<ProvenanceResponseIpc>;
|
|
231
246
|
/**
|
|
232
247
|
* Relay a step-level approval request to the orchestrator. Sends a
|
|
233
248
|
* `step.approval-request` WS message and resolves with the orchestrator's
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Customer-deployable agent for the KiCI CI/CD stack. Connects to an orchestrator, clones the workflow repo, executes steps, and streams logs back.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -53,19 +53,21 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@hono/node-server": "^2.0.
|
|
57
|
-
"archiver": "^
|
|
56
|
+
"@hono/node-server": "^2.0.4",
|
|
57
|
+
"archiver": "^8.0.0",
|
|
58
58
|
"dockerode": "^5.0.0",
|
|
59
|
-
"hono": "^4.12.
|
|
60
|
-
"
|
|
59
|
+
"hono": "^4.12.25",
|
|
60
|
+
"jose": "^6.1.0",
|
|
61
|
+
"tar": "^7.5.16",
|
|
61
62
|
"winston": "^3.19.0",
|
|
62
|
-
"ws": "^8.
|
|
63
|
-
"
|
|
63
|
+
"ws": "^8.21.0",
|
|
64
|
+
"yaml": "^2.9.0",
|
|
65
|
+
"zod": "^4.4.3",
|
|
64
66
|
"zx": "^8.8.5",
|
|
65
|
-
"@kici-dev/core": "0.1.
|
|
66
|
-
"@kici-dev/
|
|
67
|
-
"@kici-dev/
|
|
68
|
-
"@kici-dev/
|
|
67
|
+
"@kici-dev/core": "0.1.18",
|
|
68
|
+
"@kici-dev/sdk": "0.1.18",
|
|
69
|
+
"@kici-dev/engine": "0.1.18",
|
|
70
|
+
"@kici-dev/shared": "0.1.18"
|
|
69
71
|
},
|
|
70
72
|
"kici": {
|
|
71
73
|
"metrics": {
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
}
|
|
75
77
|
},
|
|
76
78
|
"devDependencies": {
|
|
77
|
-
"@types/archiver": "^
|
|
79
|
+
"@types/archiver": "^8.0.0",
|
|
78
80
|
"@types/dockerode": "^4.0.1"
|
|
79
81
|
},
|
|
80
82
|
"scripts": {
|