skedyul 0.3.2 → 0.3.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/.build-stamp +1 -1
- package/dist/dockerfile.d.ts +1 -1
- package/dist/dockerfile.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +397 -397
- package/dist/server/context-logger.d.ts +23 -0
- package/dist/server/context-logger.js +89 -0
- package/dist/server/dedicated.js +34 -12
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +9 -1
- package/dist/server/serverless.js +28 -10
- package/dist/server/tool-handler.js +15 -8
- package/dist/server/types.d.ts +2 -1
- package/dist/types/handlers.d.ts +9 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +6 -1
- package/dist/types/invocation.d.ts +71 -0
- package/dist/types/invocation.js +61 -0
- package/dist/types/tool-context.d.ts +3 -0
- package/dist/types/tool.d.ts +1 -1
- package/dist/types/tool.js +5 -5
- package/dist/types/webhook.d.ts +3 -0
- package/package.json +4 -3
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1771566817944
|
package/dist/dockerfile.d.ts
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Supports both dedicated (Docker/ECS) and serverless (Lambda) deployments.
|
|
10
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";
|
|
11
|
+
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\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 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\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";
|
package/dist/dockerfile.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.DEFAULT_DOCKERFILE = void 0;
|
|
|
14
14
|
exports.DEFAULT_DOCKERFILE = `# =============================================================================
|
|
15
15
|
# BUILDER STAGE - Common build for all targets
|
|
16
16
|
# =============================================================================
|
|
17
|
-
FROM node:22-alpine AS builder
|
|
17
|
+
FROM public.ecr.aws/docker/library/node:22-alpine AS builder
|
|
18
18
|
|
|
19
19
|
WORKDIR /app
|
|
20
20
|
|
|
@@ -36,7 +36,7 @@ RUN pnpm install --no-frozen-lockfile && \\
|
|
|
36
36
|
# =============================================================================
|
|
37
37
|
# DEDICATED STAGE - For local Docker and ECS deployments (HTTP server)
|
|
38
38
|
# =============================================================================
|
|
39
|
-
FROM node:22-alpine AS dedicated
|
|
39
|
+
FROM public.ecr.aws/docker/library/node:22-alpine AS dedicated
|
|
40
40
|
|
|
41
41
|
WORKDIR /app
|
|
42
42
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
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.AppAuthInvalidError = exports.ConnectionError = exports.InvalidConfigurationError = exports.AuthenticationError = exports.MissingRequiredFieldError = exports.InstallError = exports.DEFAULT_DOCKERFILE = exports.server = exports.ToolResponseMetaSchema = void 0;
|
|
18
|
-
const
|
|
19
|
-
Object.defineProperty(exports, "z", { enumerable: true, get: function () { return
|
|
18
|
+
const v4_1 = require("zod/v4");
|
|
19
|
+
Object.defineProperty(exports, "z", { enumerable: true, get: function () { return v4_1.z; } });
|
|
20
20
|
__exportStar(require("./types"), exports);
|
|
21
21
|
var types_1 = require("./types");
|
|
22
22
|
Object.defineProperty(exports, "ToolResponseMetaSchema", { enumerable: true, get: function () { return types_1.ToolResponseMetaSchema; } });
|
|
@@ -46,7 +46,7 @@ Object.defineProperty(exports, "configure", { enumerable: true, get: function ()
|
|
|
46
46
|
Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return client_1.getConfig; } });
|
|
47
47
|
Object.defineProperty(exports, "runWithConfig", { enumerable: true, get: function () { return client_1.runWithConfig; } });
|
|
48
48
|
// Default export for ESM compatibility when importing from CJS
|
|
49
|
-
exports.default = { z:
|
|
49
|
+
exports.default = { z: v4_1.z };
|
|
50
50
|
var config_1 = require("./config");
|
|
51
51
|
Object.defineProperty(exports, "defineConfig", { enumerable: true, get: function () { return config_1.defineConfig; } });
|
|
52
52
|
Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return config_1.loadConfig; } });
|
package/dist/schemas.d.ts
CHANGED