@kici-dev/shared 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cold-store/bucket.js +1 -1
- package/dist/cold-store/chunk-encoder.js +1 -1
- package/dist/cold-store/chunk-id.js +1 -1
- package/dist/cold-store/cold-store.js +1 -1
- package/dist/cold-store/config.js +1 -1
- package/dist/cold-store/index.js +1 -1
- package/dist/cold-store/key.js +1 -1
- package/dist/cold-store/lru.js +1 -1
- package/dist/cold-store/manifest.js +1 -1
- package/dist/cold-store/metrics.js +1 -1
- package/dist/cold-store/table-adapter.js +1 -1
- package/dist/cold-store/types.js +1 -1
- package/dist/db-admin.d.ts +11 -6
- package/dist/db-admin.js +10 -8
- package/dist/db-collation.js +1 -1
- package/dist/db.js +1 -1
- package/dist/diagnostics/bundle-archive.js +1 -1
- package/dist/diagnostics/bundle-chunks.js +1 -1
- package/dist/env/allowlist.d.ts +5 -1
- package/dist/env/allowlist.js +7 -3
- package/dist/env/define-env.js +1 -1
- package/dist/env/index.js +1 -1
- package/dist/env/logger-env.js +1 -1
- package/dist/graceful-shutdown.js +1 -1
- package/dist/idempotency-env-diff.js +1 -1
- package/dist/idempotency-files.js +1 -1
- package/dist/idempotency-yaml-diff.js +1 -1
- package/dist/idempotency.js +1 -1
- package/dist/index.js +1 -1
- package/dist/package-manager-types.js +1 -1
- package/dist/package-manager.js +1 -1
- package/dist/reconnect-delay.js +1 -1
- package/dist/ring-buffer.js +1 -1
- package/dist/routes/health.js +1 -1
- package/dist/routes/metrics.js +1 -1
- package/dist/s3-client.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/telemetry/init.js +1 -1
- package/dist/telemetry/metrics.js +1 -1
- package/dist/tool-check.js +1 -1
- package/dist/ts-loader-hook.js +1 -1
- package/package.json +2 -2
- package/sbom.spdx.json +15 -15
- /package/dist/{chunk-gOLHoazu.js → chunk-BTugEXQM.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-BTugEXQM.js";
|
|
2
2
|
import { createS3Client } from "../s3-client.js";
|
|
3
3
|
import { chunkObjectKey, encodeKeySegment, tablePrefix, tenantDayPrefix } from "./key.js";
|
|
4
4
|
import { coldDaysToBucket, isLongerColdRetention } from "./bucket.js";
|
package/dist/cold-store/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-BTugEXQM.js";
|
|
2
2
|
import { chunkObjectKey, encodeKeySegment, tablePrefix, tenantDayBucketPrefix, tenantDayPrefix } from "./key.js";
|
|
3
3
|
import { COLD_BUCKET_NAMES, coldDaysToBucket, isLongerColdRetention } from "./bucket.js";
|
|
4
4
|
import { computeChunkId } from "./chunk-id.js";
|
package/dist/cold-store/key.js
CHANGED
package/dist/cold-store/lru.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-BTugEXQM.js";
|
|
2
2
|
export {};
|
package/dist/cold-store/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-BTugEXQM.js";
|
|
2
2
|
export {};
|
package/dist/db-admin.d.ts
CHANGED
|
@@ -553,8 +553,8 @@ export interface EmitKiciEventOpts {
|
|
|
553
553
|
* e2e helpers to simulate what `agent ctx.emit()` does from inside a step
|
|
554
554
|
* execution — but without needing an actual running step. Returns the event id.
|
|
555
555
|
*
|
|
556
|
-
* Fixed `chain_depth=0` and `expires_at=NOW() + 1h` match
|
|
557
|
-
* in e2e/helpers/
|
|
556
|
+
* Fixed `chain_depth=0` and `expires_at=NOW() + 1h` match emitLocalEvent()
|
|
557
|
+
* in e2e/helpers/local-webhook.ts, which this helper supersedes.
|
|
558
558
|
*/
|
|
559
559
|
export declare function emitKiciEventDirect(databaseUrl: string, opts: EmitKiciEventOpts): Promise<{
|
|
560
560
|
eventId: string;
|
|
@@ -567,18 +567,23 @@ export interface SeedGenericWebhookSourceOpts {
|
|
|
567
567
|
/** Pre-computed routing key (caller uses `generic:${orgId}:${name}`) */
|
|
568
568
|
routingKey: string;
|
|
569
569
|
verificationMethod?: string;
|
|
570
|
-
/** 'generic' (Stripe-shaped) or '
|
|
571
|
-
|
|
570
|
+
/** 'generic' (Stripe-shaped) or 'local' (github-shaped via LocalWebhookNormalizer,
|
|
571
|
+
* a git repo present on the agent filesystem cloned via file://). */
|
|
572
|
+
providerType?: 'generic' | 'local';
|
|
573
|
+
/** For `providerType='local'`: the per-source `{ repoBasePath, cloneUrlBase? }`
|
|
574
|
+
* stored in `git_config`. The orchestrator reads `repoBasePath` from this row
|
|
575
|
+
* at registration time to build the local provider bundle. */
|
|
576
|
+
gitConfig?: Record<string, unknown>;
|
|
572
577
|
}
|
|
573
578
|
/**
|
|
574
|
-
* Upsert a row into `generic_webhook_sources
|
|
579
|
+
* Upsert a row into `generic_webhook_sources`. Uses
|
|
575
580
|
* `ON CONFLICT (routing_key) DO UPDATE` so warm-start mode (where the source
|
|
576
581
|
* may already exist from a prior run) is idempotent.
|
|
577
582
|
*
|
|
578
583
|
* IMPORTANT: callers must invoke this BEFORE the orchestrator starts, because
|
|
579
584
|
* GenericSourceManager caches sources at boot and does not reload them later.
|
|
580
585
|
* This helper supersedes seedGenericWebhookSource() in
|
|
581
|
-
* e2e/helpers/
|
|
586
|
+
* e2e/helpers/local-webhook.ts.
|
|
582
587
|
*/
|
|
583
588
|
export declare function seedGenericWebhookSourceDirect(databaseUrl: string, opts: SeedGenericWebhookSourceOpts): Promise<void>;
|
|
584
589
|
/**
|
package/dist/db-admin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-BTugEXQM.js";
|
|
2
2
|
import { createPool } from "./db.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import pg from "pg";
|
|
@@ -992,8 +992,8 @@ async function resetRaftStateDirect(databaseUrl) {
|
|
|
992
992
|
* e2e helpers to simulate what `agent ctx.emit()` does from inside a step
|
|
993
993
|
* execution — but without needing an actual running step. Returns the event id.
|
|
994
994
|
*
|
|
995
|
-
* Fixed `chain_depth=0` and `expires_at=NOW() + 1h` match
|
|
996
|
-
* in e2e/helpers/
|
|
995
|
+
* Fixed `chain_depth=0` and `expires_at=NOW() + 1h` match emitLocalEvent()
|
|
996
|
+
* in e2e/helpers/local-webhook.ts, which this helper supersedes.
|
|
997
997
|
*/
|
|
998
998
|
async function emitKiciEventDirect(databaseUrl, opts) {
|
|
999
999
|
const pool = createPool(databaseUrl);
|
|
@@ -1016,14 +1016,14 @@ async function emitKiciEventDirect(databaseUrl, opts) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
/**
|
|
1019
|
-
* Upsert a row into `generic_webhook_sources
|
|
1019
|
+
* Upsert a row into `generic_webhook_sources`. Uses
|
|
1020
1020
|
* `ON CONFLICT (routing_key) DO UPDATE` so warm-start mode (where the source
|
|
1021
1021
|
* may already exist from a prior run) is idempotent.
|
|
1022
1022
|
*
|
|
1023
1023
|
* IMPORTANT: callers must invoke this BEFORE the orchestrator starts, because
|
|
1024
1024
|
* GenericSourceManager caches sources at boot and does not reload them later.
|
|
1025
1025
|
* This helper supersedes seedGenericWebhookSource() in
|
|
1026
|
-
* e2e/helpers/
|
|
1026
|
+
* e2e/helpers/local-webhook.ts.
|
|
1027
1027
|
*/
|
|
1028
1028
|
async function seedGenericWebhookSourceDirect(databaseUrl, opts) {
|
|
1029
1029
|
const pool = createPool(databaseUrl);
|
|
@@ -1033,14 +1033,15 @@ async function seedGenericWebhookSourceDirect(databaseUrl, opts) {
|
|
|
1033
1033
|
verification_method, verification_config,
|
|
1034
1034
|
event_type_header, dedup_window_seconds,
|
|
1035
1035
|
max_payload_bytes, rate_limit_rpm, enabled,
|
|
1036
|
-
provider_type
|
|
1037
|
-
) VALUES ($1, $2, $3, $4, $5, '{}', 'x-event-type', 300, 10485760, 600, true, $6)
|
|
1036
|
+
provider_type, git_config
|
|
1037
|
+
) VALUES ($1, $2, $3, $4, $5, '{}', 'x-event-type', 300, 10485760, 600, true, $6, $7::jsonb)
|
|
1038
1038
|
ON CONFLICT (routing_key) DO UPDATE SET
|
|
1039
1039
|
customer_id = EXCLUDED.customer_id,
|
|
1040
1040
|
name = EXCLUDED.name,
|
|
1041
1041
|
verification_method = EXCLUDED.verification_method,
|
|
1042
1042
|
verification_config = EXCLUDED.verification_config,
|
|
1043
1043
|
provider_type = EXCLUDED.provider_type,
|
|
1044
|
+
git_config = EXCLUDED.git_config,
|
|
1044
1045
|
enabled = true,
|
|
1045
1046
|
deleted_at = NULL,
|
|
1046
1047
|
updated_at = NOW()`, [
|
|
@@ -1049,7 +1050,8 @@ async function seedGenericWebhookSourceDirect(databaseUrl, opts) {
|
|
|
1049
1050
|
opts.name,
|
|
1050
1051
|
opts.routingKey,
|
|
1051
1052
|
opts.verificationMethod ?? "none",
|
|
1052
|
-
opts.providerType ?? "generic"
|
|
1053
|
+
opts.providerType ?? "generic",
|
|
1054
|
+
opts.gitConfig ? JSON.stringify(opts.gitConfig) : null
|
|
1053
1055
|
]);
|
|
1054
1056
|
} finally {
|
|
1055
1057
|
await pool.end();
|
package/dist/db-collation.js
CHANGED
package/dist/db.js
CHANGED
package/dist/env/allowlist.d.ts
CHANGED
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
* - `KICI_*` — every project-internal env var.
|
|
40
40
|
* - OS basics — NODE_ENV, HOME, PATH, TZ, LANG, TMPDIR,
|
|
41
41
|
* USER, USERNAME, SHELL, COMSPEC, PWD, OLDPWD,
|
|
42
|
-
* HOSTNAME
|
|
42
|
+
* HOSTNAME, PROCESSOR_ARCHITECTURE (Windows arch
|
|
43
|
+
* hint the agent reads to pick the mise zip).
|
|
43
44
|
* - Terminal / display — COLUMNS, LINES, TERM, COLORTERM, DISPLAY,
|
|
44
45
|
* WAYLAND_DISPLAY, LOCALAPPDATA.
|
|
45
46
|
* - XDG basedir spec — XDG_*.
|
|
@@ -48,6 +49,9 @@
|
|
|
48
49
|
* GITHUB_PATH, GITHUB_STEP_SUMMARY, GITLAB_CI.
|
|
49
50
|
* - Cloud / SDK names — AWS_*, REDIS_*, OTEL_*, STRIPE_*, DOCKER_*,
|
|
50
51
|
* CONTAINER_HOST.
|
|
52
|
+
* - git tooling — GIT_* (git's own env-var family, e.g.
|
|
53
|
+
* GIT_CONFIG_GLOBAL / GIT_SSH_COMMAND, that KiCI
|
|
54
|
+
* sets to drive cloned / overlay workspaces).
|
|
51
55
|
* - Postgres libpq — PGHOST, PGPORT, PGUSER, PGPASSWORD,
|
|
52
56
|
* PGDATABASE, PGSERVICEFILE, PGSSLMODE.
|
|
53
57
|
* - Forgejo dev server — FORGEJO_URL, FORGEJO_CONTAINER (read by the
|
package/dist/env/allowlist.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-BTugEXQM.js";
|
|
2
2
|
//#region src/env/allowlist.ts
|
|
3
3
|
/**
|
|
4
4
|
* Source of truth for the env-var allowlist.
|
|
@@ -41,7 +41,8 @@ import "../chunk-gOLHoazu.js";
|
|
|
41
41
|
* - `KICI_*` — every project-internal env var.
|
|
42
42
|
* - OS basics — NODE_ENV, HOME, PATH, TZ, LANG, TMPDIR,
|
|
43
43
|
* USER, USERNAME, SHELL, COMSPEC, PWD, OLDPWD,
|
|
44
|
-
* HOSTNAME
|
|
44
|
+
* HOSTNAME, PROCESSOR_ARCHITECTURE (Windows arch
|
|
45
|
+
* hint the agent reads to pick the mise zip).
|
|
45
46
|
* - Terminal / display — COLUMNS, LINES, TERM, COLORTERM, DISPLAY,
|
|
46
47
|
* WAYLAND_DISPLAY, LOCALAPPDATA.
|
|
47
48
|
* - XDG basedir spec — XDG_*.
|
|
@@ -50,6 +51,9 @@ import "../chunk-gOLHoazu.js";
|
|
|
50
51
|
* GITHUB_PATH, GITHUB_STEP_SUMMARY, GITLAB_CI.
|
|
51
52
|
* - Cloud / SDK names — AWS_*, REDIS_*, OTEL_*, STRIPE_*, DOCKER_*,
|
|
52
53
|
* CONTAINER_HOST.
|
|
54
|
+
* - git tooling — GIT_* (git's own env-var family, e.g.
|
|
55
|
+
* GIT_CONFIG_GLOBAL / GIT_SSH_COMMAND, that KiCI
|
|
56
|
+
* sets to drive cloned / overlay workspaces).
|
|
53
57
|
* - Postgres libpq — PGHOST, PGPORT, PGUSER, PGPASSWORD,
|
|
54
58
|
* PGDATABASE, PGSERVICEFILE, PGSSLMODE.
|
|
55
59
|
* - Forgejo dev server — FORGEJO_URL, FORGEJO_CONTAINER (read by the
|
|
@@ -70,7 +74,7 @@ import "../chunk-gOLHoazu.js";
|
|
|
70
74
|
* the dev proxy), HEADED (Playwright convention
|
|
71
75
|
* for `--headed` runs).
|
|
72
76
|
*/
|
|
73
|
-
const OS_SDK_ALLOWLIST_REGEX = /^(KICI_.*|NODE_ENV|HOME|PATH|TZ|LANG|TMPDIR|USER|USERNAME|SHELL|COMSPEC|PWD|OLDPWD|HOSTNAME|COLUMNS|LINES|TERM|COLORTERM|DISPLAY|WAYLAND_DISPLAY|LOCALAPPDATA|XDG_CACHE_HOME|XDG_CONFIG_HOME|XDG_DATA_HOME|XDG_RUNTIME_DIR|XDG_STATE_HOME|INIT_CWD|npm_.*|SSH_.*|CI|GITHUB_ACTIONS|GITHUB_ENV|GITHUB_OUTPUT|GITHUB_PATH|GITHUB_STEP_SUMMARY|GITLAB_CI|AWS_.*|REDIS_.*|OTEL_.*|STRIPE_.*|DOCKER_.*|CONTAINER_HOST|container|PGHOST|PGPORT|PGUSER|PGPASSWORD|PGDATABASE|PGSERVICEFILE|PGSSLMODE|FORGEJO_URL|FORGEJO_CONTAINER|KEYCLOAK_.*|VITE_.*|PLAYWRIGHT|HEADED)$/;
|
|
77
|
+
const OS_SDK_ALLOWLIST_REGEX = /^(KICI_.*|NODE_ENV|HOME|PATH|TZ|LANG|TMPDIR|USER|USERNAME|SHELL|COMSPEC|PWD|OLDPWD|HOSTNAME|PROCESSOR_ARCHITECTURE|COLUMNS|LINES|TERM|COLORTERM|DISPLAY|WAYLAND_DISPLAY|LOCALAPPDATA|XDG_CACHE_HOME|XDG_CONFIG_HOME|XDG_DATA_HOME|XDG_RUNTIME_DIR|XDG_STATE_HOME|INIT_CWD|npm_.*|SSH_.*|CI|GITHUB_ACTIONS|GITHUB_ENV|GITHUB_OUTPUT|GITHUB_PATH|GITHUB_STEP_SUMMARY|GITLAB_CI|AWS_.*|REDIS_.*|OTEL_.*|STRIPE_.*|DOCKER_.*|GIT_.*|CONTAINER_HOST|container|PGHOST|PGPORT|PGUSER|PGPASSWORD|PGDATABASE|PGSERVICEFILE|PGSSLMODE|FORGEJO_URL|FORGEJO_CONTAINER|KEYCLOAK_.*|VITE_.*|PLAYWRIGHT|HEADED)$/;
|
|
74
78
|
/**
|
|
75
79
|
* Returns true when `name` is allowed under the KiCI env-var convention:
|
|
76
80
|
* it matches the OS/SDK allowlist regex (which includes the `KICI_*`
|
package/dist/env/define-env.js
CHANGED
package/dist/env/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-BTugEXQM.js";
|
|
2
2
|
import { RESERVED_NON_SCHEMA_KICI_PREFIXES, RESERVED_NON_SCHEMA_KICI_VARS, defineEnv, validateUnknownKiciVars } from "./define-env.js";
|
|
3
3
|
import { LOGGER_ENV_FIELD_SPECS, LOGGER_ENV_VARS, LoggerEnvSchema } from "./logger-env.js";
|
|
4
4
|
export { LOGGER_ENV_FIELD_SPECS, LOGGER_ENV_VARS, LoggerEnvSchema, RESERVED_NON_SCHEMA_KICI_PREFIXES, RESERVED_NON_SCHEMA_KICI_VARS, defineEnv, validateUnknownKiciVars };
|
package/dist/env/logger-env.js
CHANGED
package/dist/idempotency.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-BTugEXQM.js";
|
|
2
2
|
import { createDb, createPool } from "./db.js";
|
|
3
3
|
import { MIGRATION_HASH_TABLE, REGISTERABLE_TRIGGER_TYPES, apiKeyExistsDirect, bumpRegistryVersionDirect, bumpRegistryVersionSimpleDirect, cleanupExecutionRowsDirect, clearDispatchQueueDirect, clearPeerCredentialsRevokedAtByIdsDirect, computeMigrationsHash, countActivePeerCredentialsByInstanceDirect, countCronLastFiredDirect, countHeldRunsByRunIdDirect, countWebhookSourcesByConnectionIdDirect, createDbRole, createEnvironmentTemplateDirect, createJoinTokenDirect, createReadOnlyDbUser, deleteCronLastFiredDirect, deleteCrossRepoTrustDirect, deleteEnvironmentDirect, deleteExecutionRunsByWorkflowNameDirect, deleteGenericWebhookSourcesByNameDirect, deleteKiciEventsDirect, deleteOrgSettingsByCustomerIdDirect, deletePeerCredentialsByInstanceIdLikeDirect, deleteWorkflowRegistrationsDirect, describeTableColumnsDirect, dropAndCreateDatabase, dropDatabaseDirect, emitKiciEventDirect, ensureDatabase, ensureOrgOwnerMemberDirect, findAnyUserApiKeyIdDirect, getExecutionRunSecurityDirect, getGenericWebhookSourceByRoutingKeyDirect, getHeldRunByIdDirect, getPeerCredentialRevokedAtDirect, getRegistryVersionDirect, getWebhookSourceByRoutingKeyDirect, getWorkflowRegistrationByIdDirect, insertCronLastFiredNowDirect, insertCrossRepoTrustStrictDirect, insertKiciEventRawDirect, insertPeerCredentialExpiredDirect, insertWorkflowRegistrationRawDirect, insertWorkflowRegistrationStrictDirect, isSchemaCurrent, isSchemaCurrentFromFilesDirect, latestExecutionRunByStatusDirect, listActiveGenericWebhookSourcesDirect, listActivePeerCredentialsExcludingDirect, listCrossRepoTrustBySourceRoutingKeyDirect, listEnvironmentsDirect, listExecutionJobsDirect, listExecutionRunsDirect, listKiciEventsDirect, listQueueDirect, listRegistrationsByRoutingKeyDirect, listRegistrationsDirect, maskDatabaseUrl, parseDatabaseUrl, platformConnectionExistsDirect, pollKiciEventsDirect, prunePeerCredentialsDirect, purgeScopedSecretsDirect, purgeSecretBackendsDirect, purgeStaleExecutionDirect, purgeStaleSourcesDirect, readStoredMigrationContentHash, registerWorkflowManualDirect, resetRaftStateDirect, resolvePlatformWebhookSourceRoutingKeyDirect, restoreSoftDeletedGenericWebhookSourceDirect, seedApiKeyInlineDirect, seedCiSecurityFixturesDirect, seedCrossRepoTrustDirect, seedEnvironmentBindingDirect, seedEnvironmentDirect, seedGenericWebhookSourceDirect, seedSourcePrivateKeyDirect, seedSyntheticGithubSourceDirect, seedUniversalGitSourceDirect, seedWebhookSecretDirect, setEnvironmentPolicyDirect, setEnvironmentSecretDirect, showEnvironmentDirect, showExecutionRunDirect, showKiciEventDirect, showQueueEntryDirect, showRegistrationDirect, storeMigrationContentHash, storeMigrationContentHashInTableDirect, tableExistsDirect, terminateIdleDbBackendsDirect, updateGenericWebhookVerificationConfigDirect, updateOrgSettingsDeniedReposDirect, updateSourceRoutingKeyDirect, updateWorkflowRegistrationCommitShaDirect, upsertCronLastFiredDirect, upsertOrgSettingsGlobalWorkflowsDirect, verifyKiciEventNotifyDirect, waitForEventLogRowByDeliveryIdDirect, waitForExecutionRunStatusSinceDirect, waitForLatestExecutionJobStatusDirect, waitForPlatformEventLogDistinctRoutedDirect, waitForPlatformExecutionRunStatusDirect, waitForPlatformRegistrationsDirect, waitForPostgresDirect, waitForRegistrationsByRoutingKeyDirect, waitForRegistrationsUpdatedAtAdvanceDirect, waitForRunCompletionDirect } from "./db-admin.js";
|
|
4
4
|
import { setupGracefulShutdown } from "./graceful-shutdown.js";
|
package/dist/package-manager.js
CHANGED
package/dist/reconnect-delay.js
CHANGED
package/dist/ring-buffer.js
CHANGED
package/dist/routes/health.js
CHANGED
package/dist/routes/metrics.js
CHANGED
package/dist/s3-client.js
CHANGED
package/dist/telemetry/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-BTugEXQM.js";
|
|
2
2
|
import { collectRuntimeMetricNames, getPrometheusExporter, initTelemetry } from "./init.js";
|
|
3
3
|
import { createMeter } from "./metrics.js";
|
|
4
4
|
export { collectRuntimeMetricNames, createMeter, getPrometheusExporter, initTelemetry };
|
package/dist/telemetry/init.js
CHANGED
package/dist/tool-check.js
CHANGED
package/dist/ts-loader-hook.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
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",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"yaml": "^2.8.3",
|
|
102
102
|
"zod": "^4.3.6",
|
|
103
103
|
"zx": "^8.8.5",
|
|
104
|
-
"@kici-dev/core": "0.1.
|
|
104
|
+
"@kici-dev/core": "0.1.17"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@opentelemetry/sdk-trace-base": "^2.7.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.1.
|
|
6
|
-
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fshared/0.1.
|
|
5
|
+
"name": "@kici-dev/shared@0.1.17",
|
|
6
|
+
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fshared/0.1.17/1885c7a2-2121-4876-8a5a-7fcbd118af01",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-06-
|
|
8
|
+
"created": "2026-06-14T12:30:07Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: kici-sbom-generator"
|
|
11
11
|
]
|
|
@@ -964,9 +964,9 @@
|
|
|
964
964
|
"homepage": "https://js-sdsl.org"
|
|
965
965
|
},
|
|
966
966
|
{
|
|
967
|
-
"SPDXID": "SPDXRef-Package--kici-dev-core-0.1.
|
|
967
|
+
"SPDXID": "SPDXRef-Package--kici-dev-core-0.1.17",
|
|
968
968
|
"name": "@kici-dev/core",
|
|
969
|
-
"versionInfo": "0.1.
|
|
969
|
+
"versionInfo": "0.1.17",
|
|
970
970
|
"downloadLocation": "NOASSERTION",
|
|
971
971
|
"filesAnalyzed": false,
|
|
972
972
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -977,7 +977,7 @@
|
|
|
977
977
|
{
|
|
978
978
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
979
979
|
"referenceType": "purl",
|
|
980
|
-
"referenceLocator": "pkg:npm/%40kici-dev/core@0.1.
|
|
980
|
+
"referenceLocator": "pkg:npm/%40kici-dev/core@0.1.17"
|
|
981
981
|
}
|
|
982
982
|
],
|
|
983
983
|
"description": "Light shared utilities for the KiCI stack (logging, errors, formatting, crypto, zx init, the TypeScript ESM loader hook). No server-side dependencies.",
|
|
@@ -986,7 +986,7 @@
|
|
|
986
986
|
{
|
|
987
987
|
"SPDXID": "SPDXRef-RootPackage",
|
|
988
988
|
"name": "@kici-dev/shared",
|
|
989
|
-
"versionInfo": "0.1.
|
|
989
|
+
"versionInfo": "0.1.17",
|
|
990
990
|
"downloadLocation": "NOASSERTION",
|
|
991
991
|
"filesAnalyzed": false,
|
|
992
992
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -997,7 +997,7 @@
|
|
|
997
997
|
{
|
|
998
998
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
999
999
|
"referenceType": "purl",
|
|
1000
|
-
"referenceLocator": "pkg:npm/%40kici-dev/shared@0.1.
|
|
1000
|
+
"referenceLocator": "pkg:npm/%40kici-dev/shared@0.1.17"
|
|
1001
1001
|
}
|
|
1002
1002
|
],
|
|
1003
1003
|
"description": "Shared utilities for the KiCI CI/CD stack — logging, zx setup, crypto, telemetry, health and metrics routes. No business logic.",
|
|
@@ -7820,32 +7820,32 @@
|
|
|
7820
7820
|
"relationshipType": "DEPENDS_ON"
|
|
7821
7821
|
},
|
|
7822
7822
|
{
|
|
7823
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
7823
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.17",
|
|
7824
7824
|
"relatedSpdxElement": "SPDXRef-Package-oxc-transform-0.128.0",
|
|
7825
7825
|
"relationshipType": "DEPENDS_ON"
|
|
7826
7826
|
},
|
|
7827
7827
|
{
|
|
7828
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
7828
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.17",
|
|
7829
7829
|
"relatedSpdxElement": "SPDXRef-Package-picocolors-1.1.1",
|
|
7830
7830
|
"relationshipType": "DEPENDS_ON"
|
|
7831
7831
|
},
|
|
7832
7832
|
{
|
|
7833
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
7833
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.17",
|
|
7834
7834
|
"relatedSpdxElement": "SPDXRef-Package-winston-daily-rotate-file-5.0.0",
|
|
7835
7835
|
"relationshipType": "DEPENDS_ON"
|
|
7836
7836
|
},
|
|
7837
7837
|
{
|
|
7838
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
7838
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.17",
|
|
7839
7839
|
"relatedSpdxElement": "SPDXRef-Package-winston-3.19.0",
|
|
7840
7840
|
"relationshipType": "DEPENDS_ON"
|
|
7841
7841
|
},
|
|
7842
7842
|
{
|
|
7843
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
7843
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.17",
|
|
7844
7844
|
"relatedSpdxElement": "SPDXRef-Package-zod-4.3.6",
|
|
7845
7845
|
"relationshipType": "DEPENDS_ON"
|
|
7846
7846
|
},
|
|
7847
7847
|
{
|
|
7848
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
7848
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.17",
|
|
7849
7849
|
"relatedSpdxElement": "SPDXRef-Package-zx-8.8.5",
|
|
7850
7850
|
"relationshipType": "DEPENDS_ON"
|
|
7851
7851
|
},
|
|
@@ -7856,7 +7856,7 @@
|
|
|
7856
7856
|
},
|
|
7857
7857
|
{
|
|
7858
7858
|
"spdxElementId": "SPDXRef-RootPackage",
|
|
7859
|
-
"relatedSpdxElement": "SPDXRef-Package--kici-dev-core-0.1.
|
|
7859
|
+
"relatedSpdxElement": "SPDXRef-Package--kici-dev-core-0.1.17",
|
|
7860
7860
|
"relationshipType": "DEPENDS_ON"
|
|
7861
7861
|
},
|
|
7862
7862
|
{
|
|
File without changes
|