@xemahq/xema 0.2.3 → 0.3.0
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 -175
- package/README.md +97 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +11 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/biome.d.ts.map +1 -1
- package/dist/commands/biome.js +83 -6
- package/dist/commands/biome.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +14 -8
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +48 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +13 -1
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/status.js +5 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +11 -0
- package/dist/commands/up.js.map +1 -1
- package/dist/runtime/config/schema.d.ts +27 -0
- package/dist/runtime/config/schema.d.ts.map +1 -1
- package/dist/runtime/config/schema.js +2 -0
- package/dist/runtime/config/schema.js.map +1 -1
- package/dist/runtime/launch.d.ts.map +1 -1
- package/dist/runtime/launch.js +22 -2
- package/dist/runtime/launch.js.map +1 -1
- package/dist/runtime/roster.d.ts +10 -2
- package/dist/runtime/roster.d.ts.map +1 -1
- package/dist/runtime/roster.js +50 -1
- package/dist/runtime/roster.js.map +1 -1
- package/dist/runtime/runner/native-runner.d.ts.map +1 -1
- package/dist/runtime/runner/native-runner.js +6 -5
- package/dist/runtime/runner/native-runner.js.map +1 -1
- package/dist/runtime/sources/credentials.d.ts +11 -0
- package/dist/runtime/sources/credentials.d.ts.map +1 -0
- package/dist/runtime/sources/credentials.js +68 -0
- package/dist/runtime/sources/credentials.js.map +1 -0
- package/dist/runtime/sources/kinds/distribution.d.ts +5 -0
- package/dist/runtime/sources/kinds/distribution.d.ts.map +1 -0
- package/dist/runtime/sources/kinds/distribution.js +33 -0
- package/dist/runtime/sources/kinds/distribution.js.map +1 -0
- package/dist/runtime/sources/kinds/git.d.ts +5 -0
- package/dist/runtime/sources/kinds/git.d.ts.map +1 -0
- package/dist/runtime/sources/kinds/git.js +70 -0
- package/dist/runtime/sources/kinds/git.js.map +1 -0
- package/dist/runtime/sources/kinds/workspace.d.ts +5 -0
- package/dist/runtime/sources/kinds/workspace.d.ts.map +1 -0
- package/dist/runtime/sources/kinds/workspace.js +24 -0
- package/dist/runtime/sources/kinds/workspace.js.map +1 -0
- package/dist/runtime/sources/manifest-walk.d.ts +22 -0
- package/dist/runtime/sources/manifest-walk.d.ts.map +1 -0
- package/dist/runtime/sources/manifest-walk.js +87 -0
- package/dist/runtime/sources/manifest-walk.js.map +1 -0
- package/dist/runtime/sources/resolver.d.ts +15 -0
- package/dist/runtime/sources/resolver.d.ts.map +1 -0
- package/dist/runtime/sources/resolver.js +75 -0
- package/dist/runtime/sources/resolver.js.map +1 -0
- package/dist/runtime/sources/schema.d.ts +101 -0
- package/dist/runtime/sources/schema.d.ts.map +1 -0
- package/dist/runtime/sources/schema.js +71 -0
- package/dist/runtime/sources/schema.js.map +1 -0
- package/dist/runtime/sources/types.d.ts +10 -0
- package/dist/runtime/sources/types.d.ts.map +1 -0
- package/dist/runtime/sources/types.js +3 -0
- package/dist/runtime/sources/types.js.map +1 -0
- package/dist/runtime/waves.d.ts +1 -0
- package/dist/runtime/waves.d.ts.map +1 -1
- package/dist/runtime/waves.js +19 -0
- package/dist/runtime/waves.js.map +1 -1
- package/examples/06-biome-sources.yaml +51 -0
- package/package.json +5 -2
- package/dist/dev/dev-orchestrator.d.ts +0 -7
- package/dist/dev/dev-orchestrator.d.ts.map +0 -1
- package/dist/dev/dev-orchestrator.js +0 -367
- package/dist/dev/dev-orchestrator.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,175 +1,176 @@
|
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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
|
-
|
|
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
|
package/README.md
CHANGED
|
@@ -115,6 +115,64 @@ output changes (pair with each service's own `tsc -w` / `turbo watch`):
|
|
|
115
115
|
xema dev --watch # add --monolith for the low-RAM single-process loop
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
+
### Launch one service (or a subset)
|
|
119
|
+
|
|
120
|
+
Boot just the services you're working on — their hard prerequisites
|
|
121
|
+
(`identity-api`, the foundational services) are pulled in automatically, so a
|
|
122
|
+
lone service still boots a correct graph:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
xema dev agent-session-api memory-api # native: just these two (+ prerequisites)
|
|
126
|
+
xema up --only app-runtime-api # container: one service (+ prerequisites)
|
|
127
|
+
xema serve --profile cluster --only audit-log-api
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Biome sources — pull biomes from many origins
|
|
131
|
+
|
|
132
|
+
A deployment's biomes can come from the first-party distribution, a cultivars
|
|
133
|
+
edition, **a client's own private git repo or registry**, or a third party —
|
|
134
|
+
each with its own auth — declared in a `sources:` block:
|
|
135
|
+
|
|
136
|
+
```yaml
|
|
137
|
+
sources:
|
|
138
|
+
- name: workspace # local working tree (monorepo): always wins
|
|
139
|
+
kind: workspace
|
|
140
|
+
- name: cultivars # a pinned edition lock
|
|
141
|
+
kind: distribution
|
|
142
|
+
edition: cultivars
|
|
143
|
+
- name: acme # a client's OWN biome git repo (private)
|
|
144
|
+
kind: git
|
|
145
|
+
url: https://github.com/acme/xema-biomes.git
|
|
146
|
+
ref: v2.1.0
|
|
147
|
+
authTokenEnv: GIT_TOKEN_ACME # env-var NAME, never the secret
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Precedence: **`workspace` > other sources (declared order) > base distribution**.
|
|
151
|
+
In a monorepo checkout the workspace source always wins, so `xema dev` runs your
|
|
152
|
+
local edits with **no publish** and **no token** required. Tokens for private
|
|
153
|
+
sources are referenced by env-var *name* (the `biome-fetcher` convention) and
|
|
154
|
+
resolved from the environment or a git-ignored `~/.xema/credentials.env` — never
|
|
155
|
+
inlined in config. `npm`/`oci` sources are install-time (the `xema biome install`
|
|
156
|
+
path); `workspace`/`distribution`/`git` boot directly from `xema up`/`dev`.
|
|
157
|
+
|
|
158
|
+
Check every source + token before launching:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
xema doctor --sources # per source: target, launch-vs-install, token present? (redacted)
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
A full example lives at [`examples/06-biome-sources.yaml`](examples/06-biome-sources.yaml).
|
|
165
|
+
|
|
166
|
+
### The standard biome structure (one shape, open features)
|
|
167
|
+
|
|
168
|
+
Sources discover biomes by walking for `xema-biome.json` — a repo may hold ONE
|
|
169
|
+
biome at its root or MANY nested; both are valid layouts of the **same
|
|
170
|
+
standard**. A biome is a directory with a manifest at its root; its services
|
|
171
|
+
live at the manifest-declared `ships.apis[].path` (convention `./api/<name>`).
|
|
172
|
+
What a biome *does* (services, skills, capabilities, agents) is wholly open —
|
|
173
|
+
only the bundle *shape* is standardized, so every author builds the same way and
|
|
174
|
+
any source resolves the same way.
|
|
175
|
+
|
|
118
176
|
## Author biomes & run capabilities
|
|
119
177
|
|
|
120
178
|
```bash
|
|
@@ -125,6 +183,44 @@ xema run <capability> # invoke a capability by name
|
|
|
125
183
|
xema doctor # diagnose your environment
|
|
126
184
|
```
|
|
127
185
|
|
|
186
|
+
Install a catalog biome into a running platform (by id — the biome's bundle
|
|
187
|
+
source is resolved server-side from its registered manifest; npm/OCI biomes
|
|
188
|
+
require a project):
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
xema biome install <biomeId> --project <projectId> # npm/OCI + any catalog biome
|
|
192
|
+
xema biome install <biomeId> --org # in-process / kernel biomes only
|
|
193
|
+
# target + auth: --endpoint/--token or env XEMA_ENDPOINT / XEMA_TOKEN
|
|
194
|
+
# --config <file.json> for install config, --version <semver> to pin
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
The CLI never sends a registry token: a private source's `authTokenEnv` is read
|
|
198
|
+
by `biome-fetcher-api` in the platform's own environment, so the token lives on
|
|
199
|
+
the cluster, not in the install call.
|
|
200
|
+
|
|
201
|
+
## Xema-as-Code — declarative stacks
|
|
202
|
+
|
|
203
|
+
Drive a running control plane from a `xema.yaml` manifest (orgs, roles,
|
|
204
|
+
deliverable-specs, biome-installs, …) — plan/apply/export/import, GitOps-style:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
xema plan -f xema.yaml # preview the change set (read-only)
|
|
208
|
+
xema apply -f xema.yaml # apply it (--auto-approve to skip the prompt)
|
|
209
|
+
xema export --stack <name> -o xema.yaml # snapshot a live stack to a manifest
|
|
210
|
+
xema import -f xema.yaml # adopt existing resources into a stack
|
|
211
|
+
# target + auth: --endpoint/--token or env XEMA_ENDPOINT / XEMA_TOKEN
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Diagnose
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
xema doctor # node version + ~/.xema/ + dev KernelState
|
|
218
|
+
xema doctor --infra # also TCP-probe Postgres / Redis / event-hub-api
|
|
219
|
+
xema doctor --sources # list biome sources + per-source token presence (redacted)
|
|
220
|
+
```
|
|
221
|
+
|
|
128
222
|
## License
|
|
129
223
|
|
|
130
|
-
Apache-2.0 ©
|
|
224
|
+
Apache-2.0 © Neuralchowder Inc. — [xema.dev](https://xema.dev). `@xemahq/xema`
|
|
225
|
+
is the open developer/operator tool tier (like the Xema SDKs), distributed under
|
|
226
|
+
the Apache License 2.0. See [LICENSE](../../LICENSE) / [NOTICE](../../NOTICE).
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoCpC,wBAAgB,YAAY,IAAI,OAAO,CA0BtC;AAED,wBAAsB,IAAI,CAAC,IAAI,GAAE,aAAa,CAAC,MAAM,CAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMpF"}
|
package/dist/cli.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.buildProgram = buildProgram;
|
|
5
5
|
exports.main = main;
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
6
8
|
const commander_1 = require("commander");
|
|
7
9
|
const apply_1 = require("./commands/apply");
|
|
8
10
|
const biome_1 = require("./commands/biome");
|
|
@@ -19,7 +21,15 @@ const serve_1 = require("./commands/serve");
|
|
|
19
21
|
const shell_1 = require("./commands/shell");
|
|
20
22
|
const status_1 = require("./commands/status");
|
|
21
23
|
const up_1 = require("./commands/up");
|
|
22
|
-
|
|
24
|
+
function readCliVersion() {
|
|
25
|
+
const manifestPath = (0, node_path_1.join)(__dirname, '..', 'package.json');
|
|
26
|
+
const { version } = JSON.parse((0, node_fs_1.readFileSync)(manifestPath, 'utf8'));
|
|
27
|
+
if (typeof version !== 'string' || version.length === 0) {
|
|
28
|
+
throw new Error(`@xemahq/xema: no "version" in ${manifestPath}`);
|
|
29
|
+
}
|
|
30
|
+
return version;
|
|
31
|
+
}
|
|
32
|
+
const CLI_VERSION = readCliVersion();
|
|
23
33
|
function buildProgram() {
|
|
24
34
|
const program = new commander_1.Command();
|
|
25
35
|
program
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AAiDA,oCA0BC;AAED,oBAMC;AAzED,qCAAuC;AACvC,yCAAiC;AAEjC,yCAAoC;AAEpC,4CAAoE;AACpE,4CAAoE;AACpE,wCAAgE;AAChE,8CAAsE;AACtE,0CAAkE;AAClE,8CAAsE;AACtE,8CAAsE;AACtE,0CAAkE;AAClE,gDAAwE;AACxE,0CAAkE;AAClE,wCAAgE;AAChE,4CAAoE;AACpE,4CAAoE;AACpE,8CAAsE;AACtE,sCAA8D;AAS9D,SAAS,cAAc;IACrB,MAAM,YAAY,GAAG,IAAA,gBAAI,EAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAC3D,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,YAAY,EAAE,MAAM,CAAC,CAAyB,CAAC;IAC3F,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,iCAAiC,YAAY,EAAE,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;AAErC,SAAgB,YAAY;IAC1B,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;IAC9B,OAAO;SACJ,IAAI,CAAC,MAAM,CAAC;SACZ,WAAW,CAAC,oDAAoD,CAAC;SACjE,OAAO,CAAC,WAAW,EA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C,CAAC;QACjE,OAAO,CAAC,KAAK,CAAC,SAAS,OAAO,EAAE,CAAC,CAAC;QAClC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"biome.d.ts","sourceRoot":"","sources":["../../src/commands/biome.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"biome.d.ts","sourceRoot":"","sources":["../../src/commands/biome.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2CzC,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAwDtD"}
|