@tutti-os/agent-gui 0.0.10 → 0.0.11
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/AgentMessageMarkdown-DeYPURtF.d.ts +7 -0
- package/dist/agent-conversation/index.d.ts +135 -0
- package/dist/agent-conversation/index.js +77 -0
- package/dist/agent-conversation/index.js.map +1 -0
- package/dist/agent-message-center/index.d.ts +45 -46
- package/dist/agent-message-center/index.js +1799 -1166
- package/dist/agent-message-center/index.js.map +1 -1
- package/dist/agent-rich-text-at-provider.d.ts +15 -1
- package/dist/agent-rich-text-at-provider.js +1 -1
- package/dist/agentConversationVM-BtHYOTgv.d.ts +342 -0
- package/dist/app/renderer/agentactivity.css +208 -0
- package/dist/{chunk-KCC3GNPB.js → chunk-77HBKGHF.js} +1 -1
- package/dist/chunk-77HBKGHF.js.map +1 -0
- package/dist/{chunk-T6U7AB7F.js → chunk-B7K776UD.js} +47 -3
- package/dist/chunk-B7K776UD.js.map +1 -0
- package/dist/{chunk-CUQJ3VO3.js → chunk-CGBRAWTD.js} +282 -2531
- package/dist/chunk-CGBRAWTD.js.map +1 -0
- package/dist/{chunk-3D5VTIKP.js → chunk-IBIMGLCD.js} +1 -28
- package/dist/chunk-IBIMGLCD.js.map +1 -0
- package/dist/{chunk-EHLA6MSQ.js → chunk-ITMKZRCT.js} +9 -19
- package/dist/chunk-ITMKZRCT.js.map +1 -0
- package/dist/chunk-MKHDRIGN.js +71 -0
- package/dist/chunk-MKHDRIGN.js.map +1 -0
- package/dist/chunk-QTZALZIV.js +2640 -0
- package/dist/chunk-QTZALZIV.js.map +1 -0
- package/dist/chunk-TYGL25EL.js +30 -0
- package/dist/chunk-TYGL25EL.js.map +1 -0
- package/dist/chunk-XJ34OIEQ.js +18 -0
- package/dist/chunk-XJ34OIEQ.js.map +1 -0
- package/dist/chunk-ZEFETOTS.js +13293 -0
- package/dist/chunk-ZEFETOTS.js.map +1 -0
- package/dist/i18n/index.d.ts +46 -2
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +9713 -21513
- package/dist/index.js.map +1 -1
- package/dist/plan-decision-ops.d.ts +70 -0
- package/dist/plan-decision-ops.js +19 -0
- package/dist/plan-decision-ops.js.map +1 -0
- package/dist/workspace-agent-generated-files.d.ts +1 -1
- package/dist/workspace-agent-generated-files.js +5 -3
- package/dist/{workspaceAgentActivityListViewModel-Be4zm3nk.d.ts → workspaceAgentActivityListViewModel-BLLYGuFO.d.ts} +36 -2
- package/package.json +24 -10
- package/dist/chunk-3D5VTIKP.js.map +0 -1
- package/dist/chunk-CUQJ3VO3.js.map +0 -1
- package/dist/chunk-EHLA6MSQ.js.map +0 -1
- package/dist/chunk-KCC3GNPB.js.map +0 -1
- package/dist/chunk-T6U7AB7F.js.map +0 -1
package/dist/i18n/index.d.ts
CHANGED
|
@@ -436,7 +436,7 @@ declare const agentGuiI18nResources: {
|
|
|
436
436
|
readonly professionalLongRunning: "Optimized for professional work and long-running agents";
|
|
437
437
|
};
|
|
438
438
|
readonly permissionLabel: "Run permissions";
|
|
439
|
-
readonly planModeLabel: "Plan";
|
|
439
|
+
readonly planModeLabel: "Plan Mode";
|
|
440
440
|
readonly planModeOnLabel: "On";
|
|
441
441
|
readonly planModeOffLabel: "Off";
|
|
442
442
|
readonly planUnavailable: "Plan unavailable";
|
|
@@ -460,7 +460,27 @@ declare const agentGuiI18nResources: {
|
|
|
460
460
|
readonly slashStatusContextValue: "{{percentLeft}}% left ({{usedTokens}} used / {{totalTokens}})";
|
|
461
461
|
readonly slashStatusContextUnavailable: "Context usage unavailable";
|
|
462
462
|
readonly slashStatusLimitsUnavailable: "Rate limits unavailable from this agent";
|
|
463
|
+
readonly usageChipLabel: "Context {{percent}}%";
|
|
464
|
+
readonly usagePopoverTitle: "Usage";
|
|
465
|
+
readonly usageTokensLabel: "Tokens";
|
|
466
|
+
readonly usageLimitsLabel: "Limits";
|
|
467
|
+
readonly usageCompactAction: "Compact";
|
|
468
|
+
readonly usageCompactTooltip: "Compact the conversation context (/compact)";
|
|
469
|
+
readonly usageAlertWarnMessage: "Context is {{percent}}% full. Consider compacting the conversation.";
|
|
470
|
+
readonly usageAlertCriticalMessage: "Context is {{percent}}% full. Compact now to keep the session going.";
|
|
471
|
+
readonly usageAlertDismiss: "Dismiss";
|
|
472
|
+
readonly planCardTitle: "Plan";
|
|
473
|
+
readonly planCardCopy: "Copy plan";
|
|
474
|
+
readonly planCardExpand: "Expand plan";
|
|
475
|
+
readonly planCardCollapse: "Collapse plan";
|
|
476
|
+
readonly planImplementationLead: "Implement this plan?";
|
|
477
|
+
readonly planImplementationConfirm: "Yes, implement this plan";
|
|
478
|
+
readonly planImplementationFeedbackPlaceholder: "No — tell the agent how to adjust the approach";
|
|
479
|
+
readonly planImplementationSend: "Send";
|
|
480
|
+
readonly planImplementationSkip: "Stay in Plan Mode";
|
|
463
481
|
readonly noRunningResponse: "No running response to stop.";
|
|
482
|
+
readonly copyMessage: "Copy message";
|
|
483
|
+
readonly messageCopied: "Copied";
|
|
464
484
|
readonly promptTipsPrefix: "Tips: ";
|
|
465
485
|
readonly promptTips: {
|
|
466
486
|
readonly setWorkspace: {
|
|
@@ -681,6 +701,8 @@ declare const agentGuiI18nResources: {
|
|
|
681
701
|
readonly relativeTimeYears: "{{count}} y";
|
|
682
702
|
readonly slashCommandPalette: "Slash commands";
|
|
683
703
|
readonly skillPickerPalette: "Skills";
|
|
704
|
+
readonly slashPaletteCommandsGroup: "Commands";
|
|
705
|
+
readonly slashPaletteSkillsGroup: "Skills";
|
|
684
706
|
readonly fileMentionPalette: "Files";
|
|
685
707
|
readonly fileMentionLoading: "Searching...";
|
|
686
708
|
readonly fileMentionEmpty: "Search workspace files based on your input";
|
|
@@ -2714,7 +2736,7 @@ declare const agentGuiI18nResources: {
|
|
|
2714
2736
|
readonly professionalLongRunning: "针对专业工作和长时间运行的 Agent 优化";
|
|
2715
2737
|
};
|
|
2716
2738
|
readonly permissionLabel: "运行权限";
|
|
2717
|
-
readonly planModeLabel: "
|
|
2739
|
+
readonly planModeLabel: "计划模式";
|
|
2718
2740
|
readonly planModeOnLabel: "开启";
|
|
2719
2741
|
readonly planModeOffLabel: "关闭";
|
|
2720
2742
|
readonly planUnavailable: "规划模式不可用";
|
|
@@ -2738,7 +2760,27 @@ declare const agentGuiI18nResources: {
|
|
|
2738
2760
|
readonly slashStatusContextValue: "{{percentLeft}}% 剩余(已用 {{usedTokens}} / {{totalTokens}})";
|
|
2739
2761
|
readonly slashStatusContextUnavailable: "上下文用量不可用";
|
|
2740
2762
|
readonly slashStatusLimitsUnavailable: "当前 Agent 未提供额度限制";
|
|
2763
|
+
readonly usageChipLabel: "上下文 {{percent}}%";
|
|
2764
|
+
readonly usagePopoverTitle: "用量";
|
|
2765
|
+
readonly usageTokensLabel: "Token 用量";
|
|
2766
|
+
readonly usageLimitsLabel: "限额";
|
|
2767
|
+
readonly usageCompactAction: "压缩";
|
|
2768
|
+
readonly usageCompactTooltip: "压缩会话上下文(/compact)";
|
|
2769
|
+
readonly usageAlertWarnMessage: "上下文已使用 {{percent}}%,建议压缩会话。";
|
|
2770
|
+
readonly usageAlertCriticalMessage: "上下文已使用 {{percent}}%,请立即压缩以继续会话。";
|
|
2771
|
+
readonly usageAlertDismiss: "关闭提醒";
|
|
2772
|
+
readonly planCardTitle: "计划";
|
|
2773
|
+
readonly planCardCopy: "复制计划";
|
|
2774
|
+
readonly planCardExpand: "展开方案";
|
|
2775
|
+
readonly planCardCollapse: "收起方案";
|
|
2776
|
+
readonly planImplementationLead: "是否实作此方案?";
|
|
2777
|
+
readonly planImplementationConfirm: "是的,实作此方案";
|
|
2778
|
+
readonly planImplementationFeedbackPlaceholder: "否,请告知应如何调整执行方式";
|
|
2779
|
+
readonly planImplementationSend: "送出";
|
|
2780
|
+
readonly planImplementationSkip: "留在计划模式";
|
|
2741
2781
|
readonly noRunningResponse: "当前没有正在运行的回复。";
|
|
2782
|
+
readonly copyMessage: "复制消息";
|
|
2783
|
+
readonly messageCopied: "已复制";
|
|
2742
2784
|
readonly promptTipsPrefix: "Tips:";
|
|
2743
2785
|
readonly promptTips: {
|
|
2744
2786
|
readonly setWorkspace: {
|
|
@@ -2959,6 +3001,8 @@ declare const agentGuiI18nResources: {
|
|
|
2959
3001
|
readonly relativeTimeYears: "{{count}} 年";
|
|
2960
3002
|
readonly slashCommandPalette: "斜杠菜单";
|
|
2961
3003
|
readonly skillPickerPalette: "技能";
|
|
3004
|
+
readonly slashPaletteCommandsGroup: "命令";
|
|
3005
|
+
readonly slashPaletteSkillsGroup: "技能";
|
|
2962
3006
|
readonly fileMentionPalette: "工作区文件";
|
|
2963
3007
|
readonly fileMentionLoading: "正在搜索工作区...";
|
|
2964
3008
|
readonly fileMentionEmpty: "根据你输入的内容搜索工作区文件";
|
package/dist/i18n/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot, AgentActivityCancelSessionInput, AgentActivityCancelSessionResult, AgentActivityCreateSessionInput, AgentActivitySession, AgentActivityDeleteSessionInput, AgentActivityDeleteSessionResult, AgentActivitySendInput, AgentActivityMessageOrder, AgentActivityMessagePage, AgentActivitySubmitInteractiveInput, AgentActivitySnapshotListener } from '@tutti-os/agent-activity-core';
|
|
2
2
|
export { AgentActivityAdapter, AgentActivityController, AgentActivityMessage, AgentActivityNeedsAttentionItem, AgentActivitySnapshot, selectNeedsAttentionCount, selectNeedsAttentionItems } from '@tutti-os/agent-activity-core';
|
|
3
|
-
import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentSession, f as AgentHostWorkspaceAgentMessage, l as AgentHostWorkspaceAgentSnapshot, B as BuildWorkspaceAgentActivityListOptions, d as AgentHostRuntimeOpenclawGatewayWarmupResult, A as AgentHostBatchUserInfoInput, a as AgentHostBatchUserInfoResult, b as AgentHostDeleteWorkspaceAgentSessionInput, k as AgentHostWorkspaceAgentSessionSummaryInput, j as AgentHostWorkspaceAgentSessionSummary, e as AgentHostWorkspaceAgentListInput, i as AgentHostWorkspaceAgentSessionMessagesInput, h as AgentHostWorkspaceAgentSessionMessages, c as AgentHostManagedAgentsState } from './workspaceAgentActivityListViewModel-
|
|
3
|
+
import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentSession, f as AgentHostWorkspaceAgentMessage, l as AgentHostWorkspaceAgentSnapshot, B as BuildWorkspaceAgentActivityListOptions, d as AgentHostRuntimeOpenclawGatewayWarmupResult, A as AgentHostBatchUserInfoInput, a as AgentHostBatchUserInfoResult, b as AgentHostDeleteWorkspaceAgentSessionInput, k as AgentHostWorkspaceAgentSessionSummaryInput, j as AgentHostWorkspaceAgentSessionSummary, e as AgentHostWorkspaceAgentListInput, i as AgentHostWorkspaceAgentSessionMessagesInput, h as AgentHostWorkspaceAgentSessionMessages, c as AgentHostManagedAgentsState } from './workspaceAgentActivityListViewModel-BLLYGuFO.js';
|
|
4
4
|
import { PropsWithChildren, JSX } from 'react';
|
|
5
5
|
import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
|
|
6
6
|
import { WorkspaceUserProjectService } from '@tutti-os/workspace-user-project/contracts';
|
|
@@ -8,6 +8,7 @@ import { WorkspaceFileReferenceAdapter, WorkspaceFileReference } from '@tutti-os
|
|
|
8
8
|
import { W as WorkspaceLinkAction } from './workspaceLinkActions-Bwa-phu8.js';
|
|
9
9
|
import { AgentRichTextAtProvider } from './agent-rich-text-at-provider.js';
|
|
10
10
|
export { AGENT_GUI_MENTION_PROVIDER_IDS, AgentGUIMentionProviderId } from './agent-rich-text-at-provider.js';
|
|
11
|
+
import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
|
|
11
12
|
import { AgentGuiI18nLocale } from './i18n/index.js';
|
|
12
13
|
export { AgentGuiI18nProvider, agentGuiI18nModule, agentGuiI18nResources } from './i18n/index.js';
|
|
13
14
|
import '@tutti-os/workspace-issue-manager/core';
|
|
@@ -177,6 +178,12 @@ interface AgentActivitySnapshotProjection {
|
|
|
177
178
|
}
|
|
178
179
|
declare function buildAgentActivitySnapshotProjection(snapshot: AgentActivitySnapshot, options?: BuildWorkspaceAgentActivityListOptions): AgentActivitySnapshotProjection;
|
|
179
180
|
declare function agentHostSnapshotFromAgentActivitySnapshot(snapshot: AgentActivitySnapshot): AgentHostWorkspaceAgentSnapshot;
|
|
181
|
+
/**
|
|
182
|
+
* The single boundary where a raw core session status (e.g. "created",
|
|
183
|
+
* "queued") becomes host/GUI vocabulary. Use this for any core status that
|
|
184
|
+
* reaches the GUI outside the snapshot projection (cancel / sendInput results).
|
|
185
|
+
*/
|
|
186
|
+
declare function projectCoreSessionStatus(status: string): string;
|
|
180
187
|
|
|
181
188
|
interface AgentActivityRuntimeListSessionMessagesInput {
|
|
182
189
|
afterVersion?: number;
|
|
@@ -671,12 +678,6 @@ interface WorkspaceDesktopAgentProbesState {
|
|
|
671
678
|
}
|
|
672
679
|
type WorkspaceDesktopAgentProbeDemandChange = (provider: AgentProvider | null, sourceId?: string) => void;
|
|
673
680
|
|
|
674
|
-
interface AgentMessageMarkdownWorkspaceAppIcon {
|
|
675
|
-
appId: string;
|
|
676
|
-
iconUrl: string | null;
|
|
677
|
-
workspaceId?: string | null;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
681
|
interface AgentGUINodeProps {
|
|
681
682
|
nodeId: string;
|
|
682
683
|
workspaceId: string;
|
|
@@ -766,4 +767,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
|
|
|
766
767
|
}
|
|
767
768
|
declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
|
|
768
769
|
|
|
769
|
-
export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentGUI, type AgentGUIProps, AgentGuiI18nLocale, type AgentHostApi, type AgentHostInputApi, type AgentHostRuntimeApi, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, AgentRichTextAtProvider, type AgentUsageQuota, type AgentUsageSnapshot, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, getAgentActivityRuntime, getOptionalAgentActivityRuntime, resetAgentActivityRuntimeForTests, resolveAgentGUIExpandedWindowFrame, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useOptionalAgentActivityRuntime };
|
|
770
|
+
export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentGUI, type AgentGUIProps, AgentGuiI18nLocale, type AgentHostApi, type AgentHostInputApi, type AgentHostRuntimeApi, type AgentProbeProvider, type AgentProbeSnapshot, type AgentProviderProbeListInput, type AgentProviderProbeListResult, AgentRichTextAtProvider, type AgentUsageQuota, type AgentUsageSnapshot, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, getAgentActivityRuntime, getOptionalAgentActivityRuntime, projectCoreSessionStatus, resetAgentActivityRuntimeForTests, resolveAgentGUIExpandedWindowFrame, setAgentActivityRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useOptionalAgentActivityRuntime };
|