claude-code-runner 0.2.10 → 0.2.12
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.
- package/README.md +56 -11
- package/README.zh-Hans.md +56 -11
- package/dist/cli.js +1 -1
- package/dist/container.d.ts +0 -1
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +43 -154
- package/dist/container.js.map +1 -1
- package/dist/git/shadow-repository.d.ts.map +1 -1
- package/dist/git/shadow-repository.js +3 -3
- package/dist/git/shadow-repository.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/ui.d.ts +1 -0
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +15 -0
- package/dist/ui.js.map +1 -1
- package/dist/web-server-attach.js +1 -1
- package/dist/web-server-attach.js.map +1 -1
- package/dist/web-server.d.ts +3 -0
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +39 -4
- package/dist/web-server.js.map +1 -1
- package/docker/Dockerfile +26 -0
- package/package.json +4 -2
- package/public/app.js +104 -42
- package/public/index.html +148 -0
- package/public/locales/en.json +34 -2
- package/public/locales/zh-CN.json +34 -2
package/public/index.html
CHANGED
|
@@ -492,6 +492,123 @@
|
|
|
492
492
|
#language-selector:focus {
|
|
493
493
|
border-color: #4caf50;
|
|
494
494
|
}
|
|
495
|
+
|
|
496
|
+
/* Modal Styles */
|
|
497
|
+
.modal-overlay {
|
|
498
|
+
position: fixed;
|
|
499
|
+
top: 0;
|
|
500
|
+
left: 0;
|
|
501
|
+
width: 100%;
|
|
502
|
+
height: 100%;
|
|
503
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
504
|
+
display: flex;
|
|
505
|
+
justify-content: center;
|
|
506
|
+
align-items: center;
|
|
507
|
+
z-index: 1000;
|
|
508
|
+
backdrop-filter: blur(2px);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.modal-content {
|
|
512
|
+
background-color: #2d2d2d;
|
|
513
|
+
border-radius: 8px;
|
|
514
|
+
border: 1px solid #3e3e3e;
|
|
515
|
+
max-width: 500px;
|
|
516
|
+
width: 90%;
|
|
517
|
+
max-height: 80vh;
|
|
518
|
+
overflow-y: auto;
|
|
519
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
|
|
520
|
+
animation: modalFadeIn 0.3s ease-out;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
@keyframes modalFadeIn {
|
|
524
|
+
from {
|
|
525
|
+
opacity: 0;
|
|
526
|
+
transform: scale(0.9) translateY(-20px);
|
|
527
|
+
}
|
|
528
|
+
to {
|
|
529
|
+
opacity: 1;
|
|
530
|
+
transform: scale(1) translateY(0);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.modal-header {
|
|
535
|
+
padding: 1.5rem 1.5rem 1rem;
|
|
536
|
+
border-bottom: 1px solid #3e3e3e;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.modal-header h2 {
|
|
540
|
+
margin: 0;
|
|
541
|
+
font-size: 1.25rem;
|
|
542
|
+
font-weight: 600;
|
|
543
|
+
color: #ffffff;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.modal-body {
|
|
547
|
+
padding: 1.5rem;
|
|
548
|
+
color: #d4d4d4;
|
|
549
|
+
line-height: 1.6;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.modal-steps {
|
|
553
|
+
background-color: #1e1e1e;
|
|
554
|
+
border-radius: 6px;
|
|
555
|
+
padding: 1rem;
|
|
556
|
+
margin: 1rem 0;
|
|
557
|
+
border: 1px solid #3e3e3e;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.code-block {
|
|
561
|
+
background-color: #1a1a1a;
|
|
562
|
+
border: 1px solid #404040;
|
|
563
|
+
border-radius: 4px;
|
|
564
|
+
padding: 0.5rem 0.75rem;
|
|
565
|
+
margin: 0.5rem 0;
|
|
566
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
567
|
+
font-size: 0.875rem;
|
|
568
|
+
color: #4caf50;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.modal-warning {
|
|
572
|
+
background-color: #2a1a0a;
|
|
573
|
+
border: 1px solid #ff8c42;
|
|
574
|
+
border-radius: 4px;
|
|
575
|
+
padding: 0.75rem;
|
|
576
|
+
margin-top: 1rem;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.modal-warning p {
|
|
580
|
+
margin: 0;
|
|
581
|
+
color: #ffcc80;
|
|
582
|
+
font-weight: 500;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.modal-footer {
|
|
586
|
+
padding: 1rem 1.5rem 1.5rem;
|
|
587
|
+
border-top: 1px solid #3e3e3e;
|
|
588
|
+
display: flex;
|
|
589
|
+
justify-content: flex-end;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.modal-close-btn {
|
|
593
|
+
background-color: #4caf50;
|
|
594
|
+
color: #ffffff;
|
|
595
|
+
border: none;
|
|
596
|
+
padding: 0.5rem 1.5rem;
|
|
597
|
+
border-radius: 4px;
|
|
598
|
+
font-size: 0.875rem;
|
|
599
|
+
font-weight: 500;
|
|
600
|
+
cursor: pointer;
|
|
601
|
+
transition: background-color 0.2s ease;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.modal-close-btn:hover {
|
|
605
|
+
background-color: #45a049;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.modal-close-btn:focus {
|
|
609
|
+
outline: 2px solid #4caf50;
|
|
610
|
+
outline-offset: 2px;
|
|
611
|
+
}
|
|
495
612
|
</style>
|
|
496
613
|
</head>
|
|
497
614
|
<body>
|
|
@@ -644,6 +761,37 @@
|
|
|
644
761
|
</div>
|
|
645
762
|
</div>
|
|
646
763
|
|
|
764
|
+
<!-- Non-Git Warning Modal -->
|
|
765
|
+
<div id="non-git-modal" class="modal-overlay" style="display: none;">
|
|
766
|
+
<div class="modal-content">
|
|
767
|
+
<div class="modal-header">
|
|
768
|
+
<h2 data-i18n="nonGitWarning.title">⚠️ Important Setup Required</h2>
|
|
769
|
+
</div>
|
|
770
|
+
<div class="modal-body">
|
|
771
|
+
<p data-i18n="nonGitWarning.message">This session was started in a non-git directory. To save your changes permanently, you need to set up a remote repository:</p>
|
|
772
|
+
|
|
773
|
+
<div class="modal-steps">
|
|
774
|
+
<p data-i18n="nonGitWarning.step1">1. Open a terminal and run:</p>
|
|
775
|
+
<div class="code-block">
|
|
776
|
+
<code data-i18n="nonGitWarning.command1">git remote add origin <your-repo-url></code>
|
|
777
|
+
</div>
|
|
778
|
+
<div class="code-block">
|
|
779
|
+
<code data-i18n="nonGitWarning.command2">git push -u origin main</code>
|
|
780
|
+
</div>
|
|
781
|
+
|
|
782
|
+
<p data-i18n="nonGitWarning.step2">2. Replace <your-repo-url> with your GitHub/GitLab repository URL.</p>
|
|
783
|
+
</div>
|
|
784
|
+
|
|
785
|
+
<div class="modal-warning">
|
|
786
|
+
<p data-i18n="nonGitWarning.warning">Without this setup, changes will only exist in the container.</p>
|
|
787
|
+
</div>
|
|
788
|
+
</div>
|
|
789
|
+
<div class="modal-footer">
|
|
790
|
+
<button id="modal-close-btn" class="modal-close-btn" data-i18n="nonGitWarning.close">Got it</button>
|
|
791
|
+
</div>
|
|
792
|
+
</div>
|
|
793
|
+
</div>
|
|
794
|
+
|
|
647
795
|
<script src="https://unpkg.com/xterm@5.3.0/lib/xterm.js"></script>
|
|
648
796
|
<script src="https://unpkg.com/xterm-addon-fit@0.8.0/lib/xterm-addon-fit.js"></script>
|
|
649
797
|
<script src="https://unpkg.com/xterm-addon-web-links@0.9.0/lib/xterm-addon-web-links.js"></script>
|
package/public/locales/en.json
CHANGED
|
@@ -22,7 +22,28 @@
|
|
|
22
22
|
},
|
|
23
23
|
"changes": {
|
|
24
24
|
"noChangesTitle": "No changes detected",
|
|
25
|
-
"noChangesDescription": "Claude hasn't made any changes yet. Changes will appear here automatically when Claude modifies files."
|
|
25
|
+
"noChangesDescription": "Claude hasn't made any changes yet. Changes will appear here automatically when Claude modifies files.",
|
|
26
|
+
"changesSummary": "Changes Summary:",
|
|
27
|
+
"commitChanges": "💾 Commit Changes",
|
|
28
|
+
"commitMessage": "Enter commit message...",
|
|
29
|
+
"commitMessageRequired": "Please enter a commit message",
|
|
30
|
+
"commitButton": "Commit Changes",
|
|
31
|
+
"committing": "Committing...",
|
|
32
|
+
"committed": "✓ Committed",
|
|
33
|
+
"pushToRemote": "🚀 Push to Remote",
|
|
34
|
+
"branchName": "Branch name:",
|
|
35
|
+
"pushButton": "Push to Remote",
|
|
36
|
+
"pushing": "Pushing...",
|
|
37
|
+
"pushedToRemote": "✓ Pushed to Remote",
|
|
38
|
+
"diffStats": "{{files}} file(s), +{{additions}} -{{deletions}}",
|
|
39
|
+
"fileStatus": "📄 File Status:",
|
|
40
|
+
"changes": "📝 Changes:",
|
|
41
|
+
"newFiles": "📁 New Files:",
|
|
42
|
+
"fileStatusNew": "New file",
|
|
43
|
+
"fileStatusModified": "Modified",
|
|
44
|
+
"fileStatusDeleted": "Deleted",
|
|
45
|
+
"fileStatusAdded": "Added",
|
|
46
|
+
"fileStatusUnknown": "Status: {{status}}"
|
|
26
47
|
},
|
|
27
48
|
"status": {
|
|
28
49
|
"connected": "Connected",
|
|
@@ -40,7 +61,8 @@
|
|
|
40
61
|
"syncFailed": "Sync failed: {{message}}",
|
|
41
62
|
"commitSuccess": "✓ Changes committed successfully",
|
|
42
63
|
"commitFailed": "Commit failed: {{message}}",
|
|
43
|
-
"pushSuccess": "✓ Changes pushed to remote {{branch}}"
|
|
64
|
+
"pushSuccess": "✓ Changes pushed to remote {{branch}}",
|
|
65
|
+
"pushFailed": "Push failed: {{message}}"
|
|
44
66
|
},
|
|
45
67
|
"messages": {
|
|
46
68
|
"reconnecting": "Reconnecting...",
|
|
@@ -56,5 +78,15 @@
|
|
|
56
78
|
"label": "Language",
|
|
57
79
|
"en": "English",
|
|
58
80
|
"zh-CN": "简体中文"
|
|
81
|
+
},
|
|
82
|
+
"nonGitWarning": {
|
|
83
|
+
"title": "⚠️ Important Setup Required",
|
|
84
|
+
"message": "This session was started in a non-git directory. To save your changes permanently, you need to set up a remote repository:",
|
|
85
|
+
"step1": "1. Open a terminal and run:",
|
|
86
|
+
"command1": "git remote add origin <your-repo-url>",
|
|
87
|
+
"command2": "git push -u origin main",
|
|
88
|
+
"step2": "2. Replace <your-repo-url> with your Git repository URL.",
|
|
89
|
+
"warning": "Without this setup, changes will only exist in the container.",
|
|
90
|
+
"close": "Got it"
|
|
59
91
|
}
|
|
60
92
|
}
|
|
@@ -22,7 +22,28 @@
|
|
|
22
22
|
},
|
|
23
23
|
"changes": {
|
|
24
24
|
"noChangesTitle": "未检测到更改",
|
|
25
|
-
"noChangesDescription": "Claude 尚未进行任何更改。当 Claude 修改文件时,更改将自动显示在此处。"
|
|
25
|
+
"noChangesDescription": "Claude 尚未进行任何更改。当 Claude 修改文件时,更改将自动显示在此处。",
|
|
26
|
+
"changesSummary": "更改摘要:",
|
|
27
|
+
"commitChanges": "💾 提交更改",
|
|
28
|
+
"commitMessage": "输入提交信息...",
|
|
29
|
+
"commitMessageRequired": "请输入提交信息",
|
|
30
|
+
"commitButton": "提交更改",
|
|
31
|
+
"committing": "正在提交...",
|
|
32
|
+
"committed": "✓ 已提交",
|
|
33
|
+
"pushToRemote": "🚀 推送到远程",
|
|
34
|
+
"branchName": "分支名称:",
|
|
35
|
+
"pushButton": "推送到远程",
|
|
36
|
+
"pushing": "正在推送...",
|
|
37
|
+
"pushedToRemote": "✓ 已推送到远程",
|
|
38
|
+
"diffStats": "{{files}} 个文件,+{{additions}} -{{deletions}}",
|
|
39
|
+
"fileStatus": "📄 文件状态:",
|
|
40
|
+
"changes": "📝 更改内容:",
|
|
41
|
+
"newFiles": "📁 新文件:",
|
|
42
|
+
"fileStatusNew": "新文件",
|
|
43
|
+
"fileStatusModified": "已修改",
|
|
44
|
+
"fileStatusDeleted": "已删除",
|
|
45
|
+
"fileStatusAdded": "已添加",
|
|
46
|
+
"fileStatusUnknown": "状态: {{status}}"
|
|
26
47
|
},
|
|
27
48
|
"status": {
|
|
28
49
|
"connected": "已连接",
|
|
@@ -40,7 +61,8 @@
|
|
|
40
61
|
"syncFailed": "同步失败: {{message}}",
|
|
41
62
|
"commitSuccess": "✓ 更改已成功提交",
|
|
42
63
|
"commitFailed": "提交失败: {{message}}",
|
|
43
|
-
"pushSuccess": "✓ 更改已推送到远程分支 {{branch}}"
|
|
64
|
+
"pushSuccess": "✓ 更改已推送到远程分支 {{branch}}",
|
|
65
|
+
"pushFailed": "推送失败: {{message}}"
|
|
44
66
|
},
|
|
45
67
|
"messages": {
|
|
46
68
|
"reconnecting": "正在重新连接...",
|
|
@@ -56,5 +78,15 @@
|
|
|
56
78
|
"label": "语言",
|
|
57
79
|
"en": "English",
|
|
58
80
|
"zh-CN": "简体中文"
|
|
81
|
+
},
|
|
82
|
+
"nonGitWarning": {
|
|
83
|
+
"title": "⚠️ 需要重要设置",
|
|
84
|
+
"message": "此会话是在非 Git 目录中启动的。要永久保存您的更改,您需要设置远程仓库:",
|
|
85
|
+
"step1": "1. 打开终端并运行:",
|
|
86
|
+
"command1": "git remote add origin <your-repo-url>",
|
|
87
|
+
"command2": "git push -u origin main",
|
|
88
|
+
"step2": "2. 将 <your-repo-url> 替换为您的 Git 仓库 URL。",
|
|
89
|
+
"warning": "如果不进行此设置,更改将仅存在于容器内。",
|
|
90
|
+
"close": "知道了"
|
|
59
91
|
}
|
|
60
92
|
}
|