@@ -66,7 +66,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
6666 } ) ;
6767
6868 // Wait for prompt
69- await waitForOutput ( proc , / \$ / ) ;
69+ await waitForOutput ( proc , / a b l y > / ) ;
7070
7171 // Send Ctrl+C
7272 proc . stdin ! . write ( '\u0003' ) ;
@@ -79,7 +79,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
7979 expect ( output ) . to . match ( / S i g n a l r e c e i v e d | T y p e ' e x i t ' t o q u i t | T o e x i t .* t y p e ' e x i t ' / i) ;
8080
8181 // Should still have prompt
82- expect ( output ) . to . include ( '$ ' ) ;
82+ expect ( output ) . to . include ( 'ably> ' ) ;
8383
8484 // Clean exit
8585 proc . stdin ! . write ( 'exit\n' ) ;
@@ -92,7 +92,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
9292 } ) ;
9393
9494 // Wait for prompt
95- await waitForOutput ( proc , / \$ / ) ;
95+ await waitForOutput ( proc , / a b l y > / ) ;
9696
9797 // Send Ctrl+C
9898 proc . stdin ! . write ( '\u0003' ) ;
@@ -136,7 +136,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
136136 // Wait for prompt using simple polling
137137 await new Promise < void > ( ( resolve ) => {
138138 const checkInterval = setInterval ( ( ) => {
139- if ( output . includes ( '$ ' ) ) {
139+ if ( output . includes ( 'ably> ' ) ) {
140140 clearInterval ( checkInterval ) ;
141141 resolve ( ) ;
142142 }
@@ -177,7 +177,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
177177 const checkInterval = setInterval ( ( ) => {
178178 // Look for a new prompt after the command was interrupted
179179 const lines = output . split ( '\n' ) ;
180- const promptCount = lines . filter ( line => line . includes ( '$ ' ) ) . length ;
180+ const promptCount = lines . filter ( line => line . includes ( 'ably> ' ) ) . length ;
181181 if ( promptCount >= 2 ) { // Initial prompt + prompt after interrupt
182182 clearInterval ( checkInterval ) ;
183183 resolve ( ) ;
@@ -191,7 +191,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
191191 } ) ;
192192
193193 // Verify we're back at the prompt
194- expect ( output ) . to . include ( '$ ' ) ;
194+ expect ( output ) . to . include ( 'ably> ' ) ;
195195
196196 // Send a simple command to verify it's still working
197197 output = '' ;
@@ -224,7 +224,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
224224 const text = data . toString ( ) ;
225225
226226 // Count prompts
227- const prompts = text . match ( / \$ / g) ;
227+ const prompts = text . match ( / a b l y > / g) ;
228228 if ( prompts ) {
229229 promptCount += prompts . length ;
230230 }
@@ -304,7 +304,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
304304 // Wait for prompt and send test:wait command
305305 await new Promise < void > ( ( resolve ) => {
306306 const checkForPrompt = setInterval ( ( ) => {
307- if ( output . includes ( '$ ' ) ) {
307+ if ( output . includes ( 'ably> ' ) ) {
308308 clearInterval ( checkForPrompt ) ;
309309 proc . stdin ! . write ( 'test:wait --duration 10\n' ) ;
310310 resolve ( ) ;
@@ -334,7 +334,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
334334
335335 // Verify we're back at prompt
336336 const lines = output . split ( '\n' ) ;
337- const promptCount = lines . filter ( line => line . includes ( '$ ' ) ) . length ;
337+ const promptCount = lines . filter ( line => line . includes ( 'ably> ' ) ) . length ;
338338 expect ( promptCount ) . to . be . at . least ( 2 ) ; // Initial prompt + prompt after interrupt
339339
340340 // Clean exit
@@ -377,7 +377,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
377377 // Wait for prompt
378378 await new Promise < void > ( ( resolve ) => {
379379 const checkForPrompt = setInterval ( ( ) => {
380- if ( output . includes ( '$ ' ) ) {
380+ if ( output . includes ( 'ably> ' ) ) {
381381 clearInterval ( checkForPrompt ) ;
382382 proc . stdin ! . write ( 'test:wait --duration 30\n' ) ;
383383 resolve ( ) ;
@@ -430,7 +430,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
430430 } ) ;
431431
432432 // Wait for prompt
433- await waitForOutput ( proc , / \$ / ) ;
433+ await waitForOutput ( proc , / a b l y > / ) ;
434434
435435 // Type partial command
436436 proc . stdin ! . write ( 'test:wa' ) ;
@@ -441,7 +441,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
441441 // Should clear line and show new prompt
442442 const output = await captureOutput ( proc , 1000 ) ;
443443 expect ( output ) . to . include ( '^C' ) ;
444- expect ( output ) . to . include ( '$ ' ) ;
444+ expect ( output ) . to . include ( 'ably> ' ) ;
445445
446446 // Should be able to type new command
447447 proc . stdin ! . write ( 'help\n' ) ;
@@ -470,7 +470,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
470470 // Wait for initial prompt
471471 await new Promise < void > ( ( resolve ) => {
472472 const checkInterval = setInterval ( ( ) => {
473- if ( output . includes ( '$ ' ) ) {
473+ if ( output . includes ( 'ably> ' ) ) {
474474 clearInterval ( checkInterval ) ;
475475 resolve ( ) ;
476476 }
@@ -533,7 +533,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
533533 // Wait for initial prompt
534534 await new Promise < void > ( ( resolve ) => {
535535 const checkPrompt = setInterval ( ( ) => {
536- if ( output . includes ( '$ ' ) ) {
536+ if ( output . includes ( 'ably> ' ) ) {
537537 clearInterval ( checkPrompt ) ;
538538 resolve ( ) ;
539539 }
@@ -566,7 +566,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
566566 await new Promise ( resolve => setTimeout ( resolve , 1000 ) ) ;
567567
568568 // Should return to prompt
569- expect ( output ) . to . include ( '$ ' ) ;
569+ expect ( output ) . to . include ( 'ably> ' ) ;
570570
571571 // Terminal should be functional - send a simple command
572572 output = '' ;
@@ -631,7 +631,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
631631 await new Promise < void > ( ( resolve , reject ) => {
632632 const timeout = setTimeout ( ( ) => reject ( new Error ( 'Timeout waiting for initial prompt' ) ) , 10000 ) ;
633633 const check = setInterval ( ( ) => {
634- if ( output . includes ( '$ ' ) ) {
634+ if ( output . includes ( 'ably> ' ) ) {
635635 clearInterval ( check ) ;
636636 clearTimeout ( timeout ) ;
637637 resolve ( ) ;
@@ -669,7 +669,7 @@ describe('E2E: Interactive Mode - Ctrl+C Behavior', function() {
669669 expect ( output ) . to . not . include ( 'Failed to start interactive mode' ) ;
670670
671671 // We should see a new prompt
672- expect ( output ) . to . include ( '$ ' ) ;
672+ expect ( output ) . to . include ( 'ably> ' ) ;
673673
674674 // Try running a command to verify terminal is functional
675675 output = '' ;
0 commit comments