@tutti-os/agent-gui 0.0.94 → 0.0.96

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 (163) hide show
  1. package/README.md +86 -38
  2. package/dist/AgentGUI-DWdvUV4x.d.ts +1038 -0
  3. package/dist/agent-conversation/index.d.ts +6 -7
  4. package/dist/agent-conversation/index.js +15 -10
  5. package/dist/agent-conversation/index.js.map +1 -1
  6. package/dist/agent-env/index.d.ts +10 -36
  7. package/dist/agent-env/index.js +2 -57
  8. package/dist/agent-env/index.js.map +1 -1
  9. package/dist/agent-gui.d.ts +21 -0
  10. package/dist/agent-gui.js +39 -0
  11. package/dist/agent-message-center/index.d.ts +156 -124
  12. package/dist/agent-message-center/index.js +1656 -1463
  13. package/dist/agent-message-center/index.js.map +1 -1
  14. package/dist/{agentConversationVM-Cl4G0Lln.d.ts → agentConversationVM-C335TR6S.d.ts} +112 -7
  15. package/dist/agentFileMentionContracts-58IjMU-u.d.ts +108 -0
  16. package/dist/{agentGuiNodeTypes-CAioPXK9.d.ts → agentGuiNodeTypes-B9X4aWfv.d.ts} +123 -163
  17. package/dist/agentPlanPromptDispatch-C7cCMjve.d.ts +37 -0
  18. package/dist/agents.d.ts +13 -0
  19. package/dist/agents.js +13 -0
  20. package/dist/app/renderer/agentactivity.css +276 -83
  21. package/dist/app/renderer/assets/icons/agent-vinyls/tutti-vinyl.png +0 -0
  22. package/dist/app/renderer/assets/icons/open-link-lined.svg +4 -0
  23. package/dist/{chunk-7BUYFVRI.js → chunk-2HJEOO7W.js} +2931 -2946
  24. package/dist/chunk-2HJEOO7W.js.map +1 -0
  25. package/dist/{chunk-E5FOXRUM.js → chunk-3XXBDYAI.js} +293 -258
  26. package/dist/chunk-3XXBDYAI.js.map +1 -0
  27. package/dist/{chunk-ZUW4B5AT.js → chunk-3Y3F7CS5.js} +21 -32
  28. package/dist/chunk-3Y3F7CS5.js.map +1 -0
  29. package/dist/{chunk-SCLLP5DO.js → chunk-4PQPJ5OY.js} +50 -155
  30. package/dist/chunk-4PQPJ5OY.js.map +1 -0
  31. package/dist/chunk-4YG7YK7S.js +23 -0
  32. package/dist/chunk-4YG7YK7S.js.map +1 -0
  33. package/dist/chunk-5X7YDOC6.js +42 -0
  34. package/dist/chunk-5X7YDOC6.js.map +1 -0
  35. package/dist/{chunk-R2EWECUP.js → chunk-7BXWPI4F.js} +17 -2
  36. package/dist/{chunk-R2EWECUP.js.map → chunk-7BXWPI4F.js.map} +1 -1
  37. package/dist/chunk-AGT7MUTV.js +491 -0
  38. package/dist/chunk-AGT7MUTV.js.map +1 -0
  39. package/dist/chunk-C35SNDVZ.js +96 -0
  40. package/dist/chunk-C35SNDVZ.js.map +1 -0
  41. package/dist/{chunk-5FE7M42A.js → chunk-E4HQUTM3.js} +2 -2
  42. package/dist/chunk-FGLQZ6I4.js +9 -0
  43. package/dist/chunk-FGLQZ6I4.js.map +1 -0
  44. package/dist/chunk-H5F3QSCF.js +25 -0
  45. package/dist/chunk-H5F3QSCF.js.map +1 -0
  46. package/dist/chunk-H6IQ63DQ.js +14 -0
  47. package/dist/chunk-H6IQ63DQ.js.map +1 -0
  48. package/dist/{chunk-45FF4DQU.js → chunk-IYEXLOUE.js} +22 -27
  49. package/dist/chunk-IYEXLOUE.js.map +1 -0
  50. package/dist/{chunk-P72YLKC6.js → chunk-JKIZA7EJ.js} +3573 -3755
  51. package/dist/chunk-JKIZA7EJ.js.map +1 -0
  52. package/dist/chunk-KJQERFKX.js +259 -0
  53. package/dist/chunk-KJQERFKX.js.map +1 -0
  54. package/dist/{chunk-XW4CVBUH.js → chunk-L3GMMGRS.js} +25 -16
  55. package/dist/chunk-L3GMMGRS.js.map +1 -0
  56. package/dist/chunk-MASXZENX.js +231 -0
  57. package/dist/chunk-MASXZENX.js.map +1 -0
  58. package/dist/{chunk-BXVPOGYK.js → chunk-O3Q5SIJH.js} +505 -504
  59. package/dist/chunk-O3Q5SIJH.js.map +1 -0
  60. package/dist/{chunk-554VG7ZW.js → chunk-QVBF5BN5.js} +2 -2
  61. package/dist/{chunk-AWAIUYG4.js → chunk-RE4AXS27.js} +532 -565
  62. package/dist/chunk-RE4AXS27.js.map +1 -0
  63. package/dist/{chunk-7LMJXF4R.js → chunk-TVIGLNNI.js} +20 -16
  64. package/dist/chunk-TVIGLNNI.js.map +1 -0
  65. package/dist/{chunk-XDV4ZRVK.js → chunk-UGVI47X6.js} +98 -37
  66. package/dist/chunk-UGVI47X6.js.map +1 -0
  67. package/dist/{chunk-GAPTLVII.js → chunk-UHBCM6RO.js} +1 -1
  68. package/dist/chunk-UHBCM6RO.js.map +1 -0
  69. package/dist/{chunk-UBDPV34P.js → chunk-W6WAGPMD.js} +1385 -1305
  70. package/dist/chunk-W6WAGPMD.js.map +1 -0
  71. package/dist/chunk-WKSFPJHZ.js +33054 -0
  72. package/dist/chunk-WKSFPJHZ.js.map +1 -0
  73. package/dist/{chunk-IGY4ASUF.js → chunk-WMNS4MAQ.js} +1288 -1696
  74. package/dist/chunk-WMNS4MAQ.js.map +1 -0
  75. package/dist/{chunk-MATIJPGF.js → chunk-XPFHJMZP.js} +541 -401
  76. package/dist/chunk-XPFHJMZP.js.map +1 -0
  77. package/dist/chunk-YMXYBG7U.js +12 -0
  78. package/dist/chunk-YMXYBG7U.js.map +1 -0
  79. package/dist/context-mention-palette/index.d.ts +3 -2
  80. package/dist/context-mention-palette/index.js +17 -12
  81. package/dist/custom-mention.d.ts +42 -0
  82. package/dist/custom-mention.js +17 -0
  83. package/dist/custom-mention.js.map +1 -0
  84. package/dist/dock-icons.d.ts +4 -0
  85. package/dist/dock-icons.js +11 -0
  86. package/dist/dock-icons.js.map +1 -0
  87. package/dist/i18n/index.d.ts +880 -841
  88. package/dist/i18n/index.js +2 -2
  89. package/dist/index.d.ts +56 -1063
  90. package/dist/index.js +78 -35532
  91. package/dist/index.js.map +1 -1
  92. package/dist/mention-search.d.ts +226 -0
  93. package/dist/mention-search.js +29 -0
  94. package/dist/mention-search.js.map +1 -0
  95. package/dist/open-link-lined-JWEKUKME.svg +4 -0
  96. package/dist/pastedTextKinds-D-XuInaS.d.ts +4 -0
  97. package/dist/provider-icons.d.ts +6 -0
  98. package/dist/provider-icons.js +12 -0
  99. package/dist/provider-icons.js.map +1 -0
  100. package/dist/provider-identity.d.ts +9 -0
  101. package/dist/provider-identity.js +21 -0
  102. package/dist/provider-identity.js.map +1 -0
  103. package/dist/runtime-BBNdWgDU.d.ts +10 -0
  104. package/dist/startup-shell.d.ts +8 -0
  105. package/dist/startup-shell.js +184 -0
  106. package/dist/startup-shell.js.map +1 -0
  107. package/dist/{types-PLFZ8SBX.d.ts → types-CnT8rNUI.d.ts} +43 -87
  108. package/dist/workbench/contribution.d.ts +34 -41
  109. package/dist/workbench/contribution.js +10 -6
  110. package/dist/workbench/index.d.ts +5 -4
  111. package/dist/workbench/index.js +27 -25
  112. package/dist/workbench/launch.d.ts +4 -7
  113. package/dist/workbench/launch.js +4 -3
  114. package/dist/workbench/providerCatalog.d.ts +2 -2
  115. package/dist/workbench/providerCatalog.js +2 -1
  116. package/dist/workbench/sessionTitle.d.ts +11 -14
  117. package/dist/workbench/sessionTitle.js +6 -7
  118. package/dist/workbench/state.d.ts +1 -1
  119. package/dist/workbench/state.js +3 -2
  120. package/dist/workbench/types.d.ts +2 -4
  121. package/dist/workbench/types.js +1 -1
  122. package/dist/workspace-agent-generated-files.d.ts +20 -2
  123. package/dist/workspace-agent-generated-files.js +6 -5
  124. package/dist/workspaceAgentActivityListTypes-C7gPWYiA.d.ts +71 -0
  125. package/package.json +70 -26
  126. package/dist/AgentMentionSearchController-DD_WOred.d.ts +0 -241
  127. package/dist/AgentMessageMarkdown-DeYPURtF.d.ts +0 -7
  128. package/dist/chunk-45FF4DQU.js.map +0 -1
  129. package/dist/chunk-4HP6V2YA.js +0 -207
  130. package/dist/chunk-4HP6V2YA.js.map +0 -1
  131. package/dist/chunk-7BUYFVRI.js.map +0 -1
  132. package/dist/chunk-7LMJXF4R.js.map +0 -1
  133. package/dist/chunk-AWAIUYG4.js.map +0 -1
  134. package/dist/chunk-BXVPOGYK.js.map +0 -1
  135. package/dist/chunk-E5FOXRUM.js.map +0 -1
  136. package/dist/chunk-GAPTLVII.js.map +0 -1
  137. package/dist/chunk-IBIMGLCD.js +0 -66
  138. package/dist/chunk-IBIMGLCD.js.map +0 -1
  139. package/dist/chunk-IGY4ASUF.js.map +0 -1
  140. package/dist/chunk-LR4FA5X6.js +0 -368
  141. package/dist/chunk-LR4FA5X6.js.map +0 -1
  142. package/dist/chunk-MATIJPGF.js.map +0 -1
  143. package/dist/chunk-MKHDRIGN.js +0 -71
  144. package/dist/chunk-MKHDRIGN.js.map +0 -1
  145. package/dist/chunk-P72YLKC6.js.map +0 -1
  146. package/dist/chunk-SCLLP5DO.js.map +0 -1
  147. package/dist/chunk-UBDPV34P.js.map +0 -1
  148. package/dist/chunk-VAKFNNKT.js +0 -410
  149. package/dist/chunk-VAKFNNKT.js.map +0 -1
  150. package/dist/chunk-XDV4ZRVK.js.map +0 -1
  151. package/dist/chunk-XW4CVBUH.js.map +0 -1
  152. package/dist/chunk-ZUW4B5AT.js.map +0 -1
  153. package/dist/plan-decision-ops.d.ts +0 -70
  154. package/dist/plan-decision-ops.js +0 -19
  155. package/dist/queued-prompt-runtime.d.ts +0 -115
  156. package/dist/queued-prompt-runtime.js +0 -9
  157. package/dist/uiSettings-BQS9r2eo.d.ts +0 -6
  158. package/dist/workspaceAgentActivityListViewModel-BzV-cf0D.d.ts +0 -340
  159. package/dist/workspaceLinkActions-DS9LWqzI.d.ts +0 -74
  160. /package/dist/{plan-decision-ops.js.map → agent-gui.js.map} +0 -0
  161. /package/dist/{queued-prompt-runtime.js.map → agents.js.map} +0 -0
  162. /package/dist/{chunk-5FE7M42A.js.map → chunk-E4HQUTM3.js.map} +0 -0
  163. /package/dist/{chunk-554VG7ZW.js.map → chunk-QVBF5BN5.js.map} +0 -0
@@ -1,115 +0,0 @@
1
- import { f as AgentGUIQueuedPromptVM } from './agentGuiNodeTypes-CAioPXK9.js';
2
- import '@tutti-os/agent-activity-core';
3
- import './types-PLFZ8SBX.js';
4
- import './workspaceAgentActivityListViewModel-BzV-cf0D.js';
5
- import './agentConversationVM-Cl4G0Lln.js';
6
- import '@tutti-os/workspace-user-project/contracts';
7
-
8
- interface AgentQueuedPromptRetryBlock {
9
- queuedPromptId: string;
10
- sessionStateUpdatedAtUnixMs: number | null;
11
- conversationUpdatedAtUnixMs: number | null;
12
- }
13
- interface AgentQueuedPromptClaim {
14
- agentSessionId: string;
15
- claimId: string;
16
- ownerId: string;
17
- promptId: string;
18
- leasedUntilUnixMs: number;
19
- workspaceId: string;
20
- }
21
- type AgentQueuedPromptSuspendReason = "user_stop";
22
- interface AgentQueuedPromptQueueSnapshot {
23
- agentSessionId: string;
24
- claim: AgentQueuedPromptClaim | null;
25
- failedPromptId: string | null;
26
- prompts: readonly AgentGUIQueuedPromptVM[];
27
- retryBlock: AgentQueuedPromptRetryBlock | null;
28
- sendNextPromptId: string | null;
29
- /**
30
- * User intent gate: while set, the drainer must not auto-dispatch this
31
- * queue even when the session is available. Set when the user stops the
32
- * session; cleared by an explicit user send (composer submit resumes, and
33
- * promotePrompt clears it as part of "send now").
34
- */
35
- suspendReason: AgentQueuedPromptSuspendReason | null;
36
- workspaceId: string;
37
- }
38
- interface AgentQueuedPromptSnapshot {
39
- queuesByKey: Readonly<Record<string, AgentQueuedPromptQueueSnapshot>>;
40
- version: number;
41
- }
42
- interface AgentQueuedPromptClaimResult {
43
- claim: AgentQueuedPromptClaim;
44
- prompt: AgentGUIQueuedPromptVM;
45
- }
46
- interface AgentQueuedPromptRuntime {
47
- claimNextToDrain(input: {
48
- agentSessionId: string;
49
- leaseMs?: number;
50
- ownerId: string;
51
- workspaceId: string;
52
- }): AgentQueuedPromptClaimResult | null;
53
- cleanupSession(input: {
54
- agentSessionId: string;
55
- workspaceId: string;
56
- }): void;
57
- completeClaim(input: {
58
- agentSessionId: string;
59
- claimId: string;
60
- ownerId: string;
61
- workspaceId: string;
62
- }): boolean;
63
- enqueue(input: {
64
- prompt: AgentGUIQueuedPromptVM;
65
- agentSessionId: string;
66
- workspaceId: string;
67
- }): void;
68
- getSessionSnapshot(input: {
69
- agentSessionId: string;
70
- workspaceId: string;
71
- }): AgentQueuedPromptQueueSnapshot;
72
- getSnapshot(): AgentQueuedPromptSnapshot;
73
- markPromptFailed(input: {
74
- agentSessionId: string;
75
- promptId: string;
76
- workspaceId: string;
77
- }): void;
78
- promotePrompt(input: {
79
- agentSessionId: string;
80
- promptId: string;
81
- workspaceId: string;
82
- }): void;
83
- releaseClaim(input: {
84
- agentSessionId: string;
85
- claimId: string;
86
- ownerId: string;
87
- workspaceId: string;
88
- }): boolean;
89
- removePrompt(input: {
90
- agentSessionId: string;
91
- promptId: string;
92
- workspaceId: string;
93
- }): AgentGUIQueuedPromptVM | null;
94
- setRetryBlock(input: {
95
- agentSessionId: string;
96
- retryBlock: AgentQueuedPromptRetryBlock | null;
97
- workspaceId: string;
98
- }): void;
99
- /** Hold the queue after a user stop; a no-op when the queue is empty. */
100
- suspendQueue(input: {
101
- agentSessionId: string;
102
- reason: AgentQueuedPromptSuspendReason;
103
- workspaceId: string;
104
- }): void;
105
- /** Lift a user-stop hold (explicit user send). */
106
- resumeQueue(input: {
107
- agentSessionId: string;
108
- workspaceId: string;
109
- }): void;
110
- subscribe(listener: () => void): () => void;
111
- }
112
- declare const EMPTY_AGENT_QUEUED_PROMPT_SNAPSHOT: AgentQueuedPromptSnapshot;
113
- declare function createAgentQueuedPromptRuntime(): AgentQueuedPromptRuntime;
114
-
115
- export { type AgentQueuedPromptClaim, type AgentQueuedPromptClaimResult, type AgentQueuedPromptQueueSnapshot, type AgentQueuedPromptRetryBlock, type AgentQueuedPromptRuntime, type AgentQueuedPromptSnapshot, type AgentQueuedPromptSuspendReason, EMPTY_AGENT_QUEUED_PROMPT_SNAPSHOT, createAgentQueuedPromptRuntime };
@@ -1,9 +0,0 @@
1
- import {
2
- EMPTY_AGENT_QUEUED_PROMPT_SNAPSHOT,
3
- createAgentQueuedPromptRuntime
4
- } from "./chunk-VAKFNNKT.js";
5
- export {
6
- EMPTY_AGENT_QUEUED_PROMPT_SNAPSHOT,
7
- createAgentQueuedPromptRuntime
8
- };
9
- //# sourceMappingURL=queued-prompt-runtime.js.map
@@ -1,6 +0,0 @@
1
- declare const UI_LANGUAGES: readonly ["en", "zh-CN"];
2
- type UiLanguage = (typeof UI_LANGUAGES)[number];
3
- declare const UI_THEMES: readonly ["system", "light", "dark"];
4
- type UiTheme = (typeof UI_THEMES)[number];
5
-
6
- export type { UiLanguage as U, UiTheme as a };
@@ -1,340 +0,0 @@
1
- import { AgentActivitySession, AgentActivityTurnLifecycle, AgentActivitySubmitAvailability, AgentActivityMessage, AgentActivityMessageSemantics, AgentActivitySnapshot, AgentActivityPresence } 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 Tutti 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 Tutti 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_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
- agentTargetId?: string | null;
67
- presenceId: number;
68
- userId?: string;
69
- provider?: AgentHostWorkspaceAgentProvider;
70
- providerSessionId: string;
71
- resumable?: boolean;
72
- sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
73
- cwd: string;
74
- lifecycleStatus?: AgentHostWorkspaceAgentSessionLifecycleStatus;
75
- turnPhase?: AgentHostWorkspaceAgentTurnPhase;
76
- endedAtUnixMs?: number;
77
- startedAtUnixMs?: number;
78
- createdAtUnixMs?: number;
79
- updatedAtUnixMs?: number;
80
- pinnedAtUnixMs?: number | null;
81
- effectiveStatus?: AgentHostWorkspaceAgentEffectiveStatus;
82
- title?: string;
83
- status?: AgentHostWorkspaceAgentSessionStatus;
84
- syncState?: AgentHostWorkspaceAgentSyncState;
85
- runtimeContext?: Record<string, unknown>;
86
- }
87
- interface AgentHostWorkspaceAgentSyncState {
88
- workspaceId?: string;
89
- agentSessionId?: string;
90
- status: AgentHostWorkspaceAgentSyncStatus;
91
- pendingTimelineItemCount?: number;
92
- pendingStatePatchCount?: number;
93
- attemptCount?: number;
94
- failedReportCount?: number;
95
- lastError?: string;
96
- lastAttemptAtUnixMs?: number;
97
- lastSyncedAtUnixMs?: number;
98
- updatedAtUnixMs?: number;
99
- }
100
- interface AgentHostWorkspaceAgentListInput {
101
- workspaceId?: string | null;
102
- sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
103
- userId?: string;
104
- }
105
- interface AgentHostWorkspaceAgentSnapshot {
106
- presences: AgentHostWorkspaceAgentPresence[];
107
- sessions: AgentHostWorkspaceAgentSession[];
108
- sessionMessagesById?: Record<string, AgentHostWorkspaceAgentMessage[]>;
109
- }
110
- interface AgentHostDeleteWorkspaceAgentSessionInput {
111
- workspaceId?: string | null;
112
- agentSessionId: string;
113
- sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
114
- }
115
- interface AgentHostWorkspaceAgentMessage {
116
- id: number;
117
- workspaceId?: string;
118
- agentSessionId: string;
119
- messageId: string;
120
- version: number;
121
- turnId: string;
122
- role: string;
123
- kind: string;
124
- status?: string;
125
- payload: Record<string, unknown>;
126
- occurredAtUnixMs: number;
127
- startedAtUnixMs?: number;
128
- completedAtUnixMs?: number;
129
- }
130
- interface AgentHostWorkspaceAgentSessionMessagesInput {
131
- workspaceId?: string | null;
132
- agentSessionId: string;
133
- afterVersion?: number;
134
- beforeVersion?: number;
135
- limit?: number;
136
- order?: "asc" | "desc";
137
- sessionOrigin?: AgentHostWorkspaceAgentSessionOrigin;
138
- }
139
- interface AgentHostWorkspaceAgentSessionMessages {
140
- messages: AgentHostWorkspaceAgentMessage[];
141
- latestVersion?: number;
142
- hasMore?: boolean;
143
- }
144
- interface AgentHostWorkspaceAgentSessionSummaryItem {
145
- id?: number;
146
- turnId?: string;
147
- actorType?: string;
148
- actorId?: string;
149
- itemType?: string;
150
- role?: string;
151
- callType?: string;
152
- callId?: string;
153
- name?: string;
154
- status?: string;
155
- content?: string;
156
- occurredAtUnixMs?: number;
157
- createdAtUnixMs?: number;
158
- }
159
- interface AgentHostWorkspaceAgentSessionSummaryTurn {
160
- turnId?: string;
161
- userItems: AgentHostWorkspaceAgentSessionSummaryItem[];
162
- agentItems: AgentHostWorkspaceAgentSessionSummaryItem[];
163
- }
164
- interface AgentHostWorkspaceAgentSessionExecutionStatus {
165
- currentOrFinalStatus?: string;
166
- status?: AgentHostWorkspaceAgentSessionStatus;
167
- }
168
- interface AgentHostWorkspaceAgentSessionSummaryInput {
169
- workspaceId?: string | null;
170
- agentSessionId: string;
171
- agentReplyLimit?: number;
172
- recentTurnLimit?: number;
173
- }
174
- interface AgentHostWorkspaceAgentSessionSummary {
175
- agentSessionId: string;
176
- initialUserRequirement?: string;
177
- latestUserRequirement?: string;
178
- recentAgentReplies: string[];
179
- currentOrFinalStatus?: string;
180
- initialTurn?: AgentHostWorkspaceAgentSessionSummaryTurn | null;
181
- latestTurn?: AgentHostWorkspaceAgentSessionSummaryTurn | null;
182
- latestTurnSameAsInitial?: boolean;
183
- recentTurns: AgentHostWorkspaceAgentSessionSummaryTurn[];
184
- executionStatus?: AgentHostWorkspaceAgentSessionExecutionStatus | null;
185
- }
186
- interface AgentHostRuntimeOpenclawGatewayWarmupResult {
187
- accepted: boolean;
188
- ready?: boolean;
189
- }
190
-
191
- type WorkspaceAgentActivityProvider = "codex" | "claude-code" | string;
192
- declare const WORKSPACE_AGENT_ACTIVITY_RUNTIME_SESSION_ORIGIN = "WORKSPACE_AGENT_SESSION_ORIGIN_RUNTIME";
193
- type WorkspaceAgentActivitySessionOrigin = typeof WORKSPACE_AGENT_ACTIVITY_RUNTIME_SESSION_ORIGIN | string;
194
- type WorkspaceAgentActivitySyncStatus = "pending" | "synced" | "failed" | string;
195
- interface WorkspaceAgentActivitySyncState {
196
- workspaceId?: string;
197
- agentSessionId?: string;
198
- status: WorkspaceAgentActivitySyncStatus;
199
- pendingTimelineItemCount?: number;
200
- pendingStatePatchCount?: number;
201
- attemptCount?: number;
202
- failedReportCount?: number;
203
- lastError?: string;
204
- lastAttemptAtUnixMs?: number;
205
- lastSyncedAtUnixMs?: number;
206
- updatedAtUnixMs?: number;
207
- }
208
- interface WorkspaceAgentActivityPresence extends Omit<AgentActivityPresence, "id" | "provider" | "status"> {
209
- id: string | number;
210
- provider: WorkspaceAgentActivityProvider;
211
- status: string;
212
- userId?: string | null;
213
- }
214
- interface WorkspaceAgentActivitySession extends Omit<AgentActivitySession, "provider" | "providerSessionId" | "pinnedAtUnixMs" | "status" | "title" | "workspaceId"> {
215
- id?: number;
216
- workspaceId?: string;
217
- presenceId?: string | number;
218
- userId?: string;
219
- provider?: WorkspaceAgentActivityProvider;
220
- providerSessionId?: string | null;
221
- resumable?: boolean;
222
- sessionOrigin?: WorkspaceAgentActivitySessionOrigin;
223
- lifecycleStatus?: string;
224
- turnPhase?: string;
225
- endedAtUnixMs?: number;
226
- effectiveStatus?: string;
227
- status?: string;
228
- turnLifecycle?: AgentActivityTurnLifecycle | null;
229
- submitAvailability?: AgentActivitySubmitAvailability | null;
230
- title?: string;
231
- pinnedAtUnixMs?: number | null;
232
- syncState?: WorkspaceAgentActivitySyncState;
233
- }
234
- interface WorkspaceAgentActivityFileChange {
235
- path: string;
236
- change?: "added" | "modified" | "deleted" | "moved" | string;
237
- tools?: string[];
238
- }
239
- interface WorkspaceAgentActivityFileChanges {
240
- coverage?: string;
241
- files?: WorkspaceAgentActivityFileChange[];
242
- }
243
- interface WorkspaceAgentActivityTimelineItem {
244
- id: number;
245
- workspaceId?: string;
246
- agentSessionId: string;
247
- seq?: number;
248
- turnId?: string;
249
- eventSource?: string;
250
- eventId: string;
251
- actorType: string;
252
- actorId: string;
253
- itemType: "message" | "call" | "event" | "error" | "lifecycle" | string;
254
- role?: string;
255
- callType?: "tool" | "skill" | "subagent" | "approval" | "workflow" | string;
256
- callId?: string;
257
- name?: string;
258
- status?: string | null;
259
- content?: string;
260
- payload?: Record<string, unknown> & {
261
- content?: unknown;
262
- text?: unknown;
263
- fileChanges?: WorkspaceAgentActivityFileChanges;
264
- };
265
- occurredAtUnixMs?: number;
266
- createdAtUnixMs?: number;
267
- }
268
- interface WorkspaceAgentActivityMessage extends Omit<AgentActivityMessage, "id" | "status"> {
269
- id?: number;
270
- status?: string | null;
271
- semantics?: AgentActivityMessageSemantics;
272
- }
273
- interface WorkspaceAgentActivitySnapshot extends Omit<AgentActivitySnapshot, "sessions" | "presences" | "sessionMessagesById" | "workspaceId"> {
274
- workspaceId?: string;
275
- presences: WorkspaceAgentActivityPresence[];
276
- sessions: WorkspaceAgentActivitySession[];
277
- sessionMessagesById?: Record<string, WorkspaceAgentActivityMessage[]>;
278
- }
279
-
280
- type ToolCallStatusKind = "working" | "completed" | "failed" | "canceled" | "waiting";
281
- interface WorkspaceAgentToolCallDisplay {
282
- id: string;
283
- name: string;
284
- status: string | null;
285
- statusKind: ToolCallStatusKind | null;
286
- detail?: string;
287
- }
288
-
289
- type WorkspaceAgentLatestActivityStatus = "working" | "waiting" | "idle" | "completed" | "canceled" | "failed";
290
- interface WorkspaceAgentConversationPreviewLine {
291
- actorName: string;
292
- summary: string;
293
- }
294
-
295
- declare function workspaceAgentProviderLabel(provider: string): string;
296
-
297
- type WorkspaceAgentActivityStatus = WorkspaceAgentLatestActivityStatus;
298
- interface WorkspaceAgentChangedFile {
299
- path: string;
300
- label: string;
301
- }
302
- interface WorkspaceAgentActivityCard {
303
- id: string;
304
- sessionId: string;
305
- userId: string | null;
306
- userName: string;
307
- userAvatarUrl?: string;
308
- agentProvider: string;
309
- agentName: string;
310
- title: string;
311
- status: WorkspaceAgentActivityStatus;
312
- latestActivitySummary: string;
313
- /** User prompt + latest agent reply for task/issue execution cards; room status list uses single-line summary only. */
314
- conversationPreview?: WorkspaceAgentConversationPreviewLine[];
315
- latestActivityActorName?: string;
316
- toolCalls?: WorkspaceAgentToolCallDisplay[];
317
- changedFiles: WorkspaceAgentChangedFile[];
318
- sortTimeUnixMs: number;
319
- readTimeUnixMs?: number;
320
- }
321
- interface WorkspaceAgentActivityListViewModel {
322
- activities: WorkspaceAgentActivityCard[];
323
- }
324
- interface BuildWorkspaceAgentActivityListOptions {
325
- sessionMessagesById?: Record<string, WorkspaceAgentActivityMessage[]>;
326
- userProfilesById?: Record<string, AgentHostUserInfo>;
327
- }
328
- interface CollectWorkspaceAgentGeneratedFilesOptions {
329
- workspaceRoot?: string | null;
330
- /** When set, only include files from sessions whose cwd matches this path. */
331
- sessionCwd?: string | null;
332
- }
333
- declare function collectWorkspaceAgentGeneratedFiles(snapshot: WorkspaceAgentActivitySnapshot, options?: CollectWorkspaceAgentGeneratedFilesOptions): WorkspaceAgentChangedFile[];
334
- declare function buildWorkspaceAgentActivityListViewModel(snapshot: WorkspaceAgentActivitySnapshot, options?: BuildWorkspaceAgentActivityListOptions): WorkspaceAgentActivityListViewModel;
335
- declare function reuseWorkspaceAgentActivityListViewModelIfUnchanged(previous: WorkspaceAgentActivityListViewModel | null, next: WorkspaceAgentActivityListViewModel): WorkspaceAgentActivityListViewModel;
336
-
337
- declare function resolveWorkspaceAgentActivityStatus(session: WorkspaceAgentActivitySession, messages?: readonly WorkspaceAgentActivityMessage[]): WorkspaceAgentActivityStatus;
338
- declare function resolveWorkspaceAgentActivityTitle(session: WorkspaceAgentActivitySession, messages?: readonly WorkspaceAgentActivityMessage[]): string;
339
-
340
- export { type AgentHostBatchUserInfoInput as A, type BuildWorkspaceAgentActivityListOptions as B, type CollectWorkspaceAgentGeneratedFilesOptions as C, type ToolCallStatusKind as T, 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 WorkspaceAgentActivitySession as n, type WorkspaceAgentActivityStatus as o, type WorkspaceAgentActivitySyncState as p, type WorkspaceAgentActivityTimelineItem as q, type WorkspaceAgentChangedFile as r, buildWorkspaceAgentActivityListViewModel as s, collectWorkspaceAgentGeneratedFiles as t, resolveWorkspaceAgentActivityStatus as u, resolveWorkspaceAgentActivityTitle as v, reuseWorkspaceAgentActivityListViewModelIfUnchanged as w, workspaceAgentProviderLabel as x };
@@ -1,74 +0,0 @@
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
- mode?: "reveal" | "open-directory";
7
- path: string;
8
- directoryPath: string;
9
- workspaceRoot: string;
10
- source: WorkspaceLinkActionSource;
11
- prefetchedDirectoryListing?: WorkspaceFileLinkDirectoryListing | null;
12
- }
13
- interface OpenLocalAssetPreviewLinkAction {
14
- type: "open-local-asset-preview";
15
- path: string;
16
- name: string;
17
- source: WorkspaceLinkActionSource;
18
- }
19
- interface WorkspaceFileLinkDirectoryEntry {
20
- path: string;
21
- name: string;
22
- kind: "file" | "directory" | "unknown";
23
- hasChildren: boolean | null;
24
- sizeBytes: number | null;
25
- mtimeMs: number | null;
26
- }
27
- interface WorkspaceFileLinkDirectoryListing {
28
- workspaceId: string;
29
- root: string;
30
- directoryPath: string;
31
- entries: WorkspaceFileLinkDirectoryEntry[];
32
- }
33
- interface OpenWorkspaceUrlLinkAction {
34
- type: "open-url";
35
- url: string;
36
- source: WorkspaceLinkActionSource;
37
- }
38
- interface OpenAgentSessionLinkAction {
39
- type: "open-agent-session";
40
- workspaceId: string;
41
- agentSessionId: string;
42
- agentTargetId?: string | null;
43
- source: WorkspaceLinkActionSource;
44
- }
45
- interface OpenWorkspaceIssueLinkAction {
46
- type: "open-workspace-issue";
47
- workspaceId: string;
48
- issueId: string | null;
49
- mode?: WorkspaceIssueMentionMode;
50
- outputDir?: string | null;
51
- runId?: string | null;
52
- taskId?: string | null;
53
- topicId?: string | null;
54
- source: WorkspaceLinkActionSource;
55
- }
56
- interface OpenWorkspaceAppLinkAction {
57
- type: "open-workspace-app";
58
- workspaceId: string;
59
- appId: string;
60
- conversationId?: string | null;
61
- messageId?: string | null;
62
- summaryTaskId?: string | null;
63
- source: WorkspaceLinkActionSource;
64
- }
65
- interface OpenCustomMentionLinkAction {
66
- type: "open-custom-mention";
67
- /** 注册表里的 kind(= mention:// providerId)。 */
68
- kind: string;
69
- href: string;
70
- source: WorkspaceLinkActionSource;
71
- }
72
- type WorkspaceLinkAction = OpenWorkspaceFileLinkAction | OpenLocalAssetPreviewLinkAction | OpenWorkspaceUrlLinkAction | OpenAgentSessionLinkAction | OpenWorkspaceIssueLinkAction | OpenWorkspaceAppLinkAction | OpenCustomMentionLinkAction;
73
-
74
- export type { WorkspaceLinkAction as W };