@adelie/server 0.5.4 → 0.5.5
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/api/types.d.ts +19 -2
- package/dist/api/types.js +1 -1
- package/dist/{chunk-T4HDU7IF.js → chunk-FC7VCPLY.js} +1 -1
- package/dist/chunk-FC7VCPLY.js.map +1 -0
- package/dist/index.js +741 -559
- package/dist/index.js.map +1 -1
- package/dist/install.ps1 +1 -1
- package/dist/install.sh +1 -1
- package/package.json +4 -4
- package/web-dist/assets/{addon-clipboard-SiadHaOT.js → addon-clipboard-RGzRb4Q6.js} +1 -1
- package/web-dist/assets/{addon-fit-BA2eZEr-.js → addon-fit-C71RgV2N.js} +1 -1
- package/web-dist/assets/{addon-web-links-Cc3iCiO3.js → addon-web-links-DTNHdhLW.js} +1 -1
- package/web-dist/assets/{highlighter-BsiJY2e9.js → highlighter-CCiLfNSa.js} +2 -2
- package/web-dist/assets/{highlighter-core-DI7x6DCw.js → highlighter-core-DiQFTSlw.js} +1 -1
- package/web-dist/assets/index-BiNjhVwW.js +1080 -0
- package/web-dist/assets/{xterm-BCXMUGHE.js → xterm-ByTKHwic.js} +1 -1
- package/web-dist/index.html +8 -2
- package/dist/chunk-T4HDU7IF.js.map +0 -1
- package/web-dist/assets/index-BlB2LCpU.js +0 -1080
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-GO6G445C.js";
|
|
9
9
|
import {
|
|
10
10
|
TICKET_SLUG_PATTERN
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FC7VCPLY.js";
|
|
12
12
|
import {
|
|
13
13
|
MachinesRepo
|
|
14
14
|
} from "./chunk-HMTT2PX4.js";
|
|
@@ -66,7 +66,7 @@ import zlib4 from "zlib";
|
|
|
66
66
|
import fs52 from "fs";
|
|
67
67
|
import fsp4 from "fs/promises";
|
|
68
68
|
import path57 from "path";
|
|
69
|
-
import { Hono as
|
|
69
|
+
import { Hono as Hono55 } from "hono";
|
|
70
70
|
import { bodyLimit as bodyLimit2 } from "hono/body-limit";
|
|
71
71
|
|
|
72
72
|
// src/services/attachment-limits.ts
|
|
@@ -3672,15 +3672,15 @@ function bindTerminalStream(ws, session, url, log) {
|
|
|
3672
3672
|
}
|
|
3673
3673
|
|
|
3674
3674
|
// src/hmr/platform.ts
|
|
3675
|
-
import { Hono as
|
|
3675
|
+
import { Hono as Hono54 } from "hono";
|
|
3676
3676
|
|
|
3677
3677
|
// src/platform.ts
|
|
3678
|
-
import { Component as
|
|
3678
|
+
import { Component as Component75, Module as Module23, moduleDefOf as moduleDefOf2, Use as Use79 } from "@adelie/core/kernel";
|
|
3679
3679
|
import { DEFAULT_PROJECT_ID as DEFAULT_PROJECT_ID3, DEFAULT_PROJECT_NAME as DEFAULT_PROJECT_NAME2 } from "@adelie/core";
|
|
3680
3680
|
|
|
3681
3681
|
// src/ifaces.json
|
|
3682
3682
|
var ifaces_default = {
|
|
3683
|
-
hash: "
|
|
3683
|
+
hash: "09ffec7eb0cdedd0d4c854572c6f05390cb320e6a103978ae78277abfcbfdb4d",
|
|
3684
3684
|
ifaces: {
|
|
3685
3685
|
"@adelie/server#Access": {
|
|
3686
3686
|
name: "Access",
|
|
@@ -17897,6 +17897,16 @@ var ifaces_default = {
|
|
|
17897
17897
|
},
|
|
17898
17898
|
slots: {}
|
|
17899
17899
|
},
|
|
17900
|
+
"@adelie/server#ThemeStylesheetRoutes": {
|
|
17901
|
+
name: "ThemeStylesheetRoutes",
|
|
17902
|
+
methods: {},
|
|
17903
|
+
slots: {}
|
|
17904
|
+
},
|
|
17905
|
+
"@adelie/server#ThemesRoutes": {
|
|
17906
|
+
name: "ThemesRoutes",
|
|
17907
|
+
methods: {},
|
|
17908
|
+
slots: {}
|
|
17909
|
+
},
|
|
17900
17910
|
"@adelie/server#TitleGenerators": {
|
|
17901
17911
|
name: "TitleGenerators",
|
|
17902
17912
|
methods: {
|
|
@@ -27122,7 +27132,9 @@ var ifaces_default = {
|
|
|
27122
27132
|
"PluginRoutes",
|
|
27123
27133
|
"PluginRegistryRoutes",
|
|
27124
27134
|
"InstalledPluginRoutes",
|
|
27125
|
-
"SuggestIdRoutes"
|
|
27135
|
+
"SuggestIdRoutes",
|
|
27136
|
+
"ThemesRoutes",
|
|
27137
|
+
"ThemeStylesheetRoutes"
|
|
27126
27138
|
],
|
|
27127
27139
|
exports: [
|
|
27128
27140
|
"Http",
|
|
@@ -30279,6 +30291,54 @@ var ifaces_default = {
|
|
|
30279
30291
|
contributes: {},
|
|
30280
30292
|
children: []
|
|
30281
30293
|
},
|
|
30294
|
+
ThemeStylesheetRoutes: {
|
|
30295
|
+
name: "ThemeStylesheetRoutes",
|
|
30296
|
+
kind: "component",
|
|
30297
|
+
requires: {
|
|
30298
|
+
config: {
|
|
30299
|
+
iface: "@adelie/server#Config",
|
|
30300
|
+
from: "RuntimeModule"
|
|
30301
|
+
}
|
|
30302
|
+
},
|
|
30303
|
+
provides: {
|
|
30304
|
+
ThemeStylesheetRoutes: "@adelie/server#ThemeStylesheetRoutes"
|
|
30305
|
+
},
|
|
30306
|
+
contributes: {
|
|
30307
|
+
"HttpModule.routes": [
|
|
30308
|
+
{
|
|
30309
|
+
id: "ThemeStylesheetRoutes.routes",
|
|
30310
|
+
prefix: "/api/themes.css",
|
|
30311
|
+
auth: "none",
|
|
30312
|
+
order: 5
|
|
30313
|
+
}
|
|
30314
|
+
]
|
|
30315
|
+
},
|
|
30316
|
+
children: []
|
|
30317
|
+
},
|
|
30318
|
+
ThemesRoutes: {
|
|
30319
|
+
name: "ThemesRoutes",
|
|
30320
|
+
kind: "component",
|
|
30321
|
+
requires: {
|
|
30322
|
+
config: {
|
|
30323
|
+
iface: "@adelie/server#Config",
|
|
30324
|
+
from: "RuntimeModule"
|
|
30325
|
+
}
|
|
30326
|
+
},
|
|
30327
|
+
provides: {
|
|
30328
|
+
ThemesRoutes: "@adelie/server#ThemesRoutes"
|
|
30329
|
+
},
|
|
30330
|
+
contributes: {
|
|
30331
|
+
"HttpModule.routes": [
|
|
30332
|
+
{
|
|
30333
|
+
id: "ThemesRoutes.routes",
|
|
30334
|
+
prefix: "/api/themes",
|
|
30335
|
+
auth: "user",
|
|
30336
|
+
order: 66
|
|
30337
|
+
}
|
|
30338
|
+
]
|
|
30339
|
+
},
|
|
30340
|
+
children: []
|
|
30341
|
+
},
|
|
30282
30342
|
TraceIndexRepo: {
|
|
30283
30343
|
name: "TraceIndexRepo",
|
|
30284
30344
|
kind: "component",
|
|
@@ -62370,11 +62430,11 @@ var MachinesService = class {
|
|
|
62370
62430
|
const path60 = (head ?? "").trim().split("\n").pop()?.trim() ?? "";
|
|
62371
62431
|
if (path60 === "") return null;
|
|
62372
62432
|
const names = (rest ?? "").split("\n").map((line) => line.trim()).filter((line) => line !== "");
|
|
62373
|
-
const
|
|
62433
|
+
const join3 = (name) => path60.endsWith("/") ? `${path60}${name}` : `${path60}/${name}`;
|
|
62374
62434
|
return {
|
|
62375
62435
|
path: path60,
|
|
62376
62436
|
parent: path60 === "/" ? null : path60.slice(0, path60.lastIndexOf("/")) || "/",
|
|
62377
|
-
entries: names.sort((a, b) => a.localeCompare(b)).map((name) => ({ name, path:
|
|
62437
|
+
entries: names.sort((a, b) => a.localeCompare(b)).map((name) => ({ name, path: join3(name) }))
|
|
62378
62438
|
};
|
|
62379
62439
|
}
|
|
62380
62440
|
/**
|
|
@@ -70677,12 +70737,132 @@ __decorateElement(_init131, 5, "routes", _routes_dec16, InstallRoutes);
|
|
|
70677
70737
|
InstallRoutes = __decorateElement(_init131, 0, "InstallRoutes", _InstallRoutes_decorators, InstallRoutes);
|
|
70678
70738
|
__runInitializers(_init131, 1, InstallRoutes);
|
|
70679
70739
|
|
|
70680
|
-
// src/
|
|
70740
|
+
// src/http/routes/themes.ts
|
|
70741
|
+
import { readdir, readFile } from "fs/promises";
|
|
70742
|
+
import { join as join2 } from "path";
|
|
70681
70743
|
import { Hono as Hono41 } from "hono";
|
|
70744
|
+
import { externalThemesCss, readExternalTheme } from "@adelie/core";
|
|
70682
70745
|
import { Bind as Bind25, Component as Component65, Use as Use67 } from "@adelie/core/kernel";
|
|
70746
|
+
var THEMES_DIR = "themes";
|
|
70747
|
+
var MAX_FILE_BYTES2 = 256 * 1024;
|
|
70748
|
+
async function readImportedThemes(root) {
|
|
70749
|
+
const dir = join2(root, THEMES_DIR);
|
|
70750
|
+
let names;
|
|
70751
|
+
try {
|
|
70752
|
+
names = (await readdir(dir)).filter((name) => name.endsWith(".json")).sort();
|
|
70753
|
+
} catch {
|
|
70754
|
+
return { dir, themes: [], rejected: [] };
|
|
70755
|
+
}
|
|
70756
|
+
const themes = [];
|
|
70757
|
+
const rejected = [];
|
|
70758
|
+
for (const file of names) {
|
|
70759
|
+
let text2;
|
|
70760
|
+
try {
|
|
70761
|
+
text2 = await readFile(join2(dir, file), "utf8");
|
|
70762
|
+
} catch (error) {
|
|
70763
|
+
rejected.push({ file, errors: [`\u8BFB\u4E0D\u4E86\u8FD9\u4E2A\u6587\u4EF6\uFF1A${error.message}`] });
|
|
70764
|
+
continue;
|
|
70765
|
+
}
|
|
70766
|
+
if (text2.length > MAX_FILE_BYTES2) {
|
|
70767
|
+
rejected.push({ file, errors: [`\u6587\u4EF6\u8D85\u8FC7 ${MAX_FILE_BYTES2} \u5B57\u8282`] });
|
|
70768
|
+
continue;
|
|
70769
|
+
}
|
|
70770
|
+
let parsed;
|
|
70771
|
+
try {
|
|
70772
|
+
parsed = JSON.parse(text2);
|
|
70773
|
+
} catch (error) {
|
|
70774
|
+
rejected.push({ file, errors: [`\u4E0D\u662F\u5408\u6CD5\u7684 JSON\uFF1A${error.message}`] });
|
|
70775
|
+
continue;
|
|
70776
|
+
}
|
|
70777
|
+
const read = readExternalTheme(parsed);
|
|
70778
|
+
if (!read.ok) {
|
|
70779
|
+
rejected.push({ file, errors: read.errors });
|
|
70780
|
+
continue;
|
|
70781
|
+
}
|
|
70782
|
+
if (themes.some((entry) => entry.theme.id === read.theme.id)) {
|
|
70783
|
+
rejected.push({ file, errors: [`\u4E3B\u9898\u540D\u300C${read.theme.id}\u300D\u5DF2\u88AB\u53E6\u4E00\u4E2A\u6587\u4EF6\u7528\u4E86`] });
|
|
70784
|
+
continue;
|
|
70785
|
+
}
|
|
70786
|
+
themes.push({ file, theme: read.theme });
|
|
70787
|
+
}
|
|
70788
|
+
return { dir, themes, rejected };
|
|
70789
|
+
}
|
|
70790
|
+
function themesRoutes(deps) {
|
|
70791
|
+
const routes = new Hono41();
|
|
70792
|
+
routes.get("/", async (c) => {
|
|
70793
|
+
const { dir, themes, rejected } = await readImportedThemes(deps.root);
|
|
70794
|
+
return c.json({
|
|
70795
|
+
dir,
|
|
70796
|
+
themes: themes.map(({ file, theme }) => ({ file, theme })),
|
|
70797
|
+
rejected: rejected.map(({ file, errors }) => ({ file, errors: [...errors] }))
|
|
70798
|
+
});
|
|
70799
|
+
});
|
|
70800
|
+
return routes;
|
|
70801
|
+
}
|
|
70802
|
+
function themeStylesheetRoutes(deps) {
|
|
70803
|
+
const routes = new Hono41();
|
|
70804
|
+
routes.get("/", async (c) => {
|
|
70805
|
+
const { themes } = await readImportedThemes(deps.root);
|
|
70806
|
+
return c.body(externalThemesCss(themes.map((entry) => entry.theme)), 200, {
|
|
70807
|
+
"Content-Type": "text/css; charset=utf-8",
|
|
70808
|
+
// Derived from files: revalidate per load, so editing a file and reloading the page is the
|
|
70809
|
+
// whole edit-test loop.
|
|
70810
|
+
"Cache-Control": "no-cache"
|
|
70811
|
+
});
|
|
70812
|
+
});
|
|
70813
|
+
return routes;
|
|
70814
|
+
}
|
|
70815
|
+
var _routes_dec17, _config_dec15, _ThemesRoutes_decorators, _init132;
|
|
70816
|
+
_ThemesRoutes_decorators = [Component65({
|
|
70817
|
+
contributes: {
|
|
70818
|
+
"HttpModule.routes": [
|
|
70819
|
+
{ id: "ThemesRoutes.routes", prefix: "/api/themes", auth: "user", order: 66 }
|
|
70820
|
+
]
|
|
70821
|
+
}
|
|
70822
|
+
})], _config_dec15 = [Use67()], _routes_dec17 = [Bind25("ThemesRoutes.routes")];
|
|
70823
|
+
var ThemesRoutes = class {
|
|
70824
|
+
constructor() {
|
|
70825
|
+
__publicField(this, "config", __runInitializers(_init132, 8, this)), __runInitializers(_init132, 11, this);
|
|
70826
|
+
__publicField(this, "routes", __runInitializers(_init132, 12, this)), __runInitializers(_init132, 15, this);
|
|
70827
|
+
}
|
|
70828
|
+
setup() {
|
|
70829
|
+
this.routes = themesRoutes({ root: this.config.root });
|
|
70830
|
+
}
|
|
70831
|
+
};
|
|
70832
|
+
_init132 = __decoratorStart(null);
|
|
70833
|
+
__decorateElement(_init132, 5, "config", _config_dec15, ThemesRoutes);
|
|
70834
|
+
__decorateElement(_init132, 5, "routes", _routes_dec17, ThemesRoutes);
|
|
70835
|
+
ThemesRoutes = __decorateElement(_init132, 0, "ThemesRoutes", _ThemesRoutes_decorators, ThemesRoutes);
|
|
70836
|
+
__runInitializers(_init132, 1, ThemesRoutes);
|
|
70837
|
+
var _routes_dec18, _config_dec16, _ThemeStylesheetRoutes_decorators, _init133;
|
|
70838
|
+
_ThemeStylesheetRoutes_decorators = [Component65({
|
|
70839
|
+
contributes: {
|
|
70840
|
+
"HttpModule.routes": [
|
|
70841
|
+
{ id: "ThemeStylesheetRoutes.routes", prefix: "/api/themes.css", auth: "none", order: 5 }
|
|
70842
|
+
]
|
|
70843
|
+
}
|
|
70844
|
+
})], _config_dec16 = [Use67()], _routes_dec18 = [Bind25("ThemeStylesheetRoutes.routes")];
|
|
70845
|
+
var ThemeStylesheetRoutes = class {
|
|
70846
|
+
constructor() {
|
|
70847
|
+
__publicField(this, "config", __runInitializers(_init133, 8, this)), __runInitializers(_init133, 11, this);
|
|
70848
|
+
__publicField(this, "routes", __runInitializers(_init133, 12, this)), __runInitializers(_init133, 15, this);
|
|
70849
|
+
}
|
|
70850
|
+
setup() {
|
|
70851
|
+
this.routes = themeStylesheetRoutes({ root: this.config.root });
|
|
70852
|
+
}
|
|
70853
|
+
};
|
|
70854
|
+
_init133 = __decoratorStart(null);
|
|
70855
|
+
__decorateElement(_init133, 5, "config", _config_dec16, ThemeStylesheetRoutes);
|
|
70856
|
+
__decorateElement(_init133, 5, "routes", _routes_dec18, ThemeStylesheetRoutes);
|
|
70857
|
+
ThemeStylesheetRoutes = __decorateElement(_init133, 0, "ThemeStylesheetRoutes", _ThemeStylesheetRoutes_decorators, ThemeStylesheetRoutes);
|
|
70858
|
+
__runInitializers(_init133, 1, ThemeStylesheetRoutes);
|
|
70859
|
+
|
|
70860
|
+
// src/hmr/routes.ts
|
|
70861
|
+
import { Hono as Hono42 } from "hono";
|
|
70862
|
+
import { Bind as Bind26, Component as Component66, Use as Use68 } from "@adelie/core/kernel";
|
|
70683
70863
|
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["127.0.0.1", "::1", "localhost"]);
|
|
70684
70864
|
function hmrRoutes(deps) {
|
|
70685
|
-
const routes = new
|
|
70865
|
+
const routes = new Hono42();
|
|
70686
70866
|
routes.use("*", async (c, next) => {
|
|
70687
70867
|
if (!LOOPBACK_HOSTS.has(deps.config.host.toLowerCase())) {
|
|
70688
70868
|
const proto = deps.config.trustProxy ? c.req.header("x-forwarded-proto") ?? new URL(c.req.url).protocol.replace(":", "") : new URL(c.req.url).protocol.replace(":", "");
|
|
@@ -70718,8 +70898,8 @@ function hmrRoutes(deps) {
|
|
|
70718
70898
|
);
|
|
70719
70899
|
return routes;
|
|
70720
70900
|
}
|
|
70721
|
-
var
|
|
70722
|
-
_HmrRoutes_decorators = [
|
|
70901
|
+
var _routes_dec19, _channels_dec10, _config_dec17, _auth_dec9, _control_dec, _HmrRoutes_decorators, _init134;
|
|
70902
|
+
_HmrRoutes_decorators = [Component66({
|
|
70723
70903
|
contributes: {
|
|
70724
70904
|
"HttpModule.routes": [
|
|
70725
70905
|
// Manifest data is literal (gen-ifaces reads it off the source): the same prefix packages/hmr exports as HMR_ROUTE_PREFIX.
|
|
@@ -70728,14 +70908,14 @@ _HmrRoutes_decorators = [Component65({
|
|
|
70728
70908
|
{ id: "HmrRoutes.routes", prefix: "/api/hmr", auth: "none", order: 5 }
|
|
70729
70909
|
]
|
|
70730
70910
|
}
|
|
70731
|
-
})], _control_dec = [
|
|
70911
|
+
})], _control_dec = [Use68()], _auth_dec9 = [Use68()], _config_dec17 = [Use68()], _channels_dec10 = [Use68()], _routes_dec19 = [Bind26("HmrRoutes.routes")];
|
|
70732
70912
|
var HmrRoutes = class {
|
|
70733
70913
|
constructor() {
|
|
70734
|
-
__publicField(this, "control", __runInitializers(
|
|
70735
|
-
__publicField(this, "auth", __runInitializers(
|
|
70736
|
-
__publicField(this, "config", __runInitializers(
|
|
70737
|
-
__publicField(this, "channels", __runInitializers(
|
|
70738
|
-
__publicField(this, "routes", __runInitializers(
|
|
70914
|
+
__publicField(this, "control", __runInitializers(_init134, 8, this)), __runInitializers(_init134, 11, this);
|
|
70915
|
+
__publicField(this, "auth", __runInitializers(_init134, 12, this)), __runInitializers(_init134, 15, this);
|
|
70916
|
+
__publicField(this, "config", __runInitializers(_init134, 16, this)), __runInitializers(_init134, 19, this);
|
|
70917
|
+
__publicField(this, "channels", __runInitializers(_init134, 20, this)), __runInitializers(_init134, 23, this);
|
|
70918
|
+
__publicField(this, "routes", __runInitializers(_init134, 24, this)), __runInitializers(_init134, 27, this);
|
|
70739
70919
|
}
|
|
70740
70920
|
setup() {
|
|
70741
70921
|
this.routes = hmrRoutes({
|
|
@@ -70747,19 +70927,19 @@ var HmrRoutes = class {
|
|
|
70747
70927
|
});
|
|
70748
70928
|
}
|
|
70749
70929
|
};
|
|
70750
|
-
|
|
70751
|
-
__decorateElement(
|
|
70752
|
-
__decorateElement(
|
|
70753
|
-
__decorateElement(
|
|
70754
|
-
__decorateElement(
|
|
70755
|
-
__decorateElement(
|
|
70756
|
-
HmrRoutes = __decorateElement(
|
|
70757
|
-
__runInitializers(
|
|
70930
|
+
_init134 = __decoratorStart(null);
|
|
70931
|
+
__decorateElement(_init134, 5, "control", _control_dec, HmrRoutes);
|
|
70932
|
+
__decorateElement(_init134, 5, "auth", _auth_dec9, HmrRoutes);
|
|
70933
|
+
__decorateElement(_init134, 5, "config", _config_dec17, HmrRoutes);
|
|
70934
|
+
__decorateElement(_init134, 5, "channels", _channels_dec10, HmrRoutes);
|
|
70935
|
+
__decorateElement(_init134, 5, "routes", _routes_dec19, HmrRoutes);
|
|
70936
|
+
HmrRoutes = __decorateElement(_init134, 0, "HmrRoutes", _HmrRoutes_decorators, HmrRoutes);
|
|
70937
|
+
__runInitializers(_init134, 1, HmrRoutes);
|
|
70758
70938
|
|
|
70759
70939
|
// src/http/routes/plugins.ts
|
|
70760
70940
|
import path45 from "path";
|
|
70761
70941
|
import { strToU8, unzipSync as unzipSync3, zipSync as zipSync3 } from "fflate";
|
|
70762
|
-
import { Hono as
|
|
70942
|
+
import { Hono as Hono44 } from "hono";
|
|
70763
70943
|
import {
|
|
70764
70944
|
PLUGIN_NAME_PATTERN as PLUGIN_NAME_PATTERN4,
|
|
70765
70945
|
installPlugin as installPlugin2,
|
|
@@ -70773,13 +70953,13 @@ import {
|
|
|
70773
70953
|
userPluginRoots,
|
|
70774
70954
|
userPluginsDir
|
|
70775
70955
|
} from "@adelie/core";
|
|
70776
|
-
import { Bind as
|
|
70956
|
+
import { Bind as Bind27, Component as Component67, Use as Use69 } from "@adelie/core/kernel";
|
|
70777
70957
|
|
|
70778
70958
|
// src/http/routes/hooks.ts
|
|
70779
70959
|
import fs39 from "fs/promises";
|
|
70780
70960
|
import path40 from "path";
|
|
70781
70961
|
import { unzipSync as unzipSync2, strFromU8 as strFromU82, zipSync as zipSync2 } from "fflate";
|
|
70782
|
-
import { Hono as
|
|
70962
|
+
import { Hono as Hono43 } from "hono";
|
|
70783
70963
|
import {
|
|
70784
70964
|
PLUGIN_NAME_PATTERN as PLUGIN_NAME_PATTERN3,
|
|
70785
70965
|
hooksDir,
|
|
@@ -70935,7 +71115,7 @@ async function collectHookArchive(dir, name) {
|
|
|
70935
71115
|
return out;
|
|
70936
71116
|
}
|
|
70937
71117
|
function agentHooksRoutes(deps) {
|
|
70938
|
-
const app = new
|
|
71118
|
+
const app = new Hono43();
|
|
70939
71119
|
const installedItems = async (projectId, agentId) => (await listInstalledHooks2(deps.config.root, projectId, agentId)).map(toHookItem);
|
|
70940
71120
|
const requireInstalled = async (projectId, agentId, name) => {
|
|
70941
71121
|
const dir = path40.join(hooksDir(deps.config.root, projectId, agentId), name);
|
|
@@ -71327,12 +71507,12 @@ function checkIfaces(ts, platform, consumer, questions) {
|
|
|
71327
71507
|
moduleResolution: ts.ModuleResolutionKind.NodeNext
|
|
71328
71508
|
};
|
|
71329
71509
|
const host = ts.createCompilerHost(options);
|
|
71330
|
-
const { fileExists, readFile, getSourceFile } = host;
|
|
71510
|
+
const { fileExists, readFile: readFile2, getSourceFile } = host;
|
|
71331
71511
|
const virtual = (file) => files.get(path41.resolve(file));
|
|
71332
71512
|
const directoryExists = host.directoryExists;
|
|
71333
71513
|
host.directoryExists = (dir) => path41.resolve(dir) === base || (directoryExists?.call(host, dir) ?? true);
|
|
71334
71514
|
host.fileExists = (file) => virtual(file) !== void 0 || fileExists.call(host, file);
|
|
71335
|
-
host.readFile = (file) => virtual(file) ??
|
|
71515
|
+
host.readFile = (file) => virtual(file) ?? readFile2.call(host, file);
|
|
71336
71516
|
host.getSourceFile = (file, languageVersion, ...rest) => {
|
|
71337
71517
|
const text2 = virtual(file);
|
|
71338
71518
|
return text2 === void 0 ? getSourceFile.call(host, file, languageVersion, ...rest) : ts.createSourceFile(file, text2, languageVersion, true);
|
|
@@ -72456,7 +72636,7 @@ async function importPlugin2(deps, parsed, overwrite) {
|
|
|
72456
72636
|
};
|
|
72457
72637
|
}
|
|
72458
72638
|
function pluginLibraryRoutes(deps) {
|
|
72459
|
-
const app = new
|
|
72639
|
+
const app = new Hono44();
|
|
72460
72640
|
app.get("/", (c) => c.json(libraryResponse(deps.config.root)));
|
|
72461
72641
|
app.get(
|
|
72462
72642
|
"/directory",
|
|
@@ -72550,7 +72730,7 @@ function pluginLibraryRoutes(deps) {
|
|
|
72550
72730
|
return app;
|
|
72551
72731
|
}
|
|
72552
72732
|
function agentPluginsRoutes(deps) {
|
|
72553
|
-
const app = new
|
|
72733
|
+
const app = new Hono44();
|
|
72554
72734
|
app.post("/", async (c) => {
|
|
72555
72735
|
const projectId = requireValidId(c, "projectId");
|
|
72556
72736
|
const agentId = requireValidId(c, "agentId");
|
|
@@ -72577,8 +72757,8 @@ function agentPluginsRoutes(deps) {
|
|
|
72577
72757
|
});
|
|
72578
72758
|
return app;
|
|
72579
72759
|
}
|
|
72580
|
-
var _hookRoutes_dec, _pluginRoutes_dec, _libraryRoutes_dec, _manager_dec4, _agentConfig_dec7, _access_dec8,
|
|
72581
|
-
_PluginRoutes_decorators = [
|
|
72760
|
+
var _hookRoutes_dec, _pluginRoutes_dec, _libraryRoutes_dec, _manager_dec4, _agentConfig_dec7, _access_dec8, _config_dec18, _PluginRoutes_decorators, _init135;
|
|
72761
|
+
_PluginRoutes_decorators = [Component67({
|
|
72582
72762
|
contributes: {
|
|
72583
72763
|
"HttpModule.routes": [
|
|
72584
72764
|
{ id: "PluginRoutes.library", prefix: "/api/plugins", auth: "user", order: 70 },
|
|
@@ -72596,16 +72776,16 @@ _PluginRoutes_decorators = [Component66({
|
|
|
72596
72776
|
}
|
|
72597
72777
|
]
|
|
72598
72778
|
}
|
|
72599
|
-
})],
|
|
72779
|
+
})], _config_dec18 = [Use69()], _access_dec8 = [Use69()], _agentConfig_dec7 = [Use69()], _manager_dec4 = [Use69()], _libraryRoutes_dec = [Bind27("PluginRoutes.library")], _pluginRoutes_dec = [Bind27("PluginRoutes.agent-plugins")], _hookRoutes_dec = [Bind27("PluginRoutes.agent-hooks")];
|
|
72600
72780
|
var PluginRoutes = class {
|
|
72601
72781
|
constructor() {
|
|
72602
|
-
__publicField(this, "config", __runInitializers(
|
|
72603
|
-
__publicField(this, "access", __runInitializers(
|
|
72604
|
-
__publicField(this, "agentConfig", __runInitializers(
|
|
72605
|
-
__publicField(this, "manager", __runInitializers(
|
|
72606
|
-
__publicField(this, "libraryRoutes", __runInitializers(
|
|
72607
|
-
__publicField(this, "pluginRoutes", __runInitializers(
|
|
72608
|
-
__publicField(this, "hookRoutes", __runInitializers(
|
|
72782
|
+
__publicField(this, "config", __runInitializers(_init135, 8, this)), __runInitializers(_init135, 11, this);
|
|
72783
|
+
__publicField(this, "access", __runInitializers(_init135, 12, this)), __runInitializers(_init135, 15, this);
|
|
72784
|
+
__publicField(this, "agentConfig", __runInitializers(_init135, 16, this)), __runInitializers(_init135, 19, this);
|
|
72785
|
+
__publicField(this, "manager", __runInitializers(_init135, 20, this)), __runInitializers(_init135, 23, this);
|
|
72786
|
+
__publicField(this, "libraryRoutes", __runInitializers(_init135, 24, this)), __runInitializers(_init135, 27, this);
|
|
72787
|
+
__publicField(this, "pluginRoutes", __runInitializers(_init135, 28, this)), __runInitializers(_init135, 31, this);
|
|
72788
|
+
__publicField(this, "hookRoutes", __runInitializers(_init135, 32, this)), __runInitializers(_init135, 35, this);
|
|
72609
72789
|
}
|
|
72610
72790
|
setup() {
|
|
72611
72791
|
const deps = {
|
|
@@ -72619,18 +72799,18 @@ var PluginRoutes = class {
|
|
|
72619
72799
|
this.hookRoutes = agentHooksRoutes(deps);
|
|
72620
72800
|
}
|
|
72621
72801
|
};
|
|
72622
|
-
|
|
72623
|
-
__decorateElement(
|
|
72624
|
-
__decorateElement(
|
|
72625
|
-
__decorateElement(
|
|
72626
|
-
__decorateElement(
|
|
72627
|
-
__decorateElement(
|
|
72628
|
-
__decorateElement(
|
|
72629
|
-
__decorateElement(
|
|
72630
|
-
PluginRoutes = __decorateElement(
|
|
72631
|
-
__runInitializers(
|
|
72802
|
+
_init135 = __decoratorStart(null);
|
|
72803
|
+
__decorateElement(_init135, 5, "config", _config_dec18, PluginRoutes);
|
|
72804
|
+
__decorateElement(_init135, 5, "access", _access_dec8, PluginRoutes);
|
|
72805
|
+
__decorateElement(_init135, 5, "agentConfig", _agentConfig_dec7, PluginRoutes);
|
|
72806
|
+
__decorateElement(_init135, 5, "manager", _manager_dec4, PluginRoutes);
|
|
72807
|
+
__decorateElement(_init135, 5, "libraryRoutes", _libraryRoutes_dec, PluginRoutes);
|
|
72808
|
+
__decorateElement(_init135, 5, "pluginRoutes", _pluginRoutes_dec, PluginRoutes);
|
|
72809
|
+
__decorateElement(_init135, 5, "hookRoutes", _hookRoutes_dec, PluginRoutes);
|
|
72810
|
+
PluginRoutes = __decorateElement(_init135, 0, "PluginRoutes", _PluginRoutes_decorators, PluginRoutes);
|
|
72811
|
+
__runInitializers(_init135, 1, PluginRoutes);
|
|
72632
72812
|
function pluginRegistryRoutes(bases, root) {
|
|
72633
|
-
const app = new
|
|
72813
|
+
const app = new Hono44();
|
|
72634
72814
|
const registry = builtinPluginRegistry({
|
|
72635
72815
|
bases,
|
|
72636
72816
|
// The shelf is what this build ships: read per call, because a push moves both the
|
|
@@ -72655,8 +72835,8 @@ function pluginRegistryRoutes(bases, root) {
|
|
|
72655
72835
|
});
|
|
72656
72836
|
return app;
|
|
72657
72837
|
}
|
|
72658
|
-
var
|
|
72659
|
-
_PluginRegistryRoutes_decorators = [
|
|
72838
|
+
var _routes_dec20, _hmr_dec4, _config_dec19, _PluginRegistryRoutes_decorators, _init136;
|
|
72839
|
+
_PluginRegistryRoutes_decorators = [Component67({
|
|
72660
72840
|
contributes: {
|
|
72661
72841
|
"HttpModule.routes": [
|
|
72662
72842
|
{
|
|
@@ -72667,12 +72847,12 @@ _PluginRegistryRoutes_decorators = [Component66({
|
|
|
72667
72847
|
}
|
|
72668
72848
|
]
|
|
72669
72849
|
}
|
|
72670
|
-
})],
|
|
72850
|
+
})], _config_dec19 = [Use69()], _hmr_dec4 = [Use69()], _routes_dec20 = [Bind27("PluginRegistryRoutes.routes")];
|
|
72671
72851
|
var PluginRegistryRoutes = class {
|
|
72672
72852
|
constructor() {
|
|
72673
|
-
__publicField(this, "config", __runInitializers(
|
|
72674
|
-
__publicField(this, "hmr", __runInitializers(
|
|
72675
|
-
__publicField(this, "routes", __runInitializers(
|
|
72853
|
+
__publicField(this, "config", __runInitializers(_init136, 8, this)), __runInitializers(_init136, 11, this);
|
|
72854
|
+
__publicField(this, "hmr", __runInitializers(_init136, 12, this)), __runInitializers(_init136, 15, this);
|
|
72855
|
+
__publicField(this, "routes", __runInitializers(_init136, 16, this)), __runInitializers(_init136, 19, this);
|
|
72676
72856
|
}
|
|
72677
72857
|
setup() {
|
|
72678
72858
|
this.routes = pluginRegistryRoutes(
|
|
@@ -72681,19 +72861,19 @@ var PluginRegistryRoutes = class {
|
|
|
72681
72861
|
);
|
|
72682
72862
|
}
|
|
72683
72863
|
};
|
|
72684
|
-
|
|
72685
|
-
__decorateElement(
|
|
72686
|
-
__decorateElement(
|
|
72687
|
-
__decorateElement(
|
|
72688
|
-
PluginRegistryRoutes = __decorateElement(
|
|
72689
|
-
__runInitializers(
|
|
72864
|
+
_init136 = __decoratorStart(null);
|
|
72865
|
+
__decorateElement(_init136, 5, "config", _config_dec19, PluginRegistryRoutes);
|
|
72866
|
+
__decorateElement(_init136, 5, "hmr", _hmr_dec4, PluginRegistryRoutes);
|
|
72867
|
+
__decorateElement(_init136, 5, "routes", _routes_dec20, PluginRegistryRoutes);
|
|
72868
|
+
PluginRegistryRoutes = __decorateElement(_init136, 0, "PluginRegistryRoutes", _PluginRegistryRoutes_decorators, PluginRegistryRoutes);
|
|
72869
|
+
__runInitializers(_init136, 1, PluginRegistryRoutes);
|
|
72690
72870
|
|
|
72691
72871
|
// src/http/routes/plugins-installed.ts
|
|
72692
|
-
import { Hono as
|
|
72693
|
-
import { Bind as
|
|
72872
|
+
import { Hono as Hono45 } from "hono";
|
|
72873
|
+
import { Bind as Bind28, Component as Component68, Use as Use70 } from "@adelie/core/kernel";
|
|
72694
72874
|
import { effectivePluginTable as effectivePluginTable3, PLUGIN_MACHINE_ID } from "@adelie/core";
|
|
72695
72875
|
function installedPluginRoutes(deps) {
|
|
72696
|
-
const app = new
|
|
72876
|
+
const app = new Hono45();
|
|
72697
72877
|
const scope = (c) => {
|
|
72698
72878
|
const projectId = requireValidId(c, "projectId");
|
|
72699
72879
|
deps.access.requireProjectAccess(c.var.user.userId, projectId);
|
|
@@ -72880,8 +73060,8 @@ function installedPluginRoutes(deps) {
|
|
|
72880
73060
|
});
|
|
72881
73061
|
return app;
|
|
72882
73062
|
}
|
|
72883
|
-
var
|
|
72884
|
-
_InstalledPluginRoutes_decorators = [
|
|
73063
|
+
var _routes_dec21, _db_dec17, _machines_dec4, _access_dec9, _projectConfig_dec14, _reassembly_dec2, _hmr_dec5, _config_dec20, _InstalledPluginRoutes_decorators, _init137;
|
|
73064
|
+
_InstalledPluginRoutes_decorators = [Component68({
|
|
72885
73065
|
contributes: {
|
|
72886
73066
|
"HttpModule.routes": [
|
|
72887
73067
|
{
|
|
@@ -72893,17 +73073,17 @@ _InstalledPluginRoutes_decorators = [Component67({
|
|
|
72893
73073
|
}
|
|
72894
73074
|
]
|
|
72895
73075
|
}
|
|
72896
|
-
})],
|
|
73076
|
+
})], _config_dec20 = [Use70()], _hmr_dec5 = [Use70()], _reassembly_dec2 = [Use70()], _projectConfig_dec14 = [Use70()], _access_dec9 = [Use70()], _machines_dec4 = [Use70()], _db_dec17 = [Use70()], _routes_dec21 = [Bind28("InstalledPluginRoutes.routes")];
|
|
72897
73077
|
var InstalledPluginRoutes = class {
|
|
72898
73078
|
constructor() {
|
|
72899
|
-
__publicField(this, "config", __runInitializers(
|
|
72900
|
-
__publicField(this, "hmr", __runInitializers(
|
|
72901
|
-
__publicField(this, "reassembly", __runInitializers(
|
|
72902
|
-
__publicField(this, "projectConfig", __runInitializers(
|
|
72903
|
-
__publicField(this, "access", __runInitializers(
|
|
72904
|
-
__publicField(this, "machines", __runInitializers(
|
|
72905
|
-
__publicField(this, "db", __runInitializers(
|
|
72906
|
-
__publicField(this, "routes", __runInitializers(
|
|
73079
|
+
__publicField(this, "config", __runInitializers(_init137, 8, this)), __runInitializers(_init137, 11, this);
|
|
73080
|
+
__publicField(this, "hmr", __runInitializers(_init137, 12, this)), __runInitializers(_init137, 15, this);
|
|
73081
|
+
__publicField(this, "reassembly", __runInitializers(_init137, 16, this)), __runInitializers(_init137, 19, this);
|
|
73082
|
+
__publicField(this, "projectConfig", __runInitializers(_init137, 20, this)), __runInitializers(_init137, 23, this);
|
|
73083
|
+
__publicField(this, "access", __runInitializers(_init137, 24, this)), __runInitializers(_init137, 27, this);
|
|
73084
|
+
__publicField(this, "machines", __runInitializers(_init137, 28, this)), __runInitializers(_init137, 31, this);
|
|
73085
|
+
__publicField(this, "db", __runInitializers(_init137, 32, this)), __runInitializers(_init137, 35, this);
|
|
73086
|
+
__publicField(this, "routes", __runInitializers(_init137, 36, this)), __runInitializers(_init137, 39, this);
|
|
72907
73087
|
}
|
|
72908
73088
|
setup() {
|
|
72909
73089
|
const hmr = this.hmr;
|
|
@@ -72925,24 +73105,24 @@ var InstalledPluginRoutes = class {
|
|
|
72925
73105
|
});
|
|
72926
73106
|
}
|
|
72927
73107
|
};
|
|
72928
|
-
|
|
72929
|
-
__decorateElement(
|
|
72930
|
-
__decorateElement(
|
|
72931
|
-
__decorateElement(
|
|
72932
|
-
__decorateElement(
|
|
72933
|
-
__decorateElement(
|
|
72934
|
-
__decorateElement(
|
|
72935
|
-
__decorateElement(
|
|
72936
|
-
__decorateElement(
|
|
72937
|
-
InstalledPluginRoutes = __decorateElement(
|
|
72938
|
-
__runInitializers(
|
|
73108
|
+
_init137 = __decoratorStart(null);
|
|
73109
|
+
__decorateElement(_init137, 5, "config", _config_dec20, InstalledPluginRoutes);
|
|
73110
|
+
__decorateElement(_init137, 5, "hmr", _hmr_dec5, InstalledPluginRoutes);
|
|
73111
|
+
__decorateElement(_init137, 5, "reassembly", _reassembly_dec2, InstalledPluginRoutes);
|
|
73112
|
+
__decorateElement(_init137, 5, "projectConfig", _projectConfig_dec14, InstalledPluginRoutes);
|
|
73113
|
+
__decorateElement(_init137, 5, "access", _access_dec9, InstalledPluginRoutes);
|
|
73114
|
+
__decorateElement(_init137, 5, "machines", _machines_dec4, InstalledPluginRoutes);
|
|
73115
|
+
__decorateElement(_init137, 5, "db", _db_dec17, InstalledPluginRoutes);
|
|
73116
|
+
__decorateElement(_init137, 5, "routes", _routes_dec21, InstalledPluginRoutes);
|
|
73117
|
+
InstalledPluginRoutes = __decorateElement(_init137, 0, "InstalledPluginRoutes", _InstalledPluginRoutes_decorators, InstalledPluginRoutes);
|
|
73118
|
+
__runInitializers(_init137, 1, InstalledPluginRoutes);
|
|
72939
73119
|
|
|
72940
73120
|
// src/http/routes/suggest-id.ts
|
|
72941
|
-
import { Hono as
|
|
72942
|
-
import { Bind as
|
|
73121
|
+
import { Hono as Hono46 } from "hono";
|
|
73122
|
+
import { Bind as Bind29, Component as Component69, Use as Use71 } from "@adelie/core/kernel";
|
|
72943
73123
|
var KINDS = ["project", "agent", "benchmark", "org", "channel"];
|
|
72944
73124
|
function suggestIdRoutes(deps) {
|
|
72945
|
-
const app = new
|
|
73125
|
+
const app = new Hono46();
|
|
72946
73126
|
app.post("/", async (c) => {
|
|
72947
73127
|
const projectId = requireValidId(c, "projectId");
|
|
72948
73128
|
const user = c.var.user;
|
|
@@ -72980,8 +73160,8 @@ function suggestIdRoutes(deps) {
|
|
|
72980
73160
|
});
|
|
72981
73161
|
return app;
|
|
72982
73162
|
}
|
|
72983
|
-
var
|
|
72984
|
-
_SuggestIdRoutes_decorators = [
|
|
73163
|
+
var _routes_dec22, _log_dec5, _errors_dec8, _settings_dec10, _orgService_dec3, _benchmarks_dec2, _agents_dec4, _projectConfig_dec15, _projects_dec8, _access_dec10, _SuggestIdRoutes_decorators, _init138;
|
|
73164
|
+
_SuggestIdRoutes_decorators = [Component69({
|
|
72985
73165
|
contributes: {
|
|
72986
73166
|
"HttpModule.routes": [
|
|
72987
73167
|
{
|
|
@@ -72992,19 +73172,19 @@ _SuggestIdRoutes_decorators = [Component68({
|
|
|
72992
73172
|
}
|
|
72993
73173
|
]
|
|
72994
73174
|
}
|
|
72995
|
-
})], _access_dec10 = [
|
|
73175
|
+
})], _access_dec10 = [Use71()], _projects_dec8 = [Use71()], _projectConfig_dec15 = [Use71()], _agents_dec4 = [Use71()], _benchmarks_dec2 = [Use71()], _orgService_dec3 = [Use71()], _settings_dec10 = [Use71()], _errors_dec8 = [Use71()], _log_dec5 = [Use71()], _routes_dec22 = [Bind29("SuggestIdRoutes.routes")];
|
|
72996
73176
|
var SuggestIdRoutes = class {
|
|
72997
73177
|
constructor() {
|
|
72998
|
-
__publicField(this, "access", __runInitializers(
|
|
72999
|
-
__publicField(this, "projects", __runInitializers(
|
|
73000
|
-
__publicField(this, "projectConfig", __runInitializers(
|
|
73001
|
-
__publicField(this, "agents", __runInitializers(
|
|
73002
|
-
__publicField(this, "benchmarks", __runInitializers(
|
|
73003
|
-
__publicField(this, "orgService", __runInitializers(
|
|
73004
|
-
__publicField(this, "settings", __runInitializers(
|
|
73005
|
-
__publicField(this, "errors", __runInitializers(
|
|
73006
|
-
__publicField(this, "log", __runInitializers(
|
|
73007
|
-
__publicField(this, "routes", __runInitializers(
|
|
73178
|
+
__publicField(this, "access", __runInitializers(_init138, 8, this)), __runInitializers(_init138, 11, this);
|
|
73179
|
+
__publicField(this, "projects", __runInitializers(_init138, 12, this)), __runInitializers(_init138, 15, this);
|
|
73180
|
+
__publicField(this, "projectConfig", __runInitializers(_init138, 16, this)), __runInitializers(_init138, 19, this);
|
|
73181
|
+
__publicField(this, "agents", __runInitializers(_init138, 20, this)), __runInitializers(_init138, 23, this);
|
|
73182
|
+
__publicField(this, "benchmarks", __runInitializers(_init138, 24, this)), __runInitializers(_init138, 27, this);
|
|
73183
|
+
__publicField(this, "orgService", __runInitializers(_init138, 28, this)), __runInitializers(_init138, 31, this);
|
|
73184
|
+
__publicField(this, "settings", __runInitializers(_init138, 32, this)), __runInitializers(_init138, 35, this);
|
|
73185
|
+
__publicField(this, "errors", __runInitializers(_init138, 36, this)), __runInitializers(_init138, 39, this);
|
|
73186
|
+
__publicField(this, "log", __runInitializers(_init138, 40, this)), __runInitializers(_init138, 43, this);
|
|
73187
|
+
__publicField(this, "routes", __runInitializers(_init138, 44, this)), __runInitializers(_init138, 47, this);
|
|
73008
73188
|
}
|
|
73009
73189
|
setup() {
|
|
73010
73190
|
this.routes = suggestIdRoutes({
|
|
@@ -73028,184 +73208,184 @@ var SuggestIdRoutes = class {
|
|
|
73028
73208
|
});
|
|
73029
73209
|
}
|
|
73030
73210
|
};
|
|
73031
|
-
|
|
73032
|
-
__decorateElement(
|
|
73033
|
-
__decorateElement(
|
|
73034
|
-
__decorateElement(
|
|
73035
|
-
__decorateElement(
|
|
73036
|
-
__decorateElement(
|
|
73037
|
-
__decorateElement(
|
|
73038
|
-
__decorateElement(
|
|
73039
|
-
__decorateElement(
|
|
73040
|
-
__decorateElement(
|
|
73041
|
-
__decorateElement(
|
|
73042
|
-
SuggestIdRoutes = __decorateElement(
|
|
73043
|
-
__runInitializers(
|
|
73211
|
+
_init138 = __decoratorStart(null);
|
|
73212
|
+
__decorateElement(_init138, 5, "access", _access_dec10, SuggestIdRoutes);
|
|
73213
|
+
__decorateElement(_init138, 5, "projects", _projects_dec8, SuggestIdRoutes);
|
|
73214
|
+
__decorateElement(_init138, 5, "projectConfig", _projectConfig_dec15, SuggestIdRoutes);
|
|
73215
|
+
__decorateElement(_init138, 5, "agents", _agents_dec4, SuggestIdRoutes);
|
|
73216
|
+
__decorateElement(_init138, 5, "benchmarks", _benchmarks_dec2, SuggestIdRoutes);
|
|
73217
|
+
__decorateElement(_init138, 5, "orgService", _orgService_dec3, SuggestIdRoutes);
|
|
73218
|
+
__decorateElement(_init138, 5, "settings", _settings_dec10, SuggestIdRoutes);
|
|
73219
|
+
__decorateElement(_init138, 5, "errors", _errors_dec8, SuggestIdRoutes);
|
|
73220
|
+
__decorateElement(_init138, 5, "log", _log_dec5, SuggestIdRoutes);
|
|
73221
|
+
__decorateElement(_init138, 5, "routes", _routes_dec22, SuggestIdRoutes);
|
|
73222
|
+
SuggestIdRoutes = __decorateElement(_init138, 0, "SuggestIdRoutes", _SuggestIdRoutes_decorators, SuggestIdRoutes);
|
|
73223
|
+
__runInitializers(_init138, 1, SuggestIdRoutes);
|
|
73044
73224
|
|
|
73045
73225
|
// src/mechanisms/identity.ts
|
|
73046
73226
|
import { Interface as Interface27 } from "@adelie/core/kernel";
|
|
73047
|
-
var _Users_decorators,
|
|
73227
|
+
var _Users_decorators, _init139;
|
|
73048
73228
|
_Users_decorators = [Interface27()];
|
|
73049
73229
|
var Users = class {
|
|
73050
73230
|
};
|
|
73051
|
-
|
|
73052
|
-
Users = __decorateElement(
|
|
73053
|
-
__runInitializers(
|
|
73054
|
-
var _AuthSessions_decorators,
|
|
73231
|
+
_init139 = __decoratorStart(null);
|
|
73232
|
+
Users = __decorateElement(_init139, 0, "Users", _Users_decorators, Users);
|
|
73233
|
+
__runInitializers(_init139, 1, Users);
|
|
73234
|
+
var _AuthSessions_decorators, _init140;
|
|
73055
73235
|
_AuthSessions_decorators = [Interface27()];
|
|
73056
73236
|
var AuthSessions = class {
|
|
73057
73237
|
};
|
|
73058
|
-
|
|
73059
|
-
AuthSessions = __decorateElement(
|
|
73060
|
-
__runInitializers(
|
|
73061
|
-
var _Auth_decorators,
|
|
73238
|
+
_init140 = __decoratorStart(null);
|
|
73239
|
+
AuthSessions = __decorateElement(_init140, 0, "AuthSessions", _AuthSessions_decorators, AuthSessions);
|
|
73240
|
+
__runInitializers(_init140, 1, AuthSessions);
|
|
73241
|
+
var _Auth_decorators, _init141;
|
|
73062
73242
|
_Auth_decorators = [Interface27()];
|
|
73063
73243
|
var Auth = class {
|
|
73064
73244
|
};
|
|
73065
|
-
|
|
73066
|
-
Auth = __decorateElement(
|
|
73067
|
-
__runInitializers(
|
|
73068
|
-
var _Admin_decorators,
|
|
73245
|
+
_init141 = __decoratorStart(null);
|
|
73246
|
+
Auth = __decorateElement(_init141, 0, "Auth", _Auth_decorators, Auth);
|
|
73247
|
+
__runInitializers(_init141, 1, Auth);
|
|
73248
|
+
var _Admin_decorators, _init142;
|
|
73069
73249
|
_Admin_decorators = [Interface27()];
|
|
73070
73250
|
var Admin = class {
|
|
73071
73251
|
};
|
|
73072
|
-
|
|
73073
|
-
Admin = __decorateElement(
|
|
73074
|
-
__runInitializers(
|
|
73252
|
+
_init142 = __decoratorStart(null);
|
|
73253
|
+
Admin = __decorateElement(_init142, 0, "Admin", _Admin_decorators, Admin);
|
|
73254
|
+
__runInitializers(_init142, 1, Admin);
|
|
73075
73255
|
|
|
73076
73256
|
// src/mechanisms/projects.ts
|
|
73077
73257
|
import { Interface as Interface28 } from "@adelie/core/kernel";
|
|
73078
|
-
var _Projects_decorators,
|
|
73258
|
+
var _Projects_decorators, _init143;
|
|
73079
73259
|
_Projects_decorators = [Interface28()];
|
|
73080
73260
|
var Projects = class {
|
|
73081
73261
|
};
|
|
73082
|
-
|
|
73083
|
-
Projects = __decorateElement(
|
|
73084
|
-
__runInitializers(
|
|
73085
|
-
var _Members_decorators,
|
|
73262
|
+
_init143 = __decoratorStart(null);
|
|
73263
|
+
Projects = __decorateElement(_init143, 0, "Projects", _Projects_decorators, Projects);
|
|
73264
|
+
__runInitializers(_init143, 1, Projects);
|
|
73265
|
+
var _Members_decorators, _init144;
|
|
73086
73266
|
_Members_decorators = [Interface28()];
|
|
73087
73267
|
var Members = class {
|
|
73088
73268
|
};
|
|
73089
|
-
|
|
73090
|
-
Members = __decorateElement(
|
|
73091
|
-
__runInitializers(
|
|
73092
|
-
var _AgentIndex_decorators,
|
|
73269
|
+
_init144 = __decoratorStart(null);
|
|
73270
|
+
Members = __decorateElement(_init144, 0, "Members", _Members_decorators, Members);
|
|
73271
|
+
__runInitializers(_init144, 1, Members);
|
|
73272
|
+
var _AgentIndex_decorators, _init145;
|
|
73093
73273
|
_AgentIndex_decorators = [Interface28()];
|
|
73094
73274
|
var AgentIndex = class {
|
|
73095
73275
|
};
|
|
73096
|
-
|
|
73097
|
-
AgentIndex = __decorateElement(
|
|
73098
|
-
__runInitializers(
|
|
73099
|
-
var _Access_decorators,
|
|
73276
|
+
_init145 = __decoratorStart(null);
|
|
73277
|
+
AgentIndex = __decorateElement(_init145, 0, "AgentIndex", _AgentIndex_decorators, AgentIndex);
|
|
73278
|
+
__runInitializers(_init145, 1, AgentIndex);
|
|
73279
|
+
var _Access_decorators, _init146;
|
|
73100
73280
|
_Access_decorators = [Interface28()];
|
|
73101
73281
|
var Access = class {
|
|
73102
73282
|
};
|
|
73103
|
-
|
|
73104
|
-
Access = __decorateElement(
|
|
73105
|
-
__runInitializers(
|
|
73106
|
-
var _ProjectLifecycle_decorators,
|
|
73283
|
+
_init146 = __decoratorStart(null);
|
|
73284
|
+
Access = __decorateElement(_init146, 0, "Access", _Access_decorators, Access);
|
|
73285
|
+
__runInitializers(_init146, 1, Access);
|
|
73286
|
+
var _ProjectLifecycle_decorators, _init147;
|
|
73107
73287
|
_ProjectLifecycle_decorators = [Interface28()];
|
|
73108
73288
|
var ProjectLifecycle = class {
|
|
73109
73289
|
};
|
|
73110
|
-
|
|
73111
|
-
ProjectLifecycle = __decorateElement(
|
|
73112
|
-
__runInitializers(
|
|
73113
|
-
var _ProjectConfigStore_decorators,
|
|
73290
|
+
_init147 = __decoratorStart(null);
|
|
73291
|
+
ProjectLifecycle = __decorateElement(_init147, 0, "ProjectLifecycle", _ProjectLifecycle_decorators, ProjectLifecycle);
|
|
73292
|
+
__runInitializers(_init147, 1, ProjectLifecycle);
|
|
73293
|
+
var _ProjectConfigStore_decorators, _init148;
|
|
73114
73294
|
_ProjectConfigStore_decorators = [Interface28()];
|
|
73115
73295
|
var ProjectConfigStore = class {
|
|
73116
73296
|
};
|
|
73117
|
-
|
|
73118
|
-
ProjectConfigStore = __decorateElement(
|
|
73119
|
-
__runInitializers(
|
|
73120
|
-
var _ModelPromotions_decorators,
|
|
73297
|
+
_init148 = __decoratorStart(null);
|
|
73298
|
+
ProjectConfigStore = __decorateElement(_init148, 0, "ProjectConfigStore", _ProjectConfigStore_decorators, ProjectConfigStore);
|
|
73299
|
+
__runInitializers(_init148, 1, ProjectConfigStore);
|
|
73300
|
+
var _ModelPromotions_decorators, _init149;
|
|
73121
73301
|
_ModelPromotions_decorators = [Interface28()];
|
|
73122
73302
|
var ModelPromotions = class {
|
|
73123
73303
|
};
|
|
73124
|
-
|
|
73125
|
-
ModelPromotions = __decorateElement(
|
|
73126
|
-
__runInitializers(
|
|
73127
|
-
var _ModelProviderAuthTokens_decorators,
|
|
73304
|
+
_init149 = __decoratorStart(null);
|
|
73305
|
+
ModelPromotions = __decorateElement(_init149, 0, "ModelPromotions", _ModelPromotions_decorators, ModelPromotions);
|
|
73306
|
+
__runInitializers(_init149, 1, ModelPromotions);
|
|
73307
|
+
var _ModelProviderAuthTokens_decorators, _init150;
|
|
73128
73308
|
_ModelProviderAuthTokens_decorators = [Interface28()];
|
|
73129
73309
|
var ModelProviderAuthTokens = class {
|
|
73130
73310
|
};
|
|
73131
|
-
|
|
73132
|
-
ModelProviderAuthTokens = __decorateElement(
|
|
73133
|
-
__runInitializers(
|
|
73134
|
-
var _ModelOAuth_decorators,
|
|
73311
|
+
_init150 = __decoratorStart(null);
|
|
73312
|
+
ModelProviderAuthTokens = __decorateElement(_init150, 0, "ModelProviderAuthTokens", _ModelProviderAuthTokens_decorators, ModelProviderAuthTokens);
|
|
73313
|
+
__runInitializers(_init150, 1, ModelProviderAuthTokens);
|
|
73314
|
+
var _ModelOAuth_decorators, _init151;
|
|
73135
73315
|
_ModelOAuth_decorators = [Interface28()];
|
|
73136
73316
|
var ModelOAuth = class {
|
|
73137
73317
|
};
|
|
73138
|
-
|
|
73139
|
-
ModelOAuth = __decorateElement(
|
|
73140
|
-
__runInitializers(
|
|
73141
|
-
var _ProjectEvents_decorators,
|
|
73318
|
+
_init151 = __decoratorStart(null);
|
|
73319
|
+
ModelOAuth = __decorateElement(_init151, 0, "ModelOAuth", _ModelOAuth_decorators, ModelOAuth);
|
|
73320
|
+
__runInitializers(_init151, 1, ModelOAuth);
|
|
73321
|
+
var _ProjectEvents_decorators, _init152;
|
|
73142
73322
|
_ProjectEvents_decorators = [Interface28()];
|
|
73143
73323
|
var ProjectEvents = class {
|
|
73144
73324
|
};
|
|
73145
|
-
|
|
73146
|
-
ProjectEvents = __decorateElement(
|
|
73147
|
-
__runInitializers(
|
|
73325
|
+
_init152 = __decoratorStart(null);
|
|
73326
|
+
ProjectEvents = __decorateElement(_init152, 0, "ProjectEvents", _ProjectEvents_decorators, ProjectEvents);
|
|
73327
|
+
__runInitializers(_init152, 1, ProjectEvents);
|
|
73148
73328
|
|
|
73149
73329
|
// src/mechanisms/sessions.ts
|
|
73150
73330
|
import { Interface as Interface29 } from "@adelie/core/kernel";
|
|
73151
|
-
var _SessionIndex_decorators,
|
|
73331
|
+
var _SessionIndex_decorators, _init153;
|
|
73152
73332
|
_SessionIndex_decorators = [Interface29()];
|
|
73153
73333
|
var SessionIndex = class {
|
|
73154
73334
|
};
|
|
73155
|
-
|
|
73156
|
-
SessionIndex = __decorateElement(
|
|
73157
|
-
__runInitializers(
|
|
73158
|
-
var _SessionOrigins_decorators,
|
|
73335
|
+
_init153 = __decoratorStart(null);
|
|
73336
|
+
SessionIndex = __decorateElement(_init153, 0, "SessionIndex", _SessionIndex_decorators, SessionIndex);
|
|
73337
|
+
__runInitializers(_init153, 1, SessionIndex);
|
|
73338
|
+
var _SessionOrigins_decorators, _init154;
|
|
73159
73339
|
_SessionOrigins_decorators = [Interface29()];
|
|
73160
73340
|
var SessionOrigins = class {
|
|
73161
73341
|
};
|
|
73162
|
-
|
|
73163
|
-
SessionOrigins = __decorateElement(
|
|
73164
|
-
__runInitializers(
|
|
73165
|
-
var _Schedules_decorators,
|
|
73342
|
+
_init154 = __decoratorStart(null);
|
|
73343
|
+
SessionOrigins = __decorateElement(_init154, 0, "SessionOrigins", _SessionOrigins_decorators, SessionOrigins);
|
|
73344
|
+
__runInitializers(_init154, 1, SessionOrigins);
|
|
73345
|
+
var _Schedules_decorators, _init155;
|
|
73166
73346
|
_Schedules_decorators = [Interface29()];
|
|
73167
73347
|
var Schedules = class {
|
|
73168
73348
|
};
|
|
73169
|
-
|
|
73170
|
-
Schedules = __decorateElement(
|
|
73171
|
-
__runInitializers(
|
|
73172
|
-
var _Scheduling_decorators,
|
|
73349
|
+
_init155 = __decoratorStart(null);
|
|
73350
|
+
Schedules = __decorateElement(_init155, 0, "Schedules", _Schedules_decorators, Schedules);
|
|
73351
|
+
__runInitializers(_init155, 1, Schedules);
|
|
73352
|
+
var _Scheduling_decorators, _init156;
|
|
73173
73353
|
_Scheduling_decorators = [Interface29()];
|
|
73174
73354
|
var Scheduling = class {
|
|
73175
73355
|
};
|
|
73176
|
-
|
|
73177
|
-
Scheduling = __decorateElement(
|
|
73178
|
-
__runInitializers(
|
|
73356
|
+
_init156 = __decoratorStart(null);
|
|
73357
|
+
Scheduling = __decorateElement(_init156, 0, "Scheduling", _Scheduling_decorators, Scheduling);
|
|
73358
|
+
__runInitializers(_init156, 1, Scheduling);
|
|
73179
73359
|
|
|
73180
73360
|
// src/mechanisms/workflows.ts
|
|
73181
73361
|
import { Interface as Interface30 } from "@adelie/core/kernel";
|
|
73182
|
-
var _WorkflowMain_decorators,
|
|
73362
|
+
var _WorkflowMain_decorators, _init157;
|
|
73183
73363
|
_WorkflowMain_decorators = [Interface30()];
|
|
73184
73364
|
var WorkflowMain = class {
|
|
73185
73365
|
};
|
|
73186
|
-
|
|
73187
|
-
WorkflowMain = __decorateElement(
|
|
73188
|
-
__runInitializers(
|
|
73189
|
-
var _WorkflowHost_decorators,
|
|
73366
|
+
_init157 = __decoratorStart(null);
|
|
73367
|
+
WorkflowMain = __decorateElement(_init157, 0, "WorkflowMain", _WorkflowMain_decorators, WorkflowMain);
|
|
73368
|
+
__runInitializers(_init157, 1, WorkflowMain);
|
|
73369
|
+
var _WorkflowHost_decorators, _init158;
|
|
73190
73370
|
_WorkflowHost_decorators = [Interface30()];
|
|
73191
73371
|
var WorkflowHost = class {
|
|
73192
73372
|
};
|
|
73193
|
-
|
|
73194
|
-
WorkflowHost = __decorateElement(
|
|
73195
|
-
__runInitializers(
|
|
73196
|
-
var _Workflows_decorators,
|
|
73373
|
+
_init158 = __decoratorStart(null);
|
|
73374
|
+
WorkflowHost = __decorateElement(_init158, 0, "WorkflowHost", _WorkflowHost_decorators, WorkflowHost);
|
|
73375
|
+
__runInitializers(_init158, 1, WorkflowHost);
|
|
73376
|
+
var _Workflows_decorators, _init159;
|
|
73197
73377
|
_Workflows_decorators = [Interface30()];
|
|
73198
73378
|
var Workflows = class {
|
|
73199
73379
|
};
|
|
73200
|
-
|
|
73201
|
-
Workflows = __decorateElement(
|
|
73202
|
-
__runInitializers(
|
|
73380
|
+
_init159 = __decoratorStart(null);
|
|
73381
|
+
Workflows = __decorateElement(_init159, 0, "Workflows", _Workflows_decorators, Workflows);
|
|
73382
|
+
__runInitializers(_init159, 1, Workflows);
|
|
73203
73383
|
|
|
73204
73384
|
// src/workflows/service.ts
|
|
73205
73385
|
import fs45 from "fs";
|
|
73206
73386
|
import path49 from "path";
|
|
73207
73387
|
import { pathToFileURL as pathToFileURL4 } from "url";
|
|
73208
|
-
import { bootModules, Component as
|
|
73388
|
+
import { bootModules, Component as Component70, parseManifest as parseManifest2, Use as Use72 } from "@adelie/core/kernel";
|
|
73209
73389
|
import { userText as userText7 } from "@adelie/core";
|
|
73210
73390
|
|
|
73211
73391
|
// src/workflows/compile.ts
|
|
@@ -73366,9 +73546,9 @@ function compileWorkflow(ts, dir, revision) {
|
|
|
73366
73546
|
const checkFile = path47.join(dir, CHECK_FILE);
|
|
73367
73547
|
const same2 = (file) => path47.resolve(file) === checkFile;
|
|
73368
73548
|
const host = ts.createCompilerHost(options);
|
|
73369
|
-
const { fileExists, readFile, getSourceFile } = host;
|
|
73549
|
+
const { fileExists, readFile: readFile2, getSourceFile } = host;
|
|
73370
73550
|
host.fileExists = (file) => same2(file) || fileExists.call(host, file);
|
|
73371
|
-
host.readFile = (file) => same2(file) ? CHECK_SOURCE :
|
|
73551
|
+
host.readFile = (file) => same2(file) ? CHECK_SOURCE : readFile2.call(host, file);
|
|
73372
73552
|
host.getSourceFile = (file, languageVersion, ...rest) => same2(file) ? ts.createSourceFile(file, CHECK_SOURCE, languageVersion, true) : getSourceFile.call(host, file, languageVersion, ...rest);
|
|
73373
73553
|
const types = {
|
|
73374
73554
|
resolvedFileName: harnessTypesFile(dir),
|
|
@@ -73732,21 +73912,21 @@ async function loadDefs(manifests, entry) {
|
|
|
73732
73912
|
}
|
|
73733
73913
|
return root;
|
|
73734
73914
|
}
|
|
73735
|
-
var _sessions_dec6, _runner_dec4, _sessionIndex_dec, _agents_dec5, _hmr_dec6, _projects_dec9, _members_dec5, _channels_dec11, _log_dec6, _clock_dec13, _paths_dec17, _WorkflowService_decorators,
|
|
73736
|
-
_WorkflowService_decorators = [
|
|
73915
|
+
var _sessions_dec6, _runner_dec4, _sessionIndex_dec, _agents_dec5, _hmr_dec6, _projects_dec9, _members_dec5, _channels_dec11, _log_dec6, _clock_dec13, _paths_dec17, _WorkflowService_decorators, _init160;
|
|
73916
|
+
_WorkflowService_decorators = [Component70()], _paths_dec17 = [Use72()], _clock_dec13 = [Use72()], _log_dec6 = [Use72()], _channels_dec11 = [Use72()], _members_dec5 = [Use72()], _projects_dec9 = [Use72()], _hmr_dec6 = [Use72()], _agents_dec5 = [Use72()], _sessionIndex_dec = [Use72()], _runner_dec4 = [Use72()], _sessions_dec6 = [Use72()];
|
|
73737
73917
|
var WorkflowService = class {
|
|
73738
73918
|
constructor() {
|
|
73739
|
-
__publicField(this, "paths", __runInitializers(
|
|
73740
|
-
__publicField(this, "clock", __runInitializers(
|
|
73741
|
-
__publicField(this, "log", __runInitializers(
|
|
73742
|
-
__publicField(this, "channels", __runInitializers(
|
|
73743
|
-
__publicField(this, "members", __runInitializers(
|
|
73744
|
-
__publicField(this, "projects", __runInitializers(
|
|
73745
|
-
__publicField(this, "hmr", __runInitializers(
|
|
73746
|
-
__publicField(this, "agents", __runInitializers(
|
|
73747
|
-
__publicField(this, "sessionIndex", __runInitializers(
|
|
73748
|
-
__publicField(this, "runner", __runInitializers(
|
|
73749
|
-
__publicField(this, "sessions", __runInitializers(
|
|
73919
|
+
__publicField(this, "paths", __runInitializers(_init160, 8, this)), __runInitializers(_init160, 11, this);
|
|
73920
|
+
__publicField(this, "clock", __runInitializers(_init160, 12, this)), __runInitializers(_init160, 15, this);
|
|
73921
|
+
__publicField(this, "log", __runInitializers(_init160, 16, this)), __runInitializers(_init160, 19, this);
|
|
73922
|
+
__publicField(this, "channels", __runInitializers(_init160, 20, this)), __runInitializers(_init160, 23, this);
|
|
73923
|
+
__publicField(this, "members", __runInitializers(_init160, 24, this)), __runInitializers(_init160, 27, this);
|
|
73924
|
+
__publicField(this, "projects", __runInitializers(_init160, 28, this)), __runInitializers(_init160, 31, this);
|
|
73925
|
+
__publicField(this, "hmr", __runInitializers(_init160, 32, this)), __runInitializers(_init160, 35, this);
|
|
73926
|
+
__publicField(this, "agents", __runInitializers(_init160, 36, this)), __runInitializers(_init160, 39, this);
|
|
73927
|
+
__publicField(this, "sessionIndex", __runInitializers(_init160, 40, this)), __runInitializers(_init160, 43, this);
|
|
73928
|
+
__publicField(this, "runner", __runInitializers(_init160, 44, this)), __runInitializers(_init160, 47, this);
|
|
73929
|
+
__publicField(this, "sessions", __runInitializers(_init160, 48, this)), __runInitializers(_init160, 51, this);
|
|
73750
73930
|
__publicField(this, "loaded", /* @__PURE__ */ new Map());
|
|
73751
73931
|
__publicField(this, "watchers", /* @__PURE__ */ new Map());
|
|
73752
73932
|
__publicField(this, "pending", /* @__PURE__ */ new Map());
|
|
@@ -74159,20 +74339,20 @@ var WorkflowService = class {
|
|
|
74159
74339
|
);
|
|
74160
74340
|
}
|
|
74161
74341
|
};
|
|
74162
|
-
|
|
74163
|
-
__decorateElement(
|
|
74164
|
-
__decorateElement(
|
|
74165
|
-
__decorateElement(
|
|
74166
|
-
__decorateElement(
|
|
74167
|
-
__decorateElement(
|
|
74168
|
-
__decorateElement(
|
|
74169
|
-
__decorateElement(
|
|
74170
|
-
__decorateElement(
|
|
74171
|
-
__decorateElement(
|
|
74172
|
-
__decorateElement(
|
|
74173
|
-
__decorateElement(
|
|
74174
|
-
WorkflowService = __decorateElement(
|
|
74175
|
-
__runInitializers(
|
|
74342
|
+
_init160 = __decoratorStart(null);
|
|
74343
|
+
__decorateElement(_init160, 5, "paths", _paths_dec17, WorkflowService);
|
|
74344
|
+
__decorateElement(_init160, 5, "clock", _clock_dec13, WorkflowService);
|
|
74345
|
+
__decorateElement(_init160, 5, "log", _log_dec6, WorkflowService);
|
|
74346
|
+
__decorateElement(_init160, 5, "channels", _channels_dec11, WorkflowService);
|
|
74347
|
+
__decorateElement(_init160, 5, "members", _members_dec5, WorkflowService);
|
|
74348
|
+
__decorateElement(_init160, 5, "projects", _projects_dec9, WorkflowService);
|
|
74349
|
+
__decorateElement(_init160, 5, "hmr", _hmr_dec6, WorkflowService);
|
|
74350
|
+
__decorateElement(_init160, 5, "agents", _agents_dec5, WorkflowService);
|
|
74351
|
+
__decorateElement(_init160, 5, "sessionIndex", _sessionIndex_dec, WorkflowService);
|
|
74352
|
+
__decorateElement(_init160, 5, "runner", _runner_dec4, WorkflowService);
|
|
74353
|
+
__decorateElement(_init160, 5, "sessions", _sessions_dec6, WorkflowService);
|
|
74354
|
+
WorkflowService = __decorateElement(_init160, 0, "WorkflowService", _WorkflowService_decorators, WorkflowService);
|
|
74355
|
+
__runInitializers(_init160, 1, WorkflowService);
|
|
74176
74356
|
var WorkflowNotFound = class extends Error {
|
|
74177
74357
|
};
|
|
74178
74358
|
function uiBase(projectId, agentId, workflowId) {
|
|
@@ -74199,8 +74379,8 @@ function hostDecl() {
|
|
|
74199
74379
|
// src/workflows/routes.ts
|
|
74200
74380
|
import fs46 from "fs/promises";
|
|
74201
74381
|
import path50 from "path";
|
|
74202
|
-
import { Hono as
|
|
74203
|
-
import { Bind as
|
|
74382
|
+
import { Hono as Hono47 } from "hono";
|
|
74383
|
+
import { Bind as Bind30, Component as Component71, Use as Use73 } from "@adelie/core/kernel";
|
|
74204
74384
|
var MIME = {
|
|
74205
74385
|
".html": "text/html; charset=utf-8",
|
|
74206
74386
|
".htm": "text/html; charset=utf-8",
|
|
@@ -74328,7 +74508,7 @@ function streamOf(chunks) {
|
|
|
74328
74508
|
});
|
|
74329
74509
|
}
|
|
74330
74510
|
function workflowRoutes(deps) {
|
|
74331
|
-
const app = new
|
|
74511
|
+
const app = new Hono47();
|
|
74332
74512
|
const scope = (c) => {
|
|
74333
74513
|
const projectId = requireValidId(c, "projectId");
|
|
74334
74514
|
const agentId = requireValidId(c, "agentId");
|
|
@@ -74402,8 +74582,8 @@ function workflowRoutes(deps) {
|
|
|
74402
74582
|
});
|
|
74403
74583
|
return app;
|
|
74404
74584
|
}
|
|
74405
|
-
var
|
|
74406
|
-
_WorkflowRoutes_decorators = [
|
|
74585
|
+
var _routes_dec23, _workflows_dec, _access_dec11, _WorkflowRoutes_decorators, _init161;
|
|
74586
|
+
_WorkflowRoutes_decorators = [Component71({
|
|
74407
74587
|
contributes: {
|
|
74408
74588
|
"HttpModule.routes": [
|
|
74409
74589
|
{
|
|
@@ -74414,177 +74594,177 @@ _WorkflowRoutes_decorators = [Component70({
|
|
|
74414
74594
|
}
|
|
74415
74595
|
]
|
|
74416
74596
|
}
|
|
74417
|
-
})], _access_dec11 = [
|
|
74597
|
+
})], _access_dec11 = [Use73()], _workflows_dec = [Use73()], _routes_dec23 = [Bind30("WorkflowsModule.routes")];
|
|
74418
74598
|
var WorkflowRoutes = class {
|
|
74419
74599
|
constructor() {
|
|
74420
|
-
__publicField(this, "access", __runInitializers(
|
|
74421
|
-
__publicField(this, "workflows", __runInitializers(
|
|
74422
|
-
__publicField(this, "routes", __runInitializers(
|
|
74600
|
+
__publicField(this, "access", __runInitializers(_init161, 8, this)), __runInitializers(_init161, 11, this);
|
|
74601
|
+
__publicField(this, "workflows", __runInitializers(_init161, 12, this)), __runInitializers(_init161, 15, this);
|
|
74602
|
+
__publicField(this, "routes", __runInitializers(_init161, 16, this)), __runInitializers(_init161, 19, this);
|
|
74423
74603
|
}
|
|
74424
74604
|
setup() {
|
|
74425
74605
|
this.routes = workflowRoutes({ access: this.access, workflows: this.workflows });
|
|
74426
74606
|
}
|
|
74427
74607
|
};
|
|
74428
|
-
|
|
74429
|
-
__decorateElement(
|
|
74430
|
-
__decorateElement(
|
|
74431
|
-
__decorateElement(
|
|
74432
|
-
WorkflowRoutes = __decorateElement(
|
|
74433
|
-
__runInitializers(
|
|
74608
|
+
_init161 = __decoratorStart(null);
|
|
74609
|
+
__decorateElement(_init161, 5, "access", _access_dec11, WorkflowRoutes);
|
|
74610
|
+
__decorateElement(_init161, 5, "workflows", _workflows_dec, WorkflowRoutes);
|
|
74611
|
+
__decorateElement(_init161, 5, "routes", _routes_dec23, WorkflowRoutes);
|
|
74612
|
+
WorkflowRoutes = __decorateElement(_init161, 0, "WorkflowRoutes", _WorkflowRoutes_decorators, WorkflowRoutes);
|
|
74613
|
+
__runInitializers(_init161, 1, WorkflowRoutes);
|
|
74434
74614
|
|
|
74435
74615
|
// src/mechanisms/observability.ts
|
|
74436
74616
|
import { Interface as Interface31 } from "@adelie/core/kernel";
|
|
74437
|
-
var _ErrorLog_decorators,
|
|
74617
|
+
var _ErrorLog_decorators, _init162;
|
|
74438
74618
|
_ErrorLog_decorators = [Interface31()];
|
|
74439
74619
|
var ErrorLog = class {
|
|
74440
74620
|
};
|
|
74441
|
-
|
|
74442
|
-
ErrorLog = __decorateElement(
|
|
74443
|
-
__runInitializers(
|
|
74444
|
-
var _Errors_decorators,
|
|
74621
|
+
_init162 = __decoratorStart(null);
|
|
74622
|
+
ErrorLog = __decorateElement(_init162, 0, "ErrorLog", _ErrorLog_decorators, ErrorLog);
|
|
74623
|
+
__runInitializers(_init162, 1, ErrorLog);
|
|
74624
|
+
var _Errors_decorators, _init163;
|
|
74445
74625
|
_Errors_decorators = [Interface31()];
|
|
74446
74626
|
var Errors = class {
|
|
74447
74627
|
};
|
|
74448
|
-
|
|
74449
|
-
Errors = __decorateElement(
|
|
74450
|
-
__runInitializers(
|
|
74451
|
-
var _UsageStore_decorators,
|
|
74628
|
+
_init163 = __decoratorStart(null);
|
|
74629
|
+
Errors = __decorateElement(_init163, 0, "Errors", _Errors_decorators, Errors);
|
|
74630
|
+
__runInitializers(_init163, 1, Errors);
|
|
74631
|
+
var _UsageStore_decorators, _init164;
|
|
74452
74632
|
_UsageStore_decorators = [Interface31()];
|
|
74453
74633
|
var UsageStore = class {
|
|
74454
74634
|
};
|
|
74455
|
-
|
|
74456
|
-
UsageStore = __decorateElement(
|
|
74457
|
-
__runInitializers(
|
|
74458
|
-
var _UsageRecording_decorators,
|
|
74635
|
+
_init164 = __decoratorStart(null);
|
|
74636
|
+
UsageStore = __decorateElement(_init164, 0, "UsageStore", _UsageStore_decorators, UsageStore);
|
|
74637
|
+
__runInitializers(_init164, 1, UsageStore);
|
|
74638
|
+
var _UsageRecording_decorators, _init165;
|
|
74459
74639
|
_UsageRecording_decorators = [Interface31()];
|
|
74460
74640
|
var UsageRecording = class {
|
|
74461
74641
|
};
|
|
74462
|
-
|
|
74463
|
-
UsageRecording = __decorateElement(
|
|
74464
|
-
__runInitializers(
|
|
74465
|
-
var _UsageQueries_decorators,
|
|
74642
|
+
_init165 = __decoratorStart(null);
|
|
74643
|
+
UsageRecording = __decorateElement(_init165, 0, "UsageRecording", _UsageRecording_decorators, UsageRecording);
|
|
74644
|
+
__runInitializers(_init165, 1, UsageRecording);
|
|
74645
|
+
var _UsageQueries_decorators, _init166;
|
|
74466
74646
|
_UsageQueries_decorators = [Interface31()];
|
|
74467
74647
|
var UsageQueries = class {
|
|
74468
74648
|
};
|
|
74469
|
-
|
|
74470
|
-
UsageQueries = __decorateElement(
|
|
74471
|
-
__runInitializers(
|
|
74649
|
+
_init166 = __decoratorStart(null);
|
|
74650
|
+
UsageQueries = __decorateElement(_init166, 0, "UsageQueries", _UsageQueries_decorators, UsageQueries);
|
|
74651
|
+
__runInitializers(_init166, 1, UsageQueries);
|
|
74472
74652
|
|
|
74473
74653
|
// src/mechanisms/traces.ts
|
|
74474
74654
|
import { Interface as Interface32 } from "@adelie/core/kernel";
|
|
74475
|
-
var _TraceIndexStore_decorators,
|
|
74655
|
+
var _TraceIndexStore_decorators, _init167;
|
|
74476
74656
|
_TraceIndexStore_decorators = [Interface32()];
|
|
74477
74657
|
var TraceIndexStore = class {
|
|
74478
74658
|
};
|
|
74479
|
-
|
|
74480
|
-
TraceIndexStore = __decorateElement(
|
|
74481
|
-
__runInitializers(
|
|
74482
|
-
var _TraceIndex_decorators,
|
|
74659
|
+
_init167 = __decoratorStart(null);
|
|
74660
|
+
TraceIndexStore = __decorateElement(_init167, 0, "TraceIndexStore", _TraceIndexStore_decorators, TraceIndexStore);
|
|
74661
|
+
__runInitializers(_init167, 1, TraceIndexStore);
|
|
74662
|
+
var _TraceIndex_decorators, _init168;
|
|
74483
74663
|
_TraceIndex_decorators = [Interface32()];
|
|
74484
74664
|
var TraceIndex = class {
|
|
74485
74665
|
};
|
|
74486
|
-
|
|
74487
|
-
TraceIndex = __decorateElement(
|
|
74488
|
-
__runInitializers(
|
|
74489
|
-
var _Traces_decorators,
|
|
74666
|
+
_init168 = __decoratorStart(null);
|
|
74667
|
+
TraceIndex = __decorateElement(_init168, 0, "TraceIndex", _TraceIndex_decorators, TraceIndex);
|
|
74668
|
+
__runInitializers(_init168, 1, TraceIndex);
|
|
74669
|
+
var _Traces_decorators, _init169;
|
|
74490
74670
|
_Traces_decorators = [Interface32()];
|
|
74491
74671
|
var Traces = class {
|
|
74492
74672
|
};
|
|
74493
|
-
|
|
74494
|
-
Traces = __decorateElement(
|
|
74495
|
-
__runInitializers(
|
|
74673
|
+
_init169 = __decoratorStart(null);
|
|
74674
|
+
Traces = __decorateElement(_init169, 0, "Traces", _Traces_decorators, Traces);
|
|
74675
|
+
__runInitializers(_init169, 1, Traces);
|
|
74496
74676
|
|
|
74497
74677
|
// src/mechanisms/agents.ts
|
|
74498
74678
|
import { Interface as Interface33 } from "@adelie/core/kernel";
|
|
74499
|
-
var _AgentConfig_decorators,
|
|
74679
|
+
var _AgentConfig_decorators, _init170;
|
|
74500
74680
|
_AgentConfig_decorators = [Interface33()];
|
|
74501
74681
|
var AgentConfig = class {
|
|
74502
74682
|
};
|
|
74503
|
-
|
|
74504
|
-
AgentConfig = __decorateElement(
|
|
74505
|
-
__runInitializers(
|
|
74506
|
-
var _Snapshots_decorators,
|
|
74683
|
+
_init170 = __decoratorStart(null);
|
|
74684
|
+
AgentConfig = __decorateElement(_init170, 0, "AgentConfig", _AgentConfig_decorators, AgentConfig);
|
|
74685
|
+
__runInitializers(_init170, 1, AgentConfig);
|
|
74686
|
+
var _Snapshots_decorators, _init171;
|
|
74507
74687
|
_Snapshots_decorators = [Interface33()];
|
|
74508
74688
|
var Snapshots = class {
|
|
74509
74689
|
};
|
|
74510
|
-
|
|
74511
|
-
Snapshots = __decorateElement(
|
|
74512
|
-
__runInitializers(
|
|
74513
|
-
var _Memory_decorators,
|
|
74690
|
+
_init171 = __decoratorStart(null);
|
|
74691
|
+
Snapshots = __decorateElement(_init171, 0, "Snapshots", _Snapshots_decorators, Snapshots);
|
|
74692
|
+
__runInitializers(_init171, 1, Snapshots);
|
|
74693
|
+
var _Memory_decorators, _init172;
|
|
74514
74694
|
_Memory_decorators = [Interface33()];
|
|
74515
74695
|
var Memory = class {
|
|
74516
74696
|
};
|
|
74517
|
-
|
|
74518
|
-
Memory = __decorateElement(
|
|
74519
|
-
__runInitializers(
|
|
74520
|
-
var _Benchmarks_decorators,
|
|
74697
|
+
_init172 = __decoratorStart(null);
|
|
74698
|
+
Memory = __decorateElement(_init172, 0, "Memory", _Memory_decorators, Memory);
|
|
74699
|
+
__runInitializers(_init172, 1, Memory);
|
|
74700
|
+
var _Benchmarks_decorators, _init173;
|
|
74521
74701
|
_Benchmarks_decorators = [Interface33()];
|
|
74522
74702
|
var Benchmarks = class {
|
|
74523
74703
|
};
|
|
74524
|
-
|
|
74525
|
-
Benchmarks = __decorateElement(
|
|
74526
|
-
__runInitializers(
|
|
74527
|
-
var _AgentLifecycle_decorators,
|
|
74704
|
+
_init173 = __decoratorStart(null);
|
|
74705
|
+
Benchmarks = __decorateElement(_init173, 0, "Benchmarks", _Benchmarks_decorators, Benchmarks);
|
|
74706
|
+
__runInitializers(_init173, 1, Benchmarks);
|
|
74707
|
+
var _AgentLifecycle_decorators, _init174;
|
|
74528
74708
|
_AgentLifecycle_decorators = [Interface33()];
|
|
74529
74709
|
var AgentLifecycle = class {
|
|
74530
74710
|
};
|
|
74531
|
-
|
|
74532
|
-
AgentLifecycle = __decorateElement(
|
|
74533
|
-
__runInitializers(
|
|
74711
|
+
_init174 = __decoratorStart(null);
|
|
74712
|
+
AgentLifecycle = __decorateElement(_init174, 0, "AgentLifecycle", _AgentLifecycle_decorators, AgentLifecycle);
|
|
74713
|
+
__runInitializers(_init174, 1, AgentLifecycle);
|
|
74534
74714
|
|
|
74535
74715
|
// src/mechanisms/vault.ts
|
|
74536
74716
|
import { Interface as Interface34 } from "@adelie/core/kernel";
|
|
74537
|
-
var _UserVault_decorators,
|
|
74717
|
+
var _UserVault_decorators, _init175;
|
|
74538
74718
|
_UserVault_decorators = [Interface34()];
|
|
74539
74719
|
var UserVault = class {
|
|
74540
74720
|
};
|
|
74541
|
-
|
|
74542
|
-
UserVault = __decorateElement(
|
|
74543
|
-
__runInitializers(
|
|
74721
|
+
_init175 = __decoratorStart(null);
|
|
74722
|
+
UserVault = __decorateElement(_init175, 0, "UserVault", _UserVault_decorators, UserVault);
|
|
74723
|
+
__runInitializers(_init175, 1, UserVault);
|
|
74544
74724
|
|
|
74545
74725
|
// src/mechanisms/workspace.ts
|
|
74546
74726
|
import { Interface as Interface35 } from "@adelie/core/kernel";
|
|
74547
|
-
var _WorkspaceFiles_decorators,
|
|
74727
|
+
var _WorkspaceFiles_decorators, _init176;
|
|
74548
74728
|
_WorkspaceFiles_decorators = [Interface35()];
|
|
74549
74729
|
var WorkspaceFiles = class {
|
|
74550
74730
|
};
|
|
74551
|
-
|
|
74552
|
-
WorkspaceFiles = __decorateElement(
|
|
74553
|
-
__runInitializers(
|
|
74554
|
-
var _FileReveal_decorators,
|
|
74731
|
+
_init176 = __decoratorStart(null);
|
|
74732
|
+
WorkspaceFiles = __decorateElement(_init176, 0, "WorkspaceFiles", _WorkspaceFiles_decorators, WorkspaceFiles);
|
|
74733
|
+
__runInitializers(_init176, 1, WorkspaceFiles);
|
|
74734
|
+
var _FileReveal_decorators, _init177;
|
|
74555
74735
|
_FileReveal_decorators = [Interface35()];
|
|
74556
74736
|
var FileReveal = class {
|
|
74557
74737
|
};
|
|
74558
|
-
|
|
74559
|
-
FileReveal = __decorateElement(
|
|
74560
|
-
__runInitializers(
|
|
74738
|
+
_init177 = __decoratorStart(null);
|
|
74739
|
+
FileReveal = __decorateElement(_init177, 0, "FileReveal", _FileReveal_decorators, FileReveal);
|
|
74740
|
+
__runInitializers(_init177, 1, FileReveal);
|
|
74561
74741
|
|
|
74562
74742
|
// src/mechanisms/settings.ts
|
|
74563
74743
|
import { Interface as Interface36 } from "@adelie/core/kernel";
|
|
74564
|
-
var _Settings_decorators,
|
|
74744
|
+
var _Settings_decorators, _init178;
|
|
74565
74745
|
_Settings_decorators = [Interface36()];
|
|
74566
74746
|
var Settings = class {
|
|
74567
74747
|
};
|
|
74568
|
-
|
|
74569
|
-
Settings = __decorateElement(
|
|
74570
|
-
__runInitializers(
|
|
74571
|
-
var _UiPrefsStore_decorators,
|
|
74748
|
+
_init178 = __decoratorStart(null);
|
|
74749
|
+
Settings = __decorateElement(_init178, 0, "Settings", _Settings_decorators, Settings);
|
|
74750
|
+
__runInitializers(_init178, 1, Settings);
|
|
74751
|
+
var _UiPrefsStore_decorators, _init179;
|
|
74572
74752
|
_UiPrefsStore_decorators = [Interface36()];
|
|
74573
74753
|
var UiPrefsStore = class {
|
|
74574
74754
|
};
|
|
74575
|
-
|
|
74576
|
-
UiPrefsStore = __decorateElement(
|
|
74577
|
-
__runInitializers(
|
|
74755
|
+
_init179 = __decoratorStart(null);
|
|
74756
|
+
UiPrefsStore = __decorateElement(_init179, 0, "UiPrefsStore", _UiPrefsStore_decorators, UiPrefsStore);
|
|
74757
|
+
__runInitializers(_init179, 1, UiPrefsStore);
|
|
74578
74758
|
|
|
74579
74759
|
// src/mechanisms/messaging.ts
|
|
74580
74760
|
import { Interface as Interface37 } from "@adelie/core/kernel";
|
|
74581
|
-
var _MessagingBindings_decorators,
|
|
74761
|
+
var _MessagingBindings_decorators, _init180;
|
|
74582
74762
|
_MessagingBindings_decorators = [Interface37()];
|
|
74583
74763
|
var MessagingBindings = class {
|
|
74584
74764
|
};
|
|
74585
|
-
|
|
74586
|
-
MessagingBindings = __decorateElement(
|
|
74587
|
-
__runInitializers(
|
|
74765
|
+
_init180 = __decoratorStart(null);
|
|
74766
|
+
MessagingBindings = __decorateElement(_init180, 0, "MessagingBindings", _MessagingBindings_decorators, MessagingBindings);
|
|
74767
|
+
__runInitializers(_init180, 1, MessagingBindings);
|
|
74588
74768
|
|
|
74589
74769
|
// src/mechanisms/organization.ts
|
|
74590
74770
|
import { Interface as Interface38 } from "@adelie/core/kernel";
|
|
@@ -74592,11 +74772,11 @@ var OrgCache = class extends Interface38() {
|
|
|
74592
74772
|
};
|
|
74593
74773
|
|
|
74594
74774
|
// src/http/routes/preview.ts
|
|
74595
|
-
import { Hono as
|
|
74596
|
-
import { Interface as Interface39, Bind as
|
|
74775
|
+
import { Hono as Hono48 } from "hono";
|
|
74776
|
+
import { Interface as Interface39, Bind as Bind31, Module as Module18, Provide as Provide18, Use as Use74 } from "@adelie/core/kernel";
|
|
74597
74777
|
var DIRECTORY_INDEX = "index.html";
|
|
74598
74778
|
function previewRoutes(deps) {
|
|
74599
|
-
const app = new
|
|
74779
|
+
const app = new Hono48();
|
|
74600
74780
|
app.get("/:token/*", async (c) => {
|
|
74601
74781
|
const token = c.req.param("token");
|
|
74602
74782
|
const payload = token ? deps.previewTokens.verify(token) : null;
|
|
@@ -74640,7 +74820,7 @@ function previewRoutes(deps) {
|
|
|
74640
74820
|
}
|
|
74641
74821
|
var PreviewTokens = class extends Interface39() {
|
|
74642
74822
|
};
|
|
74643
|
-
var _previewRoutes_dec, _previewTokens_dec2, _sessionsRepo_dec5, _workspaceFiles_dec4, _PreviewModule_decorators,
|
|
74823
|
+
var _previewRoutes_dec, _previewTokens_dec2, _sessionsRepo_dec5, _workspaceFiles_dec4, _PreviewModule_decorators, _init181;
|
|
74644
74824
|
_PreviewModule_decorators = [Module18({
|
|
74645
74825
|
contributes: {
|
|
74646
74826
|
"HttpModule.routes": [
|
|
@@ -74652,13 +74832,13 @@ _PreviewModule_decorators = [Module18({
|
|
|
74652
74832
|
}
|
|
74653
74833
|
]
|
|
74654
74834
|
}
|
|
74655
|
-
})], _workspaceFiles_dec4 = [
|
|
74835
|
+
})], _workspaceFiles_dec4 = [Use74()], _sessionsRepo_dec5 = [Use74()], _previewTokens_dec2 = [Provide18()], _previewRoutes_dec = [Bind31("workspace.preview")];
|
|
74656
74836
|
var PreviewModule = class {
|
|
74657
74837
|
constructor() {
|
|
74658
|
-
__publicField(this, "workspaceFiles", __runInitializers(
|
|
74659
|
-
__publicField(this, "sessionsRepo", __runInitializers(
|
|
74660
|
-
__publicField(this, "previewTokens", __runInitializers(
|
|
74661
|
-
__publicField(this, "previewRoutes", __runInitializers(
|
|
74838
|
+
__publicField(this, "workspaceFiles", __runInitializers(_init181, 8, this)), __runInitializers(_init181, 11, this);
|
|
74839
|
+
__publicField(this, "sessionsRepo", __runInitializers(_init181, 12, this)), __runInitializers(_init181, 15, this);
|
|
74840
|
+
__publicField(this, "previewTokens", __runInitializers(_init181, 16, this)), __runInitializers(_init181, 19, this);
|
|
74841
|
+
__publicField(this, "previewRoutes", __runInitializers(_init181, 20, this)), __runInitializers(_init181, 23, this);
|
|
74662
74842
|
}
|
|
74663
74843
|
setup() {
|
|
74664
74844
|
const previewTokens = createPreviewTokenSigner();
|
|
@@ -74670,17 +74850,17 @@ var PreviewModule = class {
|
|
|
74670
74850
|
});
|
|
74671
74851
|
}
|
|
74672
74852
|
};
|
|
74673
|
-
|
|
74674
|
-
__decorateElement(
|
|
74675
|
-
__decorateElement(
|
|
74676
|
-
__decorateElement(
|
|
74677
|
-
__decorateElement(
|
|
74678
|
-
PreviewModule = __decorateElement(
|
|
74679
|
-
__runInitializers(
|
|
74853
|
+
_init181 = __decoratorStart(null);
|
|
74854
|
+
__decorateElement(_init181, 5, "workspaceFiles", _workspaceFiles_dec4, PreviewModule);
|
|
74855
|
+
__decorateElement(_init181, 5, "sessionsRepo", _sessionsRepo_dec5, PreviewModule);
|
|
74856
|
+
__decorateElement(_init181, 5, "previewTokens", _previewTokens_dec2, PreviewModule);
|
|
74857
|
+
__decorateElement(_init181, 5, "previewRoutes", _previewRoutes_dec, PreviewModule);
|
|
74858
|
+
PreviewModule = __decorateElement(_init181, 0, "PreviewModule", _PreviewModule_decorators, PreviewModule);
|
|
74859
|
+
__runInitializers(_init181, 1, PreviewModule);
|
|
74680
74860
|
|
|
74681
74861
|
// src/http/app.ts
|
|
74682
|
-
import { Interface as Interface40, Module as Module19, Provide as Provide19, Use as
|
|
74683
|
-
import { Hono as
|
|
74862
|
+
import { Interface as Interface40, Module as Module19, Provide as Provide19, Use as Use75 } from "@adelie/core/kernel";
|
|
74863
|
+
import { Hono as Hono49 } from "hono";
|
|
74684
74864
|
import { bodyLimit } from "hono/body-limit";
|
|
74685
74865
|
|
|
74686
74866
|
// src/hmr/hono-seam.ts
|
|
@@ -74697,29 +74877,29 @@ function seamHttp(app) {
|
|
|
74697
74877
|
}
|
|
74698
74878
|
|
|
74699
74879
|
// src/http/app.ts
|
|
74700
|
-
var _Http_decorators,
|
|
74880
|
+
var _Http_decorators, _init182;
|
|
74701
74881
|
_Http_decorators = [Interface40()];
|
|
74702
74882
|
var Http = class {
|
|
74703
74883
|
};
|
|
74704
|
-
|
|
74705
|
-
Http = __decorateElement(
|
|
74706
|
-
__runInitializers(
|
|
74707
|
-
var _http_dec3, _access_dec12, _settings_dec11, _errors_dec9, _auth_dec10, _log_dec7,
|
|
74708
|
-
_HttpModule_decorators = [Module19()],
|
|
74884
|
+
_init182 = __decoratorStart(null);
|
|
74885
|
+
Http = __decorateElement(_init182, 0, "Http", _Http_decorators, Http);
|
|
74886
|
+
__runInitializers(_init182, 1, Http);
|
|
74887
|
+
var _http_dec3, _access_dec12, _settings_dec11, _errors_dec9, _auth_dec10, _log_dec7, _config_dec21, _HttpModule_decorators, _init183;
|
|
74888
|
+
_HttpModule_decorators = [Module19()], _config_dec21 = [Use75()], _log_dec7 = [Use75()], _auth_dec10 = [Use75()], _errors_dec9 = [Use75()], _settings_dec11 = [Use75()], _access_dec12 = [Use75()], _http_dec3 = [Provide19()];
|
|
74709
74889
|
var HttpModule = class {
|
|
74710
74890
|
constructor() {
|
|
74711
|
-
__publicField(this, "config", __runInitializers(
|
|
74712
|
-
__publicField(this, "log", __runInitializers(
|
|
74713
|
-
__publicField(this, "auth", __runInitializers(
|
|
74714
|
-
__publicField(this, "errors", __runInitializers(
|
|
74715
|
-
__publicField(this, "settings", __runInitializers(
|
|
74716
|
-
__publicField(this, "access", __runInitializers(
|
|
74717
|
-
__publicField(this, "http", __runInitializers(
|
|
74891
|
+
__publicField(this, "config", __runInitializers(_init183, 8, this)), __runInitializers(_init183, 11, this);
|
|
74892
|
+
__publicField(this, "log", __runInitializers(_init183, 12, this)), __runInitializers(_init183, 15, this);
|
|
74893
|
+
__publicField(this, "auth", __runInitializers(_init183, 16, this)), __runInitializers(_init183, 19, this);
|
|
74894
|
+
__publicField(this, "errors", __runInitializers(_init183, 20, this)), __runInitializers(_init183, 23, this);
|
|
74895
|
+
__publicField(this, "settings", __runInitializers(_init183, 24, this)), __runInitializers(_init183, 27, this);
|
|
74896
|
+
__publicField(this, "access", __runInitializers(_init183, 28, this)), __runInitializers(_init183, 31, this);
|
|
74897
|
+
__publicField(this, "http", __runInitializers(_init183, 32, this)), __runInitializers(_init183, 35, this);
|
|
74718
74898
|
}
|
|
74719
74899
|
setup({ contributions }) {
|
|
74720
74900
|
const errors = this.errors;
|
|
74721
74901
|
const access = this.access;
|
|
74722
|
-
const app = new
|
|
74902
|
+
const app = new Hono49();
|
|
74723
74903
|
app.onError((err, c) => {
|
|
74724
74904
|
const projectId = attributedProjectId(c, { access });
|
|
74725
74905
|
errors.record({
|
|
@@ -74775,33 +74955,33 @@ var HttpModule = class {
|
|
|
74775
74955
|
this.http = { fetch: (request) => Promise.resolve(app.fetch(request)) };
|
|
74776
74956
|
}
|
|
74777
74957
|
};
|
|
74778
|
-
|
|
74779
|
-
__decorateElement(
|
|
74780
|
-
__decorateElement(
|
|
74781
|
-
__decorateElement(
|
|
74782
|
-
__decorateElement(
|
|
74783
|
-
__decorateElement(
|
|
74784
|
-
__decorateElement(
|
|
74785
|
-
__decorateElement(
|
|
74786
|
-
HttpModule = __decorateElement(
|
|
74787
|
-
__runInitializers(
|
|
74958
|
+
_init183 = __decoratorStart(null);
|
|
74959
|
+
__decorateElement(_init183, 5, "config", _config_dec21, HttpModule);
|
|
74960
|
+
__decorateElement(_init183, 5, "log", _log_dec7, HttpModule);
|
|
74961
|
+
__decorateElement(_init183, 5, "auth", _auth_dec10, HttpModule);
|
|
74962
|
+
__decorateElement(_init183, 5, "errors", _errors_dec9, HttpModule);
|
|
74963
|
+
__decorateElement(_init183, 5, "settings", _settings_dec11, HttpModule);
|
|
74964
|
+
__decorateElement(_init183, 5, "access", _access_dec12, HttpModule);
|
|
74965
|
+
__decorateElement(_init183, 5, "http", _http_dec3, HttpModule);
|
|
74966
|
+
HttpModule = __decorateElement(_init183, 0, "HttpModule", _HttpModule_decorators, HttpModule);
|
|
74967
|
+
__runInitializers(_init183, 1, HttpModule);
|
|
74788
74968
|
|
|
74789
74969
|
// src/http/routes/contributions.ts
|
|
74790
|
-
import { Hono as
|
|
74791
|
-
import { Interface as Interface41, Bind as
|
|
74970
|
+
import { Hono as Hono50 } from "hono";
|
|
74971
|
+
import { Interface as Interface41, Bind as Bind32, Module as Module20, Provide as Provide20 } from "@adelie/core/kernel";
|
|
74792
74972
|
function contributionsRoutes(deps) {
|
|
74793
|
-
const routes = new
|
|
74973
|
+
const routes = new Hono50();
|
|
74794
74974
|
routes.get("/", (c) => c.json(deps.web.contributions()));
|
|
74795
74975
|
return routes;
|
|
74796
74976
|
}
|
|
74797
|
-
var _WebShell_decorators,
|
|
74977
|
+
var _WebShell_decorators, _init184;
|
|
74798
74978
|
_WebShell_decorators = [Interface41()];
|
|
74799
74979
|
var WebShell = class {
|
|
74800
74980
|
};
|
|
74801
|
-
|
|
74802
|
-
WebShell = __decorateElement(
|
|
74803
|
-
__runInitializers(
|
|
74804
|
-
var _contributionsRoutes_dec, _web_dec, _WebModule_decorators,
|
|
74981
|
+
_init184 = __decoratorStart(null);
|
|
74982
|
+
WebShell = __decorateElement(_init184, 0, "WebShell", _WebShell_decorators, WebShell);
|
|
74983
|
+
__runInitializers(_init184, 1, WebShell);
|
|
74984
|
+
var _contributionsRoutes_dec, _web_dec, _WebModule_decorators, _init185;
|
|
74805
74985
|
_WebModule_decorators = [Module20({
|
|
74806
74986
|
contributes: {
|
|
74807
74987
|
"HttpModule.routes": [
|
|
@@ -74813,11 +74993,11 @@ _WebModule_decorators = [Module20({
|
|
|
74813
74993
|
}
|
|
74814
74994
|
]
|
|
74815
74995
|
}
|
|
74816
|
-
})], _web_dec = [Provide20()], _contributionsRoutes_dec = [
|
|
74996
|
+
})], _web_dec = [Provide20()], _contributionsRoutes_dec = [Bind32("web.contributions")];
|
|
74817
74997
|
var WebModule = class {
|
|
74818
74998
|
constructor() {
|
|
74819
|
-
__publicField(this, "web", __runInitializers(
|
|
74820
|
-
__publicField(this, "contributionsRoutes", __runInitializers(
|
|
74999
|
+
__publicField(this, "web", __runInitializers(_init185, 8, this)), __runInitializers(_init185, 11, this);
|
|
75000
|
+
__publicField(this, "contributionsRoutes", __runInitializers(_init185, 12, this)), __runInitializers(_init185, 15, this);
|
|
74821
75001
|
}
|
|
74822
75002
|
setup({ contributions }) {
|
|
74823
75003
|
const collect = (slot) => (contributions[slot] ?? []).map(
|
|
@@ -74835,14 +75015,14 @@ var WebModule = class {
|
|
|
74835
75015
|
this.contributionsRoutes = contributionsRoutes({ web });
|
|
74836
75016
|
}
|
|
74837
75017
|
};
|
|
74838
|
-
|
|
74839
|
-
__decorateElement(
|
|
74840
|
-
__decorateElement(
|
|
74841
|
-
WebModule = __decorateElement(
|
|
74842
|
-
__runInitializers(
|
|
75018
|
+
_init185 = __decoratorStart(null);
|
|
75019
|
+
__decorateElement(_init185, 5, "web", _web_dec, WebModule);
|
|
75020
|
+
__decorateElement(_init185, 5, "contributionsRoutes", _contributionsRoutes_dec, WebModule);
|
|
75021
|
+
WebModule = __decorateElement(_init185, 0, "WebModule", _WebModule_decorators, WebModule);
|
|
75022
|
+
__runInitializers(_init185, 1, WebModule);
|
|
74843
75023
|
|
|
74844
75024
|
// src/builtin-browser/module.ts
|
|
74845
|
-
import { Bind as
|
|
75025
|
+
import { Bind as Bind33, Component as Component72, Interface as Interface42, Module as Module21, Use as Use76 } from "@adelie/core/kernel";
|
|
74846
75026
|
|
|
74847
75027
|
// src/services/desktop-update-port.ts
|
|
74848
75028
|
import { randomUUID as randomUUID8 } from "crypto";
|
|
@@ -74975,7 +75155,7 @@ function wireShellUpdatePort(desktop, port) {
|
|
|
74975
75155
|
}
|
|
74976
75156
|
|
|
74977
75157
|
// src/builtin-browser/routes.ts
|
|
74978
|
-
import { Hono as
|
|
75158
|
+
import { Hono as Hono51 } from "hono";
|
|
74979
75159
|
|
|
74980
75160
|
// src/builtin-browser/service.ts
|
|
74981
75161
|
import os10 from "os";
|
|
@@ -78941,7 +79121,7 @@ function sessionIdOf(body) {
|
|
|
78941
79121
|
}
|
|
78942
79122
|
var STORAGES = /* @__PURE__ */ new Set(["cookies", "cache", "storage"]);
|
|
78943
79123
|
function builtinBrowserRoutes(browser) {
|
|
78944
|
-
const app = new
|
|
79124
|
+
const app = new Hono51();
|
|
78945
79125
|
app.onError((err, c) => {
|
|
78946
79126
|
if (err instanceof BrowserUnavailableError) {
|
|
78947
79127
|
return c.json({ error: { code: err.code, message: err.message, reason: err.reason } }, 503);
|
|
@@ -79164,25 +79344,25 @@ function builtinBrowserRoutes(browser) {
|
|
|
79164
79344
|
}
|
|
79165
79345
|
|
|
79166
79346
|
// src/builtin-browser/module.ts
|
|
79167
|
-
var _BuiltinBrowserPort_decorators,
|
|
79347
|
+
var _BuiltinBrowserPort_decorators, _init186;
|
|
79168
79348
|
_BuiltinBrowserPort_decorators = [Interface42()];
|
|
79169
79349
|
var BuiltinBrowserPort = class {
|
|
79170
79350
|
};
|
|
79171
|
-
|
|
79172
|
-
BuiltinBrowserPort = __decorateElement(
|
|
79173
|
-
__runInitializers(
|
|
79174
|
-
var _ProcessShellPort_decorators,
|
|
79175
|
-
_ProcessShellPort_decorators = [
|
|
79351
|
+
_init186 = __decoratorStart(null);
|
|
79352
|
+
BuiltinBrowserPort = __decorateElement(_init186, 0, "BuiltinBrowserPort", _BuiltinBrowserPort_decorators, BuiltinBrowserPort);
|
|
79353
|
+
__runInitializers(_init186, 1, BuiltinBrowserPort);
|
|
79354
|
+
var _ProcessShellPort_decorators, _init187;
|
|
79355
|
+
_ProcessShellPort_decorators = [Component72()];
|
|
79176
79356
|
var ProcessShellPort = class {
|
|
79177
79357
|
current() {
|
|
79178
79358
|
return shellPortOf(process);
|
|
79179
79359
|
}
|
|
79180
79360
|
};
|
|
79181
|
-
|
|
79182
|
-
ProcessShellPort = __decorateElement(
|
|
79183
|
-
__runInitializers(
|
|
79184
|
-
var
|
|
79185
|
-
_BuiltinBrowserRoutes_decorators = [
|
|
79361
|
+
_init187 = __decoratorStart(null);
|
|
79362
|
+
ProcessShellPort = __decorateElement(_init187, 0, "ProcessShellPort", _ProcessShellPort_decorators, ProcessShellPort);
|
|
79363
|
+
__runInitializers(_init187, 1, ProcessShellPort);
|
|
79364
|
+
var _routes_dec24, _log_dec8, _paths_dec18, _users_dec4, _channels_dec12, _desktop_dec13, _port_dec, _BuiltinBrowserRoutes_decorators, _init188;
|
|
79365
|
+
_BuiltinBrowserRoutes_decorators = [Component72({
|
|
79186
79366
|
contributes: {
|
|
79187
79367
|
"HttpModule.routes": [
|
|
79188
79368
|
{
|
|
@@ -79193,16 +79373,16 @@ _BuiltinBrowserRoutes_decorators = [Component71({
|
|
|
79193
79373
|
}
|
|
79194
79374
|
]
|
|
79195
79375
|
}
|
|
79196
|
-
})], _port_dec = [
|
|
79376
|
+
})], _port_dec = [Use76()], _desktop_dec13 = [Use76()], _channels_dec12 = [Use76()], _users_dec4 = [Use76()], _paths_dec18 = [Use76()], _log_dec8 = [Use76()], _routes_dec24 = [Bind33("BuiltinBrowserRoutes.routes")];
|
|
79197
79377
|
var BuiltinBrowserRoutes = class {
|
|
79198
79378
|
constructor() {
|
|
79199
|
-
__publicField(this, "port", __runInitializers(
|
|
79200
|
-
__publicField(this, "desktop", __runInitializers(
|
|
79201
|
-
__publicField(this, "channels", __runInitializers(
|
|
79202
|
-
__publicField(this, "users", __runInitializers(
|
|
79203
|
-
__publicField(this, "paths", __runInitializers(
|
|
79204
|
-
__publicField(this, "log", __runInitializers(
|
|
79205
|
-
__publicField(this, "routes", __runInitializers(
|
|
79379
|
+
__publicField(this, "port", __runInitializers(_init188, 8, this)), __runInitializers(_init188, 11, this);
|
|
79380
|
+
__publicField(this, "desktop", __runInitializers(_init188, 12, this)), __runInitializers(_init188, 15, this);
|
|
79381
|
+
__publicField(this, "channels", __runInitializers(_init188, 16, this)), __runInitializers(_init188, 19, this);
|
|
79382
|
+
__publicField(this, "users", __runInitializers(_init188, 20, this)), __runInitializers(_init188, 23, this);
|
|
79383
|
+
__publicField(this, "paths", __runInitializers(_init188, 24, this)), __runInitializers(_init188, 27, this);
|
|
79384
|
+
__publicField(this, "log", __runInitializers(_init188, 28, this)), __runInitializers(_init188, 31, this);
|
|
79385
|
+
__publicField(this, "routes", __runInitializers(_init188, 32, this)), __runInitializers(_init188, 35, this);
|
|
79206
79386
|
}
|
|
79207
79387
|
setup({ effect }) {
|
|
79208
79388
|
const users = this.users;
|
|
@@ -79230,32 +79410,32 @@ var BuiltinBrowserRoutes = class {
|
|
|
79230
79410
|
effect(() => browser.dispose());
|
|
79231
79411
|
}
|
|
79232
79412
|
};
|
|
79233
|
-
|
|
79234
|
-
__decorateElement(
|
|
79235
|
-
__decorateElement(
|
|
79236
|
-
__decorateElement(
|
|
79237
|
-
__decorateElement(
|
|
79238
|
-
__decorateElement(
|
|
79239
|
-
__decorateElement(
|
|
79240
|
-
__decorateElement(
|
|
79241
|
-
BuiltinBrowserRoutes = __decorateElement(
|
|
79242
|
-
__runInitializers(
|
|
79243
|
-
var _BuiltinBrowserModule_decorators,
|
|
79413
|
+
_init188 = __decoratorStart(null);
|
|
79414
|
+
__decorateElement(_init188, 5, "port", _port_dec, BuiltinBrowserRoutes);
|
|
79415
|
+
__decorateElement(_init188, 5, "desktop", _desktop_dec13, BuiltinBrowserRoutes);
|
|
79416
|
+
__decorateElement(_init188, 5, "channels", _channels_dec12, BuiltinBrowserRoutes);
|
|
79417
|
+
__decorateElement(_init188, 5, "users", _users_dec4, BuiltinBrowserRoutes);
|
|
79418
|
+
__decorateElement(_init188, 5, "paths", _paths_dec18, BuiltinBrowserRoutes);
|
|
79419
|
+
__decorateElement(_init188, 5, "log", _log_dec8, BuiltinBrowserRoutes);
|
|
79420
|
+
__decorateElement(_init188, 5, "routes", _routes_dec24, BuiltinBrowserRoutes);
|
|
79421
|
+
BuiltinBrowserRoutes = __decorateElement(_init188, 0, "BuiltinBrowserRoutes", _BuiltinBrowserRoutes_decorators, BuiltinBrowserRoutes);
|
|
79422
|
+
__runInitializers(_init188, 1, BuiltinBrowserRoutes);
|
|
79423
|
+
var _BuiltinBrowserModule_decorators, _init189;
|
|
79244
79424
|
_BuiltinBrowserModule_decorators = [Module21({
|
|
79245
79425
|
children: [ProcessShellPort, BuiltinBrowserRoutes],
|
|
79246
79426
|
exports: []
|
|
79247
79427
|
})];
|
|
79248
79428
|
var BuiltinBrowserModule = class {
|
|
79249
79429
|
};
|
|
79250
|
-
|
|
79251
|
-
BuiltinBrowserModule = __decorateElement(
|
|
79252
|
-
__runInitializers(
|
|
79430
|
+
_init189 = __decoratorStart(null);
|
|
79431
|
+
BuiltinBrowserModule = __decorateElement(_init189, 0, "BuiltinBrowserModule", _BuiltinBrowserModule_decorators, BuiltinBrowserModule);
|
|
79432
|
+
__runInitializers(_init189, 1, BuiltinBrowserModule);
|
|
79253
79433
|
|
|
79254
79434
|
// src/amsp/module.ts
|
|
79255
|
-
import { Bind as
|
|
79435
|
+
import { Bind as Bind34, Component as Component74, Module as Module22, Use as Use78 } from "@adelie/core/kernel";
|
|
79256
79436
|
|
|
79257
79437
|
// src/db/repos/agent-api.ts
|
|
79258
|
-
import { Component as
|
|
79438
|
+
import { Component as Component73, Use as Use77 } from "@adelie/core/kernel";
|
|
79259
79439
|
function settingsOf(r) {
|
|
79260
79440
|
return {
|
|
79261
79441
|
projectId: r.project_id,
|
|
@@ -79278,11 +79458,11 @@ function keyOf(r) {
|
|
|
79278
79458
|
lastUsedAt: r.last_used_at ?? null
|
|
79279
79459
|
};
|
|
79280
79460
|
}
|
|
79281
|
-
var _db_dec18, _AgentApiRepo_decorators,
|
|
79282
|
-
_AgentApiRepo_decorators = [
|
|
79461
|
+
var _db_dec18, _AgentApiRepo_decorators, _init190;
|
|
79462
|
+
_AgentApiRepo_decorators = [Component73()], _db_dec18 = [Use77()];
|
|
79283
79463
|
var AgentApiRepo = class {
|
|
79284
79464
|
constructor() {
|
|
79285
|
-
__publicField(this, "db", __runInitializers(
|
|
79465
|
+
__publicField(this, "db", __runInitializers(_init190, 8, this)), __runInitializers(_init190, 11, this);
|
|
79286
79466
|
}
|
|
79287
79467
|
get(projectId, agentId) {
|
|
79288
79468
|
const r = this.db.prepare("SELECT * FROM agent_api WHERE project_id = ? AND agent_id = ?").get(projectId, agentId);
|
|
@@ -79362,23 +79542,23 @@ var AgentApiRepo = class {
|
|
|
79362
79542
|
this.db.prepare("DELETE FROM agent_api WHERE project_id = ?").run(projectId);
|
|
79363
79543
|
}
|
|
79364
79544
|
};
|
|
79365
|
-
|
|
79366
|
-
__decorateElement(
|
|
79367
|
-
AgentApiRepo = __decorateElement(
|
|
79368
|
-
__runInitializers(
|
|
79545
|
+
_init190 = __decoratorStart(null);
|
|
79546
|
+
__decorateElement(_init190, 5, "db", _db_dec18, AgentApiRepo);
|
|
79547
|
+
AgentApiRepo = __decorateElement(_init190, 0, "AgentApiRepo", _AgentApiRepo_decorators, AgentApiRepo);
|
|
79548
|
+
__runInitializers(_init190, 1, AgentApiRepo);
|
|
79369
79549
|
|
|
79370
79550
|
// src/mechanisms/agent-api.ts
|
|
79371
79551
|
import { Interface as Interface43 } from "@adelie/core/kernel";
|
|
79372
|
-
var _AgentApi_decorators,
|
|
79552
|
+
var _AgentApi_decorators, _init191;
|
|
79373
79553
|
_AgentApi_decorators = [Interface43()];
|
|
79374
79554
|
var AgentApi = class {
|
|
79375
79555
|
};
|
|
79376
|
-
|
|
79377
|
-
AgentApi = __decorateElement(
|
|
79378
|
-
__runInitializers(
|
|
79556
|
+
_init191 = __decoratorStart(null);
|
|
79557
|
+
AgentApi = __decorateElement(_init191, 0, "AgentApi", _AgentApi_decorators, AgentApi);
|
|
79558
|
+
__runInitializers(_init191, 1, AgentApi);
|
|
79379
79559
|
|
|
79380
79560
|
// src/amsp/routes.ts
|
|
79381
|
-
import { Hono as
|
|
79561
|
+
import { Hono as Hono52 } from "hono";
|
|
79382
79562
|
|
|
79383
79563
|
// src/amsp/gate.ts
|
|
79384
79564
|
import { isValidId as isValidId9 } from "@adelie/core";
|
|
@@ -80092,7 +80272,7 @@ async function runStream(c, deps) {
|
|
|
80092
80272
|
|
|
80093
80273
|
// src/amsp/routes.ts
|
|
80094
80274
|
function amspRoutes(deps) {
|
|
80095
|
-
const app = new
|
|
80275
|
+
const app = new Hono52();
|
|
80096
80276
|
app.use("*", amspCors);
|
|
80097
80277
|
app.use("*", amspGate(AMSP_PREFIX, deps));
|
|
80098
80278
|
app.get("/agents/:projectId/:agentId", async (c) => {
|
|
@@ -80149,9 +80329,9 @@ function amspRoutes(deps) {
|
|
|
80149
80329
|
}
|
|
80150
80330
|
|
|
80151
80331
|
// src/amsp/try-route.ts
|
|
80152
|
-
import { Hono as
|
|
80332
|
+
import { Hono as Hono53 } from "hono";
|
|
80153
80333
|
function agentApiTryRoutes(deps) {
|
|
80154
|
-
const app = new
|
|
80334
|
+
const app = new Hono53();
|
|
80155
80335
|
app.post("/", async (c) => {
|
|
80156
80336
|
requireHuman(c);
|
|
80157
80337
|
const projectId = requireValidId(c, "projectId");
|
|
@@ -80166,8 +80346,8 @@ function agentApiTryRoutes(deps) {
|
|
|
80166
80346
|
}
|
|
80167
80347
|
|
|
80168
80348
|
// src/amsp/module.ts
|
|
80169
|
-
var _tryRoutes_dec,
|
|
80170
|
-
_AmspRoutes_decorators = [
|
|
80349
|
+
var _tryRoutes_dec, _routes_dec25, _access_dec13, _clock_dec14, _errors_dec10, _log_dec9, _agentConfig_dec8, _channels_dec13, _sessionService_dec3, _manager_dec5, _sessions_dec7, _agentApi_dec4, _settings_dec12, _AmspRoutes_decorators, _init192;
|
|
80350
|
+
_AmspRoutes_decorators = [Component74({
|
|
80171
80351
|
contributes: {
|
|
80172
80352
|
"HttpModule.routes": [
|
|
80173
80353
|
{ id: "AmspRoutes.routes", prefix: "/api/amsp/v1", auth: "none", order: 5 },
|
|
@@ -80179,22 +80359,22 @@ _AmspRoutes_decorators = [Component73({
|
|
|
80179
80359
|
}
|
|
80180
80360
|
]
|
|
80181
80361
|
}
|
|
80182
|
-
})], _settings_dec12 = [
|
|
80362
|
+
})], _settings_dec12 = [Use78()], _agentApi_dec4 = [Use78()], _sessions_dec7 = [Use78()], _manager_dec5 = [Use78()], _sessionService_dec3 = [Use78()], _channels_dec13 = [Use78()], _agentConfig_dec8 = [Use78()], _log_dec9 = [Use78()], _errors_dec10 = [Use78()], _clock_dec14 = [Use78()], _access_dec13 = [Use78()], _routes_dec25 = [Bind34("AmspRoutes.routes")], _tryRoutes_dec = [Bind34("AmspRoutes.try")];
|
|
80183
80363
|
var AmspRoutes = class {
|
|
80184
80364
|
constructor() {
|
|
80185
|
-
__publicField(this, "settings", __runInitializers(
|
|
80186
|
-
__publicField(this, "agentApi", __runInitializers(
|
|
80187
|
-
__publicField(this, "sessions", __runInitializers(
|
|
80188
|
-
__publicField(this, "manager", __runInitializers(
|
|
80189
|
-
__publicField(this, "sessionService", __runInitializers(
|
|
80190
|
-
__publicField(this, "channels", __runInitializers(
|
|
80191
|
-
__publicField(this, "agentConfig", __runInitializers(
|
|
80192
|
-
__publicField(this, "log", __runInitializers(
|
|
80193
|
-
__publicField(this, "errors", __runInitializers(
|
|
80194
|
-
__publicField(this, "clock", __runInitializers(
|
|
80195
|
-
__publicField(this, "access", __runInitializers(
|
|
80196
|
-
__publicField(this, "routes", __runInitializers(
|
|
80197
|
-
__publicField(this, "tryRoutes", __runInitializers(
|
|
80365
|
+
__publicField(this, "settings", __runInitializers(_init192, 8, this)), __runInitializers(_init192, 11, this);
|
|
80366
|
+
__publicField(this, "agentApi", __runInitializers(_init192, 12, this)), __runInitializers(_init192, 15, this);
|
|
80367
|
+
__publicField(this, "sessions", __runInitializers(_init192, 16, this)), __runInitializers(_init192, 19, this);
|
|
80368
|
+
__publicField(this, "manager", __runInitializers(_init192, 20, this)), __runInitializers(_init192, 23, this);
|
|
80369
|
+
__publicField(this, "sessionService", __runInitializers(_init192, 24, this)), __runInitializers(_init192, 27, this);
|
|
80370
|
+
__publicField(this, "channels", __runInitializers(_init192, 28, this)), __runInitializers(_init192, 31, this);
|
|
80371
|
+
__publicField(this, "agentConfig", __runInitializers(_init192, 32, this)), __runInitializers(_init192, 35, this);
|
|
80372
|
+
__publicField(this, "log", __runInitializers(_init192, 36, this)), __runInitializers(_init192, 39, this);
|
|
80373
|
+
__publicField(this, "errors", __runInitializers(_init192, 40, this)), __runInitializers(_init192, 43, this);
|
|
80374
|
+
__publicField(this, "clock", __runInitializers(_init192, 44, this)), __runInitializers(_init192, 47, this);
|
|
80375
|
+
__publicField(this, "access", __runInitializers(_init192, 48, this)), __runInitializers(_init192, 51, this);
|
|
80376
|
+
__publicField(this, "routes", __runInitializers(_init192, 52, this)), __runInitializers(_init192, 55, this);
|
|
80377
|
+
__publicField(this, "tryRoutes", __runInitializers(_init192, 56, this)), __runInitializers(_init192, 59, this);
|
|
80198
80378
|
}
|
|
80199
80379
|
setup() {
|
|
80200
80380
|
const clock = this.clock;
|
|
@@ -80214,45 +80394,45 @@ var AmspRoutes = class {
|
|
|
80214
80394
|
this.tryRoutes = agentApiTryRoutes({ ...deps, access: this.access });
|
|
80215
80395
|
}
|
|
80216
80396
|
};
|
|
80217
|
-
|
|
80218
|
-
__decorateElement(
|
|
80219
|
-
__decorateElement(
|
|
80220
|
-
__decorateElement(
|
|
80221
|
-
__decorateElement(
|
|
80222
|
-
__decorateElement(
|
|
80223
|
-
__decorateElement(
|
|
80224
|
-
__decorateElement(
|
|
80225
|
-
__decorateElement(
|
|
80226
|
-
__decorateElement(
|
|
80227
|
-
__decorateElement(
|
|
80228
|
-
__decorateElement(
|
|
80229
|
-
__decorateElement(
|
|
80230
|
-
__decorateElement(
|
|
80231
|
-
AmspRoutes = __decorateElement(
|
|
80232
|
-
__runInitializers(
|
|
80233
|
-
var _AgentApiModule_decorators,
|
|
80397
|
+
_init192 = __decoratorStart(null);
|
|
80398
|
+
__decorateElement(_init192, 5, "settings", _settings_dec12, AmspRoutes);
|
|
80399
|
+
__decorateElement(_init192, 5, "agentApi", _agentApi_dec4, AmspRoutes);
|
|
80400
|
+
__decorateElement(_init192, 5, "sessions", _sessions_dec7, AmspRoutes);
|
|
80401
|
+
__decorateElement(_init192, 5, "manager", _manager_dec5, AmspRoutes);
|
|
80402
|
+
__decorateElement(_init192, 5, "sessionService", _sessionService_dec3, AmspRoutes);
|
|
80403
|
+
__decorateElement(_init192, 5, "channels", _channels_dec13, AmspRoutes);
|
|
80404
|
+
__decorateElement(_init192, 5, "agentConfig", _agentConfig_dec8, AmspRoutes);
|
|
80405
|
+
__decorateElement(_init192, 5, "log", _log_dec9, AmspRoutes);
|
|
80406
|
+
__decorateElement(_init192, 5, "errors", _errors_dec10, AmspRoutes);
|
|
80407
|
+
__decorateElement(_init192, 5, "clock", _clock_dec14, AmspRoutes);
|
|
80408
|
+
__decorateElement(_init192, 5, "access", _access_dec13, AmspRoutes);
|
|
80409
|
+
__decorateElement(_init192, 5, "routes", _routes_dec25, AmspRoutes);
|
|
80410
|
+
__decorateElement(_init192, 5, "tryRoutes", _tryRoutes_dec, AmspRoutes);
|
|
80411
|
+
AmspRoutes = __decorateElement(_init192, 0, "AmspRoutes", _AmspRoutes_decorators, AmspRoutes);
|
|
80412
|
+
__runInitializers(_init192, 1, AmspRoutes);
|
|
80413
|
+
var _AgentApiModule_decorators, _init193;
|
|
80234
80414
|
_AgentApiModule_decorators = [Module22({
|
|
80235
80415
|
children: [AgentApiRepo, AmspRoutes],
|
|
80236
80416
|
exports: [AgentApi]
|
|
80237
80417
|
})];
|
|
80238
80418
|
var AgentApiModule = class {
|
|
80239
80419
|
};
|
|
80240
|
-
|
|
80241
|
-
AgentApiModule = __decorateElement(
|
|
80242
|
-
__runInitializers(
|
|
80420
|
+
_init193 = __decoratorStart(null);
|
|
80421
|
+
AgentApiModule = __decorateElement(_init193, 0, "AgentApiModule", _AgentApiModule_decorators, AgentApiModule);
|
|
80422
|
+
__runInitializers(_init193, 1, AgentApiModule);
|
|
80243
80423
|
|
|
80244
80424
|
// src/platform.ts
|
|
80245
|
-
var _usage_dec7, _projectConfig_dec16, _errors_dec11, _machines_dec5, _sessionService_dec4, _orgScheduler_dec2, _scheduler_dec2, _Startup_decorators,
|
|
80246
|
-
_Startup_decorators = [
|
|
80425
|
+
var _usage_dec7, _projectConfig_dec16, _errors_dec11, _machines_dec5, _sessionService_dec4, _orgScheduler_dec2, _scheduler_dec2, _Startup_decorators, _init194;
|
|
80426
|
+
_Startup_decorators = [Component75()], _scheduler_dec2 = [Use79()], _orgScheduler_dec2 = [Use79()], _sessionService_dec4 = [Use79()], _machines_dec5 = [Use79()], _errors_dec11 = [Use79()], _projectConfig_dec16 = [Use79()], _usage_dec7 = [Use79()];
|
|
80247
80427
|
var Startup = class {
|
|
80248
80428
|
constructor() {
|
|
80249
|
-
__publicField(this, "scheduler", __runInitializers(
|
|
80250
|
-
__publicField(this, "orgScheduler", __runInitializers(
|
|
80251
|
-
__publicField(this, "sessionService", __runInitializers(
|
|
80252
|
-
__publicField(this, "machines", __runInitializers(
|
|
80253
|
-
__publicField(this, "errors", __runInitializers(
|
|
80254
|
-
__publicField(this, "projectConfig", __runInitializers(
|
|
80255
|
-
__publicField(this, "usage", __runInitializers(
|
|
80429
|
+
__publicField(this, "scheduler", __runInitializers(_init194, 8, this)), __runInitializers(_init194, 11, this);
|
|
80430
|
+
__publicField(this, "orgScheduler", __runInitializers(_init194, 12, this)), __runInitializers(_init194, 15, this);
|
|
80431
|
+
__publicField(this, "sessionService", __runInitializers(_init194, 16, this)), __runInitializers(_init194, 19, this);
|
|
80432
|
+
__publicField(this, "machines", __runInitializers(_init194, 20, this)), __runInitializers(_init194, 23, this);
|
|
80433
|
+
__publicField(this, "errors", __runInitializers(_init194, 24, this)), __runInitializers(_init194, 27, this);
|
|
80434
|
+
__publicField(this, "projectConfig", __runInitializers(_init194, 28, this)), __runInitializers(_init194, 31, this);
|
|
80435
|
+
__publicField(this, "usage", __runInitializers(_init194, 32, this)), __runInitializers(_init194, 35, this);
|
|
80256
80436
|
}
|
|
80257
80437
|
async setup() {
|
|
80258
80438
|
await this.projectConfig.ensureDisplayName(DEFAULT_PROJECT_ID3, DEFAULT_PROJECT_NAME2);
|
|
@@ -80271,17 +80451,17 @@ var Startup = class {
|
|
|
80271
80451
|
});
|
|
80272
80452
|
}
|
|
80273
80453
|
};
|
|
80274
|
-
|
|
80275
|
-
__decorateElement(
|
|
80276
|
-
__decorateElement(
|
|
80277
|
-
__decorateElement(
|
|
80278
|
-
__decorateElement(
|
|
80279
|
-
__decorateElement(
|
|
80280
|
-
__decorateElement(
|
|
80281
|
-
__decorateElement(
|
|
80282
|
-
Startup = __decorateElement(
|
|
80283
|
-
__runInitializers(
|
|
80284
|
-
var _RuntimeModule_decorators,
|
|
80454
|
+
_init194 = __decoratorStart(null);
|
|
80455
|
+
__decorateElement(_init194, 5, "scheduler", _scheduler_dec2, Startup);
|
|
80456
|
+
__decorateElement(_init194, 5, "orgScheduler", _orgScheduler_dec2, Startup);
|
|
80457
|
+
__decorateElement(_init194, 5, "sessionService", _sessionService_dec4, Startup);
|
|
80458
|
+
__decorateElement(_init194, 5, "machines", _machines_dec5, Startup);
|
|
80459
|
+
__decorateElement(_init194, 5, "errors", _errors_dec11, Startup);
|
|
80460
|
+
__decorateElement(_init194, 5, "projectConfig", _projectConfig_dec16, Startup);
|
|
80461
|
+
__decorateElement(_init194, 5, "usage", _usage_dec7, Startup);
|
|
80462
|
+
Startup = __decorateElement(_init194, 0, "Startup", _Startup_decorators, Startup);
|
|
80463
|
+
__runInitializers(_init194, 1, Startup);
|
|
80464
|
+
var _RuntimeModule_decorators, _init195;
|
|
80285
80465
|
_RuntimeModule_decorators = [Module23({
|
|
80286
80466
|
children: [
|
|
80287
80467
|
RuntimeConfig,
|
|
@@ -80318,10 +80498,10 @@ _RuntimeModule_decorators = [Module23({
|
|
|
80318
80498
|
})];
|
|
80319
80499
|
var RuntimeModule = class {
|
|
80320
80500
|
};
|
|
80321
|
-
|
|
80322
|
-
RuntimeModule = __decorateElement(
|
|
80323
|
-
__runInitializers(
|
|
80324
|
-
var _IdentityModule_decorators,
|
|
80501
|
+
_init195 = __decoratorStart(null);
|
|
80502
|
+
RuntimeModule = __decorateElement(_init195, 0, "RuntimeModule", _RuntimeModule_decorators, RuntimeModule);
|
|
80503
|
+
__runInitializers(_init195, 1, RuntimeModule);
|
|
80504
|
+
var _IdentityModule_decorators, _init196;
|
|
80325
80505
|
_IdentityModule_decorators = [Module23({
|
|
80326
80506
|
children: [
|
|
80327
80507
|
UsersRepo,
|
|
@@ -80339,10 +80519,10 @@ _IdentityModule_decorators = [Module23({
|
|
|
80339
80519
|
})];
|
|
80340
80520
|
var IdentityModule = class {
|
|
80341
80521
|
};
|
|
80342
|
-
|
|
80343
|
-
IdentityModule = __decorateElement(
|
|
80344
|
-
__runInitializers(
|
|
80345
|
-
var _ProjectsModule_decorators,
|
|
80522
|
+
_init196 = __decoratorStart(null);
|
|
80523
|
+
IdentityModule = __decorateElement(_init196, 0, "IdentityModule", _IdentityModule_decorators, IdentityModule);
|
|
80524
|
+
__runInitializers(_init196, 1, IdentityModule);
|
|
80525
|
+
var _ProjectsModule_decorators, _init197;
|
|
80346
80526
|
_ProjectsModule_decorators = [Module23({
|
|
80347
80527
|
children: [
|
|
80348
80528
|
ProjectsRepo,
|
|
@@ -80377,10 +80557,10 @@ _ProjectsModule_decorators = [Module23({
|
|
|
80377
80557
|
})];
|
|
80378
80558
|
var ProjectsModule = class {
|
|
80379
80559
|
};
|
|
80380
|
-
|
|
80381
|
-
ProjectsModule = __decorateElement(
|
|
80382
|
-
__runInitializers(
|
|
80383
|
-
var _SessionRuntimeModule_decorators,
|
|
80560
|
+
_init197 = __decoratorStart(null);
|
|
80561
|
+
ProjectsModule = __decorateElement(_init197, 0, "ProjectsModule", _ProjectsModule_decorators, ProjectsModule);
|
|
80562
|
+
__runInitializers(_init197, 1, ProjectsModule);
|
|
80563
|
+
var _SessionRuntimeModule_decorators, _init198;
|
|
80384
80564
|
_SessionRuntimeModule_decorators = [Module23({
|
|
80385
80565
|
children: [
|
|
80386
80566
|
SessionsRepo,
|
|
@@ -80412,60 +80592,60 @@ _SessionRuntimeModule_decorators = [Module23({
|
|
|
80412
80592
|
})];
|
|
80413
80593
|
var SessionRuntimeModule = class {
|
|
80414
80594
|
};
|
|
80415
|
-
|
|
80416
|
-
SessionRuntimeModule = __decorateElement(
|
|
80417
|
-
__runInitializers(
|
|
80418
|
-
var _SettingsModule_decorators,
|
|
80595
|
+
_init198 = __decoratorStart(null);
|
|
80596
|
+
SessionRuntimeModule = __decorateElement(_init198, 0, "SessionRuntimeModule", _SessionRuntimeModule_decorators, SessionRuntimeModule);
|
|
80597
|
+
__runInitializers(_init198, 1, SessionRuntimeModule);
|
|
80598
|
+
var _SettingsModule_decorators, _init199;
|
|
80419
80599
|
_SettingsModule_decorators = [Module23({
|
|
80420
80600
|
children: [ServerSettingsRepo, UiPrefsRepo],
|
|
80421
80601
|
exports: [Settings, UiPrefsStore]
|
|
80422
80602
|
})];
|
|
80423
80603
|
var SettingsModule = class {
|
|
80424
80604
|
};
|
|
80425
|
-
|
|
80426
|
-
SettingsModule = __decorateElement(
|
|
80427
|
-
__runInitializers(
|
|
80428
|
-
var _PluginConfigModule_decorators,
|
|
80605
|
+
_init199 = __decoratorStart(null);
|
|
80606
|
+
SettingsModule = __decorateElement(_init199, 0, "SettingsModule", _SettingsModule_decorators, SettingsModule);
|
|
80607
|
+
__runInitializers(_init199, 1, SettingsModule);
|
|
80608
|
+
var _PluginConfigModule_decorators, _init200;
|
|
80429
80609
|
_PluginConfigModule_decorators = [Module23({
|
|
80430
80610
|
children: [PluginConfigProvider, PluginConfigPage],
|
|
80431
80611
|
exports: [PluginConfig, PluginConfigAdmin]
|
|
80432
80612
|
})];
|
|
80433
80613
|
var PluginConfigModule = class {
|
|
80434
80614
|
};
|
|
80435
|
-
|
|
80436
|
-
PluginConfigModule = __decorateElement(
|
|
80437
|
-
__runInitializers(
|
|
80438
|
-
var _SandboxSettingsModule_decorators,
|
|
80615
|
+
_init200 = __decoratorStart(null);
|
|
80616
|
+
PluginConfigModule = __decorateElement(_init200, 0, "PluginConfigModule", _PluginConfigModule_decorators, PluginConfigModule);
|
|
80617
|
+
__runInitializers(_init200, 1, PluginConfigModule);
|
|
80618
|
+
var _SandboxSettingsModule_decorators, _init201;
|
|
80439
80619
|
_SandboxSettingsModule_decorators = [Module23({
|
|
80440
80620
|
children: [SandboxSettings, SandboxSettingsStatus],
|
|
80441
80621
|
exports: []
|
|
80442
80622
|
})];
|
|
80443
80623
|
var SandboxSettingsModule = class {
|
|
80444
80624
|
};
|
|
80445
|
-
|
|
80446
|
-
SandboxSettingsModule = __decorateElement(
|
|
80447
|
-
__runInitializers(
|
|
80448
|
-
var _ObservabilityModule_decorators,
|
|
80625
|
+
_init201 = __decoratorStart(null);
|
|
80626
|
+
SandboxSettingsModule = __decorateElement(_init201, 0, "SandboxSettingsModule", _SandboxSettingsModule_decorators, SandboxSettingsModule);
|
|
80627
|
+
__runInitializers(_init201, 1, SandboxSettingsModule);
|
|
80628
|
+
var _ObservabilityModule_decorators, _init202;
|
|
80449
80629
|
_ObservabilityModule_decorators = [Module23({
|
|
80450
80630
|
children: [ErrorsRepo, ErrorRecorder, UsageRepo, UsageRecorder, UsageService, StorageService],
|
|
80451
80631
|
exports: [ErrorLog, Errors, UsageStore, UsageRecording, UsageQueries, StorageAdmin]
|
|
80452
80632
|
})];
|
|
80453
80633
|
var ObservabilityModule = class {
|
|
80454
80634
|
};
|
|
80455
|
-
|
|
80456
|
-
ObservabilityModule = __decorateElement(
|
|
80457
|
-
__runInitializers(
|
|
80458
|
-
var _TracesModule_decorators,
|
|
80635
|
+
_init202 = __decoratorStart(null);
|
|
80636
|
+
ObservabilityModule = __decorateElement(_init202, 0, "ObservabilityModule", _ObservabilityModule_decorators, ObservabilityModule);
|
|
80637
|
+
__runInitializers(_init202, 1, ObservabilityModule);
|
|
80638
|
+
var _TracesModule_decorators, _init203;
|
|
80459
80639
|
_TracesModule_decorators = [Module23({
|
|
80460
80640
|
children: [TraceIndexRepo, TraceIndexService, TraceService],
|
|
80461
80641
|
exports: [TraceIndexStore, TraceIndex, Traces]
|
|
80462
80642
|
})];
|
|
80463
80643
|
var TracesModule = class {
|
|
80464
80644
|
};
|
|
80465
|
-
|
|
80466
|
-
TracesModule = __decorateElement(
|
|
80467
|
-
__runInitializers(
|
|
80468
|
-
var _AgentsModule_decorators,
|
|
80645
|
+
_init203 = __decoratorStart(null);
|
|
80646
|
+
TracesModule = __decorateElement(_init203, 0, "TracesModule", _TracesModule_decorators, TracesModule);
|
|
80647
|
+
__runInitializers(_init203, 1, TracesModule);
|
|
80648
|
+
var _AgentsModule_decorators, _init204;
|
|
80469
80649
|
_AgentsModule_decorators = [Module23({
|
|
80470
80650
|
children: [
|
|
80471
80651
|
AgentConfigService,
|
|
@@ -80480,20 +80660,20 @@ _AgentsModule_decorators = [Module23({
|
|
|
80480
80660
|
})];
|
|
80481
80661
|
var AgentsModule = class {
|
|
80482
80662
|
};
|
|
80483
|
-
|
|
80484
|
-
AgentsModule = __decorateElement(
|
|
80485
|
-
__runInitializers(
|
|
80486
|
-
var _WorkspaceModule_decorators,
|
|
80663
|
+
_init204 = __decoratorStart(null);
|
|
80664
|
+
AgentsModule = __decorateElement(_init204, 0, "AgentsModule", _AgentsModule_decorators, AgentsModule);
|
|
80665
|
+
__runInitializers(_init204, 1, AgentsModule);
|
|
80666
|
+
var _WorkspaceModule_decorators, _init205;
|
|
80487
80667
|
_WorkspaceModule_decorators = [Module23({
|
|
80488
80668
|
children: [WorkspaceFilesService, RevealService, PreviewModule],
|
|
80489
80669
|
exports: [WorkspaceFiles, FileReveal, PreviewTokens]
|
|
80490
80670
|
})];
|
|
80491
80671
|
var WorkspaceModule = class {
|
|
80492
80672
|
};
|
|
80493
|
-
|
|
80494
|
-
WorkspaceModule = __decorateElement(
|
|
80495
|
-
__runInitializers(
|
|
80496
|
-
var _MessagingHubModule_decorators,
|
|
80673
|
+
_init205 = __decoratorStart(null);
|
|
80674
|
+
WorkspaceModule = __decorateElement(_init205, 0, "WorkspaceModule", _WorkspaceModule_decorators, WorkspaceModule);
|
|
80675
|
+
__runInitializers(_init205, 1, WorkspaceModule);
|
|
80676
|
+
var _MessagingHubModule_decorators, _init206;
|
|
80497
80677
|
_MessagingHubModule_decorators = [Module23({
|
|
80498
80678
|
children: [
|
|
80499
80679
|
FeishuSdkProvider,
|
|
@@ -80510,20 +80690,20 @@ _MessagingHubModule_decorators = [Module23({
|
|
|
80510
80690
|
})];
|
|
80511
80691
|
var MessagingHubModule = class {
|
|
80512
80692
|
};
|
|
80513
|
-
|
|
80514
|
-
MessagingHubModule = __decorateElement(
|
|
80515
|
-
__runInitializers(
|
|
80516
|
-
var _CompanyModule_decorators,
|
|
80693
|
+
_init206 = __decoratorStart(null);
|
|
80694
|
+
MessagingHubModule = __decorateElement(_init206, 0, "MessagingHubModule", _MessagingHubModule_decorators, MessagingHubModule);
|
|
80695
|
+
__runInitializers(_init206, 1, MessagingHubModule);
|
|
80696
|
+
var _CompanyModule_decorators, _init207;
|
|
80517
80697
|
_CompanyModule_decorators = [Module23({
|
|
80518
80698
|
children: [OrgCacheRepo, OrganizationModule, OrgRoutes],
|
|
80519
80699
|
exports: [OrgCache, OrgService, OrgScheduler]
|
|
80520
80700
|
})];
|
|
80521
80701
|
var CompanyModule = class {
|
|
80522
80702
|
};
|
|
80523
|
-
|
|
80524
|
-
CompanyModule = __decorateElement(
|
|
80525
|
-
__runInitializers(
|
|
80526
|
-
var _ApiModule_decorators,
|
|
80703
|
+
_init207 = __decoratorStart(null);
|
|
80704
|
+
CompanyModule = __decorateElement(_init207, 0, "CompanyModule", _CompanyModule_decorators, CompanyModule);
|
|
80705
|
+
__runInitializers(_init207, 1, CompanyModule);
|
|
80706
|
+
var _ApiModule_decorators, _init208;
|
|
80527
80707
|
_ApiModule_decorators = [Module23({
|
|
80528
80708
|
children: [
|
|
80529
80709
|
GlobalFetch,
|
|
@@ -80544,26 +80724,28 @@ _ApiModule_decorators = [Module23({
|
|
|
80544
80724
|
PluginRoutes,
|
|
80545
80725
|
PluginRegistryRoutes,
|
|
80546
80726
|
InstalledPluginRoutes,
|
|
80547
|
-
SuggestIdRoutes
|
|
80727
|
+
SuggestIdRoutes,
|
|
80728
|
+
ThemesRoutes,
|
|
80729
|
+
ThemeStylesheetRoutes
|
|
80548
80730
|
],
|
|
80549
80731
|
exports: [Http, WebShell, UpdateCheck]
|
|
80550
80732
|
})];
|
|
80551
80733
|
var ApiModule = class {
|
|
80552
80734
|
};
|
|
80553
|
-
|
|
80554
|
-
ApiModule = __decorateElement(
|
|
80555
|
-
__runInitializers(
|
|
80556
|
-
var _WorkflowsModule_decorators,
|
|
80735
|
+
_init208 = __decoratorStart(null);
|
|
80736
|
+
ApiModule = __decorateElement(_init208, 0, "ApiModule", _ApiModule_decorators, ApiModule);
|
|
80737
|
+
__runInitializers(_init208, 1, ApiModule);
|
|
80738
|
+
var _WorkflowsModule_decorators, _init209;
|
|
80557
80739
|
_WorkflowsModule_decorators = [Module23({
|
|
80558
80740
|
children: [WorkflowService, WorkflowRoutes],
|
|
80559
80741
|
exports: [Workflows]
|
|
80560
80742
|
})];
|
|
80561
80743
|
var WorkflowsModule = class {
|
|
80562
80744
|
};
|
|
80563
|
-
|
|
80564
|
-
WorkflowsModule = __decorateElement(
|
|
80565
|
-
__runInitializers(
|
|
80566
|
-
var _PlatformModule_decorators,
|
|
80745
|
+
_init209 = __decoratorStart(null);
|
|
80746
|
+
WorkflowsModule = __decorateElement(_init209, 0, "WorkflowsModule", _WorkflowsModule_decorators, WorkflowsModule);
|
|
80747
|
+
__runInitializers(_init209, 1, WorkflowsModule);
|
|
80748
|
+
var _PlatformModule_decorators, _init210;
|
|
80567
80749
|
_PlatformModule_decorators = [Module23({
|
|
80568
80750
|
children: [
|
|
80569
80751
|
RuntimeModule,
|
|
@@ -80592,9 +80774,9 @@ _PlatformModule_decorators = [Module23({
|
|
|
80592
80774
|
})];
|
|
80593
80775
|
var PlatformModule = class {
|
|
80594
80776
|
};
|
|
80595
|
-
|
|
80596
|
-
PlatformModule = __decorateElement(
|
|
80597
|
-
__runInitializers(
|
|
80777
|
+
_init210 = __decoratorStart(null);
|
|
80778
|
+
PlatformModule = __decorateElement(_init210, 0, "PlatformModule", _PlatformModule_decorators, PlatformModule);
|
|
80779
|
+
__runInitializers(_init210, 1, PlatformModule);
|
|
80598
80780
|
function platformDef(caps, adoptable, plugins = [], replace = /* @__PURE__ */ new Map(), reassemble = async (change) => {
|
|
80599
80781
|
await change?.write();
|
|
80600
80782
|
return false;
|
|
@@ -80885,7 +81067,7 @@ function bareTree(plugins, replace = /* @__PURE__ */ new Map()) {
|
|
|
80885
81067
|
};
|
|
80886
81068
|
}
|
|
80887
81069
|
function bareApp(terminals, identity) {
|
|
80888
|
-
const app = new
|
|
81070
|
+
const app = new Hono54();
|
|
80889
81071
|
app.notFound(() => declined());
|
|
80890
81072
|
app.route("/", terminalRoutes(terminals, identity));
|
|
80891
81073
|
return app;
|
|
@@ -81035,7 +81217,7 @@ function createApp(boot3) {
|
|
|
81035
81217
|
control: boot3.control,
|
|
81036
81218
|
channels: boot3.channels
|
|
81037
81219
|
};
|
|
81038
|
-
const app = new
|
|
81220
|
+
const app = new Hono55();
|
|
81039
81221
|
app.onError((err, c) => {
|
|
81040
81222
|
const projectId = attributedProjectId(c, { access: access() });
|
|
81041
81223
|
errors().record({
|