@kici-dev/shared 0.7.0 → 0.8.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/dist/cold-store/cold-store.js +4 -4
- package/dist/cold-store/index.d.ts +1 -1
- package/dist/cold-store/index.js +2 -2
- package/dist/cold-store/metrics.d.ts +17 -1
- package/dist/cold-store/metrics.js +17 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/sbom.spdx.json +25 -25
|
@@ -5,7 +5,7 @@ import { coldDaysToBucket, isLongerColdRetention } from "./bucket.js";
|
|
|
5
5
|
import { computeChunkId } from "./chunk-id.js";
|
|
6
6
|
import { decodeChunk, encodeChunk } from "./chunk-encoder.js";
|
|
7
7
|
import { parseManifest, serializeManifest } from "./manifest.js";
|
|
8
|
-
import { coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal } from "./metrics.js";
|
|
8
|
+
import { ColdStoreCycleResult, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal } from "./metrics.js";
|
|
9
9
|
import { resolveTableConfig } from "./config.js";
|
|
10
10
|
import { sha256 } from "@kici-dev/core";
|
|
11
11
|
import { DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand } from "@aws-sdk/client-s3";
|
|
@@ -154,14 +154,14 @@ var BaseColdStore = class {
|
|
|
154
154
|
summary.skipped.disabled += 1;
|
|
155
155
|
coldStoreArchiveCyclesTotal().add(1, {
|
|
156
156
|
db: this.db,
|
|
157
|
-
result:
|
|
157
|
+
result: ColdStoreCycleResult.enum.disabled
|
|
158
158
|
});
|
|
159
159
|
return summary;
|
|
160
160
|
}
|
|
161
161
|
if (this.adapters.size === 0) {
|
|
162
162
|
coldStoreArchiveCyclesTotal().add(1, {
|
|
163
163
|
db: this.db,
|
|
164
|
-
result:
|
|
164
|
+
result: ColdStoreCycleResult.enum.no_tables
|
|
165
165
|
});
|
|
166
166
|
summary.skipped.no_tables += 1;
|
|
167
167
|
this.log("info", "cold-store cycle: no adapters registered", {
|
|
@@ -178,7 +178,7 @@ var BaseColdStore = class {
|
|
|
178
178
|
await this.processAdapter(adapter, summary);
|
|
179
179
|
summary.tablesProcessed += 1;
|
|
180
180
|
}
|
|
181
|
-
const cycleResult = summary.rowsFailed > 0 ?
|
|
181
|
+
const cycleResult = summary.rowsFailed > 0 ? ColdStoreCycleResult.enum.failure : summary.chunksWritten > 0 ? ColdStoreCycleResult.enum.success : ColdStoreCycleResult.enum.no_tables;
|
|
182
182
|
coldStoreArchiveCyclesTotal().add(1, {
|
|
183
183
|
db: this.db,
|
|
184
184
|
result: cycleResult
|
|
@@ -14,7 +14,7 @@ export { computeChunkId } from './chunk-id.js';
|
|
|
14
14
|
export { decodeChunk, encodeChunk, type DecodeChunkArgs, type EncodeChunkArgs, type EncodedChunk, } from './chunk-encoder.js';
|
|
15
15
|
export { parseManifest, serializeManifest } from './manifest.js';
|
|
16
16
|
export { DEFAULT_TABLE_CONFIG, resolveTableConfig, type ColdStoreConfig, type ColdStoreTableConfig, } from './config.js';
|
|
17
|
-
export { coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, } from './metrics.js';
|
|
17
|
+
export { ColdStoreCycleResult, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, } from './metrics.js';
|
|
18
18
|
export { type ChunkCommitMetadata, type EligiblePartition, type TableAdapter, } from './table-adapter.js';
|
|
19
19
|
export { type ArchiveCycleSummary, type ChunkManifest, type ColdRetention } from './types.js';
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cold-store/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { COLD_BUCKET_NAMES, coldDaysToBucket, isLongerColdRetention } from "./bu
|
|
|
4
4
|
import { computeChunkId } from "./chunk-id.js";
|
|
5
5
|
import { decodeChunk, encodeChunk } from "./chunk-encoder.js";
|
|
6
6
|
import { parseManifest, serializeManifest } from "./manifest.js";
|
|
7
|
-
import { coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal } from "./metrics.js";
|
|
7
|
+
import { ColdStoreCycleResult, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal } from "./metrics.js";
|
|
8
8
|
import { DEFAULT_TABLE_CONFIG, resolveTableConfig } from "./config.js";
|
|
9
9
|
import { BaseColdStore } from "./cold-store.js";
|
|
10
10
|
import { ChunkLru } from "./lru.js";
|
|
11
|
-
export { BaseColdStore, COLD_BUCKET_NAMES, ChunkLru, DEFAULT_TABLE_CONFIG, chunkObjectKey, coldDaysToBucket, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, computeChunkId, decodeChunk, encodeChunk, encodeKeySegment, isLongerColdRetention, parseManifest, resolveTableConfig, serializeManifest, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix };
|
|
11
|
+
export { BaseColdStore, COLD_BUCKET_NAMES, ChunkLru, ColdStoreCycleResult, DEFAULT_TABLE_CONFIG, chunkObjectKey, coldDaysToBucket, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, computeChunkId, decodeChunk, encodeChunk, encodeKeySegment, isLongerColdRetention, parseManifest, resolveTableConfig, serializeManifest, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix };
|
|
@@ -28,12 +28,28 @@
|
|
|
28
28
|
* guarantees we resolve AFTER telemetry is wired up.
|
|
29
29
|
*/
|
|
30
30
|
import type { Counter, Histogram } from '@opentelemetry/api';
|
|
31
|
+
import { z } from 'zod';
|
|
32
|
+
/**
|
|
33
|
+
* The `result` label of {@link coldStoreArchiveCyclesTotal}: what one
|
|
34
|
+
* `runArchiveCycle()` tick concluded. `disabled` and `no_tables` are the
|
|
35
|
+
* cycle stopping before any adapter runs (config gate off / nothing
|
|
36
|
+
* registered); `success` wrote at least one chunk; `no_tables` is also what a
|
|
37
|
+
* complete pass reports when every adapter ran and none had a row to move;
|
|
38
|
+
* `failure` had a row fail to archive.
|
|
39
|
+
*/
|
|
40
|
+
export declare const ColdStoreCycleResult: z.ZodEnum<{
|
|
41
|
+
disabled: "disabled";
|
|
42
|
+
failure: "failure";
|
|
43
|
+
no_tables: "no_tables";
|
|
44
|
+
success: "success";
|
|
45
|
+
}>;
|
|
46
|
+
export type ColdStoreCycleResult = z.infer<typeof ColdStoreCycleResult>;
|
|
31
47
|
/**
|
|
32
48
|
* Cycles that `runArchiveCycle()` has completed, labeled by outcome.
|
|
33
49
|
* Always incremented by 1 on every tick — guaranteed-visible proof
|
|
34
50
|
* that the cold-store subsystem is registered and running.
|
|
35
51
|
*
|
|
36
|
-
* `result`
|
|
52
|
+
* `result` is a {@link ColdStoreCycleResult}.
|
|
37
53
|
*/
|
|
38
54
|
export declare function coldStoreArchiveCyclesTotal(): Counter;
|
|
39
55
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../rolldown-runtime-ClRpJifh.js";
|
|
2
2
|
import { createMeter } from "../telemetry/metrics.js";
|
|
3
|
+
import { z } from "zod";
|
|
3
4
|
//#region src/cold-store/metrics.ts
|
|
4
5
|
let _meter;
|
|
5
6
|
function meter() {
|
|
@@ -20,11 +21,25 @@ let _purgeChunksTotal;
|
|
|
20
21
|
let _purgeBytesTotal;
|
|
21
22
|
let _purgeDurationSeconds;
|
|
22
23
|
/**
|
|
24
|
+
* The `result` label of {@link coldStoreArchiveCyclesTotal}: what one
|
|
25
|
+
* `runArchiveCycle()` tick concluded. `disabled` and `no_tables` are the
|
|
26
|
+
* cycle stopping before any adapter runs (config gate off / nothing
|
|
27
|
+
* registered); `success` wrote at least one chunk; `no_tables` is also what a
|
|
28
|
+
* complete pass reports when every adapter ran and none had a row to move;
|
|
29
|
+
* `failure` had a row fail to archive.
|
|
30
|
+
*/
|
|
31
|
+
const ColdStoreCycleResult = z.enum([
|
|
32
|
+
"disabled",
|
|
33
|
+
"no_tables",
|
|
34
|
+
"success",
|
|
35
|
+
"failure"
|
|
36
|
+
]);
|
|
37
|
+
/**
|
|
23
38
|
* Cycles that `runArchiveCycle()` has completed, labeled by outcome.
|
|
24
39
|
* Always incremented by 1 on every tick — guaranteed-visible proof
|
|
25
40
|
* that the cold-store subsystem is registered and running.
|
|
26
41
|
*
|
|
27
|
-
* `result`
|
|
42
|
+
* `result` is a {@link ColdStoreCycleResult}.
|
|
28
43
|
*/
|
|
29
44
|
function coldStoreArchiveCyclesTotal() {
|
|
30
45
|
if (!_archiveCyclesTotal) _archiveCyclesTotal = meter().createCounter("cold_store_archive_cycles_total", { description: "Completed archive cycles by db and outcome" });
|
|
@@ -174,6 +189,6 @@ function coldStorePurgeDurationSeconds() {
|
|
|
174
189
|
return _purgeDurationSeconds;
|
|
175
190
|
}
|
|
176
191
|
//#endregion
|
|
177
|
-
export { coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal };
|
|
192
|
+
export { ColdStoreCycleResult, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal };
|
|
178
193
|
|
|
179
194
|
//# sourceMappingURL=metrics.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export { setupGracefulShutdown, type ShutdownStep, type ShutdownLogger, type Shu
|
|
|
15
15
|
export { validateRequiredTools, type ToolRequirement } from './tool-check.js';
|
|
16
16
|
export { kiciTmpBase, kiciMkdtemp } from './tmp-dir.js';
|
|
17
17
|
export { createS3Client, type CreateS3ClientOptions, type SharedS3Config } from './s3-client.js';
|
|
18
|
-
export { BaseColdStore, ChunkLru, COLD_BUCKET_NAMES, DEFAULT_TABLE_CONFIG, chunkObjectKey, coldDaysToBucket, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, computeChunkId, decodeChunk, encodeChunk, encodeKeySegment, isLongerColdRetention, parseManifest, resolveTableConfig, serializeManifest, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix, type ArchiveCycleSummary, type BaseColdStoreDeps, type ChunkCommitMetadata, type ChunkLruOptions, type ChunkManifest, type ColdBucketName, type ColdRetention, type ColdStore, type ColdStoreConfig, type ColdStoreFetchRangeArgs, type ColdStoreReplayChunkArgs, type ColdStoreReplayResult, type ColdStoreReplayRowArgs, type ColdStoreTableConfig, type DbKind, type DecodeChunkArgs, type EligiblePartition, type EncodeChunkArgs, type EncodedChunk, type PurgeableChunk, type PurgeChunkResult, type PurgeExpiredChunksOpts, type PurgeExpiredChunksSummary, type TableAdapter, } from './cold-store/index.js';
|
|
18
|
+
export { BaseColdStore, ChunkLru, COLD_BUCKET_NAMES, DEFAULT_TABLE_CONFIG, chunkObjectKey, coldDaysToBucket, coldStoreArchiveBytesTotal, ColdStoreCycleResult, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, computeChunkId, decodeChunk, encodeChunk, encodeKeySegment, isLongerColdRetention, parseManifest, resolveTableConfig, serializeManifest, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix, type ArchiveCycleSummary, type BaseColdStoreDeps, type ChunkCommitMetadata, type ChunkLruOptions, type ChunkManifest, type ColdBucketName, type ColdRetention, type ColdStore, type ColdStoreConfig, type ColdStoreFetchRangeArgs, type ColdStoreReplayChunkArgs, type ColdStoreReplayResult, type ColdStoreReplayRowArgs, type ColdStoreTableConfig, type DbKind, type DecodeChunkArgs, type EligiblePartition, type EncodeChunkArgs, type EncodedChunk, type PurgeableChunk, type PurgeChunkResult, type PurgeExpiredChunksOpts, type PurgeExpiredChunksSummary, type TableAdapter, } from './cold-store/index.js';
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -22,10 +22,10 @@ import { COLD_BUCKET_NAMES, coldDaysToBucket, isLongerColdRetention } from "./co
|
|
|
22
22
|
import { computeChunkId } from "./cold-store/chunk-id.js";
|
|
23
23
|
import { decodeChunk, encodeChunk } from "./cold-store/chunk-encoder.js";
|
|
24
24
|
import { parseManifest, serializeManifest } from "./cold-store/manifest.js";
|
|
25
|
-
import { coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal } from "./cold-store/metrics.js";
|
|
25
|
+
import { ColdStoreCycleResult, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal } from "./cold-store/metrics.js";
|
|
26
26
|
import { DEFAULT_TABLE_CONFIG, resolveTableConfig } from "./cold-store/config.js";
|
|
27
27
|
import { BaseColdStore } from "./cold-store/cold-store.js";
|
|
28
28
|
import { ChunkLru } from "./cold-store/lru.js";
|
|
29
29
|
import "./cold-store/index.js";
|
|
30
30
|
export * from "@kici-dev/core";
|
|
31
|
-
export { AgentDeliveryMode, AgentPlatform, BaseColdStore, BundleChunkAssembler, COLD_BUCKET_NAMES, ChunkLru, ChunkRequestWaiter, DEFAULT_TABLE_CONFIG, FLEET_CHUNK_BYTES, MAX_LOG_BYTES, MIGRATION_HASH_TABLE, REGISTERABLE_TRIGGER_TYPES, RingBuffer, addLogsToArchive, chunkBuffer, chunkObjectKey, clearDispatchQueueDirect, coldDaysToBucket, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, collectRuntimeMetricNames, computeChunkId, computeMigrationsHash, createContextTemplateDirect, createDb, createDbRole, createHealthRoutes, createMeter, createMetricsRoutes, createPool, createReadOnlyDbUser, createS3Client, decodeChunk, decrypt, deleteContextDirect, deriveKey, dropAndCreateDatabase, emitKiciEventDirect, encodeChunk, encodeKeySegment, encrypt, ensureDatabase, generateMasterKey, getPrometheusExporter, getReconnectDelay, initTelemetry, isLongerColdRetention, isPgUniqueViolation, isPoolAcquireTimeout, isSchemaCurrent, kiciMkdtemp, kiciTmpBase, listCheckRunTrackingDirect, listContextsDirect, listExecutionRunsDirect, listQueueDirect, listRegistrationsDirect, maskDatabaseUrl, parseDatabaseUrl, parseManifest, prunePeerCredentialsDirect, purgeContextsDirect, purgeScopedSecretsDirect, purgeSecretBackendsDirect, purgeStaleExecutionDirect, purgeStaleSourcesDirect, readStoredMigrationContentHash, registerWorkflowManualDirect, resetRaftStateDirect, resolveTableConfig, seedContextBindingDirect, seedContextDirect, serializeManifest, setContextPolicyDirect, setContextSecretDirect, setupGracefulShutdown, showContextDirect, showExecutionRunDirect, showQueueEntryDirect, showRegistrationDirect, splitAgentPlatform, storeMigrationContentHash, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix, validateRequiredTools };
|
|
31
|
+
export { AgentDeliveryMode, AgentPlatform, BaseColdStore, BundleChunkAssembler, COLD_BUCKET_NAMES, ChunkLru, ChunkRequestWaiter, ColdStoreCycleResult, DEFAULT_TABLE_CONFIG, FLEET_CHUNK_BYTES, MAX_LOG_BYTES, MIGRATION_HASH_TABLE, REGISTERABLE_TRIGGER_TYPES, RingBuffer, addLogsToArchive, chunkBuffer, chunkObjectKey, clearDispatchQueueDirect, coldDaysToBucket, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, collectRuntimeMetricNames, computeChunkId, computeMigrationsHash, createContextTemplateDirect, createDb, createDbRole, createHealthRoutes, createMeter, createMetricsRoutes, createPool, createReadOnlyDbUser, createS3Client, decodeChunk, decrypt, deleteContextDirect, deriveKey, dropAndCreateDatabase, emitKiciEventDirect, encodeChunk, encodeKeySegment, encrypt, ensureDatabase, generateMasterKey, getPrometheusExporter, getReconnectDelay, initTelemetry, isLongerColdRetention, isPgUniqueViolation, isPoolAcquireTimeout, isSchemaCurrent, kiciMkdtemp, kiciTmpBase, listCheckRunTrackingDirect, listContextsDirect, listExecutionRunsDirect, listQueueDirect, listRegistrationsDirect, maskDatabaseUrl, parseDatabaseUrl, parseManifest, prunePeerCredentialsDirect, purgeContextsDirect, purgeScopedSecretsDirect, purgeSecretBackendsDirect, purgeStaleExecutionDirect, purgeStaleSourcesDirect, readStoredMigrationContentHash, registerWorkflowManualDirect, resetRaftStateDirect, resolveTableConfig, seedContextBindingDirect, seedContextDirect, serializeManifest, setContextPolicyDirect, setContextSecretDirect, setupGracefulShutdown, showContextDirect, showExecutionRunDirect, showQueueEntryDirect, showRegistrationDirect, splitAgentPlatform, storeMigrationContentHash, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix, validateRequiredTools };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Shared utilities for the KiCI CI/CD stack — logging, zx setup, crypto, telemetry, health and metrics routes. No business logic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"yaml": "^2.9.0",
|
|
122
122
|
"zod": "^4.4.3",
|
|
123
123
|
"zx": "^8.8.5",
|
|
124
|
-
"@kici-dev/core": "0.
|
|
125
|
-
"@kici-dev/engine": "0.
|
|
124
|
+
"@kici-dev/core": "0.8.0",
|
|
125
|
+
"@kici-dev/engine": "0.8.0"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
128
|
"@opentelemetry/sdk-trace-base": "^2.10.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/shared@0.
|
|
6
|
-
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fshared/0.
|
|
5
|
+
"name": "@kici-dev/shared@0.8.0",
|
|
6
|
+
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fshared/0.8.0/a8356848-d54a-48c8-b8e1-f1cad84fe40d",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-09-
|
|
8
|
+
"created": "2026-09-13T12:24:28Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: kici-sbom-generator"
|
|
11
11
|
]
|
|
@@ -564,9 +564,9 @@
|
|
|
564
564
|
"homepage": "https://ericsmekens.github.io/jsep/tree/master/packages/regex#readme"
|
|
565
565
|
},
|
|
566
566
|
{
|
|
567
|
-
"SPDXID": "SPDXRef-Package--kici-dev-core-0.
|
|
567
|
+
"SPDXID": "SPDXRef-Package--kici-dev-core-0.8.0",
|
|
568
568
|
"name": "@kici-dev/core",
|
|
569
|
-
"versionInfo": "0.
|
|
569
|
+
"versionInfo": "0.8.0",
|
|
570
570
|
"downloadLocation": "NOASSERTION",
|
|
571
571
|
"filesAnalyzed": false,
|
|
572
572
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -577,16 +577,16 @@
|
|
|
577
577
|
{
|
|
578
578
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
579
579
|
"referenceType": "purl",
|
|
580
|
-
"referenceLocator": "pkg:npm/%40kici-dev/core@0.
|
|
580
|
+
"referenceLocator": "pkg:npm/%40kici-dev/core@0.8.0"
|
|
581
581
|
}
|
|
582
582
|
],
|
|
583
583
|
"description": "Light shared utilities for the KiCI stack (logging, errors, formatting, crypto, zx init, the TypeScript ESM loader hook). No server-side dependencies.",
|
|
584
584
|
"homepage": "https://kici.dev"
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
|
-
"SPDXID": "SPDXRef-Package--kici-dev-engine-0.
|
|
587
|
+
"SPDXID": "SPDXRef-Package--kici-dev-engine-0.8.0",
|
|
588
588
|
"name": "@kici-dev/engine",
|
|
589
|
-
"versionInfo": "0.
|
|
589
|
+
"versionInfo": "0.8.0",
|
|
590
590
|
"downloadLocation": "NOASSERTION",
|
|
591
591
|
"filesAnalyzed": false,
|
|
592
592
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
{
|
|
598
598
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
599
599
|
"referenceType": "purl",
|
|
600
|
-
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.
|
|
600
|
+
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.8.0"
|
|
601
601
|
}
|
|
602
602
|
],
|
|
603
603
|
"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.",
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
{
|
|
607
607
|
"SPDXID": "SPDXRef-RootPackage",
|
|
608
608
|
"name": "@kici-dev/shared",
|
|
609
|
-
"versionInfo": "0.
|
|
609
|
+
"versionInfo": "0.8.0",
|
|
610
610
|
"downloadLocation": "NOASSERTION",
|
|
611
611
|
"filesAnalyzed": false,
|
|
612
612
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
{
|
|
618
618
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
619
619
|
"referenceType": "purl",
|
|
620
|
-
"referenceLocator": "pkg:npm/%40kici-dev/shared@0.
|
|
620
|
+
"referenceLocator": "pkg:npm/%40kici-dev/shared@0.8.0"
|
|
621
621
|
}
|
|
622
622
|
],
|
|
623
623
|
"description": "Shared utilities for the KiCI CI/CD stack — logging, zx setup, crypto, telemetry, health and metrics routes. No business logic.",
|
|
@@ -4896,62 +4896,62 @@
|
|
|
4896
4896
|
"relationshipType": "DEPENDS_ON"
|
|
4897
4897
|
},
|
|
4898
4898
|
{
|
|
4899
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.
|
|
4899
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.8.0",
|
|
4900
4900
|
"relatedSpdxElement": "SPDXRef-Package-oxc-transform-0.140.0",
|
|
4901
4901
|
"relationshipType": "DEPENDS_ON"
|
|
4902
4902
|
},
|
|
4903
4903
|
{
|
|
4904
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.
|
|
4904
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.8.0",
|
|
4905
4905
|
"relatedSpdxElement": "SPDXRef-Package-picocolors-1.1.1",
|
|
4906
4906
|
"relationshipType": "DEPENDS_ON"
|
|
4907
4907
|
},
|
|
4908
4908
|
{
|
|
4909
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.
|
|
4909
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.8.0",
|
|
4910
4910
|
"relatedSpdxElement": "SPDXRef-Package-winston-daily-rotate-file-5.0.0",
|
|
4911
4911
|
"relationshipType": "DEPENDS_ON"
|
|
4912
4912
|
},
|
|
4913
4913
|
{
|
|
4914
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.
|
|
4914
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.8.0",
|
|
4915
4915
|
"relatedSpdxElement": "SPDXRef-Package-winston-3.19.0",
|
|
4916
4916
|
"relationshipType": "DEPENDS_ON"
|
|
4917
4917
|
},
|
|
4918
4918
|
{
|
|
4919
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.
|
|
4919
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.8.0",
|
|
4920
4920
|
"relatedSpdxElement": "SPDXRef-Package-zod-4.4.3",
|
|
4921
4921
|
"relationshipType": "DEPENDS_ON"
|
|
4922
4922
|
},
|
|
4923
4923
|
{
|
|
4924
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.
|
|
4924
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.8.0",
|
|
4925
4925
|
"relatedSpdxElement": "SPDXRef-Package-zx-8.8.5",
|
|
4926
4926
|
"relationshipType": "DEPENDS_ON"
|
|
4927
4927
|
},
|
|
4928
4928
|
{
|
|
4929
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.
|
|
4929
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.8.0",
|
|
4930
4930
|
"relatedSpdxElement": "SPDXRef-Package-jose-6.2.10",
|
|
4931
4931
|
"relationshipType": "DEPENDS_ON"
|
|
4932
4932
|
},
|
|
4933
4933
|
{
|
|
4934
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.
|
|
4934
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.8.0",
|
|
4935
4935
|
"relatedSpdxElement": "SPDXRef-Package-jsonpath-plus-10.4.0",
|
|
4936
4936
|
"relationshipType": "DEPENDS_ON"
|
|
4937
4937
|
},
|
|
4938
4938
|
{
|
|
4939
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.
|
|
4939
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.8.0",
|
|
4940
4940
|
"relatedSpdxElement": "SPDXRef-Package-picomatch-4.0.7",
|
|
4941
4941
|
"relationshipType": "DEPENDS_ON"
|
|
4942
4942
|
},
|
|
4943
4943
|
{
|
|
4944
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.
|
|
4944
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.8.0",
|
|
4945
4945
|
"relatedSpdxElement": "SPDXRef-Package-safe-regex-2.1.1",
|
|
4946
4946
|
"relationshipType": "DEPENDS_ON"
|
|
4947
4947
|
},
|
|
4948
4948
|
{
|
|
4949
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.
|
|
4949
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.8.0",
|
|
4950
4950
|
"relatedSpdxElement": "SPDXRef-Package-yaml-2.9.0",
|
|
4951
4951
|
"relationshipType": "DEPENDS_ON"
|
|
4952
4952
|
},
|
|
4953
4953
|
{
|
|
4954
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.
|
|
4954
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.8.0",
|
|
4955
4955
|
"relatedSpdxElement": "SPDXRef-Package-zod-4.4.3",
|
|
4956
4956
|
"relationshipType": "DEPENDS_ON"
|
|
4957
4957
|
},
|
|
@@ -4962,12 +4962,12 @@
|
|
|
4962
4962
|
},
|
|
4963
4963
|
{
|
|
4964
4964
|
"spdxElementId": "SPDXRef-RootPackage",
|
|
4965
|
-
"relatedSpdxElement": "SPDXRef-Package--kici-dev-core-0.
|
|
4965
|
+
"relatedSpdxElement": "SPDXRef-Package--kici-dev-core-0.8.0",
|
|
4966
4966
|
"relationshipType": "DEPENDS_ON"
|
|
4967
4967
|
},
|
|
4968
4968
|
{
|
|
4969
4969
|
"spdxElementId": "SPDXRef-RootPackage",
|
|
4970
|
-
"relatedSpdxElement": "SPDXRef-Package--kici-dev-engine-0.
|
|
4970
|
+
"relatedSpdxElement": "SPDXRef-Package--kici-dev-engine-0.8.0",
|
|
4971
4971
|
"relationshipType": "DEPENDS_ON"
|
|
4972
4972
|
},
|
|
4973
4973
|
{
|