@tutti-os/agent-gui 0.0.205 → 0.0.206
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 +12 -0
- package/dist/{AgentRichTextReadonly-YU6STDUX.js → AgentRichTextReadonly-DFWY2WYO.js} +5 -5
- package/dist/agent-conversation/index.js +8 -8
- package/dist/agent-env/index.d.ts +8 -1
- package/dist/agent-env/index.js +1 -1
- package/dist/agent-gui.d.ts +13 -0
- package/dist/agent-gui.js +16 -16
- package/dist/agent-message-center/index.js +6 -6
- package/dist/agents.js +1 -1
- package/dist/{chunk-CX6XXG6R.js → chunk-3MVSOLX3.js} +2 -2
- package/dist/chunk-3MVSOLX3.js.map +1 -0
- package/dist/{chunk-JXFOFJYI.js → chunk-5RZVXSQQ.js} +2 -2
- package/dist/{chunk-VDTG6M6K.js → chunk-6LXC5BME.js} +4 -4
- package/dist/{chunk-GJZEMI6Z.js → chunk-CCFYCSBK.js} +551 -538
- package/dist/chunk-CCFYCSBK.js.map +1 -0
- package/dist/{chunk-UEBPMWKS.js → chunk-CKUR2VKA.js} +2 -2
- package/dist/{chunk-X5V6P2EB.js → chunk-DKRX5IZS.js} +4 -4
- package/dist/{chunk-K5AOJ5DO.js → chunk-FWR5BZYR.js} +2 -2
- package/dist/{chunk-XD5NTTFJ.js → chunk-HXAOFFZJ.js} +2 -2
- package/dist/{chunk-4OJSSUEU.js → chunk-JRYR2EA5.js} +4 -4
- package/dist/{chunk-CXC3ROXQ.js → chunk-JZ6KUUDY.js} +34 -17
- package/dist/chunk-JZ6KUUDY.js.map +1 -0
- package/dist/{chunk-RJMCV7OR.js → chunk-M2VRYG7U.js} +18 -6
- package/dist/chunk-M2VRYG7U.js.map +1 -0
- package/dist/{chunk-FHCARLIO.js → chunk-RAO2PI3T.js} +4 -4
- package/dist/{chunk-STOGLKFA.js → chunk-RTKIOE4R.js} +1594 -1543
- package/dist/chunk-RTKIOE4R.js.map +1 -0
- package/dist/{chunk-EOGTJQID.js → chunk-THRBLO2B.js} +2 -2
- package/dist/{chunk-GWKXYGUN.js → chunk-V2MU37VN.js} +2 -2
- package/dist/{chunk-ZTRTBLLP.js → chunk-VGPFDVSK.js} +3 -3
- package/dist/context-mention-palette/index.js +7 -7
- package/dist/i18n/index.d.ts +17 -5
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +551 -9
- package/dist/index.js +24 -16
- package/dist/index.js.map +1 -1
- package/dist/mention-search.js +5 -5
- package/dist/workbench/contribution.js +4 -4
- package/dist/workbench/index.js +4 -4
- package/dist/workbench/sessionTitle.js +2 -2
- package/package.json +14 -14
- package/dist/chunk-CX6XXG6R.js.map +0 -1
- package/dist/chunk-CXC3ROXQ.js.map +0 -1
- package/dist/chunk-GJZEMI6Z.js.map +0 -1
- package/dist/chunk-RJMCV7OR.js.map +0 -1
- package/dist/chunk-STOGLKFA.js.map +0 -1
- /package/dist/{AgentRichTextReadonly-YU6STDUX.js.map → AgentRichTextReadonly-DFWY2WYO.js.map} +0 -0
- /package/dist/{chunk-JXFOFJYI.js.map → chunk-5RZVXSQQ.js.map} +0 -0
- /package/dist/{chunk-VDTG6M6K.js.map → chunk-6LXC5BME.js.map} +0 -0
- /package/dist/{chunk-UEBPMWKS.js.map → chunk-CKUR2VKA.js.map} +0 -0
- /package/dist/{chunk-X5V6P2EB.js.map → chunk-DKRX5IZS.js.map} +0 -0
- /package/dist/{chunk-K5AOJ5DO.js.map → chunk-FWR5BZYR.js.map} +0 -0
- /package/dist/{chunk-XD5NTTFJ.js.map → chunk-HXAOFFZJ.js.map} +0 -0
- /package/dist/{chunk-4OJSSUEU.js.map → chunk-JRYR2EA5.js.map} +0 -0
- /package/dist/{chunk-FHCARLIO.js.map → chunk-RAO2PI3T.js.map} +0 -0
- /package/dist/{chunk-EOGTJQID.js.map → chunk-THRBLO2B.js.map} +0 -0
- /package/dist/{chunk-GWKXYGUN.js.map → chunk-V2MU37VN.js.map} +0 -0
- /package/dist/{chunk-ZTRTBLLP.js.map → chunk-VGPFDVSK.js.map} +0 -0
package/README.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
AgentGUI renders workspace agent sessions, timelines, approvals, and composer
|
|
4
4
|
UI. It is a UI package, not a host transport or business-core package.
|
|
5
5
|
|
|
6
|
+
## Commerce And Account Presentation
|
|
7
|
+
|
|
8
|
+
Hosts own authentication, Commerce fetching, navigation, clipboard, and
|
|
9
|
+
notification side effects. `AgentGUIAccountMenu` renders the shared account
|
|
10
|
+
surface from `AgentGUIAccountMenuState`; `membershipAccess` must come from the
|
|
11
|
+
normalized Commerce contract (`free`, `active`, `inactive`, or `unknown`).
|
|
12
|
+
|
|
13
|
+
Pass `hostCapabilities.commercePresentation` to `AgentGUI` so insufficient
|
|
14
|
+
credit cards can select upgrade, recharge, or neutral copy and use the
|
|
15
|
+
Host-provided `planUrl`. Raw provider error details remain available to
|
|
16
|
+
diagnostics but are not rendered in the product error card.
|
|
17
|
+
|
|
6
18
|
Before changing AgentGUI, AgentGuiNode, or the agent conversation module, read
|
|
7
19
|
[AgentGuiNode Architecture and Troubleshooting](../../../docs/architecture/agent-gui-node.md).
|
|
8
20
|
It defines daemon, workspace-engine, GUI-module, provider, and desktop-host
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRichTextReadonly
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HXAOFFZJ.js";
|
|
4
|
+
import "./chunk-5RZVXSQQ.js";
|
|
5
5
|
import "./chunk-3V5OCA2M.js";
|
|
6
6
|
import "./chunk-FGLQZ6I4.js";
|
|
7
7
|
import "./chunk-ZVYUTXQJ.js";
|
|
8
8
|
import "./chunk-M6HTOCQK.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-THRBLO2B.js";
|
|
10
10
|
import "./chunk-5BJYO6X3.js";
|
|
11
11
|
import "./chunk-AFUVWWQY.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-M2VRYG7U.js";
|
|
13
13
|
import "./chunk-D2JUDUYY.js";
|
|
14
14
|
import "./chunk-QNE2ZPPV.js";
|
|
15
15
|
import "./chunk-O433KXLK.js";
|
|
16
16
|
export {
|
|
17
17
|
AgentRichTextReadonly
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=AgentRichTextReadonly-
|
|
19
|
+
//# sourceMappingURL=AgentRichTextReadonly-DFWY2WYO.js.map
|
|
@@ -7,25 +7,25 @@ import {
|
|
|
7
7
|
reconcileProjectedAgentConversationVM,
|
|
8
8
|
serializeAgentConversationForClipboard,
|
|
9
9
|
useProjectedAgentConversation
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-CCFYCSBK.js";
|
|
11
|
+
import "../chunk-HXAOFFZJ.js";
|
|
12
|
+
import "../chunk-JZ6KUUDY.js";
|
|
13
13
|
import "../chunk-XJ34OIEQ.js";
|
|
14
14
|
import "../chunk-JDVP33S5.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-5RZVXSQQ.js";
|
|
16
16
|
import "../chunk-3V5OCA2M.js";
|
|
17
17
|
import "../chunk-FGLQZ6I4.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-VGPFDVSK.js";
|
|
19
19
|
import "../chunk-ZVYUTXQJ.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-FWR5BZYR.js";
|
|
21
21
|
import "../chunk-F5UR6EJG.js";
|
|
22
22
|
import "../chunk-M6HTOCQK.js";
|
|
23
23
|
import {
|
|
24
24
|
translate
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-THRBLO2B.js";
|
|
26
26
|
import "../chunk-5BJYO6X3.js";
|
|
27
27
|
import "../chunk-AFUVWWQY.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-M2VRYG7U.js";
|
|
29
29
|
import "../chunk-MIJXEELH.js";
|
|
30
30
|
import "../chunk-D2JUDUYY.js";
|
|
31
31
|
import "../chunk-QNE2ZPPV.js";
|
|
@@ -15,6 +15,13 @@ declare function AgentEnvPanelActionProvider({ children, openPanel }: {
|
|
|
15
15
|
/** Host-injected command; AgentGUI never owns the panel workflow state. */
|
|
16
16
|
declare function useOpenAgentEnvPanel(): OpenAgentEnvPanelAction | null;
|
|
17
17
|
|
|
18
|
+
type AgentGUIMembershipAccessState = "free" | "active" | "inactive" | "unknown";
|
|
19
|
+
|
|
20
|
+
interface AgentGUICommercePresentation {
|
|
21
|
+
membershipAccess?: AgentGUIMembershipAccessState;
|
|
22
|
+
planUrl?: string | null;
|
|
23
|
+
}
|
|
24
|
+
|
|
18
25
|
/**
|
|
19
26
|
* Run-failure codes actually emitted by the daemon runtime classifier
|
|
20
27
|
* (packages/agent/daemon/runtime/visible_error.go `visibleFailureCode`). These
|
|
@@ -46,7 +53,7 @@ interface AgentErrorPresentation {
|
|
|
46
53
|
* outside the known vocabulary so the caller renders its plain generic card with
|
|
47
54
|
* no call-to-action.
|
|
48
55
|
*/
|
|
49
|
-
declare function resolveAgentErrorPresentation(code: string | null | undefined): AgentErrorPresentation | null;
|
|
56
|
+
declare function resolveAgentErrorPresentation(code: string | null | undefined, commerce?: AgentGUICommercePresentation | null): AgentErrorPresentation | null;
|
|
50
57
|
/**
|
|
51
58
|
* Some providers (notably Claude Code) report an environment failure — e.g. a
|
|
52
59
|
* dropped login (401) — as a plain failed assistant message rather than a
|
package/dist/agent-env/index.js
CHANGED
package/dist/agent-gui.d.ts
CHANGED
|
@@ -472,6 +472,7 @@ interface AgentGuiWorkbenchSessionActionRequest {
|
|
|
472
472
|
sequence: number;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
+
type AgentGUIMembershipAccessState = "free" | "active" | "inactive" | "unknown";
|
|
475
476
|
interface AgentGUIAccountMenuState {
|
|
476
477
|
user: {
|
|
477
478
|
userId: string;
|
|
@@ -480,6 +481,11 @@ interface AgentGUIAccountMenuState {
|
|
|
480
481
|
avatar?: string | null;
|
|
481
482
|
} | null;
|
|
482
483
|
membershipLabel: string;
|
|
484
|
+
/**
|
|
485
|
+
* Normalized by the Commerce domain. Hosts must not infer access from
|
|
486
|
+
* provider-specific tier/status strings.
|
|
487
|
+
*/
|
|
488
|
+
membershipAccess?: AgentGUIMembershipAccessState;
|
|
483
489
|
creditsLabel: string | null;
|
|
484
490
|
loading: boolean;
|
|
485
491
|
error: string | null;
|
|
@@ -1054,6 +1060,11 @@ interface OpenAgentEnvPanelInput {
|
|
|
1054
1060
|
focus?: AgentEnvPanelFocus | null;
|
|
1055
1061
|
}
|
|
1056
1062
|
|
|
1063
|
+
interface AgentGUICommercePresentation {
|
|
1064
|
+
membershipAccess?: AgentGUIMembershipAccessState;
|
|
1065
|
+
planUrl?: string | null;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1057
1068
|
type TuttiModePlanWorkflowStatus = "pending_review" | "in_progress" | "accepted" | "rejected" | "completed" | "failed" | "canceled";
|
|
1058
1069
|
type TuttiModePlanCheckpointKind = "configuration_review" | "task_review";
|
|
1059
1070
|
type TuttiModePlanCheckpointStatus = "pending" | "accepted" | "rejected" | "superseded" | "canceled";
|
|
@@ -1502,6 +1513,8 @@ interface AgentGUINodeHostCapabilities {
|
|
|
1502
1513
|
*/
|
|
1503
1514
|
capabilityControlsReadOnly?: boolean;
|
|
1504
1515
|
accountMenuState?: AgentGUIAccountMenuState | null;
|
|
1516
|
+
/** Host-owned Commerce projection used by account and error presentation. */
|
|
1517
|
+
commercePresentation?: AgentGUICommercePresentation | null;
|
|
1505
1518
|
agentTargets?: readonly AgentGUIAgentTarget[];
|
|
1506
1519
|
agentTargetsLoading?: boolean;
|
|
1507
1520
|
/** Launch-only targets for active-conversation handoff. */
|
package/dist/agent-gui.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentGUI
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RTKIOE4R.js";
|
|
4
4
|
import "./chunk-LB4AGT7B.js";
|
|
5
5
|
import "./chunk-A4WCTHWS.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DKRX5IZS.js";
|
|
7
7
|
import "./chunk-KDN6SLJM.js";
|
|
8
8
|
import "./chunk-4CHBM3G3.js";
|
|
9
9
|
import "./chunk-CBMWHQ7P.js";
|
|
10
10
|
import "./chunk-MGSRWYRN.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-V2MU37VN.js";
|
|
12
|
+
import "./chunk-CCFYCSBK.js";
|
|
13
|
+
import "./chunk-HXAOFFZJ.js";
|
|
14
|
+
import "./chunk-JZ6KUUDY.js";
|
|
15
15
|
import "./chunk-UP3ZDYTN.js";
|
|
16
16
|
import "./chunk-GUFEHWUX.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6LXC5BME.js";
|
|
18
|
+
import "./chunk-3MVSOLX3.js";
|
|
19
19
|
import "./chunk-G7DS23D4.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-JRYR2EA5.js";
|
|
21
21
|
import "./chunk-VMPA46ET.js";
|
|
22
22
|
import "./chunk-XJ34OIEQ.js";
|
|
23
23
|
import "./chunk-JDVP33S5.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-5RZVXSQQ.js";
|
|
25
25
|
import "./chunk-3V5OCA2M.js";
|
|
26
26
|
import "./chunk-RMQREVJY.js";
|
|
27
27
|
import "./chunk-FGLQZ6I4.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-RAO2PI3T.js";
|
|
29
29
|
import "./chunk-EVQ4JY3N.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-VGPFDVSK.js";
|
|
31
31
|
import "./chunk-ZVYUTXQJ.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-CKUR2VKA.js";
|
|
33
33
|
import "./chunk-YMXYBG7U.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-FWR5BZYR.js";
|
|
35
35
|
import "./chunk-F5UR6EJG.js";
|
|
36
36
|
import "./chunk-M6HTOCQK.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-THRBLO2B.js";
|
|
38
38
|
import "./chunk-5BJYO6X3.js";
|
|
39
39
|
import "./chunk-AFUVWWQY.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-M2VRYG7U.js";
|
|
41
41
|
import "./chunk-MIJXEELH.js";
|
|
42
42
|
import "./chunk-D2JUDUYY.js";
|
|
43
43
|
import "./chunk-QNE2ZPPV.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isPromptRequestIdTitle,
|
|
9
9
|
latestPlanTurnId,
|
|
10
10
|
planImplementationPromptFromPlanTurn
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-RAO2PI3T.js";
|
|
12
12
|
import {
|
|
13
13
|
useEngineSelector
|
|
14
14
|
} from "../chunk-EVQ4JY3N.js";
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
isExitPlanSwitchModeInput,
|
|
22
22
|
normalizeAgentApprovalPurpose,
|
|
23
23
|
normalizeAskUserQuestions
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-VGPFDVSK.js";
|
|
25
25
|
import {
|
|
26
26
|
cn
|
|
27
27
|
} from "../chunk-ZVYUTXQJ.js";
|
|
28
28
|
import {
|
|
29
29
|
userAvatarPlaceholderUrl,
|
|
30
30
|
workspaceAgentActivityStatusLabel
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-CKUR2VKA.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveWorkspaceAgentSessionSortTimeUnixMs
|
|
34
34
|
} from "../chunk-YMXYBG7U.js";
|
|
35
35
|
import {
|
|
36
36
|
workspaceAgentProviderLabel
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-FWR5BZYR.js";
|
|
38
38
|
import "../chunk-F5UR6EJG.js";
|
|
39
39
|
import {
|
|
40
40
|
managedAgentRoundedIconUrl
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
AgentGuiI18nProvider,
|
|
44
44
|
getActiveUiLanguage,
|
|
45
45
|
useTranslation
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-THRBLO2B.js";
|
|
47
47
|
import "../chunk-5BJYO6X3.js";
|
|
48
48
|
import "../chunk-AFUVWWQY.js";
|
|
49
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-M2VRYG7U.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeAgentTitleText
|
|
52
52
|
} from "../chunk-MIJXEELH.js";
|
package/dist/agents.js
CHANGED
|
@@ -9,7 +9,7 @@ function normalizeAgentGUIAgents(agents) {
|
|
|
9
9
|
const maskIconUrl = agent.maskIconUrl?.trim() ?? "";
|
|
10
10
|
const heroImageUrl = agent.heroImageUrl?.trim() ?? "";
|
|
11
11
|
const ownerDeviceLabel = agent.ownerDeviceLabel?.trim() ?? "";
|
|
12
|
-
if (!agentTargetId || !name ||
|
|
12
|
+
if (!agentTargetId || !name || seenAgentTargetIds.has(agentTargetId)) {
|
|
13
13
|
continue;
|
|
14
14
|
}
|
|
15
15
|
seenAgentTargetIds.add(agentTargetId);
|
|
@@ -104,4 +104,4 @@ export {
|
|
|
104
104
|
resolveAgentGUISelectedDirectoryAgent,
|
|
105
105
|
projectAgentGUIAgentsToTargets
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-3MVSOLX3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../agents.ts"],"sourcesContent":["import type {\n AgentGUIAgent,\n AgentGUIAgentAvailabilityStatus,\n AgentGUIAgentTarget\n} from \"./types.ts\";\n\nexport function normalizeAgentGUIAgents(\n agents: readonly AgentGUIAgent[] | null | undefined\n): AgentGUIAgent[] {\n const normalized: AgentGUIAgent[] = [];\n const seenAgentTargetIds = new Set<string>();\n for (const agent of agents ?? []) {\n const agentTargetId = agent.agentTargetId.trim();\n const name = agent.name.trim();\n const iconUrl = agent.iconUrl.trim();\n const maskIconUrl = agent.maskIconUrl?.trim() ?? \"\";\n const heroImageUrl = agent.heroImageUrl?.trim() ?? \"\";\n const ownerDeviceLabel = agent.ownerDeviceLabel?.trim() ?? \"\";\n if (!agentTargetId || !name || seenAgentTargetIds.has(agentTargetId)) {\n continue;\n }\n seenAgentTargetIds.add(agentTargetId);\n const ownerName = agent.owner?.name?.trim() ?? \"\";\n const ownerAvatarUrl = agent.owner?.avatarUrl?.trim() ?? \"\";\n const reason = agent.availability.reason?.trim() ?? \"\";\n normalized.push({\n agentTargetId,\n name,\n iconUrl,\n ...(maskIconUrl ? { maskIconUrl } : {}),\n ...(heroImageUrl ? { heroImageUrl } : {}),\n ...(agent.description?.trim()\n ? { description: agent.description.trim() }\n : {}),\n ...(ownerDeviceLabel ? { ownerDeviceLabel } : {}),\n ...(ownerName || ownerAvatarUrl\n ? {\n owner: {\n ...(ownerName ? { name: ownerName } : {}),\n ...(ownerAvatarUrl ? { avatarUrl: ownerAvatarUrl } : {})\n }\n }\n : {}),\n ...(agent.ownership === \"self\" || agent.ownership === \"shared\"\n ? { ownership: agent.ownership }\n : {}),\n availability: {\n status: normalizeAgentGUIAgentAvailabilityStatus(\n agent.availability.status\n ),\n ...(reason ? { reason } : {}),\n ...(agent.availability.pendingAction\n ? { pendingAction: agent.availability.pendingAction }\n : {})\n },\n provider: agent.provider,\n ...(agent.setupKind === \"target_runtime\"\n ? { setupKind: \"target_runtime\" as const }\n : {})\n });\n }\n return normalized;\n}\n\nexport function agentGUIAgentIsReady(agent: AgentGUIAgent): boolean {\n return agent.availability.status === \"ready\";\n}\n\nexport function resolveAgentGUISelectedDirectoryAgent(input: {\n agents: readonly AgentGUIAgent[];\n agentTargetId?: string | null;\n defaultAgentTargetId?: string | null;\n}): AgentGUIAgent | null {\n const explicitAgentTargetId =\n input.agentTargetId?.trim() || input.defaultAgentTargetId?.trim() || \"\";\n if (explicitAgentTargetId) {\n return (\n input.agents.find(\n (agent) => agent.agentTargetId === explicitAgentTargetId\n ) ?? null\n );\n }\n return (\n input.agents.find((agent) => agentGUIAgentIsReady(agent)) ??\n input.agents[0] ??\n null\n );\n}\n\n/** Projects the canonical Agent directory into target rows for selection menus. */\nexport function projectAgentGUIAgentsToTargets(\n agents: readonly AgentGUIAgent[]\n): AgentGUIAgentTarget[] {\n return agents.map((agent) => ({\n targetId: agent.agentTargetId,\n agentTargetId: agent.agentTargetId,\n provider: agent.provider,\n ref: {\n kind: \"agent-directory\",\n provider: agent.provider,\n agentTargetId: agent.agentTargetId,\n ...(agent.setupKind ? { setupKind: agent.setupKind } : {})\n },\n label: agent.name,\n availability: agent.availability,\n ...(agent.description ? { description: agent.description } : {}),\n iconUrl: agent.iconUrl,\n ...(agent.maskIconUrl ? { maskIconUrl: agent.maskIconUrl } : {}),\n ...(agent.heroImageUrl ? { heroImageUrl: agent.heroImageUrl } : {}),\n ...(agent.ownerDeviceLabel\n ? { ownerDeviceLabel: agent.ownerDeviceLabel }\n : {}),\n ...(agent.owner?.avatarUrl\n ? {\n badge: {\n iconUrl: agent.owner.avatarUrl,\n ...(agent.owner.name ? { label: agent.owner.name } : {})\n }\n }\n : {}),\n ...(agent.owner?.name ? { ownerLabel: agent.owner.name } : {}),\n ...(agent.ownership ? { ownership: agent.ownership } : {}),\n ...(agent.availability.status !== \"ready\" && !agent.setupKind\n ? { disabled: true }\n : {}),\n ...(agent.availability.reason\n ? { unavailableReason: agent.availability.reason }\n : {})\n }));\n}\n\nfunction normalizeAgentGUIAgentAvailabilityStatus(\n status: AgentGUIAgentAvailabilityStatus\n): AgentGUIAgentAvailabilityStatus {\n switch (status) {\n case \"ready\":\n case \"checking\":\n case \"coming_soon\":\n case \"not_installed\":\n case \"auth_required\":\n case \"unavailable\":\n return status;\n }\n}\n"],"mappings":"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","names":[]}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
translate,
|
|
13
13
|
useTranslation
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-THRBLO2B.js";
|
|
15
15
|
import {
|
|
16
16
|
getAgentCustomMentionKind
|
|
17
17
|
} from "./chunk-D2JUDUYY.js";
|
|
@@ -1833,4 +1833,4 @@ export {
|
|
|
1833
1833
|
exitAgentFileMentionSuggestion,
|
|
1834
1834
|
createAgentFileMentionExtension
|
|
1835
1835
|
};
|
|
1836
|
-
//# sourceMappingURL=chunk-
|
|
1836
|
+
//# sourceMappingURL=chunk-5RZVXSQQ.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
agentMentionFilterLabel,
|
|
6
6
|
agentMentionGroupLabel,
|
|
7
7
|
mentionGroupExpandCount
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JRYR2EA5.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveAgentMentionFileThumbnailUrl,
|
|
11
11
|
resolveAgentMentionFileVisualKind
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
userAvatarPlaceholderUrl,
|
|
15
15
|
workspaceAgentActivityStatusLabel
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CKUR2VKA.js";
|
|
17
17
|
import {
|
|
18
18
|
managedAgentRoundedIconUrl
|
|
19
19
|
} from "./chunk-M6HTOCQK.js";
|
|
20
20
|
import {
|
|
21
21
|
translate
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-THRBLO2B.js";
|
|
23
23
|
|
|
24
24
|
// agent-gui/agentGuiNode/AgentFileMentionPalette.tsx
|
|
25
25
|
import {
|
|
@@ -517,4 +517,4 @@ export {
|
|
|
517
517
|
AgentFileMentionPalette,
|
|
518
518
|
AgentContextMentionPalette
|
|
519
519
|
};
|
|
520
|
-
//# sourceMappingURL=chunk-
|
|
520
|
+
//# sourceMappingURL=chunk-6LXC5BME.js.map
|