@task-shepherd/agent 1.0.6 → 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.
- package/dist/cli/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.json +5 -5
- package/package.json +2 -2
- package/shared/dist/index.d.ts +15 -0
- package/shared/dist/index.js +12 -0
- package/shared/dist/mcp-client/client.d.ts +18 -0
- package/shared/dist/mcp-client/client.js +49 -0
- package/shared/dist/mcp-client/index.d.ts +7 -0
- package/shared/dist/mcp-client/index.js +7 -0
- package/shared/dist/mcp-client/types.d.ts +822 -0
- package/shared/dist/mcp-client/types.js +193 -0
- package/shared/dist/schema/index.d.ts +189 -0
- package/shared/dist/schema/index.js +142 -0
- package/shared/dist/schema/mcp-mappings.d.ts +50 -0
- package/shared/dist/schema/mcp-mappings.js +563 -0
- package/shared/dist/schema/validation.d.ts +91 -0
- package/shared/dist/schema/validation.js +282 -0
- package/shared/dist/work-queue/index.d.ts +7 -0
- package/shared/dist/work-queue/index.js +7 -0
- package/shared/dist/work-queue/types.d.ts +147 -0
- package/shared/dist/work-queue/types.js +4 -0
- package/shared/dist/work-queue/validation.d.ts +24 -0
- package/shared/dist/work-queue/validation.js +160 -0
- package/shared/dist/workspace/constants.d.ts +148 -0
- package/shared/dist/workspace/constants.js +432 -0
- package/shared/dist/workspace/index.d.ts +10 -0
- package/shared/dist/workspace/index.js +10 -0
- package/shared/dist/workspace/types.d.ts +477 -0
- package/shared/dist/workspace/types.js +9 -0
- package/shared/dist/workspace/utils.d.ts +79 -0
- package/shared/dist/workspace/utils.js +334 -0
- package/shared/dist/workspace/validation.d.ts +1312 -0
- package/shared/dist/workspace/validation.js +467 -0
- package/shared/graphql/generated-internal.ts +3629 -0
- package/shared/graphql/generated-public.ts +773 -0
- package/shared/graphql/generated.d.ts +7456 -0
- package/shared/graphql/generated.js +11799 -0
- package/shared/graphql/generated.ts +27569 -0
- package/shared/graphql/generated.ts.backup +16531 -0
- package/shared/graphql/generated.ts.working +4828 -0
- package/shared/graphql/introspection-internal.json +15845 -0
- package/shared/graphql/introspection-public.json +9658 -0
- package/shared/graphql/introspection.json +44263 -0
- package/shared/graphql/operations/ai-service.graphql +131 -0
- package/shared/graphql/operations/ai-work-queue.graphql +31 -0
- package/shared/graphql/operations/analytics.graphql +283 -0
- package/shared/graphql/operations/analytics.ts +3 -0
- package/shared/graphql/operations/api-keys.graphql +126 -0
- package/shared/graphql/operations/attachments.graphql +53 -0
- package/shared/graphql/operations/attachments.ts +39 -0
- package/shared/graphql/operations/audit.graphql +46 -0
- package/shared/graphql/operations/auth.graphql +83 -0
- package/shared/graphql/operations/claude-usage.graphql +178 -0
- package/shared/graphql/operations/comments.graphql +4 -0
- package/shared/graphql/operations/dashboard.graphql +29 -0
- package/shared/graphql/operations/development-plans.graphql +408 -0
- package/shared/graphql/operations/early-access.graphql.disabled +21 -0
- package/shared/graphql/operations/errors.graphql.disabled +83 -0
- package/shared/graphql/operations/internal-api.graphql +931 -0
- package/shared/graphql/operations/notifications.graphql +4 -0
- package/shared/graphql/operations/organization-invites.graphql.disabled +32 -0
- package/shared/graphql/operations/performance.graphql +4 -0
- package/shared/graphql/operations/project-reviews.graphql +610 -0
- package/shared/graphql/operations/projects.graphql +98 -0
- package/shared/graphql/operations/settings.graphql +4 -0
- package/shared/graphql/operations/stories.graphql +113 -0
- package/shared/graphql/operations/subscriptions.graphql +235 -0
- package/shared/graphql/operations/subscriptions.graphql.disabled +96 -0
- package/shared/graphql/operations/tasks.graphql +257 -0
- package/shared/graphql/operations/team.graphql +111 -0
- package/shared/graphql/operations/team.ts +226 -0
- package/shared/graphql/operations/time-tracking.graphql.disabled +96 -0
- package/shared/graphql/operations/work-queue.graphql +210 -0
- package/shared/graphql/operations/work-queue.graphql.disabled +474 -0
- package/shared/graphql/operations/workspace.graphql +146 -0
- package/shared/graphql/schema-internal.graphql +1085 -0
- package/shared/graphql/schema-public.graphql +709 -0
- package/shared/graphql/schema.graphql +3473 -0
- package/shared/package.json +23 -0
package/dist/meta.json
CHANGED
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
"format": "esm"
|
|
820
820
|
},
|
|
821
821
|
"package.json": {
|
|
822
|
-
"bytes":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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.
|
|
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,7 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"mcp-agent",
|
|
12
|
+
"shared",
|
|
12
13
|
"web/dist",
|
|
13
14
|
"README.md",
|
|
14
15
|
"LICENSE.md"
|
|
@@ -49,7 +50,6 @@
|
|
|
49
50
|
"dependencies": {
|
|
50
51
|
"@anthropic-ai/sdk": "^0.56.0",
|
|
51
52
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
52
|
-
"@task-shepherd/shared": "*",
|
|
53
53
|
"chalk": "^4.1.2",
|
|
54
54
|
"commander": "^11.0.0",
|
|
55
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();
|