@@ -227,7 +227,11 @@ export const LinearBlock: BlockConfig<LinearResponse> = {
227227 'linear_update_project' ,
228228 'linear_archive_project' ,
229229 'linear_delete_project' ,
230+ 'linear_create_project_update' ,
230231 'linear_list_project_updates' ,
232+ 'linear_create_project_link' ,
233+ 'linear_create_project_status' ,
234+ 'linear_create_project_label' ,
231235 ] ,
232236 } ,
233237 condition : {
@@ -239,7 +243,11 @@ export const LinearBlock: BlockConfig<LinearResponse> = {
239243 'linear_update_project' ,
240244 'linear_archive_project' ,
241245 'linear_delete_project' ,
246+ 'linear_create_project_update' ,
242247 'linear_list_project_updates' ,
248+ 'linear_create_project_link' ,
249+ 'linear_create_project_status' ,
250+ 'linear_create_project_label' ,
243251 'linear_list_project_labels' ,
244252 ] ,
245253 } ,
@@ -262,6 +270,8 @@ export const LinearBlock: BlockConfig<LinearResponse> = {
262270 'linear_create_project_update' ,
263271 'linear_list_project_updates' ,
264272 'linear_create_project_link' ,
273+ 'linear_create_project_status' ,
274+ 'linear_create_project_label' ,
265275 ] ,
266276 } ,
267277 condition : {
@@ -276,6 +286,8 @@ export const LinearBlock: BlockConfig<LinearResponse> = {
276286 'linear_create_project_update' ,
277287 'linear_list_project_updates' ,
278288 'linear_create_project_link' ,
289+ 'linear_create_project_status' ,
290+ 'linear_create_project_label' ,
279291 'linear_list_project_labels' ,
280292 ] ,
281293 } ,
@@ -1993,11 +2005,15 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
19932005
19942006 // Project Label Operations
19952007 case 'linear_create_project_label' :
2008+ if ( ! effectiveProjectId ) {
2009+ throw new Error ( 'Project ID is required.' )
2010+ }
19962011 if ( ! params . projectLabelName ?. trim ( ) ) {
19972012 throw new Error ( 'Project label name is required.' )
19982013 }
19992014 return {
20002015 ...baseParams ,
2016+ projectId : effectiveProjectId ,
20012017 name : params . projectLabelName . trim ( ) ,
20022018 description : params . projectLabelDescription ?. trim ( ) || undefined ,
20032019 color : params . statusColor ?. trim ( ) || undefined ,
@@ -2033,22 +2049,22 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
20332049 }
20342050
20352051 case 'linear_add_label_to_project' :
2036- if ( ! effectiveProjectId || ! params . projectLabelId ?. trim ( ) ) {
2052+ if ( ! params . projectIdForMilestone ?. trim ( ) || ! params . projectLabelId ?. trim ( ) ) {
20372053 throw new Error ( 'Project ID and label ID are required.' )
20382054 }
20392055 return {
20402056 ...baseParams ,
2041- projectId : effectiveProjectId ,
2057+ projectId : params . projectIdForMilestone . trim ( ) ,
20422058 labelId : params . projectLabelId . trim ( ) ,
20432059 }
20442060
20452061 case 'linear_remove_label_from_project' :
2046- if ( ! effectiveProjectId || ! params . projectLabelId ?. trim ( ) ) {
2062+ if ( ! params . projectIdForMilestone ?. trim ( ) || ! params . projectLabelId ?. trim ( ) ) {
20472063 throw new Error ( 'Project ID and label ID are required.' )
20482064 }
20492065 return {
20502066 ...baseParams ,
2051- projectId : effectiveProjectId ,
2067+ projectId : params . projectIdForMilestone . trim ( ) ,
20522068 labelId : params . projectLabelId . trim ( ) ,
20532069 }
20542070
@@ -2097,11 +2113,15 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
20972113
20982114 // Project Status Operations
20992115 case 'linear_create_project_status' :
2116+ if ( ! effectiveProjectId ) {
2117+ throw new Error ( 'Project ID is required.' )
2118+ }
21002119 if ( ! params . projectStatusName ?. trim ( ) || ! params . statusColor ?. trim ( ) ) {
21012120 throw new Error ( 'Project status name and color are required.' )
21022121 }
21032122 return {
21042123 ...baseParams ,
2124+ projectId : effectiveProjectId ,
21052125 name : params . projectStatusName . trim ( ) ,
21062126 color : params . statusColor . trim ( ) ,
21072127 description : params . projectStatusDescription ?. trim ( ) || undefined ,
0 commit comments