skedyul 1.4.2 → 1.4.4
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 +7 -1
- package/dist/config/types/navigation.d.ts +2 -0
- package/dist/dedicated/server.js +7 -1
- package/dist/esm/index.mjs +10 -2
- package/dist/index.js +10 -2
- package/dist/schemas.d.ts +9 -0
- package/dist/server/utils/env.d.ts +6 -2
- package/dist/server.js +7 -1
- package/dist/serverless/server.mjs +7 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2776,7 +2776,13 @@ function getBakedExecutableEnv() {
|
|
|
2776
2776
|
}
|
|
2777
2777
|
function buildToolExecutionEnv(requestEnv = {}) {
|
|
2778
2778
|
const bakedEnv = getBakedExecutableEnv();
|
|
2779
|
-
const merged = {
|
|
2779
|
+
const merged = {};
|
|
2780
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
2781
|
+
if (value !== void 0) {
|
|
2782
|
+
merged[key] = value;
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
Object.assign(merged, bakedEnv);
|
|
2780
2786
|
for (const [key, value] of Object.entries(requestEnv)) {
|
|
2781
2787
|
if (value !== void 0) {
|
|
2782
2788
|
merged[key] = value;
|
|
@@ -14,6 +14,8 @@ export interface NavigationItem {
|
|
|
14
14
|
href: string;
|
|
15
15
|
/** Optional Lucide icon name */
|
|
16
16
|
icon?: string;
|
|
17
|
+
/** When true, item is omitted from rendered navigation (supports Liquid templates) */
|
|
18
|
+
hidden?: boolean | string;
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
19
21
|
* Navigation section with title and items.
|
package/dist/dedicated/server.js
CHANGED
|
@@ -167,7 +167,13 @@ function getBakedExecutableEnv() {
|
|
|
167
167
|
}
|
|
168
168
|
function buildToolExecutionEnv(requestEnv = {}) {
|
|
169
169
|
const bakedEnv = getBakedExecutableEnv();
|
|
170
|
-
const merged = {
|
|
170
|
+
const merged = {};
|
|
171
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
172
|
+
if (value !== void 0) {
|
|
173
|
+
merged[key] = value;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
Object.assign(merged, bakedEnv);
|
|
171
177
|
for (const [key, value] of Object.entries(requestEnv)) {
|
|
172
178
|
if (value !== void 0) {
|
|
173
179
|
merged[key] = value;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1630,7 +1630,9 @@ var NavigationItemSchema = z7.object({
|
|
|
1630
1630
|
/** URL href (supports Liquid templates with path_params and context) */
|
|
1631
1631
|
href: z7.string(),
|
|
1632
1632
|
/** Optional icon name */
|
|
1633
|
-
icon: z7.string().optional()
|
|
1633
|
+
icon: z7.string().optional(),
|
|
1634
|
+
/** When true, item is omitted from rendered navigation (supports Liquid templates) */
|
|
1635
|
+
hidden: z7.union([z7.boolean(), z7.string()]).optional()
|
|
1634
1636
|
});
|
|
1635
1637
|
var NavigationSectionSchema = z7.object({
|
|
1636
1638
|
/** Section title (supports Liquid templates) */
|
|
@@ -1984,7 +1986,13 @@ function getBakedExecutableEnv() {
|
|
|
1984
1986
|
}
|
|
1985
1987
|
function buildToolExecutionEnv(requestEnv = {}) {
|
|
1986
1988
|
const bakedEnv = getBakedExecutableEnv();
|
|
1987
|
-
const merged = {
|
|
1989
|
+
const merged = {};
|
|
1990
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
1991
|
+
if (value !== void 0) {
|
|
1992
|
+
merged[key] = value;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
Object.assign(merged, bakedEnv);
|
|
1988
1996
|
for (const [key, value] of Object.entries(requestEnv)) {
|
|
1989
1997
|
if (value !== void 0) {
|
|
1990
1998
|
merged[key] = value;
|
package/dist/index.js
CHANGED
|
@@ -1956,7 +1956,9 @@ var NavigationItemSchema = import_v47.z.object({
|
|
|
1956
1956
|
/** URL href (supports Liquid templates with path_params and context) */
|
|
1957
1957
|
href: import_v47.z.string(),
|
|
1958
1958
|
/** Optional icon name */
|
|
1959
|
-
icon: import_v47.z.string().optional()
|
|
1959
|
+
icon: import_v47.z.string().optional(),
|
|
1960
|
+
/** When true, item is omitted from rendered navigation (supports Liquid templates) */
|
|
1961
|
+
hidden: import_v47.z.union([import_v47.z.boolean(), import_v47.z.string()]).optional()
|
|
1960
1962
|
});
|
|
1961
1963
|
var NavigationSectionSchema = import_v47.z.object({
|
|
1962
1964
|
/** Section title (supports Liquid templates) */
|
|
@@ -2310,7 +2312,13 @@ function getBakedExecutableEnv() {
|
|
|
2310
2312
|
}
|
|
2311
2313
|
function buildToolExecutionEnv(requestEnv = {}) {
|
|
2312
2314
|
const bakedEnv = getBakedExecutableEnv();
|
|
2313
|
-
const merged = {
|
|
2315
|
+
const merged = {};
|
|
2316
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
2317
|
+
if (value !== void 0) {
|
|
2318
|
+
merged[key] = value;
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
Object.assign(merged, bakedEnv);
|
|
2314
2322
|
for (const [key, value] of Object.entries(requestEnv)) {
|
|
2315
2323
|
if (value !== void 0) {
|
|
2316
2324
|
merged[key] = value;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -2429,6 +2429,7 @@ export declare const NavigationItemSchema: z.ZodObject<{
|
|
|
2429
2429
|
label: z.ZodString;
|
|
2430
2430
|
href: z.ZodString;
|
|
2431
2431
|
icon: z.ZodOptional<z.ZodString>;
|
|
2432
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2432
2433
|
}, z.core.$strip>;
|
|
2433
2434
|
/** Navigation section with title and items */
|
|
2434
2435
|
export declare const NavigationSectionSchema: z.ZodObject<{
|
|
@@ -2437,6 +2438,7 @@ export declare const NavigationSectionSchema: z.ZodObject<{
|
|
|
2437
2438
|
label: z.ZodString;
|
|
2438
2439
|
href: z.ZodString;
|
|
2439
2440
|
icon: z.ZodOptional<z.ZodString>;
|
|
2441
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2440
2442
|
}, z.core.$strip>>;
|
|
2441
2443
|
}, z.core.$strip>;
|
|
2442
2444
|
/** Sidebar navigation configuration */
|
|
@@ -2447,6 +2449,7 @@ export declare const NavigationSidebarSchema: z.ZodObject<{
|
|
|
2447
2449
|
label: z.ZodString;
|
|
2448
2450
|
href: z.ZodString;
|
|
2449
2451
|
icon: z.ZodOptional<z.ZodString>;
|
|
2452
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2450
2453
|
}, z.core.$strip>>;
|
|
2451
2454
|
}, z.core.$strip>>;
|
|
2452
2455
|
}, z.core.$strip>;
|
|
@@ -2471,6 +2474,7 @@ export declare const NavigationConfigSchema: z.ZodObject<{
|
|
|
2471
2474
|
label: z.ZodString;
|
|
2472
2475
|
href: z.ZodString;
|
|
2473
2476
|
icon: z.ZodOptional<z.ZodString>;
|
|
2477
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2474
2478
|
}, z.core.$strip>>;
|
|
2475
2479
|
}, z.core.$strip>>;
|
|
2476
2480
|
}, z.core.$strip>>;
|
|
@@ -2510,6 +2514,7 @@ export declare const PageDefinitionSchema: z.ZodObject<{
|
|
|
2510
2514
|
label: z.ZodString;
|
|
2511
2515
|
href: z.ZodString;
|
|
2512
2516
|
icon: z.ZodOptional<z.ZodString>;
|
|
2517
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
2513
2518
|
}, z.core.$strip>>;
|
|
2514
2519
|
}, z.core.$strip>>;
|
|
2515
2520
|
}, z.core.$strip>>;
|
|
@@ -3344,6 +3349,7 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3344
3349
|
label: z.ZodString;
|
|
3345
3350
|
href: z.ZodString;
|
|
3346
3351
|
icon: z.ZodOptional<z.ZodString>;
|
|
3352
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
3347
3353
|
}, z.core.$strip>>;
|
|
3348
3354
|
}, z.core.$strip>>;
|
|
3349
3355
|
}, z.core.$strip>>;
|
|
@@ -3377,6 +3383,7 @@ export declare const ProvisionConfigSchema: z.ZodObject<{
|
|
|
3377
3383
|
label: z.ZodString;
|
|
3378
3384
|
href: z.ZodString;
|
|
3379
3385
|
icon: z.ZodOptional<z.ZodString>;
|
|
3386
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
3380
3387
|
}, z.core.$strip>>;
|
|
3381
3388
|
}, z.core.$strip>>;
|
|
3382
3389
|
}, z.core.$strip>>;
|
|
@@ -4048,6 +4055,7 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
4048
4055
|
label: z.ZodString;
|
|
4049
4056
|
href: z.ZodString;
|
|
4050
4057
|
icon: z.ZodOptional<z.ZodString>;
|
|
4058
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
4051
4059
|
}, z.core.$strip>>;
|
|
4052
4060
|
}, z.core.$strip>>;
|
|
4053
4061
|
}, z.core.$strip>>;
|
|
@@ -4081,6 +4089,7 @@ export declare const SkedyulConfigSchema: z.ZodObject<{
|
|
|
4081
4089
|
label: z.ZodString;
|
|
4082
4090
|
href: z.ZodString;
|
|
4083
4091
|
icon: z.ZodOptional<z.ZodString>;
|
|
4092
|
+
hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
4084
4093
|
}, z.core.$strip>>;
|
|
4085
4094
|
}, z.core.$strip>>;
|
|
4086
4095
|
}, z.core.$strip>>;
|
|
@@ -11,8 +11,12 @@ export declare function parseNumberEnv(value?: string): number | null;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare function getBakedExecutableEnv(): Record<string, string>;
|
|
13
13
|
/**
|
|
14
|
-
* Env exposed to tool handlers
|
|
15
|
-
*
|
|
14
|
+
* Env exposed to tool handlers.
|
|
15
|
+
*
|
|
16
|
+
* Layering (lowest → highest priority):
|
|
17
|
+
* 1. process.env — container-local values (`dev serve` loads provision secrets here)
|
|
18
|
+
* 2. MCP_ENV_JSON / MCP_ENV — baked secrets in deployed containers
|
|
19
|
+
* 3. requestEnv — per-request runtime values from the platform (token, API URL)
|
|
16
20
|
*/
|
|
17
21
|
export declare function buildToolExecutionEnv(requestEnv?: Record<string, string | undefined>): Record<string, string | undefined>;
|
|
18
22
|
/**
|
package/dist/server.js
CHANGED
|
@@ -167,7 +167,13 @@ function getBakedExecutableEnv() {
|
|
|
167
167
|
}
|
|
168
168
|
function buildToolExecutionEnv(requestEnv = {}) {
|
|
169
169
|
const bakedEnv = getBakedExecutableEnv();
|
|
170
|
-
const merged = {
|
|
170
|
+
const merged = {};
|
|
171
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
172
|
+
if (value !== void 0) {
|
|
173
|
+
merged[key] = value;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
Object.assign(merged, bakedEnv);
|
|
171
177
|
for (const [key, value] of Object.entries(requestEnv)) {
|
|
172
178
|
if (value !== void 0) {
|
|
173
179
|
merged[key] = value;
|
|
@@ -128,7 +128,13 @@ function getBakedExecutableEnv() {
|
|
|
128
128
|
}
|
|
129
129
|
function buildToolExecutionEnv(requestEnv = {}) {
|
|
130
130
|
const bakedEnv = getBakedExecutableEnv();
|
|
131
|
-
const merged = {
|
|
131
|
+
const merged = {};
|
|
132
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
133
|
+
if (value !== void 0) {
|
|
134
|
+
merged[key] = value;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
Object.assign(merged, bakedEnv);
|
|
132
138
|
for (const [key, value] of Object.entries(requestEnv)) {
|
|
133
139
|
if (value !== void 0) {
|
|
134
140
|
merged[key] = value;
|