@leitwerk-dev/server 0.5.4 → 0.5.6
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/dist/{app-B8gyS_Id.d.ts → app-DWWNqFtH.d.ts} +1 -1
- package/dist/app-VLQCV5WS.js +8 -0
- package/dist/{chunk-ZA5TDEM5.js → chunk-65CBLH7U.js} +49 -1
- package/dist/{chunk-ZA5TDEM5.js.map → chunk-65CBLH7U.js.map} +1 -1
- package/dist/chunk-C2K2AM5X.js +82 -0
- package/dist/chunk-C2K2AM5X.js.map +1 -0
- package/dist/{chunk-6STQ3LAP.js → chunk-I3CCVPXY.js} +2 -2
- package/dist/deployment-preflight.d.ts +2 -1
- package/dist/deployment-preflight.d.ts.map +1 -1
- package/dist/extension-boot-check.d.ts +5 -0
- package/dist/extension-boot-check.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -3
- package/dist/index.js.map +1 -1
- package/dist/main.js +6 -71
- package/dist/main.js.map +1 -1
- package/dist/testing.js +1 -1
- package/package.json +12 -12
- package/src/deployment-preflight.ts +15 -7
- package/src/extension-boot-check.ts +36 -0
- package/src/index.ts +1 -0
- package/dist/app-XAQTAQ5Y.js +0 -8
- /package/dist/{app-XAQTAQ5Y.js.map → app-VLQCV5WS.js.map} +0 -0
- /package/dist/{chunk-6STQ3LAP.js.map → chunk-I3CCVPXY.js.map} +0 -0
|
@@ -5172,4 +5172,4 @@ interface AppContext {
|
|
|
5172
5172
|
/** @public */
|
|
5173
5173
|
declare function createAppContext(opts?: AppOptions): Promise<AppContext>;
|
|
5174
5174
|
|
|
5175
|
-
export { type
|
|
5175
|
+
export { type AppOptions as A, type Broadcaster as B, type LeitwerkConfig as L, type ModelStatusCacheSnapshot as M, type ReadonlyPiSessionTree as R, type SessionSummary as S, type AppContext as a, type RepositoryBundle as b, createAppContext as c, type LeitwerkDb as d, type ServerProcessModelPolicy as e };
|
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name);
|
|
2
|
+
var __typeError = (msg) => {
|
|
3
|
+
throw TypeError(msg);
|
|
4
|
+
};
|
|
5
|
+
var __using = (stack, value, async) => {
|
|
6
|
+
if (value != null) {
|
|
7
|
+
if (typeof value !== "object" && typeof value !== "function") __typeError("Object expected");
|
|
8
|
+
var dispose, inner;
|
|
9
|
+
if (async) dispose = value[__knownSymbol("asyncDispose")];
|
|
10
|
+
if (dispose === void 0) {
|
|
11
|
+
dispose = value[__knownSymbol("dispose")];
|
|
12
|
+
if (async) inner = dispose;
|
|
13
|
+
}
|
|
14
|
+
if (typeof dispose !== "function") __typeError("Object not disposable");
|
|
15
|
+
if (inner) dispose = function() {
|
|
16
|
+
try {
|
|
17
|
+
inner.call(this);
|
|
18
|
+
} catch (e) {
|
|
19
|
+
return Promise.reject(e);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
stack.push([async, dispose, value]);
|
|
23
|
+
} else if (async) {
|
|
24
|
+
stack.push([async]);
|
|
25
|
+
}
|
|
26
|
+
return value;
|
|
27
|
+
};
|
|
28
|
+
var __callDispose = (stack, error, hasError) => {
|
|
29
|
+
var E = typeof SuppressedError === "function" ? SuppressedError : function(e, s, m, _) {
|
|
30
|
+
return _ = Error(m), _.name = "SuppressedError", _.error = e, _.suppressed = s, _;
|
|
31
|
+
};
|
|
32
|
+
var fail = (e) => error = hasError ? new E(e, error, "An error was suppressed during disposal") : (hasError = true, e);
|
|
33
|
+
var next = (it) => {
|
|
34
|
+
while (it = stack.pop()) {
|
|
35
|
+
try {
|
|
36
|
+
var result = it[1] && it[1].call(it[2]);
|
|
37
|
+
if (it[0]) return Promise.resolve(result).then(next, (e) => (fail(e), next()));
|
|
38
|
+
} catch (e) {
|
|
39
|
+
fail(e);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (hasError) throw error;
|
|
43
|
+
};
|
|
44
|
+
return next();
|
|
45
|
+
};
|
|
46
|
+
|
|
1
47
|
// src/config/config-loader.ts
|
|
2
48
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
49
|
import { resolve } from "node:path";
|
|
@@ -13338,6 +13384,8 @@ function createBroadcaster() {
|
|
|
13338
13384
|
}
|
|
13339
13385
|
|
|
13340
13386
|
export {
|
|
13387
|
+
__using,
|
|
13388
|
+
__callDispose,
|
|
13341
13389
|
resolveApiTokenPolicy,
|
|
13342
13390
|
ApiTokenValidationError,
|
|
13343
13391
|
tokenExpiry,
|
|
@@ -13477,4 +13525,4 @@ export {
|
|
|
13477
13525
|
createProjectedSessionSnapshotStore,
|
|
13478
13526
|
createBroadcaster
|
|
13479
13527
|
};
|
|
13480
|
-
//# sourceMappingURL=chunk-
|
|
13528
|
+
//# sourceMappingURL=chunk-65CBLH7U.js.map
|