@rivus/agent 0.10.1 → 0.10.3
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/dist/agent-loop.d.ts
CHANGED
|
@@ -298,6 +298,7 @@ interface AutomationAgentInvocationOrigin {
|
|
|
298
298
|
}
|
|
299
299
|
interface BackgroundSessionAgentInvocationOrigin {
|
|
300
300
|
readonly allowedActorOpenIds: ReadonlyArray<string>;
|
|
301
|
+
readonly conversationId?: string;
|
|
301
302
|
readonly endpointId: string;
|
|
302
303
|
readonly kind: "background-session";
|
|
303
304
|
readonly memory?: AgentMemoryInvocationIdentity;
|
package/dist/index.js
CHANGED
|
@@ -2879,7 +2879,7 @@ function resolveRunPresentation(input) {
|
|
|
2879
2879
|
title: input.generation ? "正在处理(续)" : "正在处理"
|
|
2880
2880
|
};
|
|
2881
2881
|
case "handoff": return {
|
|
2882
|
-
content:
|
|
2882
|
+
content: "任务仍在后台处理,进度将继续显示在下一条消息。",
|
|
2883
2883
|
note: "本卡片已停止更新;后续进度见下一条消息",
|
|
2884
2884
|
template: "blue",
|
|
2885
2885
|
title: "已转到新消息"
|
|
@@ -3048,10 +3048,6 @@ function updateWholeCard(baseUrl, agentName, request, status, call) {
|
|
|
3048
3048
|
..."reason" in request && request.reason ? { reason: request.reason } : {},
|
|
3049
3049
|
status,
|
|
3050
3050
|
...requestText === void 0 ? {} : { text: requestText }
|
|
3051
|
-
}) : status === "handoff" ? createFeishuAgentRunCard({
|
|
3052
|
-
agentName,
|
|
3053
|
-
status,
|
|
3054
|
-
...requestText === void 0 ? {} : { text: requestText }
|
|
3055
3051
|
}) : createFeishuAgentRunCard({
|
|
3056
3052
|
agentName,
|
|
3057
3053
|
status
|
package/dist/pi.js
CHANGED
|
@@ -89,7 +89,7 @@ function createPiToolProxyDefinitions(options) {
|
|
|
89
89
|
authority: createInvocationAuthority({
|
|
90
90
|
agentId: options.agentId,
|
|
91
91
|
allowedActorOpenIds: invocation.allowedActorOpenIds,
|
|
92
|
-
...invocation.memory?.conversationId ? { conversationId: invocation.memory.conversationId } : {},
|
|
92
|
+
...invocation.kind === "background-session" ? invocation.conversationId ? { conversationId: invocation.conversationId } : {} : invocation.memory?.conversationId ? { conversationId: invocation.memory.conversationId } : {},
|
|
93
93
|
endpointId: invocation.endpointId,
|
|
94
94
|
instanceId: options.instanceId,
|
|
95
95
|
...invocation.memory ? { memory: {
|
|
@@ -189,6 +189,7 @@ export async function createRivusDeploymentAdapters(context: RivusDeploymentBoot
|
|
|
189
189
|
let runId: string | undefined;
|
|
190
190
|
const invocation = {
|
|
191
191
|
allowedActorOpenIds: session.origin.allowedActorOpenIds,
|
|
192
|
+
...(session.origin.conversationId ? { conversationId: session.origin.conversationId } : {}),
|
|
192
193
|
endpointId: session.origin.endpointId,
|
|
193
194
|
kind: "background-session" as const,
|
|
194
195
|
...(session.origin.memory ? { memory: session.origin.memory } : {}),
|