@task-shepherd/agent 1.0.5 → 1.0.7

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.
Files changed (81) hide show
  1. package/dist/cli/index.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/meta.json +5 -5
  4. package/package.json +3 -2
  5. package/shared/dist/index.d.ts +15 -0
  6. package/shared/dist/index.js +12 -0
  7. package/shared/dist/mcp-client/client.d.ts +18 -0
  8. package/shared/dist/mcp-client/client.js +49 -0
  9. package/shared/dist/mcp-client/index.d.ts +7 -0
  10. package/shared/dist/mcp-client/index.js +7 -0
  11. package/shared/dist/mcp-client/types.d.ts +822 -0
  12. package/shared/dist/mcp-client/types.js +193 -0
  13. package/shared/dist/schema/index.d.ts +189 -0
  14. package/shared/dist/schema/index.js +142 -0
  15. package/shared/dist/schema/mcp-mappings.d.ts +50 -0
  16. package/shared/dist/schema/mcp-mappings.js +563 -0
  17. package/shared/dist/schema/validation.d.ts +91 -0
  18. package/shared/dist/schema/validation.js +282 -0
  19. package/shared/dist/work-queue/index.d.ts +7 -0
  20. package/shared/dist/work-queue/index.js +7 -0
  21. package/shared/dist/work-queue/types.d.ts +147 -0
  22. package/shared/dist/work-queue/types.js +4 -0
  23. package/shared/dist/work-queue/validation.d.ts +24 -0
  24. package/shared/dist/work-queue/validation.js +160 -0
  25. package/shared/dist/workspace/constants.d.ts +148 -0
  26. package/shared/dist/workspace/constants.js +432 -0
  27. package/shared/dist/workspace/index.d.ts +10 -0
  28. package/shared/dist/workspace/index.js +10 -0
  29. package/shared/dist/workspace/types.d.ts +477 -0
  30. package/shared/dist/workspace/types.js +9 -0
  31. package/shared/dist/workspace/utils.d.ts +79 -0
  32. package/shared/dist/workspace/utils.js +334 -0
  33. package/shared/dist/workspace/validation.d.ts +1312 -0
  34. package/shared/dist/workspace/validation.js +467 -0
  35. package/shared/graphql/generated-internal.ts +3629 -0
  36. package/shared/graphql/generated-public.ts +773 -0
  37. package/shared/graphql/generated.d.ts +7456 -0
  38. package/shared/graphql/generated.js +11799 -0
  39. package/shared/graphql/generated.ts +27569 -0
  40. package/shared/graphql/generated.ts.backup +16531 -0
  41. package/shared/graphql/generated.ts.working +4828 -0
  42. package/shared/graphql/introspection-internal.json +15845 -0
  43. package/shared/graphql/introspection-public.json +9658 -0
  44. package/shared/graphql/introspection.json +44263 -0
  45. package/shared/graphql/operations/ai-service.graphql +131 -0
  46. package/shared/graphql/operations/ai-work-queue.graphql +31 -0
  47. package/shared/graphql/operations/analytics.graphql +283 -0
  48. package/shared/graphql/operations/analytics.ts +3 -0
  49. package/shared/graphql/operations/api-keys.graphql +126 -0
  50. package/shared/graphql/operations/attachments.graphql +53 -0
  51. package/shared/graphql/operations/attachments.ts +39 -0
  52. package/shared/graphql/operations/audit.graphql +46 -0
  53. package/shared/graphql/operations/auth.graphql +83 -0
  54. package/shared/graphql/operations/claude-usage.graphql +178 -0
  55. package/shared/graphql/operations/comments.graphql +4 -0
  56. package/shared/graphql/operations/dashboard.graphql +29 -0
  57. package/shared/graphql/operations/development-plans.graphql +408 -0
  58. package/shared/graphql/operations/early-access.graphql.disabled +21 -0
  59. package/shared/graphql/operations/errors.graphql.disabled +83 -0
  60. package/shared/graphql/operations/internal-api.graphql +931 -0
  61. package/shared/graphql/operations/notifications.graphql +4 -0
  62. package/shared/graphql/operations/organization-invites.graphql.disabled +32 -0
  63. package/shared/graphql/operations/performance.graphql +4 -0
  64. package/shared/graphql/operations/project-reviews.graphql +610 -0
  65. package/shared/graphql/operations/projects.graphql +98 -0
  66. package/shared/graphql/operations/settings.graphql +4 -0
  67. package/shared/graphql/operations/stories.graphql +113 -0
  68. package/shared/graphql/operations/subscriptions.graphql +235 -0
  69. package/shared/graphql/operations/subscriptions.graphql.disabled +96 -0
  70. package/shared/graphql/operations/tasks.graphql +257 -0
  71. package/shared/graphql/operations/team.graphql +111 -0
  72. package/shared/graphql/operations/team.ts +226 -0
  73. package/shared/graphql/operations/time-tracking.graphql.disabled +96 -0
  74. package/shared/graphql/operations/work-queue.graphql +210 -0
  75. package/shared/graphql/operations/work-queue.graphql.disabled +474 -0
  76. package/shared/graphql/operations/workspace.graphql +146 -0
  77. package/shared/graphql/schema-internal.graphql +1085 -0
  78. package/shared/graphql/schema-public.graphql +709 -0
  79. package/shared/graphql/schema.graphql +3473 -0
  80. package/shared/package.json +23 -0
  81. package/web/README.md +68 -0
package/dist/meta.json CHANGED
@@ -819,7 +819,7 @@
819
819
  "format": "esm"
820
820
  },
821
821
  "package.json": {
822
- "bytes": 4134,
822
+ "bytes": 4130,
823
823
  "imports": []
824
824
  },
825
825
  "src/services/AgentVersionService.ts": {
@@ -2211,7 +2211,7 @@
2211
2211
  "bytesInOutput": 685
2212
2212
  },
2213
2213
  "package.json": {
2214
- "bytesInOutput": 3391
2214
+ "bytesInOutput": 3383
2215
2215
  },
2216
2216
  "src/services/AgentVersionService.ts": {
2217
2217
  "bytesInOutput": 1113
@@ -2331,7 +2331,7 @@
2331
2331
  "bytesInOutput": 22573
2332
2332
  }
2333
2333
  },
2334
- "bytes": 367134
2334
+ "bytes": 367126
2335
2335
  },
2336
2336
  "dist/cli/index.js": {
2337
2337
  "imports": [
@@ -2748,7 +2748,7 @@
2748
2748
  "bytesInOutput": 684
2749
2749
  },
2750
2750
  "package.json": {
2751
- "bytesInOutput": 3391
2751
+ "bytesInOutput": 3383
2752
2752
  },
2753
2753
  "src/services/AgentVersionService.ts": {
2754
2754
  "bytesInOutput": 1112
@@ -2817,7 +2817,7 @@
2817
2817
  "bytesInOutput": 4253
2818
2818
  }
2819
2819
  },
2820
- "bytes": 177641
2820
+ "bytes": 177633
2821
2821
  }
2822
2822
  }
2823
2823
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@task-shepherd/agent",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Simplified AI agent service for Task Shepherd project analysis",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -9,6 +9,8 @@
9
9
  "files": [
10
10
  "dist",
11
11
  "mcp-agent",
12
+ "shared",
13
+ "web/dist",
12
14
  "README.md",
13
15
  "LICENSE.md"
14
16
  ],
@@ -48,7 +50,6 @@
48
50
  "dependencies": {
49
51
  "@anthropic-ai/sdk": "^0.56.0",
50
52
  "@graphql-typed-document-node/core": "^3.2.0",
51
- "@task-shepherd/shared": "*",
52
53
  "chalk": "^4.1.2",
53
54
  "commander": "^11.0.0",
54
55
  "compression": "^1.7.4",
@@ -0,0 +1,15 @@
1
+ /**
2
+ * TasqHub Shared Package
3
+ *
4
+ * Centralized exports for all shared types, schemas, and utilities
5
+ * used across TasqHub components.
6
+ */
7
+ export * from './schema/index.js';
8
+ export * from './workspace/index.js';
9
+ export * from './mcp-client/index.js';
10
+ export * from './work-queue/index.js';
11
+ export type { User, Project, Story, Task } from './schema/index.js';
12
+ export type { WorkspaceConfig, ServiceEndpoint, WorkspacePattern, WorkspaceTemplate, WorkspaceInitOptions } from './workspace/index.js';
13
+ export type { WorkAssignment, WorkData, ProjectData, StoryData, WorkspaceConfigData, WorkspaceData, WorkProgress, ReviewApplicationDetails, UpdateAIWorkInput, WorkValidationResult, ValidationError, ValidationWarning } from './work-queue/index.js';
14
+ export { UserRole, UserStatus, ProjectStage, StoryState, TaskState, TaskType, PriorityLevel, AIWorkType, AIWorkerType, AIWorkStatus, SCHEMA_VERSION, SCHEMA_COMPATIBILITY_VERSION } from './schema/index.js';
15
+ export { WORKSPACE_CONFIG_VERSION, WORKSPACE_CONFIG_FILE, WORKSPACE_TEMPLATES, WorkspaceValidator } from './workspace/index.js';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * TasqHub Shared Package
3
+ *
4
+ * Centralized exports for all shared types, schemas, and utilities
5
+ * used across TasqHub components.
6
+ */
7
+ export * from './schema/index.js';
8
+ export * from './workspace/index.js';
9
+ export * from './mcp-client/index.js';
10
+ export * from './work-queue/index.js';
11
+ export { UserRole, UserStatus, ProjectStage, StoryState, TaskState, TaskType, PriorityLevel, AIWorkType, AIWorkerType, AIWorkStatus, SCHEMA_VERSION, SCHEMA_COMPATIBILITY_VERSION } from './schema/index.js';
12
+ export { WORKSPACE_CONFIG_VERSION, WORKSPACE_CONFIG_FILE, WORKSPACE_TEMPLATES, WorkspaceValidator } from './workspace/index.js';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated MCP Client Implementation
3
+ *
4
+ * This file is auto-generated from MCP tool mappings.
5
+ * Do not modify directly - run npm run generate:mcp-client instead.
6
+ */
7
+ import { MCPClient, AllMCPTools } from './types.js';
8
+ export declare class MCPClientImpl implements MCPClient {
9
+ private endpoint;
10
+ private connected;
11
+ connect(endpoint?: string): Promise<void>;
12
+ disconnect(): Promise<void>;
13
+ isConnected(): boolean;
14
+ execute<T extends AllMCPTools>(toolName: T['name'], input: any): Promise<any>;
15
+ listTools(): string[];
16
+ getCapabilities(): string[];
17
+ }
18
+ export declare const mcpClient: MCPClientImpl;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Generated MCP Client Implementation
3
+ *
4
+ * This file is auto-generated from MCP tool mappings.
5
+ * Do not modify directly - run npm run generate:mcp-client instead.
6
+ */
7
+ import { MCP_TOOL_REGISTRY } from './types.js';
8
+ export class MCPClientImpl {
9
+ constructor() {
10
+ this.endpoint = null;
11
+ this.connected = false;
12
+ }
13
+ async connect(endpoint = 'http://localhost:3001') {
14
+ this.endpoint = endpoint;
15
+ // TODO: Implement actual connection logic
16
+ this.connected = true;
17
+ }
18
+ async disconnect() {
19
+ this.endpoint = null;
20
+ this.connected = false;
21
+ }
22
+ isConnected() {
23
+ return this.connected;
24
+ }
25
+ async execute(toolName, input) {
26
+ if (!this.connected) {
27
+ throw new Error('MCP client not connected');
28
+ }
29
+ const tool = MCP_TOOL_REGISTRY[toolName];
30
+ if (!tool) {
31
+ throw new Error(`Unknown tool: ${toolName}`);
32
+ }
33
+ // TODO: Implement actual tool execution
34
+ console.log(`Executing tool ${toolName} with input:`, input);
35
+ return {
36
+ success: true,
37
+ data: null,
38
+ tool: tool.name,
39
+ operation: tool.graphqlOperation
40
+ };
41
+ }
42
+ listTools() {
43
+ return Object.keys(MCP_TOOL_REGISTRY);
44
+ }
45
+ getCapabilities() {
46
+ return Array.from(new Set(Object.values(MCP_TOOL_REGISTRY).map(tool => tool.operationType)));
47
+ }
48
+ }
49
+ export const mcpClient = new MCPClientImpl();
@@ -0,0 +1,7 @@
1
+ /**
2
+ * MCP Client Library
3
+ *
4
+ * Auto-generated TypeScript client for MCP tools based on GraphQL schema mappings.
5
+ */
6
+ export * from './types.js';
7
+ export * from './client.js';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * MCP Client Library
3
+ *
4
+ * Auto-generated TypeScript client for MCP tools based on GraphQL schema mappings.
5
+ */
6
+ export * from './types.js';
7
+ export * from './client.js';