feat: carry archive UI label hard cut updates

This commit is contained in:
Mohamed Boudra
2026-03-04 10:39:28 +07:00
parent bf1cded8a1
commit 111b9d95f4
26 changed files with 408 additions and 175 deletions
+12
View File
@@ -61,6 +61,7 @@ try {
assert(result.stdout.includes('--output-schema'), 'help should mention --output-schema option')
assert(result.stdout.includes('--host'), 'help should mention --host option')
assert(result.stdout.includes('<prompt>'), 'help should mention prompt argument')
assert(!result.stdout.includes('--ui'), 'help should not mention removed --ui option')
console.log('✓ run --help shows options\n')
}
@@ -206,6 +207,17 @@ try {
assert(result.stdout.includes('run'), 'help should mention run command')
console.log('✓ paseo --help shows run command\n')
}
// Test 14: run --ui is rejected (flag removed)
{
console.log('Test 14: run --ui is rejected')
const result =
await $`PASEO_HOST=localhost:${port} PASEO_HOME=${paseoHome} npx paseo run --ui "test prompt"`.nothrow()
assert.notStrictEqual(result.exitCode, 0, 'should fail for removed --ui flag')
const output = result.stdout + result.stderr
assert(output.includes('unknown option'), 'should report unknown option for --ui')
console.log('✓ run --ui is rejected\n')
}
} finally {
// Clean up temp directory
await rm(paseoHome, { recursive: true, force: true })
+1 -1
View File
@@ -89,7 +89,7 @@ try {
{
console.log('Test 5: agent update accepts multi-label syntax')
const result =
await $`PASEO_HOST=localhost:${port} PASEO_HOME=${paseoHome} npx paseo agent update abc123 --label ui=true,area=frontend --label priority=high`.nothrow()
await $`PASEO_HOST=localhost:${port} PASEO_HOME=${paseoHome} npx paseo agent update abc123 --label surface=workspace,area=frontend --label priority=high`.nothrow()
const output = result.stdout + result.stderr
assert(!output.includes('unknown option'), 'should accept --label flag')
assert(!output.includes('error: option'), 'should not have option parsing error')