@l4yercak3/cli 1.2.15 → 1.2.18

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.
@@ -73,7 +73,7 @@ Returns an API key for the application to use.`,
73
73
  required: ['name', 'features'],
74
74
  },
75
75
  requiresAuth: true,
76
- requiredPermissions: ['manage_applications'],
76
+ requiredPermissions: ['applications:write'],
77
77
  handler: async (params, authContext) => {
78
78
  // Generate project path hash for tracking
79
79
  const projectPathHash = params.projectPath
@@ -293,7 +293,7 @@ Returns an API key for the application to use.`,
293
293
  required: ['applicationId'],
294
294
  },
295
295
  requiresAuth: true,
296
- requiredPermissions: ['manage_applications'],
296
+ requiredPermissions: ['applications:write'],
297
297
  handler: async (params, authContext) => {
298
298
  const { applicationId, ...updates } = params;
299
299
 
@@ -339,7 +339,7 @@ Triggers a sync based on configured model mappings.`,
339
339
  required: ['applicationId'],
340
340
  },
341
341
  requiresAuth: true,
342
- requiredPermissions: ['manage_applications'],
342
+ requiredPermissions: ['applications:write'],
343
343
  handler: async (params, authContext) => {
344
344
  const response = await backendClient.syncApplication(params.applicationId, {
345
345
  direction: params.direction || 'bidirectional',
@@ -403,7 +403,7 @@ Model mappings define how local models sync with L4YERCAK3 types.`,
403
403
  required: ['applicationId', 'localModel', 'layerCakeType'],
404
404
  },
405
405
  requiresAuth: true,
406
- requiredPermissions: ['manage_applications'],
406
+ requiredPermissions: ['applications:write'],
407
407
  handler: async (params, authContext) => {
408
408
  // Get current application
409
409
  const appResponse = await backendClient.getApplication(params.applicationId);