You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/general/components/version-description-modal.tsx
Copy file name to clipboardExpand all lines: apps/sim/hooks/queries/deployments.ts
+141Lines changed: 141 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -411,6 +411,147 @@ export function useUpdateDeploymentVersion() {
411
411
})
412
412
}
413
413
414
+
/**
415
+
* Variables for generating a version description
416
+
*/
417
+
interfaceGenerateVersionDescriptionVariables{
418
+
workflowId: string
419
+
version: number
420
+
onStreamChunk?: (accumulated: string)=>void
421
+
}
422
+
423
+
constVERSION_DESCRIPTION_SYSTEM_PROMPT=`You are a technical writer generating concise deployment version descriptions.
424
+
425
+
Given a diff of changes between two workflow versions, write a brief, factual description (1-2 sentences, under 300 characters) that states ONLY what changed.
426
+
427
+
RULES:
428
+
- State specific values when provided (e.g. "model changed from X to Y")
429
+
- Do NOT wrap your response in quotes
430
+
- Do NOT add filler phrases like "streamlining the workflow", "for improved efficiency"
431
+
- Do NOT use markdown formatting
432
+
- Do NOT include version numbers
433
+
- Do NOT start with "This version" or similar phrases
434
+
435
+
Good examples:
436
+
- Changes model in Agent 1 from gpt-4o to claude-sonnet-4-20250514.
437
+
- Adds Slack notification block. Updates webhook URL to production endpoint.
438
+
- Removes Function block and its connection to Router.
439
+
440
+
Bad examples:
441
+
- "Changes model..." (NO - don't wrap in quotes)
442
+
- Changes model, streamlining the workflow. (NO - don't add filler)
443
+
444
+
Respond with ONLY the plain text description.`
445
+
446
+
/**
447
+
* Hook for generating a version description using AI based on workflow diff
0 commit comments