@hailer/mcp 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -586,9 +586,25 @@ exports.publishHailerAppTool = {
|
|
|
586
586
|
const expectScript = `#!/usr/bin/expect -f
|
|
587
587
|
set timeout 45
|
|
588
588
|
log_user 1
|
|
589
|
+
exp_internal 1
|
|
589
590
|
set password {${escapedPassword}}
|
|
591
|
+
puts "\\n>>> SPAWNING npm run publish-production..."
|
|
590
592
|
spawn npm run publish-production
|
|
591
|
-
|
|
593
|
+
puts "\\n>>> WAITING FOR PASSWORD PROMPT..."
|
|
594
|
+
expect {
|
|
595
|
+
-nocase "password" {
|
|
596
|
+
puts "\\n>>> MATCHED PASSWORD PROMPT"
|
|
597
|
+
}
|
|
598
|
+
timeout {
|
|
599
|
+
puts "\\n>>> TIMEOUT waiting for password prompt (45s)"
|
|
600
|
+
puts "\\n>>> This usually means the SDK is not prompting for credentials"
|
|
601
|
+
exit 1
|
|
602
|
+
}
|
|
603
|
+
eof {
|
|
604
|
+
puts "\\n>>> EOF before password prompt - process ended unexpectedly"
|
|
605
|
+
exit 1
|
|
606
|
+
}
|
|
607
|
+
}
|
|
592
608
|
puts "\\n>>> MATCHED PASSWORD, SENDING..."
|
|
593
609
|
sleep 0.5
|
|
594
610
|
# Try human-like typing
|
|
@@ -609,19 +625,18 @@ expect {
|
|
|
609
625
|
exp_continue
|
|
610
626
|
}
|
|
611
627
|
"successfully" {
|
|
612
|
-
puts "\\n>>> SUCCESS!"
|
|
628
|
+
puts "\\n>>> SUCCESS! Exiting immediately..."
|
|
629
|
+
exit 0
|
|
613
630
|
}
|
|
614
631
|
timeout {
|
|
615
632
|
puts "\\n>>> TIMEOUT 30s"
|
|
616
633
|
exit 1
|
|
617
634
|
}
|
|
618
635
|
eof {
|
|
619
|
-
puts "\\n>>> EOF"
|
|
636
|
+
puts "\\n>>> EOF - process ended"
|
|
637
|
+
exit 0
|
|
620
638
|
}
|
|
621
639
|
}
|
|
622
|
-
lassign [wait] pid spawnid os_error_flag value
|
|
623
|
-
puts "\\n>>> EXIT: $value"
|
|
624
|
-
exit $value
|
|
625
640
|
`;
|
|
626
641
|
try {
|
|
627
642
|
// Write expect script to temp file
|