skedyul 1.2.25 → 1.2.27
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 +1 -1
- package/dist/dockerfile.d.ts +1 -1
- package/dist/esm/index.mjs +5 -9
- package/dist/index.js +5 -9
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -5002,7 +5002,7 @@ async function transpileTypeScript(filePath) {
|
|
|
5002
5002
|
const configDir = path7.dirname(path7.resolve(filePath));
|
|
5003
5003
|
let transpiled = content.replace(/import\s+type\s+\{[^}]+\}\s+from\s+['"][^'"]+['"]\s*;?\n?/g, "").replace(/import\s+\{\s*defineConfig\s*\}\s+from\s+['"]skedyul['"]\s*;?\n?/g, "").replace(/:\s*SkedyulConfig/g, "").replace(/export\s+default\s+/, "module.exports = ").replace(/defineConfig\s*\(\s*\{/, "{").replace(/\}\s*\)\s*;?\s*$/, "}");
|
|
5004
5004
|
transpiled = transpiled.replace(
|
|
5005
|
-
/import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]
|
|
5005
|
+
/import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]\s*(?:with\s*\{[^}]*\})?/g,
|
|
5006
5006
|
(match, varName, relativePath) => {
|
|
5007
5007
|
const absolutePath = path7.resolve(configDir, relativePath);
|
|
5008
5008
|
return `const ${varName} = require('${absolutePath.replace(/\\/g, "/")}')`;
|
package/dist/dockerfile.d.ts
CHANGED
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* - BUILD_EXTERNAL: comma-separated list of external dependencies (e.g., 'twilio,stripe')
|
|
14
14
|
* - MCP_ENV_JSON: JSON string of environment variables to bake into the image
|
|
15
15
|
*/
|
|
16
|
-
export declare const DEFAULT_DOCKERFILE = "# =============================================================================\n# BUILDER STAGE - Common build for all targets\n# =============================================================================\nFROM public.ecr.aws/docker/library/node:22-alpine AS builder\n\nARG COMPUTE_LAYER=serverless\nARG BUILD_EXTERNAL=\"\"\nWORKDIR /app\n\n# Install pnpm\nRUN corepack enable && corepack prepare pnpm@latest --activate\n\n# Copy
|
|
16
|
+
export declare const DEFAULT_DOCKERFILE = "# =============================================================================\n# BUILDER STAGE - Common build for all targets\n# =============================================================================\nFROM public.ecr.aws/docker/library/node:22-alpine AS builder\n\nARG COMPUTE_LAYER=serverless\nARG BUILD_EXTERNAL=\"\"\nWORKDIR /app\n\n# Install pnpm\nRUN corepack enable && corepack prepare pnpm@latest --activate\n\n# Copy all project files (excluding node_modules via .dockerignore)\n# This includes: package.json, tsconfig.json, skedyul.config.ts, provision.ts, env.ts\n# And directories: src/, crm/, channels/, pages/, workflows/, agents/, etc.\nCOPY . .\n\n# Install dependencies (including dev deps for build), compile, export config, smoke test, then prune\n# Note: Using --no-frozen-lockfile since lockfile may not exist\n# skedyul build reads computeLayer from skedyul.config.ts\n# skedyul config:export resolves all dynamic imports and writes .skedyul/config.json\n# Smoke test runs before pruning since skedyul CLI is a dev dependency\nRUN pnpm install --no-frozen-lockfile && \\\n pnpm run build && \\\n pnpm exec skedyul config:export && \\\n pnpm exec skedyul smoke-test && \\\n pnpm prune --prod && \\\n pnpm store prune && \\\n rm -rf /tmp/* /var/cache/apk/* ~/.npm\n\n# =============================================================================\n# DEDICATED STAGE - For local Docker and ECS deployments (HTTP server)\n# =============================================================================\nFROM public.ecr.aws/docker/library/node:22-alpine AS dedicated\n\nWORKDIR /app\n\n# Copy built artifacts\nCOPY --from=builder /app/node_modules ./node_modules\nCOPY --from=builder /app/dist ./dist\nCOPY --from=builder /app/package.json ./package.json\nCOPY --from=builder /app/.skedyul ./.skedyul\n\n# Allow overriding the baked-in MCP env at runtime\nARG MCP_ENV_JSON=\"{}\"\nENV MCP_ENV_JSON=${MCP_ENV_JSON}\n\n# Expose the HTTP port\nEXPOSE 3000\n\n# Run as HTTP server (dedicated mode auto-detected by absence of AWS_LAMBDA_FUNCTION_NAME)\n# Support both .js (dedicated builds) and .mjs (serverless builds) extensions\nCMD [\"sh\", \"-c\", \"node dist/server/mcp_server.mjs 2>/dev/null || node dist/server/mcp_server.js\"]\n\n# =============================================================================\n# SERVERLESS STAGE - For AWS Lambda deployments\n# =============================================================================\nFROM public.ecr.aws/lambda/nodejs:22 AS serverless\n\nWORKDIR ${LAMBDA_TASK_ROOT}\n\nCOPY --from=builder /app/node_modules ./node_modules\nCOPY --from=builder /app/dist ./dist\nCOPY --from=builder /app/package.json ./package.json\nCOPY --from=builder /app/.skedyul ./.skedyul\n\n# Allow overriding the baked-in MCP env at runtime\nARG MCP_ENV_JSON=\"{}\"\nENV MCP_ENV_JSON=${MCP_ENV_JSON}\n\n# Lambda handler format\nCMD [\"dist/server/mcp_server.handler\"]\n\n# =============================================================================\n# DEFAULT - Use dedicated for local development, override with --target for production\n# =============================================================================\nFROM dedicated\n";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -3854,14 +3854,10 @@ WORKDIR /app
|
|
|
3854
3854
|
# Install pnpm
|
|
3855
3855
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
|
3856
3856
|
|
|
3857
|
-
# Copy
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
# Copy optional root-level TypeScript files (provision.ts, env.ts, etc.)
|
|
3862
|
-
# Using a wildcard that copies all .ts files from root except those in src/
|
|
3863
|
-
# Note: tsup.config.ts is optional - skedyul build generates it if not present
|
|
3864
|
-
COPY *.ts ./
|
|
3857
|
+
# Copy all project files (excluding node_modules via .dockerignore)
|
|
3858
|
+
# This includes: package.json, tsconfig.json, skedyul.config.ts, provision.ts, env.ts
|
|
3859
|
+
# And directories: src/, crm/, channels/, pages/, workflows/, agents/, etc.
|
|
3860
|
+
COPY . .
|
|
3865
3861
|
|
|
3866
3862
|
# Install dependencies (including dev deps for build), compile, export config, smoke test, then prune
|
|
3867
3863
|
# Note: Using --no-frozen-lockfile since lockfile may not exist
|
|
@@ -3968,7 +3964,7 @@ async function transpileTypeScript(filePath) {
|
|
|
3968
3964
|
const configDir = path.dirname(path.resolve(filePath));
|
|
3969
3965
|
let transpiled = content.replace(/import\s+type\s+\{[^}]+\}\s+from\s+['"][^'"]+['"]\s*;?\n?/g, "").replace(/import\s+\{\s*defineConfig\s*\}\s+from\s+['"]skedyul['"]\s*;?\n?/g, "").replace(/:\s*SkedyulConfig/g, "").replace(/export\s+default\s+/, "module.exports = ").replace(/defineConfig\s*\(\s*\{/, "{").replace(/\}\s*\)\s*;?\s*$/, "}");
|
|
3970
3966
|
transpiled = transpiled.replace(
|
|
3971
|
-
/import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]
|
|
3967
|
+
/import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]\s*(?:with\s*\{[^}]*\})?/g,
|
|
3972
3968
|
(match, varName, relativePath) => {
|
|
3973
3969
|
const absolutePath = path.resolve(configDir, relativePath);
|
|
3974
3970
|
return `const ${varName} = require('${absolutePath.replace(/\\/g, "/")}')`;
|
package/dist/index.js
CHANGED
|
@@ -4020,14 +4020,10 @@ WORKDIR /app
|
|
|
4020
4020
|
# Install pnpm
|
|
4021
4021
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
|
4022
4022
|
|
|
4023
|
-
# Copy
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
# Copy optional root-level TypeScript files (provision.ts, env.ts, etc.)
|
|
4028
|
-
# Using a wildcard that copies all .ts files from root except those in src/
|
|
4029
|
-
# Note: tsup.config.ts is optional - skedyul build generates it if not present
|
|
4030
|
-
COPY *.ts ./
|
|
4023
|
+
# Copy all project files (excluding node_modules via .dockerignore)
|
|
4024
|
+
# This includes: package.json, tsconfig.json, skedyul.config.ts, provision.ts, env.ts
|
|
4025
|
+
# And directories: src/, crm/, channels/, pages/, workflows/, agents/, etc.
|
|
4026
|
+
COPY . .
|
|
4031
4027
|
|
|
4032
4028
|
# Install dependencies (including dev deps for build), compile, export config, smoke test, then prune
|
|
4033
4029
|
# Note: Using --no-frozen-lockfile since lockfile may not exist
|
|
@@ -4134,7 +4130,7 @@ async function transpileTypeScript(filePath) {
|
|
|
4134
4130
|
const configDir = path.dirname(path.resolve(filePath));
|
|
4135
4131
|
let transpiled = content.replace(/import\s+type\s+\{[^}]+\}\s+from\s+['"][^'"]+['"]\s*;?\n?/g, "").replace(/import\s+\{\s*defineConfig\s*\}\s+from\s+['"]skedyul['"]\s*;?\n?/g, "").replace(/:\s*SkedyulConfig/g, "").replace(/export\s+default\s+/, "module.exports = ").replace(/defineConfig\s*\(\s*\{/, "{").replace(/\}\s*\)\s*;?\s*$/, "}");
|
|
4136
4132
|
transpiled = transpiled.replace(
|
|
4137
|
-
/import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]
|
|
4133
|
+
/import\s+(\w+)\s+from\s+['"](\.[^'"]+)['"]\s*(?:with\s*\{[^}]*\})?/g,
|
|
4138
4134
|
(match, varName, relativePath) => {
|
|
4139
4135
|
const absolutePath = path.resolve(configDir, relativePath);
|
|
4140
4136
|
return `const ${varName} = require('${absolutePath.replace(/\\/g, "/")}')`;
|