skedyul 0.2.124 → 0.2.126

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/.build-stamp CHANGED
@@ -1 +1 @@
1
- 1769917245491
1
+ 1769918922158
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Default Dockerfile Template for Node.js/TypeScript Integrations
3
+ * ================================================================
4
+ *
5
+ * This template is used when an integration doesn't provide its own Dockerfile.
6
+ * The build system detects the SDK from the skedyul.config.* extension:
7
+ * - .ts/.js/.mjs/.cjs → skedyul-node → this Dockerfile
8
+ *
9
+ * Supports both dedicated (Docker/ECS) and serverless (Lambda) deployments.
10
+ */
11
+ export declare const DEFAULT_DOCKERFILE = "# =============================================================================\n# BUILDER STAGE - Common build for all targets\n# =============================================================================\nFROM node:22-alpine AS builder\n\nWORKDIR /app\n\n# Install pnpm\nRUN corepack enable && corepack prepare pnpm@latest --activate\n\n# Copy package files (lockfile is optional)\nCOPY package.json tsconfig.json tsup.config.ts ./\nCOPY src ./src\n\n# Install dependencies (including dev deps for build), compile, then prune\n# Note: Using --no-frozen-lockfile since lockfile may not exist\nRUN pnpm install --no-frozen-lockfile && \\\n pnpm run build && \\\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 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\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)\nCMD [\"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\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";
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /**
3
+ * Default Dockerfile Template for Node.js/TypeScript Integrations
4
+ * ================================================================
5
+ *
6
+ * This template is used when an integration doesn't provide its own Dockerfile.
7
+ * The build system detects the SDK from the skedyul.config.* extension:
8
+ * - .ts/.js/.mjs/.cjs → skedyul-node → this Dockerfile
9
+ *
10
+ * Supports both dedicated (Docker/ECS) and serverless (Lambda) deployments.
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.DEFAULT_DOCKERFILE = void 0;
14
+ exports.DEFAULT_DOCKERFILE = `# =============================================================================
15
+ # BUILDER STAGE - Common build for all targets
16
+ # =============================================================================
17
+ FROM node:22-alpine AS builder
18
+
19
+ WORKDIR /app
20
+
21
+ # Install pnpm
22
+ RUN corepack enable && corepack prepare pnpm@latest --activate
23
+
24
+ # Copy package files (lockfile is optional)
25
+ COPY package.json tsconfig.json tsup.config.ts ./
26
+ COPY src ./src
27
+
28
+ # Install dependencies (including dev deps for build), compile, then prune
29
+ # Note: Using --no-frozen-lockfile since lockfile may not exist
30
+ RUN pnpm install --no-frozen-lockfile && \\
31
+ pnpm run build && \\
32
+ pnpm prune --prod && \\
33
+ pnpm store prune && \\
34
+ rm -rf /tmp/* /var/cache/apk/* ~/.npm
35
+
36
+ # =============================================================================
37
+ # DEDICATED STAGE - For local Docker and ECS deployments (HTTP server)
38
+ # =============================================================================
39
+ FROM node:22-alpine AS dedicated
40
+
41
+ WORKDIR /app
42
+
43
+ # Copy built artifacts
44
+ COPY --from=builder /app/node_modules ./node_modules
45
+ COPY --from=builder /app/dist ./dist
46
+
47
+ # Allow overriding the baked-in MCP env at runtime
48
+ ARG MCP_ENV_JSON="{}"
49
+ ENV MCP_ENV_JSON=\${MCP_ENV_JSON}
50
+
51
+ # Expose the HTTP port
52
+ EXPOSE 3000
53
+
54
+ # Run as HTTP server (dedicated mode auto-detected by absence of AWS_LAMBDA_FUNCTION_NAME)
55
+ CMD ["node", "dist/server/mcp_server.js"]
56
+
57
+ # =============================================================================
58
+ # SERVERLESS STAGE - For AWS Lambda deployments
59
+ # =============================================================================
60
+ FROM public.ecr.aws/lambda/nodejs:22 AS serverless
61
+
62
+ WORKDIR \${LAMBDA_TASK_ROOT}
63
+
64
+ COPY --from=builder /app/node_modules ./node_modules
65
+ COPY --from=builder /app/dist ./dist
66
+
67
+ # Allow overriding the baked-in MCP env at runtime
68
+ ARG MCP_ENV_JSON="{}"
69
+ ENV MCP_ENV_JSON=\${MCP_ENV_JSON}
70
+
71
+ # Lambda handler format
72
+ CMD ["dist/server/mcp_server.handler"]
73
+
74
+ # =============================================================================
75
+ # DEFAULT - Use dedicated for local development, override with --target for production
76
+ # =============================================================================
77
+ FROM dedicated
78
+ `;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export * from './types';
3
3
  export * from './schemas';
4
4
  export { server } from './server';
5
+ export { DEFAULT_DOCKERFILE } from './dockerfile';
5
6
  export { z };
6
7
  export { workplace, communicationChannel, instance, token, file, webhook, resource, contactAssociationLink, configure, getConfig, runWithConfig, } from './core/client';
7
8
  export type { InstanceContext, InstanceData, InstanceMeta, InstancePagination, InstanceListResult, InstanceListArgs, FileUrlResponse, FileUploadParams, FileUploadResult, WebhookCreateResult, WebhookListItem, WebhookDeleteByNameOptions, WebhookListOptions, ResourceLinkParams, ResourceLinkResult, ContactAssociationLinkCreateParams, ContactAssociationLinkCreateResult, } from './core/client';
package/dist/index.js CHANGED
@@ -14,13 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.getRequiredInstallEnvKeys = exports.getAllEnvKeys = exports.CONFIG_FILE_NAMES = exports.validateConfig = exports.loadConfig = exports.defineConfig = exports.runWithConfig = exports.getConfig = exports.configure = exports.contactAssociationLink = exports.resource = exports.webhook = exports.file = exports.token = exports.instance = exports.communicationChannel = exports.workplace = exports.z = exports.server = void 0;
17
+ exports.getRequiredInstallEnvKeys = exports.getAllEnvKeys = exports.CONFIG_FILE_NAMES = exports.validateConfig = exports.loadConfig = exports.defineConfig = exports.runWithConfig = exports.getConfig = exports.configure = exports.contactAssociationLink = exports.resource = exports.webhook = exports.file = exports.token = exports.instance = exports.communicationChannel = exports.workplace = exports.z = exports.DEFAULT_DOCKERFILE = exports.server = void 0;
18
18
  const zod_1 = require("zod");
19
19
  Object.defineProperty(exports, "z", { enumerable: true, get: function () { return zod_1.z; } });
20
20
  __exportStar(require("./types"), exports);
21
21
  __exportStar(require("./schemas"), exports);
22
22
  var server_1 = require("./server");
23
23
  Object.defineProperty(exports, "server", { enumerable: true, get: function () { return server_1.server; } });
24
+ var dockerfile_1 = require("./dockerfile");
25
+ Object.defineProperty(exports, "DEFAULT_DOCKERFILE", { enumerable: true, get: function () { return dockerfile_1.DEFAULT_DOCKERFILE; } });
24
26
  var client_1 = require("./core/client");
25
27
  Object.defineProperty(exports, "workplace", { enumerable: true, get: function () { return client_1.workplace; } });
26
28
  Object.defineProperty(exports, "communicationChannel", { enumerable: true, get: function () { return client_1.communicationChannel; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "0.2.124",
3
+ "version": "0.2.126",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",