@xemahq/kernel-contracts 0.3.1 → 0.3.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.
- package/LICENSE +176 -201
- package/dist/agent-composition/lib/composition.d.ts +2 -0
- package/dist/agent-composition/lib/composition.d.ts.map +1 -1
- package/dist/agent-workspace/awp-spec.json +1 -1
- package/dist/service-registry/index.d.ts +1 -0
- package/dist/service-registry/index.d.ts.map +1 -1
- package/dist/service-registry/index.js +1 -0
- package/dist/service-registry/index.js.map +1 -1
- package/dist/service-registry/lib/service-names.generated.d.ts +54 -0
- package/dist/service-registry/lib/service-names.generated.d.ts.map +1 -0
- package/dist/service-registry/lib/service-names.generated.js +56 -0
- package/dist/service-registry/lib/service-names.generated.js.map +1 -0
- package/dist/worker-runtime/index.d.ts +1 -0
- package/dist/worker-runtime/index.d.ts.map +1 -1
- package/dist/worker-runtime/index.js +1 -0
- package/dist/worker-runtime/index.js.map +1 -1
- package/dist/worker-runtime/lib/enums.d.ts +4 -1
- package/dist/worker-runtime/lib/enums.d.ts.map +1 -1
- package/dist/worker-runtime/lib/enums.js +3 -0
- package/dist/worker-runtime/lib/enums.js.map +1 -1
- package/dist/worker-runtime/lib/runtime-layout-profile.d.ts +11 -0
- package/dist/worker-runtime/lib/runtime-layout-profile.d.ts.map +1 -0
- package/dist/worker-runtime/lib/runtime-layout-profile.js +44 -0
- package/dist/worker-runtime/lib/runtime-layout-profile.js.map +1 -0
- package/dist/worker-runtime/lib/runtime.d.ts +1 -1
- package/dist/worker-runtime/lib/runtime.d.ts.map +1 -1
- package/dist/workflow/lib/platform-task-queue.d.ts +2 -1
- package/dist/workflow/lib/platform-task-queue.d.ts.map +1 -1
- package/dist/workflow/lib/platform-task-queue.js +1 -0
- package/dist/workflow/lib/platform-task-queue.js.map +1 -1
- package/package.json +1 -1
- package/src/agent-composition/lib/composition.ts +20 -0
- package/src/biome/lib/biome-target.ts +1 -1
- package/src/distribution/lib/distribution-lock.ts +2 -2
- package/src/distribution/lib/distribution.ts +1 -1
- package/src/service-registry/index.ts +1 -0
- package/src/service-registry/lib/service-names.generated.ts +68 -0
- package/src/worker-runtime/index.ts +1 -0
- package/src/worker-runtime/lib/enums.ts +12 -7
- package/src/worker-runtime/lib/runtime-layout-profile.ts +110 -0
- package/src/worker-runtime/lib/runtime.ts +11 -7
- package/src/workflow/lib/platform-task-queue.ts +6 -1
package/LICENSE
CHANGED
|
@@ -1,201 +1,176 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2026 Xema
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
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
|
|
@@ -31,6 +31,7 @@ export interface CompositionNode {
|
|
|
31
31
|
readonly skills: readonly SkillRef[];
|
|
32
32
|
readonly tools: readonly ToolSelectionEntry[];
|
|
33
33
|
readonly modelOverride?: ModelRef;
|
|
34
|
+
readonly instructions?: string;
|
|
34
35
|
readonly children: readonly CompositionNode[];
|
|
35
36
|
readonly limits?: CompositionLimits;
|
|
36
37
|
}
|
|
@@ -51,6 +52,7 @@ export interface ResolvedCompositionNode {
|
|
|
51
52
|
readonly skills: readonly SkillRef[];
|
|
52
53
|
readonly tools: readonly ToolSelectionEntry[];
|
|
53
54
|
readonly modelOverride?: ModelRef;
|
|
55
|
+
readonly instructions?: string;
|
|
54
56
|
readonly children: readonly ResolvedCompositionNode[];
|
|
55
57
|
readonly limits?: CompositionLimits;
|
|
56
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../../src/agent-composition/lib/composition.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAKpE,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MA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,CAAC;IAE/B,QAAQ,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC;IAStC,QAAQ,CAAC,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAC3C;AAWD,MAAM,WAAW,uBAAuB;IAEtC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,MAAM,EAAE,SAAS,QAAQ,EAAE,CAAC;IAErC,QAAQ,CAAC,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAE9C,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC;IAOlC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAQtD,QAAQ,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CACrC;AAMD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IAEjC,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAC;IAEvC,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;IAOrC,QAAQ,CAAC,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAC3C"}
|
|
@@ -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":"AAcA,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":";;;AAca,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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B,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/worker-runtime/index.ts"],"names":[],"mappings":"AASA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC"}
|
|
@@ -18,5 +18,6 @@ __exportStar(require("./lib/enums"), exports);
|
|
|
18
18
|
__exportStar(require("./lib/capabilities"), exports);
|
|
19
19
|
__exportStar(require("./lib/messages"), exports);
|
|
20
20
|
__exportStar(require("./lib/runtime"), exports);
|
|
21
|
+
__exportStar(require("./lib/runtime-layout-profile"), exports);
|
|
21
22
|
__exportStar(require("./lib/schemas"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/worker-runtime/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AASA,8CAA4B;AAC5B,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/worker-runtime/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AASA,8CAA4B;AAC5B,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,+DAA6C;AAC7C,gDAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/worker-runtime/lib/enums.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/worker-runtime/lib/enums.ts"],"names":[],"mappings":"AAqBA,oBAAY,iBAAiB;IAC3B,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,UAAU,gBAAgB;IAC1B,MAAM,WAAW;CAClB;AAMD,oBAAY,QAAQ;IAClB,iBAAiB,wBAAwB;IACzC,gBAAgB,uBAAuB;IACvC,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;CAC/B"}
|
|
@@ -4,6 +4,9 @@ exports.HookKind = exports.WorkerRuntimeKind = void 0;
|
|
|
4
4
|
var WorkerRuntimeKind;
|
|
5
5
|
(function (WorkerRuntimeKind) {
|
|
6
6
|
WorkerRuntimeKind["Opencode"] = "opencode";
|
|
7
|
+
WorkerRuntimeKind["Qwen"] = "qwen";
|
|
8
|
+
WorkerRuntimeKind["ClaudeCode"] = "claude-code";
|
|
9
|
+
WorkerRuntimeKind["Hermes"] = "hermes";
|
|
7
10
|
})(WorkerRuntimeKind || (exports.WorkerRuntimeKind = WorkerRuntimeKind = {}));
|
|
8
11
|
var HookKind;
|
|
9
12
|
(function (HookKind) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/worker-runtime/lib/enums.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/worker-runtime/lib/enums.ts"],"names":[],"mappings":";;;AAqBA,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,kCAAa,CAAA;IACb,+CAA0B,CAAA;IAC1B,sCAAiB,CAAA;AACnB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AAMD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,qDAAyC,CAAA;IACzC,mDAAuC,CAAA;IACvC,wCAA4B,CAAA;IAC5B,0CAA8B,CAAA;AAChC,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WorkerRuntimeKind } from './enums';
|
|
2
|
+
export interface RuntimeLayoutProfile {
|
|
3
|
+
readonly kind: WorkerRuntimeKind;
|
|
4
|
+
readonly skillBundlesDir: string;
|
|
5
|
+
readonly contextFile: string;
|
|
6
|
+
readonly agentBundlesDir: string | null;
|
|
7
|
+
readonly commandsDir: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const RUNTIME_LAYOUT_PROFILES: Readonly<Record<WorkerRuntimeKind, RuntimeLayoutProfile>>;
|
|
10
|
+
export declare function resolveRuntimeLayoutProfile(kind: WorkerRuntimeKind): RuntimeLayoutProfile;
|
|
11
|
+
//# sourceMappingURL=runtime-layout-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-layout-profile.d.ts","sourceRoot":"","sources":["../../../src/worker-runtime/lib/runtime-layout-profile.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAQ5C,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAEjC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAKjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAM7B,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAMD,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAmChD,CAAC;AAMF,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,iBAAiB,GACtB,oBAAoB,CAStB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RUNTIME_LAYOUT_PROFILES = void 0;
|
|
4
|
+
exports.resolveRuntimeLayoutProfile = resolveRuntimeLayoutProfile;
|
|
5
|
+
const enums_1 = require("./enums");
|
|
6
|
+
exports.RUNTIME_LAYOUT_PROFILES = {
|
|
7
|
+
[enums_1.WorkerRuntimeKind.Opencode]: {
|
|
8
|
+
kind: enums_1.WorkerRuntimeKind.Opencode,
|
|
9
|
+
skillBundlesDir: '/workspace/.opencode/skills',
|
|
10
|
+
contextFile: '/workspace/AGENTS.md',
|
|
11
|
+
agentBundlesDir: '/workspace/.opencode/agents',
|
|
12
|
+
commandsDir: '/workspace/.opencode/command',
|
|
13
|
+
},
|
|
14
|
+
[enums_1.WorkerRuntimeKind.Qwen]: {
|
|
15
|
+
kind: enums_1.WorkerRuntimeKind.Qwen,
|
|
16
|
+
skillBundlesDir: '/workspace/.qwen/skills',
|
|
17
|
+
contextFile: '/workspace/AGENTS.md',
|
|
18
|
+
agentBundlesDir: '/workspace/.qwen/agents',
|
|
19
|
+
commandsDir: '/workspace/.qwen/commands',
|
|
20
|
+
},
|
|
21
|
+
[enums_1.WorkerRuntimeKind.ClaudeCode]: {
|
|
22
|
+
kind: enums_1.WorkerRuntimeKind.ClaudeCode,
|
|
23
|
+
skillBundlesDir: '/workspace/.claude/skills',
|
|
24
|
+
contextFile: '/workspace/CLAUDE.md',
|
|
25
|
+
agentBundlesDir: '/workspace/.claude/agents',
|
|
26
|
+
commandsDir: '/workspace/.claude/commands',
|
|
27
|
+
},
|
|
28
|
+
[enums_1.WorkerRuntimeKind.Hermes]: {
|
|
29
|
+
kind: enums_1.WorkerRuntimeKind.Hermes,
|
|
30
|
+
skillBundlesDir: '/workspace/.hermes/skills',
|
|
31
|
+
contextFile: '/workspace/AGENTS.md',
|
|
32
|
+
agentBundlesDir: null,
|
|
33
|
+
commandsDir: null,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
function resolveRuntimeLayoutProfile(kind) {
|
|
37
|
+
const profile = exports.RUNTIME_LAYOUT_PROFILES[kind];
|
|
38
|
+
if (!profile) {
|
|
39
|
+
throw new Error(`RUNTIME_LAYOUT_PROFILE_MISSING:${kind}. Every WorkerRuntimeKind must ` +
|
|
40
|
+
`declare a RuntimeLayoutProfile.`);
|
|
41
|
+
}
|
|
42
|
+
return profile;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=runtime-layout-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-layout-profile.js","sourceRoot":"","sources":["../../../src/worker-runtime/lib/runtime-layout-profile.ts"],"names":[],"mappings":";;;AAkGA,kEAWC;AAvFD,mCAA4C;AAkC/B,QAAA,uBAAuB,GAEhC;IACF,CAAC,yBAAiB,CAAC,QAAQ,CAAC,EAAE;QAC5B,IAAI,EAAE,yBAAiB,CAAC,QAAQ;QAChC,eAAe,EAAE,6BAA6B;QAC9C,WAAW,EAAE,sBAAsB;QACnC,eAAe,EAAE,6BAA6B;QAC9C,WAAW,EAAE,8BAA8B;KAC5C;IACD,CAAC,yBAAiB,CAAC,IAAI,CAAC,EAAE;QACxB,IAAI,EAAE,yBAAiB,CAAC,IAAI;QAC5B,eAAe,EAAE,yBAAyB;QAC1C,WAAW,EAAE,sBAAsB;QACnC,eAAe,EAAE,yBAAyB;QAC1C,WAAW,EAAE,2BAA2B;KACzC;IACD,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE;QAC9B,IAAI,EAAE,yBAAiB,CAAC,UAAU;QAClC,eAAe,EAAE,2BAA2B;QAC5C,WAAW,EAAE,sBAAsB;QACnC,eAAe,EAAE,2BAA2B;QAC5C,WAAW,EAAE,6BAA6B;KAC3C;IACD,CAAC,yBAAiB,CAAC,MAAM,CAAC,EAAE;QAC1B,IAAI,EAAE,yBAAiB,CAAC,MAAM;QAI9B,eAAe,EAAE,2BAA2B;QAC5C,WAAW,EAAE,sBAAsB;QAGnC,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,IAAI;KAClB;CACF,CAAC;AAMF,SAAgB,2BAA2B,CACzC,IAAuB;IAEvB,MAAM,OAAO,GAAG,+BAAuB,CAAC,IAAI,CAAC,CAAC;IAC9C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,kCAAkC,IAAI,iCAAiC;YACrE,iCAAiC,CACpC,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -14,7 +14,7 @@ export interface BuildBundleInput {
|
|
|
14
14
|
readonly subAgents: readonly string[];
|
|
15
15
|
readonly modelOverride?: string;
|
|
16
16
|
readonly mcpConfig?: string;
|
|
17
|
-
readonly
|
|
17
|
+
readonly runtimeConfigBase64?: string;
|
|
18
18
|
}
|
|
19
19
|
export interface SessionBundle {
|
|
20
20
|
readonly fingerprint: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/worker-runtime/lib/runtime.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EACV,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAQ5D,MAAM,WAAW,iBAAiB;IAEhC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAE/C,QAAQ,CAAC,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IAE1C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,YAAY,EAAE,SAAS,0BAA0B,EAAE,CAAC;CAC9D;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/worker-runtime/lib/runtime.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;A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OAAO,CAAC,aAAa,CAAC,CAAC;IAGpE,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAGzD,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;IAGnE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAGvB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAMxB,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC;CAC3C"}
|
|
@@ -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;
|
|
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":";;;
|
|
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.
|
|
3
|
+
"version": "0.3.3",
|
|
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/",
|
|
@@ -113,6 +113,19 @@ export interface CompositionNode {
|
|
|
113
113
|
* Model Resolution Matrix decides at the invocation boundary.
|
|
114
114
|
*/
|
|
115
115
|
readonly modelOverride?: ModelRef;
|
|
116
|
+
/**
|
|
117
|
+
* Node-level instructions — a prompt fragment layered ONTO the referenced
|
|
118
|
+
* agent definition's intrinsic system prompt. This is the "instructions"
|
|
119
|
+
* lever that lets a handful of base agents (generic/coder/explorer/planner)
|
|
120
|
+
* be specialized per node without authoring a new agent definition.
|
|
121
|
+
*
|
|
122
|
+
* Composite ordering (resolver-enforced): `agentDefinition.systemPrompt`
|
|
123
|
+
* THEN these `instructions`. The platform `system-overlay.md` (AWP base +
|
|
124
|
+
* deliverable contract + authority) is injected LATER by the runtime — it
|
|
125
|
+
* is NOT part of this field. Absent/blank = the base prompt passes through
|
|
126
|
+
* unchanged (never an empty append).
|
|
127
|
+
*/
|
|
128
|
+
readonly instructions?: string;
|
|
116
129
|
/** Sub-agents — themselves fully-armed composition nodes (recursive). */
|
|
117
130
|
readonly children: readonly CompositionNode[];
|
|
118
131
|
/**
|
|
@@ -170,6 +183,13 @@ export interface ResolvedCompositionNode {
|
|
|
170
183
|
readonly tools: readonly ToolSelectionEntry[];
|
|
171
184
|
/** Concrete model override, when the node pinned one. */
|
|
172
185
|
readonly modelOverride?: ModelRef;
|
|
186
|
+
/**
|
|
187
|
+
* Resolved node-level instructions, copied verbatim from the source
|
|
188
|
+
* `CompositionNode.instructions`. The composer/runtime layers this onto
|
|
189
|
+
* the referenced agent definition's `systemPrompt` (base prompt first,
|
|
190
|
+
* then instructions). Absent = no node-level override.
|
|
191
|
+
*/
|
|
192
|
+
readonly instructions?: string;
|
|
173
193
|
/** Resolved sub-agent nodes (recursive). */
|
|
174
194
|
readonly children: readonly ResolvedCompositionNode[];
|
|
175
195
|
/**
|
|
@@ -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 (
|
|
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,
|
|
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,
|
|
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
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// boundary-check:exempt — this generated file enumerates first-party service
|
|
2
|
+
// names verbatim (e.g. 'opencode-worker'); those names ARE the data, not a
|
|
3
|
+
// tech-stack leak, so the stack-confidentiality scan is opted out here.
|
|
4
|
+
// AUTO-GENERATED by tooling/codegen/generate-service-names.mjs — DO NOT EDIT.
|
|
5
|
+
// Source of truth: each biome's xema-biome.json ships.apis[].name + every
|
|
6
|
+
// ServiceRegistryModule descriptor name. Regenerate: `node tooling/codegen/generate-service-names.mjs`.
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Canonical registry names of every first-party Xema platform service. Use in
|
|
10
|
+
* `resolveHttpUrl(registry, ServiceName.X)`, `@InjectService(ServiceName.X)`,
|
|
11
|
+
* descriptor `name`, `consumes`, and `requiresServices` instead of free-form
|
|
12
|
+
* strings. Third-party biomes register/resolve via raw strings — the registry
|
|
13
|
+
* accepts any string; this enum is the typed surface for first-party peers.
|
|
14
|
+
*/
|
|
15
|
+
export const ServiceName = {
|
|
16
|
+
ACTIVITY_FEED_API: 'activity-feed-api',
|
|
17
|
+
AGENT_SESSION_API: 'agent-session-api',
|
|
18
|
+
APP_RUNTIME_API: 'app-runtime-api',
|
|
19
|
+
ARTIFACT_STORE_API: 'artifact-store-api',
|
|
20
|
+
AUDIT_LOG_API: 'audit-log-api',
|
|
21
|
+
AUTHORIZATION_API: 'authorization-api',
|
|
22
|
+
BACKLOG_API: 'backlog-api',
|
|
23
|
+
BIOME_ADAPTER_HOST: 'biome-adapter-host',
|
|
24
|
+
BIOME_FETCHER_API: 'biome-fetcher-api',
|
|
25
|
+
BIOME_HOST_API: 'biome-host-api',
|
|
26
|
+
CAPABILITY_REGISTRY_API: 'capability-registry-api',
|
|
27
|
+
CATALOG_API: 'catalog-api',
|
|
28
|
+
CONNECTOR_GATEWAY_API: 'connector-gateway-api',
|
|
29
|
+
CONTAINER_REGISTRY_API: 'container-registry-api',
|
|
30
|
+
CREDENTIAL_BROKER_API: 'credential-broker-api',
|
|
31
|
+
DELIVERABLE_SPECS_API: 'deliverable-specs-api',
|
|
32
|
+
DESIGN_SYSTEM_BUILDER_API: 'design-system-builder-api',
|
|
33
|
+
DOCUMENT_RENDER_API: 'document-render-api',
|
|
34
|
+
FLEET_CONTROL_API: 'fleet-control-api',
|
|
35
|
+
IDENTITY_API: 'identity-api',
|
|
36
|
+
KNOWLEDGE_BASE_API: 'knowledge-base-api',
|
|
37
|
+
LLM_REGISTRY_API: 'llm-registry-api',
|
|
38
|
+
MAILOPS_API: 'mailops-api',
|
|
39
|
+
MCP_GATEWAY_API: 'mcp-gateway-api',
|
|
40
|
+
MEMORY_API: 'memory-api',
|
|
41
|
+
OBJECT_REGISTRY_API: 'object-registry-api',
|
|
42
|
+
OPENCODE_WORKER: 'opencode-worker',
|
|
43
|
+
ORG_DATABASE_POOL_API: 'org-database-pool-api',
|
|
44
|
+
POLICY_DISTRIBUTOR_API: 'policy-distributor-api',
|
|
45
|
+
PROJECT_REGISTRY_API: 'project-registry-api',
|
|
46
|
+
PUBLIC_GATEWAY_API: 'public-gateway-api',
|
|
47
|
+
SEARCH_API: 'search-api',
|
|
48
|
+
SKILL_REGISTRY_API: 'skill-registry-api',
|
|
49
|
+
SPACE_REGISTRY_API: 'space-registry-api',
|
|
50
|
+
USER_HUB_API: 'user-hub-api',
|
|
51
|
+
WEBAPP_STUDIO_API: 'webapp-studio-api',
|
|
52
|
+
WORKFLOW_ENGINE_API: 'workflow-engine-api',
|
|
53
|
+
WORKFLOW_RUNTIME_WORKER: 'workflow-runtime-worker',
|
|
54
|
+
WORKLOAD_RUNTIME_API: 'workload-runtime-api',
|
|
55
|
+
WORKSPACE_GIT_API: 'workspace-git-api',
|
|
56
|
+
WORKSPACE_ORCHESTRATOR_API: 'workspace-orchestrator-api',
|
|
57
|
+
WORKSPACE_PROXY: 'workspace-proxy',
|
|
58
|
+
WORKSPACE_STORAGE_POOL_API: 'workspace-storage-pool-api',
|
|
59
|
+
XEMA_BIOME_RUNNER: 'xema-biome-runner',
|
|
60
|
+
XEMA_CAPABILITY_ROUTER: 'xema-capability-router',
|
|
61
|
+
XEMA_KERNEL_SERVER: 'xema-kernel-server',
|
|
62
|
+
XEMA_PLATFORM_WORKER: 'xema-platform-worker',
|
|
63
|
+
XEMA_RUNNER_PLANE: 'xema-runner-plane',
|
|
64
|
+
XEMA_SHELL_API: 'xema-shell-api',
|
|
65
|
+
XEMA_STORE_API: 'xema-store-api',
|
|
66
|
+
} as const;
|
|
67
|
+
|
|
68
|
+
export type ServiceName = (typeof ServiceName)[keyof typeof ServiceName];
|
|
@@ -7,18 +7,23 @@
|
|
|
7
7
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Identifier of a concrete worker-runtime implementation.
|
|
11
|
-
*
|
|
10
|
+
* Identifier of a concrete worker-runtime implementation. Multi-orchestrator
|
|
11
|
+
* support runs every runtime behind the same `WorkerRuntime` contract; the
|
|
12
|
+
* differences (launch command, native config/skill layout, event shape) live
|
|
13
|
+
* in the per-runtime driver + `RuntimeLayoutProfile`, never in this enum.
|
|
12
14
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
15
|
+
* A single fat worker image carries all runtime binaries, so the kind is a
|
|
16
|
+
* software selection at allocation time — not a per-image decision. The enum
|
|
17
|
+
* is the single source of truth; consumers must `switch` exhaustively on it.
|
|
16
18
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
+
* Reserved-but-not-yet-driven: `CopilotCli`, `OpenHands` — add here when a
|
|
20
|
+
* driver lands.
|
|
19
21
|
*/
|
|
20
22
|
export enum WorkerRuntimeKind {
|
|
21
23
|
Opencode = 'opencode',
|
|
24
|
+
Qwen = 'qwen',
|
|
25
|
+
ClaudeCode = 'claude-code',
|
|
26
|
+
Hermes = 'hermes',
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
/**
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
// ── Runtime layout profiles ──
|
|
3
|
+
//
|
|
4
|
+
// AWP is orchestrator-neutral: the platform composes ONE workspace (skills,
|
|
5
|
+
// sub-agents, slash-commands, the context file) and the supervisor materializes
|
|
6
|
+
// it. WHERE those bytes land on disk is the only thing that differs per
|
|
7
|
+
// orchestrator — OpenCode reads `.opencode/`, Qwen reads `.qwen/`, Claude Code
|
|
8
|
+
// reads `.claude/`, Hermes reads `~/.hermes/`. A `RuntimeLayoutProfile` is that
|
|
9
|
+
// per-runtime slot→path map. It carries NO format knowledge: sub-agent/command
|
|
10
|
+
// frontmatter differences are handled by the per-runtime renderer in the driver,
|
|
11
|
+
// not here.
|
|
12
|
+
//
|
|
13
|
+
// Skill BUNDLES are byte-identical across runtimes (a `SKILL.md` folder loads
|
|
14
|
+
// unmodified everywhere) — only the mount path changes. Sub-agents and
|
|
15
|
+
// slash-commands are NOT format-portable, so a runtime that has no `.md`
|
|
16
|
+
// sub-agent/command surface (Hermes: Python agents) declares `null` for that
|
|
17
|
+
// slot; the composer/driver must then refuse to mount those (fail-fast, never
|
|
18
|
+
// silently drop). The context file is the orchestrator's auto-loaded project
|
|
19
|
+
// prose (`AGENTS.md` for OpenCode/Qwen/Hermes, `CLAUDE.md` for Claude Code) and
|
|
20
|
+
// is where the platform renders the system overlay per WS7.
|
|
21
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
22
|
+
|
|
23
|
+
import { WorkerRuntimeKind } from './enums';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The workspace slots whose on-disk location differs per orchestrator. The
|
|
27
|
+
* Xema-private slots (`.xema/system-overlay.md`, `.xema/instructions`,
|
|
28
|
+
* `context.json`) stay constant across runtimes and are intentionally NOT part
|
|
29
|
+
* of this profile.
|
|
30
|
+
*/
|
|
31
|
+
export interface RuntimeLayoutProfile {
|
|
32
|
+
readonly kind: WorkerRuntimeKind;
|
|
33
|
+
/** Absolute dir for skill folder bundles (always supported). */
|
|
34
|
+
readonly skillBundlesDir: string;
|
|
35
|
+
/**
|
|
36
|
+
* Absolute file the orchestrator auto-loads as project context. The platform
|
|
37
|
+
* renders the AWP `agents-md`/`system-overlay` here (always supported).
|
|
38
|
+
*/
|
|
39
|
+
readonly contextFile: string;
|
|
40
|
+
/**
|
|
41
|
+
* Absolute dir for sub-agent definition files, or `null` if the runtime has
|
|
42
|
+
* no file-based sub-agent surface (e.g. Hermes uses Python modules). When
|
|
43
|
+
* `null`, the driver MUST fail-fast rather than silently drop sub-agents.
|
|
44
|
+
*/
|
|
45
|
+
readonly agentBundlesDir: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Absolute dir for slash-command files, or `null` if unsupported. Same
|
|
48
|
+
* fail-fast contract as `agentBundlesDir`.
|
|
49
|
+
*/
|
|
50
|
+
readonly commandsDir: string | null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Closed map of runtime → layout. Exhaustive over `WorkerRuntimeKind`; adding a
|
|
55
|
+
* runtime kind without a profile is a compile error here.
|
|
56
|
+
*/
|
|
57
|
+
export const RUNTIME_LAYOUT_PROFILES: Readonly<
|
|
58
|
+
Record<WorkerRuntimeKind, RuntimeLayoutProfile>
|
|
59
|
+
> = {
|
|
60
|
+
[WorkerRuntimeKind.Opencode]: {
|
|
61
|
+
kind: WorkerRuntimeKind.Opencode,
|
|
62
|
+
skillBundlesDir: '/workspace/.opencode/skills',
|
|
63
|
+
contextFile: '/workspace/AGENTS.md',
|
|
64
|
+
agentBundlesDir: '/workspace/.opencode/agents',
|
|
65
|
+
commandsDir: '/workspace/.opencode/command',
|
|
66
|
+
},
|
|
67
|
+
[WorkerRuntimeKind.Qwen]: {
|
|
68
|
+
kind: WorkerRuntimeKind.Qwen,
|
|
69
|
+
skillBundlesDir: '/workspace/.qwen/skills',
|
|
70
|
+
contextFile: '/workspace/AGENTS.md',
|
|
71
|
+
agentBundlesDir: '/workspace/.qwen/agents',
|
|
72
|
+
commandsDir: '/workspace/.qwen/commands',
|
|
73
|
+
},
|
|
74
|
+
[WorkerRuntimeKind.ClaudeCode]: {
|
|
75
|
+
kind: WorkerRuntimeKind.ClaudeCode,
|
|
76
|
+
skillBundlesDir: '/workspace/.claude/skills',
|
|
77
|
+
contextFile: '/workspace/CLAUDE.md',
|
|
78
|
+
agentBundlesDir: '/workspace/.claude/agents',
|
|
79
|
+
commandsDir: '/workspace/.claude/commands',
|
|
80
|
+
},
|
|
81
|
+
[WorkerRuntimeKind.Hermes]: {
|
|
82
|
+
kind: WorkerRuntimeKind.Hermes,
|
|
83
|
+
// Hermes discovers skills from its home dir; the home dir is placed on the
|
|
84
|
+
// persistent subPath at boot (see buildWorkerEnv / WS2) so it survives
|
|
85
|
+
// pause/resume.
|
|
86
|
+
skillBundlesDir: '/workspace/.hermes/skills',
|
|
87
|
+
contextFile: '/workspace/AGENTS.md',
|
|
88
|
+
// Hermes sub-agents are Python modules and its commands are YAML — neither
|
|
89
|
+
// is a portable `.md` surface, so the composer must not mount them as files.
|
|
90
|
+
agentBundlesDir: null,
|
|
91
|
+
commandsDir: null,
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Resolve the layout profile for a runtime kind. Fail-fast on an unregistered
|
|
97
|
+
* kind — never fall back to OpenCode's layout (silent fallbacks hide bugs).
|
|
98
|
+
*/
|
|
99
|
+
export function resolveRuntimeLayoutProfile(
|
|
100
|
+
kind: WorkerRuntimeKind,
|
|
101
|
+
): RuntimeLayoutProfile {
|
|
102
|
+
const profile = RUNTIME_LAYOUT_PROFILES[kind];
|
|
103
|
+
if (!profile) {
|
|
104
|
+
throw new Error(
|
|
105
|
+
`RUNTIME_LAYOUT_PROFILE_MISSING:${kind}. Every WorkerRuntimeKind must ` +
|
|
106
|
+
`declare a RuntimeLayoutProfile.`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
return profile;
|
|
110
|
+
}
|
|
@@ -38,11 +38,15 @@ export interface BuildPodSpecInput {
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Input describing the agent + skills + model configuration to bundle for
|
|
41
|
-
* a worker. `mcpConfig` and `
|
|
42
|
-
* as opaque strings at the kernel level — runtime implementations
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* the
|
|
41
|
+
* a worker. `mcpConfig` and `runtimeConfigBase64` are intentionally typed
|
|
42
|
+
* as opaque strings at the kernel level — runtime implementations interpret
|
|
43
|
+
* them. Each runtime carries its own config blob here: OpenCode an
|
|
44
|
+
* `opencode.jsonc`, Qwen a `.qwen/settings.json`, Claude a
|
|
45
|
+
* `.claude/settings.json` — all base64-encoded into the same opaque slot.
|
|
46
|
+
*
|
|
47
|
+
* Generalized from `opencodeConfigBase64` once the second/third runtime
|
|
48
|
+
* drivers (Qwen, Claude) landed (WS2). This is a breaking published-contract
|
|
49
|
+
* change — it rides with the coordinated kernel publish + consumer dep-bump.
|
|
46
50
|
*/
|
|
47
51
|
export interface BuildBundleInput {
|
|
48
52
|
/** Slug of the primary agent that owns the turn. */
|
|
@@ -53,8 +57,8 @@ export interface BuildBundleInput {
|
|
|
53
57
|
readonly modelOverride?: string;
|
|
54
58
|
/** Opaque MCP config blob; runtime-specific. */
|
|
55
59
|
readonly mcpConfig?: string;
|
|
56
|
-
/** Opaque base64-encoded
|
|
57
|
-
readonly
|
|
60
|
+
/** Opaque base64-encoded runtime config blob; runtime-specific. */
|
|
61
|
+
readonly runtimeConfigBase64?: string;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
/**
|
|
@@ -52,13 +52,18 @@ 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 workflow-runtime lift).
|
|
58
|
+
*/
|
|
59
|
+
WORKSPACE_ORCHESTRATOR = 'workspace-orchestrator',
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
/** Prefix shared by every internal-workflow task queue. */
|
|
58
63
|
export const PLATFORM_TASK_QUEUE_PREFIX = 'xema-platform.';
|
|
59
64
|
|
|
60
65
|
/**
|
|
61
|
-
* The
|
|
66
|
+
* The workflow-runtime task queue for an internal-workflow domain —
|
|
62
67
|
* `xema-platform.<domain>`. Single source of truth: callers derive the queue
|
|
63
68
|
* from the domain enum, never hard-code the string.
|
|
64
69
|
*/
|