@codeguide/core 0.0.36 → 0.0.37
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.
|
@@ -49,7 +49,7 @@ export interface Project {
|
|
|
49
49
|
}>;
|
|
50
50
|
document_types?: string[];
|
|
51
51
|
is_generated?: boolean;
|
|
52
|
-
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp';
|
|
52
|
+
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp' | 'task_only';
|
|
53
53
|
};
|
|
54
54
|
codie_tool_id?: string;
|
|
55
55
|
existing_project_repo_url?: string | null;
|
|
@@ -135,7 +135,7 @@ export interface CreateProjectRequest {
|
|
|
135
135
|
}>;
|
|
136
136
|
document_types?: string[];
|
|
137
137
|
is_generated?: boolean;
|
|
138
|
-
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp';
|
|
138
|
+
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp' | 'task_only';
|
|
139
139
|
};
|
|
140
140
|
codie_tool_id?: string;
|
|
141
141
|
existing_project_repo_url?: string;
|
|
@@ -172,7 +172,7 @@ export interface UpdateProjectRequest {
|
|
|
172
172
|
}>;
|
|
173
173
|
document_types?: string[];
|
|
174
174
|
is_generated?: boolean;
|
|
175
|
-
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp';
|
|
175
|
+
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp' | 'task_only';
|
|
176
176
|
};
|
|
177
177
|
codie_tool_id?: string;
|
|
178
178
|
existing_project_repo_url?: string;
|
|
@@ -27,6 +27,7 @@ export declare class TaskService extends BaseService {
|
|
|
27
27
|
generateTasks(request: GenerateTasksRequest): Promise<GenerateTasksResponse>;
|
|
28
28
|
generateTasksCustomBackground(request: GenerateTasksCustomBackgroundRequest): Promise<GenerateTasksCustomBackgroundResponse>;
|
|
29
29
|
getTasksByProject(request: GetTasksByProjectRequest): Promise<GetTasksByProjectResponse>;
|
|
30
|
+
getLatestTasksByProject(projectId: string): Promise<GetTasksByProjectResponse>;
|
|
30
31
|
updateTask(taskId: string, request: UpdateTaskRequest): Promise<UpdateTaskResponse>;
|
|
31
32
|
getProjectTasksbyCodespace(codespaceTaskId: string): Promise<ProjectTaskListResponse>;
|
|
32
33
|
generatePrompt(taskId: string, request?: GeneratePromptRequest): Promise<GeneratePromptResponse>;
|
|
@@ -130,6 +130,11 @@ class TaskService extends base_service_1.BaseService {
|
|
|
130
130
|
const url = `/project-tasks/by-project/${request.project_id}${queryParams.toString() ? `?${queryParams.toString()}` : ''}`;
|
|
131
131
|
return this.get(url);
|
|
132
132
|
}
|
|
133
|
+
// Get Latest Tasks by Project (from most recent task group)
|
|
134
|
+
async getLatestTasksByProject(projectId) {
|
|
135
|
+
const url = `/project-tasks/by-project/${projectId}/latest`;
|
|
136
|
+
return this.get(url);
|
|
137
|
+
}
|
|
133
138
|
// Update Task
|
|
134
139
|
async updateTask(taskId, request) {
|
|
135
140
|
return this.put(`/project-tasks/${taskId}`, request);
|
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ export interface Project {
|
|
|
51
51
|
}>
|
|
52
52
|
document_types?: string[]
|
|
53
53
|
is_generated?: boolean
|
|
54
|
-
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp'
|
|
54
|
+
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp' | 'task_only'
|
|
55
55
|
}
|
|
56
56
|
codie_tool_id?: string
|
|
57
57
|
existing_project_repo_url?: string | null
|
|
@@ -144,7 +144,7 @@ export interface CreateProjectRequest {
|
|
|
144
144
|
}>
|
|
145
145
|
document_types?: string[]
|
|
146
146
|
is_generated?: boolean
|
|
147
|
-
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp'
|
|
147
|
+
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp' | 'task_only'
|
|
148
148
|
}
|
|
149
149
|
codie_tool_id?: string
|
|
150
150
|
existing_project_repo_url?: string
|
|
@@ -182,7 +182,7 @@ export interface UpdateProjectRequest {
|
|
|
182
182
|
}>
|
|
183
183
|
document_types?: string[]
|
|
184
184
|
is_generated?: boolean
|
|
185
|
-
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp'
|
|
185
|
+
project_mode?: 'prd_only' | 'full_application' | 'prototype' | 'mvp' | 'task_only'
|
|
186
186
|
}
|
|
187
187
|
codie_tool_id?: string
|
|
188
188
|
existing_project_repo_url?: string
|
|
@@ -189,6 +189,12 @@ export class TaskService extends BaseService {
|
|
|
189
189
|
return this.get<GetTasksByProjectResponse>(url)
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
+
// Get Latest Tasks by Project (from most recent task group)
|
|
193
|
+
async getLatestTasksByProject(projectId: string): Promise<GetTasksByProjectResponse> {
|
|
194
|
+
const url = `/project-tasks/by-project/${projectId}/latest`
|
|
195
|
+
return this.get<GetTasksByProjectResponse>(url)
|
|
196
|
+
}
|
|
197
|
+
|
|
192
198
|
// Update Task
|
|
193
199
|
async updateTask(taskId: string, request: UpdateTaskRequest): Promise<UpdateTaskResponse> {
|
|
194
200
|
return this.put<UpdateTaskResponse>(`/project-tasks/${taskId}`, request)
|