@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.
@@ -5172,4 +5172,4 @@ interface AppContext {
5172
5172
  /** @public */
5173
5173
  declare function createAppContext(opts?: AppOptions): Promise<AppContext>;
5174
5174
 
5175
- export { type AppContext as A, type Broadcaster as B, type LeitwerkConfig as L, type ModelStatusCacheSnapshot as M, type ReadonlyPiSessionTree as R, type SessionSummary as S, type AppOptions as a, type RepositoryBundle as b, createAppContext as c, type LeitwerkDb as d, type ServerProcessModelPolicy as e };
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 };
@@ -0,0 +1,8 @@
1
+ import {
2
+ createAppContext
3
+ } from "./chunk-I3CCVPXY.js";
4
+ import "./chunk-65CBLH7U.js";
5
+ export {
6
+ createAppContext
7
+ };
8
+ //# sourceMappingURL=app-VLQCV5WS.js.map
@@ -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-ZA5TDEM5.js.map
13528
+ //# sourceMappingURL=chunk-65CBLH7U.js.map