Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(cli): use a(n) article in difyctl prerelease warning (#37976)
Xiyuan Chen2047e0dc1251
diff --git a/cli/src/commands/version/version.test.ts b/cli/src/commands/version/version.test.tsindex 60512e01d04..33b7c17b769 100644--- a/cli/src/commands/version/version.test.ts+++ b/cli/src/commands/version/version.test.ts@@ -158,6 +158,6 @@ describe('Version command', () => {if (output?.kind !== 'formatted')throw new Error('expected formatted output')- expect(output.data.text()).toContain('WARNING: This build is a rc release')+ expect(output.data.text()).toContain('WARNING: This build is a(n) rc release')})})diff --git a/cli/src/version/render.test.ts b/cli/src/version/render.test.tsindex c88ce998b9c..2543ebf7748 100644--- a/cli/src/version/render.test.ts+++ b/cli/src/version/render.test.ts@@ -60,7 +60,7 @@ describe('renderVersionText', () => {}const text = renderVersionText(report)- expect(text).toContain('WARNING: This build is a rc release')+ expect(text).toContain('WARNING: This build is a(n) rc release')expect(text).toContain('install or wait for the stable channel')})@@ -72,7 +72,7 @@ describe('renderVersionText', () => {}const text = renderVersionText(report)- expect(text).toContain('WARNING: This build is a alpha release')+ expect(text).toContain('WARNING: This build is a(n) alpha release')expect(text).toContain('install or wait for the stable channel')})@@ -84,7 +84,7 @@ describe('renderVersionText', () => {}const text = renderVersionText(report)- expect(text).toContain('WARNING: This build is a edge release')+ expect(text).toContain('WARNING: This build is a(n) edge release')expect(text).toContain('install or wait for the stable channel')})@@ -140,7 +140,7 @@ describe('renderVersionText', () => {// RC warning) ran, yet the output is byte-clean.expect(plain).not.toMatch(ANSI_RE)expect(plain).toContain('Compatibility: incompatible')- expect(plain).toContain('WARNING: This build is a rc release')+ expect(plain).toContain('WARNING: This build is a(n) rc release')})describe('with picocolors stubbed to always emit ANSI', () => {@@ -183,7 +183,7 @@ describe('renderVersionText', () => {expect(colored).toMatch(ANSI_RE)expect(colored).toContain('Compatibility: incompatible')// prerelease warning lines also routed through yellow.- expect(colored).toContain('WARNING: This build is a rc release')+ expect(colored).toContain('WARNING: This build is a(n) rc release')})})diff --git a/cli/src/version/render.ts b/cli/src/version/render.tsindex fa8ee721202..44dded18e28 100644--- a/cli/src/version/render.ts+++ b/cli/src/version/render.ts@@ -4,7 +4,7 @@ import { colorScheme } from '@/sys/io/color'function prereleaseWarning(channel: Channel): readonly string[] {return [- `WARNING: This build is a ${channel} release. It is not stable`,+ `WARNING: This build is a(n) ${channel} release. It is not stable`,' and may have bugs. For production use, install or wait for the stable channel.',]}