@agimon-ai/po-team 0.0.0-alpha.181 → 0.0.0-alpha.183
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.
|
@@ -2112,6 +2112,31 @@ function intercomOutcome(details) {
|
|
|
2112
2112
|
function intercomSender(details) {
|
|
2113
2113
|
return isRecord(details) ? asString(details.sender) : "";
|
|
2114
2114
|
}
|
|
2115
|
+
/** One line per outgoing intercom message: who it went to and what it said. members and pending stay compact. */
|
|
2116
|
+
function intercomActivity({ args, result, isError }) {
|
|
2117
|
+
if (isError) return [];
|
|
2118
|
+
const { action, target, message } = intercomCallSummary(args, result?.details);
|
|
2119
|
+
if (!message) return [];
|
|
2120
|
+
return [`→ ${(action === "reply" ? intercomOutcome(result?.details).who : target) || "agent"}${action === "ask" ? " asks" : ""} "${message}"`];
|
|
2121
|
+
}
|
|
2122
|
+
/** One line per agent a subagent run starts, with its task. Status, agents and control calls stay compact. */
|
|
2123
|
+
function subagentActivity({ args, isError }) {
|
|
2124
|
+
if (isError || args.action !== "run") return [];
|
|
2125
|
+
return records(args.requests).flatMap((request) => {
|
|
2126
|
+
const agent = asString(request.agent);
|
|
2127
|
+
if (!agent) return [];
|
|
2128
|
+
const task = preview(asString(request.task));
|
|
2129
|
+
return [task ? `Subagent ${agent}: ${task}` : `Subagent ${agent}`];
|
|
2130
|
+
});
|
|
2131
|
+
}
|
|
2132
|
+
/** The new session's name and brief, so a hand-off reads in the conversation. */
|
|
2133
|
+
function startSessionActivity({ args, isError }) {
|
|
2134
|
+
if (isError) return [];
|
|
2135
|
+
const name = asString(args.name);
|
|
2136
|
+
if (!name) return [];
|
|
2137
|
+
const brief = preview(asString(args.brief));
|
|
2138
|
+
return [brief ? `Started session ${name}: ${brief}` : `Started session ${name}`];
|
|
2139
|
+
}
|
|
2115
2140
|
//#endregion
|
|
2116
2141
|
//#region src/extensions/workspaces/sessions/(frontend)/tool/_components/IntercomToolMessage.native.tsx
|
|
2117
2142
|
/** How the outgoing bubble settled, as a quiet line beneath it. An answer is its own bubble instead. */
|
|
@@ -2472,7 +2497,10 @@ const styles$2 = StyleSheet.create((theme) => ({
|
|
|
2472
2497
|
//#endregion
|
|
2473
2498
|
//#region src/extensions/workspaces/sessions/(frontend)/tool/intercom.native.tsx
|
|
2474
2499
|
/** The intercom tool's timeline card on the phone. The filename names the tool it renders. */
|
|
2475
|
-
var intercom_native_default = defineToolRenderer({
|
|
2500
|
+
var intercom_native_default = defineToolRenderer({
|
|
2501
|
+
message: IntercomToolMessage,
|
|
2502
|
+
activity: intercomActivity
|
|
2503
|
+
});
|
|
2476
2504
|
//#endregion
|
|
2477
2505
|
//#region src/extensions/workspaces/sessions/(frontend)/tool/_components/StartSessionToolMessage.native.tsx
|
|
2478
2506
|
function StartSessionToolMessage({ args, result, output, running, isError }) {
|
|
@@ -2561,7 +2589,10 @@ const styles$1 = StyleSheet.create((theme) => ({
|
|
|
2561
2589
|
}));
|
|
2562
2590
|
//#endregion
|
|
2563
2591
|
//#region src/extensions/workspaces/sessions/(frontend)/tool/start_session.native.tsx
|
|
2564
|
-
var start_session_native_default = defineToolRenderer({
|
|
2592
|
+
var start_session_native_default = defineToolRenderer({
|
|
2593
|
+
message: StartSessionToolMessage,
|
|
2594
|
+
activity: startSessionActivity
|
|
2595
|
+
});
|
|
2565
2596
|
//#endregion
|
|
2566
2597
|
//#region src/extensions/workspaces/sessions/(frontend)/tool/_components/SubagentToolMessage.native.tsx
|
|
2567
2598
|
const CLOSING = {
|
|
@@ -2827,7 +2858,10 @@ const styles = StyleSheet.create((theme) => ({
|
|
|
2827
2858
|
//#endregion
|
|
2828
2859
|
//#region src/extensions/workspaces/sessions/(frontend)/tool/subagent.native.tsx
|
|
2829
2860
|
/** The subagent tool's timeline card on the phone. The filename names the tool it renders. */
|
|
2830
|
-
var subagent_native_default = defineToolRenderer({
|
|
2861
|
+
var subagent_native_default = defineToolRenderer({
|
|
2862
|
+
message: SubagentToolMessage,
|
|
2863
|
+
activity: subagentActivity
|
|
2864
|
+
});
|
|
2831
2865
|
//#endregion
|
|
2832
2866
|
//#region generated/native.ts
|
|
2833
2867
|
const via = (identity, value) => value === void 0 ? void 0 : {
|