@xemahq/kernel-contracts 0.3.0 → 0.3.2

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/LICENSE ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://xema.dev/schemas/awp-spec.v1.json",
3
- "emittedAt": "2026-06-07T10:04:28.421Z",
3
+ "emittedAt": "2026-06-09T18:27:18.685Z",
4
4
  "spec": {
5
5
  "id": "awp/v1",
6
6
  "version": "1.2.0",
@@ -1,4 +1,5 @@
1
1
  export * from './lib/service-descriptor';
2
2
  export * from './lib/service-registry-client';
3
3
  export * from './lib/inject-service';
4
+ export * from './lib/service-names.generated';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/service-registry/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/service-registry/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC"}
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./lib/service-descriptor"), exports);
18
18
  __exportStar(require("./lib/service-registry-client"), exports);
19
19
  __exportStar(require("./lib/inject-service"), exports);
20
+ __exportStar(require("./lib/service-names.generated"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service-registry/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,gEAA8C;AAC9C,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/service-registry/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,gEAA8C;AAC9C,uDAAqC;AACrC,gEAA8C"}
@@ -0,0 +1,54 @@
1
+ export declare const ServiceName: {
2
+ readonly ACTIVITY_FEED_API: "activity-feed-api";
3
+ readonly AGENT_SESSION_API: "agent-session-api";
4
+ readonly APP_RUNTIME_API: "app-runtime-api";
5
+ readonly ARTIFACT_STORE_API: "artifact-store-api";
6
+ readonly AUDIT_LOG_API: "audit-log-api";
7
+ readonly AUTHORIZATION_API: "authorization-api";
8
+ readonly BACKLOG_API: "backlog-api";
9
+ readonly BIOME_ADAPTER_HOST: "biome-adapter-host";
10
+ readonly BIOME_FETCHER_API: "biome-fetcher-api";
11
+ readonly BIOME_HOST_API: "biome-host-api";
12
+ readonly CAPABILITY_REGISTRY_API: "capability-registry-api";
13
+ readonly CATALOG_API: "catalog-api";
14
+ readonly CONNECTOR_GATEWAY_API: "connector-gateway-api";
15
+ readonly CONTAINER_REGISTRY_API: "container-registry-api";
16
+ readonly CREDENTIAL_BROKER_API: "credential-broker-api";
17
+ readonly DELIVERABLE_SPECS_API: "deliverable-specs-api";
18
+ readonly DESIGN_SYSTEM_BUILDER_API: "design-system-builder-api";
19
+ readonly DOCUMENT_RENDER_API: "document-render-api";
20
+ readonly FLEET_CONTROL_API: "fleet-control-api";
21
+ readonly IDENTITY_API: "identity-api";
22
+ readonly KNOWLEDGE_BASE_API: "knowledge-base-api";
23
+ readonly LLM_REGISTRY_API: "llm-registry-api";
24
+ readonly MAILOPS_API: "mailops-api";
25
+ readonly MCP_GATEWAY_API: "mcp-gateway-api";
26
+ readonly MEMORY_API: "memory-api";
27
+ readonly OBJECT_REGISTRY_API: "object-registry-api";
28
+ readonly OPENCODE_WORKER: "opencode-worker";
29
+ readonly ORG_DATABASE_POOL_API: "org-database-pool-api";
30
+ readonly POLICY_DISTRIBUTOR_API: "policy-distributor-api";
31
+ readonly PROJECT_REGISTRY_API: "project-registry-api";
32
+ readonly PUBLIC_GATEWAY_API: "public-gateway-api";
33
+ readonly SEARCH_API: "search-api";
34
+ readonly SKILL_REGISTRY_API: "skill-registry-api";
35
+ readonly SPACE_REGISTRY_API: "space-registry-api";
36
+ readonly USER_HUB_API: "user-hub-api";
37
+ readonly WEBAPP_STUDIO_API: "webapp-studio-api";
38
+ readonly WORKFLOW_ENGINE_API: "workflow-engine-api";
39
+ readonly WORKFLOW_RUNTIME_WORKER: "workflow-runtime-worker";
40
+ readonly WORKLOAD_RUNTIME_API: "workload-runtime-api";
41
+ readonly WORKSPACE_GIT_API: "workspace-git-api";
42
+ readonly WORKSPACE_ORCHESTRATOR_API: "workspace-orchestrator-api";
43
+ readonly WORKSPACE_PROXY: "workspace-proxy";
44
+ readonly WORKSPACE_STORAGE_POOL_API: "workspace-storage-pool-api";
45
+ readonly XEMA_BIOME_RUNNER: "xema-biome-runner";
46
+ readonly XEMA_CAPABILITY_ROUTER: "xema-capability-router";
47
+ readonly XEMA_KERNEL_SERVER: "xema-kernel-server";
48
+ readonly XEMA_PLATFORM_WORKER: "xema-platform-worker";
49
+ readonly XEMA_RUNNER_PLANE: "xema-runner-plane";
50
+ readonly XEMA_SHELL_API: "xema-shell-api";
51
+ readonly XEMA_STORE_API: "xema-store-api";
52
+ };
53
+ export type ServiceName = (typeof ServiceName)[keyof typeof ServiceName];
54
+ //# sourceMappingURL=service-names.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-names.generated.d.ts","sourceRoot":"","sources":["../../../src/service-registry/lib/service-names.generated.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceName = void 0;
4
+ exports.ServiceName = {
5
+ ACTIVITY_FEED_API: 'activity-feed-api',
6
+ AGENT_SESSION_API: 'agent-session-api',
7
+ APP_RUNTIME_API: 'app-runtime-api',
8
+ ARTIFACT_STORE_API: 'artifact-store-api',
9
+ AUDIT_LOG_API: 'audit-log-api',
10
+ AUTHORIZATION_API: 'authorization-api',
11
+ BACKLOG_API: 'backlog-api',
12
+ BIOME_ADAPTER_HOST: 'biome-adapter-host',
13
+ BIOME_FETCHER_API: 'biome-fetcher-api',
14
+ BIOME_HOST_API: 'biome-host-api',
15
+ CAPABILITY_REGISTRY_API: 'capability-registry-api',
16
+ CATALOG_API: 'catalog-api',
17
+ CONNECTOR_GATEWAY_API: 'connector-gateway-api',
18
+ CONTAINER_REGISTRY_API: 'container-registry-api',
19
+ CREDENTIAL_BROKER_API: 'credential-broker-api',
20
+ DELIVERABLE_SPECS_API: 'deliverable-specs-api',
21
+ DESIGN_SYSTEM_BUILDER_API: 'design-system-builder-api',
22
+ DOCUMENT_RENDER_API: 'document-render-api',
23
+ FLEET_CONTROL_API: 'fleet-control-api',
24
+ IDENTITY_API: 'identity-api',
25
+ KNOWLEDGE_BASE_API: 'knowledge-base-api',
26
+ LLM_REGISTRY_API: 'llm-registry-api',
27
+ MAILOPS_API: 'mailops-api',
28
+ MCP_GATEWAY_API: 'mcp-gateway-api',
29
+ MEMORY_API: 'memory-api',
30
+ OBJECT_REGISTRY_API: 'object-registry-api',
31
+ OPENCODE_WORKER: 'opencode-worker',
32
+ ORG_DATABASE_POOL_API: 'org-database-pool-api',
33
+ POLICY_DISTRIBUTOR_API: 'policy-distributor-api',
34
+ PROJECT_REGISTRY_API: 'project-registry-api',
35
+ PUBLIC_GATEWAY_API: 'public-gateway-api',
36
+ SEARCH_API: 'search-api',
37
+ SKILL_REGISTRY_API: 'skill-registry-api',
38
+ SPACE_REGISTRY_API: 'space-registry-api',
39
+ USER_HUB_API: 'user-hub-api',
40
+ WEBAPP_STUDIO_API: 'webapp-studio-api',
41
+ WORKFLOW_ENGINE_API: 'workflow-engine-api',
42
+ WORKFLOW_RUNTIME_WORKER: 'workflow-runtime-worker',
43
+ WORKLOAD_RUNTIME_API: 'workload-runtime-api',
44
+ WORKSPACE_GIT_API: 'workspace-git-api',
45
+ WORKSPACE_ORCHESTRATOR_API: 'workspace-orchestrator-api',
46
+ WORKSPACE_PROXY: 'workspace-proxy',
47
+ WORKSPACE_STORAGE_POOL_API: 'workspace-storage-pool-api',
48
+ XEMA_BIOME_RUNNER: 'xema-biome-runner',
49
+ XEMA_CAPABILITY_ROUTER: 'xema-capability-router',
50
+ XEMA_KERNEL_SERVER: 'xema-kernel-server',
51
+ XEMA_PLATFORM_WORKER: 'xema-platform-worker',
52
+ XEMA_RUNNER_PLANE: 'xema-runner-plane',
53
+ XEMA_SHELL_API: 'xema-shell-api',
54
+ XEMA_STORE_API: 'xema-store-api',
55
+ };
56
+ //# sourceMappingURL=service-names.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-names.generated.js","sourceRoot":"","sources":["../../../src/service-registry/lib/service-names.generated.ts"],"names":[],"mappings":";;;AAWa,QAAA,WAAW,GAAG;IACzB,iBAAiB,EAAE,mBAAmB;IACtC,iBAAiB,EAAE,mBAAmB;IACtC,eAAe,EAAE,iBAAiB;IAClC,kBAAkB,EAAE,oBAAoB;IACxC,aAAa,EAAE,eAAe;IAC9B,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,cAAc,EAAE,gBAAgB;IAChC,uBAAuB,EAAE,yBAAyB;IAClD,WAAW,EAAE,aAAa;IAC1B,qBAAqB,EAAE,uBAAuB;IAC9C,sBAAsB,EAAE,wBAAwB;IAChD,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,yBAAyB,EAAE,2BAA2B;IACtD,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,iBAAiB;IAClC,qBAAqB,EAAE,uBAAuB;IAC9C,sBAAsB,EAAE,wBAAwB;IAChD,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,oBAAoB;IACxC,kBAAkB,EAAE,oBAAoB;IACxC,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,uBAAuB,EAAE,yBAAyB;IAClD,oBAAoB,EAAE,sBAAsB;IAC5C,iBAAiB,EAAE,mBAAmB;IACtC,0BAA0B,EAAE,4BAA4B;IACxD,eAAe,EAAE,iBAAiB;IAClC,0BAA0B,EAAE,4BAA4B;IACxD,iBAAiB,EAAE,mBAAmB;IACtC,sBAAsB,EAAE,wBAAwB;IAChD,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;IAC5C,iBAAiB,EAAE,mBAAmB;IACtC,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;CACxB,CAAC"}
@@ -9,7 +9,8 @@ export declare enum PlatformWorkflowDomain {
9
9
  INTEGRATION_LIFECYCLE = "integration-lifecycle",
10
10
  BIOME_LIFECYCLE = "biome-lifecycle",
11
11
  INTEGRATION_INGRESS = "integration-ingress",
12
- KNOWLEDGE_BASE = "knowledge-base"
12
+ KNOWLEDGE_BASE = "knowledge-base",
13
+ WORKSPACE_ORCHESTRATOR = "workspace-orchestrator"
13
14
  }
14
15
  export declare const PLATFORM_TASK_QUEUE_PREFIX = "xema-platform.";
15
16
  export declare function platformTaskQueue(domain: PlatformWorkflowDomain): string;
@@ -1 +1 @@
1
- {"version":3,"file":"platform-task-queue.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/platform-task-queue.ts"],"names":[],"mappings":"AAqBA,oBAAY,sBAAsB;IAEhC,iBAAiB,sBAAsB;IAEvC,mBAAmB,wBAAwB;IAE3C,MAAM,WAAW;IAEjB,SAAS,cAAc;IAEvB,aAAa,kBAAkB;IAE/B,QAAQ,aAAa;IAErB,gBAAgB,qBAAqB;IAMrC,qBAAqB,0BAA0B;IAE/C,eAAe,oBAAoB;IAKnC,mBAAmB,wBAAwB;IAK3C,cAAc,mBAAmB;CAClC;AAGD,eAAO,MAAM,0BAA0B,mBAAmB,CAAC;AAO3D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,CAExE;AAMD,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,MAAM,GAChB,sBAAsB,GAAG,IAAI,CAQ/B"}
1
+ {"version":3,"file":"platform-task-queue.d.ts","sourceRoot":"","sources":["../../../src/workflow/lib/platform-task-queue.ts"],"names":[],"mappings":"AAqBA,oBAAY,sBAAsB;IAEhC,iBAAiB,sBAAsB;IAEvC,mBAAmB,wBAAwB;IAE3C,MAAM,WAAW;IAEjB,SAAS,cAAc;IAEvB,aAAa,kBAAkB;IAE/B,QAAQ,aAAa;IAErB,gBAAgB,qBAAqB;IAMrC,qBAAqB,0BAA0B;IAE/C,eAAe,oBAAoB;IAKnC,mBAAmB,wBAAwB;IAK3C,cAAc,mBAAmB;IAKjC,sBAAsB,2BAA2B;CAClD;AAGD,eAAO,MAAM,0BAA0B,mBAAmB,CAAC;AAO3D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,CAExE;AAMD,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,MAAM,GAChB,sBAAsB,GAAG,IAAI,CAQ/B"}
@@ -16,6 +16,7 @@ var PlatformWorkflowDomain;
16
16
  PlatformWorkflowDomain["BIOME_LIFECYCLE"] = "biome-lifecycle";
17
17
  PlatformWorkflowDomain["INTEGRATION_INGRESS"] = "integration-ingress";
18
18
  PlatformWorkflowDomain["KNOWLEDGE_BASE"] = "knowledge-base";
19
+ PlatformWorkflowDomain["WORKSPACE_ORCHESTRATOR"] = "workspace-orchestrator";
19
20
  })(PlatformWorkflowDomain || (exports.PlatformWorkflowDomain = PlatformWorkflowDomain = {}));
20
21
  exports.PLATFORM_TASK_QUEUE_PREFIX = 'xema-platform.';
21
22
  function platformTaskQueue(domain) {
@@ -1 +1 @@
1
- {"version":3,"file":"platform-task-queue.js","sourceRoot":"","sources":["../../../src/workflow/lib/platform-task-queue.ts"],"names":[],"mappings":";;;AAgEA,8CAEC;AAMD,sEAUC;AA7DD,IAAY,sBAiCX;AAjCD,WAAY,sBAAsB;IAEhC,iEAAuC,CAAA;IAEvC,qEAA2C,CAAA;IAE3C,2CAAiB,CAAA;IAEjB,iDAAuB,CAAA;IAEvB,yDAA+B,CAAA;IAE/B,+CAAqB,CAAA;IAErB,+DAAqC,CAAA;IAMrC,yEAA+C,CAAA;IAE/C,6DAAmC,CAAA;IAKnC,qEAA2C,CAAA;IAK3C,2DAAiC,CAAA;AACnC,CAAC,EAjCW,sBAAsB,sCAAtB,sBAAsB,QAiCjC;AAGY,QAAA,0BAA0B,GAAG,gBAAgB,CAAC;AAO3D,SAAgB,iBAAiB,CAAC,MAA8B;IAC9D,OAAO,GAAG,kCAA0B,GAAG,MAAM,EAAE,CAAC;AAClD,CAAC;AAMD,SAAgB,6BAA6B,CAC3C,SAAiB;IAEjB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,kCAA0B,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,kCAA0B,CAAC,MAAM,CAAC,CAAC;IAClE,OAAQ,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAc,CAAC,QAAQ,CAAC,MAAM,CAAC;QACzE,CAAC,CAAE,MAAiC;QACpC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
1
+ {"version":3,"file":"platform-task-queue.js","sourceRoot":"","sources":["../../../src/workflow/lib/platform-task-queue.ts"],"names":[],"mappings":";;;AAqEA,8CAEC;AAMD,sEAUC;AAlED,IAAY,sBAsCX;AAtCD,WAAY,sBAAsB;IAEhC,iEAAuC,CAAA;IAEvC,qEAA2C,CAAA;IAE3C,2CAAiB,CAAA;IAEjB,iDAAuB,CAAA;IAEvB,yDAA+B,CAAA;IAE/B,+CAAqB,CAAA;IAErB,+DAAqC,CAAA;IAMrC,yEAA+C,CAAA;IAE/C,6DAAmC,CAAA;IAKnC,qEAA2C,CAAA;IAK3C,2DAAiC,CAAA;IAKjC,2EAAiD,CAAA;AACnD,CAAC,EAtCW,sBAAsB,sCAAtB,sBAAsB,QAsCjC;AAGY,QAAA,0BAA0B,GAAG,gBAAgB,CAAC;AAO3D,SAAgB,iBAAiB,CAAC,MAA8B;IAC9D,OAAO,GAAG,kCAA0B,GAAG,MAAM,EAAE,CAAC;AAClD,CAAC;AAMD,SAAgB,6BAA6B,CAC3C,SAAiB;IAEjB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,kCAA0B,CAAC,EAAE,CAAC;QACtD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,kCAA0B,CAAC,MAAM,CAAC,CAAC;IAClE,OAAQ,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAc,CAAC,QAAQ,CAAC,MAAM,CAAC;QACzE,CAAC,CAAE,MAAiC;QACpC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/kernel-contracts",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Consolidated Xema OS kernel wire contracts — pure types + zod schemas for the 32 kernel protocol surfaces. One package, one npm scope, wildcard per-surface subpath exports. No framework/runtime deps.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -10,26 +10,18 @@
10
10
  "dist",
11
11
  "src"
12
12
  ],
13
- "scripts": {
14
- "clean": "rm -rf dist",
15
- "build": "tsc -p tsconfig.json && node scripts/emit-awp-spec.mjs",
16
- "format": "prettier --write \"src/**/*.ts\"",
17
- "typecheck": "tsc -p tsconfig.json --noEmit",
18
- "lint": "eslint .",
19
- "check:boundary": "node scripts/check-subpath-dag.mjs"
20
- },
21
13
  "devDependencies": {
22
- "@eslint/js": "catalog:",
23
- "@types/node": "catalog:",
24
- "eslint": "catalog:",
25
- "eslint-config-prettier": "catalog:",
14
+ "@eslint/js": "^9.39.4",
15
+ "@types/node": "25.2.3",
16
+ "eslint": "^9.39.4",
17
+ "eslint-config-prettier": "^10.1.8",
26
18
  "eslint-plugin-import": "^2.31.0",
27
- "prettier": "catalog:",
28
- "typescript": "catalog:",
29
- "typescript-eslint": "catalog:"
19
+ "prettier": "3.6.2",
20
+ "typescript": "5.9.3",
21
+ "typescript-eslint": "^8.56.1"
30
22
  },
31
23
  "dependencies": {
32
- "zod": "catalog:"
24
+ "zod": "^4.3.6"
33
25
  },
34
26
  "exports": {
35
27
  "./*": {
@@ -38,5 +30,13 @@
38
30
  "default": "./dist/*/index.js"
39
31
  },
40
32
  "./package.json": "./package.json"
33
+ },
34
+ "scripts": {
35
+ "clean": "rm -rf dist",
36
+ "build": "tsc -p tsconfig.json && node scripts/emit-awp-spec.mjs",
37
+ "format": "prettier --write \"src/**/*.ts\"",
38
+ "typecheck": "tsc -p tsconfig.json --noEmit",
39
+ "lint": "eslint .",
40
+ "check:boundary": "node scripts/check-subpath-dag.mjs"
41
41
  }
42
- }
42
+ }
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
 
3
3
  /**
4
4
  * `BiomeTarget` — the runtime surface a biome ships for. A `server` biome runs
5
- * as a backend workload (NestJS service / worker); a `web` biome is a federated
5
+ * as a backend workload (a backend service / worker); a `web` biome is a federated
6
6
  * frontend module mounted in the host shell. Mirrors the biome-sdk manifest
7
7
  * `xema.target` discriminant; lives here as the canonical contract so the
8
8
  * distribution lockfile can type the resolved surface without depending on the
@@ -54,8 +54,8 @@ export const LockedBiomeSchema = z.object({
54
54
 
55
55
  /**
56
56
  * A platform-substrate service that is part of a distribution but is NOT a biome
57
- * — the deployment "init system" (kernel server, host shell, opencode worker
58
- * plane, docs). These always ship with any Xema deployment that includes the
57
+ * — the deployment "init system" (kernel server, host shell, agent-runtime
58
+ * worker plane, docs). These always ship with any Xema deployment that includes the
59
59
  * base layer; they are declared once on the `core` distribution and inherited
60
60
  * via `extends`. Carried into the lock so the roster generator sees the full
61
61
  * service set (biome services ∪ platform services) without any hardcoded floor.
@@ -28,7 +28,7 @@ export const DistributionTrustPolicySchema = z.object({
28
28
 
29
29
  /**
30
30
  * A platform-substrate service a distribution ships that is NOT a biome — the
31
- * deployment "init system" (kernel server, host shell, opencode worker plane,
31
+ * deployment "init system" (kernel server, host shell, agent-runtime worker plane,
32
32
  * docs). Declared once on the floor distribution (`core`) and inherited via
33
33
  * `extends`. These never go through biome selectors (they are not biomes); they
34
34
  * are carried verbatim into the lock so the deployment-roster generator sees the
@@ -1,3 +1,4 @@
1
1
  export * from './lib/service-descriptor';
2
2
  export * from './lib/service-registry-client';
3
3
  export * from './lib/inject-service';
4
+ export * from './lib/service-names.generated';
@@ -0,0 +1,65 @@
1
+ // AUTO-GENERATED by tooling/codegen/generate-service-names.mjs — DO NOT EDIT.
2
+ // Source of truth: each biome's xema-biome.json ships.apis[].name + every
3
+ // ServiceRegistryModule descriptor name. Regenerate: `node tooling/codegen/generate-service-names.mjs`.
4
+
5
+ /**
6
+ * Canonical registry names of every first-party Xema platform service. Use in
7
+ * `resolveHttpUrl(registry, ServiceName.X)`, `@InjectService(ServiceName.X)`,
8
+ * descriptor `name`, `consumes`, and `requiresServices` instead of free-form
9
+ * strings. Third-party biomes register/resolve via raw strings — the registry
10
+ * accepts any string; this enum is the typed surface for first-party peers.
11
+ */
12
+ export const ServiceName = {
13
+ ACTIVITY_FEED_API: 'activity-feed-api',
14
+ AGENT_SESSION_API: 'agent-session-api',
15
+ APP_RUNTIME_API: 'app-runtime-api',
16
+ ARTIFACT_STORE_API: 'artifact-store-api',
17
+ AUDIT_LOG_API: 'audit-log-api',
18
+ AUTHORIZATION_API: 'authorization-api',
19
+ BACKLOG_API: 'backlog-api',
20
+ BIOME_ADAPTER_HOST: 'biome-adapter-host',
21
+ BIOME_FETCHER_API: 'biome-fetcher-api',
22
+ BIOME_HOST_API: 'biome-host-api',
23
+ CAPABILITY_REGISTRY_API: 'capability-registry-api',
24
+ CATALOG_API: 'catalog-api',
25
+ CONNECTOR_GATEWAY_API: 'connector-gateway-api',
26
+ CONTAINER_REGISTRY_API: 'container-registry-api',
27
+ CREDENTIAL_BROKER_API: 'credential-broker-api',
28
+ DELIVERABLE_SPECS_API: 'deliverable-specs-api',
29
+ DESIGN_SYSTEM_BUILDER_API: 'design-system-builder-api',
30
+ DOCUMENT_RENDER_API: 'document-render-api',
31
+ FLEET_CONTROL_API: 'fleet-control-api',
32
+ IDENTITY_API: 'identity-api',
33
+ KNOWLEDGE_BASE_API: 'knowledge-base-api',
34
+ LLM_REGISTRY_API: 'llm-registry-api',
35
+ MAILOPS_API: 'mailops-api',
36
+ MCP_GATEWAY_API: 'mcp-gateway-api',
37
+ MEMORY_API: 'memory-api',
38
+ OBJECT_REGISTRY_API: 'object-registry-api',
39
+ OPENCODE_WORKER: 'opencode-worker',
40
+ ORG_DATABASE_POOL_API: 'org-database-pool-api',
41
+ POLICY_DISTRIBUTOR_API: 'policy-distributor-api',
42
+ PROJECT_REGISTRY_API: 'project-registry-api',
43
+ PUBLIC_GATEWAY_API: 'public-gateway-api',
44
+ SEARCH_API: 'search-api',
45
+ SKILL_REGISTRY_API: 'skill-registry-api',
46
+ SPACE_REGISTRY_API: 'space-registry-api',
47
+ USER_HUB_API: 'user-hub-api',
48
+ WEBAPP_STUDIO_API: 'webapp-studio-api',
49
+ WORKFLOW_ENGINE_API: 'workflow-engine-api',
50
+ WORKFLOW_RUNTIME_WORKER: 'workflow-runtime-worker',
51
+ WORKLOAD_RUNTIME_API: 'workload-runtime-api',
52
+ WORKSPACE_GIT_API: 'workspace-git-api',
53
+ WORKSPACE_ORCHESTRATOR_API: 'workspace-orchestrator-api',
54
+ WORKSPACE_PROXY: 'workspace-proxy',
55
+ WORKSPACE_STORAGE_POOL_API: 'workspace-storage-pool-api',
56
+ XEMA_BIOME_RUNNER: 'xema-biome-runner',
57
+ XEMA_CAPABILITY_ROUTER: 'xema-capability-router',
58
+ XEMA_KERNEL_SERVER: 'xema-kernel-server',
59
+ XEMA_PLATFORM_WORKER: 'xema-platform-worker',
60
+ XEMA_RUNNER_PLANE: 'xema-runner-plane',
61
+ XEMA_SHELL_API: 'xema-shell-api',
62
+ XEMA_STORE_API: 'xema-store-api',
63
+ } as const;
64
+
65
+ export type ServiceName = (typeof ServiceName)[keyof typeof ServiceName];
@@ -52,6 +52,11 @@ export enum PlatformWorkflowDomain {
52
52
  * extraction, T2 file ingestion).
53
53
  */
54
54
  KNOWLEDGE_BASE = 'knowledge-base',
55
+ /**
56
+ * Workspace provisioning, template sync, and orchestration sweeps
57
+ * (SyncSystemTemplatesWorkflow Temporal lift).
58
+ */
59
+ WORKSPACE_ORCHESTRATOR = 'workspace-orchestrator',
55
60
  }
56
61
 
57
62
  /** Prefix shared by every internal-workflow task queue. */