@kici-dev/shared 0.1.21 → 0.1.22

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.
@@ -668,6 +668,12 @@ export declare function findAnyUserApiKeyIdDirect(databaseUrl: string, preferred
668
668
  export declare function seedSyntheticGithubSourceDirect(databaseUrl: string, opts: {
669
669
  routingKey: string;
670
670
  orgId: string;
671
+ /** Display name pushed by the orchestrator on register. Optional. */
672
+ name?: string;
673
+ /** Fine-grained subtype (e.g. 'github_app'). Optional. */
674
+ subtype?: string;
675
+ /** GitHub App slug. Optional. */
676
+ slug?: string;
671
677
  }): Promise<void>;
672
678
  /**
673
679
  * Seed a webhook secret into the orchestrator's `scoped_secrets` table,
package/dist/db-admin.js CHANGED
@@ -1234,9 +1234,16 @@ async function seedSyntheticGithubSourceDirect(databaseUrl, opts) {
1234
1234
  WHERE org_id = $1 AND provider = 'github'
1235
1235
  AND orchestrator_connection_id = 'e2e-synthetic'
1236
1236
  AND routing_key != $2`, [opts.orgId, opts.routingKey]);
1237
- await pool.query(`INSERT INTO webhook_sources (routing_key, provider, orchestrator_connection_id, org_id)
1238
- VALUES ($1, 'github', 'e2e-synthetic', $2)
1239
- ON CONFLICT (routing_key, orchestrator_connection_id) DO UPDATE SET org_id = $2`, [opts.routingKey, opts.orgId]);
1237
+ await pool.query(`INSERT INTO webhook_sources (routing_key, provider, orchestrator_connection_id, org_id, name, subtype, slug)
1238
+ VALUES ($1, 'github', 'e2e-synthetic', $2, $3, $4, $5)
1239
+ ON CONFLICT (routing_key, orchestrator_connection_id)
1240
+ DO UPDATE SET org_id = $2, name = $3, subtype = $4, slug = $5`, [
1241
+ opts.routingKey,
1242
+ opts.orgId,
1243
+ opts.name ?? null,
1244
+ opts.subtype ?? null,
1245
+ opts.slug ?? null
1246
+ ]);
1240
1247
  } finally {
1241
1248
  await pool.end();
1242
1249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kici-dev/shared",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
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.9.0",
102
102
  "zod": "^4.4.3",
103
103
  "zx": "^8.8.5",
104
- "@kici-dev/core": "0.1.21"
104
+ "@kici-dev/core": "0.1.22"
105
105
  },
106
106
  "devDependencies": {
107
107
  "@opentelemetry/sdk-trace-base": "^2.7.1",
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.21",
6
- "documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fshared/0.1.21/b54f7a45-edee-49ac-ad95-be6e6a0e4a47",
5
+ "name": "@kici-dev/shared@0.1.22",
6
+ "documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fshared/0.1.22/4ad51631-4f2e-44f4-b188-501f882737e9",
7
7
  "creationInfo": {
8
- "created": "2026-06-23T05:09:59Z",
8
+ "created": "2026-06-24T06:02:52Z",
9
9
  "creators": [
10
10
  "Tool: kici-sbom-generator"
11
11
  ]
@@ -696,9 +696,9 @@
696
696
  "homepage": "https://js-sdsl.org"
697
697
  },
698
698
  {
699
- "SPDXID": "SPDXRef-Package--kici-dev-core-0.1.21",
699
+ "SPDXID": "SPDXRef-Package--kici-dev-core-0.1.22",
700
700
  "name": "@kici-dev/core",
701
- "versionInfo": "0.1.21",
701
+ "versionInfo": "0.1.22",
702
702
  "downloadLocation": "NOASSERTION",
703
703
  "filesAnalyzed": false,
704
704
  "licenseConcluded": "NOASSERTION",
@@ -709,7 +709,7 @@
709
709
  {
710
710
  "referenceCategory": "PACKAGE-MANAGER",
711
711
  "referenceType": "purl",
712
- "referenceLocator": "pkg:npm/%40kici-dev/core@0.1.21"
712
+ "referenceLocator": "pkg:npm/%40kici-dev/core@0.1.22"
713
713
  }
714
714
  ],
715
715
  "description": "Light shared utilities for the KiCI stack (logging, errors, formatting, crypto, zx init, the TypeScript ESM loader hook). No server-side dependencies.",
@@ -718,7 +718,7 @@
718
718
  {
719
719
  "SPDXID": "SPDXRef-RootPackage",
720
720
  "name": "@kici-dev/shared",
721
- "versionInfo": "0.1.21",
721
+ "versionInfo": "0.1.22",
722
722
  "downloadLocation": "NOASSERTION",
723
723
  "filesAnalyzed": false,
724
724
  "licenseConcluded": "NOASSERTION",
@@ -729,7 +729,7 @@
729
729
  {
730
730
  "referenceCategory": "PACKAGE-MANAGER",
731
731
  "referenceType": "purl",
732
- "referenceLocator": "pkg:npm/%40kici-dev/shared@0.1.21"
732
+ "referenceLocator": "pkg:npm/%40kici-dev/shared@0.1.22"
733
733
  }
734
734
  ],
735
735
  "description": "Shared utilities for the KiCI CI/CD stack — logging, zx setup, crypto, telemetry, health and metrics routes. No business logic.",
@@ -5202,32 +5202,32 @@
5202
5202
  "relationshipType": "DEPENDS_ON"
5203
5203
  },
5204
5204
  {
5205
- "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.21",
5205
+ "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.22",
5206
5206
  "relatedSpdxElement": "SPDXRef-Package-oxc-transform-0.135.0",
5207
5207
  "relationshipType": "DEPENDS_ON"
5208
5208
  },
5209
5209
  {
5210
- "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.21",
5210
+ "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.22",
5211
5211
  "relatedSpdxElement": "SPDXRef-Package-picocolors-1.1.1",
5212
5212
  "relationshipType": "DEPENDS_ON"
5213
5213
  },
5214
5214
  {
5215
- "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.21",
5215
+ "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.22",
5216
5216
  "relatedSpdxElement": "SPDXRef-Package-winston-daily-rotate-file-5.0.0",
5217
5217
  "relationshipType": "DEPENDS_ON"
5218
5218
  },
5219
5219
  {
5220
- "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.21",
5220
+ "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.22",
5221
5221
  "relatedSpdxElement": "SPDXRef-Package-winston-3.19.0",
5222
5222
  "relationshipType": "DEPENDS_ON"
5223
5223
  },
5224
5224
  {
5225
- "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.21",
5225
+ "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.22",
5226
5226
  "relatedSpdxElement": "SPDXRef-Package-zod-4.4.3",
5227
5227
  "relationshipType": "DEPENDS_ON"
5228
5228
  },
5229
5229
  {
5230
- "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.21",
5230
+ "spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.22",
5231
5231
  "relatedSpdxElement": "SPDXRef-Package-zx-8.8.5",
5232
5232
  "relationshipType": "DEPENDS_ON"
5233
5233
  },
@@ -5238,7 +5238,7 @@
5238
5238
  },
5239
5239
  {
5240
5240
  "spdxElementId": "SPDXRef-RootPackage",
5241
- "relatedSpdxElement": "SPDXRef-Package--kici-dev-core-0.1.21",
5241
+ "relatedSpdxElement": "SPDXRef-Package--kici-dev-core-0.1.22",
5242
5242
  "relationshipType": "DEPENDS_ON"
5243
5243
  },
5244
5244
  {