@kici-dev/shared 0.1.27 → 0.2.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/agent-platform.d.ts +32 -0
- package/dist/agent-platform.js +27 -0
- package/dist/agent-platform.test.d.ts +2 -0
- package/dist/ci-env.d.ts +2 -0
- package/dist/ci-env.js +3 -0
- package/dist/cold-store/bucket.d.ts +1 -1
- package/dist/cold-store/cold-store.d.ts +24 -1
- package/dist/cold-store/cold-store.js +17 -5
- package/dist/cold-store/index.js +1 -1
- package/dist/db-admin.d.ts +150 -9
- package/dist/db-admin.js +160 -46
- package/dist/db.d.ts +34 -0
- package/dist/db.js +30 -1
- package/dist/diagnostics/bundle-archive.js +5 -5
- package/dist/env/allowlist.d.ts +5 -0
- package/dist/env/allowlist.js +6 -1
- package/dist/env/define-env.d.ts +19 -2
- package/dist/env/define-env.js +18 -3
- package/dist/env/logger-env.d.ts +11 -9
- package/dist/env/logger-env.js +25 -9
- package/dist/idempotency-files.d.ts +7 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6 -4
- package/dist/telemetry/init.d.ts +18 -7
- package/dist/telemetry/init.js +36 -11
- package/dist/tmp-dir.d.ts +14 -0
- package/dist/tmp-dir.js +13 -0
- package/dist/tmp-dir.test.d.ts +2 -0
- package/dist/tmp.d.ts +2 -0
- package/dist/tmp.js +3 -0
- package/package.json +26 -17
- package/sbom.spdx.json +1222 -1618
package/dist/env/logger-env.js
CHANGED
|
@@ -4,13 +4,14 @@ import { z } from "zod";
|
|
|
4
4
|
/**
|
|
5
5
|
* Shared LoggerEnv schema.
|
|
6
6
|
*
|
|
7
|
-
* The logger (packages/
|
|
8
|
-
* the per-service config loads
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
7
|
+
* The logger (packages/core/src/logger.ts) reads these env vars *before*
|
|
8
|
+
* the per-service config loads — as does `kiciTmpBase()`
|
|
9
|
+
* (packages/core/src/tmp.ts) for the `KICI_TMPDIR` entry below — so we can't
|
|
10
|
+
* include them in the service schemas the normal way. We still want them in
|
|
11
|
+
* `docs/operator/env-reference.md` and in `validateUnknownKiciVars()`'s
|
|
12
|
+
* known-var set, so this schema documents them in one place. Each service
|
|
13
|
+
* includes the keys here when computing its "known KICI_* vars" list, and the
|
|
14
|
+
* docs generator emits a "Logger / shared" section from this schema.
|
|
14
15
|
*
|
|
15
16
|
* IMPORTANT: do not change the runtime behaviour of `logger.ts` from this
|
|
16
17
|
* schema — the schema is documentation + the unknown-var allowlist, not the
|
|
@@ -36,7 +37,13 @@ const LoggerEnvSchema = z.object({
|
|
|
36
37
|
/** Set by the agent process; used as a filename suffix. */
|
|
37
38
|
KICI_AGENT_ID: z.string().optional(),
|
|
38
39
|
/** Set by the platform process; used as a filename suffix. */
|
|
39
|
-
KICI_PLATFORM_INSTANCE_ID: z.string().optional()
|
|
40
|
+
KICI_PLATFORM_INSTANCE_ID: z.string().optional(),
|
|
41
|
+
/**
|
|
42
|
+
* Base directory for KiCI-created temp files (repo clones, build scratch,
|
|
43
|
+
* deploy render dirs). Read by `kiciTmpBase()` before any service config
|
|
44
|
+
* loads; defaults to the OS temp dir when unset.
|
|
45
|
+
*/
|
|
46
|
+
KICI_TMPDIR: z.string().optional()
|
|
40
47
|
});
|
|
41
48
|
/** All env vars the logger reads, for the unknown-KICI-var scanner. */
|
|
42
49
|
const LOGGER_ENV_VARS = [
|
|
@@ -46,7 +53,8 @@ const LOGGER_ENV_VARS = [
|
|
|
46
53
|
"KICI_LOG_FORMAT",
|
|
47
54
|
"KICI_CLUSTER_INSTANCE_ID",
|
|
48
55
|
"KICI_AGENT_ID",
|
|
49
|
-
"KICI_PLATFORM_INSTANCE_ID"
|
|
56
|
+
"KICI_PLATFORM_INSTANCE_ID",
|
|
57
|
+
"KICI_TMPDIR"
|
|
50
58
|
];
|
|
51
59
|
/** Doc-friendly description map (consumed by the env-reference generator). */
|
|
52
60
|
const LOGGER_ENV_FIELD_SPECS = [
|
|
@@ -108,6 +116,14 @@ const LOGGER_ENV_FIELD_SPECS = [
|
|
|
108
116
|
required: false,
|
|
109
117
|
type: "string",
|
|
110
118
|
description: "Stable Platform identifier; appended to the platform log filename so multiple instances can share one KICI_LOG_DIR."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
envVar: "KICI_TMPDIR",
|
|
122
|
+
aliases: [],
|
|
123
|
+
fieldPath: "KICI_TMPDIR",
|
|
124
|
+
required: false,
|
|
125
|
+
type: "string",
|
|
126
|
+
description: "Base directory for KiCI-created temporary files (repo clones, build scratch, deploy render dirs). Defaults to the operating system temp directory. Set it to a path on a volume with free space when the default temp filesystem is small."
|
|
111
127
|
}
|
|
112
128
|
];
|
|
113
129
|
//#endregion
|
|
@@ -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
|
+
* Fleet machine the remote side of this comparison lives on. Stamped by the
|
|
68
|
+
* preview helpers, which already know the box. Consumers that aggregate
|
|
69
|
+
* drift across a whole fleet need it to attribute a file to a machine —
|
|
70
|
+
* `remotePath` alone is identical on every box.
|
|
71
|
+
*/
|
|
72
|
+
box?: string;
|
|
66
73
|
/**
|
|
67
74
|
* Renderer hint. When omitted, the renderer auto-detects from
|
|
68
75
|
* `remotePath`: `.env` → `'env-semantic'`, `.yaml` / `.yml` →
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
export * from '@kici-dev/core';
|
|
2
|
+
export * from './agent-platform.js';
|
|
2
3
|
export { encrypt, decrypt, deriveKey, generateMasterKey, type EncryptedValue, } from './secret-crypto.js';
|
|
3
4
|
export { RingBuffer } from './ring-buffer.js';
|
|
4
5
|
export { redactConfig, addLogsToArchive, MAX_LOG_BYTES } from './diagnostics/bundle-archive.js';
|
|
5
6
|
export { chunkBuffer, BundleChunkAssembler, ChunkRequestWaiter, FLEET_CHUNK_BYTES, type BundleChunkFrame, } from './diagnostics/bundle-chunks.js';
|
|
6
|
-
export { createPool, createDb, type CreatePoolOptions, type PgPoolErrorSource } from './db.js';
|
|
7
|
+
export { createPool, createDb, isPoolAcquireTimeout, type CreatePoolOptions, type PgPoolErrorSource, type PoolAcquireOutcome, } from './db.js';
|
|
7
8
|
export { isPgUniqueViolation } from './pg-errors.js';
|
|
8
|
-
export { parseDatabaseUrl, maskDatabaseUrl, dropAndCreateDatabase, dropDatabaseDirect, ensureDatabase, type EnsureDatabaseOpts, createDbRole, createReadOnlyDbUser, computeMigrationsHash, storeMigrationContentHash, readStoredMigrationContentHash, isSchemaCurrent, clearDispatchQueueDirect, purgeStaleExecutionDirect, purgeStaleSourcesDirect, purgeScopedSecretsDirect, purgeContextsDirect, seedContextDirect, deleteContextDirect, seedContextBindingDirect, setContextPolicyDirect, listContextsDirect, showContextDirect, createContextTemplateDirect, setContextSecretDirect, listQueueDirect, showQueueEntryDirect, listExecutionRunsDirect, showExecutionRunDirect, listExecutionJobsDirect, listRegistrationsDirect, showRegistrationDirect, registerWorkflowManualDirect, resetRaftStateDirect, emitKiciEventDirect, seedGenericWebhookSourceDirect, purgeSecretBackendsDirect, apiKeyExistsDirect, seedApiKeyInlineDirect, platformConnectionExistsDirect, countWebhookSourcesByConnectionIdDirect, getWebhookSourceByRoutingKeyDirect, findAnyUserApiKeyIdDirect, seedSyntheticGithubSourceDirect, seedWebhookSecretDirect, seedSourcePrivateKeyDirect, bumpRegistryVersionDirect, pollKiciEventsDirect, waitForPostgresDirect, waitForRunCompletionDirect, cleanupExecutionRowsDirect, isSchemaCurrentFromFilesDirect, storeMigrationContentHashInTableDirect, createJoinTokenDirect, deleteJoinTokensByCreatedByDirect, updateSourceRoutingKeyDirect, prunePeerCredentialsDirect, waitForPlatformRegistrationsDirect, seedUniversalGitSourceDirect, seedCiSecurityFixturesDirect,
|
|
9
|
+
export { parseDatabaseUrl, maskDatabaseUrl, dropAndCreateDatabase, dropDatabaseDirect, ensureDatabase, type EnsureDatabaseOpts, createDbRole, createReadOnlyDbUser, computeMigrationsHash, storeMigrationContentHash, readStoredMigrationContentHash, isSchemaCurrent, clearDispatchQueueDirect, purgeStaleExecutionDirect, purgeStaleSourcesDirect, purgeScopedSecretsDirect, purgeContextsDirect, seedContextDirect, deleteContextDirect, seedContextBindingDirect, setContextPolicyDirect, listContextsDirect, showContextDirect, createContextTemplateDirect, setContextSecretDirect, listQueueDirect, showQueueEntryDirect, listExecutionRunsDirect, showExecutionRunDirect, listCheckRunTrackingDirect, listExecutionJobsDirect, listRegistrationsDirect, showRegistrationDirect, registerWorkflowManualDirect, resetRaftStateDirect, emitKiciEventDirect, seedGenericWebhookSourceDirect, purgeSecretBackendsDirect, apiKeyExistsDirect, seedApiKeyInlineDirect, platformConnectionExistsDirect, countWebhookSourcesByConnectionIdDirect, getWebhookSourceByRoutingKeyDirect, findAnyUserApiKeyIdDirect, seedSyntheticGithubSourceDirect, seedWebhookSecretDirect, seedSourcePrivateKeyDirect, bumpRegistryVersionDirect, pollKiciEventsDirect, waitForPostgresDirect, waitForRunCompletionDirect, cleanupExecutionRowsDirect, isSchemaCurrentFromFilesDirect, storeMigrationContentHashInTableDirect, createJoinTokenDirect, deleteJoinTokensByCreatedByDirect, updateSourceRoutingKeyDirect, prunePeerCredentialsDirect, waitForPlatformRegistrationsDirect, seedUniversalGitSourceDirect, seedCiSecurityFixturesDirect, CI_SECURITY_OTHER_REPO, waitForExecutionRunReachesStatusSinceDirect, latestExecutionRunByStatusDirect, waitForLatestExecutionJobStatusDirect, describeTableColumnsDirect, tableExistsDirect, insertKiciEventRawDirect, showKiciEventDirect, listKiciEventsDirect, deleteKiciEventsDirect, insertKiciEventAtDirect, paginateUnprocessedEventsKeysetDirect, verifyKiciEventNotifyDirect, seedCrossRepoTrustDirect, listCrossRepoTrustBySourceRoutingKeyDirect, deleteCrossRepoTrustDirect, insertCrossRepoTrustStrictDirect, deleteWorkflowRegistrationsDirect, getWorkflowRegistrationByIdDirect, listRegistrationsByRoutingKeyDirect, waitForRegistrationsByRoutingKeyDirect, waitForRegistrationsUpdatedAtAdvanceDirect, updateWorkflowRegistrationCommitShaDirect, insertWorkflowRegistrationRawDirect, insertWorkflowRegistrationStrictDirect, getRegistryVersionDirect, bumpRegistryVersionSimpleDirect, upsertCronLastFiredDirect, countCronLastFiredDirect, insertCronLastFiredNowDirect, deleteCronLastFiredDirect, deleteExecutionRunsByWorkflowNameDirect, getGenericWebhookSourceByRoutingKeyDirect, listActiveGenericWebhookSourcesDirect, updateGenericWebhookVerificationConfigDirect, deleteGenericWebhookSourcesByNameDirect, restoreSoftDeletedGenericWebhookSourceDirect, upsertOrgSettingsGlobalWorkflowsDirect, updateOrgSettingsDeniedReposDirect, deleteOrgSettingsByCustomerIdDirect, getExecutionRunSecurityDirect, getHeldRunByIdDirect, listHeldRunApprovalsDirect, countHeldRunsByRunIdDirect, waitForPlatformExecutionRunStatusDirect, waitForPlatformEventLogDistinctRoutedDirect, waitForEventLogRowByDeliveryIdDirect, resolvePlatformWebhookSourceRoutingKeyDirect, ensureOrgOwnerMemberDirect, deletePeerCredentialsByInstanceIdLikeDirect, insertPeerCredentialExpiredDirect, getPeerCredentialRevokedAtDirect, listActivePeerCredentialsExcludingDirect, clearPeerCredentialsRevokedAtByIdsDirect, countActivePeerCredentialsByInstanceDirect, terminateIdleDbBackendsDirect, type ColumnInfo, type KiciEventRow, type CrossRepoTrustRow, type WorkflowRegistrationFullRow, type RegistrationsScopedResult, type LatestExecutionRunResult, type WaitForLatestJobResult, type ExecutionRunSecurityRow, type HeldRunSecurityRow, type EventLogRow as PlatformEventLogRow, type UpsertOrgSettingsOpts, type OrgSettingsRepoPatternEntry, type InsertKiciEventRawOpts, type EmitKiciEventOpts, type SeedGenericWebhookSourceOpts, REGISTERABLE_TRIGGER_TYPES, MIGRATION_HASH_TABLE, type PurgeStaleExecutionResult, type PurgeStaleSourcesResult, type SeedContextOpts, type SeedContextResult, type SeedContextBindingOpts, type SetContextPolicyOpts, type ContextRow, type ContextVariableRow, type ContextBindingRow, type ShowContextResult, type CreateContextTemplateOpts, type SetContextSecretOpts, type DispatchQueueRow, type ListQueueOpts, type ExecutionRunRow, type ExecutionJobRow, type ListExecutionRunsOpts, type CheckRunTrackingDirectRow, type ListCheckRunTrackingOpts, type WorkflowRegistrationRow, type ListRegistrationsOpts, type ListRegistrationsResult, type ShowRegistrationResult, type RegisterWorkflowManualOpts, type RegisterWorkflowManualResult, } from './db-admin.js';
|
|
9
10
|
export { createMetricsRoutes, type MetricsRoutesDeps } from './routes/metrics.js';
|
|
10
11
|
export { createHealthRoutes, type HealthRoutesDeps } from './routes/health.js';
|
|
11
12
|
export { getReconnectDelay } from './reconnect-delay.js';
|
|
12
13
|
export { initTelemetry, getPrometheusExporter, collectRuntimeMetricNames, createMeter, type TelemetryConfig, } from './telemetry/index.js';
|
|
13
14
|
export { setupGracefulShutdown, type ShutdownStep, type ShutdownLogger, type ShutdownHandle, type GracefulShutdownOptions, } from './graceful-shutdown.js';
|
|
14
15
|
export { validateRequiredTools, type ToolRequirement } from './tool-check.js';
|
|
16
|
+
export { kiciTmpBase, kiciMkdtemp } from './tmp-dir.js';
|
|
15
17
|
export { createS3Client, type CreateS3ClientOptions, type SharedS3Config } from './s3-client.js';
|
|
16
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';
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./rolldown-runtime-ClRpJifh.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AgentDeliveryMode, AgentPlatform, splitAgentPlatform } from "./agent-platform.js";
|
|
3
|
+
import { createDb, createPool, isPoolAcquireTimeout } from "./db.js";
|
|
4
|
+
import { CI_SECURITY_OTHER_REPO, MIGRATION_HASH_TABLE, REGISTERABLE_TRIGGER_TYPES, apiKeyExistsDirect, bumpRegistryVersionDirect, bumpRegistryVersionSimpleDirect, cleanupExecutionRowsDirect, clearDispatchQueueDirect, clearPeerCredentialsRevokedAtByIdsDirect, computeMigrationsHash, countActivePeerCredentialsByInstanceDirect, countCronLastFiredDirect, countHeldRunsByRunIdDirect, countWebhookSourcesByConnectionIdDirect, createContextTemplateDirect, createDbRole, createJoinTokenDirect, createReadOnlyDbUser, deleteContextDirect, deleteCronLastFiredDirect, deleteCrossRepoTrustDirect, deleteExecutionRunsByWorkflowNameDirect, deleteGenericWebhookSourcesByNameDirect, deleteJoinTokensByCreatedByDirect, deleteKiciEventsDirect, deleteOrgSettingsByCustomerIdDirect, deletePeerCredentialsByInstanceIdLikeDirect, deleteWorkflowRegistrationsDirect, describeTableColumnsDirect, dropAndCreateDatabase, dropDatabaseDirect, emitKiciEventDirect, ensureDatabase, ensureOrgOwnerMemberDirect, findAnyUserApiKeyIdDirect, getExecutionRunSecurityDirect, getGenericWebhookSourceByRoutingKeyDirect, getHeldRunByIdDirect, getPeerCredentialRevokedAtDirect, getRegistryVersionDirect, getWebhookSourceByRoutingKeyDirect, getWorkflowRegistrationByIdDirect, insertCronLastFiredNowDirect, insertCrossRepoTrustStrictDirect, insertKiciEventAtDirect, insertKiciEventRawDirect, insertPeerCredentialExpiredDirect, insertWorkflowRegistrationRawDirect, insertWorkflowRegistrationStrictDirect, isSchemaCurrent, isSchemaCurrentFromFilesDirect, latestExecutionRunByStatusDirect, listActiveGenericWebhookSourcesDirect, listActivePeerCredentialsExcludingDirect, listCheckRunTrackingDirect, listContextsDirect, listCrossRepoTrustBySourceRoutingKeyDirect, listExecutionJobsDirect, listExecutionRunsDirect, listHeldRunApprovalsDirect, listKiciEventsDirect, listQueueDirect, listRegistrationsByRoutingKeyDirect, listRegistrationsDirect, maskDatabaseUrl, paginateUnprocessedEventsKeysetDirect, parseDatabaseUrl, platformConnectionExistsDirect, pollKiciEventsDirect, prunePeerCredentialsDirect, purgeContextsDirect, purgeScopedSecretsDirect, purgeSecretBackendsDirect, purgeStaleExecutionDirect, purgeStaleSourcesDirect, readStoredMigrationContentHash, registerWorkflowManualDirect, resetRaftStateDirect, resolvePlatformWebhookSourceRoutingKeyDirect, restoreSoftDeletedGenericWebhookSourceDirect, seedApiKeyInlineDirect, seedCiSecurityFixturesDirect, seedContextBindingDirect, seedContextDirect, seedCrossRepoTrustDirect, seedGenericWebhookSourceDirect, seedSourcePrivateKeyDirect, seedSyntheticGithubSourceDirect, seedUniversalGitSourceDirect, seedWebhookSecretDirect, setContextPolicyDirect, setContextSecretDirect, showContextDirect, showExecutionRunDirect, showKiciEventDirect, showQueueEntryDirect, showRegistrationDirect, storeMigrationContentHash, storeMigrationContentHashInTableDirect, tableExistsDirect, terminateIdleDbBackendsDirect, updateGenericWebhookVerificationConfigDirect, updateOrgSettingsDeniedReposDirect, updateSourceRoutingKeyDirect, updateWorkflowRegistrationCommitShaDirect, upsertCronLastFiredDirect, upsertOrgSettingsGlobalWorkflowsDirect, verifyKiciEventNotifyDirect, waitForEventLogRowByDeliveryIdDirect, waitForExecutionRunReachesStatusSinceDirect, waitForLatestExecutionJobStatusDirect, waitForPlatformEventLogDistinctRoutedDirect, waitForPlatformExecutionRunStatusDirect, waitForPlatformRegistrationsDirect, waitForPostgresDirect, waitForRegistrationsByRoutingKeyDirect, waitForRegistrationsUpdatedAtAdvanceDirect, waitForRunCompletionDirect } from "./db-admin.js";
|
|
4
5
|
import { setupGracefulShutdown } from "./graceful-shutdown.js";
|
|
5
6
|
import { decrypt, deriveKey, encrypt, generateMasterKey } from "./secret-crypto.js";
|
|
6
7
|
import { RingBuffer } from "./ring-buffer.js";
|
|
@@ -14,6 +15,7 @@ import { collectRuntimeMetricNames, getPrometheusExporter, initTelemetry } from
|
|
|
14
15
|
import { createMeter } from "./telemetry/metrics.js";
|
|
15
16
|
import "./telemetry/index.js";
|
|
16
17
|
import { validateRequiredTools } from "./tool-check.js";
|
|
18
|
+
import { kiciMkdtemp, kiciTmpBase } from "./tmp-dir.js";
|
|
17
19
|
import { createS3Client } from "./s3-client.js";
|
|
18
20
|
import { chunkObjectKey, encodeKeySegment, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix } from "./cold-store/key.js";
|
|
19
21
|
import { COLD_BUCKET_NAMES, coldDaysToBucket, isLongerColdRetention } from "./cold-store/bucket.js";
|
|
@@ -21,9 +23,9 @@ import { computeChunkId } from "./cold-store/chunk-id.js";
|
|
|
21
23
|
import { decodeChunk, encodeChunk } from "./cold-store/chunk-encoder.js";
|
|
22
24
|
import { parseManifest, serializeManifest } from "./cold-store/manifest.js";
|
|
23
25
|
import { coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal } from "./cold-store/metrics.js";
|
|
26
|
+
import { DEFAULT_TABLE_CONFIG, resolveTableConfig } from "./cold-store/config.js";
|
|
24
27
|
import { BaseColdStore } from "./cold-store/cold-store.js";
|
|
25
28
|
import { ChunkLru } from "./cold-store/lru.js";
|
|
26
|
-
import { DEFAULT_TABLE_CONFIG, resolveTableConfig } from "./cold-store/config.js";
|
|
27
29
|
import "./cold-store/index.js";
|
|
28
30
|
export * from "@kici-dev/core";
|
|
29
|
-
export { BaseColdStore, BundleChunkAssembler, COLD_BUCKET_NAMES, ChunkLru, ChunkRequestWaiter, DEFAULT_TABLE_CONFIG, FLEET_CHUNK_BYTES, MAX_LOG_BYTES, MIGRATION_HASH_TABLE, REGISTERABLE_TRIGGER_TYPES, RingBuffer, addLogsToArchive, apiKeyExistsDirect, bumpRegistryVersionDirect, bumpRegistryVersionSimpleDirect, chunkBuffer, chunkObjectKey, cleanupExecutionRowsDirect, clearDispatchQueueDirect, clearPeerCredentialsRevokedAtByIdsDirect, coldDaysToBucket, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, collectRuntimeMetricNames, computeChunkId, computeMigrationsHash, countActivePeerCredentialsByInstanceDirect, countCronLastFiredDirect, countHeldRunsByRunIdDirect, countWebhookSourcesByConnectionIdDirect, createContextTemplateDirect, createDb, createDbRole, createHealthRoutes, createJoinTokenDirect, createMeter, createMetricsRoutes, createPool, createReadOnlyDbUser, createS3Client, decodeChunk, decrypt, deleteContextDirect, deleteCronLastFiredDirect, deleteCrossRepoTrustDirect, deleteExecutionRunsByWorkflowNameDirect, deleteGenericWebhookSourcesByNameDirect, deleteJoinTokensByCreatedByDirect, deleteKiciEventsDirect, deleteOrgSettingsByCustomerIdDirect, deletePeerCredentialsByInstanceIdLikeDirect, deleteWorkflowRegistrationsDirect, deriveKey, describeTableColumnsDirect, dropAndCreateDatabase, dropDatabaseDirect, emitKiciEventDirect, encodeChunk, encodeKeySegment, encrypt, ensureDatabase, ensureOrgOwnerMemberDirect, findAnyUserApiKeyIdDirect, generateMasterKey, getExecutionRunSecurityDirect, getGenericWebhookSourceByRoutingKeyDirect, getHeldRunByIdDirect, getPeerCredentialRevokedAtDirect, getPrometheusExporter, getReconnectDelay, getRegistryVersionDirect, getWebhookSourceByRoutingKeyDirect, getWorkflowRegistrationByIdDirect, initTelemetry, insertCronLastFiredNowDirect, insertCrossRepoTrustStrictDirect, insertKiciEventAtDirect, insertKiciEventRawDirect, insertPeerCredentialExpiredDirect, insertWorkflowRegistrationRawDirect, insertWorkflowRegistrationStrictDirect, isLongerColdRetention, isPgUniqueViolation, isSchemaCurrent, isSchemaCurrentFromFilesDirect, latestExecutionRunByStatusDirect, listActiveGenericWebhookSourcesDirect, listActivePeerCredentialsExcludingDirect, listContextsDirect, listCrossRepoTrustBySourceRoutingKeyDirect, listExecutionJobsDirect, listExecutionRunsDirect, listHeldRunApprovalsDirect, listKiciEventsDirect, listQueueDirect, listRegistrationsByRoutingKeyDirect, listRegistrationsDirect, maskDatabaseUrl, paginateUnprocessedEventsKeysetDirect, parseDatabaseUrl, parseManifest, platformConnectionExistsDirect, pollKiciEventsDirect, prunePeerCredentialsDirect, purgeContextsDirect, purgeScopedSecretsDirect, purgeSecretBackendsDirect, purgeStaleExecutionDirect, purgeStaleSourcesDirect, readStoredMigrationContentHash, redactConfig, registerWorkflowManualDirect, resetRaftStateDirect, resolvePlatformWebhookSourceRoutingKeyDirect, resolveTableConfig, restoreSoftDeletedGenericWebhookSourceDirect, seedApiKeyInlineDirect, seedCiSecurityFixturesDirect, seedContextBindingDirect, seedContextDirect, seedCrossRepoTrustDirect, seedGenericWebhookSourceDirect, seedSourcePrivateKeyDirect, seedSyntheticGithubSourceDirect, seedUniversalGitSourceDirect, seedWebhookSecretDirect, serializeManifest, setContextPolicyDirect, setContextSecretDirect, setupGracefulShutdown, showContextDirect, showExecutionRunDirect, showKiciEventDirect, showQueueEntryDirect, showRegistrationDirect, storeMigrationContentHash, storeMigrationContentHashInTableDirect, tableExistsDirect, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix, terminateIdleDbBackendsDirect, updateGenericWebhookVerificationConfigDirect, updateOrgSettingsDeniedReposDirect, updateSourceRoutingKeyDirect, updateWorkflowRegistrationCommitShaDirect, upsertCronLastFiredDirect, upsertOrgSettingsGlobalWorkflowsDirect, validateRequiredTools, verifyKiciEventNotifyDirect, waitForEventLogRowByDeliveryIdDirect,
|
|
31
|
+
export { AgentDeliveryMode, AgentPlatform, BaseColdStore, BundleChunkAssembler, CI_SECURITY_OTHER_REPO, COLD_BUCKET_NAMES, ChunkLru, ChunkRequestWaiter, DEFAULT_TABLE_CONFIG, FLEET_CHUNK_BYTES, MAX_LOG_BYTES, MIGRATION_HASH_TABLE, REGISTERABLE_TRIGGER_TYPES, RingBuffer, addLogsToArchive, apiKeyExistsDirect, bumpRegistryVersionDirect, bumpRegistryVersionSimpleDirect, chunkBuffer, chunkObjectKey, cleanupExecutionRowsDirect, clearDispatchQueueDirect, clearPeerCredentialsRevokedAtByIdsDirect, coldDaysToBucket, coldStoreArchiveBytesTotal, coldStoreArchiveCyclesTotal, coldStoreArchiveDurationSeconds, coldStoreArchiveRowsTotal, coldStorePurgeBytesTotal, coldStorePurgeChunksTotal, coldStorePurgeDurationSeconds, coldStoreRehydrateBytesTotal, coldStoreRehydrateDurationSeconds, coldStoreRehydrateRequestsTotal, coldStoreReplayDurationSeconds, coldStoreReplayRowsTotal, coldStoreVerifyFailuresTotal, collectRuntimeMetricNames, computeChunkId, computeMigrationsHash, countActivePeerCredentialsByInstanceDirect, countCronLastFiredDirect, countHeldRunsByRunIdDirect, countWebhookSourcesByConnectionIdDirect, createContextTemplateDirect, createDb, createDbRole, createHealthRoutes, createJoinTokenDirect, createMeter, createMetricsRoutes, createPool, createReadOnlyDbUser, createS3Client, decodeChunk, decrypt, deleteContextDirect, deleteCronLastFiredDirect, deleteCrossRepoTrustDirect, deleteExecutionRunsByWorkflowNameDirect, deleteGenericWebhookSourcesByNameDirect, deleteJoinTokensByCreatedByDirect, deleteKiciEventsDirect, deleteOrgSettingsByCustomerIdDirect, deletePeerCredentialsByInstanceIdLikeDirect, deleteWorkflowRegistrationsDirect, deriveKey, describeTableColumnsDirect, dropAndCreateDatabase, dropDatabaseDirect, emitKiciEventDirect, encodeChunk, encodeKeySegment, encrypt, ensureDatabase, ensureOrgOwnerMemberDirect, findAnyUserApiKeyIdDirect, generateMasterKey, getExecutionRunSecurityDirect, getGenericWebhookSourceByRoutingKeyDirect, getHeldRunByIdDirect, getPeerCredentialRevokedAtDirect, getPrometheusExporter, getReconnectDelay, getRegistryVersionDirect, getWebhookSourceByRoutingKeyDirect, getWorkflowRegistrationByIdDirect, initTelemetry, insertCronLastFiredNowDirect, insertCrossRepoTrustStrictDirect, insertKiciEventAtDirect, insertKiciEventRawDirect, insertPeerCredentialExpiredDirect, insertWorkflowRegistrationRawDirect, insertWorkflowRegistrationStrictDirect, isLongerColdRetention, isPgUniqueViolation, isPoolAcquireTimeout, isSchemaCurrent, isSchemaCurrentFromFilesDirect, kiciMkdtemp, kiciTmpBase, latestExecutionRunByStatusDirect, listActiveGenericWebhookSourcesDirect, listActivePeerCredentialsExcludingDirect, listCheckRunTrackingDirect, listContextsDirect, listCrossRepoTrustBySourceRoutingKeyDirect, listExecutionJobsDirect, listExecutionRunsDirect, listHeldRunApprovalsDirect, listKiciEventsDirect, listQueueDirect, listRegistrationsByRoutingKeyDirect, listRegistrationsDirect, maskDatabaseUrl, paginateUnprocessedEventsKeysetDirect, parseDatabaseUrl, parseManifest, platformConnectionExistsDirect, pollKiciEventsDirect, prunePeerCredentialsDirect, purgeContextsDirect, purgeScopedSecretsDirect, purgeSecretBackendsDirect, purgeStaleExecutionDirect, purgeStaleSourcesDirect, readStoredMigrationContentHash, redactConfig, registerWorkflowManualDirect, resetRaftStateDirect, resolvePlatformWebhookSourceRoutingKeyDirect, resolveTableConfig, restoreSoftDeletedGenericWebhookSourceDirect, seedApiKeyInlineDirect, seedCiSecurityFixturesDirect, seedContextBindingDirect, seedContextDirect, seedCrossRepoTrustDirect, seedGenericWebhookSourceDirect, seedSourcePrivateKeyDirect, seedSyntheticGithubSourceDirect, seedUniversalGitSourceDirect, seedWebhookSecretDirect, serializeManifest, setContextPolicyDirect, setContextSecretDirect, setupGracefulShutdown, showContextDirect, showExecutionRunDirect, showKiciEventDirect, showQueueEntryDirect, showRegistrationDirect, splitAgentPlatform, storeMigrationContentHash, storeMigrationContentHashInTableDirect, tableExistsDirect, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix, terminateIdleDbBackendsDirect, updateGenericWebhookVerificationConfigDirect, updateOrgSettingsDeniedReposDirect, updateSourceRoutingKeyDirect, updateWorkflowRegistrationCommitShaDirect, upsertCronLastFiredDirect, upsertOrgSettingsGlobalWorkflowsDirect, validateRequiredTools, verifyKiciEventNotifyDirect, waitForEventLogRowByDeliveryIdDirect, waitForExecutionRunReachesStatusSinceDirect, waitForLatestExecutionJobStatusDirect, waitForPlatformEventLogDistinctRoutedDirect, waitForPlatformExecutionRunStatusDirect, waitForPlatformRegistrationsDirect, waitForPostgresDirect, waitForRegistrationsByRoutingKeyDirect, waitForRegistrationsUpdatedAtAdvanceDirect, waitForRunCompletionDirect };
|
package/dist/telemetry/init.d.ts
CHANGED
|
@@ -17,14 +17,25 @@ export interface TelemetryConfig {
|
|
|
17
17
|
export declare function initTelemetry(config: TelemetryConfig): NodeSDK;
|
|
18
18
|
/** Get the PrometheusExporter instance created by initTelemetry(). */
|
|
19
19
|
export declare function getPrometheusExporter(): PrometheusExporter | undefined;
|
|
20
|
+
/** One instrument's identity plus the descriptor facts that decide its wire kind. */
|
|
21
|
+
export interface RuntimeMetricDescriptor {
|
|
22
|
+
name: string;
|
|
23
|
+
dataPointType: number;
|
|
24
|
+
isMonotonic?: boolean;
|
|
25
|
+
}
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* catalog drift guard (`scripts/generate-prometheus.ts`). It deliberately
|
|
25
|
-
* does NOT touch the singleton `_prometheusExporter` — it spins up an
|
|
26
|
-
* isolated SDK so it can be called from tooling without affecting a running
|
|
27
|
-
* service's telemetry.
|
|
27
|
+
* The sorted set of dotted instrument names `RuntimeNodeInstrumentation`
|
|
28
|
+
* emits. This is the ground truth for the curated runtime-metrics catalog
|
|
29
|
+
* drift guard (`scripts/generate-prometheus.ts`).
|
|
28
30
|
*/
|
|
29
31
|
export declare function collectRuntimeMetricNames(): Promise<string[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Like `collectRuntimeMetricNames`, but also returns each instrument's
|
|
34
|
+
* descriptor type and monotonicity — the facts that decide the wire kind the
|
|
35
|
+
* Platform admits it as. Ground truth for the drift guard's kind check.
|
|
36
|
+
*
|
|
37
|
+
* Deliberately not exported from the package barrel: it is tooling ground truth,
|
|
38
|
+
* and `@kici-dev/shared` is a published surface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function collectRuntimeMetricDescriptors(): Promise<RuntimeMetricDescriptor[]>;
|
|
30
41
|
//# sourceMappingURL=init.d.ts.map
|
package/dist/telemetry/init.js
CHANGED
|
@@ -38,14 +38,12 @@ function getPrometheusExporter() {
|
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Boot `RuntimeNodeInstrumentation` standalone, exercise the event loop and
|
|
41
|
-
* garbage collector, collect once, and return
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* isolated SDK so it can be called from tooling without affecting a running
|
|
46
|
-
* service's telemetry.
|
|
41
|
+
* garbage collector, collect once, and return one descriptor per instrument it
|
|
42
|
+
* emitted. It deliberately does NOT touch the singleton `_prometheusExporter` —
|
|
43
|
+
* it spins up an isolated SDK so it can be called from tooling without
|
|
44
|
+
* affecting a running service's telemetry.
|
|
47
45
|
*/
|
|
48
|
-
async function
|
|
46
|
+
async function probeRuntimeInstruments() {
|
|
49
47
|
const exporter = new PrometheusExporter({ preventServerStart: true });
|
|
50
48
|
const sdk = new NodeSDK({
|
|
51
49
|
resource: resourceFromAttributes({ [ATTR_SERVICE_NAME]: "runtime-metrics-drift-guard" }),
|
|
@@ -61,13 +59,40 @@ async function collectRuntimeMetricNames() {
|
|
|
61
59
|
}
|
|
62
60
|
if (typeof global.gc === "function") global.gc();
|
|
63
61
|
await new Promise((r) => setTimeout(r, 500));
|
|
64
|
-
const
|
|
62
|
+
const descriptors = [];
|
|
65
63
|
const { resourceMetrics } = await exporter.collect();
|
|
66
|
-
for (const scopeMetrics of resourceMetrics.scopeMetrics) for (const metric of scopeMetrics.metrics)
|
|
64
|
+
for (const scopeMetrics of resourceMetrics.scopeMetrics) for (const metric of scopeMetrics.metrics) {
|
|
65
|
+
const m = metric;
|
|
66
|
+
descriptors.push({
|
|
67
|
+
name: m.descriptor.name,
|
|
68
|
+
dataPointType: m.dataPointType,
|
|
69
|
+
...m.isMonotonic === void 0 ? {} : { isMonotonic: m.isMonotonic }
|
|
70
|
+
});
|
|
71
|
+
}
|
|
67
72
|
await sdk.shutdown();
|
|
68
|
-
return
|
|
73
|
+
return descriptors;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The sorted set of dotted instrument names `RuntimeNodeInstrumentation`
|
|
77
|
+
* emits. This is the ground truth for the curated runtime-metrics catalog
|
|
78
|
+
* drift guard (`scripts/generate-prometheus.ts`).
|
|
79
|
+
*/
|
|
80
|
+
async function collectRuntimeMetricNames() {
|
|
81
|
+
const descriptors = await probeRuntimeInstruments();
|
|
82
|
+
return [...new Set(descriptors.map((d) => d.name))].sort();
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Like `collectRuntimeMetricNames`, but also returns each instrument's
|
|
86
|
+
* descriptor type and monotonicity — the facts that decide the wire kind the
|
|
87
|
+
* Platform admits it as. Ground truth for the drift guard's kind check.
|
|
88
|
+
*
|
|
89
|
+
* Deliberately not exported from the package barrel: it is tooling ground truth,
|
|
90
|
+
* and `@kici-dev/shared` is a published surface.
|
|
91
|
+
*/
|
|
92
|
+
async function collectRuntimeMetricDescriptors() {
|
|
93
|
+
return (await probeRuntimeInstruments()).sort((a, b) => a.name.localeCompare(b.name));
|
|
69
94
|
}
|
|
70
95
|
//#endregion
|
|
71
|
-
export { collectRuntimeMetricNames, getPrometheusExporter, initTelemetry };
|
|
96
|
+
export { collectRuntimeMetricDescriptors, collectRuntimeMetricNames, getPrometheusExporter, initTelemetry };
|
|
72
97
|
|
|
73
98
|
//# sourceMappingURL=init.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { kiciTmpBase } from '@kici-dev/core/tmp';
|
|
2
|
+
/**
|
|
3
|
+
* Base directory for KiCI-created temp files. Honors the `KICI_TMPDIR` env var
|
|
4
|
+
* (creating it if it does not yet exist) so an operator can route KiCI's temp
|
|
5
|
+
* footprint onto a volume with room; falls back to the OS temp dir otherwise.
|
|
6
|
+
* Server-side only (Node fs/os) — do NOT import from browser-bundled code.
|
|
7
|
+
*
|
|
8
|
+
* Delegates to `@kici-dev/core/tmp`'s resolver so `KICI_TMPDIR` is read in
|
|
9
|
+
* exactly one place across the codebase.
|
|
10
|
+
*/
|
|
11
|
+
export { kiciTmpBase };
|
|
12
|
+
/** Create a fresh unique temp dir under {@link kiciTmpBase} with `prefix`. */
|
|
13
|
+
export declare function kiciMkdtemp(prefix: string): string;
|
|
14
|
+
//# sourceMappingURL=tmp-dir.d.ts.map
|
package/dist/tmp-dir.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./rolldown-runtime-ClRpJifh.js";
|
|
2
|
+
import { mkdtempSync } from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { kiciTmpBase } from "@kici-dev/core/tmp";
|
|
5
|
+
//#region src/tmp-dir.ts
|
|
6
|
+
/** Create a fresh unique temp dir under {@link kiciTmpBase} with `prefix`. */
|
|
7
|
+
function kiciMkdtemp(prefix) {
|
|
8
|
+
return mkdtempSync(path.join(kiciTmpBase(), prefix));
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { kiciMkdtemp, kiciTmpBase };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=tmp-dir.js.map
|
package/dist/tmp.d.ts
ADDED
package/dist/tmp.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.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",
|
|
@@ -50,10 +50,18 @@
|
|
|
50
50
|
"import": "./dist/ts-loader-hook.js",
|
|
51
51
|
"types": "./dist/ts-loader-hook.d.ts"
|
|
52
52
|
},
|
|
53
|
+
"./tmp": {
|
|
54
|
+
"import": "./dist/tmp.js",
|
|
55
|
+
"types": "./dist/tmp.d.ts"
|
|
56
|
+
},
|
|
53
57
|
"./idempotency": {
|
|
54
58
|
"import": "./dist/idempotency.js",
|
|
55
59
|
"types": "./dist/idempotency.d.ts"
|
|
56
60
|
},
|
|
61
|
+
"./ci-env": {
|
|
62
|
+
"import": "./dist/ci-env.js",
|
|
63
|
+
"types": "./dist/ci-env.d.ts"
|
|
64
|
+
},
|
|
57
65
|
"./idempotency-files": {
|
|
58
66
|
"import": "./dist/idempotency-files.js",
|
|
59
67
|
"types": "./dist/idempotency-files.d.ts"
|
|
@@ -84,36 +92,37 @@
|
|
|
84
92
|
}
|
|
85
93
|
},
|
|
86
94
|
"dependencies": {
|
|
87
|
-
"@aws-sdk/client-s3": "^3.
|
|
95
|
+
"@aws-sdk/client-s3": "^3.1089.0",
|
|
88
96
|
"@opentelemetry/api": "^1.9.1",
|
|
89
|
-
"@opentelemetry/exporter-metrics-otlp-http": "^0.
|
|
90
|
-
"@opentelemetry/exporter-prometheus": "^0.
|
|
91
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
92
|
-
"@opentelemetry/instrumentation-runtime-node": "^0.
|
|
93
|
-
"@opentelemetry/resources": "^2.
|
|
94
|
-
"@opentelemetry/sdk-node": "^0.
|
|
95
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
97
|
+
"@opentelemetry/exporter-metrics-otlp-http": "^0.221.0",
|
|
98
|
+
"@opentelemetry/exporter-prometheus": "^0.221.0",
|
|
99
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.221.0",
|
|
100
|
+
"@opentelemetry/instrumentation-runtime-node": "^0.34.0",
|
|
101
|
+
"@opentelemetry/resources": "^2.10.0",
|
|
102
|
+
"@opentelemetry/sdk-node": "^0.221.0",
|
|
103
|
+
"@opentelemetry/semantic-conventions": "^1.43.0",
|
|
96
104
|
"archiver": "^8.0.0",
|
|
97
105
|
"diff": "^9.0.0",
|
|
98
|
-
"hono": "^4.12.
|
|
99
|
-
"kysely": "^0.29.
|
|
100
|
-
"oxc-transform": "0.
|
|
101
|
-
"pg": "^8.
|
|
106
|
+
"hono": "^4.12.32",
|
|
107
|
+
"kysely": "^0.29.4",
|
|
108
|
+
"oxc-transform": "0.140.0",
|
|
109
|
+
"pg": "^8.22.0",
|
|
102
110
|
"picocolors": "^1.1.1",
|
|
103
111
|
"winston": "^3.19.0",
|
|
104
112
|
"winston-daily-rotate-file": "^5.0.0",
|
|
105
113
|
"yaml": "^2.9.0",
|
|
106
114
|
"zod": "^4.4.3",
|
|
107
115
|
"zx": "^8.8.5",
|
|
108
|
-
"@kici-dev/core": "0.
|
|
116
|
+
"@kici-dev/core": "0.2.0",
|
|
117
|
+
"@kici-dev/engine": "0.2.0"
|
|
109
118
|
},
|
|
110
119
|
"devDependencies": {
|
|
111
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
120
|
+
"@opentelemetry/sdk-trace-base": "^2.10.0",
|
|
112
121
|
"@types/archiver": "^8.0.0"
|
|
113
122
|
},
|
|
114
123
|
"scripts": {
|
|
115
|
-
"build": "node ../../scripts/build-ts.mjs &&
|
|
124
|
+
"build": "node ../../scripts/build-ts.mjs && tsgo --emitDeclarationOnly",
|
|
116
125
|
"test": "vitest run",
|
|
117
|
-
"typecheck": "
|
|
126
|
+
"typecheck": "tsgo --noEmit"
|
|
118
127
|
}
|
|
119
128
|
}
|