@walkhi/code-relax 0.1.0-beta.8 → 0.1.0-beta.9
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 +10 -11
- package/dist/bin/codex-remote.mjs +11 -12
- package/dist/bin/self-relay-demo.mjs +1 -1
- package/dist/shared/app-server-events.cjs +5 -3
- package/dist/src/desktop-launcher.mjs +7 -10
- package/dist/src/message-images.mjs +0 -18
- package/dist/src/onboarding.mjs +3 -4
- package/dist/src/platform/README.md +1 -1
- package/dist/src/platform/windows/desktop-shortcut-run.ps1 +1 -1
- package/dist/src/platform/windows/desktop-shortcuts.ps1 +1 -1
- package/dist/src/platform/windows/service-host.mjs +4 -7
- package/dist/src/self-relay/admin-page.mjs +54 -0
- package/dist/src/self-relay/admin-state.mjs +25 -12
- package/dist/src/self-relay/demo.mjs +2 -3
- package/dist/src/self-relay/lifecycle.mjs +6 -6
- package/dist/src/self-relay/server.mjs +7 -11
- package/dist/src/server.mjs +147 -1030
- package/dist/src/service-doctor.mjs +3 -3
- package/dist/src/service-lifecycle.mjs +2 -7
- package/dist/src/shared-app-server.mjs +13 -11
- package/dist/src/shared-recovery.mjs +5 -5
- package/dist/src/shared-thread-stream.mjs +1 -1
- package/dist/web/capabilities.js +1 -8
- package/dist/web/chat-transport.js +6 -12
- package/dist/web/chat.css +13 -14
- package/dist/web/chat.js +23 -41
- package/dist/web/community.css +15 -10
- package/dist/web/community.html +4 -5
- package/dist/web/composer-controller.js +0 -4
- package/dist/web/index.html +7 -39
- package/dist/web/resources.json +1 -1
- package/dist/web/task-list-view.js +1 -8
- package/dist/web/timeline-reducer.js +0 -4
- package/package.json +16 -18
- package/dist/src/app-server-client.mjs +0 -468
- package/dist/src/app-server-tasks.mjs +0 -358
- package/dist/src/platform/windows/desktop-monitor.mjs +0 -34
- package/dist/src/platform/windows/desktop-tools.mjs +0 -48
- package/dist/src/thread-catalog.mjs +0 -47
- package/dist/tools/find-desktop-pipe.mjs +0 -10
- package/dist/web/community-view.js +0 -20
|
@@ -69,10 +69,6 @@
|
|
|
69
69
|
|
|
70
70
|
function updateMode() {
|
|
71
71
|
const active = isActive();
|
|
72
|
-
const separateStop = transport.has('separateStop');
|
|
73
|
-
el('interruptTurn').hidden = !separateStop || !active;
|
|
74
|
-
el('interruptTurn').disabled = !options.actionState('interrupt', options.isStopping(state.selectedId)).enabled;
|
|
75
|
-
el('turnActions').hidden = el('interruptTurn').hidden;
|
|
76
72
|
el('prompt').readOnly = options.isThreadReadOnly();
|
|
77
73
|
el('prompt').placeholder = options.isThreadReadOnly() ? '该对话正在另一个 Codex 实例中使用' : '随心输入';
|
|
78
74
|
el('modelTrigger').disabled = Boolean(options.isConnectionBlocked() || options.isThreadReadOnly() || state.historyLoading);
|
package/dist/web/index.html
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
body.page-loading #pageLoading { visibility:hidden; }
|
|
11
11
|
</style>
|
|
12
12
|
<link rel="stylesheet" href="chat.css">
|
|
13
|
-
<link rel="stylesheet" href="community.css">
|
|
14
13
|
</head>
|
|
15
14
|
<body class="page-loading">
|
|
16
15
|
<div id="pageLoading" aria-hidden="true"></div>
|
|
@@ -93,9 +92,8 @@
|
|
|
93
92
|
<div id="tasks"></div>
|
|
94
93
|
<button id="archivedThreads" class="archive-list-entry" type="button" title="查看已归档对话" aria-label="查看已归档对话" hidden><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7h16v12H4zM3 4h18v3H3zM9 11h6"/></svg><span id="archivedThreadsLabel">已归档对话</span><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg></button>
|
|
95
94
|
<button id="usageButton" type="button" title="查看剩余额度" aria-label="查看剩余额度"><svg class="codex-icon filled" viewBox="0 0 16 16" aria-hidden="true"><path d="M7.99951 0.807861C8.82345 0.807861 9.61914 0.935296 10.3667 1.17114C10.643 1.2584 10.7964 1.553 10.7095 1.82935C10.6222 2.10586 10.3268 2.25936 10.0503 2.17212C9.40387 1.96822 8.71489 1.85864 7.99951 1.85864C4.23962 1.85879 1.19204 4.90637 1.19189 8.66626C1.19189 10.4623 1.88656 12.0948 3.02295 13.3118C3.22077 13.5236 3.20925 13.856 2.99756 14.054C2.78565 14.2519 2.45327 14.2405 2.25537 14.0286C0.9446 12.6249 0.141113 10.7387 0.141113 8.66626C0.141259 4.32647 3.65972 0.808008 7.99951 0.807861Z"/><path d="M14.8569 6.00903C15.134 5.92414 15.428 6.07972 15.5132 6.35669C15.7376 7.0875 15.8579 7.86342 15.8579 8.66626C15.8579 10.7385 15.0552 12.6249 13.7446 14.0286C13.5468 14.2404 13.2144 14.2517 13.0024 14.054C12.7909 13.8561 12.7795 13.5246 12.9771 13.3127C14.1134 12.0958 14.8081 10.4623 14.8081 8.66626C14.8081 7.9691 14.7033 7.29731 14.5093 6.66528C14.4242 6.38817 14.5799 6.09422 14.8569 6.00903Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.2886 3.6604C12.4936 3.45576 12.8258 3.45564 13.0308 3.6604C13.2356 3.86532 13.2354 4.19756 13.0308 4.40259L9.8833 7.54907C10.0781 7.87667 10.1919 8.25855 10.1919 8.66724C10.1916 9.87721 9.21046 10.8583 8.00049 10.8586C6.79025 10.8586 5.80841 9.8774 5.80811 8.66724C5.80811 7.45681 6.79006 6.47485 8.00049 6.47485C8.42125 6.47496 8.81322 6.59526 9.14697 6.80103L12.2886 3.6604ZM8.00049 7.52563C7.36996 7.52563 6.85889 8.03671 6.85889 8.66724C6.85919 9.2975 7.37015 9.80884 8.00049 9.80884C8.63056 9.80853 9.14178 9.29731 9.14209 8.66724C9.14209 8.0369 8.63075 7.52594 8.00049 7.52563Z"/></svg><span id="usageSummary">剩余 —%</span><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg></button>
|
|
96
|
-
<button id="announcementButton" type="button" title="
|
|
97
|
-
<
|
|
98
|
-
<div id="sharedServiceNotice" class="shared-service-notice" role="button" tabindex="0" aria-label="查看 Codex 状态" hidden><span class="shared-service-copy"><strong id="sharedServiceNoticeTitle">当前为基础控制</strong><span id="sharedServiceNoticeText">点击查看当前状况和可执行操作</span></span><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg></div>
|
|
95
|
+
<button id="announcementButton" type="button" title="查看公告" aria-label="查看公告"><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 10v4h4l5 4V6l-5 4H4Z"/><path d="M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11"/></svg><span id="announcementTitle">公告</span><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg></button>
|
|
96
|
+
<div id="sharedServiceNotice" class="shared-service-notice" role="button" tabindex="0" aria-label="查看 Codex 状态" hidden><span class="shared-service-copy"><strong id="sharedServiceNoticeTitle">Codex 内核未就绪</strong><span id="sharedServiceNoticeText">点击查看当前状况和可执行操作</span></span><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg></div>
|
|
99
97
|
<button id="connectionSettings" type="button" title="修改连接" aria-label="修改连接"><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></svg><span id="connectionAddress"></span><span id="connectionStatus" role="status">连接中</span><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><path d="m9 6 6 6-6 6"/></svg></button>
|
|
100
98
|
<div class="app-actions">
|
|
101
99
|
<button id="returnToComputer" type="button" title="返回工作站" aria-label="返回工作站" hidden><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><g transform="translate(24 0) scale(-1 1)"><path d="M10 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5M14 8l4 4-4 4M8 12h10"/></g></svg><span>返回</span></button>
|
|
@@ -105,10 +103,10 @@
|
|
|
105
103
|
<div class="debug-menu-items">
|
|
106
104
|
<button id="networkDiagnostics" type="button">网络诊断</button>
|
|
107
105
|
<button id="viewAppLog" type="button">查看日志</button>
|
|
108
|
-
<button id="recoverShared" type="button"
|
|
109
|
-
<div id="sharedRecoveryConfirm" hidden role="group" aria-label="
|
|
110
|
-
<p>将重新打开工作站当前的 Codex
|
|
111
|
-
<button id="sharedRecoveryExecute" type="button"
|
|
106
|
+
<button id="recoverShared" type="button">重新连接 Codex 内核</button>
|
|
107
|
+
<div id="sharedRecoveryConfirm" hidden role="group" aria-label="确认重新连接 Codex 内核">
|
|
108
|
+
<p>将重新打开工作站当前的 Codex,使其接入 Codex 内核。正在运行的任务可能中断,请先保存未发送内容。工作站连接保持运行。</p>
|
|
109
|
+
<button id="sharedRecoveryExecute" type="button">确认重新连接</button>
|
|
112
110
|
<button id="sharedRecoveryCancel" type="button">取消</button>
|
|
113
111
|
</div>
|
|
114
112
|
<p id="sharedRecoveryResult" role="status" hidden></p>
|
|
@@ -119,34 +117,8 @@
|
|
|
119
117
|
</div>
|
|
120
118
|
</aside>
|
|
121
119
|
<section>
|
|
122
|
-
<div id="communityPage" class="community-page" hidden>
|
|
123
|
-
<div class="community-placeholder">
|
|
124
|
-
<span class="community-mark" aria-hidden="true"><svg viewBox="149 149 418 418"><path d="M247.429 247.43C257.73 208.911 292.871 180.543 334.638 180.543C359.555 180.543 382.115 190.64 398.449 206.964C405.906 204.97 413.743 203.905 421.829 203.905C471.681 203.906 512.096 244.32 512.096 294.173C512.096 302.259 511.031 310.096 509.037 317.553C525.361 333.887 535.458 356.446 535.458 381.364C535.458 423.131 507.09 458.271 468.571 468.572C458.271 507.091 423.131 535.459 381.364 535.459C356.446 535.459 333.886 525.362 317.552 509.037C310.095 511.031 302.258 512.097 294.172 512.097C244.319 512.097 203.906 471.682 203.906 421.829C203.906 413.743 204.969 405.905 206.963 398.448C190.639 382.115 180.543 359.555 180.543 334.638C180.543 292.871 208.91 257.73 247.429 247.43Z"/><path d="M436.706 408.738H370.021"/><path d="M276.533 309.154L303.468 357.831C304.433 359.575 304.412 361.698 303.414 363.423L276.533 409.854"/></svg></span>
|
|
125
|
-
<span class="community-kicker">CODE RELAX COMMUNITY</span>
|
|
126
|
-
<h2>面向 Codex 用户的中文实践社区</h2>
|
|
127
|
-
<p class="community-description">分享真实工作流、使用成本、模型体验和一路踩过的坑。</p>
|
|
128
|
-
<aside class="community-agent-board">
|
|
129
|
-
<span class="community-agent-board-mark" aria-hidden="true">A</span>
|
|
130
|
-
<div><span>Agent 自治社区 · 概念规划</span><strong>给你的 Agent 女仆 / 搭档 / 分身,一个只属于它们的社区</strong><p>这里只有 Agent 能开题、投票和发言;人类负责围观,以及照看自己的 Agent。</p></div>
|
|
131
|
-
<small>概念规划</small>
|
|
132
|
-
</aside>
|
|
133
|
-
<div class="community-section-heading"><span>社区热议预告</span><small>6 个话题</small></div>
|
|
134
|
-
<div class="community-questions" aria-label="社区话题预览">
|
|
135
|
-
<article class="community-question community-question-featured"><span><b>01</b>成本与回报<i>必答题</i></span><strong>你能挣回 Codex 的订阅费吗?</strong></article>
|
|
136
|
-
<article class="community-question community-question-hot"><span><b>02</b>模型与额度<i>热议</i></span><strong>Astra 是真聪明,还是只会猛烧额度?</strong></article>
|
|
137
|
-
<article class="community-question community-question-hot"><span><b>03</b>Codex 团队<i>热议</i></span><strong>Tibo,这周还给大家重置额度吗?</strong></article>
|
|
138
|
-
<article class="community-question"><span><b>04</b>云端 Agent</span><strong>Agents API 这么贵,真有人舍得让它自己跑吗?</strong></article>
|
|
139
|
-
<article class="community-question"><span><b>05</b>多 Agent</span><strong>主 Agent 负责想,便宜 Agent 负责干,真能省额度吗?</strong></article>
|
|
140
|
-
<article class="community-question community-question-wide"><span><b>06</b>换谁干活<i>开放讨论</i></span><strong>额度烧完以后,你会回 Claude,还是投奔国产模型?</strong></article>
|
|
141
|
-
</div>
|
|
142
|
-
<div class="community-status" role="status">
|
|
143
|
-
<span class="community-status-dot" aria-hidden="true"></span>
|
|
144
|
-
<span><strong>社区正在建设中</strong><small>敬请期待</small></span>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
120
|
<button id="wideSidebarExpand" type="button" aria-label="展开聊天菜单" title="展开聊天菜单"><svg class="codex-icon" viewBox="0 0 24 24" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 3v18"/></svg></button>
|
|
149
|
-
<div id="empty"><strong id="emptyConnection">准备连接</strong
|
|
121
|
+
<div id="empty"><strong id="emptyConnection">准备连接</strong></div>
|
|
150
122
|
<div id="selected" hidden>
|
|
151
123
|
<div id="newThreadWelcome" class="new-thread-welcome" hidden><!-- Static home icon from Codex Desktop 26.908.9136.0 -->
|
|
152
124
|
<div id="newThreadIcon" aria-hidden="true"><svg width="716" height="716" viewBox="149 149 418 418" fill="none" xmlns="http://www.w3.org/2000/svg" class="new-thread-brand"><mask id="path-1-inside-1_24_869" fill="white"><path fill-rule="evenodd" clip-rule="evenodd" d="M247.429 247.43C257.73 208.911 292.871 180.543 334.638 180.543C359.555 180.543 382.115 190.64 398.449 206.964C405.906 204.97 413.743 203.905 421.829 203.905C471.681 203.906 512.096 244.32 512.096 294.173C512.096 302.259 511.031 310.096 509.037 317.553C525.361 333.887 535.458 356.446 535.458 381.364C535.458 423.131 507.09 458.271 468.571 468.572C458.271 507.091 423.131 535.459 381.364 535.459C356.446 535.459 333.886 525.362 317.552 509.037C310.095 511.031 302.258 512.097 294.172 512.097C244.319 512.097 203.906 471.682 203.906 421.829C203.906 413.743 204.969 405.905 206.963 398.448C190.639 382.115 180.543 359.555 180.543 334.638C180.543 292.871 208.91 257.73 247.429 247.43Z"></path></mask><path d="M247.429 247.43L252.746 267.312L264.238 264.239L267.311 252.747L247.429 247.43ZM334.638 180.543L334.638 159.962L334.638 159.962L334.638 180.543ZM398.449 206.964L383.9 221.521L392.297 229.913L403.765 226.846L398.449 206.964ZM421.829 203.905L421.829 183.325L421.829 183.325L421.829 203.905ZM512.096 294.173L532.677 294.173L532.677 294.173L512.096 294.173ZM509.037 317.553L489.155 312.236L486.087 323.705L494.48 332.102L509.037 317.553ZM535.458 381.364L556.039 381.364L556.039 381.364L535.458 381.364ZM468.571 468.572L463.255 448.69L451.762 451.763L448.689 463.255L468.571 468.572ZM381.364 535.459L381.364 556.04L381.364 556.04L381.364 535.459ZM317.552 509.037L332.101 494.481L323.704 486.088L312.235 489.155L317.552 509.037ZM294.172 512.097L294.172 532.678L294.173 532.678L294.172 512.097ZM203.906 421.829L183.325 421.829L183.325 421.829L203.906 421.829ZM206.963 398.448L226.845 403.765L229.912 392.297L221.52 383.9L206.963 398.448ZM180.543 334.638L159.962 334.638L159.962 334.639L180.543 334.638ZM247.429 247.43L267.311 252.747C275.266 223.003 302.423 201.124 334.638 201.124L334.638 180.543L334.638 159.962C283.319 159.962 240.195 194.819 227.547 242.113L247.429 247.43ZM334.638 180.543L334.638 201.124C353.88 201.124 371.268 208.896 383.9 221.521L398.449 206.964L412.997 192.407C392.962 172.383 365.231 159.962 334.638 159.962L334.638 180.543ZM398.449 206.964L403.765 226.846C409.506 225.311 415.557 224.486 421.829 224.486L421.829 203.905L421.829 183.325C411.929 183.325 402.305 184.629 393.132 187.082L398.449 206.964ZM421.829 203.905L421.828 224.486C460.315 224.486 491.516 255.687 491.516 294.173L512.096 294.173L532.677 294.173C532.677 232.953 483.048 183.325 421.829 183.325L421.829 203.905ZM512.096 294.173L491.516 294.173C491.516 300.444 490.69 306.494 489.155 312.236L509.037 317.553L528.919 322.87C531.372 313.698 532.677 304.074 532.677 294.173L512.096 294.173ZM509.037 317.553L494.48 332.102C507.105 344.735 514.877 362.122 514.877 381.364L535.458 381.364L556.039 381.364C556.039 350.771 543.618 323.04 523.594 303.005L509.037 317.553ZM535.458 381.364L514.877 381.364C514.877 413.578 492.999 440.735 463.255 448.69L468.571 468.572L473.888 488.454C521.182 475.806 556.039 432.683 556.039 381.364L535.458 381.364ZM468.571 468.572L448.689 463.255C440.735 492.999 413.578 514.878 381.364 514.878L381.364 535.459L381.364 556.04C432.683 556.04 475.806 521.183 488.454 473.889L468.571 468.572ZM381.364 535.459L381.364 514.878C362.122 514.878 344.733 507.106 332.101 494.481L317.552 509.037L303.003 523.594C323.038 543.619 350.77 556.04 381.364 556.04L381.364 535.459ZM317.552 509.037L312.235 489.155C306.493 490.691 300.443 491.516 294.172 491.516L294.172 512.097L294.173 532.678C304.073 532.678 313.698 531.372 322.869 528.919L317.552 509.037ZM294.172 512.097L294.172 491.516C255.686 491.516 224.486 460.316 224.486 421.829L203.906 421.829L183.325 421.829C183.325 483.048 232.953 532.678 294.172 532.678L294.172 512.097ZM203.906 421.829L224.486 421.829C224.486 415.555 225.311 409.504 226.845 403.765L206.963 398.448L187.081 393.131C184.627 402.307 183.325 411.932 183.325 421.829L203.906 421.829ZM206.963 398.448L221.52 383.9C208.895 371.268 201.124 353.88 201.124 334.638L180.543 334.638L159.962 334.639C159.962 365.231 172.382 392.962 192.406 412.997L206.963 398.448ZM180.543 334.638L201.124 334.638C201.124 302.423 223.002 275.266 252.746 267.312L247.429 247.43L242.112 227.547C194.818 240.195 159.962 283.319 159.962 334.638L180.543 334.638Z" fill="currentColor" mask="url(#path-1-inside-1_24_869)"></path><path d="M436.706 408.738H370.021" stroke="currentColor" stroke-width="24" stroke-linecap="round"></path><path d="M276.533 309.154L303.468 357.831C304.433 359.575 304.412 361.698 303.414 363.423L276.533 409.854" stroke="currentColor" stroke-width="24" stroke-linecap="round"></path></svg></div><h3 id="newThreadTitle" class="new-thread-title">我们要构建什么?</h3></div>
|
|
@@ -156,9 +128,6 @@
|
|
|
156
128
|
<div id="timeline"></div>
|
|
157
129
|
<button id="scrollToBottom" class="scroll-to-bottom" type="button" aria-label="滚动到最新消息" title="滚动到最新消息" hidden><svg class="codex-icon filled" viewBox="0 0 20 20" aria-hidden="true"><path d="M9.33467 16.6663V4.93978L4.6374 9.63704L4.1667 9.16634L3.69599 8.69661L9.52998 2.86263L9.63447 2.77767C9.8925 2.60753 10.2433 2.63564 10.4704 2.86263L16.3034 8.69661L16.3884 8.80111C16.5588 9.05922 16.5306 9.40982 16.3034 9.63704C16.0762 9.86414 15.7255 9.89242 15.4675 9.722L15.363 9.63704L10.6647 4.9388V16.6663C10.6647 17.0336 10.367 17.3314 9.99971 17.3314C9.63259 17.3312 9.33467 17.0335 9.33467 16.6663ZM4.6374 9.63704C4.3777 9.89674 3.95569 9.89674 3.69599 9.63704C3.43657 9.37744 3.43668 8.95628 3.69599 8.69661L4.6374 9.63704Z"/></svg></button>
|
|
158
130
|
<div id="queuePanel" class="queue-panel" hidden></div>
|
|
159
|
-
<div id="turnActions" style="display:flex;gap:8px;align-items:center;padding:4px 0;font-size:12px" hidden>
|
|
160
|
-
<button id="interruptTurn" type="button" hidden>停止</button>
|
|
161
|
-
</div>
|
|
162
131
|
<div id="connectionNotice" class="connection-notice" role="status" hidden><span class="connection-indicator" aria-hidden="true"></span><span id="connectionNoticeText">连接已断开</span><button id="reconnectConversation" type="button">重新连接</button></div>
|
|
163
132
|
<div id="newThreadProjectBar" class="new-thread-project" hidden><span id="newThreadProjectName">不在项目中工作</span><button id="clearNewThreadProject" type="button" aria-label="清空项目" title="清空项目">×</button></div>
|
|
164
133
|
<div id="approvalPanel" class="approval-panel" hidden></div>
|
|
@@ -316,7 +285,6 @@
|
|
|
316
285
|
<script src="link-action-controller.js"></script>
|
|
317
286
|
<script src="message-view.js"></script>
|
|
318
287
|
<script src="activity-view.js"></script>
|
|
319
|
-
<script src="community-view.js"></script>
|
|
320
288
|
<script src="timeline-formatters.js"></script>
|
|
321
289
|
<script src="timeline-scroll-controller.js"></script>
|
|
322
290
|
<script src="timeline-renderer.js"></script>
|
package/dist/web/resources.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
["server-requests.js","approval-ui.js","chat.css","
|
|
1
|
+
["server-requests.js","approval-ui.js","chat.css","highlight.min.js","highlight-powershell.min.js","capabilities.js","timeline-sync.js","timeline-reducer.js","harmony-platform.js","client-platform.js","lan-session.js","history-cache.js","p2p-diagnostics.js","p2p-data-channel.js","p2p-probe.js","self-relay-session.js","chat-transport.js","page-resume.js","conversation-controller.js","history-controller.js","usage-controller.js","task-list-view.js","draft-controller.js","thread-attention-controller.js","thread-title-controller.js","thread-list-controller.js","thread-list-sync.js","station-connection-controller.js","disclosure-state-controller.js","pending-message-store.js","queue-controller.js","thread-context-controller.js","composer-controller.js","message-send-controller.js","link-action-controller.js","message-view.js","activity-view.js","timeline-formatters.js","timeline-scroll-controller.js","timeline-renderer.js","chat.js"]
|
|
@@ -206,15 +206,8 @@
|
|
|
206
206
|
title.className = 'task-title';
|
|
207
207
|
const displayTitle = resolvedThreadTitle(thread);
|
|
208
208
|
title.textContent = displayTitle;
|
|
209
|
-
button.title = [displayTitle,
|
|
209
|
+
button.title = [displayTitle, statusText(thread.status), thread.cwd].filter(Boolean).join(' · ');
|
|
210
210
|
button.append(title);
|
|
211
|
-
if (thread.transport === 'app-server') {
|
|
212
|
-
const badge = document.createElement('span');
|
|
213
|
-
badge.className = 'transport-badge';
|
|
214
|
-
badge.textContent = 'AS';
|
|
215
|
-
badge.title = '独立 app-server 任务';
|
|
216
|
-
button.append(badge);
|
|
217
|
-
}
|
|
218
211
|
if (archivePending) button.append(statusIcon('archive-status', state.showingArchived ? '恢复中' : '归档中', state.showingArchived ? '恢复中…' : '归档中…'));
|
|
219
212
|
else if (isThreadWaitingForApproval(thread)) button.append(statusIcon('approval-status', '等待批准', '等待批准'));
|
|
220
213
|
else if (isThreadRunning(thread)) button.append(statusIcon('running-status', '任务正在进行'));
|
|
@@ -58,10 +58,6 @@
|
|
|
58
58
|
if (accepted?.next) timeline.sync = accepted.next;
|
|
59
59
|
|
|
60
60
|
const removedTurnIds = [];
|
|
61
|
-
const recentHistoryLimit = Number(options.recentHistoryLimit) || 0;
|
|
62
|
-
if (recentHistoryLimit > 0 && timeline.turns.length > recentHistoryLimit) {
|
|
63
|
-
removedTurnIds.push(...timeline.turns.splice(0, timeline.turns.length - recentHistoryLimit).map(turn => turn.id));
|
|
64
|
-
}
|
|
65
61
|
return { timeline, reset: false, notModified: false, duplicate: false, wasEmpty,
|
|
66
62
|
incomingTurns, addedTurns, replacedTurns, removedTurnIds };
|
|
67
63
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@walkhi/code-relax",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
4
|
-
"license": "UNLICENSED",
|
|
2
|
+
"name": "@walkhi/code-relax",
|
|
3
|
+
"version": "0.1.0-beta.9",
|
|
4
|
+
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node ./tools/postinstall.mjs",
|
|
8
8
|
"relay:demo": "node ./bin/self-relay-demo.mjs",
|
|
9
9
|
"relay:check": "node ./bin/self-relay-demo.mjs --check",
|
|
10
|
-
"probe:app-server": "node ./tools/probe-app-server.mjs",
|
|
11
|
-
"probe:app-server-tasks": "node ./tools/probe-app-server-tasks.mjs",
|
|
12
10
|
"build": "node ./tools/build-package.mjs",
|
|
13
11
|
"prepack": "npm run build"
|
|
14
12
|
},
|
|
@@ -18,10 +16,10 @@
|
|
|
18
16
|
"sharp": "0.35.4",
|
|
19
17
|
"ws": "8.21.3"
|
|
20
18
|
},
|
|
21
|
-
"bin": {
|
|
22
|
-
"relax": "dist/bin/codex-remote.mjs",
|
|
23
|
-
"code-relax": "dist/bin/codex-remote.mjs"
|
|
24
|
-
},
|
|
19
|
+
"bin": {
|
|
20
|
+
"relax": "dist/bin/codex-remote.mjs",
|
|
21
|
+
"code-relax": "dist/bin/codex-remote.mjs"
|
|
22
|
+
},
|
|
25
23
|
"description": "Windows Code Relax LAN Bridge and CLI",
|
|
26
24
|
"engines": {
|
|
27
25
|
"node": ">=22.12.0"
|
|
@@ -36,15 +34,15 @@
|
|
|
36
34
|
"dist/",
|
|
37
35
|
"tools/postinstall.mjs"
|
|
38
36
|
],
|
|
39
|
-
"bundleDependencies": [
|
|
37
|
+
"bundleDependencies": [
|
|
40
38
|
"node-datachannel",
|
|
41
39
|
"qrcode",
|
|
42
40
|
"sharp",
|
|
43
|
-
"ws"
|
|
44
|
-
],
|
|
45
|
-
"publishConfig": {
|
|
46
|
-
"access": "public",
|
|
47
|
-
"registry": "https://registry.npmjs.org",
|
|
48
|
-
"tag": "beta"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
41
|
+
"ws"
|
|
42
|
+
],
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"registry": "https://registry.npmjs.org",
|
|
46
|
+
"tag": "beta"
|
|
47
|
+
}
|
|
48
|
+
}
|