@tutti-os/agent-gui 0.0.214 → 0.0.215
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/{AgentRichTextReadonly-TASIMIK4.js → AgentRichTextReadonly-56TZAJ47.js} +3 -3
- package/dist/agent-conversation/index.d.ts +3 -3
- package/dist/agent-conversation/index.js +4 -4
- package/dist/agent-gui.d.ts +2 -2
- package/dist/agent-gui.js +8 -8
- package/dist/agent-message-center/index.d.ts +1 -1
- package/dist/agent-message-center/index.js +3 -3
- package/dist/{agentGuiNodeTypes-BMcpfKTn.d.ts → agentGuiNodeTypes-DW7T--Y8.d.ts} +1 -1
- package/dist/app/renderer/agentactivity.css +68 -10
- package/dist/{chunk-7SSORDQY.js → chunk-AQ7CRDGX.js} +2 -2
- package/dist/{chunk-ZNHMWCO4.js → chunk-GUD5NOHO.js} +3 -3
- package/dist/{chunk-RLFO3NJV.js → chunk-JOUEYIV3.js} +173 -132
- package/dist/chunk-JOUEYIV3.js.map +1 -0
- package/dist/{chunk-LQKLBDBK.js → chunk-KNSLQO52.js} +37 -3
- package/dist/chunk-KNSLQO52.js.map +1 -0
- package/dist/{chunk-L4E2Y52A.js → chunk-KVFBUOKZ.js} +4 -43
- package/dist/chunk-KVFBUOKZ.js.map +1 -0
- package/dist/chunk-LQMIEH4C.js +100 -0
- package/dist/chunk-LQMIEH4C.js.map +1 -0
- package/dist/{chunk-G2QO6HPB.js → chunk-MWAUXAD2.js} +22 -8
- package/dist/chunk-MWAUXAD2.js.map +1 -0
- package/dist/{chunk-FEUU4YMY.js → chunk-YTU6IUO2.js} +5806 -5722
- package/dist/chunk-YTU6IUO2.js.map +1 -0
- package/dist/index.d.ts +78 -71
- package/dist/index.js +8 -8
- package/dist/workbench/contribution.js +2 -2
- package/dist/workbench/index.js +2 -2
- package/dist/workbench/sessionTitle.js +1 -1
- package/dist/{workspaceLinkActions-COfr61YO.d.ts → workspaceLinkActions-CzsbvGmC.d.ts} +78 -71
- package/package.json +14 -14
- package/dist/chunk-FEUU4YMY.js.map +0 -1
- package/dist/chunk-G2QO6HPB.js.map +0 -1
- package/dist/chunk-L4E2Y52A.js.map +0 -1
- package/dist/chunk-LQKLBDBK.js.map +0 -1
- package/dist/chunk-RLFO3NJV.js.map +0 -1
- package/dist/chunk-ZVYUTXQJ.js +0 -43
- package/dist/chunk-ZVYUTXQJ.js.map +0 -1
- /package/dist/{AgentRichTextReadonly-TASIMIK4.js.map → AgentRichTextReadonly-56TZAJ47.js.map} +0 -0
- /package/dist/{chunk-7SSORDQY.js.map → chunk-AQ7CRDGX.js.map} +0 -0
- /package/dist/{chunk-ZNHMWCO4.js.map → chunk-GUD5NOHO.js.map} +0 -0
package/dist/chunk-ZVYUTXQJ.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// app/renderer/lib/utils.ts
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { twMerge } from "tailwind-merge";
|
|
4
|
-
function cn(...inputs) {
|
|
5
|
-
return twMerge(clsx(inputs));
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
// shared/AgentTargetPresentationContext.tsx
|
|
9
|
-
import { createContext, useContext } from "react";
|
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
var EMPTY_AGENT_TARGETS = Object.freeze([]);
|
|
12
|
-
var AgentTargetPresentationContext = createContext(
|
|
13
|
-
EMPTY_AGENT_TARGETS
|
|
14
|
-
);
|
|
15
|
-
function AgentTargetPresentationProvider({
|
|
16
|
-
agentTargets,
|
|
17
|
-
children
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ jsx(AgentTargetPresentationContext.Provider, { value: agentTargets, children });
|
|
20
|
-
}
|
|
21
|
-
function useAgentTargetPresentations() {
|
|
22
|
-
return useContext(AgentTargetPresentationContext);
|
|
23
|
-
}
|
|
24
|
-
function resolveAgentTargetPresentation(input) {
|
|
25
|
-
const agentTargetId = input.agentTargetId.trim();
|
|
26
|
-
if (!agentTargetId) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
const workspaceId = input.workspaceId?.trim() ?? "";
|
|
30
|
-
return input.agentTargets.find(
|
|
31
|
-
(target) => target.agentTargetId.trim() === agentTargetId && (target.workspaceId?.trim() ?? "") === workspaceId
|
|
32
|
-
) ?? input.agentTargets.find(
|
|
33
|
-
(target) => target.agentTargetId.trim() === agentTargetId
|
|
34
|
-
) ?? null;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
cn,
|
|
39
|
-
AgentTargetPresentationProvider,
|
|
40
|
-
useAgentTargetPresentations,
|
|
41
|
-
resolveAgentTargetPresentation
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=chunk-ZVYUTXQJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../app/renderer/lib/utils.ts","../shared/AgentTargetPresentationContext.tsx"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n","import { createContext, useContext, type JSX, type ReactNode } from \"react\";\n\nexport interface AgentMessageMarkdownAgentTarget {\n agentTargetId: string;\n iconUrl?: string | null;\n maskIconUrl?: string | null;\n name?: string | null;\n provider?: string | null;\n workspaceId?: string | null;\n}\n\nconst EMPTY_AGENT_TARGETS: readonly AgentMessageMarkdownAgentTarget[] =\n Object.freeze([]);\n\nconst AgentTargetPresentationContext =\n createContext<readonly AgentMessageMarkdownAgentTarget[]>(\n EMPTY_AGENT_TARGETS\n );\n\nexport function AgentTargetPresentationProvider({\n agentTargets,\n children\n}: {\n agentTargets: readonly AgentMessageMarkdownAgentTarget[];\n children: ReactNode;\n}): JSX.Element {\n return (\n <AgentTargetPresentationContext.Provider value={agentTargets}>\n {children}\n </AgentTargetPresentationContext.Provider>\n );\n}\n\nexport function useAgentTargetPresentations(): readonly AgentMessageMarkdownAgentTarget[] {\n return useContext(AgentTargetPresentationContext);\n}\n\nexport function resolveAgentTargetPresentation(input: {\n agentTargetId: string;\n agentTargets: readonly AgentMessageMarkdownAgentTarget[];\n workspaceId?: string | null;\n}): AgentMessageMarkdownAgentTarget | null {\n const agentTargetId = input.agentTargetId.trim();\n if (!agentTargetId) {\n return null;\n }\n const workspaceId = input.workspaceId?.trim() ?? \"\";\n return (\n input.agentTargets.find(\n (target) =>\n target.agentTargetId.trim() === agentTargetId &&\n (target.workspaceId?.trim() ?? \"\") === workspaceId\n ) ??\n input.agentTargets.find(\n (target) => target.agentTargetId.trim() === agentTargetId\n ) ??\n null\n );\n}\n"],"mappings":";AAAA,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAA8B;AAClD,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ACLA,SAAS,eAAe,kBAA4C;AA2BhE;AAhBJ,IAAM,sBACJ,OAAO,OAAO,CAAC,CAAC;AAElB,IAAM,iCACJ;AAAA,EACE;AACF;AAEK,SAAS,gCAAgC;AAAA,EAC9C;AAAA,EACA;AACF,GAGgB;AACd,SACE,oBAAC,+BAA+B,UAA/B,EAAwC,OAAO,cAC7C,UACH;AAEJ;AAEO,SAAS,8BAA0E;AACxF,SAAO,WAAW,8BAA8B;AAClD;AAEO,SAAS,+BAA+B,OAIJ;AACzC,QAAM,gBAAgB,MAAM,cAAc,KAAK;AAC/C,MAAI,CAAC,eAAe;AAClB,WAAO;AAAA,EACT;AACA,QAAM,cAAc,MAAM,aAAa,KAAK,KAAK;AACjD,SACE,MAAM,aAAa;AAAA,IACjB,CAAC,WACC,OAAO,cAAc,KAAK,MAAM,kBAC/B,OAAO,aAAa,KAAK,KAAK,QAAQ;AAAA,EAC3C,KACA,MAAM,aAAa;AAAA,IACjB,CAAC,WAAW,OAAO,cAAc,KAAK,MAAM;AAAA,EAC9C,KACA;AAEJ;","names":[]}
|
/package/dist/{AgentRichTextReadonly-TASIMIK4.js.map → AgentRichTextReadonly-56TZAJ47.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|