Add MOSS-Image on the Image v2 path and stop the queue calling it Klein.
The bench queue labeled every engine except Krea, Qwen, MiniMax, and LTX as Klein, and the v2 starter treated any engine other than Krea as Flux. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import {folderAssets,reconcileSelection,activeJobs,previewHidden} from '../share
|
||||
import {useAsHero,useAsSource,restoreAll,hydrateStudio2Job} from '../shared/studio2/input.mjs'
|
||||
import {toggleStyle,parseBatch,parseBatchDoubleBlank,stylePrompt} from '../shared/studio2/styles.mjs'
|
||||
import {compilePrompt,validateRequest} from '../shared/studio2/contracts.mjs'
|
||||
import {queueEngineLabel} from '../shared/studio2/queue-view.mjs'
|
||||
import {cachedLoras} from '../shared/studio2/lora-cache.mjs'
|
||||
import {resolveQwen21Size} from '../shared/studio2/qwen21-size.mjs'
|
||||
import {ensureQwen21EditPrompt,stitchQwen21PeEditPrompt,QWEN21_EDIT_KEEP_CHANGE} from '../shared/studio2/qwen21-edit.mjs'
|
||||
@@ -86,6 +87,31 @@ test('image chips compile positive and negative independently; video chips do no
|
||||
assert.deepEqual(parseBatchDoubleBlank('one\n\ntwo'),['one\n\ntwo'])
|
||||
assert.deepEqual(parseBatchDoubleBlank('one\n\n\ntwo\n\n\n\nthree\n'),['one','two','three'])
|
||||
})
|
||||
test('queue card names MOSS-Image and does not call it Klein',()=>{
|
||||
assert.equal(queueEngineLabel('moss'),'MOSS-Image')
|
||||
assert.equal(queueEngineLabel('moss-image'),'MOSS-Image')
|
||||
assert.equal(queueEngineLabel('flux'),'Klein')
|
||||
assert.equal(queueEngineLabel('krea'),'Krea 2')
|
||||
const src=readFileSync(new URL('../components/studio2/Bench.vue',import.meta.url),'utf8')
|
||||
assert.match(src,/queueEngineLabel\(job\.request\?\.engine\)/)
|
||||
assert.doesNotMatch(src,/engine==='minimax'\?'MiniMax H3':'Klein'/)
|
||||
})
|
||||
test('moss is generate-only with its own steps and CFG',()=>{
|
||||
const q=validateRequest({mode:'generate',engine:'moss',folderId:'f',promptSections:{action:'a red ceramic cup'},settings:{aspect:'1:1',steps:40,cfg:3,loraStack:[{name:'klein-anime.safetensors'}]}})
|
||||
assert.equal(q.engine,'moss')
|
||||
assert.equal(q.settings.steps,40)
|
||||
assert.equal(q.settings.cfg,3)
|
||||
assert.equal(q.settings.width,1024)
|
||||
assert.equal(q.settings.height,1024)
|
||||
assert.equal(q.turbo,false)
|
||||
assert.equal(q.enhancePrompt,false)
|
||||
assert.deepEqual(q.settings.loraStack,[])
|
||||
assert.equal(q.identityStillId,'')
|
||||
const fresh=validateRequest({mode:'generate',engine:'moss',folderId:'f',promptSections:{action:'cup'},settings:{aspect:'auto'}})
|
||||
assert.equal(fresh.settings.steps,25)
|
||||
assert.equal(fresh.settings.cfg,2.5)
|
||||
assert.throws(()=>validateRequest({mode:'edit',engine:'moss',folderId:'f',imageAId:'s',promptSections:{action:'x'}}),/text-to-image only/)
|
||||
})
|
||||
test('qwen21 supports Generate and Edit with 25/1 defaults and no locks',()=>{
|
||||
const q=validateRequest({mode:'generate',engine:'qwen21',folderId:'f',promptSections:{action:'a red bicycle'},settings:{aspect:'1:1'}})
|
||||
assert.equal(q.engine,'qwen21');assert.equal(q.settings.steps,25);assert.equal(q.settings.cfg,1)
|
||||
|
||||
Reference in New Issue
Block a user