@tutti-os/agent-gui 0.0.153 → 0.0.155
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/README.md +6 -0
- package/dist/{AgentRichTextReadonly-WVZ65VON.js → AgentRichTextReadonly-J5GZIS7X.js} +5 -5
- package/dist/agent-conversation/index.d.ts +1 -1
- package/dist/agent-conversation/index.js +7 -7
- package/dist/agent-gui.d.ts +49 -2
- package/dist/agent-gui.js +15 -15
- package/dist/agent-message-center/index.js +6 -6
- package/dist/{agentGuiNodeTypes-D3f1yiEL.d.ts → agentGuiNodeTypes-2xRyhPBD.d.ts} +39 -1
- package/dist/{chunk-MVXJDVDT.js → chunk-2K7NUYHG.js} +1919 -822
- package/dist/chunk-2K7NUYHG.js.map +1 -0
- package/dist/{chunk-ZVD6KIXC.js → chunk-3VKRWAKQ.js} +4 -4
- package/dist/{chunk-XSW565MM.js → chunk-BHB457ZP.js} +2 -2
- package/dist/{chunk-VI6H5PTQ.js → chunk-DB3PHOZC.js} +127 -3
- package/dist/chunk-DB3PHOZC.js.map +1 -0
- package/dist/{chunk-XZUMGJ67.js → chunk-EFEOPMIV.js} +4 -4
- package/dist/{chunk-YNF74LPO.js → chunk-EITAGUEN.js} +2 -2
- package/dist/{chunk-3IOQ3IOJ.js → chunk-ESJWSRFD.js} +3 -2
- package/dist/{chunk-3IOQ3IOJ.js.map → chunk-ESJWSRFD.js.map} +1 -1
- package/dist/{chunk-O2P5ODPK.js → chunk-GBTKLNMX.js} +6 -6
- package/dist/{chunk-BCIAEN7N.js → chunk-GTSKTVVB.js} +2 -2
- package/dist/{chunk-5HIF53K5.js → chunk-HBJJY2AC.js} +10 -7
- package/dist/chunk-HBJJY2AC.js.map +1 -0
- package/dist/{chunk-6R2UNGNY.js → chunk-SFRFW3GC.js} +4 -4
- package/dist/{chunk-PRFWB2BT.js → chunk-SX5KN3LN.js} +5 -4
- package/dist/chunk-SX5KN3LN.js.map +1 -0
- package/dist/{chunk-5D7HTLUA.js → chunk-WNGTC3Y2.js} +3 -3
- package/dist/{chunk-UMTEWNPP.js → chunk-XYKQJMVT.js} +2 -2
- package/dist/{chunk-RD4EDLVU.js → chunk-ZCBP5VTT.js} +2 -2
- package/dist/context-mention-palette/index.js +7 -7
- package/dist/{contribution-CC2DVyUV.d.ts → contribution--lqIXGqn.d.ts} +11 -2
- package/dist/i18n/index.d.ts +120 -2
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +830 -626
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/mention-search.js +5 -5
- package/dist/workbench/contribution.d.ts +1 -1
- package/dist/workbench/contribution.js +6 -4
- package/dist/workbench/index.d.ts +2 -2
- package/dist/workbench/index.js +6 -4
- package/dist/workbench/sessionTitle.js +2 -2
- package/dist/workbench/state.js +1 -1
- package/package.json +13 -13
- package/dist/chunk-5HIF53K5.js.map +0 -1
- package/dist/chunk-MVXJDVDT.js.map +0 -1
- package/dist/chunk-PRFWB2BT.js.map +0 -1
- package/dist/chunk-VI6H5PTQ.js.map +0 -1
- /package/dist/{AgentRichTextReadonly-WVZ65VON.js.map → AgentRichTextReadonly-J5GZIS7X.js.map} +0 -0
- /package/dist/{chunk-ZVD6KIXC.js.map → chunk-3VKRWAKQ.js.map} +0 -0
- /package/dist/{chunk-XSW565MM.js.map → chunk-BHB457ZP.js.map} +0 -0
- /package/dist/{chunk-XZUMGJ67.js.map → chunk-EFEOPMIV.js.map} +0 -0
- /package/dist/{chunk-YNF74LPO.js.map → chunk-EITAGUEN.js.map} +0 -0
- /package/dist/{chunk-O2P5ODPK.js.map → chunk-GBTKLNMX.js.map} +0 -0
- /package/dist/{chunk-BCIAEN7N.js.map → chunk-GTSKTVVB.js.map} +0 -0
- /package/dist/{chunk-6R2UNGNY.js.map → chunk-SFRFW3GC.js.map} +0 -0
- /package/dist/{chunk-5D7HTLUA.js.map → chunk-WNGTC3Y2.js.map} +0 -0
- /package/dist/{chunk-UMTEWNPP.js.map → chunk-XYKQJMVT.js.map} +0 -0
- /package/dist/{chunk-RD4EDLVU.js.map → chunk-ZCBP5VTT.js.map} +0 -0
package/README.md
CHANGED
|
@@ -129,6 +129,12 @@ pnpm check:agent-activity-runtime-boundaries
|
|
|
129
129
|
`hostCapabilities`, `hostActions`, and `renderSlots`. Extend the owning object;
|
|
130
130
|
do not restore flat compatibility props.
|
|
131
131
|
|
|
132
|
+
Workbench hosts with custom Dock entry projections can import
|
|
133
|
+
`createAgentGuiWorkbenchPreviewContent` from
|
|
134
|
+
`@tutti-os/agent-gui/workbench`. The helper owns AgentGUI preview identity,
|
|
135
|
+
revision, and render-context construction; hosts continue to own their Agent
|
|
136
|
+
directory, product-specific Dock grouping, and preview body renderer.
|
|
137
|
+
|
|
132
138
|
## Reference Provenance Filtering
|
|
133
139
|
|
|
134
140
|
Reference provenance filtering is disabled by default. Collaboration hosts can
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRichTextReadonly
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XYKQJMVT.js";
|
|
4
|
+
import "./chunk-ZCBP5VTT.js";
|
|
5
5
|
import "./chunk-5QPOMKMQ.js";
|
|
6
6
|
import "./chunk-FGLQZ6I4.js";
|
|
7
7
|
import "./chunk-ZVYUTXQJ.js";
|
|
8
8
|
import "./chunk-UTJKC2LY.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-EITAGUEN.js";
|
|
10
10
|
import "./chunk-PJP5BUU6.js";
|
|
11
11
|
import "./chunk-7KVZPJ3O.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DB3PHOZC.js";
|
|
13
13
|
import "./chunk-D2JUDUYY.js";
|
|
14
14
|
import "./chunk-QMMWKQOT.js";
|
|
15
15
|
import "./chunk-6CUELYIF.js";
|
|
16
16
|
export {
|
|
17
17
|
AgentRichTextReadonly
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=AgentRichTextReadonly-
|
|
19
|
+
//# sourceMappingURL=AgentRichTextReadonly-J5GZIS7X.js.map
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, JSX } from 'react';
|
|
3
3
|
import { c as AgentConversationVM, g as WorkspaceLinkAction, f as WorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-DWEy7jzx.js';
|
|
4
4
|
export { B as BuildWorkspaceAgentSessionDetailInput, W as WorkspaceAgentActivityCard, e as WorkspaceAgentActivityTimelineItem, h as buildWorkspaceAgentSessionDetailViewModel } from '../agentConversationVM-DWEy7jzx.js';
|
|
5
|
-
import { d as AgentGUIProviderSkillOption, h as AgentMessageMarkdownWorkspaceAppIcon } from '../agentGuiNodeTypes-
|
|
5
|
+
import { d as AgentGUIProviderSkillOption, h as AgentMessageMarkdownWorkspaceAppIcon } from '../agentGuiNodeTypes-2xRyhPBD.js';
|
|
6
6
|
import { AgentActivityMessage } from '@tutti-os/agent-activity-core';
|
|
7
7
|
import '@tutti-os/workspace-issue-manager/core';
|
|
8
8
|
import '../types-DVmB_kyD.js';
|
|
@@ -7,25 +7,25 @@ import {
|
|
|
7
7
|
reconcileProjectedAgentConversationVM,
|
|
8
8
|
serializeAgentConversationForClipboard,
|
|
9
9
|
useProjectedAgentConversation
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-GBTKLNMX.js";
|
|
11
|
+
import "../chunk-XYKQJMVT.js";
|
|
12
12
|
import "../chunk-FM42UN2J.js";
|
|
13
13
|
import "../chunk-XJ34OIEQ.js";
|
|
14
14
|
import "../chunk-JDVP33S5.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-ZCBP5VTT.js";
|
|
16
16
|
import "../chunk-5QPOMKMQ.js";
|
|
17
17
|
import "../chunk-FGLQZ6I4.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-WNGTC3Y2.js";
|
|
19
19
|
import "../chunk-ZVYUTXQJ.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-ESJWSRFD.js";
|
|
21
21
|
import "../chunk-F5UR6EJG.js";
|
|
22
22
|
import "../chunk-UTJKC2LY.js";
|
|
23
23
|
import {
|
|
24
24
|
translate
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-EITAGUEN.js";
|
|
26
26
|
import "../chunk-PJP5BUU6.js";
|
|
27
27
|
import "../chunk-7KVZPJ3O.js";
|
|
28
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-DB3PHOZC.js";
|
|
29
29
|
import "../chunk-MIJXEELH.js";
|
|
30
30
|
import "../chunk-D2JUDUYY.js";
|
|
31
31
|
import "../chunk-QMMWKQOT.js";
|
package/dist/agent-gui.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
|
|
4
4
|
import { AgentActivityGoalControlInput, AgentActivityGoalControlResult, AgentActivityCreateSessionInput, AgentActivitySession, AgentActivityDeleteSessionInput, AgentActivityDeleteSessionResult, AgentActivitySendInput, AgentActivitySessionSettings, AgentActivityActivateSessionResult, AgentActivitySnapshot, AgentSessionEngine, AgentActivityMessageOrder, AgentActivityMessagePage, AgentActivitySendInputResult, AgentActivityRenameSessionInput, AgentActivitySubmitInteractiveInput, AgentActivitySubmitInteractiveResult, AgentActivitySnapshotListener, AgentActivitySubmitSettingsPatch } from '@tutti-os/agent-activity-core';
|
|
5
5
|
import { k as AgentHostAgentSessionComposerSettings, o as AgentHostUnactivateAgentSessionResult, b as AgentGUIAgentTarget, f as AgentGUIProvider, p as AgentPromptContentBlock, e as AgentGUINodeData, P as Point, g as AgentGUIProviderRailAllPresentation, h as AgentGUIProviderRailMode, i as AgentGUIProviderReadinessGate, d as AgentGUIHomeSuggestionId, N as NodeFrame, a as AgentGUIAgentDirectorySnapshot, c as AgentGUIAllAgentsPresentation } from './types-DVmB_kyD.js';
|
|
6
|
-
import { A as AgentComposerDraft, j as AgentSessionCommand, d as AgentGUIProviderSkillOption, b as AgentGUIComposerSettingsVM, e as AgentGUIQueueStatus, f as AgentGUIQueuedPromptVM, h as AgentMessageMarkdownWorkspaceAppIcon, k as AgentSlashCommandCapability, c as AgentGUINodeViewModel, i as AgentProbeSnapshot, a as AgentComposerDraftFile, g as AgentHostInputApi } from './agentGuiNodeTypes-
|
|
6
|
+
import { A as AgentComposerDraft, j as AgentSessionCommand, d as AgentGUIProviderSkillOption, b as AgentGUIComposerSettingsVM, e as AgentGUIQueueStatus, f as AgentGUIQueuedPromptVM, h as AgentMessageMarkdownWorkspaceAppIcon, k as AgentSlashCommandCapability, c as AgentGUINodeViewModel, i as AgentProbeSnapshot, a as AgentComposerDraftFile, g as AgentHostInputApi } from './agentGuiNodeTypes-2xRyhPBD.js';
|
|
7
7
|
import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAdapter, ReferenceProvenanceCatalog } from '@tutti-os/workspace-file-reference/contracts';
|
|
8
8
|
export { ReferenceProvenanceCatalog as AgentGUIReferenceProvenanceFilterCatalog } from '@tutti-os/workspace-file-reference/contracts';
|
|
9
9
|
import { A as AgentContextMentionItem } from './agentFileMentionContracts-B0yQizXB.js';
|
|
10
|
+
import { A as AgentGuiI18nLocale } from './runtime-Dwf44VKc.js';
|
|
10
11
|
import { WorkspaceFileEntry } from '@tutti-os/workspace-file-manager/services';
|
|
11
12
|
import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
|
|
12
13
|
import { b as AgentConversationPromptVM, g as WorkspaceLinkAction } from './agentConversationVM-DWEy7jzx.js';
|
|
@@ -15,7 +16,6 @@ import { WorkspaceUserProjectSelectChangeAction } from '@tutti-os/workspace-user
|
|
|
15
16
|
import { WorkspaceUserProject } from '@tutti-os/workspace-user-project/contracts';
|
|
16
17
|
import { ReferenceProvenanceFilterSnapshot, ReferenceProvenanceFilterController } from '@tutti-os/workspace-file-reference/react';
|
|
17
18
|
import { RichTextMentionService } from '@tutti-os/ui-rich-text/service';
|
|
18
|
-
import { A as AgentGuiI18nLocale } from './runtime-Dwf44VKc.js';
|
|
19
19
|
import '@tutti-os/workspace-issue-manager/core';
|
|
20
20
|
|
|
21
21
|
declare const APP_UPDATE_POLICIES: readonly ["off", "prompt", "auto"];
|
|
@@ -571,6 +571,52 @@ interface WorkspaceReferencePickResult {
|
|
|
571
571
|
mentionItems: readonly AgentContextMentionItem[];
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
+
interface AgentQuickPromptTemplate {
|
|
575
|
+
content: string;
|
|
576
|
+
description: string;
|
|
577
|
+
id: "understand-context" | "create-action-plan" | "review-and-improve" | "draft-clear-update";
|
|
578
|
+
title: string;
|
|
579
|
+
}
|
|
580
|
+
interface AgentQuickPromptLabels {
|
|
581
|
+
add: string;
|
|
582
|
+
cancel: string;
|
|
583
|
+
conflict: string;
|
|
584
|
+
contentLabel: string;
|
|
585
|
+
contentPlaceholder: string;
|
|
586
|
+
createTitle: string;
|
|
587
|
+
createFromTemplate: string;
|
|
588
|
+
delete: string;
|
|
589
|
+
deleteConfirm: string;
|
|
590
|
+
deleteDescription: (title: string) => string;
|
|
591
|
+
deleteTitle: string;
|
|
592
|
+
deleting: string;
|
|
593
|
+
edit: string;
|
|
594
|
+
editTitle: string;
|
|
595
|
+
empty: string;
|
|
596
|
+
loadError: string;
|
|
597
|
+
loading: string;
|
|
598
|
+
moreActions: string;
|
|
599
|
+
mutationError: string;
|
|
600
|
+
noResults: string;
|
|
601
|
+
required: string;
|
|
602
|
+
retry: string;
|
|
603
|
+
save: string;
|
|
604
|
+
saving: string;
|
|
605
|
+
searchPlaceholder: string;
|
|
606
|
+
recommendedTemplates: readonly AgentQuickPromptTemplate[];
|
|
607
|
+
recommendedTemplatesDescription: string;
|
|
608
|
+
recommendedTemplatesTitle: string;
|
|
609
|
+
returnToPrompts: string;
|
|
610
|
+
title: string;
|
|
611
|
+
titleLabel: string;
|
|
612
|
+
titlePlaceholder: string;
|
|
613
|
+
titleTooLong: string;
|
|
614
|
+
contentTooLarge: string;
|
|
615
|
+
trigger: string;
|
|
616
|
+
triggerTooltip: string;
|
|
617
|
+
useTemplate: string;
|
|
618
|
+
}
|
|
619
|
+
|
|
574
620
|
interface AgentComposerReferenceProvenanceFilter {
|
|
575
621
|
snapshot: ReferenceProvenanceFilterSnapshot;
|
|
576
622
|
controller: Pick<ReferenceProvenanceFilterController, "reset" | "toggle" | "toggleAll">;
|
|
@@ -805,6 +851,7 @@ interface AgentComposerProps {
|
|
|
805
851
|
submit: string;
|
|
806
852
|
cancel: string;
|
|
807
853
|
};
|
|
854
|
+
quickPrompts: AgentQuickPromptLabels;
|
|
808
855
|
};
|
|
809
856
|
workspaceUserProjectI18n: WorkspaceUserProjectI18nRuntime;
|
|
810
857
|
onDraftContentChange: (draftContent: AgentComposerDraft, sourceScopeKey?: string) => void;
|
package/dist/agent-gui.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentGUI
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2K7NUYHG.js";
|
|
4
4
|
import "./chunk-A4WCTHWS.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-SX5KN3LN.js";
|
|
6
|
+
import "./chunk-HBJJY2AC.js";
|
|
7
7
|
import "./chunk-TUWQV2MC.js";
|
|
8
8
|
import "./chunk-MHOYBRCY.js";
|
|
9
9
|
import "./chunk-R2ZADXRB.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-BHB457ZP.js";
|
|
11
|
+
import "./chunk-GBTKLNMX.js";
|
|
12
|
+
import "./chunk-XYKQJMVT.js";
|
|
13
13
|
import "./chunk-FM42UN2J.js";
|
|
14
14
|
import "./chunk-UP3ZDYTN.js";
|
|
15
15
|
import "./chunk-3EMKK6BN.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-SFRFW3GC.js";
|
|
17
17
|
import "./chunk-66JZ7BQM.js";
|
|
18
18
|
import "./chunk-AZQRB56U.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-3VKRWAKQ.js";
|
|
20
20
|
import "./chunk-VMPA46ET.js";
|
|
21
21
|
import "./chunk-XJ34OIEQ.js";
|
|
22
22
|
import "./chunk-JDVP33S5.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-ZCBP5VTT.js";
|
|
24
24
|
import "./chunk-5QPOMKMQ.js";
|
|
25
25
|
import "./chunk-RMQREVJY.js";
|
|
26
26
|
import "./chunk-FGLQZ6I4.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-EFEOPMIV.js";
|
|
28
28
|
import "./chunk-2RQM7PJN.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-WNGTC3Y2.js";
|
|
30
30
|
import "./chunk-ZVYUTXQJ.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-GTSKTVVB.js";
|
|
32
32
|
import "./chunk-YMXYBG7U.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-ESJWSRFD.js";
|
|
34
34
|
import "./chunk-F5UR6EJG.js";
|
|
35
35
|
import "./chunk-UTJKC2LY.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-EITAGUEN.js";
|
|
37
37
|
import "./chunk-PJP5BUU6.js";
|
|
38
38
|
import "./chunk-7KVZPJ3O.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-DB3PHOZC.js";
|
|
40
40
|
import "./chunk-MIJXEELH.js";
|
|
41
41
|
import "./chunk-D2JUDUYY.js";
|
|
42
42
|
import "./chunk-QMMWKQOT.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isPromptRequestIdTitle,
|
|
9
9
|
latestPlanTurnId,
|
|
10
10
|
planImplementationPromptFromPlanTurn
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-EFEOPMIV.js";
|
|
12
12
|
import {
|
|
13
13
|
useEngineSelector
|
|
14
14
|
} from "../chunk-2RQM7PJN.js";
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
isExitPlanSwitchModeInput,
|
|
22
22
|
normalizeAgentApprovalPurpose,
|
|
23
23
|
normalizeAskUserQuestions
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-WNGTC3Y2.js";
|
|
25
25
|
import {
|
|
26
26
|
cn
|
|
27
27
|
} from "../chunk-ZVYUTXQJ.js";
|
|
28
28
|
import {
|
|
29
29
|
userAvatarPlaceholderUrl,
|
|
30
30
|
workspaceAgentActivityStatusLabel
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-GTSKTVVB.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveWorkspaceAgentSessionSortTimeUnixMs
|
|
34
34
|
} from "../chunk-YMXYBG7U.js";
|
|
35
35
|
import {
|
|
36
36
|
workspaceAgentProviderLabel
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-ESJWSRFD.js";
|
|
38
38
|
import "../chunk-F5UR6EJG.js";
|
|
39
39
|
import {
|
|
40
40
|
managedAgentRoundedIconUrl
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
AgentGuiI18nProvider,
|
|
44
44
|
getActiveUiLanguage,
|
|
45
45
|
useTranslation
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-EITAGUEN.js";
|
|
47
47
|
import "../chunk-PJP5BUU6.js";
|
|
48
48
|
import "../chunk-7KVZPJ3O.js";
|
|
49
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-DB3PHOZC.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeAgentTitleText
|
|
52
52
|
} from "../chunk-MIJXEELH.js";
|
|
@@ -160,6 +160,43 @@ type AgentHostMetaApi = AgentHostRecord & {
|
|
|
160
160
|
type AgentHostEnvironmentApi = AgentHostRecord & {
|
|
161
161
|
getBaseUrl?: () => AgentHostAsyncResult<string>;
|
|
162
162
|
};
|
|
163
|
+
interface AgentHostQuickPrompt {
|
|
164
|
+
id: string;
|
|
165
|
+
title: string;
|
|
166
|
+
content: string;
|
|
167
|
+
version: number;
|
|
168
|
+
createdAtUnixMs: number;
|
|
169
|
+
updatedAtUnixMs: number;
|
|
170
|
+
}
|
|
171
|
+
interface AgentHostQuickPromptSnapshot {
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
status: "idle" | "loading" | "ready" | "error";
|
|
174
|
+
prompts: readonly AgentHostQuickPrompt[];
|
|
175
|
+
error: string | null;
|
|
176
|
+
revision: number;
|
|
177
|
+
pendingMutationIds: readonly string[];
|
|
178
|
+
}
|
|
179
|
+
interface AgentHostQuickPromptsApi {
|
|
180
|
+
ensureLoaded: (input?: {
|
|
181
|
+
force?: boolean;
|
|
182
|
+
}) => AgentHostAsyncResult<void>;
|
|
183
|
+
getSnapshot: () => AgentHostQuickPromptSnapshot;
|
|
184
|
+
subscribe: (listener: (snapshot: AgentHostQuickPromptSnapshot) => void) => AgentHostUnsubscribe;
|
|
185
|
+
create: (input: {
|
|
186
|
+
title: string;
|
|
187
|
+
content: string;
|
|
188
|
+
}) => AgentHostAsyncResult<AgentHostQuickPrompt>;
|
|
189
|
+
update: (input: {
|
|
190
|
+
id: string;
|
|
191
|
+
title: string;
|
|
192
|
+
content: string;
|
|
193
|
+
expectedVersion: number;
|
|
194
|
+
}) => AgentHostAsyncResult<AgentHostQuickPrompt>;
|
|
195
|
+
remove: (input: {
|
|
196
|
+
id: string;
|
|
197
|
+
expectedVersion: number;
|
|
198
|
+
}) => AgentHostAsyncResult<void>;
|
|
199
|
+
}
|
|
163
200
|
type AgentHostPersistenceApi = AgentHostRecord & {
|
|
164
201
|
readWorkspaceAgentReadState: (input: ReadWorkspaceAgentReadStateInput) => AgentHostAsyncResult<WorkspaceAgentReadStateSnapshot>;
|
|
165
202
|
writeWorkspaceAgentReadState: (input: WriteWorkspaceAgentReadStateInput) => AgentHostAsyncResult<PersistWriteResult>;
|
|
@@ -252,6 +289,7 @@ interface AgentHostInputApi {
|
|
|
252
289
|
meta?: AgentHostMetaApi;
|
|
253
290
|
onHostEvent?: (listener: (event: any) => void) => AgentHostUnsubscribe;
|
|
254
291
|
persistence?: AgentHostPersistenceApi;
|
|
292
|
+
quickPrompts?: AgentHostQuickPromptsApi;
|
|
255
293
|
runtime?: AgentHostEnvironmentApi;
|
|
256
294
|
toast?: AgentHostToastApi;
|
|
257
295
|
userProjects?: AgentHostUserProjectsApi;
|
|
@@ -268,7 +306,7 @@ type AgentHostWorkspaceAgentProbesApi = AgentHostRecord & {
|
|
|
268
306
|
interface AgentHostAgentTargetInstallPlan {
|
|
269
307
|
packageName: string;
|
|
270
308
|
packageVersion: string;
|
|
271
|
-
runner: "npm" | "pnpm" | "uv";
|
|
309
|
+
runner: "npm" | "pnpm" | "uv" | "binary";
|
|
272
310
|
planDigest: string;
|
|
273
311
|
installRoot: string;
|
|
274
312
|
}
|