@tutti-os/agent-gui 0.0.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.
Files changed (112) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +56 -0
  3. package/dist/agent-message-center/index.d.ts +218 -0
  4. package/dist/agent-message-center/index.js +1962 -0
  5. package/dist/agent-message-center/index.js.map +1 -0
  6. package/dist/agent-rich-text-at-provider.d.ts +49 -0
  7. package/dist/agent-rich-text-at-provider.js +7 -0
  8. package/dist/agent-rich-text-at-provider.js.map +1 -0
  9. package/dist/agent-title-text.d.ts +3 -0
  10. package/dist/agent-title-text.js +7 -0
  11. package/dist/agent-title-text.js.map +1 -0
  12. package/dist/app/renderer/agentactivity.css +6773 -0
  13. package/dist/app/renderer/assets/icons/agent-sessions-filled.svg +1 -0
  14. package/dist/app/renderer/assets/icons/agents/claude-rounded.png +0 -0
  15. package/dist/app/renderer/assets/icons/agents/codex-rounded.png +0 -0
  16. package/dist/app/renderer/assets/icons/agents/gemini-rounded.png +0 -0
  17. package/dist/app/renderer/assets/icons/agents/hermes-rounded.png +0 -0
  18. package/dist/app/renderer/assets/icons/agents/manage-agent-claude-code.png +0 -0
  19. package/dist/app/renderer/assets/icons/agents/manage-agent-codex.png +0 -0
  20. package/dist/app/renderer/assets/icons/agents/manage-agent-gemini.png +0 -0
  21. package/dist/app/renderer/assets/icons/agents/manage-agent-hermes.png +0 -0
  22. package/dist/app/renderer/assets/icons/agents/manage-agent-nextop.png +0 -0
  23. package/dist/app/renderer/assets/icons/agents/manage-agent-openclaw.png +0 -0
  24. package/dist/app/renderer/assets/icons/agents/nextop-doc-rounded.png +0 -0
  25. package/dist/app/renderer/assets/icons/agents/openclaw-rounded.png +0 -0
  26. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-claude-code.png +0 -0
  27. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-codex.png +0 -0
  28. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-gemini.png +0 -0
  29. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-nexight.png +0 -0
  30. package/dist/app/renderer/assets/icons/agents/workspace-dock-agent-openclaw.png +0 -0
  31. package/dist/app/renderer/assets/icons/code-filled.svg +1 -0
  32. package/dist/app/renderer/assets/icons/doc-filled.svg +1 -0
  33. package/dist/app/renderer/assets/icons/folder-filled.svg +1 -0
  34. package/dist/app/renderer/assets/icons/image-filled.svg +1 -0
  35. package/dist/app/renderer/assets/icons/issue-filled.svg +1 -0
  36. package/dist/app/renderer/assets/icons/product-filled.svg +1 -0
  37. package/dist/app/renderer/assets/icons/user-avatar-placeholder.png +0 -0
  38. package/dist/app/renderer/assets/icons/video-filled.svg +1 -0
  39. package/dist/chunk-22L4VWUR.js +70 -0
  40. package/dist/chunk-22L4VWUR.js.map +1 -0
  41. package/dist/chunk-3D5VTIKP.js +93 -0
  42. package/dist/chunk-3D5VTIKP.js.map +1 -0
  43. package/dist/chunk-AF5CXBJN.js +3075 -0
  44. package/dist/chunk-AF5CXBJN.js.map +1 -0
  45. package/dist/chunk-BABBC24I.js +28 -0
  46. package/dist/chunk-BABBC24I.js.map +1 -0
  47. package/dist/chunk-GCBDIQDX.js +22 -0
  48. package/dist/chunk-GCBDIQDX.js.map +1 -0
  49. package/dist/chunk-HSR5DI6O.js +4695 -0
  50. package/dist/chunk-HSR5DI6O.js.map +1 -0
  51. package/dist/chunk-IVPB4MLI.js +7 -0
  52. package/dist/chunk-IVPB4MLI.js.map +1 -0
  53. package/dist/chunk-KCC3GNPB.js +13 -0
  54. package/dist/chunk-KCC3GNPB.js.map +1 -0
  55. package/dist/chunk-PJP5BUU6.js +18 -0
  56. package/dist/chunk-PJP5BUU6.js.map +1 -0
  57. package/dist/chunk-RORLLV27.js +144 -0
  58. package/dist/chunk-RORLLV27.js.map +1 -0
  59. package/dist/chunk-UJWUGMWC.js +128 -0
  60. package/dist/chunk-UJWUGMWC.js.map +1 -0
  61. package/dist/chunk-UKQIGNN3.js +921 -0
  62. package/dist/chunk-UKQIGNN3.js.map +1 -0
  63. package/dist/chunk-ZP7P7DYO.js +270 -0
  64. package/dist/chunk-ZP7P7DYO.js.map +1 -0
  65. package/dist/chunk-ZX5PDYAS.js +346 -0
  66. package/dist/chunk-ZX5PDYAS.js.map +1 -0
  67. package/dist/claude-rounded-F6VPQETB.png +0 -0
  68. package/dist/codex-rounded-SC63MZAW.png +0 -0
  69. package/dist/gemini-rounded-O4KAJFIM.png +0 -0
  70. package/dist/hermes-rounded-QGDHBNRJ.png +0 -0
  71. package/dist/i18n/index.d.ts +4580 -0
  72. package/dist/i18n/index.js +19 -0
  73. package/dist/i18n/index.js.map +1 -0
  74. package/dist/index.d.ts +775 -0
  75. package/dist/index.js +33699 -0
  76. package/dist/index.js.map +1 -0
  77. package/dist/manage-agent-claude-code-F6VPQETB.png +0 -0
  78. package/dist/manage-agent-codex-SC63MZAW.png +0 -0
  79. package/dist/manage-agent-gemini-O4KAJFIM.png +0 -0
  80. package/dist/manage-agent-hermes-QGDHBNRJ.png +0 -0
  81. package/dist/manage-agent-nextop-UFAQ22K2.png +0 -0
  82. package/dist/manage-agent-openclaw-24U7O6CA.png +0 -0
  83. package/dist/mention-file-presentation.d.ts +16 -0
  84. package/dist/mention-file-presentation.js +10 -0
  85. package/dist/mention-file-presentation.js.map +1 -0
  86. package/dist/nextop-doc-rounded-UFAQ22K2.png +0 -0
  87. package/dist/openclaw-rounded-24U7O6CA.png +0 -0
  88. package/dist/user-avatar-placeholder-WP2373TS.png +0 -0
  89. package/dist/workbench/contribution.d.ts +42 -0
  90. package/dist/workbench/contribution.js +24 -0
  91. package/dist/workbench/contribution.js.map +1 -0
  92. package/dist/workbench/index.d.ts +24 -0
  93. package/dist/workbench/index.js +82 -0
  94. package/dist/workbench/index.js.map +1 -0
  95. package/dist/workbench/launch.d.ts +49 -0
  96. package/dist/workbench/launch.js +23 -0
  97. package/dist/workbench/launch.js.map +1 -0
  98. package/dist/workbench/providerCatalog.d.ts +15 -0
  99. package/dist/workbench/providerCatalog.js +27 -0
  100. package/dist/workbench/providerCatalog.js.map +1 -0
  101. package/dist/workbench/state.d.ts +22 -0
  102. package/dist/workbench/state.js +22 -0
  103. package/dist/workbench/state.js.map +1 -0
  104. package/dist/workbench/types.d.ts +43 -0
  105. package/dist/workbench/types.js +7 -0
  106. package/dist/workbench/types.js.map +1 -0
  107. package/dist/workspace-agent-generated-files.d.ts +2 -0
  108. package/dist/workspace-agent-generated-files.js +21 -0
  109. package/dist/workspace-agent-generated-files.js.map +1 -0
  110. package/dist/workspaceAgentActivityListViewModel-PvLQDj60.d.ts +309 -0
  111. package/dist/workspaceLinkActions-Bwa-phu8.d.ts +51 -0
  112. package/package.json +166 -0
@@ -0,0 +1,309 @@
1
+ import { AgentActivityMessage, AgentActivitySnapshot, AgentActivityPresence, AgentActivitySession } from '@tutti-os/agent-activity-core';
2
+
3
+ interface AgentHostManagedAgentsStateItem {
4
+ toolId: string;
5
+ toolClass: string;
6
+ agentId?: string;
7
+ hostDetected?: boolean;
8
+ hostConfigDetected?: boolean;
9
+ hostVersion?: string;
10
+ targetVersion: string;
11
+ recommendedVersion?: string;
12
+ decisionReason: string;
13
+ fallbackApplied: boolean;
14
+ notes?: string;
15
+ }
16
+ interface AgentHostToolchainConfigSyncedAgent {
17
+ agentId: string;
18
+ /** RFC3339 timestamp for when Nextop last synced this agent's host config. */
19
+ syncedAt?: string;
20
+ }
21
+ interface AgentHostManagedAgentsState {
22
+ metadataSynced: boolean;
23
+ toolCatalogRevision: string;
24
+ agentProfileRevision: string;
25
+ totalCount: number;
26
+ items: AgentHostManagedAgentsStateItem[];
27
+ /** Agent IDs ready for normal AgentGUI use (installed and authenticated/ready). */
28
+ readyAgentIds: string[];
29
+ /** Agent IDs whose host config has been synced to the VM through Manage Agents. */
30
+ configSyncedAgentIds: string[];
31
+ /** Agent config sync metadata, including when Nextop last copied host config. */
32
+ configSyncedAgents?: AgentHostToolchainConfigSyncedAgent[];
33
+ }
34
+ interface AgentHostUserInfo {
35
+ userId: string;
36
+ email?: string;
37
+ avatar?: string;
38
+ avatarObjectKey?: string;
39
+ name?: string;
40
+ }
41
+ interface AgentHostBatchUserInfoInput {
42
+ userIds: string[];
43
+ }
44
+ interface AgentHostBatchUserInfoResult {
45
+ users: AgentHostUserInfo[];
46
+ }
47
+ type AgentHostWorkspaceAgentProvider = "codex" | "claude-code" | string;
48
+ type AgentHostWorkspaceAgentSessionOrigin = "WORKSPACE_AGENT_SESSION_ORIGIN_HOOK" | "WORKSPACE_AGENT_SESSION_ORIGIN_RUNTIME" | string;
49
+ type AgentHostWorkspaceAgentPresenceStatus = "working" | "paused" | string;
50
+ type AgentHostWorkspaceAgentSessionLifecycleStatus = "active" | "ended" | "failed" | string;
51
+ type AgentHostWorkspaceAgentTurnPhase = "idle" | "working" | "waiting_approval" | "waiting_input" | "failed" | string;
52
+ type AgentHostWorkspaceAgentEffectiveStatus = "idle" | "working" | "waiting" | "ready" | "completed" | "failed" | string;
53
+ type AgentHostWorkspaceAgentSessionStatus = "idle" | "working" | "waiting" | "completed" | "failed" | "canceled" | string;
54
+ type AgentHostWorkspaceAgentSyncStatus = "pending" | "synced" | "failed" | string;
55
+ interface AgentHostWorkspaceAgentPresence {
56
+ id: number;
57
+ workspaceId: string;
58
+ userId: string;
59
+ provider: AgentHostWorkspaceAgentProvider;
60
+ status: AgentHostWorkspaceAgentPresenceStatus;
61
+ }
62
+ interface AgentHostWorkspaceAgentSession {
63
+ id: number;
64
+ workspaceId?: string;
65
+ agentSessionId: string;
66
+ presenceId: number;
67
+ userId?: string;
68
+ provider?: AgentHostWorkspaceAgentProvider;
69
+ providerSessionId: string;
70
+ resumable?: boolean;
71
+ sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
72
+ cwd: string;
73
+ lifecycleStatus?: AgentHostWorkspaceAgentSessionLifecycleStatus;
74
+ turnPhase?: AgentHostWorkspaceAgentTurnPhase;
75
+ endedAtUnixMs?: number;
76
+ startedAtUnixMs?: number;
77
+ createdAtUnixMs?: number;
78
+ updatedAtUnixMs?: number;
79
+ pinnedAtUnixMs?: number | null;
80
+ effectiveStatus?: AgentHostWorkspaceAgentEffectiveStatus;
81
+ title?: string;
82
+ status?: AgentHostWorkspaceAgentSessionStatus;
83
+ syncState?: AgentHostWorkspaceAgentSyncState;
84
+ }
85
+ interface AgentHostWorkspaceAgentSyncState {
86
+ workspaceId?: string;
87
+ agentSessionId?: string;
88
+ status: AgentHostWorkspaceAgentSyncStatus;
89
+ pendingTimelineItemCount?: number;
90
+ pendingStatePatchCount?: number;
91
+ attemptCount?: number;
92
+ failedReportCount?: number;
93
+ lastError?: string;
94
+ lastAttemptAtUnixMs?: number;
95
+ lastSyncedAtUnixMs?: number;
96
+ updatedAtUnixMs?: number;
97
+ }
98
+ interface AgentHostWorkspaceAgentListInput {
99
+ workspaceId?: string | null;
100
+ sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
101
+ userId?: string;
102
+ }
103
+ interface AgentHostWorkspaceAgentSnapshot {
104
+ presences: AgentHostWorkspaceAgentPresence[];
105
+ sessions: AgentHostWorkspaceAgentSession[];
106
+ sessionMessagesById?: Record<string, AgentHostWorkspaceAgentMessage[]>;
107
+ }
108
+ interface AgentHostDeleteWorkspaceAgentSessionInput {
109
+ workspaceId?: string | null;
110
+ agentSessionId: string;
111
+ sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
112
+ }
113
+ interface AgentHostWorkspaceAgentMessage {
114
+ id: number;
115
+ workspaceId?: string;
116
+ agentSessionId: string;
117
+ messageId: string;
118
+ version: number;
119
+ turnId?: string;
120
+ role: string;
121
+ kind: string;
122
+ status?: string;
123
+ payload: Record<string, unknown>;
124
+ occurredAtUnixMs?: number;
125
+ startedAtUnixMs?: number;
126
+ completedAtUnixMs?: number;
127
+ }
128
+ interface AgentHostWorkspaceAgentSessionMessagesInput {
129
+ workspaceId?: string | null;
130
+ agentSessionId: string;
131
+ afterVersion?: number;
132
+ beforeVersion?: number;
133
+ limit?: number;
134
+ order?: "asc" | "desc";
135
+ sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
136
+ }
137
+ interface AgentHostWorkspaceAgentSessionMessages {
138
+ messages: AgentHostWorkspaceAgentMessage[];
139
+ latestVersion?: number;
140
+ hasMore?: boolean;
141
+ }
142
+ interface AgentHostWorkspaceAgentSessionSummaryItem {
143
+ id?: number;
144
+ turnId?: string;
145
+ actorType?: string;
146
+ actorId?: string;
147
+ itemType?: string;
148
+ role?: string;
149
+ callType?: string;
150
+ callId?: string;
151
+ name?: string;
152
+ status?: string;
153
+ content?: string;
154
+ occurredAtUnixMs?: number;
155
+ createdAtUnixMs?: number;
156
+ }
157
+ interface AgentHostWorkspaceAgentSessionSummaryTurn {
158
+ turnId?: string;
159
+ userItems: AgentHostWorkspaceAgentSessionSummaryItem[];
160
+ agentItems: AgentHostWorkspaceAgentSessionSummaryItem[];
161
+ }
162
+ interface AgentHostWorkspaceAgentSessionExecutionStatus {
163
+ currentOrFinalStatus?: string;
164
+ status?: AgentHostWorkspaceAgentSessionStatus;
165
+ }
166
+ interface AgentHostWorkspaceAgentSessionSummaryInput {
167
+ workspaceId?: string | null;
168
+ agentSessionId: string;
169
+ agentReplyLimit?: number;
170
+ recentTurnLimit?: number;
171
+ }
172
+ interface AgentHostWorkspaceAgentSessionSummary {
173
+ agentSessionId: string;
174
+ initialUserRequirement?: string;
175
+ latestUserRequirement?: string;
176
+ recentAgentReplies: string[];
177
+ currentOrFinalStatus?: string;
178
+ initialTurn?: AgentHostWorkspaceAgentSessionSummaryTurn | null;
179
+ latestTurn?: AgentHostWorkspaceAgentSessionSummaryTurn | null;
180
+ latestTurnSameAsInitial?: boolean;
181
+ recentTurns: AgentHostWorkspaceAgentSessionSummaryTurn[];
182
+ executionStatus?: AgentHostWorkspaceAgentSessionExecutionStatus | null;
183
+ }
184
+ interface AgentHostRuntimeOpenclawGatewayWarmupResult {
185
+ accepted: boolean;
186
+ ready?: boolean;
187
+ }
188
+
189
+ interface RoomShareMemberView {
190
+ userId: string;
191
+ label: string;
192
+ role: "owner" | "member";
193
+ initial: string;
194
+ /** Resolved avatar URL; falls back to `initial` in UI when missing or load fails. */
195
+ avatarUrl?: string;
196
+ }
197
+
198
+ type WorkspaceAgentActivityProvider = "codex" | "claude-code" | string;
199
+ declare const WORKSPACE_AGENT_ACTIVITY_RUNTIME_SESSION_ORIGIN = "WORKSPACE_AGENT_SESSION_ORIGIN_RUNTIME";
200
+ type WorkspaceAgentActivitySessionOrigin = "WORKSPACE_AGENT_SESSION_ORIGIN_HOOK" | typeof WORKSPACE_AGENT_ACTIVITY_RUNTIME_SESSION_ORIGIN | string;
201
+ type WorkspaceAgentActivitySyncStatus = "pending" | "synced" | "failed" | string;
202
+ interface WorkspaceAgentActivitySyncState {
203
+ workspaceId?: string;
204
+ agentSessionId?: string;
205
+ status: WorkspaceAgentActivitySyncStatus;
206
+ pendingTimelineItemCount?: number;
207
+ pendingStatePatchCount?: number;
208
+ attemptCount?: number;
209
+ failedReportCount?: number;
210
+ lastError?: string;
211
+ lastAttemptAtUnixMs?: number;
212
+ lastSyncedAtUnixMs?: number;
213
+ updatedAtUnixMs?: number;
214
+ }
215
+ interface WorkspaceAgentActivityPresence extends Omit<AgentActivityPresence, "id" | "provider" | "status"> {
216
+ id: string | number;
217
+ provider: WorkspaceAgentActivityProvider;
218
+ status: string;
219
+ userId?: string | null;
220
+ }
221
+ interface WorkspaceAgentActivitySession extends Omit<AgentActivitySession, "provider" | "providerSessionId" | "pinnedAtUnixMs" | "status" | "title" | "workspaceId"> {
222
+ id?: number;
223
+ workspaceId?: string;
224
+ presenceId?: string | number;
225
+ userId?: string;
226
+ provider?: WorkspaceAgentActivityProvider;
227
+ providerSessionId?: string | null;
228
+ resumable?: boolean;
229
+ sessionOrigin?: WorkspaceAgentActivitySessionOrigin;
230
+ lifecycleStatus?: string;
231
+ turnPhase?: string;
232
+ endedAtUnixMs?: number;
233
+ effectiveStatus?: string;
234
+ status?: string;
235
+ title?: string;
236
+ pinnedAtUnixMs?: number | null;
237
+ syncState?: WorkspaceAgentActivitySyncState;
238
+ }
239
+ interface WorkspaceAgentActivityMessage extends Omit<AgentActivityMessage, "id" | "turnId" | "status"> {
240
+ id?: number;
241
+ turnId?: string | null;
242
+ status?: string | null;
243
+ }
244
+ interface WorkspaceAgentActivitySnapshot extends Omit<AgentActivitySnapshot, "sessions" | "presences" | "sessionMessagesById" | "workspaceId"> {
245
+ workspaceId?: string;
246
+ presences: WorkspaceAgentActivityPresence[];
247
+ sessions: WorkspaceAgentActivitySession[];
248
+ sessionMessagesById?: Record<string, WorkspaceAgentActivityMessage[]>;
249
+ }
250
+
251
+ type ToolCallStatusKind = "working" | "completed" | "failed" | "canceled" | "waiting";
252
+ interface WorkspaceAgentToolCallDisplay {
253
+ id: string;
254
+ name: string;
255
+ status: string | null;
256
+ statusKind: ToolCallStatusKind | null;
257
+ detail?: string;
258
+ }
259
+
260
+ type WorkspaceAgentLatestActivityStatus = "working" | "waiting" | "idle" | "completed" | "canceled" | "failed";
261
+ interface WorkspaceAgentConversationPreviewLine {
262
+ actorName: string;
263
+ summary: string;
264
+ }
265
+
266
+ declare function workspaceAgentProviderLabel(provider: string): string;
267
+
268
+ type WorkspaceAgentActivityStatus = WorkspaceAgentLatestActivityStatus;
269
+ interface WorkspaceAgentChangedFile {
270
+ path: string;
271
+ label: string;
272
+ }
273
+ interface WorkspaceAgentActivityCard {
274
+ id: string;
275
+ sessionId: string;
276
+ userId: string | null;
277
+ userName: string;
278
+ userAvatarUrl?: string;
279
+ agentProvider: string;
280
+ agentName: string;
281
+ title: string;
282
+ status: WorkspaceAgentActivityStatus;
283
+ latestActivitySummary: string;
284
+ /** User prompt + latest agent reply for task/issue execution cards; room status list uses single-line summary only. */
285
+ conversationPreview?: WorkspaceAgentConversationPreviewLine[];
286
+ latestActivityActorName?: string;
287
+ toolCalls?: WorkspaceAgentToolCallDisplay[];
288
+ changedFiles: WorkspaceAgentChangedFile[];
289
+ sortTimeUnixMs: number;
290
+ readTimeUnixMs?: number;
291
+ }
292
+ interface WorkspaceAgentActivityListViewModel {
293
+ activities: WorkspaceAgentActivityCard[];
294
+ }
295
+ interface BuildWorkspaceAgentActivityListOptions {
296
+ sessionMessagesById?: Record<string, WorkspaceAgentActivityMessage[]>;
297
+ userProfilesById?: Record<string, AgentHostUserInfo>;
298
+ fallbackMembers?: RoomShareMemberView[];
299
+ }
300
+ declare function collectWorkspaceAgentGeneratedFiles(snapshot: WorkspaceAgentActivitySnapshot, options?: {
301
+ workspaceRoot?: string | null;
302
+ }): WorkspaceAgentChangedFile[];
303
+ declare function buildWorkspaceAgentActivityListViewModel(snapshot: WorkspaceAgentActivitySnapshot, options?: BuildWorkspaceAgentActivityListOptions): WorkspaceAgentActivityListViewModel;
304
+ declare function reuseWorkspaceAgentActivityListViewModelIfUnchanged(previous: WorkspaceAgentActivityListViewModel | null, next: WorkspaceAgentActivityListViewModel): WorkspaceAgentActivityListViewModel;
305
+
306
+ declare function resolveWorkspaceAgentActivityStatus(session: WorkspaceAgentActivitySession): WorkspaceAgentActivityStatus;
307
+ declare function resolveWorkspaceAgentActivityTitle(session: WorkspaceAgentActivitySession, messages?: readonly WorkspaceAgentActivityMessage[]): string;
308
+
309
+ export { type AgentHostBatchUserInfoInput as A, type BuildWorkspaceAgentActivityListOptions as B, type WorkspaceAgentActivityCard as W, type AgentHostBatchUserInfoResult as a, type AgentHostDeleteWorkspaceAgentSessionInput as b, type AgentHostManagedAgentsState as c, type AgentHostRuntimeOpenclawGatewayWarmupResult as d, type AgentHostWorkspaceAgentListInput as e, type AgentHostWorkspaceAgentMessage as f, type AgentHostWorkspaceAgentSession as g, type AgentHostWorkspaceAgentSessionMessages as h, type AgentHostWorkspaceAgentSessionMessagesInput as i, type AgentHostWorkspaceAgentSessionSummary as j, type AgentHostWorkspaceAgentSessionSummaryInput as k, type AgentHostWorkspaceAgentSnapshot as l, type WorkspaceAgentActivityListViewModel as m, type WorkspaceAgentActivityStatus as n, type WorkspaceAgentChangedFile as o, buildWorkspaceAgentActivityListViewModel as p, collectWorkspaceAgentGeneratedFiles as q, resolveWorkspaceAgentActivityStatus as r, resolveWorkspaceAgentActivityTitle as s, reuseWorkspaceAgentActivityListViewModelIfUnchanged as t, workspaceAgentProviderLabel as w };
@@ -0,0 +1,51 @@
1
+ import { WorkspaceIssueMentionMode } from '@tutti-os/workspace-issue-manager/core';
2
+
3
+ type WorkspaceLinkActionSource = "agent-markdown" | "agent-file-change" | string;
4
+ interface OpenWorkspaceFileLinkAction {
5
+ type: "open-workspace-file";
6
+ path: string;
7
+ directoryPath: string;
8
+ workspaceRoot: string;
9
+ source: WorkspaceLinkActionSource;
10
+ prefetchedDirectoryListing?: WorkspaceFileLinkDirectoryListing | null;
11
+ }
12
+ interface WorkspaceFileLinkDirectoryEntry {
13
+ path: string;
14
+ name: string;
15
+ kind: "file" | "directory" | "unknown";
16
+ hasChildren: boolean | null;
17
+ sizeBytes: number | null;
18
+ mtimeMs: number | null;
19
+ }
20
+ interface WorkspaceFileLinkDirectoryListing {
21
+ workspaceId: string;
22
+ root: string;
23
+ directoryPath: string;
24
+ entries: WorkspaceFileLinkDirectoryEntry[];
25
+ }
26
+ interface OpenWorkspaceUrlLinkAction {
27
+ type: "open-url";
28
+ url: string;
29
+ source: WorkspaceLinkActionSource;
30
+ }
31
+ interface OpenAgentSessionLinkAction {
32
+ type: "open-agent-session";
33
+ workspaceId: string;
34
+ agentSessionId: string;
35
+ provider?: string | null;
36
+ source: WorkspaceLinkActionSource;
37
+ }
38
+ interface OpenWorkspaceIssueLinkAction {
39
+ type: "open-workspace-issue";
40
+ workspaceId: string;
41
+ issueId: string | null;
42
+ mode?: WorkspaceIssueMentionMode;
43
+ outputDir?: string | null;
44
+ runId?: string | null;
45
+ taskId?: string | null;
46
+ topicId?: string | null;
47
+ source: WorkspaceLinkActionSource;
48
+ }
49
+ type WorkspaceLinkAction = OpenWorkspaceFileLinkAction | OpenWorkspaceUrlLinkAction | OpenAgentSessionLinkAction | OpenWorkspaceIssueLinkAction;
50
+
51
+ export type { WorkspaceLinkAction as W };
package/package.json ADDED
@@ -0,0 +1,166 @@
1
+ {
2
+ "name": "@tutti-os/agent-gui",
3
+ "version": "0.0.3",
4
+ "private": false,
5
+ "type": "module",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./agent-message-center": {
13
+ "types": "./dist/agent-message-center/index.d.ts",
14
+ "import": "./dist/agent-message-center/index.js"
15
+ },
16
+ "./agent-rich-text-at-provider": {
17
+ "types": "./dist/agent-rich-text-at-provider.d.ts",
18
+ "import": "./dist/agent-rich-text-at-provider.js"
19
+ },
20
+ "./mention-file-presentation": {
21
+ "types": "./dist/mention-file-presentation.d.ts",
22
+ "import": "./dist/mention-file-presentation.js"
23
+ },
24
+ "./agent-title-text": {
25
+ "types": "./dist/agent-title-text.d.ts",
26
+ "import": "./dist/agent-title-text.js"
27
+ },
28
+ "./workspace-agent-generated-files": {
29
+ "types": "./dist/workspace-agent-generated-files.d.ts",
30
+ "import": "./dist/workspace-agent-generated-files.js"
31
+ },
32
+ "./i18n": {
33
+ "types": "./dist/i18n/index.d.ts",
34
+ "import": "./dist/i18n/index.js"
35
+ },
36
+ "./workbench": {
37
+ "types": "./dist/workbench/index.d.ts",
38
+ "import": "./dist/workbench/index.js"
39
+ },
40
+ "./workbench/contribution": {
41
+ "types": "./dist/workbench/contribution.d.ts",
42
+ "import": "./dist/workbench/contribution.js"
43
+ },
44
+ "./workbench/launch": {
45
+ "types": "./dist/workbench/launch.d.ts",
46
+ "import": "./dist/workbench/launch.js"
47
+ },
48
+ "./workbench/providerCatalog": {
49
+ "types": "./dist/workbench/providerCatalog.d.ts",
50
+ "import": "./dist/workbench/providerCatalog.js"
51
+ },
52
+ "./workbench/state": {
53
+ "types": "./dist/workbench/state.d.ts",
54
+ "import": "./dist/workbench/state.js"
55
+ },
56
+ "./workbench/types": {
57
+ "types": "./dist/workbench/types.d.ts",
58
+ "import": "./dist/workbench/types.js"
59
+ },
60
+ "./styles.css": "./dist/app/renderer/agentactivity.css"
61
+ },
62
+ "files": [
63
+ "dist",
64
+ "README.md"
65
+ ],
66
+ "repository": {
67
+ "type": "git",
68
+ "url": "git+https://github.com/tutti-os/tutti.git",
69
+ "directory": "packages/agent/gui"
70
+ },
71
+ "dependencies": {
72
+ "@monaco-editor/react": "^4.7.0",
73
+ "@tutti-os/agent-activity-core": "0.0.3",
74
+ "@tutti-os/ui-i18n-runtime": "0.0.3",
75
+ "@tutti-os/ui-react-hooks": "0.0.3",
76
+ "@tutti-os/ui-system": "0.0.3",
77
+ "@tutti-os/workbench-surface": "0.0.3",
78
+ "@tutti-os/workspace-file-manager": "0.0.3",
79
+ "@tutti-os/workspace-file-reference": "0.0.3",
80
+ "@tutti-os/workspace-issue-manager": "0.0.3",
81
+ "@tutti-os/workspace-user-project": "0.0.3",
82
+ "@tanstack/react-virtual": "^3.13.12",
83
+ "@tiptap/core": "^3.11.1",
84
+ "@tiptap/pm": "^3.23.6",
85
+ "@tiptap/react": "^3.11.1",
86
+ "@tiptap/starter-kit": "^3.11.1",
87
+ "@tiptap/suggestion": "^3.11.1",
88
+ "clsx": "^2.1.1",
89
+ "framer-motion": "^12.40.0",
90
+ "lucide-react": "^0.511.0",
91
+ "react-markdown": "^10.1.0",
92
+ "react-medium-image-zoom": "^5.4.5",
93
+ "rehype-sanitize": "^6.0.0",
94
+ "remark-gfm": "^4.0.1",
95
+ "tailwind-merge": "^3.6.0",
96
+ "zustand": "^5.0.14"
97
+ },
98
+ "devDependencies": {
99
+ "@testing-library/jest-dom": "^6.9.1",
100
+ "@testing-library/react": "^16.3.0",
101
+ "@types/node": "^24.0.1",
102
+ "@types/react": "^19.1.6",
103
+ "@types/react-dom": "^19.1.5",
104
+ "jsdom": "^27.2.0",
105
+ "tsup": "8.5.1",
106
+ "typescript": "^5.8.3",
107
+ "vite": "^6.4.2",
108
+ "vitest": "^4.0.13",
109
+ "@tutti-os/config-tsconfig": "0.0.0"
110
+ },
111
+ "peerDependencies": {
112
+ "react": "^19.1.0",
113
+ "react-dom": "^19.1.0"
114
+ },
115
+ "nextop": {
116
+ "tailwindSourceRoot": "."
117
+ },
118
+ "publishConfig": {
119
+ "access": "public"
120
+ },
121
+ "scripts": {
122
+ "build": "tsup --config tsup.config.ts && node ../../../tools/scripts/copy-package-assets.mjs app/renderer/agentactivity.css dist/app/renderer/agentactivity.css app/renderer/assets/icons dist/app/renderer/assets/icons",
123
+ "test": "vitest run --environment jsdom",
124
+ "typecheck": "tsc --noEmit -p tsconfig.json"
125
+ },
126
+ "typesVersions": {
127
+ "*": {
128
+ "agent-message-center": [
129
+ "./dist/agent-message-center/index.d.ts"
130
+ ],
131
+ "agent-rich-text-at-provider": [
132
+ "./dist/agent-rich-text-at-provider.d.ts"
133
+ ],
134
+ "mention-file-presentation": [
135
+ "./dist/mention-file-presentation.d.ts"
136
+ ],
137
+ "agent-title-text": [
138
+ "./dist/agent-title-text.d.ts"
139
+ ],
140
+ "workspace-agent-generated-files": [
141
+ "./dist/workspace-agent-generated-files.d.ts"
142
+ ],
143
+ "i18n": [
144
+ "./dist/i18n/index.d.ts"
145
+ ],
146
+ "workbench": [
147
+ "./dist/workbench/index.d.ts"
148
+ ],
149
+ "workbench/contribution": [
150
+ "./dist/workbench/contribution.d.ts"
151
+ ],
152
+ "workbench/launch": [
153
+ "./dist/workbench/launch.d.ts"
154
+ ],
155
+ "workbench/providerCatalog": [
156
+ "./dist/workbench/providerCatalog.d.ts"
157
+ ],
158
+ "workbench/state": [
159
+ "./dist/workbench/state.d.ts"
160
+ ],
161
+ "workbench/types": [
162
+ "./dist/workbench/types.d.ts"
163
+ ]
164
+ }
165
+ }
166
+ }