@tutti-os/agent-gui 0.0.54 → 0.0.56

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 (46) hide show
  1. package/dist/{AgentMentionSearchController-DzhWr0PN.d.ts → AgentMentionSearchController-Po0KQLcL.d.ts} +13 -1
  2. package/dist/agent-conversation/index.d.ts +1 -1
  3. package/dist/agent-conversation/index.js +6 -6
  4. package/dist/agent-message-center/index.d.ts +1 -1
  5. package/dist/agent-message-center/index.js +8 -8
  6. package/dist/app/renderer/agentactivity.css +21 -4
  7. package/dist/{chunk-PBHTLI3E.js → chunk-4URDQNBP.js} +2 -2
  8. package/dist/{chunk-2XVECUTU.js → chunk-54CMFCHF.js} +3 -1
  9. package/dist/chunk-54CMFCHF.js.map +1 -0
  10. package/dist/{chunk-H2YWXFYX.js → chunk-5PGMLZ4W.js} +2 -2
  11. package/dist/{chunk-ZFDO72FE.js → chunk-6QFURP4M.js} +16 -3
  12. package/dist/chunk-6QFURP4M.js.map +1 -0
  13. package/dist/{chunk-6AXH2BOD.js → chunk-752VTG4P.js} +5 -5
  14. package/dist/{chunk-BGZ2OSDQ.js → chunk-EVVIWZLX.js} +2 -2
  15. package/dist/{chunk-JRA44NYI.js → chunk-MXDPRBS6.js} +143 -4
  16. package/dist/chunk-MXDPRBS6.js.map +1 -0
  17. package/dist/{chunk-CMOGPJ23.js → chunk-PQYMG6PQ.js} +2 -2
  18. package/dist/{chunk-7ZDLFTVL.js → chunk-PQYSB2WC.js} +13 -5
  19. package/dist/{chunk-7ZDLFTVL.js.map → chunk-PQYSB2WC.js.map} +1 -1
  20. package/dist/{chunk-GL54NRMB.js → chunk-S6PCOX3S.js} +40 -1
  21. package/dist/chunk-S6PCOX3S.js.map +1 -0
  22. package/dist/{chunk-WMQN7SZC.js → chunk-SITURZG6.js} +2 -2
  23. package/dist/{chunk-EXZH66UE.js → chunk-X4C4HD6E.js} +5 -5
  24. package/dist/context-mention-palette/index.d.ts +2 -2
  25. package/dist/context-mention-palette/index.js +7 -7
  26. package/dist/i18n/index.d.ts +2 -0
  27. package/dist/i18n/index.js +2 -2
  28. package/dist/index.d.ts +43 -5
  29. package/dist/index.js +477 -119
  30. package/dist/index.js.map +1 -1
  31. package/dist/workbench/index.js +3 -3
  32. package/dist/workbench/sessionTitle.js +3 -3
  33. package/dist/workspace-agent-generated-files.js +3 -3
  34. package/dist/{workspaceLinkActions-C6POH38D.d.ts → workspaceLinkActions-Bjy_XfBm.d.ts} +8 -1
  35. package/package.json +12 -12
  36. package/dist/chunk-2XVECUTU.js.map +0 -1
  37. package/dist/chunk-GL54NRMB.js.map +0 -1
  38. package/dist/chunk-JRA44NYI.js.map +0 -1
  39. package/dist/chunk-ZFDO72FE.js.map +0 -1
  40. /package/dist/{chunk-PBHTLI3E.js.map → chunk-4URDQNBP.js.map} +0 -0
  41. /package/dist/{chunk-H2YWXFYX.js.map → chunk-5PGMLZ4W.js.map} +0 -0
  42. /package/dist/{chunk-6AXH2BOD.js.map → chunk-752VTG4P.js.map} +0 -0
  43. /package/dist/{chunk-BGZ2OSDQ.js.map → chunk-EVVIWZLX.js.map} +0 -0
  44. /package/dist/{chunk-CMOGPJ23.js.map → chunk-PQYMG6PQ.js.map} +0 -0
  45. /package/dist/{chunk-WMQN7SZC.js.map → chunk-SITURZG6.js.map} +0 -0
  46. /package/dist/{chunk-EXZH66UE.js.map → chunk-X4C4HD6E.js.map} +0 -0
@@ -15,7 +15,7 @@ import {
15
15
  resolveWorkspaceFilePathCandidate,
16
16
  resolveWorkspaceLinkAction,
17
17
  useAgentTargetPresentations
18
- } from "./chunk-ZFDO72FE.js";
18
+ } from "./chunk-6QFURP4M.js";
19
19
  import {
20
20
  AGENT_RICH_TEXT_CARET_ANCHOR,
21
21
  attrsToMentionItem,
@@ -23,7 +23,7 @@ import {
23
23
  formatAgentMentionMarkdown,
24
24
  mentionItemToAttrs,
25
25
  parseAgentMentionMarkdown
26
- } from "./chunk-JRA44NYI.js";
26
+ } from "./chunk-MXDPRBS6.js";
27
27
  import {
28
28
  fileChangeCountFromChanges,
29
29
  fileChangeEntriesFromChanges,
@@ -33,14 +33,14 @@ import {
33
33
  import {
34
34
  getOptionalAgentActivityRuntime,
35
35
  useOptionalAgentHostApi
36
- } from "./chunk-GL54NRMB.js";
36
+ } from "./chunk-S6PCOX3S.js";
37
37
  import {
38
38
  workspaceAgentProviderLabel
39
39
  } from "./chunk-TYGL25EL.js";
40
40
  import {
41
41
  getActiveUiLanguage,
42
42
  translate
43
- } from "./chunk-H2YWXFYX.js";
43
+ } from "./chunk-5PGMLZ4W.js";
44
44
 
45
45
  // shared/imageGenerationTool.ts
46
46
  var KNOWN_IMAGE_GENERATION_TOOL_NAMES = /* @__PURE__ */ new Set([
@@ -14956,4 +14956,4 @@ export {
14956
14956
  AgentConversationFlow,
14957
14957
  useProjectedAgentConversation
14958
14958
  };
14959
- //# sourceMappingURL=chunk-EXZH66UE.js.map
14959
+ //# sourceMappingURL=chunk-X4C4HD6E.js.map
@@ -1,5 +1,5 @@
1
- import { f as AgentMentionSearchState, A as AgentContextMentionItem, a as AgentMentionBrowseCategory, b as AgentMentionFilterId, d as AgentMentionGroupId } from '../AgentMentionSearchController-DzhWr0PN.js';
2
- export { c as AgentMentionGroup, e as AgentMentionSearchController } from '../AgentMentionSearchController-DzhWr0PN.js';
1
+ import { f as AgentMentionSearchState, A as AgentContextMentionItem, a as AgentMentionBrowseCategory, b as AgentMentionFilterId, d as AgentMentionGroupId } from '../AgentMentionSearchController-Po0KQLcL.js';
2
+ export { c as AgentMentionGroup, e as AgentMentionSearchController } from '../AgentMentionSearchController-Po0KQLcL.js';
3
3
  export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionInsertResult, AgentContextMentionProvider, AgentContextMentionProviderId, AgentContextMentionQueryInput } from '../context-mention-provider.js';
4
4
  import '@tutti-os/ui-rich-text/at-panel';
5
5
  import '@tutti-os/ui-rich-text/types';
@@ -4,14 +4,14 @@ import {
4
4
  AgentMentionSearchController,
5
5
  flattenAgentMentionPaletteEntries,
6
6
  groupStartKeys
7
- } from "../chunk-7ZDLFTVL.js";
8
- import "../chunk-PBHTLI3E.js";
9
- import "../chunk-WMQN7SZC.js";
7
+ } from "../chunk-PQYSB2WC.js";
8
+ import "../chunk-4URDQNBP.js";
9
+ import "../chunk-SITURZG6.js";
10
10
  import "../chunk-IBIMGLCD.js";
11
- import "../chunk-JRA44NYI.js";
11
+ import "../chunk-MXDPRBS6.js";
12
12
  import "../chunk-Y35GDLP2.js";
13
13
  import "../chunk-LUGELG5V.js";
14
- import "../chunk-GL54NRMB.js";
14
+ import "../chunk-S6PCOX3S.js";
15
15
  import "../chunk-TYGL25EL.js";
16
16
  import "../chunk-PJP5BUU6.js";
17
17
  import "../chunk-MTFSQWZ6.js";
@@ -19,8 +19,8 @@ import {
19
19
  AGENT_CONTEXT_MENTION_PROVIDER_IDS
20
20
  } from "../chunk-JM24HADP.js";
21
21
  import "../chunk-GCBDIQDX.js";
22
- import "../chunk-H2YWXFYX.js";
23
- import "../chunk-2XVECUTU.js";
22
+ import "../chunk-5PGMLZ4W.js";
23
+ import "../chunk-54CMFCHF.js";
24
24
  export {
25
25
  AGENT_CONTEXT_MENTION_PROVIDER_IDS,
26
26
  AgentContextMentionPalette,
@@ -890,6 +890,7 @@ declare const agentGuiI18nResources: {
890
890
  readonly mentionKindAppFactory: "App Factory";
891
891
  readonly mentionKindFile: "File";
892
892
  readonly mentionKindIssue: "Task";
893
+ readonly mentionKindReference: "Reference";
893
894
  readonly mentionKindSession: "Session";
894
895
  readonly mentionGroupFiles: "Files";
895
896
  readonly mentionGroupOpenedFiles: "Files I opened";
@@ -3351,6 +3352,7 @@ declare const agentGuiI18nResources: {
3351
3352
  readonly mentionKindAppFactory: "应用工厂";
3352
3353
  readonly mentionKindFile: "文件";
3353
3354
  readonly mentionKindIssue: "任务";
3355
+ readonly mentionKindReference: "引用";
3354
3356
  readonly mentionKindSession: "会话";
3355
3357
  readonly mentionGroupFiles: "文件";
3356
3358
  readonly mentionGroupOpenedFiles: "我打开的文件";
@@ -6,8 +6,8 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-H2YWXFYX.js";
10
- import "../chunk-2XVECUTU.js";
9
+ } from "../chunk-5PGMLZ4W.js";
10
+ import "../chunk-54CMFCHF.js";
11
11
  export {
12
12
  AgentGuiI18nProvider,
13
13
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot, AgentActivityCa
2
2
  export { AgentActivityAdapter, AgentActivityController, AgentActivityMessage, AgentActivityNeedsAttentionItem, AgentActivitySnapshot, selectNeedsAttentionCount, selectNeedsAttentionItems } from '@tutti-os/agent-activity-core';
3
3
  import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentSession, f as AgentHostWorkspaceAgentMessage, l as AgentHostWorkspaceAgentSnapshot, B as BuildWorkspaceAgentActivityListOptions, d as AgentHostRuntimeOpenclawGatewayWarmupResult, c as AgentHostManagedAgentsState } from './workspaceAgentActivityListViewModel-B5viw5Da.js';
4
4
  import * as react from 'react';
5
- import { PropsWithChildren, JSX } from 'react';
5
+ import { ReactNode, PropsWithChildren, JSX } from 'react';
6
6
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
7
7
  import { n as AgentProvider, c as AgentGUIProviderTargetRef, f as AgentHostAgentSessionComposerSettings, d as AgentHostActivateAgentSessionResult, l as AgentHostUpdateAgentSessionSettingsResult, j as AgentHostAgentSessionState, k as AgentHostUnactivateAgentSessionResult, A as AgentGUINodeData, b as AgentGUIProviderTarget, a as AgentGUIProvider, m as AgentPromptContentBlock, P as Point, N as NodeFrame } from './types-B2m7UcBb.js';
8
8
  import { l as AgentProbeSnapshot, A as AgentComposerDraft, o as AgentSessionCommand, d as AgentGUIProviderSkillOption, a as AgentGUIComposerSettingsVM, e as AgentGUIQueuedPromptVM, c as AgentGUINodeViewModel, b as AgentGUIConversationScope, h as AgentHostInputApi } from './agentGuiNodeTypes-DCnsaqJr.js';
@@ -11,9 +11,9 @@ import { WorkspaceFileEntry } from '@tutti-os/workspace-file-manager/services';
11
11
  import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAdapter } from '@tutti-os/workspace-file-reference/contracts';
12
12
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
13
13
  import { U as UiLanguage, a as UiTheme } from './uiSettings-BQS9r2eo.js';
14
- import { W as WorkspaceLinkAction } from './workspaceLinkActions-C6POH38D.js';
15
- import { A as AgentContextMentionItem } from './AgentMentionSearchController-DzhWr0PN.js';
16
- export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-DzhWr0PN.js';
14
+ import { W as WorkspaceLinkAction } from './workspaceLinkActions-Bjy_XfBm.js';
15
+ import { A as AgentContextMentionItem } from './AgentMentionSearchController-Po0KQLcL.js';
16
+ export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-Po0KQLcL.js';
17
17
  import { b as AgentConversationPromptVM } from './agentConversationVM-Qbz9GBwR.js';
18
18
  import { WorkspaceUserProjectI18nRuntime } from '@tutti-os/workspace-user-project/i18n';
19
19
  import { WorkspaceUserProjectSelectChangeAction } from '@tutti-os/workspace-user-project/ui';
@@ -49,6 +49,44 @@ declare function agentHostSnapshotFromAgentActivitySnapshot(snapshot: AgentActiv
49
49
  */
50
50
  declare function projectCoreSessionStatus(status: string): string;
51
51
 
52
+ interface AgentCustomMentionIdentity {
53
+ entityId: string;
54
+ label: string;
55
+ scope?: Readonly<Record<string, string>>;
56
+ }
57
+ interface AgentCustomMentionPresentation {
58
+ /** chip 第一行(缺省用链接 label)。 */
59
+ name: string;
60
+ /** chip 第二行(可选,通用双行卡的次要文案)。 */
61
+ summary?: string;
62
+ /** 所属 workspace(可选;custom kind 的 scope 键由注册方约定)。 */
63
+ workspaceId?: string;
64
+ }
65
+ interface AgentCustomMentionChipContext {
66
+ href: string;
67
+ name: string;
68
+ summary?: string;
69
+ isEditable: boolean;
70
+ /** 可编辑态的移除按钮,由 NodeView 注入;自定义渲染需自行摆放。 */
71
+ removeAction?: ReactNode;
72
+ }
73
+ interface AgentCustomMentionKindDefinition {
74
+ /** mention://<kind>/... 的 providerId(URL hostname,小写)。 */
75
+ kind: string;
76
+ /**
77
+ * 从 canonical mention 链接提取展示字段;返回 null 表示链接无效,
78
+ * 退化为普通链接/字面文本。
79
+ */
80
+ present(mention: AgentCustomMentionIdentity, href: string): AgentCustomMentionPresentation | null;
81
+ /** 自定义 chip 渲染;缺省用包内通用双行卡(name + summary)。 */
82
+ renderChip?(context: AgentCustomMentionChipContext): ReactNode;
83
+ /** 点击是否上抛 open-custom-mention 链接动作;缺省 false(chip 只展示)。 */
84
+ clickable?: boolean;
85
+ }
86
+ declare function registerAgentCustomMentionKind(definition: AgentCustomMentionKindDefinition): void;
87
+ declare function getAgentCustomMentionKind(kind: string): AgentCustomMentionKindDefinition | undefined;
88
+ declare function resetAgentCustomMentionKindsForTests(): void;
89
+
52
90
  type AgentCustomModelEnabledByProvider<TProvider extends string> = Record<TProvider, boolean>;
53
91
  type AgentCustomModelByProvider<TProvider extends string> = Record<TProvider, string>;
54
92
  type AgentCustomModelOptionsByProvider<TProvider extends string> = Record<TProvider, string[]>;
@@ -834,4 +872,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
834
872
  }
835
873
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
836
874
 
837
- export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, AgentGUI, type AgentGUIProps, AgentGUIProvider, AgentGUIProviderTarget, AgentGUIProviderTargetRef, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, getAgentActivityRuntime, getOptionalAgentActivityRuntime, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, resetAgentActivityRuntimeForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };
875
+ export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIProps, AgentGUIProvider, AgentGUIProviderTarget, AgentGUIProviderTargetRef, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };