Update sessions and device auth

This commit is contained in:
2026-02-27 18:15:18 +08:00
parent 7babfa3fe3
commit fc4d043d38
3 changed files with 345 additions and 2 deletions
@@ -339,5 +339,348 @@
"memoryFlushCompactionCount": 0,
"providerOverride": "bailian",
"modelOverride": "qwen3-max-2026-01-23"
},
"agent:knowledge-base:main": {
"sessionId": "24de4bba-3207-49ec-a1f5-ee3e21a7641e",
"updatedAt": 1772187311388,
"systemSent": true,
"skillsSnapshot": {
"prompt": "\n\nThe following skills provide specialized instructions for specific tasks.\nUse the read tool to load a skill's file when the task matches its description.\nWhen a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.\n\n<available_skills>\n <skill>\n <name>kb-workflow</name>\n <description>当收到&quot;添加到知识库 + 链接&quot; 或&quot;保存到知识库 + 链接&quot;时使用</description>\n <location>/home/starmen1265/.openclaw/agents/knowledge-base/workspace/skills/kb-workflow/SKILL.md</location>\n </skill>\n</available_skills>",
"skills": [
{
"name": "kb-workflow"
}
],
"resolvedSkills": [
{
"name": "kb-workflow",
"description": "当收到\"添加到知识库 + 链接\" 或\"保存到知识库 + 链接\"时使用",
"filePath": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/skills/kb-workflow/SKILL.md",
"baseDir": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/skills/kb-workflow",
"source": "openclaw-workspace",
"disableModelInvocation": false
}
],
"version": 1772187037367
},
"deliveryContext": {
"channel": "feishu",
"to": "user:ou_9351c287f42069fa30366ac641d24df7",
"accountId": "feishu-worker"
},
"lastChannel": "feishu",
"lastTo": "user:ou_9351c287f42069fa30366ac641d24df7",
"lastAccountId": "feishu-worker",
"channel": "feishu",
"modelProvider": "zhipu",
"model": "glm-5",
"contextTokens": 200000,
"abortedLastRun": false,
"inputTokens": 1855,
"outputTokens": 271,
"totalTokens": 48191,
"chatType": "direct",
"origin": {
"label": "张青",
"provider": "feishu",
"surface": "feishu",
"chatType": "direct",
"from": "feishu:ou_9351c287f42069fa30366ac641d24df7",
"to": "user:ou_9351c287f42069fa30366ac641d24df7",
"accountId": "feishu-worker"
},
"sessionFile": "/home/starmen1265/.openclaw/agents/knowledge-base/sessions/24de4bba-3207-49ec-a1f5-ee3e21a7641e.jsonl",
"systemPromptReport": {
"source": "run",
"generatedAt": 1772187171469,
"sessionId": "24de4bba-3207-49ec-a1f5-ee3e21a7641e",
"sessionKey": "agent:knowledge-base:main",
"provider": "zhipu",
"model": "glm-5",
"workspaceDir": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace",
"bootstrapMaxChars": 20000,
"sandbox": {
"mode": "off",
"sandboxed": false
},
"systemPrompt": {
"chars": 21912,
"projectContextChars": 12076,
"nonProjectContextChars": 9836
},
"injectedWorkspaceFiles": [
{
"name": "AGENTS.md",
"path": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/AGENTS.md",
"missing": false,
"rawChars": 7804,
"injectedChars": 7804,
"truncated": false
},
{
"name": "SOUL.md",
"path": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/SOUL.md",
"missing": false,
"rawChars": 1766,
"injectedChars": 1766,
"truncated": false
},
{
"name": "TOOLS.md",
"path": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/TOOLS.md",
"missing": false,
"rawChars": 850,
"injectedChars": 850,
"truncated": false
},
{
"name": "IDENTITY.md",
"path": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/IDENTITY.md",
"missing": false,
"rawChars": 336,
"injectedChars": 336,
"truncated": false
},
{
"name": "USER.md",
"path": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/USER.md",
"missing": false,
"rawChars": 474,
"injectedChars": 474,
"truncated": false
},
{
"name": "HEARTBEAT.md",
"path": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/HEARTBEAT.md",
"missing": false,
"rawChars": 167,
"injectedChars": 167,
"truncated": false
},
{
"name": "BOOTSTRAP.md",
"path": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/BOOTSTRAP.md",
"missing": false,
"rawChars": 88,
"injectedChars": 88,
"truncated": false
},
{
"name": "MEMORY.md",
"path": "/home/starmen1265/.openclaw/agents/knowledge-base/workspace/MEMORY.md",
"missing": false,
"rawChars": 253,
"injectedChars": 253,
"truncated": false
}
],
"skills": {
"promptChars": 615,
"entries": [
{
"name": "kb-workflow",
"blockChars": 246
}
]
},
"tools": {
"listChars": 2378,
"schemaChars": 16629,
"entries": [
{
"name": "read",
"summaryChars": 298,
"schemaChars": 392,
"propertiesCount": 4
},
{
"name": "edit",
"summaryChars": 129,
"schemaChars": 591,
"propertiesCount": 6
},
{
"name": "write",
"summaryChars": 127,
"schemaChars": 313,
"propertiesCount": 3
},
{
"name": "exec",
"summaryChars": 181,
"schemaChars": 1037,
"propertiesCount": 12
},
{
"name": "process",
"summaryChars": 85,
"schemaChars": 844,
"propertiesCount": 11
},
{
"name": "browser",
"summaryChars": 1251,
"schemaChars": 1869,
"propertiesCount": 28
},
{
"name": "canvas",
"summaryChars": 106,
"schemaChars": 661,
"propertiesCount": 18
},
{
"name": "nodes",
"summaryChars": 101,
"schemaChars": 1479,
"propertiesCount": 33
},
{
"name": "cron",
"summaryChars": 2444,
"schemaChars": 581,
"propertiesCount": 13
},
{
"name": "message",
"summaryChars": 89,
"schemaChars": 3897,
"propertiesCount": 84
},
{
"name": "tts",
"summaryChars": 129,
"schemaChars": 223,
"propertiesCount": 2
},
{
"name": "gateway",
"summaryChars": 225,
"schemaChars": 465,
"propertiesCount": 11
},
{
"name": "agents_list",
"summaryChars": 72,
"schemaChars": 33,
"propertiesCount": 0
},
{
"name": "sessions_list",
"summaryChars": 54,
"schemaChars": 176,
"propertiesCount": 4
},
{
"name": "sessions_history",
"summaryChars": 36,
"schemaChars": 149,
"propertiesCount": 3
},
{
"name": "sessions_send",
"summaryChars": 84,
"schemaChars": 203,
"propertiesCount": 5
},
{
"name": "sessions_spawn",
"summaryChars": 107,
"schemaChars": 312,
"propertiesCount": 8
},
{
"name": "session_status",
"summaryChars": 207,
"schemaChars": 89,
"propertiesCount": 2
},
{
"name": "web_search",
"summaryChars": 175,
"schemaChars": 733,
"propertiesCount": 6
},
{
"name": "web_fetch",
"summaryChars": 129,
"schemaChars": 360,
"propertiesCount": 3
},
{
"name": "feishu_doc",
"summaryChars": 116,
"schemaChars": 584,
"propertiesCount": 6
},
{
"name": "feishu_app_scopes",
"summaryChars": 102,
"schemaChars": 33,
"propertiesCount": 0
},
{
"name": "feishu_wiki",
"summaryChars": 83,
"schemaChars": 880,
"propertiesCount": 10
},
{
"name": "feishu_drive",
"summaryChars": 81,
"schemaChars": 458,
"propertiesCount": 5
},
{
"name": "memory_search",
"summaryChars": 235,
"schemaChars": 139,
"propertiesCount": 3
},
{
"name": "memory_get",
"summaryChars": 151,
"schemaChars": 128,
"propertiesCount": 3
}
]
}
}
},
"agent:knowledge-base:subagent:1a5deb31-6fcd-43ea-8271-91c03afd9bab": {
"sessionId": "7e58c756-dbbe-4928-a7fa-451ec094d74c",
"updatedAt": 1772186933693,
"deliveryContext": {
"channel": "feishu"
},
"lastChannel": "feishu",
"spawnedBy": "agent:knowledge-base:main",
"channel": "feishu",
"skillsSnapshot": {
"prompt": "\n\nThe following skills provide specialized instructions for specific tasks.\nUse the read tool to load a skill's file when the task matches its description.\nWhen a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.\n\n<available_skills>\n <skill>\n <name>kb-workflow</name>\n <description>当收到&quot;添加到知识库 + 链接&quot; 或&quot;保存到知识库 + 链接&quot;时使用</description>\n <location>/home/starmen1265/.openclaw/skills/kb-workflow/SKILL.md</location>\n </skill>\n</available_skills>",
"skills": [
{
"name": "kb-workflow"
}
],
"resolvedSkills": [
{
"name": "kb-workflow",
"description": "当收到\"添加到知识库 + 链接\" 或\"保存到知识库 + 链接\"时使用",
"filePath": "/home/starmen1265/.openclaw/skills/kb-workflow/SKILL.md",
"baseDir": "/home/starmen1265/.openclaw/skills/kb-workflow",
"source": "openclaw-managed",
"disableModelInvocation": false
}
],
"version": 1772185565956
},
"modelProvider": "zhipu",
"model": "glm-5",
"contextTokens": 200000,
"abortedLastRun": false,
"inputTokens": 6794,
"outputTokens": 498,
"totalTokens": 46154
}
}