skedyul 1.2.18 → 1.2.19
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/cli/index.js +22 -8
- package/dist/dedicated/server.js +22 -8
- package/dist/esm/index.mjs +22 -8
- package/dist/index.js +22 -8
- package/dist/server.js +22 -8
- package/dist/serverless/server.mjs +22 -8
- package/dist/types/server.d.ts +8 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -3028,10 +3028,17 @@ function createDedicatedServerInstance(config, tools, callTool, state, mcpServer
|
|
|
3028
3028
|
return;
|
|
3029
3029
|
}
|
|
3030
3030
|
if (pathname === "/config" && req.method === "GET") {
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
config.
|
|
3034
|
-
|
|
3031
|
+
let appConfig = config.appConfig;
|
|
3032
|
+
if (!appConfig && config.appConfigLoader) {
|
|
3033
|
+
const loaded = await config.appConfigLoader();
|
|
3034
|
+
appConfig = loaded.default;
|
|
3035
|
+
}
|
|
3036
|
+
if (!appConfig) {
|
|
3037
|
+
appConfig = createMinimalConfig(
|
|
3038
|
+
config.metadata.name,
|
|
3039
|
+
config.metadata.version
|
|
3040
|
+
);
|
|
3041
|
+
}
|
|
3035
3042
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
3036
3043
|
sendJSON(res, 200, serializedConfig);
|
|
3037
3044
|
return;
|
|
@@ -4124,10 +4131,17 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
4124
4131
|
return createResponse(200, state.getHealthStatus(), headers);
|
|
4125
4132
|
}
|
|
4126
4133
|
if (path14 === "/config" && method === "GET") {
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
config.
|
|
4130
|
-
|
|
4134
|
+
let appConfig = config.appConfig;
|
|
4135
|
+
if (!appConfig && config.appConfigLoader) {
|
|
4136
|
+
const loaded = await config.appConfigLoader();
|
|
4137
|
+
appConfig = loaded.default;
|
|
4138
|
+
}
|
|
4139
|
+
if (!appConfig) {
|
|
4140
|
+
appConfig = createMinimalConfig(
|
|
4141
|
+
config.metadata.name,
|
|
4142
|
+
config.metadata.version
|
|
4143
|
+
);
|
|
4144
|
+
}
|
|
4131
4145
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
4132
4146
|
return createResponse(200, serializedConfig, headers);
|
|
4133
4147
|
}
|
package/dist/dedicated/server.js
CHANGED
|
@@ -846,10 +846,17 @@ function createDedicatedServerInstance(config, tools, callTool, state, mcpServer
|
|
|
846
846
|
return;
|
|
847
847
|
}
|
|
848
848
|
if (pathname === "/config" && req.method === "GET") {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
config.
|
|
852
|
-
|
|
849
|
+
let appConfig = config.appConfig;
|
|
850
|
+
if (!appConfig && config.appConfigLoader) {
|
|
851
|
+
const loaded = await config.appConfigLoader();
|
|
852
|
+
appConfig = loaded.default;
|
|
853
|
+
}
|
|
854
|
+
if (!appConfig) {
|
|
855
|
+
appConfig = createMinimalConfig(
|
|
856
|
+
config.metadata.name,
|
|
857
|
+
config.metadata.version
|
|
858
|
+
);
|
|
859
|
+
}
|
|
853
860
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
854
861
|
sendJSON(res, 200, serializedConfig);
|
|
855
862
|
return;
|
|
@@ -1942,10 +1949,17 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
1942
1949
|
return createResponse(200, state.getHealthStatus(), headers);
|
|
1943
1950
|
}
|
|
1944
1951
|
if (path === "/config" && method === "GET") {
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
config.
|
|
1948
|
-
|
|
1952
|
+
let appConfig = config.appConfig;
|
|
1953
|
+
if (!appConfig && config.appConfigLoader) {
|
|
1954
|
+
const loaded = await config.appConfigLoader();
|
|
1955
|
+
appConfig = loaded.default;
|
|
1956
|
+
}
|
|
1957
|
+
if (!appConfig) {
|
|
1958
|
+
appConfig = createMinimalConfig(
|
|
1959
|
+
config.metadata.name,
|
|
1960
|
+
config.metadata.version
|
|
1961
|
+
);
|
|
1962
|
+
}
|
|
1949
1963
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
1950
1964
|
return createResponse(200, serializedConfig, headers);
|
|
1951
1965
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2532,10 +2532,17 @@ function createDedicatedServerInstance(config, tools, callTool, state, mcpServer
|
|
|
2532
2532
|
return;
|
|
2533
2533
|
}
|
|
2534
2534
|
if (pathname === "/config" && req.method === "GET") {
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
config.
|
|
2538
|
-
|
|
2535
|
+
let appConfig = config.appConfig;
|
|
2536
|
+
if (!appConfig && config.appConfigLoader) {
|
|
2537
|
+
const loaded = await config.appConfigLoader();
|
|
2538
|
+
appConfig = loaded.default;
|
|
2539
|
+
}
|
|
2540
|
+
if (!appConfig) {
|
|
2541
|
+
appConfig = createMinimalConfig(
|
|
2542
|
+
config.metadata.name,
|
|
2543
|
+
config.metadata.version
|
|
2544
|
+
);
|
|
2545
|
+
}
|
|
2539
2546
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
2540
2547
|
sendJSON(res, 200, serializedConfig);
|
|
2541
2548
|
return;
|
|
@@ -3628,10 +3635,17 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
3628
3635
|
return createResponse(200, state.getHealthStatus(), headers);
|
|
3629
3636
|
}
|
|
3630
3637
|
if (path2 === "/config" && method === "GET") {
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
config.
|
|
3634
|
-
|
|
3638
|
+
let appConfig = config.appConfig;
|
|
3639
|
+
if (!appConfig && config.appConfigLoader) {
|
|
3640
|
+
const loaded = await config.appConfigLoader();
|
|
3641
|
+
appConfig = loaded.default;
|
|
3642
|
+
}
|
|
3643
|
+
if (!appConfig) {
|
|
3644
|
+
appConfig = createMinimalConfig(
|
|
3645
|
+
config.metadata.name,
|
|
3646
|
+
config.metadata.version
|
|
3647
|
+
);
|
|
3648
|
+
}
|
|
3635
3649
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
3636
3650
|
return createResponse(200, serializedConfig, headers);
|
|
3637
3651
|
}
|
package/dist/index.js
CHANGED
|
@@ -2700,10 +2700,17 @@ function createDedicatedServerInstance(config, tools, callTool, state, mcpServer
|
|
|
2700
2700
|
return;
|
|
2701
2701
|
}
|
|
2702
2702
|
if (pathname === "/config" && req.method === "GET") {
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
config.
|
|
2706
|
-
|
|
2703
|
+
let appConfig = config.appConfig;
|
|
2704
|
+
if (!appConfig && config.appConfigLoader) {
|
|
2705
|
+
const loaded = await config.appConfigLoader();
|
|
2706
|
+
appConfig = loaded.default;
|
|
2707
|
+
}
|
|
2708
|
+
if (!appConfig) {
|
|
2709
|
+
appConfig = createMinimalConfig(
|
|
2710
|
+
config.metadata.name,
|
|
2711
|
+
config.metadata.version
|
|
2712
|
+
);
|
|
2713
|
+
}
|
|
2707
2714
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
2708
2715
|
sendJSON(res, 200, serializedConfig);
|
|
2709
2716
|
return;
|
|
@@ -3796,10 +3803,17 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
3796
3803
|
return createResponse(200, state.getHealthStatus(), headers);
|
|
3797
3804
|
}
|
|
3798
3805
|
if (path2 === "/config" && method === "GET") {
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
config.
|
|
3802
|
-
|
|
3806
|
+
let appConfig = config.appConfig;
|
|
3807
|
+
if (!appConfig && config.appConfigLoader) {
|
|
3808
|
+
const loaded = await config.appConfigLoader();
|
|
3809
|
+
appConfig = loaded.default;
|
|
3810
|
+
}
|
|
3811
|
+
if (!appConfig) {
|
|
3812
|
+
appConfig = createMinimalConfig(
|
|
3813
|
+
config.metadata.name,
|
|
3814
|
+
config.metadata.version
|
|
3815
|
+
);
|
|
3816
|
+
}
|
|
3803
3817
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
3804
3818
|
return createResponse(200, serializedConfig, headers);
|
|
3805
3819
|
}
|
package/dist/server.js
CHANGED
|
@@ -846,10 +846,17 @@ function createDedicatedServerInstance(config, tools, callTool, state, mcpServer
|
|
|
846
846
|
return;
|
|
847
847
|
}
|
|
848
848
|
if (pathname === "/config" && req.method === "GET") {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
config.
|
|
852
|
-
|
|
849
|
+
let appConfig = config.appConfig;
|
|
850
|
+
if (!appConfig && config.appConfigLoader) {
|
|
851
|
+
const loaded = await config.appConfigLoader();
|
|
852
|
+
appConfig = loaded.default;
|
|
853
|
+
}
|
|
854
|
+
if (!appConfig) {
|
|
855
|
+
appConfig = createMinimalConfig(
|
|
856
|
+
config.metadata.name,
|
|
857
|
+
config.metadata.version
|
|
858
|
+
);
|
|
859
|
+
}
|
|
853
860
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
854
861
|
sendJSON(res, 200, serializedConfig);
|
|
855
862
|
return;
|
|
@@ -1942,10 +1949,17 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
1942
1949
|
return createResponse(200, state.getHealthStatus(), headers);
|
|
1943
1950
|
}
|
|
1944
1951
|
if (path === "/config" && method === "GET") {
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
config.
|
|
1948
|
-
|
|
1952
|
+
let appConfig = config.appConfig;
|
|
1953
|
+
if (!appConfig && config.appConfigLoader) {
|
|
1954
|
+
const loaded = await config.appConfigLoader();
|
|
1955
|
+
appConfig = loaded.default;
|
|
1956
|
+
}
|
|
1957
|
+
if (!appConfig) {
|
|
1958
|
+
appConfig = createMinimalConfig(
|
|
1959
|
+
config.metadata.name,
|
|
1960
|
+
config.metadata.version
|
|
1961
|
+
);
|
|
1962
|
+
}
|
|
1949
1963
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
1950
1964
|
return createResponse(200, serializedConfig, headers);
|
|
1951
1965
|
}
|
|
@@ -785,10 +785,17 @@ function createDedicatedServerInstance(config, tools, callTool, state, mcpServer
|
|
|
785
785
|
return;
|
|
786
786
|
}
|
|
787
787
|
if (pathname === "/config" && req.method === "GET") {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
config.
|
|
791
|
-
|
|
788
|
+
let appConfig = config.appConfig;
|
|
789
|
+
if (!appConfig && config.appConfigLoader) {
|
|
790
|
+
const loaded = await config.appConfigLoader();
|
|
791
|
+
appConfig = loaded.default;
|
|
792
|
+
}
|
|
793
|
+
if (!appConfig) {
|
|
794
|
+
appConfig = createMinimalConfig(
|
|
795
|
+
config.metadata.name,
|
|
796
|
+
config.metadata.version
|
|
797
|
+
);
|
|
798
|
+
}
|
|
792
799
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
793
800
|
sendJSON(res, 200, serializedConfig);
|
|
794
801
|
return;
|
|
@@ -1881,10 +1888,17 @@ function createServerlessInstance(config, tools, callTool, state, mcpServer, reg
|
|
|
1881
1888
|
return createResponse(200, state.getHealthStatus(), headers);
|
|
1882
1889
|
}
|
|
1883
1890
|
if (path === "/config" && method === "GET") {
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
config.
|
|
1887
|
-
|
|
1891
|
+
let appConfig = config.appConfig;
|
|
1892
|
+
if (!appConfig && config.appConfigLoader) {
|
|
1893
|
+
const loaded = await config.appConfigLoader();
|
|
1894
|
+
appConfig = loaded.default;
|
|
1895
|
+
}
|
|
1896
|
+
if (!appConfig) {
|
|
1897
|
+
appConfig = createMinimalConfig(
|
|
1898
|
+
config.metadata.name,
|
|
1899
|
+
config.metadata.version
|
|
1900
|
+
);
|
|
1901
|
+
}
|
|
1888
1902
|
const serializedConfig = await resolveConfig(appConfig, registry, webhookRegistry);
|
|
1889
1903
|
return createResponse(200, serializedConfig, headers);
|
|
1890
1904
|
}
|
package/dist/types/server.d.ts
CHANGED
|
@@ -35,6 +35,14 @@ export interface SkedyulServerConfig {
|
|
|
35
35
|
hooks?: ServerHooks;
|
|
36
36
|
/** Original app config from skedyul.config.ts for /config endpoint serialization */
|
|
37
37
|
appConfig?: SkedyulConfig;
|
|
38
|
+
/**
|
|
39
|
+
* Lazy loader for app config - use this instead of appConfig to avoid bundling
|
|
40
|
+
* provision/install configs at build time. The loader is called only when the
|
|
41
|
+
* /config endpoint is accessed.
|
|
42
|
+
*/
|
|
43
|
+
appConfigLoader?: () => Promise<{
|
|
44
|
+
default: SkedyulConfig;
|
|
45
|
+
}>;
|
|
38
46
|
}
|
|
39
47
|
export interface DedicatedServerInstance {
|
|
40
48
|
listen(port?: number): Promise<void>;
|