@xemahq/kernel-contracts 0.23.1 → 0.23.3

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.
Files changed (61) hide show
  1. package/dist/connector/index.d.ts +1 -0
  2. package/dist/connector/index.d.ts.map +1 -1
  3. package/dist/connector/index.js +1 -0
  4. package/dist/connector/index.js.map +1 -1
  5. package/dist/connector/lib/connector-descriptor.d.ts +18 -1
  6. package/dist/connector/lib/connector-descriptor.d.ts.map +1 -1
  7. package/dist/connector/lib/connector-descriptor.js +13 -0
  8. package/dist/connector/lib/connector-descriptor.js.map +1 -1
  9. package/dist/connector/lib/integration-provider-contribution.d.ts +66 -0
  10. package/dist/connector/lib/integration-provider-contribution.d.ts.map +1 -0
  11. package/dist/connector/lib/integration-provider-contribution.js +55 -0
  12. package/dist/connector/lib/integration-provider-contribution.js.map +1 -0
  13. package/dist/connector/lib/onboarding-manifest.d.ts +10 -0
  14. package/dist/connector/lib/onboarding-manifest.d.ts.map +1 -1
  15. package/dist/connector/lib/onboarding-manifest.js +11 -1
  16. package/dist/connector/lib/onboarding-manifest.js.map +1 -1
  17. package/dist/connector/lib/provider-descriptor.d.ts +75 -1
  18. package/dist/connector/lib/provider-descriptor.d.ts.map +1 -1
  19. package/dist/connector/lib/provider-descriptor.js +34 -1
  20. package/dist/connector/lib/provider-descriptor.js.map +1 -1
  21. package/dist/distribution/index.d.ts +1 -0
  22. package/dist/distribution/index.d.ts.map +1 -1
  23. package/dist/distribution/index.js +1 -0
  24. package/dist/distribution/index.js.map +1 -1
  25. package/dist/distribution/lib/distribution-lock.d.ts +3 -0
  26. package/dist/distribution/lib/distribution-lock.d.ts.map +1 -1
  27. package/dist/distribution/lib/distribution-lock.js +3 -0
  28. package/dist/distribution/lib/distribution-lock.js.map +1 -1
  29. package/dist/distribution/lib/distribution-selector.d.ts +3 -0
  30. package/dist/distribution/lib/distribution-selector.d.ts.map +1 -1
  31. package/dist/distribution/lib/distribution-selector.js +9 -1
  32. package/dist/distribution/lib/distribution-selector.js.map +1 -1
  33. package/dist/distribution/lib/distribution.d.ts +1 -0
  34. package/dist/distribution/lib/distribution.d.ts.map +1 -1
  35. package/dist/distribution/lib/distribution.js +9 -1
  36. package/dist/distribution/lib/distribution.js.map +1 -1
  37. package/dist/distribution/lib/install-policy.d.ts +13 -0
  38. package/dist/distribution/lib/install-policy.d.ts.map +1 -0
  39. package/dist/distribution/lib/install-policy.js +18 -0
  40. package/dist/distribution/lib/install-policy.js.map +1 -0
  41. package/dist/workflow/lib/enums.d.ts +3 -0
  42. package/dist/workflow/lib/enums.d.ts.map +1 -1
  43. package/dist/workflow/lib/enums.js +3 -0
  44. package/dist/workflow/lib/enums.js.map +1 -1
  45. package/dist/workflow/lib/run-progress.d.ts +3 -0
  46. package/dist/workflow/lib/run-progress.d.ts.map +1 -1
  47. package/dist/workflow/lib/run-progress.js +3 -0
  48. package/dist/workflow/lib/run-progress.js.map +1 -1
  49. package/package.json +4 -2
  50. package/src/connector/index.ts +1 -0
  51. package/src/connector/lib/connector-descriptor.ts +30 -1
  52. package/src/connector/lib/integration-provider-contribution.ts +118 -0
  53. package/src/connector/lib/onboarding-manifest.ts +19 -0
  54. package/src/connector/lib/provider-descriptor.ts +101 -1
  55. package/src/distribution/index.ts +1 -0
  56. package/src/distribution/lib/distribution-lock.ts +20 -0
  57. package/src/distribution/lib/distribution-selector.ts +28 -3
  58. package/src/distribution/lib/distribution.ts +19 -0
  59. package/src/distribution/lib/install-policy.ts +46 -0
  60. package/src/workflow/lib/enums.ts +23 -0
  61. package/src/workflow/lib/run-progress.ts +6 -0
@@ -24,6 +24,25 @@ export const PlatformServiceTierSchema = z.union([
24
24
  z.literal('edge'),
25
25
  ]) as z.ZodType<PlatformServiceTier>;
26
26
 
27
+ /**
28
+ * Canonical boot/wave rank of every tier token — THE single vocabulary source
29
+ * for tier ordering across the boot graph, the CLI launcher's wave derivation,
30
+ * and the deploy-roster generators. Lower boots first. `infra` (-1) is the
31
+ * pre-wave: submodules + the external generic plane (identity, event-hub,
32
+ * secrets, llm-gateway, keycloak, postgres, etcd) that always boot before the
33
+ * Xema service mesh. Do NOT redeclare local tier-rank maps in consumers.
34
+ */
35
+ export const PLATFORM_SERVICE_TIER_RANK: Readonly<
36
+ Record<PlatformServiceTier | 'infra', number>
37
+ > = {
38
+ infra: -1,
39
+ kernel: 0,
40
+ system: 1,
41
+ base: 2,
42
+ platform: 3,
43
+ edge: 4,
44
+ };
45
+
27
46
  /**
28
47
  * Schema-versioning seed for `xema-distribution.json`. Bumped via a coordinated
29
48
  * PR on an incompatible shape change; consumers refuse versions they do not
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * `BiomeInstallPolicy` — the package-model install policy a DISTRIBUTION stamps
5
+ * on every resolved biome (never manifest-sourced; the same biome can be
6
+ * `required` in one edition and `optional` in another).
7
+ *
8
+ * - `required` — always installed AND always launched. Kernel- and
9
+ * system-tier biomes are forced to this by the resolver
10
+ * (a platform invariant, regardless of selectors).
11
+ * - `default-selected` — shipped and launched by default; a deployment may
12
+ * opt out.
13
+ * - `optional` — shipped in the lock (catalog-visible, image built)
14
+ * but launched only when explicitly selected.
15
+ *
16
+ * Orthogonal to `LockedBiome.mandatory`, which is the org-DISABLE governance
17
+ * flag (may the org switch it off once shipped) — installPolicy decides what
18
+ * comes up by default; mandatory decides what can be turned off.
19
+ */
20
+ export enum BiomeInstallPolicy {
21
+ Required = 'required',
22
+ DefaultSelected = 'default-selected',
23
+ Optional = 'optional',
24
+ }
25
+
26
+ export const BiomeInstallPolicySchema = z.nativeEnum(BiomeInstallPolicy);
27
+
28
+ /**
29
+ * `BiomeLaunchMode` — WHERE/HOW a biome's services are launched. A distribution
30
+ * decision applied at resolve time (never manifest-sourced — the biome only
31
+ * declares WHAT it is).
32
+ *
33
+ * - `static` — launched as regular services in the static roster
34
+ * (dev launcher waves + prod services.yaml). The default
35
+ * semantics when the lock field is absent.
36
+ * - `per-installation` — a sidecar-host template instantiated dynamically by
37
+ * biome-host-api once a biome is installed; NOT a
38
+ * statically-launched service, so static rosters must
39
+ * not boot it standalone.
40
+ */
41
+ export enum BiomeLaunchMode {
42
+ Static = 'static',
43
+ PerInstallation = 'per-installation',
44
+ }
45
+
46
+ export const BiomeLaunchModeSchema = z.nativeEnum(BiomeLaunchMode);
@@ -219,6 +219,29 @@ export enum BuiltInActionId {
219
219
  PUBLISH_KB = 'xema/publish-kb',
220
220
  SCM_CHECKOUT = 'software-dev/scm-checkout',
221
221
  SCM_MERGE = 'software-dev/scm-merge',
222
+ /**
223
+ * Create (or idempotently ensure) a work branch on the project's bound
224
+ * SCM repository via connector-gateway-api's
225
+ * `POST /projects/:projectId/git/branches`. Shipped by the software-dev
226
+ * biome; the flagship delivery pipeline uses it to mint the run's
227
+ * deterministic work branch before the engineering phase starts.
228
+ */
229
+ SCM_BRANCH = 'software-dev/scm-branch',
230
+ /**
231
+ * Open (or idempotently reuse) a change request / pull request from a
232
+ * source branch to a target branch via connector-gateway-api's
233
+ * `POST /projects/:projectId/change-requests`. Shipped by the
234
+ * software-dev biome.
235
+ */
236
+ SCM_OPEN_PR = 'software-dev/scm-open-pr',
237
+ /**
238
+ * Transition backlog items linked to the run (or an explicit item-id
239
+ * set) to a target status via backlog-api's
240
+ * `PATCH /items/:id/status`. Shipped by the software-dev biome; the
241
+ * flagship delivery pipeline uses it post-merge to close out the
242
+ * items the run delivered.
243
+ */
244
+ BACKLOG_SYNC = 'software-dev/backlog-sync',
222
245
  WEBHOOK = 'xema/webhook',
223
246
  HTTP = 'xema/http',
224
247
  WAIT = 'xema/wait',
@@ -42,6 +42,12 @@ export enum RunActivityKind {
42
42
  REVIEW_POSTING = 'review_posting',
43
43
  SCM_MERGE = 'scm_merge',
44
44
  SCM_CHECKOUT = 'scm_checkout',
45
+ /** Work-branch creation via `software-dev/scm-branch`. */
46
+ SCM_BRANCH = 'scm_branch',
47
+ /** Change-request / PR opening via `software-dev/scm-open-pr`. */
48
+ SCM_OPEN_PR = 'scm_open_pr',
49
+ /** Backlog item status transitions via `software-dev/backlog-sync`. */
50
+ BACKLOG_SYNC = 'backlog_sync',
45
51
  KB_PUBLISH = 'kb_publish',
46
52
  WEBHOOK = 'webhook',
47
53
  HTTP = 'http',