@kici-dev/shared 0.7.0 → 0.9.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/idempotency-files.d.ts +7 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +17 -17
- package/sbom.spdx.json +758 -975
|
@@ -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
|
|
@@ -63,6 +63,13 @@ export interface FileDriftEntry {
|
|
|
63
63
|
remoteContent?: string;
|
|
64
64
|
/** Set when content capture was intentionally skipped — used by the renderer to explain the gap. */
|
|
65
65
|
contentSkipped?: ContentSkipReason;
|
|
66
|
+
/**
|
|
67
|
+
* SHA-256 hex of the remote file bytes. Set for category `content` whenever
|
|
68
|
+
* the box could hash the file — independent of whether the bytes themselves
|
|
69
|
+
* were captured, so a suppressed, over-size or binary payload still has an
|
|
70
|
+
* identity a consumer can compare across previews without holding content.
|
|
71
|
+
*/
|
|
72
|
+
remoteDigest?: string;
|
|
66
73
|
/**
|
|
67
74
|
* Fleet machine the remote side of this comparison lives on. Stamped by the
|
|
68
75
|
* preview helpers, which already know the box. Consumers that aggregate
|
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.9.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",
|
|
@@ -100,39 +100,39 @@
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@aws-sdk/client-s3": "^3.
|
|
103
|
+
"@aws-sdk/client-s3": "^3.1135.0",
|
|
104
104
|
"@opentelemetry/api": "^1.9.1",
|
|
105
|
-
"@opentelemetry/exporter-metrics-otlp-http": "^0.
|
|
106
|
-
"@opentelemetry/exporter-prometheus": "^0.
|
|
107
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
108
|
-
"@opentelemetry/instrumentation-runtime-node": "^0.
|
|
109
|
-
"@opentelemetry/resources": "^2.
|
|
110
|
-
"@opentelemetry/sdk-node": "^0.
|
|
105
|
+
"@opentelemetry/exporter-metrics-otlp-http": "^0.222.0",
|
|
106
|
+
"@opentelemetry/exporter-prometheus": "^0.222.0",
|
|
107
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
|
|
108
|
+
"@opentelemetry/instrumentation-runtime-node": "^0.35.0",
|
|
109
|
+
"@opentelemetry/resources": "^2.11.0",
|
|
110
|
+
"@opentelemetry/sdk-node": "^0.222.0",
|
|
111
111
|
"@opentelemetry/semantic-conventions": "^1.43.0",
|
|
112
112
|
"archiver": "^8.0.0",
|
|
113
113
|
"diff": "^9.0.0",
|
|
114
|
-
"hono": "^4.13.
|
|
114
|
+
"hono": "^4.13.7",
|
|
115
115
|
"kysely": "^0.29.4",
|
|
116
|
-
"oxc-transform": "0.
|
|
116
|
+
"oxc-transform": "0.150.0",
|
|
117
117
|
"pg": "^8.23.0",
|
|
118
118
|
"picocolors": "^1.1.1",
|
|
119
119
|
"winston": "^3.19.0",
|
|
120
120
|
"winston-daily-rotate-file": "^5.0.0",
|
|
121
|
-
"yaml": "^2.9.
|
|
122
|
-
"zod": "^4.
|
|
121
|
+
"yaml": "^2.9.1",
|
|
122
|
+
"zod": "^4.6.5",
|
|
123
123
|
"zx": "^8.8.5",
|
|
124
|
-
"@kici-dev/
|
|
125
|
-
"@kici-dev/
|
|
124
|
+
"@kici-dev/engine": "0.9.0",
|
|
125
|
+
"@kici-dev/core": "0.9.0"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
128
|
+
"@opentelemetry/sdk-trace-base": "^2.11.0",
|
|
129
129
|
"@types/archiver": "^8.0.0",
|
|
130
130
|
"@types/dockerode": "^4.0.1",
|
|
131
131
|
"dockerode": "^5.0.1"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
|
-
"build": "node ../../scripts/build-ts.mjs &&
|
|
134
|
+
"build": "node ../../scripts/build-ts.mjs && tsc --emitDeclarationOnly",
|
|
135
135
|
"test": "vitest run",
|
|
136
|
-
"typecheck": "
|
|
136
|
+
"typecheck": "tsc --noEmit"
|
|
137
137
|
}
|
|
138
138
|
}
|