@auto-ai/agent 2.1.93 → 2.1.95
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/bin/agent.js +0 -0
- package/dist/404/index.html +1 -1
- package/dist/404.html +1 -1
- package/dist/_next/static/chunks/24ad0472395a5554.js +1 -0
- package/dist/_next/static/chunks/{ce0cac88dd992956.css → 6a750155591ba201.css} +1 -1
- package/dist/agent-office.html +580 -1
- package/dist/index.html +1 -1
- package/dist/index.txt +6 -6
- package/dist/manage/about/index.html +2 -2
- package/dist/manage/about/index.txt +3 -3
- package/dist/manage/add-account/basic/index.html +2 -2
- package/dist/manage/add-account/basic/index.txt +3 -3
- package/dist/manage/add-account/index.html +2 -2
- package/dist/manage/add-account/index.txt +3 -3
- package/dist/manage/add-account/prompt/index.html +2 -2
- package/dist/manage/add-account/prompt/index.txt +3 -3
- package/dist/manage/agent-teams/index.html +2 -2
- package/dist/manage/agent-teams/index.txt +3 -3
- package/dist/manage/env/index.html +2 -2
- package/dist/manage/env/index.txt +3 -3
- package/dist/manage/general/index.html +2 -2
- package/dist/manage/general/index.txt +3 -3
- package/dist/manage/index.html +1 -1
- package/dist/manage/index.txt +3 -3
- package/dist/manage/mcp/index.html +2 -2
- package/dist/manage/mcp/index.txt +3 -3
- package/dist/manage/permissions/index.html +2 -2
- package/dist/manage/permissions/index.txt +3 -3
- package/dist/manage/skills/index.html +2 -2
- package/dist/manage/skills/index.txt +3 -3
- package/dist/manage/task/index.html +1 -1
- package/dist/manage/task/index.txt +3 -3
- package/dist/manage/teams/index.html +1 -1
- package/dist/manage/teams/index.txt +3 -3
- package/dist/manage/tools/index.html +2 -2
- package/dist/manage/tools/index.txt +3 -3
- package/dist/slash-command-ui-patch.css +49 -0
- package/dist/slash-command-ui-patch.js +101 -0
- package/dist/ws-test.html +111 -2
- package/package.json +6 -6
- package/dist/_next/static/chunks/091dc4a67d911a93.js +0 -1
- package/dist/agent-office/accents.js +0 -28
- package/dist/agent-office/api.js +0 -142
- package/dist/agent-office/list.js +0 -79
- package/dist/agent-office/main.js +0 -38
- package/dist/agent-office/officeController.js +0 -13
- package/dist/agent-office/ui.js +0 -264
- /package/dist/_next/static/{nFW2vz8zx3Bz5bWQhlf33 → q0is0IhxOAG7ogFx9qQFk}/_buildManifest.js +0 -0
- /package/dist/_next/static/{nFW2vz8zx3Bz5bWQhlf33 → q0is0IhxOAG7ogFx9qQFk}/_clientMiddlewareManifest.json +0 -0
- /package/dist/_next/static/{nFW2vz8zx3Bz5bWQhlf33 → q0is0IhxOAG7ogFx9qQFk}/_ssgManifest.js +0 -0
package/dist/ws-test.html
CHANGED
|
@@ -1357,6 +1357,55 @@
|
|
|
1357
1357
|
white-space: pre-wrap;
|
|
1358
1358
|
word-break: break-word;
|
|
1359
1359
|
}
|
|
1360
|
+
.chat-command-name {
|
|
1361
|
+
display: inline-block;
|
|
1362
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1363
|
+
font-size: 0.82rem;
|
|
1364
|
+
font-weight: 600;
|
|
1365
|
+
color: #1d4ed8;
|
|
1366
|
+
background: #eff6ff;
|
|
1367
|
+
border: 1px solid #bfdbfe;
|
|
1368
|
+
border-radius: 6px;
|
|
1369
|
+
padding: 0.2rem 0.55rem;
|
|
1370
|
+
line-height: 1.35;
|
|
1371
|
+
}
|
|
1372
|
+
.chat-local-command-stdout {
|
|
1373
|
+
display: block;
|
|
1374
|
+
margin: 0.4rem 0 0;
|
|
1375
|
+
padding: 0.6rem 0.75rem;
|
|
1376
|
+
border-radius: 8px;
|
|
1377
|
+
background: #f8fafc;
|
|
1378
|
+
border: 1px solid #e2e8f0;
|
|
1379
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1380
|
+
font-size: 0.78rem;
|
|
1381
|
+
line-height: 1.5;
|
|
1382
|
+
white-space: pre-wrap;
|
|
1383
|
+
word-break: break-all;
|
|
1384
|
+
color: #0f172a;
|
|
1385
|
+
overflow-x: auto;
|
|
1386
|
+
}
|
|
1387
|
+
.chat-local-command-stderr {
|
|
1388
|
+
display: block;
|
|
1389
|
+
margin: 0.4rem 0 0;
|
|
1390
|
+
padding: 0.6rem 0.75rem;
|
|
1391
|
+
border-radius: 8px;
|
|
1392
|
+
background: #fef2f2;
|
|
1393
|
+
border: 1px solid #fecaca;
|
|
1394
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
1395
|
+
font-size: 0.78rem;
|
|
1396
|
+
line-height: 1.5;
|
|
1397
|
+
white-space: pre-wrap;
|
|
1398
|
+
word-break: break-word;
|
|
1399
|
+
color: #991b1b;
|
|
1400
|
+
}
|
|
1401
|
+
.chat-slash-xml-rest {
|
|
1402
|
+
display: block;
|
|
1403
|
+
margin-top: 0.25rem;
|
|
1404
|
+
font-size: 0.72rem;
|
|
1405
|
+
color: var(--ds-muted);
|
|
1406
|
+
white-space: pre-wrap;
|
|
1407
|
+
word-break: break-word;
|
|
1408
|
+
}
|
|
1360
1409
|
.chat-user-body.is-collapsed {
|
|
1361
1410
|
display: -webkit-box;
|
|
1362
1411
|
-webkit-box-orient: vertical;
|
|
@@ -3626,6 +3675,65 @@
|
|
|
3626
3675
|
.replace(/"/g, '"')
|
|
3627
3676
|
}
|
|
3628
3677
|
|
|
3678
|
+
/**
|
|
3679
|
+
* 将斜杠命令相关 XML 标签渲染为带样式的 HTML(command-name / local-command-stdout 等)。
|
|
3680
|
+
* 无匹配标签时返回 null,调用方继续用纯文本展示。
|
|
3681
|
+
*/
|
|
3682
|
+
function renderSlashCommandMarkup(text) {
|
|
3683
|
+
if (!text || typeof text !== 'string') return null
|
|
3684
|
+
if (
|
|
3685
|
+
text.indexOf('<command-name>') === -1 &&
|
|
3686
|
+
text.indexOf('<local-command-stdout>') === -1 &&
|
|
3687
|
+
text.indexOf('<local-command-stderr>') === -1
|
|
3688
|
+
) {
|
|
3689
|
+
return null
|
|
3690
|
+
}
|
|
3691
|
+
const tagRe =
|
|
3692
|
+
/<(command-name|local-command-stdout|local-command-stderr)>([\s\S]*?)<\/\1>/g
|
|
3693
|
+
let html = ''
|
|
3694
|
+
let last = 0
|
|
3695
|
+
let m
|
|
3696
|
+
while ((m = tagRe.exec(text))) {
|
|
3697
|
+
if (m.index > last) {
|
|
3698
|
+
const rest = text.slice(last, m.index).trim()
|
|
3699
|
+
if (rest) {
|
|
3700
|
+
html +=
|
|
3701
|
+
'<span class="chat-slash-xml-rest">' + escapeHtml(rest) + '</span>'
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
const tag = m[1]
|
|
3705
|
+
const inner = m[2].replace(/^\n+|\n+$/g, '')
|
|
3706
|
+
if (tag === 'command-name') {
|
|
3707
|
+
html +=
|
|
3708
|
+
'<span class="chat-command-name">' + escapeHtml(inner.trim()) + '</span>'
|
|
3709
|
+
} else if (tag === 'local-command-stdout') {
|
|
3710
|
+
html +=
|
|
3711
|
+
'<pre class="chat-local-command-stdout">' + escapeHtml(inner) + '</pre>'
|
|
3712
|
+
} else {
|
|
3713
|
+
html +=
|
|
3714
|
+
'<pre class="chat-local-command-stderr">' + escapeHtml(inner) + '</pre>'
|
|
3715
|
+
}
|
|
3716
|
+
last = m.index + m[0].length
|
|
3717
|
+
}
|
|
3718
|
+
if (last < text.length) {
|
|
3719
|
+
const tail = text.slice(last).trim()
|
|
3720
|
+
if (tail) {
|
|
3721
|
+
html += '<span class="chat-slash-xml-rest">' + escapeHtml(tail) + '</span>'
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
return html || null
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
function setMessageBodyEl(bodyEl, text) {
|
|
3728
|
+
const markup = renderSlashCommandMarkup(text)
|
|
3729
|
+
if (markup) {
|
|
3730
|
+
bodyEl.innerHTML = markup
|
|
3731
|
+
bodyEl.classList.add('chat-slash-xml-body')
|
|
3732
|
+
} else {
|
|
3733
|
+
bodyEl.textContent = text
|
|
3734
|
+
}
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3629
3737
|
function contentToPlainText(content) {
|
|
3630
3738
|
if (content == null) return ''
|
|
3631
3739
|
if (typeof content === 'string') return content
|
|
@@ -3788,7 +3896,7 @@
|
|
|
3788
3896
|
lab.textContent = formatScheduledLabel('User · agent=' + messageAgent, isScheduled)
|
|
3789
3897
|
const bodyEl = document.createElement('div')
|
|
3790
3898
|
bodyEl.className = 'chat-user-body'
|
|
3791
|
-
bodyEl
|
|
3899
|
+
setMessageBodyEl(bodyEl, body)
|
|
3792
3900
|
div.appendChild(lab)
|
|
3793
3901
|
div.appendChild(bodyEl)
|
|
3794
3902
|
container.appendChild(div)
|
|
@@ -3821,7 +3929,8 @@
|
|
|
3821
3929
|
lab.className = 'chat-msg-label'
|
|
3822
3930
|
lab.textContent = formatScheduledLabel('System · agent=' + messageAgent, isScheduled)
|
|
3823
3931
|
const bodyEl = document.createElement('div')
|
|
3824
|
-
bodyEl.
|
|
3932
|
+
bodyEl.className = 'chat-user-body'
|
|
3933
|
+
setMessageBodyEl(bodyEl, raw)
|
|
3825
3934
|
div.appendChild(lab)
|
|
3826
3935
|
div.appendChild(bodyEl)
|
|
3827
3936
|
container.appendChild(div)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auto-ai/agent",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.95",
|
|
4
4
|
"description": "Auto AI Agent 网关 CLI(WebSocket,独立二进制,无需 Bun)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"maintainers": [
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"node": ">=18"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@auto-ai/agent-linux-x64": "2.1.
|
|
28
|
-
"@auto-ai/agent-linux-arm64": "2.1.
|
|
29
|
-
"@auto-ai/agent-darwin-x64": "2.1.
|
|
30
|
-
"@auto-ai/agent-darwin-arm64": "2.1.
|
|
31
|
-
"@auto-ai/agent-win-x64": "2.1.
|
|
27
|
+
"@auto-ai/agent-linux-x64": "2.1.95",
|
|
28
|
+
"@auto-ai/agent-linux-arm64": "2.1.95",
|
|
29
|
+
"@auto-ai/agent-darwin-x64": "2.1.95",
|
|
30
|
+
"@auto-ai/agent-darwin-arm64": "2.1.95",
|
|
31
|
+
"@auto-ai/agent-win-x64": "2.1.95"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"prepare": "node ../../scripts/sync-launcher-env.js",
|