@codeguide/core 0.0.25 → 0.0.27
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/examples/project-filtering-example.js +3 -3
- package/dist/services/codespace/codespace-types.d.ts +2 -0
- package/dist/services/projects/project-types.d.ts +4 -6
- package/examples/project-filtering-example.ts +3 -3
- package/package.json +1 -1
- package/services/codespace/codespace-types.ts +3 -1
- package/services/projects/project-types.ts +4 -6
|
@@ -49,8 +49,8 @@ async function demonstrateProjectFiltering() {
|
|
|
49
49
|
status: 'active'
|
|
50
50
|
};
|
|
51
51
|
const paginatedResponse = await codeGuide.projects.getPaginatedProjects(paginatedRequest);
|
|
52
|
-
console.log(`Page ${paginatedResponse.
|
|
53
|
-
console.log(`Total projects with repositories: ${paginatedResponse.
|
|
52
|
+
console.log(`Page ${paginatedResponse.page} of ${paginatedResponse.total_pages}`);
|
|
53
|
+
console.log(`Total projects with repositories: ${paginatedResponse.count}`);
|
|
54
54
|
console.log(`Showing ${paginatedResponse.data.length} projects:`);
|
|
55
55
|
paginatedResponse.data.forEach((project) => {
|
|
56
56
|
console.log(`- ${project.title}`);
|
|
@@ -74,7 +74,7 @@ async function demonstrateProjectFiltering() {
|
|
|
74
74
|
sort_by_date: 'desc'
|
|
75
75
|
};
|
|
76
76
|
const filteredProjects = await codeGuide.projects.getPaginatedProjects(combinedFilters);
|
|
77
|
-
console.log(`Found ${filteredProjects.
|
|
77
|
+
console.log(`Found ${filteredProjects.count} projects matching filters:`);
|
|
78
78
|
filteredProjects.data.forEach((project) => {
|
|
79
79
|
console.log(`- ${project.title} (Updated: ${project.updated_at})`);
|
|
80
80
|
});
|
|
@@ -10,6 +10,7 @@ export interface GenerateTaskTitleResponse {
|
|
|
10
10
|
export interface CreateCodespaceTaskRequest {
|
|
11
11
|
title: string;
|
|
12
12
|
description: string;
|
|
13
|
+
conversation_id?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface CreateCodespaceTaskResponse {
|
|
15
16
|
success: boolean;
|
|
@@ -45,6 +46,7 @@ export interface CreateCodespaceTaskRequestV2 {
|
|
|
45
46
|
use_enhanced_summary?: boolean;
|
|
46
47
|
attachments?: Attachment[];
|
|
47
48
|
ai_questionnaire?: Record<string, string>;
|
|
49
|
+
conversation_id?: string;
|
|
48
50
|
}
|
|
49
51
|
export interface CreateCodespaceTaskResponseV2 {
|
|
50
52
|
success: boolean;
|
|
@@ -104,12 +104,10 @@ export interface PaginatedProjectsRequest {
|
|
|
104
104
|
export interface PaginatedProjectsResponse {
|
|
105
105
|
status: string;
|
|
106
106
|
data: Project[];
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
total_pages: number;
|
|
112
|
-
};
|
|
107
|
+
count: number;
|
|
108
|
+
page: number;
|
|
109
|
+
page_size: number;
|
|
110
|
+
total_pages: number;
|
|
113
111
|
}
|
|
114
112
|
export interface ConnectRepositoryRequest {
|
|
115
113
|
repo_url: string;
|
|
@@ -52,8 +52,8 @@ async function demonstrateProjectFiltering() {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
const paginatedResponse = await codeGuide.projects.getPaginatedProjects(paginatedRequest)
|
|
55
|
-
console.log(`Page ${paginatedResponse.
|
|
56
|
-
console.log(`Total projects with repositories: ${paginatedResponse.
|
|
55
|
+
console.log(`Page ${paginatedResponse.page} of ${paginatedResponse.total_pages}`)
|
|
56
|
+
console.log(`Total projects with repositories: ${paginatedResponse.count}`)
|
|
57
57
|
console.log(`Showing ${paginatedResponse.data.length} projects:`)
|
|
58
58
|
|
|
59
59
|
paginatedResponse.data.forEach((project: Project) => {
|
|
@@ -80,7 +80,7 @@ async function demonstrateProjectFiltering() {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
const filteredProjects = await codeGuide.projects.getPaginatedProjects(combinedFilters)
|
|
83
|
-
console.log(`Found ${filteredProjects.
|
|
83
|
+
console.log(`Found ${filteredProjects.count} projects matching filters:`)
|
|
84
84
|
filteredProjects.data.forEach((project: Project) => {
|
|
85
85
|
console.log(`- ${project.title} (Updated: ${project.updated_at})`)
|
|
86
86
|
})
|
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ export interface GenerateTaskTitleResponse {
|
|
|
12
12
|
export interface CreateCodespaceTaskRequest {
|
|
13
13
|
title: string
|
|
14
14
|
description: string
|
|
15
|
+
conversation_id?: string
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export interface CreateCodespaceTaskResponse {
|
|
@@ -51,6 +52,7 @@ export interface CreateCodespaceTaskRequestV2 {
|
|
|
51
52
|
use_enhanced_summary?: boolean
|
|
52
53
|
attachments?: Attachment[]
|
|
53
54
|
ai_questionnaire?: Record<string, string>
|
|
55
|
+
conversation_id?: string
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
export interface CreateCodespaceTaskResponseV2 {
|
|
@@ -245,4 +247,4 @@ export interface CodespaceModelsFetchError {
|
|
|
245
247
|
export type CodespaceModelsError =
|
|
246
248
|
| CodespaceModelNotFoundError
|
|
247
249
|
| AuthenticationRequiredError
|
|
248
|
-
| CodespaceModelsFetchError
|
|
250
|
+
| CodespaceModelsFetchError
|
|
@@ -117,12 +117,10 @@ export interface PaginatedProjectsRequest {
|
|
|
117
117
|
export interface PaginatedProjectsResponse {
|
|
118
118
|
status: string
|
|
119
119
|
data: Project[]
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
total_pages: number
|
|
125
|
-
}
|
|
120
|
+
count: number
|
|
121
|
+
page: number
|
|
122
|
+
page_size: number
|
|
123
|
+
total_pages: number
|
|
126
124
|
}
|
|
127
125
|
|
|
128
126
|
export interface ConnectRepositoryRequest {
|