Commit f9c5da4
feat: Sync JS implementation with Rust for timeline naming and virtual commands
JavaScript implementation updates:
- Renamed "spine" terminology to "timeline" throughout output-blocks.js
- SPINE constant → TIMELINE_MARKER (old name deprecated)
- createSpineLine() → createTimelineLine() (old name deprecated)
- createEmptySpineLine() → createEmptyTimelineLine() (old name deprecated)
- Added virtual command visualization for Docker image pulls
- When Docker isolation requires pulling an image, it's shown as `$ docker pull <image>`
- Pull output is streamed in real-time with result markers (✓/✗)
- Only displayed when image actually needs to be pulled (conditional display)
- New API additions:
- createVirtualCommandBlock() - for formatting virtual commands
- createVirtualCommandResult() - for result markers
- createTimelineSeparator() - for separator between virtual and user commands
- dockerImageExists() - check if image is available locally
- dockerPullImage() - pull with streaming output
- createStartBlock({ deferCommand }) - defer command display for multi-step execution
- Renamed "isolation backend" to "isolation environment" in docs and error messages
- All deprecated items have backward-compatible aliases for smooth migration
Fixes #70
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 6bd59ef commit f9c5da4
File tree
8 files changed
+327
-89
lines changed- js
- src
- bin
- lib
- test
8 files changed
+327
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| 515 | + | |
| 516 | + | |
515 | 517 | | |
516 | 518 | | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
| 523 | + | |
521 | 524 | | |
522 | 525 | | |
523 | 526 | | |
| |||
558 | 561 | | |
559 | 562 | | |
560 | 563 | | |
561 | | - | |
562 | | - | |
| 564 | + | |
| 565 | + | |
563 | 566 | | |
564 | 567 | | |
565 | 568 | | |
| |||
571 | 574 | | |
572 | 575 | | |
573 | 576 | | |
574 | | - | |
| 577 | + | |
575 | 578 | | |
576 | 579 | | |
577 | 580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
621 | 685 | | |
622 | 686 | | |
623 | 687 | | |
| |||
644 | 708 | | |
645 | 709 | | |
646 | 710 | | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
647 | 729 | | |
648 | 730 | | |
649 | 731 | | |
| |||
753 | 835 | | |
754 | 836 | | |
755 | 837 | | |
756 | | - | |
757 | | - | |
| 838 | + | |
| 839 | + | |
758 | 840 | | |
759 | 841 | | |
760 | 842 | | |
| |||
772 | 854 | | |
773 | 855 | | |
774 | 856 | | |
775 | | - | |
| 857 | + | |
776 | 858 | | |
777 | 859 | | |
778 | 860 | | |
| |||
885 | 967 | | |
886 | 968 | | |
887 | 969 | | |
888 | | - | |
| 970 | + | |
889 | 971 | | |
890 | 972 | | |
891 | 973 | | |
| |||
990 | 1072 | | |
991 | 1073 | | |
992 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
993 | 1078 | | |
0 commit comments