Files
operations/package.json
glm-5.1 ca2021bd3d fix: resolve M-01..M-02, M-05..M-08, L-01..L-03, L-05 from pre-release review
M-01: Compose OperationDefinitionSchema from OperationSpecSchema via Type.Intersect
M-02: Extract from_openapi to subpath export, remove from main entry
M-05: Fix mapError fragile includes() matching — use startsWith(code+':') or exact
M-06: Replace any casts with MCPClientLike/MCPToolResult interfaces in from_mcp
M-07: Add injectable fetch to HTTPServiceConfig for from_openapi
M-08: Add OpenAPIServiceRegistry with lifecycle methods (add, remove, registerAll)
L-01: Validate subscription handler type at registration and runtime
L-02: Strengthen isResponseEnvelope with source-specific field validation
L-03: Add logger.warn on FromSchema fallback to Type.Unknown
L-04: Noted as intentional (SSE GET body handling)
L-05: Add registerAll to MCPClientLoader and OpenAPIServiceRegistry
2026-05-16 14:56:13 +00:00

106 lines
2.4 KiB
JSON

{
"name": "@alkdev/operations",
"version": "0.1.0",
"description": "Typed operations registry, call protocol, and adapters (MCP, OpenAPI)",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./from-mcp": {
"import": {
"types": "./dist/from-mcp.d.ts",
"default": "./dist/from-mcp.js"
},
"require": {
"types": "./dist/from-mcp.d.cts",
"default": "./dist/from-mcp.cjs"
}
},
"./from-typemap": {
"import": {
"types": "./dist/from-typemap.d.ts",
"default": "./dist/from-typemap.js"
},
"require": {
"types": "./dist/from-typemap.d.cts",
"default": "./dist/from-typemap.cjs"
}
},
"./from-openapi": {
"import": {
"types": "./dist/from-openapi.d.ts",
"default": "./dist/from-openapi.js"
},
"require": {
"types": "./dist/from-openapi.d.cts",
"default": "./dist/from-openapi.cjs"
}
}
},
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"build:tsc": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "tsc --noEmit",
"prepublishOnly": "npm run build"
},
"keywords": [
"operations",
"registry",
"call-protocol",
"mcp",
"openapi",
"typebox"
],
"license": "MIT OR Apache-2.0",
"dependencies": {
"@alkdev/pubsub": "^0.1.0",
"@alkdev/typebox": "^0.34.49",
"@logtape/logtape": "^2.0.0"
},
"peerDependencies": {
"@alkdev/typemap": "^0.10.0",
"@modelcontextprotocol/sdk": "^1.0.0"
},
"peerDependenciesMeta": {
"@modelcontextprotocol/sdk": {
"optional": true
},
"@alkdev/typemap": {
"optional": true
}
},
"devDependencies": {
"@alkdev/typemap": "^0.10.1",
"@modelcontextprotocol/sdk": "^1.12.1",
"@types/node": "^22.0.0",
"@vitest/coverage-v8": "^3.2.4",
"tsup": "^8.5.1",
"typescript": "^5.7.0",
"valibot": "^1.4.0",
"vitest": "^3.1.0"
},
"engines": {
"node": ">=18.0.0"
}
}