@allpepper/task-orchestrator 1.1.2 → 1.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allpepper/task-orchestrator",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "MCP server for hierarchical task orchestration with SQLite persistence",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -2,10 +2,11 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // --- Shared UUID schemas ---
5
- // These schemas accept standard dashed UUIDs and transform them to dashless format
6
- // to match the storage format in the database
7
- export const uuidSchema = z.string().uuid().transform(v => v.replace(/-/g, '').toLowerCase());
8
- export const optionalUuidSchema = z.string().uuid().optional().transform(v => v ? v.replace(/-/g, '').toLowerCase() : undefined);
5
+ // Accept both dashed (550e8400-e29b-41d4-a716-446655440000) and dashless (550e8400e29b41d4a716446655440000) UUIDs.
6
+ // Always transform to dashless lowercase to match the DB storage format.
7
+ const UUID_REGEX = /^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i;
8
+ export const uuidSchema = z.string().regex(UUID_REGEX, 'Invalid UUID').transform(v => v.replace(/-/g, '').toLowerCase());
9
+ export const optionalUuidSchema = z.string().regex(UUID_REGEX, 'Invalid UUID').optional().transform(v => v ? v.replace(/-/g, '').toLowerCase() : undefined);
9
10
 
10
11
  // --- Tool Definition interface ---
11
12
  export interface ToolDefinition {